@lodestar/light-client 1.27.0-rc.1 → 1.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lightclient.min.mjs +1 -1
- package/package.json +7 -7
package/dist/lightclient.min.mjs
CHANGED
|
@@ -29,7 +29,7 @@ var BU=Object.defineProperty;var eU=(cB,QI,mA)=>QI in cB?BU(cB,QI,{enumerable:!0
|
|
|
29
29
|
`+A.slice(C,e),C=e+1),i=t;return E+=`
|
|
30
30
|
`,A.length-C>g&&i>C?E+=A.slice(C,i)+`
|
|
31
31
|
`+A.slice(i+1):E+=A.slice(C),E.slice(1)}function qS(A){for(var g="",I=0,B,C=0;C<A.length;I>=65536?C+=2:C++)I=BC(A,C),B=ng[I],!B&&IC(I)?(g+=A[C],I>=65536&&(g+=A[C+1])):g+=B||NS(I);return g}function KS(A,g,I){var B="",C=A.tag,e,i,t;for(e=0,i=I.length;e<i;e+=1)t=I[e],A.replacer&&(t=A.replacer.call(I,String(e),t)),(FI(A,g,t,!1,!1)||typeof t>"u"&&FI(A,g,null,!1,!1))&&(B!==""&&(B+=","+(A.condenseFlow?"":" ")),B+=A.dump);A.tag=C,A.dump="["+B+"]"}function Pr(A,g,I,B){var C="",e=A.tag,i,t,E;for(i=0,t=I.length;i<t;i+=1)E=I[i],A.replacer&&(E=A.replacer.call(I,String(i),E)),(FI(A,g+1,E,!0,!0,!1,!0)||typeof E>"u"&&FI(A,g+1,null,!0,!0,!1,!0))&&((!B||C!=="")&&(C+=CQ(A,g)),A.dump&&AC===A.dump.charCodeAt(0)?C+="-":C+="- ",C+=A.dump);A.tag=e,A.dump=C||"[]"}function YS(A,g,I){var B="",C=A.tag,e=Object.keys(I),i,t,E,c,a;for(i=0,t=e.length;i<t;i+=1)a="",B!==""&&(a+=", "),A.condenseFlow&&(a+='"'),E=e[i],c=I[E],A.replacer&&(c=A.replacer.call(I,E,c)),FI(A,g,E,!1,!1)&&(A.dump.length>1024&&(a+="? "),a+=A.dump+(A.condenseFlow?'"':"")+":"+(A.condenseFlow?"":" "),FI(A,g,c,!1,!1)&&(a+=A.dump,B+=a));A.tag=C,A.dump="{"+B+"}"}function bS(A,g,I,B){var C="",e=A.tag,i=Object.keys(I),t,E,c,a,l,w;if(A.sortKeys===!0)i.sort();else if(typeof A.sortKeys=="function")i.sort(A.sortKeys);else if(A.sortKeys)throw new Dg("sortKeys must be a boolean or a function");for(t=0,E=i.length;t<E;t+=1)w="",(!B||C!=="")&&(w+=CQ(A,g)),c=i[t],a=I[c],A.replacer&&(a=A.replacer.call(I,c,a)),FI(A,g+1,c,!0,!0,!0)&&(l=A.tag!==null&&A.tag!=="?"||A.dump&&A.dump.length>1024,l&&(A.dump&&AC===A.dump.charCodeAt(0)?w+="?":w+="? "),w+=A.dump,l&&(w+=CQ(A,g)),FI(A,g+1,a,!0,l)&&(A.dump&&AC===A.dump.charCodeAt(0)?w+=":":w+=": ",w+=A.dump,C+=w));A.tag=e,A.dump=C||"{}"}function zr(A,g,I){var B,C,e,i,t,E;for(C=I?A.explicitTypes:A.implicitTypes,e=0,i=C.length;e<i;e+=1)if(t=C[e],(t.instanceOf||t.predicate)&&(!t.instanceOf||typeof g=="object"&&g instanceof t.instanceOf)&&(!t.predicate||t.predicate(g))){if(I?t.multi&&t.representName?A.tag=t.representName(g):A.tag=t.tag:A.tag="?",t.represent){if(E=A.styleMap[t.tag]||t.defaultStyle,Rr.call(t.represent)==="[object Function]")B=t.represent(g,E);else if(Ur.call(t.represent,E))B=t.represent[E](g,E);else throw new Dg("!<"+t.tag+'> tag resolver accepts not "'+E+'" style');A.dump=B}return!0}return!1}function FI(A,g,I,B,C,e,i){A.tag=null,A.dump=I,zr(A,I,!1)||zr(A,I,!0);var t=Rr.call(A.dump),E=B,c;B&&(B=A.flowLevel<0||A.flowLevel>g);var a=t==="[object Object]"||t==="[object Array]",l,w;if(a&&(l=A.duplicates.indexOf(I),w=l!==-1),(A.tag!==null&&A.tag!=="?"||w||A.indent!==2&&g>0)&&(C=!1),w&&A.usedDuplicates[l])A.dump="*ref_"+l;else{if(a&&w&&!A.usedDuplicates[l]&&(A.usedDuplicates[l]=!0),t==="[object Object]")B&&Object.keys(A.dump).length!==0?(bS(A,g,A.dump,C),w&&(A.dump="&ref_"+l+A.dump)):(YS(A,g,A.dump),w&&(A.dump="&ref_"+l+" "+A.dump));else if(t==="[object Array]")B&&A.dump.length!==0?(A.noArrayIndent&&!i&&g>0?Pr(A,g-1,A.dump,C):Pr(A,g,A.dump,C),w&&(A.dump="&ref_"+l+A.dump)):(KS(A,g,A.dump),w&&(A.dump="&ref_"+l+" "+A.dump));else if(t==="[object String]")A.tag!=="?"&&JS(A,A.dump,g,e,E);else{if(t==="[object Undefined]"||A.skipInvalid)return!1;throw new Dg("unacceptable kind of an object to dump "+t)}A.tag!==null&&A.tag!=="?"&&(c=encodeURI(A.tag[0]==="!"?A.tag.slice(1):A.tag).replace(/!/g,"%21"),A.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",A.dump=c+" "+A.dump)}return!0}function TS(A,g){var I=[],B=[],C,e;for(iQ(A,I,B),C=0,e=B.length;C<e;C+=1)g.duplicates.push(I[B[C]]);g.usedDuplicates=new Array(e)}function iQ(A,g,I){var B,C,e;if(A!==null&&typeof A=="object")if(C=g.indexOf(A),C!==-1)I.indexOf(C)===-1&&I.push(C);else if(g.push(A),Array.isArray(A))for(C=0,e=A.length;C<e;C+=1)iQ(A[C],g,I);else for(B=Object.keys(A),C=0,e=B.length;C<e;C+=1)iQ(A[B[C]],g,I)}function vS(A,g){g=g||{};var I=new RS(g);I.noRefs||TS(A,I);var B=A;return I.replacer&&(B=I.replacer.call({"":B},"",B)),FI(I,0,B,!0,!0)?I.dump+`
|
|
32
|
-
`:""}var _S=vS,OS={dump:_S};function QQ(A,g){return function(){throw new Error("Function yaml."+A+" is removed in js-yaml 4. Use yaml."+g+" instead, which is now safe by default.")}}var ZS=tg,jS=Wn,xr=Ar,PS=Cr,zS=tr,xS=$i,WS=kr.load,VS=kr.loadAll,XS=OS.dump,$S=Dg,Aw={binary:nr,float:er,map:$n,null:gr,pairs:ar,set:sr,timestamp:Er,bool:Ir,int:Br,merge:or,omap:rr,seq:Xn,str:Vn},gw=QQ("safeLoad","load"),Iw=QQ("safeLoadAll","loadAll"),Bw=QQ("safeDump","dump"),it={Type:ZS,Schema:jS,FAILSAFE_SCHEMA:xr,JSON_SCHEMA:PS,CORE_SCHEMA:zS,DEFAULT_SCHEMA:xS,load:WS,loadAll:VS,dump:XS,YAMLException:$S,types:Aw,safeLoad:gw,safeLoadAll:Iw,safeDump:Bw};const{Type:ew}=it;function Cw(A){return 48<=A&&A<=57||65<=A&&A<=70||97<=A&&A<=102}function tw(A){return 48<=A&&A<=55}function iw(A){return 48<=A&&A<=57}function Qw(A){if(A===null)return!1;const g=A.length;let I,B=0,C=!1;if(!g)return!1;if(I=A[B],(I==="-"||I==="+")&&(I=A[++B]),I==="0"){if(B+1===g)return!0;if(I=A[++B],I==="b"){for(B++;B<g;B++)if(I=A[B],I!=="_"){if(I!=="0"&&I!=="1")return!1;C=!0}return C&&I!=="_"}if(I==="x"){for(B++;B<g;B++)if(I=A[B],I!=="_"){if(!Cw(A.charCodeAt(B)))return!1;C=!0}return C&&I!=="_"}for(;B<g;B++)if(I=A[B],I!=="_"){if(!tw(A.charCodeAt(B)))return!1;C=!0}return C&&I!=="_"}if(I==="_")return!1;for(;B<g;B++)if(I=A[B],I!=="_"){if(I===":")break;if(!iw(A.charCodeAt(B)))return!1;C=!0}return!C||I==="_"?!1:I!==":"?!0:/^(:[0-5]?[0-9])+$/.test(A.slice(B))}function Ew(A){let g=A,I=1,B,C;const e=[];if(g.indexOf("_")!==-1&&(g=g.replace(/_/g,"")),B=g[0],(B==="-"||B==="+")&&(B==="-"&&(I=-1),g=g.slice(1),B=g[0]),g==="0")return BigInt(0);if(B==="0")return g[1]==="b"||g[1]==="x"?BigInt(g)*BigInt(I):BigInt("0o"+g)*BigInt(I);if(g.indexOf(":")!==-1){for(const i of g.split(":"))e.unshift(parseInt(i,10));g=BigInt(0),C=BigInt(1);for(const i of e)g=(BigInt(g)+BigInt(C))*BigInt(i),C=BigInt(C)*BigInt(60);return g*BigInt(I)}return BigInt(g)*BigInt(I)}function ow(A){return typeof A=="bigint"||typeof A=="number"}const nw=new ew("tag:yaml.org,2002:int",{kind:"scalar",resolve:Qw,construct:Ew,predicate:ow,instanceOf:BigInt,represent:{binary:function(A){return A>=0?"0b"+A.toString(2):"-0b"+A.toString(2).slice(1)},octal:function(A){return A>=0?"0"+A.toString(8):"-0"+A.toString(8).slice(1)},decimal:function(A){return A.toString(10)},hexadecimal:function(A){return A>=0?"0x"+A.toString(16).toUpperCase():"-0x"+A.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}});xr.extend({implicit:[it.types.null,it.types.bool,nw,it.types.float],explicit:[]});class rw extends Error{}rw.code="ERR_ASSERTION";const aw=typeof MA<"u"&&typeof MA.from=="function";function sw(A){return aw?MA.from(A).toString("base64"):btoa(A)}var HA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function EQ(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}function Wr(A){if(A.__esModule)return A;var g=A.default;if(typeof g=="function"){var I=function B(){return this instanceof B?Reflect.construct(g,arguments,this.constructor):g.apply(this,arguments)};I.prototype=g.prototype}else I={};return Object.defineProperty(I,"__esModule",{value:!0}),Object.keys(A).forEach(function(B){var C=Object.getOwnPropertyDescriptor(A,B);Object.defineProperty(I,B,C.get?C:{enumerable:!0,get:function(){return A[B]}})}),I}var eC={};Object.defineProperty(eC,"__esModule",{value:!0});function cw(A){{const g=MA.from(A);g.reverse();const I=g.toString("hex");return I.length===0?BigInt(0):BigInt(`0x${I}`)}}eC.toBigIntLE=cw;function lw(A){{const g=A.toString("hex");return g.length===0?BigInt(0):BigInt(`0x${g}`)}}eC.toBigIntBE=lw;function hw(A,g){{const I=A.toString(16),B=MA.from(I.padStart(g*2,"0").slice(0,g*2),"hex");return B.reverse(),B}}eC.toBufferLE=hw;function Sw(A,g){{const I=A.toString(16);return MA.from(I.padStart(g*2,"0").slice(0,g*2),"hex")}}eC.toBufferBE=Sw;const oQ=48,nQ=120;function ww(A){const g=new Array(A.length*2+2);return g[0]=oQ,g[1]=nQ,Xr(A,g),String.fromCharCode(...g)}const Qt=new Array(32*2+2);Qt[0]=oQ,Qt[1]=nQ;function Dw(A){if(A.length!==32)throw Error(`Expect root to be 32 bytes, got ${A.length}`);return Xr(A,Qt),String.fromCharCode(...Qt)}const Vr=new Array(48*2+2);Vr[0]=oQ,Vr[1]=nQ;function yw(A){if(typeof A!="string")throw new Error(`hex argument type ${typeof A} must be of type string`);if(A.startsWith("0x")&&(A=A.slice(2)),A.length%2!==0)throw new Error(`hex string length ${A.length} must be multiple of 2`);const g=A.length/2,I=new Uint8Array(g);for(let B=0;B<g;B++){const C=parseInt(A.slice(B*2,(B+1)*2),16);I[B]=C}return I}function Xr(A,g){if(A.length*2+2!==g.length)throw Error(`Expect charCodes to be of length ${A.length*2+2}, got ${g.length}`);for(let I=0;I<A.length;I++){const B=A[I],C=(B&240)>>4,e=B&15;g[2+2*I]=C<10?C+48:C+87,g[2+2*I+1]=e<10?e+48:e+87}}function uw(A){return MA.isBuffer(A)?"0x"+A.toString("hex"):A instanceof Uint8Array?"0x"+MA.from(A.buffer,A.byteOffset,A.length).toString("hex"):"0x"+MA.from(A).toString("hex")}let Et;function fw(A){if(A.length!==32)throw Error(`Expect root to be 32 bytes, got ${A.length}`);return Et===void 0&&(Et=MA.alloc(32)),Et.set(A),`0x${Et.toString("hex")}`}function pw(A){if(typeof A!="string")throw new Error(`hex argument type ${typeof A} must be of type string`);if(A.startsWith("0x")&&(A=A.slice(2)),A.length%2!==0)throw new Error(`hex string length ${A.length} must be multiple of 2`);const g=MA.from(A,"hex");return new Uint8Array(g.buffer,g.byteOffset,g.length)}let Vg=ww,ot=Dw,iA=yw;typeof MA<"u"&&(Vg=uw,ot=fw,iA=pw);const Fw={},dw=Object.freeze(Object.defineProperty({__proto__:null,default:Fw},Symbol.toStringTag,{value:"Module"}));class CC extends Error{constructor(g){super(`Aborted ${g||""}`)}}class Gw extends Error{constructor(g){super(`Timeout ${g||""}`)}}function Nw(A){return A instanceof CC}BigInt(1e9),BigInt(1e9),BigInt("100000");function kw(A){return A.startsWith("0x")?A.slice(2):A}var rQ;(function(A){A.error="error",A.warn="warn",A.info="info",A.verbose="verbose",A.debug="debug",A.trace="trace"})(rQ||(rQ={})),Object.values(rQ);class Rw extends Map{constructor(g){super(),this.getDefault=g}getOrDefault(g){let I=super.get(g);return I===void 0&&(I=this.getDefault(),this.set(g,I)),I}}function $r(A,g,I){let B=A.size-g;const C=Math.max(0,B);if(B>0){const e=A.keys();for(const i of e)if(A.delete(i),B--,B<=0)break}return C}var Aa={exports:{}};(function(A){(function(){var g=function(S,u){return u=u||"",S.replace(/(^|-)/g,"$1\\u"+u).replace(/,/g,"\\u"+u)},I=g("20-26,28-2F,3A-40,5B-60,7B-7E,A0-BF,D7,F7","00"),B="a-z"+g("DF-F6,F8-FF","00"),C="A-Z"+g("C0-D6,D8-DE","00"),e="A|An|And|As|At|But|By|En|For|If|In|Of|On|Or|The|To|Vs?\\.?|Via",i=function(S,u,m,L){return S=S||I,u=u||B,m=m||C,L=L||e,{capitalize:new RegExp("(^|["+S+"])(["+u+"])","g"),pascal:new RegExp("(^|["+S+"])+(["+u+m+"])","g"),fill:new RegExp("["+S+"]+(.|$)","g"),sentence:new RegExp('(^\\s*|[\\?\\!\\.]+"?\\s+"?|,\\s+")(['+u+"])","g"),improper:new RegExp("\\b("+L+")\\b","g"),relax:new RegExp("([^"+m+"])(["+m+"]*)(["+m+"])(?=[^"+m+"]|$)","g"),upper:new RegExp("^[^"+u+"]+$"),hole:/[^\s]\s[^\s]/,apostrophe:/'/g,room:new RegExp("["+S+"]")}},t=i(),E={re:t,unicodes:g,regexps:i,types:[],up:String.prototype.toUpperCase,low:String.prototype.toLowerCase,cap:function(S){return E.up.call(S.charAt(0))+S.slice(1)},decap:function(S){return E.low.call(S.charAt(0))+S.slice(1)},deapostrophe:function(S){return S.replace(t.apostrophe,"")},fill:function(S,u,m){return u!=null&&(S=S.replace(t.fill,function(L,p){return p?u+p:""})),m&&(S=E.deapostrophe(S)),S},prep:function(S,u,m,L){if(S=S==null?"":S+"",!L&&t.upper.test(S)&&(S=E.low.call(S)),!u&&!t.hole.test(S)){var p=E.fill(S," ");t.hole.test(p)&&(S=p)}return!m&&!t.room.test(S)&&(S=S.replace(t.relax,E.relax)),S},relax:function(S,u,m,L){return u+" "+(m?m+" ":"")+L}},c={_:E,of:function(S){for(var u=0,m=E.types.length;u<m;u++)if(c[E.types[u]].apply(c,arguments)===S)return E.types[u]},flip:function(S){return S.replace(/\w/g,function(u){return(u==E.up.call(u)?E.low:E.up).call(u)})},random:function(S){return S.replace(/\w/g,function(u){return(Math.round(Math.random())?E.up:E.low).call(u)})},type:function(S,u){c[S]=u,E.types.push(S)}},a={lower:function(S,u,m){return E.fill(E.low.call(E.prep(S,u)),u,m)},snake:function(S){return c.lower(S,"_",!0)},constant:function(S){return c.upper(S,"_",!0)},camel:function(S){return E.decap(c.pascal(S))},kebab:function(S){return c.lower(S,"-",!0)},upper:function(S,u,m){return E.fill(E.up.call(E.prep(S,u,!1,!0)),u,m)},capital:function(S,u,m){return E.fill(E.prep(S).replace(t.capitalize,function(L,p,F){return p+E.up.call(F)}),u,m)},header:function(S){return c.capital(S,"-",!0)},pascal:function(S){return E.fill(E.prep(S,!1,!0).replace(t.pascal,function(u,m,L){return E.up.call(L)}),"",!0)},title:function(S){return c.capital(S).replace(t.improper,function(u,m,L,p){return L>0&&L<p.lastIndexOf(" ")?E.low.call(u):u})},sentence:function(S,u,m){return S=c.lower(S).replace(t.sentence,function(L,p,F){return p+E.up.call(F)}),u&&u.forEach(function(L){S=S.replace(new RegExp("\\b"+c.lower(L)+"\\b","g"),E.cap)}),m&&m.forEach(function(L){S=S.replace(new RegExp("(\\b"+c.lower(L)+"\\. +)(\\w)"),function(p,F,J){return F+E.low.call(J)})}),S}};a.squish=a.pascal,c.default=c;for(var l in a)c.type(l,a[l]);var w=typeof w=="function"?w:function(){};w(A.exports?A.exports=c:this.Case=c)}).call(HA)})(Aa);var Uw=Aa.exports;const aQ=EQ(Uw);function Lw(A,g="camel",I){if(g==="notransform")return A;switch(g){case"param":return aQ.kebab(A);case"dot":return aQ.lower(A,".",!0);default:return aQ[g](A)}}function mw(A,g){const I={};for(const[B,C]of Object.entries(A))I[B]=g(C,B);return I}function nt(A,g="camel"){if(Array.isArray(A)){const I=[];for(let B=0;B<A.length;B++)I[B]=nt(A[B],g);return I}if(Object(A)===A){const I={};for(const B of Object.getOwnPropertyNames(A)){const C=Lw(B,g);if(C!==B&&Object.prototype.hasOwnProperty.call(A,C))throw new Error(`object already has a ${C} property`);I[C]=nt(A[B],g)}return I}return A}async function ga(A,g){if(!(A<0))return new Promise((I,B)=>{if(g!=null&&g.aborted)return B(new CC);let C=()=>{};const e=setTimeout(()=>{C(),I()},A),i=()=>{C(),B(new CC)};g&&g.addEventListener("abort",i),C=()=>{clearTimeout(e),g&&g.removeEventListener("abort",i)}})}async function Hw(A,g){var i;const I=((g==null?void 0:g.retries)??5)+1,B=g==null?void 0:g.shouldRetry,C=g==null?void 0:g.onRetry;let e=Error("RetryError");for(let t=1;t<=I;t++){if(t>1){if((i=g==null?void 0:g.signal)!=null&&i.aborted)throw new CC("retry");C==null||C(e,t)}try{return await A(t)}catch(E){if(e=E,t===I||B&&!B(e))break;(g==null?void 0:g.retryDelay)!==void 0&&await ga(g==null?void 0:g.retryDelay,g==null?void 0:g.signal)}}throw e}var Ia={exports:{}};function Ba(A){const g=new globalThis.AbortController;function I(){g.abort();for(const B of A)!B||!B.removeEventListener||B.removeEventListener("abort",I)}for(const B of A)if(!(!B||!B.addEventListener)){if(B.aborted){I();break}B.addEventListener("abort",I)}return g.signal}Ia.exports=Ba,Ia.exports.anySignal=Ba;function Jw(A){let g;try{g=new URL(A),decodeURIComponent(g.username),decodeURIComponent(g.password)}catch{return!1}return g.protocol==="http:"||g.protocol==="https:"}function Mw(A){return new URL(A).origin}typeof aA<"u"&&aA.versions!=null&&aA.versions.node!=null;const qw=Uint8Array.from([0,97,115,109,1,0,0,0,1,43,8,96,2,127,127,0,96,1,127,0,96,1,127,1,127,96,2,127,127,1,127,96,0,0,96,3,127,127,127,0,96,4,127,127,127,127,0,96,3,127,127,126,0,2,13,1,3,101,110,118,5,97,98,111,114,116,0,6,3,23,22,0,0,0,0,0,7,2,3,3,2,4,5,1,2,5,0,1,1,0,1,1,4,5,3,1,0,1,6,187,1,37,127,0,65,4,11,127,0,65,128,4,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,0,65,0,11,7,169,1,13,8,72,65,83,95,83,73,77,68,3,36,22,98,97,116,99,104,72,97,115,104,52,85,105,110,116,65,114,114,97,121,54,52,115,0,17,26,98,97,116,99,104,72,97,115,104,52,72,97,115,104,79,98,106,101,99,116,73,110,112,117,116,115,0,18,12,73,78,80,85,84,95,76,69,78,71,84,72,3,1,15,80,65,82,65,76,76,69,76,95,70,65,67,84,79,82,3,0,5,105,110,112,117,116,3,30,6,111,117,116,112,117,116,3,32,4,105,110,105,116,0,11,6,117,112,100,97,116,101,0,19,5,102,105,110,97,108,0,20,6,100,105,103,101,115,116,0,21,8,100,105,103,101,115,116,54,52,0,16,6,109,101,109,111,114,121,2,0,8,1,22,12,1,18,10,196,23,22,9,0,32,0,32,1,54,2,0,11,9,0,32,0,32,1,54,2,4,11,9,0,32,0,32,1,54,2,8,11,192,1,1,4,127,32,1,40,2,0,65,124,113,34,3,65,128,2,73,4,127,32,3,65,4,118,5,65,31,65,252,255,255,255,3,32,3,32,3,65,252,255,255,255,3,79,27,34,3,103,107,34,4,65,7,107,33,2,32,3,32,4,65,4,107,118,65,16,115,11,33,3,32,1,40,2,8,33,5,32,1,40,2,4,34,4,4,64,32,4,32,5,16,3,11,32,5,4,64,32,5,32,4,16,2,11,32,1,32,0,32,2,65,4,116,32,3,106,65,2,116,106,34,1,40,2,96,70,4,64,32,1,32,5,54,2,96,32,5,69,4,64,32,0,32,2,65,2,116,106,34,1,40,2,4,65,126,32,3,119,113,33,3,32,1,32,3,54,2,4,32,3,69,4,64,32,0,32,0,40,2,0,65,126,32,2,119,113,16,1,11,11,11,11,181,2,1,5,127,32,1,40,2,0,33,3,32,1,65,4,106,32,1,40,2,0,65,124,113,106,34,4,40,2,0,34,2,65,1,113,4,64,32,0,32,4,16,4,32,1,32,3,65,4,106,32,2,65,124,113,106,34,3,16,1,32,1,65,4,106,32,1,40,2,0,65,124,113,106,34,4,40,2,0,33,2,11,32,3,65,2,113,4,64,32,1,65,4,107,40,2,0,34,1,40,2,0,33,6,32,0,32,1,16,4,32,1,32,6,65,4,106,32,3,65,124,113,106,34,3,16,1,11,32,4,32,2,65,2,114,16,1,32,4,65,4,107,32,1,54,2,0,32,0,32,3,65,124,113,34,2,65,128,2,73,4,127,32,2,65,4,118,5,65,31,65,252,255,255,255,3,32,2,32,2,65,252,255,255,255,3,79,27,34,2,103,107,34,3,65,7,107,33,5,32,2,32,3,65,4,107,118,65,16,115,11,34,2,32,5,65,4,116,106,65,2,116,106,40,2,96,33,3,32,1,65,0,16,2,32,1,32,3,16,3,32,3,4,64,32,3,32,1,16,2,11,32,0,32,5,65,4,116,32,2,106,65,2,116,106,32,1,54,2,96,32,0,32,0,40,2,0,65,1,32,5,116,114,16,1,32,0,32,5,65,2,116,106,34,0,32,0,40,2,4,65,1,32,2,116,114,54,2,4,11,130,1,1,3,127,32,1,65,19,106,65,112,113,65,4,107,33,1,32,0,40,2,160,12,34,3,4,64,32,3,32,1,65,16,107,34,5,70,4,64,32,3,40,2,0,33,4,32,5,33,1,11,11,32,2,167,65,112,113,32,1,107,34,3,65,20,73,4,64,15,11,32,1,32,4,65,2,113,32,3,65,8,107,34,3,65,1,114,114,16,1,32,1,65,0,16,2,32,1,65,0,16,3,32,1,65,4,106,32,3,106,34,3,65,2,16,1,32,0,32,3,54,2,160,12,32,0,32,1,16,5,11,29,0,32,0,65,1,65,27,32,0,103,107,116,106,65,1,107,32,0,32,0,65,254,255,255,255,1,73,27,11,142,1,1,2,127,32,1,65,128,2,73,4,127,32,1,65,4,118,5,65,31,32,1,16,7,34,1,103,107,34,3,65,7,107,33,2,32,1,32,3,65,4,107,118,65,16,115,11,33,1,32,0,32,2,65,2,116,106,40,2,4,65,127,32,1,116,113,34,1,4,127,32,0,32,1,104,32,2,65,4,116,106,65,2,116,106,40,2,96,5,32,0,40,2,0,65,127,32,2,65,1,106,116,113,34,1,4,127,32,0,32,0,32,1,104,34,0,65,2,116,106,40,2,4,104,32,0,65,4,116,106,65,2,116,106,40,2,96,5,65,0,11,11,11,148,2,1,3,127,32,1,65,252,255,255,255,3,75,4,64,65,176,14,65,176,15,65,205,3,65,29,16,0,0,11,32,0,65,12,32,1,65,19,106,65,112,113,65,4,107,32,1,65,12,77,27,34,1,16,8,34,2,69,4,64,32,1,65,128,2,79,4,127,32,1,16,7,5,32,1,11,33,2,63,0,34,3,32,2,65,4,32,0,40,2,160,12,32,3,65,16,116,65,4,107,71,116,106,65,255,255,3,106,65,128,128,124,113,65,16,118,34,2,32,2,32,3,72,27,64,0,65,0,72,4,64,32,2,64,0,65,0,72,4,64,0,11,11,32,0,32,3,65,16,116,63,0,172,66,16,134,16,6,32,0,32,1,16,8,33,2,11,32,2,40,2,0,26,32,0,32,2,16,4,32,2,40,2,0,34,3,65,124,113,32,1,107,34,4,65,16,79,4,64,32,2,32,1,32,3,65,2,113,114,16,1,32,2,65,4,106,32,1,106,34,1,32,4,65,4,107,65,1,114,16,1,32,0,32,1,16,5,5,32,2,32,3,65,126,113,16,1,32,2,65,4,106,32,2,40,2,0,65,124,113,106,34,0,32,0,40,2,0,65,125,113,16,1,11,32,2,11,169,2,1,3,127,32,0,65,252,255,255,255,3,75,4,64,65,192,13,65,240,13,65,52,65,43,16,0,0,11,32,0,65,236,255,255,255,3,75,4,64,65,176,14,65,240,14,65,253,0,65,30,16,0,0,11,35,23,69,4,64,63,0,34,2,65,0,76,4,127,65,1,32,2,107,64,0,65,0,72,5,65,0,11,4,64,0,11,65,128,16,65,0,16,1,65,160,28,65,0,54,2,0,3,64,32,1,65,23,73,4,64,32,1,65,2,116,65,128,16,106,65,0,54,2,4,65,0,33,2,3,64,32,2,65,16,73,4,64,32,1,65,4,116,32,2,106,65,2,116,65,128,16,106,65,0,54,2,96,32,2,65,1,106,33,2,12,1,11,11,32,1,65,1,106,33,1,12,1,11,11,65,128,16,65,164,28,63,0,172,66,16,134,16,6,65,128,16,36,23,11,35,23,32,0,65,16,106,16,9,34,2,65,1,54,2,12,32,2,32,0,54,2,16,35,24,34,3,40,2,8,33,1,32,2,32,3,16,2,32,2,32,1,16,3,32,1,32,2,32,1,40,2,4,65,3,113,114,16,2,32,3,32,2,16,3,35,25,32,2,40,2,0,65,124,113,65,4,106,106,36,25,32,2,65,20,106,34,1,65,0,32,0,252,11,0,32,1,11,74,0,65,231,204,167,208,6,36,4,65,133,221,158,219,123,36,5,65,242,230,187,227,3,36,6,65,186,234,191,170,122,36,7,65,255,164,185,136,5,36,8,65,140,209,149,216,121,36,9,65,171,179,143,252,1,36,10,65,153,154,131,223,5,36,11,65,0,36,34,65,0,36,35,11,233,3,1,1,127,35,4,36,12,35,5,36,13,35,6,36,14,35,7,36,15,35,8,36,16,35,9,36,17,35,10,36,18,35,11,36,19,65,0,36,20,3,64,35,20,65,16,73,4,64,32,0,35,20,65,2,116,106,32,1,35,20,32,2,108,65,2,116,34,3,65,3,106,106,45,0,0,32,1,32,3,106,45,0,0,65,24,116,32,1,32,3,65,1,106,106,45,0,0,65,16,116,114,32,1,32,3,65,2,106,106,45,0,0,65,8,116,114,114,54,2,0,35,20,65,1,106,36,20,12,1,11,11,65,16,36,20,3,64,35,20,65,192,0,73,4,64,32,0,35,20,65,2,116,106,32,0,35,20,65,16,107,65,2,116,106,40,2,0,32,0,35,20,65,7,107,65,2,116,106,40,2,0,32,0,35,20,65,2,107,65,2,116,106,40,2,0,34,1,65,17,120,32,1,65,19,120,115,32,1,65,10,118,115,106,32,0,35,20,65,15,107,65,2,116,106,40,2,0,34,1,65,7,120,32,1,65,18,120,115,32,1,65,3,118,115,106,106,54,2,0,35,20,65,1,106,36,20,12,1,11,11,65,0,36,20,3,64,35,20,65,192,0,73,4,64,32,0,35,20,65,2,116,34,1,106,40,2,0,32,1,35,2,106,40,2,0,35,19,35,16,34,1,65,6,120,32,1,65,11,120,115,32,1,65,25,120,115,106,35,16,34,1,35,17,113,35,18,32,1,65,127,115,113,115,106,106,106,36,21,35,12,34,1,65,2,120,32,1,65,13,120,115,32,1,65,22,120,115,35,13,34,1,35,14,34,2,113,32,1,35,12,34,1,113,32,1,32,2,113,115,115,106,36,22,35,18,36,19,35,17,36,18,35,16,36,17,35,15,35,21,106,36,16,35,14,36,15,35,13,36,14,35,12,36,13,35,21,35,22,106,36,12,35,20,65,1,106,36,20,12,1,11,11,35,4,35,12,106,36,4,35,5,35,13,106,36,5,35,6,35,14,106,36,6,35,7,35,15,106,36,7,35,8,35,16,106,36,8,35,9,35,17,106,36,9,35,10,35,18,106,36,10,35,11,35,19,106,36,11,11,253,1,1,2,127,35,4,36,12,35,5,36,13,35,6,36,14,35,7,36,15,35,8,36,16,35,9,36,17,35,10,36,18,35,11,36,19,65,0,36,20,3,64,35,20,65,192,0,73,4,64,32,0,35,20,65,2,116,106,40,2,0,35,19,35,16,34,1,65,6,120,32,1,65,11,120,115,32,1,65,25,120,115,106,35,16,34,1,35,17,113,35,18,32,1,65,127,115,113,115,106,106,36,21,35,12,34,1,65,2,120,32,1,65,13,120,115,32,1,65,22,120,115,35,13,34,2,35,14,34,1,113,32,2,35,12,34,2,113,32,1,32,2,113,115,115,106,36,22,35,18,36,19,35,17,36,18,35,16,36,17,35,15,35,21,106,36,16,35,14,36,15,35,13,36,14,35,12,36,13,35,21,35,22,106,36,12,35,20,65,1,106,36,20,12,1,11,11,35,4,35,12,106,36,4,35,5,35,13,106,36,5,35,6,35,14,106,36,6,35,7,35,15,106,36,7,35,8,35,16,106,36,8,35,9,35,17,106,36,9,35,10,35,18,106,36,10,35,11,35,19,106,36,11,11,25,0,32,0,65,128,254,131,120,113,65,8,119,32,0,65,255,129,252,7,113,65,8,120,114,11,88,0,16,11,35,29,32,0,32,2,16,12,35,3,16,13,32,1,35,4,16,14,54,2,0,32,1,35,5,16,14,54,2,4,32,1,35,6,16,14,54,2,8,32,1,35,7,16,14,54,2,12,32,1,35,8,16,14,54,2,16,32,1,35,9,16,14,54,2,20,32,1,35,10,16,14,54,2,24,32,1,35,11,16,14,54,2,28,11,10,0,32,0,32,1,65,1,16,15,11,42,1,1,127,3,64,32,1,65,4,72,4,64,35,31,32,1,65,6,116,106,32,0,32,1,65,5,116,106,16,16,32,1,65,1,106,33,1,12,1,11,11,11,44,1,1,127,3,64,32,1,65,4,72,4,64,35,31,32,1,65,2,116,106,32,0,32,1,65,5,116,106,65,4,16,15,32,1,65,1,106,33,1,12,1,11,11,11,178,1,1,2,127,35,35,32,1,106,36,35,35,34,4,64,65,192,0,35,34,107,34,2,32,1,76,4,64,35,27,35,34,106,32,0,32,2,252,10,0,0,35,34,32,2,106,36,34,65,192,0,35,34,107,33,2,32,1,65,192,0,35,34,107,107,33,1,35,29,35,27,65,1,16,12,65,0,36,34,5,35,27,35,34,106,32,0,32,1,252,10,0,0,35,34,32,1,106,36,34,15,11,11,3,64,32,3,32,1,65,192,0,109,72,4,64,35,29,32,0,32,2,106,65,1,16,12,32,3,65,1,106,33,3,32,2,65,64,107,33,2,12,1,11,11,32,1,65,63,113,34,1,4,64,35,27,35,34,106,32,0,32,2,106,32,1,252,10,0,0,35,34,32,1,106,36,34,11,11,150,2,1,2,127,35,35,65,63,113,65,63,73,4,64,35,27,35,34,106,65,128,1,58,0,0,35,34,65,1,106,36,34,11,35,35,65,63,113,65,56,79,4,64,35,27,35,34,106,34,1,65,192,0,35,34,107,106,33,2,3,64,32,1,32,2,73,4,64,32,1,65,0,58,0,0,32,1,65,1,106,33,1,12,1,11,11,35,29,35,27,65,1,16,12,65,0,36,34,11,35,35,65,63,113,65,63,79,4,64,35,27,35,34,106,65,128,1,58,0,0,35,34,65,1,106,36,34,11,35,27,35,34,106,34,1,65,56,35,34,107,106,33,2,3,64,32,1,32,2,73,4,64,32,1,65,0,58,0,0,32,1,65,1,106,33,1,12,1,11,11,35,27,35,35,65,128,128,128,128,2,109,16,14,54,2,56,35,27,35,35,65,3,116,16,14,54,2,60,35,29,35,27,65,1,16,12,32,0,35,4,16,14,54,2,0,32,0,35,5,16,14,54,2,4,32,0,35,6,16,14,54,2,8,32,0,35,7,16,14,54,2,12,32,0,35,8,16,14,54,2,16,32,0,35,9,16,14,54,2,20,32,0,35,10,16,14,54,2,24,32,0,35,11,16,14,54,2,28,11,14,0,16,11,35,31,32,0,16,19,35,33,16,20,11,82,0,65,196,10,40,2,0,36,2,65,148,13,40,2,0,36,3,65,224,15,65,224,15,16,2,65,224,15,65,224,15,16,3,65,224,15,36,24,65,192,0,16,10,36,26,35,26,36,27,65,128,8,16,10,36,28,35,28,36,29,65,128,4,16,10,36,30,35,30,36,31,65,32,16,10,36,32,35,32,36,33,11,11,253,6,18,0,65,140,8,11,2,28,1,0,65,152,8,11,136,2,1,0,0,0,0,1,0,0,152,47,138,66,145,68,55,113,207,251,192,181,165,219,181,233,91,194,86,57,241,17,241,89,164,130,63,146,213,94,28,171,152,170,7,216,1,91,131,18,190,133,49,36,195,125,12,85,116,93,190,114,254,177,222,128,167,6,220,155,116,241,155,193,193,105,155,228,134,71,190,239,198,157,193,15,204,161,12,36,111,44,233,45,170,132,116,74,220,169,176,92,218,136,249,118,82,81,62,152,109,198,49,168,200,39,3,176,199,127,89,191,243,11,224,198,71,145,167,213,81,99,202,6,103,41,41,20,133,10,183,39,56,33,27,46,252,109,44,77,19,13,56,83,84,115,10,101,187,10,106,118,46,201,194,129,133,44,114,146,161,232,191,162,75,102,26,168,112,139,75,194,163,81,108,199,25,232,146,209,36,6,153,214,133,53,14,244,112,160,106,16,22,193,164,25,8,108,55,30,76,119,72,39,181,188,176,52,179,12,28,57,74,170,216,78,79,202,156,91,243,111,46,104,238,130,143,116,111,99,165,120,20,120,200,132,8,2,199,140,250,255,190,144,235,108,80,164,247,163,249,190,242,120,113,198,0,65,172,10,11,1,44,0,65,184,10,11,21,4,0,0,0,16,0,0,0,32,4,0,0,32,4,0,0,0,1,0,0,64,0,65,220,10,11,2,28,1,0,65,232,10,11,136,2,1,0,0,0,0,1,0,0,152,47,138,194,145,68,55,113,207,251,192,181,165,219,181,233,91,194,86,57,241,17,241,89,164,130,63,146,213,94,28,171,152,170,7,216,1,91,131,18,190,133,49,36,195,125,12,85,116,93,190,114,254,177,222,128,167,6,220,155,116,243,155,193,193,105,155,100,134,71,254,240,198,237,225,15,84,242,12,36,111,52,233,79,190,132,201,108,30,65,185,97,250,136,249,22,82,81,198,242,109,90,142,168,101,252,25,176,199,158,217,185,195,49,18,154,160,234,14,231,43,35,177,253,176,62,53,199,213,186,105,48,95,109,151,203,143,17,15,90,253,238,30,220,137,182,53,10,4,122,11,222,157,202,244,88,22,91,93,225,134,62,127,0,128,137,8,55,50,234,7,165,55,149,171,111,16,97,64,23,241,214,140,13,109,59,170,205,55,190,187,192,218,59,97,131,99,163,72,219,49,233,2,11,167,92,209,111,202,250,26,82,49,132,51,49,149,26,212,110,144,120,67,109,242,145,156,195,189,171,204,158,230,160,201,181,60,182,47,83,198,65,199,210,163,126,35,7,104,75,149,164,118,29,25,76,0,65,252,12,11,1,44,0,65,136,13,11,21,4,0,0,0,16,0,0,0,112,5,0,0,112,5,0,0,0,1,0,0,64,0,65,172,13,11,1,44,0,65,184,13,11,35,2,0,0,0,28,0,0,0,73,0,110,0,118,0,97,0,108,0,105,0,100,0,32,0,108,0,101,0,110,0,103,0,116,0,104,0,65,220,13,11,1,60,0,65,232,13,11,45,2,0,0,0,38,0,0,0,126,0,108,0,105,0,98,0,47,0,97,0,114,0,114,0,97,0,121,0,98,0,117,0,102,0,102,0,101,0,114,0,46,0,116,0,115,0,65,156,14,11,1,60,0,65,168,14,11,47,2,0,0,0,40,0,0,0,65,0,108,0,108,0,111,0,99,0,97,0,116,0,105,0,111,0,110,0,32,0,116,0,111,0,111,0,32,0,108,0,97,0,114,0,103,0,101,0,65,220,14,11,1,60,0,65,232,14,11,37,2,0,0,0,30,0,0,0,126,0,108,0,105,0,98,0,47,0,114,0,116,0,47,0,116,0,99,0,109,0,115,0,46,0,116,0,115,0,65,156,15,11,1,60,0,65,168,15,11,37,2,0,0,0,30,0,0,0,126,0,108,0,105,0,98,0,47,0,114,0,116,0,47,0,116,0,108,0,115,0,102,0,46,0,116,0,115]),ea=Uint8Array.from([0,97,115,109,1,0,0,0,1,37,7,96,2,127,127,0,96,1,127,1,127,96,2,127,127,1,127,96,1,127,0,96,0,0,96,4,127,127,127,127,0,96,3,127,127,126,0,2,13,1,3,101,110,118,5,97,98,111,114,116,0,5,3,30,29,0,0,0,0,0,6,1,2,2,2,1,2,1,1,2,4,4,1,0,3,3,4,0,0,3,3,3,0,4,5,3,1,0,1,6,227,4,61,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,127,1,65,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,0,65,4,11,127,0,65,128,4,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,0,65,1,11,7,169,1,13,8,72,65,83,95,83,73,77,68,3,60,22,98,97,116,99,104,72,97,115,104,52,85,105,110,116,65,114,114,97,121,54,52,115,0,20,26,98,97,116,99,104,72,97,115,104,52,72,97,115,104,79,98,106,101,99,116,73,110,112,117,116,115,0,21,12,73,78,80,85,84,95,76,69,78,71,84,72,3,28,15,80,65,82,65,76,76,69,76,95,70,65,67,84,79,82,3,27,5,105,110,112,117,116,3,54,6,111,117,116,112,117,116,3,56,4,105,110,105,116,0,22,6,117,112,100,97,116,101,0,24,5,102,105,110,97,108,0,25,6,100,105,103,101,115,116,0,26,8,100,105,103,101,115,116,54,52,0,28,6,109,101,109,111,114,121,2,0,8,1,29,12,1,38,10,158,112,29,9,0,32,0,32,1,54,2,0,11,9,0,32,0,32,1,54,2,4,11,9,0,32,0,32,1,54,2,8,11,192,1,1,4,127,32,1,40,2,0,65,124,113,34,3,65,128,2,73,4,127,32,3,65,4,118,5,65,31,65,252,255,255,255,3,32,3,32,3,65,252,255,255,255,3,79,27,34,3,103,107,34,4,65,7,107,33,2,32,3,32,4,65,4,107,118,65,16,115,11,33,3,32,1,40,2,8,33,5,32,1,40,2,4,34,4,4,64,32,4,32,5,16,3,11,32,5,4,64,32,5,32,4,16,2,11,32,1,32,0,32,2,65,4,116,32,3,106,65,2,116,106,34,1,40,2,96,70,4,64,32,1,32,5,54,2,96,32,5,69,4,64,32,0,32,2,65,2,116,106,34,1,40,2,4,65,126,32,3,119,113,33,3,32,1,32,3,54,2,4,32,3,69,4,64,32,0,32,0,40,2,0,65,126,32,2,119,113,16,1,11,11,11,11,181,2,1,5,127,32,1,40,2,0,33,3,32,1,65,4,106,32,1,40,2,0,65,124,113,106,34,4,40,2,0,34,2,65,1,113,4,64,32,0,32,4,16,4,32,1,32,3,65,4,106,32,2,65,124,113,106,34,3,16,1,32,1,65,4,106,32,1,40,2,0,65,124,113,106,34,4,40,2,0,33,2,11,32,3,65,2,113,4,64,32,1,65,4,107,40,2,0,34,1,40,2,0,33,6,32,0,32,1,16,4,32,1,32,6,65,4,106,32,3,65,124,113,106,34,3,16,1,11,32,4,32,2,65,2,114,16,1,32,4,65,4,107,32,1,54,2,0,32,0,32,3,65,124,113,34,2,65,128,2,73,4,127,32,2,65,4,118,5,65,31,65,252,255,255,255,3,32,2,32,2,65,252,255,255,255,3,79,27,34,2,103,107,34,3,65,7,107,33,5,32,2,32,3,65,4,107,118,65,16,115,11,34,2,32,5,65,4,116,106,65,2,116,106,40,2,96,33,3,32,1,65,0,16,2,32,1,32,3,16,3,32,3,4,64,32,3,32,1,16,2,11,32,0,32,5,65,4,116,32,2,106,65,2,116,106,32,1,54,2,96,32,0,32,0,40,2,0,65,1,32,5,116,114,16,1,32,0,32,5,65,2,116,106,34,0,32,0,40,2,4,65,1,32,2,116,114,54,2,4,11,130,1,1,3,127,32,1,65,19,106,65,112,113,65,4,107,33,1,32,0,40,2,160,12,34,3,4,64,32,3,32,1,65,16,107,34,5,70,4,64,32,3,40,2,0,33,4,32,5,33,1,11,11,32,2,167,65,112,113,32,1,107,34,3,65,20,73,4,64,15,11,32,1,32,4,65,2,113,32,3,65,8,107,34,3,65,1,114,114,16,1,32,1,65,0,16,2,32,1,65,0,16,3,32,1,65,4,106,32,3,106,34,3,65,2,16,1,32,0,32,3,54,2,160,12,32,0,32,1,16,5,11,29,0,32,0,65,1,65,27,32,0,103,107,116,106,65,1,107,32,0,32,0,65,254,255,255,255,1,73,27,11,142,1,1,2,127,32,1,65,128,2,73,4,127,32,1,65,4,118,5,65,31,32,1,16,7,34,1,103,107,34,3,65,7,107,33,2,32,1,32,3,65,4,107,118,65,16,115,11,33,1,32,0,32,2,65,2,116,106,40,2,4,65,127,32,1,116,113,34,1,4,127,32,0,32,1,104,32,2,65,4,116,106,65,2,116,106,40,2,96,5,32,0,40,2,0,65,127,32,2,65,1,106,116,113,34,1,4,127,32,0,32,0,32,1,104,34,0,65,2,116,106,40,2,4,104,32,0,65,4,116,106,65,2,116,106,40,2,96,5,65,0,11,11,11,148,2,1,3,127,32,1,65,252,255,255,255,3,75,4,64,65,176,14,65,176,15,65,205,3,65,29,16,0,0,11,32,0,65,12,32,1,65,19,106,65,112,113,65,4,107,32,1,65,12,77,27,34,1,16,8,34,2,69,4,64,32,1,65,128,2,79,4,127,32,1,16,7,5,32,1,11,33,2,63,0,34,3,32,2,65,4,32,0,40,2,160,12,32,3,65,16,116,65,4,107,71,116,106,65,255,255,3,106,65,128,128,124,113,65,16,118,34,2,32,2,32,3,72,27,64,0,65,0,72,4,64,32,2,64,0,65,0,72,4,64,0,11,11,32,0,32,3,65,16,116,63,0,172,66,16,134,16,6,32,0,32,1,16,8,33,2,11,32,2,40,2,0,26,32,0,32,2,16,4,32,2,40,2,0,34,3,65,124,113,32,1,107,34,4,65,16,79,4,64,32,2,32,1,32,3,65,2,113,114,16,1,32,2,65,4,106,32,1,106,34,1,32,4,65,4,107,65,1,114,16,1,32,0,32,1,16,5,5,32,2,32,3,65,126,113,16,1,32,2,65,4,106,32,2,40,2,0,65,124,113,106,34,0,32,0,40,2,0,65,125,113,16,1,11,32,2,11,133,2,1,2,127,32,0,65,236,255,255,255,3,75,4,64,65,176,14,65,240,14,65,253,0,65,30,16,0,0,11,35,20,69,4,64,63,0,34,3,65,0,76,4,127,65,1,32,3,107,64,0,65,0,72,5,65,0,11,4,64,0,11,65,208,21,65,0,16,1,65,240,33,65,0,54,2,0,3,64,32,2,65,23,73,4,64,32,2,65,2,116,65,208,21,106,65,0,54,2,4,65,0,33,3,3,64,32,3,65,16,73,4,64,32,2,65,4,116,32,3,106,65,2,116,65,208,21,106,65,0,54,2,96,32,3,65,1,106,33,3,12,1,11,11,32,2,65,1,106,33,2,12,1,11,11,65,208,21,65,244,33,63,0,172,66,16,134,16,6,65,208,21,36,20,11,35,20,32,0,65,16,106,16,9,34,2,32,1,54,2,12,32,2,32,0,54,2,16,35,21,34,0,40,2,8,33,1,32,2,32,0,16,2,32,2,32,1,16,3,32,1,32,2,32,1,40,2,4,65,3,113,114,16,2,32,0,32,2,16,3,35,22,32,2,40,2,0,65,124,113,65,4,106,106,36,22,32,2,65,20,106,11,46,1,1,127,32,0,65,252,255,255,255,3,75,4,64,65,192,13,65,240,13,65,52,65,43,16,0,0,11,32,0,65,1,16,10,34,1,65,0,32,0,252,11,0,32,1,11,41,0,32,1,32,0,40,2,12,79,4,64,65,144,16,65,208,16,65,242,0,65,42,16,0,0,11,32,0,40,2,4,32,1,65,2,116,106,40,2,0,11,181,1,1,4,127,32,0,69,4,64,65,192,18,15,11,65,0,32,0,107,32,0,32,0,65,31,118,65,1,116,34,1,27,34,0,65,10,79,65,1,106,32,0,65,144,206,0,79,65,3,106,32,0,65,232,7,79,106,32,0,65,228,0,73,27,32,0,65,192,132,61,79,65,6,106,32,0,65,128,148,235,220,3,79,65,8,106,32,0,65,128,194,215,47,79,106,32,0,65,128,173,226,4,73,27,32,0,65,160,141,6,73,27,34,2,65,1,116,32,1,106,65,2,16,10,34,3,32,1,106,33,4,3,64,32,4,32,2,65,1,107,34,2,65,1,116,106,32,0,65,10,112,65,48,106,59,1,0,32,0,65,10,110,34,0,13,0,11,32,1,4,64,32,3,65,45,59,1,0,11,32,3,11,13,0,32,0,65,20,107,40,2,16,65,1,118,11,64,1,3,127,32,0,16,14,65,1,116,34,2,32,1,16,14,65,1,116,34,3,106,34,4,69,4,64,65,160,20,15,11,32,4,65,2,16,10,34,4,32,0,32,2,252,10,0,0,32,2,32,4,106,32,1,32,3,252,10,0,0,32,4,11,145,16,2,2,127,1,123,65,224,15,65,224,15,16,2,65,224,15,65,224,15,16,3,65,224,15,36,21,65,128,8,16,11,36,23,35,23,36,24,2,64,3,64,32,0,65,192,0,72,4,64,35,24,33,1,65,192,10,32,0,16,12,253,17,33,2,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,32,0,14,64,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,67,11,32,1,32,2,253,11,4,0,12,63,11,32,1,32,2,253,11,4,16,12,62,11,32,1,32,2,253,11,4,32,12,61,11,32,1,32,2,253,11,4,48,12,60,11,32,1,32,2,253,11,4,64,12,59,11,32,1,32,2,253,11,4,80,12,58,11,32,1,32,2,253,11,4,96,12,57,11,32,1,32,2,253,11,4,112,12,56,11,32,1,32,2,253,11,4,128,1,12,55,11,32,1,32,2,253,11,4,144,1,12,54,11,32,1,32,2,253,11,4,160,1,12,53,11,32,1,32,2,253,11,4,176,1,12,52,11,32,1,32,2,253,11,4,192,1,12,51,11,32,1,32,2,253,11,4,208,1,12,50,11,32,1,32,2,253,11,4,224,1,12,49,11,32,1,32,2,253,11,4,240,1,12,48,11,32,1,32,2,253,11,4,128,2,12,47,11,32,1,32,2,253,11,4,144,2,12,46,11,32,1,32,2,253,11,4,160,2,12,45,11,32,1,32,2,253,11,4,176,2,12,44,11,32,1,32,2,253,11,4,192,2,12,43,11,32,1,32,2,253,11,4,208,2,12,42,11,32,1,32,2,253,11,4,224,2,12,41,11,32,1,32,2,253,11,4,240,2,12,40,11,32,1,32,2,253,11,4,128,3,12,39,11,32,1,32,2,253,11,4,144,3,12,38,11,32,1,32,2,253,11,4,160,3,12,37,11,32,1,32,2,253,11,4,176,3,12,36,11,32,1,32,2,253,11,4,192,3,12,35,11,32,1,32,2,253,11,4,208,3,12,34,11,32,1,32,2,253,11,4,224,3,12,33,11,32,1,32,2,253,11,4,240,3,12,32,11,32,1,32,2,253,11,4,128,4,12,31,11,32,1,32,2,253,11,4,144,4,12,30,11,32,1,32,2,253,11,4,160,4,12,29,11,32,1,32,2,253,11,4,176,4,12,28,11,32,1,32,2,253,11,4,192,4,12,27,11,32,1,32,2,253,11,4,208,4,12,26,11,32,1,32,2,253,11,4,224,4,12,25,11,32,1,32,2,253,11,4,240,4,12,24,11,32,1,32,2,253,11,4,128,5,12,23,11,32,1,32,2,253,11,4,144,5,12,22,11,32,1,32,2,253,11,4,160,5,12,21,11,32,1,32,2,253,11,4,176,5,12,20,11,32,1,32,2,253,11,4,192,5,12,19,11,32,1,32,2,253,11,4,208,5,12,18,11,32,1,32,2,253,11,4,224,5,12,17,11,32,1,32,2,253,11,4,240,5,12,16,11,32,1,32,2,253,11,4,128,6,12,15,11,32,1,32,2,253,11,4,144,6,12,14,11,32,1,32,2,253,11,4,160,6,12,13,11,32,1,32,2,253,11,4,176,6,12,12,11,32,1,32,2,253,11,4,192,6,12,11,11,32,1,32,2,253,11,4,208,6,12,10,11,32,1,32,2,253,11,4,224,6,12,9,11,32,1,32,2,253,11,4,240,6,12,8,11,32,1,32,2,253,11,4,128,7,12,7,11,32,1,32,2,253,11,4,144,7,12,6,11,32,1,32,2,253,11,4,160,7,12,5,11,32,1,32,2,253,11,4,176,7,12,4,11,32,1,32,2,253,11,4,192,7,12,3,11,32,1,32,2,253,11,4,208,7,12,2,11,32,1,32,2,253,11,4,224,7,12,1,11,32,1,32,2,253,11,4,240,7,11,32,0,65,1,106,33,0,12,1,11,11,65,128,8,16,11,36,25,35,25,36,26,65,0,33,0,3,64,32,0,65,192,0,72,4,64,35,26,33,1,65,144,13,32,0,16,12,253,17,33,2,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,32,0,14,64,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,67,11,32,1,32,2,253,11,4,0,12,63,11,32,1,32,2,253,11,4,16,12,62,11,32,1,32,2,253,11,4,32,12,61,11,32,1,32,2,253,11,4,48,12,60,11,32,1,32,2,253,11,4,64,12,59,11,32,1,32,2,253,11,4,80,12,58,11,32,1,32,2,253,11,4,96,12,57,11,32,1,32,2,253,11,4,112,12,56,11,32,1,32,2,253,11,4,128,1,12,55,11,32,1,32,2,253,11,4,144,1,12,54,11,32,1,32,2,253,11,4,160,1,12,53,11,32,1,32,2,253,11,4,176,1,12,52,11,32,1,32,2,253,11,4,192,1,12,51,11,32,1,32,2,253,11,4,208,1,12,50,11,32,1,32,2,253,11,4,224,1,12,49,11,32,1,32,2,253,11,4,240,1,12,48,11,32,1,32,2,253,11,4,128,2,12,47,11,32,1,32,2,253,11,4,144,2,12,46,11,32,1,32,2,253,11,4,160,2,12,45,11,32,1,32,2,253,11,4,176,2,12,44,11,32,1,32,2,253,11,4,192,2,12,43,11,32,1,32,2,253,11,4,208,2,12,42,11,32,1,32,2,253,11,4,224,2,12,41,11,32,1,32,2,253,11,4,240,2,12,40,11,32,1,32,2,253,11,4,128,3,12,39,11,32,1,32,2,253,11,4,144,3,12,38,11,32,1,32,2,253,11,4,160,3,12,37,11,32,1,32,2,253,11,4,176,3,12,36,11,32,1,32,2,253,11,4,192,3,12,35,11,32,1,32,2,253,11,4,208,3,12,34,11,32,1,32,2,253,11,4,224,3,12,33,11,32,1,32,2,253,11,4,240,3,12,32,11,32,1,32,2,253,11,4,128,4,12,31,11,32,1,32,2,253,11,4,144,4,12,30,11,32,1,32,2,253,11,4,160,4,12,29,11,32,1,32,2,253,11,4,176,4,12,28,11,32,1,32,2,253,11,4,192,4,12,27,11,32,1,32,2,253,11,4,208,4,12,26,11,32,1,32,2,253,11,4,224,4,12,25,11,32,1,32,2,253,11,4,240,4,12,24,11,32,1,32,2,253,11,4,128,5,12,23,11,32,1,32,2,253,11,4,144,5,12,22,11,32,1,32,2,253,11,4,160,5,12,21,11,32,1,32,2,253,11,4,176,5,12,20,11,32,1,32,2,253,11,4,192,5,12,19,11,32,1,32,2,253,11,4,208,5,12,18,11,32,1,32,2,253,11,4,224,5,12,17,11,32,1,32,2,253,11,4,240,5,12,16,11,32,1,32,2,253,11,4,128,6,12,15,11,32,1,32,2,253,11,4,144,6,12,14,11,32,1,32,2,253,11,4,160,6,12,13,11,32,1,32,2,253,11,4,176,6,12,12,11,32,1,32,2,253,11,4,192,6,12,11,11,32,1,32,2,253,11,4,208,6,12,10,11,32,1,32,2,253,11,4,224,6,12,9,11,32,1,32,2,253,11,4,240,6,12,8,11,32,1,32,2,253,11,4,128,7,12,7,11,32,1,32,2,253,11,4,144,7,12,6,11,32,1,32,2,253,11,4,160,7,12,5,11,32,1,32,2,253,11,4,176,7,12,4,11,32,1,32,2,253,11,4,192,7,12,3,11,32,1,32,2,253,11,4,208,7,12,2,11,32,1,32,2,253,11,4,224,7,12,1,11,32,1,32,2,253,11,4,240,7,11,32,0,65,1,106,33,0,12,1,11,11,15,11,65,192,19,32,0,16,13,16,15,65,192,20,65,201,1,65,7,16,0,0,11,192,10,2,2,123,2,127,35,0,36,8,35,1,36,9,35,2,36,10,35,3,36,11,35,4,36,12,35,5,36,13,35,6,36,14,35,7,36,15,65,0,36,18,3,64,35,18,65,192,0,72,4,64,35,15,35,12,34,0,65,6,253,173,1,32,0,65,26,253,171,1,253,80,32,0,65,11,253,173,1,32,0,65,21,253,171,1,253,80,253,81,32,0,65,25,253,173,1,32,0,65,7,253,171,1,253,80,253,81,253,174,1,35,12,34,0,35,13,253,78,32,0,253,77,35,14,253,78,253,81,253,174,1,33,1,35,26,33,2,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,35,18,34,3,14,64,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,11,32,2,253,0,4,0,33,0,12,64,11,32,2,253,0,4,16,33,0,12,63,11,32,2,253,0,4,32,33,0,12,62,11,32,2,253,0,4,48,33,0,12,61,11,32,2,253,0,4,64,33,0,12,60,11,32,2,253,0,4,80,33,0,12,59,11,32,2,253,0,4,96,33,0,12,58,11,32,2,253,0,4,112,33,0,12,57,11,32,2,253,0,4,128,1,33,0,12,56,11,32,2,253,0,4,144,1,33,0,12,55,11,32,2,253,0,4,160,1,33,0,12,54,11,32,2,253,0,4,176,1,33,0,12,53,11,32,2,253,0,4,192,1,33,0,12,52,11,32,2,253,0,4,208,1,33,0,12,51,11,32,2,253,0,4,224,1,33,0,12,50,11,32,2,253,0,4,240,1,33,0,12,49,11,32,2,253,0,4,128,2,33,0,12,48,11,32,2,253,0,4,144,2,33,0,12,47,11,32,2,253,0,4,160,2,33,0,12,46,11,32,2,253,0,4,176,2,33,0,12,45,11,32,2,253,0,4,192,2,33,0,12,44,11,32,2,253,0,4,208,2,33,0,12,43,11,32,2,253,0,4,224,2,33,0,12,42,11,32,2,253,0,4,240,2,33,0,12,41,11,32,2,253,0,4,128,3,33,0,12,40,11,32,2,253,0,4,144,3,33,0,12,39,11,32,2,253,0,4,160,3,33,0,12,38,11,32,2,253,0,4,176,3,33,0,12,37,11,32,2,253,0,4,192,3,33,0,12,36,11,32,2,253,0,4,208,3,33,0,12,35,11,32,2,253,0,4,224,3,33,0,12,34,11,32,2,253,0,4,240,3,33,0,12,33,11,32,2,253,0,4,128,4,33,0,12,32,11,32,2,253,0,4,144,4,33,0,12,31,11,32,2,253,0,4,160,4,33,0,12,30,11,32,2,253,0,4,176,4,33,0,12,29,11,32,2,253,0,4,192,4,33,0,12,28,11,32,2,253,0,4,208,4,33,0,12,27,11,32,2,253,0,4,224,4,33,0,12,26,11,32,2,253,0,4,240,4,33,0,12,25,11,32,2,253,0,4,128,5,33,0,12,24,11,32,2,253,0,4,144,5,33,0,12,23,11,32,2,253,0,4,160,5,33,0,12,22,11,32,2,253,0,4,176,5,33,0,12,21,11,32,2,253,0,4,192,5,33,0,12,20,11,32,2,253,0,4,208,5,33,0,12,19,11,32,2,253,0,4,224,5,33,0,12,18,11,32,2,253,0,4,240,5,33,0,12,17,11,32,2,253,0,4,128,6,33,0,12,16,11,32,2,253,0,4,144,6,33,0,12,15,11,32,2,253,0,4,160,6,33,0,12,14,11,32,2,253,0,4,176,6,33,0,12,13,11,32,2,253,0,4,192,6,33,0,12,12,11,32,2,253,0,4,208,6,33,0,12,11,11,32,2,253,0,4,224,6,33,0,12,10,11,32,2,253,0,4,240,6,33,0,12,9,11,32,2,253,0,4,128,7,33,0,12,8,11,32,2,253,0,4,144,7,33,0,12,7,11,32,2,253,0,4,160,7,33,0,12,6,11,32,2,253,0,4,176,7,33,0,12,5,11,32,2,253,0,4,192,7,33,0,12,4,11,32,2,253,0,4,208,7,33,0,12,3,11,32,2,253,0,4,224,7,33,0,12,2,11,32,2,253,0,4,240,7,33,0,12,1,11,65,128,21,32,3,16,13,16,15,65,192,20,65,213,2,65,7,16,0,0,11,32,1,32,0,253,174,1,36,16,35,8,34,0,65,2,253,173,1,32,0,65,30,253,171,1,253,80,32,0,65,13,253,173,1,32,0,65,19,253,171,1,253,80,253,81,32,0,65,22,253,173,1,32,0,65,10,253,171,1,253,80,253,81,35,8,34,0,35,9,34,1,253,78,32,0,35,10,34,0,253,78,253,81,32,1,32,0,253,78,253,81,253,174,1,36,17,35,14,36,15,35,13,36,14,35,12,36,13,35,11,35,16,253,174,1,36,12,35,10,36,11,35,9,36,10,35,8,36,9,35,16,35,17,253,174,1,36,8,35,18,65,1,106,36,18,12,1,11,11,35,0,35,8,253,174,1,36,0,35,1,35,9,253,174,1,36,1,35,2,35,10,253,174,1,36,2,35,3,35,11,253,174,1,36,3,35,4,35,12,253,174,1,36,4,35,5,35,13,253,174,1,36,5,35,6,35,14,253,174,1,36,6,35,7,35,15,253,174,1,36,7,11,25,0,32,0,65,128,254,131,120,113,65,8,119,32,0,65,255,129,252,7,113,65,8,120,114,11,157,57,2,2,123,2,127,253,12,103,230,9,106,103,230,9,106,103,230,9,106,103,230,9,106,36,0,253,12,133,174,103,187,133,174,103,187,133,174,103,187,133,174,103,187,36,1,253,12,114,243,110,60,114,243,110,60,114,243,110,60,114,243,110,60,36,2,253,12,58,245,79,165,58,245,79,165,58,245,79,165,58,245,79,165,36,3,253,12,127,82,14,81,127,82,14,81,127,82,14,81,127,82,14,81,36,4,253,12,140,104,5,155,140,104,5,155,140,104,5,155,140,104,5,155,36,5,253,12,171,217,131,31,171,217,131,31,171,217,131,31,171,217,131,31,36,6,253,12,25,205,224,91,25,205,224,91,25,205,224,91,25,205,224,91,36,7,253,12,103,230,9,106,103,230,9,106,103,230,9,106,103,230,9,106,36,8,253,12,133,174,103,187,133,174,103,187,133,174,103,187,133,174,103,187,36,9,253,12,114,243,110,60,114,243,110,60,114,243,110,60,114,243,110,60,36,10,253,12,58,245,79,165,58,245,79,165,58,245,79,165,58,245,79,165,36,11,253,12,127,82,14,81,127,82,14,81,127,82,14,81,127,82,14,81,36,12,253,12,140,104,5,155,140,104,5,155,140,104,5,155,140,104,5,155,36,13,253,12,171,217,131,31,171,217,131,31,171,217,131,31,171,217,131,31,36,14,253,12,25,205,224,91,25,205,224,91,25,205,224,91,25,205,224,91,36,15,65,0,36,18,2,64,3,64,35,18,65,192,0,72,4,64,35,18,65,16,72,4,123,2,123,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,35,18,34,4,14,64,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,68,11,32,0,253,0,4,0,12,63,11,32,0,253,0,4,16,12,62,11,32,0,253,0,4,32,12,61,11,32,0,253,0,4,48,12,60,11,32,0,253,0,4,64,12,59,11,32,0,253,0,4,80,12,58,11,32,0,253,0,4,96,12,57,11,32,0,253,0,4,112,12,56,11,32,0,253,0,4,128,1,12,55,11,32,0,253,0,4,144,1,12,54,11,32,0,253,0,4,160,1,12,53,11,32,0,253,0,4,176,1,12,52,11,32,0,253,0,4,192,1,12,51,11,32,0,253,0,4,208,1,12,50,11,32,0,253,0,4,224,1,12,49,11,32,0,253,0,4,240,1,12,48,11,32,0,253,0,4,128,2,12,47,11,32,0,253,0,4,144,2,12,46,11,32,0,253,0,4,160,2,12,45,11,32,0,253,0,4,176,2,12,44,11,32,0,253,0,4,192,2,12,43,11,32,0,253,0,4,208,2,12,42,11,32,0,253,0,4,224,2,12,41,11,32,0,253,0,4,240,2,12,40,11,32,0,253,0,4,128,3,12,39,11,32,0,253,0,4,144,3,12,38,11,32,0,253,0,4,160,3,12,37,11,32,0,253,0,4,176,3,12,36,11,32,0,253,0,4,192,3,12,35,11,32,0,253,0,4,208,3,12,34,11,32,0,253,0,4,224,3,12,33,11,32,0,253,0,4,240,3,12,32,11,32,0,253,0,4,128,4,12,31,11,32,0,253,0,4,144,4,12,30,11,32,0,253,0,4,160,4,12,29,11,32,0,253,0,4,176,4,12,28,11,32,0,253,0,4,192,4,12,27,11,32,0,253,0,4,208,4,12,26,11,32,0,253,0,4,224,4,12,25,11,32,0,253,0,4,240,4,12,24,11,32,0,253,0,4,128,5,12,23,11,32,0,253,0,4,144,5,12,22,11,32,0,253,0,4,160,5,12,21,11,32,0,253,0,4,176,5,12,20,11,32,0,253,0,4,192,5,12,19,11,32,0,253,0,4,208,5,12,18,11,32,0,253,0,4,224,5,12,17,11,32,0,253,0,4,240,5,12,16,11,32,0,253,0,4,128,6,12,15,11,32,0,253,0,4,144,6,12,14,11,32,0,253,0,4,160,6,12,13,11,32,0,253,0,4,176,6,12,12,11,32,0,253,0,4,192,6,12,11,11,32,0,253,0,4,208,6,12,10,11,32,0,253,0,4,224,6,12,9,11,32,0,253,0,4,240,6,12,8,11,32,0,253,0,4,128,7,12,7,11,32,0,253,0,4,144,7,12,6,11,32,0,253,0,4,160,7,12,5,11,32,0,253,0,4,176,7,12,4,11,32,0,253,0,4,192,7,12,3,11,32,0,253,0,4,208,7,12,2,11,32,0,253,0,4,224,7,12,1,11,32,0,253,0,4,240,7,11,5,2,123,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,35,18,65,2,107,34,4,14,64,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,68,11,32,0,253,0,4,0,12,63,11,32,0,253,0,4,16,12,62,11,32,0,253,0,4,32,12,61,11,32,0,253,0,4,48,12,60,11,32,0,253,0,4,64,12,59,11,32,0,253,0,4,80,12,58,11,32,0,253,0,4,96,12,57,11,32,0,253,0,4,112,12,56,11,32,0,253,0,4,128,1,12,55,11,32,0,253,0,4,144,1,12,54,11,32,0,253,0,4,160,1,12,53,11,32,0,253,0,4,176,1,12,52,11,32,0,253,0,4,192,1,12,51,11,32,0,253,0,4,208,1,12,50,11,32,0,253,0,4,224,1,12,49,11,32,0,253,0,4,240,1,12,48,11,32,0,253,0,4,128,2,12,47,11,32,0,253,0,4,144,2,12,46,11,32,0,253,0,4,160,2,12,45,11,32,0,253,0,4,176,2,12,44,11,32,0,253,0,4,192,2,12,43,11,32,0,253,0,4,208,2,12,42,11,32,0,253,0,4,224,2,12,41,11,32,0,253,0,4,240,2,12,40,11,32,0,253,0,4,128,3,12,39,11,32,0,253,0,4,144,3,12,38,11,32,0,253,0,4,160,3,12,37,11,32,0,253,0,4,176,3,12,36,11,32,0,253,0,4,192,3,12,35,11,32,0,253,0,4,208,3,12,34,11,32,0,253,0,4,224,3,12,33,11,32,0,253,0,4,240,3,12,32,11,32,0,253,0,4,128,4,12,31,11,32,0,253,0,4,144,4,12,30,11,32,0,253,0,4,160,4,12,29,11,32,0,253,0,4,176,4,12,28,11,32,0,253,0,4,192,4,12,27,11,32,0,253,0,4,208,4,12,26,11,32,0,253,0,4,224,4,12,25,11,32,0,253,0,4,240,4,12,24,11,32,0,253,0,4,128,5,12,23,11,32,0,253,0,4,144,5,12,22,11,32,0,253,0,4,160,5,12,21,11,32,0,253,0,4,176,5,12,20,11,32,0,253,0,4,192,5,12,19,11,32,0,253,0,4,208,5,12,18,11,32,0,253,0,4,224,5,12,17,11,32,0,253,0,4,240,5,12,16,11,32,0,253,0,4,128,6,12,15,11,32,0,253,0,4,144,6,12,14,11,32,0,253,0,4,160,6,12,13,11,32,0,253,0,4,176,6,12,12,11,32,0,253,0,4,192,6,12,11,11,32,0,253,0,4,208,6,12,10,11,32,0,253,0,4,224,6,12,9,11,32,0,253,0,4,240,6,12,8,11,32,0,253,0,4,128,7,12,7,11,32,0,253,0,4,144,7,12,6,11,32,0,253,0,4,160,7,12,5,11,32,0,253,0,4,176,7,12,4,11,32,0,253,0,4,192,7,12,3,11,32,0,253,0,4,208,7,12,2,11,32,0,253,0,4,224,7,12,1,11,32,0,253,0,4,240,7,11,34,2,65,17,253,173,1,32,2,65,15,253,171,1,253,80,32,2,65,19,253,173,1,32,2,65,13,253,171,1,253,80,253,81,32,2,65,10,253,173,1,253,81,2,123,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,35,18,65,7,107,34,4,14,64,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,68,11,32,0,253,0,4,0,12,63,11,32,0,253,0,4,16,12,62,11,32,0,253,0,4,32,12,61,11,32,0,253,0,4,48,12,60,11,32,0,253,0,4,64,12,59,11,32,0,253,0,4,80,12,58,11,32,0,253,0,4,96,12,57,11,32,0,253,0,4,112,12,56,11,32,0,253,0,4,128,1,12,55,11,32,0,253,0,4,144,1,12,54,11,32,0,253,0,4,160,1,12,53,11,32,0,253,0,4,176,1,12,52,11,32,0,253,0,4,192,1,12,51,11,32,0,253,0,4,208,1,12,50,11,32,0,253,0,4,224,1,12,49,11,32,0,253,0,4,240,1,12,48,11,32,0,253,0,4,128,2,12,47,11,32,0,253,0,4,144,2,12,46,11,32,0,253,0,4,160,2,12,45,11,32,0,253,0,4,176,2,12,44,11,32,0,253,0,4,192,2,12,43,11,32,0,253,0,4,208,2,12,42,11,32,0,253,0,4,224,2,12,41,11,32,0,253,0,4,240,2,12,40,11,32,0,253,0,4,128,3,12,39,11,32,0,253,0,4,144,3,12,38,11,32,0,253,0,4,160,3,12,37,11,32,0,253,0,4,176,3,12,36,11,32,0,253,0,4,192,3,12,35,11,32,0,253,0,4,208,3,12,34,11,32,0,253,0,4,224,3,12,33,11,32,0,253,0,4,240,3,12,32,11,32,0,253,0,4,128,4,12,31,11,32,0,253,0,4,144,4,12,30,11,32,0,253,0,4,160,4,12,29,11,32,0,253,0,4,176,4,12,28,11,32,0,253,0,4,192,4,12,27,11,32,0,253,0,4,208,4,12,26,11,32,0,253,0,4,224,4,12,25,11,32,0,253,0,4,240,4,12,24,11,32,0,253,0,4,128,5,12,23,11,32,0,253,0,4,144,5,12,22,11,32,0,253,0,4,160,5,12,21,11,32,0,253,0,4,176,5,12,20,11,32,0,253,0,4,192,5,12,19,11,32,0,253,0,4,208,5,12,18,11,32,0,253,0,4,224,5,12,17,11,32,0,253,0,4,240,5,12,16,11,32,0,253,0,4,128,6,12,15,11,32,0,253,0,4,144,6,12,14,11,32,0,253,0,4,160,6,12,13,11,32,0,253,0,4,176,6,12,12,11,32,0,253,0,4,192,6,12,11,11,32,0,253,0,4,208,6,12,10,11,32,0,253,0,4,224,6,12,9,11,32,0,253,0,4,240,6,12,8,11,32,0,253,0,4,128,7,12,7,11,32,0,253,0,4,144,7,12,6,11,32,0,253,0,4,160,7,12,5,11,32,0,253,0,4,176,7,12,4,11,32,0,253,0,4,192,7,12,3,11,32,0,253,0,4,208,7,12,2,11,32,0,253,0,4,224,7,12,1,11,32,0,253,0,4,240,7,11,253,174,1,2,123,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,35,18,65,15,107,34,4,14,64,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,68,11,32,0,253,0,4,0,12,63,11,32,0,253,0,4,16,12,62,11,32,0,253,0,4,32,12,61,11,32,0,253,0,4,48,12,60,11,32,0,253,0,4,64,12,59,11,32,0,253,0,4,80,12,58,11,32,0,253,0,4,96,12,57,11,32,0,253,0,4,112,12,56,11,32,0,253,0,4,128,1,12,55,11,32,0,253,0,4,144,1,12,54,11,32,0,253,0,4,160,1,12,53,11,32,0,253,0,4,176,1,12,52,11,32,0,253,0,4,192,1,12,51,11,32,0,253,0,4,208,1,12,50,11,32,0,253,0,4,224,1,12,49,11,32,0,253,0,4,240,1,12,48,11,32,0,253,0,4,128,2,12,47,11,32,0,253,0,4,144,2,12,46,11,32,0,253,0,4,160,2,12,45,11,32,0,253,0,4,176,2,12,44,11,32,0,253,0,4,192,2,12,43,11,32,0,253,0,4,208,2,12,42,11,32,0,253,0,4,224,2,12,41,11,32,0,253,0,4,240,2,12,40,11,32,0,253,0,4,128,3,12,39,11,32,0,253,0,4,144,3,12,38,11,32,0,253,0,4,160,3,12,37,11,32,0,253,0,4,176,3,12,36,11,32,0,253,0,4,192,3,12,35,11,32,0,253,0,4,208,3,12,34,11,32,0,253,0,4,224,3,12,33,11,32,0,253,0,4,240,3,12,32,11,32,0,253,0,4,128,4,12,31,11,32,0,253,0,4,144,4,12,30,11,32,0,253,0,4,160,4,12,29,11,32,0,253,0,4,176,4,12,28,11,32,0,253,0,4,192,4,12,27,11,32,0,253,0,4,208,4,12,26,11,32,0,253,0,4,224,4,12,25,11,32,0,253,0,4,240,4,12,24,11,32,0,253,0,4,128,5,12,23,11,32,0,253,0,4,144,5,12,22,11,32,0,253,0,4,160,5,12,21,11,32,0,253,0,4,176,5,12,20,11,32,0,253,0,4,192,5,12,19,11,32,0,253,0,4,208,5,12,18,11,32,0,253,0,4,224,5,12,17,11,32,0,253,0,4,240,5,12,16,11,32,0,253,0,4,128,6,12,15,11,32,0,253,0,4,144,6,12,14,11,32,0,253,0,4,160,6,12,13,11,32,0,253,0,4,176,6,12,12,11,32,0,253,0,4,192,6,12,11,11,32,0,253,0,4,208,6,12,10,11,32,0,253,0,4,224,6,12,9,11,32,0,253,0,4,240,6,12,8,11,32,0,253,0,4,128,7,12,7,11,32,0,253,0,4,144,7,12,6,11,32,0,253,0,4,160,7,12,5,11,32,0,253,0,4,176,7,12,4,11,32,0,253,0,4,192,7,12,3,11,32,0,253,0,4,208,7,12,2,11,32,0,253,0,4,224,7,12,1,11,32,0,253,0,4,240,7,11,34,2,65,7,253,173,1,32,2,65,25,253,171,1,253,80,32,2,65,18,253,173,1,32,2,65,14,253,171,1,253,80,253,81,32,2,65,3,253,173,1,253,81,253,174,1,2,123,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,35,18,65,16,107,34,4,14,64,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,68,11,32,0,253,0,4,0,12,63,11,32,0,253,0,4,16,12,62,11,32,0,253,0,4,32,12,61,11,32,0,253,0,4,48,12,60,11,32,0,253,0,4,64,12,59,11,32,0,253,0,4,80,12,58,11,32,0,253,0,4,96,12,57,11,32,0,253,0,4,112,12,56,11,32,0,253,0,4,128,1,12,55,11,32,0,253,0,4,144,1,12,54,11,32,0,253,0,4,160,1,12,53,11,32,0,253,0,4,176,1,12,52,11,32,0,253,0,4,192,1,12,51,11,32,0,253,0,4,208,1,12,50,11,32,0,253,0,4,224,1,12,49,11,32,0,253,0,4,240,1,12,48,11,32,0,253,0,4,128,2,12,47,11,32,0,253,0,4,144,2,12,46,11,32,0,253,0,4,160,2,12,45,11,32,0,253,0,4,176,2,12,44,11,32,0,253,0,4,192,2,12,43,11,32,0,253,0,4,208,2,12,42,11,32,0,253,0,4,224,2,12,41,11,32,0,253,0,4,240,2,12,40,11,32,0,253,0,4,128,3,12,39,11,32,0,253,0,4,144,3,12,38,11,32,0,253,0,4,160,3,12,37,11,32,0,253,0,4,176,3,12,36,11,32,0,253,0,4,192,3,12,35,11,32,0,253,0,4,208,3,12,34,11,32,0,253,0,4,224,3,12,33,11,32,0,253,0,4,240,3,12,32,11,32,0,253,0,4,128,4,12,31,11,32,0,253,0,4,144,4,12,30,11,32,0,253,0,4,160,4,12,29,11,32,0,253,0,4,176,4,12,28,11,32,0,253,0,4,192,4,12,27,11,32,0,253,0,4,208,4,12,26,11,32,0,253,0,4,224,4,12,25,11,32,0,253,0,4,240,4,12,24,11,32,0,253,0,4,128,5,12,23,11,32,0,253,0,4,144,5,12,22,11,32,0,253,0,4,160,5,12,21,11,32,0,253,0,4,176,5,12,20,11,32,0,253,0,4,192,5,12,19,11,32,0,253,0,4,208,5,12,18,11,32,0,253,0,4,224,5,12,17,11,32,0,253,0,4,240,5,12,16,11,32,0,253,0,4,128,6,12,15,11,32,0,253,0,4,144,6,12,14,11,32,0,253,0,4,160,6,12,13,11,32,0,253,0,4,176,6,12,12,11,32,0,253,0,4,192,6,12,11,11,32,0,253,0,4,208,6,12,10,11,32,0,253,0,4,224,6,12,9,11,32,0,253,0,4,240,6,12,8,11,32,0,253,0,4,128,7,12,7,11,32,0,253,0,4,144,7,12,6,11,32,0,253,0,4,160,7,12,5,11,32,0,253,0,4,176,7,12,4,11,32,0,253,0,4,192,7,12,3,11,32,0,253,0,4,208,7,12,2,11,32,0,253,0,4,224,7,12,1,11,32,0,253,0,4,240,7,11,253,174,1,11,36,19,35,18,65,16,78,4,64,35,19,33,2,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,35,18,34,4,14,64,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,11,32,0,32,2,253,11,4,0,12,64,11,32,0,32,2,253,11,4,16,12,63,11,32,0,32,2,253,11,4,32,12,62,11,32,0,32,2,253,11,4,48,12,61,11,32,0,32,2,253,11,4,64,12,60,11,32,0,32,2,253,11,4,80,12,59,11,32,0,32,2,253,11,4,96,12,58,11,32,0,32,2,253,11,4,112,12,57,11,32,0,32,2,253,11,4,128,1,12,56,11,32,0,32,2,253,11,4,144,1,12,55,11,32,0,32,2,253,11,4,160,1,12,54,11,32,0,32,2,253,11,4,176,1,12,53,11,32,0,32,2,253,11,4,192,1,12,52,11,32,0,32,2,253,11,4,208,1,12,51,11,32,0,32,2,253,11,4,224,1,12,50,11,32,0,32,2,253,11,4,240,1,12,49,11,32,0,32,2,253,11,4,128,2,12,48,11,32,0,32,2,253,11,4,144,2,12,47,11,32,0,32,2,253,11,4,160,2,12,46,11,32,0,32,2,253,11,4,176,2,12,45,11,32,0,32,2,253,11,4,192,2,12,44,11,32,0,32,2,253,11,4,208,2,12,43,11,32,0,32,2,253,11,4,224,2,12,42,11,32,0,32,2,253,11,4,240,2,12,41,11,32,0,32,2,253,11,4,128,3,12,40,11,32,0,32,2,253,11,4,144,3,12,39,11,32,0,32,2,253,11,4,160,3,12,38,11,32,0,32,2,253,11,4,176,3,12,37,11,32,0,32,2,253,11,4,192,3,12,36,11,32,0,32,2,253,11,4,208,3,12,35,11,32,0,32,2,253,11,4,224,3,12,34,11,32,0,32,2,253,11,4,240,3,12,33,11,32,0,32,2,253,11,4,128,4,12,32,11,32,0,32,2,253,11,4,144,4,12,31,11,32,0,32,2,253,11,4,160,4,12,30,11,32,0,32,2,253,11,4,176,4,12,29,11,32,0,32,2,253,11,4,192,4,12,28,11,32,0,32,2,253,11,4,208,4,12,27,11,32,0,32,2,253,11,4,224,4,12,26,11,32,0,32,2,253,11,4,240,4,12,25,11,32,0,32,2,253,11,4,128,5,12,24,11,32,0,32,2,253,11,4,144,5,12,23,11,32,0,32,2,253,11,4,160,5,12,22,11,32,0,32,2,253,11,4,176,5,12,21,11,32,0,32,2,253,11,4,192,5,12,20,11,32,0,32,2,253,11,4,208,5,12,19,11,32,0,32,2,253,11,4,224,5,12,18,11,32,0,32,2,253,11,4,240,5,12,17,11,32,0,32,2,253,11,4,128,6,12,16,11,32,0,32,2,253,11,4,144,6,12,15,11,32,0,32,2,253,11,4,160,6,12,14,11,32,0,32,2,253,11,4,176,6,12,13,11,32,0,32,2,253,11,4,192,6,12,12,11,32,0,32,2,253,11,4,208,6,12,11,11,32,0,32,2,253,11,4,224,6,12,10,11,32,0,32,2,253,11,4,240,6,12,9,11,32,0,32,2,253,11,4,128,7,12,8,11,32,0,32,2,253,11,4,144,7,12,7,11,32,0,32,2,253,11,4,160,7,12,6,11,32,0,32,2,253,11,4,176,7,12,5,11,32,0,32,2,253,11,4,192,7,12,4,11,32,0,32,2,253,11,4,208,7,12,3,11,32,0,32,2,253,11,4,224,7,12,2,11,32,0,32,2,253,11,4,240,7,12,1,11,65,192,19,32,4,16,13,16,15,65,192,20,65,201,1,65,7,16,0,0,11,11,35,15,35,12,34,2,65,6,253,173,1,32,2,65,26,253,171,1,253,80,32,2,65,11,253,173,1,32,2,65,21,253,171,1,253,80,253,81,32,2,65,25,253,173,1,32,2,65,7,253,171,1,253,80,253,81,253,174,1,35,12,34,2,35,13,253,78,32,2,253,77,35,14,253,78,253,81,253,174,1,33,3,35,24,33,4,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,35,18,34,5,14,64,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,11,32,4,253,0,4,0,33,2,12,64,11,32,4,253,0,4,16,33,2,12,63,11,32,4,253,0,4,32,33,2,12,62,11,32,4,253,0,4,48,33,2,12,61,11,32,4,253,0,4,64,33,2,12,60,11,32,4,253,0,4,80,33,2,12,59,11,32,4,253,0,4,96,33,2,12,58,11,32,4,253,0,4,112,33,2,12,57,11,32,4,253,0,4,128,1,33,2,12,56,11,32,4,253,0,4,144,1,33,2,12,55,11,32,4,253,0,4,160,1,33,2,12,54,11,32,4,253,0,4,176,1,33,2,12,53,11,32,4,253,0,4,192,1,33,2,12,52,11,32,4,253,0,4,208,1,33,2,12,51,11,32,4,253,0,4,224,1,33,2,12,50,11,32,4,253,0,4,240,1,33,2,12,49,11,32,4,253,0,4,128,2,33,2,12,48,11,32,4,253,0,4,144,2,33,2,12,47,11,32,4,253,0,4,160,2,33,2,12,46,11,32,4,253,0,4,176,2,33,2,12,45,11,32,4,253,0,4,192,2,33,2,12,44,11,32,4,253,0,4,208,2,33,2,12,43,11,32,4,253,0,4,224,2,33,2,12,42,11,32,4,253,0,4,240,2,33,2,12,41,11,32,4,253,0,4,128,3,33,2,12,40,11,32,4,253,0,4,144,3,33,2,12,39,11,32,4,253,0,4,160,3,33,2,12,38,11,32,4,253,0,4,176,3,33,2,12,37,11,32,4,253,0,4,192,3,33,2,12,36,11,32,4,253,0,4,208,3,33,2,12,35,11,32,4,253,0,4,224,3,33,2,12,34,11,32,4,253,0,4,240,3,33,2,12,33,11,32,4,253,0,4,128,4,33,2,12,32,11,32,4,253,0,4,144,4,33,2,12,31,11,32,4,253,0,4,160,4,33,2,12,30,11,32,4,253,0,4,176,4,33,2,12,29,11,32,4,253,0,4,192,4,33,2,12,28,11,32,4,253,0,4,208,4,33,2,12,27,11,32,4,253,0,4,224,4,33,2,12,26,11,32,4,253,0,4,240,4,33,2,12,25,11,32,4,253,0,4,128,5,33,2,12,24,11,32,4,253,0,4,144,5,33,2,12,23,11,32,4,253,0,4,160,5,33,2,12,22,11,32,4,253,0,4,176,5,33,2,12,21,11,32,4,253,0,4,192,5,33,2,12,20,11,32,4,253,0,4,208,5,33,2,12,19,11,32,4,253,0,4,224,5,33,2,12,18,11,32,4,253,0,4,240,5,33,2,12,17,11,32,4,253,0,4,128,6,33,2,12,16,11,32,4,253,0,4,144,6,33,2,12,15,11,32,4,253,0,4,160,6,33,2,12,14,11,32,4,253,0,4,176,6,33,2,12,13,11,32,4,253,0,4,192,6,33,2,12,12,11,32,4,253,0,4,208,6,33,2,12,11,11,32,4,253,0,4,224,6,33,2,12,10,11,32,4,253,0,4,240,6,33,2,12,9,11,32,4,253,0,4,128,7,33,2,12,8,11,32,4,253,0,4,144,7,33,2,12,7,11,32,4,253,0,4,160,7,33,2,12,6,11,32,4,253,0,4,176,7,33,2,12,5,11,32,4,253,0,4,192,7,33,2,12,4,11,32,4,253,0,4,208,7,33,2,12,3,11,32,4,253,0,4,224,7,33,2,12,2,11,32,4,253,0,4,240,7,33,2,12,1,11,65,128,21,32,5,16,13,16,15,65,192,20,65,213,2,65,7,16,0,0,11,32,3,32,2,253,174,1,35,19,253,174,1,36,16,35,8,34,2,65,2,253,173,1,32,2,65,30,253,171,1,253,80,32,2,65,13,253,173,1,32,2,65,19,253,171,1,253,80,253,81,32,2,65,22,253,173,1,32,2,65,10,253,171,1,253,80,253,81,35,8,34,2,35,9,34,3,253,78,32,2,35,10,34,2,253,78,253,81,32,3,32,2,253,78,253,81,253,174,1,36,17,35,14,36,15,35,13,36,14,35,12,36,13,35,11,35,16,253,174,1,36,12,35,10,36,11,35,9,36,10,35,8,36,9,35,16,35,17,253,174,1,36,8,35,18,65,1,106,36,18,12,1,11,11,35,0,35,8,253,174,1,36,0,35,1,35,9,253,174,1,36,1,35,2,35,10,253,174,1,36,2,35,3,35,11,253,174,1,36,3,35,4,35,12,253,174,1,36,4,35,5,35,13,253,174,1,36,5,35,6,35,14,253,174,1,36,6,35,7,35,15,253,174,1,36,7,16,17,32,1,35,0,253,27,0,16,18,54,2,0,32,1,35,1,253,27,0,16,18,54,2,4,32,1,35,2,253,27,0,16,18,54,2,8,32,1,35,3,253,27,0,16,18,54,2,12,32,1,35,4,253,27,0,16,18,54,2,16,32,1,35,5,253,27,0,16,18,54,2,20,32,1,35,6,253,27,0,16,18,54,2,24,32,1,35,7,253,27,0,16,18,54,2,28,32,1,35,0,253,27,1,16,18,54,2,32,32,1,35,1,253,27,1,16,18,54,2,36,32,1,35,2,253,27,1,16,18,54,2,40,32,1,35,3,253,27,1,16,18,54,2,44,32,1,35,4,253,27,1,16,18,54,2,48,32,1,35,5,253,27,1,16,18,54,2,52,32,1,35,6,253,27,1,16,18,54,2,56,32,1,35,7,253,27,1,16,18,54,2,60,32,1,65,64,107,35,0,253,27,2,16,18,54,2,0,32,1,35,1,253,27,2,16,18,54,2,68,32,1,35,2,253,27,2,16,18,54,2,72,32,1,35,3,253,27,2,16,18,54,2,76,32,1,35,4,253,27,2,16,18,54,2,80,32,1,35,5,253,27,2,16,18,54,2,84,32,1,35,6,253,27,2,16,18,54,2,88,32,1,35,7,253,27,2,16,18,54,2,92,32,1,35,0,253,27,3,16,18,54,2,96,32,1,35,1,253,27,3,16,18,54,2,100,32,1,35,2,253,27,3,16,18,54,2,104,32,1,35,3,253,27,3,16,18,54,2,108,32,1,35,4,253,27,3,16,18,54,2,112,32,1,35,5,253,27,3,16,18,54,2,116,32,1,35,6,253,27,3,16,18,54,2,120,32,1,35,7,253,27,3,16,18,54,2,124,15,11,65,128,21,32,4,16,13,16,15,65,192,20,65,213,2,65,7,16,0,0,11,203,2,1,5,127,3,64,32,1,65,16,72,4,64,32,1,65,2,116,34,2,65,1,106,33,3,35,53,32,2,65,2,116,106,32,2,65,3,106,34,4,35,55,34,5,106,45,0,0,32,2,32,5,106,45,0,0,65,24,116,32,3,32,5,106,45,0,0,65,16,116,114,32,2,65,2,106,34,2,32,5,106,45,0,0,65,8,116,114,114,54,2,0,35,53,32,3,65,2,116,106,35,55,34,3,32,1,65,16,106,65,2,116,34,5,65,3,106,106,45,0,0,32,3,32,5,106,45,0,0,65,24,116,32,5,65,1,106,32,3,106,45,0,0,65,16,116,114,32,5,65,2,106,32,3,106,45,0,0,65,8,116,114,114,54,2,0,35,53,32,2,65,2,116,106,35,55,34,2,32,1,65,32,106,65,2,116,34,3,65,3,106,106,45,0,0,32,2,32,3,106,45,0,0,65,24,116,32,3,65,1,106,32,2,106,45,0,0,65,16,116,114,32,3,65,2,106,32,2,106,45,0,0,65,8,116,114,114,54,2,0,35,53,32,4,65,2,116,106,35,55,34,2,32,1,65,48,106,65,2,116,34,3,65,3,106,106,45,0,0,32,2,32,3,106,45,0,0,65,24,116,32,3,65,1,106,32,2,106,45,0,0,65,16,116,114,32,3,65,2,106,32,2,106,45,0,0,65,8,116,114,114,54,2,0,32,1,65,1,106,33,1,12,1,11,11,35,53,32,0,16,19,11,99,1,3,127,3,64,32,2,65,192,0,72,4,64,32,2,65,2,116,34,1,35,53,106,35,55,34,3,32,1,65,3,106,106,45,0,0,32,1,32,3,106,45,0,0,65,24,116,32,1,65,1,106,32,3,106,45,0,0,65,16,116,114,32,1,65,2,106,32,3,106,45,0,0,65,8,116,114,114,54,2,0,32,2,65,1,106,33,2,12,1,11,11,35,53,32,0,16,19,11,74,0,65,231,204,167,208,6,36,31,65,133,221,158,219,123,36,32,65,242,230,187,227,3,36,33,65,186,234,191,170,122,36,34,65,255,164,185,136,5,36,35,65,140,209,149,216,121,36,36,65,171,179,143,252,1,36,37,65,153,154,131,223,5,36,38,65,0,36,58,65,0,36,59,11,227,3,1,2,127,35,31,36,39,35,32,36,40,35,33,36,41,35,34,36,42,35,35,36,43,35,36,36,44,35,37,36,45,35,38,36,46,65,0,36,47,3,64,35,47,65,16,73,4,64,35,47,65,2,116,34,2,32,0,106,32,1,32,2,65,3,106,106,45,0,0,32,1,32,2,106,45,0,0,65,24,116,32,1,32,2,65,1,106,106,45,0,0,65,16,116,114,32,1,32,2,65,2,106,106,45,0,0,65,8,116,114,114,54,2,0,35,47,65,1,106,36,47,12,1,11,11,65,16,36,47,3,64,35,47,65,192,0,73,4,64,32,0,35,47,65,2,116,106,32,0,35,47,65,16,107,65,2,116,106,40,2,0,32,0,35,47,65,7,107,65,2,116,106,40,2,0,32,0,35,47,65,2,107,65,2,116,106,40,2,0,34,1,65,17,120,32,1,65,19,120,115,32,1,65,10,118,115,106,32,0,35,47,65,15,107,65,2,116,106,40,2,0,34,1,65,7,120,32,1,65,18,120,115,32,1,65,3,118,115,106,106,54,2,0,35,47,65,1,106,36,47,12,1,11,11,65,0,36,47,3,64,35,47,65,192,0,73,4,64,35,47,65,2,116,34,1,32,0,106,40,2,0,32,1,35,29,106,40,2,0,35,46,35,43,34,1,65,6,120,32,1,65,11,120,115,32,1,65,25,120,115,106,35,43,34,1,35,44,113,35,45,32,1,65,127,115,113,115,106,106,106,36,48,35,39,34,1,65,2,120,32,1,65,13,120,115,32,1,65,22,120,115,35,40,34,2,35,41,34,3,113,35,39,34,1,32,2,113,32,1,32,3,113,115,115,106,36,49,35,45,36,46,35,44,36,45,35,43,36,44,35,42,35,48,106,36,43,35,41,36,42,35,40,36,41,35,39,36,40,35,48,35,49,106,36,39,35,47,65,1,106,36,47,12,1,11,11,35,31,35,39,106,36,31,35,32,35,40,106,36,32,35,33,35,41,106,36,33,35,34,35,42,106,36,34,35,35,35,43,106,36,35,35,36,35,44,106,36,36,35,37,35,45,106,36,37,35,38,35,46,106,36,38,11,174,1,1,2,127,35,59,32,1,106,36,59,35,58,4,64,65,192,0,35,58,107,34,2,32,1,76,4,64,35,51,35,58,106,32,0,32,2,252,10,0,0,35,58,32,2,106,36,58,65,192,0,35,58,107,33,2,32,1,65,192,0,35,58,107,107,33,1,35,53,35,51,16,23,65,0,36,58,5,35,51,35,58,106,32,0,32,1,252,10,0,0,35,58,32,1,106,36,58,15,11,11,3,64,32,3,32,1,65,192,0,109,72,4,64,35,53,32,0,32,2,106,16,23,32,3,65,1,106,33,3,32,2,65,64,107,33,2,12,1,11,11,32,1,65,63,113,34,1,4,64,35,51,35,58,106,32,0,32,2,106,32,1,252,10,0,0,35,58,32,1,106,36,58,11,11,146,2,1,2,127,35,59,65,63,113,65,63,73,4,64,35,51,35,58,106,65,128,1,58,0,0,35,58,65,1,106,36,58,11,35,59,65,63,113,65,56,79,4,64,35,51,35,58,106,34,1,65,192,0,35,58,107,106,33,2,3,64,32,1,32,2,73,4,64,32,1,65,0,58,0,0,32,1,65,1,106,33,1,12,1,11,11,35,53,35,51,16,23,65,0,36,58,11,35,59,65,63,113,65,63,79,4,64,35,51,35,58,106,65,128,1,58,0,0,35,58,65,1,106,36,58,11,35,51,35,58,106,34,1,65,56,35,58,107,106,33,2,3,64,32,1,32,2,73,4,64,32,1,65,0,58,0,0,32,1,65,1,106,33,1,12,1,11,11,35,51,35,59,65,128,128,128,128,2,109,16,18,54,2,56,35,51,35,59,65,3,116,16,18,54,2,60,35,53,35,51,16,23,32,0,35,31,16,18,54,2,0,32,0,35,32,16,18,54,2,4,32,0,35,33,16,18,54,2,8,32,0,35,34,16,18,54,2,12,32,0,35,35,16,18,54,2,16,32,0,35,36,16,18,54,2,20,32,0,35,37,16,18,54,2,24,32,0,35,38,16,18,54,2,28,11,14,0,16,22,35,55,32,0,16,24,35,57,16,25,11,253,1,1,2,127,35,31,36,39,35,32,36,40,35,33,36,41,35,34,36,42,35,35,36,43,35,36,36,44,35,37,36,45,35,38,36,46,65,0,36,47,3,64,35,47,65,192,0,73,4,64,32,0,35,47,65,2,116,106,40,2,0,35,46,35,43,34,1,65,6,120,32,1,65,11,120,115,32,1,65,25,120,115,106,35,43,34,1,35,44,113,35,45,32,1,65,127,115,113,115,106,106,36,48,35,39,34,1,65,2,120,32,1,65,13,120,115,32,1,65,22,120,115,35,40,34,2,35,41,34,1,113,32,2,35,39,34,2,113,32,1,32,2,113,115,115,106,36,49,35,45,36,46,35,44,36,45,35,43,36,44,35,42,35,48,106,36,43,35,41,36,42,35,40,36,41,35,39,36,40,35,48,35,49,106,36,39,35,47,65,1,106,36,47,12,1,11,11,35,31,35,39,106,36,31,35,32,35,40,106,36,32,35,33,35,41,106,36,33,35,34,35,42,106,36,34,35,35,35,43,106,36,35,35,36,35,44,106,36,36,35,37,35,45,106,36,37,35,38,35,46,106,36,38,11,86,0,16,22,35,53,32,0,16,23,35,30,16,27,32,1,35,31,16,18,54,2,0,32,1,35,32,16,18,54,2,4,32,1,35,33,16,18,54,2,8,32,1,35,34,16,18,54,2,12,32,1,35,35,16,18,54,2,16,32,1,35,36,16,18,54,2,20,32,1,35,37,16,18,54,2,24,32,1,35,38,16,18,54,2,28,11,63,0,16,16,65,196,10,40,2,0,36,29,65,148,13,40,2,0,36,30,65,192,0,16,11,36,50,35,50,36,51,65,128,8,16,11,36,52,35,52,36,53,65,128,4,16,11,36,54,35,54,36,55,65,32,16,11,36,56,35,56,36,57,11,11,141,12,38,0,65,140,8,11,2,28,1,0,65,152,8,11,136,2,1,0,0,0,0,1,0,0,152,47,138,66,145,68,55,113,207,251,192,181,165,219,181,233,91,194,86,57,241,17,241,89,164,130,63,146,213,94,28,171,152,170,7,216,1,91,131,18,190,133,49,36,195,125,12,85,116,93,190,114,254,177,222,128,167,6,220,155,116,241,155,193,193,105,155,228,134,71,190,239,198,157,193,15,204,161,12,36,111,44,233,45,170,132,116,74,220,169,176,92,218,136,249,118,82,81,62,152,109,198,49,168,200,39,3,176,199,127,89,191,243,11,224,198,71,145,167,213,81,99,202,6,103,41,41,20,133,10,183,39,56,33,27,46,252,109,44,77,19,13,56,83,84,115,10,101,187,10,106,118,46,201,194,129,133,44,114,146,161,232,191,162,75,102,26,168,112,139,75,194,163,81,108,199,25,232,146,209,36,6,153,214,133,53,14,244,112,160,106,16,22,193,164,25,8,108,55,30,76,119,72,39,181,188,176,52,179,12,28,57,74,170,216,78,79,202,156,91,243,111,46,104,238,130,143,116,111,99,165,120,20,120,200,132,8,2,199,140,250,255,190,144,235,108,80,164,247,163,249,190,242,120,113,198,0,65,172,10,11,1,44,0,65,184,10,11,21,4,0,0,0,16,0,0,0,32,4,0,0,32,4,0,0,0,1,0,0,64,0,65,220,10,11,2,28,1,0,65,232,10,11,136,2,1,0,0,0,0,1,0,0,152,47,138,194,145,68,55,113,207,251,192,181,165,219,181,233,91,194,86,57,241,17,241,89,164,130,63,146,213,94,28,171,152,170,7,216,1,91,131,18,190,133,49,36,195,125,12,85,116,93,190,114,254,177,222,128,167,6,220,155,116,243,155,193,193,105,155,100,134,71,254,240,198,237,225,15,84,242,12,36,111,52,233,79,190,132,201,108,30,65,185,97,250,136,249,22,82,81,198,242,109,90,142,168,101,252,25,176,199,158,217,185,195,49,18,154,160,234,14,231,43,35,177,253,176,62,53,199,213,186,105,48,95,109,151,203,143,17,15,90,253,238,30,220,137,182,53,10,4,122,11,222,157,202,244,88,22,91,93,225,134,62,127,0,128,137,8,55,50,234,7,165,55,149,171,111,16,97,64,23,241,214,140,13,109,59,170,205,55,190,187,192,218,59,97,131,99,163,72,219,49,233,2,11,167,92,209,111,202,250,26,82,49,132,51,49,149,26,212,110,144,120,67,109,242,145,156,195,189,171,204,158,230,160,201,181,60,182,47,83,198,65,199,210,163,126,35,7,104,75,149,164,118,29,25,76,0,65,252,12,11,1,44,0,65,136,13,11,21,4,0,0,0,16,0,0,0,112,5,0,0,112,5,0,0,0,1,0,0,64,0,65,172,13,11,1,44,0,65,184,13,11,35,2,0,0,0,28,0,0,0,73,0,110,0,118,0,97,0,108,0,105,0,100,0,32,0,108,0,101,0,110,0,103,0,116,0,104,0,65,220,13,11,1,60,0,65,232,13,11,45,2,0,0,0,38,0,0,0,126,0,108,0,105,0,98,0,47,0,97,0,114,0,114,0,97,0,121,0,98,0,117,0,102,0,102,0,101,0,114,0,46,0,116,0,115,0,65,156,14,11,1,60,0,65,168,14,11,47,2,0,0,0,40,0,0,0,65,0,108,0,108,0,111,0,99,0,97,0,116,0,105,0,111,0,110,0,32,0,116,0,111,0,111,0,32,0,108,0,97,0,114,0,103,0,101,0,65,220,14,11,1,60,0,65,232,14,11,37,2,0,0,0,30,0,0,0,126,0,108,0,105,0,98,0,47,0,114,0,116,0,47,0,116,0,99,0,109,0,115,0,46,0,116,0,115,0,65,156,15,11,1,60,0,65,168,15,11,37,2,0,0,0,30,0,0,0,126,0,108,0,105,0,98,0,47,0,114,0,116,0,47,0,116,0,108,0,115,0,102,0,46,0,116,0,115,0,65,252,15,11,1,60,0,65,136,16,11,43,2,0,0,0,36,0,0,0,73,0,110,0,100,0,101,0,120,0,32,0,111,0,117,0,116,0,32,0,111,0,102,0,32,0,114,0,97,0,110,0,103,0,101,0,65,188,16,11,1,44,0,65,200,16,11,33,2,0,0,0,26,0,0,0,126,0,108,0,105,0,98,0,47,0,97,0,114,0,114,0,97,0,121,0,46,0,116,0,115,0,65,236,16,11,1,124,0,65,248,16,11,107,2,0,0,0,100,0,0,0,116,0,111,0,83,0,116,0,114,0,105,0,110,0,103,0,40,0,41,0,32,0,114,0,97,0,100,0,105,0,120,0,32,0,97,0,114,0,103,0,117,0,109,0,101,0,110,0,116,0,32,0,109,0,117,0,115,0,116,0,32,0,98,0,101,0,32,0,98,0,101,0,116,0,119,0,101,0,101,0,110,0,32,0,50,0,32,0,97,0,110,0,100,0,32,0,51,0,54,0,65,236,17,11,1,60,0,65,248,17,11,45,2,0,0,0,38,0,0,0,126,0,108,0,105,0,98,0,47,0,117,0,116,0,105,0,108,0,47,0,110,0,117,0,109,0,98,0,101,0,114,0,46,0,116,0,115,0,65,172,18,11,1,28,0,65,184,18,11,9,2,0,0,0,2,0,0,0,48,0,65,204,18,11,1,92,0,65,216,18,11,79,2,0,0,0,72,0,0,0,48,0,49,0,50,0,51,0,52,0,53,0,54,0,55,0,56,0,57,0,97,0,98,0,99,0,100,0,101,0,102,0,103,0,104,0,105,0,106,0,107,0,108,0,109,0,110,0,111,0,112,0,113,0,114,0,115,0,116,0,117,0,118,0,119,0,120,0,121,0,122,0,65,172,19,11,1,92,0,65,184,19,11,79,2,0,0,0,72,0,0,0,115,0,101,0,116,0,86,0,49,0,50,0,56,0,58,0,32,0,101,0,120,0,112,0,101,0,99,0,116,0,32,0,105,0,32,0,102,0,114,0,111,0,109,0,32,0,48,0,32,0,116,0,111,0,32,0,54,0,51,0,44,0,32,0,103,0,111,0,116,0,32,0,65,140,20,11,1,28,0,65,152,20,11,1,2,0,65,172,20,11,1,60,0,65,184,20,11,51,2,0,0,0,44,0,0,0,97,0,115,0,115,0,101,0,109,0,98,0,108,0,121,0,47,0,117,0,116,0,105,0,108,0,115,0,47,0,118,0,49,0,50,0,56,0,46,0,116,0,115,0,65,236,20,11,1,92,0,65,248,20,11,79,2,0,0,0,72,0,0,0,103,0,101,0,116,0,86,0,49,0,50,0,56,0,58,0,32,0,101,0,120,0,112,0,101,0,99,0,116,0,32,0,105,0,32,0,102,0,114,0,111,0,109,0,32,0,48,0,32,0,116,0,111,0,32,0,54,0,51,0,44,0,32,0,103,0,111,0,116,0,32]),Ca={env:{abort:function(A,g,I,B){throw Error(`abort: ${A}:${g}:${I}:${B}`)}}};function Kw(A){return WebAssembly.validate(ea)?new WebAssembly.Instance(new WebAssembly.Module(ea),Ca).exports:new WebAssembly.Instance(new WebAssembly.Module(qw),Ca).exports}function Yw(A,g,I){let B=A.h0;g[0+I]=B&255,B=B>>8,g[1+I]=B&255,B=B>>8,g[2+I]=B&255,B=B>>8,g[3+I]=B&255,B=A.h1,g[4+I]=B&255,B=B>>8,g[5+I]=B&255,B=B>>8,g[6+I]=B&255,B=B>>8,g[7+I]=B&255,B=A.h2,g[8+I]=B&255,B=B>>8,g[9+I]=B&255,B=B>>8,g[10+I]=B&255,B=B>>8,g[11+I]=B&255,B=A.h3,g[12+I]=B&255,B=B>>8,g[13+I]=B&255,B=B>>8,g[14+I]=B&255,B=B>>8,g[15+I]=B&255,B=A.h4,g[16+I]=B&255,B=B>>8,g[17+I]=B&255,B=B>>8,g[18+I]=B&255,B=B>>8,g[19+I]=B&255,B=A.h5,g[20+I]=B&255,B=B>>8,g[21+I]=B&255,B=B>>8,g[22+I]=B&255,B=B>>8,g[23+I]=B&255,B=A.h6,g[24+I]=B&255,B=B>>8,g[25+I]=B&255,B=B>>8,g[26+I]=B&255,B=B>>8,g[27+I]=B&255,B=A.h7,g[28+I]=B&255,B=B>>8,g[29+I]=B&255,B=B>>8,g[30+I]=B&255,B=B>>8,g[31+I]=B&255}function bw(A,g){const I={h0:0,h1:0,h2:0,h3:0,h4:0,h5:0,h6:0,h7:0};return sQ(A,g,I),I}function sQ(A,g,I){let B=0;B|=A[3+g]&255,B=B<<8,B|=A[2+g]&255,B=B<<8,B|=A[1+g]&255,B=B<<8,B|=A[0+g]&255,I.h0=B,B=0,B|=A[7+g]&255,B=B<<8,B|=A[6+g]&255,B=B<<8,B|=A[5+g]&255,B=B<<8,B|=A[4+g]&255,I.h1=B,B=0,B|=A[11+g]&255,B=B<<8,B|=A[10+g]&255,B=B<<8,B|=A[9+g]&255,B=B<<8,B|=A[8+g]&255,I.h2=B,B=0,B|=A[15+g]&255,B=B<<8,B|=A[14+g]&255,B=B<<8,B|=A[13+g]&255,B=B<<8,B|=A[12+g]&255,I.h3=B,B=0,B|=A[19+g]&255,B=B<<8,B|=A[18+g]&255,B=B<<8,B|=A[17+g]&255,B=B<<8,B|=A[16+g]&255,I.h4=B,B=0,B|=A[23+g]&255,B=B<<8,B|=A[22+g]&255,B=B<<8,B|=A[21+g]&255,B=B<<8,B|=A[20+g]&255,I.h5=B,B=0,B|=A[27+g]&255,B=B<<8,B|=A[26+g]&255,B=B<<8,B|=A[25+g]&255,B=B<<8,B|=A[24+g]&255,I.h6=B,B=0,B|=A[31+g]&255,B=B<<8,B|=A[30+g]&255,B=B<<8,B|=A[29+g]&255,B=B<<8,B|=A[28+g]&255,I.h7=B}let Kg,rt,at,ta,ig;function Tw(A){Kg=Kw(),Kg.HAS_SIMD.valueOf(),rt=Kg.input.value,at=Kg.output.value,new Uint8Array(Kg.memory.buffer,rt,Kg.INPUT_LENGTH),ta=new Uint8Array(Kg.memory.buffer,at,Kg.PARALLEL_FACTOR*32),new Uint8Array(Kg.memory.buffer,at,32),ig=new Uint32Array(Kg.memory.buffer,rt,Kg.INPUT_LENGTH)}Tw();function vw(A,g){const I={h0:0,h1:0,h2:0,h3:0,h4:0,h5:0,h6:0,h7:0};return _w(A,g,I),I}function _w(A,g,I){ig[0]=A.h0,ig[1]=A.h1,ig[2]=A.h2,ig[3]=A.h3,ig[4]=A.h4,ig[5]=A.h5,ig[6]=A.h6,ig[7]=A.h7,ig[8]=g.h0,ig[9]=g.h1,ig[10]=g.h2,ig[11]=g.h3,ig[12]=g.h4,ig[13]=g.h5,ig[14]=g.h6,ig[15]=g.h7,Kg.digest64(rt,at),sQ(ta,0,I)}const DB={PRESET_BASE:dg.mainnet,CONFIG_NAME:"mainnet",TERMINAL_TOTAL_DIFFICULTY:BigInt("58750000000000000000000"),TERMINAL_BLOCK_HASH:iA("0x0000000000000000000000000000000000000000000000000000000000000000"),TERMINAL_BLOCK_HASH_ACTIVATION_EPOCH:1/0,MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:16384,MIN_GENESIS_TIME:1606824e3,GENESIS_FORK_VERSION:iA("0x00000000"),GENESIS_DELAY:604800,ALTAIR_FORK_VERSION:iA("0x01000000"),ALTAIR_FORK_EPOCH:74240,BELLATRIX_FORK_VERSION:iA("0x02000000"),BELLATRIX_FORK_EPOCH:144896,CAPELLA_FORK_VERSION:iA("0x03000000"),CAPELLA_FORK_EPOCH:194048,DENEB_FORK_VERSION:iA("0x04000000"),DENEB_FORK_EPOCH:269568,ELECTRA_FORK_VERSION:iA("0x05000000"),ELECTRA_FORK_EPOCH:1/0,SECONDS_PER_SLOT:12,SECONDS_PER_ETH1_BLOCK:14,MIN_VALIDATOR_WITHDRAWABILITY_DELAY:256,SHARD_COMMITTEE_PERIOD:256,ETH1_FOLLOW_DISTANCE:2048,INACTIVITY_SCORE_BIAS:4,INACTIVITY_SCORE_RECOVERY_RATE:16,EJECTION_BALANCE:16e9,MIN_PER_EPOCH_CHURN_LIMIT:4,MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT:8,CHURN_LIMIT_QUOTIENT:65536,PROPOSER_SCORE_BOOST:40,REORG_HEAD_WEIGHT_THRESHOLD:20,REORG_PARENT_WEIGHT_THRESHOLD:160,REORG_MAX_EPOCHS_SINCE_FINALIZATION:2,DEPOSIT_CHAIN_ID:1,DEPOSIT_NETWORK_ID:1,DEPOSIT_CONTRACT_ADDRESS:iA("0x00000000219ab540356cBB839Cbe05303d7705Fa"),MIN_EPOCHS_FOR_BLOCK_REQUESTS:33024,MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS:4096,BLOB_SIDECAR_SUBNET_COUNT:6,MAX_BLOBS_PER_BLOCK:6,MAX_REQUEST_BLOB_SIDECARS:768,MAX_PER_EPOCH_ACTIVATION_EXIT_CHURN_LIMIT:256e9,MIN_PER_EPOCH_CHURN_LIMIT_ELECTRA:128e9,BLOB_SIDECAR_SUBNET_COUNT_ELECTRA:9,MAX_BLOBS_PER_BLOCK_ELECTRA:9,MAX_REQUEST_BLOB_SIDECARS_ELECTRA:1152},Ow={PRESET_BASE:dg.minimal,CONFIG_NAME:"minimal",TERMINAL_TOTAL_DIFFICULTY:BigInt("115792089237316195423570985008687907853269984665640564039457584007913129638912"),TERMINAL_BLOCK_HASH:iA("0x0000000000000000000000000000000000000000000000000000000000000000"),TERMINAL_BLOCK_HASH_ACTIVATION_EPOCH:1/0,MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:64,MIN_GENESIS_TIME:1578009600,GENESIS_FORK_VERSION:iA("0x00000001"),GENESIS_DELAY:300,ALTAIR_FORK_VERSION:iA("0x01000001"),ALTAIR_FORK_EPOCH:74240,BELLATRIX_FORK_VERSION:iA("0x02000001"),BELLATRIX_FORK_EPOCH:1/0,CAPELLA_FORK_VERSION:iA("0x03000001"),CAPELLA_FORK_EPOCH:1/0,DENEB_FORK_VERSION:iA("0x04000001"),DENEB_FORK_EPOCH:1/0,ELECTRA_FORK_VERSION:iA("0x05000001"),ELECTRA_FORK_EPOCH:1/0,SECONDS_PER_SLOT:6,SECONDS_PER_ETH1_BLOCK:14,MIN_VALIDATOR_WITHDRAWABILITY_DELAY:256,SHARD_COMMITTEE_PERIOD:64,ETH1_FOLLOW_DISTANCE:16,INACTIVITY_SCORE_BIAS:4,INACTIVITY_SCORE_RECOVERY_RATE:16,EJECTION_BALANCE:16e9,MIN_PER_EPOCH_CHURN_LIMIT:2,MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT:4,CHURN_LIMIT_QUOTIENT:32,PROPOSER_SCORE_BOOST:40,REORG_HEAD_WEIGHT_THRESHOLD:20,REORG_PARENT_WEIGHT_THRESHOLD:160,REORG_MAX_EPOCHS_SINCE_FINALIZATION:2,DEPOSIT_CHAIN_ID:5,DEPOSIT_NETWORK_ID:5,DEPOSIT_CONTRACT_ADDRESS:iA("0x1234567890123456789012345678901234567890"),MIN_EPOCHS_FOR_BLOCK_REQUESTS:272,MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS:4096,BLOB_SIDECAR_SUBNET_COUNT:6,MAX_BLOBS_PER_BLOCK:6,MAX_REQUEST_BLOB_SIDECARS:768,MAX_PER_EPOCH_ACTIVATION_EXIT_CHURN_LIMIT:128e9,MIN_PER_EPOCH_CHURN_LIMIT_ELECTRA:64e9,BLOB_SIDECAR_SUBNET_COUNT_ELECTRA:9,MAX_BLOBS_PER_BLOCK_ELECTRA:9,MAX_REQUEST_BLOB_SIDECARS_ELECTRA:1152};let st;switch($C){case dg.minimal:st=Ow;break;case dg.mainnet:st=DB;break;default:st=DB}function Zw(A){const g={...st,...A};if(g.PRESET_BASE!==$C)throw new Error(`Can only create a config for the active preset: ACTIVE_PRESET=${$C} PRESET_BASE=${g.PRESET_BASE}`);return g}function vI(A,g){const I=BigInt(1)<<BigInt(A);if(g>=I)throw new Error(`index ${g} too large for depth ${A}`);return I|g}function cQ(A,g){const I=g?Number(g).toString(2):"";if(I.length>A)throw new Error("index too large for depth");return"1"+I.padStart(A,"0")}function lQ(A){if(typeof A=="string"){if(A.length===0)throw new Error(ct);return A}else{if(A<1)throw new Error(ct);return A.toString(2)}}const ct="Invalid gindex";function jw(A){let g;if(typeof A=="string"){if(!A.length)throw new Error(ct);g=A}else{if(A<1)throw new Error(ct);g=A.toString(2)}let I=1;const B=()=>{if(I===g.length)return{done:!0,value:void 0};const C=Number(g[I]);return I++,{done:!1,value:C}};return{[Symbol.iterator](){return{next:B}},remainingBitLength(){return g.length-I}}}function dI(A){return BigInt(A.reduce((g,I)=>g+I.toString(2).slice(1),"0b1"))}function tC(A){if(!Number.isSafeInteger(A)||A<0)throw new Error(`Wrong positive integer: ${A}`)}function Pw(A){if(typeof A!="boolean")throw new Error(`Expected boolean, not ${A}`)}function zw(A){return A instanceof Uint8Array||A!=null&&typeof A=="object"&&A.constructor.name==="Uint8Array"}function hQ(A,...g){if(!zw(A))throw new Error("Expected Uint8Array");if(g.length>0&&!g.includes(A.length))throw new Error(`Expected Uint8Array of length ${g}, not of length=${A.length}`)}function xw(A){if(typeof A!="function"||typeof A.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");tC(A.outputLen),tC(A.blockLen)}function iC(A,g=!0){if(A.destroyed)throw new Error("Hash instance has been destroyed");if(g&&A.finished)throw new Error("Hash#digest() has already been called")}function SQ(A,g){hQ(A);const I=g.outputLen;if(A.length<I)throw new Error(`digestInto() expects output buffer of length at least ${I}`)}const Ww={number:tC,bool:Pw,bytes:hQ,hash:xw,exists:iC,output:SQ},Vw=A=>new Uint32Array(A.buffer,A.byteOffset,Math.floor(A.byteLength/4));function Xw(A){return A instanceof Uint8Array||A!=null&&typeof A=="object"&&A.constructor.name==="Uint8Array"}const wQ=A=>new DataView(A.buffer,A.byteOffset,A.byteLength),aI=(A,g)=>A<<32-g|A>>>g;if(!(new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68))throw new Error("Non little-endian hardware is not supported");function $w(A){if(typeof A!="string")throw new Error(`utf8ToBytes expected string, got ${typeof A}`);return new Uint8Array(new TextEncoder().encode(A))}function DQ(A){if(typeof A=="string"&&(A=$w(A)),!Xw(A))throw new Error(`expected Uint8Array, got ${typeof A}`);return A}class ia{clone(){return this._cloneInto()}}function Qa(A){const g=B=>A().update(DQ(B)).digest(),I=A();return g.outputLen=I.outputLen,g.blockLen=I.blockLen,g.create=()=>A(),g}function AD(A,g,I,B){if(typeof A.setBigUint64=="function")return A.setBigUint64(g,I,B);const C=BigInt(32),e=BigInt(4294967295),i=Number(I>>C&e),t=Number(I&e),E=B?4:0,c=B?0:4;A.setUint32(g+E,i,B),A.setUint32(g+c,t,B)}class gD extends ia{constructor(g,I,B,C){super(),this.blockLen=g,this.outputLen=I,this.padOffset=B,this.isLE=C,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(g),this.view=wQ(this.buffer)}update(g){iC(this);const{view:I,buffer:B,blockLen:C}=this;g=DQ(g);const e=g.length;for(let i=0;i<e;){const t=Math.min(C-this.pos,e-i);if(t===C){const E=wQ(g);for(;C<=e-i;i+=C)this.process(E,i);continue}B.set(g.subarray(i,i+t),this.pos),this.pos+=t,i+=t,this.pos===C&&(this.process(I,0),this.pos=0)}return this.length+=g.length,this.roundClean(),this}digestInto(g){iC(this),SQ(g,this),this.finished=!0;const{buffer:I,view:B,blockLen:C,isLE:e}=this;let{pos:i}=this;I[i++]=128,this.buffer.subarray(i).fill(0),this.padOffset>C-i&&(this.process(B,0),i=0);for(let l=i;l<C;l++)I[l]=0;AD(B,C-8,BigInt(this.length*8),e),this.process(B,0);const t=wQ(g),E=this.outputLen;if(E%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const c=E/4,a=this.get();if(c>a.length)throw new Error("_sha2: outputLen bigger than state");for(let l=0;l<c;l++)t.setUint32(4*l,a[l],e)}digest(){const{buffer:g,outputLen:I}=this;this.digestInto(g);const B=g.slice(0,I);return this.destroy(),B}_cloneInto(g){g||(g=new this.constructor),g.set(...this.get());const{blockLen:I,buffer:B,length:C,finished:e,destroyed:i,pos:t}=this;return g.length=C,g.pos=t,g.finished=e,g.destroyed=i,C%I&&g.buffer.set(B),g}}const ID=(A,g,I)=>A&g^~A&I,BD=(A,g,I)=>A&g^A&I^g&I,eD=new Uint32Array([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]),_I=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),OI=new Uint32Array(64);class CD extends gD{constructor(){super(64,32,8,!1),this.A=_I[0]|0,this.B=_I[1]|0,this.C=_I[2]|0,this.D=_I[3]|0,this.E=_I[4]|0,this.F=_I[5]|0,this.G=_I[6]|0,this.H=_I[7]|0}get(){const{A:g,B:I,C:B,D:C,E:e,F:i,G:t,H:E}=this;return[g,I,B,C,e,i,t,E]}set(g,I,B,C,e,i,t,E){this.A=g|0,this.B=I|0,this.C=B|0,this.D=C|0,this.E=e|0,this.F=i|0,this.G=t|0,this.H=E|0}process(g,I){for(let l=0;l<16;l++,I+=4)OI[l]=g.getUint32(I,!1);for(let l=16;l<64;l++){const w=OI[l-15],S=OI[l-2],u=aI(w,7)^aI(w,18)^w>>>3,m=aI(S,17)^aI(S,19)^S>>>10;OI[l]=m+OI[l-7]+u+OI[l-16]|0}let{A:B,B:C,C:e,D:i,E:t,F:E,G:c,H:a}=this;for(let l=0;l<64;l++){const w=aI(t,6)^aI(t,11)^aI(t,25),S=a+w+ID(t,E,c)+eD[l]+OI[l]|0,u=(aI(B,2)^aI(B,13)^aI(B,22))+BD(B,C,e)|0;a=c,c=E,E=t,t=i+S|0,i=e,e=C,C=B,B=S+u|0}B=B+this.A|0,C=C+this.B|0,e=e+this.C|0,i=i+this.D|0,t=t+this.E|0,E=E+this.F|0,c=c+this.G|0,a=a+this.H|0,this.set(B,C,e,i,t,E,c,a)}roundClean(){OI.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Ea=Qa(()=>new CD),ie=[new Uint8Array(32)];function ZI(A){if(A>=ie.length)for(let g=ie.length;g<=A;g++)ie[g]=Ea.create().update(ie[g-1]).update(ie[g-1]).digest();return ie[A]}function QC(A){const g=new Uint8Array(32);return Yw(A,g,0),g}function tD(A){return bw(A,0)}const rg=64;function iD(A,g,I,B,C){if(g<1)throw new Error(`Invalid padFor, expect to be greater than 0, got ${g}`);const e=Math.ceil(Math.log2(g));if(A.length===0){I.set(ZI(e),B);return}if(A.length%32!==0)throw new Error(`Invalid input length, expect to be multiple of 32 bytes, got ${A.length}`);if(g>1&&A.length%rg!==0)throw new Error(`Invalid input length, expect to be multiple of 64 bytes, got ${A.length}, padFor=${g}`);let i=A.length,t=Math.floor(i/2),E=A;for(let c=0;c<e;c++){const a=A.subarray(0,t);C(E,a),Math.floor(t/32)%2===1&&c<e-1?(i=t+32,E=A.subarray(0,i),E.set(ZI(c+1),t)):(E=a,i=t),t=Math.floor(i/2)}I.set(E.subarray(0,32),B)}function QD(A,g,I,B,C,e,i){if(I<1)throw new Error(`Invalid padFor, expect to be at least 1, got ${I}`);if(g>A.length)throw new Error(`Invalid blockLimit, expect to be less than or equal blocks.length ${A.length}, got ${g}`);const t=Math.ceil(Math.log2(I));if(g===0){B.set(ZI(t),C);return}for(const S of A)if(S.length!==rg)throw new Error(`Invalid block length, expect to be 64 bytes, got ${S.length}`);if(i.length===0||i.length%(4*rg)!==0)throw new Error(`Invalid buffer length, expect to be multiple of 64 bytes, got ${i.length}`);const E=Math.floor(i.length/rg),c=Math.floor(E/2);let a=i,l=i.subarray(0,c*rg),w=g;for(let S=0;S<t;S++){let u=0;const m=Math.floor(w/E);for(let p=0;p<m;p++){for(let F=0;F<E;F++){const J=p*E+F;a.set(A[J],F*rg)}e(a,l);for(let F=0;F<c;F++)A[u].set(l.subarray(F*rg,(F+1)*rg)),u++}const L=w%E;a=i.subarray(0,L*rg),l=i.subarray(0,Math.floor(a.length/2));for(let p=Math.floor(w/E)*E;p<w;p++)a.set(A[p],p%E*rg);e(a,l);for(let p=0;p<Math.floor(l.length/rg);p++)A[u].set(l.subarray(p*rg,(p+1)*rg)),u++;l.length%rg!==0&&(A[u].set(l.subarray(l.length-32,l.length),0),A[u].set(ZI(S+1),32),u++),w=u,a=i.subarray(0,w*rg),l=i.subarray(0,Math.floor(a.length/2))}B.set(A[0].subarray(0,32),C)}function ED(A,g,I){let B=A.length;const C=Math.pow(2,g)*32;if(g<1)throw new Error(`Invalid nLevel, expect to be greater than 0, got ${g}`);if(B%C!==0)throw new Error(`Invalid input length, expect to be multiple of ${C} for nLevel ${g}, got ${B}`);let e=Math.floor(B/2),i=A;for(let t=g;t>0;t--){const E=i.subarray(0,e);I(i,E),i=E,B=e,e=Math.floor(B/2)}return i}const yQ=(A,g)=>Ea.create().update(A).update(g).digest(),uQ=(A,g)=>{if(A.length%64!==0)throw new Error(`Invalid input length ${A.length}`);if(A.length!==g.length*2)throw new Error(`Invalid output length ${g.length}`);const I=Math.floor(A.length/64);for(let B=0;B<I;B++){const C=B*64,e=A.subarray(C,C+32),i=A.subarray(C+32,C+64),t=yQ(e,i);g.set(t,B*32)}},oD=new Uint8Array(4*rg);let EC={name:"noble",digest64:yQ,digest64HashObjects:(A,g,I)=>{sQ(yQ(QC(A),QC(g)),0,I)},merkleizeBlocksBytes(A,g,I,B){return iD(A,g,I,B,uQ)},merkleizeBlockArray(A,g,I,B,C){return QD(A,g,I,B,C,uQ,oD)},digestNLevel(A,g){return ED(A,g,uQ)},executeHashComputations:A=>{for(let g=A.length-1;g>=0;g--){const I=A[g];if(!I)throw Error(`no hash computations for level ${g}`);for(const B of I)B.dest.applyHash(vw(B.src0,B.src1))}}};function nD(A){EC.executeHashComputations(A)}const oa=2**32;class fQ{constructor(g,I,B,C,e,i,t,E){N(this,"h0");N(this,"h1");N(this,"h2");N(this,"h3");N(this,"h4");N(this,"h5");N(this,"h6");N(this,"h7");this.h0=g,this.h1=I,this.h2=B,this.h3=C,this.h4=e,this.h5=i,this.h6=t,this.h7=E}applyHash(g){this.h0=g.h0,this.h1=g.h1,this.h2=g.h2,this.h3=g.h3,this.h4=g.h4,this.h5=g.h5,this.h6=g.h6,this.h7=g.h7}}class bA extends fQ{constructor(I,B){super(null,0,0,0,0,0,0,0);N(this,"_left");N(this,"_right");if(this._left=I,this._right=B,!I)throw new Error("Left node is undefined");if(!B)throw new Error("Right node is undefined")}get rootHashObject(){return this.h0===null&&EC.digest64HashObjects(this.left.rootHashObject,this.right.rootHashObject,this),this}get root(){return QC(this.rootHashObject)}get left(){return this._left}get right(){return this._right}isLeaf(){return!1}}class TA extends fQ{get rootHashObject(){return this}get root(){return QC(this)}get left(){throw Error("LeafNode has no left node")}get right(){throw Error("LeafNode has no right node")}static fromRoot(g){return this.fromHashObject(tD(g))}static fromHashObject(g){return new TA(g.h0,g.h1,g.h2,g.h3,g.h4,g.h5,g.h6,g.h7)}static fromZero(){return new TA(0,0,0,0,0,0,0,0)}static fromUint32(g){return new TA(g,0,0,0,0,0,0,0)}clone(){return TA.fromHashObject(this)}isLeaf(){return!0}writeToBytes(g,I,B){g.set(this.root.slice(0,B),I)}getUint(g,I,B){const C=Math.floor(I/4);if(g<4){const e=I%4*8,i=Xg(this,C);return g===1?255&i>>e:65535&i>>e}else{if(g===4)return Xg(this,C)>>>0;if(g===8){const e=Xg(this,C),i=Xg(this,C+1);return i===0?e>>>0:i===-1&&e===-1&&B?1/0:(e>>>0)+(i>>>0)*oa}else throw Error("uintBytes > 8")}}getUintBigint(g,I){const B=Math.floor(I/4);if(g<4){const C=I%4*8,e=Xg(this,B);return BigInt(g===1?255&e>>C:65535&e>>C)}else{if(g===4)return BigInt(Xg(this,B)>>>0);{const C=Math.ceil(g/4);let e=BigInt(0);for(let i=0;i<C;i++)e+=BigInt(Xg(this,B+i)>>>0)<<BigInt(32*i);return e}}}setUint(g,I,B,C){const e=Math.floor(I/4);if(g<4){const i=I%4*8;let t=Xg(this,e);g===1?(t&=~(255<<i),t|=B<<i):(t&=~(65535<<i),t|=B<<i),yg(this,e,t)}else if(g===4)yg(this,e,B);else if(g===8)B===1/0&&C?(yg(this,e,-1),yg(this,e+1,-1)):(yg(this,e,B&4294967295),yg(this,e+1,B/oa&4294967295));else throw Error("uintBytes > 8")}setUintBigint(g,I,B){const C=Math.floor(I/4);if(g<4){const e=Number(B),i=I%4*8;let t=Xg(this,C);g===1?(t&=~(255<<i),t|=e<<i):(t&=~(65535<<i),t|=e<<i),yg(this,C,t)}else if(g===4)yg(this,C,Number(B));else{const e=C+Math.ceil(g/4);for(let i=C;i<e;i++)yg(this,i,Number(B&BigInt(4294967295))),B=B>>BigInt(32)}}bitwiseOrUint(g,I,B){const C=Math.floor(I/4);if(g<4){const e=I%4*8;pQ(this,C,B<<e)}else if(g===4)pQ(this,C,B);else{const e=C+Math.ceil(g/4);for(let i=C;i<e;i++)pQ(this,i,B&4294967295),B>>=32}}}function Xg(A,g){if(g===0)return A.h0;if(g===1)return A.h1;if(g===2)return A.h2;if(g===3)return A.h3;if(g===4)return A.h4;if(g===5)return A.h5;if(g===6)return A.h6;if(g===7)return A.h7;throw Error("hIndex > 7")}function yg(A,g,I){if(g===0)A.h0=I;else if(g===1)A.h1=I;else if(g===2)A.h2=I;else if(g===3)A.h3=I;else if(g===4)A.h4=I;else if(g===5)A.h5=I;else if(g===6)A.h6=I;else if(g===7)A.h7=I;else throw Error("hIndex > 7")}function pQ(A,g,I){if(g===0)A.h0|=I;else if(g===1)A.h1|=I;else if(g===2)A.h2|=I;else if(g===3)A.h3|=I;else if(g===4)A.h4|=I;else if(g===5)A.h5|=I;else if(g===6)A.h6|=I;else if(g===7)A.h7|=I;else throw Error("hIndex > 7")}class rD{constructor(){N(this,"_length");N(this,"_totalLength");N(this,"head");N(this,"tail");N(this,"pointer");this._length=0,this._totalLength=0,this.head={src0:null,src1:null,dest:null,next:null},this.tail=null,this.pointer=null}get length(){return this._length}get totalLength(){return this._totalLength}reset(){this.head.src0=null,this.head.src1=null,this.head.dest=null,this.tail=null,this._length=0,this.pointer=null}push(g,I,B){if(this.tail!==null){let C=this.tail.next;C!==null?(C.src0=g,C.src1=I,C.dest=B):(C={src0:g,src1:I,dest:B,next:null},this.tail.next=C,this._totalLength++),this.tail=C,this._length++;return}this.head.src0=g,this.head.src1=I,this.head.dest=B,this.tail=this.head,this._length=1,this._totalLength===0&&(this._totalLength=1)}clean(){var I;let g=((I=this.tail)==null?void 0:I.next)??null;for(;g!==null&&g.src0!==null;)g.src0=null,g.src1=null,g.dest=null,g=g.next}next(){if(!this.pointer||this.tail===null)return{done:!0,value:void 0};const g=this.pointer,I=g.src0===null;return this.pointer=this.pointer.next,I?{done:!0,value:void 0}:{done:!1,value:g}}[Symbol.iterator](){return this.pointer=this.head,this}toArray(){const g=[];for(const I of this)g.push(I);return g}dump(){const g=[];let I=null;for(I=this.head;I!==null;I=I.next)g.push(I);return g}}class aD{constructor(){N(this,"byLevel");this.byLevel=[]}reset(){for(const g of this.byLevel)g.reset()}clean(){for(const g of this.byLevel)g.clean()}}function ag(A,g,I){if(A.h0===null){const B=$g(I,g),{left:C,right:e}=A;B.push(C,e,A),ag(C,g+1,I),ag(e,g+1,I)}}function $g(A,g){return A[g]===void 0&&(A[g]=new rD),A[g]}const yB=[TA.fromZero()];function uB(A){if(A>=yB.length){for(let g=yB.length;g<=A;g++)yB[g]=new bA(yB[g-1],yB[g-1]);yB[A].root}return yB[A]}function oC(A,g,I=0,B=null){const C=2**g;if(A.length>C)throw new Error(`nodes.length ${A.length} over maxIndex at depth ${g}`);if(A.length===0)return uB(g);if(g===0){const i=A[0];return B!==null&&ag(i,I,B),i}if(g===1){const i=A[0],t=A.length>1?A[1]:uB(0),E=new bA(i,t);return B!==null&&(ag(i,I+1,B),ag(t,I+1,B),$g(B,I).push(i,t,E)),E}let e=A.length;for(let i=g;i>0;i--){const t=e%2,E=e-t,c=B?I+i-1:null;for(let a=0;a<E;a+=2){const l=A[a],w=A[a+1],S=new bA(l,w);A[a/2]=S,c!==null&&B!==null&&($g(B,c).push(l,w,S),i===g&&(ag(l,c+1,B),ag(w,c+1,B)))}if(t>0){const a=A[E],l=uB(g-i),w=new bA(a,l);A[E/2]=w,c!==null&&B!==null&&(i===g&&ag(a,c+1,B),$g(B,c).push(a,l,w))}e=E/2+t}return A[0]}const sD=2**32;function nC(A,g,I,B){const C=lD(g,I,B);return oC(C,A)}function cD(A){const g=new Array(Math.ceil(A.length/4));for(let I=0;I<A.length;I++){const B=Math.floor(I/4),C=g[B]??new TA(0,0,0,0,0,0,0,0),e=2*(I%4),i=A[I];i===1/0?(yg(C,e,4294967295),yg(C,e+1,4294967295)):(yg(C,e,i&4294967295),yg(C,e+1,i/sD&4294967295)),g[B]=C}return g}function lD(A,g,I){const B=I-g,C=Math.floor(B/32),e=new Array(Math.ceil(B/32));for(let t=0;t<C;t++){const E=g+t*32;e[t]=new TA(A.getInt32(E+0,!0),A.getInt32(E+4,!0),A.getInt32(E+8,!0),A.getInt32(E+12,!0),A.getInt32(E+16,!0),A.getInt32(E+20,!0),A.getInt32(E+24,!0),A.getInt32(E+28,!0))}const i=B%32;if(i>0){const t=new TA(0,0,0,0,0,0,0,0);e[C]=t;const E=Math.floor(i/4);for(let a=0;a<E;a++)yg(t,a,A.getInt32(g+C*32+a*4,!0));const c=B%4;if(c>0){let a=0;for(let l=0;l<c;l++)a|=A.getUint8(g+B-c+l)<<l*8;yg(t,E,a)}}return e}function rC(A,g,I,B){const C=I%32,e=Math.floor(I/32);for(let i=0;i<e;i++){const t=B[i],E=g+i*32;A.setInt32(E+0,t.h0,!0),A.setInt32(E+4,t.h1,!0),A.setInt32(E+8,t.h2,!0),A.setInt32(E+12,t.h3,!0),A.setInt32(E+16,t.h4,!0),A.setInt32(E+20,t.h5,!0),A.setInt32(E+24,t.h6,!0),A.setInt32(E+28,t.h7,!0)}if(C>0){const i=B[e],t=Math.floor(C/4);for(let c=0;c<t;c++)A.setInt32(g+e*32+c*4,Xg(i,c),!0);const E=I%4;if(E>0){const c=Xg(i,t);for(let a=0;a<E;a++)A.setUint8(g+I-E+a,c>>a*8&255)}}}const na="Invalid tree navigation";function ra(A,g){const I=[];let B=A;for(const C of jw(g))if(C){if(B.isLeaf())throw new Error(na);I.push(B.left.root),B=B.right}else{if(B.isLeaf())throw new Error(na);I.push(B.right.root),B=B.left}return[B.root,I.reverse()]}function hD(A,g,I){let B=TA.fromRoot(g);const C=I.slice().reverse();for(;A>1;){const e=TA.fromRoot(C.pop());A%BigInt(2)===BigInt(0)?B=new bA(B,e):B=new bA(e,B),A=A/BigInt(2)}return B}class kg{constructor(g,I){N(this,"_rootNode");N(this,"hook");this._rootNode=g,I&&(typeof WeakRef>"u"?this.hook=I:this.hook=new WeakRef(I))}get root(){return this.rootNode.root}get rootNode(){return this._rootNode}set rootNode(g){if(this._rootNode=g,this.hook)if(typeof WeakRef>"u")this.hook(g);else{const I=this.hook.deref();I?I(g):this.hook=void 0}}static createFromProof(g){return new kg(mD(g))}clone(){return new kg(this.rootNode)}getSubtree(g){return new kg(this.getNode(g),I=>this.setNode(g,I))}getNode(g){return aC(this.rootNode,g)}getNodeAtDepth(g,I){return Yg(this.rootNode,g,I)}getRoot(g){return this.getNode(g).root}setNode(g,I){this.rootNode=SD(this.rootNode,g,I)}setNodeWithFn(g,I){this.rootNode=wD(this.rootNode,g,I)}setNodeAtDepth(g,I,B){this.rootNode=DD(this.rootNode,g,I,B)}setRoot(g,I){this.setNode(g,TA.fromRoot(I))}getNodesAtDepth(g,I,B){return sg(this.rootNode,g,I,B)}iterateNodesAtDepth(g,I,B){return yD(this.rootNode,g,I,B)}getSingleProof(g){return ra(this.rootNode,g)[1]}getProof(g){return wa(this.rootNode,g)}}function aC(A,g){const I=lQ(g);let B=A;for(let C=1;C<I.length;C++){if(B.isLeaf())throw new Error(`Invalid tree - found leaf at depth ${C}`);B=I[C]==="1"?B.right:B.left}return B}function SD(A,g,I){const B=lQ(g),C=aa(A,B);return sa(B,C,I)}function wD(A,g,I){const B=lQ(g),C=aa(A,B),e=C[C.length-1],i=B[B.length-1]==="1"?e.right:e.left,t=I(i);return sa(B,C,t)}function aa(A,g){let I=A;const B=[A];for(let C=1;C<g.length-1;C++)g[C]==="1"?I=I.right:I=I.left,B.push(I);return B}function sa(A,g,I){let B=I;for(let C=A.length-1;C>=1;C--)A[C]==="1"?B=new bA(g[C-1].left,B):B=new bA(B,g[C-1].right);return B}function Yg(A,g,I){if(g===0)return A;if(g===1)return I===0?A.left:A.right;const B=g-1,C=0;let e=A;for(let i=B;i>=C;i--)e=fB(i,I)?e.left:e.right;return e}function DD(A,g,I,B){return sC(A,g,[I],[B])}function sC(A,g,I,B,C=0,e=null){if(g===0)return B.length>0?B[0]:A;const i=new Array(g),t=new Array(g),E=g-1,c=0;let a=E,l=A;i[E]=A;for(let w=0;w<I.length;w++){const S=I[w];for(let L=a;L>c;L--)l=fB(L,S)?l.left:l.right,i[L-1]=l;if(a=c,(S&1)!==1)if(S+1===I[w+1])l=new bA(B[w],B[w+1]),e!=null&&$g(e,g-1+C).push(B[w],B[w+1],l),w++;else{const L=l;l=new bA(B[w],L.right),e!=null&&$g(e,g-1+C).push(B[w],L.right,l)}else{const L=l;l=new bA(L.left,B[w]),e!=null&&$g(e,g-1+C).push(L.left,B[w],l)}const u=w>=I.length-1,m=u?E:uD(S,I[w+1]);for(let L=c+1;L<=m;L++){const p=g-L-1;if(p<0)throw Error(`Invalid depth ${p}, d=${L}, nodesDepth=${g}`);if(fB(L,S))if(u||L!==m){const F=l;l=new bA(F,i[L].right),e!=null&&$g(e,p+C).push(F,i[L].right,l)}else t[L]=l,l=i[L];else{const F=t[L];if(F!==void 0){const J=l;l=new bA(F,J),e!=null&&$g(e,p+C).push(F,J,l),t[L]=void 0}else{const J=l;l=new bA(i[L].left,J),e!=null&&$g(e,p+C).push(i[L].left,J,l)}}}a=m}return l}function sg(A,g,I,B){if(g===0)return I===0&&B>0?[A]:[];if(g===1)return B===0?[]:B===1?I===0?[A.left]:[A.right]:[A.left,A.right];const C=g-1,e=0;let i=C,t=A;const E=new Array(g),c=new Array(g),a=new Array(B);E[C]=A;for(let l=0;l<B;l++){for(let w=i;w>=e;w--){w!==i&&(E[w]=t);const S=fB(w,I+l);c[w]=S,t=S?t.left:t.right}a[l]=t;for(let w=e;w<=C;w++)if(c[w]===!0){i=w;break}t=E[i]}return a}function*yD(A,g,I,B){const C=I+B,e=g-1,i=0;let t=e,E=A;const c=new Array(g),a=new Array(g);c[e]=A;for(let l=I;l<C;l++){for(let w=t;w>=i;w--){w!==t&&(c[w]=E);const S=fB(w,l);a[w]=S,E=S?E.left:E.right}yield E;for(let w=i;w<=e;w++)if(a[w]===!0){t=w;break}E=c[t]}}function ca(A,g,I){if(I<0)return uB(g);const B=new Array(g),C=g-1,e=0;let i=C,t=A;B[C]=A;for(let E=i;E>=e;E--)t=fB(E,I)?t.left:t.right,B[E-1]=t;i=e;for(let E=e;E<=C;E++)fB(E,I)?t=new bA(t,uB(E)):t=new bA(B[E].left,t);return t}const lt=4294967295,la=2**32;function uD(A,g){if(A===g||A<0||g<0)throw Error(`Expect different positive inputs, from=${A} to=${g}`);const I=Math.ceil(Math.log2(A+1)),B=Math.ceil(Math.log2(g+1));if(I!==B)return Math.max(I,B)-1;if(I>32){const C=Math.floor(A/la)<,e=Math.floor(g/la)<return C===e?FQ(A<,g<):32+FQ(C,e)}return FQ(A,g)}function fB(A,g){if(A>31){const B=g/4294967296>>>0,C=1<<A-32;return(B&C)!==C}const I=1<<A;return(g&I)!==I}function FQ(A,g){const I=A^g;if(I===0)throw Error(`Do not support equal value from=${A} to=${g}`);return(I<0?32:Math.ceil(Math.log2(I+1)))-1}function fD(A){const g=new Set,I=new Set;let B=A;for(;B.length>1;){g.add(B);const C=B[B.length-1],e=B.substring(0,B.length-1);I.add(e+(Number(C)^1)),B=e}return{path:g,branch:I}}function pD(A,g){return A.length?A.map(I=>I.padEnd(g)).sort().map(I=>I.trim()):[]}function FD(A){return A.length?A.sort((g,I)=>{if(g.length<I.length)return 1;if(I.length<g.length)return-1;let B=g.indexOf("0"),C=I.indexOf("0");for(;;){if(B===-1)return-1;if(C===-1||B<C)return 1;if(C<B)return-1;B=g.indexOf("0",B+1),C=I.indexOf("0",C+1)}}):[]}function dD(A){const g=A.slice().sort((B,C)=>B.length-C.length),I=[];A:for(let B=0;B<g.length;B++){const C=g[B];for(let e=B+1;e<g.length;e++)if(g[e].startsWith(C))continue A;I.push(C)}return I}var jI;(function(A){A[A.InOrder=0]="InOrder",A[A.Decreasing=1]="Decreasing",A[A.Unsorted=2]="Unsorted"})(jI||(jI={}));function dQ(A,g=!0,I=jI.InOrder){const B=dD(A),C=new Set(g?B:[]),e=new Set,i=new Set;let t=1;for(const E of B){E.length>t&&(t=E.length);const{path:c,branch:a}=fD(E);c.forEach(l=>e.add(l)),a.forEach(l=>i.add(l))}switch(e.forEach(E=>i.delete(E)),i.forEach(E=>C.add(E)),I){case jI.InOrder:return pD(Array.from(C),t);case jI.Decreasing:return FD(Array.from(C));case jI.Unsorted:return Array.from(C)}}function GD(A,g){const I=new kg(A),B=dQ(g.map(t=>t.toString(2)),!1,jI.Decreasing),C=g.slice().sort((t,E)=>t<E?1:-1),e=C.map(t=>I.getRoot(t)),i=B.map(t=>I.getRoot(t));return[e,i,C]}function ND(A,g,I){var E,c;if(A.length!==I.length)throw new Error("Leaves length should equal gindices length");const B=I.map(a=>a.toString(2)),C=dQ(B,!1,jI.Decreasing);if(C.length!==g.length)throw new Error("Witnesses length should equal witnesses gindices length");const e=Math.max(((E=B[0])==null?void 0:E.length)??0,((c=C[0])==null?void 0:c.length)??0),i=Object.fromEntries(Array.from({length:e},(a,l)=>[l+1,{}]));for(let a=0;a<B.length;a++){const l=B[a],w=A[a];i[l.length][l]=TA.fromRoot(w)}for(let a=0;a<C.length;a++){const l=C[a],w=g[a];i[l.length][l]=TA.fromRoot(w)}for(let a=e;a>1;a--){const l=i[a],w=i[a-1];for(const S of Object.keys(l)){const u=l[S];if(!u)continue;const m=S[S.length-1]==="0",L=S.substring(0,S.length-1),p=L+(m?"1":"0"),F=l[p];if(!F)throw new Error(`Sibling not found: ${p}`);const J=m?new bA(u,F):new bA(F,u);w[L]=J,delete l[S],delete l[p]}}const t=i[1][1];if(!t)throw new Error("Internal consistency error: no root found");return t}function ha(A,g){const I=g%8,B=Math.floor(g/8),C=A[B];switch(I){case 0:return(C&128)!==0;case 1:return(C&64)!==0;case 2:return(C&32)!==0;case 3:return(C&16)!==0;case 4:return(C&8)!==0;case 5:return(C&4)!==0;case 6:return(C&2)!==0;case 7:return(C&1)!==0;default:throw new Error("unreachable")}}function Sa(A){const g=[],I=A.length*8;let B=0,C=0;for(let e=0;e<I;e++){const i=ha(A,e);if(g.push(i),i?C++:B++,C>B){if(e++,e+7<I)throw new Error("Invalid descriptor: too many bytes");for(;e<I;e++)if(ha(A,e))throw new Error("Invalid descriptor: too many 1 bits");return g}}throw new Error("Invalid descriptor: not enough 1 bits")}function GQ(A,g,I){if(g[I])return[A.root];{const B=GQ(A.left,g,I+1),C=GQ(A.right,g,I+B.length*2);return[...B,...C]}}function NQ(A,g,I){return A[I.bitIndex++]?TA.fromRoot(g[I.leafIndex++]):new bA(NQ(A,g,I),NQ(A,g,I))}function kD(A,g){return GQ(A,Sa(g),0)}function RD(A,g){const I=Sa(g);if(I.length!==A.length*2-1)throw new Error("Invalid multiproof: invalid number of leaves");return NQ(I,A,{bitIndex:0,leafIndex:0})}function kQ(A,g,I){if(!I.length||!I[0].startsWith(g))return[[],[]];if(g===I[0])return I.shift(),[[],[A.root]];{const[B,C]=kQ(A.left,g+"0",I),[e,i]=kQ(A.right,g+"1",I);return[[C.length].concat(B,e),C.concat(i)]}}function RQ(A,g){if(g.length){if(g.length===1)return TA.fromRoot(g[0]);{const I=A[0];return new bA(RQ(A.slice(1,I),g.slice(0,I)),RQ(A.slice(I),g.slice(I)))}}else throw new Error("Proof must contain gt 0 leaves")}function UD(A,g){return kQ(A,"1",dQ(g.map(I=>I.toString(2))))}function LD(A,g){return RQ(A,g)}var vA;(function(A){A.single="single",A.treeOffset="treeOffset",A.multi="multi",A.compactMulti="compactMulti"})(vA||(vA={})),vA.single,vA.treeOffset,vA.multi,vA.compactMulti;function wa(A,g){switch(g.type){case vA.single:{const[I,B]=ra(A,g.gindex);return{type:vA.single,gindex:g.gindex,leaf:I,witnesses:B}}case vA.treeOffset:{const[I,B]=UD(A,g.gindices);return{type:vA.treeOffset,offsets:I,leaves:B}}case vA.multi:{const[I,B,C]=GD(A,g.gindices);return{type:vA.multi,leaves:I,witnesses:B,gindices:C}}case vA.compactMulti:{const I=kD(A,g.descriptor);return{type:vA.compactMulti,leaves:I,descriptor:g.descriptor}}default:throw new Error("Invalid proof type")}}function mD(A){switch(A.type){case vA.single:return hD(A.gindex,A.leaf,A.witnesses);case vA.treeOffset:return LD(A.offsets,A.leaves);case vA.multi:return ND(A.leaves,A.witnesses,A.gindices);case vA.compactMulti:return RD(A.leaves,A.descriptor);default:throw new Error("Invalid proof type")}}function HD(A,g,I){if(I<0)throw new Error(`Expect count to be non-negative, got ${I}`);return{finalized:(I>0?JD(g,I-1):[]).map(B=>aC(A,B).root),count:I}}function JD(A,g){if(g<0||A<0)throw new Error(`Expect index and depth to be non-negative, got ${g} and ${A}`);const I=Array.from({length:A+1},()=>0);let B=g+1;const C=[];for(;B>0;){const e=Math.floor(Math.log2(B)),i=2**e,t=A-e,E=vI(t,BigInt(I[t]));C.push(E);for(let c=0;c<=e;c++)I[t+c]+=Math.pow(2,c);B-=i}return C}const pB=Symbol("ssz_cached_permanent_root");function UQ(A,g){return EC.digest64(A,g)}function MD(A,g){const I=Da(qD(g)-1);if(A.length==0)return ZI(I);let B=A.length;for(let C=0;C<I;C++){const e=B%2,i=B+e;for(let t=0;t<e;t++)A[B+t]=ZI(C);for(let t=0;t<i;t+=2)A[t/2]=UQ(A[t],A[t+1]);B=i/2}return A[0]}function ht(A){const g=Math.ceil(A.length/32),I=new Array(g);for(let B=0;B<g;B++){const C=new Uint8Array(32);C.set(A.slice(B*32,(B+1)*32)),I[B]=C}return I}function St(A,g){const I=MA.alloc(32);return I.writeUIntLE(g,0,6),UQ(A,I)}function Da(A){return A===0?0:Math.floor(Math.log2(A))+1}function GI(A){return A===0?0:Math.ceil(Math.log2(A))}function qD(A){return A<=0?1:Math.pow(2,Da(A-1))}function Rg(A,g){return new Function("superClass",`return class ${g} extends superClass {}`)(A)}function FB(A){return A.right.getUint(4,0)}function ya(A){return A.left}function dB(A,g){return new bA(A,TA.fromUint32(g))}function ua(A,g,I,B=0,C=null){const e=I!==null?TA.fromUint32(I):A.right,i=new bA(g,e);return C!==null&&$g(C,B).push(g,e,i),i}function wt(A,g,I,B,C){const e=A.byteLength;for(let i=0;i<g;i++)A.value_serializeToBytes(I,B+i*e,C[i]);return B+g*e}function fa(A,g,I,B,C){const e=A.byteLength,i=(B-I)/e;Dt(i,C,!0);const t=new Array(i);for(let E=0;E<i;E++)t[E]=A.value_deserializeFromBytes(g,I+E*e,I+(E+1)*e);return t}function LQ(A,g,I,B,C,e,i=null){const t=A.byteLength*g,E=Math.ceil(t/32),c=i??sg(e,I,0,E);return rC(B.dataView,C,t,c),C+t}function pa(A,g,I,B,C,e){const i=(C-B)/A.byteLength;Dt(i,e,!0);const t=nC(g,I.dataView,B,C);return e.isList?dB(t,i):t}function KD(A,g,I){if(!Array.isArray(g))throw Error("JSON is not an array");Dt(g.length,I);const B=new Array(g.length);for(let C=0;C<g.length;C++)B[C]=A.fromJson(g[C]);return B}function YD(A,g,I){const B=I.isList?g.length:I.length,C=new Array(B);for(let e=0;e<B;e++)C[e]=A.toJson(g[e]);return C}function bD(A,g){const I=new Array(g.length);for(let B=0;B<g.length;B++)I[B]=A.clone(g[B]);return I}function TD(A,g,I){if(g.length!==I.length)return!1;for(let B=0;B<g.length;B++)if(!A.equals(g[B],I[B]))return!1;return!0}function vD(A,g){const I=new Array(g);for(let B=0;B<g;B++)I[B]=A.defaultValue();return I}function Dt(A,g,I){if(I&&A%1!==0)throw Error("size not multiple of element fixedSize");if(g.isList){if(A>g.limit)throw new Error(`Invalid list length ${A} over limit ${g.limit}`)}else if(A!==g.length)throw new Error(`Incorrect vector length ${A} expected ${g.length}`)}const mQ=new Array(256);class NI{constructor(g,I){N(this,"uint8Array");N(this,"bitLen");if(this.uint8Array=g,this.bitLen=I,g.length!==Math.ceil(I/8))throw Error("BitArray uint8Array length does not match bitLen")}static fromBitLen(g){return new NI(new Uint8Array(Math.ceil(g/8)),g)}static fromSingleBit(g,I){const B=NI.fromBitLen(g);return B.set(I,!0),B}static fromBoolArray(g){const I=NI.fromBitLen(g.length);for(let B=0;B<g.length;B++)g[B]===!0&&I.set(B,!0);return I}clone(){return new NI(Uint8Array.prototype.slice.call(this.uint8Array,0),this.bitLen)}get(g){const I=Math.floor(g/8),B=1<<g%8;return(this.uint8Array[I]&B)===B}set(g,I){if(g>=this.bitLen)throw Error(`BitArray set bitIndex ${g} beyond bitLen ${this.bitLen}`);const B=Math.floor(g/8),C=1<<g%8;let e=this.uint8Array[B];I?(e|=C,this.uint8Array[B]=e):(e&C)===C&&(e^=C,this.uint8Array[B]=e)}mergeOrWith(g){if(g.bitLen!==this.bitLen)throw Error("Must merge BitArrays of same bitLen");for(let I=0;I<this.uint8Array.length;I++)this.uint8Array[I]=this.uint8Array[I]|g.uint8Array[I]}intersectValues(g){const I=[];if(g.length!==this.bitLen)throw Error(`Must not intersect values of length ${g.length} != bitLen ${this.bitLen}`);const B=Math.floor(this.bitLen/8),C=this.bitLen%8,e=this.uint8Array;for(let i=0;i<B;i++){const t=yt(e[i]);for(let E=0;E<8;E++)t[E]&&I.push(g[i*8+E])}if(C>0){const i=yt(e[B]);for(let t=0;t<C;t++)i[t]&&I.push(g[B*8+t])}return I}getTrueBitIndexes(){const g=[],I=this.uint8Array;for(let B=0,C=I.length;B<C;B++){const e=yt(I[B]);for(let i=0;i<8;i++)e[i]&&g.push(B*8+i)}return g}getSingleTrueBit(){let g=null;const I=this.uint8Array;for(let B=0,C=I.length;B<C;B++){if(I[B]===0)continue;const e=yt(I[B]);for(let i=0;i<8;i++)if(e[i]===!0){if(g!==null)return null;g=B*8+i}}return g===null?null:g}toBoolArray(){const g=new Array(this.bitLen);for(let I=0;I<this.bitLen;I++)g[I]=this.get(I);return g}}function yt(A){return mQ[A]||(mQ[A]=_D(A)),mQ[A]}function _D(A){const g=A.toString(2),I=g.length,B=new Array(8);for(let C=0;C<8;C++)B[C]=C<I?g[I-C-1]==="1":!1;return B}const HQ=new Array(256);function Fa(A){let g="0x";for(const I of A)HQ[I]||(HQ[I]=I<16?"0"+I.toString(16):I.toString(16)),g+=HQ[I];return g}function da(A){if(typeof A!="string")throw new Error(`hex argument type ${typeof A} must be of type string`);if(A.startsWith("0x")&&(A=A.slice(2)),A.length%2!==0)throw new Error(`hex string length ${A.length} must be multiple of 2`);const g=A.length/2,I=new Uint8Array(g);for(let B=0;B<g;B++){const C=parseInt(A.slice(B*2,(B+1)*2),16);I[B]=C}return I}function kI(A,g){if(A.length!==g.length)return!1;for(let I=0;I<A.length;I++)if(A[I]!==g[I])return!1;return!0}function Ga(A){return!A.isBasic}function ut(A,g,I="",B=0){if(B===0){const e=g.tree_fromProofNode(A);if(e.done)return e.node;A=e.node}const C=g.depth===B;if(A.isLeaf())if(C){const e=g.getIndexProperty(Na(I));if(e===null)return A;const i=g.getPropertyType(e);return i.maxChunkCount===1&&Ga(i)?i.tree_fromProofNode(A).node:A}else return A;else if(C){const e=g.getIndexProperty(Na(I));if(e===null)return A;const i=g.getPropertyType(e);if(!Ga(i))throw Error("BranchNode does not map to CompositeType");const t=i.tree_fromProofNode(A);return t.done?t.node:ut(t.node,i)}else{const e=ut(A.left,g,I+"0",B+1),i=ut(A.right,g,I+"1",B+1);return e===A.left&&i===A.right?A:new bA(e,i)}}function Na(A){return A===""?0:parseInt(A,2)}class ka{value_toTree(g){const I=new Uint8Array(this.value_serializedSize(g)),B=new DataView(I.buffer,I.byteOffset,I.byteLength);return this.value_serializeToBytes({uint8Array:I,dataView:B},0,g),this.tree_deserializeFromBytes({uint8Array:I,dataView:B},0,I.length)}tree_toValue(g){const I=new Uint8Array(this.tree_serializedSize(g)),B=new DataView(I.buffer,I.byteOffset,I.byteLength);return this.tree_serializeToBytes({uint8Array:I,dataView:B},0,g),this.value_deserializeFromBytes({uint8Array:I,dataView:B},0,I.length)}serialize(g){const I=new Uint8Array(this.value_serializedSize(g)),B=new DataView(I.buffer,I.byteOffset,I.byteLength);return this.value_serializeToBytes({uint8Array:I,dataView:B},0,g),I}deserialize(g){const I=new DataView(g.buffer,g.byteOffset,g.byteLength);return this.value_deserializeFromBytes({uint8Array:g,dataView:I},0,g.length)}}const JQ=BigInt(3);class ft extends ka{constructor(I){super();N(this,"cachePermanentRootStruct");N(this,"isBasic",!1);this.cachePermanentRootStruct=I}defaultView(){return this.toView(this.defaultValue())}defaultViewDU(){return this.toViewDU(this.defaultValue())}deserializeToView(I){const B=new DataView(I.buffer,I.byteOffset,I.byteLength),C=this.tree_deserializeFromBytes({uint8Array:I,dataView:B},0,I.length);return this.getView(new kg(C))}deserializeToViewDU(I){const B=new DataView(I.buffer,I.byteOffset,I.byteLength),C=this.tree_deserializeFromBytes({uint8Array:I,dataView:B},0,I.length);return this.getViewDU(C)}toView(I){const B=this.value_toTree(I);return this.getView(new kg(B))}toViewDU(I){const B=this.value_toTree(I);return this.getViewDU(B)}toValueFromView(I){const B=this.commitView(I);return this.tree_toValue(B)}toValueFromViewDU(I){const B=this.commitViewDU(I);return this.tree_toValue(B)}toViewFromViewDU(I){const B=this.commitViewDU(I);return this.getView(new kg(B))}toViewDUFromView(I){const B=this.commitView(I);return this.getViewDU(B)}hashTreeRoot(I){if(this.cachePermanentRootStruct){const C=I[pB];if(C)return C}const B=MD(this.getRoots(I),this.maxChunkCount);return this.cachePermanentRootStruct&&(I[pB]=B),B}getCachedPermanentRoot(I){return I[pB]}createFromProof(I,B){const C=kg.createFromProof(I).rootNode,e=ut(C,this);if(B!==void 0&&!kI(e.root,B))throw new Error("Proof does not match trusted root");return this.getView(new kg(e))}tree_createProof(I,B){const C=this.tree_createProofGindexes(I,B);return wa(I,{type:vA.treeOffset,gindices:C})}tree_createProofGindexes(I,B){const C=[];for(const e of B){const{type:i,gindex:t}=this.getPathInfo(e);if(!RI(i))C.push(t);else{const E=i.tree_getLeafGindices(t,i.fixedSize===null?aC(I,t):void 0);for(const c of E)C.push(c)}}return C}getPathInfo(I){const B=[];let C=this;for(const e of I){if(C.isBasic)throw new Error("Invalid path: cannot navigate beyond a basic type");const i=C.getPropertyGindex(e);i!==null&&(B.push(i),C=C.getPropertyType(e))}return{type:C,gindex:dI(B)}}tree_fromProofNode(I){return{node:I,done:!1}}}function RI(A){return!A.isBasic}class Qe{serialize(){const g=new Uint8Array(this.type.tree_serializedSize(this.node)),I=new DataView(g.buffer,g.byteOffset,g.byteLength);return this.type.tree_serializeToBytes({uint8Array:g,dataView:I},0,this.node),g}hashTreeRoot(){return this.node.root}createProof(g){return this.type.tree_createProof(this.node,g)}toValue(){return this.type.tree_toValue(this.node)}clone(){return this.type.getView(new kg(this.node))}}class OD extends Qe{constructor(I,B){super();N(this,"type");N(this,"tree");N(this,"bitArray");this.type=I,this.tree=B,this.bitArray=I.tree_toValue(B.rootNode)}get node(){return this.tree.rootNode}get uint8Array(){return this.bitArray.uint8Array}get bitLen(){return this.bitArray.bitLen}get(I){return this.bitArray.get(I)}set(I,B){this.bitArray.set(I,B),this.tree.rootNode=this.type.value_toTree(this.bitArray)}mergeOrWith(I){this.bitArray.mergeOrWith(I)}intersectValues(I){return this.bitArray.intersectValues(I)}getTrueBitIndexes(){return this.bitArray.getTrueBitIndexes()}getSingleTrueBit(){return this.bitArray.getSingleTrueBit()}toBoolArray(){return this.bitArray.toBoolArray()}}const Ra=Symbol("ssz_cached_tree_root");class cC extends Qe{serializeToBytes(g,I){return this.type.tree_serializeToBytes(g,I,this.node)}hashTreeRoot(){return this.commit(),super.hashTreeRoot()}batchHashTreeRoot(g=new aD){g.reset(),this.commit(0,g.byLevel),g.clean();const I=this.node[Ra];if(I)return I;if(nD(g.byLevel),this.node.h0===null)throw Error("Root is not computed by batch");const B=this.node.root;return this.node[Ra]=B,B}serialize(){this.commit();const g=new Uint8Array(this.type.tree_serializedSize(this.node)),I=new DataView(g.buffer,g.byteOffset,g.byteLength);return this.serializeToBytes({uint8Array:g,dataView:I},0),g}clone(g){if(g)return this.type.getViewDU(this.node);{const I=this.cache;return this.clearCache(),this.type.getViewDU(this.node,I)}}}class ZD extends cC{constructor(I,B){super();N(this,"type");N(this,"_rootNode");N(this,"_bitArray",null);this.type=I,this._rootNode=B}get node(){return this._rootNode}get cache(){}get uint8Array(){return this.bitArray.uint8Array}get bitLen(){return this.bitArray.bitLen}get bitArray(){return this._bitArray===null&&(this._bitArray=this.type.tree_toValue(this._rootNode)),this._bitArray}commit(I=0,B=null){this._bitArray!==null&&(this._rootNode=this.type.value_toTree(this._bitArray)),B!==null&&this._rootNode.h0===null&&ag(this._rootNode,I,B)}get(I){return this.bitArray.get(I)}set(I,B){this.bitArray.set(I,B)}mergeOrWith(I){this.bitArray.mergeOrWith(I)}intersectValues(I){return this.bitArray.intersectValues(I)}getTrueBitIndexes(){return this.bitArray.getTrueBitIndexes()}getSingleTrueBit(){return this.bitArray.getSingleTrueBit()}toBoolArray(){return this.bitArray.toBoolArray()}clearCache(){this._bitArray=null}}class Ua extends ft{constructor(){super(...arguments);N(this,"isViewMutable",!0)}getView(I){return new OD(this,I)}getViewDU(I){return new ZD(this,I)}commitView(I){return I.node}commitViewDU(I,B=0,C=null){return I.commit(B,C),I.node}cacheOfViewDU(I){return I.cache}getRoots(I){return ht(I.uint8Array)}getPropertyGindex(){return null}getPropertyType(){throw Error("Must only request BitArray complete data")}getIndexProperty(){throw Error("Must only request BitArray complete data")}tree_fromProofNode(I){return{node:I,done:!0}}tree_getLeafGindices(I,B){const C=this.tree_getByteLen(B),e=Math.ceil(C/32),i=dI([I,vI(this.depth,BigInt(0))]),t=new Array(e);for(let E=0,c=i;E<e;E++,c++)t[E]=c;return this.isList&&t.push(dI([I,JQ])),t}fromJson(I){const B=da(I),C=new DataView(B.buffer,B.byteOffset,B.byteLength);return this.value_deserializeFromBytes({uint8Array:B,dataView:C},0,B.length)}toJson(I){return Fa(this.serialize(I))}clone(I){return I.clone()}equals(I,B){return I.bitLen===B.bitLen&&kI(I.uint8Array,B.uint8Array)}}class pt extends Ua{constructor(I,B){super();N(this,"limitBits");N(this,"typeName");N(this,"depth");N(this,"chunkDepth");N(this,"fixedSize",null);N(this,"minSize",1);N(this,"maxSize");N(this,"maxChunkCount");N(this,"isList",!0);if(this.limitBits=I,I===0)throw Error("List limit must be > 0");this.typeName=(B==null?void 0:B.typeName)??`BitList[${I}]`,this.maxChunkCount=Math.ceil(this.limitBits/8/32),this.chunkDepth=GI(this.maxChunkCount),this.depth=1+this.chunkDepth,this.maxSize=Math.ceil(I/8)+1}static named(I,B){return new(Rg(pt,B.typeName))(I,B)}defaultValue(){return NI.fromBitLen(0)}value_serializedSize(I){return La(I.bitLen)}value_serializeToBytes(I,B,C){return I.uint8Array.set(C.uint8Array,B),ma(I.uint8Array,B,C.bitLen)}value_deserializeFromBytes(I,B,C){const{uint8Array:e,bitLen:i}=this.deserializeUint8ArrayBitListFromBytes(I.uint8Array,B,C);return new NI(e,i)}tree_serializedSize(I){return La(FB(I))}tree_serializeToBytes(I,B,C){const e=ya(C),i=FB(C),t=Math.ceil(i/8),E=Math.ceil(t/32),c=sg(e,this.chunkDepth,0,E);return rC(I.dataView,B,t,c),ma(I.uint8Array,B,i)}tree_deserializeFromBytes(I,B,C){const{uint8Array:e,bitLen:i}=this.deserializeUint8ArrayBitListFromBytes(I.uint8Array,B,C),t=new DataView(e.buffer,e.byteOffset,e.byteLength),E=nC(this.chunkDepth,t,0,e.length);return dB(E,i)}tree_getByteLen(I){if(!I)throw new Error("BitListType requires a node to get leaves");return Math.ceil(FB(I)/8)}hashTreeRoot(I){return St(super.hashTreeRoot(I),I.bitLen)}deserializeUint8ArrayBitListFromBytes(I,B,C){const{uint8Array:e,bitLen:i}=jD(I,B,C);if(i>this.limitBits)throw Error(`bitLen over limit ${i} > ${this.limitBits}`);return{uint8Array:e,bitLen:i}}}function jD(A,g,I){if(I>A.length)throw Error(`BitList attempting to read byte ${I} of data length ${A.length}`);const B=A[I-1],C=I-g;if(B===0)throw new Error("Invalid deserialized bitlist, padding bit required");if(B===1){const c=Uint8Array.prototype.slice.call(A,g,I-1),a=(C-1)*8;return{uint8Array:c,bitLen:a}}const e=Uint8Array.prototype.slice.call(A,g,I),i=B.toString(2).length-1,t=(C-1)*8+i,E=255>>8-i;return e[C-1]&=E,{uint8Array:e,bitLen:t}}function La(A){const g=Math.ceil(A/8);return A%8===0?g+1:g}function ma(A,g,I){const B=Math.ceil(I/8),C=g+B;return I%8===0?(A[C]=1,C+1):(A[C-1]|=1<<I%8,C)}class PI extends Ua{constructor(I,B){super();N(this,"lengthBits");N(this,"typeName");N(this,"chunkCount");N(this,"depth");N(this,"fixedSize");N(this,"minSize");N(this,"maxSize");N(this,"maxChunkCount");N(this,"isList",!1);N(this,"zeroBitsMask");if(this.lengthBits=I,I===0)throw Error("Vector length must be > 0");this.typeName=(B==null?void 0:B.typeName)??`BitVector[${I}]`,this.chunkCount=Math.ceil(this.lengthBits/8/32),this.maxChunkCount=this.chunkCount,this.depth=GI(this.chunkCount),this.fixedSize=Math.ceil(this.lengthBits/8),this.minSize=this.fixedSize,this.maxSize=this.fixedSize,this.zeroBitsMask=I%8===0?0:255&255<<I%8}static named(I,B){return new(Rg(PI,B.typeName))(I,B)}defaultValue(){return NI.fromBitLen(this.lengthBits)}value_serializedSize(){return this.fixedSize}value_serializeToBytes(I,B,C){return I.uint8Array.set(C.uint8Array,B),B+this.fixedSize}value_deserializeFromBytes(I,B,C){return this.assertValidLength(I.uint8Array,B,C),new NI(Uint8Array.prototype.slice.call(I.uint8Array,B,C),this.lengthBits)}tree_serializedSize(){return this.fixedSize}tree_serializeToBytes(I,B,C){const e=sg(C,this.depth,0,this.chunkCount);return rC(I.dataView,B,this.fixedSize,e),B+this.fixedSize}tree_deserializeFromBytes(I,B,C){return this.assertValidLength(I.uint8Array,B,C),nC(this.depth,I.dataView,B,C)}tree_getByteLen(){return this.fixedSize}assertValidLength(I,B,C){const e=C-B;if(C-B!==this.fixedSize)throw Error(`Invalid BitVector size ${e} != ${this.fixedSize}`);if(this.zeroBitsMask>0&&(I[C-1]&this.zeroBitsMask)>0)throw Error("BitVector: nonzero bits past length")}}class Ft extends ka{constructor(){super(...arguments);N(this,"isBasic",!0);N(this,"depth",0);N(this,"maxChunkCount",1)}value_serializedSize(){return this.byteLength}tree_serializedSize(){return this.byteLength}assertValidSize(I){if(I!==this.byteLength)throw Error(`BasicType invalid size ${I} expected ${this.byteLength}`)}hashTreeRoot(I){const B=new Uint8Array(32),C=new DataView(B.buffer,B.byteOffset,B.byteLength);return this.value_serializeToBytes({uint8Array:B,dataView:C},0,I),B}clone(I){return I}equals(I,B){return I===B}}function MQ(A){return A.isBasic}class qQ extends Ft{constructor(I){super();N(this,"typeName");N(this,"byteLength",1);N(this,"itemsPerChunk",32);N(this,"fixedSize",1);N(this,"minSize",1);N(this,"maxSize",1);this.typeName=(I==null?void 0:I.typeName)??"boolean"}static named(I){return new(Rg(qQ,I.typeName))(I)}defaultValue(){return!1}value_serializeToBytes(I,B,C){return I.uint8Array[B]=C?1:0,B+1}value_deserializeFromBytes(I,B,C){switch(this.assertValidSize(C-B),I.uint8Array[B]){case 1:return!0;case 0:return!1;default:throw new Error(`Boolean: invalid value: ${I.uint8Array[B]}`)}}tree_serializeToBytes(I,B,C){return I.uint8Array[B]=C.getUint(4,0),B+1}tree_deserializeFromBytes(I,B,C){this.assertValidSize(C-B);const e=I.uint8Array[B];if(e>1)throw Error(`Boolean: invalid value ${e}`);return TA.fromUint32(e)}tree_getFromNode(I){return I.getUint(4,0)===1}tree_setToNode(I,B){I.setUint(4,0,B?1:0)}tree_getFromPackedNode(I,B){const C=B%this.itemsPerChunk;return I.getUint(1,C)!==0}tree_setToPackedNode(I,B,C){const e=B%this.itemsPerChunk;I.setUint(1,e,C?1:0)}fromJson(I){if(typeof I!="boolean")throw Error(`JSON invalid type ${typeof I} expected boolean`);return I}toJson(I){return I}}class Ha extends ft{constructor(){super(...arguments);N(this,"isViewMutable",!1)}defaultValue(){return new Uint8Array(this.minSize)}getView(I){return this.getViewDU(I.rootNode)}getViewDU(I){return this.tree_toValue(I)}commitView(I){return this.commitViewDU(I)}commitViewDU(I,B=0,C=null){const e=new Uint8Array(this.value_serializedSize(I)),i=new DataView(e.buffer,e.byteOffset,e.byteLength);this.value_serializeToBytes({uint8Array:e,dataView:i},0,I);const t=this.tree_deserializeFromBytes({uint8Array:e,dataView:i},0,e.length);return C!==null&&t.h0===null&&ag(t,B,C),t}cacheOfViewDU(){}toView(I){return I}toViewDU(I){return I}value_serializeToBytes(I,B,C){return I.uint8Array.set(C,B),B+C.length}value_deserializeFromBytes(I,B,C){return this.assertValidSize(C-B),Uint8Array.prototype.slice.call(I.uint8Array,B,C)}getRoots(I){return ht(I)}getPropertyGindex(){return null}getPropertyType(){throw Error("Must only request ByteArray complete data")}getIndexProperty(){throw Error("Must only request ByteArray complete data")}tree_fromProofNode(I){return{node:I,done:!0}}tree_getLeafGindices(I,B){const C=this.tree_getByteLen(B),e=Math.ceil(C/32),i=dI([I,vI(this.depth,BigInt(0))]),t=new Array(e);for(let E=0,c=i;E<e;E++,c++)t[E]=c;return this.isList&&t.push(dI([I,JQ])),t}fromJson(I){const B=da(I);return this.assertValidSize(B.length),B}toJson(I){return Fa(I)}clone(I){return I}equals(I,B){return kI(I,B)}}class lC extends Ha{constructor(I,B){super();N(this,"limitBytes");N(this,"typeName");N(this,"depth");N(this,"chunkDepth");N(this,"fixedSize",null);N(this,"minSize");N(this,"maxSize");N(this,"maxChunkCount");N(this,"isList",!0);if(this.limitBytes=I,I===0)throw Error("List limit must be > 0");this.typeName=(B==null?void 0:B.typeName)??`ByteList[${I}]`,this.maxChunkCount=Math.ceil(this.limitBytes/32),this.chunkDepth=GI(this.maxChunkCount),this.depth=1+this.chunkDepth,this.minSize=0,this.maxSize=this.limitBytes}static named(I,B){return new(Rg(lC,B.typeName))(I,B)}value_serializedSize(I){return I.length}tree_serializedSize(I){return FB(I)}tree_serializeToBytes(I,B,C){const e=ya(C),i=FB(C),t=Math.ceil(i/32),E=sg(e,this.chunkDepth,0,t);return rC(I.dataView,B,i,E),B+i}tree_deserializeFromBytes(I,B,C){this.assertValidSize(C-B);const e=nC(this.chunkDepth,I.dataView,B,C);return dB(e,C-B)}tree_getByteLen(I){if(!I)throw new Error("ByteListType requires a node to get leaves");return FB(I)}hashTreeRoot(I){return St(super.hashTreeRoot(I),I.length)}assertValidSize(I){if(I>this.limitBytes)throw Error(`ByteList invalid size ${I} limit ${this.limitBytes}`)}}class bg extends Ha{constructor(I,B){super();N(this,"lengthBytes");N(this,"typeName");N(this,"depth");N(this,"chunkDepth");N(this,"fixedSize");N(this,"minSize");N(this,"maxSize");N(this,"maxChunkCount");N(this,"isList",!1);if(this.lengthBytes=I,I===0)throw Error("Vector length must be > 0");this.typeName=(B==null?void 0:B.typeName)??`ByteVector[${I}]`,this.maxChunkCount=Math.ceil(this.lengthBytes/32),this.chunkDepth=GI(this.maxChunkCount),this.depth=this.chunkDepth,this.fixedSize=this.lengthBytes,this.minSize=this.fixedSize,this.maxSize=this.fixedSize}static named(I,B){return new(Rg(bg,B.typeName))(I,B)}value_serializedSize(){return this.fixedSize}tree_serializedSize(){return this.fixedSize}tree_serializeToBytes(I,B,C){const e=sg(C,this.chunkDepth,0,this.maxChunkCount);return rC(I.dataView,B,this.fixedSize,e),B+this.fixedSize}tree_deserializeFromBytes(I,B,C){return this.assertValidSize(C-B),nC(this.chunkDepth,I.dataView,B,C)}tree_getByteLen(){return this.lengthBytes}assertValidSize(I){if(I!==this.lengthBytes)throw Error(`ByteVector invalid size ${I} expected ${this.lengthBytes}`)}}let PD=class extends Qe{constructor(g,I){super();N(this,"type");N(this,"tree");this.type=g,this.tree=I}get node(){return this.tree.rootNode}};function zD(A){class g extends PD{}for(let I=0;I<A.fieldsEntries.length;I++){const{fieldName:B,fieldType:C}=A.fieldsEntries[I];if(MQ(C))Object.defineProperty(g.prototype,B,{configurable:!1,enumerable:!0,get:function(){const e=Yg(this.node,this.type.depth,I);return C.tree_getFromNode(e)},set:function(e){const i=Yg(this.node,this.type.depth,I).clone();C.tree_setToNode(i,e),this.tree.setNodeAtDepth(this.type.depth,I,i)}});else if(RI(C))Object.defineProperty(g.prototype,B,{configurable:!1,enumerable:!0,get:function(){const e=cQ(this.type.depth,I);return C.getView(this.tree.getSubtree(e))},set:function(e){const i=C.commitView(e);this.tree.setNodeAtDepth(this.type.depth,I,i)}});else throw Error(`Unknown fieldType ${C.typeName} for fieldName ${String(B)}`)}return Object.defineProperty(g,"name",{value:A.typeName,writable:!1}),g}class xD extends cC{constructor(I,B,C){super();N(this,"type");N(this,"_rootNode");N(this,"nodes",[]);N(this,"caches");N(this,"nodesChanged",new Set);N(this,"viewsChanged",new Map);N(this,"nodesPopulated");this.type=I,this._rootNode=B,C?(this.nodes=C.nodes,this.caches=C.caches,this.nodesPopulated=C.nodesPopulated):(this.nodes=[],this.caches=[],this.nodesPopulated=!1)}get node(){return this._rootNode}get cache(){return{nodes:this.nodes,caches:this.caches,nodesPopulated:this.nodesPopulated}}commit(I=0,B=null){const C=this._rootNode.h0!==null;if(this.nodesChanged.size===0&&this.viewsChanged.size===0){!C&&B!==null&&ag(this._rootNode,I,B);return}const e=I+this.type.depth,i=B!=null&&C?B:null,t=[];for(const[l,w]of this.viewsChanged){const S=this.type.fieldsEntries[l].fieldType,u=S.commitViewDU(w,e,i);this.nodes[l]=u,t.push({index:l,node:u});const m=S.cacheOfViewDU(w);m&&(this.caches[l]=m)}for(const l of this.nodesChanged)t.push({index:l,node:this.nodes[l]});const E=t.sort((l,w)=>l.index-w.index),{indexes:c,nodes:a}=this.parseNodesChanged(E);this._rootNode=sC(this._rootNode,this.type.depth,c,a,I,C?B:null),!C&&B!==null&&ag(this._rootNode,I,B),this.nodesChanged.clear(),this.viewsChanged.clear()}parseNodesChanged(I){const B=I.map(e=>e.index),C=I.map(e=>e.node);return{indexes:B,nodes:C}}clearCache(){this.nodes=[],this.caches=[],this.nodesPopulated=!1,this.nodesChanged.clear(),this.viewsChanged.clear()}}class WD extends xD{constructor(I,B,C){super(I,B,C);N(this,"type");N(this,"_rootNode");this.type=I,this._rootNode=B}serializeToBytes(I,B){this.commit();let C=B,e=B+this.type.fixedEnd;for(let i=0;i<this.type.fieldsEntries.length;i++){const{fieldType:t}=this.type.fieldsEntries[i];let E=this.nodes[i];if(E===void 0&&(E=Yg(this._rootNode,this.type.depth,i),this.nodes[i]=E),t.fixedSize===null){if(I.dataView.setUint32(C,e-B,!0),C+=4,RI(t)){const c=t.getViewDU(E,this.caches[i]);c.serializeToBytes!==void 0?e=c.serializeToBytes(I,e):e=t.tree_serializeToBytes(I,e,E)}}else C=t.tree_serializeToBytes(I,C,E)}return e}}function VD(A){class g extends WD{}for(let I=0;I<A.fieldsEntries.length;I++){const{fieldName:B,fieldType:C}=A.fieldsEntries[I];if(MQ(C))Object.defineProperty(g.prototype,B,{configurable:!1,enumerable:!0,get:function(){let e=this.nodes[I];return e===void 0&&(e=Yg(this._rootNode,this.type.depth,I),this.nodes[I]=e),C.tree_getFromNode(e)},set:function(e){let i;this.nodesChanged.has(I)?i=this.nodes[I]:(i=(this.nodes[I]??Yg(this._rootNode,this.type.depth,I)).clone(),this.nodes[I]=i,this.nodesChanged.add(I)),C.tree_setToNode(i,e)}});else if(RI(C))Object.defineProperty(g.prototype,B,{configurable:!1,enumerable:!0,get:function(){const e=this.viewsChanged.get(I);if(e)return e;let i=this.nodes[I];i===void 0&&(i=Yg(this._rootNode,this.type.depth,I),this.nodes[I]=i);const t=C.getViewDU(i,this.caches[I]);return C.isViewMutable&&this.viewsChanged.set(I,t),t},set:function(e){this.viewsChanged.set(I,e)}});else throw Error(`Unknown fieldType ${C.typeName} for fieldName ${String(B)}`)}return Object.defineProperty(g,"name",{value:A.typeName,writable:!1}),g}const Ja={snake:A=>A.replace(/[^0-z]/g,"").replace(/[a-z][A-Z]|[0-9][A-Z]/g,g=>g[0]+"_"+g[1].toLowerCase()),constant:A=>A.replace(/[^0-z]/g,"").replace(/[a-z][A-Z]|[0-9][A-Z]/g,g=>g[0]+"_"+g[1]).toUpperCase(),pascal:A=>(A[0].toUpperCase()+A.slice(1)).replace(/[^0-z]/g,""),camel:A=>A[0].toLowerCase()+A.slice(1),header:A=>A[0].toUpperCase()+A.slice(1).replace(/[^0-z]/g,"").replace(/[a-z][A-Z]|[0-9][A-Z]/g,g=>g[0]+"-"+g[1]),eth2:A=>Ja.snake(A).replace(/(\d)$/,"_$1")};class k extends ft{constructor(I,B){var l,w;super(B==null?void 0:B.cachePermanentRootStruct);N(this,"fields");N(this,"opts");N(this,"typeName");N(this,"depth");N(this,"maxChunkCount");N(this,"fixedSize");N(this,"minSize");N(this,"maxSize");N(this,"isList",!1);N(this,"isViewMutable",!0);N(this,"fieldsEntries");N(this,"fixedEnd");N(this,"fieldsGindex");N(this,"jsonKeyToFieldName");N(this,"isFixedLen");N(this,"fieldRangesFixedLen");N(this,"variableOffsetsPosition");N(this,"TreeView");N(this,"TreeViewDU");this.fields=I,this.opts=B,this.typeName=(B==null?void 0:B.typeName)??Ma(I),this.maxChunkCount=Object.keys(I).length,this.depth=GI(this.maxChunkCount),this.fieldsEntries=[];for(const S of Object.keys(I))this.fieldsEntries.push({fieldName:S,fieldType:this.fields[S],jsonKey:gy(S,B==null?void 0:B.casingMap,B==null?void 0:B.jsonCase),gindex:vI(this.depth,BigInt(this.fieldsEntries.length))});if(this.fieldsEntries.length===0)throw Error("Container must have > 0 fields");this.fieldsGindex={};for(let S=0;S<this.fieldsEntries.length;S++)this.fieldsGindex[this.fieldsEntries[S].fieldName]=vI(this.depth,BigInt(S));this.jsonKeyToFieldName={};for(const{fieldName:S,jsonKey:u}of this.fieldsEntries)this.jsonKeyToFieldName[u]=S;const{minLen:C,maxLen:e,fixedSize:i}=Ay(I);this.minSize=C,this.maxSize=e,this.fixedSize=i;const{isFixedLen:t,fieldRangesFixedLen:E,variableOffsetsPosition:c,fixedEnd:a}=$D(I);this.isFixedLen=t,this.fieldRangesFixedLen=E,this.variableOffsetsPosition=c,this.fixedEnd=a,this.TreeView=((l=B==null?void 0:B.getContainerTreeViewClass)==null?void 0:l.call(B,this))??zD(this),this.TreeViewDU=((w=B==null?void 0:B.getContainerTreeViewDUClass)==null?void 0:w.call(B,this))??VD(this)}static named(I,B){return new(Rg(k,B.typeName))(I,B)}defaultValue(){const I={};for(const{fieldName:B,fieldType:C}of this.fieldsEntries)I[B]=C.defaultValue();return I}getView(I){return new this.TreeView(this,I)}getViewDU(I,B){return new this.TreeViewDU(this,I,B)}cacheOfViewDU(I){return I.cache}commitView(I){return I.node}commitViewDU(I,B=0,C=null){return I.commit(B,C),I.node}value_serializedSize(I){let B=0;for(let C=0;C<this.fieldsEntries.length;C++){const{fieldName:e,fieldType:i}=this.fieldsEntries[C];B+=i.fixedSize===null?4+i.value_serializedSize(I[e]):i.fixedSize}return B}value_serializeToBytes(I,B,C){let e=B,i=B+this.fixedEnd;for(let t=0;t<this.fieldsEntries.length;t++){const{fieldName:E,fieldType:c}=this.fieldsEntries[t];c.fixedSize===null?(I.dataView.setUint32(e,i-B,!0),e+=4,i=c.value_serializeToBytes(I,i,C[E])):e=c.value_serializeToBytes(I,e,C[E])}return i}value_deserializeFromBytes(I,B,C){const e=this.getFieldRanges(I.dataView,B,C),i={};for(let t=0;t<this.fieldsEntries.length;t++){const{fieldName:E,fieldType:c}=this.fieldsEntries[t],a=e[t];i[E]=c.value_deserializeFromBytes(I,B+a.start,B+a.end)}return i}tree_serializedSize(I){let B=0;const C=sg(I,this.depth,0,this.fieldsEntries.length);for(let e=0;e<this.fieldsEntries.length;e++){const{fieldType:i}=this.fieldsEntries[e],t=C[e];B+=i.fixedSize===null?4+i.tree_serializedSize(t):i.fixedSize}return B}tree_serializeToBytes(I,B,C){let e=B,i=B+this.fixedEnd;const t=sg(C,this.depth,0,this.fieldsEntries.length);for(let E=0;E<this.fieldsEntries.length;E++){const{fieldType:c}=this.fieldsEntries[E],a=t[E];c.fixedSize===null?(I.dataView.setUint32(e,i-B,!0),e+=4,i=c.tree_serializeToBytes(I,i,a)):e=c.tree_serializeToBytes(I,e,a)}return i}tree_deserializeFromBytes(I,B,C){const e=this.getFieldRanges(I.dataView,B,C),i=new Array(this.fieldsEntries.length);for(let t=0;t<this.fieldsEntries.length;t++){const{fieldType:E}=this.fieldsEntries[t],c=e[t];i[t]=E.tree_deserializeFromBytes(I,B+c.start,B+c.end)}return oC(i,this.depth)}getRoots(I){const B=new Array(this.fieldsEntries.length);for(let C=0;C<this.fieldsEntries.length;C++){const{fieldName:e,fieldType:i}=this.fieldsEntries[C];B[C]=i.hashTreeRoot(I[e])}return B}getPropertyGindex(I){const B=this.fieldsGindex[I]??this.fieldsGindex[this.jsonKeyToFieldName[I]];if(B===void 0)throw Error(`Unknown container property ${I}`);return B}getPropertyType(I){const B=this.fields[I]??this.fields[this.jsonKeyToFieldName[I]];if(B===void 0)throw Error(`Unknown container property ${I}`);return B}getIndexProperty(I){return I>=this.fieldsEntries.length?null:this.fieldsEntries[I].fieldName}tree_getLeafGindices(I,B){const C=[];for(let e=0;e<this.fieldsEntries.length;e++){const{fieldName:i,fieldType:t}=this.fieldsEntries[e],E=this.fieldsGindex[i],c=dI([I,E]);if(t.isBasic)C.push(c);else{const a=t;if(t.fixedSize===null){if(!B)throw new Error("variable type requires tree argument to get leaves");C.push(...a.tree_getLeafGindices(c,aC(B,E)))}else C.push(...a.tree_getLeafGindices(c))}}return C}fromJson(I){if(typeof I!="object")throw Error("JSON must be of type object");if(I===null)throw Error("JSON must not be null");const B={};for(let C=0;C<this.fieldsEntries.length;C++){const{fieldName:e,fieldType:i,jsonKey:t}=this.fieldsEntries[C],E=I[t];if(E===void 0)throw Error(`JSON expected key ${t} is undefined`);B[e]=i.fromJson(E)}return B}toJson(I){const B={};for(let C=0;C<this.fieldsEntries.length;C++){const{fieldName:e,fieldType:i,jsonKey:t}=this.fieldsEntries[C];B[t]=i.toJson(I[e])}return B}clone(I){const B={};for(let C=0;C<this.fieldsEntries.length;C++){const{fieldName:e,fieldType:i}=this.fieldsEntries[C];B[e]=i.clone(I[e])}return B}equals(I,B){for(let C=0;C<this.fieldsEntries.length;C++){const{fieldName:e,fieldType:i}=this.fieldsEntries[C];if(!i.equals(I[e],B[e]))return!1}return!0}getFieldRanges(I,B,C){if(this.variableOffsetsPosition.length===0){const c=C-B;if(c!==this.fixedEnd)throw Error(`${this.typeName} size ${c} not equal fixed size ${this.fixedEnd}`);return this.fieldRangesFixedLen}const e=XD(I,B,C,this.fixedEnd,this.variableOffsetsPosition);e.push(C-B);let i=0,t=0;const E=new Array(this.isFixedLen.length);for(let c=0;c<this.isFixedLen.length;c++)this.isFixedLen[c]?E[c]=this.fieldRangesFixedLen[t++]:(E[c]={start:e[i],end:e[i+1]},i++);return E}}function XD(A,g,I,B,C){const e=I-g,i=new Array(C.length);for(let t=0;t<C.length;t++){const E=A.getUint32(g+C[t],!0);if(E>e)throw new Error(`Offset out of bounds ${E} > ${e}`);if(t===0){if(E!==B)throw new Error(`First offset must equal to fixedEnd ${E} != ${B}`)}else if(E<i[t-1])throw new Error(`Offsets must be increasing ${E} < ${i[t-1]}`);i[t]=E}return i}function $D(A){const g=[],I=[],B=[];let C=0;for(const e of Object.values(A))g.push(e.fixedSize!==null),e.fixedSize===null?(B.push(C),C+=4):(I.push({start:C,end:C+e.fixedSize}),C+=e.fixedSize);return{isFixedLen:g,fieldRangesFixedLen:I,variableOffsetsPosition:B,fixedEnd:C}}function Ay(A){let g=0,I=0,B=0;for(const C of Object.values(A))g+=C.minSize,I+=C.maxSize,C.fixedSize===null?(g+=4,I+=4,B=null):B!==null&&(B+=C.fixedSize);return{minLen:g,maxLen:I,fixedSize:B}}function gy(A,g,I){if(g){const B=g[A];if(B===void 0)throw Error(`casingMap[${String(A)}] not defined`);return B}else return I?Ja[I](A):A}function Ma(A,g="Container"){const I=Object.keys(A).map(B=>`${String(B)}: ${A[B].typeName}`).join(", ");return`${g}({${I}})`}class hC extends fQ{constructor(I,B){super(null,0,0,0,0,0,0,0);N(this,"valueToNode");N(this,"value");this.valueToNode=I,this.value=B}get rootHashObject(){if(this.h0===null){const I=this.valueToNode(this.value);super.applyHash(I.rootHashObject)}return this}get root(){return QC(this.rootHashObject)}get left(){return this.valueToNode(this.value).left}get right(){return this.valueToNode(this.value).right}isLeaf(){return!1}}class Iy extends Qe{constructor(I,B){super();N(this,"type");N(this,"tree");this.type=I,this.tree=B}get node(){return this.tree.rootNode}}function By(A){class g extends Iy{}for(let I=0;I<A.fieldsEntries.length;I++){const{fieldName:B,fieldType:C}=A.fieldsEntries[I];if(C.isBasic)Object.defineProperty(g.prototype,B,{configurable:!1,enumerable:!0,get:function(){return this.tree.rootNode.value[B]},set:function(e){const i=this.tree.rootNode,t=this.type.clone(i.value);t[B]=e,this.tree.rootNode=new hC(i.valueToNode,t)}});else if(RI(C))Object.defineProperty(g.prototype,B,{configurable:!1,enumerable:!0,get:function(){const{value:e}=this.tree.rootNode;return C.toView(e[B])},set:function(e){const i=this.tree.rootNode,t=this.type.clone(i.value);t[B]=C.toValueFromView(e),this.tree.rootNode=new hC(i.valueToNode,t)}});else throw Error(`Unknown fieldType ${C.typeName} for fieldName ${String(B)}`)}return Object.defineProperty(g,"name",{value:A.typeName,writable:!1}),g}class ey extends cC{constructor(I,B){super();N(this,"type");N(this,"valueChanged",null);N(this,"_rootNode");this.type=I,this._rootNode=B}get node(){return this._rootNode}get cache(){}get value(){return this.valueChanged??this._rootNode.value}commit(I,B=null){if(this.valueChanged!==null){const C=this.valueChanged;this.valueChanged=null,this._rootNode=this.type.value_toTree(C)}this._rootNode.h0===null&&B!==null&&this._rootNode.rootHashObject}clearCache(){this.valueChanged=null}}function Cy(A){class g extends ey{}for(let I=0;I<A.fieldsEntries.length;I++){const{fieldName:B,fieldType:C}=A.fieldsEntries[I];if(C.isBasic)Object.defineProperty(g.prototype,B,{configurable:!1,enumerable:!0,get:function(){return(this.valueChanged||this._rootNode.value)[B]},set:function(e){this.valueChanged===null&&(this.valueChanged=this.type.clone(this._rootNode.value)),this.valueChanged[B]=e}});else if(RI(C))Object.defineProperty(g.prototype,B,{configurable:!1,enumerable:!0,get:function(){const e=this.valueChanged||this._rootNode.value;return C.toViewDU(e[B])},set:function(e){this.valueChanged===null&&(this.valueChanged=this.type.clone(this._rootNode.value));const i=C.toValueFromViewDU(e);this.valueChanged[B]=i}});else throw Error(`Unknown fieldType ${C.typeName} for fieldName ${String(B)}`)}return Object.defineProperty(g,"name",{value:A.typeName,writable:!1}),g}class ty extends k{constructor(I,B){super(I,{typeName:(B==null?void 0:B.typeName)??Ma(I,"ContainerNodeStruct"),...B,getContainerTreeViewClass:By,getContainerTreeViewDUClass:Cy});N(this,"fields");this.fields=I;for(const{fieldName:C,fieldType:e}of this.fieldsEntries)if(RI(e)&&e.isViewMutable)throw Error(`ContainerNodeStructType field '${String(C)}' ${e.typeName} view is mutable`)}static named(I,B){return new(Rg(k,B.typeName))(I,B)}tree_serializedSize(I){return this.value_serializedSize(I.value)}tree_serializeToBytes(I,B,C){const{value:e}=C;return this.value_serializeToBytes(I,B,e)}tree_deserializeFromBytes(I,B,C){const e=this.value_deserializeFromBytes(I,B,C);return new hC(this.valueToTree.bind(this),e)}getPropertyGindex(){return null}tree_fromProofNode(I){const B=new Uint8Array(super.tree_serializedSize(I)),C=new DataView(B.buffer,B.byteOffset,B.byteLength);super.tree_serializeToBytes({uint8Array:B,dataView:C},0,I);const e=this.value_deserializeFromBytes({uint8Array:B,dataView:C},0,B.length);return{node:new hC(this.valueToTree.bind(this),e),done:!0}}tree_toValue(I){return I.value}value_toTree(I){return new hC(this.valueToTree.bind(this),I)}valueToTree(I){const B=new Uint8Array(this.value_serializedSize(I)),C=new DataView(B.buffer,B.byteOffset,B.byteLength);return this.value_serializeToBytes({uint8Array:B,dataView:C},0,I),super.tree_deserializeFromBytes({uint8Array:B,dataView:C},0,B.length)}}class qa extends Qe{constructor(I,B){super();N(this,"type");N(this,"tree");this.type=I,this.tree=B}get length(){return this.type.tree_getLength(this.tree.rootNode)}get node(){return this.tree.rootNode}get(I){const B=Math.floor(I/this.type.itemsPerChunk),C=this.tree.getNodeAtDepth(this.type.depth,B);return this.type.elementType.tree_getFromPackedNode(C,I)}set(I,B){const C=this.length;if(I>=C)throw Error(`Error setting index over length ${I} > ${C}`);const e=Math.floor(I/this.type.itemsPerChunk),i=this.tree.getNodeAtDepth(this.type.depth,e).clone();this.type.elementType.tree_setToPackedNode(i,I,B),this.tree.setNodeAtDepth(this.type.depth,e,i)}getAll(){const I=this.length,B=this.type.tree_getChunksNode(this.node),C=Math.ceil(I/this.type.itemsPerChunk),e=sg(B,this.type.chunkDepth,0,C),i=new Array(I),t=this.type.itemsPerChunk,E=Math.floor(I/t),c=I%t;for(let a=0;a<E;a++){const l=e[a];for(let w=0;w<t;w++)i[a*t+w]=this.type.elementType.tree_getFromPackedNode(l,w)}if(c>0){const a=e[E];for(let l=0;l<c;l++)i[E*t+l]=this.type.elementType.tree_getFromPackedNode(a,l)}return i}}class iy extends qa{constructor(I,B){super(I,B);N(this,"type");N(this,"tree");this.type=I,this.tree=B}push(I){const B=this.length;if(B>=this.type.limit)throw Error("Error pushing over limit");if(this.type.tree_setLength(this.tree,B+1),B%this.type.itemsPerChunk===0){const C=TA.fromZero();this.type.elementType.tree_setToPackedNode(C,B,I);const e=Math.floor(B/this.type.itemsPerChunk);this.tree.setNodeAtDepth(this.type.depth,e,C)}else this.set(B,I)}}class Ka extends cC{constructor(I,B,C){super();N(this,"type");N(this,"_rootNode");N(this,"nodes");N(this,"nodesChanged",new Set);N(this,"_length");N(this,"dirtyLength",!1);N(this,"nodesPopulated");this.type=I,this._rootNode=B,C?(this.nodes=C.nodes,this._length=C.length,this.nodesPopulated=C.nodesPopulated):(this.nodes=[],this._length=this.type.tree_getLength(B),this.nodesPopulated=!1)}get length(){return this._length}get node(){return this._rootNode}get cache(){return{nodes:this.nodes,length:this._length,nodesPopulated:this.nodesPopulated}}get(I){const B=Math.floor(I/this.type.itemsPerChunk);let C=this.nodes[B];return C===void 0&&(C=Yg(this._rootNode,this.type.depth,B),this.nodes[B]=C),this.type.elementType.tree_getFromPackedNode(C,I)}set(I,B){if(I>=this._length)throw Error(`Error setting index over length ${I} > ${this._length}`);const C=Math.floor(I/this.type.itemsPerChunk);let e;this.nodesChanged.has(C)?e=this.nodes[C]:(e=(this.nodes[C]??Yg(this._rootNode,this.type.depth,C)).clone(),this.nodes[C]=e,this.nodesChanged.add(C)),this.type.elementType.tree_setToPackedNode(e,I,B)}getAll(){if(!this.nodesPopulated){const i=this.nodes,t=this.type.tree_getChunksNode(this.node),E=Math.ceil(this._length/this.type.itemsPerChunk);this.nodes=sg(t,this.type.chunkDepth,0,E);for(const c of this.nodesChanged)this.nodes[c]=i[c];this.nodesPopulated=!0}const I=new Array(this._length),B=this.type.itemsPerChunk,C=Math.floor(this._length/B),e=this._length%B;for(let i=0;i<C;i++){const t=this.nodes[i];for(let E=0;E<B;E++)I[i*B+E]=this.type.elementType.tree_getFromPackedNode(t,E)}if(e>0){const i=this.nodes[C];for(let t=0;t<e;t++)I[C*B+t]=this.type.elementType.tree_getFromPackedNode(i,t)}return I}commit(I=0,B=null){const C=this._rootNode.h0!==null;if(this.nodesChanged.size===0){!C&&B!==null&&ag(this._rootNode,I,B);return}const e=Array.from(this.nodesChanged.keys()).sort((l,w)=>l-w),i=new Array(e.length);for(let l=0;l<e.length;l++)i[l]=this.nodes[e[l]];const t=this.type.tree_getChunksNode(this._rootNode),E=I+this.type.tree_chunksNodeOffset(),c=B!=null&&C?B:null,a=sC(t,this.type.chunkDepth,e,i,E,c);this._rootNode=this.type.tree_setChunksNode(this._rootNode,a,this.dirtyLength?this._length:null,I,C?B:null),!C&&B!==null&&ag(this._rootNode,I,B),this.nodesChanged.clear(),this.dirtyLength=!1}clearCache(){this.nodes=[],this.nodesPopulated=!1,this.nodesChanged.clear(),this.dirtyLength&&(this._length=this.type.tree_getLength(this._rootNode),this.dirtyLength=!1)}}class Qy extends Ka{constructor(I,B,C){super(I,B,C);N(this,"type");N(this,"_rootNode");this.type=I,this._rootNode=B}push(I){if(this._length>=this.type.limit)throw Error("Error pushing over limit");this.dirtyLength=!0;const B=this._length++;if(B%this.type.itemsPerChunk===0){const C=Math.floor(B/this.type.itemsPerChunk);this.nodes[C]=uB(0)}this.set(B,I)}sliceTo(I){if(I<0)throw new Error(`Does not support sliceTo() with negative index ${I}`);if(this.commit(),I>=this._length-1)return this;const B=this._rootNode,C=Math.floor(I/this.type.itemsPerChunk),e=this.nodes[C]??Yg(B,this.type.depth,C),i=TA.fromZero();for(let l=C*this.type.itemsPerChunk;l<=I;l++){const w=this.type.elementType.tree_getFromPackedNode(e,l);this.type.elementType.tree_setToPackedNode(i,l,w)}const t=this.type.tree_getChunksNode(this._rootNode);let E=sC(t,this.type.chunkDepth,[C],[i]);E=ca(E,this.type.chunkDepth,C);const c=I+1,a=this.type.tree_setChunksNode(B,E,c);return this.type.getViewDU(a)}serializeToBytes(I,B){this.commit();const{nodes:C,nodesPopulated:e}=this.cache,i=this.type.tree_getChunksNode(this._rootNode);return LQ(this.type.elementType,this._length,this.type.chunkDepth,I,B,i,e?C:null)}}class dt extends ft{constructor(I,B){super(B);N(this,"elementType");this.elementType=I}defaultValue(){return vD(this.elementType,this.defaultLen)}getPropertyType(){return this.elementType}getPropertyGindex(I){if(typeof I!="number")throw Error(`Invalid array index: ${I}`);const B=Math.floor(I/this.itemsPerChunk);return vI(this.depth,BigInt(B))}getIndexProperty(I){return I}tree_getLeafGindices(I,B){let C;if(this.isList){if(!B)throw new Error("List type requires tree argument to get leaves");C=this.tree_getLength(B)}else C=this.tree_getLength(null);const e=[];if(RI(this.elementType)){const i=vI(this.depth,BigInt(0)),t=i+BigInt(C),E=dI([I,i]);if(this.elementType.fixedSize===null){if(!B)throw new Error("Array of variable size requires tree argument to get leaves");for(let c=i,a=E;c<t;c++,a++)e.push(...this.elementType.tree_getLeafGindices(a,aC(B,c)))}else for(let c=0,a=E;c<C;c++,a++)e.push(...this.elementType.tree_getLeafGindices(a))}else{const i=Math.ceil(C/this.itemsPerChunk),t=dI([I,vI(this.depth,BigInt(0))]),E=t+BigInt(i);for(let c=t;c<E;c++)e.push(c)}return this.isList&&e.push(dI([I,JQ])),e}fromJson(I){return KD(this.elementType,I,this)}toJson(I){return YD(this.elementType,I,this)}clone(I){return bD(this.elementType,I)}equals(I,B){return TD(this.elementType,I,B)}}class zI extends dt{constructor(I,B,C){super(I,C==null?void 0:C.cachePermanentRootStruct);N(this,"elementType");N(this,"limit");N(this,"typeName");N(this,"itemsPerChunk");N(this,"depth");N(this,"chunkDepth");N(this,"maxChunkCount");N(this,"fixedSize",null);N(this,"minSize");N(this,"maxSize");N(this,"isList",!0);N(this,"isViewMutable",!0);N(this,"defaultLen",0);if(this.elementType=I,this.limit=B,!I.isBasic)throw Error("elementType must be basic");if(B===0)throw Error("List limit must be > 0");this.typeName=(C==null?void 0:C.typeName)??`List[${I.typeName}, ${B}]`,this.itemsPerChunk=32/I.byteLength,this.maxChunkCount=Math.ceil(this.limit*I.byteLength/32),this.chunkDepth=GI(this.maxChunkCount),this.depth=this.chunkDepth+1,this.minSize=0,this.maxSize=this.limit*I.maxSize}static named(I,B,C){return new(Rg(zI,C.typeName))(I,B,C)}getView(I){return new iy(this,I)}getViewDU(I,B){return new Qy(this,I,B)}commitView(I){return I.node}commitViewDU(I,B=0,C=null){return I.commit(B,C),I.node}cacheOfViewDU(I){return I.cache}value_serializedSize(I){return I.length*this.elementType.byteLength}value_serializeToBytes(I,B,C){return wt(this.elementType,C.length,I,B,C)}value_deserializeFromBytes(I,B,C){return fa(this.elementType,I,B,C,this)}tree_serializedSize(I){return this.tree_getLength(I)*this.elementType.byteLength}tree_serializeToBytes(I,B,C){const e=this.tree_getChunksNode(C),i=this.tree_getLength(C);return LQ(this.elementType,i,this.chunkDepth,I,B,e)}tree_deserializeFromBytes(I,B,C){return pa(this.elementType,this.chunkDepth,I,B,C,this)}tree_getLength(I){return I.right.getUint(4,0)}tree_setLength(I,B){I.rootNode=dB(I.rootNode.left,B)}tree_getChunksNode(I){return I.left}tree_chunksNodeOffset(){return 1}tree_setChunksNode(I,B,C,e=0,i=null){return ua(I,B,C,e,i)}hashTreeRoot(I){if(this.cachePermanentRootStruct){const C=I[pB];if(C)return C}const B=St(super.hashTreeRoot(I),I.length);return this.cachePermanentRootStruct&&(I[pB]=B),B}getRoots(I){const B=new Uint8Array(this.value_serializedSize(I)),C=new DataView(B.buffer,B.byteOffset,B.byteLength);return wt(this.elementType,I.length,{uint8Array:B,dataView:C},0,I),ht(B)}}function Ey(A,g){return A.fixedSize===null?g*(4+A.minSize):g*A.minSize}function Ya(A,g){return A.fixedSize===null?g*(4+A.maxSize):g*A.maxSize}function ba(A,g,I){if(A.fixedSize===null){let B=0;for(let C=0;C<g;C++)B+=4+A.value_serializedSize(I[C]);return B}else return g*A.fixedSize}function Ta(A,g,I,B,C){if(A.fixedSize===null){let e=B+g*4;for(let i=0;i<g;i++)I.dataView.setUint32(B+i*4,e-B,!0),e=A.value_serializeToBytes(I,e,C[i]);return e}else{for(let e=0;e<g;e++)A.value_serializeToBytes(I,B+e*A.fixedSize,C[e]);return B+g*A.fixedSize}}function va(A,g,I,B,C){const e=ja(A.fixedSize,g.dataView,I,B,C),i=e.length,t=new Array(i);for(let E=0;E<i;E++){const c=I+e[E],a=E===i-1?B:I+e[E+1];t[E]=A.value_deserializeFromBytes(g,c,a)}return t}function _a(A,g,I,B){if(A.fixedSize===null){const C=sg(B,I,0,g);let e=0;for(let i=0;i<C.length;i++)e+=4+A.tree_serializedSize(C[i]);return e}else return g*A.fixedSize}function KQ(A,g,I,B,C,e,i=null){const t=i??sg(B,I,0,g);if(A.fixedSize===null){let E=e+g*4;const{dataView:c}=C;for(let a=0;a<t.length;a++)c.setUint32(e+a*4,E-e,!0),E=A.tree_serializeToBytes(C,E,t[a]);return E}else{for(let E=0;E<t.length;E++)e=A.tree_serializeToBytes(C,e,t[E]);return e}}function Oa(A,g,I,B,C,e){const i=ja(A.fixedSize,I.dataView,B,C,e),t=i.length,E=new Array(t);for(let a=0;a<t;a++){const l=B+i[a],w=a===t-1?C:B+i[a+1];E[a]=A.tree_deserializeFromBytes(I,l,w)}const c=oC(E,g);return e.isList?dB(c,t):c}function Za(A,g,I){const B=new Array(g);for(let C=0;C<g;C++)B[C]=A.hashTreeRoot(I[C]);return B}function ja(A,g,I,B,C){const e=B-I;let i;if(A===null)i=oy(g,I,e);else{if(A===0)throw Error("element fixed length is 0");if(e%A!==0)throw Error(`size ${e} is not multiple of element fixedSize ${A}`);const t=e/A;i=new Uint32Array(t);for(let E=0;E<t;E++)i[E]=E*A}return Dt(i.length,C),i}function oy(A,g,I){if(I===0)return new Uint32Array(0);const B=A.getUint32(g,!0),C=B;if(B===0)throw Error("First offset must be > 0");if(C%4!==0)throw Error("Offset data length not multiple of 4");const e=C/4,i=new Uint32Array(e);i[0]=B;for(let t=1;t<e;t++){const E=A.getUint32(g+t*4,!0);if(i[t]=E,E>I)throw new Error(`Offset out of bounds ${E} > ${I}`);if(E<i[t-1])throw new Error(`Offsets must be increasing ${E} < ${i[t-1]}`)}return i}class Pa extends Qe{constructor(I,B){super();N(this,"type");N(this,"tree");this.type=I,this.tree=B}get length(){return this.type.tree_getLength(this.tree.rootNode)}get node(){return this.tree.rootNode}get(I){const B=cQ(this.type.depth,I),C=this.tree.getSubtree(B);return this.type.elementType.getView(C)}getReadonly(I){const B=cQ(this.type.depth,I),C=new kg(this.tree.getNode(B));return this.type.elementType.getView(C)}set(I,B){const C=this.length;if(I>=C)throw Error(`Error setting index over length ${I} > ${C}`);const e=this.type.elementType.commitView(B);this.tree.setNodeAtDepth(this.type.depth,I,e)}getAllReadonly(){const I=this.length,B=this.type.tree_getChunksNode(this.node),C=sg(B,this.type.chunkDepth,0,I),e=new Array(I);for(let i=0;i<I;i++)e[i]=this.type.elementType.getView(new kg(C[i]));return e}getAllReadonlyValues(){const I=this.length,B=this.type.tree_getChunksNode(this.node),C=sg(B,this.type.chunkDepth,0,I),e=new Array(I);for(let i=0;i<I;i++)e[i]=this.type.elementType.tree_toValue(C[i]);return e}}class ny extends Pa{constructor(I,B){super(I,B);N(this,"type");N(this,"tree");this.type=I,this.tree=B}push(I){const B=this.length;if(B>=this.type.limit)throw Error("Error pushing over limit");this.type.tree_setLength(this.tree,B+1),this.set(B,I)}}class za extends cC{constructor(I,B,C){super();N(this,"type");N(this,"_rootNode");N(this,"nodes");N(this,"caches");N(this,"viewsChanged",new Map);N(this,"_length");N(this,"dirtyLength",!1);N(this,"nodesPopulated");this.type=I,this._rootNode=B,C?(this.nodes=C.nodes,this.caches=C.caches,this._length=C.length,this.nodesPopulated=C.nodesPopulated):(this.nodes=[],this.caches=[],this._length=this.type.tree_getLength(B),this.nodesPopulated=this._length===0)}get length(){return this._length}get node(){return this._rootNode}get cache(){return{nodes:this.nodes,caches:this.caches,length:this._length,nodesPopulated:this.nodesPopulated}}get(I){const B=this.viewsChanged.get(I);if(B)return B;let C=this.nodes[I];C===void 0&&(C=Yg(this._rootNode,this.type.depth,I),this.nodes[I]=C);const e=this.type.elementType.getViewDU(C,this.caches[I]);return this.type.elementType.isViewMutable&&this.viewsChanged.set(I,e),e}getReadonly(I){const B=this.viewsChanged.get(I);if(B)return B;let C=this.nodes[I];return C===void 0&&(C=Yg(this._rootNode,this.type.depth,I),this.nodes[I]=C),this.type.elementType.getViewDU(C,this.caches[I])}set(I,B){if(I>=this._length)throw Error(`Error setting index over length ${I} > ${this._length}`);this.viewsChanged.set(I,B)}getAllReadonly(){this.populateAllOldNodes();const I=new Array(this._length);for(let B=0;B<this._length;B++)I[B]=this.getReadonly(B);return I}getAllReadonlyValues(){this.populateAllNodes();const I=new Array(this._length);for(let B=0;B<this._length;B++)I[B]=this.type.elementType.tree_toValue(this.nodes[B]);return I}commit(I=0,B=null){const C=this._rootNode.h0!==null;if(this.viewsChanged.size===0){!C&&B!==null&&ag(this._rootNode,I,B);return}const e=I+this.type.depth,i=B!=null&&C?B:null,t=[];for(const[m,L]of this.viewsChanged){const p=this.type.elementType.commitViewDU(L,e,i);this.nodes[m]=p,t.push({index:m,node:p});const F=this.type.elementType.cacheOfViewDU(L);F&&(this.caches[m]=F)}const E=t.sort((m,L)=>m.index-L.index),c=E.map(m=>m.index),a=E.map(m=>m.node),l=this.type.tree_getChunksNode(this._rootNode),w=I+this.type.tree_chunksNodeOffset(),S=B!=null&&C?B:null,u=sC(l,this.type.chunkDepth,c,a,w,S);this._rootNode=this.type.tree_setChunksNode(this._rootNode,u,this.dirtyLength?this._length:null,I,B),!C&&B!==null&&ag(this._rootNode,I,B),this.viewsChanged.clear(),this.dirtyLength=!1}clearCache(){this.nodes=[],this.caches=[],this.nodesPopulated=!1,this.viewsChanged.clear(),this.dirtyLength&&(this._length=this.type.tree_getLength(this._rootNode),this.dirtyLength=!1)}populateAllNodes(){if(this.viewsChanged.size>0)throw Error("Must commit changes before reading all nodes");this.nodesPopulated||(this.nodes=sg(this._rootNode,this.type.depth,0,this.length),this.nodesPopulated=!0)}populateAllOldNodes(){if(!this.nodesPopulated){const I=this.dirtyLength?this.type.tree_getLength(this._rootNode):this._length;this.nodes=sg(this._rootNode,this.type.depth,0,I),this.nodesPopulated=!0}}}function ry(A){return{finalized:[],count:0,root:UQ(ZI(A),ZI(0))}}class ay extends za{constructor(I,B,C){super(I,B,C);N(this,"type");N(this,"_rootNode");this.type=I,this._rootNode=B}push(I){if(this._length>=this.type.limit)throw Error("Error pushing over limit");this.dirtyLength=!0;const B=this._length++;this.set(B,I)}sliceTo(I){this.commit();const B=this._rootNode,C=this._length;if(I>=C-1)return this;const e=this.type.tree_getChunksNode(B),i=ca(e,this.type.chunkDepth,I),t=I+1,E=this.type.tree_setChunksNode(B,i,t);return this.rootNodeToViewDU(E)}sliceFrom(I){if(this.commit(),this.populateAllNodes(),I<0&&(I+=this.nodes.length),I<=0)return this;let B,C;if(I>=this.nodes.length)B=uB(this.type.chunkDepth),C=0;else{const i=this.nodes.slice(I);B=oC(i,this.type.chunkDepth),C=i.length}const e=this.type.tree_setChunksNode(this._rootNode,B,C);return this.rootNodeToViewDU(e)}toSnapshot(I){if(this.commit(),I<0||I>this._length)throw Error(`Invalid count ${I}, length is ${this._length}`);if(I===0)return ry(this.type.chunkDepth);const B=this.sliceTo(I-1)._rootNode,C=this.type.tree_getChunksNode(B);return{...HD(C,this.type.chunkDepth,I),root:B.root}}serializeToBytes(I,B){this.commit(),this.populateAllNodes();const C=this.type.tree_getChunksNode(this._rootNode);return KQ(this.type.elementType,this._length,this.type.chunkDepth,C,I,B,this.nodes)}rootNodeToViewDU(I){return this.type.getViewDU(I)}}class DA extends dt{constructor(I,B,C){super(I,C==null?void 0:C.cachePermanentRootStruct);N(this,"elementType");N(this,"limit");N(this,"typeName");N(this,"itemsPerChunk",1);N(this,"depth");N(this,"chunkDepth");N(this,"maxChunkCount");N(this,"fixedSize",null);N(this,"minSize");N(this,"maxSize");N(this,"isList",!0);N(this,"isViewMutable",!0);N(this,"defaultLen",0);if(this.elementType=I,this.limit=B,I.isBasic)throw Error("elementType must not be basic");if(B===0)throw Error("List limit must be > 0");this.typeName=(C==null?void 0:C.typeName)??`List[${I.typeName}, ${B}]`,this.maxChunkCount=this.limit,this.chunkDepth=GI(this.maxChunkCount),this.depth=this.chunkDepth+1,this.minSize=0,this.maxSize=Ya(I,this.limit)}static named(I,B,C){return new(Rg(DA,C.typeName))(I,B,C)}getView(I){return new ny(this,I)}getViewDU(I,B){return new ay(this,I,B)}commitView(I){return I.node}commitViewDU(I,B=0,C=null){return I.commit(B,C),I.node}cacheOfViewDU(I){return I.cache}value_serializedSize(I){return ba(this.elementType,I.length,I)}value_serializeToBytes(I,B,C){return Ta(this.elementType,C.length,I,B,C)}value_deserializeFromBytes(I,B,C){return va(this.elementType,I,B,C,this)}tree_serializedSize(I){const B=this.tree_getChunksNode(I),C=this.tree_getLength(I);return _a(this.elementType,C,this.chunkDepth,B)}tree_serializeToBytes(I,B,C){const e=this.tree_getChunksNode(C),i=this.tree_getLength(C);return KQ(this.elementType,i,this.chunkDepth,e,I,B)}tree_deserializeFromBytes(I,B,C){return Oa(this.elementType,this.chunkDepth,I,B,C,this)}tree_getLength(I){return FB(I)}tree_setLength(I,B){I.rootNode=dB(I.rootNode.left,B)}tree_getChunksNode(I){return I.left}tree_chunksNodeOffset(){return 1}tree_setChunksNode(I,B,C,e=0,i=null){return ua(I,B,C,e,i)}hashTreeRoot(I){if(this.cachePermanentRootStruct){const C=I[pB];if(C)return C}const B=St(super.hashTreeRoot(I),I.length);return this.cachePermanentRootStruct&&(I[pB]=B),B}getRoots(I){return Za(this.elementType,I.length,I)}}const sy=BigInt(Number.MAX_SAFE_INTEGER),YQ=BigInt(2)**BigInt(64),cy=BigInt(2)**BigInt(128),ly=BigInt(2)**BigInt(192),xa=2**32,Wa=4294967295;class sI extends Ft{constructor(I,B){super();N(this,"byteLength");N(this,"typeName");N(this,"itemsPerChunk");N(this,"fixedSize");N(this,"minSize");N(this,"maxSize");N(this,"maxDecimalStr");N(this,"clipInfinity");N(this,"setBitwiseOR");if(this.byteLength=I,I>8)throw Error("UintNumber byteLength limit is 8");if(Math.log2(I)%1!==0)throw Error("byteLength must be a power of 2");this.typeName=(B==null?void 0:B.typeName)??`uint${I*8}`,B!=null&&B.clipInfinity&&(this.typeName+="Inf"),B!=null&&B.setBitwiseOR&&(this.typeName+="OR"),this.itemsPerChunk=32/this.byteLength,this.fixedSize=I,this.minSize=I,this.maxSize=I,this.maxDecimalStr=(BigInt(2)**BigInt(this.byteLength*8)-BigInt(1)).toString(10),this.clipInfinity=(B==null?void 0:B.clipInfinity)===!0,this.setBitwiseOR=(B==null?void 0:B.setBitwiseOR)===!0}static named(I,B){return new(Rg(sI,B.typeName))(I,B)}defaultValue(){return 0}value_serializeToBytes({dataView:I},B,C){switch(this.byteLength){case 1:I.setInt8(B,C);break;case 2:I.setUint16(B,C,!0);break;case 4:I.setUint32(B,C,!0);break;case 8:C===1/0?(I.setUint32(B,4294967295),I.setUint32(B+4,4294967295)):(I.setUint32(B,C&4294967295,!0),I.setUint32(B+4,C/xa&4294967295,!0));break}return B+this.byteLength}value_deserializeFromBytes({dataView:I},B,C){switch(this.assertValidSize(C-B),this.byteLength){case 1:return I.getUint8(B);case 2:return I.getUint16(B,!0);case 4:return I.getUint32(B,!0);case 8:{const e=I.getUint32(B,!0),i=I.getUint32(B+4,!0);return i===Wa&&e===Wa&&this.clipInfinity?1/0:i*xa+e}}}tree_serializeToBytes(I,B,C){const e=C.getUint(this.byteLength,0,this.clipInfinity);return this.value_serializeToBytes(I,B,e),B+this.byteLength}tree_deserializeFromBytes(I,B,C){this.assertValidSize(C-B);const e=this.value_deserializeFromBytes(I,B,C),i=TA.fromZero();return i.setUint(this.byteLength,0,e,this.clipInfinity),i}tree_getFromNode(I){return I.getUint(this.byteLength,0,this.clipInfinity)}tree_setToNode(I,B){this.tree_setToPackedNode(I,0,B)}tree_getFromPackedNode(I,B){const C=this.byteLength*(B%this.itemsPerChunk);return I.getUint(this.byteLength,C,this.clipInfinity)}tree_setToPackedNode(I,B,C){const e=this.byteLength*(B%this.itemsPerChunk);this.setBitwiseOR?I.bitwiseOrUint(this.byteLength,e,C):I.setUint(this.byteLength,e,C,this.clipInfinity)}fromJson(I){if(typeof I=="number")return I;if(typeof I=="string"){if(this.clipInfinity&&I===this.maxDecimalStr)return 1/0;{const B=parseInt(I,10);if(isNaN(B))throw Error("JSON invalid number isNaN");if(B>Number.MAX_SAFE_INTEGER)throw Error("JSON invalid number > MAX_SAFE_INTEGER");return B}}else if(typeof I=="bigint"){if(I>sy)throw Error("JSON invalid number > MAX_SAFE_INTEGER_BN");return Number(I)}else throw Error(`JSON invalid type ${typeof I} expected number`)}toJson(I){return I===1/0?this.maxDecimalStr:I.toString(10)}}class SC extends Ft{constructor(I,B){super();N(this,"byteLength");N(this,"typeName");N(this,"itemsPerChunk");N(this,"fixedSize");N(this,"minSize");N(this,"maxSize");if(this.byteLength=I,I>32)throw Error("UintBigint byteLength limit is 32");if(Math.log2(I)%1!==0)throw Error("byteLength must be a power of 2");this.typeName=(B==null?void 0:B.typeName)??`uintBigint${I*8}`,this.byteLength=I,this.itemsPerChunk=32/this.byteLength,this.fixedSize=I,this.minSize=I,this.maxSize=I}static named(I,B){return new(Rg(SC,B.typeName))(I,B)}defaultValue(){return BigInt(0)}value_serializeToBytes({dataView:I},B,C){switch(this.byteLength){case 1:I.setInt8(B,Number(C));break;case 2:I.setUint16(B,Number(C),!0);break;case 4:I.setUint32(B,Number(C),!0);break;case 8:I.setBigUint64(B,C,!0);break;default:for(let e=0;e<this.byteLength;e+=8){e>0&&(C=C/YQ);const i=BigInt.asUintN(64,C);I.setBigUint64(B+e,i,!0)}}return B+this.byteLength}value_deserializeFromBytes({dataView:I},B,C){const e=C-B;if(e!==this.byteLength)throw Error(`Invalid size ${e} expected ${this.byteLength}`);switch(this.byteLength){case 1:return BigInt(I.getUint8(B));case 2:return BigInt(I.getUint16(B,!0));case 4:return BigInt(I.getUint32(B,!0));case 8:return I.getBigUint64(B,!0);case 16:{const i=I.getBigUint64(B,!0);return I.getBigUint64(B+8,!0)*YQ+i}case 32:{const i=I.getBigUint64(B,!0),t=I.getBigUint64(B+8,!0),E=I.getBigUint64(B+16,!0);return I.getBigUint64(B+24,!0)*ly+E*cy+t*YQ+i}}}tree_serializeToBytes(I,B,C){const e=C.getUintBigint(this.byteLength,0);return this.value_serializeToBytes(I,B,e),B+this.byteLength}tree_deserializeFromBytes(I,B,C){const e=C-B;if(e!==this.byteLength)throw Error(`Invalid size ${e} expected ${this.byteLength}`);const i=this.value_deserializeFromBytes(I,B,C),t=TA.fromZero();return t.setUintBigint(this.byteLength,0,i),t}tree_getFromNode(I){return I.getUintBigint(this.byteLength,0)}tree_setToNode(I,B){this.tree_setToPackedNode(I,0,B)}tree_getFromPackedNode(I,B){const C=this.byteLength*(B%this.itemsPerChunk);return I.getUintBigint(this.byteLength,C)}tree_setToPackedNode(I,B,C){const e=this.byteLength*(B%this.itemsPerChunk);I.setUintBigint(this.byteLength,e,C)}fromJson(I){if(typeof I=="bigint")return I;if(typeof I=="string"||typeof I=="number")return BigInt(I);throw Error(`JSON invalid type ${typeof I} expected bigint`)}toJson(I){return I.toString(10)}}BigInt(2),BigInt(3),BigInt(2),BigInt(3);class bQ extends dt{constructor(I,B,C){super(I);N(this,"elementType");N(this,"length");N(this,"typeName");N(this,"itemsPerChunk");N(this,"depth");N(this,"chunkDepth");N(this,"maxChunkCount");N(this,"fixedSize");N(this,"minSize");N(this,"maxSize");N(this,"isList",!1);N(this,"isViewMutable",!0);N(this,"defaultLen");if(this.elementType=I,this.length=B,!I.isBasic)throw Error("elementType must be basic");if(B===0)throw Error("Vector length must be > 0");this.typeName=(C==null?void 0:C.typeName)??`Vector[${I.typeName}, ${B}]`,this.itemsPerChunk=32/I.byteLength,this.maxChunkCount=Math.ceil(B*I.byteLength/32),this.chunkDepth=GI(this.maxChunkCount),this.depth=this.chunkDepth,this.fixedSize=B*I.byteLength,this.minSize=this.fixedSize,this.maxSize=this.fixedSize,this.defaultLen=B}static named(I,B,C){return new(Rg(bQ,C.typeName))(I,B,C)}getView(I){return new qa(this,I)}getViewDU(I,B){return new Ka(this,I,B)}commitView(I){return I.node}commitViewDU(I,B=0,C=null){return I.commit(B,C),I.node}cacheOfViewDU(I){return I.cache}value_serializedSize(){return this.fixedSize}value_serializeToBytes(I,B,C){return wt(this.elementType,this.length,I,B,C)}value_deserializeFromBytes(I,B,C){return fa(this.elementType,I,B,C,this)}tree_serializedSize(){return this.fixedSize}tree_serializeToBytes(I,B,C){return LQ(this.elementType,this.length,this.depth,I,B,C)}tree_deserializeFromBytes(I,B,C){return pa(this.elementType,this.depth,I,B,C,this)}tree_getLength(){return this.length}tree_setLength(){}tree_getChunksNode(I){return I}tree_chunksNodeOffset(){return 0}tree_setChunksNode(I,B){return B}getRoots(I){const B=new Uint8Array(this.fixedSize),C=new DataView(B.buffer,B.byteOffset,B.byteLength);return wt(this.elementType,this.length,{uint8Array:B,dataView:C},0,I),ht(B)}}class Qg extends dt{constructor(I,B,C){super(I);N(this,"elementType");N(this,"length");N(this,"typeName");N(this,"itemsPerChunk",1);N(this,"depth");N(this,"chunkDepth");N(this,"maxChunkCount");N(this,"fixedSize");N(this,"minSize");N(this,"maxSize");N(this,"isList",!1);N(this,"isViewMutable",!0);N(this,"defaultLen");if(this.elementType=I,this.length=B,I.isBasic)throw Error("elementType must not be basic");if(B===0)throw Error("Vector length must be > 0");this.typeName=(C==null?void 0:C.typeName)??`Vector[${I.typeName}, ${B}]`,this.maxChunkCount=B,this.chunkDepth=GI(this.maxChunkCount),this.depth=this.chunkDepth,this.fixedSize=I.fixedSize===null?null:B*I.fixedSize,this.minSize=Ey(I,B),this.maxSize=Ya(I,B),this.defaultLen=B}static named(I,B,C){return new(Rg(Qg,C.typeName))(I,B,C)}getView(I){return new Pa(this,I)}getViewDU(I,B){return new za(this,I,B)}commitView(I){return I.node}commitViewDU(I,B=0,C=null){return I.commit(B,C),I.node}cacheOfViewDU(I){return I.cache}value_serializedSize(I){return ba(this.elementType,this.length,I)}value_serializeToBytes(I,B,C){return Ta(this.elementType,this.length,I,B,C)}value_deserializeFromBytes(I,B,C){return va(this.elementType,I,B,C,this)}tree_serializedSize(I){return _a(this.elementType,this.length,this.depth,I)}tree_serializeToBytes(I,B,C){return KQ(this.elementType,this.length,this.depth,C,I,B)}tree_deserializeFromBytes(I,B,C){return Oa(this.elementType,this.depth,I,B,C,this)}tree_getLength(){return this.length}tree_setLength(){}tree_getChunksNode(I){return I}tree_chunksNodeOffset(){return 0}tree_setChunksNode(I,B){return B}getRoots(I){return Za(this.elementType,this.length,I)}}class hy extends zI{constructor(g,I){super(new sI(8),g,I)}toViewDU(g){const{treeNode:I,leafNodes:B}=this.packedUintNum64sToNode(g);return this.getViewDU(I,{nodes:B,length:g.length,nodesPopulated:!0})}value_toTree(g){const{treeNode:I}=this.packedUintNum64sToNode(g);return I}packedUintNum64sToNode(g){if(g.length>this.limit)throw new Error(`Exceeds limit: ${g.length} > ${this.limit}`);const I=cD(g),B=oC([...I],this.chunkDepth);return{treeNode:dB(B,g.length),leafNodes:I}}}const Gt=BigInt(2**32-1),Va=BigInt(32);function Sy(A,g=!1){return g?{h:Number(A&Gt),l:Number(A>>Va&Gt)}:{h:Number(A>>Va&Gt)|0,l:Number(A&Gt)|0}}function wy(A,g=!1){let I=new Uint32Array(A.length),B=new Uint32Array(A.length);for(let C=0;C<A.length;C++){const{h:e,l:i}=Sy(A[C],g);[I[C],B[C]]=[e,i]}return[I,B]}const Dy=(A,g,I)=>A<<I|g>>>32-I,yy=(A,g,I)=>g<<I|A>>>32-I,uy=(A,g,I)=>g<<I-32|A>>>64-I,fy=(A,g,I)=>A<<I-32|g>>>64-I,[Xa,$a,As]=[[],[],[]],py=BigInt(0),wC=BigInt(1),Fy=BigInt(2),dy=BigInt(7),Gy=BigInt(256),Ny=BigInt(113);for(let A=0,g=wC,I=1,B=0;A<24;A++){[I,B]=[B,(2*I+3*B)%5],Xa.push(2*(5*B+I)),$a.push((A+1)*(A+2)/2%64);let C=py;for(let e=0;e<7;e++)g=(g<<wC^(g>>dy)*Ny)%Gy,g&Fy&&(C^=wC<<(wC<<BigInt(e))-wC);As.push(C)}const[ky,Ry]=wy(As,!0),gs=(A,g,I)=>I>32?uy(A,g,I):Dy(A,g,I),Is=(A,g,I)=>I>32?fy(A,g,I):yy(A,g,I);function Uy(A,g=24){const I=new Uint32Array(10);for(let B=24-g;B<24;B++){for(let i=0;i<10;i++)I[i]=A[i]^A[i+10]^A[i+20]^A[i+30]^A[i+40];for(let i=0;i<10;i+=2){const t=(i+8)%10,E=(i+2)%10,c=I[E],a=I[E+1],l=gs(c,a,1)^I[t],w=Is(c,a,1)^I[t+1];for(let S=0;S<50;S+=10)A[i+S]^=l,A[i+S+1]^=w}let C=A[2],e=A[3];for(let i=0;i<24;i++){const t=$a[i],E=gs(C,e,t),c=Is(C,e,t),a=Xa[i];C=A[a],e=A[a+1],A[a]=E,A[a+1]=c}for(let i=0;i<50;i+=10){for(let t=0;t<10;t++)I[t]=A[i+t];for(let t=0;t<10;t++)A[i+t]^=~I[(t+2)%10]&I[(t+4)%10]}A[0]^=ky[B],A[1]^=Ry[B]}I.fill(0)}class TQ extends ia{constructor(g,I,B,C=!1,e=24){if(super(),this.blockLen=g,this.suffix=I,this.outputLen=B,this.enableXOF=C,this.rounds=e,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,tC(B),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=Vw(this.state)}keccak(){Uy(this.state32,this.rounds),this.posOut=0,this.pos=0}update(g){iC(this);const{blockLen:I,state:B}=this;g=DQ(g);const C=g.length;for(let e=0;e<C;){const i=Math.min(I-this.pos,C-e);for(let t=0;t<i;t++)B[this.pos++]^=g[e++];this.pos===I&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:g,suffix:I,pos:B,blockLen:C}=this;g[B]^=I,I&128&&B===C-1&&this.keccak(),g[C-1]^=128,this.keccak()}writeInto(g){iC(this,!1),hQ(g),this.finish();const I=this.state,{blockLen:B}=this;for(let C=0,e=g.length;C<e;){this.posOut>=B&&this.keccak();const i=Math.min(B-this.posOut,e-C);g.set(I.subarray(this.posOut,this.posOut+i),C),this.posOut+=i,C+=i}return g}xofInto(g){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(g)}xof(g){return tC(g),this.xofInto(new Uint8Array(g))}digestInto(g){if(SQ(g,this),this.finished)throw new Error("digest() was already called");return this.writeInto(g),this.destroy(),g}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(g){const{blockLen:I,suffix:B,outputLen:C,rounds:e,enableXOF:i}=this;return g||(g=new TQ(I,B,C,i,e)),g.state32.set(this.state32),g.pos=this.pos,g.posOut=this.posOut,g.finished=this.finished,g.rounds=e,g.suffix=B,g.outputLen=C,g.enableXOF=i,g.destroyed=this.destroyed,g}}const Ly=(A,g,I)=>Qa(()=>new TQ(g,A,I)),Bs=Ly(1,136,256/8);function my(A){return g=>(Ww.bytes(g),A(g))}(()=>{const A=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0,g=typeof module<"u"&&typeof module.require=="function"&&module.require.bind(module);return{node:g&&!A?g("crypto"):void 0,web:A}})();const Hy=(()=>{const A=my(Bs);return A.create=Bs.create,A})();class Jy extends bg{constructor(){super(20,{typeName:"ExecutionAddress"})}toJson(g){const I=super.toJson(g);return qy(I)}}function My(A){return/^(0x)?[0-9a-f]{40}$/i.test(A)}function qy(A){if(!My(A))throw Error(`Invalid address: ${A}`);const g=(A.startsWith("0x")?A.slice(2):A).toLowerCase(),I=g.split(""),B=new Uint8Array(I.length);for(let e=0;e<B.length;e++)B[e]=g[e].charCodeAt(0);const C=Hy(B);for(let e=0;e<I.length;e+=2)C[e>>1]>>4>=8&&(I[e]=I[e].toUpperCase()),(C[e>>1]&15)>=8&&(I[e+1]=I[e+1].toUpperCase());return"0x"+I.join("")}const gg=new qQ,es=new sI(1),DC=new bg(4),vQ=new bg(8),Cs=new bg(20),_Q=new bg(32),OQ=new bg(48),ZQ=new bg(96),ts=new sI(1),is=new sI(2),jQ=new sI(4),pA=new sI(8),PQ=new sI(8,{clipInfinity:!0}),Ee=new SC(8),Qs=new SC(16),zQ=new SC(32),_A=pA,AI=pA,Es=PQ,os=pA,GB=pA,xQ=pA,PA=pA,ns=pA,rs=Ee,as=Ee,ss=zQ,NB=new bg(32),WQ=pA,cs=DC,ls=DC,VQ=DC,oe=OQ,Nt=ZQ,hs=_Q,Ss=new sI(1,{setBitwiseOR:!0}),XQ=new Jy,kB=Object.freeze(Object.defineProperty({__proto__:null,BLSPubkey:oe,BLSSignature:Nt,BlobIndex:WQ,Boolean:gg,Byte:es,Bytes20:Cs,Bytes32:_Q,Bytes4:DC,Bytes48:OQ,Bytes8:vQ,Bytes96:ZQ,CommitteeIndex:GB,DepositIndex:rs,Domain:hs,DomainType:ls,Epoch:AI,EpochInf:Es,ExecutionAddress:XQ,ForkDigest:VQ,Gwei:as,ParticipationFlags:Ss,Root:NB,Slot:_A,SubcommitteeIndex:xQ,SyncPeriod:os,Uint16:is,Uint32:jQ,Uint8:ts,UintBn128:Qs,UintBn256:zQ,UintBn64:Ee,UintNum64:pA,UintNumInf64:PQ,ValidatorIndex:PA,Version:cs,Wei:ss,WithdrawalIndex:ns},Symbol.toStringTag,{value:"Module"})),{Boolean:Ky,Bytes32:Yy,UintNum64:by,BLSPubkey:Ty,EpochInf:kt}=kB,ws=2**32,ne=4,vy=48,_y=32,Oy=1,Zy={pubkey:Ty,withdrawalCredentials:Yy,effectiveBalance:by,slashed:Ky,activationEligibilityEpoch:kt,activationEpoch:kt,exitEpoch:kt,withdrawableEpoch:kt};class jy extends ty{constructor(){super(Zy,{typeName:"Validator",jsonCase:"eth2"})}value_serializeToBytes({uint8Array:g,dataView:I},B,C){g.set(C.pubkey,B),B+=vy,g.set(C.withdrawalCredentials,B),B+=_y;const{effectiveBalance:e,activationEligibilityEpoch:i,activationEpoch:t,exitEpoch:E,withdrawableEpoch:c}=C;return I.setUint32(B,e&4294967295,!0),B+=ne,I.setUint32(B,e/ws&4294967295,!0),B+=ne,g[B]=C.slashed?1:0,B+=Oy,B=Rt(I,B,i),B=Rt(I,B,t),B=Rt(I,B,E),B=Rt(I,B,c),B}}function Rt(A,g,I){return I===1/0?(A.setUint32(g,4294967295,!0),g+=ne,A.setUint32(g,4294967295,!0),g+=ne):(A.setUint32(g,I&4294967295,!0),g+=ne,A.setUint32(g,I/ws&4294967295,!0),g+=ne),g}const Ds=new jy,{Bytes32:RB,UintNum64:ug,UintBn64:UB,Slot:xI,Epoch:yC,CommitteeIndex:ys,ValidatorIndex:LB,Root:RA,Version:uC,ForkDigest:us,BLSPubkey:fs,BLSSignature:gI,Domain:Py}=kB,$Q=new PI(Mh),XA=new k({slot:xI,proposerIndex:LB,parentRoot:RA,stateRoot:RA,bodyRoot:RA},{typeName:"BeaconBlockHeader",jsonCase:"eth2",cachePermanentRootStruct:!0}),ps=new k({slot:UB,proposerIndex:LB,parentRoot:RA,stateRoot:RA,bodyRoot:RA},{typeName:"BeaconBlockHeader",jsonCase:"eth2",cachePermanentRootStruct:!0}),AE=new k({message:XA,signature:gI},{typeName:"SignedBeaconBlockHeader",jsonCase:"eth2"}),gE=new k({message:ps,signature:gI},{typeName:"SignedBeaconBlockHeader",jsonCase:"eth2"}),JA=new k({epoch:yC,root:RA},{typeName:"Checkpoint",jsonCase:"eth2"}),IE=new k({epoch:UB,root:RA},{typeName:"Checkpoint",jsonCase:"eth2"}),BE=new pt(xe),Ut=new zI(LB,xe),zy=new k({pubkey:fs,withdrawalCredentials:RB,amount:ug},{typeName:"DepositMessage",jsonCase:"eth2"}),eE=new k({pubkey:fs,withdrawalCredentials:RB,amount:ug,signature:gI},{typeName:"DepositData",jsonCase:"eth2"}),xy=new DA(RA,2**Kn),Wy=new k({depositData:eE,blockNumber:ug,index:ug},{typeName:"DepositEvent",jsonCase:"eth2"}),UI=new k({depositRoot:RA,depositCount:ug,blockHash:RB},{typeName:"Eth1Data",jsonCase:"eth2"}),mB=new DA(UI,oh*Wg),Vy=new k({depositRoot:RA,depositCount:ug,blockHash:RB,blockNumber:ug},{typeName:"Eth1DataOrdered",jsonCase:"eth2"}),Xy=new k({timestamp:ug,depositRoot:RA,depositCount:ug},{typeName:"Eth1Block",jsonCase:"eth2"}),LI=new k({previousVersion:uC,currentVersion:uC,epoch:yC},{typeName:"Fork",jsonCase:"eth2"}),CE=new k({currentVersion:uC,genesisValidatorsRoot:RA},{typeName:"ForkData",jsonCase:"eth2"}),$y=new k({forkDigest:us,nextForkVersion:uC,nextForkEpoch:yC},{typeName:"ENRForkID",jsonCase:"eth2"}),WI=new Qg(RA,mn),VI=new Qg(RA,mn),Au=new k({blockRoots:WI,stateRoots:VI},{typeName:"HistoricalBatch",jsonCase:"eth2"}),gu=new k({blockRoots:RA,stateRoots:RA},{typeName:"HistoricalBatchRoots",jsonCase:"eth2"}),Fs=Ds,HB=new DA(Ds,At),JB=new hy(At),MB=new Qg(RB,nh),qB=new bQ(ug,rh),KB=new PI(Hh),XI=new k({slot:xI,index:ys,beaconBlockRoot:RA,source:JA,target:JA},{typeName:"AttestationData",jsonCase:"eth2",cachePermanentRootStruct:!0}),tE=new k({slot:UB,index:UB,beaconBlockRoot:RA,source:IE,target:IE},{typeName:"AttestationData",jsonCase:"eth2",cachePermanentRootStruct:!0}),Iu=new k({attestingIndices:Ut,data:XI,signature:gI},{typeName:"IndexedAttestation",jsonCase:"eth2"}),iE=new k({attestingIndices:Ut,data:tE,signature:gI},{typeName:"IndexedAttestation",jsonCase:"eth2"}),ds=new k({aggregationBits:BE,data:XI,inclusionDelay:xI,proposerIndex:LB},{typeName:"PendingAttestation",jsonCase:"eth2"}),Lt=new k({objectRoot:RA,domain:Py},{typeName:"SigningData",jsonCase:"eth2"}),$I=new k({aggregationBits:BE,data:XI,signature:gI},{typeName:"Attestation",jsonCase:"eth2"}),Bu=$I,II=new k({attestation1:iE,attestation2:iE},{typeName:"AttesterSlashing",jsonCase:"eth2"}),Gs=new k({proof:new Qg(RB,Kn+1),data:eE},{typeName:"Deposit",jsonCase:"eth2"}),AB=new k({signedHeader1:gE,signedHeader2:gE},{typeName:"ProposerSlashing",jsonCase:"eth2"}),Ns=new k({epoch:yC,validatorIndex:LB},{typeName:"VoluntaryExit",jsonCase:"eth2",cachePermanentRootStruct:!0}),gB=new k({message:Ns,signature:gI},{typeName:"SignedVoluntaryExit",jsonCase:"eth2"}),cg=new k({randaoReveal:gI,eth1Data:UI,graffiti:RB,proposerSlashings:new DA(AB,ah),attesterSlashings:new DA(II,sh),attestations:new DA($I,Hn),deposits:new DA(Gs,ch),voluntaryExits:new DA(gB,lh)},{typeName:"BeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),ks=new k({slot:xI,proposerIndex:LB,parentRoot:RA,stateRoot:RA,body:cg},{typeName:"BeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),eu=new k({message:ks,signature:gI},{typeName:"SignedBeaconBlock",jsonCase:"eth2"}),QE=new DA(ds,Hn*Wg),Cu=new k({genesisTime:ug,genesisValidatorsRoot:RA,slot:xI,fork:LI,latestBlockHeader:XA,blockRoots:WI,stateRoots:VI,historicalRoots:new DA(RA,hB),eth1Data:UI,eth1DataVotes:mB,eth1DepositIndex:ug,validators:HB,balances:JB,randaoMixes:MB,slashings:qB,previousEpochAttestations:QE,currentEpochAttestations:QE,justificationBits:KB,previousJustifiedCheckpoint:JA,currentJustifiedCheckpoint:JA,finalizedCheckpoint:JA},{typeName:"BeaconState",jsonCase:"eth2"}),tu=new k({validators:Ut,committeeIndex:ys,slot:xI},{typeName:"CommitteeAssignment",jsonCase:"eth2"}),Rs=new k({aggregatorIndex:LB,aggregate:$I,selectionProof:gI},{typeName:"AggregateAndProof",jsonCase:"eth2",cachePermanentRootStruct:!0}),Us=new k({message:Rs,signature:gI},{typeName:"SignedAggregateAndProof",jsonCase:"eth2"}),iu=new k({forkDigest:us,finalizedRoot:RA,finalizedEpoch:yC,headRoot:RA,headSlot:xI},{typeName:"Status",jsonCase:"eth2"}),Qu=UB,Eu=UB,ou=new k({seqNumber:UB,attnets:$Q},{typeName:"Metadata",jsonCase:"eth2"}),nu=new k({startSlot:xI,count:ug,step:ug},{typeName:"BeaconBlocksByRangeRequest",jsonCase:"eth2"}),ru=new DA(RA,qh),Ls=new k({genesisValidatorsRoot:RA,genesisTime:ug,genesisForkVersion:uC},{typeName:"Genesis",jsonCase:"eth2"}),YB=Object.freeze(Object.defineProperty({__proto__:null,AggregateAndProof:Rs,Attestation:$I,AttestationData:XI,AttestationDataBigint:tE,AttestationSubnets:$Q,AttesterSlashing:II,Balances:JB,BeaconBlock:ks,BeaconBlockBody:cg,BeaconBlockHeader:XA,BeaconBlockHeaderBigint:ps,BeaconBlocksByRangeRequest:nu,BeaconBlocksByRootRequest:ru,BeaconState:Cu,Checkpoint:JA,CheckpointBigint:IE,CommitteeAssignment:tu,CommitteeBits:BE,CommitteeIndices:Ut,Deposit:Gs,DepositData:eE,DepositDataRootList:xy,DepositEvent:Wy,DepositMessage:zy,ENRForkID:$y,EpochAttestations:QE,Eth1Block:Xy,Eth1Data:UI,Eth1DataOrdered:Vy,Eth1DataVotes:mB,Fork:LI,ForkData:CE,Genesis:Ls,Goodbye:Qu,HistoricalBatch:Au,HistoricalBatchRoots:gu,HistoricalBlockRoots:WI,HistoricalStateRoots:VI,IndexedAttestation:Iu,IndexedAttestationBigint:iE,JustificationBits:KB,Metadata:ou,PendingAttestation:ds,Ping:Eu,ProposerSlashing:AB,RandaoMixes:MB,SignedAggregateAndProof:Us,SignedBeaconBlock:eu,SignedBeaconBlockHeader:AE,SignedBeaconBlockHeaderBigint:gE,SignedVoluntaryExit:gB,SigningData:Lt,SingleAttestation:Bu,Slashings:qB,Status:iu,Validator:Fs,Validators:HB,VoluntaryExit:Ns},Symbol.toStringTag,{value:"Module"})),{Bytes32:mt,UintNum64:fC,UintBn64:au,Slot:IB,SubcommitteeIndex:ms,ValidatorIndex:EE,Root:re,BLSPubkey:Hs,BLSSignature:ae,ParticipationFlags:su}=kB,Js=new PI(Tn),Ms=new k({seqNumber:au,attnets:$Q,syncnets:Js},{typeName:"Metadata",jsonCase:"eth2"}),OA=new k({pubkeys:new Qg(Hs,KI),aggregatePubkey:Hs},{typeName:"SyncCommittee",jsonCase:"eth2"}),qs=new k({slot:IB,beaconBlockRoot:re,validatorIndex:EE,signature:ae},{typeName:"SyncCommitteeMessage",jsonCase:"eth2"}),oE=new k({slot:IB,beaconBlockRoot:re,subcommitteeIndex:ms,aggregationBits:new PI(KI/Tn),signature:ae},{typeName:"SyncCommitteeContribution",jsonCase:"eth2"}),Ks=new k({aggregatorIndex:EE,contribution:oE,selectionProof:ae},{typeName:"ContributionAndProof",jsonCase:"eth2",cachePermanentRootStruct:!0}),nE=new k({message:Ks,signature:ae},{typeName:"SignedContributionAndProof",jsonCase:"eth2"}),cu=new k({slot:IB,subcommitteeIndex:ms},{typeName:"SyncAggregatorSelectionData",jsonCase:"eth2"}),Ys=new PI(KI),fg=new k({syncCommitteeBits:Ys,syncCommitteeSignature:ae},{typeName:"SyncCommitteeBits",jsonCase:"eth2"}),cI=new k({...cg.fields,syncAggregate:fg},{typeName:"BeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),bs=new k({slot:IB,proposerIndex:EE,parentRoot:re,stateRoot:re,body:cI},{typeName:"BeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),lu=new k({message:bs,signature:ae},{typeName:"SignedBeaconBlock",jsonCase:"eth2"}),BI=new zI(su,At),se=new zI(fC,At),hu=new k({genesisTime:fC,genesisValidatorsRoot:re,slot:IB,fork:LI,latestBlockHeader:XA,blockRoots:WI,stateRoots:VI,historicalRoots:new DA(re,hB),eth1Data:UI,eth1DataVotes:mB,eth1DepositIndex:fC,validators:HB,balances:JB,randaoMixes:MB,slashings:qB,previousEpochParticipation:BI,currentEpochParticipation:BI,justificationBits:KB,previousJustifiedCheckpoint:JA,currentJustifiedCheckpoint:JA,finalizedCheckpoint:JA,inactivityScores:se,currentSyncCommittee:OA,nextSyncCommittee:OA},{typeName:"BeaconState",jsonCase:"eth2"}),bB=new k({beacon:XA},{typeName:"LightClientHeader",jsonCase:"eth2"}),Ht=new k({header:bB,currentSyncCommittee:OA,currentSyncCommitteeBranch:new Qg(mt,Ve)},{typeName:"LightClientBootstrap",jsonCase:"eth2"}),ce=new k({attestedHeader:bB,nextSyncCommittee:OA,nextSyncCommitteeBranch:new Qg(mt,Ve),finalizedHeader:bB,finalityBranch:new Qg(mt,SB),syncAggregate:fg,signatureSlot:IB},{typeName:"LightClientUpdate",jsonCase:"eth2"}),rE=new k({attestedHeader:bB,finalizedHeader:bB,finalityBranch:new Qg(mt,SB),syncAggregate:fg,signatureSlot:IB},{typeName:"LightClientFinalityUpdate",jsonCase:"eth2"}),Su=new k({attestedHeader:bB,syncAggregate:fg,signatureSlot:IB},{typeName:"LightClientOptimisticUpdate",jsonCase:"eth2"}),wu=new k({startPeriod:fC,count:fC},{typeName:"LightClientUpdatesByRange",jsonCase:"eth2"}),Du=new k({snapshot:Ht,validUpdates:new DA(ce,YI*Wg)},{typeName:"LightClientStore",jsonCase:"eth2"}),le=Object.freeze(Object.defineProperty({__proto__:null,BeaconBlock:bs,BeaconBlockBody:cI,BeaconState:hu,ContributionAndProof:Ks,EpochParticipation:BI,InactivityScores:se,LightClientBootstrap:Ht,LightClientFinalityUpdate:rE,LightClientHeader:bB,LightClientOptimisticUpdate:Su,LightClientStore:Du,LightClientUpdate:ce,LightClientUpdatesByRange:wu,Metadata:Ms,SignedBeaconBlock:lu,SignedContributionAndProof:nE,SyncAggregate:fg,SyncAggregatorSelectionData:cu,SyncCommittee:OA,SyncCommitteeBits:Ys,SyncCommitteeContribution:oE,SyncCommitteeMessage:qs,SyncSubnets:Js},Symbol.toStringTag,{value:"Module"}));class he extends Ft{constructor(){super(...arguments),this.typeName="string",this.byteLength=0,this.fixedSize=0,this.minSize=0,this.maxSize=0}defaultValue(){return""}value_serializeToBytes(){throw Error("Not supported in String type")}value_deserializeFromBytes(){throw Error("Not supported in String type")}tree_serializeToBytes(){throw Error("Not supported in String type")}tree_deserializeFromBytes(){throw Error("Not supported in String type")}tree_getFromNode(){throw Error("Not supported in String type")}tree_setToNode(){throw Error("Not supported in String type")}tree_getFromPackedNode(){throw Error("Not supported in String type")}tree_setToPackedNode(){throw Error("Not supported in String type")}fromJson(g){if(typeof g!="string")throw Error(`JSON invalid type ${typeof g} expected string`);return g}toJson(g){return g}}const BB=new he,{Bytes32:Jt,UintNum64:eI,Slot:aE,ValidatorIndex:Ts,Root:Ug,BLSSignature:Mt,UintBn256:sE,BLSPubkey:vs,ExecutionAddress:_s}=kB,Os=new lC(Sh),Zs=new DA(Os,wh),cE=new k({parentHash:Ug,feeRecipient:_s,stateRoot:Jt,receiptsRoot:Jt,logsBloom:new bg(Dh),prevRandao:Jt,blockNumber:eI,gasLimit:eI,gasUsed:eI,timestamp:eI,extraData:new lC(yh),baseFeePerGas:sE,blockHash:Ug}),lE=new k({...cE.fields,transactions:Zs},{typeName:"ExecutionPayload",jsonCase:"eth2"}),pC=new k({...cE.fields,transactionsRoot:Ug},{typeName:"ExecutionPayloadHeader",jsonCase:"eth2"}),js=new k({...cI.fields,executionPayload:lE},{typeName:"BeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),Ps=new k({slot:aE,proposerIndex:Ts,parentRoot:Ug,stateRoot:Ug,body:js},{typeName:"BeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),yu=new k({message:Ps,signature:Mt},{typeName:"SignedBeaconBlock",jsonCase:"eth2"}),uu=new k({blockHash:Ug,parentHash:Ug,totalDifficulty:sE},{typeName:"PowBlock",jsonCase:"eth2"}),fu=new k({genesisTime:eI,genesisValidatorsRoot:Ug,slot:_A,fork:LI,latestBlockHeader:XA,blockRoots:WI,stateRoots:VI,historicalRoots:new DA(Ug,hB),eth1Data:UI,eth1DataVotes:mB,eth1DepositIndex:eI,validators:HB,balances:JB,randaoMixes:MB,slashings:qB,previousEpochParticipation:BI,currentEpochParticipation:BI,justificationBits:KB,previousJustifiedCheckpoint:JA,currentJustifiedCheckpoint:JA,finalizedCheckpoint:JA,inactivityScores:se,currentSyncCommittee:OA,nextSyncCommittee:OA,latestExecutionPayloadHeader:pC},{typeName:"BeaconState",jsonCase:"eth2"}),zs=new k({...cI.fields,executionPayloadHeader:pC},{typeName:"BlindedBeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),hE=new k({slot:aE,proposerIndex:Ts,parentRoot:Ug,stateRoot:Ug,body:zs},{typeName:"BlindedBeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),pu=new k({message:hE,signature:Mt},{typeName:"SignedBlindedBeaconBlock",jsonCase:"eth2"}),xs=new k({feeRecipient:_s,gasLimit:eI,timestamp:eI,pubkey:vs},{typeName:"ValidatorRegistrationV1",jsonCase:"eth2"}),Ws=new k({message:xs,signature:Mt},{typeName:"SignedValidatorRegistrationV1",jsonCase:"eth2"}),Vs=new k({header:pC,value:sE,pubkey:vs},{typeName:"BuilderBid",jsonCase:"eth2"}),Fu=new k({message:Vs,signature:Mt},{typeName:"SignedBuilderBid",jsonCase:"eth2"}),SE=new k({timestamp:eI,prevRandao:Jt,suggestedFeeRecipient:BB},{typeName:"PayloadAttributes",jsonCase:"eth2"}),FC=new k({proposerIndex:eI,proposalSlot:aE,parentBlockNumber:eI,parentBlockRoot:Ug,parentBlockHash:Ug},{typeName:"SSEPayloadAttributesCommon",jsonCase:"eth2"}),du=new k({...FC.fields,payloadAttributes:SE},{typeName:"SSEPayloadAttributes",jsonCase:"eth2"}),dC=Object.freeze(Object.defineProperty({__proto__:null,BeaconBlock:Ps,BeaconBlockBody:js,BeaconState:fu,BlindedBeaconBlock:hE,BlindedBeaconBlockBody:zs,BuilderBid:Vs,CommonExecutionPayloadType:cE,ExecutionPayload:lE,ExecutionPayloadHeader:pC,PayloadAttributes:SE,PowBlock:uu,SSEPayloadAttributes:du,SSEPayloadAttributesCommon:FC,SignedBeaconBlock:yu,SignedBlindedBeaconBlock:pu,SignedBuilderBid:Fu,SignedValidatorRegistrationV1:Ws,Transaction:Os,Transactions:Zs,ValidatorRegistrationV1:xs},Symbol.toStringTag,{value:"Module"})),{UintNum64:Xs,Slot:qt,ValidatorIndex:Kt,WithdrawalIndex:$s,Root:TB,BLSSignature:Yt,BLSPubkey:A0,ExecutionAddress:g0,Gwei:Gu,UintBn256:Nu,Bytes32:ku}=kB,I0=new k({index:$s,validatorIndex:Kt,address:g0,amount:Gu},{typeName:"Withdrawal",jsonCase:"eth2"}),B0=new k({validatorIndex:Kt,fromBlsPubkey:A0,toExecutionAddress:g0},{typeName:"BLSToExecutionChange",jsonCase:"eth2"}),bt=new k({message:B0,signature:Yt},{typeName:"SignedBLSToExecutionChange",jsonCase:"eth2"}),wE=new DA(I0,fh),DE=new k({...lE.fields,withdrawals:wE},{typeName:"ExecutionPayload",jsonCase:"eth2"}),vB=new k({...pC.fields,withdrawalsRoot:TB},{typeName:"ExecutionPayloadHeader",jsonCase:"eth2"}),yE=new DA(bt,uh),Se=new k({...cI.fields,executionPayload:DE,blsToExecutionChanges:yE},{typeName:"BeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),uE=new k({slot:qt,proposerIndex:Kt,parentRoot:TB,stateRoot:TB,body:Se},{typeName:"BeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),Ru=new k({message:uE,signature:Yt},{typeName:"SignedBeaconBlock",jsonCase:"eth2"}),e0=new k({header:vB,value:Nu,pubkey:A0},{typeName:"BuilderBid",jsonCase:"eth2"}),Uu=new k({message:e0,signature:Yt},{typeName:"SignedBuilderBid",jsonCase:"eth2"}),C0=new k({blockSummaryRoot:TB,stateSummaryRoot:TB},{typeName:"HistoricalSummary",jsonCase:"eth2"}),fE=new DA(C0,hB,{typeName:"HistoricalSummaries"}),_B=new k({genesisTime:Xs,genesisValidatorsRoot:TB,slot:_A,fork:LI,latestBlockHeader:XA,blockRoots:WI,stateRoots:VI,historicalRoots:new DA(TB,hB),eth1Data:UI,eth1DataVotes:mB,eth1DepositIndex:Xs,validators:HB,balances:JB,randaoMixes:MB,slashings:qB,previousEpochParticipation:BI,currentEpochParticipation:BI,justificationBits:KB,previousJustifiedCheckpoint:JA,currentJustifiedCheckpoint:JA,finalizedCheckpoint:JA,inactivityScores:se,currentSyncCommittee:OA,nextSyncCommittee:OA,latestExecutionPayloadHeader:vB,nextWithdrawalIndex:$s,nextWithdrawalValidatorIndex:Kt,historicalSummaries:fE},{typeName:"BeaconState",jsonCase:"eth2"}),t0=new k({...cI.fields,executionPayloadHeader:vB,blsToExecutionChanges:yE},{typeName:"BlindedBeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),pE=new k({...hE.fields,body:t0},{typeName:"BlindedBeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),Lu=new k({message:pE,signature:Yt},{typeName:"SignedBlindedBeaconBlock",jsonCase:"eth2"}),Lg=new k({beacon:XA,execution:vB,executionBranch:new Qg(ku,_n)},{typeName:"LightClientHeader",jsonCase:"eth2"}),i0=new k({header:Lg,currentSyncCommittee:OA,currentSyncCommitteeBranch:Ht.fields.currentSyncCommitteeBranch},{typeName:"LightClientBootstrap",jsonCase:"eth2"}),Q0=new k({attestedHeader:Lg,nextSyncCommittee:OA,nextSyncCommitteeBranch:ce.fields.nextSyncCommitteeBranch,finalizedHeader:Lg,finalityBranch:ce.fields.finalityBranch,syncAggregate:fg,signatureSlot:qt},{typeName:"LightClientUpdate",jsonCase:"eth2"}),mu=new k({attestedHeader:Lg,finalizedHeader:Lg,finalityBranch:rE.fields.finalityBranch,syncAggregate:fg,signatureSlot:qt},{typeName:"LightClientFinalityUpdate",jsonCase:"eth2"}),Hu=new k({attestedHeader:Lg,syncAggregate:fg,signatureSlot:qt},{typeName:"LightClientOptimisticUpdate",jsonCase:"eth2"}),Ju=new k({snapshot:i0,validUpdates:new DA(Q0,YI*Wg)},{typeName:"LightClientStore",jsonCase:"eth2"}),Tt=new k({...SE.fields,withdrawals:wE},{typeName:"PayloadAttributes",jsonCase:"eth2"}),Mu=new k({...FC.fields,payloadAttributes:Tt},{typeName:"SSEPayloadAttributes",jsonCase:"eth2"}),vt=Object.freeze(Object.defineProperty({__proto__:null,BLSToExecutionChange:B0,BLSToExecutionChanges:yE,BeaconBlock:uE,BeaconBlockBody:Se,BeaconState:_B,BlindedBeaconBlock:pE,BlindedBeaconBlockBody:t0,BuilderBid:e0,ExecutionPayload:DE,ExecutionPayloadHeader:vB,HistoricalSummaries:fE,HistoricalSummary:C0,LightClientBootstrap:i0,LightClientFinalityUpdate:mu,LightClientHeader:Lg,LightClientOptimisticUpdate:Hu,LightClientStore:Ju,LightClientUpdate:Q0,PayloadAttributes:Tt,SSEPayloadAttributes:Mu,SignedBLSToExecutionChange:bt,SignedBeaconBlock:Ru,SignedBlindedBeaconBlock:Lu,SignedBuilderBid:Uu,Withdrawal:I0,Withdrawals:wE},Symbol.toStringTag,{value:"Module"})),{UintNum64:FE,Slot:_t,Root:Ot,BLSSignature:dE,UintBn64:Zt,UintBn256:qu,Bytes32:jt,Bytes48:GE,Bytes96:Ku,BLSPubkey:Yu,BlobIndex:E0}=kB,bu=GE,Tu=Ku,vu=jt,NE=GE,kE=GE,RE=new bg(Yh*ph),we=new DA(RE,We),o0=jt,_u=new DA(o0,We),Ou=jt,De=new DA(NE,We),ye=new DA(kE,We),Zu=new k({startSlot:_t,count:FE},{typeName:"BlobSidecarsByRangeRequest",jsonCase:"eth2"}),ju=new k({blockRoot:Ot,index:E0},{typeName:"BlobIdentifier",jsonCase:"eth2"}),Pt=new k({...DE.fields,blobGasUsed:Zt,excessBlobGas:Zt},{typeName:"ExecutionPayload",jsonCase:"eth2"}),ue=new k({...vB.fields,blobGasUsed:Zt,excessBlobGas:Zt},{typeName:"ExecutionPayloadHeader",jsonCase:"eth2"}),zt=new k({...cI.fields,executionPayload:Pt,blsToExecutionChanges:Se.fields.blsToExecutionChanges,blobKzgCommitments:De},{typeName:"BeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),xt=new k({...uE.fields,body:zt},{typeName:"BeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),n0=new k({message:xt,signature:dE},{typeName:"SignedBeaconBlock",jsonCase:"eth2"}),r0=new Qg(jt,Fh),a0=new k({index:E0,blob:RE,kzgCommitment:NE,kzgProof:kE,signedBlockHeader:AE,kzgCommitmentInclusionProof:r0},{typeName:"BlobSidecar",jsonCase:"eth2"}),s0=new DA(a0,We),c0=new k({commitments:De,proofs:ye,blobs:we},{typeName:"BlobsBundle",jsonCase:"eth2"}),l0=new k({...cI.fields,executionPayloadHeader:ue,blsToExecutionChanges:Se.fields.blsToExecutionChanges,blobKzgCommitments:De},{typeName:"BlindedBeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),UE=new k({...pE.fields,body:l0},{typeName:"BlindedBeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),Pu=new k({message:UE,signature:dE},{typeName:"SignedBlindedBeaconBlock",jsonCase:"eth2"}),h0=new k({header:ue,blobKzgCommitments:De,value:qu,pubkey:Yu},{typeName:"BuilderBid",jsonCase:"eth2"}),zu=new k({message:h0,signature:dE},{typeName:"SignedBuilderBid",jsonCase:"eth2"}),xu=new k({executionPayload:Pt,blobsBundle:c0},{typeName:"ExecutionPayloadAndBlobsBundle",jsonCase:"eth2"}),Wu=new k({genesisTime:FE,genesisValidatorsRoot:Ot,slot:_A,fork:LI,latestBlockHeader:XA,blockRoots:WI,stateRoots:VI,historicalRoots:new DA(Ot,hB),eth1Data:UI,eth1DataVotes:mB,eth1DepositIndex:FE,validators:HB,balances:JB,randaoMixes:MB,slashings:qB,previousEpochParticipation:BI,currentEpochParticipation:BI,justificationBits:KB,previousJustifiedCheckpoint:JA,currentJustifiedCheckpoint:JA,finalizedCheckpoint:JA,inactivityScores:se,currentSyncCommittee:OA,nextSyncCommittee:OA,latestExecutionPayloadHeader:ue,nextWithdrawalIndex:_B.fields.nextWithdrawalIndex,nextWithdrawalValidatorIndex:_B.fields.nextWithdrawalValidatorIndex,historicalSummaries:_B.fields.historicalSummaries},{typeName:"BeaconState",jsonCase:"eth2"}),pg=new k({beacon:XA,execution:ue,executionBranch:Lg.fields.executionBranch},{typeName:"LightClientHeader",jsonCase:"eth2"}),S0=new k({header:pg,currentSyncCommittee:OA,currentSyncCommitteeBranch:Ht.fields.currentSyncCommitteeBranch},{typeName:"LightClientBootstrap",jsonCase:"eth2"}),w0=new k({attestedHeader:pg,nextSyncCommittee:OA,nextSyncCommitteeBranch:ce.fields.nextSyncCommitteeBranch,finalizedHeader:pg,finalityBranch:ce.fields.finalityBranch,syncAggregate:fg,signatureSlot:_t},{typeName:"LightClientUpdate",jsonCase:"eth2"}),Vu=new k({attestedHeader:pg,finalizedHeader:pg,finalityBranch:rE.fields.finalityBranch,syncAggregate:fg,signatureSlot:_t},{typeName:"LightClientFinalityUpdate",jsonCase:"eth2"}),Xu=new k({attestedHeader:pg,syncAggregate:fg,signatureSlot:_t},{typeName:"LightClientOptimisticUpdate",jsonCase:"eth2"}),$u=new k({snapshot:S0,validUpdates:new DA(w0,YI*Wg)},{typeName:"LightClientStore",jsonCase:"eth2"}),D0=new k({...Tt.fields,parentBeaconBlockRoot:Ot},{typeName:"PayloadAttributes",jsonCase:"eth2"}),Af=new k({...FC.fields,payloadAttributes:D0},{typeName:"SSEPayloadAttributes",jsonCase:"eth2"}),gf=new k({block:xt,kzgProofs:ye,blobs:we},{typeName:"BlockContents",jsonCase:"eth2"}),If=new k({signedBlock:n0,kzgProofs:ye,blobs:we},{typeName:"SignedBlockContents",jsonCase:"eth2"}),LE=Object.freeze(Object.defineProperty({__proto__:null,BLSFieldElement:vu,BeaconBlock:xt,BeaconBlockBody:zt,BeaconState:Wu,BlindedBeaconBlock:UE,BlindedBeaconBlockBody:l0,BlindedBlob:o0,BlindedBlobs:_u,Blob:RE,BlobIdentifier:ju,BlobKzgCommitments:De,BlobSidecar:a0,BlobSidecars:s0,BlobSidecarsByRangeRequest:Zu,Blobs:we,BlobsBundle:c0,BlockContents:gf,BuilderBid:h0,ExecutionPayload:Pt,ExecutionPayloadAndBlobsBundle:xu,ExecutionPayloadHeader:ue,G1Point:bu,G2Point:Tu,KZGCommitment:NE,KZGProof:kE,KZGProofs:ye,KzgCommitmentInclusionProof:r0,LightClientBootstrap:S0,LightClientFinalityUpdate:Vu,LightClientHeader:pg,LightClientOptimisticUpdate:Xu,LightClientStore:$u,LightClientUpdate:w0,PayloadAttributes:D0,SSEPayloadAttributes:Af,SignedBeaconBlock:n0,SignedBlindedBeaconBlock:Pu,SignedBlockContents:If,SignedBuilderBid:zu,VersionedHash:Ou},Symbol.toStringTag,{value:"Module"})),{Epoch:mE,Gwei:GC,UintNum64:Wt,Slot:Vt,Root:HE,BLSSignature:CI,UintBn256:Bf,Bytes32:fe,BLSPubkey:pe,DepositIndex:ef,UintBn64:Cf,ExecutionAddress:y0,ValidatorIndex:Fe,CommitteeIndex:tf}=kB,u0=new pt(xe*zi),f0=new PI(zi),JE=new zI(Fe,xe*zi),de=new k({aggregationBits:u0,data:XI,signature:CI,committeeBits:f0},{typeName:"Attestation",jsonCase:"eth2"}),ME=new k({committeeIndex:tf,attesterIndex:Fe,data:XI,signature:CI},{typeName:"SingleAttestation",jsonCase:"eth2"}),Qf=new k({attestingIndices:JE,data:XI,signature:CI},{typeName:"IndexedAttestation",jsonCase:"eth2"}),qE=new k({attestingIndices:JE,data:tE,signature:CI},{typeName:"IndexedAttestation",jsonCase:"eth2"}),eB=new k({attestation1:qE,attestation2:qE},{typeName:"AttesterSlashing",jsonCase:"eth2"}),p0=new k({aggregatorIndex:Fe,aggregate:de,selectionProof:CI},{typeName:"AggregateAndProof",jsonCase:"eth2",cachePermanentRootStruct:!0}),F0=new k({message:p0,signature:CI},{typeName:"SignedAggregateAndProof",jsonCase:"eth2"}),d0=new k({pubkey:pe,withdrawalCredentials:fe,amount:Wt,signature:CI,index:ef},{typeName:"DepositRequest",jsonCase:"eth2"}),G0=new DA(d0,Rh),N0=new k({sourceAddress:y0,validatorPubkey:pe,amount:GC},{typeName:"WithdrawalRequest",jsonCase:"eth2"}),k0=new DA(N0,Uh),R0=new k({sourceAddress:y0,sourcePubkey:pe,targetPubkey:pe},{typeName:"ConsolidationRequest",jsonCase:"eth2"}),U0=new DA(R0,kh),Xt=new k({deposits:G0,withdrawals:k0,consolidations:U0},{typeName:"ExecutionRequests",jsonCase:"eth2"}),$t=ue,L0=Pt,m0=new k({randaoReveal:cg.fields.randaoReveal,eth1Data:cg.fields.eth1Data,graffiti:cg.fields.graffiti,proposerSlashings:cg.fields.proposerSlashings,attesterSlashings:new DA(eB,Mn),attestations:new DA(de,qn),deposits:cg.fields.deposits,voluntaryExits:cg.fields.voluntaryExits,syncAggregate:cI.fields.syncAggregate,executionPayload:L0,blsToExecutionChanges:Se.fields.blsToExecutionChanges,blobKzgCommitments:zt.fields.blobKzgCommitments,executionRequests:Xt},{typeName:"BeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),KE=new k({...xt.fields,body:m0},{typeName:"BeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),H0=new k({message:KE,signature:CI},{typeName:"SignedBeaconBlock",jsonCase:"eth2"}),J0=new k({randaoReveal:cg.fields.randaoReveal,eth1Data:cg.fields.eth1Data,graffiti:cg.fields.graffiti,proposerSlashings:cg.fields.proposerSlashings,attesterSlashings:new DA(eB,Mn),attestations:new DA(de,qn),deposits:cg.fields.deposits,voluntaryExits:cg.fields.voluntaryExits,syncAggregate:fg,executionPayloadHeader:$t,blsToExecutionChanges:Se.fields.blsToExecutionChanges,blobKzgCommitments:zt.fields.blobKzgCommitments,executionRequests:Xt},{typeName:"BlindedBeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),M0=new k({...UE.fields,body:J0},{typeName:"BlindedBeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),Ef=new k({message:M0,signature:CI},{typeName:"SignedBlindedBeaconBlock",jsonCase:"eth2"}),q0=new k({header:$t,blobKzgCommitments:De,executionRequests:Xt,value:Bf,pubkey:pe},{typeName:"BuilderBid",jsonCase:"eth2"}),of=new k({message:q0,signature:CI},{typeName:"SignedBuilderBid",jsonCase:"eth2"}),K0=new k({pubkey:pe,withdrawalCredentials:fe,amount:Wt,signature:CI,slot:Vt},{typeName:"PendingDeposit",jsonCase:"eth2"}),Y0=new DA(K0,dh),b0=new k({validatorIndex:Fe,amount:GC,withdrawableEpoch:mE},{typeName:"PendingPartialWithdrawal",jsonCase:"eth2"}),T0=new k({sourceIndex:Fe,targetIndex:Fe},{typeName:"PendingConsolidation",jsonCase:"eth2"}),nf=new k({genesisTime:Wt,genesisValidatorsRoot:HE,slot:_A,fork:LI,latestBlockHeader:XA,blockRoots:WI,stateRoots:VI,historicalRoots:new DA(HE,hB),eth1Data:UI,eth1DataVotes:mB,eth1DepositIndex:Wt,validators:HB,balances:JB,randaoMixes:MB,slashings:qB,previousEpochParticipation:BI,currentEpochParticipation:BI,justificationBits:KB,previousJustifiedCheckpoint:JA,currentJustifiedCheckpoint:JA,finalizedCheckpoint:JA,inactivityScores:se,currentSyncCommittee:OA,nextSyncCommittee:OA,latestExecutionPayloadHeader:$t,nextWithdrawalIndex:_B.fields.nextWithdrawalIndex,nextWithdrawalValidatorIndex:_B.fields.nextWithdrawalValidatorIndex,historicalSummaries:_B.fields.historicalSummaries,depositRequestsStartIndex:Cf,depositBalanceToConsume:GC,exitBalanceToConsume:GC,earliestExitEpoch:mE,consolidationBalanceToConsume:GC,earliestConsolidationEpoch:mE,pendingDeposits:Y0,pendingPartialWithdrawals:new DA(b0,Gh),pendingConsolidations:new DA(T0,Nh)},{typeName:"BeaconState",jsonCase:"eth2"}),v0=new k({header:pg,currentSyncCommittee:OA,currentSyncCommitteeBranch:new Qg(fe,Xe)},{typeName:"LightClientBootstrap",jsonCase:"eth2"}),_0=new k({attestedHeader:pg,nextSyncCommittee:OA,nextSyncCommitteeBranch:new Qg(fe,Xe),finalizedHeader:pg,finalityBranch:new Qg(fe,pI),syncAggregate:fg,signatureSlot:Vt},{typeName:"LightClientUpdate",jsonCase:"eth2"}),rf=new k({attestedHeader:pg,finalizedHeader:pg,finalityBranch:new Qg(fe,pI),syncAggregate:fg,signatureSlot:Vt},{typeName:"LightClientFinalityUpdate",jsonCase:"eth2"}),af=new k({attestedHeader:pg,syncAggregate:fg,signatureSlot:Vt},{typeName:"LightClientOptimisticUpdate",jsonCase:"eth2"}),sf=new k({snapshot:v0,validUpdates:new DA(_0,YI*Wg)},{typeName:"LightClientStore",jsonCase:"eth2"}),O0=new k({...Tt.fields,parentBeaconBlockRoot:HE},{typeName:"PayloadAttributes",jsonCase:"eth2"}),cf=new k({...FC.fields,payloadAttributes:O0},{typeName:"SSEPayloadAttributes",jsonCase:"eth2"}),lf=new k({block:KE,kzgProofs:ye,blobs:we},{typeName:"BlockContents",jsonCase:"eth2"}),hf=new k({signedBlock:H0,kzgProofs:ye,blobs:we},{typeName:"BlockContents",jsonCase:"eth2"}),Z0=Object.freeze(Object.defineProperty({__proto__:null,AggregateAndProof:p0,AggregationBits:u0,Attestation:de,AttesterSlashing:eB,AttestingIndices:JE,BeaconBlock:KE,BeaconBlockBody:m0,BeaconState:nf,BlindedBeaconBlock:M0,BlindedBeaconBlockBody:J0,BlockContents:lf,BuilderBid:q0,CommitteeBits:f0,ConsolidationRequest:R0,ConsolidationRequests:U0,DepositRequest:d0,DepositRequests:G0,ExecutionPayload:L0,ExecutionPayloadHeader:$t,ExecutionRequests:Xt,IndexedAttestation:Qf,IndexedAttestationBigint:qE,LightClientBootstrap:v0,LightClientFinalityUpdate:rf,LightClientOptimisticUpdate:af,LightClientStore:sf,LightClientUpdate:_0,PayloadAttributes:O0,PendingConsolidation:T0,PendingDeposit:K0,PendingDeposits:Y0,PendingPartialWithdrawal:b0,SSEPayloadAttributes:cf,SignedAggregateAndProof:F0,SignedBeaconBlock:H0,SignedBlindedBeaconBlock:Ef,SignedBlockContents:hf,SignedBuilderBid:of,SingleAttestation:ME,WithdrawalRequest:N0,WithdrawalRequests:k0},Symbol.toStringTag,{value:"Module"}));var Ge;(function(A){A.builder="builder",A.engine="engine"})(Ge||(Ge={}));const j0={[lA.phase0]:{...YB},[lA.altair]:{...YB,...le},[lA.bellatrix]:{...YB,...le,...dC},[lA.capella]:{...YB,...le,...dC,...vt},[lA.deneb]:{...YB,...le,...dC,...vt,...LE},[lA.electra]:{...YB,...le,...dC,...vt,...LE,...Z0}};function qA(A,g){return g===void 0?j0[A]:j0[A][g]}const tI=Object.freeze(Object.defineProperty({__proto__:null,BLSPubkey:oe,BLSSignature:Nt,BlobIndex:WQ,Boolean:gg,Byte:es,Bytes20:Cs,Bytes32:_Q,Bytes4:DC,Bytes48:OQ,Bytes8:vQ,Bytes96:ZQ,CommitteeIndex:GB,DepositIndex:rs,Domain:hs,DomainType:ls,Epoch:AI,EpochInf:Es,ExecutionAddress:XQ,ForkDigest:VQ,Gwei:as,ParticipationFlags:Ss,Root:NB,Slot:_A,SubcommitteeIndex:xQ,SyncPeriod:os,Uint16:is,Uint32:jQ,Uint8:ts,UintBn128:Qs,UintBn256:zQ,UintBn64:Ee,UintNum64:pA,UintNumInf64:PQ,ValidatorIndex:PA,Version:cs,Wei:ss,WithdrawalIndex:ns,altair:le,bellatrix:dC,capella:vt,deneb:LE,electra:Z0,phase0:YB,sszTypesFor:qA},Symbol.toStringTag,{value:"Module"}));function Ai(A){return A.kzgProofs!==void 0}function mI(A){const g=A;return g.finalityBranch!==void 0&&g.finalityBranch.length===pI}function P0(A){const g=A;return g.finalityBranch!==void 0&&g.finalityBranch.length===pI}function Sf(A,g){const I=new Map,B=new Map,C=new Map,e=new Map;for(const i of Object.values(A.forks)){const t=wf(i.version,g),E=gi(t);e.set(E,i.name),B.set(i.name,t),C.set(i.name,E)}return{genesisValidatorsRoot:g,getDomain(i,t,E){const c=Math.floor((E??i)/Wg),a=A.getForkInfo(i),l=c<a.epoch?a.prevForkName:a.name,w=A.forks[l];let S=I.get(w.name);S||(S=new Map,I.set(w.name,S));let u=S.get(t);return u||(u=z0(t,w.version,g),S.set(t,u)),u},getDomainAtFork(i,t){const E=A.forks[i];let c=I.get(E.name);c||(c=new Map,I.set(E.name,c));let a=c.get(t);return a||(a=z0(t,E.version,g),c.set(t,a)),a},getDomainForVoluntaryExit(i,t){return i<A.DENEB_FORK_EPOCH*Wg?this.getDomain(i,Yn,t):this.getDomainAtFork(lA.capella,Yn)},forkDigest2ForkName(i){const t=gi(i),E=e.get(t);if(E==null)throw Error(`Unknown forkDigest ${t}`);return E},forkDigest2ForkNameOption(i){const t=gi(i);return e.get(t)??null},forkName2ForkDigest(i){const t=B.get(i);if(!t)throw Error(`No precomputed forkDigest for ${i}`);return t},forkName2ForkDigestHex(i){const t=C.get(i);if(!t)throw Error(`No precomputed forkDigest for ${i}`);return gi(t)}}}function z0(A,g,I){const B=x0(g,I),C=new Uint8Array(32);return C.set(A,0),C.set(B.slice(0,28),4),C}function x0(A,g){const I={currentVersion:A,genesisValidatorsRoot:g};return CE.hashTreeRoot(I)}function gi(A){return kw(typeof A=="string"?A:Vg(A))}function wf(A,g){return x0(A,g).slice(0,4)}function Df(A){const g={name:lA.phase0,seq:WA.phase0,epoch:mh,version:A.GENESIS_FORK_VERSION,prevVersion:A.GENESIS_FORK_VERSION,prevForkName:lA.phase0},I={name:lA.altair,seq:WA.altair,epoch:A.ALTAIR_FORK_EPOCH,version:A.ALTAIR_FORK_VERSION,prevVersion:A.GENESIS_FORK_VERSION,prevForkName:lA.phase0},B={name:lA.bellatrix,seq:WA.bellatrix,epoch:A.BELLATRIX_FORK_EPOCH,version:A.BELLATRIX_FORK_VERSION,prevVersion:A.ALTAIR_FORK_VERSION,prevForkName:lA.altair},C={name:lA.capella,seq:WA.capella,epoch:A.CAPELLA_FORK_EPOCH,version:A.CAPELLA_FORK_VERSION,prevVersion:A.BELLATRIX_FORK_VERSION,prevForkName:lA.bellatrix},e={name:lA.deneb,seq:WA.deneb,epoch:A.DENEB_FORK_EPOCH,version:A.DENEB_FORK_VERSION,prevVersion:A.CAPELLA_FORK_VERSION,prevForkName:lA.capella},i={name:lA.electra,seq:WA.electra,epoch:A.ELECTRA_FORK_EPOCH,version:A.ELECTRA_FORK_VERSION,prevVersion:A.DENEB_FORK_VERSION,prevForkName:lA.deneb},t={phase0:g,altair:I,bellatrix:B,capella:C,deneb:e,electra:i},E=Object.values(t),c=Object.values(t).reverse();return{forks:t,forksAscendingEpochOrder:E,forksDescendingEpochOrder:c,getForkInfo(a){const l=Math.floor(Math.max(a,0)/Wg);return this.getForkInfoAtEpoch(l)},getForkInfoAtEpoch(a){for(const l of c)if(a>=l.epoch)return l;return g},getForkName(a){return this.getForkInfo(a).name},getForkSeq(a){return this.getForkInfo(a).seq},getForkSeqAtEpoch(a){return this.getForkInfoAtEpoch(a).seq},getForkVersion(a){return this.getForkInfo(a).version},getForkTypes(a){return qA(this.getForkName(a))},getPostBellatrixForkTypes(a){const l=this.getForkName(a);if(!XC(l))throw Error(`Invalid slot=${a} fork=${l} for post-bellatrix fork types`);return qA(l)},getPostAltairForkTypes(a){const l=this.getForkName(a);if(!Pi(l))throw Error(`Invalid slot=${a} fork=${l} for post-altair fork types`);return qA(l)},getPostDenebForkTypes(a){const l=this.getForkName(a);if(!qg(l))throw Error(`Invalid slot=${a} fork=${l} for post-deneb fork types`);return qA(l)},getMaxBlobsPerBlock(a){return ZA(a)?A.MAX_BLOBS_PER_BLOCK_ELECTRA:A.MAX_BLOBS_PER_BLOCK},getMaxRequestBlobSidecars(a){return ZA(a)?A.MAX_REQUEST_BLOB_SIDECARS_ELECTRA:A.MAX_REQUEST_BLOB_SIDECARS}}}function YE(A){const g=Zw(A);return{...g,...Df(g)}}function W0(A,g){const I=YE(A);return{...I,...Sf(I,g)}}function V0(A){return{all:A=A||new Map,on:function(g,I){var B=A.get(g);B?B.push(I):A.set(g,[I])},off:function(g,I){var B=A.get(g);B&&(I?B.splice(B.indexOf(I)>>>0,1):A.set(g,[]))},emit:function(g,I){var B=A.get(g);B&&B.slice().map(function(C){C(I)}),(B=A.get("*"))&&B.slice().map(function(C){C(g,I)})}}}let Ig;qI=(A=>(A.lightClientOptimisticHeader="light_client_optimistic_header",A.lightClientFinalityHeader="light_client_finality_header",A.statusChange="light_client_status_change",A))(qI||{}),function(A){A.ContentType="content-type",A.Accept="accept",A.Authorization="authorization",A.ExposeHeaders="access-control-expose-headers"}(Ig||(Ig={}));var mg;(function(A){A.json="application/json",A.ssz="application/octet-stream"})(mg||(mg={}));const yf=Object.values(mg);function uf(A,g){return A!==null&&g.includes(A)}function ff(A){if(!A)return null;const g=A.split(";",1)[0].trim().toLowerCase();return uf(g,yf)?g:null}function pf(A,g,{bearerToken:I}){I&&!g.has(Ig.Authorization)&&g.set(Ig.Authorization,`Bearer ${I}`),(A.username||A.password)&&(g.has(Ig.Authorization)||g.set(Ig.Authorization,`Basic ${sw(decodeURIComponent(`${A.username}:${A.password}`))}`),A.username="",A.password="")}function bE(...A){const g=new Headers;for(const I of A)if(I)if(Array.isArray(I))for(const[B,C]of I)g.set(B,C);else if(I instanceof Headers)for(const[B,C]of I)g.set(B,C);else for(const[B,C]of Object.entries(I))g.set(B,C);return g}function Ng(A,g,I=!0){const B=A[g.toLowerCase()];if(B===void 0&&I)throw Error(`${g} header is required`);return B}class Ff extends Headers{getRequired(g){const I=this.get(g);if(I===null)throw Error(`${g} header is required in response`);return I}getOrDefault(g,I){return this.get(g)??I}}var yA;(function(A){A.json="json",A.ssz="ssz"})(yA||(yA={}));function df(A){switch(A){case mg.json:return yA.json;case mg.ssz:return yA.ssz}}const kA={writeReq:()=>({}),parseReq:()=>{},schema:{}};function Ne(A){return{...A,writeReqSsz:()=>{throw Error("Not implemented")},parseReqSsz:()=>{throw Error("Not implemented")},onlySupport:yA.json}}const Gf={toJson:()=>{},fromJson:()=>{},serialize:()=>new Uint8Array,deserialize:()=>{}},KA={toJson:()=>{},fromJson:()=>{},toHeadersObject:()=>({}),fromHeaders:()=>{}},YA={data:Gf,meta:KA,isEmpty:!0};function wA(A,g=1/0){if(RI(A))return new DA(A,g);if(MQ(A))return new zI(A,g);throw Error(`Unknown type ${A.typeName}`)}function Nf(A){return{toJson:(g,I)=>A(I).toJson(g),fromJson:(g,I)=>A(I).fromJson(g),serialize:(g,I)=>A(I).serialize(g),deserialize:(g,I)=>A(I).deserialize(g)}}function Tg(A){return{toJson:(g,I)=>A(I.version).toJson(g),fromJson:(g,I)=>A(I.version).fromJson(g),serialize:(g,I)=>A(I.version).serialize(g),deserialize:(g,I)=>A(I.version).deserialize(g)}}function kf(A){return{...A,data:{...A.data,serialize:()=>{throw Error("Not implemented")},deserialize:()=>{throw Error("Not implemented")}},onlySupport:yA.json}}const Eg={data:{toJson:A=>nt(A,"snake"),fromJson:A=>{if(typeof A!="object"||A===null)throw Error("JSON must be of type object");return nt(A,"camel")},serialize:()=>{throw Error("Not implemented")},deserialize:()=>{throw Error("Not implemented")}},meta:KA,onlySupport:yA.json};function $A(A){if(A=A.toLowerCase(),!(A in lA))throw Error(`Invalid version ${A}`);return A}function HI(A){if(!Pi(A))throw Error(`Invalid fork=${A} for post-altair fork types`);return qA(A)}function iI(A){if(!XC(A))throw Error(`Invalid fork=${A} for post-bellatrix fork types`);return qA(A)}var T;(function(A){A[A.Uint=0]="Uint",A[A.UintRequired=1]="UintRequired",A[A.UintArray=2]="UintArray",A[A.String=3]="String",A[A.StringRequired=4]="StringRequired",A[A.StringArray=5]="StringArray",A[A.StringArrayRequired=6]="StringArrayRequired",A[A.UintOrStringRequired=7]="UintOrStringRequired",A[A.UintOrStringArray=8]="UintOrStringArray",A[A.Object=9]="Object",A[A.ObjectArray=10]="ObjectArray",A[A.AnyArray=11]="AnyArray",A[A.Boolean=12]="Boolean"})(T||(T={}));function Rf(A){return A.method==="GET"||A.req.schema.body===void 0}var CB;(function(A){A.String="String",A.Variable="Variable"})(CB||(CB={}));function Uf(A){const g=[];let I=0,B=!1;for(let C=0,e=A.length;C<e;C++)switch(A[C]){case"{":{if(B)throw Error(`Invalid path variable not closed: ${A}`);C>I&&g.push({type:CB.String,str:A.slice(I,C)}),I=C+1,B=!0;break}case"}":{if(!B)throw Error(`Invalid path variable not open: ${A}`);if(I===C)throw Error(`Empty variable: ${A}`);g.push({type:CB.Variable,var:A.slice(I,C)}),B=!1,I=C+1;break}}if(B)throw Error(`Invalid path variable not closed: ${A}`);return I<A.length&&g.push({type:CB.String,str:A.slice(I)}),g}function Lf(A){const g=Uf(A);if(g.length===1&&g[0].type===CB.String)return()=>A;const I=g.map(B=>{switch(B.type){case CB.String:return()=>B.str;case CB.Variable:{const C=B.var;return e=>e[C]}}});return function(B){let C="";for(const e of I)C+=e(B);return C}}function mf(A){const g=parseInt(A,10);if(!Number.isFinite(g))throw Error(`Invalid uin64 ${A}`);return g}function Hf(A){return A.toString(10)}function NC(A){return A==null?void 0:A.map(g=>typeof g=="string"?g:Hf(g))}function kC(A){return A==null?void 0:A.map(g=>typeof g=="string"&&g.startsWith("0x")?g:mf(g))}const Ii=66;function TE(A){if(A===void 0)return;const g=Vg(new TextEncoder().encode(A));return g.length>Ii?g.slice(0,Ii):g.length<Ii?g.padEnd(Ii,"0"):g}function vE(A){if(A!==void 0)try{return new TextDecoder("utf8").decode(iA(A))}catch{return A}}function OB(A){if(A=A.toLowerCase(),A!=="true"&&A!=="false")throw Error(`Invalid boolean ${A}`);return A==="true"}const ZB=new k({version:new he});ZB.fields.version.fromJson=A=>$A(BB.fromJson(A));const RC=new k({executionOptimistic:gg},{jsonCase:"eth2"}),_E=new k({...RC.fields,finalized:gg},{jsonCase:"eth2"});new k({...RC.fields,...ZB.fields},{jsonCase:"eth2"});const X0=new k({..._E.fields,...ZB.fields},{jsonCase:"eth2"}),$0=new k({...RC.fields,dependentRoot:BB},{jsonCase:"eth2"});var tA;(function(A){A.Version="Eth-Consensus-Version",A.ConsensusBlockValue="Eth-Consensus-Block-Value",A.ExecutionPayloadBlinded="Eth-Execution-Payload-Blinded",A.ExecutionPayloadValue="Eth-Execution-Payload-Value",A.Finalized="Eth-Consensus-Finalized",A.DependentRoot="Eth-Consensus-Dependent-Root",A.ExecutionOptimistic="Eth-Execution-Optimistic",A.ExecutionPayloadSource="Eth-Execution-Payload-Source"})(tA||(tA={}));const Jf={toJson:A=>RC.toJson(A),fromJson:A=>RC.fromJson(A),toHeadersObject:A=>({[tA.ExecutionOptimistic]:A.executionOptimistic.toString(),[Ig.ExposeHeaders]:tA.ExecutionOptimistic}),fromHeaders:A=>({executionOptimistic:OB(A.getOrDefault(tA.ExecutionOptimistic,"false"))})},lI={toJson:A=>ZB.toJson(A),fromJson:A=>ZB.fromJson(A),toHeadersObject:A=>({[tA.Version]:A.version,[Ig.ExposeHeaders]:tA.Version}),fromHeaders:A=>({version:$A(A.getRequired(tA.Version))})},Ag={toJson:A=>_E.toJson(A),fromJson:A=>_E.fromJson(A),toHeadersObject:A=>({[tA.ExecutionOptimistic]:A.executionOptimistic.toString(),[tA.Finalized]:A.finalized.toString(),[Ig.ExposeHeaders]:[tA.ExecutionOptimistic,tA.Finalized].toString()}),fromHeaders:A=>({executionOptimistic:OB(A.getOrDefault(tA.ExecutionOptimistic,"false")),finalized:OB(A.getOrDefault(tA.Finalized,"false"))})},UC={toJson:A=>X0.toJson(A),fromJson:A=>X0.fromJson(A),toHeadersObject:A=>({[tA.ExecutionOptimistic]:A.executionOptimistic.toString(),[tA.Finalized]:A.finalized.toString(),[tA.Version]:A.version,[Ig.ExposeHeaders]:[tA.ExecutionOptimistic,tA.Finalized,tA.Version].toString()}),fromHeaders:A=>({executionOptimistic:OB(A.getOrDefault(tA.ExecutionOptimistic,"false")),finalized:OB(A.getOrDefault(tA.Finalized,"false")),version:$A(A.getRequired(tA.Version))})},Ac={toJson:A=>$0.toJson(A),fromJson:A=>$0.fromJson(A),toHeadersObject:A=>({[tA.ExecutionOptimistic]:A.executionOptimistic.toString(),[tA.DependentRoot]:A.dependentRoot,[Ig.ExposeHeaders]:[tA.ExecutionOptimistic,tA.DependentRoot].toString()}),fromHeaders:A=>({executionOptimistic:OB(A.getOrDefault(tA.ExecutionOptimistic,"false")),dependentRoot:A.getRequired(tA.DependentRoot)})},gc=new k({root:NB,canonical:gg,header:AE}),Mf=new DA(gc,1e3),Ic=new k({root:NB});var Bc;(function(A){A.none="none",A.gossip="gossip",A.consensus="consensus",A.consensusAndEquivocation="consensus_and_equivocation"})(Bc||(Bc={}));const ke={writeReq:({blockId:A})=>({params:{block_id:A.toString()}}),parseReq:({params:A})=>({blockId:A.block_id}),schema:{params:{block_id:T.StringRequired}}};function qf(A){return{getBlockV2:{url:"/eth/v2/beacon/blocks/{block_id}",method:"GET",req:ke,resp:{data:Tg(g=>tI[g].SignedBeaconBlock),meta:UC}},getBlindedBlock:{url:"/eth/v1/beacon/blinded_blocks/{block_id}",method:"GET",req:ke,resp:{data:Tg(g=>XC(g)?tI[g].SignedBlindedBeaconBlock:tI[g].SignedBeaconBlock),meta:UC}},getBlockAttestations:{url:"/eth/v1/beacon/blocks/{block_id}/attestations",method:"GET",req:ke,resp:{data:cg.fields.attestations,meta:Ag}},getBlockAttestationsV2:{url:"/eth/v2/beacon/blocks/{block_id}/attestations",method:"GET",req:ke,resp:{data:Tg(g=>tI[g].BeaconBlockBody.fields.attestations),meta:UC}},getBlockHeader:{url:"/eth/v1/beacon/headers/{block_id}",method:"GET",req:ke,resp:{data:gc,meta:Ag}},getBlockHeaders:{url:"/eth/v1/beacon/headers",method:"GET",req:{writeReq:({slot:g,parentRoot:I})=>({query:{slot:g,parent_root:I}}),parseReq:({query:g})=>({slot:g.slot,parentRoot:g.parent_root}),schema:{query:{slot:T.Uint,parent_root:T.String}}},resp:{data:Mf,meta:Ag}},getBlockRoot:{url:"/eth/v1/beacon/blocks/{block_id}/root",method:"GET",req:ke,resp:{data:Ic,meta:Ag}},publishBlock:{url:"/eth/v1/beacon/blocks",method:"POST",req:{writeReqJson:({signedBlockOrContents:g})=>{const I=Ai(g)?g.signedBlock.message.slot:g.message.slot,B=A.getForkName(I);return{body:qg(B)?qA(B).SignedBlockContents.toJson(g):qA(B).SignedBeaconBlock.toJson(g),headers:{[tA.Version]:A.getForkName(I)}}},parseReqJson:({body:g,headers:I})=>{let B;const C=Ng(I,tA.Version,!1);return C!==void 0?B=$A(C):B=A.getForkName(g.signed_block!==void 0?g.signed_block.message.slot:g.message.slot),{signedBlockOrContents:qg(B)?qA(B).SignedBlockContents.fromJson(g):tI[B].SignedBeaconBlock.fromJson(g)}},writeReqSsz:({signedBlockOrContents:g})=>{const I=Ai(g)?g.signedBlock.message.slot:g.message.slot,B=A.getForkName(I);return{body:qg(B)?qA(B).SignedBlockContents.serialize(g):qA(B).SignedBeaconBlock.serialize(g),headers:{[tA.Version]:A.getForkName(I)}}},parseReqSsz:({body:g,headers:I})=>{const B=$A(Ng(I,tA.Version));return{signedBlockOrContents:qg(B)?qA(B).SignedBlockContents.deserialize(g):tI[B].SignedBeaconBlock.deserialize(g)}},schema:{body:T.Object,headers:{[tA.Version]:T.String}}},resp:YA,init:{requestWireFormat:yA.ssz}},publishBlockV2:{url:"/eth/v2/beacon/blocks",method:"POST",req:{writeReqJson:({signedBlockOrContents:g,broadcastValidation:I})=>{const B=Ai(g)?g.signedBlock.message.slot:g.message.slot,C=A.getForkName(B);return{body:qg(C)?qA(C).SignedBlockContents.toJson(g):qA(C).SignedBeaconBlock.toJson(g),headers:{[tA.Version]:C},query:{broadcast_validation:I}}},parseReqJson:({body:g,headers:I,query:B})=>{const C=$A(Ng(I,tA.Version));return{signedBlockOrContents:qg(C)?qA(C).SignedBlockContents.fromJson(g):tI[C].SignedBeaconBlock.fromJson(g),broadcastValidation:B.broadcast_validation}},writeReqSsz:({signedBlockOrContents:g,broadcastValidation:I})=>{const B=Ai(g)?g.signedBlock.message.slot:g.message.slot,C=A.getForkName(B);return{body:qg(C)?qA(C).SignedBlockContents.serialize(g):qA(C).SignedBeaconBlock.serialize(g),headers:{[tA.Version]:C},query:{broadcast_validation:I}}},parseReqSsz:({body:g,headers:I,query:B})=>{const C=$A(Ng(I,tA.Version));return{signedBlockOrContents:qg(C)?qA(C).SignedBlockContents.deserialize(g):tI[C].SignedBeaconBlock.deserialize(g),broadcastValidation:B.broadcast_validation}},schema:{body:T.Object,query:{broadcast_validation:T.String},headers:{[tA.Version]:T.String}}},resp:YA,init:{requestWireFormat:yA.ssz}},publishBlindedBlock:{url:"/eth/v1/beacon/blinded_blocks",method:"POST",req:{writeReqJson:({signedBlindedBlock:g})=>{const I=A.getForkName(g.message.slot);return{body:iI(I).SignedBlindedBeaconBlock.toJson(g),headers:{[tA.Version]:I}}},parseReqJson:({body:g,headers:I})=>{let B;const C=Ng(I,tA.Version,!1);return C!==void 0?B=$A(C):B=A.getForkName(g.message.slot),{signedBlindedBlock:iI(B).SignedBlindedBeaconBlock.fromJson(g)}},writeReqSsz:({signedBlindedBlock:g})=>{const I=A.getForkName(g.message.slot);return{body:iI(I).SignedBlindedBeaconBlock.serialize(g),headers:{[tA.Version]:I}}},parseReqSsz:({body:g,headers:I})=>{const B=$A(Ng(I,tA.Version));return{signedBlindedBlock:iI(B).SignedBlindedBeaconBlock.deserialize(g)}},schema:{body:T.Object,headers:{[tA.Version]:T.String}}},resp:YA,init:{requestWireFormat:yA.ssz}},publishBlindedBlockV2:{url:"/eth/v2/beacon/blinded_blocks",method:"POST",req:{writeReqJson:({signedBlindedBlock:g,broadcastValidation:I})=>{const B=A.getForkName(g.message.slot);return{body:iI(B).SignedBlindedBeaconBlock.toJson(g),headers:{[tA.Version]:B},query:{broadcast_validation:I}}},parseReqJson:({body:g,headers:I,query:B})=>{const C=$A(Ng(I,tA.Version));return{signedBlindedBlock:iI(C).SignedBlindedBeaconBlock.fromJson(g),broadcastValidation:B.broadcast_validation}},writeReqSsz:({signedBlindedBlock:g,broadcastValidation:I})=>{const B=A.getForkName(g.message.slot);return{body:iI(B).SignedBlindedBeaconBlock.serialize(g),headers:{[tA.Version]:B},query:{broadcast_validation:I}}},parseReqSsz:({body:g,headers:I,query:B})=>{const C=$A(Ng(I,tA.Version));return{signedBlindedBlock:iI(C).SignedBlindedBeaconBlock.deserialize(g),broadcastValidation:B.broadcast_validation}},schema:{body:T.Object,query:{broadcast_validation:T.String},headers:{[tA.Version]:T.String}}},resp:YA,init:{requestWireFormat:yA.ssz}},getBlobSidecars:{url:"/eth/v1/beacon/blob_sidecars/{block_id}",method:"GET",req:{writeReq:({blockId:g,indices:I})=>({params:{block_id:g.toString()},query:{indices:I}}),parseReq:({params:g,query:I})=>({blockId:g.block_id,indices:I.indices}),schema:{params:{block_id:T.StringRequired},query:{indices:T.UintArray}}},resp:{data:s0,meta:UC}}}}const tB=wA($I),Bi=wA(ME),ec=wA($I),Kf=wA(de),Cc=wA(II),Yf=wA(eB),bf=wA(AB),Tf=wA(gB),LC=wA(bt),ei=wA(qs);function vf(A){return{getPoolAttestations:{url:"/eth/v1/beacon/pool/attestations",method:"GET",req:{writeReq:({slot:g,committeeIndex:I})=>({query:{slot:g,committee_index:I}}),parseReq:({query:g})=>({slot:g.slot,committeeIndex:g.committee_index}),schema:{query:{slot:T.Uint,committee_index:T.Uint}}},resp:{data:ec,meta:KA}},getPoolAttestationsV2:{url:"/eth/v2/beacon/pool/attestations",method:"GET",req:{writeReq:({slot:g,committeeIndex:I})=>({query:{slot:g,committee_index:I}}),parseReq:({query:g})=>({slot:g.slot,committeeIndex:g.committee_index}),schema:{query:{slot:T.Uint,committee_index:T.Uint}}},resp:{data:Tg(g=>ZA(g)?Kf:ec),meta:lI}},getPoolAttesterSlashings:{url:"/eth/v1/beacon/pool/attester_slashings",method:"GET",req:kA,resp:{data:Cc,meta:KA}},getPoolAttesterSlashingsV2:{url:"/eth/v2/beacon/pool/attester_slashings",method:"GET",req:kA,resp:{data:Tg(g=>ZA(g)?Yf:Cc),meta:lI}},getPoolProposerSlashings:{url:"/eth/v1/beacon/pool/proposer_slashings",method:"GET",req:kA,resp:{data:bf,meta:KA}},getPoolVoluntaryExits:{url:"/eth/v1/beacon/pool/voluntary_exits",method:"GET",req:kA,resp:{data:Tf,meta:KA}},getPoolBLSToExecutionChanges:{url:"/eth/v1/beacon/pool/bls_to_execution_changes",method:"GET",req:kA,resp:{data:LC,meta:KA}},submitPoolAttestations:{url:"/eth/v1/beacon/pool/attestations",method:"POST",req:{writeReqJson:({signedAttestations:g})=>({body:tB.toJson(g)}),parseReqJson:({body:g})=>({signedAttestations:tB.fromJson(g)}),writeReqSsz:({signedAttestations:g})=>({body:tB.serialize(g)}),parseReqSsz:({body:g})=>({signedAttestations:tB.deserialize(g)}),schema:{body:T.ObjectArray}},resp:YA},submitPoolAttestationsV2:{url:"/eth/v2/beacon/pool/attestations",method:"POST",req:{writeReqJson:({signedAttestations:g})=>{var B;const I=A.getForkName(((B=g[0])==null?void 0:B.data.slot)??0);return{body:ZA(I)?Bi.toJson(g):tB.toJson(g),headers:{[tA.Version]:I}}},parseReqJson:({body:g,headers:I})=>{const B=$A(Ng(I,tA.Version));return{signedAttestations:ZA(B)?Bi.fromJson(g):tB.fromJson(g)}},writeReqSsz:({signedAttestations:g})=>{var B;const I=A.getForkName(((B=g[0])==null?void 0:B.data.slot)??0);return{body:ZA(I)?Bi.serialize(g):tB.serialize(g),headers:{[tA.Version]:I}}},parseReqSsz:({body:g,headers:I})=>{const B=$A(Ng(I,tA.Version));return{signedAttestations:ZA(B)?Bi.deserialize(g):tB.deserialize(g)}},schema:{body:T.ObjectArray,headers:{[tA.Version]:T.String}}},resp:YA},submitPoolAttesterSlashings:{url:"/eth/v1/beacon/pool/attester_slashings",method:"POST",req:{writeReqJson:({attesterSlashing:g})=>({body:II.toJson(g)}),parseReqJson:({body:g})=>({attesterSlashing:II.fromJson(g)}),writeReqSsz:({attesterSlashing:g})=>({body:II.serialize(g)}),parseReqSsz:({body:g})=>({attesterSlashing:II.deserialize(g)}),schema:{body:T.Object}},resp:YA},submitPoolAttesterSlashingsV2:{url:"/eth/v2/beacon/pool/attester_slashings",method:"POST",req:{writeReqJson:({attesterSlashing:g})=>{const I=A.getForkName(Number(g.attestation1.data.slot));return{body:ZA(I)?eB.toJson(g):II.toJson(g),headers:{[tA.Version]:I}}},parseReqJson:({body:g,headers:I})=>{const B=$A(Ng(I,tA.Version));return{attesterSlashing:ZA(B)?eB.fromJson(g):II.fromJson(g)}},writeReqSsz:({attesterSlashing:g})=>{const I=A.getForkName(Number(g.attestation1.data.slot));return{body:ZA(I)?eB.serialize(g):II.serialize(g),headers:{[tA.Version]:I}}},parseReqSsz:({body:g,headers:I})=>{const B=$A(Ng(I,tA.Version));return{attesterSlashing:ZA(B)?eB.deserialize(g):II.deserialize(g)}},schema:{body:T.Object,headers:{[tA.Version]:T.String}}},resp:YA},submitPoolProposerSlashings:{url:"/eth/v1/beacon/pool/proposer_slashings",method:"POST",req:{writeReqJson:({proposerSlashing:g})=>({body:AB.toJson(g)}),parseReqJson:({body:g})=>({proposerSlashing:AB.fromJson(g)}),writeReqSsz:({proposerSlashing:g})=>({body:AB.serialize(g)}),parseReqSsz:({body:g})=>({proposerSlashing:AB.deserialize(g)}),schema:{body:T.Object}},resp:YA},submitPoolVoluntaryExit:{url:"/eth/v1/beacon/pool/voluntary_exits",method:"POST",req:{writeReqJson:({signedVoluntaryExit:g})=>({body:gB.toJson(g)}),parseReqJson:({body:g})=>({signedVoluntaryExit:gB.fromJson(g)}),writeReqSsz:({signedVoluntaryExit:g})=>({body:gB.serialize(g)}),parseReqSsz:({body:g})=>({signedVoluntaryExit:gB.deserialize(g)}),schema:{body:T.Object}},resp:YA},submitPoolBLSToExecutionChange:{url:"/eth/v1/beacon/pool/bls_to_execution_changes",method:"POST",req:{writeReqJson:({blsToExecutionChanges:g})=>({body:LC.toJson(g)}),parseReqJson:({body:g})=>({blsToExecutionChanges:LC.fromJson(g)}),writeReqSsz:({blsToExecutionChanges:g})=>({body:LC.serialize(g)}),parseReqSsz:({body:g})=>({blsToExecutionChanges:LC.deserialize(g)}),schema:{body:T.ObjectArray}},resp:YA},submitPoolSyncCommitteeSignatures:{url:"/eth/v1/beacon/pool/sync_committees",method:"POST",req:{writeReqJson:({signatures:g})=>({body:ei.toJson(g)}),parseReqJson:({body:g})=>({signatures:ei.fromJson(g)}),writeReqSsz:({signatures:g})=>({body:ei.serialize(g)}),parseReqSsz:({body:g})=>({signatures:ei.deserialize(g)}),schema:{body:T.ObjectArray}},resp:YA}}}const _f=new k({proposerIndex:PA,total:pA,attestations:pA,syncAggregate:pA,proposerSlashings:pA,attesterSlashings:pA},{jsonCase:"eth2"}),tc=new k({head:pA,target:pA,source:pA,inclusionDelay:pA,inactivity:pA},{jsonCase:"eth2"}),Of=new k({...tc.fields,effectiveBalance:pA},{jsonCase:"eth2"}),Zf=new k({...tc.fields,validatorIndex:PA},{jsonCase:"eth2"}),jf=new k({idealRewards:wA(Of),totalRewards:wA(Zf)},{jsonCase:"eth2"}),Pf=wA(new k({validatorIndex:PA,reward:pA},{jsonCase:"eth2"}));function zf(A){return{getBlockRewards:{url:"/eth/v1/beacon/rewards/blocks/{block_id}",method:"GET",req:{writeReq:({blockId:g})=>({params:{block_id:g.toString()}}),parseReq:({params:g})=>({blockId:g.block_id}),schema:{params:{block_id:T.StringRequired}}},resp:{data:_f,meta:Ag}},getAttestationsRewards:{url:"/eth/v1/beacon/rewards/attestations/{epoch}",method:"POST",req:Ne({writeReqJson:({epoch:g,validatorIds:I})=>({params:{epoch:g},body:NC(I)||[]}),parseReqJson:({params:g,body:I})=>({epoch:g.epoch,validatorIds:kC(I)}),schema:{params:{epoch:T.UintRequired},body:T.UintOrStringArray}}),resp:{data:jf,meta:Ag}},getSyncCommitteeRewards:{url:"/eth/v1/beacon/rewards/sync_committee/{block_id}",method:"POST",req:Ne({writeReqJson:({blockId:g,validatorIds:I})=>({params:{block_id:g.toString()},body:NC(I)||[]}),parseReqJson:({params:g,body:I})=>({blockId:g.block_id,validatorIds:kC(I)}),schema:{params:{block_id:T.StringRequired},body:T.UintOrStringArray}}),resp:{data:Pf,meta:Ag}}}}const xf=new k({randao:NB}),Wf=new k({previousJustified:JA,currentJustified:JA,finalized:JA},{jsonCase:"eth2"}),ic=new k({index:PA,balance:pA,status:new he,validator:Fs}),Vf=new k({index:PA,pubkey:oe,activationEpoch:pA},{jsonCase:"eth2"}),Xf=new k({index:GB,slot:_A,validators:wA(PA,xe)}),$f=new k({index:PA,balance:pA}),Ap=new k({validators:wA(PA),validatorAggregates:wA(wA(PA))},{jsonCase:"eth2"}),Qc=wA(ic),gp=wA(Vf),Ip=wA(Xf),Ec=wA($f),OE={writeReq:({stateId:A})=>({params:{state_id:A.toString()}}),parseReq:({params:A})=>({stateId:A.state_id}),schema:{params:{state_id:T.StringRequired}}};function Bp(A){return{getEpochCommittees:{url:"/eth/v1/beacon/states/{state_id}/committees",method:"GET",req:{writeReq:({stateId:g,epoch:I,index:B,slot:C})=>({params:{state_id:g.toString()},query:{epoch:I,index:B,slot:C}}),parseReq:({params:g,query:I})=>({stateId:g.state_id,epoch:I.epoch,index:I.index,slot:I.slot}),schema:{params:{state_id:T.StringRequired},query:{slot:T.Uint,epoch:T.Uint,index:T.Uint}}},resp:{data:Ip,meta:Ag}},getEpochSyncCommittees:{url:"/eth/v1/beacon/states/{state_id}/sync_committees",method:"GET",req:{writeReq:({stateId:g,epoch:I})=>({params:{state_id:g.toString()},query:{epoch:I}}),parseReq:({params:g,query:I})=>({stateId:g.state_id,epoch:I.epoch}),schema:{params:{state_id:T.StringRequired},query:{epoch:T.Uint}}},resp:{data:Ap,meta:Ag}},getStateFinalityCheckpoints:{url:"/eth/v1/beacon/states/{state_id}/finality_checkpoints",method:"GET",req:OE,resp:{data:Wf,meta:Ag}},getStateFork:{url:"/eth/v1/beacon/states/{state_id}/fork",method:"GET",req:OE,resp:{data:LI,meta:Ag}},getStateRoot:{url:"/eth/v1/beacon/states/{state_id}/root",method:"GET",req:OE,resp:{data:Ic,meta:Ag}},getStateRandao:{url:"/eth/v1/beacon/states/{state_id}/randao",method:"GET",req:{writeReq:({stateId:g,epoch:I})=>({params:{state_id:g.toString()},query:{epoch:I}}),parseReq:({params:g,query:I})=>({stateId:g.state_id,epoch:I.epoch}),schema:{params:{state_id:T.StringRequired},query:{epoch:T.Uint}}},resp:{data:xf,meta:Ag}},getStateValidator:{url:"/eth/v1/beacon/states/{state_id}/validators/{validator_id}",method:"GET",req:{writeReq:({stateId:g,validatorId:I})=>({params:{state_id:g.toString(),validator_id:I}}),parseReq:({params:g})=>({stateId:g.state_id,validatorId:g.validator_id}),schema:{params:{state_id:T.StringRequired,validator_id:T.StringRequired}}},resp:{onlySupport:yA.json,data:ic,meta:Ag}},getStateValidators:{url:"/eth/v1/beacon/states/{state_id}/validators",method:"GET",req:{writeReq:({stateId:g,validatorIds:I,statuses:B})=>({params:{state_id:g.toString()},query:{id:I,status:B}}),parseReq:({params:g,query:I})=>({stateId:g.state_id,validatorIds:I.id,statuses:I.status}),schema:{params:{state_id:T.StringRequired},query:{id:T.UintOrStringArray,status:T.StringArray}}},resp:{onlySupport:yA.json,data:Qc,meta:Ag}},postStateValidators:{url:"/eth/v1/beacon/states/{state_id}/validators",method:"POST",req:Ne({writeReqJson:({stateId:g,validatorIds:I,statuses:B})=>({params:{state_id:g.toString()},body:{ids:NC(I),statuses:B}}),parseReqJson:({params:g,body:I={}})=>({stateId:g.state_id,validatorIds:kC(I.ids),statuses:I.statuses}),schema:{params:{state_id:T.StringRequired},body:T.Object}}),resp:{onlySupport:yA.json,data:Qc,meta:Ag}},postStateValidatorIdentities:{url:"/eth/v1/beacon/states/{state_id}/validator_identities",method:"POST",req:Ne({writeReqJson:({stateId:g,validatorIds:I})=>({params:{state_id:g.toString()},body:NC(I)||[]}),parseReqJson:({params:g,body:I=[]})=>({stateId:g.state_id,validatorIds:kC(I)}),schema:{params:{state_id:T.StringRequired},body:T.UintOrStringArray}}),resp:{data:gp,meta:Ag}},getStateValidatorBalances:{url:"/eth/v1/beacon/states/{state_id}/validator_balances",method:"GET",req:{writeReq:({stateId:g,validatorIds:I})=>({params:{state_id:g.toString()},query:{id:I}}),parseReq:({params:g,query:I})=>({stateId:g.state_id,validatorIds:I.id}),schema:{params:{state_id:T.StringRequired},query:{id:T.UintOrStringArray}}},resp:{data:Ec,meta:Ag}},postStateValidatorBalances:{url:"/eth/v1/beacon/states/{state_id}/validator_balances",method:"POST",req:Ne({writeReqJson:({stateId:g,validatorIds:I})=>({params:{state_id:g.toString()},body:NC(I)||[]}),parseReqJson:({params:g,body:I=[]})=>({stateId:g.state_id,validatorIds:kC(I)}),schema:{params:{state_id:T.StringRequired},body:T.UintOrStringArray}}),resp:{data:Ec,meta:Ag}}}}function ep(A){return{getGenesis:{url:"/eth/v1/beacon/genesis",method:"GET",req:kA,resp:{data:Ls,meta:KA}},...qf(A),...vf(A),...Bp(),...zf()}}const Cp=new k({chainId:pA,address:XQ},{jsonCase:"eth2"}),tp=wA(LI);function ip(A){return{getDepositContract:{url:"/eth/v1/config/deposit_contract",method:"GET",req:kA,resp:{data:Cp,meta:KA}},getForkSchedule:{url:"/eth/v1/config/fork_schedule",method:"GET",req:kA,resp:{data:tp,meta:KA}},getSpec:{url:"/eth/v1/config/spec",method:"GET",req:kA,resp:kf({data:{toJson:g=>g,fromJson:g=>{if(typeof g!="object"||g===null)throw Error("JSON must be of type object");return g}},meta:KA})}}}const og=new he,Qp=new k({executionPayloadBlockHash:og,executionPayloadNumber:pA,executionStatus:og,slot:_A,blockRoot:og,parentRoot:og,stateRoot:og,targetRoot:og,timeliness:gg,justifiedEpoch:AI,justifiedRoot:og,finalizedEpoch:AI,finalizedRoot:og,unrealizedJustifiedEpoch:AI,unrealizedJustifiedRoot:og,unrealizedFinalizedEpoch:AI,unrealizedFinalizedRoot:og,parent:og,weight:jQ,bestChild:og,bestDescendant:og},{jsonCase:"eth2"}),Ep=new k({slot:_A,root:og,executionOptimistic:gg},{jsonCase:"eth2"}),op=new k({slot:_A,blockRoot:og,parentRoot:og,justifiedEpoch:AI,finalizedEpoch:AI,weight:pA,validity:new he,executionBlockHash:og},{jsonCase:"eth2"}),np=new k({justifiedCheckpoint:JA,finalizedCheckpoint:JA,forkChoiceNodes:wA(op)},{jsonCase:"eth2"}),rp=wA(Qp),ap=wA(Ep);function sp(A){return{getDebugChainHeadsV2:{url:"/eth/v2/debug/beacon/heads",method:"GET",req:kA,resp:{data:ap,meta:KA,onlySupport:yA.json}},getDebugForkChoice:{url:"/eth/v1/debug/fork_choice",method:"GET",req:kA,resp:{data:np,meta:KA,onlySupport:yA.json,transform:{toResponse:g=>({...g}),fromResponse:g=>({data:g})}}},getProtoArrayNodes:{url:"/eth/v0/debug/forkchoice",method:"GET",req:kA,resp:{data:rp,meta:KA,onlySupport:yA.json}},getStateV2:{url:"/eth/v2/debug/beacon/states/{state_id}",method:"GET",req:{writeReq:({stateId:g})=>({params:{state_id:g.toString()}}),parseReq:({params:g})=>({stateId:g.state_id}),schema:{params:{state_id:T.StringRequired}}},resp:{data:Tg(g=>tI[g].BeaconState),meta:UC},init:{timeoutMs:3e5}}}}const Fg=new he,cp=new k({blockRoot:Fg,index:WQ,slot:_A,kzgCommitment:Fg,versionedHash:Fg},{typeName:"BlobSidecarSSE",jsonCase:"eth2"});var nA;(function(A){A.head="head",A.block="block",A.blockGossip="block_gossip",A.attestation="attestation",A.singleAttestation="single_attestation",A.voluntaryExit="voluntary_exit",A.proposerSlashing="proposer_slashing",A.attesterSlashing="attester_slashing",A.blsToExecutionChange="bls_to_execution_change",A.finalizedCheckpoint="finalized_checkpoint",A.chainReorg="chain_reorg",A.contributionAndProof="contribution_and_proof",A.lightClientOptimisticUpdate="light_client_optimistic_update",A.lightClientFinalityUpdate="light_client_finality_update",A.payloadAttributes="payload_attributes",A.blobSidecar="blob_sidecar"})(nA||(nA={})),nA.head+"",nA.head,nA.block+"",nA.block,nA.blockGossip+"",nA.blockGossip,nA.attestation+"",nA.attestation,nA.singleAttestation+"",nA.singleAttestation,nA.voluntaryExit+"",nA.voluntaryExit,nA.proposerSlashing+"",nA.proposerSlashing,nA.attesterSlashing+"",nA.attesterSlashing,nA.blsToExecutionChange+"",nA.blsToExecutionChange,nA.finalizedCheckpoint+"",nA.finalizedCheckpoint,nA.chainReorg+"",nA.chainReorg,nA.contributionAndProof+"",nA.contributionAndProof,nA.lightClientOptimisticUpdate+"",nA.lightClientOptimisticUpdate,nA.lightClientFinalityUpdate+"",nA.lightClientFinalityUpdate,nA.payloadAttributes+"",nA.payloadAttributes,nA.blobSidecar+"",nA.blobSidecar;function lp(A){return{eventstream:{url:"/eth/v1/events",method:"GET",req:{writeReq:({topics:g})=>({query:{topics:g}}),parseReq:({query:g})=>({topics:g.topics}),schema:{query:{topics:T.StringArrayRequired}}},resp:YA}}}function hp(A){const g=I=>({toJson:({data:B,version:C})=>({data:I(C).toJson(B),version:C}),fromJson:B=>{const{version:C}=ZB.fromJson(B);return{data:I(C).fromJson(B.data),version:C}}});return{[nA.head]:new k({slot:_A,block:Fg,state:Fg,epochTransition:gg,previousDutyDependentRoot:Fg,currentDutyDependentRoot:Fg,executionOptimistic:gg},{jsonCase:"eth2"}),[nA.block]:new k({slot:_A,block:Fg,executionOptimistic:gg},{jsonCase:"eth2"}),[nA.blockGossip]:new k({slot:_A,block:Fg},{jsonCase:"eth2"}),[nA.attestation]:{toJson:I=>{const B=A.getForkName(I.data.slot);return qA(B).Attestation.toJson(I)},fromJson:I=>{const B=A.getForkName(I.data.slot);return qA(B).Attestation.fromJson(I)}},[nA.singleAttestation]:ME,[nA.voluntaryExit]:gB,[nA.proposerSlashing]:AB,[nA.attesterSlashing]:{toJson:I=>{const B=A.getForkName(Number(I.attestation1.data.slot));return qA(B).AttesterSlashing.toJson(I)},fromJson:I=>{const B=A.getForkName(Number(I.attestation1.data.slot));return qA(B).AttesterSlashing.fromJson(I)}},[nA.blsToExecutionChange]:bt,[nA.finalizedCheckpoint]:new k({block:Fg,state:Fg,epoch:AI,executionOptimistic:gg},{jsonCase:"eth2"}),[nA.chainReorg]:new k({slot:_A,depth:pA,oldHeadBlock:Fg,newHeadBlock:Fg,oldHeadState:Fg,newHeadState:Fg,epoch:AI,executionOptimistic:gg},{jsonCase:"eth2"}),[nA.contributionAndProof]:nE,[nA.payloadAttributes]:g(I=>iI(I).SSEPayloadAttributes),[nA.blobSidecar]:cp,[nA.lightClientOptimisticUpdate]:g(I=>HI(I).LightClientOptimisticUpdate),[nA.lightClientFinalityUpdate]:g(I=>HI(I).LightClientFinalityUpdate)}}function Sp(A){const g=hp(A);return{toJson:I=>g[I.type].toJson(I.message),fromJson:(I,B)=>g[I].fromJson(B)}}const oc={...DB,PRESET_BASE:dg.gnosis,CONFIG_NAME:"gnosis",TERMINAL_TOTAL_DIFFICULTY:BigInt("8626000000000000000000058750000000000000000000"),SECONDS_PER_SLOT:5,SECONDS_PER_ETH1_BLOCK:6,ETH1_FOLLOW_DISTANCE:1024,CHURN_LIMIT_QUOTIENT:4096,MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT:2,DEPOSIT_CHAIN_ID:100,DEPOSIT_NETWORK_ID:100,DEPOSIT_CONTRACT_ADDRESS:iA("0x0b98057ea310f4d31f2a452b414647007d1645d9"),MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS:16384,MIN_GENESIS_TIME:1638968400,MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:4096,GENESIS_FORK_VERSION:iA("0x00000064"),GENESIS_DELAY:6e3,ALTAIR_FORK_VERSION:iA("0x01000064"),ALTAIR_FORK_EPOCH:512,BELLATRIX_FORK_VERSION:iA("0x02000064"),BELLATRIX_FORK_EPOCH:385536,CAPELLA_FORK_VERSION:iA("0x03000064"),CAPELLA_FORK_EPOCH:648704,DENEB_FORK_VERSION:iA("0x04000064"),DENEB_FORK_EPOCH:889856,ELECTRA_FORK_VERSION:iA("0x05000064"),ELECTRA_FORK_EPOCH:1/0},wp={...oc,CONFIG_NAME:"chiado",TERMINAL_TOTAL_DIFFICULTY:BigInt("231707791542740786049188744689299064356246512"),DEPOSIT_CHAIN_ID:10200,DEPOSIT_NETWORK_ID:10200,DEPOSIT_CONTRACT_ADDRESS:iA("0xb97036A26259B7147018913bD58a774cf91acf25"),MIN_GENESIS_TIME:1665396e3,MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:6e3,GENESIS_FORK_VERSION:iA("0x0000006f"),GENESIS_DELAY:300,ALTAIR_FORK_VERSION:iA("0x0100006f"),ALTAIR_FORK_EPOCH:90,BELLATRIX_FORK_VERSION:iA("0x0200006f"),BELLATRIX_FORK_EPOCH:180,CAPELLA_FORK_VERSION:iA("0x0300006f"),CAPELLA_FORK_EPOCH:244224,DENEB_FORK_VERSION:iA("0x0400006f"),DENEB_FORK_EPOCH:516608,ELECTRA_FORK_VERSION:iA("0x0500006f"),ELECTRA_FORK_EPOCH:1/0},mC={...DB,CONFIG_NAME:"ephemery",MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:64,MIN_GENESIS_TIME:1638471600,GENESIS_FORK_VERSION:iA("0x1000101b"),GENESIS_DELAY:300,ALTAIR_FORK_VERSION:iA("0x2000101b"),ALTAIR_FORK_EPOCH:0,BELLATRIX_FORK_VERSION:iA("0x3000101b"),BELLATRIX_FORK_EPOCH:0,TERMINAL_TOTAL_DIFFICULTY:BigInt("0"),CAPELLA_FORK_VERSION:iA("0x4000101b"),CAPELLA_FORK_EPOCH:0,DENEB_FORK_VERSION:iA("0x5000101b"),DENEB_FORK_EPOCH:5,ELECTRA_FORK_VERSION:iA("0x6000101b"),ELECTRA_FORK_EPOCH:1/0,DEPOSIT_CHAIN_ID:39438e3,DEPOSIT_NETWORK_ID:39438e3,DEPOSIT_CONTRACT_ADDRESS:iA("0x4242424242424242424242424242424242424242"),ETH1_FOLLOW_DISTANCE:12},nc=6048e5,ZE=Math.floor(Date.now()-mC.MIN_GENESIS_TIME)/nc,jE={...mC,MIN_GENESIS_TIME:nc*ZE+mC.MIN_GENESIS_TIME,DEPOSIT_CHAIN_ID:mC.DEPOSIT_CHAIN_ID+ZE,DEPOSIT_NETWORK_ID:mC.DEPOSIT_NETWORK_ID+ZE},Dp={...DB,CONFIG_NAME:"holesky",MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:16384,MIN_GENESIS_TIME:1695902100,GENESIS_DELAY:300,GENESIS_FORK_VERSION:iA("0x01017000"),ALTAIR_FORK_VERSION:iA("0x02017000"),ALTAIR_FORK_EPOCH:0,BELLATRIX_FORK_VERSION:iA("0x03017000"),BELLATRIX_FORK_EPOCH:0,TERMINAL_TOTAL_DIFFICULTY:BigInt("0"),CAPELLA_FORK_VERSION:iA("0x04017000"),CAPELLA_FORK_EPOCH:256,DENEB_FORK_VERSION:iA("0x05017000"),DENEB_FORK_EPOCH:29696,ELECTRA_FORK_VERSION:iA("0x06017000"),ELECTRA_FORK_EPOCH:115968,EJECTION_BALANCE:28e9,DEPOSIT_CHAIN_ID:17e3,DEPOSIT_NETWORK_ID:17e3,DEPOSIT_CONTRACT_ADDRESS:iA("0x4242424242424242424242424242424242424242")},yp={...DB,CONFIG_NAME:"mainnet",DEPOSIT_CONTRACT_ADDRESS:iA("0x00000000219ab540356cBB839Cbe05303d7705Fa"),DEPOSIT_CHAIN_ID:1,DEPOSIT_NETWORK_ID:1,MIN_GENESIS_TIME:1606824e3,GENESIS_DELAY:604800},up={...DB,CONFIG_NAME:"sepolia",MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:1300,MIN_GENESIS_TIME:1655647200,GENESIS_FORK_VERSION:iA("0x90000069"),GENESIS_DELAY:86400,ALTAIR_FORK_VERSION:iA("0x90000070"),ALTAIR_FORK_EPOCH:50,BELLATRIX_FORK_VERSION:iA("0x90000071"),BELLATRIX_FORK_EPOCH:100,TERMINAL_TOTAL_DIFFICULTY:BigInt("17000000000000000"),CAPELLA_FORK_VERSION:iA("0x90000072"),CAPELLA_FORK_EPOCH:56832,DENEB_FORK_VERSION:iA("0x90000073"),DENEB_FORK_EPOCH:132608,ELECTRA_FORK_VERSION:iA("0x90000074"),ELECTRA_FORK_EPOCH:222464,DEPOSIT_CHAIN_ID:11155111,DEPOSIT_NETWORK_ID:11155111,DEPOSIT_CONTRACT_ADDRESS:iA("0x7f02C3E3c98b133055B8B348B2Ac625669Ed295D")},Re={mainnet:yp,gnosis:oc,sepolia:up,holesky:Dp,chiado:wp,ephemery:jE},fp={mainnet:{genesisTime:1606824023,genesisValidatorsRoot:"0x4b363db94e286120d76eb905340fdd4e54bfe9f06bf33ff6cf5ad27f511bfe95"},gnosis:{genesisTime:1638993340,genesisValidatorsRoot:"0xf5dcb5564e829aab27264b9becd5dfaa017085611224cb3036f573368dbb9d47"},sepolia:{genesisTime:1655733600,genesisValidatorsRoot:"0xd8ea171f3c94aea21ebc42a1ed61052acf3f9209c00e4efbaaddac09ed9b8078"},holesky:{genesisTime:1695902400,genesisValidatorsRoot:"0x9143aa7c615a7f7115e2b6aac319c03529df8242ae705fba9df39b79c59fa8b1"},chiado:{genesisTime:1665396300,genesisValidatorsRoot:"0x9d642dac73058fbf39c0ae41ab1e34e4d889043cb199851ded7095bc99eb4c1e"},ephemery:{genesisTime:jE.MIN_GENESIS_TIME+jE.GENESIS_DELAY,genesisValidatorsRoot:"0x0000000000000000000000000000000000000000000000000000000000000000"}},pp=new DA(NB,1e4);function Fp(A){let g;const I=()=>{var B;if(g===void 0){const C=(B=fp[A.CONFIG_NAME])==null?void 0:B.genesisValidatorsRoot;g=W0(A,C?iA(C):Jh)}return g};return{getLightClientUpdatesByRange:{url:"/eth/v1/beacon/light_client/updates",method:"GET",req:{writeReq:({startPeriod:B,count:C})=>({query:{start_period:B,count:C}}),parseReq:({query:B})=>({startPeriod:B.start_period,count:B.count}),schema:{query:{start_period:T.UintRequired,count:T.UintRequired}}},resp:{data:{toJson:(B,C)=>{const e=[];for(const[i,t]of B.entries())e.push(HI(C.versions[i]).LightClientUpdate.toJson(t));return e},fromJson:(B,C)=>{const e=B,i=[];for(let t=0;t<e.length;t++){const E=C.versions[t];i.push(HI(E).LightClientUpdate.fromJson(e[t]))}return i},serialize:(B,C)=>{const e=[];for(const[i,t]of B.entries()){const E=C.versions[i],c=I().forkName2ForkDigest(E),a=HI(E).LightClientUpdate.serialize(t),l=pA.serialize(4+a.length);e.push(l,c,a)}return MA.concat(e)},deserialize:B=>{let C=0;const e=[];for(;C<B.length;){const i=pA.deserialize(B.subarray(C,C+8)),t=VQ.deserialize(B.subarray(C+8,C+12)),E=I().forkDigest2ForkName(t);e.push(HI(E).LightClientUpdate.deserialize(B.subarray(C+12,C+8+i))),C+=8+i}return e}},meta:{toJson:B=>B,fromJson:B=>B,toHeadersObject:B=>({[tA.Version]:B.versions.join(",")}),fromHeaders:B=>{const C=B.getOrDefault(tA.Version,"");return{versions:C===""?[]:C.split(",")}}},transform:{toResponse:(B,C)=>{const e=B,i=[];for(let t=0;t<e.length;t++)i.push({data:e[t],version:C.versions[t]});return i},fromResponse:B=>{if(!Array.isArray(B))throw Error("JSON is not an array");const C=[],e={versions:[]};for(const{data:i,version:t}of B)C.push(i),e.versions.push($A(t));return{data:C,meta:e}}}}},getLightClientOptimisticUpdate:{url:"/eth/v1/beacon/light_client/optimistic_update",method:"GET",req:kA,resp:{data:Tg(B=>HI(B).LightClientOptimisticUpdate),meta:lI}},getLightClientFinalityUpdate:{url:"/eth/v1/beacon/light_client/finality_update",method:"GET",req:kA,resp:{data:Tg(B=>HI(B).LightClientFinalityUpdate),meta:lI}},getLightClientBootstrap:{url:"/eth/v1/beacon/light_client/bootstrap/{block_root}",method:"GET",req:{writeReq:({blockRoot:B})=>({params:{block_root:B}}),parseReq:({params:B})=>({blockRoot:B.block_root}),schema:{params:{block_root:T.StringRequired}}},resp:{data:Tg(B=>HI(B).LightClientBootstrap),meta:lI}},getLightClientCommitteeRoot:{url:"/eth/v0/beacon/light_client/committee_root",method:"GET",req:{writeReq:({startPeriod:B,count:C})=>({query:{start_period:B,count:C}}),parseReq:({query:B})=>({startPeriod:B.start_period,count:B.count}),schema:{query:{start_period:T.UintRequired,count:T.UintRequired}}},resp:{data:pp,meta:KA}}}}const dp=new k({historicalSummaries:fE,proof:wA(vQ)},{jsonCase:"eth2"});function Gp(A){return{writeHeapdump:{url:"/eth/v1/lodestar/write_heapdump",method:"POST",req:{writeReq:({thread:g,dirpath:I})=>({query:{thread:g,dirpath:I}}),parseReq:({query:g})=>({thread:g.thread,dirpath:g.dirpath}),schema:{query:{thread:T.String,dirpath:T.String}}},resp:Eg},writeProfile:{url:"/eth/v1/lodestar/write_profile",method:"POST",req:{writeReq:({thread:g,duration:I,dirpath:B})=>({query:{thread:g,duration:I,dirpath:B}}),parseReq:({query:g})=>({thread:g.thread,duration:g.duration,dirpath:g.dirpath}),schema:{query:{thread:T.String,duration:T.Uint,dirpath:T.String}}},resp:Eg},getLatestWeakSubjectivityCheckpointEpoch:{url:"/eth/v1/lodestar/ws_epoch",method:"GET",req:kA,resp:Eg},getSyncChainsDebugState:{url:"/eth/v1/lodestar/sync_chains_debug_state",method:"GET",req:kA,resp:Eg},getGossipQueueItems:{url:"/eth/v1/lodestar/gossip_queue_items/:gossipType",method:"GET",req:{writeReq:({gossipType:g})=>({params:{gossipType:g}}),parseReq:({params:g})=>({gossipType:g.gossipType}),schema:{params:{gossipType:T.StringRequired}}},resp:Eg},getRegenQueueItems:{url:"/eth/v1/lodestar/regen_queue_items",method:"GET",req:kA,resp:Eg},getBlockProcessorQueueItems:{url:"/eth/v1/lodestar/block_processor_queue_items",method:"GET",req:kA,resp:Eg},getStateCacheItems:{url:"/eth/v1/lodestar/state_cache_items",method:"GET",req:kA,resp:Eg},getGossipPeerScoreStats:{url:"/eth/v1/lodestar/gossip_peer_score_stats",method:"GET",req:kA,resp:Eg},getLodestarPeerScoreStats:{url:"/eth/v1/lodestar/lodestar_peer_score_stats",method:"GET",req:kA,resp:Eg},runGC:{url:"/eth/v1/lodestar/gc",method:"POST",req:kA,resp:YA},dropStateCache:{url:"/eth/v1/lodestar/drop_state_cache",method:"POST",req:kA,resp:YA},connectPeer:{url:"/eth/v1/lodestar/connect_peer",method:"POST",req:{writeReq:({peerId:g,multiaddrs:I})=>({query:{peerId:g,multiaddr:I}}),parseReq:({query:g})=>({peerId:g.peerId,multiaddrs:g.multiaddr}),schema:{query:{peerId:T.StringRequired,multiaddr:T.StringArray}}},resp:YA},disconnectPeer:{url:"/eth/v1/lodestar/disconnect_peer",method:"POST",req:{writeReq:({peerId:g})=>({query:{peerId:g}}),parseReq:({query:g})=>({peerId:g.peerId}),schema:{query:{peerId:T.StringRequired}}},resp:YA},getPeers:{url:"/eth/v1/lodestar/peers",method:"GET",req:{writeReq:({state:g,direction:I})=>({query:{state:g,direction:I}}),parseReq:({query:g})=>({state:g.state,direction:g.direction}),schema:{query:{state:T.StringArray,direction:T.StringArray}}},resp:Eg},getHistoricalSummaries:{url:"/eth/v1/lodestar/historical_summaries/{state_id}",method:"GET",req:{writeReq:({stateId:g})=>({params:{state_id:g.toString()}}),parseReq:({params:g})=>({stateId:g.state_id}),schema:{params:{state_id:T.StringRequired}}},resp:{data:dp,meta:KA}},discv5GetKadValues:{url:"/eth/v1/debug/discv5_kad_values",method:"GET",req:kA,resp:Eg},dumpDbBucketKeys:{url:"/eth/v1/debug/dump_db_bucket_keys/:bucket",method:"GET",req:{writeReq:({bucket:g})=>({params:{bucket:g}}),parseReq:({params:g})=>({bucket:g.bucket}),schema:{params:{bucket:T.String}}},resp:Eg},dumpDbStateIndex:{url:"/eth/v1/debug/dump_db_state_index",method:"GET",req:kA,resp:Eg}}}const Np=new k({peerId:BB,enr:BB,p2pAddresses:wA(BB),discoveryAddresses:wA(BB),metadata:Ms},{jsonCase:"eth2"}),kp=new k({disconnected:pA,connecting:pA,connected:pA,disconnecting:pA},{jsonCase:"eth2"}),Rp=new k({headSlot:_A,syncDistance:_A,isSyncing:gg,isOptimistic:gg,elOffline:gg},{jsonCase:"eth2"});var rc;(function(A){A[A.READY=200]="READY",A[A.SYNCING=206]="SYNCING",A[A.NOT_INITIALIZED_OR_ISSUES=503]="NOT_INITIALIZED_OR_ISSUES"})(rc||(rc={}));function Up(A){return{getNetworkIdentity:{url:"/eth/v1/node/identity",method:"GET",req:kA,resp:{onlySupport:yA.json,data:Np,meta:KA}},getPeers:{url:"/eth/v1/node/peers",method:"GET",req:{writeReq:({state:g,direction:I})=>({query:{state:g,direction:I}}),parseReq:({query:g})=>({state:g.state,direction:g.direction}),schema:{query:{state:T.StringArray,direction:T.StringArray}}},resp:{...Eg,meta:{toJson:g=>g,fromJson:g=>({count:g.count}),toHeadersObject:()=>({}),fromHeaders:()=>({})},transform:{toResponse:(g,I)=>({data:g,meta:I}),fromResponse:g=>g}}},getPeer:{url:"/eth/v1/node/peers/{peer_id}",method:"GET",req:{writeReq:({peerId:g})=>({params:{peer_id:g}}),parseReq:({params:g})=>({peerId:g.peer_id}),schema:{params:{peer_id:T.StringRequired}}},resp:Eg},getPeerCount:{url:"/eth/v1/node/peer_count",method:"GET",req:kA,resp:{data:kp,meta:KA}},getNodeVersion:{url:"/eth/v1/node/version",method:"GET",req:kA,resp:Eg},getSyncingStatus:{url:"/eth/v1/node/syncing",method:"GET",req:kA,resp:{data:Rp,meta:KA}},getHealth:{url:"/eth/v1/node/health",method:"GET",req:{writeReq:({syncingStatus:g})=>({query:{syncing_status:g}}),parseReq:({query:g})=>({syncingStatus:g.syncing_status}),schema:{query:{syncing_status:T.Uint}}},resp:YA}}}const iB=new k({leaves:wA(NB,1e4),descriptor:new lC(2048)});function Lp(A){return{getStateProof:{url:"/eth/v0/beacon/proof/state/{state_id}",method:"GET",req:{writeReq:({stateId:g,descriptor:I})=>({params:{state_id:g},query:{format:Vg(I)}}),parseReq:({params:g,query:I})=>({stateId:g.state_id,descriptor:iA(I.format)}),schema:{params:{state_id:T.StringRequired},query:{format:T.StringRequired}}},resp:{data:{toJson:g=>iB.toJson(g),fromJson:g=>({...iB.fromJson(g),type:vA.compactMulti}),serialize:g=>iB.serialize(g),deserialize:g=>({...iB.deserialize(g),type:vA.compactMulti})},meta:lI}},getBlockProof:{url:"/eth/v0/beacon/proof/block/{block_id}",method:"GET",req:{writeReq:({blockId:g,descriptor:I})=>({params:{block_id:g},query:{format:Vg(I)}}),parseReq:({params:g,query:I})=>({blockId:g.block_id,descriptor:iA(I.format)}),schema:{params:{block_id:T.StringRequired},query:{format:T.StringRequired}}},resp:{data:{toJson:g=>iB.toJson(g),fromJson:g=>({...iB.fromJson(g),type:vA.compactMulti}),serialize:g=>iB.serialize(g),deserialize:g=>({...iB.deserialize(g),type:vA.compactMulti})},meta:lI}}}}var ac;(function(A){A.Default="default",A.BuilderAlways="builderalways",A.ExecutionAlways="executionalways",A.MaxProfit="maxprofit",A.BuilderOnly="builderonly",A.ExecutionOnly="executiononly"})(ac||(ac={}));const sc=new k({...ZB.fields,executionPayloadBlinded:gg,executionPayloadValue:Ee,consensusBlockValue:Ee},{jsonCase:"eth2"}),mp=new k({pubkey:oe,validatorIndex:PA,committeeIndex:GB,committeeLength:pA,committeesAtSlot:pA,validatorCommitteeIndex:pA,slot:_A},{jsonCase:"eth2"}),Hp=new k({slot:_A,validatorIndex:PA,pubkey:oe},{jsonCase:"eth2"}),Jp=new k({pubkey:oe,validatorIndex:PA,validatorSyncCommitteeIndices:wA(GB)},{jsonCase:"eth2"}),Mp=new k({validatorIndex:PA,committeeIndex:GB,committeesAtSlot:_A,slot:_A,isAggregator:gg},{jsonCase:"eth2"}),qp=new k({validatorIndex:PA,syncCommitteeIndices:wA(GB),untilEpoch:AI},{jsonCase:"eth2"}),Kp=new k({validatorIndex:PA,feeRecipient:BB},{jsonCase:"eth2"}),Yp=new k({validatorIndex:PA,slot:_A,selectionProof:Nt},{jsonCase:"eth2"}),bp=new k({validatorIndex:PA,slot:_A,subcommitteeIndex:xQ,selectionProof:Nt},{jsonCase:"eth2"}),Tp=new k({index:PA,isLive:gg},{jsonCase:"eth2"}),vg=wA(PA),vp=wA(mp),_p=wA(Hp),Op=wA(Jp),QB=wA(Us),Ci=wA(F0),ti=wA(nE),ii=wA(Mp),Qi=wA(qp),cc=wA(Kp),HC=wA(Yp),JC=wA(bp),Zp=wA(Tp),Ei=wA(Ws);function jp(A){return{getAttesterDuties:{url:"/eth/v1/validator/duties/attester/{epoch}",method:"POST",req:{writeReqJson:({epoch:g,indices:I})=>({params:{epoch:g},body:vg.toJson(I)}),parseReqJson:({params:g,body:I})=>({epoch:g.epoch,indices:vg.fromJson(I)}),writeReqSsz:({epoch:g,indices:I})=>({params:{epoch:g},body:vg.serialize(I)}),parseReqSsz:({params:g,body:I})=>({epoch:g.epoch,indices:vg.deserialize(I)}),schema:{params:{epoch:T.UintRequired},body:T.StringArray}},resp:{data:vp,meta:Ac}},getProposerDuties:{url:"/eth/v1/validator/duties/proposer/{epoch}",method:"GET",req:{writeReq:({epoch:g})=>({params:{epoch:g}}),parseReq:({params:g})=>({epoch:g.epoch}),schema:{params:{epoch:T.UintRequired}}},resp:{data:_p,meta:Ac}},getSyncCommitteeDuties:{url:"/eth/v1/validator/duties/sync/{epoch}",method:"POST",req:{writeReqJson:({epoch:g,indices:I})=>({params:{epoch:g},body:vg.toJson(I)}),parseReqJson:({params:g,body:I})=>({epoch:g.epoch,indices:vg.fromJson(I)}),writeReqSsz:({epoch:g,indices:I})=>({params:{epoch:g},body:vg.serialize(I)}),parseReqSsz:({params:g,body:I})=>({epoch:g.epoch,indices:vg.deserialize(I)}),schema:{params:{epoch:T.UintRequired},body:T.StringArray}},resp:{data:Op,meta:Jf}},produceBlockV2:{url:"/eth/v2/validator/blocks/{slot}",method:"GET",req:{writeReq:({slot:g,randaoReveal:I,graffiti:B,feeRecipient:C,builderSelection:e,strictFeeRecipientCheck:i})=>({params:{slot:g},query:{randao_reveal:Vg(I),graffiti:TE(B),fee_recipient:C,builder_selection:e,strict_fee_recipient_check:i}}),parseReq:({params:g,query:I})=>({slot:g.slot,randaoReveal:iA(I.randao_reveal),graffiti:vE(I.graffiti),feeRecipient:I.fee_recipient,builderSelection:I.builder_selection,strictFeeRecipientCheck:I.strict_fee_recipient_check}),schema:{params:{slot:T.UintRequired},query:{randao_reveal:T.StringRequired,graffiti:T.String,fee_recipient:T.String,builder_selection:T.String,strict_fee_recipient_check:T.Boolean}}},resp:{data:Tg(g=>qg(g)?qA(g).BlockContents:tI[g].BeaconBlock),meta:lI}},produceBlockV3:{url:"/eth/v3/validator/blocks/{slot}",method:"GET",req:{writeReq:({slot:g,randaoReveal:I,graffiti:B,skipRandaoVerification:C,feeRecipient:e,builderSelection:i,builderBoostFactor:t,strictFeeRecipientCheck:E,blindedLocal:c})=>({params:{slot:g},query:{randao_reveal:Vg(I),graffiti:TE(B),skip_randao_verification:zp(C),fee_recipient:e,builder_selection:i,builder_boost_factor:t==null?void 0:t.toString(),strict_fee_recipient_check:E,blinded_local:c}}),parseReq:({params:g,query:I})=>({slot:g.slot,randaoReveal:iA(I.randao_reveal),graffiti:vE(I.graffiti),skipRandaoVerification:xp(I.skip_randao_verification),feeRecipient:I.fee_recipient,builderSelection:I.builder_selection,builderBoostFactor:Pp(I.builder_boost_factor),strictFeeRecipientCheck:I.strict_fee_recipient_check,blindedLocal:I.blinded_local}),schema:{params:{slot:T.UintRequired},query:{randao_reveal:T.StringRequired,graffiti:T.String,skip_randao_verification:T.String,fee_recipient:T.String,builder_selection:T.String,builder_boost_factor:T.String,strict_fee_recipient_check:T.Boolean,blinded_local:T.Boolean}}},resp:{data:Nf(({version:g,executionPayloadBlinded:I})=>I?iI(g).BlindedBeaconBlock:qg(g)?qA(g).BlockContents:tI[g].BeaconBlock),meta:{toJson:g=>({...sc.toJson(g),execution_payload_source:g.executionPayloadSource}),fromJson:g=>{const{executionPayloadBlinded:I,...B}=sc.fromJson(g),C=g.execution_payload_source??(I===!0?Ge.builder:Ge.engine);return{...B,executionPayloadBlinded:I,executionPayloadSource:C}},toHeadersObject:g=>({[tA.Version]:g.version,[tA.ExecutionPayloadBlinded]:g.executionPayloadBlinded.toString(),[tA.ExecutionPayloadSource]:g.executionPayloadSource.toString(),[tA.ExecutionPayloadValue]:g.executionPayloadValue.toString(),[tA.ConsensusBlockValue]:g.consensusBlockValue.toString()}),fromHeaders:g=>{const I=OB(g.getRequired(tA.ExecutionPayloadBlinded)),B=g.get(tA.ExecutionPayloadSource)??(I===!0?Ge.builder:Ge.engine);return{version:$A(g.getRequired(tA.Version)),executionPayloadBlinded:I,executionPayloadSource:B,executionPayloadValue:BigInt(g.getRequired(tA.ExecutionPayloadValue)),consensusBlockValue:BigInt(g.getRequired(tA.ConsensusBlockValue))}}}}},produceBlindedBlock:{url:"/eth/v1/validator/blinded_blocks/{slot}",method:"GET",req:{writeReq:({slot:g,randaoReveal:I,graffiti:B})=>({params:{slot:g},query:{randao_reveal:Vg(I),graffiti:TE(B)}}),parseReq:({params:g,query:I})=>({slot:g.slot,randaoReveal:iA(I.randao_reveal),graffiti:vE(I.graffiti)}),schema:{params:{slot:T.UintRequired},query:{randao_reveal:T.StringRequired,graffiti:T.String}}},resp:{data:Tg(g=>iI(g).BlindedBeaconBlock),meta:lI}},produceAttestationData:{url:"/eth/v1/validator/attestation_data",method:"GET",req:{writeReq:({committeeIndex:g,slot:I})=>({query:{slot:I,committee_index:g}}),parseReq:({query:g})=>({committeeIndex:g.committee_index,slot:g.slot}),schema:{query:{slot:T.UintRequired,committee_index:T.UintRequired}}},resp:{data:XI,meta:KA}},produceSyncCommitteeContribution:{url:"/eth/v1/validator/sync_committee_contribution",method:"GET",req:{writeReq:({slot:g,subcommitteeIndex:I,beaconBlockRoot:B})=>({query:{slot:g,subcommittee_index:I,beacon_block_root:ot(B)}}),parseReq:({query:g})=>({slot:g.slot,subcommitteeIndex:g.subcommittee_index,beaconBlockRoot:iA(g.beacon_block_root)}),schema:{query:{slot:T.UintRequired,subcommittee_index:T.UintRequired,beacon_block_root:T.StringRequired}}},resp:{data:oE,meta:KA}},getAggregatedAttestation:{url:"/eth/v1/validator/aggregate_attestation",method:"GET",req:{writeReq:({attestationDataRoot:g,slot:I})=>({query:{attestation_data_root:ot(g),slot:I}}),parseReq:({query:g})=>({attestationDataRoot:iA(g.attestation_data_root),slot:g.slot}),schema:{query:{attestation_data_root:T.StringRequired,slot:T.UintRequired}}},resp:{data:$I,meta:KA}},getAggregatedAttestationV2:{url:"/eth/v2/validator/aggregate_attestation",method:"GET",req:{writeReq:({attestationDataRoot:g,slot:I,committeeIndex:B})=>({query:{attestation_data_root:Vg(g),slot:I,committee_index:B}}),parseReq:({query:g})=>({attestationDataRoot:iA(g.attestation_data_root),slot:g.slot,committeeIndex:g.committee_index}),schema:{query:{attestation_data_root:T.StringRequired,slot:T.UintRequired,committee_index:T.UintRequired}}},resp:{data:Tg(g=>ZA(g)?de:$I),meta:lI}},publishAggregateAndProofs:{url:"/eth/v1/validator/aggregate_and_proofs",method:"POST",req:{writeReqJson:({signedAggregateAndProofs:g})=>({body:QB.toJson(g)}),parseReqJson:({body:g})=>({signedAggregateAndProofs:QB.fromJson(g)}),writeReqSsz:({signedAggregateAndProofs:g})=>({body:QB.serialize(g)}),parseReqSsz:({body:g})=>({signedAggregateAndProofs:QB.deserialize(g)}),schema:{body:T.ObjectArray}},resp:YA},publishAggregateAndProofsV2:{url:"/eth/v2/validator/aggregate_and_proofs",method:"POST",req:{writeReqJson:({signedAggregateAndProofs:g})=>{var B;const I=A.getForkName(((B=g[0])==null?void 0:B.message.aggregate.data.slot)??0);return{body:ZA(I)?Ci.toJson(g):QB.toJson(g),headers:{[tA.Version]:I}}},parseReqJson:({body:g,headers:I})=>{const B=$A(Ng(I,tA.Version));return{signedAggregateAndProofs:ZA(B)?Ci.fromJson(g):QB.fromJson(g)}},writeReqSsz:({signedAggregateAndProofs:g})=>{var B;const I=A.getForkName(((B=g[0])==null?void 0:B.message.aggregate.data.slot)??0);return{body:ZA(I)?Ci.serialize(g):QB.serialize(g),headers:{[tA.Version]:I}}},parseReqSsz:({body:g,headers:I})=>{const B=$A(Ng(I,tA.Version));return{signedAggregateAndProofs:ZA(B)?Ci.deserialize(g):QB.deserialize(g)}},schema:{body:T.ObjectArray,headers:{[tA.Version]:T.String}}},resp:YA},publishContributionAndProofs:{url:"/eth/v1/validator/contribution_and_proofs",method:"POST",req:{writeReqJson:({contributionAndProofs:g})=>({body:ti.toJson(g)}),parseReqJson:({body:g})=>({contributionAndProofs:ti.fromJson(g)}),writeReqSsz:({contributionAndProofs:g})=>({body:ti.serialize(g)}),parseReqSsz:({body:g})=>({contributionAndProofs:ti.deserialize(g)}),schema:{body:T.ObjectArray}},resp:YA},prepareBeaconCommitteeSubnet:{url:"/eth/v1/validator/beacon_committee_subscriptions",method:"POST",req:{writeReqJson:({subscriptions:g})=>({body:ii.toJson(g)}),parseReqJson:({body:g})=>({subscriptions:ii.fromJson(g)}),writeReqSsz:({subscriptions:g})=>({body:ii.serialize(g)}),parseReqSsz:({body:g})=>({subscriptions:ii.deserialize(g)}),schema:{body:T.ObjectArray}},resp:YA},prepareSyncCommitteeSubnets:{url:"/eth/v1/validator/sync_committee_subscriptions",method:"POST",req:{writeReqJson:({subscriptions:g})=>({body:Qi.toJson(g)}),parseReqJson:({body:g})=>({subscriptions:Qi.fromJson(g)}),writeReqSsz:({subscriptions:g})=>({body:Qi.serialize(g)}),parseReqSsz:({body:g})=>({subscriptions:Qi.deserialize(g)}),schema:{body:T.ObjectArray}},resp:YA},prepareBeaconProposer:{url:"/eth/v1/validator/prepare_beacon_proposer",method:"POST",req:Ne({writeReqJson:({proposers:g})=>({body:cc.toJson(g)}),parseReqJson:({body:g})=>({proposers:cc.fromJson(g)}),schema:{body:T.ObjectArray}}),resp:YA},submitBeaconCommitteeSelections:{url:"/eth/v1/validator/beacon_committee_selections",method:"POST",req:{writeReqJson:({selections:g})=>({body:HC.toJson(g)}),parseReqJson:({body:g})=>({selections:HC.fromJson(g)}),writeReqSsz:({selections:g})=>({body:HC.serialize(g)}),parseReqSsz:({body:g})=>({selections:HC.deserialize(g)}),schema:{body:T.ObjectArray}},resp:{data:HC,meta:KA}},submitSyncCommitteeSelections:{url:"/eth/v1/validator/sync_committee_selections",method:"POST",req:{writeReqJson:({selections:g})=>({body:JC.toJson(g)}),parseReqJson:({body:g})=>({selections:JC.fromJson(g)}),writeReqSsz:({selections:g})=>({body:JC.serialize(g)}),parseReqSsz:({body:g})=>({selections:JC.deserialize(g)}),schema:{body:T.ObjectArray}},resp:{data:JC,meta:KA}},getLiveness:{url:"/eth/v1/validator/liveness/{epoch}",method:"POST",req:{writeReqJson:({epoch:g,indices:I})=>({params:{epoch:g},body:vg.toJson(I)}),parseReqJson:({params:g,body:I})=>({epoch:g.epoch,indices:vg.fromJson(I)}),writeReqSsz:({epoch:g,indices:I})=>({params:{epoch:g},body:vg.serialize(I)}),parseReqSsz:({params:g,body:I})=>({epoch:g.epoch,indices:vg.deserialize(I)}),schema:{params:{epoch:T.UintRequired},body:T.StringArray}},resp:{data:Zp,meta:KA}},registerValidator:{url:"/eth/v1/validator/register_validator",method:"POST",req:{writeReqJson:({registrations:g})=>({body:Ei.toJson(g)}),parseReqJson:({body:g})=>({registrations:Ei.fromJson(g)}),writeReqSsz:({registrations:g})=>({body:Ei.serialize(g)}),parseReqSsz:({body:g})=>({registrations:Ei.deserialize(g)}),schema:{body:T.ObjectArray}},resp:YA}}}function Pp(A){return A!==void 0?BigInt(A):void 0}function zp(A){return A===!0?"":void 0}function xp(A){return A!==void 0&&A===""}async function Wp(A,g){try{return await fetch(A,g)}catch(I){throw new lc(A,I)}}function Vp(A){return A instanceof lc}class lc extends Error{constructor(g,I){Xp(I)?(super(`Request to ${g.toString()} failed, reason: ${I.cause.message}`),this.type="failed",this.code=I.cause.code||"ERR_FETCH_FAILED",this.cause=I.cause):$p(I)?(super(I.message),this.type="input",this.code=I.cause.code||"ERR_INVALID_INPUT",this.cause=I.cause):AF(I)?(super(`Request to ${g.toString()} was aborted`),this.type="aborted",this.code="ERR_ABORTED"):gF(I)?(super(`Request to ${g.toString()} timed out`),this.type="timeout",this.code="ERR_TIMEOUT"):(super(I.message),this.type="unknown",this.code="ERR_UNKNOWN"),this.name=this.constructor.name}}function hc(A){return A instanceof TypeError&&A.cause instanceof Error}function Xp(A){return hc(A)&&A.message==="fetch failed"}function $p(A){return hc(A)&&A.cause.input!==void 0}function AF(A){return A instanceof DOMException&&A.name==="AbortError"}function gF(A){return A instanceof DOMException&&A.name==="TimeoutError"}var oi;(function(A){A[A.CONTINUE=100]="CONTINUE",A[A.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",A[A.PROCESSING=102]="PROCESSING",A[A.OK=200]="OK",A[A.CREATED=201]="CREATED",A[A.ACCEPTED=202]="ACCEPTED",A[A.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",A[A.NO_CONTENT=204]="NO_CONTENT",A[A.RESET_CONTENT=205]="RESET_CONTENT",A[A.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",A[A.MULTI_STATUS=207]="MULTI_STATUS",A[A.ALREADY_REPORTED=208]="ALREADY_REPORTED",A[A.IM_USED=226]="IM_USED",A[A.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",A[A.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",A[A.FOUND=302]="FOUND",A[A.SEE_OTHER=303]="SEE_OTHER",A[A.NOT_MODIFIED=304]="NOT_MODIFIED",A[A.USE_PROXY=305]="USE_PROXY",A[A.SWITCH_PROXY=306]="SWITCH_PROXY",A[A.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",A[A.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",A[A.BAD_REQUEST=400]="BAD_REQUEST",A[A.UNAUTHORIZED=401]="UNAUTHORIZED",A[A.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",A[A.FORBIDDEN=403]="FORBIDDEN",A[A.NOT_FOUND=404]="NOT_FOUND",A[A.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",A[A.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",A[A.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",A[A.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",A[A.CONFLICT=409]="CONFLICT",A[A.GONE=410]="GONE",A[A.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",A[A.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",A[A.PAYLOAD_TOO_LARGE=413]="PAYLOAD_TOO_LARGE",A[A.URI_TOO_LONG=414]="URI_TOO_LONG",A[A.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",A[A.RANGE_NOT_SATISFIABLE=416]="RANGE_NOT_SATISFIABLE",A[A.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",A[A.I_AM_A_TEAPOT=418]="I_AM_A_TEAPOT",A[A.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST",A[A.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",A[A.LOCKED=423]="LOCKED",A[A.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",A[A.UPGRADE_REQUIRED=426]="UPGRADE_REQUIRED",A[A.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",A[A.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",A[A.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",A[A.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",A[A.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",A[A.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",A[A.BAD_GATEWAY=502]="BAD_GATEWAY",A[A.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",A[A.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",A[A.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",A[A.VARIANT_ALSO_NEGOTIATES=506]="VARIANT_ALSO_NEGOTIATES",A[A.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",A[A.LOOP_DETECTED=508]="LOOP_DETECTED",A[A.NOT_EXTENDED=510]="NOT_EXTENDED",A[A.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED"})(oi||(oi={}));var Sc=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var A={},g=Symbol("test"),I=Object(g);if(typeof g=="string"||Object.prototype.toString.call(g)!=="[object Symbol]"||Object.prototype.toString.call(I)!=="[object Symbol]")return!1;var B=42;A[g]=B;for(g in A)return!1;if(typeof Object.keys=="function"&&Object.keys(A).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(A).length!==0)return!1;var C=Object.getOwnPropertySymbols(A);if(C.length!==1||C[0]!==g||!Object.prototype.propertyIsEnumerable.call(A,g))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var e=Object.getOwnPropertyDescriptor(A,g);if(e.value!==B||e.enumerable!==!0)return!1}return!0},wc=typeof Symbol<"u"&&Symbol,IF=Sc,BF=function(){return typeof wc!="function"||typeof Symbol!="function"||typeof wc("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:IF()},Dc={foo:{}},eF=Object,CF=function(){return{__proto__:Dc}.foo===Dc.foo&&!({__proto__:null}instanceof eF)},tF="Function.prototype.bind called on incompatible ",iF=Object.prototype.toString,QF=Math.max,EF="[object Function]",yc=function(A,g){for(var I=[],B=0;B<A.length;B+=1)I[B]=A[B];for(var C=0;C<g.length;C+=1)I[C+A.length]=g[C];return I},oF=function(A,g){for(var I=[],B=g,C=0;B<A.length;B+=1,C+=1)I[C]=A[B];return I},nF=function(A,g){for(var I="",B=0;B<A.length;B+=1)I+=A[B],B+1<A.length&&(I+=g);return I},rF=function(A){var g=this;if(typeof g!="function"||iF.apply(g)!==EF)throw new TypeError(tF+g);for(var I=oF(arguments,1),B,C=function(){if(this instanceof B){var c=g.apply(this,yc(I,arguments));return Object(c)===c?c:this}return g.apply(A,yc(I,arguments))},e=QF(0,g.length-I.length),i=[],t=0;t<e;t++)i[t]="$"+t;if(B=Function("binder","return function ("+nF(i,",")+"){ return binder.apply(this,arguments); }")(C),g.prototype){var E=function(){};E.prototype=g.prototype,B.prototype=new E,E.prototype=null}return B},aF=rF,PE=Function.prototype.bind||aF,sF=Function.prototype.call,cF=Object.prototype.hasOwnProperty,lF=PE,hF=lF.call(sF,cF),dA,Ue=SyntaxError,uc=Function,Le=TypeError,zE=function(A){try{return uc('"use strict"; return ('+A+").constructor;")()}catch{}},jB=Object.getOwnPropertyDescriptor;if(jB)try{jB({},"")}catch{jB=null}var xE=function(){throw new Le},SF=jB?function(){try{return arguments.callee,xE}catch{try{return jB(arguments,"callee").get}catch{return xE}}}():xE,me=BF(),wF=CF(),Bg=Object.getPrototypeOf||(wF?function(A){return A.__proto__}:null),He={},DF=typeof Uint8Array>"u"||!Bg?dA:Bg(Uint8Array),PB={"%AggregateError%":typeof AggregateError>"u"?dA:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?dA:ArrayBuffer,"%ArrayIteratorPrototype%":me&&Bg?Bg([][Symbol.iterator]()):dA,"%AsyncFromSyncIteratorPrototype%":dA,"%AsyncFunction%":He,"%AsyncGenerator%":He,"%AsyncGeneratorFunction%":He,"%AsyncIteratorPrototype%":He,"%Atomics%":typeof Atomics>"u"?dA:Atomics,"%BigInt%":typeof BigInt>"u"?dA:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?dA:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?dA:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?dA:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?dA:Float32Array,"%Float64Array%":typeof Float64Array>"u"?dA:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?dA:FinalizationRegistry,"%Function%":uc,"%GeneratorFunction%":He,"%Int8Array%":typeof Int8Array>"u"?dA:Int8Array,"%Int16Array%":typeof Int16Array>"u"?dA:Int16Array,"%Int32Array%":typeof Int32Array>"u"?dA:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":me&&Bg?Bg(Bg([][Symbol.iterator]())):dA,"%JSON%":typeof JSON=="object"?JSON:dA,"%Map%":typeof Map>"u"?dA:Map,"%MapIteratorPrototype%":typeof Map>"u"||!me||!Bg?dA:Bg(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?dA:Promise,"%Proxy%":typeof Proxy>"u"?dA:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?dA:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?dA:Set,"%SetIteratorPrototype%":typeof Set>"u"||!me||!Bg?dA:Bg(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?dA:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":me&&Bg?Bg(""[Symbol.iterator]()):dA,"%Symbol%":me?Symbol:dA,"%SyntaxError%":Ue,"%ThrowTypeError%":SF,"%TypedArray%":DF,"%TypeError%":Le,"%Uint8Array%":typeof Uint8Array>"u"?dA:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?dA:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?dA:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?dA:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?dA:WeakMap,"%WeakRef%":typeof WeakRef>"u"?dA:WeakRef,"%WeakSet%":typeof WeakSet>"u"?dA:WeakSet};if(Bg)try{null.error}catch(A){var yF=Bg(Bg(A));PB["%Error.prototype%"]=yF}var uF=function A(g){var I;if(g==="%AsyncFunction%")I=zE("async function () {}");else if(g==="%GeneratorFunction%")I=zE("function* () {}");else if(g==="%AsyncGeneratorFunction%")I=zE("async function* () {}");else if(g==="%AsyncGenerator%"){var B=A("%AsyncGeneratorFunction%");B&&(I=B.prototype)}else if(g==="%AsyncIteratorPrototype%"){var C=A("%AsyncGenerator%");C&&Bg&&(I=Bg(C.prototype))}return PB[g]=I,I},fc={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},MC=PE,ni=hF,fF=MC.call(Function.call,Array.prototype.concat),pF=MC.call(Function.apply,Array.prototype.splice),pc=MC.call(Function.call,String.prototype.replace),ri=MC.call(Function.call,String.prototype.slice),FF=MC.call(Function.call,RegExp.prototype.exec),dF=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,GF=/\\(\\)?/g,NF=function(A){var g=ri(A,0,1),I=ri(A,-1);if(g==="%"&&I!=="%")throw new Ue("invalid intrinsic syntax, expected closing `%`");if(I==="%"&&g!=="%")throw new Ue("invalid intrinsic syntax, expected opening `%`");var B=[];return pc(A,dF,function(C,e,i,t){B[B.length]=i?pc(t,GF,"$1"):e||C}),B},kF=function(A,g){var I=A,B;if(ni(fc,I)&&(B=fc[I],I="%"+B[0]+"%"),ni(PB,I)){var C=PB[I];if(C===He&&(C=uF(I)),typeof C>"u"&&!g)throw new Le("intrinsic "+A+" exists, but is not available. Please file an issue!");return{alias:B,name:I,value:C}}throw new Ue("intrinsic "+A+" does not exist!")},zB=function(A,g){if(typeof A!="string"||A.length===0)throw new Le("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof g!="boolean")throw new Le('"allowMissing" argument must be a boolean');if(FF(/^%?[^%]*%?$/,A)===null)throw new Ue("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var I=NF(A),B=I.length>0?I[0]:"",C=kF("%"+B+"%",g),e=C.name,i=C.value,t=!1,E=C.alias;E&&(B=E[0],pF(I,fF([0,1],E)));for(var c=1,a=!0;c<I.length;c+=1){var l=I[c],w=ri(l,0,1),S=ri(l,-1);if((w==='"'||w==="'"||w==="`"||S==='"'||S==="'"||S==="`")&&w!==S)throw new Ue("property names with quotes must have matching quotes");if((l==="constructor"||!a)&&(t=!0),B+="."+l,e="%"+B+"%",ni(PB,e))i=PB[e];else if(i!=null){if(!(l in i)){if(!g)throw new Le("base intrinsic for "+A+" exists, but the property is not available.");return}if(jB&&c+1>=I.length){var u=jB(i,l);a=!!u,a&&"get"in u&&!("originalValue"in u.get)?i=u.get:i=i[l]}else a=ni(i,l),i=i[l];a&&!t&&(PB[e]=i)}}return i},Fc={exports:{}},RF=zB,WE=RF("%Object.defineProperty%",!0),VE=function(){if(WE)try{return WE({},"a",{value:1}),!0}catch{return!1}return!1};VE.hasArrayLengthDefineBug=function(){if(!VE())return null;try{return WE([],"length",{value:1}).length!==1}catch{return!0}};var dc=VE,UF=zB,ai=UF("%Object.getOwnPropertyDescriptor%",!0);if(ai)try{ai([],"length")}catch{ai=null}var XE=ai,LF=dc(),$E=zB,qC=LF&&$E("%Object.defineProperty%",!0);if(qC)try{qC({},"a",{value:1})}catch{qC=!1}var mF=$E("%SyntaxError%"),Je=$E("%TypeError%"),Gc=XE,HF=function(A,g,I){if(!A||typeof A!="object"&&typeof A!="function")throw new Je("`obj` must be an object or a function`");if(typeof g!="string"&&typeof g!="symbol")throw new Je("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Je("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Je("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Je("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Je("`loose`, if provided, must be a boolean");var B=arguments.length>3?arguments[3]:null,C=arguments.length>4?arguments[4]:null,e=arguments.length>5?arguments[5]:null,i=arguments.length>6?arguments[6]:!1,t=!!Gc&&Gc(A,g);if(qC)qC(A,g,{configurable:e===null&&t?t.configurable:!e,enumerable:B===null&&t?t.enumerable:!B,value:I,writable:C===null&&t?t.writable:!C});else if(i||!B&&!C&&!e)A[g]=I;else throw new mF("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Nc=zB,kc=HF,JF=dc(),Rc=XE,Uc=Nc("%TypeError%"),MF=Nc("%Math.floor%"),qF=function(A,g){if(typeof A!="function")throw new Uc("`fn` is not a function");if(typeof g!="number"||g<0||g>4294967295||MF(g)!==g)throw new Uc("`length` must be a positive 32-bit integer");var I=arguments.length>2&&!!arguments[2],B=!0,C=!0;if("length"in A&&Rc){var e=Rc(A,"length");e&&!e.configurable&&(B=!1),e&&!e.writable&&(C=!1)}return(B||C||!I)&&(JF?kc(A,"length",g,!0,!0):kc(A,"length",g)),A};(function(A){var g=PE,I=zB,B=qF,C=I("%TypeError%"),e=I("%Function.prototype.apply%"),i=I("%Function.prototype.call%"),t=I("%Reflect.apply%",!0)||g.call(i,e),E=I("%Object.defineProperty%",!0),c=I("%Math.max%");if(E)try{E({},"a",{value:1})}catch{E=null}A.exports=function(l){if(typeof l!="function")throw new C("a function is required");var w=t(g,i,arguments);return B(w,1+c(0,l.length-(arguments.length-1)),!0)};var a=function(){return t(g,e,arguments)};E?E(A.exports,"apply",{value:a}):A.exports.apply=a})(Fc);var Lc=Fc.exports,mc=zB,Hc=Lc,KF=Hc(mc("String.prototype.indexOf")),Ao=function(A,g){var I=mc(A,!!g);return typeof I=="function"&&KF(A,".prototype.")>-1?Hc(I):I};const go=Wr(dw);var Io=typeof Map=="function"&&Map.prototype,Bo=Object.getOwnPropertyDescriptor&&Io?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,si=Io&&Bo&&typeof Bo.get=="function"?Bo.get:null,Jc=Io&&Map.prototype.forEach,eo=typeof Set=="function"&&Set.prototype,Co=Object.getOwnPropertyDescriptor&&eo?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ci=eo&&Co&&typeof Co.get=="function"?Co.get:null,Mc=eo&&Set.prototype.forEach,YF=typeof WeakMap=="function"&&WeakMap.prototype,KC=YF?WeakMap.prototype.has:null,bF=typeof WeakSet=="function"&&WeakSet.prototype,YC=bF?WeakSet.prototype.has:null,TF=typeof WeakRef=="function"&&WeakRef.prototype,qc=TF?WeakRef.prototype.deref:null,vF=Boolean.prototype.valueOf,_F=Object.prototype.toString,OF=Function.prototype.toString,ZF=String.prototype.match,to=String.prototype.slice,EB=String.prototype.replace,jF=String.prototype.toUpperCase,Kc=String.prototype.toLowerCase,Yc=RegExp.prototype.test,bc=Array.prototype.concat,hI=Array.prototype.join,PF=Array.prototype.slice,Tc=Math.floor,io=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Qo=Object.getOwnPropertySymbols,Eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Me=typeof Symbol=="function"&&typeof Symbol.iterator=="object",lg=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Me||!0)?Symbol.toStringTag:null,vc=Object.prototype.propertyIsEnumerable,_c=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(A){return A.__proto__}:null);function Oc(A,g){if(A===1/0||A===-1/0||A!==A||A&&A>-1e3&&A<1e3||Yc.call(/e/,g))return g;var I=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof A=="number"){var B=A<0?-Tc(-A):Tc(A);if(B!==A){var C=String(B),e=to.call(g,C.length+1);return EB.call(C,I,"$&_")+"."+EB.call(EB.call(e,/([0-9]{3})/g,"$&_"),/_$/,"")}}return EB.call(g,I,"$&_")}var oo=go,Zc=oo.custom,jc=xc(Zc)?Zc:null,zF=function A(g,I,B,C){var e=I||{};if(oB(e,"quoteStyle")&&e.quoteStyle!=="single"&&e.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(oB(e,"maxStringLength")&&(typeof e.maxStringLength=="number"?e.maxStringLength<0&&e.maxStringLength!==1/0:e.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=oB(e,"customInspect")?e.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(oB(e,"indent")&&e.indent!==null&&e.indent!==" "&&!(parseInt(e.indent,10)===e.indent&&e.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(oB(e,"numericSeparator")&&typeof e.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var t=e.numericSeparator;if(typeof g>"u")return"undefined";if(g===null)return"null";if(typeof g=="boolean")return g?"true":"false";if(typeof g=="string")return Vc(g,e);if(typeof g=="number"){if(g===0)return 1/0/g>0?"0":"-0";var E=String(g);return t?Oc(g,E):E}if(typeof g=="bigint"){var c=String(g)+"n";return t?Oc(g,c):c}var a=typeof e.depth>"u"?5:e.depth;if(typeof B>"u"&&(B=0),B>=a&&a>0&&typeof g=="object")return no(g)?"[Array]":"[Object]";var l=rd(e,B);if(typeof C>"u")C=[];else if(Wc(C,g)>=0)return"[Circular]";function w(oA,G,M){if(G&&(C=PF.call(C),C.push(G)),M){var x={depth:e.depth};return oB(e,"quoteStyle")&&(x.quoteStyle=e.quoteStyle),A(oA,x,B+1,C)}return A(oA,e,B+1,C)}if(typeof g=="function"&&!zc(g)){var S=Bd(g),u=li(g,w);return"[Function"+(S?": "+S:" (anonymous)")+"]"+(u.length>0?" { "+hI.call(u,", ")+" }":"")}if(xc(g)){var m=Me?EB.call(String(g),/^(Symbol\(.*\))_[^)]*$/,"$1"):Eo.call(g);return typeof g=="object"&&!Me?bC(m):m}if(Ed(g)){for(var L="<"+Kc.call(String(g.nodeName)),p=g.attributes||[],F=0;F<p.length;F++)L+=" "+p[F].name+"="+Pc(xF(p[F].value),"double",e);return L+=">",g.childNodes&&g.childNodes.length&&(L+="..."),L+="</"+Kc.call(String(g.nodeName))+">",L}if(no(g)){if(g.length===0)return"[]";var J=li(g,w);return l&&!nd(J)?"["+ao(J,l)+"]":"[ "+hI.call(J,", ")+" ]"}if(VF(g)){var z=li(g,w);return!("cause"in Error.prototype)&&"cause"in g&&!vc.call(g,"cause")?"{ ["+String(g)+"] "+hI.call(bc.call("[cause]: "+w(g.cause),z),", ")+" }":z.length===0?"["+String(g)+"]":"{ ["+String(g)+"] "+hI.call(z,", ")+" }"}if(typeof g=="object"&&i){if(jc&&typeof g[jc]=="function"&&oo)return oo(g,{depth:a-B});if(i!=="symbol"&&typeof g.inspect=="function")return g.inspect()}if(ed(g)){var $=[];return Jc&&Jc.call(g,function(oA,G){$.push(w(G,g,!0)+" => "+w(oA,g))}),Xc("Map",si.call(g),$,l)}if(id(g)){var eA=[];return Mc&&Mc.call(g,function(oA){eA.push(w(oA,g))}),Xc("Set",ci.call(g),eA,l)}if(Cd(g))return ro("WeakMap");if(Qd(g))return ro("WeakSet");if(td(g))return ro("WeakRef");if($F(g))return bC(w(Number(g)));if(gd(g))return bC(w(io.call(g)));if(Ad(g))return bC(vF.call(g));if(XF(g))return bC(w(String(g)));if(typeof window<"u"&&g===window)return"{ [object Window] }";if(g===HA)return"{ [object globalThis] }";if(!WF(g)&&!zc(g)){var EA=li(g,w),IA=_c?_c(g)===Object.prototype:g instanceof Object||g.constructor===Object,Z=g instanceof Object?"":"null prototype",rA=!IA&&lg&&Object(g)===g&&lg in g?to.call(nB(g),8,-1):Z?"Object":"",FA=IA||typeof g.constructor!="function"?"":g.constructor.name?g.constructor.name+" ":"",uA=FA+(rA||Z?"["+hI.call(bc.call([],rA||[],Z||[]),": ")+"] ":"");return EA.length===0?uA+"{}":l?uA+"{"+ao(EA,l)+"}":uA+"{ "+hI.call(EA,", ")+" }"}return String(g)};function Pc(A,g,I){var B=(I.quoteStyle||g)==="double"?'"':"'";return B+A+B}function xF(A){return EB.call(String(A),/"/g,""")}function no(A){return nB(A)==="[object Array]"&&(!lg||!(typeof A=="object"&&lg in A))}function WF(A){return nB(A)==="[object Date]"&&(!lg||!(typeof A=="object"&&lg in A))}function zc(A){return nB(A)==="[object RegExp]"&&(!lg||!(typeof A=="object"&&lg in A))}function VF(A){return nB(A)==="[object Error]"&&(!lg||!(typeof A=="object"&&lg in A))}function XF(A){return nB(A)==="[object String]"&&(!lg||!(typeof A=="object"&&lg in A))}function $F(A){return nB(A)==="[object Number]"&&(!lg||!(typeof A=="object"&&lg in A))}function Ad(A){return nB(A)==="[object Boolean]"&&(!lg||!(typeof A=="object"&&lg in A))}function xc(A){if(Me)return A&&typeof A=="object"&&A instanceof Symbol;if(typeof A=="symbol")return!0;if(!A||typeof A!="object"||!Eo)return!1;try{return Eo.call(A),!0}catch{}return!1}function gd(A){if(!A||typeof A!="object"||!io)return!1;try{return io.call(A),!0}catch{}return!1}var Id=Object.prototype.hasOwnProperty||function(A){return A in this};function oB(A,g){return Id.call(A,g)}function nB(A){return _F.call(A)}function Bd(A){if(A.name)return A.name;var g=ZF.call(OF.call(A),/^function\s*([\w$]+)/);return g?g[1]:null}function Wc(A,g){if(A.indexOf)return A.indexOf(g);for(var I=0,B=A.length;I<B;I++)if(A[I]===g)return I;return-1}function ed(A){if(!si||!A||typeof A!="object")return!1;try{si.call(A);try{ci.call(A)}catch{return!0}return A instanceof Map}catch{}return!1}function Cd(A){if(!KC||!A||typeof A!="object")return!1;try{KC.call(A,KC);try{YC.call(A,YC)}catch{return!0}return A instanceof WeakMap}catch{}return!1}function td(A){if(!qc||!A||typeof A!="object")return!1;try{return qc.call(A),!0}catch{}return!1}function id(A){if(!ci||!A||typeof A!="object")return!1;try{ci.call(A);try{si.call(A)}catch{return!0}return A instanceof Set}catch{}return!1}function Qd(A){if(!YC||!A||typeof A!="object")return!1;try{YC.call(A,YC);try{KC.call(A,KC)}catch{return!0}return A instanceof WeakSet}catch{}return!1}function Ed(A){return!A||typeof A!="object"?!1:typeof HTMLElement<"u"&&A instanceof HTMLElement?!0:typeof A.nodeName=="string"&&typeof A.getAttribute=="function"}function Vc(A,g){if(A.length>g.maxStringLength){var I=A.length-g.maxStringLength,B="... "+I+" more character"+(I>1?"s":"");return Vc(to.call(A,0,g.maxStringLength),g)+B}var C=EB.call(EB.call(A,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,od);return Pc(C,"single",g)}function od(A){var g=A.charCodeAt(0),I={8:"b",9:"t",10:"n",12:"f",13:"r"}[g];return I?"\\"+I:"\\x"+(g<16?"0":"")+jF.call(g.toString(16))}function bC(A){return"Object("+A+")"}function ro(A){return A+" { ? }"}function Xc(A,g,I,B){var C=B?ao(I,B):hI.call(I,", ");return A+" ("+g+") {"+C+"}"}function nd(A){for(var g=0;g<A.length;g++)if(Wc(A[g],`
|
|
32
|
+
`:""}var _S=vS,OS={dump:_S};function QQ(A,g){return function(){throw new Error("Function yaml."+A+" is removed in js-yaml 4. Use yaml."+g+" instead, which is now safe by default.")}}var ZS=tg,jS=Wn,xr=Ar,PS=Cr,zS=tr,xS=$i,WS=kr.load,VS=kr.loadAll,XS=OS.dump,$S=Dg,Aw={binary:nr,float:er,map:$n,null:gr,pairs:ar,set:sr,timestamp:Er,bool:Ir,int:Br,merge:or,omap:rr,seq:Xn,str:Vn},gw=QQ("safeLoad","load"),Iw=QQ("safeLoadAll","loadAll"),Bw=QQ("safeDump","dump"),it={Type:ZS,Schema:jS,FAILSAFE_SCHEMA:xr,JSON_SCHEMA:PS,CORE_SCHEMA:zS,DEFAULT_SCHEMA:xS,load:WS,loadAll:VS,dump:XS,YAMLException:$S,types:Aw,safeLoad:gw,safeLoadAll:Iw,safeDump:Bw};const{Type:ew}=it;function Cw(A){return 48<=A&&A<=57||65<=A&&A<=70||97<=A&&A<=102}function tw(A){return 48<=A&&A<=55}function iw(A){return 48<=A&&A<=57}function Qw(A){if(A===null)return!1;const g=A.length;let I,B=0,C=!1;if(!g)return!1;if(I=A[B],(I==="-"||I==="+")&&(I=A[++B]),I==="0"){if(B+1===g)return!0;if(I=A[++B],I==="b"){for(B++;B<g;B++)if(I=A[B],I!=="_"){if(I!=="0"&&I!=="1")return!1;C=!0}return C&&I!=="_"}if(I==="x"){for(B++;B<g;B++)if(I=A[B],I!=="_"){if(!Cw(A.charCodeAt(B)))return!1;C=!0}return C&&I!=="_"}for(;B<g;B++)if(I=A[B],I!=="_"){if(!tw(A.charCodeAt(B)))return!1;C=!0}return C&&I!=="_"}if(I==="_")return!1;for(;B<g;B++)if(I=A[B],I!=="_"){if(I===":")break;if(!iw(A.charCodeAt(B)))return!1;C=!0}return!C||I==="_"?!1:I!==":"?!0:/^(:[0-5]?[0-9])+$/.test(A.slice(B))}function Ew(A){let g=A,I=1,B,C;const e=[];if(g.indexOf("_")!==-1&&(g=g.replace(/_/g,"")),B=g[0],(B==="-"||B==="+")&&(B==="-"&&(I=-1),g=g.slice(1),B=g[0]),g==="0")return BigInt(0);if(B==="0")return g[1]==="b"||g[1]==="x"?BigInt(g)*BigInt(I):BigInt("0o"+g)*BigInt(I);if(g.indexOf(":")!==-1){for(const i of g.split(":"))e.unshift(parseInt(i,10));g=BigInt(0),C=BigInt(1);for(const i of e)g=(BigInt(g)+BigInt(C))*BigInt(i),C=BigInt(C)*BigInt(60);return g*BigInt(I)}return BigInt(g)*BigInt(I)}function ow(A){return typeof A=="bigint"||typeof A=="number"}const nw=new ew("tag:yaml.org,2002:int",{kind:"scalar",resolve:Qw,construct:Ew,predicate:ow,instanceOf:BigInt,represent:{binary:function(A){return A>=0?"0b"+A.toString(2):"-0b"+A.toString(2).slice(1)},octal:function(A){return A>=0?"0"+A.toString(8):"-0"+A.toString(8).slice(1)},decimal:function(A){return A.toString(10)},hexadecimal:function(A){return A>=0?"0x"+A.toString(16).toUpperCase():"-0x"+A.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}});xr.extend({implicit:[it.types.null,it.types.bool,nw,it.types.float],explicit:[]});class rw extends Error{}rw.code="ERR_ASSERTION";const aw=typeof MA<"u"&&typeof MA.from=="function";function sw(A){return aw?MA.from(A).toString("base64"):btoa(A)}var HA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function EQ(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}function Wr(A){if(A.__esModule)return A;var g=A.default;if(typeof g=="function"){var I=function B(){return this instanceof B?Reflect.construct(g,arguments,this.constructor):g.apply(this,arguments)};I.prototype=g.prototype}else I={};return Object.defineProperty(I,"__esModule",{value:!0}),Object.keys(A).forEach(function(B){var C=Object.getOwnPropertyDescriptor(A,B);Object.defineProperty(I,B,C.get?C:{enumerable:!0,get:function(){return A[B]}})}),I}var eC={};Object.defineProperty(eC,"__esModule",{value:!0});function cw(A){{const g=MA.from(A);g.reverse();const I=g.toString("hex");return I.length===0?BigInt(0):BigInt(`0x${I}`)}}eC.toBigIntLE=cw;function lw(A){{const g=A.toString("hex");return g.length===0?BigInt(0):BigInt(`0x${g}`)}}eC.toBigIntBE=lw;function hw(A,g){{const I=A.toString(16),B=MA.from(I.padStart(g*2,"0").slice(0,g*2),"hex");return B.reverse(),B}}eC.toBufferLE=hw;function Sw(A,g){{const I=A.toString(16);return MA.from(I.padStart(g*2,"0").slice(0,g*2),"hex")}}eC.toBufferBE=Sw;const oQ=48,nQ=120;function ww(A){const g=new Array(A.length*2+2);return g[0]=oQ,g[1]=nQ,Xr(A,g),String.fromCharCode(...g)}const Qt=new Array(32*2+2);Qt[0]=oQ,Qt[1]=nQ;function Dw(A){if(A.length!==32)throw Error(`Expect root to be 32 bytes, got ${A.length}`);return Xr(A,Qt),String.fromCharCode(...Qt)}const Vr=new Array(48*2+2);Vr[0]=oQ,Vr[1]=nQ;function yw(A){if(typeof A!="string")throw new Error(`hex argument type ${typeof A} must be of type string`);if(A.startsWith("0x")&&(A=A.slice(2)),A.length%2!==0)throw new Error(`hex string length ${A.length} must be multiple of 2`);const g=A.length/2,I=new Uint8Array(g);for(let B=0;B<g;B++){const C=parseInt(A.slice(B*2,(B+1)*2),16);I[B]=C}return I}function Xr(A,g){if(A.length*2+2!==g.length)throw Error(`Expect charCodes to be of length ${A.length*2+2}, got ${g.length}`);for(let I=0;I<A.length;I++){const B=A[I],C=(B&240)>>4,e=B&15;g[2+2*I]=C<10?C+48:C+87,g[2+2*I+1]=e<10?e+48:e+87}}function uw(A){return MA.isBuffer(A)?"0x"+A.toString("hex"):A instanceof Uint8Array?"0x"+MA.from(A.buffer,A.byteOffset,A.length).toString("hex"):"0x"+MA.from(A).toString("hex")}let Et;function fw(A){if(A.length!==32)throw Error(`Expect root to be 32 bytes, got ${A.length}`);return Et===void 0&&(Et=MA.alloc(32)),Et.set(A),`0x${Et.toString("hex")}`}function pw(A){if(typeof A!="string")throw new Error(`hex argument type ${typeof A} must be of type string`);if(A.startsWith("0x")&&(A=A.slice(2)),A.length%2!==0)throw new Error(`hex string length ${A.length} must be multiple of 2`);const g=MA.from(A,"hex");return new Uint8Array(g.buffer,g.byteOffset,g.length)}let Vg=ww,ot=Dw,iA=yw;typeof MA<"u"&&(Vg=uw,ot=fw,iA=pw);const Fw={},dw=Object.freeze(Object.defineProperty({__proto__:null,default:Fw},Symbol.toStringTag,{value:"Module"}));class CC extends Error{constructor(g){super(`Aborted ${g||""}`)}}class Gw extends Error{constructor(g){super(`Timeout ${g||""}`)}}function Nw(A){return A instanceof CC}BigInt(1e9),BigInt(1e9),BigInt("100000");function kw(A){return A.startsWith("0x")?A.slice(2):A}var rQ;(function(A){A.error="error",A.warn="warn",A.info="info",A.verbose="verbose",A.debug="debug",A.trace="trace"})(rQ||(rQ={})),Object.values(rQ);class Rw extends Map{constructor(g){super(),this.getDefault=g}getOrDefault(g){let I=super.get(g);return I===void 0&&(I=this.getDefault(),this.set(g,I)),I}}function $r(A,g,I){let B=A.size-g;const C=Math.max(0,B);if(B>0){const e=A.keys();for(const i of e)if(A.delete(i),B--,B<=0)break}return C}var Aa={exports:{}};(function(A){(function(){var g=function(S,u){return u=u||"",S.replace(/(^|-)/g,"$1\\u"+u).replace(/,/g,"\\u"+u)},I=g("20-26,28-2F,3A-40,5B-60,7B-7E,A0-BF,D7,F7","00"),B="a-z"+g("DF-F6,F8-FF","00"),C="A-Z"+g("C0-D6,D8-DE","00"),e="A|An|And|As|At|But|By|En|For|If|In|Of|On|Or|The|To|Vs?\\.?|Via",i=function(S,u,m,L){return S=S||I,u=u||B,m=m||C,L=L||e,{capitalize:new RegExp("(^|["+S+"])(["+u+"])","g"),pascal:new RegExp("(^|["+S+"])+(["+u+m+"])","g"),fill:new RegExp("["+S+"]+(.|$)","g"),sentence:new RegExp('(^\\s*|[\\?\\!\\.]+"?\\s+"?|,\\s+")(['+u+"])","g"),improper:new RegExp("\\b("+L+")\\b","g"),relax:new RegExp("([^"+m+"])(["+m+"]*)(["+m+"])(?=[^"+m+"]|$)","g"),upper:new RegExp("^[^"+u+"]+$"),hole:/[^\s]\s[^\s]/,apostrophe:/'/g,room:new RegExp("["+S+"]")}},t=i(),E={re:t,unicodes:g,regexps:i,types:[],up:String.prototype.toUpperCase,low:String.prototype.toLowerCase,cap:function(S){return E.up.call(S.charAt(0))+S.slice(1)},decap:function(S){return E.low.call(S.charAt(0))+S.slice(1)},deapostrophe:function(S){return S.replace(t.apostrophe,"")},fill:function(S,u,m){return u!=null&&(S=S.replace(t.fill,function(L,p){return p?u+p:""})),m&&(S=E.deapostrophe(S)),S},prep:function(S,u,m,L){if(S=S==null?"":S+"",!L&&t.upper.test(S)&&(S=E.low.call(S)),!u&&!t.hole.test(S)){var p=E.fill(S," ");t.hole.test(p)&&(S=p)}return!m&&!t.room.test(S)&&(S=S.replace(t.relax,E.relax)),S},relax:function(S,u,m,L){return u+" "+(m?m+" ":"")+L}},c={_:E,of:function(S){for(var u=0,m=E.types.length;u<m;u++)if(c[E.types[u]].apply(c,arguments)===S)return E.types[u]},flip:function(S){return S.replace(/\w/g,function(u){return(u==E.up.call(u)?E.low:E.up).call(u)})},random:function(S){return S.replace(/\w/g,function(u){return(Math.round(Math.random())?E.up:E.low).call(u)})},type:function(S,u){c[S]=u,E.types.push(S)}},a={lower:function(S,u,m){return E.fill(E.low.call(E.prep(S,u)),u,m)},snake:function(S){return c.lower(S,"_",!0)},constant:function(S){return c.upper(S,"_",!0)},camel:function(S){return E.decap(c.pascal(S))},kebab:function(S){return c.lower(S,"-",!0)},upper:function(S,u,m){return E.fill(E.up.call(E.prep(S,u,!1,!0)),u,m)},capital:function(S,u,m){return E.fill(E.prep(S).replace(t.capitalize,function(L,p,F){return p+E.up.call(F)}),u,m)},header:function(S){return c.capital(S,"-",!0)},pascal:function(S){return E.fill(E.prep(S,!1,!0).replace(t.pascal,function(u,m,L){return E.up.call(L)}),"",!0)},title:function(S){return c.capital(S).replace(t.improper,function(u,m,L,p){return L>0&&L<p.lastIndexOf(" ")?E.low.call(u):u})},sentence:function(S,u,m){return S=c.lower(S).replace(t.sentence,function(L,p,F){return p+E.up.call(F)}),u&&u.forEach(function(L){S=S.replace(new RegExp("\\b"+c.lower(L)+"\\b","g"),E.cap)}),m&&m.forEach(function(L){S=S.replace(new RegExp("(\\b"+c.lower(L)+"\\. +)(\\w)"),function(p,F,J){return F+E.low.call(J)})}),S}};a.squish=a.pascal,c.default=c;for(var l in a)c.type(l,a[l]);var w=typeof w=="function"?w:function(){};w(A.exports?A.exports=c:this.Case=c)}).call(HA)})(Aa);var Uw=Aa.exports;const aQ=EQ(Uw);function Lw(A,g="camel",I){if(g==="notransform")return A;switch(g){case"param":return aQ.kebab(A);case"dot":return aQ.lower(A,".",!0);default:return aQ[g](A)}}function mw(A,g){const I={};for(const[B,C]of Object.entries(A))I[B]=g(C,B);return I}function nt(A,g="camel"){if(Array.isArray(A)){const I=[];for(let B=0;B<A.length;B++)I[B]=nt(A[B],g);return I}if(Object(A)===A){const I={};for(const B of Object.getOwnPropertyNames(A)){const C=Lw(B,g);if(C!==B&&Object.prototype.hasOwnProperty.call(A,C))throw new Error(`object already has a ${C} property`);I[C]=nt(A[B],g)}return I}return A}async function ga(A,g){if(!(A<0))return new Promise((I,B)=>{if(g!=null&&g.aborted)return B(new CC);let C=()=>{};const e=setTimeout(()=>{C(),I()},A),i=()=>{C(),B(new CC)};g&&g.addEventListener("abort",i),C=()=>{clearTimeout(e),g&&g.removeEventListener("abort",i)}})}async function Hw(A,g){var i;const I=((g==null?void 0:g.retries)??5)+1,B=g==null?void 0:g.shouldRetry,C=g==null?void 0:g.onRetry;let e=Error("RetryError");for(let t=1;t<=I;t++){if(t>1){if((i=g==null?void 0:g.signal)!=null&&i.aborted)throw new CC("retry");C==null||C(e,t)}try{return await A(t)}catch(E){if(e=E,t===I||B&&!B(e))break;(g==null?void 0:g.retryDelay)!==void 0&&await ga(g==null?void 0:g.retryDelay,g==null?void 0:g.signal)}}throw e}var Ia={exports:{}};function Ba(A){const g=new globalThis.AbortController;function I(){g.abort();for(const B of A)!B||!B.removeEventListener||B.removeEventListener("abort",I)}for(const B of A)if(!(!B||!B.addEventListener)){if(B.aborted){I();break}B.addEventListener("abort",I)}return g.signal}Ia.exports=Ba,Ia.exports.anySignal=Ba;function Jw(A){let g;try{g=new URL(A),decodeURIComponent(g.username),decodeURIComponent(g.password)}catch{return!1}return g.protocol==="http:"||g.protocol==="https:"}function Mw(A){return new URL(A).origin}typeof aA<"u"&&aA.versions!=null&&aA.versions.node!=null;const qw=Uint8Array.from([0,97,115,109,1,0,0,0,1,43,8,96,2,127,127,0,96,1,127,0,96,1,127,1,127,96,2,127,127,1,127,96,0,0,96,3,127,127,127,0,96,4,127,127,127,127,0,96,3,127,127,126,0,2,13,1,3,101,110,118,5,97,98,111,114,116,0,6,3,23,22,0,0,0,0,0,7,2,3,3,2,4,5,1,2,5,0,1,1,0,1,1,4,5,3,1,0,1,6,187,1,37,127,0,65,4,11,127,0,65,128,4,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,0,65,0,11,7,169,1,13,8,72,65,83,95,83,73,77,68,3,36,22,98,97,116,99,104,72,97,115,104,52,85,105,110,116,65,114,114,97,121,54,52,115,0,17,26,98,97,116,99,104,72,97,115,104,52,72,97,115,104,79,98,106,101,99,116,73,110,112,117,116,115,0,18,12,73,78,80,85,84,95,76,69,78,71,84,72,3,1,15,80,65,82,65,76,76,69,76,95,70,65,67,84,79,82,3,0,5,105,110,112,117,116,3,30,6,111,117,116,112,117,116,3,32,4,105,110,105,116,0,11,6,117,112,100,97,116,101,0,19,5,102,105,110,97,108,0,20,6,100,105,103,101,115,116,0,21,8,100,105,103,101,115,116,54,52,0,16,6,109,101,109,111,114,121,2,0,8,1,22,12,1,18,10,196,23,22,9,0,32,0,32,1,54,2,0,11,9,0,32,0,32,1,54,2,4,11,9,0,32,0,32,1,54,2,8,11,192,1,1,4,127,32,1,40,2,0,65,124,113,34,3,65,128,2,73,4,127,32,3,65,4,118,5,65,31,65,252,255,255,255,3,32,3,32,3,65,252,255,255,255,3,79,27,34,3,103,107,34,4,65,7,107,33,2,32,3,32,4,65,4,107,118,65,16,115,11,33,3,32,1,40,2,8,33,5,32,1,40,2,4,34,4,4,64,32,4,32,5,16,3,11,32,5,4,64,32,5,32,4,16,2,11,32,1,32,0,32,2,65,4,116,32,3,106,65,2,116,106,34,1,40,2,96,70,4,64,32,1,32,5,54,2,96,32,5,69,4,64,32,0,32,2,65,2,116,106,34,1,40,2,4,65,126,32,3,119,113,33,3,32,1,32,3,54,2,4,32,3,69,4,64,32,0,32,0,40,2,0,65,126,32,2,119,113,16,1,11,11,11,11,181,2,1,5,127,32,1,40,2,0,33,3,32,1,65,4,106,32,1,40,2,0,65,124,113,106,34,4,40,2,0,34,2,65,1,113,4,64,32,0,32,4,16,4,32,1,32,3,65,4,106,32,2,65,124,113,106,34,3,16,1,32,1,65,4,106,32,1,40,2,0,65,124,113,106,34,4,40,2,0,33,2,11,32,3,65,2,113,4,64,32,1,65,4,107,40,2,0,34,1,40,2,0,33,6,32,0,32,1,16,4,32,1,32,6,65,4,106,32,3,65,124,113,106,34,3,16,1,11,32,4,32,2,65,2,114,16,1,32,4,65,4,107,32,1,54,2,0,32,0,32,3,65,124,113,34,2,65,128,2,73,4,127,32,2,65,4,118,5,65,31,65,252,255,255,255,3,32,2,32,2,65,252,255,255,255,3,79,27,34,2,103,107,34,3,65,7,107,33,5,32,2,32,3,65,4,107,118,65,16,115,11,34,2,32,5,65,4,116,106,65,2,116,106,40,2,96,33,3,32,1,65,0,16,2,32,1,32,3,16,3,32,3,4,64,32,3,32,1,16,2,11,32,0,32,5,65,4,116,32,2,106,65,2,116,106,32,1,54,2,96,32,0,32,0,40,2,0,65,1,32,5,116,114,16,1,32,0,32,5,65,2,116,106,34,0,32,0,40,2,4,65,1,32,2,116,114,54,2,4,11,130,1,1,3,127,32,1,65,19,106,65,112,113,65,4,107,33,1,32,0,40,2,160,12,34,3,4,64,32,3,32,1,65,16,107,34,5,70,4,64,32,3,40,2,0,33,4,32,5,33,1,11,11,32,2,167,65,112,113,32,1,107,34,3,65,20,73,4,64,15,11,32,1,32,4,65,2,113,32,3,65,8,107,34,3,65,1,114,114,16,1,32,1,65,0,16,2,32,1,65,0,16,3,32,1,65,4,106,32,3,106,34,3,65,2,16,1,32,0,32,3,54,2,160,12,32,0,32,1,16,5,11,29,0,32,0,65,1,65,27,32,0,103,107,116,106,65,1,107,32,0,32,0,65,254,255,255,255,1,73,27,11,142,1,1,2,127,32,1,65,128,2,73,4,127,32,1,65,4,118,5,65,31,32,1,16,7,34,1,103,107,34,3,65,7,107,33,2,32,1,32,3,65,4,107,118,65,16,115,11,33,1,32,0,32,2,65,2,116,106,40,2,4,65,127,32,1,116,113,34,1,4,127,32,0,32,1,104,32,2,65,4,116,106,65,2,116,106,40,2,96,5,32,0,40,2,0,65,127,32,2,65,1,106,116,113,34,1,4,127,32,0,32,0,32,1,104,34,0,65,2,116,106,40,2,4,104,32,0,65,4,116,106,65,2,116,106,40,2,96,5,65,0,11,11,11,148,2,1,3,127,32,1,65,252,255,255,255,3,75,4,64,65,176,14,65,176,15,65,205,3,65,29,16,0,0,11,32,0,65,12,32,1,65,19,106,65,112,113,65,4,107,32,1,65,12,77,27,34,1,16,8,34,2,69,4,64,32,1,65,128,2,79,4,127,32,1,16,7,5,32,1,11,33,2,63,0,34,3,32,2,65,4,32,0,40,2,160,12,32,3,65,16,116,65,4,107,71,116,106,65,255,255,3,106,65,128,128,124,113,65,16,118,34,2,32,2,32,3,72,27,64,0,65,0,72,4,64,32,2,64,0,65,0,72,4,64,0,11,11,32,0,32,3,65,16,116,63,0,172,66,16,134,16,6,32,0,32,1,16,8,33,2,11,32,2,40,2,0,26,32,0,32,2,16,4,32,2,40,2,0,34,3,65,124,113,32,1,107,34,4,65,16,79,4,64,32,2,32,1,32,3,65,2,113,114,16,1,32,2,65,4,106,32,1,106,34,1,32,4,65,4,107,65,1,114,16,1,32,0,32,1,16,5,5,32,2,32,3,65,126,113,16,1,32,2,65,4,106,32,2,40,2,0,65,124,113,106,34,0,32,0,40,2,0,65,125,113,16,1,11,32,2,11,169,2,1,3,127,32,0,65,252,255,255,255,3,75,4,64,65,192,13,65,240,13,65,52,65,43,16,0,0,11,32,0,65,236,255,255,255,3,75,4,64,65,176,14,65,240,14,65,253,0,65,30,16,0,0,11,35,23,69,4,64,63,0,34,2,65,0,76,4,127,65,1,32,2,107,64,0,65,0,72,5,65,0,11,4,64,0,11,65,128,16,65,0,16,1,65,160,28,65,0,54,2,0,3,64,32,1,65,23,73,4,64,32,1,65,2,116,65,128,16,106,65,0,54,2,4,65,0,33,2,3,64,32,2,65,16,73,4,64,32,1,65,4,116,32,2,106,65,2,116,65,128,16,106,65,0,54,2,96,32,2,65,1,106,33,2,12,1,11,11,32,1,65,1,106,33,1,12,1,11,11,65,128,16,65,164,28,63,0,172,66,16,134,16,6,65,128,16,36,23,11,35,23,32,0,65,16,106,16,9,34,2,65,1,54,2,12,32,2,32,0,54,2,16,35,24,34,3,40,2,8,33,1,32,2,32,3,16,2,32,2,32,1,16,3,32,1,32,2,32,1,40,2,4,65,3,113,114,16,2,32,3,32,2,16,3,35,25,32,2,40,2,0,65,124,113,65,4,106,106,36,25,32,2,65,20,106,34,1,65,0,32,0,252,11,0,32,1,11,74,0,65,231,204,167,208,6,36,4,65,133,221,158,219,123,36,5,65,242,230,187,227,3,36,6,65,186,234,191,170,122,36,7,65,255,164,185,136,5,36,8,65,140,209,149,216,121,36,9,65,171,179,143,252,1,36,10,65,153,154,131,223,5,36,11,65,0,36,34,65,0,36,35,11,233,3,1,1,127,35,4,36,12,35,5,36,13,35,6,36,14,35,7,36,15,35,8,36,16,35,9,36,17,35,10,36,18,35,11,36,19,65,0,36,20,3,64,35,20,65,16,73,4,64,32,0,35,20,65,2,116,106,32,1,35,20,32,2,108,65,2,116,34,3,65,3,106,106,45,0,0,32,1,32,3,106,45,0,0,65,24,116,32,1,32,3,65,1,106,106,45,0,0,65,16,116,114,32,1,32,3,65,2,106,106,45,0,0,65,8,116,114,114,54,2,0,35,20,65,1,106,36,20,12,1,11,11,65,16,36,20,3,64,35,20,65,192,0,73,4,64,32,0,35,20,65,2,116,106,32,0,35,20,65,16,107,65,2,116,106,40,2,0,32,0,35,20,65,7,107,65,2,116,106,40,2,0,32,0,35,20,65,2,107,65,2,116,106,40,2,0,34,1,65,17,120,32,1,65,19,120,115,32,1,65,10,118,115,106,32,0,35,20,65,15,107,65,2,116,106,40,2,0,34,1,65,7,120,32,1,65,18,120,115,32,1,65,3,118,115,106,106,54,2,0,35,20,65,1,106,36,20,12,1,11,11,65,0,36,20,3,64,35,20,65,192,0,73,4,64,32,0,35,20,65,2,116,34,1,106,40,2,0,32,1,35,2,106,40,2,0,35,19,35,16,34,1,65,6,120,32,1,65,11,120,115,32,1,65,25,120,115,106,35,16,34,1,35,17,113,35,18,32,1,65,127,115,113,115,106,106,106,36,21,35,12,34,1,65,2,120,32,1,65,13,120,115,32,1,65,22,120,115,35,13,34,1,35,14,34,2,113,32,1,35,12,34,1,113,32,1,32,2,113,115,115,106,36,22,35,18,36,19,35,17,36,18,35,16,36,17,35,15,35,21,106,36,16,35,14,36,15,35,13,36,14,35,12,36,13,35,21,35,22,106,36,12,35,20,65,1,106,36,20,12,1,11,11,35,4,35,12,106,36,4,35,5,35,13,106,36,5,35,6,35,14,106,36,6,35,7,35,15,106,36,7,35,8,35,16,106,36,8,35,9,35,17,106,36,9,35,10,35,18,106,36,10,35,11,35,19,106,36,11,11,253,1,1,2,127,35,4,36,12,35,5,36,13,35,6,36,14,35,7,36,15,35,8,36,16,35,9,36,17,35,10,36,18,35,11,36,19,65,0,36,20,3,64,35,20,65,192,0,73,4,64,32,0,35,20,65,2,116,106,40,2,0,35,19,35,16,34,1,65,6,120,32,1,65,11,120,115,32,1,65,25,120,115,106,35,16,34,1,35,17,113,35,18,32,1,65,127,115,113,115,106,106,36,21,35,12,34,1,65,2,120,32,1,65,13,120,115,32,1,65,22,120,115,35,13,34,2,35,14,34,1,113,32,2,35,12,34,2,113,32,1,32,2,113,115,115,106,36,22,35,18,36,19,35,17,36,18,35,16,36,17,35,15,35,21,106,36,16,35,14,36,15,35,13,36,14,35,12,36,13,35,21,35,22,106,36,12,35,20,65,1,106,36,20,12,1,11,11,35,4,35,12,106,36,4,35,5,35,13,106,36,5,35,6,35,14,106,36,6,35,7,35,15,106,36,7,35,8,35,16,106,36,8,35,9,35,17,106,36,9,35,10,35,18,106,36,10,35,11,35,19,106,36,11,11,25,0,32,0,65,128,254,131,120,113,65,8,119,32,0,65,255,129,252,7,113,65,8,120,114,11,88,0,16,11,35,29,32,0,32,2,16,12,35,3,16,13,32,1,35,4,16,14,54,2,0,32,1,35,5,16,14,54,2,4,32,1,35,6,16,14,54,2,8,32,1,35,7,16,14,54,2,12,32,1,35,8,16,14,54,2,16,32,1,35,9,16,14,54,2,20,32,1,35,10,16,14,54,2,24,32,1,35,11,16,14,54,2,28,11,10,0,32,0,32,1,65,1,16,15,11,42,1,1,127,3,64,32,1,65,4,72,4,64,35,31,32,1,65,6,116,106,32,0,32,1,65,5,116,106,16,16,32,1,65,1,106,33,1,12,1,11,11,11,44,1,1,127,3,64,32,1,65,4,72,4,64,35,31,32,1,65,2,116,106,32,0,32,1,65,5,116,106,65,4,16,15,32,1,65,1,106,33,1,12,1,11,11,11,178,1,1,2,127,35,35,32,1,106,36,35,35,34,4,64,65,192,0,35,34,107,34,2,32,1,76,4,64,35,27,35,34,106,32,0,32,2,252,10,0,0,35,34,32,2,106,36,34,65,192,0,35,34,107,33,2,32,1,65,192,0,35,34,107,107,33,1,35,29,35,27,65,1,16,12,65,0,36,34,5,35,27,35,34,106,32,0,32,1,252,10,0,0,35,34,32,1,106,36,34,15,11,11,3,64,32,3,32,1,65,192,0,109,72,4,64,35,29,32,0,32,2,106,65,1,16,12,32,3,65,1,106,33,3,32,2,65,64,107,33,2,12,1,11,11,32,1,65,63,113,34,1,4,64,35,27,35,34,106,32,0,32,2,106,32,1,252,10,0,0,35,34,32,1,106,36,34,11,11,150,2,1,2,127,35,35,65,63,113,65,63,73,4,64,35,27,35,34,106,65,128,1,58,0,0,35,34,65,1,106,36,34,11,35,35,65,63,113,65,56,79,4,64,35,27,35,34,106,34,1,65,192,0,35,34,107,106,33,2,3,64,32,1,32,2,73,4,64,32,1,65,0,58,0,0,32,1,65,1,106,33,1,12,1,11,11,35,29,35,27,65,1,16,12,65,0,36,34,11,35,35,65,63,113,65,63,79,4,64,35,27,35,34,106,65,128,1,58,0,0,35,34,65,1,106,36,34,11,35,27,35,34,106,34,1,65,56,35,34,107,106,33,2,3,64,32,1,32,2,73,4,64,32,1,65,0,58,0,0,32,1,65,1,106,33,1,12,1,11,11,35,27,35,35,65,128,128,128,128,2,109,16,14,54,2,56,35,27,35,35,65,3,116,16,14,54,2,60,35,29,35,27,65,1,16,12,32,0,35,4,16,14,54,2,0,32,0,35,5,16,14,54,2,4,32,0,35,6,16,14,54,2,8,32,0,35,7,16,14,54,2,12,32,0,35,8,16,14,54,2,16,32,0,35,9,16,14,54,2,20,32,0,35,10,16,14,54,2,24,32,0,35,11,16,14,54,2,28,11,14,0,16,11,35,31,32,0,16,19,35,33,16,20,11,82,0,65,196,10,40,2,0,36,2,65,148,13,40,2,0,36,3,65,224,15,65,224,15,16,2,65,224,15,65,224,15,16,3,65,224,15,36,24,65,192,0,16,10,36,26,35,26,36,27,65,128,8,16,10,36,28,35,28,36,29,65,128,4,16,10,36,30,35,30,36,31,65,32,16,10,36,32,35,32,36,33,11,11,253,6,18,0,65,140,8,11,2,28,1,0,65,152,8,11,136,2,1,0,0,0,0,1,0,0,152,47,138,66,145,68,55,113,207,251,192,181,165,219,181,233,91,194,86,57,241,17,241,89,164,130,63,146,213,94,28,171,152,170,7,216,1,91,131,18,190,133,49,36,195,125,12,85,116,93,190,114,254,177,222,128,167,6,220,155,116,241,155,193,193,105,155,228,134,71,190,239,198,157,193,15,204,161,12,36,111,44,233,45,170,132,116,74,220,169,176,92,218,136,249,118,82,81,62,152,109,198,49,168,200,39,3,176,199,127,89,191,243,11,224,198,71,145,167,213,81,99,202,6,103,41,41,20,133,10,183,39,56,33,27,46,252,109,44,77,19,13,56,83,84,115,10,101,187,10,106,118,46,201,194,129,133,44,114,146,161,232,191,162,75,102,26,168,112,139,75,194,163,81,108,199,25,232,146,209,36,6,153,214,133,53,14,244,112,160,106,16,22,193,164,25,8,108,55,30,76,119,72,39,181,188,176,52,179,12,28,57,74,170,216,78,79,202,156,91,243,111,46,104,238,130,143,116,111,99,165,120,20,120,200,132,8,2,199,140,250,255,190,144,235,108,80,164,247,163,249,190,242,120,113,198,0,65,172,10,11,1,44,0,65,184,10,11,21,4,0,0,0,16,0,0,0,32,4,0,0,32,4,0,0,0,1,0,0,64,0,65,220,10,11,2,28,1,0,65,232,10,11,136,2,1,0,0,0,0,1,0,0,152,47,138,194,145,68,55,113,207,251,192,181,165,219,181,233,91,194,86,57,241,17,241,89,164,130,63,146,213,94,28,171,152,170,7,216,1,91,131,18,190,133,49,36,195,125,12,85,116,93,190,114,254,177,222,128,167,6,220,155,116,243,155,193,193,105,155,100,134,71,254,240,198,237,225,15,84,242,12,36,111,52,233,79,190,132,201,108,30,65,185,97,250,136,249,22,82,81,198,242,109,90,142,168,101,252,25,176,199,158,217,185,195,49,18,154,160,234,14,231,43,35,177,253,176,62,53,199,213,186,105,48,95,109,151,203,143,17,15,90,253,238,30,220,137,182,53,10,4,122,11,222,157,202,244,88,22,91,93,225,134,62,127,0,128,137,8,55,50,234,7,165,55,149,171,111,16,97,64,23,241,214,140,13,109,59,170,205,55,190,187,192,218,59,97,131,99,163,72,219,49,233,2,11,167,92,209,111,202,250,26,82,49,132,51,49,149,26,212,110,144,120,67,109,242,145,156,195,189,171,204,158,230,160,201,181,60,182,47,83,198,65,199,210,163,126,35,7,104,75,149,164,118,29,25,76,0,65,252,12,11,1,44,0,65,136,13,11,21,4,0,0,0,16,0,0,0,112,5,0,0,112,5,0,0,0,1,0,0,64,0,65,172,13,11,1,44,0,65,184,13,11,35,2,0,0,0,28,0,0,0,73,0,110,0,118,0,97,0,108,0,105,0,100,0,32,0,108,0,101,0,110,0,103,0,116,0,104,0,65,220,13,11,1,60,0,65,232,13,11,45,2,0,0,0,38,0,0,0,126,0,108,0,105,0,98,0,47,0,97,0,114,0,114,0,97,0,121,0,98,0,117,0,102,0,102,0,101,0,114,0,46,0,116,0,115,0,65,156,14,11,1,60,0,65,168,14,11,47,2,0,0,0,40,0,0,0,65,0,108,0,108,0,111,0,99,0,97,0,116,0,105,0,111,0,110,0,32,0,116,0,111,0,111,0,32,0,108,0,97,0,114,0,103,0,101,0,65,220,14,11,1,60,0,65,232,14,11,37,2,0,0,0,30,0,0,0,126,0,108,0,105,0,98,0,47,0,114,0,116,0,47,0,116,0,99,0,109,0,115,0,46,0,116,0,115,0,65,156,15,11,1,60,0,65,168,15,11,37,2,0,0,0,30,0,0,0,126,0,108,0,105,0,98,0,47,0,114,0,116,0,47,0,116,0,108,0,115,0,102,0,46,0,116,0,115]),ea=Uint8Array.from([0,97,115,109,1,0,0,0,1,37,7,96,2,127,127,0,96,1,127,1,127,96,2,127,127,1,127,96,1,127,0,96,0,0,96,4,127,127,127,127,0,96,3,127,127,126,0,2,13,1,3,101,110,118,5,97,98,111,114,116,0,5,3,30,29,0,0,0,0,0,6,1,2,2,2,1,2,1,1,2,4,4,1,0,3,3,4,0,0,3,3,3,0,4,5,3,1,0,1,6,227,4,61,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,127,1,65,0,11,123,1,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,0,65,4,11,127,0,65,128,4,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,0,65,1,11,7,169,1,13,8,72,65,83,95,83,73,77,68,3,60,22,98,97,116,99,104,72,97,115,104,52,85,105,110,116,65,114,114,97,121,54,52,115,0,20,26,98,97,116,99,104,72,97,115,104,52,72,97,115,104,79,98,106,101,99,116,73,110,112,117,116,115,0,21,12,73,78,80,85,84,95,76,69,78,71,84,72,3,28,15,80,65,82,65,76,76,69,76,95,70,65,67,84,79,82,3,27,5,105,110,112,117,116,3,54,6,111,117,116,112,117,116,3,56,4,105,110,105,116,0,22,6,117,112,100,97,116,101,0,24,5,102,105,110,97,108,0,25,6,100,105,103,101,115,116,0,26,8,100,105,103,101,115,116,54,52,0,28,6,109,101,109,111,114,121,2,0,8,1,29,12,1,38,10,158,112,29,9,0,32,0,32,1,54,2,0,11,9,0,32,0,32,1,54,2,4,11,9,0,32,0,32,1,54,2,8,11,192,1,1,4,127,32,1,40,2,0,65,124,113,34,3,65,128,2,73,4,127,32,3,65,4,118,5,65,31,65,252,255,255,255,3,32,3,32,3,65,252,255,255,255,3,79,27,34,3,103,107,34,4,65,7,107,33,2,32,3,32,4,65,4,107,118,65,16,115,11,33,3,32,1,40,2,8,33,5,32,1,40,2,4,34,4,4,64,32,4,32,5,16,3,11,32,5,4,64,32,5,32,4,16,2,11,32,1,32,0,32,2,65,4,116,32,3,106,65,2,116,106,34,1,40,2,96,70,4,64,32,1,32,5,54,2,96,32,5,69,4,64,32,0,32,2,65,2,116,106,34,1,40,2,4,65,126,32,3,119,113,33,3,32,1,32,3,54,2,4,32,3,69,4,64,32,0,32,0,40,2,0,65,126,32,2,119,113,16,1,11,11,11,11,181,2,1,5,127,32,1,40,2,0,33,3,32,1,65,4,106,32,1,40,2,0,65,124,113,106,34,4,40,2,0,34,2,65,1,113,4,64,32,0,32,4,16,4,32,1,32,3,65,4,106,32,2,65,124,113,106,34,3,16,1,32,1,65,4,106,32,1,40,2,0,65,124,113,106,34,4,40,2,0,33,2,11,32,3,65,2,113,4,64,32,1,65,4,107,40,2,0,34,1,40,2,0,33,6,32,0,32,1,16,4,32,1,32,6,65,4,106,32,3,65,124,113,106,34,3,16,1,11,32,4,32,2,65,2,114,16,1,32,4,65,4,107,32,1,54,2,0,32,0,32,3,65,124,113,34,2,65,128,2,73,4,127,32,2,65,4,118,5,65,31,65,252,255,255,255,3,32,2,32,2,65,252,255,255,255,3,79,27,34,2,103,107,34,3,65,7,107,33,5,32,2,32,3,65,4,107,118,65,16,115,11,34,2,32,5,65,4,116,106,65,2,116,106,40,2,96,33,3,32,1,65,0,16,2,32,1,32,3,16,3,32,3,4,64,32,3,32,1,16,2,11,32,0,32,5,65,4,116,32,2,106,65,2,116,106,32,1,54,2,96,32,0,32,0,40,2,0,65,1,32,5,116,114,16,1,32,0,32,5,65,2,116,106,34,0,32,0,40,2,4,65,1,32,2,116,114,54,2,4,11,130,1,1,3,127,32,1,65,19,106,65,112,113,65,4,107,33,1,32,0,40,2,160,12,34,3,4,64,32,3,32,1,65,16,107,34,5,70,4,64,32,3,40,2,0,33,4,32,5,33,1,11,11,32,2,167,65,112,113,32,1,107,34,3,65,20,73,4,64,15,11,32,1,32,4,65,2,113,32,3,65,8,107,34,3,65,1,114,114,16,1,32,1,65,0,16,2,32,1,65,0,16,3,32,1,65,4,106,32,3,106,34,3,65,2,16,1,32,0,32,3,54,2,160,12,32,0,32,1,16,5,11,29,0,32,0,65,1,65,27,32,0,103,107,116,106,65,1,107,32,0,32,0,65,254,255,255,255,1,73,27,11,142,1,1,2,127,32,1,65,128,2,73,4,127,32,1,65,4,118,5,65,31,32,1,16,7,34,1,103,107,34,3,65,7,107,33,2,32,1,32,3,65,4,107,118,65,16,115,11,33,1,32,0,32,2,65,2,116,106,40,2,4,65,127,32,1,116,113,34,1,4,127,32,0,32,1,104,32,2,65,4,116,106,65,2,116,106,40,2,96,5,32,0,40,2,0,65,127,32,2,65,1,106,116,113,34,1,4,127,32,0,32,0,32,1,104,34,0,65,2,116,106,40,2,4,104,32,0,65,4,116,106,65,2,116,106,40,2,96,5,65,0,11,11,11,148,2,1,3,127,32,1,65,252,255,255,255,3,75,4,64,65,176,14,65,176,15,65,205,3,65,29,16,0,0,11,32,0,65,12,32,1,65,19,106,65,112,113,65,4,107,32,1,65,12,77,27,34,1,16,8,34,2,69,4,64,32,1,65,128,2,79,4,127,32,1,16,7,5,32,1,11,33,2,63,0,34,3,32,2,65,4,32,0,40,2,160,12,32,3,65,16,116,65,4,107,71,116,106,65,255,255,3,106,65,128,128,124,113,65,16,118,34,2,32,2,32,3,72,27,64,0,65,0,72,4,64,32,2,64,0,65,0,72,4,64,0,11,11,32,0,32,3,65,16,116,63,0,172,66,16,134,16,6,32,0,32,1,16,8,33,2,11,32,2,40,2,0,26,32,0,32,2,16,4,32,2,40,2,0,34,3,65,124,113,32,1,107,34,4,65,16,79,4,64,32,2,32,1,32,3,65,2,113,114,16,1,32,2,65,4,106,32,1,106,34,1,32,4,65,4,107,65,1,114,16,1,32,0,32,1,16,5,5,32,2,32,3,65,126,113,16,1,32,2,65,4,106,32,2,40,2,0,65,124,113,106,34,0,32,0,40,2,0,65,125,113,16,1,11,32,2,11,133,2,1,2,127,32,0,65,236,255,255,255,3,75,4,64,65,176,14,65,240,14,65,253,0,65,30,16,0,0,11,35,20,69,4,64,63,0,34,3,65,0,76,4,127,65,1,32,3,107,64,0,65,0,72,5,65,0,11,4,64,0,11,65,208,21,65,0,16,1,65,240,33,65,0,54,2,0,3,64,32,2,65,23,73,4,64,32,2,65,2,116,65,208,21,106,65,0,54,2,4,65,0,33,3,3,64,32,3,65,16,73,4,64,32,2,65,4,116,32,3,106,65,2,116,65,208,21,106,65,0,54,2,96,32,3,65,1,106,33,3,12,1,11,11,32,2,65,1,106,33,2,12,1,11,11,65,208,21,65,244,33,63,0,172,66,16,134,16,6,65,208,21,36,20,11,35,20,32,0,65,16,106,16,9,34,2,32,1,54,2,12,32,2,32,0,54,2,16,35,21,34,0,40,2,8,33,1,32,2,32,0,16,2,32,2,32,1,16,3,32,1,32,2,32,1,40,2,4,65,3,113,114,16,2,32,0,32,2,16,3,35,22,32,2,40,2,0,65,124,113,65,4,106,106,36,22,32,2,65,20,106,11,46,1,1,127,32,0,65,252,255,255,255,3,75,4,64,65,192,13,65,240,13,65,52,65,43,16,0,0,11,32,0,65,1,16,10,34,1,65,0,32,0,252,11,0,32,1,11,41,0,32,1,32,0,40,2,12,79,4,64,65,144,16,65,208,16,65,242,0,65,42,16,0,0,11,32,0,40,2,4,32,1,65,2,116,106,40,2,0,11,181,1,1,4,127,32,0,69,4,64,65,192,18,15,11,65,0,32,0,107,32,0,32,0,65,31,118,65,1,116,34,1,27,34,0,65,10,79,65,1,106,32,0,65,144,206,0,79,65,3,106,32,0,65,232,7,79,106,32,0,65,228,0,73,27,32,0,65,192,132,61,79,65,6,106,32,0,65,128,148,235,220,3,79,65,8,106,32,0,65,128,194,215,47,79,106,32,0,65,128,173,226,4,73,27,32,0,65,160,141,6,73,27,34,2,65,1,116,32,1,106,65,2,16,10,34,3,32,1,106,33,4,3,64,32,4,32,2,65,1,107,34,2,65,1,116,106,32,0,65,10,112,65,48,106,59,1,0,32,0,65,10,110,34,0,13,0,11,32,1,4,64,32,3,65,45,59,1,0,11,32,3,11,13,0,32,0,65,20,107,40,2,16,65,1,118,11,64,1,3,127,32,0,16,14,65,1,116,34,2,32,1,16,14,65,1,116,34,3,106,34,4,69,4,64,65,160,20,15,11,32,4,65,2,16,10,34,4,32,0,32,2,252,10,0,0,32,2,32,4,106,32,1,32,3,252,10,0,0,32,4,11,145,16,2,2,127,1,123,65,224,15,65,224,15,16,2,65,224,15,65,224,15,16,3,65,224,15,36,21,65,128,8,16,11,36,23,35,23,36,24,2,64,3,64,32,0,65,192,0,72,4,64,35,24,33,1,65,192,10,32,0,16,12,253,17,33,2,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,32,0,14,64,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,67,11,32,1,32,2,253,11,4,0,12,63,11,32,1,32,2,253,11,4,16,12,62,11,32,1,32,2,253,11,4,32,12,61,11,32,1,32,2,253,11,4,48,12,60,11,32,1,32,2,253,11,4,64,12,59,11,32,1,32,2,253,11,4,80,12,58,11,32,1,32,2,253,11,4,96,12,57,11,32,1,32,2,253,11,4,112,12,56,11,32,1,32,2,253,11,4,128,1,12,55,11,32,1,32,2,253,11,4,144,1,12,54,11,32,1,32,2,253,11,4,160,1,12,53,11,32,1,32,2,253,11,4,176,1,12,52,11,32,1,32,2,253,11,4,192,1,12,51,11,32,1,32,2,253,11,4,208,1,12,50,11,32,1,32,2,253,11,4,224,1,12,49,11,32,1,32,2,253,11,4,240,1,12,48,11,32,1,32,2,253,11,4,128,2,12,47,11,32,1,32,2,253,11,4,144,2,12,46,11,32,1,32,2,253,11,4,160,2,12,45,11,32,1,32,2,253,11,4,176,2,12,44,11,32,1,32,2,253,11,4,192,2,12,43,11,32,1,32,2,253,11,4,208,2,12,42,11,32,1,32,2,253,11,4,224,2,12,41,11,32,1,32,2,253,11,4,240,2,12,40,11,32,1,32,2,253,11,4,128,3,12,39,11,32,1,32,2,253,11,4,144,3,12,38,11,32,1,32,2,253,11,4,160,3,12,37,11,32,1,32,2,253,11,4,176,3,12,36,11,32,1,32,2,253,11,4,192,3,12,35,11,32,1,32,2,253,11,4,208,3,12,34,11,32,1,32,2,253,11,4,224,3,12,33,11,32,1,32,2,253,11,4,240,3,12,32,11,32,1,32,2,253,11,4,128,4,12,31,11,32,1,32,2,253,11,4,144,4,12,30,11,32,1,32,2,253,11,4,160,4,12,29,11,32,1,32,2,253,11,4,176,4,12,28,11,32,1,32,2,253,11,4,192,4,12,27,11,32,1,32,2,253,11,4,208,4,12,26,11,32,1,32,2,253,11,4,224,4,12,25,11,32,1,32,2,253,11,4,240,4,12,24,11,32,1,32,2,253,11,4,128,5,12,23,11,32,1,32,2,253,11,4,144,5,12,22,11,32,1,32,2,253,11,4,160,5,12,21,11,32,1,32,2,253,11,4,176,5,12,20,11,32,1,32,2,253,11,4,192,5,12,19,11,32,1,32,2,253,11,4,208,5,12,18,11,32,1,32,2,253,11,4,224,5,12,17,11,32,1,32,2,253,11,4,240,5,12,16,11,32,1,32,2,253,11,4,128,6,12,15,11,32,1,32,2,253,11,4,144,6,12,14,11,32,1,32,2,253,11,4,160,6,12,13,11,32,1,32,2,253,11,4,176,6,12,12,11,32,1,32,2,253,11,4,192,6,12,11,11,32,1,32,2,253,11,4,208,6,12,10,11,32,1,32,2,253,11,4,224,6,12,9,11,32,1,32,2,253,11,4,240,6,12,8,11,32,1,32,2,253,11,4,128,7,12,7,11,32,1,32,2,253,11,4,144,7,12,6,11,32,1,32,2,253,11,4,160,7,12,5,11,32,1,32,2,253,11,4,176,7,12,4,11,32,1,32,2,253,11,4,192,7,12,3,11,32,1,32,2,253,11,4,208,7,12,2,11,32,1,32,2,253,11,4,224,7,12,1,11,32,1,32,2,253,11,4,240,7,11,32,0,65,1,106,33,0,12,1,11,11,65,128,8,16,11,36,25,35,25,36,26,65,0,33,0,3,64,32,0,65,192,0,72,4,64,35,26,33,1,65,144,13,32,0,16,12,253,17,33,2,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,32,0,14,64,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,67,11,32,1,32,2,253,11,4,0,12,63,11,32,1,32,2,253,11,4,16,12,62,11,32,1,32,2,253,11,4,32,12,61,11,32,1,32,2,253,11,4,48,12,60,11,32,1,32,2,253,11,4,64,12,59,11,32,1,32,2,253,11,4,80,12,58,11,32,1,32,2,253,11,4,96,12,57,11,32,1,32,2,253,11,4,112,12,56,11,32,1,32,2,253,11,4,128,1,12,55,11,32,1,32,2,253,11,4,144,1,12,54,11,32,1,32,2,253,11,4,160,1,12,53,11,32,1,32,2,253,11,4,176,1,12,52,11,32,1,32,2,253,11,4,192,1,12,51,11,32,1,32,2,253,11,4,208,1,12,50,11,32,1,32,2,253,11,4,224,1,12,49,11,32,1,32,2,253,11,4,240,1,12,48,11,32,1,32,2,253,11,4,128,2,12,47,11,32,1,32,2,253,11,4,144,2,12,46,11,32,1,32,2,253,11,4,160,2,12,45,11,32,1,32,2,253,11,4,176,2,12,44,11,32,1,32,2,253,11,4,192,2,12,43,11,32,1,32,2,253,11,4,208,2,12,42,11,32,1,32,2,253,11,4,224,2,12,41,11,32,1,32,2,253,11,4,240,2,12,40,11,32,1,32,2,253,11,4,128,3,12,39,11,32,1,32,2,253,11,4,144,3,12,38,11,32,1,32,2,253,11,4,160,3,12,37,11,32,1,32,2,253,11,4,176,3,12,36,11,32,1,32,2,253,11,4,192,3,12,35,11,32,1,32,2,253,11,4,208,3,12,34,11,32,1,32,2,253,11,4,224,3,12,33,11,32,1,32,2,253,11,4,240,3,12,32,11,32,1,32,2,253,11,4,128,4,12,31,11,32,1,32,2,253,11,4,144,4,12,30,11,32,1,32,2,253,11,4,160,4,12,29,11,32,1,32,2,253,11,4,176,4,12,28,11,32,1,32,2,253,11,4,192,4,12,27,11,32,1,32,2,253,11,4,208,4,12,26,11,32,1,32,2,253,11,4,224,4,12,25,11,32,1,32,2,253,11,4,240,4,12,24,11,32,1,32,2,253,11,4,128,5,12,23,11,32,1,32,2,253,11,4,144,5,12,22,11,32,1,32,2,253,11,4,160,5,12,21,11,32,1,32,2,253,11,4,176,5,12,20,11,32,1,32,2,253,11,4,192,5,12,19,11,32,1,32,2,253,11,4,208,5,12,18,11,32,1,32,2,253,11,4,224,5,12,17,11,32,1,32,2,253,11,4,240,5,12,16,11,32,1,32,2,253,11,4,128,6,12,15,11,32,1,32,2,253,11,4,144,6,12,14,11,32,1,32,2,253,11,4,160,6,12,13,11,32,1,32,2,253,11,4,176,6,12,12,11,32,1,32,2,253,11,4,192,6,12,11,11,32,1,32,2,253,11,4,208,6,12,10,11,32,1,32,2,253,11,4,224,6,12,9,11,32,1,32,2,253,11,4,240,6,12,8,11,32,1,32,2,253,11,4,128,7,12,7,11,32,1,32,2,253,11,4,144,7,12,6,11,32,1,32,2,253,11,4,160,7,12,5,11,32,1,32,2,253,11,4,176,7,12,4,11,32,1,32,2,253,11,4,192,7,12,3,11,32,1,32,2,253,11,4,208,7,12,2,11,32,1,32,2,253,11,4,224,7,12,1,11,32,1,32,2,253,11,4,240,7,11,32,0,65,1,106,33,0,12,1,11,11,15,11,65,192,19,32,0,16,13,16,15,65,192,20,65,201,1,65,7,16,0,0,11,192,10,2,2,123,2,127,35,0,36,8,35,1,36,9,35,2,36,10,35,3,36,11,35,4,36,12,35,5,36,13,35,6,36,14,35,7,36,15,65,0,36,18,3,64,35,18,65,192,0,72,4,64,35,15,35,12,34,0,65,6,253,173,1,32,0,65,26,253,171,1,253,80,32,0,65,11,253,173,1,32,0,65,21,253,171,1,253,80,253,81,32,0,65,25,253,173,1,32,0,65,7,253,171,1,253,80,253,81,253,174,1,35,12,34,0,35,13,253,78,32,0,253,77,35,14,253,78,253,81,253,174,1,33,1,35,26,33,2,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,35,18,34,3,14,64,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,11,32,2,253,0,4,0,33,0,12,64,11,32,2,253,0,4,16,33,0,12,63,11,32,2,253,0,4,32,33,0,12,62,11,32,2,253,0,4,48,33,0,12,61,11,32,2,253,0,4,64,33,0,12,60,11,32,2,253,0,4,80,33,0,12,59,11,32,2,253,0,4,96,33,0,12,58,11,32,2,253,0,4,112,33,0,12,57,11,32,2,253,0,4,128,1,33,0,12,56,11,32,2,253,0,4,144,1,33,0,12,55,11,32,2,253,0,4,160,1,33,0,12,54,11,32,2,253,0,4,176,1,33,0,12,53,11,32,2,253,0,4,192,1,33,0,12,52,11,32,2,253,0,4,208,1,33,0,12,51,11,32,2,253,0,4,224,1,33,0,12,50,11,32,2,253,0,4,240,1,33,0,12,49,11,32,2,253,0,4,128,2,33,0,12,48,11,32,2,253,0,4,144,2,33,0,12,47,11,32,2,253,0,4,160,2,33,0,12,46,11,32,2,253,0,4,176,2,33,0,12,45,11,32,2,253,0,4,192,2,33,0,12,44,11,32,2,253,0,4,208,2,33,0,12,43,11,32,2,253,0,4,224,2,33,0,12,42,11,32,2,253,0,4,240,2,33,0,12,41,11,32,2,253,0,4,128,3,33,0,12,40,11,32,2,253,0,4,144,3,33,0,12,39,11,32,2,253,0,4,160,3,33,0,12,38,11,32,2,253,0,4,176,3,33,0,12,37,11,32,2,253,0,4,192,3,33,0,12,36,11,32,2,253,0,4,208,3,33,0,12,35,11,32,2,253,0,4,224,3,33,0,12,34,11,32,2,253,0,4,240,3,33,0,12,33,11,32,2,253,0,4,128,4,33,0,12,32,11,32,2,253,0,4,144,4,33,0,12,31,11,32,2,253,0,4,160,4,33,0,12,30,11,32,2,253,0,4,176,4,33,0,12,29,11,32,2,253,0,4,192,4,33,0,12,28,11,32,2,253,0,4,208,4,33,0,12,27,11,32,2,253,0,4,224,4,33,0,12,26,11,32,2,253,0,4,240,4,33,0,12,25,11,32,2,253,0,4,128,5,33,0,12,24,11,32,2,253,0,4,144,5,33,0,12,23,11,32,2,253,0,4,160,5,33,0,12,22,11,32,2,253,0,4,176,5,33,0,12,21,11,32,2,253,0,4,192,5,33,0,12,20,11,32,2,253,0,4,208,5,33,0,12,19,11,32,2,253,0,4,224,5,33,0,12,18,11,32,2,253,0,4,240,5,33,0,12,17,11,32,2,253,0,4,128,6,33,0,12,16,11,32,2,253,0,4,144,6,33,0,12,15,11,32,2,253,0,4,160,6,33,0,12,14,11,32,2,253,0,4,176,6,33,0,12,13,11,32,2,253,0,4,192,6,33,0,12,12,11,32,2,253,0,4,208,6,33,0,12,11,11,32,2,253,0,4,224,6,33,0,12,10,11,32,2,253,0,4,240,6,33,0,12,9,11,32,2,253,0,4,128,7,33,0,12,8,11,32,2,253,0,4,144,7,33,0,12,7,11,32,2,253,0,4,160,7,33,0,12,6,11,32,2,253,0,4,176,7,33,0,12,5,11,32,2,253,0,4,192,7,33,0,12,4,11,32,2,253,0,4,208,7,33,0,12,3,11,32,2,253,0,4,224,7,33,0,12,2,11,32,2,253,0,4,240,7,33,0,12,1,11,65,128,21,32,3,16,13,16,15,65,192,20,65,213,2,65,7,16,0,0,11,32,1,32,0,253,174,1,36,16,35,8,34,0,65,2,253,173,1,32,0,65,30,253,171,1,253,80,32,0,65,13,253,173,1,32,0,65,19,253,171,1,253,80,253,81,32,0,65,22,253,173,1,32,0,65,10,253,171,1,253,80,253,81,35,8,34,0,35,9,34,1,253,78,32,0,35,10,34,0,253,78,253,81,32,1,32,0,253,78,253,81,253,174,1,36,17,35,14,36,15,35,13,36,14,35,12,36,13,35,11,35,16,253,174,1,36,12,35,10,36,11,35,9,36,10,35,8,36,9,35,16,35,17,253,174,1,36,8,35,18,65,1,106,36,18,12,1,11,11,35,0,35,8,253,174,1,36,0,35,1,35,9,253,174,1,36,1,35,2,35,10,253,174,1,36,2,35,3,35,11,253,174,1,36,3,35,4,35,12,253,174,1,36,4,35,5,35,13,253,174,1,36,5,35,6,35,14,253,174,1,36,6,35,7,35,15,253,174,1,36,7,11,25,0,32,0,65,128,254,131,120,113,65,8,119,32,0,65,255,129,252,7,113,65,8,120,114,11,157,57,2,2,123,2,127,253,12,103,230,9,106,103,230,9,106,103,230,9,106,103,230,9,106,36,0,253,12,133,174,103,187,133,174,103,187,133,174,103,187,133,174,103,187,36,1,253,12,114,243,110,60,114,243,110,60,114,243,110,60,114,243,110,60,36,2,253,12,58,245,79,165,58,245,79,165,58,245,79,165,58,245,79,165,36,3,253,12,127,82,14,81,127,82,14,81,127,82,14,81,127,82,14,81,36,4,253,12,140,104,5,155,140,104,5,155,140,104,5,155,140,104,5,155,36,5,253,12,171,217,131,31,171,217,131,31,171,217,131,31,171,217,131,31,36,6,253,12,25,205,224,91,25,205,224,91,25,205,224,91,25,205,224,91,36,7,253,12,103,230,9,106,103,230,9,106,103,230,9,106,103,230,9,106,36,8,253,12,133,174,103,187,133,174,103,187,133,174,103,187,133,174,103,187,36,9,253,12,114,243,110,60,114,243,110,60,114,243,110,60,114,243,110,60,36,10,253,12,58,245,79,165,58,245,79,165,58,245,79,165,58,245,79,165,36,11,253,12,127,82,14,81,127,82,14,81,127,82,14,81,127,82,14,81,36,12,253,12,140,104,5,155,140,104,5,155,140,104,5,155,140,104,5,155,36,13,253,12,171,217,131,31,171,217,131,31,171,217,131,31,171,217,131,31,36,14,253,12,25,205,224,91,25,205,224,91,25,205,224,91,25,205,224,91,36,15,65,0,36,18,2,64,3,64,35,18,65,192,0,72,4,64,35,18,65,16,72,4,123,2,123,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,35,18,34,4,14,64,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,68,11,32,0,253,0,4,0,12,63,11,32,0,253,0,4,16,12,62,11,32,0,253,0,4,32,12,61,11,32,0,253,0,4,48,12,60,11,32,0,253,0,4,64,12,59,11,32,0,253,0,4,80,12,58,11,32,0,253,0,4,96,12,57,11,32,0,253,0,4,112,12,56,11,32,0,253,0,4,128,1,12,55,11,32,0,253,0,4,144,1,12,54,11,32,0,253,0,4,160,1,12,53,11,32,0,253,0,4,176,1,12,52,11,32,0,253,0,4,192,1,12,51,11,32,0,253,0,4,208,1,12,50,11,32,0,253,0,4,224,1,12,49,11,32,0,253,0,4,240,1,12,48,11,32,0,253,0,4,128,2,12,47,11,32,0,253,0,4,144,2,12,46,11,32,0,253,0,4,160,2,12,45,11,32,0,253,0,4,176,2,12,44,11,32,0,253,0,4,192,2,12,43,11,32,0,253,0,4,208,2,12,42,11,32,0,253,0,4,224,2,12,41,11,32,0,253,0,4,240,2,12,40,11,32,0,253,0,4,128,3,12,39,11,32,0,253,0,4,144,3,12,38,11,32,0,253,0,4,160,3,12,37,11,32,0,253,0,4,176,3,12,36,11,32,0,253,0,4,192,3,12,35,11,32,0,253,0,4,208,3,12,34,11,32,0,253,0,4,224,3,12,33,11,32,0,253,0,4,240,3,12,32,11,32,0,253,0,4,128,4,12,31,11,32,0,253,0,4,144,4,12,30,11,32,0,253,0,4,160,4,12,29,11,32,0,253,0,4,176,4,12,28,11,32,0,253,0,4,192,4,12,27,11,32,0,253,0,4,208,4,12,26,11,32,0,253,0,4,224,4,12,25,11,32,0,253,0,4,240,4,12,24,11,32,0,253,0,4,128,5,12,23,11,32,0,253,0,4,144,5,12,22,11,32,0,253,0,4,160,5,12,21,11,32,0,253,0,4,176,5,12,20,11,32,0,253,0,4,192,5,12,19,11,32,0,253,0,4,208,5,12,18,11,32,0,253,0,4,224,5,12,17,11,32,0,253,0,4,240,5,12,16,11,32,0,253,0,4,128,6,12,15,11,32,0,253,0,4,144,6,12,14,11,32,0,253,0,4,160,6,12,13,11,32,0,253,0,4,176,6,12,12,11,32,0,253,0,4,192,6,12,11,11,32,0,253,0,4,208,6,12,10,11,32,0,253,0,4,224,6,12,9,11,32,0,253,0,4,240,6,12,8,11,32,0,253,0,4,128,7,12,7,11,32,0,253,0,4,144,7,12,6,11,32,0,253,0,4,160,7,12,5,11,32,0,253,0,4,176,7,12,4,11,32,0,253,0,4,192,7,12,3,11,32,0,253,0,4,208,7,12,2,11,32,0,253,0,4,224,7,12,1,11,32,0,253,0,4,240,7,11,5,2,123,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,35,18,65,2,107,34,4,14,64,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,68,11,32,0,253,0,4,0,12,63,11,32,0,253,0,4,16,12,62,11,32,0,253,0,4,32,12,61,11,32,0,253,0,4,48,12,60,11,32,0,253,0,4,64,12,59,11,32,0,253,0,4,80,12,58,11,32,0,253,0,4,96,12,57,11,32,0,253,0,4,112,12,56,11,32,0,253,0,4,128,1,12,55,11,32,0,253,0,4,144,1,12,54,11,32,0,253,0,4,160,1,12,53,11,32,0,253,0,4,176,1,12,52,11,32,0,253,0,4,192,1,12,51,11,32,0,253,0,4,208,1,12,50,11,32,0,253,0,4,224,1,12,49,11,32,0,253,0,4,240,1,12,48,11,32,0,253,0,4,128,2,12,47,11,32,0,253,0,4,144,2,12,46,11,32,0,253,0,4,160,2,12,45,11,32,0,253,0,4,176,2,12,44,11,32,0,253,0,4,192,2,12,43,11,32,0,253,0,4,208,2,12,42,11,32,0,253,0,4,224,2,12,41,11,32,0,253,0,4,240,2,12,40,11,32,0,253,0,4,128,3,12,39,11,32,0,253,0,4,144,3,12,38,11,32,0,253,0,4,160,3,12,37,11,32,0,253,0,4,176,3,12,36,11,32,0,253,0,4,192,3,12,35,11,32,0,253,0,4,208,3,12,34,11,32,0,253,0,4,224,3,12,33,11,32,0,253,0,4,240,3,12,32,11,32,0,253,0,4,128,4,12,31,11,32,0,253,0,4,144,4,12,30,11,32,0,253,0,4,160,4,12,29,11,32,0,253,0,4,176,4,12,28,11,32,0,253,0,4,192,4,12,27,11,32,0,253,0,4,208,4,12,26,11,32,0,253,0,4,224,4,12,25,11,32,0,253,0,4,240,4,12,24,11,32,0,253,0,4,128,5,12,23,11,32,0,253,0,4,144,5,12,22,11,32,0,253,0,4,160,5,12,21,11,32,0,253,0,4,176,5,12,20,11,32,0,253,0,4,192,5,12,19,11,32,0,253,0,4,208,5,12,18,11,32,0,253,0,4,224,5,12,17,11,32,0,253,0,4,240,5,12,16,11,32,0,253,0,4,128,6,12,15,11,32,0,253,0,4,144,6,12,14,11,32,0,253,0,4,160,6,12,13,11,32,0,253,0,4,176,6,12,12,11,32,0,253,0,4,192,6,12,11,11,32,0,253,0,4,208,6,12,10,11,32,0,253,0,4,224,6,12,9,11,32,0,253,0,4,240,6,12,8,11,32,0,253,0,4,128,7,12,7,11,32,0,253,0,4,144,7,12,6,11,32,0,253,0,4,160,7,12,5,11,32,0,253,0,4,176,7,12,4,11,32,0,253,0,4,192,7,12,3,11,32,0,253,0,4,208,7,12,2,11,32,0,253,0,4,224,7,12,1,11,32,0,253,0,4,240,7,11,34,2,65,17,253,173,1,32,2,65,15,253,171,1,253,80,32,2,65,19,253,173,1,32,2,65,13,253,171,1,253,80,253,81,32,2,65,10,253,173,1,253,81,2,123,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,35,18,65,7,107,34,4,14,64,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,68,11,32,0,253,0,4,0,12,63,11,32,0,253,0,4,16,12,62,11,32,0,253,0,4,32,12,61,11,32,0,253,0,4,48,12,60,11,32,0,253,0,4,64,12,59,11,32,0,253,0,4,80,12,58,11,32,0,253,0,4,96,12,57,11,32,0,253,0,4,112,12,56,11,32,0,253,0,4,128,1,12,55,11,32,0,253,0,4,144,1,12,54,11,32,0,253,0,4,160,1,12,53,11,32,0,253,0,4,176,1,12,52,11,32,0,253,0,4,192,1,12,51,11,32,0,253,0,4,208,1,12,50,11,32,0,253,0,4,224,1,12,49,11,32,0,253,0,4,240,1,12,48,11,32,0,253,0,4,128,2,12,47,11,32,0,253,0,4,144,2,12,46,11,32,0,253,0,4,160,2,12,45,11,32,0,253,0,4,176,2,12,44,11,32,0,253,0,4,192,2,12,43,11,32,0,253,0,4,208,2,12,42,11,32,0,253,0,4,224,2,12,41,11,32,0,253,0,4,240,2,12,40,11,32,0,253,0,4,128,3,12,39,11,32,0,253,0,4,144,3,12,38,11,32,0,253,0,4,160,3,12,37,11,32,0,253,0,4,176,3,12,36,11,32,0,253,0,4,192,3,12,35,11,32,0,253,0,4,208,3,12,34,11,32,0,253,0,4,224,3,12,33,11,32,0,253,0,4,240,3,12,32,11,32,0,253,0,4,128,4,12,31,11,32,0,253,0,4,144,4,12,30,11,32,0,253,0,4,160,4,12,29,11,32,0,253,0,4,176,4,12,28,11,32,0,253,0,4,192,4,12,27,11,32,0,253,0,4,208,4,12,26,11,32,0,253,0,4,224,4,12,25,11,32,0,253,0,4,240,4,12,24,11,32,0,253,0,4,128,5,12,23,11,32,0,253,0,4,144,5,12,22,11,32,0,253,0,4,160,5,12,21,11,32,0,253,0,4,176,5,12,20,11,32,0,253,0,4,192,5,12,19,11,32,0,253,0,4,208,5,12,18,11,32,0,253,0,4,224,5,12,17,11,32,0,253,0,4,240,5,12,16,11,32,0,253,0,4,128,6,12,15,11,32,0,253,0,4,144,6,12,14,11,32,0,253,0,4,160,6,12,13,11,32,0,253,0,4,176,6,12,12,11,32,0,253,0,4,192,6,12,11,11,32,0,253,0,4,208,6,12,10,11,32,0,253,0,4,224,6,12,9,11,32,0,253,0,4,240,6,12,8,11,32,0,253,0,4,128,7,12,7,11,32,0,253,0,4,144,7,12,6,11,32,0,253,0,4,160,7,12,5,11,32,0,253,0,4,176,7,12,4,11,32,0,253,0,4,192,7,12,3,11,32,0,253,0,4,208,7,12,2,11,32,0,253,0,4,224,7,12,1,11,32,0,253,0,4,240,7,11,253,174,1,2,123,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,35,18,65,15,107,34,4,14,64,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,68,11,32,0,253,0,4,0,12,63,11,32,0,253,0,4,16,12,62,11,32,0,253,0,4,32,12,61,11,32,0,253,0,4,48,12,60,11,32,0,253,0,4,64,12,59,11,32,0,253,0,4,80,12,58,11,32,0,253,0,4,96,12,57,11,32,0,253,0,4,112,12,56,11,32,0,253,0,4,128,1,12,55,11,32,0,253,0,4,144,1,12,54,11,32,0,253,0,4,160,1,12,53,11,32,0,253,0,4,176,1,12,52,11,32,0,253,0,4,192,1,12,51,11,32,0,253,0,4,208,1,12,50,11,32,0,253,0,4,224,1,12,49,11,32,0,253,0,4,240,1,12,48,11,32,0,253,0,4,128,2,12,47,11,32,0,253,0,4,144,2,12,46,11,32,0,253,0,4,160,2,12,45,11,32,0,253,0,4,176,2,12,44,11,32,0,253,0,4,192,2,12,43,11,32,0,253,0,4,208,2,12,42,11,32,0,253,0,4,224,2,12,41,11,32,0,253,0,4,240,2,12,40,11,32,0,253,0,4,128,3,12,39,11,32,0,253,0,4,144,3,12,38,11,32,0,253,0,4,160,3,12,37,11,32,0,253,0,4,176,3,12,36,11,32,0,253,0,4,192,3,12,35,11,32,0,253,0,4,208,3,12,34,11,32,0,253,0,4,224,3,12,33,11,32,0,253,0,4,240,3,12,32,11,32,0,253,0,4,128,4,12,31,11,32,0,253,0,4,144,4,12,30,11,32,0,253,0,4,160,4,12,29,11,32,0,253,0,4,176,4,12,28,11,32,0,253,0,4,192,4,12,27,11,32,0,253,0,4,208,4,12,26,11,32,0,253,0,4,224,4,12,25,11,32,0,253,0,4,240,4,12,24,11,32,0,253,0,4,128,5,12,23,11,32,0,253,0,4,144,5,12,22,11,32,0,253,0,4,160,5,12,21,11,32,0,253,0,4,176,5,12,20,11,32,0,253,0,4,192,5,12,19,11,32,0,253,0,4,208,5,12,18,11,32,0,253,0,4,224,5,12,17,11,32,0,253,0,4,240,5,12,16,11,32,0,253,0,4,128,6,12,15,11,32,0,253,0,4,144,6,12,14,11,32,0,253,0,4,160,6,12,13,11,32,0,253,0,4,176,6,12,12,11,32,0,253,0,4,192,6,12,11,11,32,0,253,0,4,208,6,12,10,11,32,0,253,0,4,224,6,12,9,11,32,0,253,0,4,240,6,12,8,11,32,0,253,0,4,128,7,12,7,11,32,0,253,0,4,144,7,12,6,11,32,0,253,0,4,160,7,12,5,11,32,0,253,0,4,176,7,12,4,11,32,0,253,0,4,192,7,12,3,11,32,0,253,0,4,208,7,12,2,11,32,0,253,0,4,224,7,12,1,11,32,0,253,0,4,240,7,11,34,2,65,7,253,173,1,32,2,65,25,253,171,1,253,80,32,2,65,18,253,173,1,32,2,65,14,253,171,1,253,80,253,81,32,2,65,3,253,173,1,253,81,253,174,1,2,123,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,35,18,65,16,107,34,4,14,64,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,68,11,32,0,253,0,4,0,12,63,11,32,0,253,0,4,16,12,62,11,32,0,253,0,4,32,12,61,11,32,0,253,0,4,48,12,60,11,32,0,253,0,4,64,12,59,11,32,0,253,0,4,80,12,58,11,32,0,253,0,4,96,12,57,11,32,0,253,0,4,112,12,56,11,32,0,253,0,4,128,1,12,55,11,32,0,253,0,4,144,1,12,54,11,32,0,253,0,4,160,1,12,53,11,32,0,253,0,4,176,1,12,52,11,32,0,253,0,4,192,1,12,51,11,32,0,253,0,4,208,1,12,50,11,32,0,253,0,4,224,1,12,49,11,32,0,253,0,4,240,1,12,48,11,32,0,253,0,4,128,2,12,47,11,32,0,253,0,4,144,2,12,46,11,32,0,253,0,4,160,2,12,45,11,32,0,253,0,4,176,2,12,44,11,32,0,253,0,4,192,2,12,43,11,32,0,253,0,4,208,2,12,42,11,32,0,253,0,4,224,2,12,41,11,32,0,253,0,4,240,2,12,40,11,32,0,253,0,4,128,3,12,39,11,32,0,253,0,4,144,3,12,38,11,32,0,253,0,4,160,3,12,37,11,32,0,253,0,4,176,3,12,36,11,32,0,253,0,4,192,3,12,35,11,32,0,253,0,4,208,3,12,34,11,32,0,253,0,4,224,3,12,33,11,32,0,253,0,4,240,3,12,32,11,32,0,253,0,4,128,4,12,31,11,32,0,253,0,4,144,4,12,30,11,32,0,253,0,4,160,4,12,29,11,32,0,253,0,4,176,4,12,28,11,32,0,253,0,4,192,4,12,27,11,32,0,253,0,4,208,4,12,26,11,32,0,253,0,4,224,4,12,25,11,32,0,253,0,4,240,4,12,24,11,32,0,253,0,4,128,5,12,23,11,32,0,253,0,4,144,5,12,22,11,32,0,253,0,4,160,5,12,21,11,32,0,253,0,4,176,5,12,20,11,32,0,253,0,4,192,5,12,19,11,32,0,253,0,4,208,5,12,18,11,32,0,253,0,4,224,5,12,17,11,32,0,253,0,4,240,5,12,16,11,32,0,253,0,4,128,6,12,15,11,32,0,253,0,4,144,6,12,14,11,32,0,253,0,4,160,6,12,13,11,32,0,253,0,4,176,6,12,12,11,32,0,253,0,4,192,6,12,11,11,32,0,253,0,4,208,6,12,10,11,32,0,253,0,4,224,6,12,9,11,32,0,253,0,4,240,6,12,8,11,32,0,253,0,4,128,7,12,7,11,32,0,253,0,4,144,7,12,6,11,32,0,253,0,4,160,7,12,5,11,32,0,253,0,4,176,7,12,4,11,32,0,253,0,4,192,7,12,3,11,32,0,253,0,4,208,7,12,2,11,32,0,253,0,4,224,7,12,1,11,32,0,253,0,4,240,7,11,253,174,1,11,36,19,35,18,65,16,78,4,64,35,19,33,2,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,35,18,34,4,14,64,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,11,32,0,32,2,253,11,4,0,12,64,11,32,0,32,2,253,11,4,16,12,63,11,32,0,32,2,253,11,4,32,12,62,11,32,0,32,2,253,11,4,48,12,61,11,32,0,32,2,253,11,4,64,12,60,11,32,0,32,2,253,11,4,80,12,59,11,32,0,32,2,253,11,4,96,12,58,11,32,0,32,2,253,11,4,112,12,57,11,32,0,32,2,253,11,4,128,1,12,56,11,32,0,32,2,253,11,4,144,1,12,55,11,32,0,32,2,253,11,4,160,1,12,54,11,32,0,32,2,253,11,4,176,1,12,53,11,32,0,32,2,253,11,4,192,1,12,52,11,32,0,32,2,253,11,4,208,1,12,51,11,32,0,32,2,253,11,4,224,1,12,50,11,32,0,32,2,253,11,4,240,1,12,49,11,32,0,32,2,253,11,4,128,2,12,48,11,32,0,32,2,253,11,4,144,2,12,47,11,32,0,32,2,253,11,4,160,2,12,46,11,32,0,32,2,253,11,4,176,2,12,45,11,32,0,32,2,253,11,4,192,2,12,44,11,32,0,32,2,253,11,4,208,2,12,43,11,32,0,32,2,253,11,4,224,2,12,42,11,32,0,32,2,253,11,4,240,2,12,41,11,32,0,32,2,253,11,4,128,3,12,40,11,32,0,32,2,253,11,4,144,3,12,39,11,32,0,32,2,253,11,4,160,3,12,38,11,32,0,32,2,253,11,4,176,3,12,37,11,32,0,32,2,253,11,4,192,3,12,36,11,32,0,32,2,253,11,4,208,3,12,35,11,32,0,32,2,253,11,4,224,3,12,34,11,32,0,32,2,253,11,4,240,3,12,33,11,32,0,32,2,253,11,4,128,4,12,32,11,32,0,32,2,253,11,4,144,4,12,31,11,32,0,32,2,253,11,4,160,4,12,30,11,32,0,32,2,253,11,4,176,4,12,29,11,32,0,32,2,253,11,4,192,4,12,28,11,32,0,32,2,253,11,4,208,4,12,27,11,32,0,32,2,253,11,4,224,4,12,26,11,32,0,32,2,253,11,4,240,4,12,25,11,32,0,32,2,253,11,4,128,5,12,24,11,32,0,32,2,253,11,4,144,5,12,23,11,32,0,32,2,253,11,4,160,5,12,22,11,32,0,32,2,253,11,4,176,5,12,21,11,32,0,32,2,253,11,4,192,5,12,20,11,32,0,32,2,253,11,4,208,5,12,19,11,32,0,32,2,253,11,4,224,5,12,18,11,32,0,32,2,253,11,4,240,5,12,17,11,32,0,32,2,253,11,4,128,6,12,16,11,32,0,32,2,253,11,4,144,6,12,15,11,32,0,32,2,253,11,4,160,6,12,14,11,32,0,32,2,253,11,4,176,6,12,13,11,32,0,32,2,253,11,4,192,6,12,12,11,32,0,32,2,253,11,4,208,6,12,11,11,32,0,32,2,253,11,4,224,6,12,10,11,32,0,32,2,253,11,4,240,6,12,9,11,32,0,32,2,253,11,4,128,7,12,8,11,32,0,32,2,253,11,4,144,7,12,7,11,32,0,32,2,253,11,4,160,7,12,6,11,32,0,32,2,253,11,4,176,7,12,5,11,32,0,32,2,253,11,4,192,7,12,4,11,32,0,32,2,253,11,4,208,7,12,3,11,32,0,32,2,253,11,4,224,7,12,2,11,32,0,32,2,253,11,4,240,7,12,1,11,65,192,19,32,4,16,13,16,15,65,192,20,65,201,1,65,7,16,0,0,11,11,35,15,35,12,34,2,65,6,253,173,1,32,2,65,26,253,171,1,253,80,32,2,65,11,253,173,1,32,2,65,21,253,171,1,253,80,253,81,32,2,65,25,253,173,1,32,2,65,7,253,171,1,253,80,253,81,253,174,1,35,12,34,2,35,13,253,78,32,2,253,77,35,14,253,78,253,81,253,174,1,33,3,35,24,33,4,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,2,64,35,18,34,5,14,64,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,11,32,4,253,0,4,0,33,2,12,64,11,32,4,253,0,4,16,33,2,12,63,11,32,4,253,0,4,32,33,2,12,62,11,32,4,253,0,4,48,33,2,12,61,11,32,4,253,0,4,64,33,2,12,60,11,32,4,253,0,4,80,33,2,12,59,11,32,4,253,0,4,96,33,2,12,58,11,32,4,253,0,4,112,33,2,12,57,11,32,4,253,0,4,128,1,33,2,12,56,11,32,4,253,0,4,144,1,33,2,12,55,11,32,4,253,0,4,160,1,33,2,12,54,11,32,4,253,0,4,176,1,33,2,12,53,11,32,4,253,0,4,192,1,33,2,12,52,11,32,4,253,0,4,208,1,33,2,12,51,11,32,4,253,0,4,224,1,33,2,12,50,11,32,4,253,0,4,240,1,33,2,12,49,11,32,4,253,0,4,128,2,33,2,12,48,11,32,4,253,0,4,144,2,33,2,12,47,11,32,4,253,0,4,160,2,33,2,12,46,11,32,4,253,0,4,176,2,33,2,12,45,11,32,4,253,0,4,192,2,33,2,12,44,11,32,4,253,0,4,208,2,33,2,12,43,11,32,4,253,0,4,224,2,33,2,12,42,11,32,4,253,0,4,240,2,33,2,12,41,11,32,4,253,0,4,128,3,33,2,12,40,11,32,4,253,0,4,144,3,33,2,12,39,11,32,4,253,0,4,160,3,33,2,12,38,11,32,4,253,0,4,176,3,33,2,12,37,11,32,4,253,0,4,192,3,33,2,12,36,11,32,4,253,0,4,208,3,33,2,12,35,11,32,4,253,0,4,224,3,33,2,12,34,11,32,4,253,0,4,240,3,33,2,12,33,11,32,4,253,0,4,128,4,33,2,12,32,11,32,4,253,0,4,144,4,33,2,12,31,11,32,4,253,0,4,160,4,33,2,12,30,11,32,4,253,0,4,176,4,33,2,12,29,11,32,4,253,0,4,192,4,33,2,12,28,11,32,4,253,0,4,208,4,33,2,12,27,11,32,4,253,0,4,224,4,33,2,12,26,11,32,4,253,0,4,240,4,33,2,12,25,11,32,4,253,0,4,128,5,33,2,12,24,11,32,4,253,0,4,144,5,33,2,12,23,11,32,4,253,0,4,160,5,33,2,12,22,11,32,4,253,0,4,176,5,33,2,12,21,11,32,4,253,0,4,192,5,33,2,12,20,11,32,4,253,0,4,208,5,33,2,12,19,11,32,4,253,0,4,224,5,33,2,12,18,11,32,4,253,0,4,240,5,33,2,12,17,11,32,4,253,0,4,128,6,33,2,12,16,11,32,4,253,0,4,144,6,33,2,12,15,11,32,4,253,0,4,160,6,33,2,12,14,11,32,4,253,0,4,176,6,33,2,12,13,11,32,4,253,0,4,192,6,33,2,12,12,11,32,4,253,0,4,208,6,33,2,12,11,11,32,4,253,0,4,224,6,33,2,12,10,11,32,4,253,0,4,240,6,33,2,12,9,11,32,4,253,0,4,128,7,33,2,12,8,11,32,4,253,0,4,144,7,33,2,12,7,11,32,4,253,0,4,160,7,33,2,12,6,11,32,4,253,0,4,176,7,33,2,12,5,11,32,4,253,0,4,192,7,33,2,12,4,11,32,4,253,0,4,208,7,33,2,12,3,11,32,4,253,0,4,224,7,33,2,12,2,11,32,4,253,0,4,240,7,33,2,12,1,11,65,128,21,32,5,16,13,16,15,65,192,20,65,213,2,65,7,16,0,0,11,32,3,32,2,253,174,1,35,19,253,174,1,36,16,35,8,34,2,65,2,253,173,1,32,2,65,30,253,171,1,253,80,32,2,65,13,253,173,1,32,2,65,19,253,171,1,253,80,253,81,32,2,65,22,253,173,1,32,2,65,10,253,171,1,253,80,253,81,35,8,34,2,35,9,34,3,253,78,32,2,35,10,34,2,253,78,253,81,32,3,32,2,253,78,253,81,253,174,1,36,17,35,14,36,15,35,13,36,14,35,12,36,13,35,11,35,16,253,174,1,36,12,35,10,36,11,35,9,36,10,35,8,36,9,35,16,35,17,253,174,1,36,8,35,18,65,1,106,36,18,12,1,11,11,35,0,35,8,253,174,1,36,0,35,1,35,9,253,174,1,36,1,35,2,35,10,253,174,1,36,2,35,3,35,11,253,174,1,36,3,35,4,35,12,253,174,1,36,4,35,5,35,13,253,174,1,36,5,35,6,35,14,253,174,1,36,6,35,7,35,15,253,174,1,36,7,16,17,32,1,35,0,253,27,0,16,18,54,2,0,32,1,35,1,253,27,0,16,18,54,2,4,32,1,35,2,253,27,0,16,18,54,2,8,32,1,35,3,253,27,0,16,18,54,2,12,32,1,35,4,253,27,0,16,18,54,2,16,32,1,35,5,253,27,0,16,18,54,2,20,32,1,35,6,253,27,0,16,18,54,2,24,32,1,35,7,253,27,0,16,18,54,2,28,32,1,35,0,253,27,1,16,18,54,2,32,32,1,35,1,253,27,1,16,18,54,2,36,32,1,35,2,253,27,1,16,18,54,2,40,32,1,35,3,253,27,1,16,18,54,2,44,32,1,35,4,253,27,1,16,18,54,2,48,32,1,35,5,253,27,1,16,18,54,2,52,32,1,35,6,253,27,1,16,18,54,2,56,32,1,35,7,253,27,1,16,18,54,2,60,32,1,65,64,107,35,0,253,27,2,16,18,54,2,0,32,1,35,1,253,27,2,16,18,54,2,68,32,1,35,2,253,27,2,16,18,54,2,72,32,1,35,3,253,27,2,16,18,54,2,76,32,1,35,4,253,27,2,16,18,54,2,80,32,1,35,5,253,27,2,16,18,54,2,84,32,1,35,6,253,27,2,16,18,54,2,88,32,1,35,7,253,27,2,16,18,54,2,92,32,1,35,0,253,27,3,16,18,54,2,96,32,1,35,1,253,27,3,16,18,54,2,100,32,1,35,2,253,27,3,16,18,54,2,104,32,1,35,3,253,27,3,16,18,54,2,108,32,1,35,4,253,27,3,16,18,54,2,112,32,1,35,5,253,27,3,16,18,54,2,116,32,1,35,6,253,27,3,16,18,54,2,120,32,1,35,7,253,27,3,16,18,54,2,124,15,11,65,128,21,32,4,16,13,16,15,65,192,20,65,213,2,65,7,16,0,0,11,203,2,1,5,127,3,64,32,1,65,16,72,4,64,32,1,65,2,116,34,2,65,1,106,33,3,35,53,32,2,65,2,116,106,32,2,65,3,106,34,4,35,55,34,5,106,45,0,0,32,2,32,5,106,45,0,0,65,24,116,32,3,32,5,106,45,0,0,65,16,116,114,32,2,65,2,106,34,2,32,5,106,45,0,0,65,8,116,114,114,54,2,0,35,53,32,3,65,2,116,106,35,55,34,3,32,1,65,16,106,65,2,116,34,5,65,3,106,106,45,0,0,32,3,32,5,106,45,0,0,65,24,116,32,5,65,1,106,32,3,106,45,0,0,65,16,116,114,32,5,65,2,106,32,3,106,45,0,0,65,8,116,114,114,54,2,0,35,53,32,2,65,2,116,106,35,55,34,2,32,1,65,32,106,65,2,116,34,3,65,3,106,106,45,0,0,32,2,32,3,106,45,0,0,65,24,116,32,3,65,1,106,32,2,106,45,0,0,65,16,116,114,32,3,65,2,106,32,2,106,45,0,0,65,8,116,114,114,54,2,0,35,53,32,4,65,2,116,106,35,55,34,2,32,1,65,48,106,65,2,116,34,3,65,3,106,106,45,0,0,32,2,32,3,106,45,0,0,65,24,116,32,3,65,1,106,32,2,106,45,0,0,65,16,116,114,32,3,65,2,106,32,2,106,45,0,0,65,8,116,114,114,54,2,0,32,1,65,1,106,33,1,12,1,11,11,35,53,32,0,16,19,11,99,1,3,127,3,64,32,2,65,192,0,72,4,64,32,2,65,2,116,34,1,35,53,106,35,55,34,3,32,1,65,3,106,106,45,0,0,32,1,32,3,106,45,0,0,65,24,116,32,1,65,1,106,32,3,106,45,0,0,65,16,116,114,32,1,65,2,106,32,3,106,45,0,0,65,8,116,114,114,54,2,0,32,2,65,1,106,33,2,12,1,11,11,35,53,32,0,16,19,11,74,0,65,231,204,167,208,6,36,31,65,133,221,158,219,123,36,32,65,242,230,187,227,3,36,33,65,186,234,191,170,122,36,34,65,255,164,185,136,5,36,35,65,140,209,149,216,121,36,36,65,171,179,143,252,1,36,37,65,153,154,131,223,5,36,38,65,0,36,58,65,0,36,59,11,227,3,1,2,127,35,31,36,39,35,32,36,40,35,33,36,41,35,34,36,42,35,35,36,43,35,36,36,44,35,37,36,45,35,38,36,46,65,0,36,47,3,64,35,47,65,16,73,4,64,35,47,65,2,116,34,2,32,0,106,32,1,32,2,65,3,106,106,45,0,0,32,1,32,2,106,45,0,0,65,24,116,32,1,32,2,65,1,106,106,45,0,0,65,16,116,114,32,1,32,2,65,2,106,106,45,0,0,65,8,116,114,114,54,2,0,35,47,65,1,106,36,47,12,1,11,11,65,16,36,47,3,64,35,47,65,192,0,73,4,64,32,0,35,47,65,2,116,106,32,0,35,47,65,16,107,65,2,116,106,40,2,0,32,0,35,47,65,7,107,65,2,116,106,40,2,0,32,0,35,47,65,2,107,65,2,116,106,40,2,0,34,1,65,17,120,32,1,65,19,120,115,32,1,65,10,118,115,106,32,0,35,47,65,15,107,65,2,116,106,40,2,0,34,1,65,7,120,32,1,65,18,120,115,32,1,65,3,118,115,106,106,54,2,0,35,47,65,1,106,36,47,12,1,11,11,65,0,36,47,3,64,35,47,65,192,0,73,4,64,35,47,65,2,116,34,1,32,0,106,40,2,0,32,1,35,29,106,40,2,0,35,46,35,43,34,1,65,6,120,32,1,65,11,120,115,32,1,65,25,120,115,106,35,43,34,1,35,44,113,35,45,32,1,65,127,115,113,115,106,106,106,36,48,35,39,34,1,65,2,120,32,1,65,13,120,115,32,1,65,22,120,115,35,40,34,2,35,41,34,3,113,35,39,34,1,32,2,113,32,1,32,3,113,115,115,106,36,49,35,45,36,46,35,44,36,45,35,43,36,44,35,42,35,48,106,36,43,35,41,36,42,35,40,36,41,35,39,36,40,35,48,35,49,106,36,39,35,47,65,1,106,36,47,12,1,11,11,35,31,35,39,106,36,31,35,32,35,40,106,36,32,35,33,35,41,106,36,33,35,34,35,42,106,36,34,35,35,35,43,106,36,35,35,36,35,44,106,36,36,35,37,35,45,106,36,37,35,38,35,46,106,36,38,11,174,1,1,2,127,35,59,32,1,106,36,59,35,58,4,64,65,192,0,35,58,107,34,2,32,1,76,4,64,35,51,35,58,106,32,0,32,2,252,10,0,0,35,58,32,2,106,36,58,65,192,0,35,58,107,33,2,32,1,65,192,0,35,58,107,107,33,1,35,53,35,51,16,23,65,0,36,58,5,35,51,35,58,106,32,0,32,1,252,10,0,0,35,58,32,1,106,36,58,15,11,11,3,64,32,3,32,1,65,192,0,109,72,4,64,35,53,32,0,32,2,106,16,23,32,3,65,1,106,33,3,32,2,65,64,107,33,2,12,1,11,11,32,1,65,63,113,34,1,4,64,35,51,35,58,106,32,0,32,2,106,32,1,252,10,0,0,35,58,32,1,106,36,58,11,11,146,2,1,2,127,35,59,65,63,113,65,63,73,4,64,35,51,35,58,106,65,128,1,58,0,0,35,58,65,1,106,36,58,11,35,59,65,63,113,65,56,79,4,64,35,51,35,58,106,34,1,65,192,0,35,58,107,106,33,2,3,64,32,1,32,2,73,4,64,32,1,65,0,58,0,0,32,1,65,1,106,33,1,12,1,11,11,35,53,35,51,16,23,65,0,36,58,11,35,59,65,63,113,65,63,79,4,64,35,51,35,58,106,65,128,1,58,0,0,35,58,65,1,106,36,58,11,35,51,35,58,106,34,1,65,56,35,58,107,106,33,2,3,64,32,1,32,2,73,4,64,32,1,65,0,58,0,0,32,1,65,1,106,33,1,12,1,11,11,35,51,35,59,65,128,128,128,128,2,109,16,18,54,2,56,35,51,35,59,65,3,116,16,18,54,2,60,35,53,35,51,16,23,32,0,35,31,16,18,54,2,0,32,0,35,32,16,18,54,2,4,32,0,35,33,16,18,54,2,8,32,0,35,34,16,18,54,2,12,32,0,35,35,16,18,54,2,16,32,0,35,36,16,18,54,2,20,32,0,35,37,16,18,54,2,24,32,0,35,38,16,18,54,2,28,11,14,0,16,22,35,55,32,0,16,24,35,57,16,25,11,253,1,1,2,127,35,31,36,39,35,32,36,40,35,33,36,41,35,34,36,42,35,35,36,43,35,36,36,44,35,37,36,45,35,38,36,46,65,0,36,47,3,64,35,47,65,192,0,73,4,64,32,0,35,47,65,2,116,106,40,2,0,35,46,35,43,34,1,65,6,120,32,1,65,11,120,115,32,1,65,25,120,115,106,35,43,34,1,35,44,113,35,45,32,1,65,127,115,113,115,106,106,36,48,35,39,34,1,65,2,120,32,1,65,13,120,115,32,1,65,22,120,115,35,40,34,2,35,41,34,1,113,32,2,35,39,34,2,113,32,1,32,2,113,115,115,106,36,49,35,45,36,46,35,44,36,45,35,43,36,44,35,42,35,48,106,36,43,35,41,36,42,35,40,36,41,35,39,36,40,35,48,35,49,106,36,39,35,47,65,1,106,36,47,12,1,11,11,35,31,35,39,106,36,31,35,32,35,40,106,36,32,35,33,35,41,106,36,33,35,34,35,42,106,36,34,35,35,35,43,106,36,35,35,36,35,44,106,36,36,35,37,35,45,106,36,37,35,38,35,46,106,36,38,11,86,0,16,22,35,53,32,0,16,23,35,30,16,27,32,1,35,31,16,18,54,2,0,32,1,35,32,16,18,54,2,4,32,1,35,33,16,18,54,2,8,32,1,35,34,16,18,54,2,12,32,1,35,35,16,18,54,2,16,32,1,35,36,16,18,54,2,20,32,1,35,37,16,18,54,2,24,32,1,35,38,16,18,54,2,28,11,63,0,16,16,65,196,10,40,2,0,36,29,65,148,13,40,2,0,36,30,65,192,0,16,11,36,50,35,50,36,51,65,128,8,16,11,36,52,35,52,36,53,65,128,4,16,11,36,54,35,54,36,55,65,32,16,11,36,56,35,56,36,57,11,11,141,12,38,0,65,140,8,11,2,28,1,0,65,152,8,11,136,2,1,0,0,0,0,1,0,0,152,47,138,66,145,68,55,113,207,251,192,181,165,219,181,233,91,194,86,57,241,17,241,89,164,130,63,146,213,94,28,171,152,170,7,216,1,91,131,18,190,133,49,36,195,125,12,85,116,93,190,114,254,177,222,128,167,6,220,155,116,241,155,193,193,105,155,228,134,71,190,239,198,157,193,15,204,161,12,36,111,44,233,45,170,132,116,74,220,169,176,92,218,136,249,118,82,81,62,152,109,198,49,168,200,39,3,176,199,127,89,191,243,11,224,198,71,145,167,213,81,99,202,6,103,41,41,20,133,10,183,39,56,33,27,46,252,109,44,77,19,13,56,83,84,115,10,101,187,10,106,118,46,201,194,129,133,44,114,146,161,232,191,162,75,102,26,168,112,139,75,194,163,81,108,199,25,232,146,209,36,6,153,214,133,53,14,244,112,160,106,16,22,193,164,25,8,108,55,30,76,119,72,39,181,188,176,52,179,12,28,57,74,170,216,78,79,202,156,91,243,111,46,104,238,130,143,116,111,99,165,120,20,120,200,132,8,2,199,140,250,255,190,144,235,108,80,164,247,163,249,190,242,120,113,198,0,65,172,10,11,1,44,0,65,184,10,11,21,4,0,0,0,16,0,0,0,32,4,0,0,32,4,0,0,0,1,0,0,64,0,65,220,10,11,2,28,1,0,65,232,10,11,136,2,1,0,0,0,0,1,0,0,152,47,138,194,145,68,55,113,207,251,192,181,165,219,181,233,91,194,86,57,241,17,241,89,164,130,63,146,213,94,28,171,152,170,7,216,1,91,131,18,190,133,49,36,195,125,12,85,116,93,190,114,254,177,222,128,167,6,220,155,116,243,155,193,193,105,155,100,134,71,254,240,198,237,225,15,84,242,12,36,111,52,233,79,190,132,201,108,30,65,185,97,250,136,249,22,82,81,198,242,109,90,142,168,101,252,25,176,199,158,217,185,195,49,18,154,160,234,14,231,43,35,177,253,176,62,53,199,213,186,105,48,95,109,151,203,143,17,15,90,253,238,30,220,137,182,53,10,4,122,11,222,157,202,244,88,22,91,93,225,134,62,127,0,128,137,8,55,50,234,7,165,55,149,171,111,16,97,64,23,241,214,140,13,109,59,170,205,55,190,187,192,218,59,97,131,99,163,72,219,49,233,2,11,167,92,209,111,202,250,26,82,49,132,51,49,149,26,212,110,144,120,67,109,242,145,156,195,189,171,204,158,230,160,201,181,60,182,47,83,198,65,199,210,163,126,35,7,104,75,149,164,118,29,25,76,0,65,252,12,11,1,44,0,65,136,13,11,21,4,0,0,0,16,0,0,0,112,5,0,0,112,5,0,0,0,1,0,0,64,0,65,172,13,11,1,44,0,65,184,13,11,35,2,0,0,0,28,0,0,0,73,0,110,0,118,0,97,0,108,0,105,0,100,0,32,0,108,0,101,0,110,0,103,0,116,0,104,0,65,220,13,11,1,60,0,65,232,13,11,45,2,0,0,0,38,0,0,0,126,0,108,0,105,0,98,0,47,0,97,0,114,0,114,0,97,0,121,0,98,0,117,0,102,0,102,0,101,0,114,0,46,0,116,0,115,0,65,156,14,11,1,60,0,65,168,14,11,47,2,0,0,0,40,0,0,0,65,0,108,0,108,0,111,0,99,0,97,0,116,0,105,0,111,0,110,0,32,0,116,0,111,0,111,0,32,0,108,0,97,0,114,0,103,0,101,0,65,220,14,11,1,60,0,65,232,14,11,37,2,0,0,0,30,0,0,0,126,0,108,0,105,0,98,0,47,0,114,0,116,0,47,0,116,0,99,0,109,0,115,0,46,0,116,0,115,0,65,156,15,11,1,60,0,65,168,15,11,37,2,0,0,0,30,0,0,0,126,0,108,0,105,0,98,0,47,0,114,0,116,0,47,0,116,0,108,0,115,0,102,0,46,0,116,0,115,0,65,252,15,11,1,60,0,65,136,16,11,43,2,0,0,0,36,0,0,0,73,0,110,0,100,0,101,0,120,0,32,0,111,0,117,0,116,0,32,0,111,0,102,0,32,0,114,0,97,0,110,0,103,0,101,0,65,188,16,11,1,44,0,65,200,16,11,33,2,0,0,0,26,0,0,0,126,0,108,0,105,0,98,0,47,0,97,0,114,0,114,0,97,0,121,0,46,0,116,0,115,0,65,236,16,11,1,124,0,65,248,16,11,107,2,0,0,0,100,0,0,0,116,0,111,0,83,0,116,0,114,0,105,0,110,0,103,0,40,0,41,0,32,0,114,0,97,0,100,0,105,0,120,0,32,0,97,0,114,0,103,0,117,0,109,0,101,0,110,0,116,0,32,0,109,0,117,0,115,0,116,0,32,0,98,0,101,0,32,0,98,0,101,0,116,0,119,0,101,0,101,0,110,0,32,0,50,0,32,0,97,0,110,0,100,0,32,0,51,0,54,0,65,236,17,11,1,60,0,65,248,17,11,45,2,0,0,0,38,0,0,0,126,0,108,0,105,0,98,0,47,0,117,0,116,0,105,0,108,0,47,0,110,0,117,0,109,0,98,0,101,0,114,0,46,0,116,0,115,0,65,172,18,11,1,28,0,65,184,18,11,9,2,0,0,0,2,0,0,0,48,0,65,204,18,11,1,92,0,65,216,18,11,79,2,0,0,0,72,0,0,0,48,0,49,0,50,0,51,0,52,0,53,0,54,0,55,0,56,0,57,0,97,0,98,0,99,0,100,0,101,0,102,0,103,0,104,0,105,0,106,0,107,0,108,0,109,0,110,0,111,0,112,0,113,0,114,0,115,0,116,0,117,0,118,0,119,0,120,0,121,0,122,0,65,172,19,11,1,92,0,65,184,19,11,79,2,0,0,0,72,0,0,0,115,0,101,0,116,0,86,0,49,0,50,0,56,0,58,0,32,0,101,0,120,0,112,0,101,0,99,0,116,0,32,0,105,0,32,0,102,0,114,0,111,0,109,0,32,0,48,0,32,0,116,0,111,0,32,0,54,0,51,0,44,0,32,0,103,0,111,0,116,0,32,0,65,140,20,11,1,28,0,65,152,20,11,1,2,0,65,172,20,11,1,60,0,65,184,20,11,51,2,0,0,0,44,0,0,0,97,0,115,0,115,0,101,0,109,0,98,0,108,0,121,0,47,0,117,0,116,0,105,0,108,0,115,0,47,0,118,0,49,0,50,0,56,0,46,0,116,0,115,0,65,236,20,11,1,92,0,65,248,20,11,79,2,0,0,0,72,0,0,0,103,0,101,0,116,0,86,0,49,0,50,0,56,0,58,0,32,0,101,0,120,0,112,0,101,0,99,0,116,0,32,0,105,0,32,0,102,0,114,0,111,0,109,0,32,0,48,0,32,0,116,0,111,0,32,0,54,0,51,0,44,0,32,0,103,0,111,0,116,0,32]),Ca={env:{abort:function(A,g,I,B){throw Error(`abort: ${A}:${g}:${I}:${B}`)}}};function Kw(A){return WebAssembly.validate(ea)?new WebAssembly.Instance(new WebAssembly.Module(ea),Ca).exports:new WebAssembly.Instance(new WebAssembly.Module(qw),Ca).exports}function Yw(A,g,I){let B=A.h0;g[0+I]=B&255,B=B>>8,g[1+I]=B&255,B=B>>8,g[2+I]=B&255,B=B>>8,g[3+I]=B&255,B=A.h1,g[4+I]=B&255,B=B>>8,g[5+I]=B&255,B=B>>8,g[6+I]=B&255,B=B>>8,g[7+I]=B&255,B=A.h2,g[8+I]=B&255,B=B>>8,g[9+I]=B&255,B=B>>8,g[10+I]=B&255,B=B>>8,g[11+I]=B&255,B=A.h3,g[12+I]=B&255,B=B>>8,g[13+I]=B&255,B=B>>8,g[14+I]=B&255,B=B>>8,g[15+I]=B&255,B=A.h4,g[16+I]=B&255,B=B>>8,g[17+I]=B&255,B=B>>8,g[18+I]=B&255,B=B>>8,g[19+I]=B&255,B=A.h5,g[20+I]=B&255,B=B>>8,g[21+I]=B&255,B=B>>8,g[22+I]=B&255,B=B>>8,g[23+I]=B&255,B=A.h6,g[24+I]=B&255,B=B>>8,g[25+I]=B&255,B=B>>8,g[26+I]=B&255,B=B>>8,g[27+I]=B&255,B=A.h7,g[28+I]=B&255,B=B>>8,g[29+I]=B&255,B=B>>8,g[30+I]=B&255,B=B>>8,g[31+I]=B&255}function bw(A,g){const I={h0:0,h1:0,h2:0,h3:0,h4:0,h5:0,h6:0,h7:0};return sQ(A,g,I),I}function sQ(A,g,I){let B=0;B|=A[3+g]&255,B=B<<8,B|=A[2+g]&255,B=B<<8,B|=A[1+g]&255,B=B<<8,B|=A[0+g]&255,I.h0=B,B=0,B|=A[7+g]&255,B=B<<8,B|=A[6+g]&255,B=B<<8,B|=A[5+g]&255,B=B<<8,B|=A[4+g]&255,I.h1=B,B=0,B|=A[11+g]&255,B=B<<8,B|=A[10+g]&255,B=B<<8,B|=A[9+g]&255,B=B<<8,B|=A[8+g]&255,I.h2=B,B=0,B|=A[15+g]&255,B=B<<8,B|=A[14+g]&255,B=B<<8,B|=A[13+g]&255,B=B<<8,B|=A[12+g]&255,I.h3=B,B=0,B|=A[19+g]&255,B=B<<8,B|=A[18+g]&255,B=B<<8,B|=A[17+g]&255,B=B<<8,B|=A[16+g]&255,I.h4=B,B=0,B|=A[23+g]&255,B=B<<8,B|=A[22+g]&255,B=B<<8,B|=A[21+g]&255,B=B<<8,B|=A[20+g]&255,I.h5=B,B=0,B|=A[27+g]&255,B=B<<8,B|=A[26+g]&255,B=B<<8,B|=A[25+g]&255,B=B<<8,B|=A[24+g]&255,I.h6=B,B=0,B|=A[31+g]&255,B=B<<8,B|=A[30+g]&255,B=B<<8,B|=A[29+g]&255,B=B<<8,B|=A[28+g]&255,I.h7=B}let Kg,rt,at,ta,ig;function Tw(A){Kg=Kw(),Kg.HAS_SIMD.valueOf(),rt=Kg.input.value,at=Kg.output.value,new Uint8Array(Kg.memory.buffer,rt,Kg.INPUT_LENGTH),ta=new Uint8Array(Kg.memory.buffer,at,Kg.PARALLEL_FACTOR*32),new Uint8Array(Kg.memory.buffer,at,32),ig=new Uint32Array(Kg.memory.buffer,rt,Kg.INPUT_LENGTH)}Tw();function vw(A,g){const I={h0:0,h1:0,h2:0,h3:0,h4:0,h5:0,h6:0,h7:0};return _w(A,g,I),I}function _w(A,g,I){ig[0]=A.h0,ig[1]=A.h1,ig[2]=A.h2,ig[3]=A.h3,ig[4]=A.h4,ig[5]=A.h5,ig[6]=A.h6,ig[7]=A.h7,ig[8]=g.h0,ig[9]=g.h1,ig[10]=g.h2,ig[11]=g.h3,ig[12]=g.h4,ig[13]=g.h5,ig[14]=g.h6,ig[15]=g.h7,Kg.digest64(rt,at),sQ(ta,0,I)}const DB={PRESET_BASE:dg.mainnet,CONFIG_NAME:"mainnet",TERMINAL_TOTAL_DIFFICULTY:BigInt("58750000000000000000000"),TERMINAL_BLOCK_HASH:iA("0x0000000000000000000000000000000000000000000000000000000000000000"),TERMINAL_BLOCK_HASH_ACTIVATION_EPOCH:1/0,MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:16384,MIN_GENESIS_TIME:1606824e3,GENESIS_FORK_VERSION:iA("0x00000000"),GENESIS_DELAY:604800,ALTAIR_FORK_VERSION:iA("0x01000000"),ALTAIR_FORK_EPOCH:74240,BELLATRIX_FORK_VERSION:iA("0x02000000"),BELLATRIX_FORK_EPOCH:144896,CAPELLA_FORK_VERSION:iA("0x03000000"),CAPELLA_FORK_EPOCH:194048,DENEB_FORK_VERSION:iA("0x04000000"),DENEB_FORK_EPOCH:269568,ELECTRA_FORK_VERSION:iA("0x05000000"),ELECTRA_FORK_EPOCH:1/0,SECONDS_PER_SLOT:12,SECONDS_PER_ETH1_BLOCK:14,MIN_VALIDATOR_WITHDRAWABILITY_DELAY:256,SHARD_COMMITTEE_PERIOD:256,ETH1_FOLLOW_DISTANCE:2048,INACTIVITY_SCORE_BIAS:4,INACTIVITY_SCORE_RECOVERY_RATE:16,EJECTION_BALANCE:16e9,MIN_PER_EPOCH_CHURN_LIMIT:4,MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT:8,CHURN_LIMIT_QUOTIENT:65536,PROPOSER_SCORE_BOOST:40,REORG_HEAD_WEIGHT_THRESHOLD:20,REORG_PARENT_WEIGHT_THRESHOLD:160,REORG_MAX_EPOCHS_SINCE_FINALIZATION:2,DEPOSIT_CHAIN_ID:1,DEPOSIT_NETWORK_ID:1,DEPOSIT_CONTRACT_ADDRESS:iA("0x00000000219ab540356cBB839Cbe05303d7705Fa"),MIN_EPOCHS_FOR_BLOCK_REQUESTS:33024,MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS:4096,BLOB_SIDECAR_SUBNET_COUNT:6,MAX_BLOBS_PER_BLOCK:6,MAX_REQUEST_BLOB_SIDECARS:768,MAX_PER_EPOCH_ACTIVATION_EXIT_CHURN_LIMIT:256e9,MIN_PER_EPOCH_CHURN_LIMIT_ELECTRA:128e9,BLOB_SIDECAR_SUBNET_COUNT_ELECTRA:9,MAX_BLOBS_PER_BLOCK_ELECTRA:9,MAX_REQUEST_BLOB_SIDECARS_ELECTRA:1152},Ow={PRESET_BASE:dg.minimal,CONFIG_NAME:"minimal",TERMINAL_TOTAL_DIFFICULTY:BigInt("115792089237316195423570985008687907853269984665640564039457584007913129638912"),TERMINAL_BLOCK_HASH:iA("0x0000000000000000000000000000000000000000000000000000000000000000"),TERMINAL_BLOCK_HASH_ACTIVATION_EPOCH:1/0,MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:64,MIN_GENESIS_TIME:1578009600,GENESIS_FORK_VERSION:iA("0x00000001"),GENESIS_DELAY:300,ALTAIR_FORK_VERSION:iA("0x01000001"),ALTAIR_FORK_EPOCH:74240,BELLATRIX_FORK_VERSION:iA("0x02000001"),BELLATRIX_FORK_EPOCH:1/0,CAPELLA_FORK_VERSION:iA("0x03000001"),CAPELLA_FORK_EPOCH:1/0,DENEB_FORK_VERSION:iA("0x04000001"),DENEB_FORK_EPOCH:1/0,ELECTRA_FORK_VERSION:iA("0x05000001"),ELECTRA_FORK_EPOCH:1/0,SECONDS_PER_SLOT:6,SECONDS_PER_ETH1_BLOCK:14,MIN_VALIDATOR_WITHDRAWABILITY_DELAY:256,SHARD_COMMITTEE_PERIOD:64,ETH1_FOLLOW_DISTANCE:16,INACTIVITY_SCORE_BIAS:4,INACTIVITY_SCORE_RECOVERY_RATE:16,EJECTION_BALANCE:16e9,MIN_PER_EPOCH_CHURN_LIMIT:2,MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT:4,CHURN_LIMIT_QUOTIENT:32,PROPOSER_SCORE_BOOST:40,REORG_HEAD_WEIGHT_THRESHOLD:20,REORG_PARENT_WEIGHT_THRESHOLD:160,REORG_MAX_EPOCHS_SINCE_FINALIZATION:2,DEPOSIT_CHAIN_ID:5,DEPOSIT_NETWORK_ID:5,DEPOSIT_CONTRACT_ADDRESS:iA("0x1234567890123456789012345678901234567890"),MIN_EPOCHS_FOR_BLOCK_REQUESTS:272,MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS:4096,BLOB_SIDECAR_SUBNET_COUNT:6,MAX_BLOBS_PER_BLOCK:6,MAX_REQUEST_BLOB_SIDECARS:768,MAX_PER_EPOCH_ACTIVATION_EXIT_CHURN_LIMIT:128e9,MIN_PER_EPOCH_CHURN_LIMIT_ELECTRA:64e9,BLOB_SIDECAR_SUBNET_COUNT_ELECTRA:9,MAX_BLOBS_PER_BLOCK_ELECTRA:9,MAX_REQUEST_BLOB_SIDECARS_ELECTRA:1152};let st;switch($C){case dg.minimal:st=Ow;break;case dg.mainnet:st=DB;break;default:st=DB}function Zw(A){const g={...st,...A};if(g.PRESET_BASE!==$C)throw new Error(`Can only create a config for the active preset: ACTIVE_PRESET=${$C} PRESET_BASE=${g.PRESET_BASE}`);return g}function vI(A,g){const I=BigInt(1)<<BigInt(A);if(g>=I)throw new Error(`index ${g} too large for depth ${A}`);return I|g}function cQ(A,g){const I=g?Number(g).toString(2):"";if(I.length>A)throw new Error("index too large for depth");return"1"+I.padStart(A,"0")}function lQ(A){if(typeof A=="string"){if(A.length===0)throw new Error(ct);return A}else{if(A<1)throw new Error(ct);return A.toString(2)}}const ct="Invalid gindex";function jw(A){let g;if(typeof A=="string"){if(!A.length)throw new Error(ct);g=A}else{if(A<1)throw new Error(ct);g=A.toString(2)}let I=1;const B=()=>{if(I===g.length)return{done:!0,value:void 0};const C=Number(g[I]);return I++,{done:!1,value:C}};return{[Symbol.iterator](){return{next:B}},remainingBitLength(){return g.length-I}}}function dI(A){return BigInt(A.reduce((g,I)=>g+I.toString(2).slice(1),"0b1"))}function tC(A){if(!Number.isSafeInteger(A)||A<0)throw new Error(`Wrong positive integer: ${A}`)}function Pw(A){if(typeof A!="boolean")throw new Error(`Expected boolean, not ${A}`)}function zw(A){return A instanceof Uint8Array||A!=null&&typeof A=="object"&&A.constructor.name==="Uint8Array"}function hQ(A,...g){if(!zw(A))throw new Error("Expected Uint8Array");if(g.length>0&&!g.includes(A.length))throw new Error(`Expected Uint8Array of length ${g}, not of length=${A.length}`)}function xw(A){if(typeof A!="function"||typeof A.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");tC(A.outputLen),tC(A.blockLen)}function iC(A,g=!0){if(A.destroyed)throw new Error("Hash instance has been destroyed");if(g&&A.finished)throw new Error("Hash#digest() has already been called")}function SQ(A,g){hQ(A);const I=g.outputLen;if(A.length<I)throw new Error(`digestInto() expects output buffer of length at least ${I}`)}const Ww={number:tC,bool:Pw,bytes:hQ,hash:xw,exists:iC,output:SQ},Vw=A=>new Uint32Array(A.buffer,A.byteOffset,Math.floor(A.byteLength/4));function Xw(A){return A instanceof Uint8Array||A!=null&&typeof A=="object"&&A.constructor.name==="Uint8Array"}const wQ=A=>new DataView(A.buffer,A.byteOffset,A.byteLength),aI=(A,g)=>A<<32-g|A>>>g;if(!(new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68))throw new Error("Non little-endian hardware is not supported");function $w(A){if(typeof A!="string")throw new Error(`utf8ToBytes expected string, got ${typeof A}`);return new Uint8Array(new TextEncoder().encode(A))}function DQ(A){if(typeof A=="string"&&(A=$w(A)),!Xw(A))throw new Error(`expected Uint8Array, got ${typeof A}`);return A}class ia{clone(){return this._cloneInto()}}function Qa(A){const g=B=>A().update(DQ(B)).digest(),I=A();return g.outputLen=I.outputLen,g.blockLen=I.blockLen,g.create=()=>A(),g}function AD(A,g,I,B){if(typeof A.setBigUint64=="function")return A.setBigUint64(g,I,B);const C=BigInt(32),e=BigInt(4294967295),i=Number(I>>C&e),t=Number(I&e),E=B?4:0,c=B?0:4;A.setUint32(g+E,i,B),A.setUint32(g+c,t,B)}class gD extends ia{constructor(g,I,B,C){super(),this.blockLen=g,this.outputLen=I,this.padOffset=B,this.isLE=C,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(g),this.view=wQ(this.buffer)}update(g){iC(this);const{view:I,buffer:B,blockLen:C}=this;g=DQ(g);const e=g.length;for(let i=0;i<e;){const t=Math.min(C-this.pos,e-i);if(t===C){const E=wQ(g);for(;C<=e-i;i+=C)this.process(E,i);continue}B.set(g.subarray(i,i+t),this.pos),this.pos+=t,i+=t,this.pos===C&&(this.process(I,0),this.pos=0)}return this.length+=g.length,this.roundClean(),this}digestInto(g){iC(this),SQ(g,this),this.finished=!0;const{buffer:I,view:B,blockLen:C,isLE:e}=this;let{pos:i}=this;I[i++]=128,this.buffer.subarray(i).fill(0),this.padOffset>C-i&&(this.process(B,0),i=0);for(let l=i;l<C;l++)I[l]=0;AD(B,C-8,BigInt(this.length*8),e),this.process(B,0);const t=wQ(g),E=this.outputLen;if(E%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const c=E/4,a=this.get();if(c>a.length)throw new Error("_sha2: outputLen bigger than state");for(let l=0;l<c;l++)t.setUint32(4*l,a[l],e)}digest(){const{buffer:g,outputLen:I}=this;this.digestInto(g);const B=g.slice(0,I);return this.destroy(),B}_cloneInto(g){g||(g=new this.constructor),g.set(...this.get());const{blockLen:I,buffer:B,length:C,finished:e,destroyed:i,pos:t}=this;return g.length=C,g.pos=t,g.finished=e,g.destroyed=i,C%I&&g.buffer.set(B),g}}const ID=(A,g,I)=>A&g^~A&I,BD=(A,g,I)=>A&g^A&I^g&I,eD=new Uint32Array([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]),_I=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),OI=new Uint32Array(64);class CD extends gD{constructor(){super(64,32,8,!1),this.A=_I[0]|0,this.B=_I[1]|0,this.C=_I[2]|0,this.D=_I[3]|0,this.E=_I[4]|0,this.F=_I[5]|0,this.G=_I[6]|0,this.H=_I[7]|0}get(){const{A:g,B:I,C:B,D:C,E:e,F:i,G:t,H:E}=this;return[g,I,B,C,e,i,t,E]}set(g,I,B,C,e,i,t,E){this.A=g|0,this.B=I|0,this.C=B|0,this.D=C|0,this.E=e|0,this.F=i|0,this.G=t|0,this.H=E|0}process(g,I){for(let l=0;l<16;l++,I+=4)OI[l]=g.getUint32(I,!1);for(let l=16;l<64;l++){const w=OI[l-15],S=OI[l-2],u=aI(w,7)^aI(w,18)^w>>>3,m=aI(S,17)^aI(S,19)^S>>>10;OI[l]=m+OI[l-7]+u+OI[l-16]|0}let{A:B,B:C,C:e,D:i,E:t,F:E,G:c,H:a}=this;for(let l=0;l<64;l++){const w=aI(t,6)^aI(t,11)^aI(t,25),S=a+w+ID(t,E,c)+eD[l]+OI[l]|0,u=(aI(B,2)^aI(B,13)^aI(B,22))+BD(B,C,e)|0;a=c,c=E,E=t,t=i+S|0,i=e,e=C,C=B,B=S+u|0}B=B+this.A|0,C=C+this.B|0,e=e+this.C|0,i=i+this.D|0,t=t+this.E|0,E=E+this.F|0,c=c+this.G|0,a=a+this.H|0,this.set(B,C,e,i,t,E,c,a)}roundClean(){OI.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Ea=Qa(()=>new CD),ie=[new Uint8Array(32)];function ZI(A){if(A>=ie.length)for(let g=ie.length;g<=A;g++)ie[g]=Ea.create().update(ie[g-1]).update(ie[g-1]).digest();return ie[A]}function QC(A){const g=new Uint8Array(32);return Yw(A,g,0),g}function tD(A){return bw(A,0)}const rg=64;function iD(A,g,I,B,C){if(g<1)throw new Error(`Invalid padFor, expect to be greater than 0, got ${g}`);const e=Math.ceil(Math.log2(g));if(A.length===0){I.set(ZI(e),B);return}if(A.length%32!==0)throw new Error(`Invalid input length, expect to be multiple of 32 bytes, got ${A.length}`);if(g>1&&A.length%rg!==0)throw new Error(`Invalid input length, expect to be multiple of 64 bytes, got ${A.length}, padFor=${g}`);let i=A.length,t=Math.floor(i/2),E=A;for(let c=0;c<e;c++){const a=A.subarray(0,t);C(E,a),Math.floor(t/32)%2===1&&c<e-1?(i=t+32,E=A.subarray(0,i),E.set(ZI(c+1),t)):(E=a,i=t),t=Math.floor(i/2)}I.set(E.subarray(0,32),B)}function QD(A,g,I,B,C,e,i){if(I<1)throw new Error(`Invalid padFor, expect to be at least 1, got ${I}`);if(g>A.length)throw new Error(`Invalid blockLimit, expect to be less than or equal blocks.length ${A.length}, got ${g}`);const t=Math.ceil(Math.log2(I));if(g===0){B.set(ZI(t),C);return}for(const S of A)if(S.length!==rg)throw new Error(`Invalid block length, expect to be 64 bytes, got ${S.length}`);if(i.length===0||i.length%(4*rg)!==0)throw new Error(`Invalid buffer length, expect to be multiple of 64 bytes, got ${i.length}`);const E=Math.floor(i.length/rg),c=Math.floor(E/2);let a=i,l=i.subarray(0,c*rg),w=g;for(let S=0;S<t;S++){let u=0;const m=Math.floor(w/E);for(let p=0;p<m;p++){for(let F=0;F<E;F++){const J=p*E+F;a.set(A[J],F*rg)}e(a,l);for(let F=0;F<c;F++)A[u].set(l.subarray(F*rg,(F+1)*rg)),u++}const L=w%E;a=i.subarray(0,L*rg),l=i.subarray(0,Math.floor(a.length/2));for(let p=Math.floor(w/E)*E;p<w;p++)a.set(A[p],p%E*rg);e(a,l);for(let p=0;p<Math.floor(l.length/rg);p++)A[u].set(l.subarray(p*rg,(p+1)*rg)),u++;l.length%rg!==0&&(A[u].set(l.subarray(l.length-32,l.length),0),A[u].set(ZI(S+1),32),u++),w=u,a=i.subarray(0,w*rg),l=i.subarray(0,Math.floor(a.length/2))}B.set(A[0].subarray(0,32),C)}function ED(A,g,I){let B=A.length;const C=Math.pow(2,g)*32;if(g<1)throw new Error(`Invalid nLevel, expect to be greater than 0, got ${g}`);if(B%C!==0)throw new Error(`Invalid input length, expect to be multiple of ${C} for nLevel ${g}, got ${B}`);let e=Math.floor(B/2),i=A;for(let t=g;t>0;t--){const E=i.subarray(0,e);I(i,E),i=E,B=e,e=Math.floor(B/2)}return i}const yQ=(A,g)=>Ea.create().update(A).update(g).digest(),uQ=(A,g)=>{if(A.length%64!==0)throw new Error(`Invalid input length ${A.length}`);if(A.length!==g.length*2)throw new Error(`Invalid output length ${g.length}`);const I=Math.floor(A.length/64);for(let B=0;B<I;B++){const C=B*64,e=A.subarray(C,C+32),i=A.subarray(C+32,C+64),t=yQ(e,i);g.set(t,B*32)}},oD=new Uint8Array(4*rg);let EC={name:"noble",digest64:yQ,digest64HashObjects:(A,g,I)=>{sQ(yQ(QC(A),QC(g)),0,I)},merkleizeBlocksBytes(A,g,I,B){return iD(A,g,I,B,uQ)},merkleizeBlockArray(A,g,I,B,C){return QD(A,g,I,B,C,uQ,oD)},digestNLevel(A,g){return ED(A,g,uQ)},executeHashComputations:A=>{for(let g=A.length-1;g>=0;g--){const I=A[g];if(!I)throw Error(`no hash computations for level ${g}`);for(const B of I)B.dest.applyHash(vw(B.src0,B.src1))}}};function nD(A){EC.executeHashComputations(A)}const oa=2**32;class fQ{constructor(g,I,B,C,e,i,t,E){N(this,"h0");N(this,"h1");N(this,"h2");N(this,"h3");N(this,"h4");N(this,"h5");N(this,"h6");N(this,"h7");this.h0=g,this.h1=I,this.h2=B,this.h3=C,this.h4=e,this.h5=i,this.h6=t,this.h7=E}applyHash(g){this.h0=g.h0,this.h1=g.h1,this.h2=g.h2,this.h3=g.h3,this.h4=g.h4,this.h5=g.h5,this.h6=g.h6,this.h7=g.h7}}class bA extends fQ{constructor(I,B){super(null,0,0,0,0,0,0,0);N(this,"_left");N(this,"_right");if(this._left=I,this._right=B,!I)throw new Error("Left node is undefined");if(!B)throw new Error("Right node is undefined")}get rootHashObject(){return this.h0===null&&EC.digest64HashObjects(this.left.rootHashObject,this.right.rootHashObject,this),this}get root(){return QC(this.rootHashObject)}get left(){return this._left}get right(){return this._right}isLeaf(){return!1}}class TA extends fQ{get rootHashObject(){return this}get root(){return QC(this)}get left(){throw Error("LeafNode has no left node")}get right(){throw Error("LeafNode has no right node")}static fromRoot(g){return this.fromHashObject(tD(g))}static fromHashObject(g){return new TA(g.h0,g.h1,g.h2,g.h3,g.h4,g.h5,g.h6,g.h7)}static fromZero(){return new TA(0,0,0,0,0,0,0,0)}static fromUint32(g){return new TA(g,0,0,0,0,0,0,0)}clone(){return TA.fromHashObject(this)}isLeaf(){return!0}writeToBytes(g,I,B){g.set(this.root.slice(0,B),I)}getUint(g,I,B){const C=Math.floor(I/4);if(g<4){const e=I%4*8,i=Xg(this,C);return g===1?255&i>>e:65535&i>>e}else{if(g===4)return Xg(this,C)>>>0;if(g===8){const e=Xg(this,C),i=Xg(this,C+1);return i===0?e>>>0:i===-1&&e===-1&&B?1/0:(e>>>0)+(i>>>0)*oa}else throw Error("uintBytes > 8")}}getUintBigint(g,I){const B=Math.floor(I/4);if(g<4){const C=I%4*8,e=Xg(this,B);return BigInt(g===1?255&e>>C:65535&e>>C)}else{if(g===4)return BigInt(Xg(this,B)>>>0);{const C=Math.ceil(g/4);let e=BigInt(0);for(let i=0;i<C;i++)e+=BigInt(Xg(this,B+i)>>>0)<<BigInt(32*i);return e}}}setUint(g,I,B,C){const e=Math.floor(I/4);if(g<4){const i=I%4*8;let t=Xg(this,e);g===1?(t&=~(255<<i),t|=B<<i):(t&=~(65535<<i),t|=B<<i),yg(this,e,t)}else if(g===4)yg(this,e,B);else if(g===8)B===1/0&&C?(yg(this,e,-1),yg(this,e+1,-1)):(yg(this,e,B&4294967295),yg(this,e+1,B/oa&4294967295));else throw Error("uintBytes > 8")}setUintBigint(g,I,B){const C=Math.floor(I/4);if(g<4){const e=Number(B),i=I%4*8;let t=Xg(this,C);g===1?(t&=~(255<<i),t|=e<<i):(t&=~(65535<<i),t|=e<<i),yg(this,C,t)}else if(g===4)yg(this,C,Number(B));else{const e=C+Math.ceil(g/4);for(let i=C;i<e;i++)yg(this,i,Number(B&BigInt(4294967295))),B=B>>BigInt(32)}}bitwiseOrUint(g,I,B){const C=Math.floor(I/4);if(g<4){const e=I%4*8;pQ(this,C,B<<e)}else if(g===4)pQ(this,C,B);else{const e=C+Math.ceil(g/4);for(let i=C;i<e;i++)pQ(this,i,B&4294967295),B>>=32}}}function Xg(A,g){if(g===0)return A.h0;if(g===1)return A.h1;if(g===2)return A.h2;if(g===3)return A.h3;if(g===4)return A.h4;if(g===5)return A.h5;if(g===6)return A.h6;if(g===7)return A.h7;throw Error("hIndex > 7")}function yg(A,g,I){if(g===0)A.h0=I;else if(g===1)A.h1=I;else if(g===2)A.h2=I;else if(g===3)A.h3=I;else if(g===4)A.h4=I;else if(g===5)A.h5=I;else if(g===6)A.h6=I;else if(g===7)A.h7=I;else throw Error("hIndex > 7")}function pQ(A,g,I){if(g===0)A.h0|=I;else if(g===1)A.h1|=I;else if(g===2)A.h2|=I;else if(g===3)A.h3|=I;else if(g===4)A.h4|=I;else if(g===5)A.h5|=I;else if(g===6)A.h6|=I;else if(g===7)A.h7|=I;else throw Error("hIndex > 7")}class rD{constructor(){N(this,"_length");N(this,"_totalLength");N(this,"head");N(this,"tail");N(this,"pointer");this._length=0,this._totalLength=0,this.head={src0:null,src1:null,dest:null,next:null},this.tail=null,this.pointer=null}get length(){return this._length}get totalLength(){return this._totalLength}reset(){this.head.src0=null,this.head.src1=null,this.head.dest=null,this.tail=null,this._length=0,this.pointer=null}push(g,I,B){if(this.tail!==null){let C=this.tail.next;C!==null?(C.src0=g,C.src1=I,C.dest=B):(C={src0:g,src1:I,dest:B,next:null},this.tail.next=C,this._totalLength++),this.tail=C,this._length++;return}this.head.src0=g,this.head.src1=I,this.head.dest=B,this.tail=this.head,this._length=1,this._totalLength===0&&(this._totalLength=1)}clean(){var I;let g=((I=this.tail)==null?void 0:I.next)??null;for(;g!==null&&g.src0!==null;)g.src0=null,g.src1=null,g.dest=null,g=g.next}next(){if(!this.pointer||this.tail===null)return{done:!0,value:void 0};const g=this.pointer,I=g.src0===null;return this.pointer=this.pointer.next,I?{done:!0,value:void 0}:{done:!1,value:g}}[Symbol.iterator](){return this.pointer=this.head,this}toArray(){const g=[];for(const I of this)g.push(I);return g}dump(){const g=[];let I=null;for(I=this.head;I!==null;I=I.next)g.push(I);return g}}class aD{constructor(){N(this,"byLevel");this.byLevel=[]}reset(){for(const g of this.byLevel)g.reset()}clean(){for(const g of this.byLevel)g.clean()}}function ag(A,g,I){if(A.h0===null){const B=$g(I,g),{left:C,right:e}=A;B.push(C,e,A),ag(C,g+1,I),ag(e,g+1,I)}}function $g(A,g){return A[g]===void 0&&(A[g]=new rD),A[g]}const yB=[TA.fromZero()];function uB(A){if(A>=yB.length){for(let g=yB.length;g<=A;g++)yB[g]=new bA(yB[g-1],yB[g-1]);yB[A].root}return yB[A]}function oC(A,g,I=0,B=null){const C=2**g;if(A.length>C)throw new Error(`nodes.length ${A.length} over maxIndex at depth ${g}`);if(A.length===0)return uB(g);if(g===0){const i=A[0];return B!==null&&ag(i,I,B),i}if(g===1){const i=A[0],t=A.length>1?A[1]:uB(0),E=new bA(i,t);return B!==null&&(ag(i,I+1,B),ag(t,I+1,B),$g(B,I).push(i,t,E)),E}let e=A.length;for(let i=g;i>0;i--){const t=e%2,E=e-t,c=B?I+i-1:null;for(let a=0;a<E;a+=2){const l=A[a],w=A[a+1],S=new bA(l,w);A[a/2]=S,c!==null&&B!==null&&($g(B,c).push(l,w,S),i===g&&(ag(l,c+1,B),ag(w,c+1,B)))}if(t>0){const a=A[E],l=uB(g-i),w=new bA(a,l);A[E/2]=w,c!==null&&B!==null&&(i===g&&ag(a,c+1,B),$g(B,c).push(a,l,w))}e=E/2+t}return A[0]}const sD=2**32;function nC(A,g,I,B){const C=lD(g,I,B);return oC(C,A)}function cD(A){const g=new Array(Math.ceil(A.length/4));for(let I=0;I<A.length;I++){const B=Math.floor(I/4),C=g[B]??new TA(0,0,0,0,0,0,0,0),e=2*(I%4),i=A[I];i===1/0?(yg(C,e,4294967295),yg(C,e+1,4294967295)):(yg(C,e,i&4294967295),yg(C,e+1,i/sD&4294967295)),g[B]=C}return g}function lD(A,g,I){const B=I-g,C=Math.floor(B/32),e=new Array(Math.ceil(B/32));for(let t=0;t<C;t++){const E=g+t*32;e[t]=new TA(A.getInt32(E+0,!0),A.getInt32(E+4,!0),A.getInt32(E+8,!0),A.getInt32(E+12,!0),A.getInt32(E+16,!0),A.getInt32(E+20,!0),A.getInt32(E+24,!0),A.getInt32(E+28,!0))}const i=B%32;if(i>0){const t=new TA(0,0,0,0,0,0,0,0);e[C]=t;const E=Math.floor(i/4);for(let a=0;a<E;a++)yg(t,a,A.getInt32(g+C*32+a*4,!0));const c=B%4;if(c>0){let a=0;for(let l=0;l<c;l++)a|=A.getUint8(g+B-c+l)<<l*8;yg(t,E,a)}}return e}function rC(A,g,I,B){const C=I%32,e=Math.floor(I/32);for(let i=0;i<e;i++){const t=B[i],E=g+i*32;A.setInt32(E+0,t.h0,!0),A.setInt32(E+4,t.h1,!0),A.setInt32(E+8,t.h2,!0),A.setInt32(E+12,t.h3,!0),A.setInt32(E+16,t.h4,!0),A.setInt32(E+20,t.h5,!0),A.setInt32(E+24,t.h6,!0),A.setInt32(E+28,t.h7,!0)}if(C>0){const i=B[e],t=Math.floor(C/4);for(let c=0;c<t;c++)A.setInt32(g+e*32+c*4,Xg(i,c),!0);const E=I%4;if(E>0){const c=Xg(i,t);for(let a=0;a<E;a++)A.setUint8(g+I-E+a,c>>a*8&255)}}}const na="Invalid tree navigation";function ra(A,g){const I=[];let B=A;for(const C of jw(g))if(C){if(B.isLeaf())throw new Error(na);I.push(B.left.root),B=B.right}else{if(B.isLeaf())throw new Error(na);I.push(B.right.root),B=B.left}return[B.root,I.reverse()]}function hD(A,g,I){let B=TA.fromRoot(g);const C=I.slice().reverse();for(;A>1;){const e=TA.fromRoot(C.pop());A%BigInt(2)===BigInt(0)?B=new bA(B,e):B=new bA(e,B),A=A/BigInt(2)}return B}class kg{constructor(g,I){N(this,"_rootNode");N(this,"hook");this._rootNode=g,I&&(typeof WeakRef>"u"?this.hook=I:this.hook=new WeakRef(I))}get root(){return this.rootNode.root}get rootNode(){return this._rootNode}set rootNode(g){if(this._rootNode=g,this.hook)if(typeof WeakRef>"u")this.hook(g);else{const I=this.hook.deref();I?I(g):this.hook=void 0}}static createFromProof(g){return new kg(mD(g))}clone(){return new kg(this.rootNode)}getSubtree(g){return new kg(this.getNode(g),I=>this.setNode(g,I))}getNode(g){return aC(this.rootNode,g)}getNodeAtDepth(g,I){return Yg(this.rootNode,g,I)}getRoot(g){return this.getNode(g).root}setNode(g,I){this.rootNode=SD(this.rootNode,g,I)}setNodeWithFn(g,I){this.rootNode=wD(this.rootNode,g,I)}setNodeAtDepth(g,I,B){this.rootNode=DD(this.rootNode,g,I,B)}setRoot(g,I){this.setNode(g,TA.fromRoot(I))}getNodesAtDepth(g,I,B){return sg(this.rootNode,g,I,B)}iterateNodesAtDepth(g,I,B){return yD(this.rootNode,g,I,B)}getSingleProof(g){return ra(this.rootNode,g)[1]}getProof(g){return wa(this.rootNode,g)}}function aC(A,g){const I=lQ(g);let B=A;for(let C=1;C<I.length;C++){if(B.isLeaf())throw new Error(`Invalid tree - found leaf at depth ${C}`);B=I[C]==="1"?B.right:B.left}return B}function SD(A,g,I){const B=lQ(g),C=aa(A,B);return sa(B,C,I)}function wD(A,g,I){const B=lQ(g),C=aa(A,B),e=C[C.length-1],i=B[B.length-1]==="1"?e.right:e.left,t=I(i);return sa(B,C,t)}function aa(A,g){let I=A;const B=[A];for(let C=1;C<g.length-1;C++)g[C]==="1"?I=I.right:I=I.left,B.push(I);return B}function sa(A,g,I){let B=I;for(let C=A.length-1;C>=1;C--)A[C]==="1"?B=new bA(g[C-1].left,B):B=new bA(B,g[C-1].right);return B}function Yg(A,g,I){if(g===0)return A;if(g===1)return I===0?A.left:A.right;const B=g-1,C=0;let e=A;for(let i=B;i>=C;i--)e=fB(i,I)?e.left:e.right;return e}function DD(A,g,I,B){return sC(A,g,[I],[B])}function sC(A,g,I,B,C=0,e=null){if(g===0)return B.length>0?B[0]:A;const i=new Array(g),t=new Array(g),E=g-1,c=0;let a=E,l=A;i[E]=A;for(let w=0;w<I.length;w++){const S=I[w];for(let L=a;L>c;L--)l=fB(L,S)?l.left:l.right,i[L-1]=l;if(a=c,(S&1)!==1)if(S+1===I[w+1])l=new bA(B[w],B[w+1]),e!=null&&$g(e,g-1+C).push(B[w],B[w+1],l),w++;else{const L=l;l=new bA(B[w],L.right),e!=null&&$g(e,g-1+C).push(B[w],L.right,l)}else{const L=l;l=new bA(L.left,B[w]),e!=null&&$g(e,g-1+C).push(L.left,B[w],l)}const u=w>=I.length-1,m=u?E:uD(S,I[w+1]);for(let L=c+1;L<=m;L++){const p=g-L-1;if(p<0)throw Error(`Invalid depth ${p}, d=${L}, nodesDepth=${g}`);if(fB(L,S))if(u||L!==m){const F=l;l=new bA(F,i[L].right),e!=null&&$g(e,p+C).push(F,i[L].right,l)}else t[L]=l,l=i[L];else{const F=t[L];if(F!==void 0){const J=l;l=new bA(F,J),e!=null&&$g(e,p+C).push(F,J,l),t[L]=void 0}else{const J=l;l=new bA(i[L].left,J),e!=null&&$g(e,p+C).push(i[L].left,J,l)}}}a=m}return l}function sg(A,g,I,B){if(g===0)return I===0&&B>0?[A]:[];if(g===1)return B===0?[]:B===1?I===0?[A.left]:[A.right]:[A.left,A.right];const C=g-1,e=0;let i=C,t=A;const E=new Array(g),c=new Array(g),a=new Array(B);E[C]=A;for(let l=0;l<B;l++){for(let w=i;w>=e;w--){w!==i&&(E[w]=t);const S=fB(w,I+l);c[w]=S,t=S?t.left:t.right}a[l]=t;for(let w=e;w<=C;w++)if(c[w]===!0){i=w;break}t=E[i]}return a}function*yD(A,g,I,B){const C=I+B,e=g-1,i=0;let t=e,E=A;const c=new Array(g),a=new Array(g);c[e]=A;for(let l=I;l<C;l++){for(let w=t;w>=i;w--){w!==t&&(c[w]=E);const S=fB(w,l);a[w]=S,E=S?E.left:E.right}yield E;for(let w=i;w<=e;w++)if(a[w]===!0){t=w;break}E=c[t]}}function ca(A,g,I){if(I<0)return uB(g);const B=new Array(g),C=g-1,e=0;let i=C,t=A;B[C]=A;for(let E=i;E>=e;E--)t=fB(E,I)?t.left:t.right,B[E-1]=t;i=e;for(let E=e;E<=C;E++)fB(E,I)?t=new bA(t,uB(E)):t=new bA(B[E].left,t);return t}const lt=4294967295,la=2**32;function uD(A,g){if(A===g||A<0||g<0)throw Error(`Expect different positive inputs, from=${A} to=${g}`);const I=Math.ceil(Math.log2(A+1)),B=Math.ceil(Math.log2(g+1));if(I!==B)return Math.max(I,B)-1;if(I>32){const C=Math.floor(A/la)<,e=Math.floor(g/la)<return C===e?FQ(A<,g<):32+FQ(C,e)}return FQ(A,g)}function fB(A,g){if(A>31){const B=g/4294967296>>>0,C=1<<A-32;return(B&C)!==C}const I=1<<A;return(g&I)!==I}function FQ(A,g){const I=A^g;if(I===0)throw Error(`Do not support equal value from=${A} to=${g}`);return(I<0?32:Math.ceil(Math.log2(I+1)))-1}function fD(A){const g=new Set,I=new Set;let B=A;for(;B.length>1;){g.add(B);const C=B[B.length-1],e=B.substring(0,B.length-1);I.add(e+(Number(C)^1)),B=e}return{path:g,branch:I}}function pD(A,g){return A.length?A.map(I=>I.padEnd(g)).sort().map(I=>I.trim()):[]}function FD(A){return A.length?A.sort((g,I)=>{if(g.length<I.length)return 1;if(I.length<g.length)return-1;let B=g.indexOf("0"),C=I.indexOf("0");for(;;){if(B===-1)return-1;if(C===-1||B<C)return 1;if(C<B)return-1;B=g.indexOf("0",B+1),C=I.indexOf("0",C+1)}}):[]}function dD(A){const g=A.slice().sort((B,C)=>B.length-C.length),I=[];A:for(let B=0;B<g.length;B++){const C=g[B];for(let e=B+1;e<g.length;e++)if(g[e].startsWith(C))continue A;I.push(C)}return I}var jI;(function(A){A[A.InOrder=0]="InOrder",A[A.Decreasing=1]="Decreasing",A[A.Unsorted=2]="Unsorted"})(jI||(jI={}));function dQ(A,g=!0,I=jI.InOrder){const B=dD(A),C=new Set(g?B:[]),e=new Set,i=new Set;let t=1;for(const E of B){E.length>t&&(t=E.length);const{path:c,branch:a}=fD(E);c.forEach(l=>e.add(l)),a.forEach(l=>i.add(l))}switch(e.forEach(E=>i.delete(E)),i.forEach(E=>C.add(E)),I){case jI.InOrder:return pD(Array.from(C),t);case jI.Decreasing:return FD(Array.from(C));case jI.Unsorted:return Array.from(C)}}function GD(A,g){const I=new kg(A),B=dQ(g.map(t=>t.toString(2)),!1,jI.Decreasing),C=g.slice().sort((t,E)=>t<E?1:-1),e=C.map(t=>I.getRoot(t)),i=B.map(t=>I.getRoot(t));return[e,i,C]}function ND(A,g,I){var E,c;if(A.length!==I.length)throw new Error("Leaves length should equal gindices length");const B=I.map(a=>a.toString(2)),C=dQ(B,!1,jI.Decreasing);if(C.length!==g.length)throw new Error("Witnesses length should equal witnesses gindices length");const e=Math.max(((E=B[0])==null?void 0:E.length)??0,((c=C[0])==null?void 0:c.length)??0),i=Object.fromEntries(Array.from({length:e},(a,l)=>[l+1,{}]));for(let a=0;a<B.length;a++){const l=B[a],w=A[a];i[l.length][l]=TA.fromRoot(w)}for(let a=0;a<C.length;a++){const l=C[a],w=g[a];i[l.length][l]=TA.fromRoot(w)}for(let a=e;a>1;a--){const l=i[a],w=i[a-1];for(const S of Object.keys(l)){const u=l[S];if(!u)continue;const m=S[S.length-1]==="0",L=S.substring(0,S.length-1),p=L+(m?"1":"0"),F=l[p];if(!F)throw new Error(`Sibling not found: ${p}`);const J=m?new bA(u,F):new bA(F,u);w[L]=J,delete l[S],delete l[p]}}const t=i[1][1];if(!t)throw new Error("Internal consistency error: no root found");return t}function ha(A,g){const I=g%8,B=Math.floor(g/8),C=A[B];switch(I){case 0:return(C&128)!==0;case 1:return(C&64)!==0;case 2:return(C&32)!==0;case 3:return(C&16)!==0;case 4:return(C&8)!==0;case 5:return(C&4)!==0;case 6:return(C&2)!==0;case 7:return(C&1)!==0;default:throw new Error("unreachable")}}function Sa(A){const g=[],I=A.length*8;let B=0,C=0;for(let e=0;e<I;e++){const i=ha(A,e);if(g.push(i),i?C++:B++,C>B){if(e++,e+7<I)throw new Error("Invalid descriptor: too many bytes");for(;e<I;e++)if(ha(A,e))throw new Error("Invalid descriptor: too many 1 bits");return g}}throw new Error("Invalid descriptor: not enough 1 bits")}function GQ(A,g,I){if(g[I])return[A.root];{const B=GQ(A.left,g,I+1),C=GQ(A.right,g,I+B.length*2);return[...B,...C]}}function NQ(A,g,I){return A[I.bitIndex++]?TA.fromRoot(g[I.leafIndex++]):new bA(NQ(A,g,I),NQ(A,g,I))}function kD(A,g){return GQ(A,Sa(g),0)}function RD(A,g){const I=Sa(g);if(I.length!==A.length*2-1)throw new Error("Invalid multiproof: invalid number of leaves");return NQ(I,A,{bitIndex:0,leafIndex:0})}function kQ(A,g,I){if(!I.length||!I[0].startsWith(g))return[[],[]];if(g===I[0])return I.shift(),[[],[A.root]];{const[B,C]=kQ(A.left,g+"0",I),[e,i]=kQ(A.right,g+"1",I);return[[C.length].concat(B,e),C.concat(i)]}}function RQ(A,g){if(g.length){if(g.length===1)return TA.fromRoot(g[0]);{const I=A[0];return new bA(RQ(A.slice(1,I),g.slice(0,I)),RQ(A.slice(I),g.slice(I)))}}else throw new Error("Proof must contain gt 0 leaves")}function UD(A,g){return kQ(A,"1",dQ(g.map(I=>I.toString(2))))}function LD(A,g){return RQ(A,g)}var vA;(function(A){A.single="single",A.treeOffset="treeOffset",A.multi="multi",A.compactMulti="compactMulti"})(vA||(vA={})),vA.single,vA.treeOffset,vA.multi,vA.compactMulti;function wa(A,g){switch(g.type){case vA.single:{const[I,B]=ra(A,g.gindex);return{type:vA.single,gindex:g.gindex,leaf:I,witnesses:B}}case vA.treeOffset:{const[I,B]=UD(A,g.gindices);return{type:vA.treeOffset,offsets:I,leaves:B}}case vA.multi:{const[I,B,C]=GD(A,g.gindices);return{type:vA.multi,leaves:I,witnesses:B,gindices:C}}case vA.compactMulti:{const I=kD(A,g.descriptor);return{type:vA.compactMulti,leaves:I,descriptor:g.descriptor}}default:throw new Error("Invalid proof type")}}function mD(A){switch(A.type){case vA.single:return hD(A.gindex,A.leaf,A.witnesses);case vA.treeOffset:return LD(A.offsets,A.leaves);case vA.multi:return ND(A.leaves,A.witnesses,A.gindices);case vA.compactMulti:return RD(A.leaves,A.descriptor);default:throw new Error("Invalid proof type")}}function HD(A,g,I){if(I<0)throw new Error(`Expect count to be non-negative, got ${I}`);return{finalized:(I>0?JD(g,I-1):[]).map(B=>aC(A,B).root),count:I}}function JD(A,g){if(g<0||A<0)throw new Error(`Expect index and depth to be non-negative, got ${g} and ${A}`);const I=Array.from({length:A+1},()=>0);let B=g+1;const C=[];for(;B>0;){const e=Math.floor(Math.log2(B)),i=2**e,t=A-e,E=vI(t,BigInt(I[t]));C.push(E);for(let c=0;c<=e;c++)I[t+c]+=Math.pow(2,c);B-=i}return C}const pB=Symbol("ssz_cached_permanent_root");function UQ(A,g){return EC.digest64(A,g)}function MD(A,g){const I=Da(qD(g)-1);if(A.length==0)return ZI(I);let B=A.length;for(let C=0;C<I;C++){const e=B%2,i=B+e;for(let t=0;t<e;t++)A[B+t]=ZI(C);for(let t=0;t<i;t+=2)A[t/2]=UQ(A[t],A[t+1]);B=i/2}return A[0]}function ht(A){const g=Math.ceil(A.length/32),I=new Array(g);for(let B=0;B<g;B++){const C=new Uint8Array(32);C.set(A.slice(B*32,(B+1)*32)),I[B]=C}return I}function St(A,g){const I=MA.alloc(32);return I.writeUIntLE(g,0,6),UQ(A,I)}function Da(A){return A===0?0:Math.floor(Math.log2(A))+1}function GI(A){return A===0?0:Math.ceil(Math.log2(A))}function qD(A){return A<=0?1:Math.pow(2,Da(A-1))}function Rg(A,g){return new Function("superClass",`return class ${g} extends superClass {}`)(A)}function FB(A){return A.right.getUint(4,0)}function ya(A){return A.left}function dB(A,g){return new bA(A,TA.fromUint32(g))}function ua(A,g,I,B=0,C=null){const e=I!==null?TA.fromUint32(I):A.right,i=new bA(g,e);return C!==null&&$g(C,B).push(g,e,i),i}function wt(A,g,I,B,C){const e=A.byteLength;for(let i=0;i<g;i++)A.value_serializeToBytes(I,B+i*e,C[i]);return B+g*e}function fa(A,g,I,B,C){const e=A.byteLength,i=(B-I)/e;Dt(i,C,!0);const t=new Array(i);for(let E=0;E<i;E++)t[E]=A.value_deserializeFromBytes(g,I+E*e,I+(E+1)*e);return t}function LQ(A,g,I,B,C,e,i=null){const t=A.byteLength*g,E=Math.ceil(t/32),c=i??sg(e,I,0,E);return rC(B.dataView,C,t,c),C+t}function pa(A,g,I,B,C,e){const i=(C-B)/A.byteLength;Dt(i,e,!0);const t=nC(g,I.dataView,B,C);return e.isList?dB(t,i):t}function KD(A,g,I){if(!Array.isArray(g))throw Error("JSON is not an array");Dt(g.length,I);const B=new Array(g.length);for(let C=0;C<g.length;C++)B[C]=A.fromJson(g[C]);return B}function YD(A,g,I){const B=I.isList?g.length:I.length,C=new Array(B);for(let e=0;e<B;e++)C[e]=A.toJson(g[e]);return C}function bD(A,g){const I=new Array(g.length);for(let B=0;B<g.length;B++)I[B]=A.clone(g[B]);return I}function TD(A,g,I){if(g.length!==I.length)return!1;for(let B=0;B<g.length;B++)if(!A.equals(g[B],I[B]))return!1;return!0}function vD(A,g){const I=new Array(g);for(let B=0;B<g;B++)I[B]=A.defaultValue();return I}function Dt(A,g,I){if(I&&A%1!==0)throw Error("size not multiple of element fixedSize");if(g.isList){if(A>g.limit)throw new Error(`Invalid list length ${A} over limit ${g.limit}`)}else if(A!==g.length)throw new Error(`Incorrect vector length ${A} expected ${g.length}`)}const mQ=new Array(256);class NI{constructor(g,I){N(this,"uint8Array");N(this,"bitLen");if(this.uint8Array=g,this.bitLen=I,g.length!==Math.ceil(I/8))throw Error("BitArray uint8Array length does not match bitLen")}static fromBitLen(g){return new NI(new Uint8Array(Math.ceil(g/8)),g)}static fromSingleBit(g,I){const B=NI.fromBitLen(g);return B.set(I,!0),B}static fromBoolArray(g){const I=NI.fromBitLen(g.length);for(let B=0;B<g.length;B++)g[B]===!0&&I.set(B,!0);return I}clone(){return new NI(Uint8Array.prototype.slice.call(this.uint8Array,0),this.bitLen)}get(g){const I=Math.floor(g/8),B=1<<g%8;return(this.uint8Array[I]&B)===B}set(g,I){if(g>=this.bitLen)throw Error(`BitArray set bitIndex ${g} beyond bitLen ${this.bitLen}`);const B=Math.floor(g/8),C=1<<g%8;let e=this.uint8Array[B];I?(e|=C,this.uint8Array[B]=e):(e&C)===C&&(e^=C,this.uint8Array[B]=e)}mergeOrWith(g){if(g.bitLen!==this.bitLen)throw Error("Must merge BitArrays of same bitLen");for(let I=0;I<this.uint8Array.length;I++)this.uint8Array[I]=this.uint8Array[I]|g.uint8Array[I]}intersectValues(g){const I=[];if(g.length!==this.bitLen)throw Error(`Must not intersect values of length ${g.length} != bitLen ${this.bitLen}`);const B=Math.floor(this.bitLen/8),C=this.bitLen%8,e=this.uint8Array;for(let i=0;i<B;i++){const t=yt(e[i]);for(let E=0;E<8;E++)t[E]&&I.push(g[i*8+E])}if(C>0){const i=yt(e[B]);for(let t=0;t<C;t++)i[t]&&I.push(g[B*8+t])}return I}getTrueBitIndexes(){const g=[],I=this.uint8Array;for(let B=0,C=I.length;B<C;B++){const e=yt(I[B]);for(let i=0;i<8;i++)e[i]&&g.push(B*8+i)}return g}getSingleTrueBit(){let g=null;const I=this.uint8Array;for(let B=0,C=I.length;B<C;B++){if(I[B]===0)continue;const e=yt(I[B]);for(let i=0;i<8;i++)if(e[i]===!0){if(g!==null)return null;g=B*8+i}}return g===null?null:g}toBoolArray(){const g=new Array(this.bitLen);for(let I=0;I<this.bitLen;I++)g[I]=this.get(I);return g}}function yt(A){return mQ[A]||(mQ[A]=_D(A)),mQ[A]}function _D(A){const g=A.toString(2),I=g.length,B=new Array(8);for(let C=0;C<8;C++)B[C]=C<I?g[I-C-1]==="1":!1;return B}const HQ=new Array(256);function Fa(A){let g="0x";for(const I of A)HQ[I]||(HQ[I]=I<16?"0"+I.toString(16):I.toString(16)),g+=HQ[I];return g}function da(A){if(typeof A!="string")throw new Error(`hex argument type ${typeof A} must be of type string`);if(A.startsWith("0x")&&(A=A.slice(2)),A.length%2!==0)throw new Error(`hex string length ${A.length} must be multiple of 2`);const g=A.length/2,I=new Uint8Array(g);for(let B=0;B<g;B++){const C=parseInt(A.slice(B*2,(B+1)*2),16);I[B]=C}return I}function kI(A,g){if(A.length!==g.length)return!1;for(let I=0;I<A.length;I++)if(A[I]!==g[I])return!1;return!0}function Ga(A){return!A.isBasic}function ut(A,g,I="",B=0){if(B===0){const e=g.tree_fromProofNode(A);if(e.done)return e.node;A=e.node}const C=g.depth===B;if(A.isLeaf())if(C){const e=g.getIndexProperty(Na(I));if(e===null)return A;const i=g.getPropertyType(e);return i.maxChunkCount===1&&Ga(i)?i.tree_fromProofNode(A).node:A}else return A;else if(C){const e=g.getIndexProperty(Na(I));if(e===null)return A;const i=g.getPropertyType(e);if(!Ga(i))throw Error("BranchNode does not map to CompositeType");const t=i.tree_fromProofNode(A);return t.done?t.node:ut(t.node,i)}else{const e=ut(A.left,g,I+"0",B+1),i=ut(A.right,g,I+"1",B+1);return e===A.left&&i===A.right?A:new bA(e,i)}}function Na(A){return A===""?0:parseInt(A,2)}class ka{value_toTree(g){const I=new Uint8Array(this.value_serializedSize(g)),B=new DataView(I.buffer,I.byteOffset,I.byteLength);return this.value_serializeToBytes({uint8Array:I,dataView:B},0,g),this.tree_deserializeFromBytes({uint8Array:I,dataView:B},0,I.length)}tree_toValue(g){const I=new Uint8Array(this.tree_serializedSize(g)),B=new DataView(I.buffer,I.byteOffset,I.byteLength);return this.tree_serializeToBytes({uint8Array:I,dataView:B},0,g),this.value_deserializeFromBytes({uint8Array:I,dataView:B},0,I.length)}serialize(g){const I=new Uint8Array(this.value_serializedSize(g)),B=new DataView(I.buffer,I.byteOffset,I.byteLength);return this.value_serializeToBytes({uint8Array:I,dataView:B},0,g),I}deserialize(g){const I=new DataView(g.buffer,g.byteOffset,g.byteLength);return this.value_deserializeFromBytes({uint8Array:g,dataView:I},0,g.length)}}const JQ=BigInt(3);class ft extends ka{constructor(I){super();N(this,"cachePermanentRootStruct");N(this,"isBasic",!1);this.cachePermanentRootStruct=I}defaultView(){return this.toView(this.defaultValue())}defaultViewDU(){return this.toViewDU(this.defaultValue())}deserializeToView(I){const B=new DataView(I.buffer,I.byteOffset,I.byteLength),C=this.tree_deserializeFromBytes({uint8Array:I,dataView:B},0,I.length);return this.getView(new kg(C))}deserializeToViewDU(I){const B=new DataView(I.buffer,I.byteOffset,I.byteLength),C=this.tree_deserializeFromBytes({uint8Array:I,dataView:B},0,I.length);return this.getViewDU(C)}toView(I){const B=this.value_toTree(I);return this.getView(new kg(B))}toViewDU(I){const B=this.value_toTree(I);return this.getViewDU(B)}toValueFromView(I){const B=this.commitView(I);return this.tree_toValue(B)}toValueFromViewDU(I){const B=this.commitViewDU(I);return this.tree_toValue(B)}toViewFromViewDU(I){const B=this.commitViewDU(I);return this.getView(new kg(B))}toViewDUFromView(I){const B=this.commitView(I);return this.getViewDU(B)}hashTreeRoot(I){if(this.cachePermanentRootStruct){const C=I[pB];if(C)return C}const B=MD(this.getRoots(I),this.maxChunkCount);return this.cachePermanentRootStruct&&(I[pB]=B),B}getCachedPermanentRoot(I){return I[pB]}createFromProof(I,B){const C=kg.createFromProof(I).rootNode,e=ut(C,this);if(B!==void 0&&!kI(e.root,B))throw new Error("Proof does not match trusted root");return this.getView(new kg(e))}tree_createProof(I,B){const C=this.tree_createProofGindexes(I,B);return wa(I,{type:vA.treeOffset,gindices:C})}tree_createProofGindexes(I,B){const C=[];for(const e of B){const{type:i,gindex:t}=this.getPathInfo(e);if(!RI(i))C.push(t);else{const E=i.tree_getLeafGindices(t,i.fixedSize===null?aC(I,t):void 0);for(const c of E)C.push(c)}}return C}getPathInfo(I){const B=[];let C=this;for(const e of I){if(C.isBasic)throw new Error("Invalid path: cannot navigate beyond a basic type");const i=C.getPropertyGindex(e);i!==null&&(B.push(i),C=C.getPropertyType(e))}return{type:C,gindex:dI(B)}}tree_fromProofNode(I){return{node:I,done:!1}}}function RI(A){return!A.isBasic}class Qe{serialize(){const g=new Uint8Array(this.type.tree_serializedSize(this.node)),I=new DataView(g.buffer,g.byteOffset,g.byteLength);return this.type.tree_serializeToBytes({uint8Array:g,dataView:I},0,this.node),g}hashTreeRoot(){return this.node.root}createProof(g){return this.type.tree_createProof(this.node,g)}toValue(){return this.type.tree_toValue(this.node)}clone(){return this.type.getView(new kg(this.node))}}class OD extends Qe{constructor(I,B){super();N(this,"type");N(this,"tree");N(this,"bitArray");this.type=I,this.tree=B,this.bitArray=I.tree_toValue(B.rootNode)}get node(){return this.tree.rootNode}get uint8Array(){return this.bitArray.uint8Array}get bitLen(){return this.bitArray.bitLen}get(I){return this.bitArray.get(I)}set(I,B){this.bitArray.set(I,B),this.tree.rootNode=this.type.value_toTree(this.bitArray)}mergeOrWith(I){this.bitArray.mergeOrWith(I)}intersectValues(I){return this.bitArray.intersectValues(I)}getTrueBitIndexes(){return this.bitArray.getTrueBitIndexes()}getSingleTrueBit(){return this.bitArray.getSingleTrueBit()}toBoolArray(){return this.bitArray.toBoolArray()}}const Ra=Symbol("ssz_cached_tree_root");class cC extends Qe{serializeToBytes(g,I){return this.type.tree_serializeToBytes(g,I,this.node)}hashTreeRoot(){return this.commit(),super.hashTreeRoot()}batchHashTreeRoot(g=new aD){g.reset(),this.commit(0,g.byLevel),g.clean();const I=this.node[Ra];if(I)return I;if(nD(g.byLevel),this.node.h0===null)throw Error("Root is not computed by batch");const B=this.node.root;return this.node[Ra]=B,B}serialize(){this.commit();const g=new Uint8Array(this.type.tree_serializedSize(this.node)),I=new DataView(g.buffer,g.byteOffset,g.byteLength);return this.serializeToBytes({uint8Array:g,dataView:I},0),g}clone(g){if(g)return this.type.getViewDU(this.node);{const I=this.cache;return this.clearCache(),this.type.getViewDU(this.node,I)}}}class ZD extends cC{constructor(I,B){super();N(this,"type");N(this,"_rootNode");N(this,"_bitArray",null);this.type=I,this._rootNode=B}get node(){return this._rootNode}get cache(){}get uint8Array(){return this.bitArray.uint8Array}get bitLen(){return this.bitArray.bitLen}get bitArray(){return this._bitArray===null&&(this._bitArray=this.type.tree_toValue(this._rootNode)),this._bitArray}commit(I=0,B=null){this._bitArray!==null&&(this._rootNode=this.type.value_toTree(this._bitArray)),B!==null&&this._rootNode.h0===null&&ag(this._rootNode,I,B)}get(I){return this.bitArray.get(I)}set(I,B){this.bitArray.set(I,B)}mergeOrWith(I){this.bitArray.mergeOrWith(I)}intersectValues(I){return this.bitArray.intersectValues(I)}getTrueBitIndexes(){return this.bitArray.getTrueBitIndexes()}getSingleTrueBit(){return this.bitArray.getSingleTrueBit()}toBoolArray(){return this.bitArray.toBoolArray()}clearCache(){this._bitArray=null}}class Ua extends ft{constructor(){super(...arguments);N(this,"isViewMutable",!0)}getView(I){return new OD(this,I)}getViewDU(I){return new ZD(this,I)}commitView(I){return I.node}commitViewDU(I,B=0,C=null){return I.commit(B,C),I.node}cacheOfViewDU(I){return I.cache}getRoots(I){return ht(I.uint8Array)}getPropertyGindex(){return null}getPropertyType(){throw Error("Must only request BitArray complete data")}getIndexProperty(){throw Error("Must only request BitArray complete data")}tree_fromProofNode(I){return{node:I,done:!0}}tree_getLeafGindices(I,B){const C=this.tree_getByteLen(B),e=Math.ceil(C/32),i=dI([I,vI(this.depth,BigInt(0))]),t=new Array(e);for(let E=0,c=i;E<e;E++,c++)t[E]=c;return this.isList&&t.push(dI([I,JQ])),t}fromJson(I){const B=da(I),C=new DataView(B.buffer,B.byteOffset,B.byteLength);return this.value_deserializeFromBytes({uint8Array:B,dataView:C},0,B.length)}toJson(I){return Fa(this.serialize(I))}clone(I){return I.clone()}equals(I,B){return I.bitLen===B.bitLen&&kI(I.uint8Array,B.uint8Array)}}class pt extends Ua{constructor(I,B){super();N(this,"limitBits");N(this,"typeName");N(this,"depth");N(this,"chunkDepth");N(this,"fixedSize",null);N(this,"minSize",1);N(this,"maxSize");N(this,"maxChunkCount");N(this,"isList",!0);if(this.limitBits=I,I===0)throw Error("List limit must be > 0");this.typeName=(B==null?void 0:B.typeName)??`BitList[${I}]`,this.maxChunkCount=Math.ceil(this.limitBits/8/32),this.chunkDepth=GI(this.maxChunkCount),this.depth=1+this.chunkDepth,this.maxSize=Math.ceil(I/8)+1}static named(I,B){return new(Rg(pt,B.typeName))(I,B)}defaultValue(){return NI.fromBitLen(0)}value_serializedSize(I){return La(I.bitLen)}value_serializeToBytes(I,B,C){return I.uint8Array.set(C.uint8Array,B),ma(I.uint8Array,B,C.bitLen)}value_deserializeFromBytes(I,B,C){const{uint8Array:e,bitLen:i}=this.deserializeUint8ArrayBitListFromBytes(I.uint8Array,B,C);return new NI(e,i)}tree_serializedSize(I){return La(FB(I))}tree_serializeToBytes(I,B,C){const e=ya(C),i=FB(C),t=Math.ceil(i/8),E=Math.ceil(t/32),c=sg(e,this.chunkDepth,0,E);return rC(I.dataView,B,t,c),ma(I.uint8Array,B,i)}tree_deserializeFromBytes(I,B,C){const{uint8Array:e,bitLen:i}=this.deserializeUint8ArrayBitListFromBytes(I.uint8Array,B,C),t=new DataView(e.buffer,e.byteOffset,e.byteLength),E=nC(this.chunkDepth,t,0,e.length);return dB(E,i)}tree_getByteLen(I){if(!I)throw new Error("BitListType requires a node to get leaves");return Math.ceil(FB(I)/8)}hashTreeRoot(I){return St(super.hashTreeRoot(I),I.bitLen)}deserializeUint8ArrayBitListFromBytes(I,B,C){const{uint8Array:e,bitLen:i}=jD(I,B,C);if(i>this.limitBits)throw Error(`bitLen over limit ${i} > ${this.limitBits}`);return{uint8Array:e,bitLen:i}}}function jD(A,g,I){if(I>A.length)throw Error(`BitList attempting to read byte ${I} of data length ${A.length}`);const B=A[I-1],C=I-g;if(B===0)throw new Error("Invalid deserialized bitlist, padding bit required");if(B===1){const c=Uint8Array.prototype.slice.call(A,g,I-1),a=(C-1)*8;return{uint8Array:c,bitLen:a}}const e=Uint8Array.prototype.slice.call(A,g,I),i=B.toString(2).length-1,t=(C-1)*8+i,E=255>>8-i;return e[C-1]&=E,{uint8Array:e,bitLen:t}}function La(A){const g=Math.ceil(A/8);return A%8===0?g+1:g}function ma(A,g,I){const B=Math.ceil(I/8),C=g+B;return I%8===0?(A[C]=1,C+1):(A[C-1]|=1<<I%8,C)}class PI extends Ua{constructor(I,B){super();N(this,"lengthBits");N(this,"typeName");N(this,"chunkCount");N(this,"depth");N(this,"fixedSize");N(this,"minSize");N(this,"maxSize");N(this,"maxChunkCount");N(this,"isList",!1);N(this,"zeroBitsMask");if(this.lengthBits=I,I===0)throw Error("Vector length must be > 0");this.typeName=(B==null?void 0:B.typeName)??`BitVector[${I}]`,this.chunkCount=Math.ceil(this.lengthBits/8/32),this.maxChunkCount=this.chunkCount,this.depth=GI(this.chunkCount),this.fixedSize=Math.ceil(this.lengthBits/8),this.minSize=this.fixedSize,this.maxSize=this.fixedSize,this.zeroBitsMask=I%8===0?0:255&255<<I%8}static named(I,B){return new(Rg(PI,B.typeName))(I,B)}defaultValue(){return NI.fromBitLen(this.lengthBits)}value_serializedSize(){return this.fixedSize}value_serializeToBytes(I,B,C){return I.uint8Array.set(C.uint8Array,B),B+this.fixedSize}value_deserializeFromBytes(I,B,C){return this.assertValidLength(I.uint8Array,B,C),new NI(Uint8Array.prototype.slice.call(I.uint8Array,B,C),this.lengthBits)}tree_serializedSize(){return this.fixedSize}tree_serializeToBytes(I,B,C){const e=sg(C,this.depth,0,this.chunkCount);return rC(I.dataView,B,this.fixedSize,e),B+this.fixedSize}tree_deserializeFromBytes(I,B,C){return this.assertValidLength(I.uint8Array,B,C),nC(this.depth,I.dataView,B,C)}tree_getByteLen(){return this.fixedSize}assertValidLength(I,B,C){const e=C-B;if(C-B!==this.fixedSize)throw Error(`Invalid BitVector size ${e} != ${this.fixedSize}`);if(this.zeroBitsMask>0&&(I[C-1]&this.zeroBitsMask)>0)throw Error("BitVector: nonzero bits past length")}}class Ft extends ka{constructor(){super(...arguments);N(this,"isBasic",!0);N(this,"depth",0);N(this,"maxChunkCount",1)}value_serializedSize(){return this.byteLength}tree_serializedSize(){return this.byteLength}assertValidSize(I){if(I!==this.byteLength)throw Error(`BasicType invalid size ${I} expected ${this.byteLength}`)}hashTreeRoot(I){const B=new Uint8Array(32),C=new DataView(B.buffer,B.byteOffset,B.byteLength);return this.value_serializeToBytes({uint8Array:B,dataView:C},0,I),B}clone(I){return I}equals(I,B){return I===B}}function MQ(A){return A.isBasic}class qQ extends Ft{constructor(I){super();N(this,"typeName");N(this,"byteLength",1);N(this,"itemsPerChunk",32);N(this,"fixedSize",1);N(this,"minSize",1);N(this,"maxSize",1);this.typeName=(I==null?void 0:I.typeName)??"boolean"}static named(I){return new(Rg(qQ,I.typeName))(I)}defaultValue(){return!1}value_serializeToBytes(I,B,C){return I.uint8Array[B]=C?1:0,B+1}value_deserializeFromBytes(I,B,C){switch(this.assertValidSize(C-B),I.uint8Array[B]){case 1:return!0;case 0:return!1;default:throw new Error(`Boolean: invalid value: ${I.uint8Array[B]}`)}}tree_serializeToBytes(I,B,C){return I.uint8Array[B]=C.getUint(4,0),B+1}tree_deserializeFromBytes(I,B,C){this.assertValidSize(C-B);const e=I.uint8Array[B];if(e>1)throw Error(`Boolean: invalid value ${e}`);return TA.fromUint32(e)}tree_getFromNode(I){return I.getUint(4,0)===1}tree_setToNode(I,B){I.setUint(4,0,B?1:0)}tree_getFromPackedNode(I,B){const C=B%this.itemsPerChunk;return I.getUint(1,C)!==0}tree_setToPackedNode(I,B,C){const e=B%this.itemsPerChunk;I.setUint(1,e,C?1:0)}fromJson(I){if(typeof I!="boolean")throw Error(`JSON invalid type ${typeof I} expected boolean`);return I}toJson(I){return I}}class Ha extends ft{constructor(){super(...arguments);N(this,"isViewMutable",!1)}defaultValue(){return new Uint8Array(this.minSize)}getView(I){return this.getViewDU(I.rootNode)}getViewDU(I){return this.tree_toValue(I)}commitView(I){return this.commitViewDU(I)}commitViewDU(I,B=0,C=null){const e=new Uint8Array(this.value_serializedSize(I)),i=new DataView(e.buffer,e.byteOffset,e.byteLength);this.value_serializeToBytes({uint8Array:e,dataView:i},0,I);const t=this.tree_deserializeFromBytes({uint8Array:e,dataView:i},0,e.length);return C!==null&&t.h0===null&&ag(t,B,C),t}cacheOfViewDU(){}toView(I){return I}toViewDU(I){return I}value_serializeToBytes(I,B,C){return I.uint8Array.set(C,B),B+C.length}value_deserializeFromBytes(I,B,C){return this.assertValidSize(C-B),Uint8Array.prototype.slice.call(I.uint8Array,B,C)}getRoots(I){return ht(I)}getPropertyGindex(){return null}getPropertyType(){throw Error("Must only request ByteArray complete data")}getIndexProperty(){throw Error("Must only request ByteArray complete data")}tree_fromProofNode(I){return{node:I,done:!0}}tree_getLeafGindices(I,B){const C=this.tree_getByteLen(B),e=Math.ceil(C/32),i=dI([I,vI(this.depth,BigInt(0))]),t=new Array(e);for(let E=0,c=i;E<e;E++,c++)t[E]=c;return this.isList&&t.push(dI([I,JQ])),t}fromJson(I){const B=da(I);return this.assertValidSize(B.length),B}toJson(I){return Fa(I)}clone(I){return I}equals(I,B){return kI(I,B)}}class lC extends Ha{constructor(I,B){super();N(this,"limitBytes");N(this,"typeName");N(this,"depth");N(this,"chunkDepth");N(this,"fixedSize",null);N(this,"minSize");N(this,"maxSize");N(this,"maxChunkCount");N(this,"isList",!0);if(this.limitBytes=I,I===0)throw Error("List limit must be > 0");this.typeName=(B==null?void 0:B.typeName)??`ByteList[${I}]`,this.maxChunkCount=Math.ceil(this.limitBytes/32),this.chunkDepth=GI(this.maxChunkCount),this.depth=1+this.chunkDepth,this.minSize=0,this.maxSize=this.limitBytes}static named(I,B){return new(Rg(lC,B.typeName))(I,B)}value_serializedSize(I){return I.length}tree_serializedSize(I){return FB(I)}tree_serializeToBytes(I,B,C){const e=ya(C),i=FB(C),t=Math.ceil(i/32),E=sg(e,this.chunkDepth,0,t);return rC(I.dataView,B,i,E),B+i}tree_deserializeFromBytes(I,B,C){this.assertValidSize(C-B);const e=nC(this.chunkDepth,I.dataView,B,C);return dB(e,C-B)}tree_getByteLen(I){if(!I)throw new Error("ByteListType requires a node to get leaves");return FB(I)}hashTreeRoot(I){return St(super.hashTreeRoot(I),I.length)}assertValidSize(I){if(I>this.limitBytes)throw Error(`ByteList invalid size ${I} limit ${this.limitBytes}`)}}class bg extends Ha{constructor(I,B){super();N(this,"lengthBytes");N(this,"typeName");N(this,"depth");N(this,"chunkDepth");N(this,"fixedSize");N(this,"minSize");N(this,"maxSize");N(this,"maxChunkCount");N(this,"isList",!1);if(this.lengthBytes=I,I===0)throw Error("Vector length must be > 0");this.typeName=(B==null?void 0:B.typeName)??`ByteVector[${I}]`,this.maxChunkCount=Math.ceil(this.lengthBytes/32),this.chunkDepth=GI(this.maxChunkCount),this.depth=this.chunkDepth,this.fixedSize=this.lengthBytes,this.minSize=this.fixedSize,this.maxSize=this.fixedSize}static named(I,B){return new(Rg(bg,B.typeName))(I,B)}value_serializedSize(){return this.fixedSize}tree_serializedSize(){return this.fixedSize}tree_serializeToBytes(I,B,C){const e=sg(C,this.chunkDepth,0,this.maxChunkCount);return rC(I.dataView,B,this.fixedSize,e),B+this.fixedSize}tree_deserializeFromBytes(I,B,C){return this.assertValidSize(C-B),nC(this.chunkDepth,I.dataView,B,C)}tree_getByteLen(){return this.lengthBytes}assertValidSize(I){if(I!==this.lengthBytes)throw Error(`ByteVector invalid size ${I} expected ${this.lengthBytes}`)}}let PD=class extends Qe{constructor(g,I){super();N(this,"type");N(this,"tree");this.type=g,this.tree=I}get node(){return this.tree.rootNode}};function zD(A){class g extends PD{}for(let I=0;I<A.fieldsEntries.length;I++){const{fieldName:B,fieldType:C}=A.fieldsEntries[I];if(MQ(C))Object.defineProperty(g.prototype,B,{configurable:!1,enumerable:!0,get:function(){const e=Yg(this.node,this.type.depth,I);return C.tree_getFromNode(e)},set:function(e){const i=Yg(this.node,this.type.depth,I).clone();C.tree_setToNode(i,e),this.tree.setNodeAtDepth(this.type.depth,I,i)}});else if(RI(C))Object.defineProperty(g.prototype,B,{configurable:!1,enumerable:!0,get:function(){const e=cQ(this.type.depth,I);return C.getView(this.tree.getSubtree(e))},set:function(e){const i=C.commitView(e);this.tree.setNodeAtDepth(this.type.depth,I,i)}});else throw Error(`Unknown fieldType ${C.typeName} for fieldName ${String(B)}`)}return Object.defineProperty(g,"name",{value:A.typeName,writable:!1}),g}class xD extends cC{constructor(I,B,C){super();N(this,"type");N(this,"_rootNode");N(this,"nodes",[]);N(this,"caches");N(this,"nodesChanged",new Set);N(this,"viewsChanged",new Map);N(this,"nodesPopulated");this.type=I,this._rootNode=B,C?(this.nodes=C.nodes,this.caches=C.caches,this.nodesPopulated=C.nodesPopulated):(this.nodes=[],this.caches=[],this.nodesPopulated=!1)}get node(){return this._rootNode}get cache(){return{nodes:this.nodes,caches:this.caches,nodesPopulated:this.nodesPopulated}}commit(I=0,B=null){const C=this._rootNode.h0!==null;if(this.nodesChanged.size===0&&this.viewsChanged.size===0){!C&&B!==null&&ag(this._rootNode,I,B);return}const e=I+this.type.depth,i=B!=null&&C?B:null,t=[];for(const[l,w]of this.viewsChanged){const S=this.type.fieldsEntries[l].fieldType,u=S.commitViewDU(w,e,i);this.nodes[l]=u,t.push({index:l,node:u});const m=S.cacheOfViewDU(w);m&&(this.caches[l]=m)}for(const l of this.nodesChanged)t.push({index:l,node:this.nodes[l]});const E=t.sort((l,w)=>l.index-w.index),{indexes:c,nodes:a}=this.parseNodesChanged(E);this._rootNode=sC(this._rootNode,this.type.depth,c,a,I,C?B:null),!C&&B!==null&&ag(this._rootNode,I,B),this.nodesChanged.clear(),this.viewsChanged.clear()}parseNodesChanged(I){const B=I.map(e=>e.index),C=I.map(e=>e.node);return{indexes:B,nodes:C}}clearCache(){this.nodes=[],this.caches=[],this.nodesPopulated=!1,this.nodesChanged.clear(),this.viewsChanged.clear()}}class WD extends xD{constructor(I,B,C){super(I,B,C);N(this,"type");N(this,"_rootNode");this.type=I,this._rootNode=B}serializeToBytes(I,B){this.commit();let C=B,e=B+this.type.fixedEnd;for(let i=0;i<this.type.fieldsEntries.length;i++){const{fieldType:t}=this.type.fieldsEntries[i];let E=this.nodes[i];if(E===void 0&&(E=Yg(this._rootNode,this.type.depth,i),this.nodes[i]=E),t.fixedSize===null){if(I.dataView.setUint32(C,e-B,!0),C+=4,RI(t)){const c=t.getViewDU(E,this.caches[i]);c.serializeToBytes!==void 0?e=c.serializeToBytes(I,e):e=t.tree_serializeToBytes(I,e,E)}}else C=t.tree_serializeToBytes(I,C,E)}return e}}function VD(A){class g extends WD{}for(let I=0;I<A.fieldsEntries.length;I++){const{fieldName:B,fieldType:C}=A.fieldsEntries[I];if(MQ(C))Object.defineProperty(g.prototype,B,{configurable:!1,enumerable:!0,get:function(){let e=this.nodes[I];return e===void 0&&(e=Yg(this._rootNode,this.type.depth,I),this.nodes[I]=e),C.tree_getFromNode(e)},set:function(e){let i;this.nodesChanged.has(I)?i=this.nodes[I]:(i=(this.nodes[I]??Yg(this._rootNode,this.type.depth,I)).clone(),this.nodes[I]=i,this.nodesChanged.add(I)),C.tree_setToNode(i,e)}});else if(RI(C))Object.defineProperty(g.prototype,B,{configurable:!1,enumerable:!0,get:function(){const e=this.viewsChanged.get(I);if(e)return e;let i=this.nodes[I];i===void 0&&(i=Yg(this._rootNode,this.type.depth,I),this.nodes[I]=i);const t=C.getViewDU(i,this.caches[I]);return C.isViewMutable&&this.viewsChanged.set(I,t),t},set:function(e){this.viewsChanged.set(I,e)}});else throw Error(`Unknown fieldType ${C.typeName} for fieldName ${String(B)}`)}return Object.defineProperty(g,"name",{value:A.typeName,writable:!1}),g}const Ja={snake:A=>A.replace(/[^0-z]/g,"").replace(/[a-z][A-Z]|[0-9][A-Z]/g,g=>g[0]+"_"+g[1].toLowerCase()),constant:A=>A.replace(/[^0-z]/g,"").replace(/[a-z][A-Z]|[0-9][A-Z]/g,g=>g[0]+"_"+g[1]).toUpperCase(),pascal:A=>(A[0].toUpperCase()+A.slice(1)).replace(/[^0-z]/g,""),camel:A=>A[0].toLowerCase()+A.slice(1),header:A=>A[0].toUpperCase()+A.slice(1).replace(/[^0-z]/g,"").replace(/[a-z][A-Z]|[0-9][A-Z]/g,g=>g[0]+"-"+g[1]),eth2:A=>Ja.snake(A).replace(/(\d)$/,"_$1")};class k extends ft{constructor(I,B){var l,w;super(B==null?void 0:B.cachePermanentRootStruct);N(this,"fields");N(this,"opts");N(this,"typeName");N(this,"depth");N(this,"maxChunkCount");N(this,"fixedSize");N(this,"minSize");N(this,"maxSize");N(this,"isList",!1);N(this,"isViewMutable",!0);N(this,"fieldsEntries");N(this,"fixedEnd");N(this,"fieldsGindex");N(this,"jsonKeyToFieldName");N(this,"isFixedLen");N(this,"fieldRangesFixedLen");N(this,"variableOffsetsPosition");N(this,"TreeView");N(this,"TreeViewDU");this.fields=I,this.opts=B,this.typeName=(B==null?void 0:B.typeName)??Ma(I),this.maxChunkCount=Object.keys(I).length,this.depth=GI(this.maxChunkCount),this.fieldsEntries=[];for(const S of Object.keys(I))this.fieldsEntries.push({fieldName:S,fieldType:this.fields[S],jsonKey:gy(S,B==null?void 0:B.casingMap,B==null?void 0:B.jsonCase),gindex:vI(this.depth,BigInt(this.fieldsEntries.length))});if(this.fieldsEntries.length===0)throw Error("Container must have > 0 fields");this.fieldsGindex={};for(let S=0;S<this.fieldsEntries.length;S++)this.fieldsGindex[this.fieldsEntries[S].fieldName]=vI(this.depth,BigInt(S));this.jsonKeyToFieldName={};for(const{fieldName:S,jsonKey:u}of this.fieldsEntries)this.jsonKeyToFieldName[u]=S;const{minLen:C,maxLen:e,fixedSize:i}=Ay(I);this.minSize=C,this.maxSize=e,this.fixedSize=i;const{isFixedLen:t,fieldRangesFixedLen:E,variableOffsetsPosition:c,fixedEnd:a}=$D(I);this.isFixedLen=t,this.fieldRangesFixedLen=E,this.variableOffsetsPosition=c,this.fixedEnd=a,this.TreeView=((l=B==null?void 0:B.getContainerTreeViewClass)==null?void 0:l.call(B,this))??zD(this),this.TreeViewDU=((w=B==null?void 0:B.getContainerTreeViewDUClass)==null?void 0:w.call(B,this))??VD(this)}static named(I,B){return new(Rg(k,B.typeName))(I,B)}defaultValue(){const I={};for(const{fieldName:B,fieldType:C}of this.fieldsEntries)I[B]=C.defaultValue();return I}getView(I){return new this.TreeView(this,I)}getViewDU(I,B){return new this.TreeViewDU(this,I,B)}cacheOfViewDU(I){return I.cache}commitView(I){return I.node}commitViewDU(I,B=0,C=null){return I.commit(B,C),I.node}value_serializedSize(I){let B=0;for(let C=0;C<this.fieldsEntries.length;C++){const{fieldName:e,fieldType:i}=this.fieldsEntries[C];B+=i.fixedSize===null?4+i.value_serializedSize(I[e]):i.fixedSize}return B}value_serializeToBytes(I,B,C){let e=B,i=B+this.fixedEnd;for(let t=0;t<this.fieldsEntries.length;t++){const{fieldName:E,fieldType:c}=this.fieldsEntries[t];c.fixedSize===null?(I.dataView.setUint32(e,i-B,!0),e+=4,i=c.value_serializeToBytes(I,i,C[E])):e=c.value_serializeToBytes(I,e,C[E])}return i}value_deserializeFromBytes(I,B,C){const e=this.getFieldRanges(I.dataView,B,C),i={};for(let t=0;t<this.fieldsEntries.length;t++){const{fieldName:E,fieldType:c}=this.fieldsEntries[t],a=e[t];i[E]=c.value_deserializeFromBytes(I,B+a.start,B+a.end)}return i}tree_serializedSize(I){let B=0;const C=sg(I,this.depth,0,this.fieldsEntries.length);for(let e=0;e<this.fieldsEntries.length;e++){const{fieldType:i}=this.fieldsEntries[e],t=C[e];B+=i.fixedSize===null?4+i.tree_serializedSize(t):i.fixedSize}return B}tree_serializeToBytes(I,B,C){let e=B,i=B+this.fixedEnd;const t=sg(C,this.depth,0,this.fieldsEntries.length);for(let E=0;E<this.fieldsEntries.length;E++){const{fieldType:c}=this.fieldsEntries[E],a=t[E];c.fixedSize===null?(I.dataView.setUint32(e,i-B,!0),e+=4,i=c.tree_serializeToBytes(I,i,a)):e=c.tree_serializeToBytes(I,e,a)}return i}tree_deserializeFromBytes(I,B,C){const e=this.getFieldRanges(I.dataView,B,C),i=new Array(this.fieldsEntries.length);for(let t=0;t<this.fieldsEntries.length;t++){const{fieldType:E}=this.fieldsEntries[t],c=e[t];i[t]=E.tree_deserializeFromBytes(I,B+c.start,B+c.end)}return oC(i,this.depth)}getRoots(I){const B=new Array(this.fieldsEntries.length);for(let C=0;C<this.fieldsEntries.length;C++){const{fieldName:e,fieldType:i}=this.fieldsEntries[C];B[C]=i.hashTreeRoot(I[e])}return B}getPropertyGindex(I){const B=this.fieldsGindex[I]??this.fieldsGindex[this.jsonKeyToFieldName[I]];if(B===void 0)throw Error(`Unknown container property ${I}`);return B}getPropertyType(I){const B=this.fields[I]??this.fields[this.jsonKeyToFieldName[I]];if(B===void 0)throw Error(`Unknown container property ${I}`);return B}getIndexProperty(I){return I>=this.fieldsEntries.length?null:this.fieldsEntries[I].fieldName}tree_getLeafGindices(I,B){const C=[];for(let e=0;e<this.fieldsEntries.length;e++){const{fieldName:i,fieldType:t}=this.fieldsEntries[e],E=this.fieldsGindex[i],c=dI([I,E]);if(t.isBasic)C.push(c);else{const a=t;if(t.fixedSize===null){if(!B)throw new Error("variable type requires tree argument to get leaves");C.push(...a.tree_getLeafGindices(c,aC(B,E)))}else C.push(...a.tree_getLeafGindices(c))}}return C}fromJson(I){if(typeof I!="object")throw Error("JSON must be of type object");if(I===null)throw Error("JSON must not be null");const B={};for(let C=0;C<this.fieldsEntries.length;C++){const{fieldName:e,fieldType:i,jsonKey:t}=this.fieldsEntries[C],E=I[t];if(E===void 0)throw Error(`JSON expected key ${t} is undefined`);B[e]=i.fromJson(E)}return B}toJson(I){const B={};for(let C=0;C<this.fieldsEntries.length;C++){const{fieldName:e,fieldType:i,jsonKey:t}=this.fieldsEntries[C];B[t]=i.toJson(I[e])}return B}clone(I){const B={};for(let C=0;C<this.fieldsEntries.length;C++){const{fieldName:e,fieldType:i}=this.fieldsEntries[C];B[e]=i.clone(I[e])}return B}equals(I,B){for(let C=0;C<this.fieldsEntries.length;C++){const{fieldName:e,fieldType:i}=this.fieldsEntries[C];if(!i.equals(I[e],B[e]))return!1}return!0}getFieldRanges(I,B,C){if(this.variableOffsetsPosition.length===0){const c=C-B;if(c!==this.fixedEnd)throw Error(`${this.typeName} size ${c} not equal fixed size ${this.fixedEnd}`);return this.fieldRangesFixedLen}const e=XD(I,B,C,this.fixedEnd,this.variableOffsetsPosition);e.push(C-B);let i=0,t=0;const E=new Array(this.isFixedLen.length);for(let c=0;c<this.isFixedLen.length;c++)this.isFixedLen[c]?E[c]=this.fieldRangesFixedLen[t++]:(E[c]={start:e[i],end:e[i+1]},i++);return E}}function XD(A,g,I,B,C){const e=I-g,i=new Array(C.length);for(let t=0;t<C.length;t++){const E=A.getUint32(g+C[t],!0);if(E>e)throw new Error(`Offset out of bounds ${E} > ${e}`);if(t===0){if(E!==B)throw new Error(`First offset must equal to fixedEnd ${E} != ${B}`)}else if(E<i[t-1])throw new Error(`Offsets must be increasing ${E} < ${i[t-1]}`);i[t]=E}return i}function $D(A){const g=[],I=[],B=[];let C=0;for(const e of Object.values(A))g.push(e.fixedSize!==null),e.fixedSize===null?(B.push(C),C+=4):(I.push({start:C,end:C+e.fixedSize}),C+=e.fixedSize);return{isFixedLen:g,fieldRangesFixedLen:I,variableOffsetsPosition:B,fixedEnd:C}}function Ay(A){let g=0,I=0,B=0;for(const C of Object.values(A))g+=C.minSize,I+=C.maxSize,C.fixedSize===null?(g+=4,I+=4,B=null):B!==null&&(B+=C.fixedSize);return{minLen:g,maxLen:I,fixedSize:B}}function gy(A,g,I){if(g){const B=g[A];if(B===void 0)throw Error(`casingMap[${String(A)}] not defined`);return B}else return I?Ja[I](A):A}function Ma(A,g="Container"){const I=Object.keys(A).map(B=>`${String(B)}: ${A[B].typeName}`).join(", ");return`${g}({${I}})`}class hC extends fQ{constructor(I,B){super(null,0,0,0,0,0,0,0);N(this,"valueToNode");N(this,"value");this.valueToNode=I,this.value=B}get rootHashObject(){if(this.h0===null){const I=this.valueToNode(this.value);super.applyHash(I.rootHashObject)}return this}get root(){return QC(this.rootHashObject)}get left(){return this.valueToNode(this.value).left}get right(){return this.valueToNode(this.value).right}isLeaf(){return!1}}class Iy extends Qe{constructor(I,B){super();N(this,"type");N(this,"tree");this.type=I,this.tree=B}get node(){return this.tree.rootNode}}function By(A){class g extends Iy{}for(let I=0;I<A.fieldsEntries.length;I++){const{fieldName:B,fieldType:C}=A.fieldsEntries[I];if(C.isBasic)Object.defineProperty(g.prototype,B,{configurable:!1,enumerable:!0,get:function(){return this.tree.rootNode.value[B]},set:function(e){const i=this.tree.rootNode,t=this.type.clone(i.value);t[B]=e,this.tree.rootNode=new hC(i.valueToNode,t)}});else if(RI(C))Object.defineProperty(g.prototype,B,{configurable:!1,enumerable:!0,get:function(){const{value:e}=this.tree.rootNode;return C.toView(e[B])},set:function(e){const i=this.tree.rootNode,t=this.type.clone(i.value);t[B]=C.toValueFromView(e),this.tree.rootNode=new hC(i.valueToNode,t)}});else throw Error(`Unknown fieldType ${C.typeName} for fieldName ${String(B)}`)}return Object.defineProperty(g,"name",{value:A.typeName,writable:!1}),g}class ey extends cC{constructor(I,B){super();N(this,"type");N(this,"valueChanged",null);N(this,"_rootNode");this.type=I,this._rootNode=B}get node(){return this._rootNode}get cache(){}get value(){return this.valueChanged??this._rootNode.value}commit(I,B=null){if(this.valueChanged!==null){const C=this.valueChanged;this.valueChanged=null,this._rootNode=this.type.value_toTree(C)}this._rootNode.h0===null&&B!==null&&this._rootNode.rootHashObject}clearCache(){this.valueChanged=null}}function Cy(A){class g extends ey{}for(let I=0;I<A.fieldsEntries.length;I++){const{fieldName:B,fieldType:C}=A.fieldsEntries[I];if(C.isBasic)Object.defineProperty(g.prototype,B,{configurable:!1,enumerable:!0,get:function(){return(this.valueChanged||this._rootNode.value)[B]},set:function(e){this.valueChanged===null&&(this.valueChanged=this.type.clone(this._rootNode.value)),this.valueChanged[B]=e}});else if(RI(C))Object.defineProperty(g.prototype,B,{configurable:!1,enumerable:!0,get:function(){const e=this.valueChanged||this._rootNode.value;return C.toViewDU(e[B])},set:function(e){this.valueChanged===null&&(this.valueChanged=this.type.clone(this._rootNode.value));const i=C.toValueFromViewDU(e);this.valueChanged[B]=i}});else throw Error(`Unknown fieldType ${C.typeName} for fieldName ${String(B)}`)}return Object.defineProperty(g,"name",{value:A.typeName,writable:!1}),g}class ty extends k{constructor(I,B){super(I,{typeName:(B==null?void 0:B.typeName)??Ma(I,"ContainerNodeStruct"),...B,getContainerTreeViewClass:By,getContainerTreeViewDUClass:Cy});N(this,"fields");this.fields=I;for(const{fieldName:C,fieldType:e}of this.fieldsEntries)if(RI(e)&&e.isViewMutable)throw Error(`ContainerNodeStructType field '${String(C)}' ${e.typeName} view is mutable`)}static named(I,B){return new(Rg(k,B.typeName))(I,B)}tree_serializedSize(I){return this.value_serializedSize(I.value)}tree_serializeToBytes(I,B,C){const{value:e}=C;return this.value_serializeToBytes(I,B,e)}tree_deserializeFromBytes(I,B,C){const e=this.value_deserializeFromBytes(I,B,C);return new hC(this.valueToTree.bind(this),e)}getPropertyGindex(){return null}tree_fromProofNode(I){const B=new Uint8Array(super.tree_serializedSize(I)),C=new DataView(B.buffer,B.byteOffset,B.byteLength);super.tree_serializeToBytes({uint8Array:B,dataView:C},0,I);const e=this.value_deserializeFromBytes({uint8Array:B,dataView:C},0,B.length);return{node:new hC(this.valueToTree.bind(this),e),done:!0}}tree_toValue(I){return I.value}value_toTree(I){return new hC(this.valueToTree.bind(this),I)}valueToTree(I){const B=new Uint8Array(this.value_serializedSize(I)),C=new DataView(B.buffer,B.byteOffset,B.byteLength);return this.value_serializeToBytes({uint8Array:B,dataView:C},0,I),super.tree_deserializeFromBytes({uint8Array:B,dataView:C},0,B.length)}}class qa extends Qe{constructor(I,B){super();N(this,"type");N(this,"tree");this.type=I,this.tree=B}get length(){return this.type.tree_getLength(this.tree.rootNode)}get node(){return this.tree.rootNode}get(I){const B=Math.floor(I/this.type.itemsPerChunk),C=this.tree.getNodeAtDepth(this.type.depth,B);return this.type.elementType.tree_getFromPackedNode(C,I)}set(I,B){const C=this.length;if(I>=C)throw Error(`Error setting index over length ${I} > ${C}`);const e=Math.floor(I/this.type.itemsPerChunk),i=this.tree.getNodeAtDepth(this.type.depth,e).clone();this.type.elementType.tree_setToPackedNode(i,I,B),this.tree.setNodeAtDepth(this.type.depth,e,i)}getAll(){const I=this.length,B=this.type.tree_getChunksNode(this.node),C=Math.ceil(I/this.type.itemsPerChunk),e=sg(B,this.type.chunkDepth,0,C),i=new Array(I),t=this.type.itemsPerChunk,E=Math.floor(I/t),c=I%t;for(let a=0;a<E;a++){const l=e[a];for(let w=0;w<t;w++)i[a*t+w]=this.type.elementType.tree_getFromPackedNode(l,w)}if(c>0){const a=e[E];for(let l=0;l<c;l++)i[E*t+l]=this.type.elementType.tree_getFromPackedNode(a,l)}return i}}class iy extends qa{constructor(I,B){super(I,B);N(this,"type");N(this,"tree");this.type=I,this.tree=B}push(I){const B=this.length;if(B>=this.type.limit)throw Error("Error pushing over limit");if(this.type.tree_setLength(this.tree,B+1),B%this.type.itemsPerChunk===0){const C=TA.fromZero();this.type.elementType.tree_setToPackedNode(C,B,I);const e=Math.floor(B/this.type.itemsPerChunk);this.tree.setNodeAtDepth(this.type.depth,e,C)}else this.set(B,I)}}class Ka extends cC{constructor(I,B,C){super();N(this,"type");N(this,"_rootNode");N(this,"nodes");N(this,"nodesChanged",new Set);N(this,"_length");N(this,"dirtyLength",!1);N(this,"nodesPopulated");this.type=I,this._rootNode=B,C?(this.nodes=C.nodes,this._length=C.length,this.nodesPopulated=C.nodesPopulated):(this.nodes=[],this._length=this.type.tree_getLength(B),this.nodesPopulated=!1)}get length(){return this._length}get node(){return this._rootNode}get cache(){return{nodes:this.nodes,length:this._length,nodesPopulated:this.nodesPopulated}}get(I){const B=Math.floor(I/this.type.itemsPerChunk);let C=this.nodes[B];return C===void 0&&(C=Yg(this._rootNode,this.type.depth,B),this.nodes[B]=C),this.type.elementType.tree_getFromPackedNode(C,I)}set(I,B){if(I>=this._length)throw Error(`Error setting index over length ${I} > ${this._length}`);const C=Math.floor(I/this.type.itemsPerChunk);let e;this.nodesChanged.has(C)?e=this.nodes[C]:(e=(this.nodes[C]??Yg(this._rootNode,this.type.depth,C)).clone(),this.nodes[C]=e,this.nodesChanged.add(C)),this.type.elementType.tree_setToPackedNode(e,I,B)}getAll(){if(!this.nodesPopulated){const i=this.nodes,t=this.type.tree_getChunksNode(this.node),E=Math.ceil(this._length/this.type.itemsPerChunk);this.nodes=sg(t,this.type.chunkDepth,0,E);for(const c of this.nodesChanged)this.nodes[c]=i[c];this.nodesPopulated=!0}const I=new Array(this._length),B=this.type.itemsPerChunk,C=Math.floor(this._length/B),e=this._length%B;for(let i=0;i<C;i++){const t=this.nodes[i];for(let E=0;E<B;E++)I[i*B+E]=this.type.elementType.tree_getFromPackedNode(t,E)}if(e>0){const i=this.nodes[C];for(let t=0;t<e;t++)I[C*B+t]=this.type.elementType.tree_getFromPackedNode(i,t)}return I}commit(I=0,B=null){const C=this._rootNode.h0!==null;if(this.nodesChanged.size===0){!C&&B!==null&&ag(this._rootNode,I,B);return}const e=Array.from(this.nodesChanged.keys()).sort((l,w)=>l-w),i=new Array(e.length);for(let l=0;l<e.length;l++)i[l]=this.nodes[e[l]];const t=this.type.tree_getChunksNode(this._rootNode),E=I+this.type.tree_chunksNodeOffset(),c=B!=null&&C?B:null,a=sC(t,this.type.chunkDepth,e,i,E,c);this._rootNode=this.type.tree_setChunksNode(this._rootNode,a,this.dirtyLength?this._length:null,I,C?B:null),!C&&B!==null&&ag(this._rootNode,I,B),this.nodesChanged.clear(),this.dirtyLength=!1}clearCache(){this.nodes=[],this.nodesPopulated=!1,this.nodesChanged.clear(),this.dirtyLength&&(this._length=this.type.tree_getLength(this._rootNode),this.dirtyLength=!1)}}class Qy extends Ka{constructor(I,B,C){super(I,B,C);N(this,"type");N(this,"_rootNode");this.type=I,this._rootNode=B}push(I){if(this._length>=this.type.limit)throw Error("Error pushing over limit");this.dirtyLength=!0;const B=this._length++;if(B%this.type.itemsPerChunk===0){const C=Math.floor(B/this.type.itemsPerChunk);this.nodes[C]=uB(0)}this.set(B,I)}sliceTo(I){if(I<0)throw new Error(`Does not support sliceTo() with negative index ${I}`);if(this.commit(),I>=this._length-1)return this;const B=this._rootNode,C=Math.floor(I/this.type.itemsPerChunk),e=this.nodes[C]??Yg(B,this.type.depth,C),i=TA.fromZero();for(let l=C*this.type.itemsPerChunk;l<=I;l++){const w=this.type.elementType.tree_getFromPackedNode(e,l);this.type.elementType.tree_setToPackedNode(i,l,w)}const t=this.type.tree_getChunksNode(this._rootNode);let E=sC(t,this.type.chunkDepth,[C],[i]);E=ca(E,this.type.chunkDepth,C);const c=I+1,a=this.type.tree_setChunksNode(B,E,c);return this.type.getViewDU(a)}serializeToBytes(I,B){this.commit();const{nodes:C,nodesPopulated:e}=this.cache,i=this.type.tree_getChunksNode(this._rootNode);return LQ(this.type.elementType,this._length,this.type.chunkDepth,I,B,i,e?C:null)}}class dt extends ft{constructor(I,B){super(B);N(this,"elementType");this.elementType=I}defaultValue(){return vD(this.elementType,this.defaultLen)}getPropertyType(){return this.elementType}getPropertyGindex(I){if(typeof I!="number")throw Error(`Invalid array index: ${I}`);const B=Math.floor(I/this.itemsPerChunk);return vI(this.depth,BigInt(B))}getIndexProperty(I){return I}tree_getLeafGindices(I,B){let C;if(this.isList){if(!B)throw new Error("List type requires tree argument to get leaves");C=this.tree_getLength(B)}else C=this.tree_getLength(null);const e=[];if(RI(this.elementType)){const i=vI(this.depth,BigInt(0)),t=i+BigInt(C),E=dI([I,i]);if(this.elementType.fixedSize===null){if(!B)throw new Error("Array of variable size requires tree argument to get leaves");for(let c=i,a=E;c<t;c++,a++)e.push(...this.elementType.tree_getLeafGindices(a,aC(B,c)))}else for(let c=0,a=E;c<C;c++,a++)e.push(...this.elementType.tree_getLeafGindices(a))}else{const i=Math.ceil(C/this.itemsPerChunk),t=dI([I,vI(this.depth,BigInt(0))]),E=t+BigInt(i);for(let c=t;c<E;c++)e.push(c)}return this.isList&&e.push(dI([I,JQ])),e}fromJson(I){return KD(this.elementType,I,this)}toJson(I){return YD(this.elementType,I,this)}clone(I){return bD(this.elementType,I)}equals(I,B){return TD(this.elementType,I,B)}}class zI extends dt{constructor(I,B,C){super(I,C==null?void 0:C.cachePermanentRootStruct);N(this,"elementType");N(this,"limit");N(this,"typeName");N(this,"itemsPerChunk");N(this,"depth");N(this,"chunkDepth");N(this,"maxChunkCount");N(this,"fixedSize",null);N(this,"minSize");N(this,"maxSize");N(this,"isList",!0);N(this,"isViewMutable",!0);N(this,"defaultLen",0);if(this.elementType=I,this.limit=B,!I.isBasic)throw Error("elementType must be basic");if(B===0)throw Error("List limit must be > 0");this.typeName=(C==null?void 0:C.typeName)??`List[${I.typeName}, ${B}]`,this.itemsPerChunk=32/I.byteLength,this.maxChunkCount=Math.ceil(this.limit*I.byteLength/32),this.chunkDepth=GI(this.maxChunkCount),this.depth=this.chunkDepth+1,this.minSize=0,this.maxSize=this.limit*I.maxSize}static named(I,B,C){return new(Rg(zI,C.typeName))(I,B,C)}getView(I){return new iy(this,I)}getViewDU(I,B){return new Qy(this,I,B)}commitView(I){return I.node}commitViewDU(I,B=0,C=null){return I.commit(B,C),I.node}cacheOfViewDU(I){return I.cache}value_serializedSize(I){return I.length*this.elementType.byteLength}value_serializeToBytes(I,B,C){return wt(this.elementType,C.length,I,B,C)}value_deserializeFromBytes(I,B,C){return fa(this.elementType,I,B,C,this)}tree_serializedSize(I){return this.tree_getLength(I)*this.elementType.byteLength}tree_serializeToBytes(I,B,C){const e=this.tree_getChunksNode(C),i=this.tree_getLength(C);return LQ(this.elementType,i,this.chunkDepth,I,B,e)}tree_deserializeFromBytes(I,B,C){return pa(this.elementType,this.chunkDepth,I,B,C,this)}tree_getLength(I){return I.right.getUint(4,0)}tree_setLength(I,B){I.rootNode=dB(I.rootNode.left,B)}tree_getChunksNode(I){return I.left}tree_chunksNodeOffset(){return 1}tree_setChunksNode(I,B,C,e=0,i=null){return ua(I,B,C,e,i)}hashTreeRoot(I){if(this.cachePermanentRootStruct){const C=I[pB];if(C)return C}const B=St(super.hashTreeRoot(I),I.length);return this.cachePermanentRootStruct&&(I[pB]=B),B}getRoots(I){const B=new Uint8Array(this.value_serializedSize(I)),C=new DataView(B.buffer,B.byteOffset,B.byteLength);return wt(this.elementType,I.length,{uint8Array:B,dataView:C},0,I),ht(B)}}function Ey(A,g){return A.fixedSize===null?g*(4+A.minSize):g*A.minSize}function Ya(A,g){return A.fixedSize===null?g*(4+A.maxSize):g*A.maxSize}function ba(A,g,I){if(A.fixedSize===null){let B=0;for(let C=0;C<g;C++)B+=4+A.value_serializedSize(I[C]);return B}else return g*A.fixedSize}function Ta(A,g,I,B,C){if(A.fixedSize===null){let e=B+g*4;for(let i=0;i<g;i++)I.dataView.setUint32(B+i*4,e-B,!0),e=A.value_serializeToBytes(I,e,C[i]);return e}else{for(let e=0;e<g;e++)A.value_serializeToBytes(I,B+e*A.fixedSize,C[e]);return B+g*A.fixedSize}}function va(A,g,I,B,C){const e=ja(A.fixedSize,g.dataView,I,B,C),i=e.length,t=new Array(i);for(let E=0;E<i;E++){const c=I+e[E],a=E===i-1?B:I+e[E+1];t[E]=A.value_deserializeFromBytes(g,c,a)}return t}function _a(A,g,I,B){if(A.fixedSize===null){const C=sg(B,I,0,g);let e=0;for(let i=0;i<C.length;i++)e+=4+A.tree_serializedSize(C[i]);return e}else return g*A.fixedSize}function KQ(A,g,I,B,C,e,i=null){const t=i??sg(B,I,0,g);if(A.fixedSize===null){let E=e+g*4;const{dataView:c}=C;for(let a=0;a<t.length;a++)c.setUint32(e+a*4,E-e,!0),E=A.tree_serializeToBytes(C,E,t[a]);return E}else{for(let E=0;E<t.length;E++)e=A.tree_serializeToBytes(C,e,t[E]);return e}}function Oa(A,g,I,B,C,e){const i=ja(A.fixedSize,I.dataView,B,C,e),t=i.length,E=new Array(t);for(let a=0;a<t;a++){const l=B+i[a],w=a===t-1?C:B+i[a+1];E[a]=A.tree_deserializeFromBytes(I,l,w)}const c=oC(E,g);return e.isList?dB(c,t):c}function Za(A,g,I){const B=new Array(g);for(let C=0;C<g;C++)B[C]=A.hashTreeRoot(I[C]);return B}function ja(A,g,I,B,C){const e=B-I;let i;if(A===null)i=oy(g,I,e);else{if(A===0)throw Error("element fixed length is 0");if(e%A!==0)throw Error(`size ${e} is not multiple of element fixedSize ${A}`);const t=e/A;i=new Uint32Array(t);for(let E=0;E<t;E++)i[E]=E*A}return Dt(i.length,C),i}function oy(A,g,I){if(I===0)return new Uint32Array(0);const B=A.getUint32(g,!0),C=B;if(B===0)throw Error("First offset must be > 0");if(C%4!==0)throw Error("Offset data length not multiple of 4");const e=C/4,i=new Uint32Array(e);i[0]=B;for(let t=1;t<e;t++){const E=A.getUint32(g+t*4,!0);if(i[t]=E,E>I)throw new Error(`Offset out of bounds ${E} > ${I}`);if(E<i[t-1])throw new Error(`Offsets must be increasing ${E} < ${i[t-1]}`)}return i}class Pa extends Qe{constructor(I,B){super();N(this,"type");N(this,"tree");this.type=I,this.tree=B}get length(){return this.type.tree_getLength(this.tree.rootNode)}get node(){return this.tree.rootNode}get(I){const B=cQ(this.type.depth,I),C=this.tree.getSubtree(B);return this.type.elementType.getView(C)}getReadonly(I){const B=cQ(this.type.depth,I),C=new kg(this.tree.getNode(B));return this.type.elementType.getView(C)}set(I,B){const C=this.length;if(I>=C)throw Error(`Error setting index over length ${I} > ${C}`);const e=this.type.elementType.commitView(B);this.tree.setNodeAtDepth(this.type.depth,I,e)}getAllReadonly(){const I=this.length,B=this.type.tree_getChunksNode(this.node),C=sg(B,this.type.chunkDepth,0,I),e=new Array(I);for(let i=0;i<I;i++)e[i]=this.type.elementType.getView(new kg(C[i]));return e}getAllReadonlyValues(){const I=this.length,B=this.type.tree_getChunksNode(this.node),C=sg(B,this.type.chunkDepth,0,I),e=new Array(I);for(let i=0;i<I;i++)e[i]=this.type.elementType.tree_toValue(C[i]);return e}}class ny extends Pa{constructor(I,B){super(I,B);N(this,"type");N(this,"tree");this.type=I,this.tree=B}push(I){const B=this.length;if(B>=this.type.limit)throw Error("Error pushing over limit");this.type.tree_setLength(this.tree,B+1),this.set(B,I)}}class za extends cC{constructor(I,B,C){super();N(this,"type");N(this,"_rootNode");N(this,"nodes");N(this,"caches");N(this,"viewsChanged",new Map);N(this,"_length");N(this,"dirtyLength",!1);N(this,"nodesPopulated");this.type=I,this._rootNode=B,C?(this.nodes=C.nodes,this.caches=C.caches,this._length=C.length,this.nodesPopulated=C.nodesPopulated):(this.nodes=[],this.caches=[],this._length=this.type.tree_getLength(B),this.nodesPopulated=this._length===0)}get length(){return this._length}get node(){return this._rootNode}get cache(){return{nodes:this.nodes,caches:this.caches,length:this._length,nodesPopulated:this.nodesPopulated}}get(I){const B=this.viewsChanged.get(I);if(B)return B;let C=this.nodes[I];C===void 0&&(C=Yg(this._rootNode,this.type.depth,I),this.nodes[I]=C);const e=this.type.elementType.getViewDU(C,this.caches[I]);return this.type.elementType.isViewMutable&&this.viewsChanged.set(I,e),e}getReadonly(I){const B=this.viewsChanged.get(I);if(B)return B;let C=this.nodes[I];return C===void 0&&(C=Yg(this._rootNode,this.type.depth,I),this.nodes[I]=C),this.type.elementType.getViewDU(C,this.caches[I])}set(I,B){if(I>=this._length)throw Error(`Error setting index over length ${I} > ${this._length}`);this.viewsChanged.set(I,B)}getAllReadonly(){this.populateAllOldNodes();const I=new Array(this._length);for(let B=0;B<this._length;B++)I[B]=this.getReadonly(B);return I}getAllReadonlyValues(){this.populateAllNodes();const I=new Array(this._length);for(let B=0;B<this._length;B++)I[B]=this.type.elementType.tree_toValue(this.nodes[B]);return I}commit(I=0,B=null){const C=this._rootNode.h0!==null;if(this.viewsChanged.size===0){!C&&B!==null&&ag(this._rootNode,I,B);return}const e=I+this.type.depth,i=B!=null&&C?B:null,t=[];for(const[m,L]of this.viewsChanged){const p=this.type.elementType.commitViewDU(L,e,i);this.nodes[m]=p,t.push({index:m,node:p});const F=this.type.elementType.cacheOfViewDU(L);F&&(this.caches[m]=F)}const E=t.sort((m,L)=>m.index-L.index),c=E.map(m=>m.index),a=E.map(m=>m.node),l=this.type.tree_getChunksNode(this._rootNode),w=I+this.type.tree_chunksNodeOffset(),S=B!=null&&C?B:null,u=sC(l,this.type.chunkDepth,c,a,w,S);this._rootNode=this.type.tree_setChunksNode(this._rootNode,u,this.dirtyLength?this._length:null,I,B),!C&&B!==null&&ag(this._rootNode,I,B),this.viewsChanged.clear(),this.dirtyLength=!1}clearCache(){this.nodes=[],this.caches=[],this.nodesPopulated=!1,this.viewsChanged.clear(),this.dirtyLength&&(this._length=this.type.tree_getLength(this._rootNode),this.dirtyLength=!1)}populateAllNodes(){if(this.viewsChanged.size>0)throw Error("Must commit changes before reading all nodes");this.nodesPopulated||(this.nodes=sg(this._rootNode,this.type.depth,0,this.length),this.nodesPopulated=!0)}populateAllOldNodes(){if(!this.nodesPopulated){const I=this.dirtyLength?this.type.tree_getLength(this._rootNode):this._length;this.nodes=sg(this._rootNode,this.type.depth,0,I),this.nodesPopulated=!0}}}function ry(A){return{finalized:[],count:0,root:UQ(ZI(A),ZI(0))}}class ay extends za{constructor(I,B,C){super(I,B,C);N(this,"type");N(this,"_rootNode");this.type=I,this._rootNode=B}push(I){if(this._length>=this.type.limit)throw Error("Error pushing over limit");this.dirtyLength=!0;const B=this._length++;this.set(B,I)}sliceTo(I){this.commit();const B=this._rootNode,C=this._length;if(I>=C-1)return this;const e=this.type.tree_getChunksNode(B),i=ca(e,this.type.chunkDepth,I),t=I+1,E=this.type.tree_setChunksNode(B,i,t);return this.rootNodeToViewDU(E)}sliceFrom(I){if(this.commit(),this.populateAllNodes(),I<0&&(I+=this.nodes.length),I<=0)return this;let B,C;if(I>=this.nodes.length)B=uB(this.type.chunkDepth),C=0;else{const i=this.nodes.slice(I);B=oC(i,this.type.chunkDepth),C=i.length}const e=this.type.tree_setChunksNode(this._rootNode,B,C);return this.rootNodeToViewDU(e)}toSnapshot(I){if(this.commit(),I<0||I>this._length)throw Error(`Invalid count ${I}, length is ${this._length}`);if(I===0)return ry(this.type.chunkDepth);const B=this.sliceTo(I-1)._rootNode,C=this.type.tree_getChunksNode(B);return{...HD(C,this.type.chunkDepth,I),root:B.root}}serializeToBytes(I,B){this.commit(),this.populateAllNodes();const C=this.type.tree_getChunksNode(this._rootNode);return KQ(this.type.elementType,this._length,this.type.chunkDepth,C,I,B,this.nodes)}rootNodeToViewDU(I){return this.type.getViewDU(I)}}class DA extends dt{constructor(I,B,C){super(I,C==null?void 0:C.cachePermanentRootStruct);N(this,"elementType");N(this,"limit");N(this,"typeName");N(this,"itemsPerChunk",1);N(this,"depth");N(this,"chunkDepth");N(this,"maxChunkCount");N(this,"fixedSize",null);N(this,"minSize");N(this,"maxSize");N(this,"isList",!0);N(this,"isViewMutable",!0);N(this,"defaultLen",0);if(this.elementType=I,this.limit=B,I.isBasic)throw Error("elementType must not be basic");if(B===0)throw Error("List limit must be > 0");this.typeName=(C==null?void 0:C.typeName)??`List[${I.typeName}, ${B}]`,this.maxChunkCount=this.limit,this.chunkDepth=GI(this.maxChunkCount),this.depth=this.chunkDepth+1,this.minSize=0,this.maxSize=Ya(I,this.limit)}static named(I,B,C){return new(Rg(DA,C.typeName))(I,B,C)}getView(I){return new ny(this,I)}getViewDU(I,B){return new ay(this,I,B)}commitView(I){return I.node}commitViewDU(I,B=0,C=null){return I.commit(B,C),I.node}cacheOfViewDU(I){return I.cache}value_serializedSize(I){return ba(this.elementType,I.length,I)}value_serializeToBytes(I,B,C){return Ta(this.elementType,C.length,I,B,C)}value_deserializeFromBytes(I,B,C){return va(this.elementType,I,B,C,this)}tree_serializedSize(I){const B=this.tree_getChunksNode(I),C=this.tree_getLength(I);return _a(this.elementType,C,this.chunkDepth,B)}tree_serializeToBytes(I,B,C){const e=this.tree_getChunksNode(C),i=this.tree_getLength(C);return KQ(this.elementType,i,this.chunkDepth,e,I,B)}tree_deserializeFromBytes(I,B,C){return Oa(this.elementType,this.chunkDepth,I,B,C,this)}tree_getLength(I){return FB(I)}tree_setLength(I,B){I.rootNode=dB(I.rootNode.left,B)}tree_getChunksNode(I){return I.left}tree_chunksNodeOffset(){return 1}tree_setChunksNode(I,B,C,e=0,i=null){return ua(I,B,C,e,i)}hashTreeRoot(I){if(this.cachePermanentRootStruct){const C=I[pB];if(C)return C}const B=St(super.hashTreeRoot(I),I.length);return this.cachePermanentRootStruct&&(I[pB]=B),B}getRoots(I){return Za(this.elementType,I.length,I)}}const sy=BigInt(Number.MAX_SAFE_INTEGER),YQ=BigInt(2)**BigInt(64),cy=BigInt(2)**BigInt(128),ly=BigInt(2)**BigInt(192),xa=2**32,Wa=4294967295;class sI extends Ft{constructor(I,B){super();N(this,"byteLength");N(this,"typeName");N(this,"itemsPerChunk");N(this,"fixedSize");N(this,"minSize");N(this,"maxSize");N(this,"maxDecimalStr");N(this,"clipInfinity");N(this,"setBitwiseOR");if(this.byteLength=I,I>8)throw Error("UintNumber byteLength limit is 8");if(Math.log2(I)%1!==0)throw Error("byteLength must be a power of 2");this.typeName=(B==null?void 0:B.typeName)??`uint${I*8}`,B!=null&&B.clipInfinity&&(this.typeName+="Inf"),B!=null&&B.setBitwiseOR&&(this.typeName+="OR"),this.itemsPerChunk=32/this.byteLength,this.fixedSize=I,this.minSize=I,this.maxSize=I,this.maxDecimalStr=(BigInt(2)**BigInt(this.byteLength*8)-BigInt(1)).toString(10),this.clipInfinity=(B==null?void 0:B.clipInfinity)===!0,this.setBitwiseOR=(B==null?void 0:B.setBitwiseOR)===!0}static named(I,B){return new(Rg(sI,B.typeName))(I,B)}defaultValue(){return 0}value_serializeToBytes({dataView:I},B,C){switch(this.byteLength){case 1:I.setInt8(B,C);break;case 2:I.setUint16(B,C,!0);break;case 4:I.setUint32(B,C,!0);break;case 8:C===1/0?(I.setUint32(B,4294967295),I.setUint32(B+4,4294967295)):(I.setUint32(B,C&4294967295,!0),I.setUint32(B+4,C/xa&4294967295,!0));break}return B+this.byteLength}value_deserializeFromBytes({dataView:I},B,C){switch(this.assertValidSize(C-B),this.byteLength){case 1:return I.getUint8(B);case 2:return I.getUint16(B,!0);case 4:return I.getUint32(B,!0);case 8:{const e=I.getUint32(B,!0),i=I.getUint32(B+4,!0);return i===Wa&&e===Wa&&this.clipInfinity?1/0:i*xa+e}}}tree_serializeToBytes(I,B,C){const e=C.getUint(this.byteLength,0,this.clipInfinity);return this.value_serializeToBytes(I,B,e),B+this.byteLength}tree_deserializeFromBytes(I,B,C){this.assertValidSize(C-B);const e=this.value_deserializeFromBytes(I,B,C),i=TA.fromZero();return i.setUint(this.byteLength,0,e,this.clipInfinity),i}tree_getFromNode(I){return I.getUint(this.byteLength,0,this.clipInfinity)}tree_setToNode(I,B){this.tree_setToPackedNode(I,0,B)}tree_getFromPackedNode(I,B){const C=this.byteLength*(B%this.itemsPerChunk);return I.getUint(this.byteLength,C,this.clipInfinity)}tree_setToPackedNode(I,B,C){const e=this.byteLength*(B%this.itemsPerChunk);this.setBitwiseOR?I.bitwiseOrUint(this.byteLength,e,C):I.setUint(this.byteLength,e,C,this.clipInfinity)}fromJson(I){if(typeof I=="number")return I;if(typeof I=="string"){if(this.clipInfinity&&I===this.maxDecimalStr)return 1/0;{const B=parseInt(I,10);if(isNaN(B))throw Error("JSON invalid number isNaN");if(B>Number.MAX_SAFE_INTEGER)throw Error("JSON invalid number > MAX_SAFE_INTEGER");return B}}else if(typeof I=="bigint"){if(I>sy)throw Error("JSON invalid number > MAX_SAFE_INTEGER_BN");return Number(I)}else throw Error(`JSON invalid type ${typeof I} expected number`)}toJson(I){return I===1/0?this.maxDecimalStr:I.toString(10)}}class SC extends Ft{constructor(I,B){super();N(this,"byteLength");N(this,"typeName");N(this,"itemsPerChunk");N(this,"fixedSize");N(this,"minSize");N(this,"maxSize");if(this.byteLength=I,I>32)throw Error("UintBigint byteLength limit is 32");if(Math.log2(I)%1!==0)throw Error("byteLength must be a power of 2");this.typeName=(B==null?void 0:B.typeName)??`uintBigint${I*8}`,this.byteLength=I,this.itemsPerChunk=32/this.byteLength,this.fixedSize=I,this.minSize=I,this.maxSize=I}static named(I,B){return new(Rg(SC,B.typeName))(I,B)}defaultValue(){return BigInt(0)}value_serializeToBytes({dataView:I},B,C){switch(this.byteLength){case 1:I.setInt8(B,Number(C));break;case 2:I.setUint16(B,Number(C),!0);break;case 4:I.setUint32(B,Number(C),!0);break;case 8:I.setBigUint64(B,C,!0);break;default:for(let e=0;e<this.byteLength;e+=8){e>0&&(C=C/YQ);const i=BigInt.asUintN(64,C);I.setBigUint64(B+e,i,!0)}}return B+this.byteLength}value_deserializeFromBytes({dataView:I},B,C){const e=C-B;if(e!==this.byteLength)throw Error(`Invalid size ${e} expected ${this.byteLength}`);switch(this.byteLength){case 1:return BigInt(I.getUint8(B));case 2:return BigInt(I.getUint16(B,!0));case 4:return BigInt(I.getUint32(B,!0));case 8:return I.getBigUint64(B,!0);case 16:{const i=I.getBigUint64(B,!0);return I.getBigUint64(B+8,!0)*YQ+i}case 32:{const i=I.getBigUint64(B,!0),t=I.getBigUint64(B+8,!0),E=I.getBigUint64(B+16,!0);return I.getBigUint64(B+24,!0)*ly+E*cy+t*YQ+i}}}tree_serializeToBytes(I,B,C){const e=C.getUintBigint(this.byteLength,0);return this.value_serializeToBytes(I,B,e),B+this.byteLength}tree_deserializeFromBytes(I,B,C){const e=C-B;if(e!==this.byteLength)throw Error(`Invalid size ${e} expected ${this.byteLength}`);const i=this.value_deserializeFromBytes(I,B,C),t=TA.fromZero();return t.setUintBigint(this.byteLength,0,i),t}tree_getFromNode(I){return I.getUintBigint(this.byteLength,0)}tree_setToNode(I,B){this.tree_setToPackedNode(I,0,B)}tree_getFromPackedNode(I,B){const C=this.byteLength*(B%this.itemsPerChunk);return I.getUintBigint(this.byteLength,C)}tree_setToPackedNode(I,B,C){const e=this.byteLength*(B%this.itemsPerChunk);I.setUintBigint(this.byteLength,e,C)}fromJson(I){if(typeof I=="bigint")return I;if(typeof I=="string"||typeof I=="number")return BigInt(I);throw Error(`JSON invalid type ${typeof I} expected bigint`)}toJson(I){return I.toString(10)}}BigInt(2),BigInt(3),BigInt(2),BigInt(3);class bQ extends dt{constructor(I,B,C){super(I);N(this,"elementType");N(this,"length");N(this,"typeName");N(this,"itemsPerChunk");N(this,"depth");N(this,"chunkDepth");N(this,"maxChunkCount");N(this,"fixedSize");N(this,"minSize");N(this,"maxSize");N(this,"isList",!1);N(this,"isViewMutable",!0);N(this,"defaultLen");if(this.elementType=I,this.length=B,!I.isBasic)throw Error("elementType must be basic");if(B===0)throw Error("Vector length must be > 0");this.typeName=(C==null?void 0:C.typeName)??`Vector[${I.typeName}, ${B}]`,this.itemsPerChunk=32/I.byteLength,this.maxChunkCount=Math.ceil(B*I.byteLength/32),this.chunkDepth=GI(this.maxChunkCount),this.depth=this.chunkDepth,this.fixedSize=B*I.byteLength,this.minSize=this.fixedSize,this.maxSize=this.fixedSize,this.defaultLen=B}static named(I,B,C){return new(Rg(bQ,C.typeName))(I,B,C)}getView(I){return new qa(this,I)}getViewDU(I,B){return new Ka(this,I,B)}commitView(I){return I.node}commitViewDU(I,B=0,C=null){return I.commit(B,C),I.node}cacheOfViewDU(I){return I.cache}value_serializedSize(){return this.fixedSize}value_serializeToBytes(I,B,C){return wt(this.elementType,this.length,I,B,C)}value_deserializeFromBytes(I,B,C){return fa(this.elementType,I,B,C,this)}tree_serializedSize(){return this.fixedSize}tree_serializeToBytes(I,B,C){return LQ(this.elementType,this.length,this.depth,I,B,C)}tree_deserializeFromBytes(I,B,C){return pa(this.elementType,this.depth,I,B,C,this)}tree_getLength(){return this.length}tree_setLength(){}tree_getChunksNode(I){return I}tree_chunksNodeOffset(){return 0}tree_setChunksNode(I,B){return B}getRoots(I){const B=new Uint8Array(this.fixedSize),C=new DataView(B.buffer,B.byteOffset,B.byteLength);return wt(this.elementType,this.length,{uint8Array:B,dataView:C},0,I),ht(B)}}class Qg extends dt{constructor(I,B,C){super(I);N(this,"elementType");N(this,"length");N(this,"typeName");N(this,"itemsPerChunk",1);N(this,"depth");N(this,"chunkDepth");N(this,"maxChunkCount");N(this,"fixedSize");N(this,"minSize");N(this,"maxSize");N(this,"isList",!1);N(this,"isViewMutable",!0);N(this,"defaultLen");if(this.elementType=I,this.length=B,I.isBasic)throw Error("elementType must not be basic");if(B===0)throw Error("Vector length must be > 0");this.typeName=(C==null?void 0:C.typeName)??`Vector[${I.typeName}, ${B}]`,this.maxChunkCount=B,this.chunkDepth=GI(this.maxChunkCount),this.depth=this.chunkDepth,this.fixedSize=I.fixedSize===null?null:B*I.fixedSize,this.minSize=Ey(I,B),this.maxSize=Ya(I,B),this.defaultLen=B}static named(I,B,C){return new(Rg(Qg,C.typeName))(I,B,C)}getView(I){return new Pa(this,I)}getViewDU(I,B){return new za(this,I,B)}commitView(I){return I.node}commitViewDU(I,B=0,C=null){return I.commit(B,C),I.node}cacheOfViewDU(I){return I.cache}value_serializedSize(I){return ba(this.elementType,this.length,I)}value_serializeToBytes(I,B,C){return Ta(this.elementType,this.length,I,B,C)}value_deserializeFromBytes(I,B,C){return va(this.elementType,I,B,C,this)}tree_serializedSize(I){return _a(this.elementType,this.length,this.depth,I)}tree_serializeToBytes(I,B,C){return KQ(this.elementType,this.length,this.depth,C,I,B)}tree_deserializeFromBytes(I,B,C){return Oa(this.elementType,this.depth,I,B,C,this)}tree_getLength(){return this.length}tree_setLength(){}tree_getChunksNode(I){return I}tree_chunksNodeOffset(){return 0}tree_setChunksNode(I,B){return B}getRoots(I){return Za(this.elementType,this.length,I)}}class hy extends zI{constructor(g,I){super(new sI(8),g,I)}toViewDU(g){const{treeNode:I,leafNodes:B}=this.packedUintNum64sToNode(g);return this.getViewDU(I,{nodes:B,length:g.length,nodesPopulated:!0})}value_toTree(g){const{treeNode:I}=this.packedUintNum64sToNode(g);return I}packedUintNum64sToNode(g){if(g.length>this.limit)throw new Error(`Exceeds limit: ${g.length} > ${this.limit}`);const I=cD(g),B=oC([...I],this.chunkDepth);return{treeNode:dB(B,g.length),leafNodes:I}}}const Gt=BigInt(2**32-1),Va=BigInt(32);function Sy(A,g=!1){return g?{h:Number(A&Gt),l:Number(A>>Va&Gt)}:{h:Number(A>>Va&Gt)|0,l:Number(A&Gt)|0}}function wy(A,g=!1){let I=new Uint32Array(A.length),B=new Uint32Array(A.length);for(let C=0;C<A.length;C++){const{h:e,l:i}=Sy(A[C],g);[I[C],B[C]]=[e,i]}return[I,B]}const Dy=(A,g,I)=>A<<I|g>>>32-I,yy=(A,g,I)=>g<<I|A>>>32-I,uy=(A,g,I)=>g<<I-32|A>>>64-I,fy=(A,g,I)=>A<<I-32|g>>>64-I,[Xa,$a,As]=[[],[],[]],py=BigInt(0),wC=BigInt(1),Fy=BigInt(2),dy=BigInt(7),Gy=BigInt(256),Ny=BigInt(113);for(let A=0,g=wC,I=1,B=0;A<24;A++){[I,B]=[B,(2*I+3*B)%5],Xa.push(2*(5*B+I)),$a.push((A+1)*(A+2)/2%64);let C=py;for(let e=0;e<7;e++)g=(g<<wC^(g>>dy)*Ny)%Gy,g&Fy&&(C^=wC<<(wC<<BigInt(e))-wC);As.push(C)}const[ky,Ry]=wy(As,!0),gs=(A,g,I)=>I>32?uy(A,g,I):Dy(A,g,I),Is=(A,g,I)=>I>32?fy(A,g,I):yy(A,g,I);function Uy(A,g=24){const I=new Uint32Array(10);for(let B=24-g;B<24;B++){for(let i=0;i<10;i++)I[i]=A[i]^A[i+10]^A[i+20]^A[i+30]^A[i+40];for(let i=0;i<10;i+=2){const t=(i+8)%10,E=(i+2)%10,c=I[E],a=I[E+1],l=gs(c,a,1)^I[t],w=Is(c,a,1)^I[t+1];for(let S=0;S<50;S+=10)A[i+S]^=l,A[i+S+1]^=w}let C=A[2],e=A[3];for(let i=0;i<24;i++){const t=$a[i],E=gs(C,e,t),c=Is(C,e,t),a=Xa[i];C=A[a],e=A[a+1],A[a]=E,A[a+1]=c}for(let i=0;i<50;i+=10){for(let t=0;t<10;t++)I[t]=A[i+t];for(let t=0;t<10;t++)A[i+t]^=~I[(t+2)%10]&I[(t+4)%10]}A[0]^=ky[B],A[1]^=Ry[B]}I.fill(0)}class TQ extends ia{constructor(g,I,B,C=!1,e=24){if(super(),this.blockLen=g,this.suffix=I,this.outputLen=B,this.enableXOF=C,this.rounds=e,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,tC(B),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=Vw(this.state)}keccak(){Uy(this.state32,this.rounds),this.posOut=0,this.pos=0}update(g){iC(this);const{blockLen:I,state:B}=this;g=DQ(g);const C=g.length;for(let e=0;e<C;){const i=Math.min(I-this.pos,C-e);for(let t=0;t<i;t++)B[this.pos++]^=g[e++];this.pos===I&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:g,suffix:I,pos:B,blockLen:C}=this;g[B]^=I,I&128&&B===C-1&&this.keccak(),g[C-1]^=128,this.keccak()}writeInto(g){iC(this,!1),hQ(g),this.finish();const I=this.state,{blockLen:B}=this;for(let C=0,e=g.length;C<e;){this.posOut>=B&&this.keccak();const i=Math.min(B-this.posOut,e-C);g.set(I.subarray(this.posOut,this.posOut+i),C),this.posOut+=i,C+=i}return g}xofInto(g){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(g)}xof(g){return tC(g),this.xofInto(new Uint8Array(g))}digestInto(g){if(SQ(g,this),this.finished)throw new Error("digest() was already called");return this.writeInto(g),this.destroy(),g}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(g){const{blockLen:I,suffix:B,outputLen:C,rounds:e,enableXOF:i}=this;return g||(g=new TQ(I,B,C,i,e)),g.state32.set(this.state32),g.pos=this.pos,g.posOut=this.posOut,g.finished=this.finished,g.rounds=e,g.suffix=B,g.outputLen=C,g.enableXOF=i,g.destroyed=this.destroyed,g}}const Ly=(A,g,I)=>Qa(()=>new TQ(g,A,I)),Bs=Ly(1,136,256/8);function my(A){return g=>(Ww.bytes(g),A(g))}(()=>{const A=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0,g=typeof module<"u"&&typeof module.require=="function"&&module.require.bind(module);return{node:g&&!A?g("crypto"):void 0,web:A}})();const Hy=(()=>{const A=my(Bs);return A.create=Bs.create,A})();class Jy extends bg{constructor(){super(20,{typeName:"ExecutionAddress"})}toJson(g){const I=super.toJson(g);return qy(I)}}function My(A){return/^(0x)?[0-9a-f]{40}$/i.test(A)}function qy(A){if(!My(A))throw Error(`Invalid address: ${A}`);const g=(A.startsWith("0x")?A.slice(2):A).toLowerCase(),I=g.split(""),B=new Uint8Array(I.length);for(let e=0;e<B.length;e++)B[e]=g[e].charCodeAt(0);const C=Hy(B);for(let e=0;e<I.length;e+=2)C[e>>1]>>4>=8&&(I[e]=I[e].toUpperCase()),(C[e>>1]&15)>=8&&(I[e+1]=I[e+1].toUpperCase());return"0x"+I.join("")}const gg=new qQ,es=new sI(1),DC=new bg(4),vQ=new bg(8),Cs=new bg(20),_Q=new bg(32),OQ=new bg(48),ZQ=new bg(96),ts=new sI(1),is=new sI(2),jQ=new sI(4),pA=new sI(8),PQ=new sI(8,{clipInfinity:!0}),Ee=new SC(8),Qs=new SC(16),zQ=new SC(32),_A=pA,AI=pA,Es=PQ,os=pA,GB=pA,xQ=pA,PA=pA,ns=pA,rs=Ee,as=Ee,ss=zQ,NB=new bg(32),WQ=pA,cs=DC,ls=DC,VQ=DC,oe=OQ,Nt=ZQ,hs=_Q,Ss=new sI(1,{setBitwiseOR:!0}),XQ=new Jy,kB=Object.freeze(Object.defineProperty({__proto__:null,BLSPubkey:oe,BLSSignature:Nt,BlobIndex:WQ,Boolean:gg,Byte:es,Bytes20:Cs,Bytes32:_Q,Bytes4:DC,Bytes48:OQ,Bytes8:vQ,Bytes96:ZQ,CommitteeIndex:GB,DepositIndex:rs,Domain:hs,DomainType:ls,Epoch:AI,EpochInf:Es,ExecutionAddress:XQ,ForkDigest:VQ,Gwei:as,ParticipationFlags:Ss,Root:NB,Slot:_A,SubcommitteeIndex:xQ,SyncPeriod:os,Uint16:is,Uint32:jQ,Uint8:ts,UintBn128:Qs,UintBn256:zQ,UintBn64:Ee,UintNum64:pA,UintNumInf64:PQ,ValidatorIndex:PA,Version:cs,Wei:ss,WithdrawalIndex:ns},Symbol.toStringTag,{value:"Module"})),{Boolean:Ky,Bytes32:Yy,UintNum64:by,BLSPubkey:Ty,EpochInf:kt}=kB,ws=2**32,ne=4,vy=48,_y=32,Oy=1,Zy={pubkey:Ty,withdrawalCredentials:Yy,effectiveBalance:by,slashed:Ky,activationEligibilityEpoch:kt,activationEpoch:kt,exitEpoch:kt,withdrawableEpoch:kt};class jy extends ty{constructor(){super(Zy,{typeName:"Validator",jsonCase:"eth2"})}value_serializeToBytes({uint8Array:g,dataView:I},B,C){g.set(C.pubkey,B),B+=vy,g.set(C.withdrawalCredentials,B),B+=_y;const{effectiveBalance:e,activationEligibilityEpoch:i,activationEpoch:t,exitEpoch:E,withdrawableEpoch:c}=C;return I.setUint32(B,e&4294967295,!0),B+=ne,I.setUint32(B,e/ws&4294967295,!0),B+=ne,g[B]=C.slashed?1:0,B+=Oy,B=Rt(I,B,i),B=Rt(I,B,t),B=Rt(I,B,E),B=Rt(I,B,c),B}}function Rt(A,g,I){return I===1/0?(A.setUint32(g,4294967295,!0),g+=ne,A.setUint32(g,4294967295,!0),g+=ne):(A.setUint32(g,I&4294967295,!0),g+=ne,A.setUint32(g,I/ws&4294967295,!0),g+=ne),g}const Ds=new jy,{Bytes32:RB,UintNum64:ug,UintBn64:UB,Slot:xI,Epoch:yC,CommitteeIndex:ys,ValidatorIndex:LB,Root:RA,Version:uC,ForkDigest:us,BLSPubkey:fs,BLSSignature:gI,Domain:Py}=kB,$Q=new PI(Mh),XA=new k({slot:xI,proposerIndex:LB,parentRoot:RA,stateRoot:RA,bodyRoot:RA},{typeName:"BeaconBlockHeader",jsonCase:"eth2",cachePermanentRootStruct:!0}),ps=new k({slot:UB,proposerIndex:LB,parentRoot:RA,stateRoot:RA,bodyRoot:RA},{typeName:"BeaconBlockHeader",jsonCase:"eth2",cachePermanentRootStruct:!0}),AE=new k({message:XA,signature:gI},{typeName:"SignedBeaconBlockHeader",jsonCase:"eth2"}),gE=new k({message:ps,signature:gI},{typeName:"SignedBeaconBlockHeader",jsonCase:"eth2"}),JA=new k({epoch:yC,root:RA},{typeName:"Checkpoint",jsonCase:"eth2"}),IE=new k({epoch:UB,root:RA},{typeName:"Checkpoint",jsonCase:"eth2"}),BE=new pt(xe),Ut=new zI(LB,xe),zy=new k({pubkey:fs,withdrawalCredentials:RB,amount:ug},{typeName:"DepositMessage",jsonCase:"eth2"}),eE=new k({pubkey:fs,withdrawalCredentials:RB,amount:ug,signature:gI},{typeName:"DepositData",jsonCase:"eth2"}),xy=new DA(RA,2**Kn),Wy=new k({depositData:eE,blockNumber:ug,index:ug},{typeName:"DepositEvent",jsonCase:"eth2"}),UI=new k({depositRoot:RA,depositCount:ug,blockHash:RB},{typeName:"Eth1Data",jsonCase:"eth2"}),mB=new DA(UI,oh*Wg),Vy=new k({depositRoot:RA,depositCount:ug,blockHash:RB,blockNumber:ug},{typeName:"Eth1DataOrdered",jsonCase:"eth2"}),Xy=new k({timestamp:ug,depositRoot:RA,depositCount:ug},{typeName:"Eth1Block",jsonCase:"eth2"}),LI=new k({previousVersion:uC,currentVersion:uC,epoch:yC},{typeName:"Fork",jsonCase:"eth2"}),CE=new k({currentVersion:uC,genesisValidatorsRoot:RA},{typeName:"ForkData",jsonCase:"eth2"}),$y=new k({forkDigest:us,nextForkVersion:uC,nextForkEpoch:yC},{typeName:"ENRForkID",jsonCase:"eth2"}),WI=new Qg(RA,mn),VI=new Qg(RA,mn),Au=new k({blockRoots:WI,stateRoots:VI},{typeName:"HistoricalBatch",jsonCase:"eth2"}),gu=new k({blockRoots:RA,stateRoots:RA},{typeName:"HistoricalBatchRoots",jsonCase:"eth2"}),Fs=Ds,HB=new DA(Ds,At),JB=new hy(At),MB=new Qg(RB,nh),qB=new bQ(ug,rh),KB=new PI(Hh),XI=new k({slot:xI,index:ys,beaconBlockRoot:RA,source:JA,target:JA},{typeName:"AttestationData",jsonCase:"eth2",cachePermanentRootStruct:!0}),tE=new k({slot:UB,index:UB,beaconBlockRoot:RA,source:IE,target:IE},{typeName:"AttestationData",jsonCase:"eth2",cachePermanentRootStruct:!0}),Iu=new k({attestingIndices:Ut,data:XI,signature:gI},{typeName:"IndexedAttestation",jsonCase:"eth2"}),iE=new k({attestingIndices:Ut,data:tE,signature:gI},{typeName:"IndexedAttestation",jsonCase:"eth2"}),ds=new k({aggregationBits:BE,data:XI,inclusionDelay:xI,proposerIndex:LB},{typeName:"PendingAttestation",jsonCase:"eth2"}),Lt=new k({objectRoot:RA,domain:Py},{typeName:"SigningData",jsonCase:"eth2"}),$I=new k({aggregationBits:BE,data:XI,signature:gI},{typeName:"Attestation",jsonCase:"eth2"}),Bu=$I,II=new k({attestation1:iE,attestation2:iE},{typeName:"AttesterSlashing",jsonCase:"eth2"}),Gs=new k({proof:new Qg(RB,Kn+1),data:eE},{typeName:"Deposit",jsonCase:"eth2"}),AB=new k({signedHeader1:gE,signedHeader2:gE},{typeName:"ProposerSlashing",jsonCase:"eth2"}),Ns=new k({epoch:yC,validatorIndex:LB},{typeName:"VoluntaryExit",jsonCase:"eth2",cachePermanentRootStruct:!0}),gB=new k({message:Ns,signature:gI},{typeName:"SignedVoluntaryExit",jsonCase:"eth2"}),cg=new k({randaoReveal:gI,eth1Data:UI,graffiti:RB,proposerSlashings:new DA(AB,ah),attesterSlashings:new DA(II,sh),attestations:new DA($I,Hn),deposits:new DA(Gs,ch),voluntaryExits:new DA(gB,lh)},{typeName:"BeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),ks=new k({slot:xI,proposerIndex:LB,parentRoot:RA,stateRoot:RA,body:cg},{typeName:"BeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),eu=new k({message:ks,signature:gI},{typeName:"SignedBeaconBlock",jsonCase:"eth2"}),QE=new DA(ds,Hn*Wg),Cu=new k({genesisTime:ug,genesisValidatorsRoot:RA,slot:xI,fork:LI,latestBlockHeader:XA,blockRoots:WI,stateRoots:VI,historicalRoots:new DA(RA,hB),eth1Data:UI,eth1DataVotes:mB,eth1DepositIndex:ug,validators:HB,balances:JB,randaoMixes:MB,slashings:qB,previousEpochAttestations:QE,currentEpochAttestations:QE,justificationBits:KB,previousJustifiedCheckpoint:JA,currentJustifiedCheckpoint:JA,finalizedCheckpoint:JA},{typeName:"BeaconState",jsonCase:"eth2"}),tu=new k({validators:Ut,committeeIndex:ys,slot:xI},{typeName:"CommitteeAssignment",jsonCase:"eth2"}),Rs=new k({aggregatorIndex:LB,aggregate:$I,selectionProof:gI},{typeName:"AggregateAndProof",jsonCase:"eth2",cachePermanentRootStruct:!0}),Us=new k({message:Rs,signature:gI},{typeName:"SignedAggregateAndProof",jsonCase:"eth2"}),iu=new k({forkDigest:us,finalizedRoot:RA,finalizedEpoch:yC,headRoot:RA,headSlot:xI},{typeName:"Status",jsonCase:"eth2"}),Qu=UB,Eu=UB,ou=new k({seqNumber:UB,attnets:$Q},{typeName:"Metadata",jsonCase:"eth2"}),nu=new k({startSlot:xI,count:ug,step:ug},{typeName:"BeaconBlocksByRangeRequest",jsonCase:"eth2"}),ru=new DA(RA,qh),Ls=new k({genesisValidatorsRoot:RA,genesisTime:ug,genesisForkVersion:uC},{typeName:"Genesis",jsonCase:"eth2"}),YB=Object.freeze(Object.defineProperty({__proto__:null,AggregateAndProof:Rs,Attestation:$I,AttestationData:XI,AttestationDataBigint:tE,AttestationSubnets:$Q,AttesterSlashing:II,Balances:JB,BeaconBlock:ks,BeaconBlockBody:cg,BeaconBlockHeader:XA,BeaconBlockHeaderBigint:ps,BeaconBlocksByRangeRequest:nu,BeaconBlocksByRootRequest:ru,BeaconState:Cu,Checkpoint:JA,CheckpointBigint:IE,CommitteeAssignment:tu,CommitteeBits:BE,CommitteeIndices:Ut,Deposit:Gs,DepositData:eE,DepositDataRootList:xy,DepositEvent:Wy,DepositMessage:zy,ENRForkID:$y,EpochAttestations:QE,Eth1Block:Xy,Eth1Data:UI,Eth1DataOrdered:Vy,Eth1DataVotes:mB,Fork:LI,ForkData:CE,Genesis:Ls,Goodbye:Qu,HistoricalBatch:Au,HistoricalBatchRoots:gu,HistoricalBlockRoots:WI,HistoricalStateRoots:VI,IndexedAttestation:Iu,IndexedAttestationBigint:iE,JustificationBits:KB,Metadata:ou,PendingAttestation:ds,Ping:Eu,ProposerSlashing:AB,RandaoMixes:MB,SignedAggregateAndProof:Us,SignedBeaconBlock:eu,SignedBeaconBlockHeader:AE,SignedBeaconBlockHeaderBigint:gE,SignedVoluntaryExit:gB,SigningData:Lt,SingleAttestation:Bu,Slashings:qB,Status:iu,Validator:Fs,Validators:HB,VoluntaryExit:Ns},Symbol.toStringTag,{value:"Module"})),{Bytes32:mt,UintNum64:fC,UintBn64:au,Slot:IB,SubcommitteeIndex:ms,ValidatorIndex:EE,Root:re,BLSPubkey:Hs,BLSSignature:ae,ParticipationFlags:su}=kB,Js=new PI(Tn),Ms=new k({seqNumber:au,attnets:$Q,syncnets:Js},{typeName:"Metadata",jsonCase:"eth2"}),OA=new k({pubkeys:new Qg(Hs,KI),aggregatePubkey:Hs},{typeName:"SyncCommittee",jsonCase:"eth2"}),qs=new k({slot:IB,beaconBlockRoot:re,validatorIndex:EE,signature:ae},{typeName:"SyncCommitteeMessage",jsonCase:"eth2"}),oE=new k({slot:IB,beaconBlockRoot:re,subcommitteeIndex:ms,aggregationBits:new PI(KI/Tn),signature:ae},{typeName:"SyncCommitteeContribution",jsonCase:"eth2"}),Ks=new k({aggregatorIndex:EE,contribution:oE,selectionProof:ae},{typeName:"ContributionAndProof",jsonCase:"eth2",cachePermanentRootStruct:!0}),nE=new k({message:Ks,signature:ae},{typeName:"SignedContributionAndProof",jsonCase:"eth2"}),cu=new k({slot:IB,subcommitteeIndex:ms},{typeName:"SyncAggregatorSelectionData",jsonCase:"eth2"}),Ys=new PI(KI),fg=new k({syncCommitteeBits:Ys,syncCommitteeSignature:ae},{typeName:"SyncCommitteeBits",jsonCase:"eth2"}),cI=new k({...cg.fields,syncAggregate:fg},{typeName:"BeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),bs=new k({slot:IB,proposerIndex:EE,parentRoot:re,stateRoot:re,body:cI},{typeName:"BeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),lu=new k({message:bs,signature:ae},{typeName:"SignedBeaconBlock",jsonCase:"eth2"}),BI=new zI(su,At),se=new zI(fC,At),hu=new k({genesisTime:fC,genesisValidatorsRoot:re,slot:IB,fork:LI,latestBlockHeader:XA,blockRoots:WI,stateRoots:VI,historicalRoots:new DA(re,hB),eth1Data:UI,eth1DataVotes:mB,eth1DepositIndex:fC,validators:HB,balances:JB,randaoMixes:MB,slashings:qB,previousEpochParticipation:BI,currentEpochParticipation:BI,justificationBits:KB,previousJustifiedCheckpoint:JA,currentJustifiedCheckpoint:JA,finalizedCheckpoint:JA,inactivityScores:se,currentSyncCommittee:OA,nextSyncCommittee:OA},{typeName:"BeaconState",jsonCase:"eth2"}),bB=new k({beacon:XA},{typeName:"LightClientHeader",jsonCase:"eth2"}),Ht=new k({header:bB,currentSyncCommittee:OA,currentSyncCommitteeBranch:new Qg(mt,Ve)},{typeName:"LightClientBootstrap",jsonCase:"eth2"}),ce=new k({attestedHeader:bB,nextSyncCommittee:OA,nextSyncCommitteeBranch:new Qg(mt,Ve),finalizedHeader:bB,finalityBranch:new Qg(mt,SB),syncAggregate:fg,signatureSlot:IB},{typeName:"LightClientUpdate",jsonCase:"eth2"}),rE=new k({attestedHeader:bB,finalizedHeader:bB,finalityBranch:new Qg(mt,SB),syncAggregate:fg,signatureSlot:IB},{typeName:"LightClientFinalityUpdate",jsonCase:"eth2"}),Su=new k({attestedHeader:bB,syncAggregate:fg,signatureSlot:IB},{typeName:"LightClientOptimisticUpdate",jsonCase:"eth2"}),wu=new k({startPeriod:fC,count:fC},{typeName:"LightClientUpdatesByRange",jsonCase:"eth2"}),Du=new k({snapshot:Ht,validUpdates:new DA(ce,YI*Wg)},{typeName:"LightClientStore",jsonCase:"eth2"}),le=Object.freeze(Object.defineProperty({__proto__:null,BeaconBlock:bs,BeaconBlockBody:cI,BeaconState:hu,ContributionAndProof:Ks,EpochParticipation:BI,InactivityScores:se,LightClientBootstrap:Ht,LightClientFinalityUpdate:rE,LightClientHeader:bB,LightClientOptimisticUpdate:Su,LightClientStore:Du,LightClientUpdate:ce,LightClientUpdatesByRange:wu,Metadata:Ms,SignedBeaconBlock:lu,SignedContributionAndProof:nE,SyncAggregate:fg,SyncAggregatorSelectionData:cu,SyncCommittee:OA,SyncCommitteeBits:Ys,SyncCommitteeContribution:oE,SyncCommitteeMessage:qs,SyncSubnets:Js},Symbol.toStringTag,{value:"Module"}));class he extends Ft{constructor(){super(...arguments),this.typeName="string",this.byteLength=0,this.fixedSize=0,this.minSize=0,this.maxSize=0}defaultValue(){return""}value_serializeToBytes(){throw Error("Not supported in String type")}value_deserializeFromBytes(){throw Error("Not supported in String type")}tree_serializeToBytes(){throw Error("Not supported in String type")}tree_deserializeFromBytes(){throw Error("Not supported in String type")}tree_getFromNode(){throw Error("Not supported in String type")}tree_setToNode(){throw Error("Not supported in String type")}tree_getFromPackedNode(){throw Error("Not supported in String type")}tree_setToPackedNode(){throw Error("Not supported in String type")}fromJson(g){if(typeof g!="string")throw Error(`JSON invalid type ${typeof g} expected string`);return g}toJson(g){return g}}const BB=new he,{Bytes32:Jt,UintNum64:eI,Slot:aE,ValidatorIndex:Ts,Root:Ug,BLSSignature:Mt,UintBn256:sE,BLSPubkey:vs,ExecutionAddress:_s}=kB,Os=new lC(Sh),Zs=new DA(Os,wh),cE=new k({parentHash:Ug,feeRecipient:_s,stateRoot:Jt,receiptsRoot:Jt,logsBloom:new bg(Dh),prevRandao:Jt,blockNumber:eI,gasLimit:eI,gasUsed:eI,timestamp:eI,extraData:new lC(yh),baseFeePerGas:sE,blockHash:Ug}),lE=new k({...cE.fields,transactions:Zs},{typeName:"ExecutionPayload",jsonCase:"eth2"}),pC=new k({...cE.fields,transactionsRoot:Ug},{typeName:"ExecutionPayloadHeader",jsonCase:"eth2"}),js=new k({...cI.fields,executionPayload:lE},{typeName:"BeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),Ps=new k({slot:aE,proposerIndex:Ts,parentRoot:Ug,stateRoot:Ug,body:js},{typeName:"BeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),yu=new k({message:Ps,signature:Mt},{typeName:"SignedBeaconBlock",jsonCase:"eth2"}),uu=new k({blockHash:Ug,parentHash:Ug,totalDifficulty:sE},{typeName:"PowBlock",jsonCase:"eth2"}),fu=new k({genesisTime:eI,genesisValidatorsRoot:Ug,slot:_A,fork:LI,latestBlockHeader:XA,blockRoots:WI,stateRoots:VI,historicalRoots:new DA(Ug,hB),eth1Data:UI,eth1DataVotes:mB,eth1DepositIndex:eI,validators:HB,balances:JB,randaoMixes:MB,slashings:qB,previousEpochParticipation:BI,currentEpochParticipation:BI,justificationBits:KB,previousJustifiedCheckpoint:JA,currentJustifiedCheckpoint:JA,finalizedCheckpoint:JA,inactivityScores:se,currentSyncCommittee:OA,nextSyncCommittee:OA,latestExecutionPayloadHeader:pC},{typeName:"BeaconState",jsonCase:"eth2"}),zs=new k({...cI.fields,executionPayloadHeader:pC},{typeName:"BlindedBeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),hE=new k({slot:aE,proposerIndex:Ts,parentRoot:Ug,stateRoot:Ug,body:zs},{typeName:"BlindedBeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),pu=new k({message:hE,signature:Mt},{typeName:"SignedBlindedBeaconBlock",jsonCase:"eth2"}),xs=new k({feeRecipient:_s,gasLimit:eI,timestamp:eI,pubkey:vs},{typeName:"ValidatorRegistrationV1",jsonCase:"eth2"}),Ws=new k({message:xs,signature:Mt},{typeName:"SignedValidatorRegistrationV1",jsonCase:"eth2"}),Vs=new k({header:pC,value:sE,pubkey:vs},{typeName:"BuilderBid",jsonCase:"eth2"}),Fu=new k({message:Vs,signature:Mt},{typeName:"SignedBuilderBid",jsonCase:"eth2"}),SE=new k({timestamp:eI,prevRandao:Jt,suggestedFeeRecipient:BB},{typeName:"PayloadAttributes",jsonCase:"eth2"}),FC=new k({proposerIndex:eI,proposalSlot:aE,parentBlockNumber:eI,parentBlockRoot:Ug,parentBlockHash:Ug},{typeName:"SSEPayloadAttributesCommon",jsonCase:"eth2"}),du=new k({...FC.fields,payloadAttributes:SE},{typeName:"SSEPayloadAttributes",jsonCase:"eth2"}),dC=Object.freeze(Object.defineProperty({__proto__:null,BeaconBlock:Ps,BeaconBlockBody:js,BeaconState:fu,BlindedBeaconBlock:hE,BlindedBeaconBlockBody:zs,BuilderBid:Vs,CommonExecutionPayloadType:cE,ExecutionPayload:lE,ExecutionPayloadHeader:pC,PayloadAttributes:SE,PowBlock:uu,SSEPayloadAttributes:du,SSEPayloadAttributesCommon:FC,SignedBeaconBlock:yu,SignedBlindedBeaconBlock:pu,SignedBuilderBid:Fu,SignedValidatorRegistrationV1:Ws,Transaction:Os,Transactions:Zs,ValidatorRegistrationV1:xs},Symbol.toStringTag,{value:"Module"})),{UintNum64:Xs,Slot:qt,ValidatorIndex:Kt,WithdrawalIndex:$s,Root:TB,BLSSignature:Yt,BLSPubkey:A0,ExecutionAddress:g0,Gwei:Gu,UintBn256:Nu,Bytes32:ku}=kB,I0=new k({index:$s,validatorIndex:Kt,address:g0,amount:Gu},{typeName:"Withdrawal",jsonCase:"eth2"}),B0=new k({validatorIndex:Kt,fromBlsPubkey:A0,toExecutionAddress:g0},{typeName:"BLSToExecutionChange",jsonCase:"eth2"}),bt=new k({message:B0,signature:Yt},{typeName:"SignedBLSToExecutionChange",jsonCase:"eth2"}),wE=new DA(I0,fh),DE=new k({...lE.fields,withdrawals:wE},{typeName:"ExecutionPayload",jsonCase:"eth2"}),vB=new k({...pC.fields,withdrawalsRoot:TB},{typeName:"ExecutionPayloadHeader",jsonCase:"eth2"}),yE=new DA(bt,uh),Se=new k({...cI.fields,executionPayload:DE,blsToExecutionChanges:yE},{typeName:"BeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),uE=new k({slot:qt,proposerIndex:Kt,parentRoot:TB,stateRoot:TB,body:Se},{typeName:"BeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),Ru=new k({message:uE,signature:Yt},{typeName:"SignedBeaconBlock",jsonCase:"eth2"}),e0=new k({header:vB,value:Nu,pubkey:A0},{typeName:"BuilderBid",jsonCase:"eth2"}),Uu=new k({message:e0,signature:Yt},{typeName:"SignedBuilderBid",jsonCase:"eth2"}),C0=new k({blockSummaryRoot:TB,stateSummaryRoot:TB},{typeName:"HistoricalSummary",jsonCase:"eth2"}),fE=new DA(C0,hB,{typeName:"HistoricalSummaries"}),_B=new k({genesisTime:Xs,genesisValidatorsRoot:TB,slot:_A,fork:LI,latestBlockHeader:XA,blockRoots:WI,stateRoots:VI,historicalRoots:new DA(TB,hB),eth1Data:UI,eth1DataVotes:mB,eth1DepositIndex:Xs,validators:HB,balances:JB,randaoMixes:MB,slashings:qB,previousEpochParticipation:BI,currentEpochParticipation:BI,justificationBits:KB,previousJustifiedCheckpoint:JA,currentJustifiedCheckpoint:JA,finalizedCheckpoint:JA,inactivityScores:se,currentSyncCommittee:OA,nextSyncCommittee:OA,latestExecutionPayloadHeader:vB,nextWithdrawalIndex:$s,nextWithdrawalValidatorIndex:Kt,historicalSummaries:fE},{typeName:"BeaconState",jsonCase:"eth2"}),t0=new k({...cI.fields,executionPayloadHeader:vB,blsToExecutionChanges:yE},{typeName:"BlindedBeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),pE=new k({...hE.fields,body:t0},{typeName:"BlindedBeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),Lu=new k({message:pE,signature:Yt},{typeName:"SignedBlindedBeaconBlock",jsonCase:"eth2"}),Lg=new k({beacon:XA,execution:vB,executionBranch:new Qg(ku,_n)},{typeName:"LightClientHeader",jsonCase:"eth2"}),i0=new k({header:Lg,currentSyncCommittee:OA,currentSyncCommitteeBranch:Ht.fields.currentSyncCommitteeBranch},{typeName:"LightClientBootstrap",jsonCase:"eth2"}),Q0=new k({attestedHeader:Lg,nextSyncCommittee:OA,nextSyncCommitteeBranch:ce.fields.nextSyncCommitteeBranch,finalizedHeader:Lg,finalityBranch:ce.fields.finalityBranch,syncAggregate:fg,signatureSlot:qt},{typeName:"LightClientUpdate",jsonCase:"eth2"}),mu=new k({attestedHeader:Lg,finalizedHeader:Lg,finalityBranch:rE.fields.finalityBranch,syncAggregate:fg,signatureSlot:qt},{typeName:"LightClientFinalityUpdate",jsonCase:"eth2"}),Hu=new k({attestedHeader:Lg,syncAggregate:fg,signatureSlot:qt},{typeName:"LightClientOptimisticUpdate",jsonCase:"eth2"}),Ju=new k({snapshot:i0,validUpdates:new DA(Q0,YI*Wg)},{typeName:"LightClientStore",jsonCase:"eth2"}),Tt=new k({...SE.fields,withdrawals:wE},{typeName:"PayloadAttributes",jsonCase:"eth2"}),Mu=new k({...FC.fields,payloadAttributes:Tt},{typeName:"SSEPayloadAttributes",jsonCase:"eth2"}),vt=Object.freeze(Object.defineProperty({__proto__:null,BLSToExecutionChange:B0,BLSToExecutionChanges:yE,BeaconBlock:uE,BeaconBlockBody:Se,BeaconState:_B,BlindedBeaconBlock:pE,BlindedBeaconBlockBody:t0,BuilderBid:e0,ExecutionPayload:DE,ExecutionPayloadHeader:vB,HistoricalSummaries:fE,HistoricalSummary:C0,LightClientBootstrap:i0,LightClientFinalityUpdate:mu,LightClientHeader:Lg,LightClientOptimisticUpdate:Hu,LightClientStore:Ju,LightClientUpdate:Q0,PayloadAttributes:Tt,SSEPayloadAttributes:Mu,SignedBLSToExecutionChange:bt,SignedBeaconBlock:Ru,SignedBlindedBeaconBlock:Lu,SignedBuilderBid:Uu,Withdrawal:I0,Withdrawals:wE},Symbol.toStringTag,{value:"Module"})),{UintNum64:FE,Slot:_t,Root:Ot,BLSSignature:dE,UintBn64:Zt,UintBn256:qu,Bytes32:jt,Bytes48:GE,Bytes96:Ku,BLSPubkey:Yu,BlobIndex:E0}=kB,bu=GE,Tu=Ku,vu=jt,NE=GE,kE=GE,RE=new bg(Yh*ph),we=new DA(RE,We),o0=jt,_u=new DA(o0,We),Ou=jt,De=new DA(NE,We),ye=new DA(kE,We),Zu=new k({startSlot:_t,count:FE},{typeName:"BlobSidecarsByRangeRequest",jsonCase:"eth2"}),ju=new k({blockRoot:Ot,index:E0},{typeName:"BlobIdentifier",jsonCase:"eth2"}),Pt=new k({...DE.fields,blobGasUsed:Zt,excessBlobGas:Zt},{typeName:"ExecutionPayload",jsonCase:"eth2"}),ue=new k({...vB.fields,blobGasUsed:Zt,excessBlobGas:Zt},{typeName:"ExecutionPayloadHeader",jsonCase:"eth2"}),zt=new k({...cI.fields,executionPayload:Pt,blsToExecutionChanges:Se.fields.blsToExecutionChanges,blobKzgCommitments:De},{typeName:"BeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),xt=new k({...uE.fields,body:zt},{typeName:"BeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),n0=new k({message:xt,signature:dE},{typeName:"SignedBeaconBlock",jsonCase:"eth2"}),r0=new Qg(jt,Fh),a0=new k({index:E0,blob:RE,kzgCommitment:NE,kzgProof:kE,signedBlockHeader:AE,kzgCommitmentInclusionProof:r0},{typeName:"BlobSidecar",jsonCase:"eth2"}),s0=new DA(a0,We),c0=new k({commitments:De,proofs:ye,blobs:we},{typeName:"BlobsBundle",jsonCase:"eth2"}),l0=new k({...cI.fields,executionPayloadHeader:ue,blsToExecutionChanges:Se.fields.blsToExecutionChanges,blobKzgCommitments:De},{typeName:"BlindedBeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),UE=new k({...pE.fields,body:l0},{typeName:"BlindedBeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),Pu=new k({message:UE,signature:dE},{typeName:"SignedBlindedBeaconBlock",jsonCase:"eth2"}),h0=new k({header:ue,blobKzgCommitments:De,value:qu,pubkey:Yu},{typeName:"BuilderBid",jsonCase:"eth2"}),zu=new k({message:h0,signature:dE},{typeName:"SignedBuilderBid",jsonCase:"eth2"}),xu=new k({executionPayload:Pt,blobsBundle:c0},{typeName:"ExecutionPayloadAndBlobsBundle",jsonCase:"eth2"}),Wu=new k({genesisTime:FE,genesisValidatorsRoot:Ot,slot:_A,fork:LI,latestBlockHeader:XA,blockRoots:WI,stateRoots:VI,historicalRoots:new DA(Ot,hB),eth1Data:UI,eth1DataVotes:mB,eth1DepositIndex:FE,validators:HB,balances:JB,randaoMixes:MB,slashings:qB,previousEpochParticipation:BI,currentEpochParticipation:BI,justificationBits:KB,previousJustifiedCheckpoint:JA,currentJustifiedCheckpoint:JA,finalizedCheckpoint:JA,inactivityScores:se,currentSyncCommittee:OA,nextSyncCommittee:OA,latestExecutionPayloadHeader:ue,nextWithdrawalIndex:_B.fields.nextWithdrawalIndex,nextWithdrawalValidatorIndex:_B.fields.nextWithdrawalValidatorIndex,historicalSummaries:_B.fields.historicalSummaries},{typeName:"BeaconState",jsonCase:"eth2"}),pg=new k({beacon:XA,execution:ue,executionBranch:Lg.fields.executionBranch},{typeName:"LightClientHeader",jsonCase:"eth2"}),S0=new k({header:pg,currentSyncCommittee:OA,currentSyncCommitteeBranch:Ht.fields.currentSyncCommitteeBranch},{typeName:"LightClientBootstrap",jsonCase:"eth2"}),w0=new k({attestedHeader:pg,nextSyncCommittee:OA,nextSyncCommitteeBranch:ce.fields.nextSyncCommitteeBranch,finalizedHeader:pg,finalityBranch:ce.fields.finalityBranch,syncAggregate:fg,signatureSlot:_t},{typeName:"LightClientUpdate",jsonCase:"eth2"}),Vu=new k({attestedHeader:pg,finalizedHeader:pg,finalityBranch:rE.fields.finalityBranch,syncAggregate:fg,signatureSlot:_t},{typeName:"LightClientFinalityUpdate",jsonCase:"eth2"}),Xu=new k({attestedHeader:pg,syncAggregate:fg,signatureSlot:_t},{typeName:"LightClientOptimisticUpdate",jsonCase:"eth2"}),$u=new k({snapshot:S0,validUpdates:new DA(w0,YI*Wg)},{typeName:"LightClientStore",jsonCase:"eth2"}),D0=new k({...Tt.fields,parentBeaconBlockRoot:Ot},{typeName:"PayloadAttributes",jsonCase:"eth2"}),Af=new k({...FC.fields,payloadAttributes:D0},{typeName:"SSEPayloadAttributes",jsonCase:"eth2"}),gf=new k({block:xt,kzgProofs:ye,blobs:we},{typeName:"BlockContents",jsonCase:"eth2"}),If=new k({signedBlock:n0,kzgProofs:ye,blobs:we},{typeName:"SignedBlockContents",jsonCase:"eth2"}),LE=Object.freeze(Object.defineProperty({__proto__:null,BLSFieldElement:vu,BeaconBlock:xt,BeaconBlockBody:zt,BeaconState:Wu,BlindedBeaconBlock:UE,BlindedBeaconBlockBody:l0,BlindedBlob:o0,BlindedBlobs:_u,Blob:RE,BlobIdentifier:ju,BlobKzgCommitments:De,BlobSidecar:a0,BlobSidecars:s0,BlobSidecarsByRangeRequest:Zu,Blobs:we,BlobsBundle:c0,BlockContents:gf,BuilderBid:h0,ExecutionPayload:Pt,ExecutionPayloadAndBlobsBundle:xu,ExecutionPayloadHeader:ue,G1Point:bu,G2Point:Tu,KZGCommitment:NE,KZGProof:kE,KZGProofs:ye,KzgCommitmentInclusionProof:r0,LightClientBootstrap:S0,LightClientFinalityUpdate:Vu,LightClientHeader:pg,LightClientOptimisticUpdate:Xu,LightClientStore:$u,LightClientUpdate:w0,PayloadAttributes:D0,SSEPayloadAttributes:Af,SignedBeaconBlock:n0,SignedBlindedBeaconBlock:Pu,SignedBlockContents:If,SignedBuilderBid:zu,VersionedHash:Ou},Symbol.toStringTag,{value:"Module"})),{Epoch:mE,Gwei:GC,UintNum64:Wt,Slot:Vt,Root:HE,BLSSignature:CI,UintBn256:Bf,Bytes32:fe,BLSPubkey:pe,DepositIndex:ef,UintBn64:Cf,ExecutionAddress:y0,ValidatorIndex:Fe,CommitteeIndex:tf}=kB,u0=new pt(xe*zi),f0=new PI(zi),JE=new zI(Fe,xe*zi),de=new k({aggregationBits:u0,data:XI,signature:CI,committeeBits:f0},{typeName:"Attestation",jsonCase:"eth2"}),ME=new k({committeeIndex:tf,attesterIndex:Fe,data:XI,signature:CI},{typeName:"SingleAttestation",jsonCase:"eth2"}),Qf=new k({attestingIndices:JE,data:XI,signature:CI},{typeName:"IndexedAttestation",jsonCase:"eth2"}),qE=new k({attestingIndices:JE,data:tE,signature:CI},{typeName:"IndexedAttestation",jsonCase:"eth2"}),eB=new k({attestation1:qE,attestation2:qE},{typeName:"AttesterSlashing",jsonCase:"eth2"}),p0=new k({aggregatorIndex:Fe,aggregate:de,selectionProof:CI},{typeName:"AggregateAndProof",jsonCase:"eth2",cachePermanentRootStruct:!0}),F0=new k({message:p0,signature:CI},{typeName:"SignedAggregateAndProof",jsonCase:"eth2"}),d0=new k({pubkey:pe,withdrawalCredentials:fe,amount:Wt,signature:CI,index:ef},{typeName:"DepositRequest",jsonCase:"eth2"}),G0=new DA(d0,Rh),N0=new k({sourceAddress:y0,validatorPubkey:pe,amount:GC},{typeName:"WithdrawalRequest",jsonCase:"eth2"}),k0=new DA(N0,Uh),R0=new k({sourceAddress:y0,sourcePubkey:pe,targetPubkey:pe},{typeName:"ConsolidationRequest",jsonCase:"eth2"}),U0=new DA(R0,kh),Xt=new k({deposits:G0,withdrawals:k0,consolidations:U0},{typeName:"ExecutionRequests",jsonCase:"eth2"}),$t=ue,L0=Pt,m0=new k({randaoReveal:cg.fields.randaoReveal,eth1Data:cg.fields.eth1Data,graffiti:cg.fields.graffiti,proposerSlashings:cg.fields.proposerSlashings,attesterSlashings:new DA(eB,Mn),attestations:new DA(de,qn),deposits:cg.fields.deposits,voluntaryExits:cg.fields.voluntaryExits,syncAggregate:cI.fields.syncAggregate,executionPayload:L0,blsToExecutionChanges:Se.fields.blsToExecutionChanges,blobKzgCommitments:zt.fields.blobKzgCommitments,executionRequests:Xt},{typeName:"BeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),KE=new k({...xt.fields,body:m0},{typeName:"BeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),H0=new k({message:KE,signature:CI},{typeName:"SignedBeaconBlock",jsonCase:"eth2"}),J0=new k({randaoReveal:cg.fields.randaoReveal,eth1Data:cg.fields.eth1Data,graffiti:cg.fields.graffiti,proposerSlashings:cg.fields.proposerSlashings,attesterSlashings:new DA(eB,Mn),attestations:new DA(de,qn),deposits:cg.fields.deposits,voluntaryExits:cg.fields.voluntaryExits,syncAggregate:fg,executionPayloadHeader:$t,blsToExecutionChanges:Se.fields.blsToExecutionChanges,blobKzgCommitments:zt.fields.blobKzgCommitments,executionRequests:Xt},{typeName:"BlindedBeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),M0=new k({...UE.fields,body:J0},{typeName:"BlindedBeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),Ef=new k({message:M0,signature:CI},{typeName:"SignedBlindedBeaconBlock",jsonCase:"eth2"}),q0=new k({header:$t,blobKzgCommitments:De,executionRequests:Xt,value:Bf,pubkey:pe},{typeName:"BuilderBid",jsonCase:"eth2"}),of=new k({message:q0,signature:CI},{typeName:"SignedBuilderBid",jsonCase:"eth2"}),K0=new k({pubkey:pe,withdrawalCredentials:fe,amount:Wt,signature:CI,slot:Vt},{typeName:"PendingDeposit",jsonCase:"eth2"}),Y0=new DA(K0,dh),b0=new k({validatorIndex:Fe,amount:GC,withdrawableEpoch:mE},{typeName:"PendingPartialWithdrawal",jsonCase:"eth2"}),T0=new k({sourceIndex:Fe,targetIndex:Fe},{typeName:"PendingConsolidation",jsonCase:"eth2"}),nf=new k({genesisTime:Wt,genesisValidatorsRoot:HE,slot:_A,fork:LI,latestBlockHeader:XA,blockRoots:WI,stateRoots:VI,historicalRoots:new DA(HE,hB),eth1Data:UI,eth1DataVotes:mB,eth1DepositIndex:Wt,validators:HB,balances:JB,randaoMixes:MB,slashings:qB,previousEpochParticipation:BI,currentEpochParticipation:BI,justificationBits:KB,previousJustifiedCheckpoint:JA,currentJustifiedCheckpoint:JA,finalizedCheckpoint:JA,inactivityScores:se,currentSyncCommittee:OA,nextSyncCommittee:OA,latestExecutionPayloadHeader:$t,nextWithdrawalIndex:_B.fields.nextWithdrawalIndex,nextWithdrawalValidatorIndex:_B.fields.nextWithdrawalValidatorIndex,historicalSummaries:_B.fields.historicalSummaries,depositRequestsStartIndex:Cf,depositBalanceToConsume:GC,exitBalanceToConsume:GC,earliestExitEpoch:mE,consolidationBalanceToConsume:GC,earliestConsolidationEpoch:mE,pendingDeposits:Y0,pendingPartialWithdrawals:new DA(b0,Gh),pendingConsolidations:new DA(T0,Nh)},{typeName:"BeaconState",jsonCase:"eth2"}),v0=new k({header:pg,currentSyncCommittee:OA,currentSyncCommitteeBranch:new Qg(fe,Xe)},{typeName:"LightClientBootstrap",jsonCase:"eth2"}),_0=new k({attestedHeader:pg,nextSyncCommittee:OA,nextSyncCommitteeBranch:new Qg(fe,Xe),finalizedHeader:pg,finalityBranch:new Qg(fe,pI),syncAggregate:fg,signatureSlot:Vt},{typeName:"LightClientUpdate",jsonCase:"eth2"}),rf=new k({attestedHeader:pg,finalizedHeader:pg,finalityBranch:new Qg(fe,pI),syncAggregate:fg,signatureSlot:Vt},{typeName:"LightClientFinalityUpdate",jsonCase:"eth2"}),af=new k({attestedHeader:pg,syncAggregate:fg,signatureSlot:Vt},{typeName:"LightClientOptimisticUpdate",jsonCase:"eth2"}),sf=new k({snapshot:v0,validUpdates:new DA(_0,YI*Wg)},{typeName:"LightClientStore",jsonCase:"eth2"}),O0=new k({...Tt.fields,parentBeaconBlockRoot:HE},{typeName:"PayloadAttributes",jsonCase:"eth2"}),cf=new k({...FC.fields,payloadAttributes:O0},{typeName:"SSEPayloadAttributes",jsonCase:"eth2"}),lf=new k({block:KE,kzgProofs:ye,blobs:we},{typeName:"BlockContents",jsonCase:"eth2"}),hf=new k({signedBlock:H0,kzgProofs:ye,blobs:we},{typeName:"BlockContents",jsonCase:"eth2"}),Z0=Object.freeze(Object.defineProperty({__proto__:null,AggregateAndProof:p0,AggregationBits:u0,Attestation:de,AttesterSlashing:eB,AttestingIndices:JE,BeaconBlock:KE,BeaconBlockBody:m0,BeaconState:nf,BlindedBeaconBlock:M0,BlindedBeaconBlockBody:J0,BlockContents:lf,BuilderBid:q0,CommitteeBits:f0,ConsolidationRequest:R0,ConsolidationRequests:U0,DepositRequest:d0,DepositRequests:G0,ExecutionPayload:L0,ExecutionPayloadHeader:$t,ExecutionRequests:Xt,IndexedAttestation:Qf,IndexedAttestationBigint:qE,LightClientBootstrap:v0,LightClientFinalityUpdate:rf,LightClientOptimisticUpdate:af,LightClientStore:sf,LightClientUpdate:_0,PayloadAttributes:O0,PendingConsolidation:T0,PendingDeposit:K0,PendingDeposits:Y0,PendingPartialWithdrawal:b0,SSEPayloadAttributes:cf,SignedAggregateAndProof:F0,SignedBeaconBlock:H0,SignedBlindedBeaconBlock:Ef,SignedBlockContents:hf,SignedBuilderBid:of,SingleAttestation:ME,WithdrawalRequest:N0,WithdrawalRequests:k0},Symbol.toStringTag,{value:"Module"}));var Ge;(function(A){A.builder="builder",A.engine="engine"})(Ge||(Ge={}));const j0={[lA.phase0]:{...YB},[lA.altair]:{...YB,...le},[lA.bellatrix]:{...YB,...le,...dC},[lA.capella]:{...YB,...le,...dC,...vt},[lA.deneb]:{...YB,...le,...dC,...vt,...LE},[lA.electra]:{...YB,...le,...dC,...vt,...LE,...Z0}};function qA(A,g){return g===void 0?j0[A]:j0[A][g]}const tI=Object.freeze(Object.defineProperty({__proto__:null,BLSPubkey:oe,BLSSignature:Nt,BlobIndex:WQ,Boolean:gg,Byte:es,Bytes20:Cs,Bytes32:_Q,Bytes4:DC,Bytes48:OQ,Bytes8:vQ,Bytes96:ZQ,CommitteeIndex:GB,DepositIndex:rs,Domain:hs,DomainType:ls,Epoch:AI,EpochInf:Es,ExecutionAddress:XQ,ForkDigest:VQ,Gwei:as,ParticipationFlags:Ss,Root:NB,Slot:_A,SubcommitteeIndex:xQ,SyncPeriod:os,Uint16:is,Uint32:jQ,Uint8:ts,UintBn128:Qs,UintBn256:zQ,UintBn64:Ee,UintNum64:pA,UintNumInf64:PQ,ValidatorIndex:PA,Version:cs,Wei:ss,WithdrawalIndex:ns,altair:le,bellatrix:dC,capella:vt,deneb:LE,electra:Z0,phase0:YB,sszTypesFor:qA},Symbol.toStringTag,{value:"Module"}));function Ai(A){return A.kzgProofs!==void 0}function mI(A){const g=A;return g.finalityBranch!==void 0&&g.finalityBranch.length===pI}function P0(A){const g=A;return g.finalityBranch!==void 0&&g.finalityBranch.length===pI}function Sf(A,g){const I=new Map,B=new Map,C=new Map,e=new Map;for(const i of Object.values(A.forks)){const t=wf(i.version,g),E=gi(t);e.set(E,i.name),B.set(i.name,t),C.set(i.name,E)}return{genesisValidatorsRoot:g,getDomain(i,t,E){const c=Math.floor((E??i)/Wg),a=A.getForkInfo(i),l=c<a.epoch?a.prevForkName:a.name,w=A.forks[l];let S=I.get(w.name);S||(S=new Map,I.set(w.name,S));let u=S.get(t);return u||(u=z0(t,w.version,g),S.set(t,u)),u},getDomainAtFork(i,t){const E=A.forks[i];let c=I.get(E.name);c||(c=new Map,I.set(E.name,c));let a=c.get(t);return a||(a=z0(t,E.version,g),c.set(t,a)),a},getDomainForVoluntaryExit(i,t){return i<A.DENEB_FORK_EPOCH*Wg?this.getDomain(i,Yn,t):this.getDomainAtFork(lA.capella,Yn)},forkDigest2ForkName(i){const t=gi(i),E=e.get(t);if(E==null)throw Error(`Unknown forkDigest ${t}`);return E},forkDigest2ForkNameOption(i){const t=gi(i);return e.get(t)??null},forkName2ForkDigest(i){const t=B.get(i);if(!t)throw Error(`No precomputed forkDigest for ${i}`);return t},forkName2ForkDigestHex(i){const t=C.get(i);if(!t)throw Error(`No precomputed forkDigest for ${i}`);return gi(t)}}}function z0(A,g,I){const B=x0(g,I),C=new Uint8Array(32);return C.set(A,0),C.set(B.slice(0,28),4),C}function x0(A,g){const I={currentVersion:A,genesisValidatorsRoot:g};return CE.hashTreeRoot(I)}function gi(A){return kw(typeof A=="string"?A:Vg(A))}function wf(A,g){return x0(A,g).slice(0,4)}function Df(A){const g={name:lA.phase0,seq:WA.phase0,epoch:mh,version:A.GENESIS_FORK_VERSION,prevVersion:A.GENESIS_FORK_VERSION,prevForkName:lA.phase0},I={name:lA.altair,seq:WA.altair,epoch:A.ALTAIR_FORK_EPOCH,version:A.ALTAIR_FORK_VERSION,prevVersion:A.GENESIS_FORK_VERSION,prevForkName:lA.phase0},B={name:lA.bellatrix,seq:WA.bellatrix,epoch:A.BELLATRIX_FORK_EPOCH,version:A.BELLATRIX_FORK_VERSION,prevVersion:A.ALTAIR_FORK_VERSION,prevForkName:lA.altair},C={name:lA.capella,seq:WA.capella,epoch:A.CAPELLA_FORK_EPOCH,version:A.CAPELLA_FORK_VERSION,prevVersion:A.BELLATRIX_FORK_VERSION,prevForkName:lA.bellatrix},e={name:lA.deneb,seq:WA.deneb,epoch:A.DENEB_FORK_EPOCH,version:A.DENEB_FORK_VERSION,prevVersion:A.CAPELLA_FORK_VERSION,prevForkName:lA.capella},i={name:lA.electra,seq:WA.electra,epoch:A.ELECTRA_FORK_EPOCH,version:A.ELECTRA_FORK_VERSION,prevVersion:A.DENEB_FORK_VERSION,prevForkName:lA.deneb},t={phase0:g,altair:I,bellatrix:B,capella:C,deneb:e,electra:i},E=Object.values(t),c=Object.values(t).reverse();return{forks:t,forksAscendingEpochOrder:E,forksDescendingEpochOrder:c,getForkInfo(a){const l=Math.floor(Math.max(a,0)/Wg);return this.getForkInfoAtEpoch(l)},getForkInfoAtEpoch(a){for(const l of c)if(a>=l.epoch)return l;return g},getForkName(a){return this.getForkInfo(a).name},getForkSeq(a){return this.getForkInfo(a).seq},getForkSeqAtEpoch(a){return this.getForkInfoAtEpoch(a).seq},getForkVersion(a){return this.getForkInfo(a).version},getForkTypes(a){return qA(this.getForkName(a))},getPostBellatrixForkTypes(a){const l=this.getForkName(a);if(!XC(l))throw Error(`Invalid slot=${a} fork=${l} for post-bellatrix fork types`);return qA(l)},getPostAltairForkTypes(a){const l=this.getForkName(a);if(!Pi(l))throw Error(`Invalid slot=${a} fork=${l} for post-altair fork types`);return qA(l)},getPostDenebForkTypes(a){const l=this.getForkName(a);if(!qg(l))throw Error(`Invalid slot=${a} fork=${l} for post-deneb fork types`);return qA(l)},getMaxBlobsPerBlock(a){return ZA(a)?A.MAX_BLOBS_PER_BLOCK_ELECTRA:A.MAX_BLOBS_PER_BLOCK},getMaxRequestBlobSidecars(a){return ZA(a)?A.MAX_REQUEST_BLOB_SIDECARS_ELECTRA:A.MAX_REQUEST_BLOB_SIDECARS}}}function YE(A){const g=Zw(A);return{...g,...Df(g)}}function W0(A,g){const I=YE(A);return{...I,...Sf(I,g)}}function V0(A){return{all:A=A||new Map,on:function(g,I){var B=A.get(g);B?B.push(I):A.set(g,[I])},off:function(g,I){var B=A.get(g);B&&(I?B.splice(B.indexOf(I)>>>0,1):A.set(g,[]))},emit:function(g,I){var B=A.get(g);B&&B.slice().map(function(C){C(I)}),(B=A.get("*"))&&B.slice().map(function(C){C(g,I)})}}}let Ig;qI=(A=>(A.lightClientOptimisticHeader="light_client_optimistic_header",A.lightClientFinalityHeader="light_client_finality_header",A.statusChange="light_client_status_change",A))(qI||{}),function(A){A.ContentType="content-type",A.Accept="accept",A.Authorization="authorization",A.ExposeHeaders="access-control-expose-headers"}(Ig||(Ig={}));var mg;(function(A){A.json="application/json",A.ssz="application/octet-stream"})(mg||(mg={}));const yf=Object.values(mg);function uf(A,g){return A!==null&&g.includes(A)}function ff(A){if(!A)return null;const g=A.split(";",1)[0].trim().toLowerCase();return uf(g,yf)?g:null}function pf(A,g,{bearerToken:I}){I&&!g.has(Ig.Authorization)&&g.set(Ig.Authorization,`Bearer ${I}`),(A.username||A.password)&&(g.has(Ig.Authorization)||g.set(Ig.Authorization,`Basic ${sw(decodeURIComponent(`${A.username}:${A.password}`))}`),A.username="",A.password="")}function bE(...A){const g=new Headers;for(const I of A)if(I)if(Array.isArray(I))for(const[B,C]of I)g.set(B,C);else if(I instanceof Headers)for(const[B,C]of I)g.set(B,C);else for(const[B,C]of Object.entries(I))g.set(B,C);return g}function Ng(A,g,I=!0){const B=A[g.toLowerCase()];if(B===void 0&&I)throw Error(`${g} header is required`);return B}class Ff extends Headers{getRequired(g){const I=this.get(g);if(I===null)throw Error(`${g} header is required in response`);return I}getOrDefault(g,I){return this.get(g)??I}}var yA;(function(A){A.json="json",A.ssz="ssz"})(yA||(yA={}));function df(A){switch(A){case mg.json:return yA.json;case mg.ssz:return yA.ssz}}const kA={writeReq:()=>({}),parseReq:()=>{},schema:{}};function Ne(A){return{...A,writeReqSsz:()=>{throw Error("Not implemented")},parseReqSsz:()=>{throw Error("Not implemented")},onlySupport:yA.json}}const Gf={toJson:()=>{},fromJson:()=>{},serialize:()=>new Uint8Array,deserialize:()=>{}},KA={toJson:()=>{},fromJson:()=>{},toHeadersObject:()=>({}),fromHeaders:()=>{}},YA={data:Gf,meta:KA,isEmpty:!0};function wA(A,g=1/0){if(RI(A))return new DA(A,g);if(MQ(A))return new zI(A,g);throw Error(`Unknown type ${A.typeName}`)}function Nf(A){return{toJson:(g,I)=>A(I).toJson(g),fromJson:(g,I)=>A(I).fromJson(g),serialize:(g,I)=>A(I).serialize(g),deserialize:(g,I)=>A(I).deserialize(g)}}function Tg(A){return{toJson:(g,I)=>A(I.version).toJson(g),fromJson:(g,I)=>A(I.version).fromJson(g),serialize:(g,I)=>A(I.version).serialize(g),deserialize:(g,I)=>A(I.version).deserialize(g)}}function kf(A){return{...A,data:{...A.data,serialize:()=>{throw Error("Not implemented")},deserialize:()=>{throw Error("Not implemented")}},onlySupport:yA.json}}const Eg={data:{toJson:A=>nt(A,"snake"),fromJson:A=>{if(typeof A!="object"||A===null)throw Error("JSON must be of type object");return nt(A,"camel")},serialize:()=>{throw Error("Not implemented")},deserialize:()=>{throw Error("Not implemented")}},meta:KA,onlySupport:yA.json};function $A(A){if(A=A.toLowerCase(),!(A in lA))throw Error(`Invalid version ${A}`);return A}function HI(A){if(!Pi(A))throw Error(`Invalid fork=${A} for post-altair fork types`);return qA(A)}function iI(A){if(!XC(A))throw Error(`Invalid fork=${A} for post-bellatrix fork types`);return qA(A)}var T;(function(A){A[A.Uint=0]="Uint",A[A.UintRequired=1]="UintRequired",A[A.UintArray=2]="UintArray",A[A.String=3]="String",A[A.StringRequired=4]="StringRequired",A[A.StringArray=5]="StringArray",A[A.StringArrayRequired=6]="StringArrayRequired",A[A.UintOrStringRequired=7]="UintOrStringRequired",A[A.UintOrStringArray=8]="UintOrStringArray",A[A.Object=9]="Object",A[A.ObjectArray=10]="ObjectArray",A[A.AnyArray=11]="AnyArray",A[A.Boolean=12]="Boolean"})(T||(T={}));function Rf(A){return A.method==="GET"||A.req.schema.body===void 0}var CB;(function(A){A.String="String",A.Variable="Variable"})(CB||(CB={}));function Uf(A){const g=[];let I=0,B=!1;for(let C=0,e=A.length;C<e;C++)switch(A[C]){case"{":{if(B)throw Error(`Invalid path variable not closed: ${A}`);C>I&&g.push({type:CB.String,str:A.slice(I,C)}),I=C+1,B=!0;break}case"}":{if(!B)throw Error(`Invalid path variable not open: ${A}`);if(I===C)throw Error(`Empty variable: ${A}`);g.push({type:CB.Variable,var:A.slice(I,C)}),B=!1,I=C+1;break}}if(B)throw Error(`Invalid path variable not closed: ${A}`);return I<A.length&&g.push({type:CB.String,str:A.slice(I)}),g}function Lf(A){const g=Uf(A);if(g.length===1&&g[0].type===CB.String)return()=>A;const I=g.map(B=>{switch(B.type){case CB.String:return()=>B.str;case CB.Variable:{const C=B.var;return e=>e[C]}}});return function(B){let C="";for(const e of I)C+=e(B);return C}}function mf(A){const g=parseInt(A,10);if(!Number.isFinite(g))throw Error(`Invalid uin64 ${A}`);return g}function Hf(A){return A.toString(10)}function NC(A){return A==null?void 0:A.map(g=>typeof g=="string"?g:Hf(g))}function kC(A){return A==null?void 0:A.map(g=>typeof g=="string"&&g.startsWith("0x")?g:mf(g))}const Ii=66;function TE(A){if(A===void 0)return;const g=Vg(new TextEncoder().encode(A));return g.length>Ii?g.slice(0,Ii):g.length<Ii?g.padEnd(Ii,"0"):g}function vE(A){if(A!==void 0)try{return new TextDecoder("utf8").decode(iA(A))}catch{return A}}function OB(A){if(A=A.toLowerCase(),A!=="true"&&A!=="false")throw Error(`Invalid boolean ${A}`);return A==="true"}const ZB=new k({version:new he});ZB.fields.version.fromJson=A=>$A(BB.fromJson(A));const RC=new k({executionOptimistic:gg},{jsonCase:"eth2"}),_E=new k({...RC.fields,finalized:gg},{jsonCase:"eth2"});new k({...RC.fields,...ZB.fields},{jsonCase:"eth2"});const X0=new k({..._E.fields,...ZB.fields},{jsonCase:"eth2"}),$0=new k({...RC.fields,dependentRoot:BB},{jsonCase:"eth2"});var tA;(function(A){A.Version="Eth-Consensus-Version",A.ConsensusBlockValue="Eth-Consensus-Block-Value",A.ExecutionPayloadBlinded="Eth-Execution-Payload-Blinded",A.ExecutionPayloadValue="Eth-Execution-Payload-Value",A.Finalized="Eth-Consensus-Finalized",A.DependentRoot="Eth-Consensus-Dependent-Root",A.ExecutionOptimistic="Eth-Execution-Optimistic",A.ExecutionPayloadSource="Eth-Execution-Payload-Source"})(tA||(tA={}));const Jf={toJson:A=>RC.toJson(A),fromJson:A=>RC.fromJson(A),toHeadersObject:A=>({[tA.ExecutionOptimistic]:A.executionOptimistic.toString(),[Ig.ExposeHeaders]:tA.ExecutionOptimistic}),fromHeaders:A=>({executionOptimistic:OB(A.getOrDefault(tA.ExecutionOptimistic,"false"))})},lI={toJson:A=>ZB.toJson(A),fromJson:A=>ZB.fromJson(A),toHeadersObject:A=>({[tA.Version]:A.version,[Ig.ExposeHeaders]:tA.Version}),fromHeaders:A=>({version:$A(A.getRequired(tA.Version))})},Ag={toJson:A=>_E.toJson(A),fromJson:A=>_E.fromJson(A),toHeadersObject:A=>({[tA.ExecutionOptimistic]:A.executionOptimistic.toString(),[tA.Finalized]:A.finalized.toString(),[Ig.ExposeHeaders]:[tA.ExecutionOptimistic,tA.Finalized].toString()}),fromHeaders:A=>({executionOptimistic:OB(A.getOrDefault(tA.ExecutionOptimistic,"false")),finalized:OB(A.getOrDefault(tA.Finalized,"false"))})},UC={toJson:A=>X0.toJson(A),fromJson:A=>X0.fromJson(A),toHeadersObject:A=>({[tA.ExecutionOptimistic]:A.executionOptimistic.toString(),[tA.Finalized]:A.finalized.toString(),[tA.Version]:A.version,[Ig.ExposeHeaders]:[tA.ExecutionOptimistic,tA.Finalized,tA.Version].toString()}),fromHeaders:A=>({executionOptimistic:OB(A.getOrDefault(tA.ExecutionOptimistic,"false")),finalized:OB(A.getOrDefault(tA.Finalized,"false")),version:$A(A.getRequired(tA.Version))})},Ac={toJson:A=>$0.toJson(A),fromJson:A=>$0.fromJson(A),toHeadersObject:A=>({[tA.ExecutionOptimistic]:A.executionOptimistic.toString(),[tA.DependentRoot]:A.dependentRoot,[Ig.ExposeHeaders]:[tA.ExecutionOptimistic,tA.DependentRoot].toString()}),fromHeaders:A=>({executionOptimistic:OB(A.getOrDefault(tA.ExecutionOptimistic,"false")),dependentRoot:A.getRequired(tA.DependentRoot)})},gc=new k({root:NB,canonical:gg,header:AE}),Mf=new DA(gc,1e3),Ic=new k({root:NB});var Bc;(function(A){A.none="none",A.gossip="gossip",A.consensus="consensus",A.consensusAndEquivocation="consensus_and_equivocation"})(Bc||(Bc={}));const ke={writeReq:({blockId:A})=>({params:{block_id:A.toString()}}),parseReq:({params:A})=>({blockId:A.block_id}),schema:{params:{block_id:T.StringRequired}}};function qf(A){return{getBlockV2:{url:"/eth/v2/beacon/blocks/{block_id}",method:"GET",req:ke,resp:{data:Tg(g=>tI[g].SignedBeaconBlock),meta:UC}},getBlindedBlock:{url:"/eth/v1/beacon/blinded_blocks/{block_id}",method:"GET",req:ke,resp:{data:Tg(g=>XC(g)?tI[g].SignedBlindedBeaconBlock:tI[g].SignedBeaconBlock),meta:UC}},getBlockAttestations:{url:"/eth/v1/beacon/blocks/{block_id}/attestations",method:"GET",req:ke,resp:{data:cg.fields.attestations,meta:Ag}},getBlockAttestationsV2:{url:"/eth/v2/beacon/blocks/{block_id}/attestations",method:"GET",req:ke,resp:{data:Tg(g=>tI[g].BeaconBlockBody.fields.attestations),meta:UC}},getBlockHeader:{url:"/eth/v1/beacon/headers/{block_id}",method:"GET",req:ke,resp:{data:gc,meta:Ag}},getBlockHeaders:{url:"/eth/v1/beacon/headers",method:"GET",req:{writeReq:({slot:g,parentRoot:I})=>({query:{slot:g,parent_root:I}}),parseReq:({query:g})=>({slot:g.slot,parentRoot:g.parent_root}),schema:{query:{slot:T.Uint,parent_root:T.String}}},resp:{data:Mf,meta:Ag}},getBlockRoot:{url:"/eth/v1/beacon/blocks/{block_id}/root",method:"GET",req:ke,resp:{data:Ic,meta:Ag}},publishBlock:{url:"/eth/v1/beacon/blocks",method:"POST",req:{writeReqJson:({signedBlockOrContents:g})=>{const I=Ai(g)?g.signedBlock.message.slot:g.message.slot,B=A.getForkName(I);return{body:qg(B)?qA(B).SignedBlockContents.toJson(g):qA(B).SignedBeaconBlock.toJson(g),headers:{[tA.Version]:A.getForkName(I)}}},parseReqJson:({body:g,headers:I})=>{let B;const C=Ng(I,tA.Version,!1);return C!==void 0?B=$A(C):B=A.getForkName(g.signed_block!==void 0?g.signed_block.message.slot:g.message.slot),{signedBlockOrContents:qg(B)?qA(B).SignedBlockContents.fromJson(g):tI[B].SignedBeaconBlock.fromJson(g)}},writeReqSsz:({signedBlockOrContents:g})=>{const I=Ai(g)?g.signedBlock.message.slot:g.message.slot,B=A.getForkName(I);return{body:qg(B)?qA(B).SignedBlockContents.serialize(g):qA(B).SignedBeaconBlock.serialize(g),headers:{[tA.Version]:A.getForkName(I)}}},parseReqSsz:({body:g,headers:I})=>{const B=$A(Ng(I,tA.Version));return{signedBlockOrContents:qg(B)?qA(B).SignedBlockContents.deserialize(g):tI[B].SignedBeaconBlock.deserialize(g)}},schema:{body:T.Object,headers:{[tA.Version]:T.String}}},resp:YA,init:{requestWireFormat:yA.ssz}},publishBlockV2:{url:"/eth/v2/beacon/blocks",method:"POST",req:{writeReqJson:({signedBlockOrContents:g,broadcastValidation:I})=>{const B=Ai(g)?g.signedBlock.message.slot:g.message.slot,C=A.getForkName(B);return{body:qg(C)?qA(C).SignedBlockContents.toJson(g):qA(C).SignedBeaconBlock.toJson(g),headers:{[tA.Version]:C},query:{broadcast_validation:I}}},parseReqJson:({body:g,headers:I,query:B})=>{const C=$A(Ng(I,tA.Version));return{signedBlockOrContents:qg(C)?qA(C).SignedBlockContents.fromJson(g):tI[C].SignedBeaconBlock.fromJson(g),broadcastValidation:B.broadcast_validation}},writeReqSsz:({signedBlockOrContents:g,broadcastValidation:I})=>{const B=Ai(g)?g.signedBlock.message.slot:g.message.slot,C=A.getForkName(B);return{body:qg(C)?qA(C).SignedBlockContents.serialize(g):qA(C).SignedBeaconBlock.serialize(g),headers:{[tA.Version]:C},query:{broadcast_validation:I}}},parseReqSsz:({body:g,headers:I,query:B})=>{const C=$A(Ng(I,tA.Version));return{signedBlockOrContents:qg(C)?qA(C).SignedBlockContents.deserialize(g):tI[C].SignedBeaconBlock.deserialize(g),broadcastValidation:B.broadcast_validation}},schema:{body:T.Object,query:{broadcast_validation:T.String},headers:{[tA.Version]:T.String}}},resp:YA,init:{requestWireFormat:yA.ssz}},publishBlindedBlock:{url:"/eth/v1/beacon/blinded_blocks",method:"POST",req:{writeReqJson:({signedBlindedBlock:g})=>{const I=A.getForkName(g.message.slot);return{body:iI(I).SignedBlindedBeaconBlock.toJson(g),headers:{[tA.Version]:I}}},parseReqJson:({body:g,headers:I})=>{let B;const C=Ng(I,tA.Version,!1);return C!==void 0?B=$A(C):B=A.getForkName(g.message.slot),{signedBlindedBlock:iI(B).SignedBlindedBeaconBlock.fromJson(g)}},writeReqSsz:({signedBlindedBlock:g})=>{const I=A.getForkName(g.message.slot);return{body:iI(I).SignedBlindedBeaconBlock.serialize(g),headers:{[tA.Version]:I}}},parseReqSsz:({body:g,headers:I})=>{const B=$A(Ng(I,tA.Version));return{signedBlindedBlock:iI(B).SignedBlindedBeaconBlock.deserialize(g)}},schema:{body:T.Object,headers:{[tA.Version]:T.String}}},resp:YA,init:{requestWireFormat:yA.ssz}},publishBlindedBlockV2:{url:"/eth/v2/beacon/blinded_blocks",method:"POST",req:{writeReqJson:({signedBlindedBlock:g,broadcastValidation:I})=>{const B=A.getForkName(g.message.slot);return{body:iI(B).SignedBlindedBeaconBlock.toJson(g),headers:{[tA.Version]:B},query:{broadcast_validation:I}}},parseReqJson:({body:g,headers:I,query:B})=>{const C=$A(Ng(I,tA.Version));return{signedBlindedBlock:iI(C).SignedBlindedBeaconBlock.fromJson(g),broadcastValidation:B.broadcast_validation}},writeReqSsz:({signedBlindedBlock:g,broadcastValidation:I})=>{const B=A.getForkName(g.message.slot);return{body:iI(B).SignedBlindedBeaconBlock.serialize(g),headers:{[tA.Version]:B},query:{broadcast_validation:I}}},parseReqSsz:({body:g,headers:I,query:B})=>{const C=$A(Ng(I,tA.Version));return{signedBlindedBlock:iI(C).SignedBlindedBeaconBlock.deserialize(g),broadcastValidation:B.broadcast_validation}},schema:{body:T.Object,query:{broadcast_validation:T.String},headers:{[tA.Version]:T.String}}},resp:YA,init:{requestWireFormat:yA.ssz}},getBlobSidecars:{url:"/eth/v1/beacon/blob_sidecars/{block_id}",method:"GET",req:{writeReq:({blockId:g,indices:I})=>({params:{block_id:g.toString()},query:{indices:I}}),parseReq:({params:g,query:I})=>({blockId:g.block_id,indices:I.indices}),schema:{params:{block_id:T.StringRequired},query:{indices:T.UintArray}}},resp:{data:s0,meta:UC}}}}const tB=wA($I),Bi=wA(ME),ec=wA($I),Kf=wA(de),Cc=wA(II),Yf=wA(eB),bf=wA(AB),Tf=wA(gB),LC=wA(bt),ei=wA(qs);function vf(A){return{getPoolAttestations:{url:"/eth/v1/beacon/pool/attestations",method:"GET",req:{writeReq:({slot:g,committeeIndex:I})=>({query:{slot:g,committee_index:I}}),parseReq:({query:g})=>({slot:g.slot,committeeIndex:g.committee_index}),schema:{query:{slot:T.Uint,committee_index:T.Uint}}},resp:{data:ec,meta:KA}},getPoolAttestationsV2:{url:"/eth/v2/beacon/pool/attestations",method:"GET",req:{writeReq:({slot:g,committeeIndex:I})=>({query:{slot:g,committee_index:I}}),parseReq:({query:g})=>({slot:g.slot,committeeIndex:g.committee_index}),schema:{query:{slot:T.Uint,committee_index:T.Uint}}},resp:{data:Tg(g=>ZA(g)?Kf:ec),meta:lI}},getPoolAttesterSlashings:{url:"/eth/v1/beacon/pool/attester_slashings",method:"GET",req:kA,resp:{data:Cc,meta:KA}},getPoolAttesterSlashingsV2:{url:"/eth/v2/beacon/pool/attester_slashings",method:"GET",req:kA,resp:{data:Tg(g=>ZA(g)?Yf:Cc),meta:lI}},getPoolProposerSlashings:{url:"/eth/v1/beacon/pool/proposer_slashings",method:"GET",req:kA,resp:{data:bf,meta:KA}},getPoolVoluntaryExits:{url:"/eth/v1/beacon/pool/voluntary_exits",method:"GET",req:kA,resp:{data:Tf,meta:KA}},getPoolBLSToExecutionChanges:{url:"/eth/v1/beacon/pool/bls_to_execution_changes",method:"GET",req:kA,resp:{data:LC,meta:KA}},submitPoolAttestations:{url:"/eth/v1/beacon/pool/attestations",method:"POST",req:{writeReqJson:({signedAttestations:g})=>({body:tB.toJson(g)}),parseReqJson:({body:g})=>({signedAttestations:tB.fromJson(g)}),writeReqSsz:({signedAttestations:g})=>({body:tB.serialize(g)}),parseReqSsz:({body:g})=>({signedAttestations:tB.deserialize(g)}),schema:{body:T.ObjectArray}},resp:YA},submitPoolAttestationsV2:{url:"/eth/v2/beacon/pool/attestations",method:"POST",req:{writeReqJson:({signedAttestations:g})=>{var B;const I=A.getForkName(((B=g[0])==null?void 0:B.data.slot)??0);return{body:ZA(I)?Bi.toJson(g):tB.toJson(g),headers:{[tA.Version]:I}}},parseReqJson:({body:g,headers:I})=>{const B=$A(Ng(I,tA.Version));return{signedAttestations:ZA(B)?Bi.fromJson(g):tB.fromJson(g)}},writeReqSsz:({signedAttestations:g})=>{var B;const I=A.getForkName(((B=g[0])==null?void 0:B.data.slot)??0);return{body:ZA(I)?Bi.serialize(g):tB.serialize(g),headers:{[tA.Version]:I}}},parseReqSsz:({body:g,headers:I})=>{const B=$A(Ng(I,tA.Version));return{signedAttestations:ZA(B)?Bi.deserialize(g):tB.deserialize(g)}},schema:{body:T.ObjectArray,headers:{[tA.Version]:T.String}}},resp:YA},submitPoolAttesterSlashings:{url:"/eth/v1/beacon/pool/attester_slashings",method:"POST",req:{writeReqJson:({attesterSlashing:g})=>({body:II.toJson(g)}),parseReqJson:({body:g})=>({attesterSlashing:II.fromJson(g)}),writeReqSsz:({attesterSlashing:g})=>({body:II.serialize(g)}),parseReqSsz:({body:g})=>({attesterSlashing:II.deserialize(g)}),schema:{body:T.Object}},resp:YA},submitPoolAttesterSlashingsV2:{url:"/eth/v2/beacon/pool/attester_slashings",method:"POST",req:{writeReqJson:({attesterSlashing:g})=>{const I=A.getForkName(Number(g.attestation1.data.slot));return{body:ZA(I)?eB.toJson(g):II.toJson(g),headers:{[tA.Version]:I}}},parseReqJson:({body:g,headers:I})=>{const B=$A(Ng(I,tA.Version));return{attesterSlashing:ZA(B)?eB.fromJson(g):II.fromJson(g)}},writeReqSsz:({attesterSlashing:g})=>{const I=A.getForkName(Number(g.attestation1.data.slot));return{body:ZA(I)?eB.serialize(g):II.serialize(g),headers:{[tA.Version]:I}}},parseReqSsz:({body:g,headers:I})=>{const B=$A(Ng(I,tA.Version));return{attesterSlashing:ZA(B)?eB.deserialize(g):II.deserialize(g)}},schema:{body:T.Object,headers:{[tA.Version]:T.String}}},resp:YA},submitPoolProposerSlashings:{url:"/eth/v1/beacon/pool/proposer_slashings",method:"POST",req:{writeReqJson:({proposerSlashing:g})=>({body:AB.toJson(g)}),parseReqJson:({body:g})=>({proposerSlashing:AB.fromJson(g)}),writeReqSsz:({proposerSlashing:g})=>({body:AB.serialize(g)}),parseReqSsz:({body:g})=>({proposerSlashing:AB.deserialize(g)}),schema:{body:T.Object}},resp:YA},submitPoolVoluntaryExit:{url:"/eth/v1/beacon/pool/voluntary_exits",method:"POST",req:{writeReqJson:({signedVoluntaryExit:g})=>({body:gB.toJson(g)}),parseReqJson:({body:g})=>({signedVoluntaryExit:gB.fromJson(g)}),writeReqSsz:({signedVoluntaryExit:g})=>({body:gB.serialize(g)}),parseReqSsz:({body:g})=>({signedVoluntaryExit:gB.deserialize(g)}),schema:{body:T.Object}},resp:YA},submitPoolBLSToExecutionChange:{url:"/eth/v1/beacon/pool/bls_to_execution_changes",method:"POST",req:{writeReqJson:({blsToExecutionChanges:g})=>({body:LC.toJson(g)}),parseReqJson:({body:g})=>({blsToExecutionChanges:LC.fromJson(g)}),writeReqSsz:({blsToExecutionChanges:g})=>({body:LC.serialize(g)}),parseReqSsz:({body:g})=>({blsToExecutionChanges:LC.deserialize(g)}),schema:{body:T.ObjectArray}},resp:YA},submitPoolSyncCommitteeSignatures:{url:"/eth/v1/beacon/pool/sync_committees",method:"POST",req:{writeReqJson:({signatures:g})=>({body:ei.toJson(g)}),parseReqJson:({body:g})=>({signatures:ei.fromJson(g)}),writeReqSsz:({signatures:g})=>({body:ei.serialize(g)}),parseReqSsz:({body:g})=>({signatures:ei.deserialize(g)}),schema:{body:T.ObjectArray}},resp:YA}}}const _f=new k({proposerIndex:PA,total:pA,attestations:pA,syncAggregate:pA,proposerSlashings:pA,attesterSlashings:pA},{jsonCase:"eth2"}),tc=new k({head:pA,target:pA,source:pA,inclusionDelay:pA,inactivity:pA},{jsonCase:"eth2"}),Of=new k({...tc.fields,effectiveBalance:pA},{jsonCase:"eth2"}),Zf=new k({...tc.fields,validatorIndex:PA},{jsonCase:"eth2"}),jf=new k({idealRewards:wA(Of),totalRewards:wA(Zf)},{jsonCase:"eth2"}),Pf=wA(new k({validatorIndex:PA,reward:pA},{jsonCase:"eth2"}));function zf(A){return{getBlockRewards:{url:"/eth/v1/beacon/rewards/blocks/{block_id}",method:"GET",req:{writeReq:({blockId:g})=>({params:{block_id:g.toString()}}),parseReq:({params:g})=>({blockId:g.block_id}),schema:{params:{block_id:T.StringRequired}}},resp:{data:_f,meta:Ag}},getAttestationsRewards:{url:"/eth/v1/beacon/rewards/attestations/{epoch}",method:"POST",req:Ne({writeReqJson:({epoch:g,validatorIds:I})=>({params:{epoch:g},body:NC(I)||[]}),parseReqJson:({params:g,body:I})=>({epoch:g.epoch,validatorIds:kC(I)}),schema:{params:{epoch:T.UintRequired},body:T.UintOrStringArray}}),resp:{data:jf,meta:Ag}},getSyncCommitteeRewards:{url:"/eth/v1/beacon/rewards/sync_committee/{block_id}",method:"POST",req:Ne({writeReqJson:({blockId:g,validatorIds:I})=>({params:{block_id:g.toString()},body:NC(I)||[]}),parseReqJson:({params:g,body:I})=>({blockId:g.block_id,validatorIds:kC(I)}),schema:{params:{block_id:T.StringRequired},body:T.UintOrStringArray}}),resp:{data:Pf,meta:Ag}}}}const xf=new k({randao:NB}),Wf=new k({previousJustified:JA,currentJustified:JA,finalized:JA},{jsonCase:"eth2"}),ic=new k({index:PA,balance:pA,status:new he,validator:Fs}),Vf=new k({index:PA,pubkey:oe,activationEpoch:pA},{jsonCase:"eth2"}),Xf=new k({index:GB,slot:_A,validators:wA(PA,xe)}),$f=new k({index:PA,balance:pA}),Ap=new k({validators:wA(PA),validatorAggregates:wA(wA(PA))},{jsonCase:"eth2"}),Qc=wA(ic),gp=wA(Vf),Ip=wA(Xf),Ec=wA($f),OE={writeReq:({stateId:A})=>({params:{state_id:A.toString()}}),parseReq:({params:A})=>({stateId:A.state_id}),schema:{params:{state_id:T.StringRequired}}};function Bp(A){return{getEpochCommittees:{url:"/eth/v1/beacon/states/{state_id}/committees",method:"GET",req:{writeReq:({stateId:g,epoch:I,index:B,slot:C})=>({params:{state_id:g.toString()},query:{epoch:I,index:B,slot:C}}),parseReq:({params:g,query:I})=>({stateId:g.state_id,epoch:I.epoch,index:I.index,slot:I.slot}),schema:{params:{state_id:T.StringRequired},query:{slot:T.Uint,epoch:T.Uint,index:T.Uint}}},resp:{data:Ip,meta:Ag}},getEpochSyncCommittees:{url:"/eth/v1/beacon/states/{state_id}/sync_committees",method:"GET",req:{writeReq:({stateId:g,epoch:I})=>({params:{state_id:g.toString()},query:{epoch:I}}),parseReq:({params:g,query:I})=>({stateId:g.state_id,epoch:I.epoch}),schema:{params:{state_id:T.StringRequired},query:{epoch:T.Uint}}},resp:{data:Ap,meta:Ag}},getStateFinalityCheckpoints:{url:"/eth/v1/beacon/states/{state_id}/finality_checkpoints",method:"GET",req:OE,resp:{data:Wf,meta:Ag}},getStateFork:{url:"/eth/v1/beacon/states/{state_id}/fork",method:"GET",req:OE,resp:{data:LI,meta:Ag}},getStateRoot:{url:"/eth/v1/beacon/states/{state_id}/root",method:"GET",req:OE,resp:{data:Ic,meta:Ag}},getStateRandao:{url:"/eth/v1/beacon/states/{state_id}/randao",method:"GET",req:{writeReq:({stateId:g,epoch:I})=>({params:{state_id:g.toString()},query:{epoch:I}}),parseReq:({params:g,query:I})=>({stateId:g.state_id,epoch:I.epoch}),schema:{params:{state_id:T.StringRequired},query:{epoch:T.Uint}}},resp:{data:xf,meta:Ag}},getStateValidator:{url:"/eth/v1/beacon/states/{state_id}/validators/{validator_id}",method:"GET",req:{writeReq:({stateId:g,validatorId:I})=>({params:{state_id:g.toString(),validator_id:I}}),parseReq:({params:g})=>({stateId:g.state_id,validatorId:g.validator_id}),schema:{params:{state_id:T.StringRequired,validator_id:T.StringRequired}}},resp:{onlySupport:yA.json,data:ic,meta:Ag}},getStateValidators:{url:"/eth/v1/beacon/states/{state_id}/validators",method:"GET",req:{writeReq:({stateId:g,validatorIds:I,statuses:B})=>({params:{state_id:g.toString()},query:{id:I,status:B}}),parseReq:({params:g,query:I})=>({stateId:g.state_id,validatorIds:I.id,statuses:I.status}),schema:{params:{state_id:T.StringRequired},query:{id:T.UintOrStringArray,status:T.StringArray}}},resp:{onlySupport:yA.json,data:Qc,meta:Ag}},postStateValidators:{url:"/eth/v1/beacon/states/{state_id}/validators",method:"POST",req:Ne({writeReqJson:({stateId:g,validatorIds:I,statuses:B})=>({params:{state_id:g.toString()},body:{ids:NC(I),statuses:B}}),parseReqJson:({params:g,body:I={}})=>({stateId:g.state_id,validatorIds:kC(I.ids),statuses:I.statuses}),schema:{params:{state_id:T.StringRequired},body:T.Object}}),resp:{onlySupport:yA.json,data:Qc,meta:Ag}},postStateValidatorIdentities:{url:"/eth/v1/beacon/states/{state_id}/validator_identities",method:"POST",req:Ne({writeReqJson:({stateId:g,validatorIds:I})=>({params:{state_id:g.toString()},body:NC(I)||[]}),parseReqJson:({params:g,body:I=[]})=>({stateId:g.state_id,validatorIds:kC(I)}),schema:{params:{state_id:T.StringRequired},body:T.UintOrStringArray}}),resp:{data:gp,meta:Ag}},getStateValidatorBalances:{url:"/eth/v1/beacon/states/{state_id}/validator_balances",method:"GET",req:{writeReq:({stateId:g,validatorIds:I})=>({params:{state_id:g.toString()},query:{id:I}}),parseReq:({params:g,query:I})=>({stateId:g.state_id,validatorIds:I.id}),schema:{params:{state_id:T.StringRequired},query:{id:T.UintOrStringArray}}},resp:{data:Ec,meta:Ag}},postStateValidatorBalances:{url:"/eth/v1/beacon/states/{state_id}/validator_balances",method:"POST",req:Ne({writeReqJson:({stateId:g,validatorIds:I})=>({params:{state_id:g.toString()},body:NC(I)||[]}),parseReqJson:({params:g,body:I=[]})=>({stateId:g.state_id,validatorIds:kC(I)}),schema:{params:{state_id:T.StringRequired},body:T.UintOrStringArray}}),resp:{data:Ec,meta:Ag}}}}function ep(A){return{getGenesis:{url:"/eth/v1/beacon/genesis",method:"GET",req:kA,resp:{data:Ls,meta:KA}},...qf(A),...vf(A),...Bp(),...zf()}}const Cp=new k({chainId:pA,address:XQ},{jsonCase:"eth2"}),tp=wA(LI);function ip(A){return{getDepositContract:{url:"/eth/v1/config/deposit_contract",method:"GET",req:kA,resp:{data:Cp,meta:KA}},getForkSchedule:{url:"/eth/v1/config/fork_schedule",method:"GET",req:kA,resp:{data:tp,meta:KA}},getSpec:{url:"/eth/v1/config/spec",method:"GET",req:kA,resp:kf({data:{toJson:g=>g,fromJson:g=>{if(typeof g!="object"||g===null)throw Error("JSON must be of type object");return g}},meta:KA})}}}const og=new he,Qp=new k({executionPayloadBlockHash:og,executionPayloadNumber:pA,executionStatus:og,slot:_A,blockRoot:og,parentRoot:og,stateRoot:og,targetRoot:og,timeliness:gg,justifiedEpoch:AI,justifiedRoot:og,finalizedEpoch:AI,finalizedRoot:og,unrealizedJustifiedEpoch:AI,unrealizedJustifiedRoot:og,unrealizedFinalizedEpoch:AI,unrealizedFinalizedRoot:og,parent:og,weight:jQ,bestChild:og,bestDescendant:og},{jsonCase:"eth2"}),Ep=new k({slot:_A,root:og,executionOptimistic:gg},{jsonCase:"eth2"}),op=new k({slot:_A,blockRoot:og,parentRoot:og,justifiedEpoch:AI,finalizedEpoch:AI,weight:pA,validity:new he,executionBlockHash:og},{jsonCase:"eth2"}),np=new k({justifiedCheckpoint:JA,finalizedCheckpoint:JA,forkChoiceNodes:wA(op)},{jsonCase:"eth2"}),rp=wA(Qp),ap=wA(Ep);function sp(A){return{getDebugChainHeadsV2:{url:"/eth/v2/debug/beacon/heads",method:"GET",req:kA,resp:{data:ap,meta:KA,onlySupport:yA.json}},getDebugForkChoice:{url:"/eth/v1/debug/fork_choice",method:"GET",req:kA,resp:{data:np,meta:KA,onlySupport:yA.json,transform:{toResponse:g=>({...g}),fromResponse:g=>({data:g})}}},getProtoArrayNodes:{url:"/eth/v0/debug/forkchoice",method:"GET",req:kA,resp:{data:rp,meta:KA,onlySupport:yA.json}},getStateV2:{url:"/eth/v2/debug/beacon/states/{state_id}",method:"GET",req:{writeReq:({stateId:g})=>({params:{state_id:g.toString()}}),parseReq:({params:g})=>({stateId:g.state_id}),schema:{params:{state_id:T.StringRequired}}},resp:{data:Tg(g=>tI[g].BeaconState),meta:UC},init:{timeoutMs:3e5}}}}const Fg=new he,cp=new k({blockRoot:Fg,index:WQ,slot:_A,kzgCommitment:Fg,versionedHash:Fg},{typeName:"BlobSidecarSSE",jsonCase:"eth2"});var nA;(function(A){A.head="head",A.block="block",A.blockGossip="block_gossip",A.attestation="attestation",A.singleAttestation="single_attestation",A.voluntaryExit="voluntary_exit",A.proposerSlashing="proposer_slashing",A.attesterSlashing="attester_slashing",A.blsToExecutionChange="bls_to_execution_change",A.finalizedCheckpoint="finalized_checkpoint",A.chainReorg="chain_reorg",A.contributionAndProof="contribution_and_proof",A.lightClientOptimisticUpdate="light_client_optimistic_update",A.lightClientFinalityUpdate="light_client_finality_update",A.payloadAttributes="payload_attributes",A.blobSidecar="blob_sidecar"})(nA||(nA={})),nA.head+"",nA.head,nA.block+"",nA.block,nA.blockGossip+"",nA.blockGossip,nA.attestation+"",nA.attestation,nA.singleAttestation+"",nA.singleAttestation,nA.voluntaryExit+"",nA.voluntaryExit,nA.proposerSlashing+"",nA.proposerSlashing,nA.attesterSlashing+"",nA.attesterSlashing,nA.blsToExecutionChange+"",nA.blsToExecutionChange,nA.finalizedCheckpoint+"",nA.finalizedCheckpoint,nA.chainReorg+"",nA.chainReorg,nA.contributionAndProof+"",nA.contributionAndProof,nA.lightClientOptimisticUpdate+"",nA.lightClientOptimisticUpdate,nA.lightClientFinalityUpdate+"",nA.lightClientFinalityUpdate,nA.payloadAttributes+"",nA.payloadAttributes,nA.blobSidecar+"",nA.blobSidecar;function lp(A){return{eventstream:{url:"/eth/v1/events",method:"GET",req:{writeReq:({topics:g})=>({query:{topics:g}}),parseReq:({query:g})=>({topics:g.topics}),schema:{query:{topics:T.StringArrayRequired}}},resp:YA}}}function hp(A){const g=I=>({toJson:({data:B,version:C})=>({data:I(C).toJson(B),version:C}),fromJson:B=>{const{version:C}=ZB.fromJson(B);return{data:I(C).fromJson(B.data),version:C}}});return{[nA.head]:new k({slot:_A,block:Fg,state:Fg,epochTransition:gg,previousDutyDependentRoot:Fg,currentDutyDependentRoot:Fg,executionOptimistic:gg},{jsonCase:"eth2"}),[nA.block]:new k({slot:_A,block:Fg,executionOptimistic:gg},{jsonCase:"eth2"}),[nA.blockGossip]:new k({slot:_A,block:Fg},{jsonCase:"eth2"}),[nA.attestation]:{toJson:I=>{const B=A.getForkName(I.data.slot);return qA(B).Attestation.toJson(I)},fromJson:I=>{const B=A.getForkName(I.data.slot);return qA(B).Attestation.fromJson(I)}},[nA.singleAttestation]:ME,[nA.voluntaryExit]:gB,[nA.proposerSlashing]:AB,[nA.attesterSlashing]:{toJson:I=>{const B=A.getForkName(Number(I.attestation1.data.slot));return qA(B).AttesterSlashing.toJson(I)},fromJson:I=>{const B=A.getForkName(Number(I.attestation1.data.slot));return qA(B).AttesterSlashing.fromJson(I)}},[nA.blsToExecutionChange]:bt,[nA.finalizedCheckpoint]:new k({block:Fg,state:Fg,epoch:AI,executionOptimistic:gg},{jsonCase:"eth2"}),[nA.chainReorg]:new k({slot:_A,depth:pA,oldHeadBlock:Fg,newHeadBlock:Fg,oldHeadState:Fg,newHeadState:Fg,epoch:AI,executionOptimistic:gg},{jsonCase:"eth2"}),[nA.contributionAndProof]:nE,[nA.payloadAttributes]:g(I=>iI(I).SSEPayloadAttributes),[nA.blobSidecar]:cp,[nA.lightClientOptimisticUpdate]:g(I=>HI(I).LightClientOptimisticUpdate),[nA.lightClientFinalityUpdate]:g(I=>HI(I).LightClientFinalityUpdate)}}function Sp(A){const g=hp(A);return{toJson:I=>g[I.type].toJson(I.message),fromJson:(I,B)=>g[I].fromJson(B)}}const oc={...DB,PRESET_BASE:dg.gnosis,CONFIG_NAME:"gnosis",TERMINAL_TOTAL_DIFFICULTY:BigInt("8626000000000000000000058750000000000000000000"),SECONDS_PER_SLOT:5,SECONDS_PER_ETH1_BLOCK:6,ETH1_FOLLOW_DISTANCE:1024,CHURN_LIMIT_QUOTIENT:4096,MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT:2,DEPOSIT_CHAIN_ID:100,DEPOSIT_NETWORK_ID:100,DEPOSIT_CONTRACT_ADDRESS:iA("0x0b98057ea310f4d31f2a452b414647007d1645d9"),MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS:16384,MIN_GENESIS_TIME:1638968400,MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:4096,GENESIS_FORK_VERSION:iA("0x00000064"),GENESIS_DELAY:6e3,ALTAIR_FORK_VERSION:iA("0x01000064"),ALTAIR_FORK_EPOCH:512,BELLATRIX_FORK_VERSION:iA("0x02000064"),BELLATRIX_FORK_EPOCH:385536,CAPELLA_FORK_VERSION:iA("0x03000064"),CAPELLA_FORK_EPOCH:648704,DENEB_FORK_VERSION:iA("0x04000064"),DENEB_FORK_EPOCH:889856,ELECTRA_FORK_VERSION:iA("0x05000064"),ELECTRA_FORK_EPOCH:1/0},wp={...oc,CONFIG_NAME:"chiado",TERMINAL_TOTAL_DIFFICULTY:BigInt("231707791542740786049188744689299064356246512"),DEPOSIT_CHAIN_ID:10200,DEPOSIT_NETWORK_ID:10200,DEPOSIT_CONTRACT_ADDRESS:iA("0xb97036A26259B7147018913bD58a774cf91acf25"),MIN_GENESIS_TIME:1665396e3,MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:6e3,GENESIS_FORK_VERSION:iA("0x0000006f"),GENESIS_DELAY:300,ALTAIR_FORK_VERSION:iA("0x0100006f"),ALTAIR_FORK_EPOCH:90,BELLATRIX_FORK_VERSION:iA("0x0200006f"),BELLATRIX_FORK_EPOCH:180,CAPELLA_FORK_VERSION:iA("0x0300006f"),CAPELLA_FORK_EPOCH:244224,DENEB_FORK_VERSION:iA("0x0400006f"),DENEB_FORK_EPOCH:516608,ELECTRA_FORK_VERSION:iA("0x0500006f"),ELECTRA_FORK_EPOCH:1/0},mC={...DB,CONFIG_NAME:"ephemery",MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:64,MIN_GENESIS_TIME:1638471600,GENESIS_FORK_VERSION:iA("0x1000101b"),GENESIS_DELAY:300,ALTAIR_FORK_VERSION:iA("0x2000101b"),ALTAIR_FORK_EPOCH:0,BELLATRIX_FORK_VERSION:iA("0x3000101b"),BELLATRIX_FORK_EPOCH:0,TERMINAL_TOTAL_DIFFICULTY:BigInt("0"),CAPELLA_FORK_VERSION:iA("0x4000101b"),CAPELLA_FORK_EPOCH:0,DENEB_FORK_VERSION:iA("0x5000101b"),DENEB_FORK_EPOCH:0,ELECTRA_FORK_VERSION:iA("0x6000101b"),ELECTRA_FORK_EPOCH:10,DEPOSIT_CHAIN_ID:39438e3,DEPOSIT_NETWORK_ID:39438e3,DEPOSIT_CONTRACT_ADDRESS:iA("0x4242424242424242424242424242424242424242"),ETH1_FOLLOW_DISTANCE:12},nc=6048e5,ZE=Math.floor(Date.now()-mC.MIN_GENESIS_TIME)/nc,jE={...mC,MIN_GENESIS_TIME:nc*ZE+mC.MIN_GENESIS_TIME,DEPOSIT_CHAIN_ID:mC.DEPOSIT_CHAIN_ID+ZE,DEPOSIT_NETWORK_ID:mC.DEPOSIT_NETWORK_ID+ZE},Dp={...DB,CONFIG_NAME:"holesky",MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:16384,MIN_GENESIS_TIME:1695902100,GENESIS_DELAY:300,GENESIS_FORK_VERSION:iA("0x01017000"),ALTAIR_FORK_VERSION:iA("0x02017000"),ALTAIR_FORK_EPOCH:0,BELLATRIX_FORK_VERSION:iA("0x03017000"),BELLATRIX_FORK_EPOCH:0,TERMINAL_TOTAL_DIFFICULTY:BigInt("0"),CAPELLA_FORK_VERSION:iA("0x04017000"),CAPELLA_FORK_EPOCH:256,DENEB_FORK_VERSION:iA("0x05017000"),DENEB_FORK_EPOCH:29696,ELECTRA_FORK_VERSION:iA("0x06017000"),ELECTRA_FORK_EPOCH:115968,EJECTION_BALANCE:28e9,DEPOSIT_CHAIN_ID:17e3,DEPOSIT_NETWORK_ID:17e3,DEPOSIT_CONTRACT_ADDRESS:iA("0x4242424242424242424242424242424242424242")},yp={...DB,CONFIG_NAME:"mainnet",DEPOSIT_CONTRACT_ADDRESS:iA("0x00000000219ab540356cBB839Cbe05303d7705Fa"),DEPOSIT_CHAIN_ID:1,DEPOSIT_NETWORK_ID:1,MIN_GENESIS_TIME:1606824e3,GENESIS_DELAY:604800},up={...DB,CONFIG_NAME:"sepolia",MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:1300,MIN_GENESIS_TIME:1655647200,GENESIS_FORK_VERSION:iA("0x90000069"),GENESIS_DELAY:86400,ALTAIR_FORK_VERSION:iA("0x90000070"),ALTAIR_FORK_EPOCH:50,BELLATRIX_FORK_VERSION:iA("0x90000071"),BELLATRIX_FORK_EPOCH:100,TERMINAL_TOTAL_DIFFICULTY:BigInt("17000000000000000"),CAPELLA_FORK_VERSION:iA("0x90000072"),CAPELLA_FORK_EPOCH:56832,DENEB_FORK_VERSION:iA("0x90000073"),DENEB_FORK_EPOCH:132608,ELECTRA_FORK_VERSION:iA("0x90000074"),ELECTRA_FORK_EPOCH:222464,DEPOSIT_CHAIN_ID:11155111,DEPOSIT_NETWORK_ID:11155111,DEPOSIT_CONTRACT_ADDRESS:iA("0x7f02C3E3c98b133055B8B348B2Ac625669Ed295D")},Re={mainnet:yp,gnosis:oc,sepolia:up,holesky:Dp,chiado:wp,ephemery:jE},fp={mainnet:{genesisTime:1606824023,genesisValidatorsRoot:"0x4b363db94e286120d76eb905340fdd4e54bfe9f06bf33ff6cf5ad27f511bfe95"},gnosis:{genesisTime:1638993340,genesisValidatorsRoot:"0xf5dcb5564e829aab27264b9becd5dfaa017085611224cb3036f573368dbb9d47"},sepolia:{genesisTime:1655733600,genesisValidatorsRoot:"0xd8ea171f3c94aea21ebc42a1ed61052acf3f9209c00e4efbaaddac09ed9b8078"},holesky:{genesisTime:1695902400,genesisValidatorsRoot:"0x9143aa7c615a7f7115e2b6aac319c03529df8242ae705fba9df39b79c59fa8b1"},chiado:{genesisTime:1665396300,genesisValidatorsRoot:"0x9d642dac73058fbf39c0ae41ab1e34e4d889043cb199851ded7095bc99eb4c1e"},ephemery:{genesisTime:jE.MIN_GENESIS_TIME+jE.GENESIS_DELAY,genesisValidatorsRoot:"0x0000000000000000000000000000000000000000000000000000000000000000"}},pp=new DA(NB,1e4);function Fp(A){let g;const I=()=>{var B;if(g===void 0){const C=(B=fp[A.CONFIG_NAME])==null?void 0:B.genesisValidatorsRoot;g=W0(A,C?iA(C):Jh)}return g};return{getLightClientUpdatesByRange:{url:"/eth/v1/beacon/light_client/updates",method:"GET",req:{writeReq:({startPeriod:B,count:C})=>({query:{start_period:B,count:C}}),parseReq:({query:B})=>({startPeriod:B.start_period,count:B.count}),schema:{query:{start_period:T.UintRequired,count:T.UintRequired}}},resp:{data:{toJson:(B,C)=>{const e=[];for(const[i,t]of B.entries())e.push(HI(C.versions[i]).LightClientUpdate.toJson(t));return e},fromJson:(B,C)=>{const e=B,i=[];for(let t=0;t<e.length;t++){const E=C.versions[t];i.push(HI(E).LightClientUpdate.fromJson(e[t]))}return i},serialize:(B,C)=>{const e=[];for(const[i,t]of B.entries()){const E=C.versions[i],c=I().forkName2ForkDigest(E),a=HI(E).LightClientUpdate.serialize(t),l=pA.serialize(4+a.length);e.push(l,c,a)}return MA.concat(e)},deserialize:B=>{let C=0;const e=[];for(;C<B.length;){const i=pA.deserialize(B.subarray(C,C+8)),t=VQ.deserialize(B.subarray(C+8,C+12)),E=I().forkDigest2ForkName(t);e.push(HI(E).LightClientUpdate.deserialize(B.subarray(C+12,C+8+i))),C+=8+i}return e}},meta:{toJson:B=>B,fromJson:B=>B,toHeadersObject:B=>({[tA.Version]:B.versions.join(",")}),fromHeaders:B=>{const C=B.getOrDefault(tA.Version,"");return{versions:C===""?[]:C.split(",")}}},transform:{toResponse:(B,C)=>{const e=B,i=[];for(let t=0;t<e.length;t++)i.push({data:e[t],version:C.versions[t]});return i},fromResponse:B=>{if(!Array.isArray(B))throw Error("JSON is not an array");const C=[],e={versions:[]};for(const{data:i,version:t}of B)C.push(i),e.versions.push($A(t));return{data:C,meta:e}}}}},getLightClientOptimisticUpdate:{url:"/eth/v1/beacon/light_client/optimistic_update",method:"GET",req:kA,resp:{data:Tg(B=>HI(B).LightClientOptimisticUpdate),meta:lI}},getLightClientFinalityUpdate:{url:"/eth/v1/beacon/light_client/finality_update",method:"GET",req:kA,resp:{data:Tg(B=>HI(B).LightClientFinalityUpdate),meta:lI}},getLightClientBootstrap:{url:"/eth/v1/beacon/light_client/bootstrap/{block_root}",method:"GET",req:{writeReq:({blockRoot:B})=>({params:{block_root:B}}),parseReq:({params:B})=>({blockRoot:B.block_root}),schema:{params:{block_root:T.StringRequired}}},resp:{data:Tg(B=>HI(B).LightClientBootstrap),meta:lI}},getLightClientCommitteeRoot:{url:"/eth/v0/beacon/light_client/committee_root",method:"GET",req:{writeReq:({startPeriod:B,count:C})=>({query:{start_period:B,count:C}}),parseReq:({query:B})=>({startPeriod:B.start_period,count:B.count}),schema:{query:{start_period:T.UintRequired,count:T.UintRequired}}},resp:{data:pp,meta:KA}}}}const dp=new k({historicalSummaries:fE,proof:wA(vQ)},{jsonCase:"eth2"});function Gp(A){return{writeHeapdump:{url:"/eth/v1/lodestar/write_heapdump",method:"POST",req:{writeReq:({thread:g,dirpath:I})=>({query:{thread:g,dirpath:I}}),parseReq:({query:g})=>({thread:g.thread,dirpath:g.dirpath}),schema:{query:{thread:T.String,dirpath:T.String}}},resp:Eg},writeProfile:{url:"/eth/v1/lodestar/write_profile",method:"POST",req:{writeReq:({thread:g,duration:I,dirpath:B})=>({query:{thread:g,duration:I,dirpath:B}}),parseReq:({query:g})=>({thread:g.thread,duration:g.duration,dirpath:g.dirpath}),schema:{query:{thread:T.String,duration:T.Uint,dirpath:T.String}}},resp:Eg},getLatestWeakSubjectivityCheckpointEpoch:{url:"/eth/v1/lodestar/ws_epoch",method:"GET",req:kA,resp:Eg},getSyncChainsDebugState:{url:"/eth/v1/lodestar/sync_chains_debug_state",method:"GET",req:kA,resp:Eg},getGossipQueueItems:{url:"/eth/v1/lodestar/gossip_queue_items/:gossipType",method:"GET",req:{writeReq:({gossipType:g})=>({params:{gossipType:g}}),parseReq:({params:g})=>({gossipType:g.gossipType}),schema:{params:{gossipType:T.StringRequired}}},resp:Eg},getRegenQueueItems:{url:"/eth/v1/lodestar/regen_queue_items",method:"GET",req:kA,resp:Eg},getBlockProcessorQueueItems:{url:"/eth/v1/lodestar/block_processor_queue_items",method:"GET",req:kA,resp:Eg},getStateCacheItems:{url:"/eth/v1/lodestar/state_cache_items",method:"GET",req:kA,resp:Eg},getGossipPeerScoreStats:{url:"/eth/v1/lodestar/gossip_peer_score_stats",method:"GET",req:kA,resp:Eg},getLodestarPeerScoreStats:{url:"/eth/v1/lodestar/lodestar_peer_score_stats",method:"GET",req:kA,resp:Eg},runGC:{url:"/eth/v1/lodestar/gc",method:"POST",req:kA,resp:YA},dropStateCache:{url:"/eth/v1/lodestar/drop_state_cache",method:"POST",req:kA,resp:YA},connectPeer:{url:"/eth/v1/lodestar/connect_peer",method:"POST",req:{writeReq:({peerId:g,multiaddrs:I})=>({query:{peerId:g,multiaddr:I}}),parseReq:({query:g})=>({peerId:g.peerId,multiaddrs:g.multiaddr}),schema:{query:{peerId:T.StringRequired,multiaddr:T.StringArray}}},resp:YA},disconnectPeer:{url:"/eth/v1/lodestar/disconnect_peer",method:"POST",req:{writeReq:({peerId:g})=>({query:{peerId:g}}),parseReq:({query:g})=>({peerId:g.peerId}),schema:{query:{peerId:T.StringRequired}}},resp:YA},getPeers:{url:"/eth/v1/lodestar/peers",method:"GET",req:{writeReq:({state:g,direction:I})=>({query:{state:g,direction:I}}),parseReq:({query:g})=>({state:g.state,direction:g.direction}),schema:{query:{state:T.StringArray,direction:T.StringArray}}},resp:Eg},getHistoricalSummaries:{url:"/eth/v1/lodestar/historical_summaries/{state_id}",method:"GET",req:{writeReq:({stateId:g})=>({params:{state_id:g.toString()}}),parseReq:({params:g})=>({stateId:g.state_id}),schema:{params:{state_id:T.StringRequired}}},resp:{data:dp,meta:KA}},discv5GetKadValues:{url:"/eth/v1/debug/discv5_kad_values",method:"GET",req:kA,resp:Eg},dumpDbBucketKeys:{url:"/eth/v1/debug/dump_db_bucket_keys/:bucket",method:"GET",req:{writeReq:({bucket:g})=>({params:{bucket:g}}),parseReq:({params:g})=>({bucket:g.bucket}),schema:{params:{bucket:T.String}}},resp:Eg},dumpDbStateIndex:{url:"/eth/v1/debug/dump_db_state_index",method:"GET",req:kA,resp:Eg}}}const Np=new k({peerId:BB,enr:BB,p2pAddresses:wA(BB),discoveryAddresses:wA(BB),metadata:Ms},{jsonCase:"eth2"}),kp=new k({disconnected:pA,connecting:pA,connected:pA,disconnecting:pA},{jsonCase:"eth2"}),Rp=new k({headSlot:_A,syncDistance:_A,isSyncing:gg,isOptimistic:gg,elOffline:gg},{jsonCase:"eth2"});var rc;(function(A){A[A.READY=200]="READY",A[A.SYNCING=206]="SYNCING",A[A.NOT_INITIALIZED_OR_ISSUES=503]="NOT_INITIALIZED_OR_ISSUES"})(rc||(rc={}));function Up(A){return{getNetworkIdentity:{url:"/eth/v1/node/identity",method:"GET",req:kA,resp:{onlySupport:yA.json,data:Np,meta:KA}},getPeers:{url:"/eth/v1/node/peers",method:"GET",req:{writeReq:({state:g,direction:I})=>({query:{state:g,direction:I}}),parseReq:({query:g})=>({state:g.state,direction:g.direction}),schema:{query:{state:T.StringArray,direction:T.StringArray}}},resp:{...Eg,meta:{toJson:g=>g,fromJson:g=>({count:g.count}),toHeadersObject:()=>({}),fromHeaders:()=>({})},transform:{toResponse:(g,I)=>({data:g,meta:I}),fromResponse:g=>g}}},getPeer:{url:"/eth/v1/node/peers/{peer_id}",method:"GET",req:{writeReq:({peerId:g})=>({params:{peer_id:g}}),parseReq:({params:g})=>({peerId:g.peer_id}),schema:{params:{peer_id:T.StringRequired}}},resp:Eg},getPeerCount:{url:"/eth/v1/node/peer_count",method:"GET",req:kA,resp:{data:kp,meta:KA}},getNodeVersion:{url:"/eth/v1/node/version",method:"GET",req:kA,resp:Eg},getSyncingStatus:{url:"/eth/v1/node/syncing",method:"GET",req:kA,resp:{data:Rp,meta:KA}},getHealth:{url:"/eth/v1/node/health",method:"GET",req:{writeReq:({syncingStatus:g})=>({query:{syncing_status:g}}),parseReq:({query:g})=>({syncingStatus:g.syncing_status}),schema:{query:{syncing_status:T.Uint}}},resp:YA}}}const iB=new k({leaves:wA(NB,1e4),descriptor:new lC(2048)});function Lp(A){return{getStateProof:{url:"/eth/v0/beacon/proof/state/{state_id}",method:"GET",req:{writeReq:({stateId:g,descriptor:I})=>({params:{state_id:g},query:{format:Vg(I)}}),parseReq:({params:g,query:I})=>({stateId:g.state_id,descriptor:iA(I.format)}),schema:{params:{state_id:T.StringRequired},query:{format:T.StringRequired}}},resp:{data:{toJson:g=>iB.toJson(g),fromJson:g=>({...iB.fromJson(g),type:vA.compactMulti}),serialize:g=>iB.serialize(g),deserialize:g=>({...iB.deserialize(g),type:vA.compactMulti})},meta:lI}},getBlockProof:{url:"/eth/v0/beacon/proof/block/{block_id}",method:"GET",req:{writeReq:({blockId:g,descriptor:I})=>({params:{block_id:g},query:{format:Vg(I)}}),parseReq:({params:g,query:I})=>({blockId:g.block_id,descriptor:iA(I.format)}),schema:{params:{block_id:T.StringRequired},query:{format:T.StringRequired}}},resp:{data:{toJson:g=>iB.toJson(g),fromJson:g=>({...iB.fromJson(g),type:vA.compactMulti}),serialize:g=>iB.serialize(g),deserialize:g=>({...iB.deserialize(g),type:vA.compactMulti})},meta:lI}}}}var ac;(function(A){A.Default="default",A.BuilderAlways="builderalways",A.ExecutionAlways="executionalways",A.MaxProfit="maxprofit",A.BuilderOnly="builderonly",A.ExecutionOnly="executiononly"})(ac||(ac={}));const sc=new k({...ZB.fields,executionPayloadBlinded:gg,executionPayloadValue:Ee,consensusBlockValue:Ee},{jsonCase:"eth2"}),mp=new k({pubkey:oe,validatorIndex:PA,committeeIndex:GB,committeeLength:pA,committeesAtSlot:pA,validatorCommitteeIndex:pA,slot:_A},{jsonCase:"eth2"}),Hp=new k({slot:_A,validatorIndex:PA,pubkey:oe},{jsonCase:"eth2"}),Jp=new k({pubkey:oe,validatorIndex:PA,validatorSyncCommitteeIndices:wA(GB)},{jsonCase:"eth2"}),Mp=new k({validatorIndex:PA,committeeIndex:GB,committeesAtSlot:_A,slot:_A,isAggregator:gg},{jsonCase:"eth2"}),qp=new k({validatorIndex:PA,syncCommitteeIndices:wA(GB),untilEpoch:AI},{jsonCase:"eth2"}),Kp=new k({validatorIndex:PA,feeRecipient:BB},{jsonCase:"eth2"}),Yp=new k({validatorIndex:PA,slot:_A,selectionProof:Nt},{jsonCase:"eth2"}),bp=new k({validatorIndex:PA,slot:_A,subcommitteeIndex:xQ,selectionProof:Nt},{jsonCase:"eth2"}),Tp=new k({index:PA,isLive:gg},{jsonCase:"eth2"}),vg=wA(PA),vp=wA(mp),_p=wA(Hp),Op=wA(Jp),QB=wA(Us),Ci=wA(F0),ti=wA(nE),ii=wA(Mp),Qi=wA(qp),cc=wA(Kp),HC=wA(Yp),JC=wA(bp),Zp=wA(Tp),Ei=wA(Ws);function jp(A){return{getAttesterDuties:{url:"/eth/v1/validator/duties/attester/{epoch}",method:"POST",req:{writeReqJson:({epoch:g,indices:I})=>({params:{epoch:g},body:vg.toJson(I)}),parseReqJson:({params:g,body:I})=>({epoch:g.epoch,indices:vg.fromJson(I)}),writeReqSsz:({epoch:g,indices:I})=>({params:{epoch:g},body:vg.serialize(I)}),parseReqSsz:({params:g,body:I})=>({epoch:g.epoch,indices:vg.deserialize(I)}),schema:{params:{epoch:T.UintRequired},body:T.StringArray}},resp:{data:vp,meta:Ac}},getProposerDuties:{url:"/eth/v1/validator/duties/proposer/{epoch}",method:"GET",req:{writeReq:({epoch:g})=>({params:{epoch:g}}),parseReq:({params:g})=>({epoch:g.epoch}),schema:{params:{epoch:T.UintRequired}}},resp:{data:_p,meta:Ac}},getSyncCommitteeDuties:{url:"/eth/v1/validator/duties/sync/{epoch}",method:"POST",req:{writeReqJson:({epoch:g,indices:I})=>({params:{epoch:g},body:vg.toJson(I)}),parseReqJson:({params:g,body:I})=>({epoch:g.epoch,indices:vg.fromJson(I)}),writeReqSsz:({epoch:g,indices:I})=>({params:{epoch:g},body:vg.serialize(I)}),parseReqSsz:({params:g,body:I})=>({epoch:g.epoch,indices:vg.deserialize(I)}),schema:{params:{epoch:T.UintRequired},body:T.StringArray}},resp:{data:Op,meta:Jf}},produceBlockV2:{url:"/eth/v2/validator/blocks/{slot}",method:"GET",req:{writeReq:({slot:g,randaoReveal:I,graffiti:B,feeRecipient:C,builderSelection:e,strictFeeRecipientCheck:i})=>({params:{slot:g},query:{randao_reveal:Vg(I),graffiti:TE(B),fee_recipient:C,builder_selection:e,strict_fee_recipient_check:i}}),parseReq:({params:g,query:I})=>({slot:g.slot,randaoReveal:iA(I.randao_reveal),graffiti:vE(I.graffiti),feeRecipient:I.fee_recipient,builderSelection:I.builder_selection,strictFeeRecipientCheck:I.strict_fee_recipient_check}),schema:{params:{slot:T.UintRequired},query:{randao_reveal:T.StringRequired,graffiti:T.String,fee_recipient:T.String,builder_selection:T.String,strict_fee_recipient_check:T.Boolean}}},resp:{data:Tg(g=>qg(g)?qA(g).BlockContents:tI[g].BeaconBlock),meta:lI}},produceBlockV3:{url:"/eth/v3/validator/blocks/{slot}",method:"GET",req:{writeReq:({slot:g,randaoReveal:I,graffiti:B,skipRandaoVerification:C,feeRecipient:e,builderSelection:i,builderBoostFactor:t,strictFeeRecipientCheck:E,blindedLocal:c})=>({params:{slot:g},query:{randao_reveal:Vg(I),graffiti:TE(B),skip_randao_verification:zp(C),fee_recipient:e,builder_selection:i,builder_boost_factor:t==null?void 0:t.toString(),strict_fee_recipient_check:E,blinded_local:c}}),parseReq:({params:g,query:I})=>({slot:g.slot,randaoReveal:iA(I.randao_reveal),graffiti:vE(I.graffiti),skipRandaoVerification:xp(I.skip_randao_verification),feeRecipient:I.fee_recipient,builderSelection:I.builder_selection,builderBoostFactor:Pp(I.builder_boost_factor),strictFeeRecipientCheck:I.strict_fee_recipient_check,blindedLocal:I.blinded_local}),schema:{params:{slot:T.UintRequired},query:{randao_reveal:T.StringRequired,graffiti:T.String,skip_randao_verification:T.String,fee_recipient:T.String,builder_selection:T.String,builder_boost_factor:T.String,strict_fee_recipient_check:T.Boolean,blinded_local:T.Boolean}}},resp:{data:Nf(({version:g,executionPayloadBlinded:I})=>I?iI(g).BlindedBeaconBlock:qg(g)?qA(g).BlockContents:tI[g].BeaconBlock),meta:{toJson:g=>({...sc.toJson(g),execution_payload_source:g.executionPayloadSource}),fromJson:g=>{const{executionPayloadBlinded:I,...B}=sc.fromJson(g),C=g.execution_payload_source??(I===!0?Ge.builder:Ge.engine);return{...B,executionPayloadBlinded:I,executionPayloadSource:C}},toHeadersObject:g=>({[tA.Version]:g.version,[tA.ExecutionPayloadBlinded]:g.executionPayloadBlinded.toString(),[tA.ExecutionPayloadSource]:g.executionPayloadSource.toString(),[tA.ExecutionPayloadValue]:g.executionPayloadValue.toString(),[tA.ConsensusBlockValue]:g.consensusBlockValue.toString()}),fromHeaders:g=>{const I=OB(g.getRequired(tA.ExecutionPayloadBlinded)),B=g.get(tA.ExecutionPayloadSource)??(I===!0?Ge.builder:Ge.engine);return{version:$A(g.getRequired(tA.Version)),executionPayloadBlinded:I,executionPayloadSource:B,executionPayloadValue:BigInt(g.getRequired(tA.ExecutionPayloadValue)),consensusBlockValue:BigInt(g.getRequired(tA.ConsensusBlockValue))}}}}},produceBlindedBlock:{url:"/eth/v1/validator/blinded_blocks/{slot}",method:"GET",req:{writeReq:({slot:g,randaoReveal:I,graffiti:B})=>({params:{slot:g},query:{randao_reveal:Vg(I),graffiti:TE(B)}}),parseReq:({params:g,query:I})=>({slot:g.slot,randaoReveal:iA(I.randao_reveal),graffiti:vE(I.graffiti)}),schema:{params:{slot:T.UintRequired},query:{randao_reveal:T.StringRequired,graffiti:T.String}}},resp:{data:Tg(g=>iI(g).BlindedBeaconBlock),meta:lI}},produceAttestationData:{url:"/eth/v1/validator/attestation_data",method:"GET",req:{writeReq:({committeeIndex:g,slot:I})=>({query:{slot:I,committee_index:g}}),parseReq:({query:g})=>({committeeIndex:g.committee_index,slot:g.slot}),schema:{query:{slot:T.UintRequired,committee_index:T.UintRequired}}},resp:{data:XI,meta:KA}},produceSyncCommitteeContribution:{url:"/eth/v1/validator/sync_committee_contribution",method:"GET",req:{writeReq:({slot:g,subcommitteeIndex:I,beaconBlockRoot:B})=>({query:{slot:g,subcommittee_index:I,beacon_block_root:ot(B)}}),parseReq:({query:g})=>({slot:g.slot,subcommitteeIndex:g.subcommittee_index,beaconBlockRoot:iA(g.beacon_block_root)}),schema:{query:{slot:T.UintRequired,subcommittee_index:T.UintRequired,beacon_block_root:T.StringRequired}}},resp:{data:oE,meta:KA}},getAggregatedAttestation:{url:"/eth/v1/validator/aggregate_attestation",method:"GET",req:{writeReq:({attestationDataRoot:g,slot:I})=>({query:{attestation_data_root:ot(g),slot:I}}),parseReq:({query:g})=>({attestationDataRoot:iA(g.attestation_data_root),slot:g.slot}),schema:{query:{attestation_data_root:T.StringRequired,slot:T.UintRequired}}},resp:{data:$I,meta:KA}},getAggregatedAttestationV2:{url:"/eth/v2/validator/aggregate_attestation",method:"GET",req:{writeReq:({attestationDataRoot:g,slot:I,committeeIndex:B})=>({query:{attestation_data_root:Vg(g),slot:I,committee_index:B}}),parseReq:({query:g})=>({attestationDataRoot:iA(g.attestation_data_root),slot:g.slot,committeeIndex:g.committee_index}),schema:{query:{attestation_data_root:T.StringRequired,slot:T.UintRequired,committee_index:T.UintRequired}}},resp:{data:Tg(g=>ZA(g)?de:$I),meta:lI}},publishAggregateAndProofs:{url:"/eth/v1/validator/aggregate_and_proofs",method:"POST",req:{writeReqJson:({signedAggregateAndProofs:g})=>({body:QB.toJson(g)}),parseReqJson:({body:g})=>({signedAggregateAndProofs:QB.fromJson(g)}),writeReqSsz:({signedAggregateAndProofs:g})=>({body:QB.serialize(g)}),parseReqSsz:({body:g})=>({signedAggregateAndProofs:QB.deserialize(g)}),schema:{body:T.ObjectArray}},resp:YA},publishAggregateAndProofsV2:{url:"/eth/v2/validator/aggregate_and_proofs",method:"POST",req:{writeReqJson:({signedAggregateAndProofs:g})=>{var B;const I=A.getForkName(((B=g[0])==null?void 0:B.message.aggregate.data.slot)??0);return{body:ZA(I)?Ci.toJson(g):QB.toJson(g),headers:{[tA.Version]:I}}},parseReqJson:({body:g,headers:I})=>{const B=$A(Ng(I,tA.Version));return{signedAggregateAndProofs:ZA(B)?Ci.fromJson(g):QB.fromJson(g)}},writeReqSsz:({signedAggregateAndProofs:g})=>{var B;const I=A.getForkName(((B=g[0])==null?void 0:B.message.aggregate.data.slot)??0);return{body:ZA(I)?Ci.serialize(g):QB.serialize(g),headers:{[tA.Version]:I}}},parseReqSsz:({body:g,headers:I})=>{const B=$A(Ng(I,tA.Version));return{signedAggregateAndProofs:ZA(B)?Ci.deserialize(g):QB.deserialize(g)}},schema:{body:T.ObjectArray,headers:{[tA.Version]:T.String}}},resp:YA},publishContributionAndProofs:{url:"/eth/v1/validator/contribution_and_proofs",method:"POST",req:{writeReqJson:({contributionAndProofs:g})=>({body:ti.toJson(g)}),parseReqJson:({body:g})=>({contributionAndProofs:ti.fromJson(g)}),writeReqSsz:({contributionAndProofs:g})=>({body:ti.serialize(g)}),parseReqSsz:({body:g})=>({contributionAndProofs:ti.deserialize(g)}),schema:{body:T.ObjectArray}},resp:YA},prepareBeaconCommitteeSubnet:{url:"/eth/v1/validator/beacon_committee_subscriptions",method:"POST",req:{writeReqJson:({subscriptions:g})=>({body:ii.toJson(g)}),parseReqJson:({body:g})=>({subscriptions:ii.fromJson(g)}),writeReqSsz:({subscriptions:g})=>({body:ii.serialize(g)}),parseReqSsz:({body:g})=>({subscriptions:ii.deserialize(g)}),schema:{body:T.ObjectArray}},resp:YA},prepareSyncCommitteeSubnets:{url:"/eth/v1/validator/sync_committee_subscriptions",method:"POST",req:{writeReqJson:({subscriptions:g})=>({body:Qi.toJson(g)}),parseReqJson:({body:g})=>({subscriptions:Qi.fromJson(g)}),writeReqSsz:({subscriptions:g})=>({body:Qi.serialize(g)}),parseReqSsz:({body:g})=>({subscriptions:Qi.deserialize(g)}),schema:{body:T.ObjectArray}},resp:YA},prepareBeaconProposer:{url:"/eth/v1/validator/prepare_beacon_proposer",method:"POST",req:Ne({writeReqJson:({proposers:g})=>({body:cc.toJson(g)}),parseReqJson:({body:g})=>({proposers:cc.fromJson(g)}),schema:{body:T.ObjectArray}}),resp:YA},submitBeaconCommitteeSelections:{url:"/eth/v1/validator/beacon_committee_selections",method:"POST",req:{writeReqJson:({selections:g})=>({body:HC.toJson(g)}),parseReqJson:({body:g})=>({selections:HC.fromJson(g)}),writeReqSsz:({selections:g})=>({body:HC.serialize(g)}),parseReqSsz:({body:g})=>({selections:HC.deserialize(g)}),schema:{body:T.ObjectArray}},resp:{data:HC,meta:KA}},submitSyncCommitteeSelections:{url:"/eth/v1/validator/sync_committee_selections",method:"POST",req:{writeReqJson:({selections:g})=>({body:JC.toJson(g)}),parseReqJson:({body:g})=>({selections:JC.fromJson(g)}),writeReqSsz:({selections:g})=>({body:JC.serialize(g)}),parseReqSsz:({body:g})=>({selections:JC.deserialize(g)}),schema:{body:T.ObjectArray}},resp:{data:JC,meta:KA}},getLiveness:{url:"/eth/v1/validator/liveness/{epoch}",method:"POST",req:{writeReqJson:({epoch:g,indices:I})=>({params:{epoch:g},body:vg.toJson(I)}),parseReqJson:({params:g,body:I})=>({epoch:g.epoch,indices:vg.fromJson(I)}),writeReqSsz:({epoch:g,indices:I})=>({params:{epoch:g},body:vg.serialize(I)}),parseReqSsz:({params:g,body:I})=>({epoch:g.epoch,indices:vg.deserialize(I)}),schema:{params:{epoch:T.UintRequired},body:T.StringArray}},resp:{data:Zp,meta:KA}},registerValidator:{url:"/eth/v1/validator/register_validator",method:"POST",req:{writeReqJson:({registrations:g})=>({body:Ei.toJson(g)}),parseReqJson:({body:g})=>({registrations:Ei.fromJson(g)}),writeReqSsz:({registrations:g})=>({body:Ei.serialize(g)}),parseReqSsz:({body:g})=>({registrations:Ei.deserialize(g)}),schema:{body:T.ObjectArray}},resp:YA}}}function Pp(A){return A!==void 0?BigInt(A):void 0}function zp(A){return A===!0?"":void 0}function xp(A){return A!==void 0&&A===""}async function Wp(A,g){try{return await fetch(A,g)}catch(I){throw new lc(A,I)}}function Vp(A){return A instanceof lc}class lc extends Error{constructor(g,I){Xp(I)?(super(`Request to ${g.toString()} failed, reason: ${I.cause.message}`),this.type="failed",this.code=I.cause.code||"ERR_FETCH_FAILED",this.cause=I.cause):$p(I)?(super(I.message),this.type="input",this.code=I.cause.code||"ERR_INVALID_INPUT",this.cause=I.cause):AF(I)?(super(`Request to ${g.toString()} was aborted`),this.type="aborted",this.code="ERR_ABORTED"):gF(I)?(super(`Request to ${g.toString()} timed out`),this.type="timeout",this.code="ERR_TIMEOUT"):(super(I.message),this.type="unknown",this.code="ERR_UNKNOWN"),this.name=this.constructor.name}}function hc(A){return A instanceof TypeError&&A.cause instanceof Error}function Xp(A){return hc(A)&&A.message==="fetch failed"}function $p(A){return hc(A)&&A.cause.input!==void 0}function AF(A){return A instanceof DOMException&&A.name==="AbortError"}function gF(A){return A instanceof DOMException&&A.name==="TimeoutError"}var oi;(function(A){A[A.CONTINUE=100]="CONTINUE",A[A.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",A[A.PROCESSING=102]="PROCESSING",A[A.OK=200]="OK",A[A.CREATED=201]="CREATED",A[A.ACCEPTED=202]="ACCEPTED",A[A.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",A[A.NO_CONTENT=204]="NO_CONTENT",A[A.RESET_CONTENT=205]="RESET_CONTENT",A[A.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",A[A.MULTI_STATUS=207]="MULTI_STATUS",A[A.ALREADY_REPORTED=208]="ALREADY_REPORTED",A[A.IM_USED=226]="IM_USED",A[A.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",A[A.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",A[A.FOUND=302]="FOUND",A[A.SEE_OTHER=303]="SEE_OTHER",A[A.NOT_MODIFIED=304]="NOT_MODIFIED",A[A.USE_PROXY=305]="USE_PROXY",A[A.SWITCH_PROXY=306]="SWITCH_PROXY",A[A.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",A[A.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",A[A.BAD_REQUEST=400]="BAD_REQUEST",A[A.UNAUTHORIZED=401]="UNAUTHORIZED",A[A.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",A[A.FORBIDDEN=403]="FORBIDDEN",A[A.NOT_FOUND=404]="NOT_FOUND",A[A.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",A[A.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",A[A.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",A[A.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",A[A.CONFLICT=409]="CONFLICT",A[A.GONE=410]="GONE",A[A.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",A[A.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",A[A.PAYLOAD_TOO_LARGE=413]="PAYLOAD_TOO_LARGE",A[A.URI_TOO_LONG=414]="URI_TOO_LONG",A[A.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",A[A.RANGE_NOT_SATISFIABLE=416]="RANGE_NOT_SATISFIABLE",A[A.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",A[A.I_AM_A_TEAPOT=418]="I_AM_A_TEAPOT",A[A.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST",A[A.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",A[A.LOCKED=423]="LOCKED",A[A.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",A[A.UPGRADE_REQUIRED=426]="UPGRADE_REQUIRED",A[A.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",A[A.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",A[A.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",A[A.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",A[A.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",A[A.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",A[A.BAD_GATEWAY=502]="BAD_GATEWAY",A[A.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",A[A.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",A[A.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",A[A.VARIANT_ALSO_NEGOTIATES=506]="VARIANT_ALSO_NEGOTIATES",A[A.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",A[A.LOOP_DETECTED=508]="LOOP_DETECTED",A[A.NOT_EXTENDED=510]="NOT_EXTENDED",A[A.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED"})(oi||(oi={}));var Sc=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var A={},g=Symbol("test"),I=Object(g);if(typeof g=="string"||Object.prototype.toString.call(g)!=="[object Symbol]"||Object.prototype.toString.call(I)!=="[object Symbol]")return!1;var B=42;A[g]=B;for(g in A)return!1;if(typeof Object.keys=="function"&&Object.keys(A).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(A).length!==0)return!1;var C=Object.getOwnPropertySymbols(A);if(C.length!==1||C[0]!==g||!Object.prototype.propertyIsEnumerable.call(A,g))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var e=Object.getOwnPropertyDescriptor(A,g);if(e.value!==B||e.enumerable!==!0)return!1}return!0},wc=typeof Symbol<"u"&&Symbol,IF=Sc,BF=function(){return typeof wc!="function"||typeof Symbol!="function"||typeof wc("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:IF()},Dc={foo:{}},eF=Object,CF=function(){return{__proto__:Dc}.foo===Dc.foo&&!({__proto__:null}instanceof eF)},tF="Function.prototype.bind called on incompatible ",iF=Object.prototype.toString,QF=Math.max,EF="[object Function]",yc=function(A,g){for(var I=[],B=0;B<A.length;B+=1)I[B]=A[B];for(var C=0;C<g.length;C+=1)I[C+A.length]=g[C];return I},oF=function(A,g){for(var I=[],B=g,C=0;B<A.length;B+=1,C+=1)I[C]=A[B];return I},nF=function(A,g){for(var I="",B=0;B<A.length;B+=1)I+=A[B],B+1<A.length&&(I+=g);return I},rF=function(A){var g=this;if(typeof g!="function"||iF.apply(g)!==EF)throw new TypeError(tF+g);for(var I=oF(arguments,1),B,C=function(){if(this instanceof B){var c=g.apply(this,yc(I,arguments));return Object(c)===c?c:this}return g.apply(A,yc(I,arguments))},e=QF(0,g.length-I.length),i=[],t=0;t<e;t++)i[t]="$"+t;if(B=Function("binder","return function ("+nF(i,",")+"){ return binder.apply(this,arguments); }")(C),g.prototype){var E=function(){};E.prototype=g.prototype,B.prototype=new E,E.prototype=null}return B},aF=rF,PE=Function.prototype.bind||aF,sF=Function.prototype.call,cF=Object.prototype.hasOwnProperty,lF=PE,hF=lF.call(sF,cF),dA,Ue=SyntaxError,uc=Function,Le=TypeError,zE=function(A){try{return uc('"use strict"; return ('+A+").constructor;")()}catch{}},jB=Object.getOwnPropertyDescriptor;if(jB)try{jB({},"")}catch{jB=null}var xE=function(){throw new Le},SF=jB?function(){try{return arguments.callee,xE}catch{try{return jB(arguments,"callee").get}catch{return xE}}}():xE,me=BF(),wF=CF(),Bg=Object.getPrototypeOf||(wF?function(A){return A.__proto__}:null),He={},DF=typeof Uint8Array>"u"||!Bg?dA:Bg(Uint8Array),PB={"%AggregateError%":typeof AggregateError>"u"?dA:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?dA:ArrayBuffer,"%ArrayIteratorPrototype%":me&&Bg?Bg([][Symbol.iterator]()):dA,"%AsyncFromSyncIteratorPrototype%":dA,"%AsyncFunction%":He,"%AsyncGenerator%":He,"%AsyncGeneratorFunction%":He,"%AsyncIteratorPrototype%":He,"%Atomics%":typeof Atomics>"u"?dA:Atomics,"%BigInt%":typeof BigInt>"u"?dA:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?dA:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?dA:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?dA:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?dA:Float32Array,"%Float64Array%":typeof Float64Array>"u"?dA:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?dA:FinalizationRegistry,"%Function%":uc,"%GeneratorFunction%":He,"%Int8Array%":typeof Int8Array>"u"?dA:Int8Array,"%Int16Array%":typeof Int16Array>"u"?dA:Int16Array,"%Int32Array%":typeof Int32Array>"u"?dA:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":me&&Bg?Bg(Bg([][Symbol.iterator]())):dA,"%JSON%":typeof JSON=="object"?JSON:dA,"%Map%":typeof Map>"u"?dA:Map,"%MapIteratorPrototype%":typeof Map>"u"||!me||!Bg?dA:Bg(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?dA:Promise,"%Proxy%":typeof Proxy>"u"?dA:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?dA:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?dA:Set,"%SetIteratorPrototype%":typeof Set>"u"||!me||!Bg?dA:Bg(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?dA:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":me&&Bg?Bg(""[Symbol.iterator]()):dA,"%Symbol%":me?Symbol:dA,"%SyntaxError%":Ue,"%ThrowTypeError%":SF,"%TypedArray%":DF,"%TypeError%":Le,"%Uint8Array%":typeof Uint8Array>"u"?dA:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?dA:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?dA:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?dA:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?dA:WeakMap,"%WeakRef%":typeof WeakRef>"u"?dA:WeakRef,"%WeakSet%":typeof WeakSet>"u"?dA:WeakSet};if(Bg)try{null.error}catch(A){var yF=Bg(Bg(A));PB["%Error.prototype%"]=yF}var uF=function A(g){var I;if(g==="%AsyncFunction%")I=zE("async function () {}");else if(g==="%GeneratorFunction%")I=zE("function* () {}");else if(g==="%AsyncGeneratorFunction%")I=zE("async function* () {}");else if(g==="%AsyncGenerator%"){var B=A("%AsyncGeneratorFunction%");B&&(I=B.prototype)}else if(g==="%AsyncIteratorPrototype%"){var C=A("%AsyncGenerator%");C&&Bg&&(I=Bg(C.prototype))}return PB[g]=I,I},fc={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},MC=PE,ni=hF,fF=MC.call(Function.call,Array.prototype.concat),pF=MC.call(Function.apply,Array.prototype.splice),pc=MC.call(Function.call,String.prototype.replace),ri=MC.call(Function.call,String.prototype.slice),FF=MC.call(Function.call,RegExp.prototype.exec),dF=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,GF=/\\(\\)?/g,NF=function(A){var g=ri(A,0,1),I=ri(A,-1);if(g==="%"&&I!=="%")throw new Ue("invalid intrinsic syntax, expected closing `%`");if(I==="%"&&g!=="%")throw new Ue("invalid intrinsic syntax, expected opening `%`");var B=[];return pc(A,dF,function(C,e,i,t){B[B.length]=i?pc(t,GF,"$1"):e||C}),B},kF=function(A,g){var I=A,B;if(ni(fc,I)&&(B=fc[I],I="%"+B[0]+"%"),ni(PB,I)){var C=PB[I];if(C===He&&(C=uF(I)),typeof C>"u"&&!g)throw new Le("intrinsic "+A+" exists, but is not available. Please file an issue!");return{alias:B,name:I,value:C}}throw new Ue("intrinsic "+A+" does not exist!")},zB=function(A,g){if(typeof A!="string"||A.length===0)throw new Le("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof g!="boolean")throw new Le('"allowMissing" argument must be a boolean');if(FF(/^%?[^%]*%?$/,A)===null)throw new Ue("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var I=NF(A),B=I.length>0?I[0]:"",C=kF("%"+B+"%",g),e=C.name,i=C.value,t=!1,E=C.alias;E&&(B=E[0],pF(I,fF([0,1],E)));for(var c=1,a=!0;c<I.length;c+=1){var l=I[c],w=ri(l,0,1),S=ri(l,-1);if((w==='"'||w==="'"||w==="`"||S==='"'||S==="'"||S==="`")&&w!==S)throw new Ue("property names with quotes must have matching quotes");if((l==="constructor"||!a)&&(t=!0),B+="."+l,e="%"+B+"%",ni(PB,e))i=PB[e];else if(i!=null){if(!(l in i)){if(!g)throw new Le("base intrinsic for "+A+" exists, but the property is not available.");return}if(jB&&c+1>=I.length){var u=jB(i,l);a=!!u,a&&"get"in u&&!("originalValue"in u.get)?i=u.get:i=i[l]}else a=ni(i,l),i=i[l];a&&!t&&(PB[e]=i)}}return i},Fc={exports:{}},RF=zB,WE=RF("%Object.defineProperty%",!0),VE=function(){if(WE)try{return WE({},"a",{value:1}),!0}catch{return!1}return!1};VE.hasArrayLengthDefineBug=function(){if(!VE())return null;try{return WE([],"length",{value:1}).length!==1}catch{return!0}};var dc=VE,UF=zB,ai=UF("%Object.getOwnPropertyDescriptor%",!0);if(ai)try{ai([],"length")}catch{ai=null}var XE=ai,LF=dc(),$E=zB,qC=LF&&$E("%Object.defineProperty%",!0);if(qC)try{qC({},"a",{value:1})}catch{qC=!1}var mF=$E("%SyntaxError%"),Je=$E("%TypeError%"),Gc=XE,HF=function(A,g,I){if(!A||typeof A!="object"&&typeof A!="function")throw new Je("`obj` must be an object or a function`");if(typeof g!="string"&&typeof g!="symbol")throw new Je("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Je("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Je("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Je("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Je("`loose`, if provided, must be a boolean");var B=arguments.length>3?arguments[3]:null,C=arguments.length>4?arguments[4]:null,e=arguments.length>5?arguments[5]:null,i=arguments.length>6?arguments[6]:!1,t=!!Gc&&Gc(A,g);if(qC)qC(A,g,{configurable:e===null&&t?t.configurable:!e,enumerable:B===null&&t?t.enumerable:!B,value:I,writable:C===null&&t?t.writable:!C});else if(i||!B&&!C&&!e)A[g]=I;else throw new mF("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Nc=zB,kc=HF,JF=dc(),Rc=XE,Uc=Nc("%TypeError%"),MF=Nc("%Math.floor%"),qF=function(A,g){if(typeof A!="function")throw new Uc("`fn` is not a function");if(typeof g!="number"||g<0||g>4294967295||MF(g)!==g)throw new Uc("`length` must be a positive 32-bit integer");var I=arguments.length>2&&!!arguments[2],B=!0,C=!0;if("length"in A&&Rc){var e=Rc(A,"length");e&&!e.configurable&&(B=!1),e&&!e.writable&&(C=!1)}return(B||C||!I)&&(JF?kc(A,"length",g,!0,!0):kc(A,"length",g)),A};(function(A){var g=PE,I=zB,B=qF,C=I("%TypeError%"),e=I("%Function.prototype.apply%"),i=I("%Function.prototype.call%"),t=I("%Reflect.apply%",!0)||g.call(i,e),E=I("%Object.defineProperty%",!0),c=I("%Math.max%");if(E)try{E({},"a",{value:1})}catch{E=null}A.exports=function(l){if(typeof l!="function")throw new C("a function is required");var w=t(g,i,arguments);return B(w,1+c(0,l.length-(arguments.length-1)),!0)};var a=function(){return t(g,e,arguments)};E?E(A.exports,"apply",{value:a}):A.exports.apply=a})(Fc);var Lc=Fc.exports,mc=zB,Hc=Lc,KF=Hc(mc("String.prototype.indexOf")),Ao=function(A,g){var I=mc(A,!!g);return typeof I=="function"&&KF(A,".prototype.")>-1?Hc(I):I};const go=Wr(dw);var Io=typeof Map=="function"&&Map.prototype,Bo=Object.getOwnPropertyDescriptor&&Io?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,si=Io&&Bo&&typeof Bo.get=="function"?Bo.get:null,Jc=Io&&Map.prototype.forEach,eo=typeof Set=="function"&&Set.prototype,Co=Object.getOwnPropertyDescriptor&&eo?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ci=eo&&Co&&typeof Co.get=="function"?Co.get:null,Mc=eo&&Set.prototype.forEach,YF=typeof WeakMap=="function"&&WeakMap.prototype,KC=YF?WeakMap.prototype.has:null,bF=typeof WeakSet=="function"&&WeakSet.prototype,YC=bF?WeakSet.prototype.has:null,TF=typeof WeakRef=="function"&&WeakRef.prototype,qc=TF?WeakRef.prototype.deref:null,vF=Boolean.prototype.valueOf,_F=Object.prototype.toString,OF=Function.prototype.toString,ZF=String.prototype.match,to=String.prototype.slice,EB=String.prototype.replace,jF=String.prototype.toUpperCase,Kc=String.prototype.toLowerCase,Yc=RegExp.prototype.test,bc=Array.prototype.concat,hI=Array.prototype.join,PF=Array.prototype.slice,Tc=Math.floor,io=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Qo=Object.getOwnPropertySymbols,Eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Me=typeof Symbol=="function"&&typeof Symbol.iterator=="object",lg=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Me||!0)?Symbol.toStringTag:null,vc=Object.prototype.propertyIsEnumerable,_c=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(A){return A.__proto__}:null);function Oc(A,g){if(A===1/0||A===-1/0||A!==A||A&&A>-1e3&&A<1e3||Yc.call(/e/,g))return g;var I=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof A=="number"){var B=A<0?-Tc(-A):Tc(A);if(B!==A){var C=String(B),e=to.call(g,C.length+1);return EB.call(C,I,"$&_")+"."+EB.call(EB.call(e,/([0-9]{3})/g,"$&_"),/_$/,"")}}return EB.call(g,I,"$&_")}var oo=go,Zc=oo.custom,jc=xc(Zc)?Zc:null,zF=function A(g,I,B,C){var e=I||{};if(oB(e,"quoteStyle")&&e.quoteStyle!=="single"&&e.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(oB(e,"maxStringLength")&&(typeof e.maxStringLength=="number"?e.maxStringLength<0&&e.maxStringLength!==1/0:e.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=oB(e,"customInspect")?e.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(oB(e,"indent")&&e.indent!==null&&e.indent!==" "&&!(parseInt(e.indent,10)===e.indent&&e.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(oB(e,"numericSeparator")&&typeof e.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var t=e.numericSeparator;if(typeof g>"u")return"undefined";if(g===null)return"null";if(typeof g=="boolean")return g?"true":"false";if(typeof g=="string")return Vc(g,e);if(typeof g=="number"){if(g===0)return 1/0/g>0?"0":"-0";var E=String(g);return t?Oc(g,E):E}if(typeof g=="bigint"){var c=String(g)+"n";return t?Oc(g,c):c}var a=typeof e.depth>"u"?5:e.depth;if(typeof B>"u"&&(B=0),B>=a&&a>0&&typeof g=="object")return no(g)?"[Array]":"[Object]";var l=rd(e,B);if(typeof C>"u")C=[];else if(Wc(C,g)>=0)return"[Circular]";function w(oA,G,M){if(G&&(C=PF.call(C),C.push(G)),M){var x={depth:e.depth};return oB(e,"quoteStyle")&&(x.quoteStyle=e.quoteStyle),A(oA,x,B+1,C)}return A(oA,e,B+1,C)}if(typeof g=="function"&&!zc(g)){var S=Bd(g),u=li(g,w);return"[Function"+(S?": "+S:" (anonymous)")+"]"+(u.length>0?" { "+hI.call(u,", ")+" }":"")}if(xc(g)){var m=Me?EB.call(String(g),/^(Symbol\(.*\))_[^)]*$/,"$1"):Eo.call(g);return typeof g=="object"&&!Me?bC(m):m}if(Ed(g)){for(var L="<"+Kc.call(String(g.nodeName)),p=g.attributes||[],F=0;F<p.length;F++)L+=" "+p[F].name+"="+Pc(xF(p[F].value),"double",e);return L+=">",g.childNodes&&g.childNodes.length&&(L+="..."),L+="</"+Kc.call(String(g.nodeName))+">",L}if(no(g)){if(g.length===0)return"[]";var J=li(g,w);return l&&!nd(J)?"["+ao(J,l)+"]":"[ "+hI.call(J,", ")+" ]"}if(VF(g)){var z=li(g,w);return!("cause"in Error.prototype)&&"cause"in g&&!vc.call(g,"cause")?"{ ["+String(g)+"] "+hI.call(bc.call("[cause]: "+w(g.cause),z),", ")+" }":z.length===0?"["+String(g)+"]":"{ ["+String(g)+"] "+hI.call(z,", ")+" }"}if(typeof g=="object"&&i){if(jc&&typeof g[jc]=="function"&&oo)return oo(g,{depth:a-B});if(i!=="symbol"&&typeof g.inspect=="function")return g.inspect()}if(ed(g)){var $=[];return Jc&&Jc.call(g,function(oA,G){$.push(w(G,g,!0)+" => "+w(oA,g))}),Xc("Map",si.call(g),$,l)}if(id(g)){var eA=[];return Mc&&Mc.call(g,function(oA){eA.push(w(oA,g))}),Xc("Set",ci.call(g),eA,l)}if(Cd(g))return ro("WeakMap");if(Qd(g))return ro("WeakSet");if(td(g))return ro("WeakRef");if($F(g))return bC(w(Number(g)));if(gd(g))return bC(w(io.call(g)));if(Ad(g))return bC(vF.call(g));if(XF(g))return bC(w(String(g)));if(typeof window<"u"&&g===window)return"{ [object Window] }";if(g===HA)return"{ [object globalThis] }";if(!WF(g)&&!zc(g)){var EA=li(g,w),IA=_c?_c(g)===Object.prototype:g instanceof Object||g.constructor===Object,Z=g instanceof Object?"":"null prototype",rA=!IA&&lg&&Object(g)===g&&lg in g?to.call(nB(g),8,-1):Z?"Object":"",FA=IA||typeof g.constructor!="function"?"":g.constructor.name?g.constructor.name+" ":"",uA=FA+(rA||Z?"["+hI.call(bc.call([],rA||[],Z||[]),": ")+"] ":"");return EA.length===0?uA+"{}":l?uA+"{"+ao(EA,l)+"}":uA+"{ "+hI.call(EA,", ")+" }"}return String(g)};function Pc(A,g,I){var B=(I.quoteStyle||g)==="double"?'"':"'";return B+A+B}function xF(A){return EB.call(String(A),/"/g,""")}function no(A){return nB(A)==="[object Array]"&&(!lg||!(typeof A=="object"&&lg in A))}function WF(A){return nB(A)==="[object Date]"&&(!lg||!(typeof A=="object"&&lg in A))}function zc(A){return nB(A)==="[object RegExp]"&&(!lg||!(typeof A=="object"&&lg in A))}function VF(A){return nB(A)==="[object Error]"&&(!lg||!(typeof A=="object"&&lg in A))}function XF(A){return nB(A)==="[object String]"&&(!lg||!(typeof A=="object"&&lg in A))}function $F(A){return nB(A)==="[object Number]"&&(!lg||!(typeof A=="object"&&lg in A))}function Ad(A){return nB(A)==="[object Boolean]"&&(!lg||!(typeof A=="object"&&lg in A))}function xc(A){if(Me)return A&&typeof A=="object"&&A instanceof Symbol;if(typeof A=="symbol")return!0;if(!A||typeof A!="object"||!Eo)return!1;try{return Eo.call(A),!0}catch{}return!1}function gd(A){if(!A||typeof A!="object"||!io)return!1;try{return io.call(A),!0}catch{}return!1}var Id=Object.prototype.hasOwnProperty||function(A){return A in this};function oB(A,g){return Id.call(A,g)}function nB(A){return _F.call(A)}function Bd(A){if(A.name)return A.name;var g=ZF.call(OF.call(A),/^function\s*([\w$]+)/);return g?g[1]:null}function Wc(A,g){if(A.indexOf)return A.indexOf(g);for(var I=0,B=A.length;I<B;I++)if(A[I]===g)return I;return-1}function ed(A){if(!si||!A||typeof A!="object")return!1;try{si.call(A);try{ci.call(A)}catch{return!0}return A instanceof Map}catch{}return!1}function Cd(A){if(!KC||!A||typeof A!="object")return!1;try{KC.call(A,KC);try{YC.call(A,YC)}catch{return!0}return A instanceof WeakMap}catch{}return!1}function td(A){if(!qc||!A||typeof A!="object")return!1;try{return qc.call(A),!0}catch{}return!1}function id(A){if(!ci||!A||typeof A!="object")return!1;try{ci.call(A);try{si.call(A)}catch{return!0}return A instanceof Set}catch{}return!1}function Qd(A){if(!YC||!A||typeof A!="object")return!1;try{YC.call(A,YC);try{KC.call(A,KC)}catch{return!0}return A instanceof WeakSet}catch{}return!1}function Ed(A){return!A||typeof A!="object"?!1:typeof HTMLElement<"u"&&A instanceof HTMLElement?!0:typeof A.nodeName=="string"&&typeof A.getAttribute=="function"}function Vc(A,g){if(A.length>g.maxStringLength){var I=A.length-g.maxStringLength,B="... "+I+" more character"+(I>1?"s":"");return Vc(to.call(A,0,g.maxStringLength),g)+B}var C=EB.call(EB.call(A,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,od);return Pc(C,"single",g)}function od(A){var g=A.charCodeAt(0),I={8:"b",9:"t",10:"n",12:"f",13:"r"}[g];return I?"\\"+I:"\\x"+(g<16?"0":"")+jF.call(g.toString(16))}function bC(A){return"Object("+A+")"}function ro(A){return A+" { ? }"}function Xc(A,g,I,B){var C=B?ao(I,B):hI.call(I,", ");return A+" ("+g+") {"+C+"}"}function nd(A){for(var g=0;g<A.length;g++)if(Wc(A[g],`
|
|
33
33
|
`)>=0)return!1;return!0}function rd(A,g){var I;if(A.indent===" ")I=" ";else if(typeof A.indent=="number"&&A.indent>0)I=hI.call(Array(A.indent+1)," ");else return null;return{base:I,prev:hI.call(Array(g+1),I)}}function ao(A,g){if(A.length===0)return"";var I=`
|
|
34
34
|
`+g.prev+g.base;return I+hI.call(A,","+I)+`
|
|
35
35
|
`+g.prev}function li(A,g){var I=no(A),B=[];if(I){B.length=A.length;for(var C=0;C<A.length;C++)B[C]=oB(A,C)?g(A[C],A):""}var e=typeof Qo=="function"?Qo(A):[],i;if(Me){i={};for(var t=0;t<e.length;t++)i["$"+e[t]]=e[t]}for(var E in A)oB(A,E)&&(I&&String(Number(E))===E&&E<A.length||Me&&i["$"+E]instanceof Symbol||(Yc.call(/[^\w$]/,E)?B.push(g(E,A)+": "+g(A[E],A)):B.push(E+": "+g(A[E],A))));if(typeof Qo=="function")for(var c=0;c<e.length;c++)vc.call(A,e[c])&&B.push("["+g(e[c])+"]: "+g(A[e[c]],A));return B}var so=zB,qe=Ao,ad=zF,sd=so("%TypeError%"),hi=so("%WeakMap%",!0),Si=so("%Map%",!0),cd=qe("WeakMap.prototype.get",!0),ld=qe("WeakMap.prototype.set",!0),hd=qe("WeakMap.prototype.has",!0),Sd=qe("Map.prototype.get",!0),wd=qe("Map.prototype.set",!0),Dd=qe("Map.prototype.has",!0),co=function(A,g){for(var I=A,B;(B=I.next)!==null;I=B)if(B.key===g)return I.next=B.next,B.next=A.next,A.next=B,B},yd=function(A,g){var I=co(A,g);return I&&I.value},ud=function(A,g,I){var B=co(A,g);B?B.value=I:A.next={key:g,next:A.next,value:I}},fd=function(A,g){return!!co(A,g)},pd=function(){var A,g,I,B={assert:function(C){if(!B.has(C))throw new sd("Side channel does not contain "+ad(C))},get:function(C){if(hi&&C&&(typeof C=="object"||typeof C=="function")){if(A)return cd(A,C)}else if(Si){if(g)return Sd(g,C)}else if(I)return yd(I,C)},has:function(C){if(hi&&C&&(typeof C=="object"||typeof C=="function")){if(A)return hd(A,C)}else if(Si){if(g)return Dd(g,C)}else if(I)return fd(I,C);return!1},set:function(C,e){hi&&C&&(typeof C=="object"||typeof C=="function")?(A||(A=new hi),ld(A,C,e)):Si?(g||(g=new Si),wd(g,C,e)):(I||(I={key:{},next:null}),ud(I,C,e))}};return B},Fd=String.prototype.replace,dd=/%20/g,lo={RFC1738:"RFC1738",RFC3986:"RFC3986"},ho={default:lo.RFC3986,formatters:{RFC1738:function(A){return Fd.call(A,dd,"+")},RFC3986:function(A){return String(A)}},RFC1738:lo.RFC1738,RFC3986:lo.RFC3986},Gd=ho,So=Object.prototype.hasOwnProperty,xB=Array.isArray,SI=function(){for(var A=[],g=0;g<256;++g)A.push("%"+((g<16?"0":"")+g.toString(16)).toUpperCase());return A}(),Nd=function(A){for(;A.length>1;){var g=A.pop(),I=g.obj[g.prop];if(xB(I)){for(var B=[],C=0;C<I.length;++C)typeof I[C]<"u"&&B.push(I[C]);g.obj[g.prop]=B}}},$c=function(A,g){for(var I=g&&g.plainObjects?Object.create(null):{},B=0;B<A.length;++B)typeof A[B]<"u"&&(I[B]=A[B]);return I},kd=function A(g,I,B){if(!I)return g;if(typeof I!="object"){if(xB(g))g.push(I);else if(g&&typeof g=="object")(B&&(B.plainObjects||B.allowPrototypes)||!So.call(Object.prototype,I))&&(g[I]=!0);else return[g,I];return g}if(!g||typeof g!="object")return[g].concat(I);var C=g;return xB(g)&&!xB(I)&&(C=$c(g,B)),xB(g)&&xB(I)?(I.forEach(function(e,i){if(So.call(g,i)){var t=g[i];t&&typeof t=="object"&&e&&typeof e=="object"?g[i]=A(t,e,B):g.push(e)}else g[i]=e}),g):Object.keys(I).reduce(function(e,i){var t=I[i];return So.call(e,i)?e[i]=A(e[i],t,B):e[i]=t,e},C)},Rd=function(A,g){return Object.keys(g).reduce(function(I,B){return I[B]=g[B],I},A)},Ud=function(A,g,I){var B=A.replace(/\+/g," ");if(I==="iso-8859-1")return B.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(B)}catch{return B}},Ld=function(A,g,I,B,C){if(A.length===0)return A;var e=A;if(typeof A=="symbol"?e=Symbol.prototype.toString.call(A):typeof A!="string"&&(e=String(A)),I==="iso-8859-1")return escape(e).replace(/%u[0-9a-f]{4}/gi,function(c){return"%26%23"+parseInt(c.slice(2),16)+"%3B"});for(var i="",t=0;t<e.length;++t){var E=e.charCodeAt(t);if(E===45||E===46||E===95||E===126||E>=48&&E<=57||E>=65&&E<=90||E>=97&&E<=122||C===Gd.RFC1738&&(E===40||E===41)){i+=e.charAt(t);continue}if(E<128){i=i+SI[E];continue}if(E<2048){i=i+(SI[192|E>>6]+SI[128|E&63]);continue}if(E<55296||E>=57344){i=i+(SI[224|E>>12]+SI[128|E>>6&63]+SI[128|E&63]);continue}t+=1,E=65536+((E&1023)<<10|e.charCodeAt(t)&1023),i+=SI[240|E>>18]+SI[128|E>>12&63]+SI[128|E>>6&63]+SI[128|E&63]}return i},md=function(A){for(var g=[{obj:{o:A},prop:"o"}],I=[],B=0;B<g.length;++B)for(var C=g[B],e=C.obj[C.prop],i=Object.keys(e),t=0;t<i.length;++t){var E=i[t],c=e[E];typeof c=="object"&&c!==null&&I.indexOf(c)===-1&&(g.push({obj:e,prop:E}),I.push(c))}return Nd(g),A},Hd=function(A){return Object.prototype.toString.call(A)==="[object RegExp]"},Jd=function(A){return!A||typeof A!="object"?!1:!!(A.constructor&&A.constructor.isBuffer&&A.constructor.isBuffer(A))},Md=function(A,g){return[].concat(A,g)},qd=function(A,g){if(xB(A)){for(var I=[],B=0;B<A.length;B+=1)I.push(g(A[B]));return I}return g(A)},A2={arrayToObject:$c,assign:Rd,combine:Md,compact:md,decode:Ud,encode:Ld,isBuffer:Jd,isRegExp:Hd,maybeMap:qd,merge:kd},g2=pd,wi=A2,TC=ho,Kd=Object.prototype.hasOwnProperty,I2={brackets:function(A){return A+"[]"},comma:"comma",indices:function(A,g){return A+"["+g+"]"},repeat:function(A){return A}},JI=Array.isArray,Yd=Array.prototype.push,B2=function(A,g){Yd.apply(A,JI(g)?g:[g])},bd=Date.prototype.toISOString,e2=TC.default,hg={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:wi.encode,encodeValuesOnly:!1,format:e2,formatter:TC.formatters[e2],indices:!1,serializeDate:function(A){return bd.call(A)},skipNulls:!1,strictNullHandling:!1},Td=function(A){return typeof A=="string"||typeof A=="number"||typeof A=="boolean"||typeof A=="symbol"||typeof A=="bigint"},wo={},vd=function A(g,I,B,C,e,i,t,E,c,a,l,w,S,u,m,L){for(var p=g,F=L,J=0,z=!1;(F=F.get(wo))!==void 0&&!z;){var $=F.get(g);if(J+=1,typeof $<"u"){if($===J)throw new RangeError("Cyclic object value");z=!0}typeof F.get(wo)>"u"&&(J=0)}if(typeof E=="function"?p=E(I,p):p instanceof Date?p=l(p):B==="comma"&&JI(p)&&(p=wi.maybeMap(p,function(x){return x instanceof Date?l(x):x})),p===null){if(e)return t&&!u?t(I,hg.encoder,m,"key",w):I;p=""}if(Td(p)||wi.isBuffer(p)){if(t){var eA=u?I:t(I,hg.encoder,m,"key",w);return[S(eA)+"="+S(t(p,hg.encoder,m,"value",w))]}return[S(I)+"="+S(String(p))]}var EA=[];if(typeof p>"u")return EA;var IA;if(B==="comma"&&JI(p))u&&t&&(p=wi.maybeMap(p,t)),IA=[{value:p.length>0?p.join(",")||null:void 0}];else if(JI(E))IA=E;else{var Z=Object.keys(p);IA=c?Z.sort(c):Z}for(var rA=C&&JI(p)&&p.length===1?I+"[]":I,FA=0;FA<IA.length;++FA){var uA=IA[FA],oA=typeof uA=="object"&&typeof uA.value<"u"?uA.value:p[uA];if(!(i&&oA===null)){var G=JI(p)?typeof B=="function"?B(rA,uA):rA:rA+(a?"."+uA:"["+uA+"]");L.set(g,J);var M=g2();M.set(wo,L),B2(EA,A(oA,G,B,C,e,i,B==="comma"&&u&&JI(p)?null:t,E,c,a,l,w,S,u,m,M))}}return EA},_d=function(A){if(!A)return hg;if(A.encoder!==null&&typeof A.encoder<"u"&&typeof A.encoder!="function")throw new TypeError("Encoder has to be a function.");var g=A.charset||hg.charset;if(typeof A.charset<"u"&&A.charset!=="utf-8"&&A.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var I=TC.default;if(typeof A.format<"u"){if(!Kd.call(TC.formatters,A.format))throw new TypeError("Unknown format option provided.");I=A.format}var B=TC.formatters[I],C=hg.filter;return(typeof A.filter=="function"||JI(A.filter))&&(C=A.filter),{addQueryPrefix:typeof A.addQueryPrefix=="boolean"?A.addQueryPrefix:hg.addQueryPrefix,allowDots:typeof A.allowDots>"u"?hg.allowDots:!!A.allowDots,charset:g,charsetSentinel:typeof A.charsetSentinel=="boolean"?A.charsetSentinel:hg.charsetSentinel,delimiter:typeof A.delimiter>"u"?hg.delimiter:A.delimiter,encode:typeof A.encode=="boolean"?A.encode:hg.encode,encoder:typeof A.encoder=="function"?A.encoder:hg.encoder,encodeValuesOnly:typeof A.encodeValuesOnly=="boolean"?A.encodeValuesOnly:hg.encodeValuesOnly,filter:C,format:I,formatter:B,serializeDate:typeof A.serializeDate=="function"?A.serializeDate:hg.serializeDate,skipNulls:typeof A.skipNulls=="boolean"?A.skipNulls:hg.skipNulls,sort:typeof A.sort=="function"?A.sort:null,strictNullHandling:typeof A.strictNullHandling=="boolean"?A.strictNullHandling:hg.strictNullHandling}},Od=function(A,g){var I=A,B=_d(g),C,e;typeof B.filter=="function"?(e=B.filter,I=e("",I)):JI(B.filter)&&(e=B.filter,C=e);var i=[];if(typeof I!="object"||I===null)return"";var t;g&&g.arrayFormat in I2?t=g.arrayFormat:g&&"indices"in g?t=g.indices?"indices":"repeat":t="indices";var E=I2[t];if(g&&"commaRoundTrip"in g&&typeof g.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=E==="comma"&&g&&g.commaRoundTrip;C||(C=Object.keys(I)),B.sort&&C.sort(B.sort);for(var a=g2(),l=0;l<C.length;++l){var w=C[l];B.skipNulls&&I[w]===null||B2(i,vd(I[w],w,E,c,B.strictNullHandling,B.skipNulls,B.encode?B.encoder:null,B.filter,B.sort,B.allowDots,B.serializeDate,B.format,B.formatter,B.encodeValuesOnly,B.charset,a))}var S=i.join(B.delimiter),u=B.addQueryPrefix===!0?"?":"";return B.charsetSentinel&&(B.charset==="iso-8859-1"?u+="utf8=%26%2310003%3B&":u+="utf8=%E2%9C%93&"),S.length>0?u+S:""},Ke=A2,Do=Object.prototype.hasOwnProperty,Zd=Array.isArray,eg={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Ke.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},jd=function(A){return A.replace(/&#(\d+);/g,function(g,I){return String.fromCharCode(parseInt(I,10))})},C2=function(A,g){return A&&typeof A=="string"&&g.comma&&A.indexOf(",")>-1?A.split(","):A},Pd="utf8=%26%2310003%3B",zd="utf8=%E2%9C%93",xd=function(A,g){var I={},B=g.ignoreQueryPrefix?A.replace(/^\?/,""):A,C=g.parameterLimit===1/0?void 0:g.parameterLimit,e=B.split(g.delimiter,C),i=-1,t,E=g.charset;if(g.charsetSentinel)for(t=0;t<e.length;++t)e[t].indexOf("utf8=")===0&&(e[t]===zd?E="utf-8":e[t]===Pd&&(E="iso-8859-1"),i=t,t=e.length);for(t=0;t<e.length;++t)if(t!==i){var c=e[t],a=c.indexOf("]="),l=a===-1?c.indexOf("="):a+1,w,S;l===-1?(w=g.decoder(c,eg.decoder,E,"key"),S=g.strictNullHandling?null:""):(w=g.decoder(c.slice(0,l),eg.decoder,E,"key"),S=Ke.maybeMap(C2(c.slice(l+1),g),function(u){return g.decoder(u,eg.decoder,E,"value")})),S&&g.interpretNumericEntities&&E==="iso-8859-1"&&(S=jd(S)),c.indexOf("[]=")>-1&&(S=Zd(S)?[S]:S),Do.call(I,w)?I[w]=Ke.combine(I[w],S):I[w]=S}return I},Wd=function(A,g,I,B){for(var C=B?g:C2(g,I),e=A.length-1;e>=0;--e){var i,t=A[e];if(t==="[]"&&I.parseArrays)i=[].concat(C);else{i=I.plainObjects?Object.create(null):{};var E=t.charAt(0)==="["&&t.charAt(t.length-1)==="]"?t.slice(1,-1):t,c=parseInt(E,10);!I.parseArrays&&E===""?i={0:C}:!isNaN(c)&&t!==E&&String(c)===E&&c>=0&&I.parseArrays&&c<=I.arrayLimit?(i=[],i[c]=C):E!=="__proto__"&&(i[E]=C)}C=i}return C},Vd=function(A,g,I,B){if(A){var C=I.allowDots?A.replace(/\.([^.[]+)/g,"[$1]"):A,e=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,t=I.depth>0&&e.exec(C),E=t?C.slice(0,t.index):C,c=[];if(E){if(!I.plainObjects&&Do.call(Object.prototype,E)&&!I.allowPrototypes)return;c.push(E)}for(var a=0;I.depth>0&&(t=i.exec(C))!==null&&a<I.depth;){if(a+=1,!I.plainObjects&&Do.call(Object.prototype,t[1].slice(1,-1))&&!I.allowPrototypes)return;c.push(t[1])}return t&&c.push("["+C.slice(t.index)+"]"),Wd(c,g,I,B)}},Xd=function(A){if(!A)return eg;if(A.decoder!==null&&A.decoder!==void 0&&typeof A.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof A.charset<"u"&&A.charset!=="utf-8"&&A.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var g=typeof A.charset>"u"?eg.charset:A.charset;return{allowDots:typeof A.allowDots>"u"?eg.allowDots:!!A.allowDots,allowPrototypes:typeof A.allowPrototypes=="boolean"?A.allowPrototypes:eg.allowPrototypes,allowSparse:typeof A.allowSparse=="boolean"?A.allowSparse:eg.allowSparse,arrayLimit:typeof A.arrayLimit=="number"?A.arrayLimit:eg.arrayLimit,charset:g,charsetSentinel:typeof A.charsetSentinel=="boolean"?A.charsetSentinel:eg.charsetSentinel,comma:typeof A.comma=="boolean"?A.comma:eg.comma,decoder:typeof A.decoder=="function"?A.decoder:eg.decoder,delimiter:typeof A.delimiter=="string"||Ke.isRegExp(A.delimiter)?A.delimiter:eg.delimiter,depth:typeof A.depth=="number"||A.depth===!1?+A.depth:eg.depth,ignoreQueryPrefix:A.ignoreQueryPrefix===!0,interpretNumericEntities:typeof A.interpretNumericEntities=="boolean"?A.interpretNumericEntities:eg.interpretNumericEntities,parameterLimit:typeof A.parameterLimit=="number"?A.parameterLimit:eg.parameterLimit,parseArrays:A.parseArrays!==!1,plainObjects:typeof A.plainObjects=="boolean"?A.plainObjects:eg.plainObjects,strictNullHandling:typeof A.strictNullHandling=="boolean"?A.strictNullHandling:eg.strictNullHandling}},$d=function(A,g){var I=Xd(g);if(A===""||A===null||typeof A>"u")return I.plainObjects?Object.create(null):{};for(var B=typeof A=="string"?xd(A,I):A,C=I.plainObjects?Object.create(null):{},e=Object.keys(B),i=0;i<e.length;++i){var t=e[i],E=Vd(t,B[t],I,typeof A=="string");C=Ke.merge(C,E,I)}return I.allowSparse===!0?C:Ke.compact(C)},AG=Od,gG=$d,IG=ho,BG={formats:IG,parse:gG,stringify:AG};function t2(A){return BG.stringify(A,{arrayFormat:"repeat"})}function i2(...A){return A.join("/").replace(/([^:]\/)\/+/g,"$1").replace(/^(\/)+/,"/")}function eG(A,g,I){const B=new Headers;let C;if(Rf(A))C=A.req.writeReq(g);else{const t=A.req.onlySupport??I.requestWireFormat;switch(t){case yA.json:C=A.req.writeReqJson(g),C.body&&(C.body=JSON.stringify(C.body),B.set(Ig.ContentType,mg.json));break;case yA.ssz:C=A.req.writeReqSsz(g),C.body&&B.set(Ig.ContentType,mg.ssz);break;default:throw Error(`Invalid requestWireFormat: ${t}`)}}const e=C.query?t2(C.query):"",i=new URL(i2(I.baseUrl,A.urlFormatter(C.params??{}))+(e?`?${e}`:""));if(pf(i,B,I),!A.resp.isEmpty)if(A.resp.onlySupport!==void 0)switch(A.resp.onlySupport){case yA.json:B.set(Ig.Accept,mg.json);break;case yA.ssz:B.set(Ig.Accept,mg.ssz);break}else switch(I.responseWireFormat){case yA.json:B.set(Ig.Accept,`${mg.json};q=1,${mg.ssz};q=0.9`);break;case yA.ssz:B.set(Ig.Accept,`${mg.ssz};q=1,${mg.json};q=0.9`);break;default:throw Error(`Invalid responseWireFormat: ${I.responseWireFormat}`)}return new Request(i,{...I,method:A.method,headers:bE(B,C.headers,I.headers),body:C.body})}class CG extends Error{constructor(g,I,B){super(`${B} failed with status ${I}: ${g}`),this.status=I,this.operationId=B}}class Q2 extends Response{constructor(g,I,B){super(I,B),this.definition=g}wireFormat(){if(this._wireFormat===void 0){if(this.definition.resp.isEmpty)return this._wireFormat=null,this._wireFormat;const g=this.headers.get(Ig.ContentType);if(g===null){if(this.status===oi.NO_CONTENT)return this._wireFormat=null,this._wireFormat;throw Error("Content-Type header is required in response")}const I=ff(g);if(I===null)throw Error(`Unsupported response media type: ${g.split(";",1)[0]}`);const B=df(I),{onlySupport:C}=this.definition.resp;if(C!==void 0&&B!==C)throw Error(`Method only supports ${C.toUpperCase()} responses`);this._wireFormat=B}return this._wireFormat}async rawBody(){if(this.assertOk(),!this._rawBody)switch(this.wireFormat()){case yA.json:this._rawBody={type:yA.json,value:await super.json()};break;case yA.ssz:this._rawBody={type:yA.ssz,value:new Uint8Array(await this.arrayBuffer())};break;default:this._rawBody={}}return this._rawBody}meta(){if(this.assertOk(),!this._meta)switch(this.wireFormat()){case yA.json:{const g=this.resolvedRawBody(),I=this.definition.resp.transform?this.definition.resp.transform.fromResponse(g.value).meta:g.value;this._meta=this.definition.resp.meta.fromJson(I);break}case yA.ssz:this._meta=this.definition.resp.meta.fromHeaders(new Ff(this.headers));break}return this._meta}value(){var g;if(this.assertOk(),!this._value){const I=this.resolvedRawBody(),B=this.meta();switch(I.type){case yA.json:{const C=this.definition.resp.transform?this.definition.resp.transform.fromResponse(I.value).data:(g=I.value)==null?void 0:g.data;this._value=this.definition.resp.data.fromJson(C,B);break}case yA.ssz:this._value=this.definition.resp.data.deserialize(I.value,B);break}}return this._value}ssz(){this.assertOk();const g=this.resolvedRawBody();switch(g.type){case yA.json:return this.definition.resp.data.serialize(this.value(),this.meta());case yA.ssz:return g.value;default:return new Uint8Array}}json(){this.assertOk();const g=this.resolvedRawBody();switch(g.type){case yA.json:return g.value;case yA.ssz:return this.definition.resp.data.toJson(this.value(),this.meta());default:return{}}}assertOk(){if(!this.ok)throw this.error()}error(){return this.ok?null:new CG(this.getErrorMessage(),this.status,this.definition.operationId)}async errorBody(){return this._errorBody===void 0&&(this._errorBody=await this.text()),this._errorBody}resolvedRawBody(){if(!this._rawBody)throw Error("rawBody() must be called first");return this._rawBody}resolvedErrorBody(){if(this._errorBody===void 0)throw Error("errorBody() must be called first");return this._errorBody}getErrorMessage(){const g=this.resolvedErrorBody();try{const I=JSON.parse(g);return I.message?I.failures?`${I.message}
|