@lodestar/light-client 1.28.0 → 1.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lightclient.min.mjs +1 -1
- package/package.json +7 -7
package/dist/lightclient.min.mjs
CHANGED
|
@@ -29,7 +29,7 @@ let Mt,wI,qt,wo,Do,yo,uo,fo,fd=(async()=>{function zl(g){return g&&g.__esModule&
|
|
|
29
29
|
`+g.slice(C,e),C=e+1),t=i;return E+=`
|
|
30
30
|
`,g.length-C>A&&t>C?E+=g.slice(C,t)+`
|
|
31
31
|
`+g.slice(t+1):E+=g.slice(C),E.slice(1)}function bh(g){for(var A="",I=0,B,C=0;C<g.length;I>=65536?C+=2:C++)I=Fe(g,C),B=ng[I],!B&&pe(I)?(A+=g[C],I>=65536&&(A+=g[C+1])):A+=B||Uh(I);return A}function Th(g,A,I){var B="",C=g.tag,e,t,i;for(e=0,t=I.length;e<t;e+=1)i=I[e],g.replacer&&(i=g.replacer.call(I,String(e),i)),(EI(g,A,i,!1,!1)||typeof i>"u"&&EI(g,A,null,!1,!1))&&(B!==""&&(B+=","+(g.condenseFlow?"":" ")),B+=g.dump);g.tag=C,g.dump="["+B+"]"}function jn(g,A,I,B){var C="",e=g.tag,t,i,E;for(t=0,i=I.length;t<i;t+=1)E=I[t],g.replacer&&(E=g.replacer.call(I,String(t),E)),(EI(g,A+1,E,!0,!0,!1,!0)||typeof E>"u"&&EI(g,A+1,null,!0,!0,!1,!0))&&((!B||C!=="")&&(C+=Ai(g,A)),g.dump&&ue===g.dump.charCodeAt(0)?C+="-":C+="- ",C+=g.dump);g.tag=e,g.dump=C||"[]"}function vh(g,A,I){var B="",C=g.tag,e=Object.keys(I),t,i,E,c,n;for(t=0,i=e.length;t<i;t+=1)n="",B!==""&&(n+=", "),g.condenseFlow&&(n+='"'),E=e[t],c=I[E],g.replacer&&(c=g.replacer.call(I,E,c)),EI(g,A,E,!1,!1)&&(g.dump.length>1024&&(n+="? "),n+=g.dump+(g.condenseFlow?'"':"")+":"+(g.condenseFlow?"":" "),EI(g,A,c,!1,!1)&&(n+=g.dump,B+=n));g.tag=C,g.dump="{"+B+"}"}function _h(g,A,I,B){var C="",e=g.tag,t=Object.keys(I),i,E,c,n,s,S;if(g.sortKeys===!0)t.sort();else if(typeof g.sortKeys=="function")t.sort(g.sortKeys);else if(g.sortKeys)throw new lg("sortKeys must be a boolean or a function");for(i=0,E=t.length;i<E;i+=1)S="",(!B||C!=="")&&(S+=Ai(g,A)),c=t[i],n=I[c],g.replacer&&(n=g.replacer.call(I,c,n)),EI(g,A+1,c,!0,!0,!0)&&(s=g.tag!==null&&g.tag!=="?"||g.dump&&g.dump.length>1024,s&&(g.dump&&ue===g.dump.charCodeAt(0)?S+="?":S+="? "),S+=g.dump,s&&(S+=Ai(g,A)),EI(g,A+1,n,!0,s)&&(g.dump&&ue===g.dump.charCodeAt(0)?S+=":":S+=": ",S+=g.dump,C+=S));g.tag=e,g.dump=C||"{}"}function Pn(g,A,I){var B,C,e,t,i,E;for(C=I?g.explicitTypes:g.implicitTypes,e=0,t=C.length;e<t;e+=1)if(i=C[e],(i.instanceOf||i.predicate)&&(!i.instanceOf||typeof A=="object"&&A instanceof i.instanceOf)&&(!i.predicate||i.predicate(A))){if(I?i.multi&&i.representName?g.tag=i.representName(A):g.tag=i.tag:g.tag="?",i.represent){if(E=g.styleMap[i.tag]||i.defaultStyle,Rn.call(i.represent)==="[object Function]")B=i.represent(A,E);else if(Un.call(i.represent,E))B=i.represent[E](A,E);else throw new lg("!<"+i.tag+'> tag resolver accepts not "'+E+'" style');g.dump=B}return!0}return!1}function EI(g,A,I,B,C,e,t){g.tag=null,g.dump=I,Pn(g,I,!1)||Pn(g,I,!0);var i=Rn.call(g.dump),E=B,c;B&&(B=g.flowLevel<0||g.flowLevel>A);var n=i==="[object Object]"||i==="[object Array]",s,S;if(n&&(s=g.duplicates.indexOf(I),S=s!==-1),(g.tag!==null&&g.tag!=="?"||S||g.indent!==2&&A>0)&&(C=!1),S&&g.usedDuplicates[s])g.dump="*ref_"+s;else{if(n&&S&&!g.usedDuplicates[s]&&(g.usedDuplicates[s]=!0),i==="[object Object]")B&&Object.keys(g.dump).length!==0?(_h(g,A,g.dump,C),S&&(g.dump="&ref_"+s+g.dump)):(vh(g,A,g.dump),S&&(g.dump="&ref_"+s+" "+g.dump));else if(i==="[object Array]")B&&g.dump.length!==0?(g.noArrayIndent&&!t&&A>0?jn(g,A-1,g.dump,C):jn(g,A,g.dump,C),S&&(g.dump="&ref_"+s+g.dump)):(Th(g,A,g.dump),S&&(g.dump="&ref_"+s+" "+g.dump));else if(i==="[object String]")g.tag!=="?"&&Kh(g,g.dump,A,e,E);else{if(i==="[object Undefined]"||g.skipInvalid)return!1;throw new lg("unacceptable kind of an object to dump "+i)}g.tag!==null&&g.tag!=="?"&&(c=encodeURI(g.tag[0]==="!"?g.tag.slice(1):g.tag).replace(/!/g,"%21"),g.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",g.dump=c+" "+g.dump)}return!0}function Oh(g,A){var I=[],B=[],C,e;for(Ii(g,I,B),C=0,e=B.length;C<e;C+=1)A.duplicates.push(I[B[C]]);A.usedDuplicates=new Array(e)}function Ii(g,A,I){var B,C,e;if(g!==null&&typeof g=="object")if(C=A.indexOf(g),C!==-1)I.indexOf(C)===-1&&I.push(C);else if(A.push(g),Array.isArray(g))for(C=0,e=g.length;C<e;C+=1)Ii(g[C],A,I);else for(B=Object.keys(g),C=0,e=B.length;C<e;C+=1)Ii(g[B[C]],A,I)}function Zh(g,A){A=A||{};var I=new mh(A);I.noRefs||Oh(g,I);var B=g;return I.replacer&&(B=I.replacer.call({"":B},"",B)),EI(I,0,B,!0,!0)?I.dump+`
|
|
32
|
-
`:""}var xh=Zh,jh={dump:xh};function Bi(g,A){return function(){throw new Error("Function yaml."+g+" is removed in js-yaml 4. Use yaml."+A+" instead, which is now safe by default.")}}var Ph=Cg,zh=zo,zn=$o,Wh=en,Vh=Cn,Xh=Pt,$h=kn.load,AS=kn.loadAll,gS=jh.dump,IS=lg,BS={binary:nn,float:Bn,map:Xo,null:An,pairs:an,set:sn,timestamp:En,bool:gn,int:In,merge:on,omap:rn,seq:Vo,str:Wo},eS=Bi("safeLoad","load"),CS=Bi("safeLoadAll","loadAll"),tS=Bi("safeDump","dump"),wC={Type:Ph,Schema:zh,FAILSAFE_SCHEMA:zn,JSON_SCHEMA:Wh,CORE_SCHEMA:Vh,DEFAULT_SCHEMA:Xh,load:$h,loadAll:AS,dump:gS,YAMLException:IS,types:BS,safeLoad:eS,safeLoadAll:CS,safeDump:tS};const{Type:iS}=wC;function QS(g){return 48<=g&&g<=57||65<=g&&g<=70||97<=g&&g<=102}function ES(g){return 48<=g&&g<=55}function oS(g){return 48<=g&&g<=57}function nS(g){if(g===null)return!1;const A=g.length;let I,B=0,C=!1;if(!A)return!1;if(I=g[B],(I==="-"||I==="+")&&(I=g[++B]),I==="0"){if(B+1===A)return!0;if(I=g[++B],I==="b"){for(B++;B<A;B++)if(I=g[B],I!=="_"){if(I!=="0"&&I!=="1")return!1;C=!0}return C&&I!=="_"}if(I==="x"){for(B++;B<A;B++)if(I=g[B],I!=="_"){if(!QS(g.charCodeAt(B)))return!1;C=!0}return C&&I!=="_"}for(;B<A;B++)if(I=g[B],I!=="_"){if(!ES(g.charCodeAt(B)))return!1;C=!0}return C&&I!=="_"}if(I==="_")return!1;for(;B<A;B++)if(I=g[B],I!=="_"){if(I===":")break;if(!oS(g.charCodeAt(B)))return!1;C=!0}return!C||I==="_"?!1:I!==":"?!0:/^(:[0-5]?[0-9])+$/.test(g.slice(B))}function rS(g){let A=g,I=1,B,C;const e=[];if(A.indexOf("_")!==-1&&(A=A.replace(/_/g,"")),B=A[0],(B==="-"||B==="+")&&(B==="-"&&(I=-1),A=A.slice(1),B=A[0]),A==="0")return BigInt(0);if(B==="0")return A[1]==="b"||A[1]==="x"?BigInt(A)*BigInt(I):BigInt("0o"+A)*BigInt(I);if(A.indexOf(":")!==-1){for(const t of A.split(":"))e.unshift(parseInt(t,10));A=BigInt(0),C=BigInt(1);for(const t of e)A=(BigInt(A)+BigInt(C))*BigInt(t),C=BigInt(C)*BigInt(60);return A*BigInt(I)}return BigInt(A)*BigInt(I)}function aS(g){return typeof g=="bigint"||typeof g=="number"}const sS=new iS("tag:yaml.org,2002:int",{kind:"scalar",resolve:nS,construct:rS,predicate:aS,instanceOf:BigInt,represent:{binary:function(g){return g>=0?"0b"+g.toString(2):"-0b"+g.toString(2).slice(1)},octal:function(g){return g>=0?"0"+g.toString(8):"-0"+g.toString(8).slice(1)},decimal:function(g){return g.toString(10)},hexadecimal:function(g){return g>=0?"0x"+g.toString(16).toUpperCase():"-0x"+g.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}});zn.extend({implicit:[wC.types.null,wC.types.bool,sS,wC.types.float],explicit:[]});class cS extends Error{}cS.code="ERR_ASSERTION";const lS=typeof mA<"u"&&typeof mA.from=="function";function hS(g){return lS?mA.from(g).toString("base64"):btoa(g)}var KA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ei(g){return g&&g.__esModule&&Object.prototype.hasOwnProperty.call(g,"default")?g.default:g}function Wn(g){if(g.__esModule)return g;var A=g.default;if(typeof A=="function"){var I=function B(){return this instanceof B?Reflect.construct(A,arguments,this.constructor):A.apply(this,arguments)};I.prototype=A.prototype}else I={};return Object.defineProperty(I,"__esModule",{value:!0}),Object.keys(g).forEach(function(B){var C=Object.getOwnPropertyDescriptor(g,B);Object.defineProperty(I,B,C.get?C:{enumerable:!0,get:function(){return g[B]}})}),I}var AB={},Vn;function SS(){if(Vn)return AB;Vn=1,Object.defineProperty(AB,"__esModule",{value:!0});function g(C){{const e=mA.from(C);e.reverse();const t=e.toString("hex");return t.length===0?BigInt(0):BigInt(`0x${t}`)}}AB.toBigIntLE=g;function A(C){{const e=C.toString("hex");return e.length===0?BigInt(0):BigInt(`0x${e}`)}}AB.toBigIntBE=A;function I(C,e){{const t=C.toString(16),i=mA.from(t.padStart(e*2,"0").slice(0,e*2),"hex");return i.reverse(),i}}AB.toBufferLE=I;function B(C,e){{const t=C.toString(16);return mA.from(t.padStart(e*2,"0").slice(0,e*2),"hex")}}return AB.toBufferBE=B,AB}SS();const Ci=48,ti=120;function wS(g){const A=new Array(g.length*2+2);return A[0]=Ci,A[1]=ti,$n(g,A),String.fromCharCode(...A)}const DC=new Array(32*2+2);DC[0]=Ci,DC[1]=ti;function DS(g){if(g.length!==32)throw Error(`Expect root to be 32 bytes, got ${g.length}`);return $n(g,DC),String.fromCharCode(...DC)}const Xn=new Array(48*2+2);Xn[0]=Ci,Xn[1]=ti;function yS(g){if(typeof g!="string")throw new Error(`hex argument type ${typeof g} must be of type string`);if(g.startsWith("0x")&&(g=g.slice(2)),g.length%2!==0)throw new Error(`hex string length ${g.length} must be multiple of 2`);const A=g.length/2,I=new Uint8Array(A);for(let B=0;B<A;B++){const C=parseInt(g.slice(B*2,(B+1)*2),16);I[B]=C}return I}function $n(g,A){if(g.length*2+2!==A.length)throw Error(`Expect charCodes to be of length ${g.length*2+2}, got ${A.length}`);for(let I=0;I<g.length;I++){const B=g[I],C=(B&240)>>4,e=B&15;A[2+2*I]=C<10?C+48:C+87,A[2+2*I+1]=e<10?e+48:e+87}}function uS(g){return mA.isBuffer(g)?"0x"+g.toString("hex"):g instanceof Uint8Array?"0x"+mA.from(g.buffer,g.byteOffset,g.length).toString("hex"):"0x"+mA.from(g).toString("hex")}let yC;function fS(g){if(g.length!==32)throw Error(`Expect root to be 32 bytes, got ${g.length}`);return yC===void 0&&(yC=mA.alloc(32)),yC.set(g),`0x${yC.toString("hex")}`}function pS(g){if(typeof g!="string")throw new Error(`hex argument type ${typeof g} must be of type string`);if(g.startsWith("0x")&&(g=g.slice(2)),g.length%2!==0)throw new Error(`hex string length ${g.length} must be multiple of 2`);const A=mA.from(g,"hex");return new Uint8Array(A.buffer,A.byteOffset,A.length)}let bg=wS,uC=DS,nA=yS;typeof mA<"u"&&(bg=uS,uC=fS,nA=pS);const FS={},dS=Object.freeze(Object.defineProperty({__proto__:null,default:FS},Symbol.toStringTag,{value:"Module"}));class de extends Error{constructor(A){super(`Aborted ${A||""}`)}}class GS extends Error{constructor(A){super(`Timeout ${A||""}`)}}function NS(g){return g instanceof de}BigInt(1e9),BigInt(1e9),BigInt("100000");function kS(g){return g.startsWith("0x")?g.slice(2):g}var ii;(function(g){g.error="error",g.warn="warn",g.info="info",g.verbose="verbose",g.debug="debug",g.trace="trace"})(ii||(ii={})),Object.values(ii);class RS extends Map{constructor(A){super(),this.getDefault=A}getOrDefault(A){let I=super.get(A);return I===void 0&&(I=this.getDefault(),this.set(A,I)),I}}function Ar(g,A,I){let B=g.size-A;const C=Math.max(0,B);if(B>0){const e=g.keys();for(const t of e)if(g.delete(t),B--,B<=0)break}return C}var Qi={exports:{}},US=Qi.exports,gr;function LS(){return gr||(gr=1,function(g){(function(){var A=function(w,y){return y=y||"",w.replace(/(^|-)/g,"$1\\u"+y).replace(/,/g,"\\u"+y)},I=A("20-26,28-2F,3A-40,5B-60,7B-7E,A0-BF,D7,F7","00"),B="a-z"+A("DF-F6,F8-FF","00"),C="A-Z"+A("C0-D6,D8-DE","00"),e="A|An|And|As|At|But|By|En|For|If|In|Of|On|Or|The|To|Vs?\\.?|Via",t=function(w,y,p,F){return w=w||I,y=y||B,p=p||C,F=F||e,{capitalize:new RegExp("(^|["+w+"])(["+y+"])","g"),pascal:new RegExp("(^|["+w+"])+(["+y+p+"])","g"),fill:new RegExp("["+w+"]+(.|$)","g"),sentence:new RegExp('(^\\s*|[\\?\\!\\.]+"?\\s+"?|,\\s+")(['+y+"])","g"),improper:new RegExp("\\b("+F+")\\b","g"),relax:new RegExp("([^"+p+"])(["+p+"]*)(["+p+"])(?=[^"+p+"]|$)","g"),upper:new RegExp("^[^"+y+"]+$"),hole:/[^\s]\s[^\s]/,apostrophe:/'/g,room:new RegExp("["+w+"]")}},i=t(),E={re:i,unicodes:A,regexps:t,types:[],up:String.prototype.toUpperCase,low:String.prototype.toLowerCase,cap:function(w){return E.up.call(w.charAt(0))+w.slice(1)},decap:function(w){return E.low.call(w.charAt(0))+w.slice(1)},deapostrophe:function(w){return w.replace(i.apostrophe,"")},fill:function(w,y,p){return y!=null&&(w=w.replace(i.fill,function(F,u){return u?y+u:""})),p&&(w=E.deapostrophe(w)),w},prep:function(w,y,p,F){if(w=w==null?"":w+"",!F&&i.upper.test(w)&&(w=E.low.call(w)),!y&&!i.hole.test(w)){var u=E.fill(w," ");i.hole.test(u)&&(w=u)}return!p&&!i.room.test(w)&&(w=w.replace(i.relax,E.relax)),w},relax:function(w,y,p,F){return y+" "+(p?p+" ":"")+F}},c={_:E,of:function(w){for(var y=0,p=E.types.length;y<p;y++)if(c[E.types[y]].apply(c,arguments)===w)return E.types[y]},flip:function(w){return w.replace(/\w/g,function(y){return(y==E.up.call(y)?E.low:E.up).call(y)})},random:function(w){return w.replace(/\w/g,function(y){return(Math.round(Math.random())?E.up:E.low).call(y)})},type:function(w,y){c[w]=y,E.types.push(w)}},n={lower:function(w,y,p){return E.fill(E.low.call(E.prep(w,y)),y,p)},snake:function(w){return c.lower(w,"_",!0)},constant:function(w){return c.upper(w,"_",!0)},camel:function(w){return E.decap(c.pascal(w))},kebab:function(w){return c.lower(w,"-",!0)},upper:function(w,y,p){return E.fill(E.up.call(E.prep(w,y,!1,!0)),y,p)},capital:function(w,y,p){return E.fill(E.prep(w).replace(i.capitalize,function(F,u,D){return u+E.up.call(D)}),y,p)},header:function(w){return c.capital(w,"-",!0)},pascal:function(w){return E.fill(E.prep(w,!1,!0).replace(i.pascal,function(y,p,F){return E.up.call(F)}),"",!0)},title:function(w){return c.capital(w).replace(i.improper,function(y,p,F,u){return F>0&&F<u.lastIndexOf(" ")?E.low.call(y):y})},sentence:function(w,y,p){return w=c.lower(w).replace(i.sentence,function(F,u,D){return u+E.up.call(D)}),y&&y.forEach(function(F){w=w.replace(new RegExp("\\b"+c.lower(F)+"\\b","g"),E.cap)}),p&&p.forEach(function(F){w=w.replace(new RegExp("(\\b"+c.lower(F)+"\\. +)(\\w)"),function(u,D,R){return D+E.low.call(R)})}),w}};n.squish=n.pascal,c.default=c;for(var s in n)c.type(s,n[s]);var S=typeof S=="function"?S:function(){};S(g.exports?g.exports=c:this.Case=c)}).call(US)}(Qi)),Qi.exports}var mS=LS();const Ei=ei(mS);function HS(g,A="camel",I){if(A==="notransform")return g;switch(A){case"param":return Ei.kebab(g);case"dot":return Ei.lower(g,".",!0);default:return Ei[A](g)}}function JS(g,A){const I={};for(const[B,C]of Object.entries(g))I[B]=A(C,B);return I}function fC(g,A="camel"){if(Array.isArray(g)){const I=[];for(let B=0;B<g.length;B++)I[B]=fC(g[B],A);return I}if(Object(g)===g){const I={};for(const B of Object.getOwnPropertyNames(g)){const C=HS(B,A);if(C!==B&&Object.prototype.hasOwnProperty.call(g,C))throw new Error(`object already has a ${C} property`);I[C]=fC(g[B],A)}return I}return g}async function Ir(g,A){if(!(g<0))return new Promise((I,B)=>{if(A?.aborted)return B(new de);let C=()=>{};const e=setTimeout(()=>{C(),I()},g),t=()=>{C(),B(new de)};A&&A.addEventListener("abort",t),C=()=>{clearTimeout(e),A&&A.removeEventListener("abort",t)}})}async function MS(g,A){const I=(A?.retries??5)+1,B=A?.shouldRetry,C=A?.onRetry;let e=Error("RetryError");for(let t=1;t<=I;t++){if(t>1){if(A?.signal?.aborted)throw new de("retry");C?.(e,t)}try{return await g(t)}catch(i){if(e=i,t===I||B&&!B(e))break;A?.retryDelay!==void 0&&await Ir(A?.retryDelay,A?.signal)}}throw e}var pC={exports:{}},Br;function qS(){if(Br)return pC.exports;Br=1;function g(A){const I=new globalThis.AbortController;function B(){I.abort();for(const C of A)!C||!C.removeEventListener||C.removeEventListener("abort",B)}for(const C of A)if(!(!C||!C.addEventListener)){if(C.aborted){B();break}C.addEventListener("abort",B)}return I.signal}return pC.exports=g,pC.exports.anySignal=g,pC.exports}qS();function KS(g){let A;try{A=new URL(g),decodeURIComponent(A.username),decodeURIComponent(A.password)}catch{return!1}return A.protocol==="http:"||A.protocol==="https:"}function YS(g){return new URL(g).origin}typeof wA<"u"&&wA.versions!=null&&wA.versions.node!=null;const bS=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]),er=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]),Cr={env:{abort:function(g,A,I,B){throw Error(`abort: ${g}:${A}:${I}:${B}`)}}};function TS(g){return WebAssembly.validate(er)?new WebAssembly.Instance(new WebAssembly.Module(er),Cr).exports:new WebAssembly.Instance(new WebAssembly.Module(bS),Cr).exports}function vS(g,A,I){let B=g.h0;A[0+I]=B&255,B=B>>8,A[1+I]=B&255,B=B>>8,A[2+I]=B&255,B=B>>8,A[3+I]=B&255,B=g.h1,A[4+I]=B&255,B=B>>8,A[5+I]=B&255,B=B>>8,A[6+I]=B&255,B=B>>8,A[7+I]=B&255,B=g.h2,A[8+I]=B&255,B=B>>8,A[9+I]=B&255,B=B>>8,A[10+I]=B&255,B=B>>8,A[11+I]=B&255,B=g.h3,A[12+I]=B&255,B=B>>8,A[13+I]=B&255,B=B>>8,A[14+I]=B&255,B=B>>8,A[15+I]=B&255,B=g.h4,A[16+I]=B&255,B=B>>8,A[17+I]=B&255,B=B>>8,A[18+I]=B&255,B=B>>8,A[19+I]=B&255,B=g.h5,A[20+I]=B&255,B=B>>8,A[21+I]=B&255,B=B>>8,A[22+I]=B&255,B=B>>8,A[23+I]=B&255,B=g.h6,A[24+I]=B&255,B=B>>8,A[25+I]=B&255,B=B>>8,A[26+I]=B&255,B=B>>8,A[27+I]=B&255,B=g.h7,A[28+I]=B&255,B=B>>8,A[29+I]=B&255,B=B>>8,A[30+I]=B&255,B=B>>8,A[31+I]=B&255}function _S(g,A){const I={h0:0,h1:0,h2:0,h3:0,h4:0,h5:0,h6:0,h7:0};return oi(g,A,I),I}function oi(g,A,I){let B=0;B|=g[3+A]&255,B=B<<8,B|=g[2+A]&255,B=B<<8,B|=g[1+A]&255,B=B<<8,B|=g[0+A]&255,I.h0=B,B=0,B|=g[7+A]&255,B=B<<8,B|=g[6+A]&255,B=B<<8,B|=g[5+A]&255,B=B<<8,B|=g[4+A]&255,I.h1=B,B=0,B|=g[11+A]&255,B=B<<8,B|=g[10+A]&255,B=B<<8,B|=g[9+A]&255,B=B<<8,B|=g[8+A]&255,I.h2=B,B=0,B|=g[15+A]&255,B=B<<8,B|=g[14+A]&255,B=B<<8,B|=g[13+A]&255,B=B<<8,B|=g[12+A]&255,I.h3=B,B=0,B|=g[19+A]&255,B=B<<8,B|=g[18+A]&255,B=B<<8,B|=g[17+A]&255,B=B<<8,B|=g[16+A]&255,I.h4=B,B=0,B|=g[23+A]&255,B=B<<8,B|=g[22+A]&255,B=B<<8,B|=g[21+A]&255,B=B<<8,B|=g[20+A]&255,I.h5=B,B=0,B|=g[27+A]&255,B=B<<8,B|=g[26+A]&255,B=B<<8,B|=g[25+A]&255,B=B<<8,B|=g[24+A]&255,I.h6=B,B=0,B|=g[31+A]&255,B=B<<8,B|=g[30+A]&255,B=B<<8,B|=g[29+A]&255,B=B<<8,B|=g[28+A]&255,I.h7=B}let mg,FC,dC,tr,tg;function OS(g){mg=TS(),mg.HAS_SIMD.valueOf(),FC=mg.input.value,dC=mg.output.value,new Uint8Array(mg.memory.buffer,FC,mg.INPUT_LENGTH),tr=new Uint8Array(mg.memory.buffer,dC,mg.PARALLEL_FACTOR*32),new Uint8Array(mg.memory.buffer,dC,32),tg=new Uint32Array(mg.memory.buffer,FC,mg.INPUT_LENGTH)}OS();function ZS(g,A){const I={h0:0,h1:0,h2:0,h3:0,h4:0,h5:0,h6:0,h7:0};return xS(g,A,I),I}function xS(g,A,I){tg[0]=g.h0,tg[1]=g.h1,tg[2]=g.h2,tg[3]=g.h3,tg[4]=g.h4,tg[5]=g.h5,tg[6]=g.h6,tg[7]=g.h7,tg[8]=A.h0,tg[9]=A.h1,tg[10]=A.h2,tg[11]=A.h3,tg[12]=A.h4,tg[13]=A.h5,tg[14]=A.h6,tg[15]=A.h7,mg.digest64(FC,dC),oi(tr,0,I)}const pI={PRESET_BASE:fg.mainnet,CONFIG_NAME:"mainnet",TERMINAL_TOTAL_DIFFICULTY:BigInt("58750000000000000000000"),TERMINAL_BLOCK_HASH:nA("0x0000000000000000000000000000000000000000000000000000000000000000"),TERMINAL_BLOCK_HASH_ACTIVATION_EPOCH:1/0,MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:16384,MIN_GENESIS_TIME:1606824e3,GENESIS_FORK_VERSION:nA("0x00000000"),GENESIS_DELAY:604800,ALTAIR_FORK_VERSION:nA("0x01000000"),ALTAIR_FORK_EPOCH:74240,BELLATRIX_FORK_VERSION:nA("0x02000000"),BELLATRIX_FORK_EPOCH:144896,CAPELLA_FORK_VERSION:nA("0x03000000"),CAPELLA_FORK_EPOCH:194048,DENEB_FORK_VERSION:nA("0x04000000"),DENEB_FORK_EPOCH:269568,ELECTRA_FORK_VERSION:nA("0x05000000"),ELECTRA_FORK_EPOCH:1/0,FULU_FORK_VERSION:nA("0x06000000"),FULU_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:nA("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},jS={PRESET_BASE:fg.minimal,CONFIG_NAME:"minimal",TERMINAL_TOTAL_DIFFICULTY:BigInt("115792089237316195423570985008687907853269984665640564039457584007913129638912"),TERMINAL_BLOCK_HASH:nA("0x0000000000000000000000000000000000000000000000000000000000000000"),TERMINAL_BLOCK_HASH_ACTIVATION_EPOCH:1/0,MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:64,MIN_GENESIS_TIME:1578009600,GENESIS_FORK_VERSION:nA("0x00000001"),GENESIS_DELAY:300,ALTAIR_FORK_VERSION:nA("0x01000001"),ALTAIR_FORK_EPOCH:74240,BELLATRIX_FORK_VERSION:nA("0x02000001"),BELLATRIX_FORK_EPOCH:1/0,CAPELLA_FORK_VERSION:nA("0x03000001"),CAPELLA_FORK_EPOCH:1/0,DENEB_FORK_VERSION:nA("0x04000001"),DENEB_FORK_EPOCH:1/0,ELECTRA_FORK_VERSION:nA("0x05000001"),ELECTRA_FORK_EPOCH:1/0,FULU_FORK_VERSION:nA("0x06000001"),FULU_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:nA("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 GC;switch(nC){case fg.minimal:GC=jS;break;case fg.mainnet:GC=pI;break;default:GC=pI}function PS(g){const A={...GC,...g};if(A.PRESET_BASE!==nC)throw new Error(`Can only create a config for the active preset: ACTIVE_PRESET=${nC} PRESET_BASE=${A.PRESET_BASE}`);return A}function FI(g,A){const I=BigInt(1)<<BigInt(g);if(A>=I)throw new Error(`index ${A} too large for depth ${g}`);return I|A}function ni(g,A){const I=A?Number(A).toString(2):"";if(I.length>g)throw new Error("index too large for depth");return"1"+I.padStart(g,"0")}function ri(g){if(typeof g=="string"){if(g.length===0)throw new Error(NC);return g}else{if(g<1)throw new Error(NC);return g.toString(2)}}const NC="Invalid gindex";function zS(g){let A;if(typeof g=="string"){if(!g.length)throw new Error(NC);A=g}else{if(g<1)throw new Error(NC);A=g.toString(2)}let I=1;const B=()=>{if(I===A.length)return{done:!0,value:void 0};const C=Number(A[I]);return I++,{done:!1,value:C}};return{[Symbol.iterator](){return{next:B}},remainingBitLength(){return A.length-I}}}function oI(g){return BigInt(g.reduce((A,I)=>A+I.toString(2).slice(1),"0b1"))}function Ge(g){if(!Number.isSafeInteger(g)||g<0)throw new Error(`Wrong positive integer: ${g}`)}function WS(g){if(typeof g!="boolean")throw new Error(`Expected boolean, not ${g}`)}function VS(g){return g instanceof Uint8Array||g!=null&&typeof g=="object"&&g.constructor.name==="Uint8Array"}function ai(g,...A){if(!VS(g))throw new Error("Expected Uint8Array");if(A.length>0&&!A.includes(g.length))throw new Error(`Expected Uint8Array of length ${A}, not of length=${g.length}`)}function XS(g){if(typeof g!="function"||typeof g.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Ge(g.outputLen),Ge(g.blockLen)}function Ne(g,A=!0){if(g.destroyed)throw new Error("Hash instance has been destroyed");if(A&&g.finished)throw new Error("Hash#digest() has already been called")}function si(g,A){ai(g);const I=A.outputLen;if(g.length<I)throw new Error(`digestInto() expects output buffer of length at least ${I}`)}const $S={number:Ge,bool:WS,bytes:ai,hash:XS,exists:Ne,output:si},Aw=g=>new Uint32Array(g.buffer,g.byteOffset,Math.floor(g.byteLength/4));function gw(g){return g instanceof Uint8Array||g!=null&&typeof g=="object"&&g.constructor.name==="Uint8Array"}const ci=g=>new DataView(g.buffer,g.byteOffset,g.byteLength),II=(g,A)=>g<<32-A|g>>>A;if(!(new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68))throw new Error("Non little-endian hardware is not supported");function Iw(g){if(typeof g!="string")throw new Error(`utf8ToBytes expected string, got ${typeof g}`);return new Uint8Array(new TextEncoder().encode(g))}function li(g){if(typeof g=="string"&&(g=Iw(g)),!gw(g))throw new Error(`expected Uint8Array, got ${typeof g}`);return g}class ir{clone(){return this._cloneInto()}}function Qr(g){const A=B=>g().update(li(B)).digest(),I=g();return A.outputLen=I.outputLen,A.blockLen=I.blockLen,A.create=()=>g(),A}function Bw(g,A,I,B){if(typeof g.setBigUint64=="function")return g.setBigUint64(A,I,B);const C=BigInt(32),e=BigInt(4294967295),t=Number(I>>C&e),i=Number(I&e),E=B?4:0,c=B?0:4;g.setUint32(A+E,t,B),g.setUint32(A+c,i,B)}class ew extends ir{constructor(A,I,B,C){super(),this.blockLen=A,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(A),this.view=ci(this.buffer)}update(A){Ne(this);const{view:I,buffer:B,blockLen:C}=this;A=li(A);const e=A.length;for(let t=0;t<e;){const i=Math.min(C-this.pos,e-t);if(i===C){const E=ci(A);for(;C<=e-t;t+=C)this.process(E,t);continue}B.set(A.subarray(t,t+i),this.pos),this.pos+=i,t+=i,this.pos===C&&(this.process(I,0),this.pos=0)}return this.length+=A.length,this.roundClean(),this}digestInto(A){Ne(this),si(A,this),this.finished=!0;const{buffer:I,view:B,blockLen:C,isLE:e}=this;let{pos:t}=this;I[t++]=128,this.buffer.subarray(t).fill(0),this.padOffset>C-t&&(this.process(B,0),t=0);for(let s=t;s<C;s++)I[s]=0;Bw(B,C-8,BigInt(this.length*8),e),this.process(B,0);const i=ci(A),E=this.outputLen;if(E%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const c=E/4,n=this.get();if(c>n.length)throw new Error("_sha2: outputLen bigger than state");for(let s=0;s<c;s++)i.setUint32(4*s,n[s],e)}digest(){const{buffer:A,outputLen:I}=this;this.digestInto(A);const B=A.slice(0,I);return this.destroy(),B}_cloneInto(A){A||(A=new this.constructor),A.set(...this.get());const{blockLen:I,buffer:B,length:C,finished:e,destroyed:t,pos:i}=this;return A.length=C,A.pos=i,A.finished=e,A.destroyed=t,C%I&&A.buffer.set(B),A}}const Cw=(g,A,I)=>g&A^~g&I,tw=(g,A,I)=>g&A^g&I^A&I,iw=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]),dI=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),GI=new Uint32Array(64);class Qw extends ew{constructor(){super(64,32,8,!1),this.A=dI[0]|0,this.B=dI[1]|0,this.C=dI[2]|0,this.D=dI[3]|0,this.E=dI[4]|0,this.F=dI[5]|0,this.G=dI[6]|0,this.H=dI[7]|0}get(){const{A,B:I,C:B,D:C,E:e,F:t,G:i,H:E}=this;return[A,I,B,C,e,t,i,E]}set(A,I,B,C,e,t,i,E){this.A=A|0,this.B=I|0,this.C=B|0,this.D=C|0,this.E=e|0,this.F=t|0,this.G=i|0,this.H=E|0}process(A,I){for(let s=0;s<16;s++,I+=4)GI[s]=A.getUint32(I,!1);for(let s=16;s<64;s++){const S=GI[s-15],w=GI[s-2],y=II(S,7)^II(S,18)^S>>>3,p=II(w,17)^II(w,19)^w>>>10;GI[s]=p+GI[s-7]+y+GI[s-16]|0}let{A:B,B:C,C:e,D:t,E:i,F:E,G:c,H:n}=this;for(let s=0;s<64;s++){const S=II(i,6)^II(i,11)^II(i,25),w=n+S+Cw(i,E,c)+iw[s]+GI[s]|0,y=(II(B,2)^II(B,13)^II(B,22))+tw(B,C,e)|0;n=c,c=E,E=i,i=t+w|0,t=e,e=C,C=B,B=w+y|0}B=B+this.A|0,C=C+this.B|0,e=e+this.C|0,t=t+this.D|0,i=i+this.E|0,E=E+this.F|0,c=c+this.G|0,n=n+this.H|0,this.set(B,C,e,t,i,E,c,n)}roundClean(){GI.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Er=Qr(()=>new Qw),KB=[new Uint8Array(32)];function NI(g){if(g>=KB.length)for(let A=KB.length;A<=g;A++)KB[A]=Er.create().update(KB[A-1]).update(KB[A-1]).digest();return KB[g]}function ke(g){const A=new Uint8Array(32);return vS(g,A,0),A}function Ew(g){return _S(g,0)}const rg=64;function ow(g,A,I,B,C){if(A<1)throw new Error(`Invalid padFor, expect to be greater than 0, got ${A}`);const e=Math.ceil(Math.log2(A));if(g.length===0){I.set(NI(e),B);return}if(g.length%32!==0)throw new Error(`Invalid input length, expect to be multiple of 32 bytes, got ${g.length}`);if(A>1&&g.length%rg!==0)throw new Error(`Invalid input length, expect to be multiple of 64 bytes, got ${g.length}, padFor=${A}`);let t=g.length,i=Math.floor(t/2),E=g;for(let c=0;c<e;c++){const n=g.subarray(0,i);C(E,n),Math.floor(i/32)%2===1&&c<e-1?(t=i+32,E=g.subarray(0,t),E.set(NI(c+1),i)):(E=n,t=i),i=Math.floor(t/2)}I.set(E.subarray(0,32),B)}function nw(g,A,I,B,C,e,t){if(I<1)throw new Error(`Invalid padFor, expect to be at least 1, got ${I}`);if(A>g.length)throw new Error(`Invalid blockLimit, expect to be less than or equal blocks.length ${g.length}, got ${A}`);const i=Math.ceil(Math.log2(I));if(A===0){B.set(NI(i),C);return}for(const w of g)if(w.length!==rg)throw new Error(`Invalid block length, expect to be 64 bytes, got ${w.length}`);if(t.length===0||t.length%(4*rg)!==0)throw new Error(`Invalid buffer length, expect to be multiple of 64 bytes, got ${t.length}`);const E=Math.floor(t.length/rg),c=Math.floor(E/2);let n=t,s=t.subarray(0,c*rg),S=A;for(let w=0;w<i;w++){let y=0;const p=Math.floor(S/E);for(let u=0;u<p;u++){for(let D=0;D<E;D++){const R=u*E+D;n.set(g[R],D*rg)}e(n,s);for(let D=0;D<c;D++)g[y].set(s.subarray(D*rg,(D+1)*rg)),y++}const F=S%E;n=t.subarray(0,F*rg),s=t.subarray(0,Math.floor(n.length/2));for(let u=Math.floor(S/E)*E;u<S;u++)n.set(g[u],u%E*rg);e(n,s);for(let u=0;u<Math.floor(s.length/rg);u++)g[y].set(s.subarray(u*rg,(u+1)*rg)),y++;s.length%rg!==0&&(g[y].set(s.subarray(s.length-32,s.length),0),g[y].set(NI(w+1),32),y++),S=y,n=t.subarray(0,S*rg),s=t.subarray(0,Math.floor(n.length/2))}B.set(g[0].subarray(0,32),C)}function rw(g,A,I){let B=g.length;const C=Math.pow(2,A)*32;if(A<1)throw new Error(`Invalid nLevel, expect to be greater than 0, got ${A}`);if(B%C!==0)throw new Error(`Invalid input length, expect to be multiple of ${C} for nLevel ${A}, got ${B}`);let e=Math.floor(B/2),t=g;for(let i=A;i>0;i--){const E=t.subarray(0,e);I(t,E),t=E,B=e,e=Math.floor(B/2)}return t}const hi=(g,A)=>Er.create().update(g).update(A).digest(),Si=(g,A)=>{if(g.length%64!==0)throw new Error(`Invalid input length ${g.length}`);if(g.length!==A.length*2)throw new Error(`Invalid output length ${A.length}`);const I=Math.floor(g.length/64);for(let B=0;B<I;B++){const C=B*64,e=g.subarray(C,C+32),t=g.subarray(C+32,C+64),i=hi(e,t);A.set(i,B*32)}},aw=new Uint8Array(4*rg);let Re={name:"noble",digest64:hi,digest64HashObjects:(g,A,I)=>{oi(hi(ke(g),ke(A)),0,I)},merkleizeBlocksBytes(g,A,I,B){return ow(g,A,I,B,Si)},merkleizeBlockArray(g,A,I,B,C){return nw(g,A,I,B,C,Si,aw)},digestNLevel(g,A){return rw(g,A,Si)},executeHashComputations:g=>{for(let A=g.length-1;A>=0;A--){const I=g[A];if(!I)throw Error(`no hash computations for level ${A}`);for(const B of I)B.dest.applyHash(ZS(B.src0,B.src1))}}};function sw(g){Re.executeHashComputations(g)}const or=2**32;class wi{h0;h1;h2;h3;h4;h5;h6;h7;constructor(A,I,B,C,e,t,i,E){this.h0=A,this.h1=I,this.h2=B,this.h3=C,this.h4=e,this.h5=t,this.h6=i,this.h7=E}applyHash(A){this.h0=A.h0,this.h1=A.h1,this.h2=A.h2,this.h3=A.h3,this.h4=A.h4,this.h5=A.h5,this.h6=A.h6,this.h7=A.h7}}class YA extends wi{_left;_right;constructor(A,I){if(super(null,0,0,0,0,0,0,0),this._left=A,this._right=I,!A)throw new Error("Left node is undefined");if(!I)throw new Error("Right node is undefined")}get rootHashObject(){return this.h0===null&&Re.digest64HashObjects(this.left.rootHashObject,this.right.rootHashObject,this),this}get root(){return ke(this.rootHashObject)}get left(){return this._left}get right(){return this._right}isLeaf(){return!1}}class bA extends wi{get rootHashObject(){return this}get root(){return ke(this)}get left(){throw Error("LeafNode has no left node")}get right(){throw Error("LeafNode has no right node")}static fromRoot(A){return this.fromHashObject(Ew(A))}static fromHashObject(A){return new bA(A.h0,A.h1,A.h2,A.h3,A.h4,A.h5,A.h6,A.h7)}static fromZero(){return new bA(0,0,0,0,0,0,0,0)}static fromUint32(A){return new bA(A,0,0,0,0,0,0,0)}clone(){return bA.fromHashObject(this)}isLeaf(){return!0}writeToBytes(A,I,B){A.set(this.root.slice(0,B),I)}getUint(A,I,B){const C=Math.floor(I/4);if(A<4){const e=I%4*8,t=Tg(this,C);return A===1?255&t>>e:65535&t>>e}else{if(A===4)return Tg(this,C)>>>0;if(A===8){const e=Tg(this,C),t=Tg(this,C+1);return t===0?e>>>0:t===-1&&e===-1&&B?1/0:(e>>>0)+(t>>>0)*or}else throw Error("uintBytes > 8")}}getUintBigint(A,I){const B=Math.floor(I/4);if(A<4){const C=I%4*8,e=Tg(this,B);return BigInt(A===1?255&e>>C:65535&e>>C)}else{if(A===4)return BigInt(Tg(this,B)>>>0);{const C=Math.ceil(A/4);let e=BigInt(0);for(let t=0;t<C;t++)e+=BigInt(Tg(this,B+t)>>>0)<<BigInt(32*t);return e}}}setUint(A,I,B,C){const e=Math.floor(I/4);if(A<4){const t=I%4*8;let i=Tg(this,e);A===1?(i&=~(255<<t),i|=B<<t):(i&=~(65535<<t),i|=B<<t),hg(this,e,i)}else if(A===4)hg(this,e,B);else if(A===8)B===1/0&&C?(hg(this,e,-1),hg(this,e+1,-1)):(hg(this,e,B&4294967295),hg(this,e+1,B/or&4294967295));else throw Error("uintBytes > 8")}setUintBigint(A,I,B){const C=Math.floor(I/4);if(A<4){const e=Number(B),t=I%4*8;let i=Tg(this,C);A===1?(i&=~(255<<t),i|=e<<t):(i&=~(65535<<t),i|=e<<t),hg(this,C,i)}else if(A===4)hg(this,C,Number(B));else{const e=C+Math.ceil(A/4);for(let t=C;t<e;t++)hg(this,t,Number(B&BigInt(4294967295))),B=B>>BigInt(32)}}bitwiseOrUint(A,I,B){const C=Math.floor(I/4);if(A<4){const e=I%4*8;Di(this,C,B<<e)}else if(A===4)Di(this,C,B);else{const e=C+Math.ceil(A/4);for(let t=C;t<e;t++)Di(this,t,B&4294967295),B>>=32}}}function Tg(g,A){if(A===0)return g.h0;if(A===1)return g.h1;if(A===2)return g.h2;if(A===3)return g.h3;if(A===4)return g.h4;if(A===5)return g.h5;if(A===6)return g.h6;if(A===7)return g.h7;throw Error("hIndex > 7")}function hg(g,A,I){if(A===0)g.h0=I;else if(A===1)g.h1=I;else if(A===2)g.h2=I;else if(A===3)g.h3=I;else if(A===4)g.h4=I;else if(A===5)g.h5=I;else if(A===6)g.h6=I;else if(A===7)g.h7=I;else throw Error("hIndex > 7")}function Di(g,A,I){if(A===0)g.h0|=I;else if(A===1)g.h1|=I;else if(A===2)g.h2|=I;else if(A===3)g.h3|=I;else if(A===4)g.h4|=I;else if(A===5)g.h5|=I;else if(A===6)g.h6|=I;else if(A===7)g.h7|=I;else throw Error("hIndex > 7")}class cw{_length;_totalLength;head;tail;pointer;constructor(){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(A,I,B){if(this.tail!==null){let C=this.tail.next;C!==null?(C.src0=A,C.src1=I,C.dest=B):(C={src0:A,src1:I,dest:B,next:null},this.tail.next=C,this._totalLength++),this.tail=C,this._length++;return}this.head.src0=A,this.head.src1=I,this.head.dest=B,this.tail=this.head,this._length=1,this._totalLength===0&&(this._totalLength=1)}clean(){let A=this.tail?.next??null;for(;A!==null&&A.src0!==null;)A.src0=null,A.src1=null,A.dest=null,A=A.next}next(){if(!this.pointer||this.tail===null)return{done:!0,value:void 0};const A=this.pointer,I=A.src0===null;return this.pointer=this.pointer.next,I?{done:!0,value:void 0}:{done:!1,value:A}}[Symbol.iterator](){return this.pointer=this.head,this}toArray(){const A=[];for(const I of this)A.push(I);return A}dump(){const A=[];let I=null;for(I=this.head;I!==null;I=I.next)A.push(I);return A}}class lw{byLevel;constructor(){this.byLevel=[]}reset(){for(const A of this.byLevel)A.reset()}clean(){for(const A of this.byLevel)A.clean()}}function ag(g,A,I){if(g.h0===null){const B=vg(I,A),{left:C,right:e}=g;B.push(C,e,g),ag(C,A+1,I),ag(e,A+1,I)}}function vg(g,A){return g[A]===void 0&&(g[A]=new cw),g[A]}const gB=[bA.fromZero()];function IB(g){if(g>=gB.length){for(let A=gB.length;A<=g;A++)gB[A]=new YA(gB[A-1],gB[A-1]);gB[g].root}return gB[g]}function Ue(g,A,I=0,B=null){const C=2**A;if(g.length>C)throw new Error(`nodes.length ${g.length} over maxIndex at depth ${A}`);if(g.length===0)return IB(A);if(A===0){const t=g[0];return B!==null&&ag(t,I,B),t}if(A===1){const t=g[0],i=g.length>1?g[1]:IB(0),E=new YA(t,i);return B!==null&&(ag(t,I+1,B),ag(i,I+1,B),vg(B,I).push(t,i,E)),E}let e=g.length;for(let t=A;t>0;t--){const i=e%2,E=e-i,c=B?I+t-1:null;for(let n=0;n<E;n+=2){const s=g[n],S=g[n+1],w=new YA(s,S);g[n/2]=w,c!==null&&B!==null&&(vg(B,c).push(s,S,w),t===A&&(ag(s,c+1,B),ag(S,c+1,B)))}if(i>0){const n=g[E],s=IB(A-t),S=new YA(n,s);g[E/2]=S,c!==null&&B!==null&&(t===A&&ag(n,c+1,B),vg(B,c).push(n,s,S))}e=E/2+i}return g[0]}const hw=2**32;function Le(g,A,I,B){const C=ww(A,I,B);return Ue(C,g)}function Sw(g){const A=new Array(Math.ceil(g.length/4));for(let I=0;I<g.length;I++){const B=Math.floor(I/4),C=A[B]??new bA(0,0,0,0,0,0,0,0),e=2*(I%4),t=g[I];t===1/0?(hg(C,e,4294967295),hg(C,e+1,4294967295)):(hg(C,e,t&4294967295),hg(C,e+1,t/hw&4294967295)),A[B]=C}return A}function ww(g,A,I){const B=I-A,C=Math.floor(B/32),e=new Array(Math.ceil(B/32));for(let i=0;i<C;i++){const E=A+i*32;e[i]=new bA(g.getInt32(E+0,!0),g.getInt32(E+4,!0),g.getInt32(E+8,!0),g.getInt32(E+12,!0),g.getInt32(E+16,!0),g.getInt32(E+20,!0),g.getInt32(E+24,!0),g.getInt32(E+28,!0))}const t=B%32;if(t>0){const i=new bA(0,0,0,0,0,0,0,0);e[C]=i;const E=Math.floor(t/4);for(let n=0;n<E;n++)hg(i,n,g.getInt32(A+C*32+n*4,!0));const c=B%4;if(c>0){let n=0;for(let s=0;s<c;s++)n|=g.getUint8(A+B-c+s)<<s*8;hg(i,E,n)}}return e}function me(g,A,I,B){const C=I%32,e=Math.floor(I/32);for(let t=0;t<e;t++){const i=B[t],E=A+t*32;g.setInt32(E+0,i.h0,!0),g.setInt32(E+4,i.h1,!0),g.setInt32(E+8,i.h2,!0),g.setInt32(E+12,i.h3,!0),g.setInt32(E+16,i.h4,!0),g.setInt32(E+20,i.h5,!0),g.setInt32(E+24,i.h6,!0),g.setInt32(E+28,i.h7,!0)}if(C>0){const t=B[e],i=Math.floor(C/4);for(let c=0;c<i;c++)g.setInt32(A+e*32+c*4,Tg(t,c),!0);const E=I%4;if(E>0){const c=Tg(t,i);for(let n=0;n<E;n++)g.setUint8(A+I-E+n,c>>n*8&255)}}}const nr="Invalid tree navigation";function rr(g,A){const I=[];let B=g;for(const C of zS(A))if(C){if(B.isLeaf())throw new Error(nr);I.push(B.left.root),B=B.right}else{if(B.isLeaf())throw new Error(nr);I.push(B.right.root),B=B.left}return[B.root,I.reverse()]}function Dw(g,A,I){let B=bA.fromRoot(A);const C=I.slice().reverse();for(;g>1;){const e=bA.fromRoot(C.pop());g%BigInt(2)===BigInt(0)?B=new YA(B,e):B=new YA(e,B),g=g/BigInt(2)}return B}class dg{_rootNode;hook;constructor(A,I){this._rootNode=A,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(A){if(this._rootNode=A,this.hook)if(typeof WeakRef>"u")this.hook(A);else{const I=this.hook.deref();I?I(A):this.hook=void 0}}static createFromProof(A){return new dg(Mw(A))}clone(){return new dg(this.rootNode)}getSubtree(A){return new dg(this.getNode(A),I=>this.setNode(A,I))}getNode(A){return He(this.rootNode,A)}getNodeAtDepth(A,I){return Hg(this.rootNode,A,I)}getRoot(A){return this.getNode(A).root}setNode(A,I){this.rootNode=yw(this.rootNode,A,I)}setNodeWithFn(A,I){this.rootNode=uw(this.rootNode,A,I)}setNodeAtDepth(A,I,B){this.rootNode=fw(this.rootNode,A,I,B)}setRoot(A,I){this.setNode(A,bA.fromRoot(I))}getNodesAtDepth(A,I,B){return ig(this.rootNode,A,I,B)}iterateNodesAtDepth(A,I,B){return pw(this.rootNode,A,I,B)}getSingleProof(A){return rr(this.rootNode,A)[1]}getProof(A){return wr(this.rootNode,A)}}function He(g,A){const I=ri(A);let B=g;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 yw(g,A,I){const B=ri(A),C=ar(g,B);return sr(B,C,I)}function uw(g,A,I){const B=ri(A),C=ar(g,B),e=C[C.length-1],t=B[B.length-1]==="1"?e.right:e.left,i=I(t);return sr(B,C,i)}function ar(g,A){let I=g;const B=[g];for(let C=1;C<A.length-1;C++)A[C]==="1"?I=I.right:I=I.left,B.push(I);return B}function sr(g,A,I){let B=I;for(let C=g.length-1;C>=1;C--)g[C]==="1"?B=new YA(A[C-1].left,B):B=new YA(B,A[C-1].right);return B}function Hg(g,A,I){if(A===0)return g;if(A===1)return I===0?g.left:g.right;const B=A-1,C=0;let e=g;for(let t=B;t>=C;t--)e=BB(t,I)?e.left:e.right;return e}function fw(g,A,I,B){return Je(g,A,[I],[B])}function Je(g,A,I,B,C=0,e=null){if(A===0)return B.length>0?B[0]:g;const t=new Array(A),i=new Array(A),E=A-1,c=0;let n=E,s=g;t[E]=g;for(let S=0;S<I.length;S++){const w=I[S];for(let F=n;F>c;F--)s=BB(F,w)?s.left:s.right,t[F-1]=s;if(n=c,(w&1)!==1)if(w+1===I[S+1])s=new YA(B[S],B[S+1]),e!=null&&vg(e,A-1+C).push(B[S],B[S+1],s),S++;else{const F=s;s=new YA(B[S],F.right),e!=null&&vg(e,A-1+C).push(B[S],F.right,s)}else{const F=s;s=new YA(F.left,B[S]),e!=null&&vg(e,A-1+C).push(F.left,B[S],s)}const y=S>=I.length-1,p=y?E:Fw(w,I[S+1]);for(let F=c+1;F<=p;F++){const u=A-F-1;if(u<0)throw Error(`Invalid depth ${u}, d=${F}, nodesDepth=${A}`);if(BB(F,w))if(y||F!==p){const D=s;s=new YA(D,t[F].right),e!=null&&vg(e,u+C).push(D,t[F].right,s)}else i[F]=s,s=t[F];else{const D=i[F];if(D!==void 0){const R=s;s=new YA(D,R),e!=null&&vg(e,u+C).push(D,R,s),i[F]=void 0}else{const R=s;s=new YA(t[F].left,R),e!=null&&vg(e,u+C).push(t[F].left,R,s)}}}n=p}return s}function ig(g,A,I,B){if(A===0)return I===0&&B>0?[g]:[];if(A===1)return B===0?[]:B===1?I===0?[g.left]:[g.right]:[g.left,g.right];const C=A-1,e=0;let t=C,i=g;const E=new Array(A),c=new Array(A),n=new Array(B);E[C]=g;for(let s=0;s<B;s++){for(let S=t;S>=e;S--){S!==t&&(E[S]=i);const w=BB(S,I+s);c[S]=w,i=w?i.left:i.right}n[s]=i;for(let S=e;S<=C;S++)if(c[S]===!0){t=S;break}i=E[t]}return n}function*pw(g,A,I,B){const C=I+B,e=A-1,t=0;let i=e,E=g;const c=new Array(A),n=new Array(A);c[e]=g;for(let s=I;s<C;s++){for(let S=i;S>=t;S--){S!==i&&(c[S]=E);const w=BB(S,s);n[S]=w,E=w?E.left:E.right}yield E;for(let S=t;S<=e;S++)if(n[S]===!0){i=S;break}E=c[i]}}function cr(g,A,I){if(I<0)return IB(A);const B=new Array(A),C=A-1,e=0;let t=C,i=g;B[C]=g;for(let E=t;E>=e;E--)i=BB(E,I)?i.left:i.right,B[E-1]=i;t=e;for(let E=e;E<=C;E++)BB(E,I)?i=new YA(i,IB(E)):i=new YA(B[E].left,i);return i}const kC=4294967295,lr=2**32;function Fw(g,A){if(g===A||g<0||A<0)throw Error(`Expect different positive inputs, from=${g} to=${A}`);const I=Math.ceil(Math.log2(g+1)),B=Math.ceil(Math.log2(A+1));if(I!==B)return Math.max(I,B)-1;if(I>32){const C=Math.floor(g/lr)&kC,e=Math.floor(A/lr)&kC;return C===e?yi(g&kC,A&kC):32+yi(C,e)}return yi(g,A)}function BB(g,A){if(g>31){const B=A/4294967296>>>0,C=1<<g-32;return(B&C)!==C}const I=1<<g;return(A&I)!==I}function yi(g,A){const I=g^A;if(I===0)throw Error(`Do not support equal value from=${g} to=${A}`);return(I<0?32:Math.ceil(Math.log2(I+1)))-1}function dw(g){const A=new Set,I=new Set;let B=g;for(;B.length>1;){A.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:A,branch:I}}function Gw(g,A){return g.length?g.map(I=>I.padEnd(A)).sort().map(I=>I.trim()):[]}function Nw(g){return g.length?g.sort((A,I)=>{if(A.length<I.length)return 1;if(I.length<A.length)return-1;let B=A.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=A.indexOf("0",B+1),C=I.indexOf("0",C+1)}}):[]}function kw(g){const A=g.slice().sort((B,C)=>B.length-C.length),I=[];A:for(let B=0;B<A.length;B++){const C=A[B];for(let e=B+1;e<A.length;e++)if(A[e].startsWith(C))continue A;I.push(C)}return I}var kI;(function(g){g[g.InOrder=0]="InOrder",g[g.Decreasing=1]="Decreasing",g[g.Unsorted=2]="Unsorted"})(kI||(kI={}));function ui(g,A=!0,I=kI.InOrder){const B=kw(g),C=new Set(A?B:[]),e=new Set,t=new Set;let i=1;for(const E of B){E.length>i&&(i=E.length);const{path:c,branch:n}=dw(E);c.forEach(s=>e.add(s)),n.forEach(s=>t.add(s))}switch(e.forEach(E=>t.delete(E)),t.forEach(E=>C.add(E)),I){case kI.InOrder:return Gw(Array.from(C),i);case kI.Decreasing:return Nw(Array.from(C));case kI.Unsorted:return Array.from(C)}}function Rw(g,A){const I=new dg(g),B=ui(A.map(i=>i.toString(2)),!1,kI.Decreasing),C=A.slice().sort((i,E)=>i<E?1:-1),e=C.map(i=>I.getRoot(i)),t=B.map(i=>I.getRoot(i));return[e,t,C]}function Uw(g,A,I){if(g.length!==I.length)throw new Error("Leaves length should equal gindices length");const B=I.map(E=>E.toString(2)),C=ui(B,!1,kI.Decreasing);if(C.length!==A.length)throw new Error("Witnesses length should equal witnesses gindices length");const e=Math.max(B[0]?.length??0,C[0]?.length??0),t=Object.fromEntries(Array.from({length:e},(E,c)=>[c+1,{}]));for(let E=0;E<B.length;E++){const c=B[E],n=g[E];t[c.length][c]=bA.fromRoot(n)}for(let E=0;E<C.length;E++){const c=C[E],n=A[E];t[c.length][c]=bA.fromRoot(n)}for(let E=e;E>1;E--){const c=t[E],n=t[E-1];for(const s of Object.keys(c)){const S=c[s];if(!S)continue;const w=s[s.length-1]==="0",y=s.substring(0,s.length-1),p=y+(w?"1":"0"),F=c[p];if(!F)throw new Error(`Sibling not found: ${p}`);const u=w?new YA(S,F):new YA(F,S);n[y]=u,delete c[s],delete c[p]}}const i=t[1][1];if(!i)throw new Error("Internal consistency error: no root found");return i}function hr(g,A){const I=A%8,B=Math.floor(A/8),C=g[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 Sr(g){const A=[],I=g.length*8;let B=0,C=0;for(let e=0;e<I;e++){const t=hr(g,e);if(A.push(t),t?C++:B++,C>B){if(e++,e+7<I)throw new Error("Invalid descriptor: too many bytes");for(;e<I;e++)if(hr(g,e))throw new Error("Invalid descriptor: too many 1 bits");return A}}throw new Error("Invalid descriptor: not enough 1 bits")}function fi(g,A,I){if(A[I])return[g.root];{const B=fi(g.left,A,I+1),C=fi(g.right,A,I+B.length*2);return[...B,...C]}}function pi(g,A,I){return g[I.bitIndex++]?bA.fromRoot(A[I.leafIndex++]):new YA(pi(g,A,I),pi(g,A,I))}function Lw(g,A){return fi(g,Sr(A),0)}function mw(g,A){const I=Sr(A);if(I.length!==g.length*2-1)throw new Error("Invalid multiproof: invalid number of leaves");return pi(I,g,{bitIndex:0,leafIndex:0})}function Fi(g,A,I){if(!I.length||!I[0].startsWith(A))return[[],[]];if(A===I[0])return I.shift(),[[],[g.root]];{const[B,C]=Fi(g.left,A+"0",I),[e,t]=Fi(g.right,A+"1",I);return[[C.length].concat(B,e),C.concat(t)]}}function di(g,A){if(A.length){if(A.length===1)return bA.fromRoot(A[0]);{const I=g[0];return new YA(di(g.slice(1,I),A.slice(0,I)),di(g.slice(I),A.slice(I)))}}else throw new Error("Proof must contain gt 0 leaves")}function Hw(g,A){return Fi(g,"1",ui(A.map(I=>I.toString(2))))}function Jw(g,A){return di(g,A)}var TA;(function(g){g.single="single",g.treeOffset="treeOffset",g.multi="multi",g.compactMulti="compactMulti"})(TA||(TA={})),TA.single,TA.treeOffset,TA.multi,TA.compactMulti;function wr(g,A){switch(A.type){case TA.single:{const[I,B]=rr(g,A.gindex);return{type:TA.single,gindex:A.gindex,leaf:I,witnesses:B}}case TA.treeOffset:{const[I,B]=Hw(g,A.gindices);return{type:TA.treeOffset,offsets:I,leaves:B}}case TA.multi:{const[I,B,C]=Rw(g,A.gindices);return{type:TA.multi,leaves:I,witnesses:B,gindices:C}}case TA.compactMulti:{const I=Lw(g,A.descriptor);return{type:TA.compactMulti,leaves:I,descriptor:A.descriptor}}default:throw new Error("Invalid proof type")}}function Mw(g){switch(g.type){case TA.single:return Dw(g.gindex,g.leaf,g.witnesses);case TA.treeOffset:return Jw(g.offsets,g.leaves);case TA.multi:return Uw(g.leaves,g.witnesses,g.gindices);case TA.compactMulti:return mw(g.leaves,g.descriptor);default:throw new Error("Invalid proof type")}}function qw(g,A,I){if(I<0)throw new Error(`Expect count to be non-negative, got ${I}`);return{finalized:(I>0?Kw(A,I-1):[]).map(B=>He(g,B).root),count:I}}function Kw(g,A){if(A<0||g<0)throw new Error(`Expect index and depth to be non-negative, got ${A} and ${g}`);const I=Array.from({length:g+1},()=>0);let B=A+1;const C=[];for(;B>0;){const e=Math.floor(Math.log2(B)),t=2**e,i=g-e,E=FI(i,BigInt(I[i]));C.push(E);for(let c=0;c<=e;c++)I[i+c]+=Math.pow(2,c);B-=t}return C}const eB=Symbol("ssz_cached_permanent_root");function Gi(g,A){return Re.digest64(g,A)}function Yw(g,A){const I=Dr(bw(A)-1);if(g.length==0)return NI(I);let B=g.length;for(let C=0;C<I;C++){const e=B%2,t=B+e;for(let i=0;i<e;i++)g[B+i]=NI(C);for(let i=0;i<t;i+=2)g[i/2]=Gi(g[i],g[i+1]);B=t/2}return g[0]}function RC(g){const A=Math.ceil(g.length/32),I=new Array(A);for(let B=0;B<A;B++){const C=new Uint8Array(32);C.set(g.slice(B*32,(B+1)*32)),I[B]=C}return I}function UC(g,A){const I=mA.alloc(32);return I.writeUIntLE(A,0,6),Gi(g,I)}function Dr(g){return g===0?0:Math.floor(Math.log2(g))+1}function nI(g){return g===0?0:Math.ceil(Math.log2(g))}function bw(g){return g<=0?1:Math.pow(2,Dr(g-1))}function Gg(g,A){return new Function("superClass",`return class ${A} extends superClass {}`)(g)}function CB(g){return g.right.getUint(4,0)}function yr(g){return g.left}function tB(g,A){return new YA(g,bA.fromUint32(A))}function ur(g,A,I,B=0,C=null){const e=I!==null?bA.fromUint32(I):g.right,t=new YA(A,e);return C!==null&&vg(C,B).push(A,e,t),t}function LC(g,A,I,B,C){const e=g.byteLength;for(let t=0;t<A;t++)g.value_serializeToBytes(I,B+t*e,C[t]);return B+A*e}function fr(g,A,I,B,C){const e=g.byteLength,t=(B-I)/e;mC(t,C,!0);const i=new Array(t);for(let E=0;E<t;E++)i[E]=g.value_deserializeFromBytes(A,I+E*e,I+(E+1)*e);return i}function Ni(g,A,I,B,C,e,t=null){const i=g.byteLength*A,E=Math.ceil(i/32),c=t??ig(e,I,0,E);return me(B.dataView,C,i,c),C+i}function pr(g,A,I,B,C,e){const t=(C-B)/g.byteLength;mC(t,e,!0);const i=Le(A,I.dataView,B,C);return e.isList?tB(i,t):i}function Tw(g,A,I){if(!Array.isArray(A))throw Error("JSON is not an array");mC(A.length,I);const B=new Array(A.length);for(let C=0;C<A.length;C++)B[C]=g.fromJson(A[C]);return B}function vw(g,A,I){const B=I.isList?A.length:I.length,C=new Array(B);for(let e=0;e<B;e++)C[e]=g.toJson(A[e]);return C}function _w(g,A){const I=new Array(A.length);for(let B=0;B<A.length;B++)I[B]=g.clone(A[B]);return I}function Ow(g,A,I){if(A.length!==I.length)return!1;for(let B=0;B<A.length;B++)if(!g.equals(A[B],I[B]))return!1;return!0}function Zw(g,A){const I=new Array(A);for(let B=0;B<A;B++)I[B]=g.defaultValue();return I}function mC(g,A,I){if(I&&g%1!==0)throw Error("size not multiple of element fixedSize");if(A.isList){if(g>A.limit)throw new Error(`Invalid list length ${g} over limit ${A.limit}`)}else if(g!==A.length)throw new Error(`Incorrect vector length ${g} expected ${A.length}`)}const ki=new Array(256);class rI{uint8Array;bitLen;constructor(A,I){if(this.uint8Array=A,this.bitLen=I,A.length!==Math.ceil(I/8))throw Error("BitArray uint8Array length does not match bitLen")}static fromBitLen(A){return new rI(new Uint8Array(Math.ceil(A/8)),A)}static fromSingleBit(A,I){const B=rI.fromBitLen(A);return B.set(I,!0),B}static fromBoolArray(A){const I=rI.fromBitLen(A.length);for(let B=0;B<A.length;B++)A[B]===!0&&I.set(B,!0);return I}clone(){return new rI(Uint8Array.prototype.slice.call(this.uint8Array,0),this.bitLen)}get(A){const I=Math.floor(A/8),B=1<<A%8;return(this.uint8Array[I]&B)===B}set(A,I){if(A>=this.bitLen)throw Error(`BitArray set bitIndex ${A} beyond bitLen ${this.bitLen}`);const B=Math.floor(A/8),C=1<<A%8;let e=this.uint8Array[B];I?(e|=C,this.uint8Array[B]=e):(e&C)===C&&(e^=C,this.uint8Array[B]=e)}mergeOrWith(A){if(A.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]|A.uint8Array[I]}intersectValues(A){const I=[];if(A.length!==this.bitLen)throw Error(`Must not intersect values of length ${A.length} != bitLen ${this.bitLen}`);const B=Math.floor(this.bitLen/8),C=this.bitLen%8,e=this.uint8Array;for(let t=0;t<B;t++){const i=HC(e[t]);for(let E=0;E<8;E++)i[E]&&I.push(A[t*8+E])}if(C>0){const t=HC(e[B]);for(let i=0;i<C;i++)t[i]&&I.push(A[B*8+i])}return I}getTrueBitIndexes(){const A=[],I=this.uint8Array;for(let B=0,C=I.length;B<C;B++){const e=HC(I[B]);for(let t=0;t<8;t++)e[t]&&A.push(B*8+t)}return A}getSingleTrueBit(){let A=null;const I=this.uint8Array;for(let B=0,C=I.length;B<C;B++){if(I[B]===0)continue;const e=HC(I[B]);for(let t=0;t<8;t++)if(e[t]===!0){if(A!==null)return null;A=B*8+t}}return A===null?null:A}toBoolArray(){const A=new Array(this.bitLen);for(let I=0;I<this.bitLen;I++)A[I]=this.get(I);return A}}function HC(g){return ki[g]||(ki[g]=xw(g)),ki[g]}function xw(g){const A=g.toString(2),I=A.length,B=new Array(8);for(let C=0;C<8;C++)B[C]=C<I?A[I-C-1]==="1":!1;return B}const Ri=new Array(256);function Fr(g){let A="0x";for(const I of g)Ri[I]||(Ri[I]=I<16?"0"+I.toString(16):I.toString(16)),A+=Ri[I];return A}function dr(g){if(typeof g!="string")throw new Error(`hex argument type ${typeof g} must be of type string`);if(g.startsWith("0x")&&(g=g.slice(2)),g.length%2!==0)throw new Error(`hex string length ${g.length} must be multiple of 2`);const A=g.length/2,I=new Uint8Array(A);for(let B=0;B<A;B++){const C=parseInt(g.slice(B*2,(B+1)*2),16);I[B]=C}return I}function aI(g,A){if(g.length!==A.length)return!1;for(let I=0;I<g.length;I++)if(g[I]!==A[I])return!1;return!0}function Gr(g){return!g.isBasic}function JC(g,A,I="",B=0){if(B===0){const e=A.tree_fromProofNode(g);if(e.done)return e.node;g=e.node}const C=A.depth===B;if(g.isLeaf())if(C){const e=A.getIndexProperty(Nr(I));if(e===null)return g;const t=A.getPropertyType(e);return t.maxChunkCount===1&&Gr(t)?t.tree_fromProofNode(g).node:g}else return g;else if(C){const e=A.getIndexProperty(Nr(I));if(e===null)return g;const t=A.getPropertyType(e);if(!Gr(t))throw Error("BranchNode does not map to CompositeType");const i=t.tree_fromProofNode(g);return i.done?i.node:JC(i.node,t)}else{const e=JC(g.left,A,I+"0",B+1),t=JC(g.right,A,I+"1",B+1);return e===g.left&&t===g.right?g:new YA(e,t)}}function Nr(g){return g===""?0:parseInt(g,2)}class kr{value_toTree(A){const I=new Uint8Array(this.value_serializedSize(A)),B=new DataView(I.buffer,I.byteOffset,I.byteLength);return this.value_serializeToBytes({uint8Array:I,dataView:B},0,A),this.tree_deserializeFromBytes({uint8Array:I,dataView:B},0,I.length)}tree_toValue(A){const I=new Uint8Array(this.tree_serializedSize(A)),B=new DataView(I.buffer,I.byteOffset,I.byteLength);return this.tree_serializeToBytes({uint8Array:I,dataView:B},0,A),this.value_deserializeFromBytes({uint8Array:I,dataView:B},0,I.length)}serialize(A){const I=new Uint8Array(this.value_serializedSize(A)),B=new DataView(I.buffer,I.byteOffset,I.byteLength);return this.value_serializeToBytes({uint8Array:I,dataView:B},0,A),I}deserialize(A){const I=new DataView(A.buffer,A.byteOffset,A.byteLength);return this.value_deserializeFromBytes({uint8Array:A,dataView:I},0,A.length)}}const Ui=BigInt(3);class MC extends kr{cachePermanentRootStruct;isBasic=!1;constructor(A){super(),this.cachePermanentRootStruct=A}defaultView(){return this.toView(this.defaultValue())}defaultViewDU(){return this.toViewDU(this.defaultValue())}deserializeToView(A){const I=new DataView(A.buffer,A.byteOffset,A.byteLength),B=this.tree_deserializeFromBytes({uint8Array:A,dataView:I},0,A.length);return this.getView(new dg(B))}deserializeToViewDU(A){const I=new DataView(A.buffer,A.byteOffset,A.byteLength),B=this.tree_deserializeFromBytes({uint8Array:A,dataView:I},0,A.length);return this.getViewDU(B)}toView(A){const I=this.value_toTree(A);return this.getView(new dg(I))}toViewDU(A){const I=this.value_toTree(A);return this.getViewDU(I)}toValueFromView(A){const I=this.commitView(A);return this.tree_toValue(I)}toValueFromViewDU(A){const I=this.commitViewDU(A);return this.tree_toValue(I)}toViewFromViewDU(A){const I=this.commitViewDU(A);return this.getView(new dg(I))}toViewDUFromView(A){const I=this.commitView(A);return this.getViewDU(I)}hashTreeRoot(A){if(this.cachePermanentRootStruct){const B=A[eB];if(B)return B}const I=Yw(this.getRoots(A),this.maxChunkCount);return this.cachePermanentRootStruct&&(A[eB]=I),I}getCachedPermanentRoot(A){return A[eB]}createFromProof(A,I){const B=dg.createFromProof(A).rootNode,C=JC(B,this);if(I!==void 0&&!aI(C.root,I))throw new Error("Proof does not match trusted root");return this.getView(new dg(C))}tree_createProof(A,I){const B=this.tree_createProofGindexes(A,I);return wr(A,{type:TA.treeOffset,gindices:B})}tree_createProofGindexes(A,I){const B=[];for(const C of I){const{type:e,gindex:t}=this.getPathInfo(C);if(!sI(e))B.push(t);else{const i=e.tree_getLeafGindices(t,e.fixedSize===null?He(A,t):void 0);for(const E of i)B.push(E)}}return B}getPathInfo(A){const I=[];let B=this;for(const C of A){if(B.isBasic)throw new Error("Invalid path: cannot navigate beyond a basic type");const e=B.getPropertyGindex(C);e!==null&&(I.push(e),B=B.getPropertyType(C))}return{type:B,gindex:oI(I)}}tree_fromProofNode(A){return{node:A,done:!1}}}function sI(g){return!g.isBasic}class YB{serialize(){const A=new Uint8Array(this.type.tree_serializedSize(this.node)),I=new DataView(A.buffer,A.byteOffset,A.byteLength);return this.type.tree_serializeToBytes({uint8Array:A,dataView:I},0,this.node),A}hashTreeRoot(){return this.node.root}createProof(A){return this.type.tree_createProof(this.node,A)}toValue(){return this.type.tree_toValue(this.node)}clone(){return this.type.getView(new dg(this.node))}}class jw extends YB{type;tree;bitArray;constructor(A,I){super(),this.type=A,this.tree=I,this.bitArray=A.tree_toValue(I.rootNode)}get node(){return this.tree.rootNode}get uint8Array(){return this.bitArray.uint8Array}get bitLen(){return this.bitArray.bitLen}get(A){return this.bitArray.get(A)}set(A,I){this.bitArray.set(A,I),this.tree.rootNode=this.type.value_toTree(this.bitArray)}mergeOrWith(A){this.bitArray.mergeOrWith(A)}intersectValues(A){return this.bitArray.intersectValues(A)}getTrueBitIndexes(){return this.bitArray.getTrueBitIndexes()}getSingleTrueBit(){return this.bitArray.getSingleTrueBit()}toBoolArray(){return this.bitArray.toBoolArray()}}const Rr=Symbol("ssz_cached_tree_root");class Me extends YB{serializeToBytes(A,I){return this.type.tree_serializeToBytes(A,I,this.node)}hashTreeRoot(){return this.commit(),super.hashTreeRoot()}batchHashTreeRoot(A=new lw){A.reset(),this.commit(0,A.byLevel),A.clean();const I=this.node[Rr];if(I)return I;if(sw(A.byLevel),this.node.h0===null)throw Error("Root is not computed by batch");const B=this.node.root;return this.node[Rr]=B,B}serialize(){this.commit();const A=new Uint8Array(this.type.tree_serializedSize(this.node)),I=new DataView(A.buffer,A.byteOffset,A.byteLength);return this.serializeToBytes({uint8Array:A,dataView:I},0),A}clone(A){if(A)return this.type.getViewDU(this.node);{const I=this.cache;return this.clearCache(),this.type.getViewDU(this.node,I)}}}class Pw extends Me{type;_rootNode;_bitArray=null;constructor(A,I){super(),this.type=A,this._rootNode=I}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(A=0,I=null){this._bitArray!==null&&(this._rootNode=this.type.value_toTree(this._bitArray)),I!==null&&this._rootNode.h0===null&&ag(this._rootNode,A,I)}get(A){return this.bitArray.get(A)}set(A,I){this.bitArray.set(A,I)}mergeOrWith(A){this.bitArray.mergeOrWith(A)}intersectValues(A){return this.bitArray.intersectValues(A)}getTrueBitIndexes(){return this.bitArray.getTrueBitIndexes()}getSingleTrueBit(){return this.bitArray.getSingleTrueBit()}toBoolArray(){return this.bitArray.toBoolArray()}clearCache(){this._bitArray=null}}class Ur extends MC{isViewMutable=!0;getView(A){return new jw(this,A)}getViewDU(A){return new Pw(this,A)}commitView(A){return A.node}commitViewDU(A,I=0,B=null){return A.commit(I,B),A.node}cacheOfViewDU(A){return A.cache}getRoots(A){return RC(A.uint8Array)}getPropertyGindex(){return null}getPropertyType(){throw Error("Must only request BitArray complete data")}getIndexProperty(){throw Error("Must only request BitArray complete data")}tree_fromProofNode(A){return{node:A,done:!0}}tree_getLeafGindices(A,I){const B=this.tree_getByteLen(I),C=Math.ceil(B/32),e=oI([A,FI(this.depth,BigInt(0))]),t=new Array(C);for(let i=0,E=e;i<C;i++,E++)t[i]=E;return this.isList&&t.push(oI([A,Ui])),t}fromJson(A){const I=dr(A),B=new DataView(I.buffer,I.byteOffset,I.byteLength);return this.value_deserializeFromBytes({uint8Array:I,dataView:B},0,I.length)}toJson(A){return Fr(this.serialize(A))}clone(A){return A.clone()}equals(A,I){return A.bitLen===I.bitLen&&aI(A.uint8Array,I.uint8Array)}}class qC extends Ur{limitBits;typeName;depth;chunkDepth;fixedSize=null;minSize=1;maxSize;maxChunkCount;isList=!0;constructor(A,I){if(super(),this.limitBits=A,A===0)throw Error("List limit must be > 0");this.typeName=I?.typeName??`BitList[${A}]`,this.maxChunkCount=Math.ceil(this.limitBits/8/32),this.chunkDepth=nI(this.maxChunkCount),this.depth=1+this.chunkDepth,this.maxSize=Math.ceil(A/8)+1}static named(A,I){return new(Gg(qC,I.typeName))(A,I)}defaultValue(){return rI.fromBitLen(0)}value_serializedSize(A){return Lr(A.bitLen)}value_serializeToBytes(A,I,B){return A.uint8Array.set(B.uint8Array,I),mr(A.uint8Array,I,B.bitLen)}value_deserializeFromBytes(A,I,B){const{uint8Array:C,bitLen:e}=this.deserializeUint8ArrayBitListFromBytes(A.uint8Array,I,B);return new rI(C,e)}tree_serializedSize(A){return Lr(CB(A))}tree_serializeToBytes(A,I,B){const C=yr(B),e=CB(B),t=Math.ceil(e/8),i=Math.ceil(t/32),E=ig(C,this.chunkDepth,0,i);return me(A.dataView,I,t,E),mr(A.uint8Array,I,e)}tree_deserializeFromBytes(A,I,B){const{uint8Array:C,bitLen:e}=this.deserializeUint8ArrayBitListFromBytes(A.uint8Array,I,B),t=new DataView(C.buffer,C.byteOffset,C.byteLength),i=Le(this.chunkDepth,t,0,C.length);return tB(i,e)}tree_getByteLen(A){if(!A)throw new Error("BitListType requires a node to get leaves");return Math.ceil(CB(A)/8)}hashTreeRoot(A){return UC(super.hashTreeRoot(A),A.bitLen)}deserializeUint8ArrayBitListFromBytes(A,I,B){const{uint8Array:C,bitLen:e}=zw(A,I,B);if(e>this.limitBits)throw Error(`bitLen over limit ${e} > ${this.limitBits}`);return{uint8Array:C,bitLen:e}}}function zw(g,A,I){if(I>g.length)throw Error(`BitList attempting to read byte ${I} of data length ${g.length}`);const B=g[I-1],C=I-A;if(B===0)throw new Error("Invalid deserialized bitlist, padding bit required");if(B===1){const c=Uint8Array.prototype.slice.call(g,A,I-1),n=(C-1)*8;return{uint8Array:c,bitLen:n}}const e=Uint8Array.prototype.slice.call(g,A,I),t=B.toString(2).length-1,i=(C-1)*8+t,E=255>>8-t;return e[C-1]&=E,{uint8Array:e,bitLen:i}}function Lr(g){const A=Math.ceil(g/8);return g%8===0?A+1:A}function mr(g,A,I){const B=Math.ceil(I/8),C=A+B;return I%8===0?(g[C]=1,C+1):(g[C-1]|=1<<I%8,C)}class RI extends Ur{lengthBits;typeName;chunkCount;depth;fixedSize;minSize;maxSize;maxChunkCount;isList=!1;zeroBitsMask;constructor(A,I){if(super(),this.lengthBits=A,A===0)throw Error("Vector length must be > 0");this.typeName=I?.typeName??`BitVector[${A}]`,this.chunkCount=Math.ceil(this.lengthBits/8/32),this.maxChunkCount=this.chunkCount,this.depth=nI(this.chunkCount),this.fixedSize=Math.ceil(this.lengthBits/8),this.minSize=this.fixedSize,this.maxSize=this.fixedSize,this.zeroBitsMask=A%8===0?0:255&255<<A%8}static named(A,I){return new(Gg(RI,I.typeName))(A,I)}defaultValue(){return rI.fromBitLen(this.lengthBits)}value_serializedSize(){return this.fixedSize}value_serializeToBytes(A,I,B){return A.uint8Array.set(B.uint8Array,I),I+this.fixedSize}value_deserializeFromBytes(A,I,B){return this.assertValidLength(A.uint8Array,I,B),new rI(Uint8Array.prototype.slice.call(A.uint8Array,I,B),this.lengthBits)}tree_serializedSize(){return this.fixedSize}tree_serializeToBytes(A,I,B){const C=ig(B,this.depth,0,this.chunkCount);return me(A.dataView,I,this.fixedSize,C),I+this.fixedSize}tree_deserializeFromBytes(A,I,B){return this.assertValidLength(A.uint8Array,I,B),Le(this.depth,A.dataView,I,B)}tree_getByteLen(){return this.fixedSize}assertValidLength(A,I,B){const C=B-I;if(B-I!==this.fixedSize)throw Error(`Invalid BitVector size ${C} != ${this.fixedSize}`);if(this.zeroBitsMask>0&&(A[B-1]&this.zeroBitsMask)>0)throw Error("BitVector: nonzero bits past length")}}class KC extends kr{isBasic=!0;depth=0;maxChunkCount=1;value_serializedSize(){return this.byteLength}tree_serializedSize(){return this.byteLength}assertValidSize(A){if(A!==this.byteLength)throw Error(`BasicType invalid size ${A} expected ${this.byteLength}`)}hashTreeRoot(A){const I=new Uint8Array(32),B=new DataView(I.buffer,I.byteOffset,I.byteLength);return this.value_serializeToBytes({uint8Array:I,dataView:B},0,A),I}clone(A){return A}equals(A,I){return A===I}}function Li(g){return g.isBasic}class mi extends KC{typeName;byteLength=1;itemsPerChunk=32;fixedSize=1;minSize=1;maxSize=1;constructor(A){super(),this.typeName=A?.typeName??"boolean"}static named(A){return new(Gg(mi,A.typeName))(A)}defaultValue(){return!1}value_serializeToBytes(A,I,B){return A.uint8Array[I]=B?1:0,I+1}value_deserializeFromBytes(A,I,B){switch(this.assertValidSize(B-I),A.uint8Array[I]){case 1:return!0;case 0:return!1;default:throw new Error(`Boolean: invalid value: ${A.uint8Array[I]}`)}}tree_serializeToBytes(A,I,B){return A.uint8Array[I]=B.getUint(4,0),I+1}tree_deserializeFromBytes(A,I,B){this.assertValidSize(B-I);const C=A.uint8Array[I];if(C>1)throw Error(`Boolean: invalid value ${C}`);return bA.fromUint32(C)}tree_getFromNode(A){return A.getUint(4,0)===1}tree_setToNode(A,I){A.setUint(4,0,I?1:0)}tree_getFromPackedNode(A,I){const B=I%this.itemsPerChunk;return A.getUint(1,B)!==0}tree_setToPackedNode(A,I,B){const C=I%this.itemsPerChunk;A.setUint(1,C,B?1:0)}fromJson(A){if(typeof A!="boolean")throw Error(`JSON invalid type ${typeof A} expected boolean`);return A}toJson(A){return A}}class Hr extends MC{isViewMutable=!1;defaultValue(){return new Uint8Array(this.minSize)}getView(A){return this.getViewDU(A.rootNode)}getViewDU(A){return this.tree_toValue(A)}commitView(A){return this.commitViewDU(A)}commitViewDU(A,I=0,B=null){const C=new Uint8Array(this.value_serializedSize(A)),e=new DataView(C.buffer,C.byteOffset,C.byteLength);this.value_serializeToBytes({uint8Array:C,dataView:e},0,A);const t=this.tree_deserializeFromBytes({uint8Array:C,dataView:e},0,C.length);return B!==null&&t.h0===null&&ag(t,I,B),t}cacheOfViewDU(){}toView(A){return A}toViewDU(A){return A}value_serializeToBytes(A,I,B){return A.uint8Array.set(B,I),I+B.length}value_deserializeFromBytes(A,I,B){return this.assertValidSize(B-I),Uint8Array.prototype.slice.call(A.uint8Array,I,B)}getRoots(A){return RC(A)}getPropertyGindex(){return null}getPropertyType(){throw Error("Must only request ByteArray complete data")}getIndexProperty(){throw Error("Must only request ByteArray complete data")}tree_fromProofNode(A){return{node:A,done:!0}}tree_getLeafGindices(A,I){const B=this.tree_getByteLen(I),C=Math.ceil(B/32),e=oI([A,FI(this.depth,BigInt(0))]),t=new Array(C);for(let i=0,E=e;i<C;i++,E++)t[i]=E;return this.isList&&t.push(oI([A,Ui])),t}fromJson(A){const I=dr(A);return this.assertValidSize(I.length),I}toJson(A){return Fr(A)}clone(A){return A}equals(A,I){return aI(A,I)}}class qe extends Hr{limitBytes;typeName;depth;chunkDepth;fixedSize=null;minSize;maxSize;maxChunkCount;isList=!0;constructor(A,I){if(super(),this.limitBytes=A,A===0)throw Error("List limit must be > 0");this.typeName=I?.typeName??`ByteList[${A}]`,this.maxChunkCount=Math.ceil(this.limitBytes/32),this.chunkDepth=nI(this.maxChunkCount),this.depth=1+this.chunkDepth,this.minSize=0,this.maxSize=this.limitBytes}static named(A,I){return new(Gg(qe,I.typeName))(A,I)}value_serializedSize(A){return A.length}tree_serializedSize(A){return CB(A)}tree_serializeToBytes(A,I,B){const C=yr(B),e=CB(B),t=Math.ceil(e/32),i=ig(C,this.chunkDepth,0,t);return me(A.dataView,I,e,i),I+e}tree_deserializeFromBytes(A,I,B){this.assertValidSize(B-I);const C=Le(this.chunkDepth,A.dataView,I,B);return tB(C,B-I)}tree_getByteLen(A){if(!A)throw new Error("ByteListType requires a node to get leaves");return CB(A)}hashTreeRoot(A){return UC(super.hashTreeRoot(A),A.length)}assertValidSize(A){if(A>this.limitBytes)throw Error(`ByteList invalid size ${A} limit ${this.limitBytes}`)}}class Jg extends Hr{lengthBytes;typeName;depth;chunkDepth;fixedSize;minSize;maxSize;maxChunkCount;isList=!1;constructor(A,I){if(super(),this.lengthBytes=A,A===0)throw Error("Vector length must be > 0");this.typeName=I?.typeName??`ByteVector[${A}]`,this.maxChunkCount=Math.ceil(this.lengthBytes/32),this.chunkDepth=nI(this.maxChunkCount),this.depth=this.chunkDepth,this.fixedSize=this.lengthBytes,this.minSize=this.fixedSize,this.maxSize=this.fixedSize}static named(A,I){return new(Gg(Jg,I.typeName))(A,I)}value_serializedSize(){return this.fixedSize}tree_serializedSize(){return this.fixedSize}tree_serializeToBytes(A,I,B){const C=ig(B,this.chunkDepth,0,this.maxChunkCount);return me(A.dataView,I,this.fixedSize,C),I+this.fixedSize}tree_deserializeFromBytes(A,I,B){return this.assertValidSize(B-I),Le(this.chunkDepth,A.dataView,I,B)}tree_getByteLen(){return this.lengthBytes}assertValidSize(A){if(A!==this.lengthBytes)throw Error(`ByteVector invalid size ${A} expected ${this.lengthBytes}`)}}let Ww=class extends YB{type;tree;constructor(g,A){super(),this.type=g,this.tree=A}get node(){return this.tree.rootNode}};function Vw(g){class A extends Ww{}for(let I=0;I<g.fieldsEntries.length;I++){const{fieldName:B,fieldType:C}=g.fieldsEntries[I];if(Li(C))Object.defineProperty(A.prototype,B,{configurable:!1,enumerable:!0,get:function(){const e=Hg(this.node,this.type.depth,I);return C.tree_getFromNode(e)},set:function(e){const t=Hg(this.node,this.type.depth,I).clone();C.tree_setToNode(t,e),this.tree.setNodeAtDepth(this.type.depth,I,t)}});else if(sI(C))Object.defineProperty(A.prototype,B,{configurable:!1,enumerable:!0,get:function(){const e=ni(this.type.depth,I);return C.getView(this.tree.getSubtree(e))},set:function(e){const t=C.commitView(e);this.tree.setNodeAtDepth(this.type.depth,I,t)}});else throw Error(`Unknown fieldType ${C.typeName} for fieldName ${String(B)}`)}return Object.defineProperty(A,"name",{value:g.typeName,writable:!1}),A}class Xw extends Me{type;_rootNode;nodes=[];caches;nodesChanged=new Set;viewsChanged=new Map;nodesPopulated;constructor(A,I,B){super(),this.type=A,this._rootNode=I,B?(this.nodes=B.nodes,this.caches=B.caches,this.nodesPopulated=B.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(A=0,I=null){const B=this._rootNode.h0!==null;if(this.nodesChanged.size===0&&this.viewsChanged.size===0){!B&&I!==null&&ag(this._rootNode,A,I);return}const C=A+this.type.depth,e=I!=null&&B?I:null,t=[];for(const[n,s]of this.viewsChanged){const S=this.type.fieldsEntries[n].fieldType,w=S.commitViewDU(s,C,e);this.nodes[n]=w,t.push({index:n,node:w});const y=S.cacheOfViewDU(s);y&&(this.caches[n]=y)}for(const n of this.nodesChanged)t.push({index:n,node:this.nodes[n]});const i=t.sort((n,s)=>n.index-s.index),{indexes:E,nodes:c}=this.parseNodesChanged(i);this._rootNode=Je(this._rootNode,this.type.depth,E,c,A,B?I:null),!B&&I!==null&&ag(this._rootNode,A,I),this.nodesChanged.clear(),this.viewsChanged.clear()}parseNodesChanged(A){const I=A.map(C=>C.index),B=A.map(C=>C.node);return{indexes:I,nodes:B}}clearCache(){this.nodes=[],this.caches=[],this.nodesPopulated=!1,this.nodesChanged.clear(),this.viewsChanged.clear()}}class $w extends Xw{type;_rootNode;constructor(A,I,B){super(A,I,B),this.type=A,this._rootNode=I}serializeToBytes(A,I){this.commit();let B=I,C=I+this.type.fixedEnd;for(let e=0;e<this.type.fieldsEntries.length;e++){const{fieldType:t}=this.type.fieldsEntries[e];let i=this.nodes[e];if(i===void 0&&(i=Hg(this._rootNode,this.type.depth,e),this.nodes[e]=i),t.fixedSize===null){if(A.dataView.setUint32(B,C-I,!0),B+=4,sI(t)){const E=t.getViewDU(i,this.caches[e]);E.serializeToBytes!==void 0?C=E.serializeToBytes(A,C):C=t.tree_serializeToBytes(A,C,i)}}else B=t.tree_serializeToBytes(A,B,i)}return C}}function AD(g){class A extends $w{}for(let I=0;I<g.fieldsEntries.length;I++){const{fieldName:B,fieldType:C}=g.fieldsEntries[I];if(Li(C))Object.defineProperty(A.prototype,B,{configurable:!1,enumerable:!0,get:function(){let e=this.nodes[I];return e===void 0&&(e=Hg(this._rootNode,this.type.depth,I),this.nodes[I]=e),C.tree_getFromNode(e)},set:function(e){let t;this.nodesChanged.has(I)?t=this.nodes[I]:(t=(this.nodes[I]??Hg(this._rootNode,this.type.depth,I)).clone(),this.nodes[I]=t,this.nodesChanged.add(I)),C.tree_setToNode(t,e)}});else if(sI(C))Object.defineProperty(A.prototype,B,{configurable:!1,enumerable:!0,get:function(){const e=this.viewsChanged.get(I);if(e)return e;let t=this.nodes[I];t===void 0&&(t=Hg(this._rootNode,this.type.depth,I),this.nodes[I]=t);const i=C.getViewDU(t,this.caches[I]);return C.isViewMutable&&this.viewsChanged.set(I,i),i},set:function(e){this.viewsChanged.set(I,e)}});else throw Error(`Unknown fieldType ${C.typeName} for fieldName ${String(B)}`)}return Object.defineProperty(A,"name",{value:g.typeName,writable:!1}),A}const Jr={snake:g=>g.replace(/[^0-z]/g,"").replace(/[a-z][A-Z]|[0-9][A-Z]/g,A=>A[0]+"_"+A[1].toLowerCase()),constant:g=>g.replace(/[^0-z]/g,"").replace(/[a-z][A-Z]|[0-9][A-Z]/g,A=>A[0]+"_"+A[1]).toUpperCase(),pascal:g=>(g[0].toUpperCase()+g.slice(1)).replace(/[^0-z]/g,""),camel:g=>g[0].toLowerCase()+g.slice(1),header:g=>g[0].toUpperCase()+g.slice(1).replace(/[^0-z]/g,"").replace(/[a-z][A-Z]|[0-9][A-Z]/g,A=>A[0]+"-"+A[1]),eth2:g=>Jr.snake(g).replace(/(\d)$/,"_$1")};class Y extends MC{fields;opts;typeName;depth;maxChunkCount;fixedSize;minSize;maxSize;isList=!1;isViewMutable=!0;fieldsEntries;fixedEnd;fieldsGindex;jsonKeyToFieldName;isFixedLen;fieldRangesFixedLen;variableOffsetsPosition;TreeView;TreeViewDU;constructor(A,I){super(I?.cachePermanentRootStruct),this.fields=A,this.opts=I,this.typeName=I?.typeName??Mr(A),this.maxChunkCount=Object.keys(A).length,this.depth=nI(this.maxChunkCount),this.fieldsEntries=[];for(const n of Object.keys(A))this.fieldsEntries.push({fieldName:n,fieldType:this.fields[n],jsonKey:eD(n,I?.casingMap,I?.jsonCase),gindex:FI(this.depth,BigInt(this.fieldsEntries.length))});if(this.fieldsEntries.length===0)throw Error("Container must have > 0 fields");this.fieldsGindex={};for(let n=0;n<this.fieldsEntries.length;n++)this.fieldsGindex[this.fieldsEntries[n].fieldName]=FI(this.depth,BigInt(n));this.jsonKeyToFieldName={};for(const{fieldName:n,jsonKey:s}of this.fieldsEntries)this.jsonKeyToFieldName[s]=n;const{minLen:B,maxLen:C,fixedSize:e}=BD(A);this.minSize=B,this.maxSize=C,this.fixedSize=e;const{isFixedLen:t,fieldRangesFixedLen:i,variableOffsetsPosition:E,fixedEnd:c}=ID(A);this.isFixedLen=t,this.fieldRangesFixedLen=i,this.variableOffsetsPosition=E,this.fixedEnd=c,this.TreeView=I?.getContainerTreeViewClass?.(this)??Vw(this),this.TreeViewDU=I?.getContainerTreeViewDUClass?.(this)??AD(this)}static named(A,I){return new(Gg(Y,I.typeName))(A,I)}defaultValue(){const A={};for(const{fieldName:I,fieldType:B}of this.fieldsEntries)A[I]=B.defaultValue();return A}getView(A){return new this.TreeView(this,A)}getViewDU(A,I){return new this.TreeViewDU(this,A,I)}cacheOfViewDU(A){return A.cache}commitView(A){return A.node}commitViewDU(A,I=0,B=null){return A.commit(I,B),A.node}value_serializedSize(A){let I=0;for(let B=0;B<this.fieldsEntries.length;B++){const{fieldName:C,fieldType:e}=this.fieldsEntries[B];I+=e.fixedSize===null?4+e.value_serializedSize(A[C]):e.fixedSize}return I}value_serializeToBytes(A,I,B){let C=I,e=I+this.fixedEnd;for(let t=0;t<this.fieldsEntries.length;t++){const{fieldName:i,fieldType:E}=this.fieldsEntries[t];E.fixedSize===null?(A.dataView.setUint32(C,e-I,!0),C+=4,e=E.value_serializeToBytes(A,e,B[i])):C=E.value_serializeToBytes(A,C,B[i])}return e}value_deserializeFromBytes(A,I,B){const C=this.getFieldRanges(A.dataView,I,B),e={};for(let t=0;t<this.fieldsEntries.length;t++){const{fieldName:i,fieldType:E}=this.fieldsEntries[t],c=C[t];e[i]=E.value_deserializeFromBytes(A,I+c.start,I+c.end)}return e}tree_serializedSize(A){let I=0;const B=ig(A,this.depth,0,this.fieldsEntries.length);for(let C=0;C<this.fieldsEntries.length;C++){const{fieldType:e}=this.fieldsEntries[C],t=B[C];I+=e.fixedSize===null?4+e.tree_serializedSize(t):e.fixedSize}return I}tree_serializeToBytes(A,I,B){let C=I,e=I+this.fixedEnd;const t=ig(B,this.depth,0,this.fieldsEntries.length);for(let i=0;i<this.fieldsEntries.length;i++){const{fieldType:E}=this.fieldsEntries[i],c=t[i];E.fixedSize===null?(A.dataView.setUint32(C,e-I,!0),C+=4,e=E.tree_serializeToBytes(A,e,c)):C=E.tree_serializeToBytes(A,C,c)}return e}tree_deserializeFromBytes(A,I,B){const C=this.getFieldRanges(A.dataView,I,B),e=new Array(this.fieldsEntries.length);for(let t=0;t<this.fieldsEntries.length;t++){const{fieldType:i}=this.fieldsEntries[t],E=C[t];e[t]=i.tree_deserializeFromBytes(A,I+E.start,I+E.end)}return Ue(e,this.depth)}getRoots(A){const I=new Array(this.fieldsEntries.length);for(let B=0;B<this.fieldsEntries.length;B++){const{fieldName:C,fieldType:e}=this.fieldsEntries[B];I[B]=e.hashTreeRoot(A[C])}return I}getPropertyGindex(A){const I=this.fieldsGindex[A]??this.fieldsGindex[this.jsonKeyToFieldName[A]];if(I===void 0)throw Error(`Unknown container property ${A}`);return I}getPropertyType(A){const I=this.fields[A]??this.fields[this.jsonKeyToFieldName[A]];if(I===void 0)throw Error(`Unknown container property ${A}`);return I}getIndexProperty(A){return A>=this.fieldsEntries.length?null:this.fieldsEntries[A].fieldName}tree_getLeafGindices(A,I){const B=[];for(let C=0;C<this.fieldsEntries.length;C++){const{fieldName:e,fieldType:t}=this.fieldsEntries[C],i=this.fieldsGindex[e],E=oI([A,i]);if(t.isBasic)B.push(E);else{const c=t;if(t.fixedSize===null){if(!I)throw new Error("variable type requires tree argument to get leaves");B.push(...c.tree_getLeafGindices(E,He(I,i)))}else B.push(...c.tree_getLeafGindices(E))}}return B}fromJson(A){if(typeof A!="object")throw Error("JSON must be of type object");if(A===null)throw Error("JSON must not be null");const I={};for(let B=0;B<this.fieldsEntries.length;B++){const{fieldName:C,fieldType:e,jsonKey:t}=this.fieldsEntries[B],i=A[t];if(i===void 0)throw Error(`JSON expected key ${t} is undefined`);I[C]=e.fromJson(i)}return I}toJson(A){const I={};for(let B=0;B<this.fieldsEntries.length;B++){const{fieldName:C,fieldType:e,jsonKey:t}=this.fieldsEntries[B];I[t]=e.toJson(A[C])}return I}clone(A){const I={};for(let B=0;B<this.fieldsEntries.length;B++){const{fieldName:C,fieldType:e}=this.fieldsEntries[B];I[C]=e.clone(A[C])}return I}equals(A,I){for(let B=0;B<this.fieldsEntries.length;B++){const{fieldName:C,fieldType:e}=this.fieldsEntries[B];if(!e.equals(A[C],I[C]))return!1}return!0}getFieldRanges(A,I,B){if(this.variableOffsetsPosition.length===0){const E=B-I;if(E!==this.fixedEnd)throw Error(`${this.typeName} size ${E} not equal fixed size ${this.fixedEnd}`);return this.fieldRangesFixedLen}const C=gD(A,I,B,this.fixedEnd,this.variableOffsetsPosition);C.push(B-I);let e=0,t=0;const i=new Array(this.isFixedLen.length);for(let E=0;E<this.isFixedLen.length;E++)this.isFixedLen[E]?i[E]=this.fieldRangesFixedLen[t++]:(i[E]={start:C[e],end:C[e+1]},e++);return i}}function gD(g,A,I,B,C){const e=I-A,t=new Array(C.length);for(let i=0;i<C.length;i++){const E=g.getUint32(A+C[i],!0);if(E>e)throw new Error(`Offset out of bounds ${E} > ${e}`);if(i===0){if(E!==B)throw new Error(`First offset must equal to fixedEnd ${E} != ${B}`)}else if(E<t[i-1])throw new Error(`Offsets must be increasing ${E} < ${t[i-1]}`);t[i]=E}return t}function ID(g){const A=[],I=[],B=[];let C=0;for(const e of Object.values(g))A.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:A,fieldRangesFixedLen:I,variableOffsetsPosition:B,fixedEnd:C}}function BD(g){let A=0,I=0,B=0;for(const C of Object.values(g))A+=C.minSize,I+=C.maxSize,C.fixedSize===null?(A+=4,I+=4,B=null):B!==null&&(B+=C.fixedSize);return{minLen:A,maxLen:I,fixedSize:B}}function eD(g,A,I){if(A){const B=A[g];if(B===void 0)throw Error(`casingMap[${String(g)}] not defined`);return B}else return I?Jr[I](g):g}function Mr(g,A="Container"){const I=Object.keys(g).map(B=>`${String(B)}: ${g[B].typeName}`).join(", ");return`${A}({${I}})`}class Ke extends wi{valueToNode;value;constructor(A,I){super(null,0,0,0,0,0,0,0),this.valueToNode=A,this.value=I}get rootHashObject(){if(this.h0===null){const A=this.valueToNode(this.value);super.applyHash(A.rootHashObject)}return this}get root(){return ke(this.rootHashObject)}get left(){return this.valueToNode(this.value).left}get right(){return this.valueToNode(this.value).right}isLeaf(){return!1}}class CD extends YB{type;tree;constructor(A,I){super(),this.type=A,this.tree=I}get node(){return this.tree.rootNode}}function tD(g){class A extends CD{}for(let I=0;I<g.fieldsEntries.length;I++){const{fieldName:B,fieldType:C}=g.fieldsEntries[I];if(C.isBasic)Object.defineProperty(A.prototype,B,{configurable:!1,enumerable:!0,get:function(){return this.tree.rootNode.value[B]},set:function(e){const t=this.tree.rootNode,i=this.type.clone(t.value);i[B]=e,this.tree.rootNode=new Ke(t.valueToNode,i)}});else if(sI(C))Object.defineProperty(A.prototype,B,{configurable:!1,enumerable:!0,get:function(){const{value:e}=this.tree.rootNode;return C.toView(e[B])},set:function(e){const t=this.tree.rootNode,i=this.type.clone(t.value);i[B]=C.toValueFromView(e),this.tree.rootNode=new Ke(t.valueToNode,i)}});else throw Error(`Unknown fieldType ${C.typeName} for fieldName ${String(B)}`)}return Object.defineProperty(A,"name",{value:g.typeName,writable:!1}),A}class iD extends Me{type;valueChanged=null;_rootNode;constructor(A,I){super(),this.type=A,this._rootNode=I}get node(){return this._rootNode}get cache(){}get value(){return this.valueChanged??this._rootNode.value}commit(A,I=null){if(this.valueChanged!==null){const B=this.valueChanged;this.valueChanged=null,this._rootNode=this.type.value_toTree(B)}this._rootNode.h0===null&&I!==null&&this._rootNode.rootHashObject}clearCache(){this.valueChanged=null}}function QD(g){class A extends iD{}for(let I=0;I<g.fieldsEntries.length;I++){const{fieldName:B,fieldType:C}=g.fieldsEntries[I];if(C.isBasic)Object.defineProperty(A.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(sI(C))Object.defineProperty(A.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 t=C.toValueFromViewDU(e);this.valueChanged[B]=t}});else throw Error(`Unknown fieldType ${C.typeName} for fieldName ${String(B)}`)}return Object.defineProperty(A,"name",{value:g.typeName,writable:!1}),A}class ED extends Y{fields;constructor(A,I){super(A,{typeName:I?.typeName??Mr(A,"ContainerNodeStruct"),...I,getContainerTreeViewClass:tD,getContainerTreeViewDUClass:QD}),this.fields=A;for(const{fieldName:B,fieldType:C}of this.fieldsEntries)if(sI(C)&&C.isViewMutable)throw Error(`ContainerNodeStructType field '${String(B)}' ${C.typeName} view is mutable`)}static named(A,I){return new(Gg(Y,I.typeName))(A,I)}tree_serializedSize(A){return this.value_serializedSize(A.value)}tree_serializeToBytes(A,I,B){const{value:C}=B;return this.value_serializeToBytes(A,I,C)}tree_deserializeFromBytes(A,I,B){const C=this.value_deserializeFromBytes(A,I,B);return new Ke(this.valueToTree.bind(this),C)}getPropertyGindex(){return null}tree_fromProofNode(A){const I=new Uint8Array(super.tree_serializedSize(A)),B=new DataView(I.buffer,I.byteOffset,I.byteLength);super.tree_serializeToBytes({uint8Array:I,dataView:B},0,A);const C=this.value_deserializeFromBytes({uint8Array:I,dataView:B},0,I.length);return{node:new Ke(this.valueToTree.bind(this),C),done:!0}}tree_toValue(A){return A.value}value_toTree(A){return new Ke(this.valueToTree.bind(this),A)}valueToTree(A){const I=new Uint8Array(this.value_serializedSize(A)),B=new DataView(I.buffer,I.byteOffset,I.byteLength);return this.value_serializeToBytes({uint8Array:I,dataView:B},0,A),super.tree_deserializeFromBytes({uint8Array:I,dataView:B},0,I.length)}}class qr extends YB{type;tree;constructor(A,I){super(),this.type=A,this.tree=I}get length(){return this.type.tree_getLength(this.tree.rootNode)}get node(){return this.tree.rootNode}get(A){const I=Math.floor(A/this.type.itemsPerChunk),B=this.tree.getNodeAtDepth(this.type.depth,I);return this.type.elementType.tree_getFromPackedNode(B,A)}set(A,I){const B=this.length;if(A>=B)throw Error(`Error setting index over length ${A} > ${B}`);const C=Math.floor(A/this.type.itemsPerChunk),e=this.tree.getNodeAtDepth(this.type.depth,C).clone();this.type.elementType.tree_setToPackedNode(e,A,I),this.tree.setNodeAtDepth(this.type.depth,C,e)}getAll(){const A=this.length,I=this.type.tree_getChunksNode(this.node),B=Math.ceil(A/this.type.itemsPerChunk),C=ig(I,this.type.chunkDepth,0,B),e=new Array(A),t=this.type.itemsPerChunk,i=Math.floor(A/t),E=A%t;for(let c=0;c<i;c++){const n=C[c];for(let s=0;s<t;s++)e[c*t+s]=this.type.elementType.tree_getFromPackedNode(n,s)}if(E>0){const c=C[i];for(let n=0;n<E;n++)e[i*t+n]=this.type.elementType.tree_getFromPackedNode(c,n)}return e}}class oD extends qr{type;tree;constructor(A,I){super(A,I),this.type=A,this.tree=I}push(A){const I=this.length;if(I>=this.type.limit)throw Error("Error pushing over limit");if(this.type.tree_setLength(this.tree,I+1),I%this.type.itemsPerChunk===0){const B=bA.fromZero();this.type.elementType.tree_setToPackedNode(B,I,A);const C=Math.floor(I/this.type.itemsPerChunk);this.tree.setNodeAtDepth(this.type.depth,C,B)}else this.set(I,A)}}class Kr extends Me{type;_rootNode;nodes;nodesChanged=new Set;_length;dirtyLength=!1;nodesPopulated;constructor(A,I,B){super(),this.type=A,this._rootNode=I,B?(this.nodes=B.nodes,this._length=B.length,this.nodesPopulated=B.nodesPopulated):(this.nodes=[],this._length=this.type.tree_getLength(I),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(A){const I=Math.floor(A/this.type.itemsPerChunk);let B=this.nodes[I];return B===void 0&&(B=Hg(this._rootNode,this.type.depth,I),this.nodes[I]=B),this.type.elementType.tree_getFromPackedNode(B,A)}set(A,I){if(A>=this._length)throw Error(`Error setting index over length ${A} > ${this._length}`);const B=Math.floor(A/this.type.itemsPerChunk);let C;this.nodesChanged.has(B)?C=this.nodes[B]:(C=(this.nodes[B]??Hg(this._rootNode,this.type.depth,B)).clone(),this.nodes[B]=C,this.nodesChanged.add(B)),this.type.elementType.tree_setToPackedNode(C,A,I)}getAll(){if(!this.nodesPopulated){const e=this.nodes,t=this.type.tree_getChunksNode(this.node),i=Math.ceil(this._length/this.type.itemsPerChunk);this.nodes=ig(t,this.type.chunkDepth,0,i);for(const E of this.nodesChanged)this.nodes[E]=e[E];this.nodesPopulated=!0}const A=new Array(this._length),I=this.type.itemsPerChunk,B=Math.floor(this._length/I),C=this._length%I;for(let e=0;e<B;e++){const t=this.nodes[e];for(let i=0;i<I;i++)A[e*I+i]=this.type.elementType.tree_getFromPackedNode(t,i)}if(C>0){const e=this.nodes[B];for(let t=0;t<C;t++)A[B*I+t]=this.type.elementType.tree_getFromPackedNode(e,t)}return A}commit(A=0,I=null){const B=this._rootNode.h0!==null;if(this.nodesChanged.size===0){!B&&I!==null&&ag(this._rootNode,A,I);return}const C=Array.from(this.nodesChanged.keys()).sort((n,s)=>n-s),e=new Array(C.length);for(let n=0;n<C.length;n++)e[n]=this.nodes[C[n]];const t=this.type.tree_getChunksNode(this._rootNode),i=A+this.type.tree_chunksNodeOffset(),E=I!=null&&B?I:null,c=Je(t,this.type.chunkDepth,C,e,i,E);this._rootNode=this.type.tree_setChunksNode(this._rootNode,c,this.dirtyLength?this._length:null,A,B?I:null),!B&&I!==null&&ag(this._rootNode,A,I),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 nD extends Kr{type;_rootNode;constructor(A,I,B){super(A,I,B),this.type=A,this._rootNode=I}push(A){if(this._length>=this.type.limit)throw Error("Error pushing over limit");this.dirtyLength=!0;const I=this._length++;if(I%this.type.itemsPerChunk===0){const B=Math.floor(I/this.type.itemsPerChunk);this.nodes[B]=IB(0)}this.set(I,A)}sliceTo(A){if(A<0)throw new Error(`Does not support sliceTo() with negative index ${A}`);if(this.commit(),A>=this._length-1)return this;const I=this._rootNode,B=Math.floor(A/this.type.itemsPerChunk),C=this.nodes[B]??Hg(I,this.type.depth,B),e=bA.fromZero();for(let n=B*this.type.itemsPerChunk;n<=A;n++){const s=this.type.elementType.tree_getFromPackedNode(C,n);this.type.elementType.tree_setToPackedNode(e,n,s)}const t=this.type.tree_getChunksNode(this._rootNode);let i=Je(t,this.type.chunkDepth,[B],[e]);i=cr(i,this.type.chunkDepth,B);const E=A+1,c=this.type.tree_setChunksNode(I,i,E);return this.type.getViewDU(c)}serializeToBytes(A,I){this.commit();const{nodes:B,nodesPopulated:C}=this.cache,e=this.type.tree_getChunksNode(this._rootNode);return Ni(this.type.elementType,this._length,this.type.chunkDepth,A,I,e,C?B:null)}}class YC extends MC{elementType;constructor(A,I){super(I),this.elementType=A}defaultValue(){return Zw(this.elementType,this.defaultLen)}getPropertyType(){return this.elementType}getPropertyGindex(A){if(typeof A!="number")throw Error(`Invalid array index: ${A}`);const I=Math.floor(A/this.itemsPerChunk);return FI(this.depth,BigInt(I))}getIndexProperty(A){return A}tree_getLeafGindices(A,I){let B;if(this.isList){if(!I)throw new Error("List type requires tree argument to get leaves");B=this.tree_getLength(I)}else B=this.tree_getLength(null);const C=[];if(sI(this.elementType)){const e=FI(this.depth,BigInt(0)),t=e+BigInt(B),i=oI([A,e]);if(this.elementType.fixedSize===null){if(!I)throw new Error("Array of variable size requires tree argument to get leaves");for(let E=e,c=i;E<t;E++,c++)C.push(...this.elementType.tree_getLeafGindices(c,He(I,E)))}else for(let E=0,c=i;E<B;E++,c++)C.push(...this.elementType.tree_getLeafGindices(c))}else{const e=Math.ceil(B/this.itemsPerChunk),t=oI([A,FI(this.depth,BigInt(0))]),i=t+BigInt(e);for(let E=t;E<i;E++)C.push(E)}return this.isList&&C.push(oI([A,Ui])),C}fromJson(A){return Tw(this.elementType,A,this)}toJson(A){return vw(this.elementType,A,this)}clone(A){return _w(this.elementType,A)}equals(A,I){return Ow(this.elementType,A,I)}}class UI extends YC{elementType;limit;typeName;itemsPerChunk;depth;chunkDepth;maxChunkCount;fixedSize=null;minSize;maxSize;isList=!0;isViewMutable=!0;defaultLen=0;constructor(A,I,B){if(super(A,B?.cachePermanentRootStruct),this.elementType=A,this.limit=I,!A.isBasic)throw Error("elementType must be basic");if(I===0)throw Error("List limit must be > 0");this.typeName=B?.typeName??`List[${A.typeName}, ${I}]`,this.itemsPerChunk=32/A.byteLength,this.maxChunkCount=Math.ceil(this.limit*A.byteLength/32),this.chunkDepth=nI(this.maxChunkCount),this.depth=this.chunkDepth+1,this.minSize=0,this.maxSize=this.limit*A.maxSize}static named(A,I,B){return new(Gg(UI,B.typeName))(A,I,B)}getView(A){return new oD(this,A)}getViewDU(A,I){return new nD(this,A,I)}commitView(A){return A.node}commitViewDU(A,I=0,B=null){return A.commit(I,B),A.node}cacheOfViewDU(A){return A.cache}value_serializedSize(A){return A.length*this.elementType.byteLength}value_serializeToBytes(A,I,B){return LC(this.elementType,B.length,A,I,B)}value_deserializeFromBytes(A,I,B){return fr(this.elementType,A,I,B,this)}tree_serializedSize(A){return this.tree_getLength(A)*this.elementType.byteLength}tree_serializeToBytes(A,I,B){const C=this.tree_getChunksNode(B),e=this.tree_getLength(B);return Ni(this.elementType,e,this.chunkDepth,A,I,C)}tree_deserializeFromBytes(A,I,B){return pr(this.elementType,this.chunkDepth,A,I,B,this)}tree_getLength(A){return A.right.getUint(4,0)}tree_setLength(A,I){A.rootNode=tB(A.rootNode.left,I)}tree_getChunksNode(A){return A.left}tree_chunksNodeOffset(){return 1}tree_setChunksNode(A,I,B,C=0,e=null){return ur(A,I,B,C,e)}hashTreeRoot(A){if(this.cachePermanentRootStruct){const B=A[eB];if(B)return B}const I=UC(super.hashTreeRoot(A),A.length);return this.cachePermanentRootStruct&&(A[eB]=I),I}getRoots(A){const I=new Uint8Array(this.value_serializedSize(A)),B=new DataView(I.buffer,I.byteOffset,I.byteLength);return LC(this.elementType,A.length,{uint8Array:I,dataView:B},0,A),RC(I)}}function rD(g,A){return g.fixedSize===null?A*(4+g.minSize):A*g.minSize}function Yr(g,A){return g.fixedSize===null?A*(4+g.maxSize):A*g.maxSize}function br(g,A,I){if(g.fixedSize===null){let B=0;for(let C=0;C<A;C++)B+=4+g.value_serializedSize(I[C]);return B}else return A*g.fixedSize}function Tr(g,A,I,B,C){if(g.fixedSize===null){let e=B+A*4;for(let t=0;t<A;t++)I.dataView.setUint32(B+t*4,e-B,!0),e=g.value_serializeToBytes(I,e,C[t]);return e}else{for(let e=0;e<A;e++)g.value_serializeToBytes(I,B+e*g.fixedSize,C[e]);return B+A*g.fixedSize}}function vr(g,A,I,B,C){const e=xr(g.fixedSize,A.dataView,I,B,C),t=e.length,i=new Array(t);for(let E=0;E<t;E++){const c=I+e[E],n=E===t-1?B:I+e[E+1];i[E]=g.value_deserializeFromBytes(A,c,n)}return i}function _r(g,A,I,B){if(g.fixedSize===null){const C=ig(B,I,0,A);let e=0;for(let t=0;t<C.length;t++)e+=4+g.tree_serializedSize(C[t]);return e}else return A*g.fixedSize}function Hi(g,A,I,B,C,e,t=null){const i=t??ig(B,I,0,A);if(g.fixedSize===null){let E=e+A*4;const{dataView:c}=C;for(let n=0;n<i.length;n++)c.setUint32(e+n*4,E-e,!0),E=g.tree_serializeToBytes(C,E,i[n]);return E}else{for(let E=0;E<i.length;E++)e=g.tree_serializeToBytes(C,e,i[E]);return e}}function Or(g,A,I,B,C,e){const t=xr(g.fixedSize,I.dataView,B,C,e),i=t.length,E=new Array(i);for(let n=0;n<i;n++){const s=B+t[n],S=n===i-1?C:B+t[n+1];E[n]=g.tree_deserializeFromBytes(I,s,S)}const c=Ue(E,A);return e.isList?tB(c,i):c}function Zr(g,A,I){const B=new Array(A);for(let C=0;C<A;C++)B[C]=g.hashTreeRoot(I[C]);return B}function xr(g,A,I,B,C){const e=B-I;let t;if(g===null)t=aD(A,I,e);else{if(g===0)throw Error("element fixed length is 0");if(e%g!==0)throw Error(`size ${e} is not multiple of element fixedSize ${g}`);const i=e/g;t=new Uint32Array(i);for(let E=0;E<i;E++)t[E]=E*g}return mC(t.length,C),t}function aD(g,A,I){if(I===0)return new Uint32Array(0);const B=g.getUint32(A,!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,t=new Uint32Array(e);t[0]=B;for(let i=1;i<e;i++){const E=g.getUint32(A+i*4,!0);if(t[i]=E,E>I)throw new Error(`Offset out of bounds ${E} > ${I}`);if(E<t[i-1])throw new Error(`Offsets must be increasing ${E} < ${t[i-1]}`)}return t}class jr extends YB{type;tree;constructor(A,I){super(),this.type=A,this.tree=I}get length(){return this.type.tree_getLength(this.tree.rootNode)}get node(){return this.tree.rootNode}get(A){const I=ni(this.type.depth,A),B=this.tree.getSubtree(I);return this.type.elementType.getView(B)}getReadonly(A){const I=ni(this.type.depth,A),B=new dg(this.tree.getNode(I));return this.type.elementType.getView(B)}set(A,I){const B=this.length;if(A>=B)throw Error(`Error setting index over length ${A} > ${B}`);const C=this.type.elementType.commitView(I);this.tree.setNodeAtDepth(this.type.depth,A,C)}getAllReadonly(){const A=this.length,I=this.type.tree_getChunksNode(this.node),B=ig(I,this.type.chunkDepth,0,A),C=new Array(A);for(let e=0;e<A;e++)C[e]=this.type.elementType.getView(new dg(B[e]));return C}getAllReadonlyValues(){const A=this.length,I=this.type.tree_getChunksNode(this.node),B=ig(I,this.type.chunkDepth,0,A),C=new Array(A);for(let e=0;e<A;e++)C[e]=this.type.elementType.tree_toValue(B[e]);return C}}class sD extends jr{type;tree;constructor(A,I){super(A,I),this.type=A,this.tree=I}push(A){const I=this.length;if(I>=this.type.limit)throw Error("Error pushing over limit");this.type.tree_setLength(this.tree,I+1),this.set(I,A)}}class Pr extends Me{type;_rootNode;nodes;caches;viewsChanged=new Map;_length;dirtyLength=!1;nodesPopulated;constructor(A,I,B){super(),this.type=A,this._rootNode=I,B?(this.nodes=B.nodes,this.caches=B.caches,this._length=B.length,this.nodesPopulated=B.nodesPopulated):(this.nodes=[],this.caches=[],this._length=this.type.tree_getLength(I),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(A){const I=this.viewsChanged.get(A);if(I)return I;let B=this.nodes[A];B===void 0&&(B=Hg(this._rootNode,this.type.depth,A),this.nodes[A]=B);const C=this.type.elementType.getViewDU(B,this.caches[A]);return this.type.elementType.isViewMutable&&this.viewsChanged.set(A,C),C}getReadonly(A){const I=this.viewsChanged.get(A);if(I)return I;let B=this.nodes[A];return B===void 0&&(B=Hg(this._rootNode,this.type.depth,A),this.nodes[A]=B),this.type.elementType.getViewDU(B,this.caches[A])}set(A,I){if(A>=this._length)throw Error(`Error setting index over length ${A} > ${this._length}`);this.viewsChanged.set(A,I)}getAllReadonly(){this.populateAllOldNodes();const A=new Array(this._length);for(let I=0;I<this._length;I++)A[I]=this.getReadonly(I);return A}getAllReadonlyValues(){this.populateAllNodes();const A=new Array(this._length);for(let I=0;I<this._length;I++)A[I]=this.type.elementType.tree_toValue(this.nodes[I]);return A}getReadonlyByRange(A,I){if(A<0)throw Error(`Error getting by range, startIndex < 0: ${A}`);if(I<=0)throw Error(`Error getting by range, count <= 0: ${I}`);const B=this.dirtyLength?this.type.tree_getLength(this._rootNode):this._length;if(A>=B)throw Error(`Error getting by range, startIndex >= length: ${A} >= ${B}`);I=Math.min(I,B-A);let C=!0;for(let t=A;t<A+I;t++)if(this.nodes[t]==null){C=!1;break}if(!C){const t=ig(this._rootNode,this.type.depth,A,I);for(const[i,E]of t.entries())this.nodes[A+i]=E}const e=new Array(I);for(let t=0;t<I;t++)e[t]=this.getReadonly(A+t);return e}commit(A=0,I=null){const B=this._rootNode.h0!==null;if(this.viewsChanged.size===0){!B&&I!==null&&ag(this._rootNode,A,I);return}const C=A+this.type.depth,e=I!=null&&B?I:null,t=[];for(const[y,p]of this.viewsChanged){const F=this.type.elementType.commitViewDU(p,C,e);this.nodes[y]=F,t.push({index:y,node:F});const u=this.type.elementType.cacheOfViewDU(p);u&&(this.caches[y]=u)}const i=t.sort((y,p)=>y.index-p.index),E=i.map(y=>y.index),c=i.map(y=>y.node),n=this.type.tree_getChunksNode(this._rootNode),s=A+this.type.tree_chunksNodeOffset(),S=I!=null&&B?I:null,w=Je(n,this.type.chunkDepth,E,c,s,S);this._rootNode=this.type.tree_setChunksNode(this._rootNode,w,this.dirtyLength?this._length:null,A,I),!B&&I!==null&&ag(this._rootNode,A,I),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=ig(this._rootNode,this.type.depth,0,this.length),this.nodesPopulated=!0)}populateAllOldNodes(){if(!this.nodesPopulated){const A=this.dirtyLength?this.type.tree_getLength(this._rootNode):this._length;this.nodes=ig(this._rootNode,this.type.depth,0,A),this.nodesPopulated=!0}}}function cD(g){return{finalized:[],count:0,root:Gi(NI(g),NI(0))}}class lD extends Pr{type;_rootNode;constructor(A,I,B){super(A,I,B),this.type=A,this._rootNode=I}push(A){if(this._length>=this.type.limit)throw Error("Error pushing over limit");this.dirtyLength=!0;const I=this._length++;this.set(I,A)}sliceTo(A){this.commit();const I=this._rootNode,B=this._length;if(A>=B-1)return this;const C=this.type.tree_getChunksNode(I),e=cr(C,this.type.chunkDepth,A),t=A+1,i=this.type.tree_setChunksNode(I,e,t);return this.rootNodeToViewDU(i)}sliceFrom(A){if(this.commit(),this.populateAllNodes(),A<0&&(A+=this.nodes.length),A<=0)return this;let I,B;if(A>=this.nodes.length)I=IB(this.type.chunkDepth),B=0;else{const e=this.nodes.slice(A);I=Ue(e,this.type.chunkDepth),B=e.length}const C=this.type.tree_setChunksNode(this._rootNode,I,B);return this.rootNodeToViewDU(C)}toSnapshot(A){if(this.commit(),A<0||A>this._length)throw Error(`Invalid count ${A}, length is ${this._length}`);if(A===0)return cD(this.type.chunkDepth);const I=this.sliceTo(A-1)._rootNode,B=this.type.tree_getChunksNode(I);return{...qw(B,this.type.chunkDepth,A),root:I.root}}serializeToBytes(A,I){this.commit(),this.populateAllNodes();const B=this.type.tree_getChunksNode(this._rootNode);return Hi(this.type.elementType,this._length,this.type.chunkDepth,B,A,I,this.nodes)}rootNodeToViewDU(A){return this.type.getViewDU(A)}}class uA extends YC{elementType;limit;typeName;itemsPerChunk=1;depth;chunkDepth;maxChunkCount;fixedSize=null;minSize;maxSize;isList=!0;isViewMutable=!0;defaultLen=0;constructor(A,I,B){if(super(A,B?.cachePermanentRootStruct),this.elementType=A,this.limit=I,A.isBasic)throw Error("elementType must not be basic");if(I===0)throw Error("List limit must be > 0");this.typeName=B?.typeName??`List[${A.typeName}, ${I}]`,this.maxChunkCount=this.limit,this.chunkDepth=nI(this.maxChunkCount),this.depth=this.chunkDepth+1,this.minSize=0,this.maxSize=Yr(A,this.limit)}static named(A,I,B){return new(Gg(uA,B.typeName))(A,I,B)}getView(A){return new sD(this,A)}getViewDU(A,I){return new lD(this,A,I)}commitView(A){return A.node}commitViewDU(A,I=0,B=null){return A.commit(I,B),A.node}cacheOfViewDU(A){return A.cache}value_serializedSize(A){return br(this.elementType,A.length,A)}value_serializeToBytes(A,I,B){return Tr(this.elementType,B.length,A,I,B)}value_deserializeFromBytes(A,I,B){return vr(this.elementType,A,I,B,this)}tree_serializedSize(A){const I=this.tree_getChunksNode(A),B=this.tree_getLength(A);return _r(this.elementType,B,this.chunkDepth,I)}tree_serializeToBytes(A,I,B){const C=this.tree_getChunksNode(B),e=this.tree_getLength(B);return Hi(this.elementType,e,this.chunkDepth,C,A,I)}tree_deserializeFromBytes(A,I,B){return Or(this.elementType,this.chunkDepth,A,I,B,this)}tree_getLength(A){return CB(A)}tree_setLength(A,I){A.rootNode=tB(A.rootNode.left,I)}tree_getChunksNode(A){return A.left}tree_chunksNodeOffset(){return 1}tree_setChunksNode(A,I,B,C=0,e=null){return ur(A,I,B,C,e)}hashTreeRoot(A){if(this.cachePermanentRootStruct){const B=A[eB];if(B)return B}const I=UC(super.hashTreeRoot(A),A.length);return this.cachePermanentRootStruct&&(A[eB]=I),I}getRoots(A){return Zr(this.elementType,A.length,A)}}const hD=BigInt(Number.MAX_SAFE_INTEGER),Ji=BigInt(2)**BigInt(64),SD=BigInt(2)**BigInt(128),wD=BigInt(2)**BigInt(192),zr=2**32,Wr=4294967295;class BI extends KC{byteLength;typeName;itemsPerChunk;fixedSize;minSize;maxSize;maxDecimalStr;clipInfinity;setBitwiseOR;constructor(A,I){if(super(),this.byteLength=A,A>8)throw Error("UintNumber byteLength limit is 8");if(Math.log2(A)%1!==0)throw Error("byteLength must be a power of 2");this.typeName=I?.typeName??`uint${A*8}`,I?.clipInfinity&&(this.typeName+="Inf"),I?.setBitwiseOR&&(this.typeName+="OR"),this.itemsPerChunk=32/this.byteLength,this.fixedSize=A,this.minSize=A,this.maxSize=A,this.maxDecimalStr=(BigInt(2)**BigInt(this.byteLength*8)-BigInt(1)).toString(10),this.clipInfinity=I?.clipInfinity===!0,this.setBitwiseOR=I?.setBitwiseOR===!0}static named(A,I){return new(Gg(BI,I.typeName))(A,I)}defaultValue(){return 0}value_serializeToBytes({dataView:A},I,B){switch(this.byteLength){case 1:A.setInt8(I,B);break;case 2:A.setUint16(I,B,!0);break;case 4:A.setUint32(I,B,!0);break;case 8:B===1/0?(A.setUint32(I,4294967295),A.setUint32(I+4,4294967295)):(A.setUint32(I,B&4294967295,!0),A.setUint32(I+4,B/zr&4294967295,!0));break}return I+this.byteLength}value_deserializeFromBytes({dataView:A},I,B){switch(this.assertValidSize(B-I),this.byteLength){case 1:return A.getUint8(I);case 2:return A.getUint16(I,!0);case 4:return A.getUint32(I,!0);case 8:{const C=A.getUint32(I,!0),e=A.getUint32(I+4,!0);return e===Wr&&C===Wr&&this.clipInfinity?1/0:e*zr+C}}}tree_serializeToBytes(A,I,B){const C=B.getUint(this.byteLength,0,this.clipInfinity);return this.value_serializeToBytes(A,I,C),I+this.byteLength}tree_deserializeFromBytes(A,I,B){this.assertValidSize(B-I);const C=this.value_deserializeFromBytes(A,I,B),e=bA.fromZero();return e.setUint(this.byteLength,0,C,this.clipInfinity),e}tree_getFromNode(A){return A.getUint(this.byteLength,0,this.clipInfinity)}tree_setToNode(A,I){this.tree_setToPackedNode(A,0,I)}tree_getFromPackedNode(A,I){const B=this.byteLength*(I%this.itemsPerChunk);return A.getUint(this.byteLength,B,this.clipInfinity)}tree_setToPackedNode(A,I,B){const C=this.byteLength*(I%this.itemsPerChunk);this.setBitwiseOR?A.bitwiseOrUint(this.byteLength,C,B):A.setUint(this.byteLength,C,B,this.clipInfinity)}fromJson(A){if(typeof A=="number")return A;if(typeof A=="string"){if(this.clipInfinity&&A===this.maxDecimalStr)return 1/0;{const I=parseInt(A,10);if(isNaN(I))throw Error("JSON invalid number isNaN");if(I>Number.MAX_SAFE_INTEGER)throw Error("JSON invalid number > MAX_SAFE_INTEGER");return I}}else if(typeof A=="bigint"){if(A>hD)throw Error("JSON invalid number > MAX_SAFE_INTEGER_BN");return Number(A)}else throw Error(`JSON invalid type ${typeof A} expected number`)}toJson(A){return A===1/0?this.maxDecimalStr:A.toString(10)}}class Ye extends KC{byteLength;typeName;itemsPerChunk;fixedSize;minSize;maxSize;constructor(A,I){if(super(),this.byteLength=A,A>32)throw Error("UintBigint byteLength limit is 32");if(Math.log2(A)%1!==0)throw Error("byteLength must be a power of 2");this.typeName=I?.typeName??`uintBigint${A*8}`,this.byteLength=A,this.itemsPerChunk=32/this.byteLength,this.fixedSize=A,this.minSize=A,this.maxSize=A}static named(A,I){return new(Gg(Ye,I.typeName))(A,I)}defaultValue(){return BigInt(0)}value_serializeToBytes({dataView:A},I,B){switch(this.byteLength){case 1:A.setInt8(I,Number(B));break;case 2:A.setUint16(I,Number(B),!0);break;case 4:A.setUint32(I,Number(B),!0);break;case 8:A.setBigUint64(I,B,!0);break;default:for(let C=0;C<this.byteLength;C+=8){C>0&&(B=B/Ji);const e=BigInt.asUintN(64,B);A.setBigUint64(I+C,e,!0)}}return I+this.byteLength}value_deserializeFromBytes({dataView:A},I,B){const C=B-I;if(C!==this.byteLength)throw Error(`Invalid size ${C} expected ${this.byteLength}`);switch(this.byteLength){case 1:return BigInt(A.getUint8(I));case 2:return BigInt(A.getUint16(I,!0));case 4:return BigInt(A.getUint32(I,!0));case 8:return A.getBigUint64(I,!0);case 16:{const e=A.getBigUint64(I,!0);return A.getBigUint64(I+8,!0)*Ji+e}case 32:{const e=A.getBigUint64(I,!0),t=A.getBigUint64(I+8,!0),i=A.getBigUint64(I+16,!0);return A.getBigUint64(I+24,!0)*wD+i*SD+t*Ji+e}}}tree_serializeToBytes(A,I,B){const C=B.getUintBigint(this.byteLength,0);return this.value_serializeToBytes(A,I,C),I+this.byteLength}tree_deserializeFromBytes(A,I,B){const C=B-I;if(C!==this.byteLength)throw Error(`Invalid size ${C} expected ${this.byteLength}`);const e=this.value_deserializeFromBytes(A,I,B),t=bA.fromZero();return t.setUintBigint(this.byteLength,0,e),t}tree_getFromNode(A){return A.getUintBigint(this.byteLength,0)}tree_setToNode(A,I){this.tree_setToPackedNode(A,0,I)}tree_getFromPackedNode(A,I){const B=this.byteLength*(I%this.itemsPerChunk);return A.getUintBigint(this.byteLength,B)}tree_setToPackedNode(A,I,B){const C=this.byteLength*(I%this.itemsPerChunk);A.setUintBigint(this.byteLength,C,B)}fromJson(A){if(typeof A=="bigint")return A;if(typeof A=="string"||typeof A=="number")return BigInt(A);throw Error(`JSON invalid type ${typeof A} expected bigint`)}toJson(A){return A.toString(10)}}BigInt(2),BigInt(3),BigInt(2),BigInt(3);class Mi extends YC{elementType;length;typeName;itemsPerChunk;depth;chunkDepth;maxChunkCount;fixedSize;minSize;maxSize;isList=!1;isViewMutable=!0;defaultLen;constructor(A,I,B){if(super(A),this.elementType=A,this.length=I,!A.isBasic)throw Error("elementType must be basic");if(I===0)throw Error("Vector length must be > 0");this.typeName=B?.typeName??`Vector[${A.typeName}, ${I}]`,this.itemsPerChunk=32/A.byteLength,this.maxChunkCount=Math.ceil(I*A.byteLength/32),this.chunkDepth=nI(this.maxChunkCount),this.depth=this.chunkDepth,this.fixedSize=I*A.byteLength,this.minSize=this.fixedSize,this.maxSize=this.fixedSize,this.defaultLen=I}static named(A,I,B){return new(Gg(Mi,B.typeName))(A,I,B)}getView(A){return new qr(this,A)}getViewDU(A,I){return new Kr(this,A,I)}commitView(A){return A.node}commitViewDU(A,I=0,B=null){return A.commit(I,B),A.node}cacheOfViewDU(A){return A.cache}value_serializedSize(){return this.fixedSize}value_serializeToBytes(A,I,B){return LC(this.elementType,this.length,A,I,B)}value_deserializeFromBytes(A,I,B){return fr(this.elementType,A,I,B,this)}tree_serializedSize(){return this.fixedSize}tree_serializeToBytes(A,I,B){return Ni(this.elementType,this.length,this.depth,A,I,B)}tree_deserializeFromBytes(A,I,B){return pr(this.elementType,this.depth,A,I,B,this)}tree_getLength(){return this.length}tree_setLength(){}tree_getChunksNode(A){return A}tree_chunksNodeOffset(){return 0}tree_setChunksNode(A,I){return I}getRoots(A){const I=new Uint8Array(this.fixedSize),B=new DataView(I.buffer,I.byteOffset,I.byteLength);return LC(this.elementType,this.length,{uint8Array:I,dataView:B},0,A),RC(I)}}class Qg extends YC{elementType;length;typeName;itemsPerChunk=1;depth;chunkDepth;maxChunkCount;fixedSize;minSize;maxSize;isList=!1;isViewMutable=!0;defaultLen;constructor(A,I,B){if(super(A),this.elementType=A,this.length=I,A.isBasic)throw Error("elementType must not be basic");if(I===0)throw Error("Vector length must be > 0");this.typeName=B?.typeName??`Vector[${A.typeName}, ${I}]`,this.maxChunkCount=I,this.chunkDepth=nI(this.maxChunkCount),this.depth=this.chunkDepth,this.fixedSize=A.fixedSize===null?null:I*A.fixedSize,this.minSize=rD(A,I),this.maxSize=Yr(A,I),this.defaultLen=I}static named(A,I,B){return new(Gg(Qg,B.typeName))(A,I,B)}getView(A){return new jr(this,A)}getViewDU(A,I){return new Pr(this,A,I)}commitView(A){return A.node}commitViewDU(A,I=0,B=null){return A.commit(I,B),A.node}cacheOfViewDU(A){return A.cache}value_serializedSize(A){return br(this.elementType,this.length,A)}value_serializeToBytes(A,I,B){return Tr(this.elementType,this.length,A,I,B)}value_deserializeFromBytes(A,I,B){return vr(this.elementType,A,I,B,this)}tree_serializedSize(A){return _r(this.elementType,this.length,this.depth,A)}tree_serializeToBytes(A,I,B){return Hi(this.elementType,this.length,this.depth,B,A,I)}tree_deserializeFromBytes(A,I,B){return Or(this.elementType,this.depth,A,I,B,this)}tree_getLength(){return this.length}tree_setLength(){}tree_getChunksNode(A){return A}tree_chunksNodeOffset(){return 0}tree_setChunksNode(A,I){return I}getRoots(A){return Zr(this.elementType,this.length,A)}}class DD extends UI{constructor(A,I){super(new BI(8),A,I)}toViewDU(A){const{treeNode:I,leafNodes:B}=this.packedUintNum64sToNode(A);return this.getViewDU(I,{nodes:B,length:A.length,nodesPopulated:!0})}value_toTree(A){const{treeNode:I}=this.packedUintNum64sToNode(A);return I}packedUintNum64sToNode(A){if(A.length>this.limit)throw new Error(`Exceeds limit: ${A.length} > ${this.limit}`);const I=Sw(A),B=Ue([...I],this.chunkDepth);return{treeNode:tB(B,A.length),leafNodes:I}}}const bC=BigInt(2**32-1),Vr=BigInt(32);function yD(g,A=!1){return A?{h:Number(g&bC),l:Number(g>>Vr&bC)}:{h:Number(g>>Vr&bC)|0,l:Number(g&bC)|0}}function uD(g,A=!1){let I=new Uint32Array(g.length),B=new Uint32Array(g.length);for(let C=0;C<g.length;C++){const{h:e,l:t}=yD(g[C],A);[I[C],B[C]]=[e,t]}return[I,B]}const fD=(g,A,I)=>g<<I|A>>>32-I,pD=(g,A,I)=>A<<I|g>>>32-I,FD=(g,A,I)=>A<<I-32|g>>>64-I,dD=(g,A,I)=>g<<I-32|A>>>64-I,[Xr,$r,Aa]=[[],[],[]],GD=BigInt(0),be=BigInt(1),ND=BigInt(2),kD=BigInt(7),RD=BigInt(256),UD=BigInt(113);for(let g=0,A=be,I=1,B=0;g<24;g++){[I,B]=[B,(2*I+3*B)%5],Xr.push(2*(5*B+I)),$r.push((g+1)*(g+2)/2%64);let C=GD;for(let e=0;e<7;e++)A=(A<<be^(A>>kD)*UD)%RD,A&ND&&(C^=be<<(be<<BigInt(e))-be);Aa.push(C)}const[LD,mD]=uD(Aa,!0),ga=(g,A,I)=>I>32?FD(g,A,I):fD(g,A,I),Ia=(g,A,I)=>I>32?dD(g,A,I):pD(g,A,I);function HD(g,A=24){const I=new Uint32Array(10);for(let B=24-A;B<24;B++){for(let t=0;t<10;t++)I[t]=g[t]^g[t+10]^g[t+20]^g[t+30]^g[t+40];for(let t=0;t<10;t+=2){const i=(t+8)%10,E=(t+2)%10,c=I[E],n=I[E+1],s=ga(c,n,1)^I[i],S=Ia(c,n,1)^I[i+1];for(let w=0;w<50;w+=10)g[t+w]^=s,g[t+w+1]^=S}let C=g[2],e=g[3];for(let t=0;t<24;t++){const i=$r[t],E=ga(C,e,i),c=Ia(C,e,i),n=Xr[t];C=g[n],e=g[n+1],g[n]=E,g[n+1]=c}for(let t=0;t<50;t+=10){for(let i=0;i<10;i++)I[i]=g[t+i];for(let i=0;i<10;i++)g[t+i]^=~I[(i+2)%10]&I[(i+4)%10]}g[0]^=LD[B],g[1]^=mD[B]}I.fill(0)}class qi extends ir{constructor(A,I,B,C=!1,e=24){if(super(),this.blockLen=A,this.suffix=I,this.outputLen=B,this.enableXOF=C,this.rounds=e,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,Ge(B),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=Aw(this.state)}keccak(){HD(this.state32,this.rounds),this.posOut=0,this.pos=0}update(A){Ne(this);const{blockLen:I,state:B}=this;A=li(A);const C=A.length;for(let e=0;e<C;){const t=Math.min(I-this.pos,C-e);for(let i=0;i<t;i++)B[this.pos++]^=A[e++];this.pos===I&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:A,suffix:I,pos:B,blockLen:C}=this;A[B]^=I,I&128&&B===C-1&&this.keccak(),A[C-1]^=128,this.keccak()}writeInto(A){Ne(this,!1),ai(A),this.finish();const I=this.state,{blockLen:B}=this;for(let C=0,e=A.length;C<e;){this.posOut>=B&&this.keccak();const t=Math.min(B-this.posOut,e-C);A.set(I.subarray(this.posOut,this.posOut+t),C),this.posOut+=t,C+=t}return A}xofInto(A){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(A)}xof(A){return Ge(A),this.xofInto(new Uint8Array(A))}digestInto(A){if(si(A,this),this.finished)throw new Error("digest() was already called");return this.writeInto(A),this.destroy(),A}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(A){const{blockLen:I,suffix:B,outputLen:C,rounds:e,enableXOF:t}=this;return A||(A=new qi(I,B,C,t,e)),A.state32.set(this.state32),A.pos=this.pos,A.posOut=this.posOut,A.finished=this.finished,A.rounds=e,A.suffix=B,A.outputLen=C,A.enableXOF=t,A.destroyed=this.destroyed,A}}const JD=(g,A,I)=>Qr(()=>new qi(A,g,I)),Ba=JD(1,136,256/8);function MD(g){return A=>($S.bytes(A),g(A))}(()=>{const g=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0,A=typeof module<"u"&&typeof module.require=="function"&&module.require.bind(module);return{node:A&&!g?A("crypto"):void 0,web:g}})();const qD=(()=>{const g=MD(Ba);return g.create=Ba.create,g})();class KD extends Jg{constructor(){super(20,{typeName:"ExecutionAddress"})}toJson(A){const I=super.toJson(A);return bD(I)}}function YD(g){return/^(0x)?[0-9a-f]{40}$/i.test(g)}function bD(g){if(!YD(g))throw Error(`Invalid address: ${g}`);const A=(g.startsWith("0x")?g.slice(2):g).toLowerCase(),I=A.split(""),B=new Uint8Array(I.length);for(let e=0;e<B.length;e++)B[e]=A[e].charCodeAt(0);const C=qD(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 Ig=new mi,ea=new BI(1),Te=new Jg(4),Ki=new Jg(8),Ca=new Jg(20),Yi=new Jg(32),bi=new Jg(48),Ti=new Jg(96),ta=new BI(1),ia=new BI(2),vi=new BI(4),FA=new BI(8),_i=new BI(8,{clipInfinity:!0}),bB=new Ye(8),Qa=new Ye(16),Oi=new Ye(32),vA=FA,_g=FA,Ea=_i,oa=FA,iB=FA,Zi=FA,PA=FA,na=FA,ra=bB,aa=bB,sa=Oi,QB=new Jg(32),xi=FA,ca=Te,la=Te,ji=Te,TB=bi,TC=Ti,ha=Yi,Sa=new BI(1,{setBitwiseOR:!0}),Pi=new KD,EB=Object.freeze(Object.defineProperty({__proto__:null,BLSPubkey:TB,BLSSignature:TC,BlobIndex:xi,Boolean:Ig,Byte:ea,Bytes20:Ca,Bytes32:Yi,Bytes4:Te,Bytes48:bi,Bytes8:Ki,Bytes96:Ti,CommitteeIndex:iB,DepositIndex:ra,Domain:ha,DomainType:la,Epoch:_g,EpochInf:Ea,ExecutionAddress:Pi,ForkDigest:ji,Gwei:aa,ParticipationFlags:Sa,Root:QB,Slot:vA,SubcommitteeIndex:Zi,SyncPeriod:oa,Uint16:ia,Uint32:vi,Uint8:ta,UintBn128:Qa,UintBn256:Oi,UintBn64:bB,UintNum64:FA,UintNumInf64:_i,ValidatorIndex:PA,Version:ca,Wei:sa,WithdrawalIndex:na},Symbol.toStringTag,{value:"Module"})),{Boolean:TD,Bytes32:vD,UintNum64:_D,BLSPubkey:OD,EpochInf:vC}=EB,wa=2**32,vB=4,ZD=48,xD=32,jD=1,PD={pubkey:OD,withdrawalCredentials:vD,effectiveBalance:_D,slashed:TD,activationEligibilityEpoch:vC,activationEpoch:vC,exitEpoch:vC,withdrawableEpoch:vC};class zD extends ED{constructor(){super(PD,{typeName:"Validator",jsonCase:"eth2"})}value_serializeToBytes({uint8Array:A,dataView:I},B,C){A.set(C.pubkey,B),B+=ZD,A.set(C.withdrawalCredentials,B),B+=xD;const{effectiveBalance:e,activationEligibilityEpoch:t,activationEpoch:i,exitEpoch:E,withdrawableEpoch:c}=C;return I.setUint32(B,e&4294967295,!0),B+=vB,I.setUint32(B,e/wa&4294967295,!0),B+=vB,A[B]=C.slashed?1:0,B+=jD,B=_C(I,B,t),B=_C(I,B,i),B=_C(I,B,E),B=_C(I,B,c),B}}function _C(g,A,I){return I===1/0?(g.setUint32(A,4294967295,!0),A+=vB,g.setUint32(A,4294967295,!0),A+=vB):(g.setUint32(A,I&4294967295,!0),A+=vB,g.setUint32(A,I/wa&4294967295,!0),A+=vB),A}const Da=new zD,{Bytes32:oB,UintNum64:Sg,UintBn64:nB,Slot:LI,Epoch:ve,CommitteeIndex:ya,ValidatorIndex:rB,Root:UA,Version:_e,ForkDigest:ua,BLSPubkey:fa,BLSSignature:Og,Domain:WD}=EB,zi=new RI(Y2),XA=new Y({slot:LI,proposerIndex:rB,parentRoot:UA,stateRoot:UA,bodyRoot:UA},{typeName:"BeaconBlockHeader",jsonCase:"eth2",cachePermanentRootStruct:!0}),pa=new Y({slot:nB,proposerIndex:rB,parentRoot:UA,stateRoot:UA,bodyRoot:UA},{typeName:"BeaconBlockHeader",jsonCase:"eth2",cachePermanentRootStruct:!0}),Wi=new Y({message:XA,signature:Og},{typeName:"SignedBeaconBlockHeader",jsonCase:"eth2"}),Vi=new Y({message:pa,signature:Og},{typeName:"SignedBeaconBlockHeader",jsonCase:"eth2"}),LA=new Y({epoch:ve,root:UA},{typeName:"Checkpoint",jsonCase:"eth2"}),Xi=new Y({epoch:nB,root:UA},{typeName:"Checkpoint",jsonCase:"eth2"}),$i=new qC(he),OC=new UI(rB,he),VD=new Y({pubkey:fa,withdrawalCredentials:oB,amount:Sg},{typeName:"DepositMessage",jsonCase:"eth2"}),AQ=new Y({pubkey:fa,withdrawalCredentials:oB,amount:Sg,signature:Og},{typeName:"DepositData",jsonCase:"eth2"}),XD=new uA(UA,2**qo),$D=new Y({depositData:AQ,blockNumber:Sg,index:Sg},{typeName:"DepositEvent",jsonCase:"eth2"}),cI=new Y({depositRoot:UA,depositCount:Sg,blockHash:oB},{typeName:"Eth1Data",jsonCase:"eth2"}),aB=new uA(cI,a2*Yg),Ay=new Y({depositRoot:UA,depositCount:Sg,blockHash:oB,blockNumber:Sg},{typeName:"Eth1DataOrdered",jsonCase:"eth2"}),gy=new Y({timestamp:Sg,depositRoot:UA,depositCount:Sg},{typeName:"Eth1Block",jsonCase:"eth2"}),lI=new Y({previousVersion:_e,currentVersion:_e,epoch:ve},{typeName:"Fork",jsonCase:"eth2"}),gQ=new Y({currentVersion:_e,genesisValidatorsRoot:UA},{typeName:"ForkData",jsonCase:"eth2"}),Iy=new Y({forkDigest:ua,nextForkVersion:_e,nextForkEpoch:ve},{typeName:"ENRForkID",jsonCase:"eth2"}),mI=new Qg(UA,Lo),HI=new Qg(UA,Lo),By=new Y({blockRoots:mI,stateRoots:HI},{typeName:"HistoricalBatch",jsonCase:"eth2"}),ey=new Y({blockRoots:UA,stateRoots:UA},{typeName:"HistoricalBatchRoots",jsonCase:"eth2"}),Fa=Da,sB=new uA(Da,rC),cB=new DD(rC),lB=new Qg(oB,s2),hB=new Mi(Sg,c2),SB=new RI(q2),JI=new Y({slot:LI,index:ya,beaconBlockRoot:UA,source:LA,target:LA},{typeName:"AttestationData",jsonCase:"eth2",cachePermanentRootStruct:!0}),IQ=new Y({slot:nB,index:nB,beaconBlockRoot:UA,source:Xi,target:Xi},{typeName:"AttestationData",jsonCase:"eth2",cachePermanentRootStruct:!0}),Cy=new Y({attestingIndices:OC,data:JI,signature:Og},{typeName:"IndexedAttestation",jsonCase:"eth2"}),BQ=new Y({attestingIndices:OC,data:IQ,signature:Og},{typeName:"IndexedAttestation",jsonCase:"eth2"}),da=new Y({aggregationBits:$i,data:JI,inclusionDelay:LI,proposerIndex:rB},{typeName:"PendingAttestation",jsonCase:"eth2"}),ZC=new Y({objectRoot:UA,domain:WD},{typeName:"SigningData",jsonCase:"eth2"}),MI=new Y({aggregationBits:$i,data:JI,signature:Og},{typeName:"Attestation",jsonCase:"eth2"}),ty=MI,Zg=new Y({attestation1:BQ,attestation2:BQ},{typeName:"AttesterSlashing",jsonCase:"eth2"}),Ga=new Y({proof:new Qg(oB,qo+1),data:AQ},{typeName:"Deposit",jsonCase:"eth2"}),qI=new Y({signedHeader1:Vi,signedHeader2:Vi},{typeName:"ProposerSlashing",jsonCase:"eth2"}),Na=new Y({epoch:ve,validatorIndex:rB},{typeName:"VoluntaryExit",jsonCase:"eth2",cachePermanentRootStruct:!0}),KI=new Y({message:Na,signature:Og},{typeName:"SignedVoluntaryExit",jsonCase:"eth2"}),sg=new Y({randaoReveal:Og,eth1Data:cI,graffiti:oB,proposerSlashings:new uA(qI,l2),attesterSlashings:new uA(Zg,h2),attestations:new uA(MI,mo),deposits:new uA(Ga,S2),voluntaryExits:new uA(KI,w2)},{typeName:"BeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),ka=new Y({slot:LI,proposerIndex:rB,parentRoot:UA,stateRoot:UA,body:sg},{typeName:"BeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),iy=new Y({message:ka,signature:Og},{typeName:"SignedBeaconBlock",jsonCase:"eth2"}),eQ=new uA(da,mo*Yg),Qy=new Y({genesisTime:Sg,genesisValidatorsRoot:UA,slot:LI,fork:lI,latestBlockHeader:XA,blockRoots:mI,stateRoots:HI,historicalRoots:new uA(UA,VI),eth1Data:cI,eth1DataVotes:aB,eth1DepositIndex:Sg,validators:sB,balances:cB,randaoMixes:lB,slashings:hB,previousEpochAttestations:eQ,currentEpochAttestations:eQ,justificationBits:SB,previousJustifiedCheckpoint:LA,currentJustifiedCheckpoint:LA,finalizedCheckpoint:LA},{typeName:"BeaconState",jsonCase:"eth2"}),Ey=new Y({validators:OC,committeeIndex:ya,slot:LI},{typeName:"CommitteeAssignment",jsonCase:"eth2"}),Ra=new Y({aggregatorIndex:rB,aggregate:MI,selectionProof:Og},{typeName:"AggregateAndProof",jsonCase:"eth2",cachePermanentRootStruct:!0}),Ua=new Y({message:Ra,signature:Og},{typeName:"SignedAggregateAndProof",jsonCase:"eth2"}),oy=new Y({forkDigest:ua,finalizedRoot:UA,finalizedEpoch:ve,headRoot:UA,headSlot:LI},{typeName:"Status",jsonCase:"eth2"}),ny=nB,ry=nB,ay=new Y({seqNumber:nB,attnets:zi},{typeName:"Metadata",jsonCase:"eth2"}),sy=new Y({startSlot:LI,count:Sg,step:Sg},{typeName:"BeaconBlocksByRangeRequest",jsonCase:"eth2"}),cy=new uA(UA,b2),La=new Y({genesisValidatorsRoot:UA,genesisTime:Sg,genesisForkVersion:_e},{typeName:"Genesis",jsonCase:"eth2"}),YI=Object.freeze(Object.defineProperty({__proto__:null,AggregateAndProof:Ra,Attestation:MI,AttestationData:JI,AttestationDataBigint:IQ,AttestationSubnets:zi,AttesterSlashing:Zg,Balances:cB,BeaconBlock:ka,BeaconBlockBody:sg,BeaconBlockHeader:XA,BeaconBlockHeaderBigint:pa,BeaconBlocksByRangeRequest:sy,BeaconBlocksByRootRequest:cy,BeaconState:Qy,Checkpoint:LA,CheckpointBigint:Xi,CommitteeAssignment:Ey,CommitteeBits:$i,CommitteeIndices:OC,Deposit:Ga,DepositData:AQ,DepositDataRootList:XD,DepositEvent:$D,DepositMessage:VD,ENRForkID:Iy,EpochAttestations:eQ,Eth1Block:gy,Eth1Data:cI,Eth1DataOrdered:Ay,Eth1DataVotes:aB,Fork:lI,ForkData:gQ,Genesis:La,Goodbye:ny,HistoricalBatch:By,HistoricalBatchRoots:ey,HistoricalBlockRoots:mI,HistoricalStateRoots:HI,IndexedAttestation:Cy,IndexedAttestationBigint:BQ,JustificationBits:SB,Metadata:ay,PendingAttestation:da,Ping:ry,ProposerSlashing:qI,RandaoMixes:lB,SignedAggregateAndProof:Ua,SignedBeaconBlock:iy,SignedBeaconBlockHeader:Wi,SignedBeaconBlockHeaderBigint:Vi,SignedVoluntaryExit:KI,SigningData:ZC,SingleAttestation:ty,Slashings:hB,Status:oy,Validator:Fa,Validators:sB,VoluntaryExit:Na},Symbol.toStringTag,{value:"Module"})),{Bytes32:xC,UintNum64:Oe,UintBn64:ly,Slot:bI,SubcommitteeIndex:ma,ValidatorIndex:CQ,Root:_B,BLSPubkey:Ha,BLSSignature:OB,ParticipationFlags:hy}=EB,Ja=new RI(bo),Ma=new Y({seqNumber:ly,attnets:zi,syncnets:Ja},{typeName:"Metadata",jsonCase:"eth2"}),_A=new Y({pubkeys:new Qg(Ha,DI),aggregatePubkey:Ha},{typeName:"SyncCommittee",jsonCase:"eth2"}),qa=new Y({slot:bI,beaconBlockRoot:_B,validatorIndex:CQ,signature:OB},{typeName:"SyncCommitteeMessage",jsonCase:"eth2"}),tQ=new Y({slot:bI,beaconBlockRoot:_B,subcommitteeIndex:ma,aggregationBits:new RI(DI/bo),signature:OB},{typeName:"SyncCommitteeContribution",jsonCase:"eth2"}),Ka=new Y({aggregatorIndex:CQ,contribution:tQ,selectionProof:OB},{typeName:"ContributionAndProof",jsonCase:"eth2",cachePermanentRootStruct:!0}),iQ=new Y({message:Ka,signature:OB},{typeName:"SignedContributionAndProof",jsonCase:"eth2"}),Sy=new Y({slot:bI,subcommitteeIndex:ma},{typeName:"SyncAggregatorSelectionData",jsonCase:"eth2"}),Ya=new RI(DI),wg=new Y({syncCommitteeBits:Ya,syncCommitteeSignature:OB},{typeName:"SyncCommitteeBits",jsonCase:"eth2"}),eI=new Y({...sg.fields,syncAggregate:wg},{typeName:"BeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),ba=new Y({slot:bI,proposerIndex:CQ,parentRoot:_B,stateRoot:_B,body:eI},{typeName:"BeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),wy=new Y({message:ba,signature:OB},{typeName:"SignedBeaconBlock",jsonCase:"eth2"}),xg=new UI(hy,rC),ZB=new UI(Oe,rC),Dy=new Y({genesisTime:Oe,genesisValidatorsRoot:_B,slot:bI,fork:lI,latestBlockHeader:XA,blockRoots:mI,stateRoots:HI,historicalRoots:new uA(_B,VI),eth1Data:cI,eth1DataVotes:aB,eth1DepositIndex:Oe,validators:sB,balances:cB,randaoMixes:lB,slashings:hB,previousEpochParticipation:xg,currentEpochParticipation:xg,justificationBits:SB,previousJustifiedCheckpoint:LA,currentJustifiedCheckpoint:LA,finalizedCheckpoint:LA,inactivityScores:ZB,currentSyncCommittee:_A,nextSyncCommittee:_A},{typeName:"BeaconState",jsonCase:"eth2"}),wB=new Y({beacon:XA},{typeName:"LightClientHeader",jsonCase:"eth2"}),jC=new Y({header:wB,currentSyncCommittee:_A,currentSyncCommitteeBranch:new Qg(xC,we)},{typeName:"LightClientBootstrap",jsonCase:"eth2"}),xB=new Y({attestedHeader:wB,nextSyncCommittee:_A,nextSyncCommitteeBranch:new Qg(xC,we),finalizedHeader:wB,finalityBranch:new Qg(xC,XI),syncAggregate:wg,signatureSlot:bI},{typeName:"LightClientUpdate",jsonCase:"eth2"}),QQ=new Y({attestedHeader:wB,finalizedHeader:wB,finalityBranch:new Qg(xC,XI),syncAggregate:wg,signatureSlot:bI},{typeName:"LightClientFinalityUpdate",jsonCase:"eth2"}),yy=new Y({attestedHeader:wB,syncAggregate:wg,signatureSlot:bI},{typeName:"LightClientOptimisticUpdate",jsonCase:"eth2"}),uy=new Y({startPeriod:Oe,count:Oe},{typeName:"LightClientUpdatesByRange",jsonCase:"eth2"}),fy=new Y({snapshot:jC,validUpdates:new uA(xB,yI*Yg)},{typeName:"LightClientStore",jsonCase:"eth2"}),DB=Object.freeze(Object.defineProperty({__proto__:null,BeaconBlock:ba,BeaconBlockBody:eI,BeaconState:Dy,ContributionAndProof:Ka,EpochParticipation:xg,InactivityScores:ZB,LightClientBootstrap:jC,LightClientFinalityUpdate:QQ,LightClientHeader:wB,LightClientOptimisticUpdate:yy,LightClientStore:fy,LightClientUpdate:xB,LightClientUpdatesByRange:uy,Metadata:Ma,SignedBeaconBlock:wy,SignedContributionAndProof:iQ,SyncAggregate:wg,SyncAggregatorSelectionData:Sy,SyncCommittee:_A,SyncCommitteeBits:Ya,SyncCommitteeContribution:tQ,SyncCommitteeMessage:qa,SyncSubnets:Ja},Symbol.toStringTag,{value:"Module"}));class jB extends KC{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(A){if(typeof A!="string")throw Error(`JSON invalid type ${typeof A} expected string`);return A}toJson(A){return A}}const TI=new jB,{Bytes32:PC,UintNum64:jg,Slot:EQ,ValidatorIndex:Ta,Root:Ng,BLSSignature:zC,UintBn256:oQ,BLSPubkey:va,ExecutionAddress:_a}=EB,Oa=new qe(y2),Za=new uA(Oa,u2),nQ=new Y({parentHash:Ng,feeRecipient:_a,stateRoot:PC,receiptsRoot:PC,logsBloom:new Jg(f2),prevRandao:PC,blockNumber:jg,gasLimit:jg,gasUsed:jg,timestamp:jg,extraData:new qe(p2),baseFeePerGas:oQ,blockHash:Ng}),rQ=new Y({...nQ.fields,transactions:Za},{typeName:"ExecutionPayload",jsonCase:"eth2"}),Ze=new Y({...nQ.fields,transactionsRoot:Ng},{typeName:"ExecutionPayloadHeader",jsonCase:"eth2"}),xa=new Y({...eI.fields,executionPayload:rQ},{typeName:"BeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),ja=new Y({slot:EQ,proposerIndex:Ta,parentRoot:Ng,stateRoot:Ng,body:xa},{typeName:"BeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),py=new Y({message:ja,signature:zC},{typeName:"SignedBeaconBlock",jsonCase:"eth2"}),Fy=new Y({blockHash:Ng,parentHash:Ng,totalDifficulty:oQ},{typeName:"PowBlock",jsonCase:"eth2"}),dy=new Y({genesisTime:jg,genesisValidatorsRoot:Ng,slot:vA,fork:lI,latestBlockHeader:XA,blockRoots:mI,stateRoots:HI,historicalRoots:new uA(Ng,VI),eth1Data:cI,eth1DataVotes:aB,eth1DepositIndex:jg,validators:sB,balances:cB,randaoMixes:lB,slashings:hB,previousEpochParticipation:xg,currentEpochParticipation:xg,justificationBits:SB,previousJustifiedCheckpoint:LA,currentJustifiedCheckpoint:LA,finalizedCheckpoint:LA,inactivityScores:ZB,currentSyncCommittee:_A,nextSyncCommittee:_A,latestExecutionPayloadHeader:Ze},{typeName:"BeaconState",jsonCase:"eth2"}),Pa=new Y({...eI.fields,executionPayloadHeader:Ze},{typeName:"BlindedBeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),aQ=new Y({slot:EQ,proposerIndex:Ta,parentRoot:Ng,stateRoot:Ng,body:Pa},{typeName:"BlindedBeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),Gy=new Y({message:aQ,signature:zC},{typeName:"SignedBlindedBeaconBlock",jsonCase:"eth2"}),za=new Y({feeRecipient:_a,gasLimit:jg,timestamp:jg,pubkey:va},{typeName:"ValidatorRegistrationV1",jsonCase:"eth2"}),Wa=new Y({message:za,signature:zC},{typeName:"SignedValidatorRegistrationV1",jsonCase:"eth2"}),Va=new Y({header:Ze,value:oQ,pubkey:va},{typeName:"BuilderBid",jsonCase:"eth2"}),Ny=new Y({message:Va,signature:zC},{typeName:"SignedBuilderBid",jsonCase:"eth2"}),sQ=new Y({timestamp:jg,prevRandao:PC,suggestedFeeRecipient:TI},{typeName:"PayloadAttributes",jsonCase:"eth2"}),xe=new Y({proposerIndex:jg,proposalSlot:EQ,parentBlockNumber:jg,parentBlockRoot:Ng,parentBlockHash:Ng},{typeName:"SSEPayloadAttributesCommon",jsonCase:"eth2"}),ky=new Y({...xe.fields,payloadAttributes:sQ},{typeName:"SSEPayloadAttributes",jsonCase:"eth2"}),PB=Object.freeze(Object.defineProperty({__proto__:null,BeaconBlock:ja,BeaconBlockBody:xa,BeaconState:dy,BlindedBeaconBlock:aQ,BlindedBeaconBlockBody:Pa,BuilderBid:Va,CommonExecutionPayloadType:nQ,ExecutionPayload:rQ,ExecutionPayloadHeader:Ze,PayloadAttributes:sQ,PowBlock:Fy,SSEPayloadAttributes:ky,SSEPayloadAttributesCommon:xe,SignedBeaconBlock:py,SignedBlindedBeaconBlock:Gy,SignedBuilderBid:Ny,SignedValidatorRegistrationV1:Wa,Transaction:Oa,Transactions:Za,ValidatorRegistrationV1:za},Symbol.toStringTag,{value:"Module"})),{UintNum64:Xa,Slot:WC,ValidatorIndex:VC,WithdrawalIndex:$a,Root:yB,BLSSignature:XC,BLSPubkey:As,ExecutionAddress:gs,Gwei:Ry,UintBn256:Uy,Bytes32:Ly}=EB,Is=new Y({index:$a,validatorIndex:VC,address:gs,amount:Ry},{typeName:"Withdrawal",jsonCase:"eth2"}),Bs=new Y({validatorIndex:VC,fromBlsPubkey:As,toExecutionAddress:gs},{typeName:"BLSToExecutionChange",jsonCase:"eth2"}),$C=new Y({message:Bs,signature:XC},{typeName:"SignedBLSToExecutionChange",jsonCase:"eth2"}),cQ=new uA(Is,d2),lQ=new Y({...rQ.fields,withdrawals:cQ},{typeName:"ExecutionPayload",jsonCase:"eth2"}),uB=new Y({...Ze.fields,withdrawalsRoot:yB},{typeName:"ExecutionPayloadHeader",jsonCase:"eth2"}),hQ=new uA($C,F2),zB=new Y({...eI.fields,executionPayload:lQ,blsToExecutionChanges:hQ},{typeName:"BeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),SQ=new Y({slot:WC,proposerIndex:VC,parentRoot:yB,stateRoot:yB,body:zB},{typeName:"BeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),my=new Y({message:SQ,signature:XC},{typeName:"SignedBeaconBlock",jsonCase:"eth2"}),es=new Y({header:uB,value:Uy,pubkey:As},{typeName:"BuilderBid",jsonCase:"eth2"}),Hy=new Y({message:es,signature:XC},{typeName:"SignedBuilderBid",jsonCase:"eth2"}),Cs=new Y({blockSummaryRoot:yB,stateSummaryRoot:yB},{typeName:"HistoricalSummary",jsonCase:"eth2"}),wQ=new uA(Cs,VI,{typeName:"HistoricalSummaries"}),fB=new Y({genesisTime:Xa,genesisValidatorsRoot:yB,slot:vA,fork:lI,latestBlockHeader:XA,blockRoots:mI,stateRoots:HI,historicalRoots:new uA(yB,VI),eth1Data:cI,eth1DataVotes:aB,eth1DepositIndex:Xa,validators:sB,balances:cB,randaoMixes:lB,slashings:hB,previousEpochParticipation:xg,currentEpochParticipation:xg,justificationBits:SB,previousJustifiedCheckpoint:LA,currentJustifiedCheckpoint:LA,finalizedCheckpoint:LA,inactivityScores:ZB,currentSyncCommittee:_A,nextSyncCommittee:_A,latestExecutionPayloadHeader:uB,nextWithdrawalIndex:$a,nextWithdrawalValidatorIndex:VC,historicalSummaries:wQ},{typeName:"BeaconState",jsonCase:"eth2"}),ts=new Y({...eI.fields,executionPayloadHeader:uB,blsToExecutionChanges:hQ},{typeName:"BlindedBeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),DQ=new Y({...aQ.fields,body:ts},{typeName:"BlindedBeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),Jy=new Y({message:DQ,signature:XC},{typeName:"SignedBlindedBeaconBlock",jsonCase:"eth2"}),kg=new Y({beacon:XA,execution:uB,executionBranch:new Qg(Ly,vo)},{typeName:"LightClientHeader",jsonCase:"eth2"}),is=new Y({header:kg,currentSyncCommittee:_A,currentSyncCommitteeBranch:jC.fields.currentSyncCommitteeBranch},{typeName:"LightClientBootstrap",jsonCase:"eth2"}),Qs=new Y({attestedHeader:kg,nextSyncCommittee:_A,nextSyncCommitteeBranch:xB.fields.nextSyncCommitteeBranch,finalizedHeader:kg,finalityBranch:xB.fields.finalityBranch,syncAggregate:wg,signatureSlot:WC},{typeName:"LightClientUpdate",jsonCase:"eth2"}),My=new Y({attestedHeader:kg,finalizedHeader:kg,finalityBranch:QQ.fields.finalityBranch,syncAggregate:wg,signatureSlot:WC},{typeName:"LightClientFinalityUpdate",jsonCase:"eth2"}),qy=new Y({attestedHeader:kg,syncAggregate:wg,signatureSlot:WC},{typeName:"LightClientOptimisticUpdate",jsonCase:"eth2"}),Ky=new Y({snapshot:is,validUpdates:new uA(Qs,yI*Yg)},{typeName:"LightClientStore",jsonCase:"eth2"}),At=new Y({...sQ.fields,withdrawals:cQ},{typeName:"PayloadAttributes",jsonCase:"eth2"}),Yy=new Y({...xe.fields,payloadAttributes:At},{typeName:"SSEPayloadAttributes",jsonCase:"eth2"}),je=Object.freeze(Object.defineProperty({__proto__:null,BLSToExecutionChange:Bs,BLSToExecutionChanges:hQ,BeaconBlock:SQ,BeaconBlockBody:zB,BeaconState:fB,BlindedBeaconBlock:DQ,BlindedBeaconBlockBody:ts,BuilderBid:es,ExecutionPayload:lQ,ExecutionPayloadHeader:uB,HistoricalSummaries:wQ,HistoricalSummary:Cs,LightClientBootstrap:is,LightClientFinalityUpdate:My,LightClientHeader:kg,LightClientOptimisticUpdate:qy,LightClientStore:Ky,LightClientUpdate:Qs,PayloadAttributes:At,SSEPayloadAttributes:Yy,SignedBLSToExecutionChange:$C,SignedBeaconBlock:my,SignedBlindedBeaconBlock:Jy,SignedBuilderBid:Hy,Withdrawal:Is,Withdrawals:cQ},Symbol.toStringTag,{value:"Module"})),{UintNum64:yQ,Slot:gt,Root:It,BLSSignature:uQ,UintBn64:Bt,UintBn256:by,Bytes32:et,Bytes48:fQ,Bytes96:Ty,BLSPubkey:vy,BlobIndex:Es}=EB,_y=fQ,Oy=Ty,Zy=et,pQ=fQ,FQ=fQ,dQ=new Jg(v2*G2),WB=new uA(dQ,Se),os=et,xy=new uA(os,Se),jy=et,VB=new uA(pQ,Se),XB=new uA(FQ,Se),Py=new Y({startSlot:gt,count:yQ},{typeName:"BlobSidecarsByRangeRequest",jsonCase:"eth2"}),zy=new Y({blockRoot:It,index:Es},{typeName:"BlobIdentifier",jsonCase:"eth2"}),Ct=new Y({...lQ.fields,blobGasUsed:Bt,excessBlobGas:Bt},{typeName:"ExecutionPayload",jsonCase:"eth2"}),$B=new Y({...uB.fields,blobGasUsed:Bt,excessBlobGas:Bt},{typeName:"ExecutionPayloadHeader",jsonCase:"eth2"}),tt=new Y({...eI.fields,executionPayload:Ct,blsToExecutionChanges:zB.fields.blsToExecutionChanges,blobKzgCommitments:VB},{typeName:"BeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),it=new Y({...SQ.fields,body:tt},{typeName:"BeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),ns=new Y({message:it,signature:uQ},{typeName:"SignedBeaconBlock",jsonCase:"eth2"}),rs=new Qg(et,N2),as=new Y({index:Es,blob:dQ,kzgCommitment:pQ,kzgProof:FQ,signedBlockHeader:Wi,kzgCommitmentInclusionProof:rs},{typeName:"BlobSidecar",jsonCase:"eth2"}),ss=new uA(as,Se),cs=new Y({commitments:VB,proofs:XB,blobs:WB},{typeName:"BlobsBundle",jsonCase:"eth2"}),ls=new Y({...eI.fields,executionPayloadHeader:$B,blsToExecutionChanges:zB.fields.blsToExecutionChanges,blobKzgCommitments:VB},{typeName:"BlindedBeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),GQ=new Y({...DQ.fields,body:ls},{typeName:"BlindedBeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),Wy=new Y({message:GQ,signature:uQ},{typeName:"SignedBlindedBeaconBlock",jsonCase:"eth2"}),hs=new Y({header:$B,blobKzgCommitments:VB,value:by,pubkey:vy},{typeName:"BuilderBid",jsonCase:"eth2"}),Vy=new Y({message:hs,signature:uQ},{typeName:"SignedBuilderBid",jsonCase:"eth2"}),Xy=new Y({executionPayload:Ct,blobsBundle:cs},{typeName:"ExecutionPayloadAndBlobsBundle",jsonCase:"eth2"}),$y=new Y({genesisTime:yQ,genesisValidatorsRoot:It,slot:vA,fork:lI,latestBlockHeader:XA,blockRoots:mI,stateRoots:HI,historicalRoots:new uA(It,VI),eth1Data:cI,eth1DataVotes:aB,eth1DepositIndex:yQ,validators:sB,balances:cB,randaoMixes:lB,slashings:hB,previousEpochParticipation:xg,currentEpochParticipation:xg,justificationBits:SB,previousJustifiedCheckpoint:LA,currentJustifiedCheckpoint:LA,finalizedCheckpoint:LA,inactivityScores:ZB,currentSyncCommittee:_A,nextSyncCommittee:_A,latestExecutionPayloadHeader:$B,nextWithdrawalIndex:fB.fields.nextWithdrawalIndex,nextWithdrawalValidatorIndex:fB.fields.nextWithdrawalValidatorIndex,historicalSummaries:fB.fields.historicalSummaries},{typeName:"BeaconState",jsonCase:"eth2"}),Dg=new Y({beacon:XA,execution:$B,executionBranch:kg.fields.executionBranch},{typeName:"LightClientHeader",jsonCase:"eth2"}),Ss=new Y({header:Dg,currentSyncCommittee:_A,currentSyncCommitteeBranch:jC.fields.currentSyncCommitteeBranch},{typeName:"LightClientBootstrap",jsonCase:"eth2"}),ws=new Y({attestedHeader:Dg,nextSyncCommittee:_A,nextSyncCommitteeBranch:xB.fields.nextSyncCommitteeBranch,finalizedHeader:Dg,finalityBranch:xB.fields.finalityBranch,syncAggregate:wg,signatureSlot:gt},{typeName:"LightClientUpdate",jsonCase:"eth2"}),Au=new Y({attestedHeader:Dg,finalizedHeader:Dg,finalityBranch:QQ.fields.finalityBranch,syncAggregate:wg,signatureSlot:gt},{typeName:"LightClientFinalityUpdate",jsonCase:"eth2"}),gu=new Y({attestedHeader:Dg,syncAggregate:wg,signatureSlot:gt},{typeName:"LightClientOptimisticUpdate",jsonCase:"eth2"}),Iu=new Y({snapshot:Ss,validUpdates:new uA(ws,yI*Yg)},{typeName:"LightClientStore",jsonCase:"eth2"}),Ds=new Y({...At.fields,parentBeaconBlockRoot:It},{typeName:"PayloadAttributes",jsonCase:"eth2"}),Bu=new Y({...xe.fields,payloadAttributes:Ds},{typeName:"SSEPayloadAttributes",jsonCase:"eth2"}),eu=new Y({block:it,kzgProofs:XB,blobs:WB},{typeName:"BlockContents",jsonCase:"eth2"}),Cu=new Y({signedBlock:ns,kzgProofs:XB,blobs:WB},{typeName:"SignedBlockContents",jsonCase:"eth2"}),Qt=Object.freeze(Object.defineProperty({__proto__:null,BLSFieldElement:Zy,BeaconBlock:it,BeaconBlockBody:tt,BeaconState:$y,BlindedBeaconBlock:GQ,BlindedBeaconBlockBody:ls,BlindedBlob:os,BlindedBlobs:xy,Blob:dQ,BlobIdentifier:zy,BlobKzgCommitments:VB,BlobSidecar:as,BlobSidecars:ss,BlobSidecarsByRangeRequest:Py,Blobs:WB,BlobsBundle:cs,BlockContents:eu,BuilderBid:hs,ExecutionPayload:Ct,ExecutionPayloadAndBlobsBundle:Xy,ExecutionPayloadHeader:$B,G1Point:_y,G2Point:Oy,KZGCommitment:pQ,KZGProof:FQ,KZGProofs:XB,KzgCommitmentInclusionProof:rs,LightClientBootstrap:Ss,LightClientFinalityUpdate:Au,LightClientHeader:Dg,LightClientOptimisticUpdate:gu,LightClientStore:Iu,LightClientUpdate:ws,PayloadAttributes:Ds,SSEPayloadAttributes:Bu,SignedBeaconBlock:ns,SignedBlindedBeaconBlock:Wy,SignedBlockContents:Cu,SignedBuilderBid:Vy,VersionedHash:jy},Symbol.toStringTag,{value:"Module"})),{Epoch:NQ,Gwei:Pe,UintNum64:Et,Slot:ot,Root:kQ,BLSSignature:Pg,UintBn256:tu,Bytes32:Ae,BLSPubkey:ge,DepositIndex:iu,UintBn64:Qu,ExecutionAddress:ys,ValidatorIndex:Ie,CommitteeIndex:Eu}=EB,us=new qC(he*_t),fs=new RI(_t),RQ=new UI(Ie,he*_t),Be=new Y({aggregationBits:us,data:JI,signature:Pg,committeeBits:fs},{typeName:"Attestation",jsonCase:"eth2"}),UQ=new Y({committeeIndex:Eu,attesterIndex:Ie,data:JI,signature:Pg},{typeName:"SingleAttestation",jsonCase:"eth2"}),ou=new Y({attestingIndices:RQ,data:JI,signature:Pg},{typeName:"IndexedAttestation",jsonCase:"eth2"}),LQ=new Y({attestingIndices:RQ,data:IQ,signature:Pg},{typeName:"IndexedAttestation",jsonCase:"eth2"}),vI=new Y({attestation1:LQ,attestation2:LQ},{typeName:"AttesterSlashing",jsonCase:"eth2"}),ps=new Y({aggregatorIndex:Ie,aggregate:Be,selectionProof:Pg},{typeName:"AggregateAndProof",jsonCase:"eth2",cachePermanentRootStruct:!0}),Fs=new Y({message:ps,signature:Pg},{typeName:"SignedAggregateAndProof",jsonCase:"eth2"}),ds=new Y({pubkey:ge,withdrawalCredentials:Ae,amount:Et,signature:Pg,index:iu},{typeName:"DepositRequest",jsonCase:"eth2"}),Gs=new uA(ds,m2),Ns=new Y({sourceAddress:ys,validatorPubkey:ge,amount:Pe},{typeName:"WithdrawalRequest",jsonCase:"eth2"}),ks=new uA(Ns,H2),Rs=new Y({sourceAddress:ys,sourcePubkey:ge,targetPubkey:ge},{typeName:"ConsolidationRequest",jsonCase:"eth2"}),Us=new uA(Rs,L2),nt=new Y({deposits:Gs,withdrawals:ks,consolidations:Us},{typeName:"ExecutionRequests",jsonCase:"eth2"}),rt=$B,Ls=Ct,ms=new Y({randaoReveal:sg.fields.randaoReveal,eth1Data:sg.fields.eth1Data,graffiti:sg.fields.graffiti,proposerSlashings:sg.fields.proposerSlashings,attesterSlashings:new uA(vI,Jo),attestations:new uA(Be,Mo),deposits:sg.fields.deposits,voluntaryExits:sg.fields.voluntaryExits,syncAggregate:eI.fields.syncAggregate,executionPayload:Ls,blsToExecutionChanges:zB.fields.blsToExecutionChanges,blobKzgCommitments:tt.fields.blobKzgCommitments,executionRequests:nt},{typeName:"BeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),mQ=new Y({...it.fields,body:ms},{typeName:"BeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),Hs=new Y({message:mQ,signature:Pg},{typeName:"SignedBeaconBlock",jsonCase:"eth2"}),Js=new Y({randaoReveal:sg.fields.randaoReveal,eth1Data:sg.fields.eth1Data,graffiti:sg.fields.graffiti,proposerSlashings:sg.fields.proposerSlashings,attesterSlashings:new uA(vI,Jo),attestations:new uA(Be,Mo),deposits:sg.fields.deposits,voluntaryExits:sg.fields.voluntaryExits,syncAggregate:wg,executionPayloadHeader:rt,blsToExecutionChanges:zB.fields.blsToExecutionChanges,blobKzgCommitments:tt.fields.blobKzgCommitments,executionRequests:nt},{typeName:"BlindedBeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),Ms=new Y({...GQ.fields,body:Js},{typeName:"BlindedBeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),nu=new Y({message:Ms,signature:Pg},{typeName:"SignedBlindedBeaconBlock",jsonCase:"eth2"}),qs=new Y({header:rt,blobKzgCommitments:VB,executionRequests:nt,value:tu,pubkey:ge},{typeName:"BuilderBid",jsonCase:"eth2"}),ru=new Y({message:qs,signature:Pg},{typeName:"SignedBuilderBid",jsonCase:"eth2"}),Ks=new Y({pubkey:ge,withdrawalCredentials:Ae,amount:Et,signature:Pg,slot:ot},{typeName:"PendingDeposit",jsonCase:"eth2"}),HQ=new uA(Ks,k2),Ys=new Y({validatorIndex:Ie,amount:Pe,withdrawableEpoch:NQ},{typeName:"PendingPartialWithdrawal",jsonCase:"eth2"}),JQ=new uA(Ys,R2),bs=new Y({sourceIndex:Ie,targetIndex:Ie},{typeName:"PendingConsolidation",jsonCase:"eth2"}),Ts=new uA(bs,U2),au=new Y({genesisTime:Et,genesisValidatorsRoot:kQ,slot:vA,fork:lI,latestBlockHeader:XA,blockRoots:mI,stateRoots:HI,historicalRoots:new uA(kQ,VI),eth1Data:cI,eth1DataVotes:aB,eth1DepositIndex:Et,validators:sB,balances:cB,randaoMixes:lB,slashings:hB,previousEpochParticipation:xg,currentEpochParticipation:xg,justificationBits:SB,previousJustifiedCheckpoint:LA,currentJustifiedCheckpoint:LA,finalizedCheckpoint:LA,inactivityScores:ZB,currentSyncCommittee:_A,nextSyncCommittee:_A,latestExecutionPayloadHeader:rt,nextWithdrawalIndex:fB.fields.nextWithdrawalIndex,nextWithdrawalValidatorIndex:fB.fields.nextWithdrawalValidatorIndex,historicalSummaries:fB.fields.historicalSummaries,depositRequestsStartIndex:Qu,depositBalanceToConsume:Pe,exitBalanceToConsume:Pe,earliestExitEpoch:NQ,consolidationBalanceToConsume:Pe,earliestConsolidationEpoch:NQ,pendingDeposits:HQ,pendingPartialWithdrawals:JQ,pendingConsolidations:Ts},{typeName:"BeaconState",jsonCase:"eth2"}),vs=new Y({header:Dg,currentSyncCommittee:_A,currentSyncCommitteeBranch:new Qg(Ae,De)},{typeName:"LightClientBootstrap",jsonCase:"eth2"}),_s=new Y({attestedHeader:Dg,nextSyncCommittee:_A,nextSyncCommitteeBranch:new Qg(Ae,De),finalizedHeader:Dg,finalityBranch:new Qg(Ae,QI),syncAggregate:wg,signatureSlot:ot},{typeName:"LightClientUpdate",jsonCase:"eth2"}),su=new Y({attestedHeader:Dg,finalizedHeader:Dg,finalityBranch:new Qg(Ae,QI),syncAggregate:wg,signatureSlot:ot},{typeName:"LightClientFinalityUpdate",jsonCase:"eth2"}),cu=new Y({attestedHeader:Dg,syncAggregate:wg,signatureSlot:ot},{typeName:"LightClientOptimisticUpdate",jsonCase:"eth2"}),lu=new Y({snapshot:vs,validUpdates:new uA(_s,yI*Yg)},{typeName:"LightClientStore",jsonCase:"eth2"}),Os=new Y({...At.fields,parentBeaconBlockRoot:kQ},{typeName:"PayloadAttributes",jsonCase:"eth2"}),hu=new Y({...xe.fields,payloadAttributes:Os},{typeName:"SSEPayloadAttributes",jsonCase:"eth2"}),Su=new Y({block:mQ,kzgProofs:XB,blobs:WB},{typeName:"BlockContents",jsonCase:"eth2"}),wu=new Y({signedBlock:Hs,kzgProofs:XB,blobs:WB},{typeName:"BlockContents",jsonCase:"eth2"}),at=Object.freeze(Object.defineProperty({__proto__:null,AggregateAndProof:ps,AggregationBits:us,Attestation:Be,AttesterSlashing:vI,AttestingIndices:RQ,BeaconBlock:mQ,BeaconBlockBody:ms,BeaconState:au,BlindedBeaconBlock:Ms,BlindedBeaconBlockBody:Js,BlockContents:Su,BuilderBid:qs,CommitteeBits:fs,ConsolidationRequest:Rs,ConsolidationRequests:Us,DepositRequest:ds,DepositRequests:Gs,ExecutionPayload:Ls,ExecutionPayloadHeader:rt,ExecutionRequests:nt,IndexedAttestation:ou,IndexedAttestationBigint:LQ,LightClientBootstrap:vs,LightClientFinalityUpdate:su,LightClientOptimisticUpdate:cu,LightClientStore:lu,LightClientUpdate:_s,PayloadAttributes:Os,PendingConsolidation:bs,PendingConsolidations:Ts,PendingDeposit:Ks,PendingDeposits:HQ,PendingPartialWithdrawal:Ys,PendingPartialWithdrawals:JQ,SSEPayloadAttributes:hu,SignedAggregateAndProof:Fs,SignedBeaconBlock:Hs,SignedBlindedBeaconBlock:nu,SignedBlockContents:wu,SignedBuilderBid:ru,SingleAttestation:UQ,WithdrawalRequest:Ns,WithdrawalRequests:ks},Symbol.toStringTag,{value:"Module"}));var ee;(function(g){g.builder="builder",g.engine="engine"})(ee||(ee={}));const Zs={[hA.phase0]:{...YI},[hA.altair]:{...YI,...DB},[hA.bellatrix]:{...YI,...DB,...PB},[hA.capella]:{...YI,...DB,...PB,...je},[hA.deneb]:{...YI,...DB,...PB,...je,...Qt},[hA.electra]:{...YI,...DB,...PB,...je,...Qt,...at},[hA.fulu]:{...YI,...DB,...PB,...je,...Qt,...at}};function HA(g,A){return A===void 0?Zs[g]:Zs[g][A]}const zg=Object.freeze(Object.defineProperty({__proto__:null,BLSPubkey:TB,BLSSignature:TC,BlobIndex:xi,Boolean:Ig,Byte:ea,Bytes20:Ca,Bytes32:Yi,Bytes4:Te,Bytes48:bi,Bytes8:Ki,Bytes96:Ti,CommitteeIndex:iB,DepositIndex:ra,Domain:ha,DomainType:la,Epoch:_g,EpochInf:Ea,ExecutionAddress:Pi,ForkDigest:ji,Gwei:aa,ParticipationFlags:Sa,Root:QB,Slot:vA,SubcommitteeIndex:Zi,SyncPeriod:oa,Uint16:ia,Uint32:vi,Uint8:ta,UintBn128:Qa,UintBn256:Oi,UintBn64:bB,UintNum64:FA,UintNumInf64:_i,ValidatorIndex:PA,Version:ca,Wei:sa,WithdrawalIndex:na,altair:DB,bellatrix:PB,capella:je,deneb:Qt,electra:at,fulu:at,phase0:YI,sszTypesFor:HA},Symbol.toStringTag,{value:"Module"}));function st(g){return g.kzgProofs!==void 0}function hI(g){const A=g;return A.finalityBranch!==void 0&&A.finalityBranch.length===QI}function xs(g){const A=g;return A.finalityBranch!==void 0&&A.finalityBranch.length===QI}function Du(g,A){const I=new Map,B=new Map,C=new Map,e=new Map;for(const t of Object.values(g.forks)){const i=yu(t.version,A),E=ct(i);e.set(E,t.name),B.set(t.name,i),C.set(t.name,E)}return{genesisValidatorsRoot:A,getDomain(t,i,E){const c=Math.floor((E??t)/Yg),n=g.getForkInfo(t),s=c<n.epoch?n.prevForkName:n.name,S=g.forks[s];let w=I.get(S.name);w||(w=new Map,I.set(S.name,w));let y=w.get(i);return y||(y=js(i,S.version,A),w.set(i,y)),y},getDomainAtFork(t,i){const E=g.forks[t];let c=I.get(E.name);c||(c=new Map,I.set(E.name,c));let n=c.get(i);return n||(n=js(i,E.version,A),c.set(i,n)),n},getDomainForVoluntaryExit(t,i){return t<g.DENEB_FORK_EPOCH*Yg?this.getDomain(t,Ko,i):this.getDomainAtFork(hA.capella,Ko)},forkDigest2ForkName(t){const i=ct(t),E=e.get(i);if(E==null)throw Error(`Unknown forkDigest ${i}`);return E},forkDigest2ForkNameOption(t){const i=ct(t);return e.get(i)??null},forkName2ForkDigest(t){const i=B.get(t);if(!i)throw Error(`No precomputed forkDigest for ${t}`);return i},forkName2ForkDigestHex(t){const i=C.get(t);if(!i)throw Error(`No precomputed forkDigest for ${t}`);return ct(i)}}}function js(g,A,I){const B=Ps(A,I),C=new Uint8Array(32);return C.set(g,0),C.set(B.slice(0,28),4),C}function Ps(g,A){const I={currentVersion:g,genesisValidatorsRoot:A};return gQ.hashTreeRoot(I)}function ct(g){return kS(typeof g=="string"?g:bg(g))}function yu(g,A){return Ps(g,A).slice(0,4)}function uu(g){const A={name:hA.phase0,seq:OA.phase0,epoch:M2,version:g.GENESIS_FORK_VERSION,prevVersion:g.GENESIS_FORK_VERSION,prevForkName:hA.phase0},I={name:hA.altair,seq:OA.altair,epoch:g.ALTAIR_FORK_EPOCH,version:g.ALTAIR_FORK_VERSION,prevVersion:g.GENESIS_FORK_VERSION,prevForkName:hA.phase0},B={name:hA.bellatrix,seq:OA.bellatrix,epoch:g.BELLATRIX_FORK_EPOCH,version:g.BELLATRIX_FORK_VERSION,prevVersion:g.ALTAIR_FORK_VERSION,prevForkName:hA.altair},C={name:hA.capella,seq:OA.capella,epoch:g.CAPELLA_FORK_EPOCH,version:g.CAPELLA_FORK_VERSION,prevVersion:g.BELLATRIX_FORK_VERSION,prevForkName:hA.bellatrix},e={name:hA.deneb,seq:OA.deneb,epoch:g.DENEB_FORK_EPOCH,version:g.DENEB_FORK_VERSION,prevVersion:g.CAPELLA_FORK_VERSION,prevForkName:hA.capella},t={name:hA.electra,seq:OA.electra,epoch:g.ELECTRA_FORK_EPOCH,version:g.ELECTRA_FORK_VERSION,prevVersion:g.DENEB_FORK_VERSION,prevForkName:hA.deneb},i={name:hA.fulu,seq:OA.fulu,epoch:g.FULU_FORK_EPOCH,version:g.FULU_FORK_VERSION,prevVersion:g.ELECTRA_FORK_VERSION,prevForkName:hA.electra},E={phase0:A,altair:I,bellatrix:B,capella:C,deneb:e,electra:t,fulu:i},c=Object.values(E),n=Object.values(E).reverse();return{forks:E,forksAscendingEpochOrder:c,forksDescendingEpochOrder:n,getForkInfo(s){const S=Math.floor(Math.max(s,0)/Yg);return this.getForkInfoAtEpoch(S)},getForkInfoAtEpoch(s){for(const S of n)if(s>=S.epoch)return S;return A},getForkName(s){return this.getForkInfo(s).name},getForkSeq(s){return this.getForkInfo(s).seq},getForkSeqAtEpoch(s){return this.getForkInfoAtEpoch(s).seq},getForkVersion(s){return this.getForkInfo(s).version},getForkTypes(s){return HA(this.getForkName(s))},getPostBellatrixForkTypes(s){const S=this.getForkName(s);if(!oC(S))throw Error(`Invalid slot=${s} fork=${S} for post-bellatrix fork types`);return HA(S)},getPostAltairForkTypes(s){const S=this.getForkName(s);if(!vt(S))throw Error(`Invalid slot=${s} fork=${S} for post-altair fork types`);return HA(S)},getPostDenebForkTypes(s){const S=this.getForkName(s);if(!Lg(S))throw Error(`Invalid slot=${s} fork=${S} for post-deneb fork types`);return HA(S)},getMaxBlobsPerBlock(s){return ZA(s)?g.MAX_BLOBS_PER_BLOCK_ELECTRA:g.MAX_BLOBS_PER_BLOCK},getMaxRequestBlobSidecars(s){return ZA(s)?g.MAX_REQUEST_BLOB_SIDECARS_ELECTRA:g.MAX_REQUEST_BLOB_SIDECARS}}}function MQ(g){const A=PS(g);return{...A,...uu(A)}}function zs(g,A){const I=MQ(g);return{...I,...Du(I,A)}}function Ws(g){return{all:g=g||new Map,on:function(A,I){var B=g.get(A);B?B.push(I):g.set(A,[I])},off:function(A,I){var B=g.get(A);B&&(I?B.splice(B.indexOf(I)>>>0,1):g.set(A,[]))},emit:function(A,I){var B=g.get(A);B&&B.slice().map(function(C){C(I)}),(B=g.get("*"))&&B.slice().map(function(C){C(A,I)})}}}let Bg;wI=(g=>(g.lightClientOptimisticHeader="light_client_optimistic_header",g.lightClientFinalityHeader="light_client_finality_header",g.statusChange="light_client_status_change",g))(wI||{}),function(g){g.ContentType="content-type",g.Accept="accept",g.Authorization="authorization",g.ExposeHeaders="access-control-expose-headers"}(Bg||(Bg={}));var Rg;(function(g){g.json="application/json",g.ssz="application/octet-stream"})(Rg||(Rg={}));const fu=Object.values(Rg);function pu(g,A){return g!==null&&A.includes(g)}function Fu(g){if(!g)return null;const A=g.split(";",1)[0].trim().toLowerCase();return pu(A,fu)?A:null}function du(g,A,{bearerToken:I}){I&&!A.has(Bg.Authorization)&&A.set(Bg.Authorization,`Bearer ${I}`),(g.username||g.password)&&(A.has(Bg.Authorization)||A.set(Bg.Authorization,`Basic ${hS(decodeURIComponent(`${g.username}:${g.password}`))}`),g.username="",g.password="")}function qQ(...g){const A=new Headers;for(const I of g)if(I)if(Array.isArray(I))for(const[B,C]of I)A.set(B,C);else if(I instanceof Headers)for(const[B,C]of I)A.set(B,C);else for(const[B,C]of Object.entries(I))A.set(B,C);return A}function Fg(g,A,I=!0){const B=g[A.toLowerCase()];if(B===void 0&&I)throw Error(`${A} header is required`);return B}class Gu extends Headers{getRequired(A){const I=this.get(A);if(I===null)throw Error(`${A} header is required in response`);return I}getOrDefault(A,I){return this.get(A)??I}}var fA;(function(g){g.json="json",g.ssz="ssz"})(fA||(fA={}));function Nu(g){switch(g){case Rg.json:return fA.json;case Rg.ssz:return fA.ssz}}const RA={writeReq:()=>({}),parseReq:()=>{},schema:{}};function Ce(g){return{...g,writeReqSsz:()=>{throw Error("Not implemented")},parseReqSsz:()=>{throw Error("Not implemented")},onlySupport:fA.json}}const ku={toJson:()=>{},fromJson:()=>{},serialize:()=>new Uint8Array,deserialize:()=>{}},JA={toJson:()=>{},fromJson:()=>{},toHeadersObject:()=>({}),fromHeaders:()=>{}},MA={data:ku,meta:JA,isEmpty:!0};function yA(g,A=1/0){if(sI(g))return new uA(g,A);if(Li(g))return new UI(g,A);throw Error(`Unknown type ${g.typeName}`)}function Ru(g){return{toJson:(A,I)=>g(I).toJson(A),fromJson:(A,I)=>g(I).fromJson(A),serialize:(A,I)=>g(I).serialize(A),deserialize:(A,I)=>g(I).deserialize(A)}}function Mg(g){return{toJson:(A,I)=>g(I.version).toJson(A),fromJson:(A,I)=>g(I.version).fromJson(A),serialize:(A,I)=>g(I.version).serialize(A),deserialize:(A,I)=>g(I.version).deserialize(A)}}function Uu(g){return{...g,data:{...g.data,serialize:()=>{throw Error("Not implemented")},deserialize:()=>{throw Error("Not implemented")}},onlySupport:fA.json}}const eg={data:{toJson:g=>fC(g,"snake"),fromJson:g=>{if(typeof g!="object"||g===null)throw Error("JSON must be of type object");return fC(g,"camel")},serialize:()=>{throw Error("Not implemented")},deserialize:()=>{throw Error("Not implemented")}},meta:JA,onlySupport:fA.json};function $A(g){if(g=g.toLowerCase(),!(g in hA))throw Error(`Invalid version ${g}`);return g}function SI(g){if(!vt(g))throw Error(`Invalid fork=${g} for post-altair fork types`);return HA(g)}function Wg(g){if(!oC(g))throw Error(`Invalid fork=${g} for post-bellatrix fork types`);return HA(g)}var W;(function(g){g[g.Uint=0]="Uint",g[g.UintRequired=1]="UintRequired",g[g.UintArray=2]="UintArray",g[g.String=3]="String",g[g.StringRequired=4]="StringRequired",g[g.StringArray=5]="StringArray",g[g.StringArrayRequired=6]="StringArrayRequired",g[g.UintOrStringRequired=7]="UintOrStringRequired",g[g.UintOrStringArray=8]="UintOrStringArray",g[g.Object=9]="Object",g[g.ObjectArray=10]="ObjectArray",g[g.AnyArray=11]="AnyArray",g[g.Boolean=12]="Boolean"})(W||(W={}));function Lu(g){return g.method==="GET"||g.req.schema.body===void 0}var _I;(function(g){g.String="String",g.Variable="Variable"})(_I||(_I={}));function mu(g){const A=[];let I=0,B=!1;for(let C=0,e=g.length;C<e;C++)switch(g[C]){case"{":{if(B)throw Error(`Invalid path variable not closed: ${g}`);C>I&&A.push({type:_I.String,str:g.slice(I,C)}),I=C+1,B=!0;break}case"}":{if(!B)throw Error(`Invalid path variable not open: ${g}`);if(I===C)throw Error(`Empty variable: ${g}`);A.push({type:_I.Variable,var:g.slice(I,C)}),B=!1,I=C+1;break}}if(B)throw Error(`Invalid path variable not closed: ${g}`);return I<g.length&&A.push({type:_I.String,str:g.slice(I)}),A}function Hu(g){const A=mu(g);if(A.length===1&&A[0].type===_I.String)return()=>g;const I=A.map(B=>{switch(B.type){case _I.String:return()=>B.str;case _I.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 Ju(g){const A=parseInt(g,10);if(!Number.isFinite(A))throw Error(`Invalid uin64 ${g}`);return A}function Mu(g){return g.toString(10)}function ze(g){return g?.map(A=>typeof A=="string"?A:Mu(A))}function We(g){return g?.map(A=>typeof A=="string"&&A.startsWith("0x")?A:Ju(A))}const lt=66;function KQ(g){if(g===void 0)return;const A=bg(new TextEncoder().encode(g));return A.length>lt?A.slice(0,lt):A.length<lt?A.padEnd(lt,"0"):A}function YQ(g){if(g!==void 0)try{return new TextDecoder("utf8").decode(nA(g))}catch{return g}}function pB(g){if(g=g.toLowerCase(),g!=="true"&&g!=="false")throw Error(`Invalid boolean ${g}`);return g==="true"}const FB=new Y({version:new jB});FB.fields.version.fromJson=g=>$A(TI.fromJson(g));const Ve=new Y({executionOptimistic:Ig},{jsonCase:"eth2"}),bQ=new Y({...Ve.fields,finalized:Ig},{jsonCase:"eth2"});new Y({...Ve.fields,...FB.fields},{jsonCase:"eth2"});const Vs=new Y({...bQ.fields,...FB.fields},{jsonCase:"eth2"}),Xs=new Y({...Ve.fields,dependentRoot:TI},{jsonCase:"eth2"});var aA;(function(g){g.Version="Eth-Consensus-Version",g.ConsensusBlockValue="Eth-Consensus-Block-Value",g.ExecutionPayloadBlinded="Eth-Execution-Payload-Blinded",g.ExecutionPayloadValue="Eth-Execution-Payload-Value",g.Finalized="Eth-Consensus-Finalized",g.DependentRoot="Eth-Consensus-Dependent-Root",g.ExecutionOptimistic="Eth-Execution-Optimistic",g.ExecutionPayloadSource="Eth-Execution-Payload-Source"})(aA||(aA={}));const qu={toJson:g=>Ve.toJson(g),fromJson:g=>Ve.fromJson(g),toHeadersObject:g=>({[aA.ExecutionOptimistic]:g.executionOptimistic.toString(),[Bg.ExposeHeaders]:aA.ExecutionOptimistic}),fromHeaders:g=>({executionOptimistic:pB(g.getOrDefault(aA.ExecutionOptimistic,"false"))})},CI={toJson:g=>FB.toJson(g),fromJson:g=>FB.fromJson(g),toHeadersObject:g=>({[aA.Version]:g.version,[Bg.ExposeHeaders]:aA.Version}),fromHeaders:g=>({version:$A(g.getRequired(aA.Version))})},Ag={toJson:g=>bQ.toJson(g),fromJson:g=>bQ.fromJson(g),toHeadersObject:g=>({[aA.ExecutionOptimistic]:g.executionOptimistic.toString(),[aA.Finalized]:g.finalized.toString(),[Bg.ExposeHeaders]:[aA.ExecutionOptimistic,aA.Finalized].toString()}),fromHeaders:g=>({executionOptimistic:pB(g.getOrDefault(aA.ExecutionOptimistic,"false")),finalized:pB(g.getOrDefault(aA.Finalized,"false"))})},dB={toJson:g=>Vs.toJson(g),fromJson:g=>Vs.fromJson(g),toHeadersObject:g=>({[aA.ExecutionOptimistic]:g.executionOptimistic.toString(),[aA.Finalized]:g.finalized.toString(),[aA.Version]:g.version,[Bg.ExposeHeaders]:[aA.ExecutionOptimistic,aA.Finalized,aA.Version].toString()}),fromHeaders:g=>({executionOptimistic:pB(g.getOrDefault(aA.ExecutionOptimistic,"false")),finalized:pB(g.getOrDefault(aA.Finalized,"false")),version:$A(g.getRequired(aA.Version))})},$s={toJson:g=>Xs.toJson(g),fromJson:g=>Xs.fromJson(g),toHeadersObject:g=>({[aA.ExecutionOptimistic]:g.executionOptimistic.toString(),[aA.DependentRoot]:g.dependentRoot,[Bg.ExposeHeaders]:[aA.ExecutionOptimistic,aA.DependentRoot].toString()}),fromHeaders:g=>({executionOptimistic:pB(g.getOrDefault(aA.ExecutionOptimistic,"false")),dependentRoot:g.getRequired(aA.DependentRoot)})},A0=new Y({root:QB,canonical:Ig,header:Wi}),Ku=new uA(A0,1e3),g0=new Y({root:QB});var I0;(function(g){g.none="none",g.gossip="gossip",g.consensus="consensus",g.consensusAndEquivocation="consensus_and_equivocation"})(I0||(I0={}));const te={writeReq:({blockId:g})=>({params:{block_id:g.toString()}}),parseReq:({params:g})=>({blockId:g.block_id}),schema:{params:{block_id:W.StringRequired}}};function Yu(g){return{getBlockV2:{url:"/eth/v2/beacon/blocks/{block_id}",method:"GET",req:te,resp:{data:Mg(A=>zg[A].SignedBeaconBlock),meta:dB}},getBlindedBlock:{url:"/eth/v1/beacon/blinded_blocks/{block_id}",method:"GET",req:te,resp:{data:Mg(A=>oC(A)?zg[A].SignedBlindedBeaconBlock:zg[A].SignedBeaconBlock),meta:dB}},getBlockAttestations:{url:"/eth/v1/beacon/blocks/{block_id}/attestations",method:"GET",req:te,resp:{data:sg.fields.attestations,meta:Ag}},getBlockAttestationsV2:{url:"/eth/v2/beacon/blocks/{block_id}/attestations",method:"GET",req:te,resp:{data:Mg(A=>zg[A].BeaconBlockBody.fields.attestations),meta:dB}},getBlockHeader:{url:"/eth/v1/beacon/headers/{block_id}",method:"GET",req:te,resp:{data:A0,meta:Ag}},getBlockHeaders:{url:"/eth/v1/beacon/headers",method:"GET",req:{writeReq:({slot:A,parentRoot:I})=>({query:{slot:A,parent_root:I}}),parseReq:({query:A})=>({slot:A.slot,parentRoot:A.parent_root}),schema:{query:{slot:W.Uint,parent_root:W.String}}},resp:{data:Ku,meta:Ag}},getBlockRoot:{url:"/eth/v1/beacon/blocks/{block_id}/root",method:"GET",req:te,resp:{data:g0,meta:Ag}},publishBlock:{url:"/eth/v1/beacon/blocks",method:"POST",req:{writeReqJson:({signedBlockOrContents:A})=>{const I=st(A)?A.signedBlock.message.slot:A.message.slot,B=g.getForkName(I);return{body:Lg(B)?HA(B).SignedBlockContents.toJson(A):HA(B).SignedBeaconBlock.toJson(A),headers:{[aA.Version]:g.getForkName(I)}}},parseReqJson:({body:A,headers:I})=>{let B;const C=Fg(I,aA.Version,!1);return C!==void 0?B=$A(C):B=g.getForkName(A.signed_block!==void 0?A.signed_block.message.slot:A.message.slot),{signedBlockOrContents:Lg(B)?HA(B).SignedBlockContents.fromJson(A):zg[B].SignedBeaconBlock.fromJson(A)}},writeReqSsz:({signedBlockOrContents:A})=>{const I=st(A)?A.signedBlock.message.slot:A.message.slot,B=g.getForkName(I);return{body:Lg(B)?HA(B).SignedBlockContents.serialize(A):HA(B).SignedBeaconBlock.serialize(A),headers:{[aA.Version]:g.getForkName(I)}}},parseReqSsz:({body:A,headers:I})=>{const B=$A(Fg(I,aA.Version));return{signedBlockOrContents:Lg(B)?HA(B).SignedBlockContents.deserialize(A):zg[B].SignedBeaconBlock.deserialize(A)}},schema:{body:W.Object,headers:{[aA.Version]:W.String}}},resp:MA,init:{requestWireFormat:fA.ssz}},publishBlockV2:{url:"/eth/v2/beacon/blocks",method:"POST",req:{writeReqJson:({signedBlockOrContents:A,broadcastValidation:I})=>{const B=st(A)?A.signedBlock.message.slot:A.message.slot,C=g.getForkName(B);return{body:Lg(C)?HA(C).SignedBlockContents.toJson(A):HA(C).SignedBeaconBlock.toJson(A),headers:{[aA.Version]:C},query:{broadcast_validation:I}}},parseReqJson:({body:A,headers:I,query:B})=>{const C=$A(Fg(I,aA.Version));return{signedBlockOrContents:Lg(C)?HA(C).SignedBlockContents.fromJson(A):zg[C].SignedBeaconBlock.fromJson(A),broadcastValidation:B.broadcast_validation}},writeReqSsz:({signedBlockOrContents:A,broadcastValidation:I})=>{const B=st(A)?A.signedBlock.message.slot:A.message.slot,C=g.getForkName(B);return{body:Lg(C)?HA(C).SignedBlockContents.serialize(A):HA(C).SignedBeaconBlock.serialize(A),headers:{[aA.Version]:C},query:{broadcast_validation:I}}},parseReqSsz:({body:A,headers:I,query:B})=>{const C=$A(Fg(I,aA.Version));return{signedBlockOrContents:Lg(C)?HA(C).SignedBlockContents.deserialize(A):zg[C].SignedBeaconBlock.deserialize(A),broadcastValidation:B.broadcast_validation}},schema:{body:W.Object,query:{broadcast_validation:W.String},headers:{[aA.Version]:W.String}}},resp:MA,init:{requestWireFormat:fA.ssz}},publishBlindedBlock:{url:"/eth/v1/beacon/blinded_blocks",method:"POST",req:{writeReqJson:({signedBlindedBlock:A})=>{const I=g.getForkName(A.message.slot);return{body:Wg(I).SignedBlindedBeaconBlock.toJson(A),headers:{[aA.Version]:I}}},parseReqJson:({body:A,headers:I})=>{let B;const C=Fg(I,aA.Version,!1);return C!==void 0?B=$A(C):B=g.getForkName(A.message.slot),{signedBlindedBlock:Wg(B).SignedBlindedBeaconBlock.fromJson(A)}},writeReqSsz:({signedBlindedBlock:A})=>{const I=g.getForkName(A.message.slot);return{body:Wg(I).SignedBlindedBeaconBlock.serialize(A),headers:{[aA.Version]:I}}},parseReqSsz:({body:A,headers:I})=>{const B=$A(Fg(I,aA.Version));return{signedBlindedBlock:Wg(B).SignedBlindedBeaconBlock.deserialize(A)}},schema:{body:W.Object,headers:{[aA.Version]:W.String}}},resp:MA,init:{requestWireFormat:fA.ssz}},publishBlindedBlockV2:{url:"/eth/v2/beacon/blinded_blocks",method:"POST",req:{writeReqJson:({signedBlindedBlock:A,broadcastValidation:I})=>{const B=g.getForkName(A.message.slot);return{body:Wg(B).SignedBlindedBeaconBlock.toJson(A),headers:{[aA.Version]:B},query:{broadcast_validation:I}}},parseReqJson:({body:A,headers:I,query:B})=>{const C=$A(Fg(I,aA.Version));return{signedBlindedBlock:Wg(C).SignedBlindedBeaconBlock.fromJson(A),broadcastValidation:B.broadcast_validation}},writeReqSsz:({signedBlindedBlock:A,broadcastValidation:I})=>{const B=g.getForkName(A.message.slot);return{body:Wg(B).SignedBlindedBeaconBlock.serialize(A),headers:{[aA.Version]:B},query:{broadcast_validation:I}}},parseReqSsz:({body:A,headers:I,query:B})=>{const C=$A(Fg(I,aA.Version));return{signedBlindedBlock:Wg(C).SignedBlindedBeaconBlock.deserialize(A),broadcastValidation:B.broadcast_validation}},schema:{body:W.Object,query:{broadcast_validation:W.String},headers:{[aA.Version]:W.String}}},resp:MA,init:{requestWireFormat:fA.ssz}},getBlobSidecars:{url:"/eth/v1/beacon/blob_sidecars/{block_id}",method:"GET",req:{writeReq:({blockId:A,indices:I})=>({params:{block_id:A.toString()},query:{indices:I}}),parseReq:({params:A,query:I})=>({blockId:A.block_id,indices:I.indices}),schema:{params:{block_id:W.StringRequired},query:{indices:W.UintArray}}},resp:{data:ss,meta:dB}}}}const OI=yA(MI),ht=yA(UQ),B0=yA(MI),bu=yA(Be),e0=yA(Zg),Tu=yA(vI),vu=yA(qI),_u=yA(KI),Xe=yA($C),St=yA(qa);function Ou(g){return{getPoolAttestations:{url:"/eth/v1/beacon/pool/attestations",method:"GET",req:{writeReq:({slot:A,committeeIndex:I})=>({query:{slot:A,committee_index:I}}),parseReq:({query:A})=>({slot:A.slot,committeeIndex:A.committee_index}),schema:{query:{slot:W.Uint,committee_index:W.Uint}}},resp:{data:B0,meta:JA}},getPoolAttestationsV2:{url:"/eth/v2/beacon/pool/attestations",method:"GET",req:{writeReq:({slot:A,committeeIndex:I})=>({query:{slot:A,committee_index:I}}),parseReq:({query:A})=>({slot:A.slot,committeeIndex:A.committee_index}),schema:{query:{slot:W.Uint,committee_index:W.Uint}}},resp:{data:Mg(A=>ZA(A)?bu:B0),meta:CI}},getPoolAttesterSlashings:{url:"/eth/v1/beacon/pool/attester_slashings",method:"GET",req:RA,resp:{data:e0,meta:JA}},getPoolAttesterSlashingsV2:{url:"/eth/v2/beacon/pool/attester_slashings",method:"GET",req:RA,resp:{data:Mg(A=>ZA(A)?Tu:e0),meta:CI}},getPoolProposerSlashings:{url:"/eth/v1/beacon/pool/proposer_slashings",method:"GET",req:RA,resp:{data:vu,meta:JA}},getPoolVoluntaryExits:{url:"/eth/v1/beacon/pool/voluntary_exits",method:"GET",req:RA,resp:{data:_u,meta:JA}},getPoolBLSToExecutionChanges:{url:"/eth/v1/beacon/pool/bls_to_execution_changes",method:"GET",req:RA,resp:{data:Xe,meta:JA}},submitPoolAttestations:{url:"/eth/v1/beacon/pool/attestations",method:"POST",req:{writeReqJson:({signedAttestations:A})=>({body:OI.toJson(A)}),parseReqJson:({body:A})=>({signedAttestations:OI.fromJson(A)}),writeReqSsz:({signedAttestations:A})=>({body:OI.serialize(A)}),parseReqSsz:({body:A})=>({signedAttestations:OI.deserialize(A)}),schema:{body:W.ObjectArray}},resp:MA},submitPoolAttestationsV2:{url:"/eth/v2/beacon/pool/attestations",method:"POST",req:{writeReqJson:({signedAttestations:A})=>{const I=g.getForkName(A[0]?.data.slot??0);return{body:ZA(I)?ht.toJson(A):OI.toJson(A),headers:{[aA.Version]:I}}},parseReqJson:({body:A,headers:I})=>{const B=$A(Fg(I,aA.Version));return{signedAttestations:ZA(B)?ht.fromJson(A):OI.fromJson(A)}},writeReqSsz:({signedAttestations:A})=>{const I=g.getForkName(A[0]?.data.slot??0);return{body:ZA(I)?ht.serialize(A):OI.serialize(A),headers:{[aA.Version]:I}}},parseReqSsz:({body:A,headers:I})=>{const B=$A(Fg(I,aA.Version));return{signedAttestations:ZA(B)?ht.deserialize(A):OI.deserialize(A)}},schema:{body:W.ObjectArray,headers:{[aA.Version]:W.String}}},resp:MA},submitPoolAttesterSlashings:{url:"/eth/v1/beacon/pool/attester_slashings",method:"POST",req:{writeReqJson:({attesterSlashing:A})=>({body:Zg.toJson(A)}),parseReqJson:({body:A})=>({attesterSlashing:Zg.fromJson(A)}),writeReqSsz:({attesterSlashing:A})=>({body:Zg.serialize(A)}),parseReqSsz:({body:A})=>({attesterSlashing:Zg.deserialize(A)}),schema:{body:W.Object}},resp:MA},submitPoolAttesterSlashingsV2:{url:"/eth/v2/beacon/pool/attester_slashings",method:"POST",req:{writeReqJson:({attesterSlashing:A})=>{const I=g.getForkName(Number(A.attestation1.data.slot));return{body:ZA(I)?vI.toJson(A):Zg.toJson(A),headers:{[aA.Version]:I}}},parseReqJson:({body:A,headers:I})=>{const B=$A(Fg(I,aA.Version));return{attesterSlashing:ZA(B)?vI.fromJson(A):Zg.fromJson(A)}},writeReqSsz:({attesterSlashing:A})=>{const I=g.getForkName(Number(A.attestation1.data.slot));return{body:ZA(I)?vI.serialize(A):Zg.serialize(A),headers:{[aA.Version]:I}}},parseReqSsz:({body:A,headers:I})=>{const B=$A(Fg(I,aA.Version));return{attesterSlashing:ZA(B)?vI.deserialize(A):Zg.deserialize(A)}},schema:{body:W.Object,headers:{[aA.Version]:W.String}}},resp:MA},submitPoolProposerSlashings:{url:"/eth/v1/beacon/pool/proposer_slashings",method:"POST",req:{writeReqJson:({proposerSlashing:A})=>({body:qI.toJson(A)}),parseReqJson:({body:A})=>({proposerSlashing:qI.fromJson(A)}),writeReqSsz:({proposerSlashing:A})=>({body:qI.serialize(A)}),parseReqSsz:({body:A})=>({proposerSlashing:qI.deserialize(A)}),schema:{body:W.Object}},resp:MA},submitPoolVoluntaryExit:{url:"/eth/v1/beacon/pool/voluntary_exits",method:"POST",req:{writeReqJson:({signedVoluntaryExit:A})=>({body:KI.toJson(A)}),parseReqJson:({body:A})=>({signedVoluntaryExit:KI.fromJson(A)}),writeReqSsz:({signedVoluntaryExit:A})=>({body:KI.serialize(A)}),parseReqSsz:({body:A})=>({signedVoluntaryExit:KI.deserialize(A)}),schema:{body:W.Object}},resp:MA},submitPoolBLSToExecutionChange:{url:"/eth/v1/beacon/pool/bls_to_execution_changes",method:"POST",req:{writeReqJson:({blsToExecutionChanges:A})=>({body:Xe.toJson(A)}),parseReqJson:({body:A})=>({blsToExecutionChanges:Xe.fromJson(A)}),writeReqSsz:({blsToExecutionChanges:A})=>({body:Xe.serialize(A)}),parseReqSsz:({body:A})=>({blsToExecutionChanges:Xe.deserialize(A)}),schema:{body:W.ObjectArray}},resp:MA},submitPoolSyncCommitteeSignatures:{url:"/eth/v1/beacon/pool/sync_committees",method:"POST",req:{writeReqJson:({signatures:A})=>({body:St.toJson(A)}),parseReqJson:({body:A})=>({signatures:St.fromJson(A)}),writeReqSsz:({signatures:A})=>({body:St.serialize(A)}),parseReqSsz:({body:A})=>({signatures:St.deserialize(A)}),schema:{body:W.ObjectArray}},resp:MA}}}const Zu=new Y({proposerIndex:PA,total:FA,attestations:FA,syncAggregate:FA,proposerSlashings:FA,attesterSlashings:FA},{jsonCase:"eth2"}),C0=new Y({head:FA,target:FA,source:FA,inclusionDelay:FA,inactivity:FA},{jsonCase:"eth2"}),xu=new Y({...C0.fields,effectiveBalance:FA},{jsonCase:"eth2"}),ju=new Y({...C0.fields,validatorIndex:PA},{jsonCase:"eth2"}),Pu=new Y({idealRewards:yA(xu),totalRewards:yA(ju)},{jsonCase:"eth2"}),zu=yA(new Y({validatorIndex:PA,reward:FA},{jsonCase:"eth2"}));function Wu(g){return{getBlockRewards:{url:"/eth/v1/beacon/rewards/blocks/{block_id}",method:"GET",req:{writeReq:({blockId:A})=>({params:{block_id:A.toString()}}),parseReq:({params:A})=>({blockId:A.block_id}),schema:{params:{block_id:W.StringRequired}}},resp:{data:Zu,meta:Ag}},getAttestationsRewards:{url:"/eth/v1/beacon/rewards/attestations/{epoch}",method:"POST",req:Ce({writeReqJson:({epoch:A,validatorIds:I})=>({params:{epoch:A},body:ze(I)||[]}),parseReqJson:({params:A,body:I})=>({epoch:A.epoch,validatorIds:We(I)}),schema:{params:{epoch:W.UintRequired},body:W.UintOrStringArray}}),resp:{data:Pu,meta:Ag}},getSyncCommitteeRewards:{url:"/eth/v1/beacon/rewards/sync_committee/{block_id}",method:"POST",req:Ce({writeReqJson:({blockId:A,validatorIds:I})=>({params:{block_id:A.toString()},body:ze(I)||[]}),parseReqJson:({params:A,body:I})=>({blockId:A.block_id,validatorIds:We(I)}),schema:{params:{block_id:W.StringRequired},body:W.UintOrStringArray}}),resp:{data:zu,meta:Ag}}}}const Vu=new Y({randao:QB}),Xu=new Y({previousJustified:LA,currentJustified:LA,finalized:LA},{jsonCase:"eth2"}),t0=new Y({index:PA,balance:FA,status:new jB,validator:Fa}),$u=new Y({index:PA,pubkey:TB,activationEpoch:FA},{jsonCase:"eth2"}),Af=new Y({index:iB,slot:vA,validators:yA(PA,he)}),gf=new Y({index:PA,balance:FA}),If=new Y({validators:yA(PA),validatorAggregates:yA(yA(PA))},{jsonCase:"eth2"}),i0=yA(t0),Bf=yA($u),ef=yA(Af),Q0=yA(gf),$e={writeReq:({stateId:g})=>({params:{state_id:g.toString()}}),parseReq:({params:g})=>({stateId:g.state_id}),schema:{params:{state_id:W.StringRequired}}};function Cf(g){return{getEpochCommittees:{url:"/eth/v1/beacon/states/{state_id}/committees",method:"GET",req:{writeReq:({stateId:A,epoch:I,index:B,slot:C})=>({params:{state_id:A.toString()},query:{epoch:I,index:B,slot:C}}),parseReq:({params:A,query:I})=>({stateId:A.state_id,epoch:I.epoch,index:I.index,slot:I.slot}),schema:{params:{state_id:W.StringRequired},query:{slot:W.Uint,epoch:W.Uint,index:W.Uint}}},resp:{data:ef,meta:Ag}},getEpochSyncCommittees:{url:"/eth/v1/beacon/states/{state_id}/sync_committees",method:"GET",req:{writeReq:({stateId:A,epoch:I})=>({params:{state_id:A.toString()},query:{epoch:I}}),parseReq:({params:A,query:I})=>({stateId:A.state_id,epoch:I.epoch}),schema:{params:{state_id:W.StringRequired},query:{epoch:W.Uint}}},resp:{data:If,meta:Ag}},getStateFinalityCheckpoints:{url:"/eth/v1/beacon/states/{state_id}/finality_checkpoints",method:"GET",req:$e,resp:{data:Xu,meta:Ag}},getStateFork:{url:"/eth/v1/beacon/states/{state_id}/fork",method:"GET",req:$e,resp:{data:lI,meta:Ag}},getStateRoot:{url:"/eth/v1/beacon/states/{state_id}/root",method:"GET",req:$e,resp:{data:g0,meta:Ag}},getStateRandao:{url:"/eth/v1/beacon/states/{state_id}/randao",method:"GET",req:{writeReq:({stateId:A,epoch:I})=>({params:{state_id:A.toString()},query:{epoch:I}}),parseReq:({params:A,query:I})=>({stateId:A.state_id,epoch:I.epoch}),schema:{params:{state_id:W.StringRequired},query:{epoch:W.Uint}}},resp:{data:Vu,meta:Ag}},getStateValidator:{url:"/eth/v1/beacon/states/{state_id}/validators/{validator_id}",method:"GET",req:{writeReq:({stateId:A,validatorId:I})=>({params:{state_id:A.toString(),validator_id:I}}),parseReq:({params:A})=>({stateId:A.state_id,validatorId:A.validator_id}),schema:{params:{state_id:W.StringRequired,validator_id:W.StringRequired}}},resp:{onlySupport:fA.json,data:t0,meta:Ag}},getStateValidators:{url:"/eth/v1/beacon/states/{state_id}/validators",method:"GET",req:{writeReq:({stateId:A,validatorIds:I,statuses:B})=>({params:{state_id:A.toString()},query:{id:I,status:B}}),parseReq:({params:A,query:I})=>({stateId:A.state_id,validatorIds:I.id,statuses:I.status}),schema:{params:{state_id:W.StringRequired},query:{id:W.UintOrStringArray,status:W.StringArray}}},resp:{onlySupport:fA.json,data:i0,meta:Ag}},postStateValidators:{url:"/eth/v1/beacon/states/{state_id}/validators",method:"POST",req:Ce({writeReqJson:({stateId:A,validatorIds:I,statuses:B})=>({params:{state_id:A.toString()},body:{ids:ze(I),statuses:B}}),parseReqJson:({params:A,body:I={}})=>({stateId:A.state_id,validatorIds:We(I.ids),statuses:I.statuses}),schema:{params:{state_id:W.StringRequired},body:W.Object}}),resp:{onlySupport:fA.json,data:i0,meta:Ag}},postStateValidatorIdentities:{url:"/eth/v1/beacon/states/{state_id}/validator_identities",method:"POST",req:Ce({writeReqJson:({stateId:A,validatorIds:I})=>({params:{state_id:A.toString()},body:ze(I)||[]}),parseReqJson:({params:A,body:I=[]})=>({stateId:A.state_id,validatorIds:We(I)}),schema:{params:{state_id:W.StringRequired},body:W.UintOrStringArray}}),resp:{data:Bf,meta:Ag}},getStateValidatorBalances:{url:"/eth/v1/beacon/states/{state_id}/validator_balances",method:"GET",req:{writeReq:({stateId:A,validatorIds:I})=>({params:{state_id:A.toString()},query:{id:I}}),parseReq:({params:A,query:I})=>({stateId:A.state_id,validatorIds:I.id}),schema:{params:{state_id:W.StringRequired},query:{id:W.UintOrStringArray}}},resp:{data:Q0,meta:Ag}},postStateValidatorBalances:{url:"/eth/v1/beacon/states/{state_id}/validator_balances",method:"POST",req:Ce({writeReqJson:({stateId:A,validatorIds:I})=>({params:{state_id:A.toString()},body:ze(I)||[]}),parseReqJson:({params:A,body:I=[]})=>({stateId:A.state_id,validatorIds:We(I)}),schema:{params:{state_id:W.StringRequired},body:W.UintOrStringArray}}),resp:{data:Q0,meta:Ag}},getPendingDeposits:{url:"/eth/v1/beacon/states/{state_id}/pending_deposits",method:"GET",req:$e,resp:{data:HQ,meta:dB}},getPendingPartialWithdrawals:{url:"/eth/v1/beacon/states/{state_id}/pending_partial_withdrawals",method:"GET",req:$e,resp:{data:JQ,meta:dB}}}}function tf(g){return{getGenesis:{url:"/eth/v1/beacon/genesis",method:"GET",req:RA,resp:{data:La,meta:JA}},...Yu(g),...Ou(g),...Cf(),...Wu()}}const Qf=new Y({chainId:FA,address:Pi},{jsonCase:"eth2"}),Ef=yA(lI);function of(g){return{getDepositContract:{url:"/eth/v1/config/deposit_contract",method:"GET",req:RA,resp:{data:Qf,meta:JA}},getForkSchedule:{url:"/eth/v1/config/fork_schedule",method:"GET",req:RA,resp:{data:Ef,meta:JA}},getSpec:{url:"/eth/v1/config/spec",method:"GET",req:RA,resp:Uu({data:{toJson:A=>A,fromJson:A=>{if(typeof A!="object"||A===null)throw Error("JSON must be of type object");return A}},meta:JA})}}}const Eg=new jB,nf=new Y({executionPayloadBlockHash:Eg,executionPayloadNumber:FA,executionStatus:Eg,slot:vA,blockRoot:Eg,parentRoot:Eg,stateRoot:Eg,targetRoot:Eg,timeliness:Ig,justifiedEpoch:_g,justifiedRoot:Eg,finalizedEpoch:_g,finalizedRoot:Eg,unrealizedJustifiedEpoch:_g,unrealizedJustifiedRoot:Eg,unrealizedFinalizedEpoch:_g,unrealizedFinalizedRoot:Eg,parent:Eg,weight:vi,bestChild:Eg,bestDescendant:Eg},{jsonCase:"eth2"}),rf=new Y({slot:vA,root:Eg,executionOptimistic:Ig},{jsonCase:"eth2"}),af=new Y({slot:vA,blockRoot:Eg,parentRoot:Eg,justifiedEpoch:_g,finalizedEpoch:_g,weight:FA,validity:new jB,executionBlockHash:Eg},{jsonCase:"eth2"}),sf=new Y({justifiedCheckpoint:LA,finalizedCheckpoint:LA,forkChoiceNodes:yA(af)},{jsonCase:"eth2"}),cf=yA(nf),lf=yA(rf);function hf(g){return{getDebugChainHeadsV2:{url:"/eth/v2/debug/beacon/heads",method:"GET",req:RA,resp:{data:lf,meta:JA,onlySupport:fA.json}},getDebugForkChoice:{url:"/eth/v1/debug/fork_choice",method:"GET",req:RA,resp:{data:sf,meta:JA,onlySupport:fA.json,transform:{toResponse:A=>({...A}),fromResponse:A=>({data:A})}}},getProtoArrayNodes:{url:"/eth/v0/debug/forkchoice",method:"GET",req:RA,resp:{data:cf,meta:JA,onlySupport:fA.json}},getStateV2:{url:"/eth/v2/debug/beacon/states/{state_id}",method:"GET",req:{writeReq:({stateId:A})=>({params:{state_id:A.toString()}}),parseReq:({params:A})=>({stateId:A.state_id}),schema:{params:{state_id:W.StringRequired}}},resp:{data:Mg(A=>zg[A].BeaconState),meta:dB},init:{timeoutMs:3e5}}}}const yg=new jB,Sf=new Y({blockRoot:yg,index:xi,slot:vA,kzgCommitment:yg,versionedHash:yg},{typeName:"BlobSidecarSSE",jsonCase:"eth2"});var lA;(function(g){g.head="head",g.block="block",g.blockGossip="block_gossip",g.attestation="attestation",g.singleAttestation="single_attestation",g.voluntaryExit="voluntary_exit",g.proposerSlashing="proposer_slashing",g.attesterSlashing="attester_slashing",g.blsToExecutionChange="bls_to_execution_change",g.finalizedCheckpoint="finalized_checkpoint",g.chainReorg="chain_reorg",g.contributionAndProof="contribution_and_proof",g.lightClientOptimisticUpdate="light_client_optimistic_update",g.lightClientFinalityUpdate="light_client_finality_update",g.payloadAttributes="payload_attributes",g.blobSidecar="blob_sidecar"})(lA||(lA={})),lA.head+"",lA.head,lA.block+"",lA.block,lA.blockGossip+"",lA.blockGossip,lA.attestation+"",lA.attestation,lA.singleAttestation+"",lA.singleAttestation,lA.voluntaryExit+"",lA.voluntaryExit,lA.proposerSlashing+"",lA.proposerSlashing,lA.attesterSlashing+"",lA.attesterSlashing,lA.blsToExecutionChange+"",lA.blsToExecutionChange,lA.finalizedCheckpoint+"",lA.finalizedCheckpoint,lA.chainReorg+"",lA.chainReorg,lA.contributionAndProof+"",lA.contributionAndProof,lA.lightClientOptimisticUpdate+"",lA.lightClientOptimisticUpdate,lA.lightClientFinalityUpdate+"",lA.lightClientFinalityUpdate,lA.payloadAttributes+"",lA.payloadAttributes,lA.blobSidecar+"",lA.blobSidecar;function wf(g){return{eventstream:{url:"/eth/v1/events",method:"GET",req:{writeReq:({topics:A})=>({query:{topics:A}}),parseReq:({query:A})=>({topics:A.topics}),schema:{query:{topics:W.StringArrayRequired}}},resp:MA}}}function Df(g){const A=I=>({toJson:({data:B,version:C})=>({data:I(C).toJson(B),version:C}),fromJson:B=>{const{version:C}=FB.fromJson(B);return{data:I(C).fromJson(B.data),version:C}}});return{[lA.head]:new Y({slot:vA,block:yg,state:yg,epochTransition:Ig,previousDutyDependentRoot:yg,currentDutyDependentRoot:yg,executionOptimistic:Ig},{jsonCase:"eth2"}),[lA.block]:new Y({slot:vA,block:yg,executionOptimistic:Ig},{jsonCase:"eth2"}),[lA.blockGossip]:new Y({slot:vA,block:yg},{jsonCase:"eth2"}),[lA.attestation]:{toJson:I=>{const B=g.getForkName(I.data.slot);return HA(B).Attestation.toJson(I)},fromJson:I=>{const B=g.getForkName(I.data.slot);return HA(B).Attestation.fromJson(I)}},[lA.singleAttestation]:UQ,[lA.voluntaryExit]:KI,[lA.proposerSlashing]:qI,[lA.attesterSlashing]:{toJson:I=>{const B=g.getForkName(Number(I.attestation1.data.slot));return HA(B).AttesterSlashing.toJson(I)},fromJson:I=>{const B=g.getForkName(Number(I.attestation1.data.slot));return HA(B).AttesterSlashing.fromJson(I)}},[lA.blsToExecutionChange]:$C,[lA.finalizedCheckpoint]:new Y({block:yg,state:yg,epoch:_g,executionOptimistic:Ig},{jsonCase:"eth2"}),[lA.chainReorg]:new Y({slot:vA,depth:FA,oldHeadBlock:yg,newHeadBlock:yg,oldHeadState:yg,newHeadState:yg,epoch:_g,executionOptimistic:Ig},{jsonCase:"eth2"}),[lA.contributionAndProof]:iQ,[lA.payloadAttributes]:A(I=>Wg(I).SSEPayloadAttributes),[lA.blobSidecar]:Sf,[lA.lightClientOptimisticUpdate]:A(I=>SI(I).LightClientOptimisticUpdate),[lA.lightClientFinalityUpdate]:A(I=>SI(I).LightClientFinalityUpdate)}}function yf(g){const A=Df(g);return{toJson:I=>A[I.type].toJson(I.message),fromJson:(I,B)=>A[I].fromJson(B)}}const E0={...pI,PRESET_BASE:fg.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:nA("0x0b98057ea310f4d31f2a452b414647007d1645d9"),MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS:16384,MIN_GENESIS_TIME:1638968400,MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:4096,GENESIS_FORK_VERSION:nA("0x00000064"),GENESIS_DELAY:6e3,ALTAIR_FORK_VERSION:nA("0x01000064"),ALTAIR_FORK_EPOCH:512,BELLATRIX_FORK_VERSION:nA("0x02000064"),BELLATRIX_FORK_EPOCH:385536,CAPELLA_FORK_VERSION:nA("0x03000064"),CAPELLA_FORK_EPOCH:648704,DENEB_FORK_VERSION:nA("0x04000064"),DENEB_FORK_EPOCH:889856,ELECTRA_FORK_VERSION:nA("0x05000064"),ELECTRA_FORK_EPOCH:1/0,FULU_FORK_VERSION:nA("0x06000064"),FULU_FORK_EPOCH:1/0,MAX_PER_EPOCH_ACTIVATION_EXIT_CHURN_LIMIT:64e9,BLOB_SIDECAR_SUBNET_COUNT_ELECTRA:2,MAX_BLOBS_PER_BLOCK_ELECTRA:2,MAX_REQUEST_BLOB_SIDECARS_ELECTRA:256},uf={...E0,CONFIG_NAME:"chiado",TERMINAL_TOTAL_DIFFICULTY:BigInt("231707791542740786049188744689299064356246512"),DEPOSIT_CHAIN_ID:10200,DEPOSIT_NETWORK_ID:10200,DEPOSIT_CONTRACT_ADDRESS:nA("0xb97036A26259B7147018913bD58a774cf91acf25"),MIN_GENESIS_TIME:1665396e3,MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:6e3,GENESIS_FORK_VERSION:nA("0x0000006f"),GENESIS_DELAY:300,ALTAIR_FORK_VERSION:nA("0x0100006f"),ALTAIR_FORK_EPOCH:90,BELLATRIX_FORK_VERSION:nA("0x0200006f"),BELLATRIX_FORK_EPOCH:180,CAPELLA_FORK_VERSION:nA("0x0300006f"),CAPELLA_FORK_EPOCH:244224,DENEB_FORK_VERSION:nA("0x0400006f"),DENEB_FORK_EPOCH:516608,ELECTRA_FORK_VERSION:nA("0x0500006f"),ELECTRA_FORK_EPOCH:948224,FULU_FORK_VERSION:nA("0x0600006f"),FULU_FORK_EPOCH:1/0},AC={...pI,CONFIG_NAME:"ephemery",MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:64,MIN_GENESIS_TIME:1638471600,GENESIS_FORK_VERSION:nA("0x1000101b"),GENESIS_DELAY:300,ALTAIR_FORK_VERSION:nA("0x2000101b"),ALTAIR_FORK_EPOCH:0,BELLATRIX_FORK_VERSION:nA("0x3000101b"),BELLATRIX_FORK_EPOCH:0,TERMINAL_TOTAL_DIFFICULTY:BigInt("0"),CAPELLA_FORK_VERSION:nA("0x4000101b"),CAPELLA_FORK_EPOCH:0,DENEB_FORK_VERSION:nA("0x5000101b"),DENEB_FORK_EPOCH:0,ELECTRA_FORK_VERSION:nA("0x6000101b"),ELECTRA_FORK_EPOCH:10,FULU_FORK_VERSION:nA("0x7000101b"),FULU_FORK_EPOCH:1/0,DEPOSIT_CHAIN_ID:39438e3,DEPOSIT_NETWORK_ID:39438e3,DEPOSIT_CONTRACT_ADDRESS:nA("0x4242424242424242424242424242424242424242"),ETH1_FOLLOW_DISTANCE:12},o0=6048e5,TQ=Math.floor(Date.now()-AC.MIN_GENESIS_TIME)/o0,vQ={...AC,MIN_GENESIS_TIME:o0*TQ+AC.MIN_GENESIS_TIME,DEPOSIT_CHAIN_ID:AC.DEPOSIT_CHAIN_ID+TQ,DEPOSIT_NETWORK_ID:AC.DEPOSIT_NETWORK_ID+TQ},ff={...pI,CONFIG_NAME:"holesky",MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:16384,MIN_GENESIS_TIME:1695902100,GENESIS_DELAY:300,GENESIS_FORK_VERSION:nA("0x01017000"),ALTAIR_FORK_VERSION:nA("0x02017000"),ALTAIR_FORK_EPOCH:0,BELLATRIX_FORK_VERSION:nA("0x03017000"),BELLATRIX_FORK_EPOCH:0,TERMINAL_TOTAL_DIFFICULTY:BigInt("0"),CAPELLA_FORK_VERSION:nA("0x04017000"),CAPELLA_FORK_EPOCH:256,DENEB_FORK_VERSION:nA("0x05017000"),DENEB_FORK_EPOCH:29696,ELECTRA_FORK_VERSION:nA("0x06017000"),ELECTRA_FORK_EPOCH:115968,FULU_FORK_VERSION:nA("0x07017000"),FULU_FORK_EPOCH:1/0,EJECTION_BALANCE:28e9,DEPOSIT_CHAIN_ID:17e3,DEPOSIT_NETWORK_ID:17e3,DEPOSIT_CONTRACT_ADDRESS:nA("0x4242424242424242424242424242424242424242")},pf={...pI,CONFIG_NAME:"hoodi",MIN_GENESIS_TIME:1742212800,GENESIS_DELAY:600,GENESIS_FORK_VERSION:nA("0x10000910"),ALTAIR_FORK_VERSION:nA("0x20000910"),ALTAIR_FORK_EPOCH:0,BELLATRIX_FORK_VERSION:nA("0x30000910"),BELLATRIX_FORK_EPOCH:0,TERMINAL_TOTAL_DIFFICULTY:BigInt("0"),CAPELLA_FORK_VERSION:nA("0x40000910"),CAPELLA_FORK_EPOCH:0,DENEB_FORK_VERSION:nA("0x50000910"),DENEB_FORK_EPOCH:0,ELECTRA_FORK_VERSION:nA("0x60000910"),ELECTRA_FORK_EPOCH:2048,FULU_FORK_VERSION:nA("0x70000910"),FULU_FORK_EPOCH:1/0,DEPOSIT_CHAIN_ID:560048,DEPOSIT_NETWORK_ID:560048},Ff={...pI,CONFIG_NAME:"mainnet",DEPOSIT_CONTRACT_ADDRESS:nA("0x00000000219ab540356cBB839Cbe05303d7705Fa"),DEPOSIT_CHAIN_ID:1,DEPOSIT_NETWORK_ID:1,MIN_GENESIS_TIME:1606824e3,GENESIS_DELAY:604800},df={...pI,CONFIG_NAME:"sepolia",MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:1300,MIN_GENESIS_TIME:1655647200,GENESIS_FORK_VERSION:nA("0x90000069"),GENESIS_DELAY:86400,ALTAIR_FORK_VERSION:nA("0x90000070"),ALTAIR_FORK_EPOCH:50,BELLATRIX_FORK_VERSION:nA("0x90000071"),BELLATRIX_FORK_EPOCH:100,TERMINAL_TOTAL_DIFFICULTY:BigInt("17000000000000000"),CAPELLA_FORK_VERSION:nA("0x90000072"),CAPELLA_FORK_EPOCH:56832,DENEB_FORK_VERSION:nA("0x90000073"),DENEB_FORK_EPOCH:132608,ELECTRA_FORK_VERSION:nA("0x90000074"),ELECTRA_FORK_EPOCH:222464,FULU_FORK_VERSION:nA("0x90000075"),FULU_FORK_EPOCH:1/0,DEPOSIT_CHAIN_ID:11155111,DEPOSIT_NETWORK_ID:11155111,DEPOSIT_CONTRACT_ADDRESS:nA("0x7f02C3E3c98b133055B8B348B2Ac625669Ed295D")},ie={mainnet:Ff,gnosis:E0,sepolia:df,holesky:ff,hoodi:pf,chiado:uf,ephemery:vQ},Gf={mainnet:{genesisTime:1606824023,genesisValidatorsRoot:"0x4b363db94e286120d76eb905340fdd4e54bfe9f06bf33ff6cf5ad27f511bfe95"},gnosis:{genesisTime:1638993340,genesisValidatorsRoot:"0xf5dcb5564e829aab27264b9becd5dfaa017085611224cb3036f573368dbb9d47"},sepolia:{genesisTime:1655733600,genesisValidatorsRoot:"0xd8ea171f3c94aea21ebc42a1ed61052acf3f9209c00e4efbaaddac09ed9b8078"},holesky:{genesisTime:1695902400,genesisValidatorsRoot:"0x9143aa7c615a7f7115e2b6aac319c03529df8242ae705fba9df39b79c59fa8b1"},hoodi:{genesisTime:1742213400,genesisValidatorsRoot:"0x212f13fc4df078b6cb7db228f1c8307566dcecf900867401a92023d7ba99cb5f"},chiado:{genesisTime:1665396300,genesisValidatorsRoot:"0x9d642dac73058fbf39c0ae41ab1e34e4d889043cb199851ded7095bc99eb4c1e"},ephemery:{genesisTime:vQ.MIN_GENESIS_TIME+vQ.GENESIS_DELAY,genesisValidatorsRoot:"0x0000000000000000000000000000000000000000000000000000000000000000"}},Nf=new uA(QB,1e4);function kf(g){let A;const I=()=>{if(A===void 0){const B=Gf[g.CONFIG_NAME]?.genesisValidatorsRoot;A=zs(g,B?nA(B):K2)}return A};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:W.UintRequired,count:W.UintRequired}}},resp:{data:{toJson:(B,C)=>{const e=[];for(const[t,i]of B.entries())e.push(SI(C.versions[t]).LightClientUpdate.toJson(i));return e},fromJson:(B,C)=>{const e=B,t=[];for(let i=0;i<e.length;i++){const E=C.versions[i];t.push(SI(E).LightClientUpdate.fromJson(e[i]))}return t},serialize:(B,C)=>{const e=[];for(const[t,i]of B.entries()){const E=C.versions[t],c=I().forkName2ForkDigest(E),n=SI(E).LightClientUpdate.serialize(i),s=FA.serialize(4+n.length);e.push(s,c,n)}return mA.concat(e)},deserialize:B=>{let C=0;const e=[];for(;C<B.length;){const t=FA.deserialize(B.subarray(C,C+8)),i=ji.deserialize(B.subarray(C+8,C+12)),E=I().forkDigest2ForkName(i);e.push(SI(E).LightClientUpdate.deserialize(B.subarray(C+12,C+8+t))),C+=8+t}return e}},meta:{toJson:B=>B,fromJson:B=>B,toHeadersObject:B=>({[aA.Version]:B.versions.join(",")}),fromHeaders:B=>{const C=B.getOrDefault(aA.Version,"");return{versions:C===""?[]:C.split(",")}}},transform:{toResponse:(B,C)=>{const e=B,t=[];for(let i=0;i<e.length;i++)t.push({data:e[i],version:C.versions[i]});return t},fromResponse:B=>{if(!Array.isArray(B))throw Error("JSON is not an array");const C=[],e={versions:[]};for(const{data:t,version:i}of B)C.push(t),e.versions.push($A(i));return{data:C,meta:e}}}}},getLightClientOptimisticUpdate:{url:"/eth/v1/beacon/light_client/optimistic_update",method:"GET",req:RA,resp:{data:Mg(B=>SI(B).LightClientOptimisticUpdate),meta:CI}},getLightClientFinalityUpdate:{url:"/eth/v1/beacon/light_client/finality_update",method:"GET",req:RA,resp:{data:Mg(B=>SI(B).LightClientFinalityUpdate),meta:CI}},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:W.StringRequired}}},resp:{data:Mg(B=>SI(B).LightClientBootstrap),meta:CI}},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:W.UintRequired,count:W.UintRequired}}},resp:{data:Nf,meta:JA}}}}const Rf=new Y({historicalSummaries:wQ,proof:yA(Ki)},{jsonCase:"eth2"});function Uf(g){return{writeHeapdump:{url:"/eth/v1/lodestar/write_heapdump",method:"POST",req:{writeReq:({thread:A,dirpath:I})=>({query:{thread:A,dirpath:I}}),parseReq:({query:A})=>({thread:A.thread,dirpath:A.dirpath}),schema:{query:{thread:W.String,dirpath:W.String}}},resp:eg},writeProfile:{url:"/eth/v1/lodestar/write_profile",method:"POST",req:{writeReq:({thread:A,duration:I,dirpath:B})=>({query:{thread:A,duration:I,dirpath:B}}),parseReq:({query:A})=>({thread:A.thread,duration:A.duration,dirpath:A.dirpath}),schema:{query:{thread:W.String,duration:W.Uint,dirpath:W.String}}},resp:eg},getLatestWeakSubjectivityCheckpointEpoch:{url:"/eth/v1/lodestar/ws_epoch",method:"GET",req:RA,resp:eg},getSyncChainsDebugState:{url:"/eth/v1/lodestar/sync_chains_debug_state",method:"GET",req:RA,resp:eg},getGossipQueueItems:{url:"/eth/v1/lodestar/gossip_queue_items/:gossipType",method:"GET",req:{writeReq:({gossipType:A})=>({params:{gossipType:A}}),parseReq:({params:A})=>({gossipType:A.gossipType}),schema:{params:{gossipType:W.StringRequired}}},resp:eg},getRegenQueueItems:{url:"/eth/v1/lodestar/regen_queue_items",method:"GET",req:RA,resp:eg},getBlockProcessorQueueItems:{url:"/eth/v1/lodestar/block_processor_queue_items",method:"GET",req:RA,resp:eg},getStateCacheItems:{url:"/eth/v1/lodestar/state_cache_items",method:"GET",req:RA,resp:eg},getGossipPeerScoreStats:{url:"/eth/v1/lodestar/gossip_peer_score_stats",method:"GET",req:RA,resp:eg},getLodestarPeerScoreStats:{url:"/eth/v1/lodestar/lodestar_peer_score_stats",method:"GET",req:RA,resp:eg},runGC:{url:"/eth/v1/lodestar/gc",method:"POST",req:RA,resp:MA},dropStateCache:{url:"/eth/v1/lodestar/drop_state_cache",method:"POST",req:RA,resp:MA},connectPeer:{url:"/eth/v1/lodestar/connect_peer",method:"POST",req:{writeReq:({peerId:A,multiaddrs:I})=>({query:{peerId:A,multiaddr:I}}),parseReq:({query:A})=>({peerId:A.peerId,multiaddrs:A.multiaddr}),schema:{query:{peerId:W.StringRequired,multiaddr:W.StringArray}}},resp:MA},disconnectPeer:{url:"/eth/v1/lodestar/disconnect_peer",method:"POST",req:{writeReq:({peerId:A})=>({query:{peerId:A}}),parseReq:({query:A})=>({peerId:A.peerId}),schema:{query:{peerId:W.StringRequired}}},resp:MA},getPeers:{url:"/eth/v1/lodestar/peers",method:"GET",req:{writeReq:({state:A,direction:I})=>({query:{state:A,direction:I}}),parseReq:({query:A})=>({state:A.state,direction:A.direction}),schema:{query:{state:W.StringArray,direction:W.StringArray}}},resp:eg},getBlacklistedBlocks:{url:"/eth/v1/lodestar/blacklisted_blocks",method:"GET",req:RA,resp:eg},getHistoricalSummaries:{url:"/eth/v1/lodestar/historical_summaries/{state_id}",method:"GET",req:{writeReq:({stateId:A})=>({params:{state_id:A.toString()}}),parseReq:({params:A})=>({stateId:A.state_id}),schema:{params:{state_id:W.StringRequired}}},resp:{data:Rf,meta:JA}},discv5GetKadValues:{url:"/eth/v1/debug/discv5_kad_values",method:"GET",req:RA,resp:eg},dumpDbBucketKeys:{url:"/eth/v1/debug/dump_db_bucket_keys/:bucket",method:"GET",req:{writeReq:({bucket:A})=>({params:{bucket:A}}),parseReq:({params:A})=>({bucket:A.bucket}),schema:{params:{bucket:W.String}}},resp:eg},dumpDbStateIndex:{url:"/eth/v1/debug/dump_db_state_index",method:"GET",req:RA,resp:eg}}}const Lf=new Y({peerId:TI,enr:TI,p2pAddresses:yA(TI),discoveryAddresses:yA(TI),metadata:Ma},{jsonCase:"eth2"}),mf=new Y({disconnected:FA,connecting:FA,connected:FA,disconnecting:FA},{jsonCase:"eth2"}),Hf=new Y({headSlot:vA,syncDistance:vA,isSyncing:Ig,isOptimistic:Ig,elOffline:Ig},{jsonCase:"eth2"});var n0;(function(g){g[g.READY=200]="READY",g[g.SYNCING=206]="SYNCING",g[g.NOT_INITIALIZED_OR_ISSUES=503]="NOT_INITIALIZED_OR_ISSUES"})(n0||(n0={}));function Jf(g){return{getNetworkIdentity:{url:"/eth/v1/node/identity",method:"GET",req:RA,resp:{onlySupport:fA.json,data:Lf,meta:JA}},getPeers:{url:"/eth/v1/node/peers",method:"GET",req:{writeReq:({state:A,direction:I})=>({query:{state:A,direction:I}}),parseReq:({query:A})=>({state:A.state,direction:A.direction}),schema:{query:{state:W.StringArray,direction:W.StringArray}}},resp:{...eg,meta:{toJson:A=>A,fromJson:A=>({count:A.count}),toHeadersObject:()=>({}),fromHeaders:()=>({})},transform:{toResponse:(A,I)=>({data:A,meta:I}),fromResponse:A=>A}}},getPeer:{url:"/eth/v1/node/peers/{peer_id}",method:"GET",req:{writeReq:({peerId:A})=>({params:{peer_id:A}}),parseReq:({params:A})=>({peerId:A.peer_id}),schema:{params:{peer_id:W.StringRequired}}},resp:eg},getPeerCount:{url:"/eth/v1/node/peer_count",method:"GET",req:RA,resp:{data:mf,meta:JA}},getNodeVersion:{url:"/eth/v1/node/version",method:"GET",req:RA,resp:eg},getSyncingStatus:{url:"/eth/v1/node/syncing",method:"GET",req:RA,resp:{data:Hf,meta:JA}},getHealth:{url:"/eth/v1/node/health",method:"GET",req:{writeReq:({syncingStatus:A})=>({query:{syncing_status:A}}),parseReq:({query:A})=>({syncingStatus:A.syncing_status}),schema:{query:{syncing_status:W.Uint}}},resp:MA}}}const ZI=new Y({leaves:yA(QB,1e4),descriptor:new qe(2048)});function Mf(g){return{getStateProof:{url:"/eth/v0/beacon/proof/state/{state_id}",method:"GET",req:{writeReq:({stateId:A,descriptor:I})=>({params:{state_id:A},query:{format:bg(I)}}),parseReq:({params:A,query:I})=>({stateId:A.state_id,descriptor:nA(I.format)}),schema:{params:{state_id:W.StringRequired},query:{format:W.StringRequired}}},resp:{data:{toJson:A=>ZI.toJson(A),fromJson:A=>({...ZI.fromJson(A),type:TA.compactMulti}),serialize:A=>ZI.serialize(A),deserialize:A=>({...ZI.deserialize(A),type:TA.compactMulti})},meta:CI}},getBlockProof:{url:"/eth/v0/beacon/proof/block/{block_id}",method:"GET",req:{writeReq:({blockId:A,descriptor:I})=>({params:{block_id:A},query:{format:bg(I)}}),parseReq:({params:A,query:I})=>({blockId:A.block_id,descriptor:nA(I.format)}),schema:{params:{block_id:W.StringRequired},query:{format:W.StringRequired}}},resp:{data:{toJson:A=>ZI.toJson(A),fromJson:A=>({...ZI.fromJson(A),type:TA.compactMulti}),serialize:A=>ZI.serialize(A),deserialize:A=>({...ZI.deserialize(A),type:TA.compactMulti})},meta:CI}}}}var r0;(function(g){g.Default="default",g.BuilderAlways="builderalways",g.ExecutionAlways="executionalways",g.MaxProfit="maxprofit",g.BuilderOnly="builderonly",g.ExecutionOnly="executiononly"})(r0||(r0={}));const a0=new Y({...FB.fields,executionPayloadBlinded:Ig,executionPayloadValue:bB,consensusBlockValue:bB},{jsonCase:"eth2"}),qf=new Y({pubkey:TB,validatorIndex:PA,committeeIndex:iB,committeeLength:FA,committeesAtSlot:FA,validatorCommitteeIndex:FA,slot:vA},{jsonCase:"eth2"}),Kf=new Y({slot:vA,validatorIndex:PA,pubkey:TB},{jsonCase:"eth2"}),Yf=new Y({pubkey:TB,validatorIndex:PA,validatorSyncCommitteeIndices:yA(iB)},{jsonCase:"eth2"}),bf=new Y({validatorIndex:PA,committeeIndex:iB,committeesAtSlot:vA,slot:vA,isAggregator:Ig},{jsonCase:"eth2"}),Tf=new Y({validatorIndex:PA,syncCommitteeIndices:yA(iB),untilEpoch:_g},{jsonCase:"eth2"}),vf=new Y({validatorIndex:PA,feeRecipient:TI},{jsonCase:"eth2"}),_f=new Y({validatorIndex:PA,slot:vA,selectionProof:TC},{jsonCase:"eth2"}),Of=new Y({validatorIndex:PA,slot:vA,subcommitteeIndex:Zi,selectionProof:TC},{jsonCase:"eth2"}),Zf=new Y({index:PA,isLive:Ig},{jsonCase:"eth2"}),qg=yA(PA),xf=yA(qf),jf=yA(Kf),Pf=yA(Yf),xI=yA(Ua),wt=yA(Fs),Dt=yA(iQ),yt=yA(bf),ut=yA(Tf),s0=yA(vf),gC=yA(_f),IC=yA(Of),zf=yA(Zf),ft=yA(Wa);function Wf(g){return{getAttesterDuties:{url:"/eth/v1/validator/duties/attester/{epoch}",method:"POST",req:{writeReqJson:({epoch:A,indices:I})=>({params:{epoch:A},body:qg.toJson(I)}),parseReqJson:({params:A,body:I})=>({epoch:A.epoch,indices:qg.fromJson(I)}),writeReqSsz:({epoch:A,indices:I})=>({params:{epoch:A},body:qg.serialize(I)}),parseReqSsz:({params:A,body:I})=>({epoch:A.epoch,indices:qg.deserialize(I)}),schema:{params:{epoch:W.UintRequired},body:W.StringArray}},resp:{data:xf,meta:$s}},getProposerDuties:{url:"/eth/v1/validator/duties/proposer/{epoch}",method:"GET",req:{writeReq:({epoch:A})=>({params:{epoch:A}}),parseReq:({params:A})=>({epoch:A.epoch}),schema:{params:{epoch:W.UintRequired}}},resp:{data:jf,meta:$s}},getSyncCommitteeDuties:{url:"/eth/v1/validator/duties/sync/{epoch}",method:"POST",req:{writeReqJson:({epoch:A,indices:I})=>({params:{epoch:A},body:qg.toJson(I)}),parseReqJson:({params:A,body:I})=>({epoch:A.epoch,indices:qg.fromJson(I)}),writeReqSsz:({epoch:A,indices:I})=>({params:{epoch:A},body:qg.serialize(I)}),parseReqSsz:({params:A,body:I})=>({epoch:A.epoch,indices:qg.deserialize(I)}),schema:{params:{epoch:W.UintRequired},body:W.StringArray}},resp:{data:Pf,meta:qu}},produceBlockV2:{url:"/eth/v2/validator/blocks/{slot}",method:"GET",req:{writeReq:({slot:A,randaoReveal:I,graffiti:B,feeRecipient:C,builderSelection:e,strictFeeRecipientCheck:t})=>({params:{slot:A},query:{randao_reveal:bg(I),graffiti:KQ(B),fee_recipient:C,builder_selection:e,strict_fee_recipient_check:t}}),parseReq:({params:A,query:I})=>({slot:A.slot,randaoReveal:nA(I.randao_reveal),graffiti:YQ(I.graffiti),feeRecipient:I.fee_recipient,builderSelection:I.builder_selection,strictFeeRecipientCheck:I.strict_fee_recipient_check}),schema:{params:{slot:W.UintRequired},query:{randao_reveal:W.StringRequired,graffiti:W.String,fee_recipient:W.String,builder_selection:W.String,strict_fee_recipient_check:W.Boolean}}},resp:{data:Mg(A=>Lg(A)?HA(A).BlockContents:zg[A].BeaconBlock),meta:CI}},produceBlockV3:{url:"/eth/v3/validator/blocks/{slot}",method:"GET",req:{writeReq:({slot:A,randaoReveal:I,graffiti:B,skipRandaoVerification:C,feeRecipient:e,builderSelection:t,builderBoostFactor:i,strictFeeRecipientCheck:E,blindedLocal:c})=>({params:{slot:A},query:{randao_reveal:bg(I),graffiti:KQ(B),skip_randao_verification:Xf(C),fee_recipient:e,builder_selection:t,builder_boost_factor:i?.toString(),strict_fee_recipient_check:E,blinded_local:c}}),parseReq:({params:A,query:I})=>({slot:A.slot,randaoReveal:nA(I.randao_reveal),graffiti:YQ(I.graffiti),skipRandaoVerification:$f(I.skip_randao_verification),feeRecipient:I.fee_recipient,builderSelection:I.builder_selection,builderBoostFactor:Vf(I.builder_boost_factor),strictFeeRecipientCheck:I.strict_fee_recipient_check,blindedLocal:I.blinded_local}),schema:{params:{slot:W.UintRequired},query:{randao_reveal:W.StringRequired,graffiti:W.String,skip_randao_verification:W.String,fee_recipient:W.String,builder_selection:W.String,builder_boost_factor:W.String,strict_fee_recipient_check:W.Boolean,blinded_local:W.Boolean}}},resp:{data:Ru(({version:A,executionPayloadBlinded:I})=>I?Wg(A).BlindedBeaconBlock:Lg(A)?HA(A).BlockContents:zg[A].BeaconBlock),meta:{toJson:A=>({...a0.toJson(A),execution_payload_source:A.executionPayloadSource}),fromJson:A=>{const{executionPayloadBlinded:I,...B}=a0.fromJson(A),C=A.execution_payload_source??(I===!0?ee.builder:ee.engine);return{...B,executionPayloadBlinded:I,executionPayloadSource:C}},toHeadersObject:A=>({[aA.Version]:A.version,[aA.ExecutionPayloadBlinded]:A.executionPayloadBlinded.toString(),[aA.ExecutionPayloadSource]:A.executionPayloadSource.toString(),[aA.ExecutionPayloadValue]:A.executionPayloadValue.toString(),[aA.ConsensusBlockValue]:A.consensusBlockValue.toString()}),fromHeaders:A=>{const I=pB(A.getRequired(aA.ExecutionPayloadBlinded)),B=A.get(aA.ExecutionPayloadSource)??(I===!0?ee.builder:ee.engine);return{version:$A(A.getRequired(aA.Version)),executionPayloadBlinded:I,executionPayloadSource:B,executionPayloadValue:BigInt(A.getRequired(aA.ExecutionPayloadValue)),consensusBlockValue:BigInt(A.getRequired(aA.ConsensusBlockValue))}}}}},produceBlindedBlock:{url:"/eth/v1/validator/blinded_blocks/{slot}",method:"GET",req:{writeReq:({slot:A,randaoReveal:I,graffiti:B})=>({params:{slot:A},query:{randao_reveal:bg(I),graffiti:KQ(B)}}),parseReq:({params:A,query:I})=>({slot:A.slot,randaoReveal:nA(I.randao_reveal),graffiti:YQ(I.graffiti)}),schema:{params:{slot:W.UintRequired},query:{randao_reveal:W.StringRequired,graffiti:W.String}}},resp:{data:Mg(A=>Wg(A).BlindedBeaconBlock),meta:CI}},produceAttestationData:{url:"/eth/v1/validator/attestation_data",method:"GET",req:{writeReq:({committeeIndex:A,slot:I})=>({query:{slot:I,committee_index:A}}),parseReq:({query:A})=>({committeeIndex:A.committee_index,slot:A.slot}),schema:{query:{slot:W.UintRequired,committee_index:W.UintRequired}}},resp:{data:JI,meta:JA}},produceSyncCommitteeContribution:{url:"/eth/v1/validator/sync_committee_contribution",method:"GET",req:{writeReq:({slot:A,subcommitteeIndex:I,beaconBlockRoot:B})=>({query:{slot:A,subcommittee_index:I,beacon_block_root:uC(B)}}),parseReq:({query:A})=>({slot:A.slot,subcommitteeIndex:A.subcommittee_index,beaconBlockRoot:nA(A.beacon_block_root)}),schema:{query:{slot:W.UintRequired,subcommittee_index:W.UintRequired,beacon_block_root:W.StringRequired}}},resp:{data:tQ,meta:JA}},getAggregatedAttestation:{url:"/eth/v1/validator/aggregate_attestation",method:"GET",req:{writeReq:({attestationDataRoot:A,slot:I})=>({query:{attestation_data_root:uC(A),slot:I}}),parseReq:({query:A})=>({attestationDataRoot:nA(A.attestation_data_root),slot:A.slot}),schema:{query:{attestation_data_root:W.StringRequired,slot:W.UintRequired}}},resp:{data:MI,meta:JA}},getAggregatedAttestationV2:{url:"/eth/v2/validator/aggregate_attestation",method:"GET",req:{writeReq:({attestationDataRoot:A,slot:I,committeeIndex:B})=>({query:{attestation_data_root:bg(A),slot:I,committee_index:B}}),parseReq:({query:A})=>({attestationDataRoot:nA(A.attestation_data_root),slot:A.slot,committeeIndex:A.committee_index}),schema:{query:{attestation_data_root:W.StringRequired,slot:W.UintRequired,committee_index:W.UintRequired}}},resp:{data:Mg(A=>ZA(A)?Be:MI),meta:CI}},publishAggregateAndProofs:{url:"/eth/v1/validator/aggregate_and_proofs",method:"POST",req:{writeReqJson:({signedAggregateAndProofs:A})=>({body:xI.toJson(A)}),parseReqJson:({body:A})=>({signedAggregateAndProofs:xI.fromJson(A)}),writeReqSsz:({signedAggregateAndProofs:A})=>({body:xI.serialize(A)}),parseReqSsz:({body:A})=>({signedAggregateAndProofs:xI.deserialize(A)}),schema:{body:W.ObjectArray}},resp:MA},publishAggregateAndProofsV2:{url:"/eth/v2/validator/aggregate_and_proofs",method:"POST",req:{writeReqJson:({signedAggregateAndProofs:A})=>{const I=g.getForkName(A[0]?.message.aggregate.data.slot??0);return{body:ZA(I)?wt.toJson(A):xI.toJson(A),headers:{[aA.Version]:I}}},parseReqJson:({body:A,headers:I})=>{const B=$A(Fg(I,aA.Version));return{signedAggregateAndProofs:ZA(B)?wt.fromJson(A):xI.fromJson(A)}},writeReqSsz:({signedAggregateAndProofs:A})=>{const I=g.getForkName(A[0]?.message.aggregate.data.slot??0);return{body:ZA(I)?wt.serialize(A):xI.serialize(A),headers:{[aA.Version]:I}}},parseReqSsz:({body:A,headers:I})=>{const B=$A(Fg(I,aA.Version));return{signedAggregateAndProofs:ZA(B)?wt.deserialize(A):xI.deserialize(A)}},schema:{body:W.ObjectArray,headers:{[aA.Version]:W.String}}},resp:MA},publishContributionAndProofs:{url:"/eth/v1/validator/contribution_and_proofs",method:"POST",req:{writeReqJson:({contributionAndProofs:A})=>({body:Dt.toJson(A)}),parseReqJson:({body:A})=>({contributionAndProofs:Dt.fromJson(A)}),writeReqSsz:({contributionAndProofs:A})=>({body:Dt.serialize(A)}),parseReqSsz:({body:A})=>({contributionAndProofs:Dt.deserialize(A)}),schema:{body:W.ObjectArray}},resp:MA},prepareBeaconCommitteeSubnet:{url:"/eth/v1/validator/beacon_committee_subscriptions",method:"POST",req:{writeReqJson:({subscriptions:A})=>({body:yt.toJson(A)}),parseReqJson:({body:A})=>({subscriptions:yt.fromJson(A)}),writeReqSsz:({subscriptions:A})=>({body:yt.serialize(A)}),parseReqSsz:({body:A})=>({subscriptions:yt.deserialize(A)}),schema:{body:W.ObjectArray}},resp:MA},prepareSyncCommitteeSubnets:{url:"/eth/v1/validator/sync_committee_subscriptions",method:"POST",req:{writeReqJson:({subscriptions:A})=>({body:ut.toJson(A)}),parseReqJson:({body:A})=>({subscriptions:ut.fromJson(A)}),writeReqSsz:({subscriptions:A})=>({body:ut.serialize(A)}),parseReqSsz:({body:A})=>({subscriptions:ut.deserialize(A)}),schema:{body:W.ObjectArray}},resp:MA},prepareBeaconProposer:{url:"/eth/v1/validator/prepare_beacon_proposer",method:"POST",req:Ce({writeReqJson:({proposers:A})=>({body:s0.toJson(A)}),parseReqJson:({body:A})=>({proposers:s0.fromJson(A)}),schema:{body:W.ObjectArray}}),resp:MA},submitBeaconCommitteeSelections:{url:"/eth/v1/validator/beacon_committee_selections",method:"POST",req:{writeReqJson:({selections:A})=>({body:gC.toJson(A)}),parseReqJson:({body:A})=>({selections:gC.fromJson(A)}),writeReqSsz:({selections:A})=>({body:gC.serialize(A)}),parseReqSsz:({body:A})=>({selections:gC.deserialize(A)}),schema:{body:W.ObjectArray}},resp:{data:gC,meta:JA}},submitSyncCommitteeSelections:{url:"/eth/v1/validator/sync_committee_selections",method:"POST",req:{writeReqJson:({selections:A})=>({body:IC.toJson(A)}),parseReqJson:({body:A})=>({selections:IC.fromJson(A)}),writeReqSsz:({selections:A})=>({body:IC.serialize(A)}),parseReqSsz:({body:A})=>({selections:IC.deserialize(A)}),schema:{body:W.ObjectArray}},resp:{data:IC,meta:JA}},getLiveness:{url:"/eth/v1/validator/liveness/{epoch}",method:"POST",req:{writeReqJson:({epoch:A,indices:I})=>({params:{epoch:A},body:qg.toJson(I)}),parseReqJson:({params:A,body:I})=>({epoch:A.epoch,indices:qg.fromJson(I)}),writeReqSsz:({epoch:A,indices:I})=>({params:{epoch:A},body:qg.serialize(I)}),parseReqSsz:({params:A,body:I})=>({epoch:A.epoch,indices:qg.deserialize(I)}),schema:{params:{epoch:W.UintRequired},body:W.StringArray}},resp:{data:zf,meta:JA}},registerValidator:{url:"/eth/v1/validator/register_validator",method:"POST",req:{writeReqJson:({registrations:A})=>({body:ft.toJson(A)}),parseReqJson:({body:A})=>({registrations:ft.fromJson(A)}),writeReqSsz:({registrations:A})=>({body:ft.serialize(A)}),parseReqSsz:({body:A})=>({registrations:ft.deserialize(A)}),schema:{body:W.ObjectArray}},resp:MA}}}function Vf(g){return g!==void 0?BigInt(g):void 0}function Xf(g){return g===!0?"":void 0}function $f(g){return g!==void 0&&g===""}async function Ap(g,A){try{return await fetch(g,A)}catch(I){throw new c0(g,I)}}function gp(g){return g instanceof c0}class c0 extends Error{constructor(A,I){Ip(I)?(super(`Request to ${A.toString()} failed, reason: ${I.cause.message}`),this.type="failed",this.code=I.cause.code||"ERR_FETCH_FAILED",this.cause=I.cause):Bp(I)?(super(I.message),this.type="input",this.code=I.cause.code||"ERR_INVALID_INPUT",this.cause=I.cause):ep(I)?(super(`Request to ${A.toString()} was aborted`),this.type="aborted",this.code="ERR_ABORTED"):Cp(I)?(super(`Request to ${A.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 l0(g){return g instanceof TypeError&&g.cause instanceof Error}function Ip(g){return l0(g)&&g.message==="fetch failed"}function Bp(g){return l0(g)&&g.cause.input!==void 0}function ep(g){return g instanceof DOMException&&g.name==="AbortError"}function Cp(g){return g instanceof DOMException&&g.name==="TimeoutError"}var pt;(function(g){g[g.CONTINUE=100]="CONTINUE",g[g.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",g[g.PROCESSING=102]="PROCESSING",g[g.OK=200]="OK",g[g.CREATED=201]="CREATED",g[g.ACCEPTED=202]="ACCEPTED",g[g.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",g[g.NO_CONTENT=204]="NO_CONTENT",g[g.RESET_CONTENT=205]="RESET_CONTENT",g[g.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",g[g.MULTI_STATUS=207]="MULTI_STATUS",g[g.ALREADY_REPORTED=208]="ALREADY_REPORTED",g[g.IM_USED=226]="IM_USED",g[g.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",g[g.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",g[g.FOUND=302]="FOUND",g[g.SEE_OTHER=303]="SEE_OTHER",g[g.NOT_MODIFIED=304]="NOT_MODIFIED",g[g.USE_PROXY=305]="USE_PROXY",g[g.SWITCH_PROXY=306]="SWITCH_PROXY",g[g.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",g[g.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",g[g.BAD_REQUEST=400]="BAD_REQUEST",g[g.UNAUTHORIZED=401]="UNAUTHORIZED",g[g.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",g[g.FORBIDDEN=403]="FORBIDDEN",g[g.NOT_FOUND=404]="NOT_FOUND",g[g.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",g[g.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",g[g.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",g[g.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",g[g.CONFLICT=409]="CONFLICT",g[g.GONE=410]="GONE",g[g.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",g[g.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",g[g.PAYLOAD_TOO_LARGE=413]="PAYLOAD_TOO_LARGE",g[g.URI_TOO_LONG=414]="URI_TOO_LONG",g[g.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",g[g.RANGE_NOT_SATISFIABLE=416]="RANGE_NOT_SATISFIABLE",g[g.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",g[g.I_AM_A_TEAPOT=418]="I_AM_A_TEAPOT",g[g.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST",g[g.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",g[g.LOCKED=423]="LOCKED",g[g.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",g[g.UPGRADE_REQUIRED=426]="UPGRADE_REQUIRED",g[g.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",g[g.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",g[g.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",g[g.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",g[g.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",g[g.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",g[g.BAD_GATEWAY=502]="BAD_GATEWAY",g[g.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",g[g.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",g[g.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",g[g.VARIANT_ALSO_NEGOTIATES=506]="VARIANT_ALSO_NEGOTIATES",g[g.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",g[g.LOOP_DETECTED=508]="LOOP_DETECTED",g[g.NOT_EXTENDED=510]="NOT_EXTENDED",g[g.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED"})(pt||(pt={}));var h0,S0;function w0(){return S0||(S0=1,h0=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var g={},A=Symbol("test"),I=Object(A);if(typeof A=="string"||Object.prototype.toString.call(A)!=="[object Symbol]"||Object.prototype.toString.call(I)!=="[object Symbol]")return!1;var B=42;g[A]=B;for(A in g)return!1;if(typeof Object.keys=="function"&&Object.keys(g).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(g).length!==0)return!1;var C=Object.getOwnPropertySymbols(g);if(C.length!==1||C[0]!==A||!Object.prototype.propertyIsEnumerable.call(g,A))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var e=Object.getOwnPropertyDescriptor(g,A);if(e.value!==B||e.enumerable!==!0)return!1}return!0}),h0}var _Q,D0;function tp(){if(D0)return _Q;D0=1;var g=typeof Symbol<"u"&&Symbol,A=w0();return _Q=function(){return typeof g!="function"||typeof Symbol!="function"||typeof g("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:A()},_Q}var OQ,y0;function ip(){if(y0)return OQ;y0=1;var g={foo:{}},A=Object;return OQ=function(){return{__proto__:g}.foo===g.foo&&!({__proto__:null}instanceof A)},OQ}var ZQ,u0;function Qp(){if(u0)return ZQ;u0=1;var g="Function.prototype.bind called on incompatible ",A=Object.prototype.toString,I=Math.max,B="[object Function]",C=function(i,E){for(var c=[],n=0;n<i.length;n+=1)c[n]=i[n];for(var s=0;s<E.length;s+=1)c[s+i.length]=E[s];return c},e=function(i,E){for(var c=[],n=E,s=0;n<i.length;n+=1,s+=1)c[s]=i[n];return c},t=function(i,E){for(var c="",n=0;n<i.length;n+=1)c+=i[n],n+1<i.length&&(c+=E);return c};return ZQ=function(i){var E=this;if(typeof E!="function"||A.apply(E)!==B)throw new TypeError(g+E);for(var c=e(arguments,1),n,s=function(){if(this instanceof n){var F=E.apply(this,C(c,arguments));return Object(F)===F?F:this}return E.apply(i,C(c,arguments))},S=I(0,E.length-c.length),w=[],y=0;y<S;y++)w[y]="$"+y;if(n=Function("binder","return function ("+t(w,",")+"){ return binder.apply(this,arguments); }")(s),E.prototype){var p=function(){};p.prototype=E.prototype,n.prototype=new p,p.prototype=null}return n},ZQ}var xQ,f0;function jQ(){if(f0)return xQ;f0=1;var g=Qp();return xQ=Function.prototype.bind||g,xQ}var PQ,p0;function Ep(){if(p0)return PQ;p0=1;var g=Function.prototype.call,A=Object.prototype.hasOwnProperty,I=jQ();return PQ=I.call(g,A),PQ}var zQ,F0;function GB(){if(F0)return zQ;F0=1;var g,A=SyntaxError,I=Function,B=TypeError,C=function(EA){try{return I('"use strict"; return ('+EA+").constructor;")()}catch{}},e=Object.getOwnPropertyDescriptor;if(e)try{e({},"")}catch{e=null}var t=function(){throw new B},i=e?function(){try{return arguments.callee,t}catch{try{return e(arguments,"callee").get}catch{return t}}}():t,E=tp()(),c=ip()(),n=Object.getPrototypeOf||(c?function(EA){return EA.__proto__}:null),s={},S=typeof Uint8Array>"u"||!n?g:n(Uint8Array),w={"%AggregateError%":typeof AggregateError>"u"?g:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?g:ArrayBuffer,"%ArrayIteratorPrototype%":E&&n?n([][Symbol.iterator]()):g,"%AsyncFromSyncIteratorPrototype%":g,"%AsyncFunction%":s,"%AsyncGenerator%":s,"%AsyncGeneratorFunction%":s,"%AsyncIteratorPrototype%":s,"%Atomics%":typeof Atomics>"u"?g:Atomics,"%BigInt%":typeof BigInt>"u"?g:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?g:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?g:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?g:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?g:Float32Array,"%Float64Array%":typeof Float64Array>"u"?g:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?g:FinalizationRegistry,"%Function%":I,"%GeneratorFunction%":s,"%Int8Array%":typeof Int8Array>"u"?g:Int8Array,"%Int16Array%":typeof Int16Array>"u"?g:Int16Array,"%Int32Array%":typeof Int32Array>"u"?g:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":E&&n?n(n([][Symbol.iterator]())):g,"%JSON%":typeof JSON=="object"?JSON:g,"%Map%":typeof Map>"u"?g:Map,"%MapIteratorPrototype%":typeof Map>"u"||!E||!n?g:n(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?g:Promise,"%Proxy%":typeof Proxy>"u"?g:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?g:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?g:Set,"%SetIteratorPrototype%":typeof Set>"u"||!E||!n?g:n(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?g:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&n?n(""[Symbol.iterator]()):g,"%Symbol%":E?Symbol:g,"%SyntaxError%":A,"%ThrowTypeError%":i,"%TypedArray%":S,"%TypeError%":B,"%Uint8Array%":typeof Uint8Array>"u"?g:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?g:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?g:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?g:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?g:WeakMap,"%WeakRef%":typeof WeakRef>"u"?g:WeakRef,"%WeakSet%":typeof WeakSet>"u"?g:WeakSet};if(n)try{null.error}catch(EA){var y=n(n(EA));w["%Error.prototype%"]=y}var p=function EA(BA){var oA;if(BA==="%AsyncFunction%")oA=C("async function () {}");else if(BA==="%GeneratorFunction%")oA=C("function* () {}");else if(BA==="%AsyncGeneratorFunction%")oA=C("async function* () {}");else if(BA==="%AsyncGenerator%"){var m=EA("%AsyncGeneratorFunction%");m&&(oA=m.prototype)}else if(BA==="%AsyncIteratorPrototype%"){var K=EA("%AsyncGenerator%");K&&n&&(oA=n(K.prototype))}return w[BA]=oA,oA},F={"%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"]},u=jQ(),D=Ep(),R=u.call(Function.call,Array.prototype.concat),N=u.call(Function.apply,Array.prototype.splice),q=u.call(Function.call,String.prototype.replace),U=u.call(Function.call,String.prototype.slice),_=u.call(Function.call,RegExp.prototype.exec),L=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,tA=function(EA){var BA=U(EA,0,1),oA=U(EA,-1);if(BA==="%"&&oA!=="%")throw new A("invalid intrinsic syntax, expected closing `%`");if(oA==="%"&&BA!=="%")throw new A("invalid intrinsic syntax, expected opening `%`");var m=[];return q(EA,L,function(K,gA,Z,V){m[m.length]=Z?q(V,P,"$1"):gA||K}),m},rA=function(EA,BA){var oA=EA,m;if(D(F,oA)&&(m=F[oA],oA="%"+m[0]+"%"),D(w,oA)){var K=w[oA];if(K===s&&(K=p(oA)),typeof K>"u"&&!BA)throw new B("intrinsic "+EA+" exists, but is not available. Please file an issue!");return{alias:m,name:oA,value:K}}throw new A("intrinsic "+EA+" does not exist!")};return zQ=function(EA,BA){if(typeof EA!="string"||EA.length===0)throw new B("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof BA!="boolean")throw new B('"allowMissing" argument must be a boolean');if(_(/^%?[^%]*%?$/,EA)===null)throw new A("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var oA=tA(EA),m=oA.length>0?oA[0]:"",K=rA("%"+m+"%",BA),gA=K.name,Z=K.value,V=!1,j=K.alias;j&&(m=j[0],N(oA,R([0,1],j)));for(var AA=1,H=!0;AA<oA.length;AA+=1){var b=oA[AA],T=U(b,0,1),z=U(b,-1);if((T==='"'||T==="'"||T==="`"||z==='"'||z==="'"||z==="`")&&T!==z)throw new A("property names with quotes must have matching quotes");if((b==="constructor"||!H)&&(V=!0),m+="."+b,gA="%"+m+"%",D(w,gA))Z=w[gA];else if(Z!=null){if(!(b in Z)){if(!BA)throw new B("base intrinsic for "+EA+" exists, but the property is not available.");return}if(e&&AA+1>=oA.length){var J=e(Z,b);H=!!J,H&&"get"in J&&!("originalValue"in J.get)?Z=J.get:Z=Z[b]}else H=D(Z,b),Z=Z[b];H&&!V&&(w[gA]=Z)}}return Z},zQ}var d0={exports:{}},WQ,G0;function N0(){if(G0)return WQ;G0=1;var g=GB(),A=g("%Object.defineProperty%",!0),I=function(){if(A)try{return A({},"a",{value:1}),!0}catch{return!1}return!1};return I.hasArrayLengthDefineBug=function(){if(!I())return null;try{return A([],"length",{value:1}).length!==1}catch{return!0}},WQ=I,WQ}var VQ,k0;function XQ(){if(k0)return VQ;k0=1;var g=GB(),A=g("%Object.getOwnPropertyDescriptor%",!0);if(A)try{A([],"length")}catch{A=null}return VQ=A,VQ}var $Q,R0;function op(){if(R0)return $Q;R0=1;var g=N0()(),A=GB(),I=g&&A("%Object.defineProperty%",!0);if(I)try{I({},"a",{value:1})}catch{I=!1}var B=A("%SyntaxError%"),C=A("%TypeError%"),e=XQ();return $Q=function(t,i,E){if(!t||typeof t!="object"&&typeof t!="function")throw new C("`obj` must be an object or a function`");if(typeof i!="string"&&typeof i!="symbol")throw new C("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new C("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new C("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new C("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new C("`loose`, if provided, must be a boolean");var c=arguments.length>3?arguments[3]:null,n=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,S=arguments.length>6?arguments[6]:!1,w=!!e&&e(t,i);if(I)I(t,i,{configurable:s===null&&w?w.configurable:!s,enumerable:c===null&&w?w.enumerable:!c,value:E,writable:n===null&&w?w.writable:!n});else if(S||!c&&!n&&!s)t[i]=E;else throw new B("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},$Q}var AE,U0;function np(){if(U0)return AE;U0=1;var g=GB(),A=op(),I=N0()(),B=XQ(),C=g("%TypeError%"),e=g("%Math.floor%");return AE=function(t,i){if(typeof t!="function")throw new C("`fn` is not a function");if(typeof i!="number"||i<0||i>4294967295||e(i)!==i)throw new C("`length` must be a positive 32-bit integer");var E=arguments.length>2&&!!arguments[2],c=!0,n=!0;if("length"in t&&B){var s=B(t,"length");s&&!s.configurable&&(c=!1),s&&!s.writable&&(n=!1)}return(c||n||!E)&&(I?A(t,"length",i,!0,!0):A(t,"length",i)),t},AE}var L0;function m0(){return L0||(L0=1,function(g){var A=jQ(),I=GB(),B=np(),C=I("%TypeError%"),e=I("%Function.prototype.apply%"),t=I("%Function.prototype.call%"),i=I("%Reflect.apply%",!0)||A.call(t,e),E=I("%Object.defineProperty%",!0),c=I("%Math.max%");if(E)try{E({},"a",{value:1})}catch{E=null}g.exports=function(s){if(typeof s!="function")throw new C("a function is required");var S=i(A,t,arguments);return B(S,1+c(0,s.length-(arguments.length-1)),!0)};var n=function(){return i(A,e,arguments)};E?E(g.exports,"apply",{value:n}):g.exports.apply=n}(d0)),d0.exports}var gE,H0;function IE(){if(H0)return gE;H0=1;var g=GB(),A=m0(),I=A(g("String.prototype.indexOf"));return gE=function(B,C){var e=g(B,!!C);return typeof e=="function"&&I(B,".prototype.")>-1?A(e):e},gE}const BE=Wn(dS);var eE,J0;function rp(){if(J0)return eE;J0=1;var g=typeof Map=="function"&&Map.prototype,A=Object.getOwnPropertyDescriptor&&g?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,I=g&&A&&typeof A.get=="function"?A.get:null,B=g&&Map.prototype.forEach,C=typeof Set=="function"&&Set.prototype,e=Object.getOwnPropertyDescriptor&&C?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,t=C&&e&&typeof e.get=="function"?e.get:null,i=C&&Set.prototype.forEach,E=typeof WeakMap=="function"&&WeakMap.prototype,c=E?WeakMap.prototype.has:null,n=typeof WeakSet=="function"&&WeakSet.prototype,s=n?WeakSet.prototype.has:null,S=typeof WeakRef=="function"&&WeakRef.prototype,w=S?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,p=Object.prototype.toString,F=Function.prototype.toString,u=String.prototype.match,D=String.prototype.slice,R=String.prototype.replace,N=String.prototype.toUpperCase,q=String.prototype.toLowerCase,U=RegExp.prototype.test,_=Array.prototype.concat,L=Array.prototype.join,P=Array.prototype.slice,tA=Math.floor,rA=typeof BigInt=="function"?BigInt.prototype.valueOf:null,EA=Object.getOwnPropertySymbols,BA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,oA=typeof Symbol=="function"&&typeof Symbol.iterator=="object",m=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===oA||!0)?Symbol.toStringTag:null,K=Object.prototype.propertyIsEnumerable,gA=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(h){return h.__proto__}:null);function Z(h,G){if(h===1/0||h===-1/0||h!==h||h&&h>-1e3&&h<1e3||U.call(/e/,G))return G;var v=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof h=="number"){var x=h<0?-tA(-h):tA(h);if(x!==h){var iA=String(x),QA=D.call(G,iA.length+1);return R.call(iA,v,"$&_")+"."+R.call(R.call(QA,/([0-9]{3})/g,"$&_"),/_$/,"")}}return R.call(G,v,"$&_")}var V=BE,j=V.custom,AA=d(j)?j:null;eE=function h(G,v,x,iA){var QA=v||{};if(eA(QA,"quoteStyle")&&QA.quoteStyle!=="single"&&QA.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(eA(QA,"maxStringLength")&&(typeof QA.maxStringLength=="number"?QA.maxStringLength<0&&QA.maxStringLength!==1/0:QA.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var dA=eA(QA,"customInspect")?QA.customInspect:!0;if(typeof dA!="boolean"&&dA!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(eA(QA,"indent")&&QA.indent!==null&&QA.indent!==" "&&!(parseInt(QA.indent,10)===QA.indent&&QA.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(eA(QA,"numericSeparator")&&typeof QA.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var pA=QA.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 ug(G,QA);if(typeof G=="number"){if(G===0)return 1/0/G>0?"0":"-0";var GA=String(G);return pA?Z(G,GA):GA}if(typeof G=="bigint"){var zI=String(G)+"n";return pA?Z(G,zI):zI}var ro=typeof QA.depth>"u"?5:QA.depth;if(typeof x>"u"&&(x=0),x>=ro&&ro>0&&typeof G=="object")return T(G)?"[Array]":"[Object]";var ae=Q(QA,x);if(typeof iA>"u")iA=[];else if(DA(iA,G)>=0)return"[Circular]";function Vg(se,Jt,ud){if(Jt&&(iA=P.call(iA),iA.push(Jt)),ud){var Pl={depth:QA.depth};return eA(QA,"quoteStyle")&&(Pl.quoteStyle=QA.quoteStyle),h(se,Pl,x+1,iA)}return h(se,QA,x+1,iA)}if(typeof G=="function"&&!J(G)){var Tl=cA(G),vl=a(G,Vg);return"[Function"+(Tl?": "+Tl:" (anonymous)")+"]"+(vl.length>0?" { "+L.call(vl,", ")+" }":"")}if(d(G)){var _l=oA?R.call(String(G),/^(Symbol\(.*\))_[^)]*$/,"$1"):BA.call(G);return typeof G=="object"&&!oA?gg(_l):_l}if(zA(G)){for(var iC="<"+q.call(String(G.nodeName)),ao=G.attributes||[],Ht=0;Ht<ao.length;Ht++)iC+=" "+ao[Ht].name+"="+H(b(ao[Ht].value),"double",QA);return iC+=">",G.childNodes&&G.childNodes.length&&(iC+="..."),iC+="</"+q.call(String(G.nodeName))+">",iC}if(T(G)){if(G.length===0)return"[]";var so=a(G,Vg);return ae&&!f(so)?"["+o(so,ae)+"]":"[ "+L.call(so,", ")+" ]"}if(M(G)){var co=a(G,Vg);return!("cause"in Error.prototype)&&"cause"in G&&!K.call(G,"cause")?"{ ["+String(G)+"] "+L.call(_.call("[cause]: "+Vg(G.cause),co),", ")+" }":co.length===0?"["+String(G)+"]":"{ ["+String(G)+"] "+L.call(co,", ")+" }"}if(typeof G=="object"&&dA){if(AA&&typeof G[AA]=="function"&&V)return V(G,{depth:ro-x});if(dA!=="symbol"&&typeof G.inspect=="function")return G.inspect()}if(NA(G)){var Ol=[];return B&&B.call(G,function(se,Jt){Ol.push(Vg(Jt,G,!0)+" => "+Vg(se,G))}),l("Map",I.call(G),Ol,ae)}if(og(G)){var Zl=[];return i&&i.call(G,function(se){Zl.push(Vg(se,G))}),l("Set",t.call(G),Zl,ae)}if($(G))return r("WeakMap");if(qA(G))return r("WeakSet");if(xA(G))return r("WeakRef");if(IA(G))return gg(Vg(Number(G)));if(k(G))return gg(Vg(rA.call(G)));if(CA(G))return gg(y.call(G));if(O(G))return gg(Vg(String(G)));if(typeof window<"u"&&G===window)return"{ [object Window] }";if(G===KA)return"{ [object globalThis] }";if(!z(G)&&!J(G)){var lo=a(G,Vg),xl=gA?gA(G)===Object.prototype:G instanceof Object||G.constructor===Object,ho=G instanceof Object?"":"null prototype",jl=!xl&&m&&Object(G)===G&&m in G?D.call(sA(G),8,-1):ho?"Object":"",yd=xl||typeof G.constructor!="function"?"":G.constructor.name?G.constructor.name+" ":"",So=yd+(jl||ho?"["+L.call(_.call([],jl||[],ho||[]),": ")+"] ":"");return lo.length===0?So+"{}":ae?So+"{"+o(lo,ae)+"}":So+"{ "+L.call(lo,", ")+" }"}return String(G)};function H(h,G,v){var x=(v.quoteStyle||G)==="double"?'"':"'";return x+h+x}function b(h){return R.call(String(h),/"/g,""")}function T(h){return sA(h)==="[object Array]"&&(!m||!(typeof h=="object"&&m in h))}function z(h){return sA(h)==="[object Date]"&&(!m||!(typeof h=="object"&&m in h))}function J(h){return sA(h)==="[object RegExp]"&&(!m||!(typeof h=="object"&&m in h))}function M(h){return sA(h)==="[object Error]"&&(!m||!(typeof h=="object"&&m in h))}function O(h){return sA(h)==="[object String]"&&(!m||!(typeof h=="object"&&m in h))}function IA(h){return sA(h)==="[object Number]"&&(!m||!(typeof h=="object"&&m in h))}function CA(h){return sA(h)==="[object Boolean]"&&(!m||!(typeof h=="object"&&m in h))}function d(h){if(oA)return h&&typeof h=="object"&&h instanceof Symbol;if(typeof h=="symbol")return!0;if(!h||typeof h!="object"||!BA)return!1;try{return BA.call(h),!0}catch{}return!1}function k(h){if(!h||typeof h!="object"||!rA)return!1;try{return rA.call(h),!0}catch{}return!1}var X=Object.prototype.hasOwnProperty||function(h){return h in this};function eA(h,G){return X.call(h,G)}function sA(h){return p.call(h)}function cA(h){if(h.name)return h.name;var G=u.call(F.call(h),/^function\s*([\w$]+)/);return G?G[1]:null}function DA(h,G){if(h.indexOf)return h.indexOf(G);for(var v=0,x=h.length;v<x;v++)if(h[v]===G)return v;return-1}function NA(h){if(!I||!h||typeof h!="object")return!1;try{I.call(h);try{t.call(h)}catch{return!0}return h instanceof Map}catch{}return!1}function $(h){if(!c||!h||typeof h!="object")return!1;try{c.call(h,c);try{s.call(h,s)}catch{return!0}return h instanceof WeakMap}catch{}return!1}function xA(h){if(!w||!h||typeof h!="object")return!1;try{return w.call(h),!0}catch{}return!1}function og(h){if(!t||!h||typeof h!="object")return!1;try{t.call(h);try{I.call(h)}catch{return!0}return h instanceof Set}catch{}return!1}function qA(h){if(!s||!h||typeof h!="object")return!1;try{s.call(h,s);try{c.call(h,c)}catch{return!0}return h instanceof WeakSet}catch{}return!1}function zA(h){return!h||typeof h!="object"?!1:typeof HTMLElement<"u"&&h instanceof HTMLElement?!0:typeof h.nodeName=="string"&&typeof h.getAttribute=="function"}function ug(h,G){if(h.length>G.maxStringLength){var v=h.length-G.maxStringLength,x="... "+v+" more character"+(v>1?"s":"");return ug(D.call(h,0,G.maxStringLength),G)+x}var iA=R.call(R.call(h,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,kA);return H(iA,"single",G)}function kA(h){var G=h.charCodeAt(0),v={8:"b",9:"t",10:"n",12:"f",13:"r"}[G];return v?"\\"+v:"\\x"+(G<16?"0":"")+N.call(G.toString(16))}function gg(h){return"Object("+h+")"}function r(h){return h+" { ? }"}function l(h,G,v,x){var iA=x?o(v,x):L.call(v,", ");return h+" ("+G+") {"+iA+"}"}function f(h){for(var G=0;G<h.length;G++)if(DA(h[G],`
|
|
32
|
+
`:""}var xh=Zh,jh={dump:xh};function Bi(g,A){return function(){throw new Error("Function yaml."+g+" is removed in js-yaml 4. Use yaml."+A+" instead, which is now safe by default.")}}var Ph=Cg,zh=zo,zn=$o,Wh=en,Vh=Cn,Xh=Pt,$h=kn.load,AS=kn.loadAll,gS=jh.dump,IS=lg,BS={binary:nn,float:Bn,map:Xo,null:An,pairs:an,set:sn,timestamp:En,bool:gn,int:In,merge:on,omap:rn,seq:Vo,str:Wo},eS=Bi("safeLoad","load"),CS=Bi("safeLoadAll","loadAll"),tS=Bi("safeDump","dump"),wC={Type:Ph,Schema:zh,FAILSAFE_SCHEMA:zn,JSON_SCHEMA:Wh,CORE_SCHEMA:Vh,DEFAULT_SCHEMA:Xh,load:$h,loadAll:AS,dump:gS,YAMLException:IS,types:BS,safeLoad:eS,safeLoadAll:CS,safeDump:tS};const{Type:iS}=wC;function QS(g){return 48<=g&&g<=57||65<=g&&g<=70||97<=g&&g<=102}function ES(g){return 48<=g&&g<=55}function oS(g){return 48<=g&&g<=57}function nS(g){if(g===null)return!1;const A=g.length;let I,B=0,C=!1;if(!A)return!1;if(I=g[B],(I==="-"||I==="+")&&(I=g[++B]),I==="0"){if(B+1===A)return!0;if(I=g[++B],I==="b"){for(B++;B<A;B++)if(I=g[B],I!=="_"){if(I!=="0"&&I!=="1")return!1;C=!0}return C&&I!=="_"}if(I==="x"){for(B++;B<A;B++)if(I=g[B],I!=="_"){if(!QS(g.charCodeAt(B)))return!1;C=!0}return C&&I!=="_"}for(;B<A;B++)if(I=g[B],I!=="_"){if(!ES(g.charCodeAt(B)))return!1;C=!0}return C&&I!=="_"}if(I==="_")return!1;for(;B<A;B++)if(I=g[B],I!=="_"){if(I===":")break;if(!oS(g.charCodeAt(B)))return!1;C=!0}return!C||I==="_"?!1:I!==":"?!0:/^(:[0-5]?[0-9])+$/.test(g.slice(B))}function rS(g){let A=g,I=1,B,C;const e=[];if(A.indexOf("_")!==-1&&(A=A.replace(/_/g,"")),B=A[0],(B==="-"||B==="+")&&(B==="-"&&(I=-1),A=A.slice(1),B=A[0]),A==="0")return BigInt(0);if(B==="0")return A[1]==="b"||A[1]==="x"?BigInt(A)*BigInt(I):BigInt("0o"+A)*BigInt(I);if(A.indexOf(":")!==-1){for(const t of A.split(":"))e.unshift(parseInt(t,10));A=BigInt(0),C=BigInt(1);for(const t of e)A=(BigInt(A)+BigInt(C))*BigInt(t),C=BigInt(C)*BigInt(60);return A*BigInt(I)}return BigInt(A)*BigInt(I)}function aS(g){return typeof g=="bigint"||typeof g=="number"}const sS=new iS("tag:yaml.org,2002:int",{kind:"scalar",resolve:nS,construct:rS,predicate:aS,instanceOf:BigInt,represent:{binary:function(g){return g>=0?"0b"+g.toString(2):"-0b"+g.toString(2).slice(1)},octal:function(g){return g>=0?"0"+g.toString(8):"-0"+g.toString(8).slice(1)},decimal:function(g){return g.toString(10)},hexadecimal:function(g){return g>=0?"0x"+g.toString(16).toUpperCase():"-0x"+g.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}});zn.extend({implicit:[wC.types.null,wC.types.bool,sS,wC.types.float],explicit:[]});class cS extends Error{}cS.code="ERR_ASSERTION";const lS=typeof mA<"u"&&typeof mA.from=="function";function hS(g){return lS?mA.from(g).toString("base64"):btoa(g)}var KA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ei(g){return g&&g.__esModule&&Object.prototype.hasOwnProperty.call(g,"default")?g.default:g}function Wn(g){if(g.__esModule)return g;var A=g.default;if(typeof A=="function"){var I=function B(){return this instanceof B?Reflect.construct(A,arguments,this.constructor):A.apply(this,arguments)};I.prototype=A.prototype}else I={};return Object.defineProperty(I,"__esModule",{value:!0}),Object.keys(g).forEach(function(B){var C=Object.getOwnPropertyDescriptor(g,B);Object.defineProperty(I,B,C.get?C:{enumerable:!0,get:function(){return g[B]}})}),I}var AB={},Vn;function SS(){if(Vn)return AB;Vn=1,Object.defineProperty(AB,"__esModule",{value:!0});function g(C){{const e=mA.from(C);e.reverse();const t=e.toString("hex");return t.length===0?BigInt(0):BigInt(`0x${t}`)}}AB.toBigIntLE=g;function A(C){{const e=C.toString("hex");return e.length===0?BigInt(0):BigInt(`0x${e}`)}}AB.toBigIntBE=A;function I(C,e){{const t=C.toString(16),i=mA.from(t.padStart(e*2,"0").slice(0,e*2),"hex");return i.reverse(),i}}AB.toBufferLE=I;function B(C,e){{const t=C.toString(16);return mA.from(t.padStart(e*2,"0").slice(0,e*2),"hex")}}return AB.toBufferBE=B,AB}SS();const Ci=48,ti=120;function wS(g){const A=new Array(g.length*2+2);return A[0]=Ci,A[1]=ti,$n(g,A),String.fromCharCode(...A)}const DC=new Array(32*2+2);DC[0]=Ci,DC[1]=ti;function DS(g){if(g.length!==32)throw Error(`Expect root to be 32 bytes, got ${g.length}`);return $n(g,DC),String.fromCharCode(...DC)}const Xn=new Array(48*2+2);Xn[0]=Ci,Xn[1]=ti;function yS(g){if(typeof g!="string")throw new Error(`hex argument type ${typeof g} must be of type string`);if(g.startsWith("0x")&&(g=g.slice(2)),g.length%2!==0)throw new Error(`hex string length ${g.length} must be multiple of 2`);const A=g.length/2,I=new Uint8Array(A);for(let B=0;B<A;B++){const C=parseInt(g.slice(B*2,(B+1)*2),16);I[B]=C}return I}function $n(g,A){if(g.length*2+2!==A.length)throw Error(`Expect charCodes to be of length ${g.length*2+2}, got ${A.length}`);for(let I=0;I<g.length;I++){const B=g[I],C=(B&240)>>4,e=B&15;A[2+2*I]=C<10?C+48:C+87,A[2+2*I+1]=e<10?e+48:e+87}}function uS(g){return mA.isBuffer(g)?"0x"+g.toString("hex"):g instanceof Uint8Array?"0x"+mA.from(g.buffer,g.byteOffset,g.length).toString("hex"):"0x"+mA.from(g).toString("hex")}let yC;function fS(g){if(g.length!==32)throw Error(`Expect root to be 32 bytes, got ${g.length}`);return yC===void 0&&(yC=mA.alloc(32)),yC.set(g),`0x${yC.toString("hex")}`}function pS(g){if(typeof g!="string")throw new Error(`hex argument type ${typeof g} must be of type string`);if(g.startsWith("0x")&&(g=g.slice(2)),g.length%2!==0)throw new Error(`hex string length ${g.length} must be multiple of 2`);const A=mA.from(g,"hex");return new Uint8Array(A.buffer,A.byteOffset,A.length)}let bg=wS,uC=DS,nA=yS;typeof mA<"u"&&(bg=uS,uC=fS,nA=pS);const FS={},dS=Object.freeze(Object.defineProperty({__proto__:null,default:FS},Symbol.toStringTag,{value:"Module"}));class de extends Error{constructor(A){super(`Aborted ${A||""}`)}}class GS extends Error{constructor(A){super(`Timeout ${A||""}`)}}function NS(g){return g instanceof de}BigInt(1e9),BigInt(1e9),BigInt("100000");function kS(g){return g.startsWith("0x")?g.slice(2):g}var ii;(function(g){g.error="error",g.warn="warn",g.info="info",g.verbose="verbose",g.debug="debug",g.trace="trace"})(ii||(ii={})),Object.values(ii);class RS extends Map{constructor(A){super(),this.getDefault=A}getOrDefault(A){let I=super.get(A);return I===void 0&&(I=this.getDefault(),this.set(A,I)),I}}function Ar(g,A,I){let B=g.size-A;const C=Math.max(0,B);if(B>0){const e=g.keys();for(const t of e)if(g.delete(t),B--,B<=0)break}return C}var Qi={exports:{}},US=Qi.exports,gr;function LS(){return gr||(gr=1,function(g){(function(){var A=function(w,y){return y=y||"",w.replace(/(^|-)/g,"$1\\u"+y).replace(/,/g,"\\u"+y)},I=A("20-26,28-2F,3A-40,5B-60,7B-7E,A0-BF,D7,F7","00"),B="a-z"+A("DF-F6,F8-FF","00"),C="A-Z"+A("C0-D6,D8-DE","00"),e="A|An|And|As|At|But|By|En|For|If|In|Of|On|Or|The|To|Vs?\\.?|Via",t=function(w,y,p,F){return w=w||I,y=y||B,p=p||C,F=F||e,{capitalize:new RegExp("(^|["+w+"])(["+y+"])","g"),pascal:new RegExp("(^|["+w+"])+(["+y+p+"])","g"),fill:new RegExp("["+w+"]+(.|$)","g"),sentence:new RegExp('(^\\s*|[\\?\\!\\.]+"?\\s+"?|,\\s+")(['+y+"])","g"),improper:new RegExp("\\b("+F+")\\b","g"),relax:new RegExp("([^"+p+"])(["+p+"]*)(["+p+"])(?=[^"+p+"]|$)","g"),upper:new RegExp("^[^"+y+"]+$"),hole:/[^\s]\s[^\s]/,apostrophe:/'/g,room:new RegExp("["+w+"]")}},i=t(),E={re:i,unicodes:A,regexps:t,types:[],up:String.prototype.toUpperCase,low:String.prototype.toLowerCase,cap:function(w){return E.up.call(w.charAt(0))+w.slice(1)},decap:function(w){return E.low.call(w.charAt(0))+w.slice(1)},deapostrophe:function(w){return w.replace(i.apostrophe,"")},fill:function(w,y,p){return y!=null&&(w=w.replace(i.fill,function(F,u){return u?y+u:""})),p&&(w=E.deapostrophe(w)),w},prep:function(w,y,p,F){if(w=w==null?"":w+"",!F&&i.upper.test(w)&&(w=E.low.call(w)),!y&&!i.hole.test(w)){var u=E.fill(w," ");i.hole.test(u)&&(w=u)}return!p&&!i.room.test(w)&&(w=w.replace(i.relax,E.relax)),w},relax:function(w,y,p,F){return y+" "+(p?p+" ":"")+F}},c={_:E,of:function(w){for(var y=0,p=E.types.length;y<p;y++)if(c[E.types[y]].apply(c,arguments)===w)return E.types[y]},flip:function(w){return w.replace(/\w/g,function(y){return(y==E.up.call(y)?E.low:E.up).call(y)})},random:function(w){return w.replace(/\w/g,function(y){return(Math.round(Math.random())?E.up:E.low).call(y)})},type:function(w,y){c[w]=y,E.types.push(w)}},n={lower:function(w,y,p){return E.fill(E.low.call(E.prep(w,y)),y,p)},snake:function(w){return c.lower(w,"_",!0)},constant:function(w){return c.upper(w,"_",!0)},camel:function(w){return E.decap(c.pascal(w))},kebab:function(w){return c.lower(w,"-",!0)},upper:function(w,y,p){return E.fill(E.up.call(E.prep(w,y,!1,!0)),y,p)},capital:function(w,y,p){return E.fill(E.prep(w).replace(i.capitalize,function(F,u,D){return u+E.up.call(D)}),y,p)},header:function(w){return c.capital(w,"-",!0)},pascal:function(w){return E.fill(E.prep(w,!1,!0).replace(i.pascal,function(y,p,F){return E.up.call(F)}),"",!0)},title:function(w){return c.capital(w).replace(i.improper,function(y,p,F,u){return F>0&&F<u.lastIndexOf(" ")?E.low.call(y):y})},sentence:function(w,y,p){return w=c.lower(w).replace(i.sentence,function(F,u,D){return u+E.up.call(D)}),y&&y.forEach(function(F){w=w.replace(new RegExp("\\b"+c.lower(F)+"\\b","g"),E.cap)}),p&&p.forEach(function(F){w=w.replace(new RegExp("(\\b"+c.lower(F)+"\\. +)(\\w)"),function(u,D,R){return D+E.low.call(R)})}),w}};n.squish=n.pascal,c.default=c;for(var s in n)c.type(s,n[s]);var S=typeof S=="function"?S:function(){};S(g.exports?g.exports=c:this.Case=c)}).call(US)}(Qi)),Qi.exports}var mS=LS();const Ei=ei(mS);function HS(g,A="camel",I){if(A==="notransform")return g;switch(A){case"param":return Ei.kebab(g);case"dot":return Ei.lower(g,".",!0);default:return Ei[A](g)}}function JS(g,A){const I={};for(const[B,C]of Object.entries(g))I[B]=A(C,B);return I}function fC(g,A="camel"){if(Array.isArray(g)){const I=[];for(let B=0;B<g.length;B++)I[B]=fC(g[B],A);return I}if(Object(g)===g){const I={};for(const B of Object.getOwnPropertyNames(g)){const C=HS(B,A);if(C!==B&&Object.prototype.hasOwnProperty.call(g,C))throw new Error(`object already has a ${C} property`);I[C]=fC(g[B],A)}return I}return g}async function Ir(g,A){if(!(g<0))return new Promise((I,B)=>{if(A?.aborted)return B(new de);let C=()=>{};const e=setTimeout(()=>{C(),I()},g),t=()=>{C(),B(new de)};A&&A.addEventListener("abort",t),C=()=>{clearTimeout(e),A&&A.removeEventListener("abort",t)}})}async function MS(g,A){const I=(A?.retries??5)+1,B=A?.shouldRetry,C=A?.onRetry;let e=Error("RetryError");for(let t=1;t<=I;t++){if(t>1){if(A?.signal?.aborted)throw new de("retry");C?.(e,t)}try{return await g(t)}catch(i){if(e=i,t===I||B&&!B(e))break;A?.retryDelay!==void 0&&await Ir(A?.retryDelay,A?.signal)}}throw e}var pC={exports:{}},Br;function qS(){if(Br)return pC.exports;Br=1;function g(A){const I=new globalThis.AbortController;function B(){I.abort();for(const C of A)!C||!C.removeEventListener||C.removeEventListener("abort",B)}for(const C of A)if(!(!C||!C.addEventListener)){if(C.aborted){B();break}C.addEventListener("abort",B)}return I.signal}return pC.exports=g,pC.exports.anySignal=g,pC.exports}qS();function KS(g){let A;try{A=new URL(g),decodeURIComponent(A.username),decodeURIComponent(A.password)}catch{return!1}return A.protocol==="http:"||A.protocol==="https:"}function YS(g){return new URL(g).origin}typeof wA<"u"&&wA.versions!=null&&wA.versions.node!=null;const bS=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]),er=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]),Cr={env:{abort:function(g,A,I,B){throw Error(`abort: ${g}:${A}:${I}:${B}`)}}};function TS(g){return WebAssembly.validate(er)?new WebAssembly.Instance(new WebAssembly.Module(er),Cr).exports:new WebAssembly.Instance(new WebAssembly.Module(bS),Cr).exports}function vS(g,A,I){let B=g.h0;A[0+I]=B&255,B=B>>8,A[1+I]=B&255,B=B>>8,A[2+I]=B&255,B=B>>8,A[3+I]=B&255,B=g.h1,A[4+I]=B&255,B=B>>8,A[5+I]=B&255,B=B>>8,A[6+I]=B&255,B=B>>8,A[7+I]=B&255,B=g.h2,A[8+I]=B&255,B=B>>8,A[9+I]=B&255,B=B>>8,A[10+I]=B&255,B=B>>8,A[11+I]=B&255,B=g.h3,A[12+I]=B&255,B=B>>8,A[13+I]=B&255,B=B>>8,A[14+I]=B&255,B=B>>8,A[15+I]=B&255,B=g.h4,A[16+I]=B&255,B=B>>8,A[17+I]=B&255,B=B>>8,A[18+I]=B&255,B=B>>8,A[19+I]=B&255,B=g.h5,A[20+I]=B&255,B=B>>8,A[21+I]=B&255,B=B>>8,A[22+I]=B&255,B=B>>8,A[23+I]=B&255,B=g.h6,A[24+I]=B&255,B=B>>8,A[25+I]=B&255,B=B>>8,A[26+I]=B&255,B=B>>8,A[27+I]=B&255,B=g.h7,A[28+I]=B&255,B=B>>8,A[29+I]=B&255,B=B>>8,A[30+I]=B&255,B=B>>8,A[31+I]=B&255}function _S(g,A){const I={h0:0,h1:0,h2:0,h3:0,h4:0,h5:0,h6:0,h7:0};return oi(g,A,I),I}function oi(g,A,I){let B=0;B|=g[3+A]&255,B=B<<8,B|=g[2+A]&255,B=B<<8,B|=g[1+A]&255,B=B<<8,B|=g[0+A]&255,I.h0=B,B=0,B|=g[7+A]&255,B=B<<8,B|=g[6+A]&255,B=B<<8,B|=g[5+A]&255,B=B<<8,B|=g[4+A]&255,I.h1=B,B=0,B|=g[11+A]&255,B=B<<8,B|=g[10+A]&255,B=B<<8,B|=g[9+A]&255,B=B<<8,B|=g[8+A]&255,I.h2=B,B=0,B|=g[15+A]&255,B=B<<8,B|=g[14+A]&255,B=B<<8,B|=g[13+A]&255,B=B<<8,B|=g[12+A]&255,I.h3=B,B=0,B|=g[19+A]&255,B=B<<8,B|=g[18+A]&255,B=B<<8,B|=g[17+A]&255,B=B<<8,B|=g[16+A]&255,I.h4=B,B=0,B|=g[23+A]&255,B=B<<8,B|=g[22+A]&255,B=B<<8,B|=g[21+A]&255,B=B<<8,B|=g[20+A]&255,I.h5=B,B=0,B|=g[27+A]&255,B=B<<8,B|=g[26+A]&255,B=B<<8,B|=g[25+A]&255,B=B<<8,B|=g[24+A]&255,I.h6=B,B=0,B|=g[31+A]&255,B=B<<8,B|=g[30+A]&255,B=B<<8,B|=g[29+A]&255,B=B<<8,B|=g[28+A]&255,I.h7=B}let mg,FC,dC,tr,tg;function OS(g){mg=TS(),mg.HAS_SIMD.valueOf(),FC=mg.input.value,dC=mg.output.value,new Uint8Array(mg.memory.buffer,FC,mg.INPUT_LENGTH),tr=new Uint8Array(mg.memory.buffer,dC,mg.PARALLEL_FACTOR*32),new Uint8Array(mg.memory.buffer,dC,32),tg=new Uint32Array(mg.memory.buffer,FC,mg.INPUT_LENGTH)}OS();function ZS(g,A){const I={h0:0,h1:0,h2:0,h3:0,h4:0,h5:0,h6:0,h7:0};return xS(g,A,I),I}function xS(g,A,I){tg[0]=g.h0,tg[1]=g.h1,tg[2]=g.h2,tg[3]=g.h3,tg[4]=g.h4,tg[5]=g.h5,tg[6]=g.h6,tg[7]=g.h7,tg[8]=A.h0,tg[9]=A.h1,tg[10]=A.h2,tg[11]=A.h3,tg[12]=A.h4,tg[13]=A.h5,tg[14]=A.h6,tg[15]=A.h7,mg.digest64(FC,dC),oi(tr,0,I)}const pI={PRESET_BASE:fg.mainnet,CONFIG_NAME:"mainnet",TERMINAL_TOTAL_DIFFICULTY:BigInt("58750000000000000000000"),TERMINAL_BLOCK_HASH:nA("0x0000000000000000000000000000000000000000000000000000000000000000"),TERMINAL_BLOCK_HASH_ACTIVATION_EPOCH:1/0,MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:16384,MIN_GENESIS_TIME:1606824e3,GENESIS_FORK_VERSION:nA("0x00000000"),GENESIS_DELAY:604800,ALTAIR_FORK_VERSION:nA("0x01000000"),ALTAIR_FORK_EPOCH:74240,BELLATRIX_FORK_VERSION:nA("0x02000000"),BELLATRIX_FORK_EPOCH:144896,CAPELLA_FORK_VERSION:nA("0x03000000"),CAPELLA_FORK_EPOCH:194048,DENEB_FORK_VERSION:nA("0x04000000"),DENEB_FORK_EPOCH:269568,ELECTRA_FORK_VERSION:nA("0x05000000"),ELECTRA_FORK_EPOCH:1/0,FULU_FORK_VERSION:nA("0x06000000"),FULU_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:nA("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},jS={PRESET_BASE:fg.minimal,CONFIG_NAME:"minimal",TERMINAL_TOTAL_DIFFICULTY:BigInt("115792089237316195423570985008687907853269984665640564039457584007913129638912"),TERMINAL_BLOCK_HASH:nA("0x0000000000000000000000000000000000000000000000000000000000000000"),TERMINAL_BLOCK_HASH_ACTIVATION_EPOCH:1/0,MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:64,MIN_GENESIS_TIME:1578009600,GENESIS_FORK_VERSION:nA("0x00000001"),GENESIS_DELAY:300,ALTAIR_FORK_VERSION:nA("0x01000001"),ALTAIR_FORK_EPOCH:74240,BELLATRIX_FORK_VERSION:nA("0x02000001"),BELLATRIX_FORK_EPOCH:1/0,CAPELLA_FORK_VERSION:nA("0x03000001"),CAPELLA_FORK_EPOCH:1/0,DENEB_FORK_VERSION:nA("0x04000001"),DENEB_FORK_EPOCH:1/0,ELECTRA_FORK_VERSION:nA("0x05000001"),ELECTRA_FORK_EPOCH:1/0,FULU_FORK_VERSION:nA("0x06000001"),FULU_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:nA("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 GC;switch(nC){case fg.minimal:GC=jS;break;case fg.mainnet:GC=pI;break;default:GC=pI}function PS(g){const A={...GC,...g};if(A.PRESET_BASE!==nC)throw new Error(`Can only create a config for the active preset: ACTIVE_PRESET=${nC} PRESET_BASE=${A.PRESET_BASE}`);return A}function FI(g,A){const I=BigInt(1)<<BigInt(g);if(A>=I)throw new Error(`index ${A} too large for depth ${g}`);return I|A}function ni(g,A){const I=A?Number(A).toString(2):"";if(I.length>g)throw new Error("index too large for depth");return"1"+I.padStart(g,"0")}function ri(g){if(typeof g=="string"){if(g.length===0)throw new Error(NC);return g}else{if(g<1)throw new Error(NC);return g.toString(2)}}const NC="Invalid gindex";function zS(g){let A;if(typeof g=="string"){if(!g.length)throw new Error(NC);A=g}else{if(g<1)throw new Error(NC);A=g.toString(2)}let I=1;const B=()=>{if(I===A.length)return{done:!0,value:void 0};const C=Number(A[I]);return I++,{done:!1,value:C}};return{[Symbol.iterator](){return{next:B}},remainingBitLength(){return A.length-I}}}function oI(g){return BigInt(g.reduce((A,I)=>A+I.toString(2).slice(1),"0b1"))}function Ge(g){if(!Number.isSafeInteger(g)||g<0)throw new Error(`Wrong positive integer: ${g}`)}function WS(g){if(typeof g!="boolean")throw new Error(`Expected boolean, not ${g}`)}function VS(g){return g instanceof Uint8Array||g!=null&&typeof g=="object"&&g.constructor.name==="Uint8Array"}function ai(g,...A){if(!VS(g))throw new Error("Expected Uint8Array");if(A.length>0&&!A.includes(g.length))throw new Error(`Expected Uint8Array of length ${A}, not of length=${g.length}`)}function XS(g){if(typeof g!="function"||typeof g.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Ge(g.outputLen),Ge(g.blockLen)}function Ne(g,A=!0){if(g.destroyed)throw new Error("Hash instance has been destroyed");if(A&&g.finished)throw new Error("Hash#digest() has already been called")}function si(g,A){ai(g);const I=A.outputLen;if(g.length<I)throw new Error(`digestInto() expects output buffer of length at least ${I}`)}const $S={number:Ge,bool:WS,bytes:ai,hash:XS,exists:Ne,output:si},Aw=g=>new Uint32Array(g.buffer,g.byteOffset,Math.floor(g.byteLength/4));function gw(g){return g instanceof Uint8Array||g!=null&&typeof g=="object"&&g.constructor.name==="Uint8Array"}const ci=g=>new DataView(g.buffer,g.byteOffset,g.byteLength),II=(g,A)=>g<<32-A|g>>>A;if(!(new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68))throw new Error("Non little-endian hardware is not supported");function Iw(g){if(typeof g!="string")throw new Error(`utf8ToBytes expected string, got ${typeof g}`);return new Uint8Array(new TextEncoder().encode(g))}function li(g){if(typeof g=="string"&&(g=Iw(g)),!gw(g))throw new Error(`expected Uint8Array, got ${typeof g}`);return g}class ir{clone(){return this._cloneInto()}}function Qr(g){const A=B=>g().update(li(B)).digest(),I=g();return A.outputLen=I.outputLen,A.blockLen=I.blockLen,A.create=()=>g(),A}function Bw(g,A,I,B){if(typeof g.setBigUint64=="function")return g.setBigUint64(A,I,B);const C=BigInt(32),e=BigInt(4294967295),t=Number(I>>C&e),i=Number(I&e),E=B?4:0,c=B?0:4;g.setUint32(A+E,t,B),g.setUint32(A+c,i,B)}class ew extends ir{constructor(A,I,B,C){super(),this.blockLen=A,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(A),this.view=ci(this.buffer)}update(A){Ne(this);const{view:I,buffer:B,blockLen:C}=this;A=li(A);const e=A.length;for(let t=0;t<e;){const i=Math.min(C-this.pos,e-t);if(i===C){const E=ci(A);for(;C<=e-t;t+=C)this.process(E,t);continue}B.set(A.subarray(t,t+i),this.pos),this.pos+=i,t+=i,this.pos===C&&(this.process(I,0),this.pos=0)}return this.length+=A.length,this.roundClean(),this}digestInto(A){Ne(this),si(A,this),this.finished=!0;const{buffer:I,view:B,blockLen:C,isLE:e}=this;let{pos:t}=this;I[t++]=128,this.buffer.subarray(t).fill(0),this.padOffset>C-t&&(this.process(B,0),t=0);for(let s=t;s<C;s++)I[s]=0;Bw(B,C-8,BigInt(this.length*8),e),this.process(B,0);const i=ci(A),E=this.outputLen;if(E%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const c=E/4,n=this.get();if(c>n.length)throw new Error("_sha2: outputLen bigger than state");for(let s=0;s<c;s++)i.setUint32(4*s,n[s],e)}digest(){const{buffer:A,outputLen:I}=this;this.digestInto(A);const B=A.slice(0,I);return this.destroy(),B}_cloneInto(A){A||(A=new this.constructor),A.set(...this.get());const{blockLen:I,buffer:B,length:C,finished:e,destroyed:t,pos:i}=this;return A.length=C,A.pos=i,A.finished=e,A.destroyed=t,C%I&&A.buffer.set(B),A}}const Cw=(g,A,I)=>g&A^~g&I,tw=(g,A,I)=>g&A^g&I^A&I,iw=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]),dI=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),GI=new Uint32Array(64);class Qw extends ew{constructor(){super(64,32,8,!1),this.A=dI[0]|0,this.B=dI[1]|0,this.C=dI[2]|0,this.D=dI[3]|0,this.E=dI[4]|0,this.F=dI[5]|0,this.G=dI[6]|0,this.H=dI[7]|0}get(){const{A,B:I,C:B,D:C,E:e,F:t,G:i,H:E}=this;return[A,I,B,C,e,t,i,E]}set(A,I,B,C,e,t,i,E){this.A=A|0,this.B=I|0,this.C=B|0,this.D=C|0,this.E=e|0,this.F=t|0,this.G=i|0,this.H=E|0}process(A,I){for(let s=0;s<16;s++,I+=4)GI[s]=A.getUint32(I,!1);for(let s=16;s<64;s++){const S=GI[s-15],w=GI[s-2],y=II(S,7)^II(S,18)^S>>>3,p=II(w,17)^II(w,19)^w>>>10;GI[s]=p+GI[s-7]+y+GI[s-16]|0}let{A:B,B:C,C:e,D:t,E:i,F:E,G:c,H:n}=this;for(let s=0;s<64;s++){const S=II(i,6)^II(i,11)^II(i,25),w=n+S+Cw(i,E,c)+iw[s]+GI[s]|0,y=(II(B,2)^II(B,13)^II(B,22))+tw(B,C,e)|0;n=c,c=E,E=i,i=t+w|0,t=e,e=C,C=B,B=w+y|0}B=B+this.A|0,C=C+this.B|0,e=e+this.C|0,t=t+this.D|0,i=i+this.E|0,E=E+this.F|0,c=c+this.G|0,n=n+this.H|0,this.set(B,C,e,t,i,E,c,n)}roundClean(){GI.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Er=Qr(()=>new Qw),KB=[new Uint8Array(32)];function NI(g){if(g>=KB.length)for(let A=KB.length;A<=g;A++)KB[A]=Er.create().update(KB[A-1]).update(KB[A-1]).digest();return KB[g]}function ke(g){const A=new Uint8Array(32);return vS(g,A,0),A}function Ew(g){return _S(g,0)}const rg=64;function ow(g,A,I,B,C){if(A<1)throw new Error(`Invalid padFor, expect to be greater than 0, got ${A}`);const e=Math.ceil(Math.log2(A));if(g.length===0){I.set(NI(e),B);return}if(g.length%32!==0)throw new Error(`Invalid input length, expect to be multiple of 32 bytes, got ${g.length}`);if(A>1&&g.length%rg!==0)throw new Error(`Invalid input length, expect to be multiple of 64 bytes, got ${g.length}, padFor=${A}`);let t=g.length,i=Math.floor(t/2),E=g;for(let c=0;c<e;c++){const n=g.subarray(0,i);C(E,n),Math.floor(i/32)%2===1&&c<e-1?(t=i+32,E=g.subarray(0,t),E.set(NI(c+1),i)):(E=n,t=i),i=Math.floor(t/2)}I.set(E.subarray(0,32),B)}function nw(g,A,I,B,C,e,t){if(I<1)throw new Error(`Invalid padFor, expect to be at least 1, got ${I}`);if(A>g.length)throw new Error(`Invalid blockLimit, expect to be less than or equal blocks.length ${g.length}, got ${A}`);const i=Math.ceil(Math.log2(I));if(A===0){B.set(NI(i),C);return}for(const w of g)if(w.length!==rg)throw new Error(`Invalid block length, expect to be 64 bytes, got ${w.length}`);if(t.length===0||t.length%(4*rg)!==0)throw new Error(`Invalid buffer length, expect to be multiple of 64 bytes, got ${t.length}`);const E=Math.floor(t.length/rg),c=Math.floor(E/2);let n=t,s=t.subarray(0,c*rg),S=A;for(let w=0;w<i;w++){let y=0;const p=Math.floor(S/E);for(let u=0;u<p;u++){for(let D=0;D<E;D++){const R=u*E+D;n.set(g[R],D*rg)}e(n,s);for(let D=0;D<c;D++)g[y].set(s.subarray(D*rg,(D+1)*rg)),y++}const F=S%E;n=t.subarray(0,F*rg),s=t.subarray(0,Math.floor(n.length/2));for(let u=Math.floor(S/E)*E;u<S;u++)n.set(g[u],u%E*rg);e(n,s);for(let u=0;u<Math.floor(s.length/rg);u++)g[y].set(s.subarray(u*rg,(u+1)*rg)),y++;s.length%rg!==0&&(g[y].set(s.subarray(s.length-32,s.length),0),g[y].set(NI(w+1),32),y++),S=y,n=t.subarray(0,S*rg),s=t.subarray(0,Math.floor(n.length/2))}B.set(g[0].subarray(0,32),C)}function rw(g,A,I){let B=g.length;const C=Math.pow(2,A)*32;if(A<1)throw new Error(`Invalid nLevel, expect to be greater than 0, got ${A}`);if(B%C!==0)throw new Error(`Invalid input length, expect to be multiple of ${C} for nLevel ${A}, got ${B}`);let e=Math.floor(B/2),t=g;for(let i=A;i>0;i--){const E=t.subarray(0,e);I(t,E),t=E,B=e,e=Math.floor(B/2)}return t}const hi=(g,A)=>Er.create().update(g).update(A).digest(),Si=(g,A)=>{if(g.length%64!==0)throw new Error(`Invalid input length ${g.length}`);if(g.length!==A.length*2)throw new Error(`Invalid output length ${A.length}`);const I=Math.floor(g.length/64);for(let B=0;B<I;B++){const C=B*64,e=g.subarray(C,C+32),t=g.subarray(C+32,C+64),i=hi(e,t);A.set(i,B*32)}},aw=new Uint8Array(4*rg);let Re={name:"noble",digest64:hi,digest64HashObjects:(g,A,I)=>{oi(hi(ke(g),ke(A)),0,I)},merkleizeBlocksBytes(g,A,I,B){return ow(g,A,I,B,Si)},merkleizeBlockArray(g,A,I,B,C){return nw(g,A,I,B,C,Si,aw)},digestNLevel(g,A){return rw(g,A,Si)},executeHashComputations:g=>{for(let A=g.length-1;A>=0;A--){const I=g[A];if(!I)throw Error(`no hash computations for level ${A}`);for(const B of I)B.dest.applyHash(ZS(B.src0,B.src1))}}};function sw(g){Re.executeHashComputations(g)}const or=2**32;class wi{h0;h1;h2;h3;h4;h5;h6;h7;constructor(A,I,B,C,e,t,i,E){this.h0=A,this.h1=I,this.h2=B,this.h3=C,this.h4=e,this.h5=t,this.h6=i,this.h7=E}applyHash(A){this.h0=A.h0,this.h1=A.h1,this.h2=A.h2,this.h3=A.h3,this.h4=A.h4,this.h5=A.h5,this.h6=A.h6,this.h7=A.h7}}class YA extends wi{_left;_right;constructor(A,I){if(super(null,0,0,0,0,0,0,0),this._left=A,this._right=I,!A)throw new Error("Left node is undefined");if(!I)throw new Error("Right node is undefined")}get rootHashObject(){return this.h0===null&&Re.digest64HashObjects(this.left.rootHashObject,this.right.rootHashObject,this),this}get root(){return ke(this.rootHashObject)}get left(){return this._left}get right(){return this._right}isLeaf(){return!1}}class bA extends wi{get rootHashObject(){return this}get root(){return ke(this)}get left(){throw Error("LeafNode has no left node")}get right(){throw Error("LeafNode has no right node")}static fromRoot(A){return this.fromHashObject(Ew(A))}static fromHashObject(A){return new bA(A.h0,A.h1,A.h2,A.h3,A.h4,A.h5,A.h6,A.h7)}static fromZero(){return new bA(0,0,0,0,0,0,0,0)}static fromUint32(A){return new bA(A,0,0,0,0,0,0,0)}clone(){return bA.fromHashObject(this)}isLeaf(){return!0}writeToBytes(A,I,B){A.set(this.root.slice(0,B),I)}getUint(A,I,B){const C=Math.floor(I/4);if(A<4){const e=I%4*8,t=Tg(this,C);return A===1?255&t>>e:65535&t>>e}else{if(A===4)return Tg(this,C)>>>0;if(A===8){const e=Tg(this,C),t=Tg(this,C+1);return t===0?e>>>0:t===-1&&e===-1&&B?1/0:(e>>>0)+(t>>>0)*or}else throw Error("uintBytes > 8")}}getUintBigint(A,I){const B=Math.floor(I/4);if(A<4){const C=I%4*8,e=Tg(this,B);return BigInt(A===1?255&e>>C:65535&e>>C)}else{if(A===4)return BigInt(Tg(this,B)>>>0);{const C=Math.ceil(A/4);let e=BigInt(0);for(let t=0;t<C;t++)e+=BigInt(Tg(this,B+t)>>>0)<<BigInt(32*t);return e}}}setUint(A,I,B,C){const e=Math.floor(I/4);if(A<4){const t=I%4*8;let i=Tg(this,e);A===1?(i&=~(255<<t),i|=B<<t):(i&=~(65535<<t),i|=B<<t),hg(this,e,i)}else if(A===4)hg(this,e,B);else if(A===8)B===1/0&&C?(hg(this,e,-1),hg(this,e+1,-1)):(hg(this,e,B&4294967295),hg(this,e+1,B/or&4294967295));else throw Error("uintBytes > 8")}setUintBigint(A,I,B){const C=Math.floor(I/4);if(A<4){const e=Number(B),t=I%4*8;let i=Tg(this,C);A===1?(i&=~(255<<t),i|=e<<t):(i&=~(65535<<t),i|=e<<t),hg(this,C,i)}else if(A===4)hg(this,C,Number(B));else{const e=C+Math.ceil(A/4);for(let t=C;t<e;t++)hg(this,t,Number(B&BigInt(4294967295))),B=B>>BigInt(32)}}bitwiseOrUint(A,I,B){const C=Math.floor(I/4);if(A<4){const e=I%4*8;Di(this,C,B<<e)}else if(A===4)Di(this,C,B);else{const e=C+Math.ceil(A/4);for(let t=C;t<e;t++)Di(this,t,B&4294967295),B>>=32}}}function Tg(g,A){if(A===0)return g.h0;if(A===1)return g.h1;if(A===2)return g.h2;if(A===3)return g.h3;if(A===4)return g.h4;if(A===5)return g.h5;if(A===6)return g.h6;if(A===7)return g.h7;throw Error("hIndex > 7")}function hg(g,A,I){if(A===0)g.h0=I;else if(A===1)g.h1=I;else if(A===2)g.h2=I;else if(A===3)g.h3=I;else if(A===4)g.h4=I;else if(A===5)g.h5=I;else if(A===6)g.h6=I;else if(A===7)g.h7=I;else throw Error("hIndex > 7")}function Di(g,A,I){if(A===0)g.h0|=I;else if(A===1)g.h1|=I;else if(A===2)g.h2|=I;else if(A===3)g.h3|=I;else if(A===4)g.h4|=I;else if(A===5)g.h5|=I;else if(A===6)g.h6|=I;else if(A===7)g.h7|=I;else throw Error("hIndex > 7")}class cw{_length;_totalLength;head;tail;pointer;constructor(){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(A,I,B){if(this.tail!==null){let C=this.tail.next;C!==null?(C.src0=A,C.src1=I,C.dest=B):(C={src0:A,src1:I,dest:B,next:null},this.tail.next=C,this._totalLength++),this.tail=C,this._length++;return}this.head.src0=A,this.head.src1=I,this.head.dest=B,this.tail=this.head,this._length=1,this._totalLength===0&&(this._totalLength=1)}clean(){let A=this.tail?.next??null;for(;A!==null&&A.src0!==null;)A.src0=null,A.src1=null,A.dest=null,A=A.next}next(){if(!this.pointer||this.tail===null)return{done:!0,value:void 0};const A=this.pointer,I=A.src0===null;return this.pointer=this.pointer.next,I?{done:!0,value:void 0}:{done:!1,value:A}}[Symbol.iterator](){return this.pointer=this.head,this}toArray(){const A=[];for(const I of this)A.push(I);return A}dump(){const A=[];let I=null;for(I=this.head;I!==null;I=I.next)A.push(I);return A}}class lw{byLevel;constructor(){this.byLevel=[]}reset(){for(const A of this.byLevel)A.reset()}clean(){for(const A of this.byLevel)A.clean()}}function ag(g,A,I){if(g.h0===null){const B=vg(I,A),{left:C,right:e}=g;B.push(C,e,g),ag(C,A+1,I),ag(e,A+1,I)}}function vg(g,A){return g[A]===void 0&&(g[A]=new cw),g[A]}const gB=[bA.fromZero()];function IB(g){if(g>=gB.length){for(let A=gB.length;A<=g;A++)gB[A]=new YA(gB[A-1],gB[A-1]);gB[g].root}return gB[g]}function Ue(g,A,I=0,B=null){const C=2**A;if(g.length>C)throw new Error(`nodes.length ${g.length} over maxIndex at depth ${A}`);if(g.length===0)return IB(A);if(A===0){const t=g[0];return B!==null&&ag(t,I,B),t}if(A===1){const t=g[0],i=g.length>1?g[1]:IB(0),E=new YA(t,i);return B!==null&&(ag(t,I+1,B),ag(i,I+1,B),vg(B,I).push(t,i,E)),E}let e=g.length;for(let t=A;t>0;t--){const i=e%2,E=e-i,c=B?I+t-1:null;for(let n=0;n<E;n+=2){const s=g[n],S=g[n+1],w=new YA(s,S);g[n/2]=w,c!==null&&B!==null&&(vg(B,c).push(s,S,w),t===A&&(ag(s,c+1,B),ag(S,c+1,B)))}if(i>0){const n=g[E],s=IB(A-t),S=new YA(n,s);g[E/2]=S,c!==null&&B!==null&&(t===A&&ag(n,c+1,B),vg(B,c).push(n,s,S))}e=E/2+i}return g[0]}const hw=2**32;function Le(g,A,I,B){const C=ww(A,I,B);return Ue(C,g)}function Sw(g){const A=new Array(Math.ceil(g.length/4));for(let I=0;I<g.length;I++){const B=Math.floor(I/4),C=A[B]??new bA(0,0,0,0,0,0,0,0),e=2*(I%4),t=g[I];t===1/0?(hg(C,e,4294967295),hg(C,e+1,4294967295)):(hg(C,e,t&4294967295),hg(C,e+1,t/hw&4294967295)),A[B]=C}return A}function ww(g,A,I){const B=I-A,C=Math.floor(B/32),e=new Array(Math.ceil(B/32));for(let i=0;i<C;i++){const E=A+i*32;e[i]=new bA(g.getInt32(E+0,!0),g.getInt32(E+4,!0),g.getInt32(E+8,!0),g.getInt32(E+12,!0),g.getInt32(E+16,!0),g.getInt32(E+20,!0),g.getInt32(E+24,!0),g.getInt32(E+28,!0))}const t=B%32;if(t>0){const i=new bA(0,0,0,0,0,0,0,0);e[C]=i;const E=Math.floor(t/4);for(let n=0;n<E;n++)hg(i,n,g.getInt32(A+C*32+n*4,!0));const c=B%4;if(c>0){let n=0;for(let s=0;s<c;s++)n|=g.getUint8(A+B-c+s)<<s*8;hg(i,E,n)}}return e}function me(g,A,I,B){const C=I%32,e=Math.floor(I/32);for(let t=0;t<e;t++){const i=B[t],E=A+t*32;g.setInt32(E+0,i.h0,!0),g.setInt32(E+4,i.h1,!0),g.setInt32(E+8,i.h2,!0),g.setInt32(E+12,i.h3,!0),g.setInt32(E+16,i.h4,!0),g.setInt32(E+20,i.h5,!0),g.setInt32(E+24,i.h6,!0),g.setInt32(E+28,i.h7,!0)}if(C>0){const t=B[e],i=Math.floor(C/4);for(let c=0;c<i;c++)g.setInt32(A+e*32+c*4,Tg(t,c),!0);const E=I%4;if(E>0){const c=Tg(t,i);for(let n=0;n<E;n++)g.setUint8(A+I-E+n,c>>n*8&255)}}}const nr="Invalid tree navigation";function rr(g,A){const I=[];let B=g;for(const C of zS(A))if(C){if(B.isLeaf())throw new Error(nr);I.push(B.left.root),B=B.right}else{if(B.isLeaf())throw new Error(nr);I.push(B.right.root),B=B.left}return[B.root,I.reverse()]}function Dw(g,A,I){let B=bA.fromRoot(A);const C=I.slice().reverse();for(;g>1;){const e=bA.fromRoot(C.pop());g%BigInt(2)===BigInt(0)?B=new YA(B,e):B=new YA(e,B),g=g/BigInt(2)}return B}class dg{_rootNode;hook;constructor(A,I){this._rootNode=A,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(A){if(this._rootNode=A,this.hook)if(typeof WeakRef>"u")this.hook(A);else{const I=this.hook.deref();I?I(A):this.hook=void 0}}static createFromProof(A){return new dg(Mw(A))}clone(){return new dg(this.rootNode)}getSubtree(A){return new dg(this.getNode(A),I=>this.setNode(A,I))}getNode(A){return He(this.rootNode,A)}getNodeAtDepth(A,I){return Hg(this.rootNode,A,I)}getRoot(A){return this.getNode(A).root}setNode(A,I){this.rootNode=yw(this.rootNode,A,I)}setNodeWithFn(A,I){this.rootNode=uw(this.rootNode,A,I)}setNodeAtDepth(A,I,B){this.rootNode=fw(this.rootNode,A,I,B)}setRoot(A,I){this.setNode(A,bA.fromRoot(I))}getNodesAtDepth(A,I,B){return ig(this.rootNode,A,I,B)}iterateNodesAtDepth(A,I,B){return pw(this.rootNode,A,I,B)}getSingleProof(A){return rr(this.rootNode,A)[1]}getProof(A){return wr(this.rootNode,A)}}function He(g,A){const I=ri(A);let B=g;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 yw(g,A,I){const B=ri(A),C=ar(g,B);return sr(B,C,I)}function uw(g,A,I){const B=ri(A),C=ar(g,B),e=C[C.length-1],t=B[B.length-1]==="1"?e.right:e.left,i=I(t);return sr(B,C,i)}function ar(g,A){let I=g;const B=[g];for(let C=1;C<A.length-1;C++)A[C]==="1"?I=I.right:I=I.left,B.push(I);return B}function sr(g,A,I){let B=I;for(let C=g.length-1;C>=1;C--)g[C]==="1"?B=new YA(A[C-1].left,B):B=new YA(B,A[C-1].right);return B}function Hg(g,A,I){if(A===0)return g;if(A===1)return I===0?g.left:g.right;const B=A-1,C=0;let e=g;for(let t=B;t>=C;t--)e=BB(t,I)?e.left:e.right;return e}function fw(g,A,I,B){return Je(g,A,[I],[B])}function Je(g,A,I,B,C=0,e=null){if(A===0)return B.length>0?B[0]:g;const t=new Array(A),i=new Array(A),E=A-1,c=0;let n=E,s=g;t[E]=g;for(let S=0;S<I.length;S++){const w=I[S];for(let F=n;F>c;F--)s=BB(F,w)?s.left:s.right,t[F-1]=s;if(n=c,(w&1)!==1)if(w+1===I[S+1])s=new YA(B[S],B[S+1]),e!=null&&vg(e,A-1+C).push(B[S],B[S+1],s),S++;else{const F=s;s=new YA(B[S],F.right),e!=null&&vg(e,A-1+C).push(B[S],F.right,s)}else{const F=s;s=new YA(F.left,B[S]),e!=null&&vg(e,A-1+C).push(F.left,B[S],s)}const y=S>=I.length-1,p=y?E:Fw(w,I[S+1]);for(let F=c+1;F<=p;F++){const u=A-F-1;if(u<0)throw Error(`Invalid depth ${u}, d=${F}, nodesDepth=${A}`);if(BB(F,w))if(y||F!==p){const D=s;s=new YA(D,t[F].right),e!=null&&vg(e,u+C).push(D,t[F].right,s)}else i[F]=s,s=t[F];else{const D=i[F];if(D!==void 0){const R=s;s=new YA(D,R),e!=null&&vg(e,u+C).push(D,R,s),i[F]=void 0}else{const R=s;s=new YA(t[F].left,R),e!=null&&vg(e,u+C).push(t[F].left,R,s)}}}n=p}return s}function ig(g,A,I,B){if(A===0)return I===0&&B>0?[g]:[];if(A===1)return B===0?[]:B===1?I===0?[g.left]:[g.right]:[g.left,g.right];const C=A-1,e=0;let t=C,i=g;const E=new Array(A),c=new Array(A),n=new Array(B);E[C]=g;for(let s=0;s<B;s++){for(let S=t;S>=e;S--){S!==t&&(E[S]=i);const w=BB(S,I+s);c[S]=w,i=w?i.left:i.right}n[s]=i;for(let S=e;S<=C;S++)if(c[S]===!0){t=S;break}i=E[t]}return n}function*pw(g,A,I,B){const C=I+B,e=A-1,t=0;let i=e,E=g;const c=new Array(A),n=new Array(A);c[e]=g;for(let s=I;s<C;s++){for(let S=i;S>=t;S--){S!==i&&(c[S]=E);const w=BB(S,s);n[S]=w,E=w?E.left:E.right}yield E;for(let S=t;S<=e;S++)if(n[S]===!0){i=S;break}E=c[i]}}function cr(g,A,I){if(I<0)return IB(A);const B=new Array(A),C=A-1,e=0;let t=C,i=g;B[C]=g;for(let E=t;E>=e;E--)i=BB(E,I)?i.left:i.right,B[E-1]=i;t=e;for(let E=e;E<=C;E++)BB(E,I)?i=new YA(i,IB(E)):i=new YA(B[E].left,i);return i}const kC=4294967295,lr=2**32;function Fw(g,A){if(g===A||g<0||A<0)throw Error(`Expect different positive inputs, from=${g} to=${A}`);const I=Math.ceil(Math.log2(g+1)),B=Math.ceil(Math.log2(A+1));if(I!==B)return Math.max(I,B)-1;if(I>32){const C=Math.floor(g/lr)&kC,e=Math.floor(A/lr)&kC;return C===e?yi(g&kC,A&kC):32+yi(C,e)}return yi(g,A)}function BB(g,A){if(g>31){const B=A/4294967296>>>0,C=1<<g-32;return(B&C)!==C}const I=1<<g;return(A&I)!==I}function yi(g,A){const I=g^A;if(I===0)throw Error(`Do not support equal value from=${g} to=${A}`);return(I<0?32:Math.ceil(Math.log2(I+1)))-1}function dw(g){const A=new Set,I=new Set;let B=g;for(;B.length>1;){A.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:A,branch:I}}function Gw(g,A){return g.length?g.map(I=>I.padEnd(A)).sort().map(I=>I.trim()):[]}function Nw(g){return g.length?g.sort((A,I)=>{if(A.length<I.length)return 1;if(I.length<A.length)return-1;let B=A.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=A.indexOf("0",B+1),C=I.indexOf("0",C+1)}}):[]}function kw(g){const A=g.slice().sort((B,C)=>B.length-C.length),I=[];A:for(let B=0;B<A.length;B++){const C=A[B];for(let e=B+1;e<A.length;e++)if(A[e].startsWith(C))continue A;I.push(C)}return I}var kI;(function(g){g[g.InOrder=0]="InOrder",g[g.Decreasing=1]="Decreasing",g[g.Unsorted=2]="Unsorted"})(kI||(kI={}));function ui(g,A=!0,I=kI.InOrder){const B=kw(g),C=new Set(A?B:[]),e=new Set,t=new Set;let i=1;for(const E of B){E.length>i&&(i=E.length);const{path:c,branch:n}=dw(E);c.forEach(s=>e.add(s)),n.forEach(s=>t.add(s))}switch(e.forEach(E=>t.delete(E)),t.forEach(E=>C.add(E)),I){case kI.InOrder:return Gw(Array.from(C),i);case kI.Decreasing:return Nw(Array.from(C));case kI.Unsorted:return Array.from(C)}}function Rw(g,A){const I=new dg(g),B=ui(A.map(i=>i.toString(2)),!1,kI.Decreasing),C=A.slice().sort((i,E)=>i<E?1:-1),e=C.map(i=>I.getRoot(i)),t=B.map(i=>I.getRoot(i));return[e,t,C]}function Uw(g,A,I){if(g.length!==I.length)throw new Error("Leaves length should equal gindices length");const B=I.map(E=>E.toString(2)),C=ui(B,!1,kI.Decreasing);if(C.length!==A.length)throw new Error("Witnesses length should equal witnesses gindices length");const e=Math.max(B[0]?.length??0,C[0]?.length??0),t=Object.fromEntries(Array.from({length:e},(E,c)=>[c+1,{}]));for(let E=0;E<B.length;E++){const c=B[E],n=g[E];t[c.length][c]=bA.fromRoot(n)}for(let E=0;E<C.length;E++){const c=C[E],n=A[E];t[c.length][c]=bA.fromRoot(n)}for(let E=e;E>1;E--){const c=t[E],n=t[E-1];for(const s of Object.keys(c)){const S=c[s];if(!S)continue;const w=s[s.length-1]==="0",y=s.substring(0,s.length-1),p=y+(w?"1":"0"),F=c[p];if(!F)throw new Error(`Sibling not found: ${p}`);const u=w?new YA(S,F):new YA(F,S);n[y]=u,delete c[s],delete c[p]}}const i=t[1][1];if(!i)throw new Error("Internal consistency error: no root found");return i}function hr(g,A){const I=A%8,B=Math.floor(A/8),C=g[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 Sr(g){const A=[],I=g.length*8;let B=0,C=0;for(let e=0;e<I;e++){const t=hr(g,e);if(A.push(t),t?C++:B++,C>B){if(e++,e+7<I)throw new Error("Invalid descriptor: too many bytes");for(;e<I;e++)if(hr(g,e))throw new Error("Invalid descriptor: too many 1 bits");return A}}throw new Error("Invalid descriptor: not enough 1 bits")}function fi(g,A,I){if(A[I])return[g.root];{const B=fi(g.left,A,I+1),C=fi(g.right,A,I+B.length*2);return[...B,...C]}}function pi(g,A,I){return g[I.bitIndex++]?bA.fromRoot(A[I.leafIndex++]):new YA(pi(g,A,I),pi(g,A,I))}function Lw(g,A){return fi(g,Sr(A),0)}function mw(g,A){const I=Sr(A);if(I.length!==g.length*2-1)throw new Error("Invalid multiproof: invalid number of leaves");return pi(I,g,{bitIndex:0,leafIndex:0})}function Fi(g,A,I){if(!I.length||!I[0].startsWith(A))return[[],[]];if(A===I[0])return I.shift(),[[],[g.root]];{const[B,C]=Fi(g.left,A+"0",I),[e,t]=Fi(g.right,A+"1",I);return[[C.length].concat(B,e),C.concat(t)]}}function di(g,A){if(A.length){if(A.length===1)return bA.fromRoot(A[0]);{const I=g[0];return new YA(di(g.slice(1,I),A.slice(0,I)),di(g.slice(I),A.slice(I)))}}else throw new Error("Proof must contain gt 0 leaves")}function Hw(g,A){return Fi(g,"1",ui(A.map(I=>I.toString(2))))}function Jw(g,A){return di(g,A)}var TA;(function(g){g.single="single",g.treeOffset="treeOffset",g.multi="multi",g.compactMulti="compactMulti"})(TA||(TA={})),TA.single,TA.treeOffset,TA.multi,TA.compactMulti;function wr(g,A){switch(A.type){case TA.single:{const[I,B]=rr(g,A.gindex);return{type:TA.single,gindex:A.gindex,leaf:I,witnesses:B}}case TA.treeOffset:{const[I,B]=Hw(g,A.gindices);return{type:TA.treeOffset,offsets:I,leaves:B}}case TA.multi:{const[I,B,C]=Rw(g,A.gindices);return{type:TA.multi,leaves:I,witnesses:B,gindices:C}}case TA.compactMulti:{const I=Lw(g,A.descriptor);return{type:TA.compactMulti,leaves:I,descriptor:A.descriptor}}default:throw new Error("Invalid proof type")}}function Mw(g){switch(g.type){case TA.single:return Dw(g.gindex,g.leaf,g.witnesses);case TA.treeOffset:return Jw(g.offsets,g.leaves);case TA.multi:return Uw(g.leaves,g.witnesses,g.gindices);case TA.compactMulti:return mw(g.leaves,g.descriptor);default:throw new Error("Invalid proof type")}}function qw(g,A,I){if(I<0)throw new Error(`Expect count to be non-negative, got ${I}`);return{finalized:(I>0?Kw(A,I-1):[]).map(B=>He(g,B).root),count:I}}function Kw(g,A){if(A<0||g<0)throw new Error(`Expect index and depth to be non-negative, got ${A} and ${g}`);const I=Array.from({length:g+1},()=>0);let B=A+1;const C=[];for(;B>0;){const e=Math.floor(Math.log2(B)),t=2**e,i=g-e,E=FI(i,BigInt(I[i]));C.push(E);for(let c=0;c<=e;c++)I[i+c]+=Math.pow(2,c);B-=t}return C}const eB=Symbol("ssz_cached_permanent_root");function Gi(g,A){return Re.digest64(g,A)}function Yw(g,A){const I=Dr(bw(A)-1);if(g.length==0)return NI(I);let B=g.length;for(let C=0;C<I;C++){const e=B%2,t=B+e;for(let i=0;i<e;i++)g[B+i]=NI(C);for(let i=0;i<t;i+=2)g[i/2]=Gi(g[i],g[i+1]);B=t/2}return g[0]}function RC(g){const A=Math.ceil(g.length/32),I=new Array(A);for(let B=0;B<A;B++){const C=new Uint8Array(32);C.set(g.slice(B*32,(B+1)*32)),I[B]=C}return I}function UC(g,A){const I=mA.alloc(32);return I.writeUIntLE(A,0,6),Gi(g,I)}function Dr(g){return g===0?0:Math.floor(Math.log2(g))+1}function nI(g){return g===0?0:Math.ceil(Math.log2(g))}function bw(g){return g<=0?1:Math.pow(2,Dr(g-1))}function Gg(g,A){return new Function("superClass",`return class ${A} extends superClass {}`)(g)}function CB(g){return g.right.getUint(4,0)}function yr(g){return g.left}function tB(g,A){return new YA(g,bA.fromUint32(A))}function ur(g,A,I,B=0,C=null){const e=I!==null?bA.fromUint32(I):g.right,t=new YA(A,e);return C!==null&&vg(C,B).push(A,e,t),t}function LC(g,A,I,B,C){const e=g.byteLength;for(let t=0;t<A;t++)g.value_serializeToBytes(I,B+t*e,C[t]);return B+A*e}function fr(g,A,I,B,C){const e=g.byteLength,t=(B-I)/e;mC(t,C,!0);const i=new Array(t);for(let E=0;E<t;E++)i[E]=g.value_deserializeFromBytes(A,I+E*e,I+(E+1)*e);return i}function Ni(g,A,I,B,C,e,t=null){const i=g.byteLength*A,E=Math.ceil(i/32),c=t??ig(e,I,0,E);return me(B.dataView,C,i,c),C+i}function pr(g,A,I,B,C,e){const t=(C-B)/g.byteLength;mC(t,e,!0);const i=Le(A,I.dataView,B,C);return e.isList?tB(i,t):i}function Tw(g,A,I){if(!Array.isArray(A))throw Error("JSON is not an array");mC(A.length,I);const B=new Array(A.length);for(let C=0;C<A.length;C++)B[C]=g.fromJson(A[C]);return B}function vw(g,A,I){const B=I.isList?A.length:I.length,C=new Array(B);for(let e=0;e<B;e++)C[e]=g.toJson(A[e]);return C}function _w(g,A){const I=new Array(A.length);for(let B=0;B<A.length;B++)I[B]=g.clone(A[B]);return I}function Ow(g,A,I){if(A.length!==I.length)return!1;for(let B=0;B<A.length;B++)if(!g.equals(A[B],I[B]))return!1;return!0}function Zw(g,A){const I=new Array(A);for(let B=0;B<A;B++)I[B]=g.defaultValue();return I}function mC(g,A,I){if(I&&g%1!==0)throw Error("size not multiple of element fixedSize");if(A.isList){if(g>A.limit)throw new Error(`Invalid list length ${g} over limit ${A.limit}`)}else if(g!==A.length)throw new Error(`Incorrect vector length ${g} expected ${A.length}`)}const ki=new Array(256);class rI{uint8Array;bitLen;constructor(A,I){if(this.uint8Array=A,this.bitLen=I,A.length!==Math.ceil(I/8))throw Error("BitArray uint8Array length does not match bitLen")}static fromBitLen(A){return new rI(new Uint8Array(Math.ceil(A/8)),A)}static fromSingleBit(A,I){const B=rI.fromBitLen(A);return B.set(I,!0),B}static fromBoolArray(A){const I=rI.fromBitLen(A.length);for(let B=0;B<A.length;B++)A[B]===!0&&I.set(B,!0);return I}clone(){return new rI(Uint8Array.prototype.slice.call(this.uint8Array,0),this.bitLen)}get(A){const I=Math.floor(A/8),B=1<<A%8;return(this.uint8Array[I]&B)===B}set(A,I){if(A>=this.bitLen)throw Error(`BitArray set bitIndex ${A} beyond bitLen ${this.bitLen}`);const B=Math.floor(A/8),C=1<<A%8;let e=this.uint8Array[B];I?(e|=C,this.uint8Array[B]=e):(e&C)===C&&(e^=C,this.uint8Array[B]=e)}mergeOrWith(A){if(A.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]|A.uint8Array[I]}intersectValues(A){const I=[];if(A.length!==this.bitLen)throw Error(`Must not intersect values of length ${A.length} != bitLen ${this.bitLen}`);const B=Math.floor(this.bitLen/8),C=this.bitLen%8,e=this.uint8Array;for(let t=0;t<B;t++){const i=HC(e[t]);for(let E=0;E<8;E++)i[E]&&I.push(A[t*8+E])}if(C>0){const t=HC(e[B]);for(let i=0;i<C;i++)t[i]&&I.push(A[B*8+i])}return I}getTrueBitIndexes(){const A=[],I=this.uint8Array;for(let B=0,C=I.length;B<C;B++){const e=HC(I[B]);for(let t=0;t<8;t++)e[t]&&A.push(B*8+t)}return A}getSingleTrueBit(){let A=null;const I=this.uint8Array;for(let B=0,C=I.length;B<C;B++){if(I[B]===0)continue;const e=HC(I[B]);for(let t=0;t<8;t++)if(e[t]===!0){if(A!==null)return null;A=B*8+t}}return A===null?null:A}toBoolArray(){const A=new Array(this.bitLen);for(let I=0;I<this.bitLen;I++)A[I]=this.get(I);return A}}function HC(g){return ki[g]||(ki[g]=xw(g)),ki[g]}function xw(g){const A=g.toString(2),I=A.length,B=new Array(8);for(let C=0;C<8;C++)B[C]=C<I?A[I-C-1]==="1":!1;return B}const Ri=new Array(256);function Fr(g){let A="0x";for(const I of g)Ri[I]||(Ri[I]=I<16?"0"+I.toString(16):I.toString(16)),A+=Ri[I];return A}function dr(g){if(typeof g!="string")throw new Error(`hex argument type ${typeof g} must be of type string`);if(g.startsWith("0x")&&(g=g.slice(2)),g.length%2!==0)throw new Error(`hex string length ${g.length} must be multiple of 2`);const A=g.length/2,I=new Uint8Array(A);for(let B=0;B<A;B++){const C=parseInt(g.slice(B*2,(B+1)*2),16);I[B]=C}return I}function aI(g,A){if(g.length!==A.length)return!1;for(let I=0;I<g.length;I++)if(g[I]!==A[I])return!1;return!0}function Gr(g){return!g.isBasic}function JC(g,A,I="",B=0){if(B===0){const e=A.tree_fromProofNode(g);if(e.done)return e.node;g=e.node}const C=A.depth===B;if(g.isLeaf())if(C){const e=A.getIndexProperty(Nr(I));if(e===null)return g;const t=A.getPropertyType(e);return t.maxChunkCount===1&&Gr(t)?t.tree_fromProofNode(g).node:g}else return g;else if(C){const e=A.getIndexProperty(Nr(I));if(e===null)return g;const t=A.getPropertyType(e);if(!Gr(t))throw Error("BranchNode does not map to CompositeType");const i=t.tree_fromProofNode(g);return i.done?i.node:JC(i.node,t)}else{const e=JC(g.left,A,I+"0",B+1),t=JC(g.right,A,I+"1",B+1);return e===g.left&&t===g.right?g:new YA(e,t)}}function Nr(g){return g===""?0:parseInt(g,2)}class kr{value_toTree(A){const I=new Uint8Array(this.value_serializedSize(A)),B=new DataView(I.buffer,I.byteOffset,I.byteLength);return this.value_serializeToBytes({uint8Array:I,dataView:B},0,A),this.tree_deserializeFromBytes({uint8Array:I,dataView:B},0,I.length)}tree_toValue(A){const I=new Uint8Array(this.tree_serializedSize(A)),B=new DataView(I.buffer,I.byteOffset,I.byteLength);return this.tree_serializeToBytes({uint8Array:I,dataView:B},0,A),this.value_deserializeFromBytes({uint8Array:I,dataView:B},0,I.length)}serialize(A){const I=new Uint8Array(this.value_serializedSize(A)),B=new DataView(I.buffer,I.byteOffset,I.byteLength);return this.value_serializeToBytes({uint8Array:I,dataView:B},0,A),I}deserialize(A){const I=new DataView(A.buffer,A.byteOffset,A.byteLength);return this.value_deserializeFromBytes({uint8Array:A,dataView:I},0,A.length)}}const Ui=BigInt(3);class MC extends kr{cachePermanentRootStruct;isBasic=!1;constructor(A){super(),this.cachePermanentRootStruct=A}defaultView(){return this.toView(this.defaultValue())}defaultViewDU(){return this.toViewDU(this.defaultValue())}deserializeToView(A){const I=new DataView(A.buffer,A.byteOffset,A.byteLength),B=this.tree_deserializeFromBytes({uint8Array:A,dataView:I},0,A.length);return this.getView(new dg(B))}deserializeToViewDU(A){const I=new DataView(A.buffer,A.byteOffset,A.byteLength),B=this.tree_deserializeFromBytes({uint8Array:A,dataView:I},0,A.length);return this.getViewDU(B)}toView(A){const I=this.value_toTree(A);return this.getView(new dg(I))}toViewDU(A){const I=this.value_toTree(A);return this.getViewDU(I)}toValueFromView(A){const I=this.commitView(A);return this.tree_toValue(I)}toValueFromViewDU(A){const I=this.commitViewDU(A);return this.tree_toValue(I)}toViewFromViewDU(A){const I=this.commitViewDU(A);return this.getView(new dg(I))}toViewDUFromView(A){const I=this.commitView(A);return this.getViewDU(I)}hashTreeRoot(A){if(this.cachePermanentRootStruct){const B=A[eB];if(B)return B}const I=Yw(this.getRoots(A),this.maxChunkCount);return this.cachePermanentRootStruct&&(A[eB]=I),I}getCachedPermanentRoot(A){return A[eB]}createFromProof(A,I){const B=dg.createFromProof(A).rootNode,C=JC(B,this);if(I!==void 0&&!aI(C.root,I))throw new Error("Proof does not match trusted root");return this.getView(new dg(C))}tree_createProof(A,I){const B=this.tree_createProofGindexes(A,I);return wr(A,{type:TA.treeOffset,gindices:B})}tree_createProofGindexes(A,I){const B=[];for(const C of I){const{type:e,gindex:t}=this.getPathInfo(C);if(!sI(e))B.push(t);else{const i=e.tree_getLeafGindices(t,e.fixedSize===null?He(A,t):void 0);for(const E of i)B.push(E)}}return B}getPathInfo(A){const I=[];let B=this;for(const C of A){if(B.isBasic)throw new Error("Invalid path: cannot navigate beyond a basic type");const e=B.getPropertyGindex(C);e!==null&&(I.push(e),B=B.getPropertyType(C))}return{type:B,gindex:oI(I)}}tree_fromProofNode(A){return{node:A,done:!1}}}function sI(g){return!g.isBasic}class YB{serialize(){const A=new Uint8Array(this.type.tree_serializedSize(this.node)),I=new DataView(A.buffer,A.byteOffset,A.byteLength);return this.type.tree_serializeToBytes({uint8Array:A,dataView:I},0,this.node),A}hashTreeRoot(){return this.node.root}createProof(A){return this.type.tree_createProof(this.node,A)}toValue(){return this.type.tree_toValue(this.node)}clone(){return this.type.getView(new dg(this.node))}}class jw extends YB{type;tree;bitArray;constructor(A,I){super(),this.type=A,this.tree=I,this.bitArray=A.tree_toValue(I.rootNode)}get node(){return this.tree.rootNode}get uint8Array(){return this.bitArray.uint8Array}get bitLen(){return this.bitArray.bitLen}get(A){return this.bitArray.get(A)}set(A,I){this.bitArray.set(A,I),this.tree.rootNode=this.type.value_toTree(this.bitArray)}mergeOrWith(A){this.bitArray.mergeOrWith(A)}intersectValues(A){return this.bitArray.intersectValues(A)}getTrueBitIndexes(){return this.bitArray.getTrueBitIndexes()}getSingleTrueBit(){return this.bitArray.getSingleTrueBit()}toBoolArray(){return this.bitArray.toBoolArray()}}const Rr=Symbol("ssz_cached_tree_root");class Me extends YB{serializeToBytes(A,I){return this.type.tree_serializeToBytes(A,I,this.node)}hashTreeRoot(){return this.commit(),super.hashTreeRoot()}batchHashTreeRoot(A=new lw){A.reset(),this.commit(0,A.byLevel),A.clean();const I=this.node[Rr];if(I)return I;if(sw(A.byLevel),this.node.h0===null)throw Error("Root is not computed by batch");const B=this.node.root;return this.node[Rr]=B,B}serialize(){this.commit();const A=new Uint8Array(this.type.tree_serializedSize(this.node)),I=new DataView(A.buffer,A.byteOffset,A.byteLength);return this.serializeToBytes({uint8Array:A,dataView:I},0),A}clone(A){if(A)return this.type.getViewDU(this.node);{const I=this.cache;return this.clearCache(),this.type.getViewDU(this.node,I)}}}class Pw extends Me{type;_rootNode;_bitArray=null;constructor(A,I){super(),this.type=A,this._rootNode=I}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(A=0,I=null){this._bitArray!==null&&(this._rootNode=this.type.value_toTree(this._bitArray)),I!==null&&this._rootNode.h0===null&&ag(this._rootNode,A,I)}get(A){return this.bitArray.get(A)}set(A,I){this.bitArray.set(A,I)}mergeOrWith(A){this.bitArray.mergeOrWith(A)}intersectValues(A){return this.bitArray.intersectValues(A)}getTrueBitIndexes(){return this.bitArray.getTrueBitIndexes()}getSingleTrueBit(){return this.bitArray.getSingleTrueBit()}toBoolArray(){return this.bitArray.toBoolArray()}clearCache(){this._bitArray=null}}class Ur extends MC{isViewMutable=!0;getView(A){return new jw(this,A)}getViewDU(A){return new Pw(this,A)}commitView(A){return A.node}commitViewDU(A,I=0,B=null){return A.commit(I,B),A.node}cacheOfViewDU(A){return A.cache}getRoots(A){return RC(A.uint8Array)}getPropertyGindex(){return null}getPropertyType(){throw Error("Must only request BitArray complete data")}getIndexProperty(){throw Error("Must only request BitArray complete data")}tree_fromProofNode(A){return{node:A,done:!0}}tree_getLeafGindices(A,I){const B=this.tree_getByteLen(I),C=Math.ceil(B/32),e=oI([A,FI(this.depth,BigInt(0))]),t=new Array(C);for(let i=0,E=e;i<C;i++,E++)t[i]=E;return this.isList&&t.push(oI([A,Ui])),t}fromJson(A){const I=dr(A),B=new DataView(I.buffer,I.byteOffset,I.byteLength);return this.value_deserializeFromBytes({uint8Array:I,dataView:B},0,I.length)}toJson(A){return Fr(this.serialize(A))}clone(A){return A.clone()}equals(A,I){return A.bitLen===I.bitLen&&aI(A.uint8Array,I.uint8Array)}}class qC extends Ur{limitBits;typeName;depth;chunkDepth;fixedSize=null;minSize=1;maxSize;maxChunkCount;isList=!0;constructor(A,I){if(super(),this.limitBits=A,A===0)throw Error("List limit must be > 0");this.typeName=I?.typeName??`BitList[${A}]`,this.maxChunkCount=Math.ceil(this.limitBits/8/32),this.chunkDepth=nI(this.maxChunkCount),this.depth=1+this.chunkDepth,this.maxSize=Math.ceil(A/8)+1}static named(A,I){return new(Gg(qC,I.typeName))(A,I)}defaultValue(){return rI.fromBitLen(0)}value_serializedSize(A){return Lr(A.bitLen)}value_serializeToBytes(A,I,B){return A.uint8Array.set(B.uint8Array,I),mr(A.uint8Array,I,B.bitLen)}value_deserializeFromBytes(A,I,B){const{uint8Array:C,bitLen:e}=this.deserializeUint8ArrayBitListFromBytes(A.uint8Array,I,B);return new rI(C,e)}tree_serializedSize(A){return Lr(CB(A))}tree_serializeToBytes(A,I,B){const C=yr(B),e=CB(B),t=Math.ceil(e/8),i=Math.ceil(t/32),E=ig(C,this.chunkDepth,0,i);return me(A.dataView,I,t,E),mr(A.uint8Array,I,e)}tree_deserializeFromBytes(A,I,B){const{uint8Array:C,bitLen:e}=this.deserializeUint8ArrayBitListFromBytes(A.uint8Array,I,B),t=new DataView(C.buffer,C.byteOffset,C.byteLength),i=Le(this.chunkDepth,t,0,C.length);return tB(i,e)}tree_getByteLen(A){if(!A)throw new Error("BitListType requires a node to get leaves");return Math.ceil(CB(A)/8)}hashTreeRoot(A){return UC(super.hashTreeRoot(A),A.bitLen)}deserializeUint8ArrayBitListFromBytes(A,I,B){const{uint8Array:C,bitLen:e}=zw(A,I,B);if(e>this.limitBits)throw Error(`bitLen over limit ${e} > ${this.limitBits}`);return{uint8Array:C,bitLen:e}}}function zw(g,A,I){if(I>g.length)throw Error(`BitList attempting to read byte ${I} of data length ${g.length}`);const B=g[I-1],C=I-A;if(B===0)throw new Error("Invalid deserialized bitlist, padding bit required");if(B===1){const c=Uint8Array.prototype.slice.call(g,A,I-1),n=(C-1)*8;return{uint8Array:c,bitLen:n}}const e=Uint8Array.prototype.slice.call(g,A,I),t=B.toString(2).length-1,i=(C-1)*8+t,E=255>>8-t;return e[C-1]&=E,{uint8Array:e,bitLen:i}}function Lr(g){const A=Math.ceil(g/8);return g%8===0?A+1:A}function mr(g,A,I){const B=Math.ceil(I/8),C=A+B;return I%8===0?(g[C]=1,C+1):(g[C-1]|=1<<I%8,C)}class RI extends Ur{lengthBits;typeName;chunkCount;depth;fixedSize;minSize;maxSize;maxChunkCount;isList=!1;zeroBitsMask;constructor(A,I){if(super(),this.lengthBits=A,A===0)throw Error("Vector length must be > 0");this.typeName=I?.typeName??`BitVector[${A}]`,this.chunkCount=Math.ceil(this.lengthBits/8/32),this.maxChunkCount=this.chunkCount,this.depth=nI(this.chunkCount),this.fixedSize=Math.ceil(this.lengthBits/8),this.minSize=this.fixedSize,this.maxSize=this.fixedSize,this.zeroBitsMask=A%8===0?0:255&255<<A%8}static named(A,I){return new(Gg(RI,I.typeName))(A,I)}defaultValue(){return rI.fromBitLen(this.lengthBits)}value_serializedSize(){return this.fixedSize}value_serializeToBytes(A,I,B){return A.uint8Array.set(B.uint8Array,I),I+this.fixedSize}value_deserializeFromBytes(A,I,B){return this.assertValidLength(A.uint8Array,I,B),new rI(Uint8Array.prototype.slice.call(A.uint8Array,I,B),this.lengthBits)}tree_serializedSize(){return this.fixedSize}tree_serializeToBytes(A,I,B){const C=ig(B,this.depth,0,this.chunkCount);return me(A.dataView,I,this.fixedSize,C),I+this.fixedSize}tree_deserializeFromBytes(A,I,B){return this.assertValidLength(A.uint8Array,I,B),Le(this.depth,A.dataView,I,B)}tree_getByteLen(){return this.fixedSize}assertValidLength(A,I,B){const C=B-I;if(B-I!==this.fixedSize)throw Error(`Invalid BitVector size ${C} != ${this.fixedSize}`);if(this.zeroBitsMask>0&&(A[B-1]&this.zeroBitsMask)>0)throw Error("BitVector: nonzero bits past length")}}class KC extends kr{isBasic=!0;depth=0;maxChunkCount=1;value_serializedSize(){return this.byteLength}tree_serializedSize(){return this.byteLength}assertValidSize(A){if(A!==this.byteLength)throw Error(`BasicType invalid size ${A} expected ${this.byteLength}`)}hashTreeRoot(A){const I=new Uint8Array(32),B=new DataView(I.buffer,I.byteOffset,I.byteLength);return this.value_serializeToBytes({uint8Array:I,dataView:B},0,A),I}clone(A){return A}equals(A,I){return A===I}}function Li(g){return g.isBasic}class mi extends KC{typeName;byteLength=1;itemsPerChunk=32;fixedSize=1;minSize=1;maxSize=1;constructor(A){super(),this.typeName=A?.typeName??"boolean"}static named(A){return new(Gg(mi,A.typeName))(A)}defaultValue(){return!1}value_serializeToBytes(A,I,B){return A.uint8Array[I]=B?1:0,I+1}value_deserializeFromBytes(A,I,B){switch(this.assertValidSize(B-I),A.uint8Array[I]){case 1:return!0;case 0:return!1;default:throw new Error(`Boolean: invalid value: ${A.uint8Array[I]}`)}}tree_serializeToBytes(A,I,B){return A.uint8Array[I]=B.getUint(4,0),I+1}tree_deserializeFromBytes(A,I,B){this.assertValidSize(B-I);const C=A.uint8Array[I];if(C>1)throw Error(`Boolean: invalid value ${C}`);return bA.fromUint32(C)}tree_getFromNode(A){return A.getUint(4,0)===1}tree_setToNode(A,I){A.setUint(4,0,I?1:0)}tree_getFromPackedNode(A,I){const B=I%this.itemsPerChunk;return A.getUint(1,B)!==0}tree_setToPackedNode(A,I,B){const C=I%this.itemsPerChunk;A.setUint(1,C,B?1:0)}fromJson(A){if(typeof A!="boolean")throw Error(`JSON invalid type ${typeof A} expected boolean`);return A}toJson(A){return A}}class Hr extends MC{isViewMutable=!1;defaultValue(){return new Uint8Array(this.minSize)}getView(A){return this.getViewDU(A.rootNode)}getViewDU(A){return this.tree_toValue(A)}commitView(A){return this.commitViewDU(A)}commitViewDU(A,I=0,B=null){const C=new Uint8Array(this.value_serializedSize(A)),e=new DataView(C.buffer,C.byteOffset,C.byteLength);this.value_serializeToBytes({uint8Array:C,dataView:e},0,A);const t=this.tree_deserializeFromBytes({uint8Array:C,dataView:e},0,C.length);return B!==null&&t.h0===null&&ag(t,I,B),t}cacheOfViewDU(){}toView(A){return A}toViewDU(A){return A}value_serializeToBytes(A,I,B){return A.uint8Array.set(B,I),I+B.length}value_deserializeFromBytes(A,I,B){return this.assertValidSize(B-I),Uint8Array.prototype.slice.call(A.uint8Array,I,B)}getRoots(A){return RC(A)}getPropertyGindex(){return null}getPropertyType(){throw Error("Must only request ByteArray complete data")}getIndexProperty(){throw Error("Must only request ByteArray complete data")}tree_fromProofNode(A){return{node:A,done:!0}}tree_getLeafGindices(A,I){const B=this.tree_getByteLen(I),C=Math.ceil(B/32),e=oI([A,FI(this.depth,BigInt(0))]),t=new Array(C);for(let i=0,E=e;i<C;i++,E++)t[i]=E;return this.isList&&t.push(oI([A,Ui])),t}fromJson(A){const I=dr(A);return this.assertValidSize(I.length),I}toJson(A){return Fr(A)}clone(A){return A}equals(A,I){return aI(A,I)}}class qe extends Hr{limitBytes;typeName;depth;chunkDepth;fixedSize=null;minSize;maxSize;maxChunkCount;isList=!0;constructor(A,I){if(super(),this.limitBytes=A,A===0)throw Error("List limit must be > 0");this.typeName=I?.typeName??`ByteList[${A}]`,this.maxChunkCount=Math.ceil(this.limitBytes/32),this.chunkDepth=nI(this.maxChunkCount),this.depth=1+this.chunkDepth,this.minSize=0,this.maxSize=this.limitBytes}static named(A,I){return new(Gg(qe,I.typeName))(A,I)}value_serializedSize(A){return A.length}tree_serializedSize(A){return CB(A)}tree_serializeToBytes(A,I,B){const C=yr(B),e=CB(B),t=Math.ceil(e/32),i=ig(C,this.chunkDepth,0,t);return me(A.dataView,I,e,i),I+e}tree_deserializeFromBytes(A,I,B){this.assertValidSize(B-I);const C=Le(this.chunkDepth,A.dataView,I,B);return tB(C,B-I)}tree_getByteLen(A){if(!A)throw new Error("ByteListType requires a node to get leaves");return CB(A)}hashTreeRoot(A){return UC(super.hashTreeRoot(A),A.length)}assertValidSize(A){if(A>this.limitBytes)throw Error(`ByteList invalid size ${A} limit ${this.limitBytes}`)}}class Jg extends Hr{lengthBytes;typeName;depth;chunkDepth;fixedSize;minSize;maxSize;maxChunkCount;isList=!1;constructor(A,I){if(super(),this.lengthBytes=A,A===0)throw Error("Vector length must be > 0");this.typeName=I?.typeName??`ByteVector[${A}]`,this.maxChunkCount=Math.ceil(this.lengthBytes/32),this.chunkDepth=nI(this.maxChunkCount),this.depth=this.chunkDepth,this.fixedSize=this.lengthBytes,this.minSize=this.fixedSize,this.maxSize=this.fixedSize}static named(A,I){return new(Gg(Jg,I.typeName))(A,I)}value_serializedSize(){return this.fixedSize}tree_serializedSize(){return this.fixedSize}tree_serializeToBytes(A,I,B){const C=ig(B,this.chunkDepth,0,this.maxChunkCount);return me(A.dataView,I,this.fixedSize,C),I+this.fixedSize}tree_deserializeFromBytes(A,I,B){return this.assertValidSize(B-I),Le(this.chunkDepth,A.dataView,I,B)}tree_getByteLen(){return this.lengthBytes}assertValidSize(A){if(A!==this.lengthBytes)throw Error(`ByteVector invalid size ${A} expected ${this.lengthBytes}`)}}let Ww=class extends YB{type;tree;constructor(g,A){super(),this.type=g,this.tree=A}get node(){return this.tree.rootNode}};function Vw(g){class A extends Ww{}for(let I=0;I<g.fieldsEntries.length;I++){const{fieldName:B,fieldType:C}=g.fieldsEntries[I];if(Li(C))Object.defineProperty(A.prototype,B,{configurable:!1,enumerable:!0,get:function(){const e=Hg(this.node,this.type.depth,I);return C.tree_getFromNode(e)},set:function(e){const t=Hg(this.node,this.type.depth,I).clone();C.tree_setToNode(t,e),this.tree.setNodeAtDepth(this.type.depth,I,t)}});else if(sI(C))Object.defineProperty(A.prototype,B,{configurable:!1,enumerable:!0,get:function(){const e=ni(this.type.depth,I);return C.getView(this.tree.getSubtree(e))},set:function(e){const t=C.commitView(e);this.tree.setNodeAtDepth(this.type.depth,I,t)}});else throw Error(`Unknown fieldType ${C.typeName} for fieldName ${String(B)}`)}return Object.defineProperty(A,"name",{value:g.typeName,writable:!1}),A}class Xw extends Me{type;_rootNode;nodes=[];caches;nodesChanged=new Set;viewsChanged=new Map;nodesPopulated;constructor(A,I,B){super(),this.type=A,this._rootNode=I,B?(this.nodes=B.nodes,this.caches=B.caches,this.nodesPopulated=B.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(A=0,I=null){const B=this._rootNode.h0!==null;if(this.nodesChanged.size===0&&this.viewsChanged.size===0){!B&&I!==null&&ag(this._rootNode,A,I);return}const C=A+this.type.depth,e=I!=null&&B?I:null,t=[];for(const[n,s]of this.viewsChanged){const S=this.type.fieldsEntries[n].fieldType,w=S.commitViewDU(s,C,e);this.nodes[n]=w,t.push({index:n,node:w});const y=S.cacheOfViewDU(s);y&&(this.caches[n]=y)}for(const n of this.nodesChanged)t.push({index:n,node:this.nodes[n]});const i=t.sort((n,s)=>n.index-s.index),{indexes:E,nodes:c}=this.parseNodesChanged(i);this._rootNode=Je(this._rootNode,this.type.depth,E,c,A,B?I:null),!B&&I!==null&&ag(this._rootNode,A,I),this.nodesChanged.clear(),this.viewsChanged.clear()}parseNodesChanged(A){const I=A.map(C=>C.index),B=A.map(C=>C.node);return{indexes:I,nodes:B}}clearCache(){this.nodes=[],this.caches=[],this.nodesPopulated=!1,this.nodesChanged.clear(),this.viewsChanged.clear()}}class $w extends Xw{type;_rootNode;constructor(A,I,B){super(A,I,B),this.type=A,this._rootNode=I}serializeToBytes(A,I){this.commit();let B=I,C=I+this.type.fixedEnd;for(let e=0;e<this.type.fieldsEntries.length;e++){const{fieldType:t}=this.type.fieldsEntries[e];let i=this.nodes[e];if(i===void 0&&(i=Hg(this._rootNode,this.type.depth,e),this.nodes[e]=i),t.fixedSize===null){if(A.dataView.setUint32(B,C-I,!0),B+=4,sI(t)){const E=t.getViewDU(i,this.caches[e]);E.serializeToBytes!==void 0?C=E.serializeToBytes(A,C):C=t.tree_serializeToBytes(A,C,i)}}else B=t.tree_serializeToBytes(A,B,i)}return C}}function AD(g){class A extends $w{}for(let I=0;I<g.fieldsEntries.length;I++){const{fieldName:B,fieldType:C}=g.fieldsEntries[I];if(Li(C))Object.defineProperty(A.prototype,B,{configurable:!1,enumerable:!0,get:function(){let e=this.nodes[I];return e===void 0&&(e=Hg(this._rootNode,this.type.depth,I),this.nodes[I]=e),C.tree_getFromNode(e)},set:function(e){let t;this.nodesChanged.has(I)?t=this.nodes[I]:(t=(this.nodes[I]??Hg(this._rootNode,this.type.depth,I)).clone(),this.nodes[I]=t,this.nodesChanged.add(I)),C.tree_setToNode(t,e)}});else if(sI(C))Object.defineProperty(A.prototype,B,{configurable:!1,enumerable:!0,get:function(){const e=this.viewsChanged.get(I);if(e)return e;let t=this.nodes[I];t===void 0&&(t=Hg(this._rootNode,this.type.depth,I),this.nodes[I]=t);const i=C.getViewDU(t,this.caches[I]);return C.isViewMutable&&this.viewsChanged.set(I,i),i},set:function(e){this.viewsChanged.set(I,e)}});else throw Error(`Unknown fieldType ${C.typeName} for fieldName ${String(B)}`)}return Object.defineProperty(A,"name",{value:g.typeName,writable:!1}),A}const Jr={snake:g=>g.replace(/[^0-z]/g,"").replace(/[a-z][A-Z]|[0-9][A-Z]/g,A=>A[0]+"_"+A[1].toLowerCase()),constant:g=>g.replace(/[^0-z]/g,"").replace(/[a-z][A-Z]|[0-9][A-Z]/g,A=>A[0]+"_"+A[1]).toUpperCase(),pascal:g=>(g[0].toUpperCase()+g.slice(1)).replace(/[^0-z]/g,""),camel:g=>g[0].toLowerCase()+g.slice(1),header:g=>g[0].toUpperCase()+g.slice(1).replace(/[^0-z]/g,"").replace(/[a-z][A-Z]|[0-9][A-Z]/g,A=>A[0]+"-"+A[1]),eth2:g=>Jr.snake(g).replace(/(\d)$/,"_$1")};class Y extends MC{fields;opts;typeName;depth;maxChunkCount;fixedSize;minSize;maxSize;isList=!1;isViewMutable=!0;fieldsEntries;fixedEnd;fieldsGindex;jsonKeyToFieldName;isFixedLen;fieldRangesFixedLen;variableOffsetsPosition;TreeView;TreeViewDU;constructor(A,I){super(I?.cachePermanentRootStruct),this.fields=A,this.opts=I,this.typeName=I?.typeName??Mr(A),this.maxChunkCount=Object.keys(A).length,this.depth=nI(this.maxChunkCount),this.fieldsEntries=[];for(const n of Object.keys(A))this.fieldsEntries.push({fieldName:n,fieldType:this.fields[n],jsonKey:eD(n,I?.casingMap,I?.jsonCase),gindex:FI(this.depth,BigInt(this.fieldsEntries.length))});if(this.fieldsEntries.length===0)throw Error("Container must have > 0 fields");this.fieldsGindex={};for(let n=0;n<this.fieldsEntries.length;n++)this.fieldsGindex[this.fieldsEntries[n].fieldName]=FI(this.depth,BigInt(n));this.jsonKeyToFieldName={};for(const{fieldName:n,jsonKey:s}of this.fieldsEntries)this.jsonKeyToFieldName[s]=n;const{minLen:B,maxLen:C,fixedSize:e}=BD(A);this.minSize=B,this.maxSize=C,this.fixedSize=e;const{isFixedLen:t,fieldRangesFixedLen:i,variableOffsetsPosition:E,fixedEnd:c}=ID(A);this.isFixedLen=t,this.fieldRangesFixedLen=i,this.variableOffsetsPosition=E,this.fixedEnd=c,this.TreeView=I?.getContainerTreeViewClass?.(this)??Vw(this),this.TreeViewDU=I?.getContainerTreeViewDUClass?.(this)??AD(this)}static named(A,I){return new(Gg(Y,I.typeName))(A,I)}defaultValue(){const A={};for(const{fieldName:I,fieldType:B}of this.fieldsEntries)A[I]=B.defaultValue();return A}getView(A){return new this.TreeView(this,A)}getViewDU(A,I){return new this.TreeViewDU(this,A,I)}cacheOfViewDU(A){return A.cache}commitView(A){return A.node}commitViewDU(A,I=0,B=null){return A.commit(I,B),A.node}value_serializedSize(A){let I=0;for(let B=0;B<this.fieldsEntries.length;B++){const{fieldName:C,fieldType:e}=this.fieldsEntries[B];I+=e.fixedSize===null?4+e.value_serializedSize(A[C]):e.fixedSize}return I}value_serializeToBytes(A,I,B){let C=I,e=I+this.fixedEnd;for(let t=0;t<this.fieldsEntries.length;t++){const{fieldName:i,fieldType:E}=this.fieldsEntries[t];E.fixedSize===null?(A.dataView.setUint32(C,e-I,!0),C+=4,e=E.value_serializeToBytes(A,e,B[i])):C=E.value_serializeToBytes(A,C,B[i])}return e}value_deserializeFromBytes(A,I,B){const C=this.getFieldRanges(A.dataView,I,B),e={};for(let t=0;t<this.fieldsEntries.length;t++){const{fieldName:i,fieldType:E}=this.fieldsEntries[t],c=C[t];e[i]=E.value_deserializeFromBytes(A,I+c.start,I+c.end)}return e}tree_serializedSize(A){let I=0;const B=ig(A,this.depth,0,this.fieldsEntries.length);for(let C=0;C<this.fieldsEntries.length;C++){const{fieldType:e}=this.fieldsEntries[C],t=B[C];I+=e.fixedSize===null?4+e.tree_serializedSize(t):e.fixedSize}return I}tree_serializeToBytes(A,I,B){let C=I,e=I+this.fixedEnd;const t=ig(B,this.depth,0,this.fieldsEntries.length);for(let i=0;i<this.fieldsEntries.length;i++){const{fieldType:E}=this.fieldsEntries[i],c=t[i];E.fixedSize===null?(A.dataView.setUint32(C,e-I,!0),C+=4,e=E.tree_serializeToBytes(A,e,c)):C=E.tree_serializeToBytes(A,C,c)}return e}tree_deserializeFromBytes(A,I,B){const C=this.getFieldRanges(A.dataView,I,B),e=new Array(this.fieldsEntries.length);for(let t=0;t<this.fieldsEntries.length;t++){const{fieldType:i}=this.fieldsEntries[t],E=C[t];e[t]=i.tree_deserializeFromBytes(A,I+E.start,I+E.end)}return Ue(e,this.depth)}getRoots(A){const I=new Array(this.fieldsEntries.length);for(let B=0;B<this.fieldsEntries.length;B++){const{fieldName:C,fieldType:e}=this.fieldsEntries[B];I[B]=e.hashTreeRoot(A[C])}return I}getPropertyGindex(A){const I=this.fieldsGindex[A]??this.fieldsGindex[this.jsonKeyToFieldName[A]];if(I===void 0)throw Error(`Unknown container property ${A}`);return I}getPropertyType(A){const I=this.fields[A]??this.fields[this.jsonKeyToFieldName[A]];if(I===void 0)throw Error(`Unknown container property ${A}`);return I}getIndexProperty(A){return A>=this.fieldsEntries.length?null:this.fieldsEntries[A].fieldName}tree_getLeafGindices(A,I){const B=[];for(let C=0;C<this.fieldsEntries.length;C++){const{fieldName:e,fieldType:t}=this.fieldsEntries[C],i=this.fieldsGindex[e],E=oI([A,i]);if(t.isBasic)B.push(E);else{const c=t;if(t.fixedSize===null){if(!I)throw new Error("variable type requires tree argument to get leaves");B.push(...c.tree_getLeafGindices(E,He(I,i)))}else B.push(...c.tree_getLeafGindices(E))}}return B}fromJson(A){if(typeof A!="object")throw Error("JSON must be of type object");if(A===null)throw Error("JSON must not be null");const I={};for(let B=0;B<this.fieldsEntries.length;B++){const{fieldName:C,fieldType:e,jsonKey:t}=this.fieldsEntries[B],i=A[t];if(i===void 0)throw Error(`JSON expected key ${t} is undefined`);I[C]=e.fromJson(i)}return I}toJson(A){const I={};for(let B=0;B<this.fieldsEntries.length;B++){const{fieldName:C,fieldType:e,jsonKey:t}=this.fieldsEntries[B];I[t]=e.toJson(A[C])}return I}clone(A){const I={};for(let B=0;B<this.fieldsEntries.length;B++){const{fieldName:C,fieldType:e}=this.fieldsEntries[B];I[C]=e.clone(A[C])}return I}equals(A,I){for(let B=0;B<this.fieldsEntries.length;B++){const{fieldName:C,fieldType:e}=this.fieldsEntries[B];if(!e.equals(A[C],I[C]))return!1}return!0}getFieldRanges(A,I,B){if(this.variableOffsetsPosition.length===0){const E=B-I;if(E!==this.fixedEnd)throw Error(`${this.typeName} size ${E} not equal fixed size ${this.fixedEnd}`);return this.fieldRangesFixedLen}const C=gD(A,I,B,this.fixedEnd,this.variableOffsetsPosition);C.push(B-I);let e=0,t=0;const i=new Array(this.isFixedLen.length);for(let E=0;E<this.isFixedLen.length;E++)this.isFixedLen[E]?i[E]=this.fieldRangesFixedLen[t++]:(i[E]={start:C[e],end:C[e+1]},e++);return i}}function gD(g,A,I,B,C){const e=I-A,t=new Array(C.length);for(let i=0;i<C.length;i++){const E=g.getUint32(A+C[i],!0);if(E>e)throw new Error(`Offset out of bounds ${E} > ${e}`);if(i===0){if(E!==B)throw new Error(`First offset must equal to fixedEnd ${E} != ${B}`)}else if(E<t[i-1])throw new Error(`Offsets must be increasing ${E} < ${t[i-1]}`);t[i]=E}return t}function ID(g){const A=[],I=[],B=[];let C=0;for(const e of Object.values(g))A.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:A,fieldRangesFixedLen:I,variableOffsetsPosition:B,fixedEnd:C}}function BD(g){let A=0,I=0,B=0;for(const C of Object.values(g))A+=C.minSize,I+=C.maxSize,C.fixedSize===null?(A+=4,I+=4,B=null):B!==null&&(B+=C.fixedSize);return{minLen:A,maxLen:I,fixedSize:B}}function eD(g,A,I){if(A){const B=A[g];if(B===void 0)throw Error(`casingMap[${String(g)}] not defined`);return B}else return I?Jr[I](g):g}function Mr(g,A="Container"){const I=Object.keys(g).map(B=>`${String(B)}: ${g[B].typeName}`).join(", ");return`${A}({${I}})`}class Ke extends wi{valueToNode;value;constructor(A,I){super(null,0,0,0,0,0,0,0),this.valueToNode=A,this.value=I}get rootHashObject(){if(this.h0===null){const A=this.valueToNode(this.value);super.applyHash(A.rootHashObject)}return this}get root(){return ke(this.rootHashObject)}get left(){return this.valueToNode(this.value).left}get right(){return this.valueToNode(this.value).right}isLeaf(){return!1}}class CD extends YB{type;tree;constructor(A,I){super(),this.type=A,this.tree=I}get node(){return this.tree.rootNode}}function tD(g){class A extends CD{}for(let I=0;I<g.fieldsEntries.length;I++){const{fieldName:B,fieldType:C}=g.fieldsEntries[I];if(C.isBasic)Object.defineProperty(A.prototype,B,{configurable:!1,enumerable:!0,get:function(){return this.tree.rootNode.value[B]},set:function(e){const t=this.tree.rootNode,i=this.type.clone(t.value);i[B]=e,this.tree.rootNode=new Ke(t.valueToNode,i)}});else if(sI(C))Object.defineProperty(A.prototype,B,{configurable:!1,enumerable:!0,get:function(){const{value:e}=this.tree.rootNode;return C.toView(e[B])},set:function(e){const t=this.tree.rootNode,i=this.type.clone(t.value);i[B]=C.toValueFromView(e),this.tree.rootNode=new Ke(t.valueToNode,i)}});else throw Error(`Unknown fieldType ${C.typeName} for fieldName ${String(B)}`)}return Object.defineProperty(A,"name",{value:g.typeName,writable:!1}),A}class iD extends Me{type;valueChanged=null;_rootNode;constructor(A,I){super(),this.type=A,this._rootNode=I}get node(){return this._rootNode}get cache(){}get value(){return this.valueChanged??this._rootNode.value}commit(A,I=null){if(this.valueChanged!==null){const B=this.valueChanged;this.valueChanged=null,this._rootNode=this.type.value_toTree(B)}this._rootNode.h0===null&&I!==null&&this._rootNode.rootHashObject}clearCache(){this.valueChanged=null}}function QD(g){class A extends iD{}for(let I=0;I<g.fieldsEntries.length;I++){const{fieldName:B,fieldType:C}=g.fieldsEntries[I];if(C.isBasic)Object.defineProperty(A.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(sI(C))Object.defineProperty(A.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 t=C.toValueFromViewDU(e);this.valueChanged[B]=t}});else throw Error(`Unknown fieldType ${C.typeName} for fieldName ${String(B)}`)}return Object.defineProperty(A,"name",{value:g.typeName,writable:!1}),A}class ED extends Y{fields;constructor(A,I){super(A,{typeName:I?.typeName??Mr(A,"ContainerNodeStruct"),...I,getContainerTreeViewClass:tD,getContainerTreeViewDUClass:QD}),this.fields=A;for(const{fieldName:B,fieldType:C}of this.fieldsEntries)if(sI(C)&&C.isViewMutable)throw Error(`ContainerNodeStructType field '${String(B)}' ${C.typeName} view is mutable`)}static named(A,I){return new(Gg(Y,I.typeName))(A,I)}tree_serializedSize(A){return this.value_serializedSize(A.value)}tree_serializeToBytes(A,I,B){const{value:C}=B;return this.value_serializeToBytes(A,I,C)}tree_deserializeFromBytes(A,I,B){const C=this.value_deserializeFromBytes(A,I,B);return new Ke(this.valueToTree.bind(this),C)}getPropertyGindex(){return null}tree_fromProofNode(A){const I=new Uint8Array(super.tree_serializedSize(A)),B=new DataView(I.buffer,I.byteOffset,I.byteLength);super.tree_serializeToBytes({uint8Array:I,dataView:B},0,A);const C=this.value_deserializeFromBytes({uint8Array:I,dataView:B},0,I.length);return{node:new Ke(this.valueToTree.bind(this),C),done:!0}}tree_toValue(A){return A.value}value_toTree(A){return new Ke(this.valueToTree.bind(this),A)}valueToTree(A){const I=new Uint8Array(this.value_serializedSize(A)),B=new DataView(I.buffer,I.byteOffset,I.byteLength);return this.value_serializeToBytes({uint8Array:I,dataView:B},0,A),super.tree_deserializeFromBytes({uint8Array:I,dataView:B},0,I.length)}}class qr extends YB{type;tree;constructor(A,I){super(),this.type=A,this.tree=I}get length(){return this.type.tree_getLength(this.tree.rootNode)}get node(){return this.tree.rootNode}get(A){const I=Math.floor(A/this.type.itemsPerChunk),B=this.tree.getNodeAtDepth(this.type.depth,I);return this.type.elementType.tree_getFromPackedNode(B,A)}set(A,I){const B=this.length;if(A>=B)throw Error(`Error setting index over length ${A} > ${B}`);const C=Math.floor(A/this.type.itemsPerChunk),e=this.tree.getNodeAtDepth(this.type.depth,C).clone();this.type.elementType.tree_setToPackedNode(e,A,I),this.tree.setNodeAtDepth(this.type.depth,C,e)}getAll(){const A=this.length,I=this.type.tree_getChunksNode(this.node),B=Math.ceil(A/this.type.itemsPerChunk),C=ig(I,this.type.chunkDepth,0,B),e=new Array(A),t=this.type.itemsPerChunk,i=Math.floor(A/t),E=A%t;for(let c=0;c<i;c++){const n=C[c];for(let s=0;s<t;s++)e[c*t+s]=this.type.elementType.tree_getFromPackedNode(n,s)}if(E>0){const c=C[i];for(let n=0;n<E;n++)e[i*t+n]=this.type.elementType.tree_getFromPackedNode(c,n)}return e}}class oD extends qr{type;tree;constructor(A,I){super(A,I),this.type=A,this.tree=I}push(A){const I=this.length;if(I>=this.type.limit)throw Error("Error pushing over limit");if(this.type.tree_setLength(this.tree,I+1),I%this.type.itemsPerChunk===0){const B=bA.fromZero();this.type.elementType.tree_setToPackedNode(B,I,A);const C=Math.floor(I/this.type.itemsPerChunk);this.tree.setNodeAtDepth(this.type.depth,C,B)}else this.set(I,A)}}class Kr extends Me{type;_rootNode;nodes;nodesChanged=new Set;_length;dirtyLength=!1;nodesPopulated;constructor(A,I,B){super(),this.type=A,this._rootNode=I,B?(this.nodes=B.nodes,this._length=B.length,this.nodesPopulated=B.nodesPopulated):(this.nodes=[],this._length=this.type.tree_getLength(I),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(A){const I=Math.floor(A/this.type.itemsPerChunk);let B=this.nodes[I];return B===void 0&&(B=Hg(this._rootNode,this.type.depth,I),this.nodes[I]=B),this.type.elementType.tree_getFromPackedNode(B,A)}set(A,I){if(A>=this._length)throw Error(`Error setting index over length ${A} > ${this._length}`);const B=Math.floor(A/this.type.itemsPerChunk);let C;this.nodesChanged.has(B)?C=this.nodes[B]:(C=(this.nodes[B]??Hg(this._rootNode,this.type.depth,B)).clone(),this.nodes[B]=C,this.nodesChanged.add(B)),this.type.elementType.tree_setToPackedNode(C,A,I)}getAll(){if(!this.nodesPopulated){const e=this.nodes,t=this.type.tree_getChunksNode(this.node),i=Math.ceil(this._length/this.type.itemsPerChunk);this.nodes=ig(t,this.type.chunkDepth,0,i);for(const E of this.nodesChanged)this.nodes[E]=e[E];this.nodesPopulated=!0}const A=new Array(this._length),I=this.type.itemsPerChunk,B=Math.floor(this._length/I),C=this._length%I;for(let e=0;e<B;e++){const t=this.nodes[e];for(let i=0;i<I;i++)A[e*I+i]=this.type.elementType.tree_getFromPackedNode(t,i)}if(C>0){const e=this.nodes[B];for(let t=0;t<C;t++)A[B*I+t]=this.type.elementType.tree_getFromPackedNode(e,t)}return A}commit(A=0,I=null){const B=this._rootNode.h0!==null;if(this.nodesChanged.size===0){!B&&I!==null&&ag(this._rootNode,A,I);return}const C=Array.from(this.nodesChanged.keys()).sort((n,s)=>n-s),e=new Array(C.length);for(let n=0;n<C.length;n++)e[n]=this.nodes[C[n]];const t=this.type.tree_getChunksNode(this._rootNode),i=A+this.type.tree_chunksNodeOffset(),E=I!=null&&B?I:null,c=Je(t,this.type.chunkDepth,C,e,i,E);this._rootNode=this.type.tree_setChunksNode(this._rootNode,c,this.dirtyLength?this._length:null,A,B?I:null),!B&&I!==null&&ag(this._rootNode,A,I),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 nD extends Kr{type;_rootNode;constructor(A,I,B){super(A,I,B),this.type=A,this._rootNode=I}push(A){if(this._length>=this.type.limit)throw Error("Error pushing over limit");this.dirtyLength=!0;const I=this._length++;if(I%this.type.itemsPerChunk===0){const B=Math.floor(I/this.type.itemsPerChunk);this.nodes[B]=IB(0)}this.set(I,A)}sliceTo(A){if(A<0)throw new Error(`Does not support sliceTo() with negative index ${A}`);if(this.commit(),A>=this._length-1)return this;const I=this._rootNode,B=Math.floor(A/this.type.itemsPerChunk),C=this.nodes[B]??Hg(I,this.type.depth,B),e=bA.fromZero();for(let n=B*this.type.itemsPerChunk;n<=A;n++){const s=this.type.elementType.tree_getFromPackedNode(C,n);this.type.elementType.tree_setToPackedNode(e,n,s)}const t=this.type.tree_getChunksNode(this._rootNode);let i=Je(t,this.type.chunkDepth,[B],[e]);i=cr(i,this.type.chunkDepth,B);const E=A+1,c=this.type.tree_setChunksNode(I,i,E);return this.type.getViewDU(c)}serializeToBytes(A,I){this.commit();const{nodes:B,nodesPopulated:C}=this.cache,e=this.type.tree_getChunksNode(this._rootNode);return Ni(this.type.elementType,this._length,this.type.chunkDepth,A,I,e,C?B:null)}}class YC extends MC{elementType;constructor(A,I){super(I),this.elementType=A}defaultValue(){return Zw(this.elementType,this.defaultLen)}getPropertyType(){return this.elementType}getPropertyGindex(A){if(typeof A!="number")throw Error(`Invalid array index: ${A}`);const I=Math.floor(A/this.itemsPerChunk);return FI(this.depth,BigInt(I))}getIndexProperty(A){return A}tree_getLeafGindices(A,I){let B;if(this.isList){if(!I)throw new Error("List type requires tree argument to get leaves");B=this.tree_getLength(I)}else B=this.tree_getLength(null);const C=[];if(sI(this.elementType)){const e=FI(this.depth,BigInt(0)),t=e+BigInt(B),i=oI([A,e]);if(this.elementType.fixedSize===null){if(!I)throw new Error("Array of variable size requires tree argument to get leaves");for(let E=e,c=i;E<t;E++,c++)C.push(...this.elementType.tree_getLeafGindices(c,He(I,E)))}else for(let E=0,c=i;E<B;E++,c++)C.push(...this.elementType.tree_getLeafGindices(c))}else{const e=Math.ceil(B/this.itemsPerChunk),t=oI([A,FI(this.depth,BigInt(0))]),i=t+BigInt(e);for(let E=t;E<i;E++)C.push(E)}return this.isList&&C.push(oI([A,Ui])),C}fromJson(A){return Tw(this.elementType,A,this)}toJson(A){return vw(this.elementType,A,this)}clone(A){return _w(this.elementType,A)}equals(A,I){return Ow(this.elementType,A,I)}}class UI extends YC{elementType;limit;typeName;itemsPerChunk;depth;chunkDepth;maxChunkCount;fixedSize=null;minSize;maxSize;isList=!0;isViewMutable=!0;defaultLen=0;constructor(A,I,B){if(super(A,B?.cachePermanentRootStruct),this.elementType=A,this.limit=I,!A.isBasic)throw Error("elementType must be basic");if(I===0)throw Error("List limit must be > 0");this.typeName=B?.typeName??`List[${A.typeName}, ${I}]`,this.itemsPerChunk=32/A.byteLength,this.maxChunkCount=Math.ceil(this.limit*A.byteLength/32),this.chunkDepth=nI(this.maxChunkCount),this.depth=this.chunkDepth+1,this.minSize=0,this.maxSize=this.limit*A.maxSize}static named(A,I,B){return new(Gg(UI,B.typeName))(A,I,B)}getView(A){return new oD(this,A)}getViewDU(A,I){return new nD(this,A,I)}commitView(A){return A.node}commitViewDU(A,I=0,B=null){return A.commit(I,B),A.node}cacheOfViewDU(A){return A.cache}value_serializedSize(A){return A.length*this.elementType.byteLength}value_serializeToBytes(A,I,B){return LC(this.elementType,B.length,A,I,B)}value_deserializeFromBytes(A,I,B){return fr(this.elementType,A,I,B,this)}tree_serializedSize(A){return this.tree_getLength(A)*this.elementType.byteLength}tree_serializeToBytes(A,I,B){const C=this.tree_getChunksNode(B),e=this.tree_getLength(B);return Ni(this.elementType,e,this.chunkDepth,A,I,C)}tree_deserializeFromBytes(A,I,B){return pr(this.elementType,this.chunkDepth,A,I,B,this)}tree_getLength(A){return A.right.getUint(4,0)}tree_setLength(A,I){A.rootNode=tB(A.rootNode.left,I)}tree_getChunksNode(A){return A.left}tree_chunksNodeOffset(){return 1}tree_setChunksNode(A,I,B,C=0,e=null){return ur(A,I,B,C,e)}hashTreeRoot(A){if(this.cachePermanentRootStruct){const B=A[eB];if(B)return B}const I=UC(super.hashTreeRoot(A),A.length);return this.cachePermanentRootStruct&&(A[eB]=I),I}getRoots(A){const I=new Uint8Array(this.value_serializedSize(A)),B=new DataView(I.buffer,I.byteOffset,I.byteLength);return LC(this.elementType,A.length,{uint8Array:I,dataView:B},0,A),RC(I)}}function rD(g,A){return g.fixedSize===null?A*(4+g.minSize):A*g.minSize}function Yr(g,A){return g.fixedSize===null?A*(4+g.maxSize):A*g.maxSize}function br(g,A,I){if(g.fixedSize===null){let B=0;for(let C=0;C<A;C++)B+=4+g.value_serializedSize(I[C]);return B}else return A*g.fixedSize}function Tr(g,A,I,B,C){if(g.fixedSize===null){let e=B+A*4;for(let t=0;t<A;t++)I.dataView.setUint32(B+t*4,e-B,!0),e=g.value_serializeToBytes(I,e,C[t]);return e}else{for(let e=0;e<A;e++)g.value_serializeToBytes(I,B+e*g.fixedSize,C[e]);return B+A*g.fixedSize}}function vr(g,A,I,B,C){const e=xr(g.fixedSize,A.dataView,I,B,C),t=e.length,i=new Array(t);for(let E=0;E<t;E++){const c=I+e[E],n=E===t-1?B:I+e[E+1];i[E]=g.value_deserializeFromBytes(A,c,n)}return i}function _r(g,A,I,B){if(g.fixedSize===null){const C=ig(B,I,0,A);let e=0;for(let t=0;t<C.length;t++)e+=4+g.tree_serializedSize(C[t]);return e}else return A*g.fixedSize}function Hi(g,A,I,B,C,e,t=null){const i=t??ig(B,I,0,A);if(g.fixedSize===null){let E=e+A*4;const{dataView:c}=C;for(let n=0;n<i.length;n++)c.setUint32(e+n*4,E-e,!0),E=g.tree_serializeToBytes(C,E,i[n]);return E}else{for(let E=0;E<i.length;E++)e=g.tree_serializeToBytes(C,e,i[E]);return e}}function Or(g,A,I,B,C,e){const t=xr(g.fixedSize,I.dataView,B,C,e),i=t.length,E=new Array(i);for(let n=0;n<i;n++){const s=B+t[n],S=n===i-1?C:B+t[n+1];E[n]=g.tree_deserializeFromBytes(I,s,S)}const c=Ue(E,A);return e.isList?tB(c,i):c}function Zr(g,A,I){const B=new Array(A);for(let C=0;C<A;C++)B[C]=g.hashTreeRoot(I[C]);return B}function xr(g,A,I,B,C){const e=B-I;let t;if(g===null)t=aD(A,I,e);else{if(g===0)throw Error("element fixed length is 0");if(e%g!==0)throw Error(`size ${e} is not multiple of element fixedSize ${g}`);const i=e/g;t=new Uint32Array(i);for(let E=0;E<i;E++)t[E]=E*g}return mC(t.length,C),t}function aD(g,A,I){if(I===0)return new Uint32Array(0);const B=g.getUint32(A,!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,t=new Uint32Array(e);t[0]=B;for(let i=1;i<e;i++){const E=g.getUint32(A+i*4,!0);if(t[i]=E,E>I)throw new Error(`Offset out of bounds ${E} > ${I}`);if(E<t[i-1])throw new Error(`Offsets must be increasing ${E} < ${t[i-1]}`)}return t}class jr extends YB{type;tree;constructor(A,I){super(),this.type=A,this.tree=I}get length(){return this.type.tree_getLength(this.tree.rootNode)}get node(){return this.tree.rootNode}get(A){const I=ni(this.type.depth,A),B=this.tree.getSubtree(I);return this.type.elementType.getView(B)}getReadonly(A){const I=ni(this.type.depth,A),B=new dg(this.tree.getNode(I));return this.type.elementType.getView(B)}set(A,I){const B=this.length;if(A>=B)throw Error(`Error setting index over length ${A} > ${B}`);const C=this.type.elementType.commitView(I);this.tree.setNodeAtDepth(this.type.depth,A,C)}getAllReadonly(){const A=this.length,I=this.type.tree_getChunksNode(this.node),B=ig(I,this.type.chunkDepth,0,A),C=new Array(A);for(let e=0;e<A;e++)C[e]=this.type.elementType.getView(new dg(B[e]));return C}getAllReadonlyValues(){const A=this.length,I=this.type.tree_getChunksNode(this.node),B=ig(I,this.type.chunkDepth,0,A),C=new Array(A);for(let e=0;e<A;e++)C[e]=this.type.elementType.tree_toValue(B[e]);return C}}class sD extends jr{type;tree;constructor(A,I){super(A,I),this.type=A,this.tree=I}push(A){const I=this.length;if(I>=this.type.limit)throw Error("Error pushing over limit");this.type.tree_setLength(this.tree,I+1),this.set(I,A)}}class Pr extends Me{type;_rootNode;nodes;caches;viewsChanged=new Map;_length;dirtyLength=!1;nodesPopulated;constructor(A,I,B){super(),this.type=A,this._rootNode=I,B?(this.nodes=B.nodes,this.caches=B.caches,this._length=B.length,this.nodesPopulated=B.nodesPopulated):(this.nodes=[],this.caches=[],this._length=this.type.tree_getLength(I),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(A){const I=this.viewsChanged.get(A);if(I)return I;let B=this.nodes[A];B===void 0&&(B=Hg(this._rootNode,this.type.depth,A),this.nodes[A]=B);const C=this.type.elementType.getViewDU(B,this.caches[A]);return this.type.elementType.isViewMutable&&this.viewsChanged.set(A,C),C}getReadonly(A){const I=this.viewsChanged.get(A);if(I)return I;let B=this.nodes[A];return B===void 0&&(B=Hg(this._rootNode,this.type.depth,A),this.nodes[A]=B),this.type.elementType.getViewDU(B,this.caches[A])}set(A,I){if(A>=this._length)throw Error(`Error setting index over length ${A} > ${this._length}`);this.viewsChanged.set(A,I)}getAllReadonly(){this.populateAllOldNodes();const A=new Array(this._length);for(let I=0;I<this._length;I++)A[I]=this.getReadonly(I);return A}getAllReadonlyValues(){this.populateAllNodes();const A=new Array(this._length);for(let I=0;I<this._length;I++)A[I]=this.type.elementType.tree_toValue(this.nodes[I]);return A}getReadonlyByRange(A,I){if(A<0)throw Error(`Error getting by range, startIndex < 0: ${A}`);if(I<=0)throw Error(`Error getting by range, count <= 0: ${I}`);const B=this.dirtyLength?this.type.tree_getLength(this._rootNode):this._length;if(A>=B)throw Error(`Error getting by range, startIndex >= length: ${A} >= ${B}`);I=Math.min(I,B-A);let C=!0;for(let t=A;t<A+I;t++)if(this.nodes[t]==null){C=!1;break}if(!C){const t=ig(this._rootNode,this.type.depth,A,I);for(const[i,E]of t.entries())this.nodes[A+i]=E}const e=new Array(I);for(let t=0;t<I;t++)e[t]=this.getReadonly(A+t);return e}commit(A=0,I=null){const B=this._rootNode.h0!==null;if(this.viewsChanged.size===0){!B&&I!==null&&ag(this._rootNode,A,I);return}const C=A+this.type.depth,e=I!=null&&B?I:null,t=[];for(const[y,p]of this.viewsChanged){const F=this.type.elementType.commitViewDU(p,C,e);this.nodes[y]=F,t.push({index:y,node:F});const u=this.type.elementType.cacheOfViewDU(p);u&&(this.caches[y]=u)}const i=t.sort((y,p)=>y.index-p.index),E=i.map(y=>y.index),c=i.map(y=>y.node),n=this.type.tree_getChunksNode(this._rootNode),s=A+this.type.tree_chunksNodeOffset(),S=I!=null&&B?I:null,w=Je(n,this.type.chunkDepth,E,c,s,S);this._rootNode=this.type.tree_setChunksNode(this._rootNode,w,this.dirtyLength?this._length:null,A,I),!B&&I!==null&&ag(this._rootNode,A,I),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=ig(this._rootNode,this.type.depth,0,this.length),this.nodesPopulated=!0)}populateAllOldNodes(){if(!this.nodesPopulated){const A=this.dirtyLength?this.type.tree_getLength(this._rootNode):this._length;this.nodes=ig(this._rootNode,this.type.depth,0,A),this.nodesPopulated=!0}}}function cD(g){return{finalized:[],count:0,root:Gi(NI(g),NI(0))}}class lD extends Pr{type;_rootNode;constructor(A,I,B){super(A,I,B),this.type=A,this._rootNode=I}push(A){if(this._length>=this.type.limit)throw Error("Error pushing over limit");this.dirtyLength=!0;const I=this._length++;this.set(I,A)}sliceTo(A){this.commit();const I=this._rootNode,B=this._length;if(A>=B-1)return this;const C=this.type.tree_getChunksNode(I),e=cr(C,this.type.chunkDepth,A),t=A+1,i=this.type.tree_setChunksNode(I,e,t);return this.rootNodeToViewDU(i)}sliceFrom(A){if(this.commit(),this.populateAllNodes(),A<0&&(A+=this.nodes.length),A<=0)return this;let I,B;if(A>=this.nodes.length)I=IB(this.type.chunkDepth),B=0;else{const e=this.nodes.slice(A);I=Ue(e,this.type.chunkDepth),B=e.length}const C=this.type.tree_setChunksNode(this._rootNode,I,B);return this.rootNodeToViewDU(C)}toSnapshot(A){if(this.commit(),A<0||A>this._length)throw Error(`Invalid count ${A}, length is ${this._length}`);if(A===0)return cD(this.type.chunkDepth);const I=this.sliceTo(A-1)._rootNode,B=this.type.tree_getChunksNode(I);return{...qw(B,this.type.chunkDepth,A),root:I.root}}serializeToBytes(A,I){this.commit(),this.populateAllNodes();const B=this.type.tree_getChunksNode(this._rootNode);return Hi(this.type.elementType,this._length,this.type.chunkDepth,B,A,I,this.nodes)}rootNodeToViewDU(A){return this.type.getViewDU(A)}}class uA extends YC{elementType;limit;typeName;itemsPerChunk=1;depth;chunkDepth;maxChunkCount;fixedSize=null;minSize;maxSize;isList=!0;isViewMutable=!0;defaultLen=0;constructor(A,I,B){if(super(A,B?.cachePermanentRootStruct),this.elementType=A,this.limit=I,A.isBasic)throw Error("elementType must not be basic");if(I===0)throw Error("List limit must be > 0");this.typeName=B?.typeName??`List[${A.typeName}, ${I}]`,this.maxChunkCount=this.limit,this.chunkDepth=nI(this.maxChunkCount),this.depth=this.chunkDepth+1,this.minSize=0,this.maxSize=Yr(A,this.limit)}static named(A,I,B){return new(Gg(uA,B.typeName))(A,I,B)}getView(A){return new sD(this,A)}getViewDU(A,I){return new lD(this,A,I)}commitView(A){return A.node}commitViewDU(A,I=0,B=null){return A.commit(I,B),A.node}cacheOfViewDU(A){return A.cache}value_serializedSize(A){return br(this.elementType,A.length,A)}value_serializeToBytes(A,I,B){return Tr(this.elementType,B.length,A,I,B)}value_deserializeFromBytes(A,I,B){return vr(this.elementType,A,I,B,this)}tree_serializedSize(A){const I=this.tree_getChunksNode(A),B=this.tree_getLength(A);return _r(this.elementType,B,this.chunkDepth,I)}tree_serializeToBytes(A,I,B){const C=this.tree_getChunksNode(B),e=this.tree_getLength(B);return Hi(this.elementType,e,this.chunkDepth,C,A,I)}tree_deserializeFromBytes(A,I,B){return Or(this.elementType,this.chunkDepth,A,I,B,this)}tree_getLength(A){return CB(A)}tree_setLength(A,I){A.rootNode=tB(A.rootNode.left,I)}tree_getChunksNode(A){return A.left}tree_chunksNodeOffset(){return 1}tree_setChunksNode(A,I,B,C=0,e=null){return ur(A,I,B,C,e)}hashTreeRoot(A){if(this.cachePermanentRootStruct){const B=A[eB];if(B)return B}const I=UC(super.hashTreeRoot(A),A.length);return this.cachePermanentRootStruct&&(A[eB]=I),I}getRoots(A){return Zr(this.elementType,A.length,A)}}const hD=BigInt(Number.MAX_SAFE_INTEGER),Ji=BigInt(2)**BigInt(64),SD=BigInt(2)**BigInt(128),wD=BigInt(2)**BigInt(192),zr=2**32,Wr=4294967295;class BI extends KC{byteLength;typeName;itemsPerChunk;fixedSize;minSize;maxSize;maxDecimalStr;clipInfinity;setBitwiseOR;constructor(A,I){if(super(),this.byteLength=A,A>8)throw Error("UintNumber byteLength limit is 8");if(Math.log2(A)%1!==0)throw Error("byteLength must be a power of 2");this.typeName=I?.typeName??`uint${A*8}`,I?.clipInfinity&&(this.typeName+="Inf"),I?.setBitwiseOR&&(this.typeName+="OR"),this.itemsPerChunk=32/this.byteLength,this.fixedSize=A,this.minSize=A,this.maxSize=A,this.maxDecimalStr=(BigInt(2)**BigInt(this.byteLength*8)-BigInt(1)).toString(10),this.clipInfinity=I?.clipInfinity===!0,this.setBitwiseOR=I?.setBitwiseOR===!0}static named(A,I){return new(Gg(BI,I.typeName))(A,I)}defaultValue(){return 0}value_serializeToBytes({dataView:A},I,B){switch(this.byteLength){case 1:A.setInt8(I,B);break;case 2:A.setUint16(I,B,!0);break;case 4:A.setUint32(I,B,!0);break;case 8:B===1/0?(A.setUint32(I,4294967295),A.setUint32(I+4,4294967295)):(A.setUint32(I,B&4294967295,!0),A.setUint32(I+4,B/zr&4294967295,!0));break}return I+this.byteLength}value_deserializeFromBytes({dataView:A},I,B){switch(this.assertValidSize(B-I),this.byteLength){case 1:return A.getUint8(I);case 2:return A.getUint16(I,!0);case 4:return A.getUint32(I,!0);case 8:{const C=A.getUint32(I,!0),e=A.getUint32(I+4,!0);return e===Wr&&C===Wr&&this.clipInfinity?1/0:e*zr+C}}}tree_serializeToBytes(A,I,B){const C=B.getUint(this.byteLength,0,this.clipInfinity);return this.value_serializeToBytes(A,I,C),I+this.byteLength}tree_deserializeFromBytes(A,I,B){this.assertValidSize(B-I);const C=this.value_deserializeFromBytes(A,I,B),e=bA.fromZero();return e.setUint(this.byteLength,0,C,this.clipInfinity),e}tree_getFromNode(A){return A.getUint(this.byteLength,0,this.clipInfinity)}tree_setToNode(A,I){this.tree_setToPackedNode(A,0,I)}tree_getFromPackedNode(A,I){const B=this.byteLength*(I%this.itemsPerChunk);return A.getUint(this.byteLength,B,this.clipInfinity)}tree_setToPackedNode(A,I,B){const C=this.byteLength*(I%this.itemsPerChunk);this.setBitwiseOR?A.bitwiseOrUint(this.byteLength,C,B):A.setUint(this.byteLength,C,B,this.clipInfinity)}fromJson(A){if(typeof A=="number")return A;if(typeof A=="string"){if(this.clipInfinity&&A===this.maxDecimalStr)return 1/0;{const I=parseInt(A,10);if(isNaN(I))throw Error("JSON invalid number isNaN");if(I>Number.MAX_SAFE_INTEGER)throw Error("JSON invalid number > MAX_SAFE_INTEGER");return I}}else if(typeof A=="bigint"){if(A>hD)throw Error("JSON invalid number > MAX_SAFE_INTEGER_BN");return Number(A)}else throw Error(`JSON invalid type ${typeof A} expected number`)}toJson(A){return A===1/0?this.maxDecimalStr:A.toString(10)}}class Ye extends KC{byteLength;typeName;itemsPerChunk;fixedSize;minSize;maxSize;constructor(A,I){if(super(),this.byteLength=A,A>32)throw Error("UintBigint byteLength limit is 32");if(Math.log2(A)%1!==0)throw Error("byteLength must be a power of 2");this.typeName=I?.typeName??`uintBigint${A*8}`,this.byteLength=A,this.itemsPerChunk=32/this.byteLength,this.fixedSize=A,this.minSize=A,this.maxSize=A}static named(A,I){return new(Gg(Ye,I.typeName))(A,I)}defaultValue(){return BigInt(0)}value_serializeToBytes({dataView:A},I,B){switch(this.byteLength){case 1:A.setInt8(I,Number(B));break;case 2:A.setUint16(I,Number(B),!0);break;case 4:A.setUint32(I,Number(B),!0);break;case 8:A.setBigUint64(I,B,!0);break;default:for(let C=0;C<this.byteLength;C+=8){C>0&&(B=B/Ji);const e=BigInt.asUintN(64,B);A.setBigUint64(I+C,e,!0)}}return I+this.byteLength}value_deserializeFromBytes({dataView:A},I,B){const C=B-I;if(C!==this.byteLength)throw Error(`Invalid size ${C} expected ${this.byteLength}`);switch(this.byteLength){case 1:return BigInt(A.getUint8(I));case 2:return BigInt(A.getUint16(I,!0));case 4:return BigInt(A.getUint32(I,!0));case 8:return A.getBigUint64(I,!0);case 16:{const e=A.getBigUint64(I,!0);return A.getBigUint64(I+8,!0)*Ji+e}case 32:{const e=A.getBigUint64(I,!0),t=A.getBigUint64(I+8,!0),i=A.getBigUint64(I+16,!0);return A.getBigUint64(I+24,!0)*wD+i*SD+t*Ji+e}}}tree_serializeToBytes(A,I,B){const C=B.getUintBigint(this.byteLength,0);return this.value_serializeToBytes(A,I,C),I+this.byteLength}tree_deserializeFromBytes(A,I,B){const C=B-I;if(C!==this.byteLength)throw Error(`Invalid size ${C} expected ${this.byteLength}`);const e=this.value_deserializeFromBytes(A,I,B),t=bA.fromZero();return t.setUintBigint(this.byteLength,0,e),t}tree_getFromNode(A){return A.getUintBigint(this.byteLength,0)}tree_setToNode(A,I){this.tree_setToPackedNode(A,0,I)}tree_getFromPackedNode(A,I){const B=this.byteLength*(I%this.itemsPerChunk);return A.getUintBigint(this.byteLength,B)}tree_setToPackedNode(A,I,B){const C=this.byteLength*(I%this.itemsPerChunk);A.setUintBigint(this.byteLength,C,B)}fromJson(A){if(typeof A=="bigint")return A;if(typeof A=="string"||typeof A=="number")return BigInt(A);throw Error(`JSON invalid type ${typeof A} expected bigint`)}toJson(A){return A.toString(10)}}BigInt(2),BigInt(3),BigInt(2),BigInt(3);class Mi extends YC{elementType;length;typeName;itemsPerChunk;depth;chunkDepth;maxChunkCount;fixedSize;minSize;maxSize;isList=!1;isViewMutable=!0;defaultLen;constructor(A,I,B){if(super(A),this.elementType=A,this.length=I,!A.isBasic)throw Error("elementType must be basic");if(I===0)throw Error("Vector length must be > 0");this.typeName=B?.typeName??`Vector[${A.typeName}, ${I}]`,this.itemsPerChunk=32/A.byteLength,this.maxChunkCount=Math.ceil(I*A.byteLength/32),this.chunkDepth=nI(this.maxChunkCount),this.depth=this.chunkDepth,this.fixedSize=I*A.byteLength,this.minSize=this.fixedSize,this.maxSize=this.fixedSize,this.defaultLen=I}static named(A,I,B){return new(Gg(Mi,B.typeName))(A,I,B)}getView(A){return new qr(this,A)}getViewDU(A,I){return new Kr(this,A,I)}commitView(A){return A.node}commitViewDU(A,I=0,B=null){return A.commit(I,B),A.node}cacheOfViewDU(A){return A.cache}value_serializedSize(){return this.fixedSize}value_serializeToBytes(A,I,B){return LC(this.elementType,this.length,A,I,B)}value_deserializeFromBytes(A,I,B){return fr(this.elementType,A,I,B,this)}tree_serializedSize(){return this.fixedSize}tree_serializeToBytes(A,I,B){return Ni(this.elementType,this.length,this.depth,A,I,B)}tree_deserializeFromBytes(A,I,B){return pr(this.elementType,this.depth,A,I,B,this)}tree_getLength(){return this.length}tree_setLength(){}tree_getChunksNode(A){return A}tree_chunksNodeOffset(){return 0}tree_setChunksNode(A,I){return I}getRoots(A){const I=new Uint8Array(this.fixedSize),B=new DataView(I.buffer,I.byteOffset,I.byteLength);return LC(this.elementType,this.length,{uint8Array:I,dataView:B},0,A),RC(I)}}class Qg extends YC{elementType;length;typeName;itemsPerChunk=1;depth;chunkDepth;maxChunkCount;fixedSize;minSize;maxSize;isList=!1;isViewMutable=!0;defaultLen;constructor(A,I,B){if(super(A),this.elementType=A,this.length=I,A.isBasic)throw Error("elementType must not be basic");if(I===0)throw Error("Vector length must be > 0");this.typeName=B?.typeName??`Vector[${A.typeName}, ${I}]`,this.maxChunkCount=I,this.chunkDepth=nI(this.maxChunkCount),this.depth=this.chunkDepth,this.fixedSize=A.fixedSize===null?null:I*A.fixedSize,this.minSize=rD(A,I),this.maxSize=Yr(A,I),this.defaultLen=I}static named(A,I,B){return new(Gg(Qg,B.typeName))(A,I,B)}getView(A){return new jr(this,A)}getViewDU(A,I){return new Pr(this,A,I)}commitView(A){return A.node}commitViewDU(A,I=0,B=null){return A.commit(I,B),A.node}cacheOfViewDU(A){return A.cache}value_serializedSize(A){return br(this.elementType,this.length,A)}value_serializeToBytes(A,I,B){return Tr(this.elementType,this.length,A,I,B)}value_deserializeFromBytes(A,I,B){return vr(this.elementType,A,I,B,this)}tree_serializedSize(A){return _r(this.elementType,this.length,this.depth,A)}tree_serializeToBytes(A,I,B){return Hi(this.elementType,this.length,this.depth,B,A,I)}tree_deserializeFromBytes(A,I,B){return Or(this.elementType,this.depth,A,I,B,this)}tree_getLength(){return this.length}tree_setLength(){}tree_getChunksNode(A){return A}tree_chunksNodeOffset(){return 0}tree_setChunksNode(A,I){return I}getRoots(A){return Zr(this.elementType,this.length,A)}}class DD extends UI{constructor(A,I){super(new BI(8),A,I)}toViewDU(A){const{treeNode:I,leafNodes:B}=this.packedUintNum64sToNode(A);return this.getViewDU(I,{nodes:B,length:A.length,nodesPopulated:!0})}value_toTree(A){const{treeNode:I}=this.packedUintNum64sToNode(A);return I}packedUintNum64sToNode(A){if(A.length>this.limit)throw new Error(`Exceeds limit: ${A.length} > ${this.limit}`);const I=Sw(A),B=Ue([...I],this.chunkDepth);return{treeNode:tB(B,A.length),leafNodes:I}}}const bC=BigInt(2**32-1),Vr=BigInt(32);function yD(g,A=!1){return A?{h:Number(g&bC),l:Number(g>>Vr&bC)}:{h:Number(g>>Vr&bC)|0,l:Number(g&bC)|0}}function uD(g,A=!1){let I=new Uint32Array(g.length),B=new Uint32Array(g.length);for(let C=0;C<g.length;C++){const{h:e,l:t}=yD(g[C],A);[I[C],B[C]]=[e,t]}return[I,B]}const fD=(g,A,I)=>g<<I|A>>>32-I,pD=(g,A,I)=>A<<I|g>>>32-I,FD=(g,A,I)=>A<<I-32|g>>>64-I,dD=(g,A,I)=>g<<I-32|A>>>64-I,[Xr,$r,Aa]=[[],[],[]],GD=BigInt(0),be=BigInt(1),ND=BigInt(2),kD=BigInt(7),RD=BigInt(256),UD=BigInt(113);for(let g=0,A=be,I=1,B=0;g<24;g++){[I,B]=[B,(2*I+3*B)%5],Xr.push(2*(5*B+I)),$r.push((g+1)*(g+2)/2%64);let C=GD;for(let e=0;e<7;e++)A=(A<<be^(A>>kD)*UD)%RD,A&ND&&(C^=be<<(be<<BigInt(e))-be);Aa.push(C)}const[LD,mD]=uD(Aa,!0),ga=(g,A,I)=>I>32?FD(g,A,I):fD(g,A,I),Ia=(g,A,I)=>I>32?dD(g,A,I):pD(g,A,I);function HD(g,A=24){const I=new Uint32Array(10);for(let B=24-A;B<24;B++){for(let t=0;t<10;t++)I[t]=g[t]^g[t+10]^g[t+20]^g[t+30]^g[t+40];for(let t=0;t<10;t+=2){const i=(t+8)%10,E=(t+2)%10,c=I[E],n=I[E+1],s=ga(c,n,1)^I[i],S=Ia(c,n,1)^I[i+1];for(let w=0;w<50;w+=10)g[t+w]^=s,g[t+w+1]^=S}let C=g[2],e=g[3];for(let t=0;t<24;t++){const i=$r[t],E=ga(C,e,i),c=Ia(C,e,i),n=Xr[t];C=g[n],e=g[n+1],g[n]=E,g[n+1]=c}for(let t=0;t<50;t+=10){for(let i=0;i<10;i++)I[i]=g[t+i];for(let i=0;i<10;i++)g[t+i]^=~I[(i+2)%10]&I[(i+4)%10]}g[0]^=LD[B],g[1]^=mD[B]}I.fill(0)}class qi extends ir{constructor(A,I,B,C=!1,e=24){if(super(),this.blockLen=A,this.suffix=I,this.outputLen=B,this.enableXOF=C,this.rounds=e,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,Ge(B),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=Aw(this.state)}keccak(){HD(this.state32,this.rounds),this.posOut=0,this.pos=0}update(A){Ne(this);const{blockLen:I,state:B}=this;A=li(A);const C=A.length;for(let e=0;e<C;){const t=Math.min(I-this.pos,C-e);for(let i=0;i<t;i++)B[this.pos++]^=A[e++];this.pos===I&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:A,suffix:I,pos:B,blockLen:C}=this;A[B]^=I,I&128&&B===C-1&&this.keccak(),A[C-1]^=128,this.keccak()}writeInto(A){Ne(this,!1),ai(A),this.finish();const I=this.state,{blockLen:B}=this;for(let C=0,e=A.length;C<e;){this.posOut>=B&&this.keccak();const t=Math.min(B-this.posOut,e-C);A.set(I.subarray(this.posOut,this.posOut+t),C),this.posOut+=t,C+=t}return A}xofInto(A){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(A)}xof(A){return Ge(A),this.xofInto(new Uint8Array(A))}digestInto(A){if(si(A,this),this.finished)throw new Error("digest() was already called");return this.writeInto(A),this.destroy(),A}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(A){const{blockLen:I,suffix:B,outputLen:C,rounds:e,enableXOF:t}=this;return A||(A=new qi(I,B,C,t,e)),A.state32.set(this.state32),A.pos=this.pos,A.posOut=this.posOut,A.finished=this.finished,A.rounds=e,A.suffix=B,A.outputLen=C,A.enableXOF=t,A.destroyed=this.destroyed,A}}const JD=(g,A,I)=>Qr(()=>new qi(A,g,I)),Ba=JD(1,136,256/8);function MD(g){return A=>($S.bytes(A),g(A))}(()=>{const g=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0,A=typeof module<"u"&&typeof module.require=="function"&&module.require.bind(module);return{node:A&&!g?A("crypto"):void 0,web:g}})();const qD=(()=>{const g=MD(Ba);return g.create=Ba.create,g})();class KD extends Jg{constructor(){super(20,{typeName:"ExecutionAddress"})}toJson(A){const I=super.toJson(A);return bD(I)}}function YD(g){return/^(0x)?[0-9a-f]{40}$/i.test(g)}function bD(g){if(!YD(g))throw Error(`Invalid address: ${g}`);const A=(g.startsWith("0x")?g.slice(2):g).toLowerCase(),I=A.split(""),B=new Uint8Array(I.length);for(let e=0;e<B.length;e++)B[e]=A[e].charCodeAt(0);const C=qD(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 Ig=new mi,ea=new BI(1),Te=new Jg(4),Ki=new Jg(8),Ca=new Jg(20),Yi=new Jg(32),bi=new Jg(48),Ti=new Jg(96),ta=new BI(1),ia=new BI(2),vi=new BI(4),FA=new BI(8),_i=new BI(8,{clipInfinity:!0}),bB=new Ye(8),Qa=new Ye(16),Oi=new Ye(32),vA=FA,_g=FA,Ea=_i,oa=FA,iB=FA,Zi=FA,PA=FA,na=FA,ra=bB,aa=bB,sa=Oi,QB=new Jg(32),xi=FA,ca=Te,la=Te,ji=Te,TB=bi,TC=Ti,ha=Yi,Sa=new BI(1,{setBitwiseOR:!0}),Pi=new KD,EB=Object.freeze(Object.defineProperty({__proto__:null,BLSPubkey:TB,BLSSignature:TC,BlobIndex:xi,Boolean:Ig,Byte:ea,Bytes20:Ca,Bytes32:Yi,Bytes4:Te,Bytes48:bi,Bytes8:Ki,Bytes96:Ti,CommitteeIndex:iB,DepositIndex:ra,Domain:ha,DomainType:la,Epoch:_g,EpochInf:Ea,ExecutionAddress:Pi,ForkDigest:ji,Gwei:aa,ParticipationFlags:Sa,Root:QB,Slot:vA,SubcommitteeIndex:Zi,SyncPeriod:oa,Uint16:ia,Uint32:vi,Uint8:ta,UintBn128:Qa,UintBn256:Oi,UintBn64:bB,UintNum64:FA,UintNumInf64:_i,ValidatorIndex:PA,Version:ca,Wei:sa,WithdrawalIndex:na},Symbol.toStringTag,{value:"Module"})),{Boolean:TD,Bytes32:vD,UintNum64:_D,BLSPubkey:OD,EpochInf:vC}=EB,wa=2**32,vB=4,ZD=48,xD=32,jD=1,PD={pubkey:OD,withdrawalCredentials:vD,effectiveBalance:_D,slashed:TD,activationEligibilityEpoch:vC,activationEpoch:vC,exitEpoch:vC,withdrawableEpoch:vC};class zD extends ED{constructor(){super(PD,{typeName:"Validator",jsonCase:"eth2"})}value_serializeToBytes({uint8Array:A,dataView:I},B,C){A.set(C.pubkey,B),B+=ZD,A.set(C.withdrawalCredentials,B),B+=xD;const{effectiveBalance:e,activationEligibilityEpoch:t,activationEpoch:i,exitEpoch:E,withdrawableEpoch:c}=C;return I.setUint32(B,e&4294967295,!0),B+=vB,I.setUint32(B,e/wa&4294967295,!0),B+=vB,A[B]=C.slashed?1:0,B+=jD,B=_C(I,B,t),B=_C(I,B,i),B=_C(I,B,E),B=_C(I,B,c),B}}function _C(g,A,I){return I===1/0?(g.setUint32(A,4294967295,!0),A+=vB,g.setUint32(A,4294967295,!0),A+=vB):(g.setUint32(A,I&4294967295,!0),A+=vB,g.setUint32(A,I/wa&4294967295,!0),A+=vB),A}const Da=new zD,{Bytes32:oB,UintNum64:Sg,UintBn64:nB,Slot:LI,Epoch:ve,CommitteeIndex:ya,ValidatorIndex:rB,Root:UA,Version:_e,ForkDigest:ua,BLSPubkey:fa,BLSSignature:Og,Domain:WD}=EB,zi=new RI(Y2),XA=new Y({slot:LI,proposerIndex:rB,parentRoot:UA,stateRoot:UA,bodyRoot:UA},{typeName:"BeaconBlockHeader",jsonCase:"eth2",cachePermanentRootStruct:!0}),pa=new Y({slot:nB,proposerIndex:rB,parentRoot:UA,stateRoot:UA,bodyRoot:UA},{typeName:"BeaconBlockHeader",jsonCase:"eth2",cachePermanentRootStruct:!0}),Wi=new Y({message:XA,signature:Og},{typeName:"SignedBeaconBlockHeader",jsonCase:"eth2"}),Vi=new Y({message:pa,signature:Og},{typeName:"SignedBeaconBlockHeader",jsonCase:"eth2"}),LA=new Y({epoch:ve,root:UA},{typeName:"Checkpoint",jsonCase:"eth2"}),Xi=new Y({epoch:nB,root:UA},{typeName:"Checkpoint",jsonCase:"eth2"}),$i=new qC(he),OC=new UI(rB,he),VD=new Y({pubkey:fa,withdrawalCredentials:oB,amount:Sg},{typeName:"DepositMessage",jsonCase:"eth2"}),AQ=new Y({pubkey:fa,withdrawalCredentials:oB,amount:Sg,signature:Og},{typeName:"DepositData",jsonCase:"eth2"}),XD=new uA(UA,2**qo),$D=new Y({depositData:AQ,blockNumber:Sg,index:Sg},{typeName:"DepositEvent",jsonCase:"eth2"}),cI=new Y({depositRoot:UA,depositCount:Sg,blockHash:oB},{typeName:"Eth1Data",jsonCase:"eth2"}),aB=new uA(cI,a2*Yg),Ay=new Y({depositRoot:UA,depositCount:Sg,blockHash:oB,blockNumber:Sg},{typeName:"Eth1DataOrdered",jsonCase:"eth2"}),gy=new Y({timestamp:Sg,depositRoot:UA,depositCount:Sg},{typeName:"Eth1Block",jsonCase:"eth2"}),lI=new Y({previousVersion:_e,currentVersion:_e,epoch:ve},{typeName:"Fork",jsonCase:"eth2"}),gQ=new Y({currentVersion:_e,genesisValidatorsRoot:UA},{typeName:"ForkData",jsonCase:"eth2"}),Iy=new Y({forkDigest:ua,nextForkVersion:_e,nextForkEpoch:ve},{typeName:"ENRForkID",jsonCase:"eth2"}),mI=new Qg(UA,Lo),HI=new Qg(UA,Lo),By=new Y({blockRoots:mI,stateRoots:HI},{typeName:"HistoricalBatch",jsonCase:"eth2"}),ey=new Y({blockRoots:UA,stateRoots:UA},{typeName:"HistoricalBatchRoots",jsonCase:"eth2"}),Fa=Da,sB=new uA(Da,rC),cB=new DD(rC),lB=new Qg(oB,s2),hB=new Mi(Sg,c2),SB=new RI(q2),JI=new Y({slot:LI,index:ya,beaconBlockRoot:UA,source:LA,target:LA},{typeName:"AttestationData",jsonCase:"eth2",cachePermanentRootStruct:!0}),IQ=new Y({slot:nB,index:nB,beaconBlockRoot:UA,source:Xi,target:Xi},{typeName:"AttestationData",jsonCase:"eth2",cachePermanentRootStruct:!0}),Cy=new Y({attestingIndices:OC,data:JI,signature:Og},{typeName:"IndexedAttestation",jsonCase:"eth2"}),BQ=new Y({attestingIndices:OC,data:IQ,signature:Og},{typeName:"IndexedAttestation",jsonCase:"eth2"}),da=new Y({aggregationBits:$i,data:JI,inclusionDelay:LI,proposerIndex:rB},{typeName:"PendingAttestation",jsonCase:"eth2"}),ZC=new Y({objectRoot:UA,domain:WD},{typeName:"SigningData",jsonCase:"eth2"}),MI=new Y({aggregationBits:$i,data:JI,signature:Og},{typeName:"Attestation",jsonCase:"eth2"}),ty=MI,Zg=new Y({attestation1:BQ,attestation2:BQ},{typeName:"AttesterSlashing",jsonCase:"eth2"}),Ga=new Y({proof:new Qg(oB,qo+1),data:AQ},{typeName:"Deposit",jsonCase:"eth2"}),qI=new Y({signedHeader1:Vi,signedHeader2:Vi},{typeName:"ProposerSlashing",jsonCase:"eth2"}),Na=new Y({epoch:ve,validatorIndex:rB},{typeName:"VoluntaryExit",jsonCase:"eth2",cachePermanentRootStruct:!0}),KI=new Y({message:Na,signature:Og},{typeName:"SignedVoluntaryExit",jsonCase:"eth2"}),sg=new Y({randaoReveal:Og,eth1Data:cI,graffiti:oB,proposerSlashings:new uA(qI,l2),attesterSlashings:new uA(Zg,h2),attestations:new uA(MI,mo),deposits:new uA(Ga,S2),voluntaryExits:new uA(KI,w2)},{typeName:"BeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),ka=new Y({slot:LI,proposerIndex:rB,parentRoot:UA,stateRoot:UA,body:sg},{typeName:"BeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),iy=new Y({message:ka,signature:Og},{typeName:"SignedBeaconBlock",jsonCase:"eth2"}),eQ=new uA(da,mo*Yg),Qy=new Y({genesisTime:Sg,genesisValidatorsRoot:UA,slot:LI,fork:lI,latestBlockHeader:XA,blockRoots:mI,stateRoots:HI,historicalRoots:new uA(UA,VI),eth1Data:cI,eth1DataVotes:aB,eth1DepositIndex:Sg,validators:sB,balances:cB,randaoMixes:lB,slashings:hB,previousEpochAttestations:eQ,currentEpochAttestations:eQ,justificationBits:SB,previousJustifiedCheckpoint:LA,currentJustifiedCheckpoint:LA,finalizedCheckpoint:LA},{typeName:"BeaconState",jsonCase:"eth2"}),Ey=new Y({validators:OC,committeeIndex:ya,slot:LI},{typeName:"CommitteeAssignment",jsonCase:"eth2"}),Ra=new Y({aggregatorIndex:rB,aggregate:MI,selectionProof:Og},{typeName:"AggregateAndProof",jsonCase:"eth2",cachePermanentRootStruct:!0}),Ua=new Y({message:Ra,signature:Og},{typeName:"SignedAggregateAndProof",jsonCase:"eth2"}),oy=new Y({forkDigest:ua,finalizedRoot:UA,finalizedEpoch:ve,headRoot:UA,headSlot:LI},{typeName:"Status",jsonCase:"eth2"}),ny=nB,ry=nB,ay=new Y({seqNumber:nB,attnets:zi},{typeName:"Metadata",jsonCase:"eth2"}),sy=new Y({startSlot:LI,count:Sg,step:Sg},{typeName:"BeaconBlocksByRangeRequest",jsonCase:"eth2"}),cy=new uA(UA,b2),La=new Y({genesisValidatorsRoot:UA,genesisTime:Sg,genesisForkVersion:_e},{typeName:"Genesis",jsonCase:"eth2"}),YI=Object.freeze(Object.defineProperty({__proto__:null,AggregateAndProof:Ra,Attestation:MI,AttestationData:JI,AttestationDataBigint:IQ,AttestationSubnets:zi,AttesterSlashing:Zg,Balances:cB,BeaconBlock:ka,BeaconBlockBody:sg,BeaconBlockHeader:XA,BeaconBlockHeaderBigint:pa,BeaconBlocksByRangeRequest:sy,BeaconBlocksByRootRequest:cy,BeaconState:Qy,Checkpoint:LA,CheckpointBigint:Xi,CommitteeAssignment:Ey,CommitteeBits:$i,CommitteeIndices:OC,Deposit:Ga,DepositData:AQ,DepositDataRootList:XD,DepositEvent:$D,DepositMessage:VD,ENRForkID:Iy,EpochAttestations:eQ,Eth1Block:gy,Eth1Data:cI,Eth1DataOrdered:Ay,Eth1DataVotes:aB,Fork:lI,ForkData:gQ,Genesis:La,Goodbye:ny,HistoricalBatch:By,HistoricalBatchRoots:ey,HistoricalBlockRoots:mI,HistoricalStateRoots:HI,IndexedAttestation:Cy,IndexedAttestationBigint:BQ,JustificationBits:SB,Metadata:ay,PendingAttestation:da,Ping:ry,ProposerSlashing:qI,RandaoMixes:lB,SignedAggregateAndProof:Ua,SignedBeaconBlock:iy,SignedBeaconBlockHeader:Wi,SignedBeaconBlockHeaderBigint:Vi,SignedVoluntaryExit:KI,SigningData:ZC,SingleAttestation:ty,Slashings:hB,Status:oy,Validator:Fa,Validators:sB,VoluntaryExit:Na},Symbol.toStringTag,{value:"Module"})),{Bytes32:xC,UintNum64:Oe,UintBn64:ly,Slot:bI,SubcommitteeIndex:ma,ValidatorIndex:CQ,Root:_B,BLSPubkey:Ha,BLSSignature:OB,ParticipationFlags:hy}=EB,Ja=new RI(bo),Ma=new Y({seqNumber:ly,attnets:zi,syncnets:Ja},{typeName:"Metadata",jsonCase:"eth2"}),_A=new Y({pubkeys:new Qg(Ha,DI),aggregatePubkey:Ha},{typeName:"SyncCommittee",jsonCase:"eth2"}),qa=new Y({slot:bI,beaconBlockRoot:_B,validatorIndex:CQ,signature:OB},{typeName:"SyncCommitteeMessage",jsonCase:"eth2"}),tQ=new Y({slot:bI,beaconBlockRoot:_B,subcommitteeIndex:ma,aggregationBits:new RI(DI/bo),signature:OB},{typeName:"SyncCommitteeContribution",jsonCase:"eth2"}),Ka=new Y({aggregatorIndex:CQ,contribution:tQ,selectionProof:OB},{typeName:"ContributionAndProof",jsonCase:"eth2",cachePermanentRootStruct:!0}),iQ=new Y({message:Ka,signature:OB},{typeName:"SignedContributionAndProof",jsonCase:"eth2"}),Sy=new Y({slot:bI,subcommitteeIndex:ma},{typeName:"SyncAggregatorSelectionData",jsonCase:"eth2"}),Ya=new RI(DI),wg=new Y({syncCommitteeBits:Ya,syncCommitteeSignature:OB},{typeName:"SyncCommitteeBits",jsonCase:"eth2"}),eI=new Y({...sg.fields,syncAggregate:wg},{typeName:"BeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),ba=new Y({slot:bI,proposerIndex:CQ,parentRoot:_B,stateRoot:_B,body:eI},{typeName:"BeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),wy=new Y({message:ba,signature:OB},{typeName:"SignedBeaconBlock",jsonCase:"eth2"}),xg=new UI(hy,rC),ZB=new UI(Oe,rC),Dy=new Y({genesisTime:Oe,genesisValidatorsRoot:_B,slot:bI,fork:lI,latestBlockHeader:XA,blockRoots:mI,stateRoots:HI,historicalRoots:new uA(_B,VI),eth1Data:cI,eth1DataVotes:aB,eth1DepositIndex:Oe,validators:sB,balances:cB,randaoMixes:lB,slashings:hB,previousEpochParticipation:xg,currentEpochParticipation:xg,justificationBits:SB,previousJustifiedCheckpoint:LA,currentJustifiedCheckpoint:LA,finalizedCheckpoint:LA,inactivityScores:ZB,currentSyncCommittee:_A,nextSyncCommittee:_A},{typeName:"BeaconState",jsonCase:"eth2"}),wB=new Y({beacon:XA},{typeName:"LightClientHeader",jsonCase:"eth2"}),jC=new Y({header:wB,currentSyncCommittee:_A,currentSyncCommitteeBranch:new Qg(xC,we)},{typeName:"LightClientBootstrap",jsonCase:"eth2"}),xB=new Y({attestedHeader:wB,nextSyncCommittee:_A,nextSyncCommitteeBranch:new Qg(xC,we),finalizedHeader:wB,finalityBranch:new Qg(xC,XI),syncAggregate:wg,signatureSlot:bI},{typeName:"LightClientUpdate",jsonCase:"eth2"}),QQ=new Y({attestedHeader:wB,finalizedHeader:wB,finalityBranch:new Qg(xC,XI),syncAggregate:wg,signatureSlot:bI},{typeName:"LightClientFinalityUpdate",jsonCase:"eth2"}),yy=new Y({attestedHeader:wB,syncAggregate:wg,signatureSlot:bI},{typeName:"LightClientOptimisticUpdate",jsonCase:"eth2"}),uy=new Y({startPeriod:Oe,count:Oe},{typeName:"LightClientUpdatesByRange",jsonCase:"eth2"}),fy=new Y({snapshot:jC,validUpdates:new uA(xB,yI*Yg)},{typeName:"LightClientStore",jsonCase:"eth2"}),DB=Object.freeze(Object.defineProperty({__proto__:null,BeaconBlock:ba,BeaconBlockBody:eI,BeaconState:Dy,ContributionAndProof:Ka,EpochParticipation:xg,InactivityScores:ZB,LightClientBootstrap:jC,LightClientFinalityUpdate:QQ,LightClientHeader:wB,LightClientOptimisticUpdate:yy,LightClientStore:fy,LightClientUpdate:xB,LightClientUpdatesByRange:uy,Metadata:Ma,SignedBeaconBlock:wy,SignedContributionAndProof:iQ,SyncAggregate:wg,SyncAggregatorSelectionData:Sy,SyncCommittee:_A,SyncCommitteeBits:Ya,SyncCommitteeContribution:tQ,SyncCommitteeMessage:qa,SyncSubnets:Ja},Symbol.toStringTag,{value:"Module"}));class jB extends KC{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(A){if(typeof A!="string")throw Error(`JSON invalid type ${typeof A} expected string`);return A}toJson(A){return A}}const TI=new jB,{Bytes32:PC,UintNum64:jg,Slot:EQ,ValidatorIndex:Ta,Root:Ng,BLSSignature:zC,UintBn256:oQ,BLSPubkey:va,ExecutionAddress:_a}=EB,Oa=new qe(y2),Za=new uA(Oa,u2),nQ=new Y({parentHash:Ng,feeRecipient:_a,stateRoot:PC,receiptsRoot:PC,logsBloom:new Jg(f2),prevRandao:PC,blockNumber:jg,gasLimit:jg,gasUsed:jg,timestamp:jg,extraData:new qe(p2),baseFeePerGas:oQ,blockHash:Ng}),rQ=new Y({...nQ.fields,transactions:Za},{typeName:"ExecutionPayload",jsonCase:"eth2"}),Ze=new Y({...nQ.fields,transactionsRoot:Ng},{typeName:"ExecutionPayloadHeader",jsonCase:"eth2"}),xa=new Y({...eI.fields,executionPayload:rQ},{typeName:"BeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),ja=new Y({slot:EQ,proposerIndex:Ta,parentRoot:Ng,stateRoot:Ng,body:xa},{typeName:"BeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),py=new Y({message:ja,signature:zC},{typeName:"SignedBeaconBlock",jsonCase:"eth2"}),Fy=new Y({blockHash:Ng,parentHash:Ng,totalDifficulty:oQ},{typeName:"PowBlock",jsonCase:"eth2"}),dy=new Y({genesisTime:jg,genesisValidatorsRoot:Ng,slot:vA,fork:lI,latestBlockHeader:XA,blockRoots:mI,stateRoots:HI,historicalRoots:new uA(Ng,VI),eth1Data:cI,eth1DataVotes:aB,eth1DepositIndex:jg,validators:sB,balances:cB,randaoMixes:lB,slashings:hB,previousEpochParticipation:xg,currentEpochParticipation:xg,justificationBits:SB,previousJustifiedCheckpoint:LA,currentJustifiedCheckpoint:LA,finalizedCheckpoint:LA,inactivityScores:ZB,currentSyncCommittee:_A,nextSyncCommittee:_A,latestExecutionPayloadHeader:Ze},{typeName:"BeaconState",jsonCase:"eth2"}),Pa=new Y({...eI.fields,executionPayloadHeader:Ze},{typeName:"BlindedBeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),aQ=new Y({slot:EQ,proposerIndex:Ta,parentRoot:Ng,stateRoot:Ng,body:Pa},{typeName:"BlindedBeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),Gy=new Y({message:aQ,signature:zC},{typeName:"SignedBlindedBeaconBlock",jsonCase:"eth2"}),za=new Y({feeRecipient:_a,gasLimit:jg,timestamp:jg,pubkey:va},{typeName:"ValidatorRegistrationV1",jsonCase:"eth2"}),Wa=new Y({message:za,signature:zC},{typeName:"SignedValidatorRegistrationV1",jsonCase:"eth2"}),Va=new Y({header:Ze,value:oQ,pubkey:va},{typeName:"BuilderBid",jsonCase:"eth2"}),Ny=new Y({message:Va,signature:zC},{typeName:"SignedBuilderBid",jsonCase:"eth2"}),sQ=new Y({timestamp:jg,prevRandao:PC,suggestedFeeRecipient:TI},{typeName:"PayloadAttributes",jsonCase:"eth2"}),xe=new Y({proposerIndex:jg,proposalSlot:EQ,parentBlockNumber:jg,parentBlockRoot:Ng,parentBlockHash:Ng},{typeName:"SSEPayloadAttributesCommon",jsonCase:"eth2"}),ky=new Y({...xe.fields,payloadAttributes:sQ},{typeName:"SSEPayloadAttributes",jsonCase:"eth2"}),PB=Object.freeze(Object.defineProperty({__proto__:null,BeaconBlock:ja,BeaconBlockBody:xa,BeaconState:dy,BlindedBeaconBlock:aQ,BlindedBeaconBlockBody:Pa,BuilderBid:Va,CommonExecutionPayloadType:nQ,ExecutionPayload:rQ,ExecutionPayloadHeader:Ze,PayloadAttributes:sQ,PowBlock:Fy,SSEPayloadAttributes:ky,SSEPayloadAttributesCommon:xe,SignedBeaconBlock:py,SignedBlindedBeaconBlock:Gy,SignedBuilderBid:Ny,SignedValidatorRegistrationV1:Wa,Transaction:Oa,Transactions:Za,ValidatorRegistrationV1:za},Symbol.toStringTag,{value:"Module"})),{UintNum64:Xa,Slot:WC,ValidatorIndex:VC,WithdrawalIndex:$a,Root:yB,BLSSignature:XC,BLSPubkey:As,ExecutionAddress:gs,Gwei:Ry,UintBn256:Uy,Bytes32:Ly}=EB,Is=new Y({index:$a,validatorIndex:VC,address:gs,amount:Ry},{typeName:"Withdrawal",jsonCase:"eth2"}),Bs=new Y({validatorIndex:VC,fromBlsPubkey:As,toExecutionAddress:gs},{typeName:"BLSToExecutionChange",jsonCase:"eth2"}),$C=new Y({message:Bs,signature:XC},{typeName:"SignedBLSToExecutionChange",jsonCase:"eth2"}),cQ=new uA(Is,d2),lQ=new Y({...rQ.fields,withdrawals:cQ},{typeName:"ExecutionPayload",jsonCase:"eth2"}),uB=new Y({...Ze.fields,withdrawalsRoot:yB},{typeName:"ExecutionPayloadHeader",jsonCase:"eth2"}),hQ=new uA($C,F2),zB=new Y({...eI.fields,executionPayload:lQ,blsToExecutionChanges:hQ},{typeName:"BeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),SQ=new Y({slot:WC,proposerIndex:VC,parentRoot:yB,stateRoot:yB,body:zB},{typeName:"BeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),my=new Y({message:SQ,signature:XC},{typeName:"SignedBeaconBlock",jsonCase:"eth2"}),es=new Y({header:uB,value:Uy,pubkey:As},{typeName:"BuilderBid",jsonCase:"eth2"}),Hy=new Y({message:es,signature:XC},{typeName:"SignedBuilderBid",jsonCase:"eth2"}),Cs=new Y({blockSummaryRoot:yB,stateSummaryRoot:yB},{typeName:"HistoricalSummary",jsonCase:"eth2"}),wQ=new uA(Cs,VI,{typeName:"HistoricalSummaries"}),fB=new Y({genesisTime:Xa,genesisValidatorsRoot:yB,slot:vA,fork:lI,latestBlockHeader:XA,blockRoots:mI,stateRoots:HI,historicalRoots:new uA(yB,VI),eth1Data:cI,eth1DataVotes:aB,eth1DepositIndex:Xa,validators:sB,balances:cB,randaoMixes:lB,slashings:hB,previousEpochParticipation:xg,currentEpochParticipation:xg,justificationBits:SB,previousJustifiedCheckpoint:LA,currentJustifiedCheckpoint:LA,finalizedCheckpoint:LA,inactivityScores:ZB,currentSyncCommittee:_A,nextSyncCommittee:_A,latestExecutionPayloadHeader:uB,nextWithdrawalIndex:$a,nextWithdrawalValidatorIndex:VC,historicalSummaries:wQ},{typeName:"BeaconState",jsonCase:"eth2"}),ts=new Y({...eI.fields,executionPayloadHeader:uB,blsToExecutionChanges:hQ},{typeName:"BlindedBeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),DQ=new Y({...aQ.fields,body:ts},{typeName:"BlindedBeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),Jy=new Y({message:DQ,signature:XC},{typeName:"SignedBlindedBeaconBlock",jsonCase:"eth2"}),kg=new Y({beacon:XA,execution:uB,executionBranch:new Qg(Ly,vo)},{typeName:"LightClientHeader",jsonCase:"eth2"}),is=new Y({header:kg,currentSyncCommittee:_A,currentSyncCommitteeBranch:jC.fields.currentSyncCommitteeBranch},{typeName:"LightClientBootstrap",jsonCase:"eth2"}),Qs=new Y({attestedHeader:kg,nextSyncCommittee:_A,nextSyncCommitteeBranch:xB.fields.nextSyncCommitteeBranch,finalizedHeader:kg,finalityBranch:xB.fields.finalityBranch,syncAggregate:wg,signatureSlot:WC},{typeName:"LightClientUpdate",jsonCase:"eth2"}),My=new Y({attestedHeader:kg,finalizedHeader:kg,finalityBranch:QQ.fields.finalityBranch,syncAggregate:wg,signatureSlot:WC},{typeName:"LightClientFinalityUpdate",jsonCase:"eth2"}),qy=new Y({attestedHeader:kg,syncAggregate:wg,signatureSlot:WC},{typeName:"LightClientOptimisticUpdate",jsonCase:"eth2"}),Ky=new Y({snapshot:is,validUpdates:new uA(Qs,yI*Yg)},{typeName:"LightClientStore",jsonCase:"eth2"}),At=new Y({...sQ.fields,withdrawals:cQ},{typeName:"PayloadAttributes",jsonCase:"eth2"}),Yy=new Y({...xe.fields,payloadAttributes:At},{typeName:"SSEPayloadAttributes",jsonCase:"eth2"}),je=Object.freeze(Object.defineProperty({__proto__:null,BLSToExecutionChange:Bs,BLSToExecutionChanges:hQ,BeaconBlock:SQ,BeaconBlockBody:zB,BeaconState:fB,BlindedBeaconBlock:DQ,BlindedBeaconBlockBody:ts,BuilderBid:es,ExecutionPayload:lQ,ExecutionPayloadHeader:uB,HistoricalSummaries:wQ,HistoricalSummary:Cs,LightClientBootstrap:is,LightClientFinalityUpdate:My,LightClientHeader:kg,LightClientOptimisticUpdate:qy,LightClientStore:Ky,LightClientUpdate:Qs,PayloadAttributes:At,SSEPayloadAttributes:Yy,SignedBLSToExecutionChange:$C,SignedBeaconBlock:my,SignedBlindedBeaconBlock:Jy,SignedBuilderBid:Hy,Withdrawal:Is,Withdrawals:cQ},Symbol.toStringTag,{value:"Module"})),{UintNum64:yQ,Slot:gt,Root:It,BLSSignature:uQ,UintBn64:Bt,UintBn256:by,Bytes32:et,Bytes48:fQ,Bytes96:Ty,BLSPubkey:vy,BlobIndex:Es}=EB,_y=fQ,Oy=Ty,Zy=et,pQ=fQ,FQ=fQ,dQ=new Jg(v2*G2),WB=new uA(dQ,Se),os=et,xy=new uA(os,Se),jy=et,VB=new uA(pQ,Se),XB=new uA(FQ,Se),Py=new Y({startSlot:gt,count:yQ},{typeName:"BlobSidecarsByRangeRequest",jsonCase:"eth2"}),zy=new Y({blockRoot:It,index:Es},{typeName:"BlobIdentifier",jsonCase:"eth2"}),Ct=new Y({...lQ.fields,blobGasUsed:Bt,excessBlobGas:Bt},{typeName:"ExecutionPayload",jsonCase:"eth2"}),$B=new Y({...uB.fields,blobGasUsed:Bt,excessBlobGas:Bt},{typeName:"ExecutionPayloadHeader",jsonCase:"eth2"}),tt=new Y({...eI.fields,executionPayload:Ct,blsToExecutionChanges:zB.fields.blsToExecutionChanges,blobKzgCommitments:VB},{typeName:"BeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),it=new Y({...SQ.fields,body:tt},{typeName:"BeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),ns=new Y({message:it,signature:uQ},{typeName:"SignedBeaconBlock",jsonCase:"eth2"}),rs=new Qg(et,N2),as=new Y({index:Es,blob:dQ,kzgCommitment:pQ,kzgProof:FQ,signedBlockHeader:Wi,kzgCommitmentInclusionProof:rs},{typeName:"BlobSidecar",jsonCase:"eth2"}),ss=new uA(as,Se),cs=new Y({commitments:VB,proofs:XB,blobs:WB},{typeName:"BlobsBundle",jsonCase:"eth2"}),ls=new Y({...eI.fields,executionPayloadHeader:$B,blsToExecutionChanges:zB.fields.blsToExecutionChanges,blobKzgCommitments:VB},{typeName:"BlindedBeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),GQ=new Y({...DQ.fields,body:ls},{typeName:"BlindedBeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),Wy=new Y({message:GQ,signature:uQ},{typeName:"SignedBlindedBeaconBlock",jsonCase:"eth2"}),hs=new Y({header:$B,blobKzgCommitments:VB,value:by,pubkey:vy},{typeName:"BuilderBid",jsonCase:"eth2"}),Vy=new Y({message:hs,signature:uQ},{typeName:"SignedBuilderBid",jsonCase:"eth2"}),Xy=new Y({executionPayload:Ct,blobsBundle:cs},{typeName:"ExecutionPayloadAndBlobsBundle",jsonCase:"eth2"}),$y=new Y({genesisTime:yQ,genesisValidatorsRoot:It,slot:vA,fork:lI,latestBlockHeader:XA,blockRoots:mI,stateRoots:HI,historicalRoots:new uA(It,VI),eth1Data:cI,eth1DataVotes:aB,eth1DepositIndex:yQ,validators:sB,balances:cB,randaoMixes:lB,slashings:hB,previousEpochParticipation:xg,currentEpochParticipation:xg,justificationBits:SB,previousJustifiedCheckpoint:LA,currentJustifiedCheckpoint:LA,finalizedCheckpoint:LA,inactivityScores:ZB,currentSyncCommittee:_A,nextSyncCommittee:_A,latestExecutionPayloadHeader:$B,nextWithdrawalIndex:fB.fields.nextWithdrawalIndex,nextWithdrawalValidatorIndex:fB.fields.nextWithdrawalValidatorIndex,historicalSummaries:fB.fields.historicalSummaries},{typeName:"BeaconState",jsonCase:"eth2"}),Dg=new Y({beacon:XA,execution:$B,executionBranch:kg.fields.executionBranch},{typeName:"LightClientHeader",jsonCase:"eth2"}),Ss=new Y({header:Dg,currentSyncCommittee:_A,currentSyncCommitteeBranch:jC.fields.currentSyncCommitteeBranch},{typeName:"LightClientBootstrap",jsonCase:"eth2"}),ws=new Y({attestedHeader:Dg,nextSyncCommittee:_A,nextSyncCommitteeBranch:xB.fields.nextSyncCommitteeBranch,finalizedHeader:Dg,finalityBranch:xB.fields.finalityBranch,syncAggregate:wg,signatureSlot:gt},{typeName:"LightClientUpdate",jsonCase:"eth2"}),Au=new Y({attestedHeader:Dg,finalizedHeader:Dg,finalityBranch:QQ.fields.finalityBranch,syncAggregate:wg,signatureSlot:gt},{typeName:"LightClientFinalityUpdate",jsonCase:"eth2"}),gu=new Y({attestedHeader:Dg,syncAggregate:wg,signatureSlot:gt},{typeName:"LightClientOptimisticUpdate",jsonCase:"eth2"}),Iu=new Y({snapshot:Ss,validUpdates:new uA(ws,yI*Yg)},{typeName:"LightClientStore",jsonCase:"eth2"}),Ds=new Y({...At.fields,parentBeaconBlockRoot:It},{typeName:"PayloadAttributes",jsonCase:"eth2"}),Bu=new Y({...xe.fields,payloadAttributes:Ds},{typeName:"SSEPayloadAttributes",jsonCase:"eth2"}),eu=new Y({block:it,kzgProofs:XB,blobs:WB},{typeName:"BlockContents",jsonCase:"eth2"}),Cu=new Y({signedBlock:ns,kzgProofs:XB,blobs:WB},{typeName:"SignedBlockContents",jsonCase:"eth2"}),Qt=Object.freeze(Object.defineProperty({__proto__:null,BLSFieldElement:Zy,BeaconBlock:it,BeaconBlockBody:tt,BeaconState:$y,BlindedBeaconBlock:GQ,BlindedBeaconBlockBody:ls,BlindedBlob:os,BlindedBlobs:xy,Blob:dQ,BlobIdentifier:zy,BlobKzgCommitments:VB,BlobSidecar:as,BlobSidecars:ss,BlobSidecarsByRangeRequest:Py,Blobs:WB,BlobsBundle:cs,BlockContents:eu,BuilderBid:hs,ExecutionPayload:Ct,ExecutionPayloadAndBlobsBundle:Xy,ExecutionPayloadHeader:$B,G1Point:_y,G2Point:Oy,KZGCommitment:pQ,KZGProof:FQ,KZGProofs:XB,KzgCommitmentInclusionProof:rs,LightClientBootstrap:Ss,LightClientFinalityUpdate:Au,LightClientHeader:Dg,LightClientOptimisticUpdate:gu,LightClientStore:Iu,LightClientUpdate:ws,PayloadAttributes:Ds,SSEPayloadAttributes:Bu,SignedBeaconBlock:ns,SignedBlindedBeaconBlock:Wy,SignedBlockContents:Cu,SignedBuilderBid:Vy,VersionedHash:jy},Symbol.toStringTag,{value:"Module"})),{Epoch:NQ,Gwei:Pe,UintNum64:Et,Slot:ot,Root:kQ,BLSSignature:Pg,UintBn256:tu,Bytes32:Ae,BLSPubkey:ge,DepositIndex:iu,UintBn64:Qu,ExecutionAddress:ys,ValidatorIndex:Ie,CommitteeIndex:Eu}=EB,us=new qC(he*_t),fs=new RI(_t),RQ=new UI(Ie,he*_t),Be=new Y({aggregationBits:us,data:JI,signature:Pg,committeeBits:fs},{typeName:"Attestation",jsonCase:"eth2"}),UQ=new Y({committeeIndex:Eu,attesterIndex:Ie,data:JI,signature:Pg},{typeName:"SingleAttestation",jsonCase:"eth2"}),ou=new Y({attestingIndices:RQ,data:JI,signature:Pg},{typeName:"IndexedAttestation",jsonCase:"eth2"}),LQ=new Y({attestingIndices:RQ,data:IQ,signature:Pg},{typeName:"IndexedAttestation",jsonCase:"eth2"}),vI=new Y({attestation1:LQ,attestation2:LQ},{typeName:"AttesterSlashing",jsonCase:"eth2"}),ps=new Y({aggregatorIndex:Ie,aggregate:Be,selectionProof:Pg},{typeName:"AggregateAndProof",jsonCase:"eth2",cachePermanentRootStruct:!0}),Fs=new Y({message:ps,signature:Pg},{typeName:"SignedAggregateAndProof",jsonCase:"eth2"}),ds=new Y({pubkey:ge,withdrawalCredentials:Ae,amount:Et,signature:Pg,index:iu},{typeName:"DepositRequest",jsonCase:"eth2"}),Gs=new uA(ds,m2),Ns=new Y({sourceAddress:ys,validatorPubkey:ge,amount:Pe},{typeName:"WithdrawalRequest",jsonCase:"eth2"}),ks=new uA(Ns,H2),Rs=new Y({sourceAddress:ys,sourcePubkey:ge,targetPubkey:ge},{typeName:"ConsolidationRequest",jsonCase:"eth2"}),Us=new uA(Rs,L2),nt=new Y({deposits:Gs,withdrawals:ks,consolidations:Us},{typeName:"ExecutionRequests",jsonCase:"eth2"}),rt=$B,Ls=Ct,ms=new Y({randaoReveal:sg.fields.randaoReveal,eth1Data:sg.fields.eth1Data,graffiti:sg.fields.graffiti,proposerSlashings:sg.fields.proposerSlashings,attesterSlashings:new uA(vI,Jo),attestations:new uA(Be,Mo),deposits:sg.fields.deposits,voluntaryExits:sg.fields.voluntaryExits,syncAggregate:eI.fields.syncAggregate,executionPayload:Ls,blsToExecutionChanges:zB.fields.blsToExecutionChanges,blobKzgCommitments:tt.fields.blobKzgCommitments,executionRequests:nt},{typeName:"BeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),mQ=new Y({...it.fields,body:ms},{typeName:"BeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),Hs=new Y({message:mQ,signature:Pg},{typeName:"SignedBeaconBlock",jsonCase:"eth2"}),Js=new Y({randaoReveal:sg.fields.randaoReveal,eth1Data:sg.fields.eth1Data,graffiti:sg.fields.graffiti,proposerSlashings:sg.fields.proposerSlashings,attesterSlashings:new uA(vI,Jo),attestations:new uA(Be,Mo),deposits:sg.fields.deposits,voluntaryExits:sg.fields.voluntaryExits,syncAggregate:wg,executionPayloadHeader:rt,blsToExecutionChanges:zB.fields.blsToExecutionChanges,blobKzgCommitments:tt.fields.blobKzgCommitments,executionRequests:nt},{typeName:"BlindedBeaconBlockBody",jsonCase:"eth2",cachePermanentRootStruct:!0}),Ms=new Y({...GQ.fields,body:Js},{typeName:"BlindedBeaconBlock",jsonCase:"eth2",cachePermanentRootStruct:!0}),nu=new Y({message:Ms,signature:Pg},{typeName:"SignedBlindedBeaconBlock",jsonCase:"eth2"}),qs=new Y({header:rt,blobKzgCommitments:VB,executionRequests:nt,value:tu,pubkey:ge},{typeName:"BuilderBid",jsonCase:"eth2"}),ru=new Y({message:qs,signature:Pg},{typeName:"SignedBuilderBid",jsonCase:"eth2"}),Ks=new Y({pubkey:ge,withdrawalCredentials:Ae,amount:Et,signature:Pg,slot:ot},{typeName:"PendingDeposit",jsonCase:"eth2"}),HQ=new uA(Ks,k2),Ys=new Y({validatorIndex:Ie,amount:Pe,withdrawableEpoch:NQ},{typeName:"PendingPartialWithdrawal",jsonCase:"eth2"}),JQ=new uA(Ys,R2),bs=new Y({sourceIndex:Ie,targetIndex:Ie},{typeName:"PendingConsolidation",jsonCase:"eth2"}),Ts=new uA(bs,U2),au=new Y({genesisTime:Et,genesisValidatorsRoot:kQ,slot:vA,fork:lI,latestBlockHeader:XA,blockRoots:mI,stateRoots:HI,historicalRoots:new uA(kQ,VI),eth1Data:cI,eth1DataVotes:aB,eth1DepositIndex:Et,validators:sB,balances:cB,randaoMixes:lB,slashings:hB,previousEpochParticipation:xg,currentEpochParticipation:xg,justificationBits:SB,previousJustifiedCheckpoint:LA,currentJustifiedCheckpoint:LA,finalizedCheckpoint:LA,inactivityScores:ZB,currentSyncCommittee:_A,nextSyncCommittee:_A,latestExecutionPayloadHeader:rt,nextWithdrawalIndex:fB.fields.nextWithdrawalIndex,nextWithdrawalValidatorIndex:fB.fields.nextWithdrawalValidatorIndex,historicalSummaries:fB.fields.historicalSummaries,depositRequestsStartIndex:Qu,depositBalanceToConsume:Pe,exitBalanceToConsume:Pe,earliestExitEpoch:NQ,consolidationBalanceToConsume:Pe,earliestConsolidationEpoch:NQ,pendingDeposits:HQ,pendingPartialWithdrawals:JQ,pendingConsolidations:Ts},{typeName:"BeaconState",jsonCase:"eth2"}),vs=new Y({header:Dg,currentSyncCommittee:_A,currentSyncCommitteeBranch:new Qg(Ae,De)},{typeName:"LightClientBootstrap",jsonCase:"eth2"}),_s=new Y({attestedHeader:Dg,nextSyncCommittee:_A,nextSyncCommitteeBranch:new Qg(Ae,De),finalizedHeader:Dg,finalityBranch:new Qg(Ae,QI),syncAggregate:wg,signatureSlot:ot},{typeName:"LightClientUpdate",jsonCase:"eth2"}),su=new Y({attestedHeader:Dg,finalizedHeader:Dg,finalityBranch:new Qg(Ae,QI),syncAggregate:wg,signatureSlot:ot},{typeName:"LightClientFinalityUpdate",jsonCase:"eth2"}),cu=new Y({attestedHeader:Dg,syncAggregate:wg,signatureSlot:ot},{typeName:"LightClientOptimisticUpdate",jsonCase:"eth2"}),lu=new Y({snapshot:vs,validUpdates:new uA(_s,yI*Yg)},{typeName:"LightClientStore",jsonCase:"eth2"}),Os=new Y({...At.fields,parentBeaconBlockRoot:kQ},{typeName:"PayloadAttributes",jsonCase:"eth2"}),hu=new Y({...xe.fields,payloadAttributes:Os},{typeName:"SSEPayloadAttributes",jsonCase:"eth2"}),Su=new Y({block:mQ,kzgProofs:XB,blobs:WB},{typeName:"BlockContents",jsonCase:"eth2"}),wu=new Y({signedBlock:Hs,kzgProofs:XB,blobs:WB},{typeName:"BlockContents",jsonCase:"eth2"}),at=Object.freeze(Object.defineProperty({__proto__:null,AggregateAndProof:ps,AggregationBits:us,Attestation:Be,AttesterSlashing:vI,AttestingIndices:RQ,BeaconBlock:mQ,BeaconBlockBody:ms,BeaconState:au,BlindedBeaconBlock:Ms,BlindedBeaconBlockBody:Js,BlockContents:Su,BuilderBid:qs,CommitteeBits:fs,ConsolidationRequest:Rs,ConsolidationRequests:Us,DepositRequest:ds,DepositRequests:Gs,ExecutionPayload:Ls,ExecutionPayloadHeader:rt,ExecutionRequests:nt,IndexedAttestation:ou,IndexedAttestationBigint:LQ,LightClientBootstrap:vs,LightClientFinalityUpdate:su,LightClientOptimisticUpdate:cu,LightClientStore:lu,LightClientUpdate:_s,PayloadAttributes:Os,PendingConsolidation:bs,PendingConsolidations:Ts,PendingDeposit:Ks,PendingDeposits:HQ,PendingPartialWithdrawal:Ys,PendingPartialWithdrawals:JQ,SSEPayloadAttributes:hu,SignedAggregateAndProof:Fs,SignedBeaconBlock:Hs,SignedBlindedBeaconBlock:nu,SignedBlockContents:wu,SignedBuilderBid:ru,SingleAttestation:UQ,WithdrawalRequest:Ns,WithdrawalRequests:ks},Symbol.toStringTag,{value:"Module"}));var ee;(function(g){g.builder="builder",g.engine="engine"})(ee||(ee={}));const Zs={[hA.phase0]:{...YI},[hA.altair]:{...YI,...DB},[hA.bellatrix]:{...YI,...DB,...PB},[hA.capella]:{...YI,...DB,...PB,...je},[hA.deneb]:{...YI,...DB,...PB,...je,...Qt},[hA.electra]:{...YI,...DB,...PB,...je,...Qt,...at},[hA.fulu]:{...YI,...DB,...PB,...je,...Qt,...at}};function HA(g,A){return A===void 0?Zs[g]:Zs[g][A]}const zg=Object.freeze(Object.defineProperty({__proto__:null,BLSPubkey:TB,BLSSignature:TC,BlobIndex:xi,Boolean:Ig,Byte:ea,Bytes20:Ca,Bytes32:Yi,Bytes4:Te,Bytes48:bi,Bytes8:Ki,Bytes96:Ti,CommitteeIndex:iB,DepositIndex:ra,Domain:ha,DomainType:la,Epoch:_g,EpochInf:Ea,ExecutionAddress:Pi,ForkDigest:ji,Gwei:aa,ParticipationFlags:Sa,Root:QB,Slot:vA,SubcommitteeIndex:Zi,SyncPeriod:oa,Uint16:ia,Uint32:vi,Uint8:ta,UintBn128:Qa,UintBn256:Oi,UintBn64:bB,UintNum64:FA,UintNumInf64:_i,ValidatorIndex:PA,Version:ca,Wei:sa,WithdrawalIndex:na,altair:DB,bellatrix:PB,capella:je,deneb:Qt,electra:at,fulu:at,phase0:YI,sszTypesFor:HA},Symbol.toStringTag,{value:"Module"}));function st(g){return g.kzgProofs!==void 0}function hI(g){const A=g;return A.finalityBranch!==void 0&&A.finalityBranch.length===QI}function xs(g){const A=g;return A.finalityBranch!==void 0&&A.finalityBranch.length===QI}function Du(g,A){const I=new Map,B=new Map,C=new Map,e=new Map;for(const t of Object.values(g.forks)){const i=yu(t.version,A),E=ct(i);e.set(E,t.name),B.set(t.name,i),C.set(t.name,E)}return{genesisValidatorsRoot:A,getDomain(t,i,E){const c=Math.floor((E??t)/Yg),n=g.getForkInfo(t),s=c<n.epoch?n.prevForkName:n.name,S=g.forks[s];let w=I.get(S.name);w||(w=new Map,I.set(S.name,w));let y=w.get(i);return y||(y=js(i,S.version,A),w.set(i,y)),y},getDomainAtFork(t,i){const E=g.forks[t];let c=I.get(E.name);c||(c=new Map,I.set(E.name,c));let n=c.get(i);return n||(n=js(i,E.version,A),c.set(i,n)),n},getDomainForVoluntaryExit(t,i){return t<g.DENEB_FORK_EPOCH*Yg?this.getDomain(t,Ko,i):this.getDomainAtFork(hA.capella,Ko)},forkDigest2ForkName(t){const i=ct(t),E=e.get(i);if(E==null)throw Error(`Unknown forkDigest ${i}`);return E},forkDigest2ForkNameOption(t){const i=ct(t);return e.get(i)??null},forkName2ForkDigest(t){const i=B.get(t);if(!i)throw Error(`No precomputed forkDigest for ${t}`);return i},forkName2ForkDigestHex(t){const i=C.get(t);if(!i)throw Error(`No precomputed forkDigest for ${t}`);return ct(i)}}}function js(g,A,I){const B=Ps(A,I),C=new Uint8Array(32);return C.set(g,0),C.set(B.slice(0,28),4),C}function Ps(g,A){const I={currentVersion:g,genesisValidatorsRoot:A};return gQ.hashTreeRoot(I)}function ct(g){return kS(typeof g=="string"?g:bg(g))}function yu(g,A){return Ps(g,A).slice(0,4)}function uu(g){const A={name:hA.phase0,seq:OA.phase0,epoch:M2,version:g.GENESIS_FORK_VERSION,prevVersion:g.GENESIS_FORK_VERSION,prevForkName:hA.phase0},I={name:hA.altair,seq:OA.altair,epoch:g.ALTAIR_FORK_EPOCH,version:g.ALTAIR_FORK_VERSION,prevVersion:g.GENESIS_FORK_VERSION,prevForkName:hA.phase0},B={name:hA.bellatrix,seq:OA.bellatrix,epoch:g.BELLATRIX_FORK_EPOCH,version:g.BELLATRIX_FORK_VERSION,prevVersion:g.ALTAIR_FORK_VERSION,prevForkName:hA.altair},C={name:hA.capella,seq:OA.capella,epoch:g.CAPELLA_FORK_EPOCH,version:g.CAPELLA_FORK_VERSION,prevVersion:g.BELLATRIX_FORK_VERSION,prevForkName:hA.bellatrix},e={name:hA.deneb,seq:OA.deneb,epoch:g.DENEB_FORK_EPOCH,version:g.DENEB_FORK_VERSION,prevVersion:g.CAPELLA_FORK_VERSION,prevForkName:hA.capella},t={name:hA.electra,seq:OA.electra,epoch:g.ELECTRA_FORK_EPOCH,version:g.ELECTRA_FORK_VERSION,prevVersion:g.DENEB_FORK_VERSION,prevForkName:hA.deneb},i={name:hA.fulu,seq:OA.fulu,epoch:g.FULU_FORK_EPOCH,version:g.FULU_FORK_VERSION,prevVersion:g.ELECTRA_FORK_VERSION,prevForkName:hA.electra},E={phase0:A,altair:I,bellatrix:B,capella:C,deneb:e,electra:t,fulu:i},c=Object.values(E),n=Object.values(E).reverse();return{forks:E,forksAscendingEpochOrder:c,forksDescendingEpochOrder:n,getForkInfo(s){const S=Math.floor(Math.max(s,0)/Yg);return this.getForkInfoAtEpoch(S)},getForkInfoAtEpoch(s){for(const S of n)if(s>=S.epoch)return S;return A},getForkName(s){return this.getForkInfo(s).name},getForkSeq(s){return this.getForkInfo(s).seq},getForkSeqAtEpoch(s){return this.getForkInfoAtEpoch(s).seq},getForkVersion(s){return this.getForkInfo(s).version},getForkTypes(s){return HA(this.getForkName(s))},getPostBellatrixForkTypes(s){const S=this.getForkName(s);if(!oC(S))throw Error(`Invalid slot=${s} fork=${S} for post-bellatrix fork types`);return HA(S)},getPostAltairForkTypes(s){const S=this.getForkName(s);if(!vt(S))throw Error(`Invalid slot=${s} fork=${S} for post-altair fork types`);return HA(S)},getPostDenebForkTypes(s){const S=this.getForkName(s);if(!Lg(S))throw Error(`Invalid slot=${s} fork=${S} for post-deneb fork types`);return HA(S)},getMaxBlobsPerBlock(s){return ZA(s)?g.MAX_BLOBS_PER_BLOCK_ELECTRA:g.MAX_BLOBS_PER_BLOCK},getMaxRequestBlobSidecars(s){return ZA(s)?g.MAX_REQUEST_BLOB_SIDECARS_ELECTRA:g.MAX_REQUEST_BLOB_SIDECARS}}}function MQ(g){const A=PS(g);return{...A,...uu(A)}}function zs(g,A){const I=MQ(g);return{...I,...Du(I,A)}}function Ws(g){return{all:g=g||new Map,on:function(A,I){var B=g.get(A);B?B.push(I):g.set(A,[I])},off:function(A,I){var B=g.get(A);B&&(I?B.splice(B.indexOf(I)>>>0,1):g.set(A,[]))},emit:function(A,I){var B=g.get(A);B&&B.slice().map(function(C){C(I)}),(B=g.get("*"))&&B.slice().map(function(C){C(A,I)})}}}let Bg;wI=(g=>(g.lightClientOptimisticHeader="light_client_optimistic_header",g.lightClientFinalityHeader="light_client_finality_header",g.statusChange="light_client_status_change",g))(wI||{}),function(g){g.ContentType="content-type",g.Accept="accept",g.Authorization="authorization",g.ExposeHeaders="access-control-expose-headers"}(Bg||(Bg={}));var Rg;(function(g){g.json="application/json",g.ssz="application/octet-stream"})(Rg||(Rg={}));const fu=Object.values(Rg);function pu(g,A){return g!==null&&A.includes(g)}function Fu(g){if(!g)return null;const A=g.split(";",1)[0].trim().toLowerCase();return pu(A,fu)?A:null}function du(g,A,{bearerToken:I}){I&&!A.has(Bg.Authorization)&&A.set(Bg.Authorization,`Bearer ${I}`),(g.username||g.password)&&(A.has(Bg.Authorization)||A.set(Bg.Authorization,`Basic ${hS(decodeURIComponent(`${g.username}:${g.password}`))}`),g.username="",g.password="")}function qQ(...g){const A=new Headers;for(const I of g)if(I)if(Array.isArray(I))for(const[B,C]of I)A.set(B,C);else if(I instanceof Headers)for(const[B,C]of I)A.set(B,C);else for(const[B,C]of Object.entries(I))A.set(B,C);return A}function Fg(g,A,I=!0){const B=g[A.toLowerCase()];if(B===void 0&&I)throw Error(`${A} header is required`);return B}class Gu extends Headers{getRequired(A){const I=this.get(A);if(I===null)throw Error(`${A} header is required in response`);return I}getOrDefault(A,I){return this.get(A)??I}}var fA;(function(g){g.json="json",g.ssz="ssz"})(fA||(fA={}));function Nu(g){switch(g){case Rg.json:return fA.json;case Rg.ssz:return fA.ssz}}const RA={writeReq:()=>({}),parseReq:()=>{},schema:{}};function Ce(g){return{...g,writeReqSsz:()=>{throw Error("Not implemented")},parseReqSsz:()=>{throw Error("Not implemented")},onlySupport:fA.json}}const ku={toJson:()=>{},fromJson:()=>{},serialize:()=>new Uint8Array,deserialize:()=>{}},JA={toJson:()=>{},fromJson:()=>{},toHeadersObject:()=>({}),fromHeaders:()=>{}},MA={data:ku,meta:JA,isEmpty:!0};function yA(g,A=1/0){if(sI(g))return new uA(g,A);if(Li(g))return new UI(g,A);throw Error(`Unknown type ${g.typeName}`)}function Ru(g){return{toJson:(A,I)=>g(I).toJson(A),fromJson:(A,I)=>g(I).fromJson(A),serialize:(A,I)=>g(I).serialize(A),deserialize:(A,I)=>g(I).deserialize(A)}}function Mg(g){return{toJson:(A,I)=>g(I.version).toJson(A),fromJson:(A,I)=>g(I.version).fromJson(A),serialize:(A,I)=>g(I.version).serialize(A),deserialize:(A,I)=>g(I.version).deserialize(A)}}function Uu(g){return{...g,data:{...g.data,serialize:()=>{throw Error("Not implemented")},deserialize:()=>{throw Error("Not implemented")}},onlySupport:fA.json}}const eg={data:{toJson:g=>fC(g,"snake"),fromJson:g=>{if(typeof g!="object"||g===null)throw Error("JSON must be of type object");return fC(g,"camel")},serialize:()=>{throw Error("Not implemented")},deserialize:()=>{throw Error("Not implemented")}},meta:JA,onlySupport:fA.json};function $A(g){if(g=g.toLowerCase(),!(g in hA))throw Error(`Invalid version ${g}`);return g}function SI(g){if(!vt(g))throw Error(`Invalid fork=${g} for post-altair fork types`);return HA(g)}function Wg(g){if(!oC(g))throw Error(`Invalid fork=${g} for post-bellatrix fork types`);return HA(g)}var W;(function(g){g[g.Uint=0]="Uint",g[g.UintRequired=1]="UintRequired",g[g.UintArray=2]="UintArray",g[g.String=3]="String",g[g.StringRequired=4]="StringRequired",g[g.StringArray=5]="StringArray",g[g.StringArrayRequired=6]="StringArrayRequired",g[g.UintOrStringRequired=7]="UintOrStringRequired",g[g.UintOrStringArray=8]="UintOrStringArray",g[g.Object=9]="Object",g[g.ObjectArray=10]="ObjectArray",g[g.AnyArray=11]="AnyArray",g[g.Boolean=12]="Boolean"})(W||(W={}));function Lu(g){return g.method==="GET"||g.req.schema.body===void 0}var _I;(function(g){g.String="String",g.Variable="Variable"})(_I||(_I={}));function mu(g){const A=[];let I=0,B=!1;for(let C=0,e=g.length;C<e;C++)switch(g[C]){case"{":{if(B)throw Error(`Invalid path variable not closed: ${g}`);C>I&&A.push({type:_I.String,str:g.slice(I,C)}),I=C+1,B=!0;break}case"}":{if(!B)throw Error(`Invalid path variable not open: ${g}`);if(I===C)throw Error(`Empty variable: ${g}`);A.push({type:_I.Variable,var:g.slice(I,C)}),B=!1,I=C+1;break}}if(B)throw Error(`Invalid path variable not closed: ${g}`);return I<g.length&&A.push({type:_I.String,str:g.slice(I)}),A}function Hu(g){const A=mu(g);if(A.length===1&&A[0].type===_I.String)return()=>g;const I=A.map(B=>{switch(B.type){case _I.String:return()=>B.str;case _I.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 Ju(g){const A=parseInt(g,10);if(!Number.isFinite(A))throw Error(`Invalid uin64 ${g}`);return A}function Mu(g){return g.toString(10)}function ze(g){return g?.map(A=>typeof A=="string"?A:Mu(A))}function We(g){return g?.map(A=>typeof A=="string"&&A.startsWith("0x")?A:Ju(A))}const lt=66;function KQ(g){if(g===void 0)return;const A=bg(new TextEncoder().encode(g));return A.length>lt?A.slice(0,lt):A.length<lt?A.padEnd(lt,"0"):A}function YQ(g){if(g!==void 0)try{return new TextDecoder("utf8").decode(nA(g))}catch{return g}}function pB(g){if(g=g.toLowerCase(),g!=="true"&&g!=="false")throw Error(`Invalid boolean ${g}`);return g==="true"}const FB=new Y({version:new jB});FB.fields.version.fromJson=g=>$A(TI.fromJson(g));const Ve=new Y({executionOptimistic:Ig},{jsonCase:"eth2"}),bQ=new Y({...Ve.fields,finalized:Ig},{jsonCase:"eth2"});new Y({...Ve.fields,...FB.fields},{jsonCase:"eth2"});const Vs=new Y({...bQ.fields,...FB.fields},{jsonCase:"eth2"}),Xs=new Y({...Ve.fields,dependentRoot:TI},{jsonCase:"eth2"});var aA;(function(g){g.Version="Eth-Consensus-Version",g.ConsensusBlockValue="Eth-Consensus-Block-Value",g.ExecutionPayloadBlinded="Eth-Execution-Payload-Blinded",g.ExecutionPayloadValue="Eth-Execution-Payload-Value",g.Finalized="Eth-Consensus-Finalized",g.DependentRoot="Eth-Consensus-Dependent-Root",g.ExecutionOptimistic="Eth-Execution-Optimistic",g.ExecutionPayloadSource="Eth-Execution-Payload-Source"})(aA||(aA={}));const qu={toJson:g=>Ve.toJson(g),fromJson:g=>Ve.fromJson(g),toHeadersObject:g=>({[aA.ExecutionOptimistic]:g.executionOptimistic.toString(),[Bg.ExposeHeaders]:aA.ExecutionOptimistic}),fromHeaders:g=>({executionOptimistic:pB(g.getOrDefault(aA.ExecutionOptimistic,"false"))})},CI={toJson:g=>FB.toJson(g),fromJson:g=>FB.fromJson(g),toHeadersObject:g=>({[aA.Version]:g.version,[Bg.ExposeHeaders]:aA.Version}),fromHeaders:g=>({version:$A(g.getRequired(aA.Version))})},Ag={toJson:g=>bQ.toJson(g),fromJson:g=>bQ.fromJson(g),toHeadersObject:g=>({[aA.ExecutionOptimistic]:g.executionOptimistic.toString(),[aA.Finalized]:g.finalized.toString(),[Bg.ExposeHeaders]:[aA.ExecutionOptimistic,aA.Finalized].toString()}),fromHeaders:g=>({executionOptimistic:pB(g.getOrDefault(aA.ExecutionOptimistic,"false")),finalized:pB(g.getOrDefault(aA.Finalized,"false"))})},dB={toJson:g=>Vs.toJson(g),fromJson:g=>Vs.fromJson(g),toHeadersObject:g=>({[aA.ExecutionOptimistic]:g.executionOptimistic.toString(),[aA.Finalized]:g.finalized.toString(),[aA.Version]:g.version,[Bg.ExposeHeaders]:[aA.ExecutionOptimistic,aA.Finalized,aA.Version].toString()}),fromHeaders:g=>({executionOptimistic:pB(g.getOrDefault(aA.ExecutionOptimistic,"false")),finalized:pB(g.getOrDefault(aA.Finalized,"false")),version:$A(g.getRequired(aA.Version))})},$s={toJson:g=>Xs.toJson(g),fromJson:g=>Xs.fromJson(g),toHeadersObject:g=>({[aA.ExecutionOptimistic]:g.executionOptimistic.toString(),[aA.DependentRoot]:g.dependentRoot,[Bg.ExposeHeaders]:[aA.ExecutionOptimistic,aA.DependentRoot].toString()}),fromHeaders:g=>({executionOptimistic:pB(g.getOrDefault(aA.ExecutionOptimistic,"false")),dependentRoot:g.getRequired(aA.DependentRoot)})},A0=new Y({root:QB,canonical:Ig,header:Wi}),Ku=new uA(A0,1e3),g0=new Y({root:QB});var I0;(function(g){g.none="none",g.gossip="gossip",g.consensus="consensus",g.consensusAndEquivocation="consensus_and_equivocation"})(I0||(I0={}));const te={writeReq:({blockId:g})=>({params:{block_id:g.toString()}}),parseReq:({params:g})=>({blockId:g.block_id}),schema:{params:{block_id:W.StringRequired}}};function Yu(g){return{getBlockV2:{url:"/eth/v2/beacon/blocks/{block_id}",method:"GET",req:te,resp:{data:Mg(A=>zg[A].SignedBeaconBlock),meta:dB}},getBlindedBlock:{url:"/eth/v1/beacon/blinded_blocks/{block_id}",method:"GET",req:te,resp:{data:Mg(A=>oC(A)?zg[A].SignedBlindedBeaconBlock:zg[A].SignedBeaconBlock),meta:dB}},getBlockAttestations:{url:"/eth/v1/beacon/blocks/{block_id}/attestations",method:"GET",req:te,resp:{data:sg.fields.attestations,meta:Ag}},getBlockAttestationsV2:{url:"/eth/v2/beacon/blocks/{block_id}/attestations",method:"GET",req:te,resp:{data:Mg(A=>zg[A].BeaconBlockBody.fields.attestations),meta:dB}},getBlockHeader:{url:"/eth/v1/beacon/headers/{block_id}",method:"GET",req:te,resp:{data:A0,meta:Ag}},getBlockHeaders:{url:"/eth/v1/beacon/headers",method:"GET",req:{writeReq:({slot:A,parentRoot:I})=>({query:{slot:A,parent_root:I}}),parseReq:({query:A})=>({slot:A.slot,parentRoot:A.parent_root}),schema:{query:{slot:W.Uint,parent_root:W.String}}},resp:{data:Ku,meta:Ag}},getBlockRoot:{url:"/eth/v1/beacon/blocks/{block_id}/root",method:"GET",req:te,resp:{data:g0,meta:Ag}},publishBlock:{url:"/eth/v1/beacon/blocks",method:"POST",req:{writeReqJson:({signedBlockOrContents:A})=>{const I=st(A)?A.signedBlock.message.slot:A.message.slot,B=g.getForkName(I);return{body:Lg(B)?HA(B).SignedBlockContents.toJson(A):HA(B).SignedBeaconBlock.toJson(A),headers:{[aA.Version]:g.getForkName(I)}}},parseReqJson:({body:A,headers:I})=>{let B;const C=Fg(I,aA.Version,!1);return C!==void 0?B=$A(C):B=g.getForkName(A.signed_block!==void 0?A.signed_block.message.slot:A.message.slot),{signedBlockOrContents:Lg(B)?HA(B).SignedBlockContents.fromJson(A):zg[B].SignedBeaconBlock.fromJson(A)}},writeReqSsz:({signedBlockOrContents:A})=>{const I=st(A)?A.signedBlock.message.slot:A.message.slot,B=g.getForkName(I);return{body:Lg(B)?HA(B).SignedBlockContents.serialize(A):HA(B).SignedBeaconBlock.serialize(A),headers:{[aA.Version]:g.getForkName(I)}}},parseReqSsz:({body:A,headers:I})=>{const B=$A(Fg(I,aA.Version));return{signedBlockOrContents:Lg(B)?HA(B).SignedBlockContents.deserialize(A):zg[B].SignedBeaconBlock.deserialize(A)}},schema:{body:W.Object,headers:{[aA.Version]:W.String}}},resp:MA,init:{requestWireFormat:fA.ssz}},publishBlockV2:{url:"/eth/v2/beacon/blocks",method:"POST",req:{writeReqJson:({signedBlockOrContents:A,broadcastValidation:I})=>{const B=st(A)?A.signedBlock.message.slot:A.message.slot,C=g.getForkName(B);return{body:Lg(C)?HA(C).SignedBlockContents.toJson(A):HA(C).SignedBeaconBlock.toJson(A),headers:{[aA.Version]:C},query:{broadcast_validation:I}}},parseReqJson:({body:A,headers:I,query:B})=>{const C=$A(Fg(I,aA.Version));return{signedBlockOrContents:Lg(C)?HA(C).SignedBlockContents.fromJson(A):zg[C].SignedBeaconBlock.fromJson(A),broadcastValidation:B.broadcast_validation}},writeReqSsz:({signedBlockOrContents:A,broadcastValidation:I})=>{const B=st(A)?A.signedBlock.message.slot:A.message.slot,C=g.getForkName(B);return{body:Lg(C)?HA(C).SignedBlockContents.serialize(A):HA(C).SignedBeaconBlock.serialize(A),headers:{[aA.Version]:C},query:{broadcast_validation:I}}},parseReqSsz:({body:A,headers:I,query:B})=>{const C=$A(Fg(I,aA.Version));return{signedBlockOrContents:Lg(C)?HA(C).SignedBlockContents.deserialize(A):zg[C].SignedBeaconBlock.deserialize(A),broadcastValidation:B.broadcast_validation}},schema:{body:W.Object,query:{broadcast_validation:W.String},headers:{[aA.Version]:W.String}}},resp:MA,init:{requestWireFormat:fA.ssz}},publishBlindedBlock:{url:"/eth/v1/beacon/blinded_blocks",method:"POST",req:{writeReqJson:({signedBlindedBlock:A})=>{const I=g.getForkName(A.message.slot);return{body:Wg(I).SignedBlindedBeaconBlock.toJson(A),headers:{[aA.Version]:I}}},parseReqJson:({body:A,headers:I})=>{let B;const C=Fg(I,aA.Version,!1);return C!==void 0?B=$A(C):B=g.getForkName(A.message.slot),{signedBlindedBlock:Wg(B).SignedBlindedBeaconBlock.fromJson(A)}},writeReqSsz:({signedBlindedBlock:A})=>{const I=g.getForkName(A.message.slot);return{body:Wg(I).SignedBlindedBeaconBlock.serialize(A),headers:{[aA.Version]:I}}},parseReqSsz:({body:A,headers:I})=>{const B=$A(Fg(I,aA.Version));return{signedBlindedBlock:Wg(B).SignedBlindedBeaconBlock.deserialize(A)}},schema:{body:W.Object,headers:{[aA.Version]:W.String}}},resp:MA,init:{requestWireFormat:fA.ssz}},publishBlindedBlockV2:{url:"/eth/v2/beacon/blinded_blocks",method:"POST",req:{writeReqJson:({signedBlindedBlock:A,broadcastValidation:I})=>{const B=g.getForkName(A.message.slot);return{body:Wg(B).SignedBlindedBeaconBlock.toJson(A),headers:{[aA.Version]:B},query:{broadcast_validation:I}}},parseReqJson:({body:A,headers:I,query:B})=>{const C=$A(Fg(I,aA.Version));return{signedBlindedBlock:Wg(C).SignedBlindedBeaconBlock.fromJson(A),broadcastValidation:B.broadcast_validation}},writeReqSsz:({signedBlindedBlock:A,broadcastValidation:I})=>{const B=g.getForkName(A.message.slot);return{body:Wg(B).SignedBlindedBeaconBlock.serialize(A),headers:{[aA.Version]:B},query:{broadcast_validation:I}}},parseReqSsz:({body:A,headers:I,query:B})=>{const C=$A(Fg(I,aA.Version));return{signedBlindedBlock:Wg(C).SignedBlindedBeaconBlock.deserialize(A),broadcastValidation:B.broadcast_validation}},schema:{body:W.Object,query:{broadcast_validation:W.String},headers:{[aA.Version]:W.String}}},resp:MA,init:{requestWireFormat:fA.ssz}},getBlobSidecars:{url:"/eth/v1/beacon/blob_sidecars/{block_id}",method:"GET",req:{writeReq:({blockId:A,indices:I})=>({params:{block_id:A.toString()},query:{indices:I}}),parseReq:({params:A,query:I})=>({blockId:A.block_id,indices:I.indices}),schema:{params:{block_id:W.StringRequired},query:{indices:W.UintArray}}},resp:{data:ss,meta:dB}}}}const OI=yA(MI),ht=yA(UQ),B0=yA(MI),bu=yA(Be),e0=yA(Zg),Tu=yA(vI),vu=yA(qI),_u=yA(KI),Xe=yA($C),St=yA(qa);function Ou(g){return{getPoolAttestations:{url:"/eth/v1/beacon/pool/attestations",method:"GET",req:{writeReq:({slot:A,committeeIndex:I})=>({query:{slot:A,committee_index:I}}),parseReq:({query:A})=>({slot:A.slot,committeeIndex:A.committee_index}),schema:{query:{slot:W.Uint,committee_index:W.Uint}}},resp:{data:B0,meta:JA}},getPoolAttestationsV2:{url:"/eth/v2/beacon/pool/attestations",method:"GET",req:{writeReq:({slot:A,committeeIndex:I})=>({query:{slot:A,committee_index:I}}),parseReq:({query:A})=>({slot:A.slot,committeeIndex:A.committee_index}),schema:{query:{slot:W.Uint,committee_index:W.Uint}}},resp:{data:Mg(A=>ZA(A)?bu:B0),meta:CI}},getPoolAttesterSlashings:{url:"/eth/v1/beacon/pool/attester_slashings",method:"GET",req:RA,resp:{data:e0,meta:JA}},getPoolAttesterSlashingsV2:{url:"/eth/v2/beacon/pool/attester_slashings",method:"GET",req:RA,resp:{data:Mg(A=>ZA(A)?Tu:e0),meta:CI}},getPoolProposerSlashings:{url:"/eth/v1/beacon/pool/proposer_slashings",method:"GET",req:RA,resp:{data:vu,meta:JA}},getPoolVoluntaryExits:{url:"/eth/v1/beacon/pool/voluntary_exits",method:"GET",req:RA,resp:{data:_u,meta:JA}},getPoolBLSToExecutionChanges:{url:"/eth/v1/beacon/pool/bls_to_execution_changes",method:"GET",req:RA,resp:{data:Xe,meta:JA}},submitPoolAttestations:{url:"/eth/v1/beacon/pool/attestations",method:"POST",req:{writeReqJson:({signedAttestations:A})=>({body:OI.toJson(A)}),parseReqJson:({body:A})=>({signedAttestations:OI.fromJson(A)}),writeReqSsz:({signedAttestations:A})=>({body:OI.serialize(A)}),parseReqSsz:({body:A})=>({signedAttestations:OI.deserialize(A)}),schema:{body:W.ObjectArray}},resp:MA},submitPoolAttestationsV2:{url:"/eth/v2/beacon/pool/attestations",method:"POST",req:{writeReqJson:({signedAttestations:A})=>{const I=g.getForkName(A[0]?.data.slot??0);return{body:ZA(I)?ht.toJson(A):OI.toJson(A),headers:{[aA.Version]:I}}},parseReqJson:({body:A,headers:I})=>{const B=$A(Fg(I,aA.Version));return{signedAttestations:ZA(B)?ht.fromJson(A):OI.fromJson(A)}},writeReqSsz:({signedAttestations:A})=>{const I=g.getForkName(A[0]?.data.slot??0);return{body:ZA(I)?ht.serialize(A):OI.serialize(A),headers:{[aA.Version]:I}}},parseReqSsz:({body:A,headers:I})=>{const B=$A(Fg(I,aA.Version));return{signedAttestations:ZA(B)?ht.deserialize(A):OI.deserialize(A)}},schema:{body:W.ObjectArray,headers:{[aA.Version]:W.String}}},resp:MA},submitPoolAttesterSlashings:{url:"/eth/v1/beacon/pool/attester_slashings",method:"POST",req:{writeReqJson:({attesterSlashing:A})=>({body:Zg.toJson(A)}),parseReqJson:({body:A})=>({attesterSlashing:Zg.fromJson(A)}),writeReqSsz:({attesterSlashing:A})=>({body:Zg.serialize(A)}),parseReqSsz:({body:A})=>({attesterSlashing:Zg.deserialize(A)}),schema:{body:W.Object}},resp:MA},submitPoolAttesterSlashingsV2:{url:"/eth/v2/beacon/pool/attester_slashings",method:"POST",req:{writeReqJson:({attesterSlashing:A})=>{const I=g.getForkName(Number(A.attestation1.data.slot));return{body:ZA(I)?vI.toJson(A):Zg.toJson(A),headers:{[aA.Version]:I}}},parseReqJson:({body:A,headers:I})=>{const B=$A(Fg(I,aA.Version));return{attesterSlashing:ZA(B)?vI.fromJson(A):Zg.fromJson(A)}},writeReqSsz:({attesterSlashing:A})=>{const I=g.getForkName(Number(A.attestation1.data.slot));return{body:ZA(I)?vI.serialize(A):Zg.serialize(A),headers:{[aA.Version]:I}}},parseReqSsz:({body:A,headers:I})=>{const B=$A(Fg(I,aA.Version));return{attesterSlashing:ZA(B)?vI.deserialize(A):Zg.deserialize(A)}},schema:{body:W.Object,headers:{[aA.Version]:W.String}}},resp:MA},submitPoolProposerSlashings:{url:"/eth/v1/beacon/pool/proposer_slashings",method:"POST",req:{writeReqJson:({proposerSlashing:A})=>({body:qI.toJson(A)}),parseReqJson:({body:A})=>({proposerSlashing:qI.fromJson(A)}),writeReqSsz:({proposerSlashing:A})=>({body:qI.serialize(A)}),parseReqSsz:({body:A})=>({proposerSlashing:qI.deserialize(A)}),schema:{body:W.Object}},resp:MA},submitPoolVoluntaryExit:{url:"/eth/v1/beacon/pool/voluntary_exits",method:"POST",req:{writeReqJson:({signedVoluntaryExit:A})=>({body:KI.toJson(A)}),parseReqJson:({body:A})=>({signedVoluntaryExit:KI.fromJson(A)}),writeReqSsz:({signedVoluntaryExit:A})=>({body:KI.serialize(A)}),parseReqSsz:({body:A})=>({signedVoluntaryExit:KI.deserialize(A)}),schema:{body:W.Object}},resp:MA},submitPoolBLSToExecutionChange:{url:"/eth/v1/beacon/pool/bls_to_execution_changes",method:"POST",req:{writeReqJson:({blsToExecutionChanges:A})=>({body:Xe.toJson(A)}),parseReqJson:({body:A})=>({blsToExecutionChanges:Xe.fromJson(A)}),writeReqSsz:({blsToExecutionChanges:A})=>({body:Xe.serialize(A)}),parseReqSsz:({body:A})=>({blsToExecutionChanges:Xe.deserialize(A)}),schema:{body:W.ObjectArray}},resp:MA},submitPoolSyncCommitteeSignatures:{url:"/eth/v1/beacon/pool/sync_committees",method:"POST",req:{writeReqJson:({signatures:A})=>({body:St.toJson(A)}),parseReqJson:({body:A})=>({signatures:St.fromJson(A)}),writeReqSsz:({signatures:A})=>({body:St.serialize(A)}),parseReqSsz:({body:A})=>({signatures:St.deserialize(A)}),schema:{body:W.ObjectArray}},resp:MA}}}const Zu=new Y({proposerIndex:PA,total:FA,attestations:FA,syncAggregate:FA,proposerSlashings:FA,attesterSlashings:FA},{jsonCase:"eth2"}),C0=new Y({head:FA,target:FA,source:FA,inclusionDelay:FA,inactivity:FA},{jsonCase:"eth2"}),xu=new Y({...C0.fields,effectiveBalance:FA},{jsonCase:"eth2"}),ju=new Y({...C0.fields,validatorIndex:PA},{jsonCase:"eth2"}),Pu=new Y({idealRewards:yA(xu),totalRewards:yA(ju)},{jsonCase:"eth2"}),zu=yA(new Y({validatorIndex:PA,reward:FA},{jsonCase:"eth2"}));function Wu(g){return{getBlockRewards:{url:"/eth/v1/beacon/rewards/blocks/{block_id}",method:"GET",req:{writeReq:({blockId:A})=>({params:{block_id:A.toString()}}),parseReq:({params:A})=>({blockId:A.block_id}),schema:{params:{block_id:W.StringRequired}}},resp:{data:Zu,meta:Ag}},getAttestationsRewards:{url:"/eth/v1/beacon/rewards/attestations/{epoch}",method:"POST",req:Ce({writeReqJson:({epoch:A,validatorIds:I})=>({params:{epoch:A},body:ze(I)||[]}),parseReqJson:({params:A,body:I})=>({epoch:A.epoch,validatorIds:We(I)}),schema:{params:{epoch:W.UintRequired},body:W.UintOrStringArray}}),resp:{data:Pu,meta:Ag}},getSyncCommitteeRewards:{url:"/eth/v1/beacon/rewards/sync_committee/{block_id}",method:"POST",req:Ce({writeReqJson:({blockId:A,validatorIds:I})=>({params:{block_id:A.toString()},body:ze(I)||[]}),parseReqJson:({params:A,body:I})=>({blockId:A.block_id,validatorIds:We(I)}),schema:{params:{block_id:W.StringRequired},body:W.UintOrStringArray}}),resp:{data:zu,meta:Ag}}}}const Vu=new Y({randao:QB}),Xu=new Y({previousJustified:LA,currentJustified:LA,finalized:LA},{jsonCase:"eth2"}),t0=new Y({index:PA,balance:FA,status:new jB,validator:Fa}),$u=new Y({index:PA,pubkey:TB,activationEpoch:FA},{jsonCase:"eth2"}),Af=new Y({index:iB,slot:vA,validators:yA(PA,he)}),gf=new Y({index:PA,balance:FA}),If=new Y({validators:yA(PA),validatorAggregates:yA(yA(PA))},{jsonCase:"eth2"}),i0=yA(t0),Bf=yA($u),ef=yA(Af),Q0=yA(gf),$e={writeReq:({stateId:g})=>({params:{state_id:g.toString()}}),parseReq:({params:g})=>({stateId:g.state_id}),schema:{params:{state_id:W.StringRequired}}};function Cf(g){return{getEpochCommittees:{url:"/eth/v1/beacon/states/{state_id}/committees",method:"GET",req:{writeReq:({stateId:A,epoch:I,index:B,slot:C})=>({params:{state_id:A.toString()},query:{epoch:I,index:B,slot:C}}),parseReq:({params:A,query:I})=>({stateId:A.state_id,epoch:I.epoch,index:I.index,slot:I.slot}),schema:{params:{state_id:W.StringRequired},query:{slot:W.Uint,epoch:W.Uint,index:W.Uint}}},resp:{data:ef,meta:Ag}},getEpochSyncCommittees:{url:"/eth/v1/beacon/states/{state_id}/sync_committees",method:"GET",req:{writeReq:({stateId:A,epoch:I})=>({params:{state_id:A.toString()},query:{epoch:I}}),parseReq:({params:A,query:I})=>({stateId:A.state_id,epoch:I.epoch}),schema:{params:{state_id:W.StringRequired},query:{epoch:W.Uint}}},resp:{data:If,meta:Ag}},getStateFinalityCheckpoints:{url:"/eth/v1/beacon/states/{state_id}/finality_checkpoints",method:"GET",req:$e,resp:{data:Xu,meta:Ag}},getStateFork:{url:"/eth/v1/beacon/states/{state_id}/fork",method:"GET",req:$e,resp:{data:lI,meta:Ag}},getStateRoot:{url:"/eth/v1/beacon/states/{state_id}/root",method:"GET",req:$e,resp:{data:g0,meta:Ag}},getStateRandao:{url:"/eth/v1/beacon/states/{state_id}/randao",method:"GET",req:{writeReq:({stateId:A,epoch:I})=>({params:{state_id:A.toString()},query:{epoch:I}}),parseReq:({params:A,query:I})=>({stateId:A.state_id,epoch:I.epoch}),schema:{params:{state_id:W.StringRequired},query:{epoch:W.Uint}}},resp:{data:Vu,meta:Ag}},getStateValidator:{url:"/eth/v1/beacon/states/{state_id}/validators/{validator_id}",method:"GET",req:{writeReq:({stateId:A,validatorId:I})=>({params:{state_id:A.toString(),validator_id:I}}),parseReq:({params:A})=>({stateId:A.state_id,validatorId:A.validator_id}),schema:{params:{state_id:W.StringRequired,validator_id:W.StringRequired}}},resp:{onlySupport:fA.json,data:t0,meta:Ag}},getStateValidators:{url:"/eth/v1/beacon/states/{state_id}/validators",method:"GET",req:{writeReq:({stateId:A,validatorIds:I,statuses:B})=>({params:{state_id:A.toString()},query:{id:I,status:B}}),parseReq:({params:A,query:I})=>({stateId:A.state_id,validatorIds:I.id,statuses:I.status}),schema:{params:{state_id:W.StringRequired},query:{id:W.UintOrStringArray,status:W.StringArray}}},resp:{onlySupport:fA.json,data:i0,meta:Ag}},postStateValidators:{url:"/eth/v1/beacon/states/{state_id}/validators",method:"POST",req:Ce({writeReqJson:({stateId:A,validatorIds:I,statuses:B})=>({params:{state_id:A.toString()},body:{ids:ze(I),statuses:B}}),parseReqJson:({params:A,body:I={}})=>({stateId:A.state_id,validatorIds:We(I.ids),statuses:I.statuses}),schema:{params:{state_id:W.StringRequired},body:W.Object}}),resp:{onlySupport:fA.json,data:i0,meta:Ag}},postStateValidatorIdentities:{url:"/eth/v1/beacon/states/{state_id}/validator_identities",method:"POST",req:Ce({writeReqJson:({stateId:A,validatorIds:I})=>({params:{state_id:A.toString()},body:ze(I)||[]}),parseReqJson:({params:A,body:I=[]})=>({stateId:A.state_id,validatorIds:We(I)}),schema:{params:{state_id:W.StringRequired},body:W.UintOrStringArray}}),resp:{data:Bf,meta:Ag}},getStateValidatorBalances:{url:"/eth/v1/beacon/states/{state_id}/validator_balances",method:"GET",req:{writeReq:({stateId:A,validatorIds:I})=>({params:{state_id:A.toString()},query:{id:I}}),parseReq:({params:A,query:I})=>({stateId:A.state_id,validatorIds:I.id}),schema:{params:{state_id:W.StringRequired},query:{id:W.UintOrStringArray}}},resp:{data:Q0,meta:Ag}},postStateValidatorBalances:{url:"/eth/v1/beacon/states/{state_id}/validator_balances",method:"POST",req:Ce({writeReqJson:({stateId:A,validatorIds:I})=>({params:{state_id:A.toString()},body:ze(I)||[]}),parseReqJson:({params:A,body:I=[]})=>({stateId:A.state_id,validatorIds:We(I)}),schema:{params:{state_id:W.StringRequired},body:W.UintOrStringArray}}),resp:{data:Q0,meta:Ag}},getPendingDeposits:{url:"/eth/v1/beacon/states/{state_id}/pending_deposits",method:"GET",req:$e,resp:{data:HQ,meta:dB}},getPendingPartialWithdrawals:{url:"/eth/v1/beacon/states/{state_id}/pending_partial_withdrawals",method:"GET",req:$e,resp:{data:JQ,meta:dB}}}}function tf(g){return{getGenesis:{url:"/eth/v1/beacon/genesis",method:"GET",req:RA,resp:{data:La,meta:JA}},...Yu(g),...Ou(g),...Cf(),...Wu()}}const Qf=new Y({chainId:FA,address:Pi},{jsonCase:"eth2"}),Ef=yA(lI);function of(g){return{getDepositContract:{url:"/eth/v1/config/deposit_contract",method:"GET",req:RA,resp:{data:Qf,meta:JA}},getForkSchedule:{url:"/eth/v1/config/fork_schedule",method:"GET",req:RA,resp:{data:Ef,meta:JA}},getSpec:{url:"/eth/v1/config/spec",method:"GET",req:RA,resp:Uu({data:{toJson:A=>A,fromJson:A=>{if(typeof A!="object"||A===null)throw Error("JSON must be of type object");return A}},meta:JA})}}}const Eg=new jB,nf=new Y({executionPayloadBlockHash:Eg,executionPayloadNumber:FA,executionStatus:Eg,slot:vA,blockRoot:Eg,parentRoot:Eg,stateRoot:Eg,targetRoot:Eg,timeliness:Ig,justifiedEpoch:_g,justifiedRoot:Eg,finalizedEpoch:_g,finalizedRoot:Eg,unrealizedJustifiedEpoch:_g,unrealizedJustifiedRoot:Eg,unrealizedFinalizedEpoch:_g,unrealizedFinalizedRoot:Eg,parent:Eg,weight:vi,bestChild:Eg,bestDescendant:Eg},{jsonCase:"eth2"}),rf=new Y({slot:vA,root:Eg,executionOptimistic:Ig},{jsonCase:"eth2"}),af=new Y({slot:vA,blockRoot:Eg,parentRoot:Eg,justifiedEpoch:_g,finalizedEpoch:_g,weight:FA,validity:new jB,executionBlockHash:Eg},{jsonCase:"eth2"}),sf=new Y({justifiedCheckpoint:LA,finalizedCheckpoint:LA,forkChoiceNodes:yA(af)},{jsonCase:"eth2"}),cf=yA(nf),lf=yA(rf);function hf(g){return{getDebugChainHeadsV2:{url:"/eth/v2/debug/beacon/heads",method:"GET",req:RA,resp:{data:lf,meta:JA,onlySupport:fA.json}},getDebugForkChoice:{url:"/eth/v1/debug/fork_choice",method:"GET",req:RA,resp:{data:sf,meta:JA,onlySupport:fA.json,transform:{toResponse:A=>({...A}),fromResponse:A=>({data:A})}}},getProtoArrayNodes:{url:"/eth/v0/debug/forkchoice",method:"GET",req:RA,resp:{data:cf,meta:JA,onlySupport:fA.json}},getStateV2:{url:"/eth/v2/debug/beacon/states/{state_id}",method:"GET",req:{writeReq:({stateId:A})=>({params:{state_id:A.toString()}}),parseReq:({params:A})=>({stateId:A.state_id}),schema:{params:{state_id:W.StringRequired}}},resp:{data:Mg(A=>zg[A].BeaconState),meta:dB},init:{timeoutMs:3e5}}}}const yg=new jB,Sf=new Y({blockRoot:yg,index:xi,slot:vA,kzgCommitment:yg,versionedHash:yg},{typeName:"BlobSidecarSSE",jsonCase:"eth2"});var lA;(function(g){g.head="head",g.block="block",g.blockGossip="block_gossip",g.attestation="attestation",g.singleAttestation="single_attestation",g.voluntaryExit="voluntary_exit",g.proposerSlashing="proposer_slashing",g.attesterSlashing="attester_slashing",g.blsToExecutionChange="bls_to_execution_change",g.finalizedCheckpoint="finalized_checkpoint",g.chainReorg="chain_reorg",g.contributionAndProof="contribution_and_proof",g.lightClientOptimisticUpdate="light_client_optimistic_update",g.lightClientFinalityUpdate="light_client_finality_update",g.payloadAttributes="payload_attributes",g.blobSidecar="blob_sidecar"})(lA||(lA={})),lA.head+"",lA.head,lA.block+"",lA.block,lA.blockGossip+"",lA.blockGossip,lA.attestation+"",lA.attestation,lA.singleAttestation+"",lA.singleAttestation,lA.voluntaryExit+"",lA.voluntaryExit,lA.proposerSlashing+"",lA.proposerSlashing,lA.attesterSlashing+"",lA.attesterSlashing,lA.blsToExecutionChange+"",lA.blsToExecutionChange,lA.finalizedCheckpoint+"",lA.finalizedCheckpoint,lA.chainReorg+"",lA.chainReorg,lA.contributionAndProof+"",lA.contributionAndProof,lA.lightClientOptimisticUpdate+"",lA.lightClientOptimisticUpdate,lA.lightClientFinalityUpdate+"",lA.lightClientFinalityUpdate,lA.payloadAttributes+"",lA.payloadAttributes,lA.blobSidecar+"",lA.blobSidecar;function wf(g){return{eventstream:{url:"/eth/v1/events",method:"GET",req:{writeReq:({topics:A})=>({query:{topics:A}}),parseReq:({query:A})=>({topics:A.topics}),schema:{query:{topics:W.StringArrayRequired}}},resp:MA}}}function Df(g){const A=I=>({toJson:({data:B,version:C})=>({data:I(C).toJson(B),version:C}),fromJson:B=>{const{version:C}=FB.fromJson(B);return{data:I(C).fromJson(B.data),version:C}}});return{[lA.head]:new Y({slot:vA,block:yg,state:yg,epochTransition:Ig,previousDutyDependentRoot:yg,currentDutyDependentRoot:yg,executionOptimistic:Ig},{jsonCase:"eth2"}),[lA.block]:new Y({slot:vA,block:yg,executionOptimistic:Ig},{jsonCase:"eth2"}),[lA.blockGossip]:new Y({slot:vA,block:yg},{jsonCase:"eth2"}),[lA.attestation]:{toJson:I=>{const B=g.getForkName(I.data.slot);return HA(B).Attestation.toJson(I)},fromJson:I=>{const B=g.getForkName(I.data.slot);return HA(B).Attestation.fromJson(I)}},[lA.singleAttestation]:UQ,[lA.voluntaryExit]:KI,[lA.proposerSlashing]:qI,[lA.attesterSlashing]:{toJson:I=>{const B=g.getForkName(Number(I.attestation1.data.slot));return HA(B).AttesterSlashing.toJson(I)},fromJson:I=>{const B=g.getForkName(Number(I.attestation1.data.slot));return HA(B).AttesterSlashing.fromJson(I)}},[lA.blsToExecutionChange]:$C,[lA.finalizedCheckpoint]:new Y({block:yg,state:yg,epoch:_g,executionOptimistic:Ig},{jsonCase:"eth2"}),[lA.chainReorg]:new Y({slot:vA,depth:FA,oldHeadBlock:yg,newHeadBlock:yg,oldHeadState:yg,newHeadState:yg,epoch:_g,executionOptimistic:Ig},{jsonCase:"eth2"}),[lA.contributionAndProof]:iQ,[lA.payloadAttributes]:A(I=>Wg(I).SSEPayloadAttributes),[lA.blobSidecar]:Sf,[lA.lightClientOptimisticUpdate]:A(I=>SI(I).LightClientOptimisticUpdate),[lA.lightClientFinalityUpdate]:A(I=>SI(I).LightClientFinalityUpdate)}}function yf(g){const A=Df(g);return{toJson:I=>A[I.type].toJson(I.message),fromJson:(I,B)=>A[I].fromJson(B)}}const E0={...pI,PRESET_BASE:fg.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:nA("0x0b98057ea310f4d31f2a452b414647007d1645d9"),MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS:16384,MIN_GENESIS_TIME:1638968400,MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:4096,GENESIS_FORK_VERSION:nA("0x00000064"),GENESIS_DELAY:6e3,ALTAIR_FORK_VERSION:nA("0x01000064"),ALTAIR_FORK_EPOCH:512,BELLATRIX_FORK_VERSION:nA("0x02000064"),BELLATRIX_FORK_EPOCH:385536,CAPELLA_FORK_VERSION:nA("0x03000064"),CAPELLA_FORK_EPOCH:648704,DENEB_FORK_VERSION:nA("0x04000064"),DENEB_FORK_EPOCH:889856,ELECTRA_FORK_VERSION:nA("0x05000064"),ELECTRA_FORK_EPOCH:1/0,FULU_FORK_VERSION:nA("0x06000064"),FULU_FORK_EPOCH:1/0,MAX_PER_EPOCH_ACTIVATION_EXIT_CHURN_LIMIT:64e9,BLOB_SIDECAR_SUBNET_COUNT_ELECTRA:2,MAX_BLOBS_PER_BLOCK_ELECTRA:2,MAX_REQUEST_BLOB_SIDECARS_ELECTRA:256},uf={...E0,CONFIG_NAME:"chiado",TERMINAL_TOTAL_DIFFICULTY:BigInt("231707791542740786049188744689299064356246512"),DEPOSIT_CHAIN_ID:10200,DEPOSIT_NETWORK_ID:10200,DEPOSIT_CONTRACT_ADDRESS:nA("0xb97036A26259B7147018913bD58a774cf91acf25"),MIN_GENESIS_TIME:1665396e3,MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:6e3,GENESIS_FORK_VERSION:nA("0x0000006f"),GENESIS_DELAY:300,ALTAIR_FORK_VERSION:nA("0x0100006f"),ALTAIR_FORK_EPOCH:90,BELLATRIX_FORK_VERSION:nA("0x0200006f"),BELLATRIX_FORK_EPOCH:180,CAPELLA_FORK_VERSION:nA("0x0300006f"),CAPELLA_FORK_EPOCH:244224,DENEB_FORK_VERSION:nA("0x0400006f"),DENEB_FORK_EPOCH:516608,ELECTRA_FORK_VERSION:nA("0x0500006f"),ELECTRA_FORK_EPOCH:948224,FULU_FORK_VERSION:nA("0x0600006f"),FULU_FORK_EPOCH:1/0},AC={...pI,CONFIG_NAME:"ephemery",MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:64,MIN_GENESIS_TIME:1638471600,GENESIS_FORK_VERSION:nA("0x1000101b"),GENESIS_DELAY:300,ALTAIR_FORK_VERSION:nA("0x2000101b"),ALTAIR_FORK_EPOCH:0,BELLATRIX_FORK_VERSION:nA("0x3000101b"),BELLATRIX_FORK_EPOCH:0,TERMINAL_TOTAL_DIFFICULTY:BigInt("0"),CAPELLA_FORK_VERSION:nA("0x4000101b"),CAPELLA_FORK_EPOCH:0,DENEB_FORK_VERSION:nA("0x5000101b"),DENEB_FORK_EPOCH:0,ELECTRA_FORK_VERSION:nA("0x6000101b"),ELECTRA_FORK_EPOCH:10,FULU_FORK_VERSION:nA("0x7000101b"),FULU_FORK_EPOCH:1/0,DEPOSIT_CHAIN_ID:39438e3,DEPOSIT_NETWORK_ID:39438e3,DEPOSIT_CONTRACT_ADDRESS:nA("0x4242424242424242424242424242424242424242"),ETH1_FOLLOW_DISTANCE:12},o0=6048e5,TQ=Math.floor(Date.now()-AC.MIN_GENESIS_TIME)/o0,vQ={...AC,MIN_GENESIS_TIME:o0*TQ+AC.MIN_GENESIS_TIME,DEPOSIT_CHAIN_ID:AC.DEPOSIT_CHAIN_ID+TQ,DEPOSIT_NETWORK_ID:AC.DEPOSIT_NETWORK_ID+TQ},ff={...pI,CONFIG_NAME:"holesky",MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:16384,MIN_GENESIS_TIME:1695902100,GENESIS_DELAY:300,GENESIS_FORK_VERSION:nA("0x01017000"),ALTAIR_FORK_VERSION:nA("0x02017000"),ALTAIR_FORK_EPOCH:0,BELLATRIX_FORK_VERSION:nA("0x03017000"),BELLATRIX_FORK_EPOCH:0,TERMINAL_TOTAL_DIFFICULTY:BigInt("0"),CAPELLA_FORK_VERSION:nA("0x04017000"),CAPELLA_FORK_EPOCH:256,DENEB_FORK_VERSION:nA("0x05017000"),DENEB_FORK_EPOCH:29696,ELECTRA_FORK_VERSION:nA("0x06017000"),ELECTRA_FORK_EPOCH:115968,FULU_FORK_VERSION:nA("0x07017000"),FULU_FORK_EPOCH:1/0,EJECTION_BALANCE:28e9,DEPOSIT_CHAIN_ID:17e3,DEPOSIT_NETWORK_ID:17e3,DEPOSIT_CONTRACT_ADDRESS:nA("0x4242424242424242424242424242424242424242")},pf={...pI,CONFIG_NAME:"hoodi",MIN_GENESIS_TIME:1742212800,GENESIS_DELAY:600,GENESIS_FORK_VERSION:nA("0x10000910"),ALTAIR_FORK_VERSION:nA("0x20000910"),ALTAIR_FORK_EPOCH:0,BELLATRIX_FORK_VERSION:nA("0x30000910"),BELLATRIX_FORK_EPOCH:0,TERMINAL_TOTAL_DIFFICULTY:BigInt("0"),CAPELLA_FORK_VERSION:nA("0x40000910"),CAPELLA_FORK_EPOCH:0,DENEB_FORK_VERSION:nA("0x50000910"),DENEB_FORK_EPOCH:0,ELECTRA_FORK_VERSION:nA("0x60000910"),ELECTRA_FORK_EPOCH:2048,FULU_FORK_VERSION:nA("0x70000910"),FULU_FORK_EPOCH:1/0,SECONDS_PER_ETH1_BLOCK:12,DEPOSIT_CHAIN_ID:560048,DEPOSIT_NETWORK_ID:560048},Ff={...pI,CONFIG_NAME:"mainnet",DEPOSIT_CONTRACT_ADDRESS:nA("0x00000000219ab540356cBB839Cbe05303d7705Fa"),DEPOSIT_CHAIN_ID:1,DEPOSIT_NETWORK_ID:1,MIN_GENESIS_TIME:1606824e3,GENESIS_DELAY:604800},df={...pI,CONFIG_NAME:"sepolia",MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:1300,MIN_GENESIS_TIME:1655647200,GENESIS_FORK_VERSION:nA("0x90000069"),GENESIS_DELAY:86400,ALTAIR_FORK_VERSION:nA("0x90000070"),ALTAIR_FORK_EPOCH:50,BELLATRIX_FORK_VERSION:nA("0x90000071"),BELLATRIX_FORK_EPOCH:100,TERMINAL_TOTAL_DIFFICULTY:BigInt("17000000000000000"),CAPELLA_FORK_VERSION:nA("0x90000072"),CAPELLA_FORK_EPOCH:56832,DENEB_FORK_VERSION:nA("0x90000073"),DENEB_FORK_EPOCH:132608,ELECTRA_FORK_VERSION:nA("0x90000074"),ELECTRA_FORK_EPOCH:222464,FULU_FORK_VERSION:nA("0x90000075"),FULU_FORK_EPOCH:1/0,DEPOSIT_CHAIN_ID:11155111,DEPOSIT_NETWORK_ID:11155111,DEPOSIT_CONTRACT_ADDRESS:nA("0x7f02C3E3c98b133055B8B348B2Ac625669Ed295D")},ie={mainnet:Ff,gnosis:E0,sepolia:df,holesky:ff,hoodi:pf,chiado:uf,ephemery:vQ},Gf={mainnet:{genesisTime:1606824023,genesisValidatorsRoot:"0x4b363db94e286120d76eb905340fdd4e54bfe9f06bf33ff6cf5ad27f511bfe95"},gnosis:{genesisTime:1638993340,genesisValidatorsRoot:"0xf5dcb5564e829aab27264b9becd5dfaa017085611224cb3036f573368dbb9d47"},sepolia:{genesisTime:1655733600,genesisValidatorsRoot:"0xd8ea171f3c94aea21ebc42a1ed61052acf3f9209c00e4efbaaddac09ed9b8078"},holesky:{genesisTime:1695902400,genesisValidatorsRoot:"0x9143aa7c615a7f7115e2b6aac319c03529df8242ae705fba9df39b79c59fa8b1"},hoodi:{genesisTime:1742213400,genesisValidatorsRoot:"0x212f13fc4df078b6cb7db228f1c8307566dcecf900867401a92023d7ba99cb5f"},chiado:{genesisTime:1665396300,genesisValidatorsRoot:"0x9d642dac73058fbf39c0ae41ab1e34e4d889043cb199851ded7095bc99eb4c1e"},ephemery:{genesisTime:vQ.MIN_GENESIS_TIME+vQ.GENESIS_DELAY,genesisValidatorsRoot:"0x0000000000000000000000000000000000000000000000000000000000000000"}},Nf=new uA(QB,1e4);function kf(g){let A;const I=()=>{if(A===void 0){const B=Gf[g.CONFIG_NAME]?.genesisValidatorsRoot;A=zs(g,B?nA(B):K2)}return A};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:W.UintRequired,count:W.UintRequired}}},resp:{data:{toJson:(B,C)=>{const e=[];for(const[t,i]of B.entries())e.push(SI(C.versions[t]).LightClientUpdate.toJson(i));return e},fromJson:(B,C)=>{const e=B,t=[];for(let i=0;i<e.length;i++){const E=C.versions[i];t.push(SI(E).LightClientUpdate.fromJson(e[i]))}return t},serialize:(B,C)=>{const e=[];for(const[t,i]of B.entries()){const E=C.versions[t],c=I().forkName2ForkDigest(E),n=SI(E).LightClientUpdate.serialize(i),s=FA.serialize(4+n.length);e.push(s,c,n)}return mA.concat(e)},deserialize:B=>{let C=0;const e=[];for(;C<B.length;){const t=FA.deserialize(B.subarray(C,C+8)),i=ji.deserialize(B.subarray(C+8,C+12)),E=I().forkDigest2ForkName(i);e.push(SI(E).LightClientUpdate.deserialize(B.subarray(C+12,C+8+t))),C+=8+t}return e}},meta:{toJson:B=>B,fromJson:B=>B,toHeadersObject:B=>({[aA.Version]:B.versions.join(",")}),fromHeaders:B=>{const C=B.getOrDefault(aA.Version,"");return{versions:C===""?[]:C.split(",")}}},transform:{toResponse:(B,C)=>{const e=B,t=[];for(let i=0;i<e.length;i++)t.push({data:e[i],version:C.versions[i]});return t},fromResponse:B=>{if(!Array.isArray(B))throw Error("JSON is not an array");const C=[],e={versions:[]};for(const{data:t,version:i}of B)C.push(t),e.versions.push($A(i));return{data:C,meta:e}}}}},getLightClientOptimisticUpdate:{url:"/eth/v1/beacon/light_client/optimistic_update",method:"GET",req:RA,resp:{data:Mg(B=>SI(B).LightClientOptimisticUpdate),meta:CI}},getLightClientFinalityUpdate:{url:"/eth/v1/beacon/light_client/finality_update",method:"GET",req:RA,resp:{data:Mg(B=>SI(B).LightClientFinalityUpdate),meta:CI}},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:W.StringRequired}}},resp:{data:Mg(B=>SI(B).LightClientBootstrap),meta:CI}},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:W.UintRequired,count:W.UintRequired}}},resp:{data:Nf,meta:JA}}}}const Rf=new Y({historicalSummaries:wQ,proof:yA(Ki)},{jsonCase:"eth2"});function Uf(g){return{writeHeapdump:{url:"/eth/v1/lodestar/write_heapdump",method:"POST",req:{writeReq:({thread:A,dirpath:I})=>({query:{thread:A,dirpath:I}}),parseReq:({query:A})=>({thread:A.thread,dirpath:A.dirpath}),schema:{query:{thread:W.String,dirpath:W.String}}},resp:eg},writeProfile:{url:"/eth/v1/lodestar/write_profile",method:"POST",req:{writeReq:({thread:A,duration:I,dirpath:B})=>({query:{thread:A,duration:I,dirpath:B}}),parseReq:({query:A})=>({thread:A.thread,duration:A.duration,dirpath:A.dirpath}),schema:{query:{thread:W.String,duration:W.Uint,dirpath:W.String}}},resp:eg},getLatestWeakSubjectivityCheckpointEpoch:{url:"/eth/v1/lodestar/ws_epoch",method:"GET",req:RA,resp:eg},getSyncChainsDebugState:{url:"/eth/v1/lodestar/sync_chains_debug_state",method:"GET",req:RA,resp:eg},getGossipQueueItems:{url:"/eth/v1/lodestar/gossip_queue_items/:gossipType",method:"GET",req:{writeReq:({gossipType:A})=>({params:{gossipType:A}}),parseReq:({params:A})=>({gossipType:A.gossipType}),schema:{params:{gossipType:W.StringRequired}}},resp:eg},getRegenQueueItems:{url:"/eth/v1/lodestar/regen_queue_items",method:"GET",req:RA,resp:eg},getBlockProcessorQueueItems:{url:"/eth/v1/lodestar/block_processor_queue_items",method:"GET",req:RA,resp:eg},getStateCacheItems:{url:"/eth/v1/lodestar/state_cache_items",method:"GET",req:RA,resp:eg},getGossipPeerScoreStats:{url:"/eth/v1/lodestar/gossip_peer_score_stats",method:"GET",req:RA,resp:eg},getLodestarPeerScoreStats:{url:"/eth/v1/lodestar/lodestar_peer_score_stats",method:"GET",req:RA,resp:eg},runGC:{url:"/eth/v1/lodestar/gc",method:"POST",req:RA,resp:MA},dropStateCache:{url:"/eth/v1/lodestar/drop_state_cache",method:"POST",req:RA,resp:MA},connectPeer:{url:"/eth/v1/lodestar/connect_peer",method:"POST",req:{writeReq:({peerId:A,multiaddrs:I})=>({query:{peerId:A,multiaddr:I}}),parseReq:({query:A})=>({peerId:A.peerId,multiaddrs:A.multiaddr}),schema:{query:{peerId:W.StringRequired,multiaddr:W.StringArray}}},resp:MA},disconnectPeer:{url:"/eth/v1/lodestar/disconnect_peer",method:"POST",req:{writeReq:({peerId:A})=>({query:{peerId:A}}),parseReq:({query:A})=>({peerId:A.peerId}),schema:{query:{peerId:W.StringRequired}}},resp:MA},getPeers:{url:"/eth/v1/lodestar/peers",method:"GET",req:{writeReq:({state:A,direction:I})=>({query:{state:A,direction:I}}),parseReq:({query:A})=>({state:A.state,direction:A.direction}),schema:{query:{state:W.StringArray,direction:W.StringArray}}},resp:eg},getBlacklistedBlocks:{url:"/eth/v1/lodestar/blacklisted_blocks",method:"GET",req:RA,resp:eg},getHistoricalSummaries:{url:"/eth/v1/lodestar/historical_summaries/{state_id}",method:"GET",req:{writeReq:({stateId:A})=>({params:{state_id:A.toString()}}),parseReq:({params:A})=>({stateId:A.state_id}),schema:{params:{state_id:W.StringRequired}}},resp:{data:Rf,meta:JA}},discv5GetKadValues:{url:"/eth/v1/debug/discv5_kad_values",method:"GET",req:RA,resp:eg},dumpDbBucketKeys:{url:"/eth/v1/debug/dump_db_bucket_keys/:bucket",method:"GET",req:{writeReq:({bucket:A})=>({params:{bucket:A}}),parseReq:({params:A})=>({bucket:A.bucket}),schema:{params:{bucket:W.String}}},resp:eg},dumpDbStateIndex:{url:"/eth/v1/debug/dump_db_state_index",method:"GET",req:RA,resp:eg}}}const Lf=new Y({peerId:TI,enr:TI,p2pAddresses:yA(TI),discoveryAddresses:yA(TI),metadata:Ma},{jsonCase:"eth2"}),mf=new Y({disconnected:FA,connecting:FA,connected:FA,disconnecting:FA},{jsonCase:"eth2"}),Hf=new Y({headSlot:vA,syncDistance:vA,isSyncing:Ig,isOptimistic:Ig,elOffline:Ig},{jsonCase:"eth2"});var n0;(function(g){g[g.READY=200]="READY",g[g.SYNCING=206]="SYNCING",g[g.NOT_INITIALIZED_OR_ISSUES=503]="NOT_INITIALIZED_OR_ISSUES"})(n0||(n0={}));function Jf(g){return{getNetworkIdentity:{url:"/eth/v1/node/identity",method:"GET",req:RA,resp:{onlySupport:fA.json,data:Lf,meta:JA}},getPeers:{url:"/eth/v1/node/peers",method:"GET",req:{writeReq:({state:A,direction:I})=>({query:{state:A,direction:I}}),parseReq:({query:A})=>({state:A.state,direction:A.direction}),schema:{query:{state:W.StringArray,direction:W.StringArray}}},resp:{...eg,meta:{toJson:A=>A,fromJson:A=>({count:A.count}),toHeadersObject:()=>({}),fromHeaders:()=>({})},transform:{toResponse:(A,I)=>({data:A,meta:I}),fromResponse:A=>A}}},getPeer:{url:"/eth/v1/node/peers/{peer_id}",method:"GET",req:{writeReq:({peerId:A})=>({params:{peer_id:A}}),parseReq:({params:A})=>({peerId:A.peer_id}),schema:{params:{peer_id:W.StringRequired}}},resp:eg},getPeerCount:{url:"/eth/v1/node/peer_count",method:"GET",req:RA,resp:{data:mf,meta:JA}},getNodeVersion:{url:"/eth/v1/node/version",method:"GET",req:RA,resp:eg},getSyncingStatus:{url:"/eth/v1/node/syncing",method:"GET",req:RA,resp:{data:Hf,meta:JA}},getHealth:{url:"/eth/v1/node/health",method:"GET",req:{writeReq:({syncingStatus:A})=>({query:{syncing_status:A}}),parseReq:({query:A})=>({syncingStatus:A.syncing_status}),schema:{query:{syncing_status:W.Uint}}},resp:MA}}}const ZI=new Y({leaves:yA(QB,1e4),descriptor:new qe(2048)});function Mf(g){return{getStateProof:{url:"/eth/v0/beacon/proof/state/{state_id}",method:"GET",req:{writeReq:({stateId:A,descriptor:I})=>({params:{state_id:A},query:{format:bg(I)}}),parseReq:({params:A,query:I})=>({stateId:A.state_id,descriptor:nA(I.format)}),schema:{params:{state_id:W.StringRequired},query:{format:W.StringRequired}}},resp:{data:{toJson:A=>ZI.toJson(A),fromJson:A=>({...ZI.fromJson(A),type:TA.compactMulti}),serialize:A=>ZI.serialize(A),deserialize:A=>({...ZI.deserialize(A),type:TA.compactMulti})},meta:CI}},getBlockProof:{url:"/eth/v0/beacon/proof/block/{block_id}",method:"GET",req:{writeReq:({blockId:A,descriptor:I})=>({params:{block_id:A},query:{format:bg(I)}}),parseReq:({params:A,query:I})=>({blockId:A.block_id,descriptor:nA(I.format)}),schema:{params:{block_id:W.StringRequired},query:{format:W.StringRequired}}},resp:{data:{toJson:A=>ZI.toJson(A),fromJson:A=>({...ZI.fromJson(A),type:TA.compactMulti}),serialize:A=>ZI.serialize(A),deserialize:A=>({...ZI.deserialize(A),type:TA.compactMulti})},meta:CI}}}}var r0;(function(g){g.Default="default",g.BuilderAlways="builderalways",g.ExecutionAlways="executionalways",g.MaxProfit="maxprofit",g.BuilderOnly="builderonly",g.ExecutionOnly="executiononly"})(r0||(r0={}));const a0=new Y({...FB.fields,executionPayloadBlinded:Ig,executionPayloadValue:bB,consensusBlockValue:bB},{jsonCase:"eth2"}),qf=new Y({pubkey:TB,validatorIndex:PA,committeeIndex:iB,committeeLength:FA,committeesAtSlot:FA,validatorCommitteeIndex:FA,slot:vA},{jsonCase:"eth2"}),Kf=new Y({slot:vA,validatorIndex:PA,pubkey:TB},{jsonCase:"eth2"}),Yf=new Y({pubkey:TB,validatorIndex:PA,validatorSyncCommitteeIndices:yA(iB)},{jsonCase:"eth2"}),bf=new Y({validatorIndex:PA,committeeIndex:iB,committeesAtSlot:vA,slot:vA,isAggregator:Ig},{jsonCase:"eth2"}),Tf=new Y({validatorIndex:PA,syncCommitteeIndices:yA(iB),untilEpoch:_g},{jsonCase:"eth2"}),vf=new Y({validatorIndex:PA,feeRecipient:TI},{jsonCase:"eth2"}),_f=new Y({validatorIndex:PA,slot:vA,selectionProof:TC},{jsonCase:"eth2"}),Of=new Y({validatorIndex:PA,slot:vA,subcommitteeIndex:Zi,selectionProof:TC},{jsonCase:"eth2"}),Zf=new Y({index:PA,isLive:Ig},{jsonCase:"eth2"}),qg=yA(PA),xf=yA(qf),jf=yA(Kf),Pf=yA(Yf),xI=yA(Ua),wt=yA(Fs),Dt=yA(iQ),yt=yA(bf),ut=yA(Tf),s0=yA(vf),gC=yA(_f),IC=yA(Of),zf=yA(Zf),ft=yA(Wa);function Wf(g){return{getAttesterDuties:{url:"/eth/v1/validator/duties/attester/{epoch}",method:"POST",req:{writeReqJson:({epoch:A,indices:I})=>({params:{epoch:A},body:qg.toJson(I)}),parseReqJson:({params:A,body:I})=>({epoch:A.epoch,indices:qg.fromJson(I)}),writeReqSsz:({epoch:A,indices:I})=>({params:{epoch:A},body:qg.serialize(I)}),parseReqSsz:({params:A,body:I})=>({epoch:A.epoch,indices:qg.deserialize(I)}),schema:{params:{epoch:W.UintRequired},body:W.StringArray}},resp:{data:xf,meta:$s}},getProposerDuties:{url:"/eth/v1/validator/duties/proposer/{epoch}",method:"GET",req:{writeReq:({epoch:A})=>({params:{epoch:A}}),parseReq:({params:A})=>({epoch:A.epoch}),schema:{params:{epoch:W.UintRequired}}},resp:{data:jf,meta:$s}},getSyncCommitteeDuties:{url:"/eth/v1/validator/duties/sync/{epoch}",method:"POST",req:{writeReqJson:({epoch:A,indices:I})=>({params:{epoch:A},body:qg.toJson(I)}),parseReqJson:({params:A,body:I})=>({epoch:A.epoch,indices:qg.fromJson(I)}),writeReqSsz:({epoch:A,indices:I})=>({params:{epoch:A},body:qg.serialize(I)}),parseReqSsz:({params:A,body:I})=>({epoch:A.epoch,indices:qg.deserialize(I)}),schema:{params:{epoch:W.UintRequired},body:W.StringArray}},resp:{data:Pf,meta:qu}},produceBlockV2:{url:"/eth/v2/validator/blocks/{slot}",method:"GET",req:{writeReq:({slot:A,randaoReveal:I,graffiti:B,feeRecipient:C,builderSelection:e,strictFeeRecipientCheck:t})=>({params:{slot:A},query:{randao_reveal:bg(I),graffiti:KQ(B),fee_recipient:C,builder_selection:e,strict_fee_recipient_check:t}}),parseReq:({params:A,query:I})=>({slot:A.slot,randaoReveal:nA(I.randao_reveal),graffiti:YQ(I.graffiti),feeRecipient:I.fee_recipient,builderSelection:I.builder_selection,strictFeeRecipientCheck:I.strict_fee_recipient_check}),schema:{params:{slot:W.UintRequired},query:{randao_reveal:W.StringRequired,graffiti:W.String,fee_recipient:W.String,builder_selection:W.String,strict_fee_recipient_check:W.Boolean}}},resp:{data:Mg(A=>Lg(A)?HA(A).BlockContents:zg[A].BeaconBlock),meta:CI}},produceBlockV3:{url:"/eth/v3/validator/blocks/{slot}",method:"GET",req:{writeReq:({slot:A,randaoReveal:I,graffiti:B,skipRandaoVerification:C,feeRecipient:e,builderSelection:t,builderBoostFactor:i,strictFeeRecipientCheck:E,blindedLocal:c})=>({params:{slot:A},query:{randao_reveal:bg(I),graffiti:KQ(B),skip_randao_verification:Xf(C),fee_recipient:e,builder_selection:t,builder_boost_factor:i?.toString(),strict_fee_recipient_check:E,blinded_local:c}}),parseReq:({params:A,query:I})=>({slot:A.slot,randaoReveal:nA(I.randao_reveal),graffiti:YQ(I.graffiti),skipRandaoVerification:$f(I.skip_randao_verification),feeRecipient:I.fee_recipient,builderSelection:I.builder_selection,builderBoostFactor:Vf(I.builder_boost_factor),strictFeeRecipientCheck:I.strict_fee_recipient_check,blindedLocal:I.blinded_local}),schema:{params:{slot:W.UintRequired},query:{randao_reveal:W.StringRequired,graffiti:W.String,skip_randao_verification:W.String,fee_recipient:W.String,builder_selection:W.String,builder_boost_factor:W.String,strict_fee_recipient_check:W.Boolean,blinded_local:W.Boolean}}},resp:{data:Ru(({version:A,executionPayloadBlinded:I})=>I?Wg(A).BlindedBeaconBlock:Lg(A)?HA(A).BlockContents:zg[A].BeaconBlock),meta:{toJson:A=>({...a0.toJson(A),execution_payload_source:A.executionPayloadSource}),fromJson:A=>{const{executionPayloadBlinded:I,...B}=a0.fromJson(A),C=A.execution_payload_source??(I===!0?ee.builder:ee.engine);return{...B,executionPayloadBlinded:I,executionPayloadSource:C}},toHeadersObject:A=>({[aA.Version]:A.version,[aA.ExecutionPayloadBlinded]:A.executionPayloadBlinded.toString(),[aA.ExecutionPayloadSource]:A.executionPayloadSource.toString(),[aA.ExecutionPayloadValue]:A.executionPayloadValue.toString(),[aA.ConsensusBlockValue]:A.consensusBlockValue.toString()}),fromHeaders:A=>{const I=pB(A.getRequired(aA.ExecutionPayloadBlinded)),B=A.get(aA.ExecutionPayloadSource)??(I===!0?ee.builder:ee.engine);return{version:$A(A.getRequired(aA.Version)),executionPayloadBlinded:I,executionPayloadSource:B,executionPayloadValue:BigInt(A.getRequired(aA.ExecutionPayloadValue)),consensusBlockValue:BigInt(A.getRequired(aA.ConsensusBlockValue))}}}}},produceBlindedBlock:{url:"/eth/v1/validator/blinded_blocks/{slot}",method:"GET",req:{writeReq:({slot:A,randaoReveal:I,graffiti:B})=>({params:{slot:A},query:{randao_reveal:bg(I),graffiti:KQ(B)}}),parseReq:({params:A,query:I})=>({slot:A.slot,randaoReveal:nA(I.randao_reveal),graffiti:YQ(I.graffiti)}),schema:{params:{slot:W.UintRequired},query:{randao_reveal:W.StringRequired,graffiti:W.String}}},resp:{data:Mg(A=>Wg(A).BlindedBeaconBlock),meta:CI}},produceAttestationData:{url:"/eth/v1/validator/attestation_data",method:"GET",req:{writeReq:({committeeIndex:A,slot:I})=>({query:{slot:I,committee_index:A}}),parseReq:({query:A})=>({committeeIndex:A.committee_index,slot:A.slot}),schema:{query:{slot:W.UintRequired,committee_index:W.UintRequired}}},resp:{data:JI,meta:JA}},produceSyncCommitteeContribution:{url:"/eth/v1/validator/sync_committee_contribution",method:"GET",req:{writeReq:({slot:A,subcommitteeIndex:I,beaconBlockRoot:B})=>({query:{slot:A,subcommittee_index:I,beacon_block_root:uC(B)}}),parseReq:({query:A})=>({slot:A.slot,subcommitteeIndex:A.subcommittee_index,beaconBlockRoot:nA(A.beacon_block_root)}),schema:{query:{slot:W.UintRequired,subcommittee_index:W.UintRequired,beacon_block_root:W.StringRequired}}},resp:{data:tQ,meta:JA}},getAggregatedAttestation:{url:"/eth/v1/validator/aggregate_attestation",method:"GET",req:{writeReq:({attestationDataRoot:A,slot:I})=>({query:{attestation_data_root:uC(A),slot:I}}),parseReq:({query:A})=>({attestationDataRoot:nA(A.attestation_data_root),slot:A.slot}),schema:{query:{attestation_data_root:W.StringRequired,slot:W.UintRequired}}},resp:{data:MI,meta:JA}},getAggregatedAttestationV2:{url:"/eth/v2/validator/aggregate_attestation",method:"GET",req:{writeReq:({attestationDataRoot:A,slot:I,committeeIndex:B})=>({query:{attestation_data_root:bg(A),slot:I,committee_index:B}}),parseReq:({query:A})=>({attestationDataRoot:nA(A.attestation_data_root),slot:A.slot,committeeIndex:A.committee_index}),schema:{query:{attestation_data_root:W.StringRequired,slot:W.UintRequired,committee_index:W.UintRequired}}},resp:{data:Mg(A=>ZA(A)?Be:MI),meta:CI}},publishAggregateAndProofs:{url:"/eth/v1/validator/aggregate_and_proofs",method:"POST",req:{writeReqJson:({signedAggregateAndProofs:A})=>({body:xI.toJson(A)}),parseReqJson:({body:A})=>({signedAggregateAndProofs:xI.fromJson(A)}),writeReqSsz:({signedAggregateAndProofs:A})=>({body:xI.serialize(A)}),parseReqSsz:({body:A})=>({signedAggregateAndProofs:xI.deserialize(A)}),schema:{body:W.ObjectArray}},resp:MA},publishAggregateAndProofsV2:{url:"/eth/v2/validator/aggregate_and_proofs",method:"POST",req:{writeReqJson:({signedAggregateAndProofs:A})=>{const I=g.getForkName(A[0]?.message.aggregate.data.slot??0);return{body:ZA(I)?wt.toJson(A):xI.toJson(A),headers:{[aA.Version]:I}}},parseReqJson:({body:A,headers:I})=>{const B=$A(Fg(I,aA.Version));return{signedAggregateAndProofs:ZA(B)?wt.fromJson(A):xI.fromJson(A)}},writeReqSsz:({signedAggregateAndProofs:A})=>{const I=g.getForkName(A[0]?.message.aggregate.data.slot??0);return{body:ZA(I)?wt.serialize(A):xI.serialize(A),headers:{[aA.Version]:I}}},parseReqSsz:({body:A,headers:I})=>{const B=$A(Fg(I,aA.Version));return{signedAggregateAndProofs:ZA(B)?wt.deserialize(A):xI.deserialize(A)}},schema:{body:W.ObjectArray,headers:{[aA.Version]:W.String}}},resp:MA},publishContributionAndProofs:{url:"/eth/v1/validator/contribution_and_proofs",method:"POST",req:{writeReqJson:({contributionAndProofs:A})=>({body:Dt.toJson(A)}),parseReqJson:({body:A})=>({contributionAndProofs:Dt.fromJson(A)}),writeReqSsz:({contributionAndProofs:A})=>({body:Dt.serialize(A)}),parseReqSsz:({body:A})=>({contributionAndProofs:Dt.deserialize(A)}),schema:{body:W.ObjectArray}},resp:MA},prepareBeaconCommitteeSubnet:{url:"/eth/v1/validator/beacon_committee_subscriptions",method:"POST",req:{writeReqJson:({subscriptions:A})=>({body:yt.toJson(A)}),parseReqJson:({body:A})=>({subscriptions:yt.fromJson(A)}),writeReqSsz:({subscriptions:A})=>({body:yt.serialize(A)}),parseReqSsz:({body:A})=>({subscriptions:yt.deserialize(A)}),schema:{body:W.ObjectArray}},resp:MA},prepareSyncCommitteeSubnets:{url:"/eth/v1/validator/sync_committee_subscriptions",method:"POST",req:{writeReqJson:({subscriptions:A})=>({body:ut.toJson(A)}),parseReqJson:({body:A})=>({subscriptions:ut.fromJson(A)}),writeReqSsz:({subscriptions:A})=>({body:ut.serialize(A)}),parseReqSsz:({body:A})=>({subscriptions:ut.deserialize(A)}),schema:{body:W.ObjectArray}},resp:MA},prepareBeaconProposer:{url:"/eth/v1/validator/prepare_beacon_proposer",method:"POST",req:Ce({writeReqJson:({proposers:A})=>({body:s0.toJson(A)}),parseReqJson:({body:A})=>({proposers:s0.fromJson(A)}),schema:{body:W.ObjectArray}}),resp:MA},submitBeaconCommitteeSelections:{url:"/eth/v1/validator/beacon_committee_selections",method:"POST",req:{writeReqJson:({selections:A})=>({body:gC.toJson(A)}),parseReqJson:({body:A})=>({selections:gC.fromJson(A)}),writeReqSsz:({selections:A})=>({body:gC.serialize(A)}),parseReqSsz:({body:A})=>({selections:gC.deserialize(A)}),schema:{body:W.ObjectArray}},resp:{data:gC,meta:JA}},submitSyncCommitteeSelections:{url:"/eth/v1/validator/sync_committee_selections",method:"POST",req:{writeReqJson:({selections:A})=>({body:IC.toJson(A)}),parseReqJson:({body:A})=>({selections:IC.fromJson(A)}),writeReqSsz:({selections:A})=>({body:IC.serialize(A)}),parseReqSsz:({body:A})=>({selections:IC.deserialize(A)}),schema:{body:W.ObjectArray}},resp:{data:IC,meta:JA}},getLiveness:{url:"/eth/v1/validator/liveness/{epoch}",method:"POST",req:{writeReqJson:({epoch:A,indices:I})=>({params:{epoch:A},body:qg.toJson(I)}),parseReqJson:({params:A,body:I})=>({epoch:A.epoch,indices:qg.fromJson(I)}),writeReqSsz:({epoch:A,indices:I})=>({params:{epoch:A},body:qg.serialize(I)}),parseReqSsz:({params:A,body:I})=>({epoch:A.epoch,indices:qg.deserialize(I)}),schema:{params:{epoch:W.UintRequired},body:W.StringArray}},resp:{data:zf,meta:JA}},registerValidator:{url:"/eth/v1/validator/register_validator",method:"POST",req:{writeReqJson:({registrations:A})=>({body:ft.toJson(A)}),parseReqJson:({body:A})=>({registrations:ft.fromJson(A)}),writeReqSsz:({registrations:A})=>({body:ft.serialize(A)}),parseReqSsz:({body:A})=>({registrations:ft.deserialize(A)}),schema:{body:W.ObjectArray}},resp:MA}}}function Vf(g){return g!==void 0?BigInt(g):void 0}function Xf(g){return g===!0?"":void 0}function $f(g){return g!==void 0&&g===""}async function Ap(g,A){try{return await fetch(g,A)}catch(I){throw new c0(g,I)}}function gp(g){return g instanceof c0}class c0 extends Error{constructor(A,I){Ip(I)?(super(`Request to ${A.toString()} failed, reason: ${I.cause.message}`),this.type="failed",this.code=I.cause.code||"ERR_FETCH_FAILED",this.cause=I.cause):Bp(I)?(super(I.message),this.type="input",this.code=I.cause.code||"ERR_INVALID_INPUT",this.cause=I.cause):ep(I)?(super(`Request to ${A.toString()} was aborted`),this.type="aborted",this.code="ERR_ABORTED"):Cp(I)?(super(`Request to ${A.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 l0(g){return g instanceof TypeError&&g.cause instanceof Error}function Ip(g){return l0(g)&&g.message==="fetch failed"}function Bp(g){return l0(g)&&g.cause.input!==void 0}function ep(g){return g instanceof DOMException&&g.name==="AbortError"}function Cp(g){return g instanceof DOMException&&g.name==="TimeoutError"}var pt;(function(g){g[g.CONTINUE=100]="CONTINUE",g[g.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",g[g.PROCESSING=102]="PROCESSING",g[g.OK=200]="OK",g[g.CREATED=201]="CREATED",g[g.ACCEPTED=202]="ACCEPTED",g[g.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",g[g.NO_CONTENT=204]="NO_CONTENT",g[g.RESET_CONTENT=205]="RESET_CONTENT",g[g.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",g[g.MULTI_STATUS=207]="MULTI_STATUS",g[g.ALREADY_REPORTED=208]="ALREADY_REPORTED",g[g.IM_USED=226]="IM_USED",g[g.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",g[g.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",g[g.FOUND=302]="FOUND",g[g.SEE_OTHER=303]="SEE_OTHER",g[g.NOT_MODIFIED=304]="NOT_MODIFIED",g[g.USE_PROXY=305]="USE_PROXY",g[g.SWITCH_PROXY=306]="SWITCH_PROXY",g[g.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",g[g.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",g[g.BAD_REQUEST=400]="BAD_REQUEST",g[g.UNAUTHORIZED=401]="UNAUTHORIZED",g[g.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",g[g.FORBIDDEN=403]="FORBIDDEN",g[g.NOT_FOUND=404]="NOT_FOUND",g[g.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",g[g.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",g[g.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",g[g.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",g[g.CONFLICT=409]="CONFLICT",g[g.GONE=410]="GONE",g[g.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",g[g.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",g[g.PAYLOAD_TOO_LARGE=413]="PAYLOAD_TOO_LARGE",g[g.URI_TOO_LONG=414]="URI_TOO_LONG",g[g.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",g[g.RANGE_NOT_SATISFIABLE=416]="RANGE_NOT_SATISFIABLE",g[g.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",g[g.I_AM_A_TEAPOT=418]="I_AM_A_TEAPOT",g[g.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST",g[g.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",g[g.LOCKED=423]="LOCKED",g[g.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",g[g.UPGRADE_REQUIRED=426]="UPGRADE_REQUIRED",g[g.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",g[g.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",g[g.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",g[g.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",g[g.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",g[g.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",g[g.BAD_GATEWAY=502]="BAD_GATEWAY",g[g.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",g[g.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",g[g.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",g[g.VARIANT_ALSO_NEGOTIATES=506]="VARIANT_ALSO_NEGOTIATES",g[g.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",g[g.LOOP_DETECTED=508]="LOOP_DETECTED",g[g.NOT_EXTENDED=510]="NOT_EXTENDED",g[g.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED"})(pt||(pt={}));var h0,S0;function w0(){return S0||(S0=1,h0=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var g={},A=Symbol("test"),I=Object(A);if(typeof A=="string"||Object.prototype.toString.call(A)!=="[object Symbol]"||Object.prototype.toString.call(I)!=="[object Symbol]")return!1;var B=42;g[A]=B;for(A in g)return!1;if(typeof Object.keys=="function"&&Object.keys(g).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(g).length!==0)return!1;var C=Object.getOwnPropertySymbols(g);if(C.length!==1||C[0]!==A||!Object.prototype.propertyIsEnumerable.call(g,A))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var e=Object.getOwnPropertyDescriptor(g,A);if(e.value!==B||e.enumerable!==!0)return!1}return!0}),h0}var _Q,D0;function tp(){if(D0)return _Q;D0=1;var g=typeof Symbol<"u"&&Symbol,A=w0();return _Q=function(){return typeof g!="function"||typeof Symbol!="function"||typeof g("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:A()},_Q}var OQ,y0;function ip(){if(y0)return OQ;y0=1;var g={foo:{}},A=Object;return OQ=function(){return{__proto__:g}.foo===g.foo&&!({__proto__:null}instanceof A)},OQ}var ZQ,u0;function Qp(){if(u0)return ZQ;u0=1;var g="Function.prototype.bind called on incompatible ",A=Object.prototype.toString,I=Math.max,B="[object Function]",C=function(i,E){for(var c=[],n=0;n<i.length;n+=1)c[n]=i[n];for(var s=0;s<E.length;s+=1)c[s+i.length]=E[s];return c},e=function(i,E){for(var c=[],n=E,s=0;n<i.length;n+=1,s+=1)c[s]=i[n];return c},t=function(i,E){for(var c="",n=0;n<i.length;n+=1)c+=i[n],n+1<i.length&&(c+=E);return c};return ZQ=function(i){var E=this;if(typeof E!="function"||A.apply(E)!==B)throw new TypeError(g+E);for(var c=e(arguments,1),n,s=function(){if(this instanceof n){var F=E.apply(this,C(c,arguments));return Object(F)===F?F:this}return E.apply(i,C(c,arguments))},S=I(0,E.length-c.length),w=[],y=0;y<S;y++)w[y]="$"+y;if(n=Function("binder","return function ("+t(w,",")+"){ return binder.apply(this,arguments); }")(s),E.prototype){var p=function(){};p.prototype=E.prototype,n.prototype=new p,p.prototype=null}return n},ZQ}var xQ,f0;function jQ(){if(f0)return xQ;f0=1;var g=Qp();return xQ=Function.prototype.bind||g,xQ}var PQ,p0;function Ep(){if(p0)return PQ;p0=1;var g=Function.prototype.call,A=Object.prototype.hasOwnProperty,I=jQ();return PQ=I.call(g,A),PQ}var zQ,F0;function GB(){if(F0)return zQ;F0=1;var g,A=SyntaxError,I=Function,B=TypeError,C=function(EA){try{return I('"use strict"; return ('+EA+").constructor;")()}catch{}},e=Object.getOwnPropertyDescriptor;if(e)try{e({},"")}catch{e=null}var t=function(){throw new B},i=e?function(){try{return arguments.callee,t}catch{try{return e(arguments,"callee").get}catch{return t}}}():t,E=tp()(),c=ip()(),n=Object.getPrototypeOf||(c?function(EA){return EA.__proto__}:null),s={},S=typeof Uint8Array>"u"||!n?g:n(Uint8Array),w={"%AggregateError%":typeof AggregateError>"u"?g:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?g:ArrayBuffer,"%ArrayIteratorPrototype%":E&&n?n([][Symbol.iterator]()):g,"%AsyncFromSyncIteratorPrototype%":g,"%AsyncFunction%":s,"%AsyncGenerator%":s,"%AsyncGeneratorFunction%":s,"%AsyncIteratorPrototype%":s,"%Atomics%":typeof Atomics>"u"?g:Atomics,"%BigInt%":typeof BigInt>"u"?g:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?g:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?g:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?g:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?g:Float32Array,"%Float64Array%":typeof Float64Array>"u"?g:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?g:FinalizationRegistry,"%Function%":I,"%GeneratorFunction%":s,"%Int8Array%":typeof Int8Array>"u"?g:Int8Array,"%Int16Array%":typeof Int16Array>"u"?g:Int16Array,"%Int32Array%":typeof Int32Array>"u"?g:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":E&&n?n(n([][Symbol.iterator]())):g,"%JSON%":typeof JSON=="object"?JSON:g,"%Map%":typeof Map>"u"?g:Map,"%MapIteratorPrototype%":typeof Map>"u"||!E||!n?g:n(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?g:Promise,"%Proxy%":typeof Proxy>"u"?g:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?g:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?g:Set,"%SetIteratorPrototype%":typeof Set>"u"||!E||!n?g:n(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?g:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&n?n(""[Symbol.iterator]()):g,"%Symbol%":E?Symbol:g,"%SyntaxError%":A,"%ThrowTypeError%":i,"%TypedArray%":S,"%TypeError%":B,"%Uint8Array%":typeof Uint8Array>"u"?g:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?g:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?g:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?g:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?g:WeakMap,"%WeakRef%":typeof WeakRef>"u"?g:WeakRef,"%WeakSet%":typeof WeakSet>"u"?g:WeakSet};if(n)try{null.error}catch(EA){var y=n(n(EA));w["%Error.prototype%"]=y}var p=function EA(BA){var oA;if(BA==="%AsyncFunction%")oA=C("async function () {}");else if(BA==="%GeneratorFunction%")oA=C("function* () {}");else if(BA==="%AsyncGeneratorFunction%")oA=C("async function* () {}");else if(BA==="%AsyncGenerator%"){var m=EA("%AsyncGeneratorFunction%");m&&(oA=m.prototype)}else if(BA==="%AsyncIteratorPrototype%"){var K=EA("%AsyncGenerator%");K&&n&&(oA=n(K.prototype))}return w[BA]=oA,oA},F={"%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"]},u=jQ(),D=Ep(),R=u.call(Function.call,Array.prototype.concat),N=u.call(Function.apply,Array.prototype.splice),q=u.call(Function.call,String.prototype.replace),U=u.call(Function.call,String.prototype.slice),_=u.call(Function.call,RegExp.prototype.exec),L=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,tA=function(EA){var BA=U(EA,0,1),oA=U(EA,-1);if(BA==="%"&&oA!=="%")throw new A("invalid intrinsic syntax, expected closing `%`");if(oA==="%"&&BA!=="%")throw new A("invalid intrinsic syntax, expected opening `%`");var m=[];return q(EA,L,function(K,gA,Z,V){m[m.length]=Z?q(V,P,"$1"):gA||K}),m},rA=function(EA,BA){var oA=EA,m;if(D(F,oA)&&(m=F[oA],oA="%"+m[0]+"%"),D(w,oA)){var K=w[oA];if(K===s&&(K=p(oA)),typeof K>"u"&&!BA)throw new B("intrinsic "+EA+" exists, but is not available. Please file an issue!");return{alias:m,name:oA,value:K}}throw new A("intrinsic "+EA+" does not exist!")};return zQ=function(EA,BA){if(typeof EA!="string"||EA.length===0)throw new B("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof BA!="boolean")throw new B('"allowMissing" argument must be a boolean');if(_(/^%?[^%]*%?$/,EA)===null)throw new A("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var oA=tA(EA),m=oA.length>0?oA[0]:"",K=rA("%"+m+"%",BA),gA=K.name,Z=K.value,V=!1,j=K.alias;j&&(m=j[0],N(oA,R([0,1],j)));for(var AA=1,H=!0;AA<oA.length;AA+=1){var b=oA[AA],T=U(b,0,1),z=U(b,-1);if((T==='"'||T==="'"||T==="`"||z==='"'||z==="'"||z==="`")&&T!==z)throw new A("property names with quotes must have matching quotes");if((b==="constructor"||!H)&&(V=!0),m+="."+b,gA="%"+m+"%",D(w,gA))Z=w[gA];else if(Z!=null){if(!(b in Z)){if(!BA)throw new B("base intrinsic for "+EA+" exists, but the property is not available.");return}if(e&&AA+1>=oA.length){var J=e(Z,b);H=!!J,H&&"get"in J&&!("originalValue"in J.get)?Z=J.get:Z=Z[b]}else H=D(Z,b),Z=Z[b];H&&!V&&(w[gA]=Z)}}return Z},zQ}var d0={exports:{}},WQ,G0;function N0(){if(G0)return WQ;G0=1;var g=GB(),A=g("%Object.defineProperty%",!0),I=function(){if(A)try{return A({},"a",{value:1}),!0}catch{return!1}return!1};return I.hasArrayLengthDefineBug=function(){if(!I())return null;try{return A([],"length",{value:1}).length!==1}catch{return!0}},WQ=I,WQ}var VQ,k0;function XQ(){if(k0)return VQ;k0=1;var g=GB(),A=g("%Object.getOwnPropertyDescriptor%",!0);if(A)try{A([],"length")}catch{A=null}return VQ=A,VQ}var $Q,R0;function op(){if(R0)return $Q;R0=1;var g=N0()(),A=GB(),I=g&&A("%Object.defineProperty%",!0);if(I)try{I({},"a",{value:1})}catch{I=!1}var B=A("%SyntaxError%"),C=A("%TypeError%"),e=XQ();return $Q=function(t,i,E){if(!t||typeof t!="object"&&typeof t!="function")throw new C("`obj` must be an object or a function`");if(typeof i!="string"&&typeof i!="symbol")throw new C("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new C("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new C("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new C("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new C("`loose`, if provided, must be a boolean");var c=arguments.length>3?arguments[3]:null,n=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,S=arguments.length>6?arguments[6]:!1,w=!!e&&e(t,i);if(I)I(t,i,{configurable:s===null&&w?w.configurable:!s,enumerable:c===null&&w?w.enumerable:!c,value:E,writable:n===null&&w?w.writable:!n});else if(S||!c&&!n&&!s)t[i]=E;else throw new B("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},$Q}var AE,U0;function np(){if(U0)return AE;U0=1;var g=GB(),A=op(),I=N0()(),B=XQ(),C=g("%TypeError%"),e=g("%Math.floor%");return AE=function(t,i){if(typeof t!="function")throw new C("`fn` is not a function");if(typeof i!="number"||i<0||i>4294967295||e(i)!==i)throw new C("`length` must be a positive 32-bit integer");var E=arguments.length>2&&!!arguments[2],c=!0,n=!0;if("length"in t&&B){var s=B(t,"length");s&&!s.configurable&&(c=!1),s&&!s.writable&&(n=!1)}return(c||n||!E)&&(I?A(t,"length",i,!0,!0):A(t,"length",i)),t},AE}var L0;function m0(){return L0||(L0=1,function(g){var A=jQ(),I=GB(),B=np(),C=I("%TypeError%"),e=I("%Function.prototype.apply%"),t=I("%Function.prototype.call%"),i=I("%Reflect.apply%",!0)||A.call(t,e),E=I("%Object.defineProperty%",!0),c=I("%Math.max%");if(E)try{E({},"a",{value:1})}catch{E=null}g.exports=function(s){if(typeof s!="function")throw new C("a function is required");var S=i(A,t,arguments);return B(S,1+c(0,s.length-(arguments.length-1)),!0)};var n=function(){return i(A,e,arguments)};E?E(g.exports,"apply",{value:n}):g.exports.apply=n}(d0)),d0.exports}var gE,H0;function IE(){if(H0)return gE;H0=1;var g=GB(),A=m0(),I=A(g("String.prototype.indexOf"));return gE=function(B,C){var e=g(B,!!C);return typeof e=="function"&&I(B,".prototype.")>-1?A(e):e},gE}const BE=Wn(dS);var eE,J0;function rp(){if(J0)return eE;J0=1;var g=typeof Map=="function"&&Map.prototype,A=Object.getOwnPropertyDescriptor&&g?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,I=g&&A&&typeof A.get=="function"?A.get:null,B=g&&Map.prototype.forEach,C=typeof Set=="function"&&Set.prototype,e=Object.getOwnPropertyDescriptor&&C?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,t=C&&e&&typeof e.get=="function"?e.get:null,i=C&&Set.prototype.forEach,E=typeof WeakMap=="function"&&WeakMap.prototype,c=E?WeakMap.prototype.has:null,n=typeof WeakSet=="function"&&WeakSet.prototype,s=n?WeakSet.prototype.has:null,S=typeof WeakRef=="function"&&WeakRef.prototype,w=S?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,p=Object.prototype.toString,F=Function.prototype.toString,u=String.prototype.match,D=String.prototype.slice,R=String.prototype.replace,N=String.prototype.toUpperCase,q=String.prototype.toLowerCase,U=RegExp.prototype.test,_=Array.prototype.concat,L=Array.prototype.join,P=Array.prototype.slice,tA=Math.floor,rA=typeof BigInt=="function"?BigInt.prototype.valueOf:null,EA=Object.getOwnPropertySymbols,BA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,oA=typeof Symbol=="function"&&typeof Symbol.iterator=="object",m=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===oA||!0)?Symbol.toStringTag:null,K=Object.prototype.propertyIsEnumerable,gA=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(h){return h.__proto__}:null);function Z(h,G){if(h===1/0||h===-1/0||h!==h||h&&h>-1e3&&h<1e3||U.call(/e/,G))return G;var v=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof h=="number"){var x=h<0?-tA(-h):tA(h);if(x!==h){var iA=String(x),QA=D.call(G,iA.length+1);return R.call(iA,v,"$&_")+"."+R.call(R.call(QA,/([0-9]{3})/g,"$&_"),/_$/,"")}}return R.call(G,v,"$&_")}var V=BE,j=V.custom,AA=d(j)?j:null;eE=function h(G,v,x,iA){var QA=v||{};if(eA(QA,"quoteStyle")&&QA.quoteStyle!=="single"&&QA.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(eA(QA,"maxStringLength")&&(typeof QA.maxStringLength=="number"?QA.maxStringLength<0&&QA.maxStringLength!==1/0:QA.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var dA=eA(QA,"customInspect")?QA.customInspect:!0;if(typeof dA!="boolean"&&dA!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(eA(QA,"indent")&&QA.indent!==null&&QA.indent!==" "&&!(parseInt(QA.indent,10)===QA.indent&&QA.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(eA(QA,"numericSeparator")&&typeof QA.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var pA=QA.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 ug(G,QA);if(typeof G=="number"){if(G===0)return 1/0/G>0?"0":"-0";var GA=String(G);return pA?Z(G,GA):GA}if(typeof G=="bigint"){var zI=String(G)+"n";return pA?Z(G,zI):zI}var ro=typeof QA.depth>"u"?5:QA.depth;if(typeof x>"u"&&(x=0),x>=ro&&ro>0&&typeof G=="object")return T(G)?"[Array]":"[Object]";var ae=Q(QA,x);if(typeof iA>"u")iA=[];else if(DA(iA,G)>=0)return"[Circular]";function Vg(se,Jt,ud){if(Jt&&(iA=P.call(iA),iA.push(Jt)),ud){var Pl={depth:QA.depth};return eA(QA,"quoteStyle")&&(Pl.quoteStyle=QA.quoteStyle),h(se,Pl,x+1,iA)}return h(se,QA,x+1,iA)}if(typeof G=="function"&&!J(G)){var Tl=cA(G),vl=a(G,Vg);return"[Function"+(Tl?": "+Tl:" (anonymous)")+"]"+(vl.length>0?" { "+L.call(vl,", ")+" }":"")}if(d(G)){var _l=oA?R.call(String(G),/^(Symbol\(.*\))_[^)]*$/,"$1"):BA.call(G);return typeof G=="object"&&!oA?gg(_l):_l}if(zA(G)){for(var iC="<"+q.call(String(G.nodeName)),ao=G.attributes||[],Ht=0;Ht<ao.length;Ht++)iC+=" "+ao[Ht].name+"="+H(b(ao[Ht].value),"double",QA);return iC+=">",G.childNodes&&G.childNodes.length&&(iC+="..."),iC+="</"+q.call(String(G.nodeName))+">",iC}if(T(G)){if(G.length===0)return"[]";var so=a(G,Vg);return ae&&!f(so)?"["+o(so,ae)+"]":"[ "+L.call(so,", ")+" ]"}if(M(G)){var co=a(G,Vg);return!("cause"in Error.prototype)&&"cause"in G&&!K.call(G,"cause")?"{ ["+String(G)+"] "+L.call(_.call("[cause]: "+Vg(G.cause),co),", ")+" }":co.length===0?"["+String(G)+"]":"{ ["+String(G)+"] "+L.call(co,", ")+" }"}if(typeof G=="object"&&dA){if(AA&&typeof G[AA]=="function"&&V)return V(G,{depth:ro-x});if(dA!=="symbol"&&typeof G.inspect=="function")return G.inspect()}if(NA(G)){var Ol=[];return B&&B.call(G,function(se,Jt){Ol.push(Vg(Jt,G,!0)+" => "+Vg(se,G))}),l("Map",I.call(G),Ol,ae)}if(og(G)){var Zl=[];return i&&i.call(G,function(se){Zl.push(Vg(se,G))}),l("Set",t.call(G),Zl,ae)}if($(G))return r("WeakMap");if(qA(G))return r("WeakSet");if(xA(G))return r("WeakRef");if(IA(G))return gg(Vg(Number(G)));if(k(G))return gg(Vg(rA.call(G)));if(CA(G))return gg(y.call(G));if(O(G))return gg(Vg(String(G)));if(typeof window<"u"&&G===window)return"{ [object Window] }";if(G===KA)return"{ [object globalThis] }";if(!z(G)&&!J(G)){var lo=a(G,Vg),xl=gA?gA(G)===Object.prototype:G instanceof Object||G.constructor===Object,ho=G instanceof Object?"":"null prototype",jl=!xl&&m&&Object(G)===G&&m in G?D.call(sA(G),8,-1):ho?"Object":"",yd=xl||typeof G.constructor!="function"?"":G.constructor.name?G.constructor.name+" ":"",So=yd+(jl||ho?"["+L.call(_.call([],jl||[],ho||[]),": ")+"] ":"");return lo.length===0?So+"{}":ae?So+"{"+o(lo,ae)+"}":So+"{ "+L.call(lo,", ")+" }"}return String(G)};function H(h,G,v){var x=(v.quoteStyle||G)==="double"?'"':"'";return x+h+x}function b(h){return R.call(String(h),/"/g,""")}function T(h){return sA(h)==="[object Array]"&&(!m||!(typeof h=="object"&&m in h))}function z(h){return sA(h)==="[object Date]"&&(!m||!(typeof h=="object"&&m in h))}function J(h){return sA(h)==="[object RegExp]"&&(!m||!(typeof h=="object"&&m in h))}function M(h){return sA(h)==="[object Error]"&&(!m||!(typeof h=="object"&&m in h))}function O(h){return sA(h)==="[object String]"&&(!m||!(typeof h=="object"&&m in h))}function IA(h){return sA(h)==="[object Number]"&&(!m||!(typeof h=="object"&&m in h))}function CA(h){return sA(h)==="[object Boolean]"&&(!m||!(typeof h=="object"&&m in h))}function d(h){if(oA)return h&&typeof h=="object"&&h instanceof Symbol;if(typeof h=="symbol")return!0;if(!h||typeof h!="object"||!BA)return!1;try{return BA.call(h),!0}catch{}return!1}function k(h){if(!h||typeof h!="object"||!rA)return!1;try{return rA.call(h),!0}catch{}return!1}var X=Object.prototype.hasOwnProperty||function(h){return h in this};function eA(h,G){return X.call(h,G)}function sA(h){return p.call(h)}function cA(h){if(h.name)return h.name;var G=u.call(F.call(h),/^function\s*([\w$]+)/);return G?G[1]:null}function DA(h,G){if(h.indexOf)return h.indexOf(G);for(var v=0,x=h.length;v<x;v++)if(h[v]===G)return v;return-1}function NA(h){if(!I||!h||typeof h!="object")return!1;try{I.call(h);try{t.call(h)}catch{return!0}return h instanceof Map}catch{}return!1}function $(h){if(!c||!h||typeof h!="object")return!1;try{c.call(h,c);try{s.call(h,s)}catch{return!0}return h instanceof WeakMap}catch{}return!1}function xA(h){if(!w||!h||typeof h!="object")return!1;try{return w.call(h),!0}catch{}return!1}function og(h){if(!t||!h||typeof h!="object")return!1;try{t.call(h);try{I.call(h)}catch{return!0}return h instanceof Set}catch{}return!1}function qA(h){if(!s||!h||typeof h!="object")return!1;try{s.call(h,s);try{c.call(h,c)}catch{return!0}return h instanceof WeakSet}catch{}return!1}function zA(h){return!h||typeof h!="object"?!1:typeof HTMLElement<"u"&&h instanceof HTMLElement?!0:typeof h.nodeName=="string"&&typeof h.getAttribute=="function"}function ug(h,G){if(h.length>G.maxStringLength){var v=h.length-G.maxStringLength,x="... "+v+" more character"+(v>1?"s":"");return ug(D.call(h,0,G.maxStringLength),G)+x}var iA=R.call(R.call(h,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,kA);return H(iA,"single",G)}function kA(h){var G=h.charCodeAt(0),v={8:"b",9:"t",10:"n",12:"f",13:"r"}[G];return v?"\\"+v:"\\x"+(G<16?"0":"")+N.call(G.toString(16))}function gg(h){return"Object("+h+")"}function r(h){return h+" { ? }"}function l(h,G,v,x){var iA=x?o(v,x):L.call(v,", ");return h+" ("+G+") {"+iA+"}"}function f(h){for(var G=0;G<h.length;G++)if(DA(h[G],`
|
|
33
33
|
`)>=0)return!1;return!0}function Q(h,G){var v;if(h.indent===" ")v=" ";else if(typeof h.indent=="number"&&h.indent>0)v=L.call(Array(h.indent+1)," ");else return null;return{base:v,prev:L.call(Array(G+1),v)}}function o(h,G){if(h.length===0)return"";var v=`
|
|
34
34
|
`+G.prev+G.base;return v+L.call(h,","+v)+`
|
|
35
35
|
`+G.prev}function a(h,G){var v=T(h),x=[];if(v){x.length=h.length;for(var iA=0;iA<h.length;iA++)x[iA]=eA(h,iA)?G(h[iA],h):""}var QA=typeof EA=="function"?EA(h):[],dA;if(oA){dA={};for(var pA=0;pA<QA.length;pA++)dA["$"+QA[pA]]=QA[pA]}for(var GA in h)eA(h,GA)&&(v&&String(Number(GA))===GA&&GA<h.length||oA&&dA["$"+GA]instanceof Symbol||(U.call(/[^\w$]/,GA)?x.push(G(GA,h)+": "+G(h[GA],h)):x.push(GA+": "+G(h[GA],h))));if(typeof EA=="function")for(var zI=0;zI<QA.length;zI++)K.call(h,QA[zI])&&x.push("["+G(QA[zI])+"]: "+G(h[QA[zI]],h));return x}return eE}var CE,M0;function ap(){if(M0)return CE;M0=1;var g=GB(),A=IE(),I=rp(),B=g("%TypeError%"),C=g("%WeakMap%",!0),e=g("%Map%",!0),t=A("WeakMap.prototype.get",!0),i=A("WeakMap.prototype.set",!0),E=A("WeakMap.prototype.has",!0),c=A("Map.prototype.get",!0),n=A("Map.prototype.set",!0),s=A("Map.prototype.has",!0),S=function(F,u){for(var D=F,R;(R=D.next)!==null;D=R)if(R.key===u)return D.next=R.next,R.next=F.next,F.next=R,R},w=function(F,u){var D=S(F,u);return D&&D.value},y=function(F,u,D){var R=S(F,u);R?R.value=D:F.next={key:u,next:F.next,value:D}},p=function(F,u){return!!S(F,u)};return CE=function(){var F,u,D,R={assert:function(N){if(!R.has(N))throw new B("Side channel does not contain "+I(N))},get:function(N){if(C&&N&&(typeof N=="object"||typeof N=="function")){if(F)return t(F,N)}else if(e){if(u)return c(u,N)}else if(D)return w(D,N)},has:function(N){if(C&&N&&(typeof N=="object"||typeof N=="function")){if(F)return E(F,N)}else if(e){if(u)return s(u,N)}else if(D)return p(D,N);return!1},set:function(N,q){C&&N&&(typeof N=="object"||typeof N=="function")?(F||(F=new C),i(F,N,q)):e?(u||(u=new e),n(u,N,q)):(D||(D={key:{},next:null}),y(D,N,q))}};return R},CE}var tE,q0;function iE(){if(q0)return tE;q0=1;var g=String.prototype.replace,A=/%20/g,I={RFC1738:"RFC1738",RFC3986:"RFC3986"};return tE={default:I.RFC3986,formatters:{RFC1738:function(B){return g.call(B,A,"+")},RFC3986:function(B){return String(B)}},RFC1738:I.RFC1738,RFC3986:I.RFC3986},tE}var QE,K0;function Y0(){if(K0)return QE;K0=1;var g=iE(),A=Object.prototype.hasOwnProperty,I=Array.isArray,B=function(){for(var p=[],F=0;F<256;++F)p.push("%"+((F<16?"0":"")+F.toString(16)).toUpperCase());return p}(),C=function(p){for(;p.length>1;){var F=p.pop(),u=F.obj[F.prop];if(I(u)){for(var D=[],R=0;R<u.length;++R)typeof u[R]<"u"&&D.push(u[R]);F.obj[F.prop]=D}}},e=function(p,F){for(var u=F&&F.plainObjects?Object.create(null):{},D=0;D<p.length;++D)typeof p[D]<"u"&&(u[D]=p[D]);return u},t=function p(F,u,D){if(!u)return F;if(typeof u!="object"){if(I(F))F.push(u);else if(F&&typeof F=="object")(D&&(D.plainObjects||D.allowPrototypes)||!A.call(Object.prototype,u))&&(F[u]=!0);else return[F,u];return F}if(!F||typeof F!="object")return[F].concat(u);var R=F;return I(F)&&!I(u)&&(R=e(F,D)),I(F)&&I(u)?(u.forEach(function(N,q){if(A.call(F,q)){var U=F[q];U&&typeof U=="object"&&N&&typeof N=="object"?F[q]=p(U,N,D):F.push(N)}else F[q]=N}),F):Object.keys(u).reduce(function(N,q){var U=u[q];return A.call(N,q)?N[q]=p(N[q],U,D):N[q]=U,N},R)},i=function(p,F){return Object.keys(F).reduce(function(u,D){return u[D]=F[D],u},p)},E=function(p,F,u){var D=p.replace(/\+/g," ");if(u==="iso-8859-1")return D.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(D)}catch{return D}},c=function(p,F,u,D,R){if(p.length===0)return p;var N=p;if(typeof p=="symbol"?N=Symbol.prototype.toString.call(p):typeof p!="string"&&(N=String(p)),u==="iso-8859-1")return escape(N).replace(/%u[0-9a-f]{4}/gi,function(L){return"%26%23"+parseInt(L.slice(2),16)+"%3B"});for(var q="",U=0;U<N.length;++U){var _=N.charCodeAt(U);if(_===45||_===46||_===95||_===126||_>=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122||R===g.RFC1738&&(_===40||_===41)){q+=N.charAt(U);continue}if(_<128){q=q+B[_];continue}if(_<2048){q=q+(B[192|_>>6]+B[128|_&63]);continue}if(_<55296||_>=57344){q=q+(B[224|_>>12]+B[128|_>>6&63]+B[128|_&63]);continue}U+=1,_=65536+((_&1023)<<10|N.charCodeAt(U)&1023),q+=B[240|_>>18]+B[128|_>>12&63]+B[128|_>>6&63]+B[128|_&63]}return q},n=function(p){for(var F=[{obj:{o:p},prop:"o"}],u=[],D=0;D<F.length;++D)for(var R=F[D],N=R.obj[R.prop],q=Object.keys(N),U=0;U<q.length;++U){var _=q[U],L=N[_];typeof L=="object"&&L!==null&&u.indexOf(L)===-1&&(F.push({obj:N,prop:_}),u.push(L))}return C(F),p},s=function(p){return Object.prototype.toString.call(p)==="[object RegExp]"},S=function(p){return!p||typeof p!="object"?!1:!!(p.constructor&&p.constructor.isBuffer&&p.constructor.isBuffer(p))},w=function(p,F){return[].concat(p,F)},y=function(p,F){if(I(p)){for(var u=[],D=0;D<p.length;D+=1)u.push(F(p[D]));return u}return F(p)};return QE={arrayToObject:e,assign:i,combine:w,compact:n,decode:E,encode:c,isBuffer:S,isRegExp:s,maybeMap:y,merge:t},QE}var EE,b0;function sp(){if(b0)return EE;b0=1;var g=ap(),A=Y0(),I=iE(),B=Object.prototype.hasOwnProperty,C={brackets:function(p){return p+"[]"},comma:"comma",indices:function(p,F){return p+"["+F+"]"},repeat:function(p){return p}},e=Array.isArray,t=Array.prototype.push,i=function(p,F){t.apply(p,e(F)?F:[F])},E=Date.prototype.toISOString,c=I.default,n={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:A.encode,encodeValuesOnly:!1,format:c,formatter:I.formatters[c],indices:!1,serializeDate:function(p){return E.call(p)},skipNulls:!1,strictNullHandling:!1},s=function(p){return typeof p=="string"||typeof p=="number"||typeof p=="boolean"||typeof p=="symbol"||typeof p=="bigint"},S={},w=function p(F,u,D,R,N,q,U,_,L,P,tA,rA,EA,BA,oA,m){for(var K=F,gA=m,Z=0,V=!1;(gA=gA.get(S))!==void 0&&!V;){var j=gA.get(F);if(Z+=1,typeof j<"u"){if(j===Z)throw new RangeError("Cyclic object value");V=!0}typeof gA.get(S)>"u"&&(Z=0)}if(typeof _=="function"?K=_(u,K):K instanceof Date?K=tA(K):D==="comma"&&e(K)&&(K=A.maybeMap(K,function(d){return d instanceof Date?tA(d):d})),K===null){if(N)return U&&!BA?U(u,n.encoder,oA,"key",rA):u;K=""}if(s(K)||A.isBuffer(K)){if(U){var AA=BA?u:U(u,n.encoder,oA,"key",rA);return[EA(AA)+"="+EA(U(K,n.encoder,oA,"value",rA))]}return[EA(u)+"="+EA(String(K))]}var H=[];if(typeof K>"u")return H;var b;if(D==="comma"&&e(K))BA&&U&&(K=A.maybeMap(K,U)),b=[{value:K.length>0?K.join(",")||null:void 0}];else if(e(_))b=_;else{var T=Object.keys(K);b=L?T.sort(L):T}for(var z=R&&e(K)&&K.length===1?u+"[]":u,J=0;J<b.length;++J){var M=b[J],O=typeof M=="object"&&typeof M.value<"u"?M.value:K[M];if(!(q&&O===null)){var IA=e(K)?typeof D=="function"?D(z,M):z:z+(P?"."+M:"["+M+"]");m.set(F,Z);var CA=g();CA.set(S,m),i(H,p(O,IA,D,R,N,q,D==="comma"&&BA&&e(K)?null:U,_,L,P,tA,rA,EA,BA,oA,CA))}}return H},y=function(p){if(!p)return n;if(p.encoder!==null&&typeof p.encoder<"u"&&typeof p.encoder!="function")throw new TypeError("Encoder has to be a function.");var F=p.charset||n.charset;if(typeof p.charset<"u"&&p.charset!=="utf-8"&&p.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var u=I.default;if(typeof p.format<"u"){if(!B.call(I.formatters,p.format))throw new TypeError("Unknown format option provided.");u=p.format}var D=I.formatters[u],R=n.filter;return(typeof p.filter=="function"||e(p.filter))&&(R=p.filter),{addQueryPrefix:typeof p.addQueryPrefix=="boolean"?p.addQueryPrefix:n.addQueryPrefix,allowDots:typeof p.allowDots>"u"?n.allowDots:!!p.allowDots,charset:F,charsetSentinel:typeof p.charsetSentinel=="boolean"?p.charsetSentinel:n.charsetSentinel,delimiter:typeof p.delimiter>"u"?n.delimiter:p.delimiter,encode:typeof p.encode=="boolean"?p.encode:n.encode,encoder:typeof p.encoder=="function"?p.encoder:n.encoder,encodeValuesOnly:typeof p.encodeValuesOnly=="boolean"?p.encodeValuesOnly:n.encodeValuesOnly,filter:R,format:u,formatter:D,serializeDate:typeof p.serializeDate=="function"?p.serializeDate:n.serializeDate,skipNulls:typeof p.skipNulls=="boolean"?p.skipNulls:n.skipNulls,sort:typeof p.sort=="function"?p.sort:null,strictNullHandling:typeof p.strictNullHandling=="boolean"?p.strictNullHandling:n.strictNullHandling}};return EE=function(p,F){var u=p,D=y(F),R,N;typeof D.filter=="function"?(N=D.filter,u=N("",u)):e(D.filter)&&(N=D.filter,R=N);var q=[];if(typeof u!="object"||u===null)return"";var U;F&&F.arrayFormat in C?U=F.arrayFormat:F&&"indices"in F?U=F.indices?"indices":"repeat":U="indices";var _=C[U];if(F&&"commaRoundTrip"in F&&typeof F.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var L=_==="comma"&&F&&F.commaRoundTrip;R||(R=Object.keys(u)),D.sort&&R.sort(D.sort);for(var P=g(),tA=0;tA<R.length;++tA){var rA=R[tA];D.skipNulls&&u[rA]===null||i(q,w(u[rA],rA,_,L,D.strictNullHandling,D.skipNulls,D.encode?D.encoder:null,D.filter,D.sort,D.allowDots,D.serializeDate,D.format,D.formatter,D.encodeValuesOnly,D.charset,P))}var EA=q.join(D.delimiter),BA=D.addQueryPrefix===!0?"?":"";return D.charsetSentinel&&(D.charset==="iso-8859-1"?BA+="utf8=%26%2310003%3B&":BA+="utf8=%E2%9C%93&"),EA.length>0?BA+EA:""},EE}var oE,T0;function cp(){if(T0)return oE;T0=1;var g=Y0(),A=Object.prototype.hasOwnProperty,I=Array.isArray,B={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:g.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},C=function(S){return S.replace(/&#(\d+);/g,function(w,y){return String.fromCharCode(parseInt(y,10))})},e=function(S,w){return S&&typeof S=="string"&&w.comma&&S.indexOf(",")>-1?S.split(","):S},t="utf8=%26%2310003%3B",i="utf8=%E2%9C%93",E=function(S,w){var y={},p=w.ignoreQueryPrefix?S.replace(/^\?/,""):S,F=w.parameterLimit===1/0?void 0:w.parameterLimit,u=p.split(w.delimiter,F),D=-1,R,N=w.charset;if(w.charsetSentinel)for(R=0;R<u.length;++R)u[R].indexOf("utf8=")===0&&(u[R]===i?N="utf-8":u[R]===t&&(N="iso-8859-1"),D=R,R=u.length);for(R=0;R<u.length;++R)if(R!==D){var q=u[R],U=q.indexOf("]="),_=U===-1?q.indexOf("="):U+1,L,P;_===-1?(L=w.decoder(q,B.decoder,N,"key"),P=w.strictNullHandling?null:""):(L=w.decoder(q.slice(0,_),B.decoder,N,"key"),P=g.maybeMap(e(q.slice(_+1),w),function(tA){return w.decoder(tA,B.decoder,N,"value")})),P&&w.interpretNumericEntities&&N==="iso-8859-1"&&(P=C(P)),q.indexOf("[]=")>-1&&(P=I(P)?[P]:P),A.call(y,L)?y[L]=g.combine(y[L],P):y[L]=P}return y},c=function(S,w,y,p){for(var F=p?w:e(w,y),u=S.length-1;u>=0;--u){var D,R=S[u];if(R==="[]"&&y.parseArrays)D=[].concat(F);else{D=y.plainObjects?Object.create(null):{};var N=R.charAt(0)==="["&&R.charAt(R.length-1)==="]"?R.slice(1,-1):R,q=parseInt(N,10);!y.parseArrays&&N===""?D={0:F}:!isNaN(q)&&R!==N&&String(q)===N&&q>=0&&y.parseArrays&&q<=y.arrayLimit?(D=[],D[q]=F):N!=="__proto__"&&(D[N]=F)}F=D}return F},n=function(S,w,y,p){if(S){var F=y.allowDots?S.replace(/\.([^.[]+)/g,"[$1]"):S,u=/(\[[^[\]]*])/,D=/(\[[^[\]]*])/g,R=y.depth>0&&u.exec(F),N=R?F.slice(0,R.index):F,q=[];if(N){if(!y.plainObjects&&A.call(Object.prototype,N)&&!y.allowPrototypes)return;q.push(N)}for(var U=0;y.depth>0&&(R=D.exec(F))!==null&&U<y.depth;){if(U+=1,!y.plainObjects&&A.call(Object.prototype,R[1].slice(1,-1))&&!y.allowPrototypes)return;q.push(R[1])}return R&&q.push("["+F.slice(R.index)+"]"),c(q,w,y,p)}},s=function(S){if(!S)return B;if(S.decoder!==null&&S.decoder!==void 0&&typeof S.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof S.charset<"u"&&S.charset!=="utf-8"&&S.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var w=typeof S.charset>"u"?B.charset:S.charset;return{allowDots:typeof S.allowDots>"u"?B.allowDots:!!S.allowDots,allowPrototypes:typeof S.allowPrototypes=="boolean"?S.allowPrototypes:B.allowPrototypes,allowSparse:typeof S.allowSparse=="boolean"?S.allowSparse:B.allowSparse,arrayLimit:typeof S.arrayLimit=="number"?S.arrayLimit:B.arrayLimit,charset:w,charsetSentinel:typeof S.charsetSentinel=="boolean"?S.charsetSentinel:B.charsetSentinel,comma:typeof S.comma=="boolean"?S.comma:B.comma,decoder:typeof S.decoder=="function"?S.decoder:B.decoder,delimiter:typeof S.delimiter=="string"||g.isRegExp(S.delimiter)?S.delimiter:B.delimiter,depth:typeof S.depth=="number"||S.depth===!1?+S.depth:B.depth,ignoreQueryPrefix:S.ignoreQueryPrefix===!0,interpretNumericEntities:typeof S.interpretNumericEntities=="boolean"?S.interpretNumericEntities:B.interpretNumericEntities,parameterLimit:typeof S.parameterLimit=="number"?S.parameterLimit:B.parameterLimit,parseArrays:S.parseArrays!==!1,plainObjects:typeof S.plainObjects=="boolean"?S.plainObjects:B.plainObjects,strictNullHandling:typeof S.strictNullHandling=="boolean"?S.strictNullHandling:B.strictNullHandling}};return oE=function(S,w){var y=s(w);if(S===""||S===null||typeof S>"u")return y.plainObjects?Object.create(null):{};for(var p=typeof S=="string"?E(S,y):S,F=y.plainObjects?Object.create(null):{},u=Object.keys(p),D=0;D<u.length;++D){var R=u[D],N=n(R,p[R],y,typeof S=="string");F=g.merge(F,N,y)}return y.allowSparse===!0?F:g.compact(F)},oE}var nE,v0;function lp(){if(v0)return nE;v0=1;var g=sp(),A=cp(),I=iE();return nE={formats:I,parse:A,stringify:g},nE}var hp=lp();function _0(g){return hp.stringify(g,{arrayFormat:"repeat"})}function O0(...g){return g.join("/").replace(/([^:]\/)\/+/g,"$1").replace(/^(\/)+/,"/")}function Sp(g,A,I){const B=new Headers;let C;if(Lu(g))C=g.req.writeReq(A);else{const i=g.req.onlySupport??I.requestWireFormat;switch(i){case fA.json:C=g.req.writeReqJson(A),C.body&&(C.body=JSON.stringify(C.body),B.set(Bg.ContentType,Rg.json));break;case fA.ssz:C=g.req.writeReqSsz(A),C.body&&B.set(Bg.ContentType,Rg.ssz);break;default:throw Error(`Invalid requestWireFormat: ${i}`)}}const e=C.query?_0(C.query):"",t=new URL(O0(I.baseUrl,g.urlFormatter(C.params??{}))+(e?`?${e}`:""));if(du(t,B,I),!g.resp.isEmpty)if(g.resp.onlySupport!==void 0)switch(g.resp.onlySupport){case fA.json:B.set(Bg.Accept,Rg.json);break;case fA.ssz:B.set(Bg.Accept,Rg.ssz);break}else switch(I.responseWireFormat){case fA.json:B.set(Bg.Accept,`${Rg.json};q=1,${Rg.ssz};q=0.9`);break;case fA.ssz:B.set(Bg.Accept,`${Rg.ssz};q=1,${Rg.json};q=0.9`);break;default:throw Error(`Invalid responseWireFormat: ${I.responseWireFormat}`)}return new Request(t,{...I,method:g.method,headers:qQ(B,C.headers,I.headers),body:C.body})}class wp extends Error{constructor(A,I,B){super(`${B} failed with status ${I}: ${A}`),this.status=I,this.operationId=B}}class Z0 extends Response{constructor(A,I,B){super(I,B),this.definition=A}wireFormat(){if(this._wireFormat===void 0){if(this.definition.resp.isEmpty)return this._wireFormat=null,this._wireFormat;const A=this.headers.get(Bg.ContentType);if(A===null){if(this.status===pt.NO_CONTENT)return this._wireFormat=null,this._wireFormat;throw Error("Content-Type header is required in response")}const I=Fu(A);if(I===null)throw Error(`Unsupported response media type: ${A.split(";",1)[0]}`);const B=Nu(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 fA.json:this._rawBody={type:fA.json,value:await super.json()};break;case fA.ssz:this._rawBody={type:fA.ssz,value:new Uint8Array(await this.arrayBuffer())};break;default:this._rawBody={}}return this._rawBody}meta(){if(this.assertOk(),!this._meta)switch(this.wireFormat()){case fA.json:{const A=this.resolvedRawBody(),I=this.definition.resp.transform?this.definition.resp.transform.fromResponse(A.value).meta:A.value;this._meta=this.definition.resp.meta.fromJson(I);break}case fA.ssz:this._meta=this.definition.resp.meta.fromHeaders(new Gu(this.headers));break}return this._meta}value(){if(this.assertOk(),!this._value){const A=this.resolvedRawBody(),I=this.meta();switch(A.type){case fA.json:{const B=this.definition.resp.transform?this.definition.resp.transform.fromResponse(A.value).data:A.value?.data;this._value=this.definition.resp.data.fromJson(B,I);break}case fA.ssz:this._value=this.definition.resp.data.deserialize(A.value,I);break}}return this._value}ssz(){this.assertOk();const A=this.resolvedRawBody();switch(A.type){case fA.json:return this.definition.resp.data.serialize(this.value(),this.meta());case fA.ssz:return A.value;default:return new Uint8Array}}json(){this.assertOk();const A=this.resolvedRawBody();switch(A.type){case fA.json:return A.value;case fA.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 wp(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 A=this.resolvedErrorBody();try{const I=JSON.parse(A);return I.message?I.failures?`${I.message}
|