8 lines
44 KiB
JavaScript
8 lines
44 KiB
JavaScript
import{c as x,o as S,p as O,q as g}from"./chunk-QTLWQ5AJ.js";var xe=x(A=>{"use strict";S();g();Object.defineProperty(A,"__esModule",{value:!0});A.utf8Write=A.utf8Read=A.utf8Length=void 0;function Re(e){let n=0,t=0;for(let r=0;r<e.length;++r)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:(t&64512)===55296&&(e.charCodeAt(r+1)&64512)===56320?(++r,n+=4):n+=3;return n}A.utf8Length=Re;function Fe(e,n,t){if(t-n<1)return"";let i=[],o=[],d=0,y;for(;n<t;)y=e[n++],y<128?i[d++]=y:y>191&&y<224?i[d++]=(y&31)<<6|e[n++]&63:y>239&&y<365?(y=((y&7)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,i[d++]=55296+(y>>10),i[d++]=56320+(y&1023)):i[d++]=(y&15)<<12|(e[n++]&63)<<6|e[n++]&63,d>8191&&((o||(o=[])).push(String.fromCharCode(...i)),d=0);return o?(d&&o.push(String.fromCharCode(...i.slice(0,d))),o.join("")):String.fromCharCode(...i.slice(0,d))}A.utf8Read=Fe;function ve(e,n,t){let r=t,i,o;for(let d=0;d<e.length;++d)i=e.charCodeAt(d),i<128?n[t++]=i:i<2048?(n[t++]=i>>6|192,n[t++]=i&63|128):(i&64512)===55296&&((o=e.charCodeAt(d+1))&64512)===56320?(i=65536+((i&1023)<<10)+(o&1023),++d,n[t++]=i>>18|240,n[t++]=i>>12&63|128,n[t++]=i>>6&63|128,n[t++]=i&63|128):(n[t++]=i>>12|224,n[t++]=i>>6&63|128,n[t++]=i&63|128);return t-r}A.utf8Write=ve});var Je=x(c=>{"use strict";S();g();Object.defineProperty(c,"__esModule",{value:!0});c.writeByte=c.writeFixed32=c.int64Length=c.writeVarint64=c.writeVarint32=c.readInt32=c.readUInt32=c.zzDecode=c.zzEncode=c.varint32read=c.varint32write=c.uInt64ToString=c.int64ToString=c.int64FromString=c.varint64write=c.varint64read=void 0;function qe(){let e=0,n=0;for(let r=0;r<28;r+=7){let i=this.buf[this.pos++];if(e|=(i&127)<<r,(i&128)==0)return this.assertBounds(),[e,n]}let t=this.buf[this.pos++];if(e|=(t&15)<<28,n=(t&112)>>4,(t&128)==0)return this.assertBounds(),[e,n];for(let r=3;r<=31;r+=7){let i=this.buf[this.pos++];if(n|=(i&127)<<r,(i&128)==0)return this.assertBounds(),[e,n]}throw new Error("invalid varint")}c.varint64read=qe;function Ge(e,n,t){for(let o=0;o<28;o=o+7){let d=e>>>o,y=!(d>>>7==0&&n==0),h=(y?d|128:d)&255;if(t.push(h),!y)return}let r=e>>>28&15|(n&7)<<4,i=n>>3!=0;if(t.push((i?r|128:r)&255),!!i){for(let o=3;o<31;o=o+7){let d=n>>>o,y=d>>>7!=0,h=(y?d|128:d)&255;if(t.push(h),!y)return}t.push(n>>>31&1)}}c.varint64write=Ge;var L=4294967296;function Ke(e){let n=e[0]==="-";n&&(e=e.slice(1));let t=1e6,r=0,i=0;function o(d,y){let h=Number(e.slice(d,y));i*=t,r=r*t+h,r>=L&&(i=i+(r/L|0),r=r%L)}return o(-24,-18),o(-18,-12),o(-12,-6),o(-6),n?we(r,i):V(r,i)}c.int64FromString=Ke;function Le(e,n){let t=V(e,n),r=t.hi&2147483648;r&&(t=we(t.lo,t.hi));let i=Ae(t.lo,t.hi);return r?"-"+i:i}c.int64ToString=Le;function Ae(e,n){if({lo:e,hi:n}=We(e,n),n<=2097151)return String(L*n+e);let t=e&16777215,r=(e>>>24|n<<8)&16777215,i=n>>16&65535,o=t+r*6777216+i*6710656,d=r+i*8147497,y=i*2,h=1e7;return o>=h&&(d+=Math.floor(o/h),o%=h),d>=h&&(y+=Math.floor(d/h),d%=h),y.toString()+ke(d)+ke(o)}c.uInt64ToString=Ae;function We(e,n){return{lo:e>>>0,hi:n>>>0}}function V(e,n){return{lo:e|0,hi:n|0}}function we(e,n){return n=~n,e?e=~e+1:n+=1,V(e,n)}var ke=e=>{let n=String(e);return"0000000".slice(n.length)+n};function He(e,n){if(e>=0){for(;e>127;)n.push(e&127|128),e=e>>>7;n.push(e)}else{for(let t=0;t<9;t++)n.push(e&127|128),e=e>>7;n.push(1)}}c.varint32write=He;function Ve(){let e=this.buf[this.pos++],n=e&127;if((e&128)==0)return this.assertBounds(),n;if(e=this.buf[this.pos++],n|=(e&127)<<7,(e&128)==0)return this.assertBounds(),n;if(e=this.buf[this.pos++],n|=(e&127)<<14,(e&128)==0)return this.assertBounds(),n;if(e=this.buf[this.pos++],n|=(e&127)<<21,(e&128)==0)return this.assertBounds(),n;e=this.buf[this.pos++],n|=(e&15)<<28;for(let t=5;(e&128)!==0&&t<10;t++)e=this.buf[this.pos++];if((e&128)!=0)throw new Error("invalid varint");return this.assertBounds(),n>>>0}c.varint32read=Ve;function Xe(e,n){let t=n>>31;return n=((n<<1|e>>>31)^t)>>>0,e=(e<<1^t)>>>0,[e,n]}c.zzEncode=Xe;function ze(e,n){let t=-(e&1);return e=((e>>>1|n<<31)^t)>>>0,n=(n>>>1^t)>>>0,[e,n]}c.zzDecode=ze;function Ze(e,n){return(e[n]|e[n+1]<<8|e[n+2]<<16)+e[n+3]*16777216}c.readUInt32=Ze;function Ye(e,n){return(e[n]|e[n+1]<<8|e[n+2]<<16)+(e[n+3]<<24)}c.readInt32=Ye;function $e(e,n,t){for(;e>127;)n[t++]=e&127|128,e>>>=7;n[t]=e}c.writeVarint32=$e;function Qe(e,n,t){for(;e.hi;)n[t++]=e.lo&127|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)n[t++]=e.lo&127|128,e.lo=e.lo>>>7;n[t++]=e.lo}c.writeVarint64=Qe;function je(e,n){let t=e,r=(e>>>28|n<<4)>>>0,i=n>>>24;return i===0?r===0?t<16384?t<128?1:2:t<2097152?3:4:r<16384?r<128?5:6:r<2097152?7:8:i<128?9:10}c.int64Length=je;function en(e,n,t){n[t]=e&255,n[t+1]=e>>>8&255,n[t+2]=e>>>16&255,n[t+3]=e>>>24}c.writeFixed32=en;function nn(e,n,t){n[t]=e&255}c.writeByte=nn});var U=x(w=>{"use strict";S();g();Object.defineProperty(w,"__esModule",{value:!0});w.BinaryWriter=w.BinaryReader=w.WireType=void 0;var X=xe(),l=Je(),T;(function(e){e[e.Varint=0]="Varint",e[e.Fixed64=1]="Fixed64",e[e.Bytes=2]="Bytes",e[e.Fixed32=5]="Fixed32"})(T||(w.WireType=T={}));var z=class{assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}constructor(n){this.buf=n?new Uint8Array(n):new Uint8Array(0),this.pos=0,this.type=0,this.len=this.buf.length}tag(){let n=this.uint32(),t=n>>>3,r=n&7;if(t<=0||r<0||r>5)throw new Error("illegal tag: field no "+t+" wire type "+r);return[t,r,n]}skip(n){if(typeof n=="number"){if(this.pos+n>this.len)throw Ee(this,n);this.pos+=n}else do if(this.pos>=this.len)throw Ee(this);while(this.buf[this.pos++]&128);return this}skipType(n){switch(n){case T.Varint:this.skip();break;case T.Fixed64:this.skip(8);break;case T.Bytes:this.skip(this.uint32());break;case 3:for(;(n=this.uint32()&7)!==4;)this.skipType(n);break;case T.Fixed32:this.skip(4);break;default:throw Error("invalid wire type "+n+" at offset "+this.pos)}return this}uint32(){return l.varint32read.bind(this)()}int32(){return this.uint32()|0}sint32(){let n=this.uint32();return n%2===1?(n+1)/-2:n/2}fixed32(){let n=(0,l.readUInt32)(this.buf,this.pos);return this.pos+=4,n}sfixed32(){let n=(0,l.readInt32)(this.buf,this.pos);return this.pos+=4,n}int64(){let[n,t]=l.varint64read.bind(this)();return BigInt((0,l.int64ToString)(n,t))}uint64(){let[n,t]=l.varint64read.bind(this)();return BigInt((0,l.uInt64ToString)(n,t))}sint64(){let[n,t]=l.varint64read.bind(this)();return[n,t]=(0,l.zzDecode)(n,t),BigInt((0,l.int64ToString)(n,t))}fixed64(){let n=this.sfixed32(),t=this.sfixed32();return BigInt((0,l.uInt64ToString)(n,t))}sfixed64(){let n=this.sfixed32(),t=this.sfixed32();return BigInt((0,l.int64ToString)(n,t))}float(){throw new Error("float not supported")}double(){throw new Error("double not supported")}bool(){let[n,t]=l.varint64read.bind(this)();return n!==0||t!==0}bytes(){let n=this.uint32(),t=this.pos;return this.pos+=n,this.assertBounds(),this.buf.subarray(t,t+n)}string(){let n=this.bytes();return(0,X.utf8Read)(n,0,n.length)}};w.BinaryReader=z;var M=class{constructor(n,t,r){this.fn=n,this.len=t,this.val=r}proceed(n,t){this.fn&&this.fn(this.val,n,t)}},Z=class{constructor(n){this.head=n.head,this.tail=n.tail,this.len=n.len,this.next=n.states}},k=class{constructor(){this.len=0,this.uint64=k.prototype.int64,this.sfixed64=k.prototype.fixed64,this.sfixed32=k.prototype.fixed32,this.head=new M(null,0,0),this.tail=this.head,this.states=null}static create(){return new k}static alloc(n){return typeof Uint8Array<"u"?rn(t=>new Uint8Array(t),Uint8Array.prototype.subarray)(n):new Array(n)}_push(n,t,r){return this.tail=this.tail.next=new M(n,t,r),this.len+=t,this}finish(){let n=this.head.next,t=0,r=k.alloc(this.len);for(;n;)n.proceed(r,t),t+=n.len,n=n.next;return r}fork(){return this.states=new Z(this),this.head=this.tail=new M(null,0,0),this.len=0,this}reset(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new M(null,0,0),this.len=0),this}ldelim(){let n=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=n.next,this.tail=t,this.len+=r),this}tag(n,t){return this.uint32((n<<3|t)>>>0)}uint32(n){return this.len+=(this.tail=this.tail.next=new M(l.writeVarint32,(n=n>>>0)<128?1:n<16384?2:n<2097152?3:n<268435456?4:5,n)).len,this}int32(n){return n<0?this._push(l.writeVarint64,10,(0,l.int64FromString)(n.toString())):this.uint32(n)}sint32(n){return this.uint32((n<<1^n>>31)>>>0)}int64(n){let{lo:t,hi:r}=(0,l.int64FromString)(n.toString());return this._push(l.writeVarint64,(0,l.int64Length)(t,r),{lo:t,hi:r})}sint64(n){let{lo:t,hi:r}=(0,l.int64FromString)(n.toString());return[t,r]=(0,l.zzEncode)(t,r),this._push(l.writeVarint64,(0,l.int64Length)(t,r),{lo:t,hi:r})}fixed64(n){let{lo:t,hi:r}=(0,l.int64FromString)(n.toString());return this._push(l.writeFixed32,4,t)._push(l.writeFixed32,4,r)}bool(n){return this._push(l.writeByte,1,n?1:0)}fixed32(n){return this._push(l.writeFixed32,4,n>>>0)}float(n){throw new Error("float not supported"+n)}double(n){throw new Error("double not supported"+n)}bytes(n){let t=n.length>>>0;return t?this.uint32(t)._push(tn,t,n):this._push(l.writeByte,1,0)}string(n){let t=(0,X.utf8Length)(n);return t?this.uint32(t)._push(X.utf8Write,t,n):this._push(l.writeByte,1,0)}};w.BinaryWriter=k;function tn(e,n,t){if(typeof Uint8Array<"u")n.set(e,t);else for(let r=0;r<e.length;++r)n[t+r]=e[r]}function rn(e,n,t){let r=t||8192,i=r>>>1,o=null,d=r;return function(h){if(h<1||h>i)return e(h);d+h>r&&(o=e(r),d=0);let Ce=n.call(o,d,d+=h);return d&7&&(d=(d|7)+1),Ce}}function Ee(e,n){return RangeError("index out of range: "+e.pos+" + "+(n||1)+" > "+e.len)}});var P=x(m=>{"use strict";S();g();Object.defineProperty(m,"__esModule",{value:!0});m.fromJsonTimestamp=m.fromTimestamp=m.toTimestamp=m.setPaginationParams=m.isObject=m.isSet=m.fromDuration=m.toDuration=m.omitDefault=m.base64FromBytes=m.bytesFromBase64=void 0;var J=(()=>{if(typeof J<"u")return J;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof J<"u")return J;throw"Unable to locate global object"})(),on=J.atob||(e=>J.Buffer.from(e,"base64").toString("binary"));function an(e){let n=on(e),t=new Uint8Array(n.length);for(let r=0;r<n.length;++r)t[r]=n.charCodeAt(r);return t}m.bytesFromBase64=an;var sn=J.btoa||(e=>J.Buffer.from(e,"binary").toString("base64"));function un(e){let n=[];return e.forEach(t=>{n.push(String.fromCharCode(t))}),sn(n.join(""))}m.base64FromBytes=un;function dn(e){if(typeof e=="string")return e===""?void 0:e;if(typeof e=="number")return e===0?void 0:e;if(typeof e=="bigint")return e===BigInt(0)?void 0:e;throw new Error(`Got unsupported type ${typeof e}`)}m.omitDefault=dn;function fn(e){return{seconds:BigInt(Math.floor(parseInt(e)/1e9)),nanos:parseInt(e)%1e9}}m.toDuration=fn;function cn(e){return(parseInt(e.seconds.toString())*1e9+e.nanos).toString()}m.fromDuration=cn;function Y(e){return e!=null}m.isSet=Y;function ln(e){return typeof e=="object"&&e!==null}m.isObject=ln;var yn=(e,n)=>(n&&(typeof n?.countTotal<"u"&&(e.params["pagination.count_total"]=n.countTotal),typeof n?.key<"u"&&(e.params["pagination.key"]=O.Buffer.from(n.key).toString("base64")),typeof n?.limit<"u"&&(e.params["pagination.limit"]=n.limit.toString()),typeof n?.offset<"u"&&(e.params["pagination.offset"]=n.offset.toString()),typeof n?.reverse<"u"&&(e.params["pagination.reverse"]=n.reverse)),e);m.setPaginationParams=yn;function $(e){let n=Sn(e.getTime()/1e3),t=e.getTime()%1e3*1e6;return{seconds:n,nanos:t}}m.toTimestamp=$;function pn(e){let n=Number(e.seconds)*1e3;return n+=e.nanos/1e6,new Date(n)}m.fromTimestamp=pn;var mn=e=>({seconds:Y(e.seconds)?BigInt(e.seconds.toString()):BigInt(0),nanos:Y(e.nanos)?Number(e.nanos):0});function hn(e){return e instanceof Date?$(e):typeof e=="string"?$(new Date(e)):mn(e)}m.fromJsonTimestamp=hn;function Sn(e){return BigInt(Math.trunc(e))}});var ee=x(C=>{"use strict";S();g();Object.defineProperty(C,"__esModule",{value:!0});C.Any=C.protobufPackage=void 0;var Q=U(),W=P();C.protobufPackage="google.protobuf";function j(){return{typeUrl:"",value:new Uint8Array}}C.Any={typeUrl:"/google.protobuf.Any",encode(e,n=Q.BinaryWriter.create()){return e.typeUrl!==""&&n.uint32(10).string(e.typeUrl),e.value.length!==0&&n.uint32(18).bytes(e.value),n},decode(e,n){let t=e instanceof Q.BinaryReader?e:new Q.BinaryReader(e),r=n===void 0?t.len:t.pos+n,i=j();for(;t.pos<r;){let o=t.uint32();switch(o>>>3){case 1:i.typeUrl=t.string();break;case 2:i.value=t.bytes();break;default:t.skipType(o&7);break}}return i},fromJSON(e){let n=j();return(0,W.isSet)(e.typeUrl)&&(n.typeUrl=String(e.typeUrl)),(0,W.isSet)(e.value)&&(n.value=(0,W.bytesFromBase64)(e.value)),n},toJSON(e){let n={};return e.typeUrl!==void 0&&(n.typeUrl=e.typeUrl),e.value!==void 0&&(n.value=(0,W.base64FromBytes)(e.value!==void 0?e.value:new Uint8Array)),n},fromPartial(e){let n=j();return n.typeUrl=e.typeUrl??"",n.value=e.value??new Uint8Array,n}}});var ie=x(E=>{"use strict";S();g();Object.defineProperty(E,"__esModule",{value:!0});E.CompactBitArray=E.MultiSignature=E.protobufPackage=void 0;var F=U(),R=P();E.protobufPackage="cosmos.crypto.multisig.v1beta1";function ne(){return{signatures:[]}}E.MultiSignature={typeUrl:"/cosmos.crypto.multisig.v1beta1.MultiSignature",encode(e,n=F.BinaryWriter.create()){for(let t of e.signatures)n.uint32(10).bytes(t);return n},decode(e,n){let t=e instanceof F.BinaryReader?e:new F.BinaryReader(e),r=n===void 0?t.len:t.pos+n,i=ne();for(;t.pos<r;){let o=t.uint32();switch(o>>>3){case 1:i.signatures.push(t.bytes());break;default:t.skipType(o&7);break}}return i},fromJSON(e){let n=ne();return Array.isArray(e?.signatures)&&(n.signatures=e.signatures.map(t=>(0,R.bytesFromBase64)(t))),n},toJSON(e){let n={};return e.signatures?n.signatures=e.signatures.map(t=>(0,R.base64FromBytes)(t!==void 0?t:new Uint8Array)):n.signatures=[],n},fromPartial(e){let n=ne();return n.signatures=e.signatures?.map(t=>t)||[],n}};function te(){return{extraBitsStored:0,elems:new Uint8Array}}E.CompactBitArray={typeUrl:"/cosmos.crypto.multisig.v1beta1.CompactBitArray",encode(e,n=F.BinaryWriter.create()){return e.extraBitsStored!==0&&n.uint32(8).uint32(e.extraBitsStored),e.elems.length!==0&&n.uint32(18).bytes(e.elems),n},decode(e,n){let t=e instanceof F.BinaryReader?e:new F.BinaryReader(e),r=n===void 0?t.len:t.pos+n,i=te();for(;t.pos<r;){let o=t.uint32();switch(o>>>3){case 1:i.extraBitsStored=t.uint32();break;case 2:i.elems=t.bytes();break;default:t.skipType(o&7);break}}return i},fromJSON(e){let n=te();return(0,R.isSet)(e.extraBitsStored)&&(n.extraBitsStored=Number(e.extraBitsStored)),(0,R.isSet)(e.elems)&&(n.elems=(0,R.bytesFromBase64)(e.elems)),n},toJSON(e){let n={};return e.extraBitsStored!==void 0&&(n.extraBitsStored=Math.round(e.extraBitsStored)),e.elems!==void 0&&(n.elems=(0,R.base64FromBytes)(e.elems!==void 0?e.elems:new Uint8Array)),n},fromPartial(e){let n=te();return n.extraBitsStored=e.extraBitsStored??0,n.elems=e.elems??new Uint8Array,n}}});var Ue=x(u=>{"use strict";S();g();Object.defineProperty(u,"__esModule",{value:!0});u.SignatureDescriptor_Data_Multi=u.SignatureDescriptor_Data_Single=u.SignatureDescriptor_Data=u.SignatureDescriptor=u.SignatureDescriptors=u.signModeToJSON=u.signModeFromJSON=u.SignMode=u.protobufPackage=void 0;var q=ie(),G=ee(),I=U(),_=P();u.protobufPackage="cosmos.tx.signing.v1beta1";var B;(function(e){e[e.SIGN_MODE_UNSPECIFIED=0]="SIGN_MODE_UNSPECIFIED",e[e.SIGN_MODE_DIRECT=1]="SIGN_MODE_DIRECT",e[e.SIGN_MODE_TEXTUAL=2]="SIGN_MODE_TEXTUAL",e[e.SIGN_MODE_DIRECT_AUX=3]="SIGN_MODE_DIRECT_AUX",e[e.SIGN_MODE_LEGACY_AMINO_JSON=127]="SIGN_MODE_LEGACY_AMINO_JSON",e[e.SIGN_MODE_EIP_191=191]="SIGN_MODE_EIP_191",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"})(B||(u.SignMode=B={}));function Me(e){switch(e){case 0:case"SIGN_MODE_UNSPECIFIED":return B.SIGN_MODE_UNSPECIFIED;case 1:case"SIGN_MODE_DIRECT":return B.SIGN_MODE_DIRECT;case 2:case"SIGN_MODE_TEXTUAL":return B.SIGN_MODE_TEXTUAL;case 3:case"SIGN_MODE_DIRECT_AUX":return B.SIGN_MODE_DIRECT_AUX;case 127:case"SIGN_MODE_LEGACY_AMINO_JSON":return B.SIGN_MODE_LEGACY_AMINO_JSON;case 191:case"SIGN_MODE_EIP_191":return B.SIGN_MODE_EIP_191;case-1:case"UNRECOGNIZED":default:return B.UNRECOGNIZED}}u.signModeFromJSON=Me;function Te(e){switch(e){case B.SIGN_MODE_UNSPECIFIED:return"SIGN_MODE_UNSPECIFIED";case B.SIGN_MODE_DIRECT:return"SIGN_MODE_DIRECT";case B.SIGN_MODE_TEXTUAL:return"SIGN_MODE_TEXTUAL";case B.SIGN_MODE_DIRECT_AUX:return"SIGN_MODE_DIRECT_AUX";case B.SIGN_MODE_LEGACY_AMINO_JSON:return"SIGN_MODE_LEGACY_AMINO_JSON";case B.SIGN_MODE_EIP_191:return"SIGN_MODE_EIP_191";case B.UNRECOGNIZED:default:return"UNRECOGNIZED"}}u.signModeToJSON=Te;function re(){return{signatures:[]}}u.SignatureDescriptors={typeUrl:"/cosmos.tx.signing.v1beta1.SignatureDescriptors",encode(e,n=I.BinaryWriter.create()){for(let t of e.signatures)u.SignatureDescriptor.encode(t,n.uint32(10).fork()).ldelim();return n},decode(e,n){let t=e instanceof I.BinaryReader?e:new I.BinaryReader(e),r=n===void 0?t.len:t.pos+n,i=re();for(;t.pos<r;){let o=t.uint32();switch(o>>>3){case 1:i.signatures.push(u.SignatureDescriptor.decode(t,t.uint32()));break;default:t.skipType(o&7);break}}return i},fromJSON(e){let n=re();return Array.isArray(e?.signatures)&&(n.signatures=e.signatures.map(t=>u.SignatureDescriptor.fromJSON(t))),n},toJSON(e){let n={};return e.signatures?n.signatures=e.signatures.map(t=>t?u.SignatureDescriptor.toJSON(t):void 0):n.signatures=[],n},fromPartial(e){let n=re();return n.signatures=e.signatures?.map(t=>u.SignatureDescriptor.fromPartial(t))||[],n}};function oe(){return{publicKey:void 0,data:void 0,sequence:BigInt(0)}}u.SignatureDescriptor={typeUrl:"/cosmos.tx.signing.v1beta1.SignatureDescriptor",encode(e,n=I.BinaryWriter.create()){return e.publicKey!==void 0&&G.Any.encode(e.publicKey,n.uint32(10).fork()).ldelim(),e.data!==void 0&&u.SignatureDescriptor_Data.encode(e.data,n.uint32(18).fork()).ldelim(),e.sequence!==BigInt(0)&&n.uint32(24).uint64(e.sequence),n},decode(e,n){let t=e instanceof I.BinaryReader?e:new I.BinaryReader(e),r=n===void 0?t.len:t.pos+n,i=oe();for(;t.pos<r;){let o=t.uint32();switch(o>>>3){case 1:i.publicKey=G.Any.decode(t,t.uint32());break;case 2:i.data=u.SignatureDescriptor_Data.decode(t,t.uint32());break;case 3:i.sequence=t.uint64();break;default:t.skipType(o&7);break}}return i},fromJSON(e){let n=oe();return(0,_.isSet)(e.publicKey)&&(n.publicKey=G.Any.fromJSON(e.publicKey)),(0,_.isSet)(e.data)&&(n.data=u.SignatureDescriptor_Data.fromJSON(e.data)),(0,_.isSet)(e.sequence)&&(n.sequence=BigInt(e.sequence.toString())),n},toJSON(e){let n={};return e.publicKey!==void 0&&(n.publicKey=e.publicKey?G.Any.toJSON(e.publicKey):void 0),e.data!==void 0&&(n.data=e.data?u.SignatureDescriptor_Data.toJSON(e.data):void 0),e.sequence!==void 0&&(n.sequence=(e.sequence||BigInt(0)).toString()),n},fromPartial(e){let n=oe();return e.publicKey!==void 0&&e.publicKey!==null&&(n.publicKey=G.Any.fromPartial(e.publicKey)),e.data!==void 0&&e.data!==null&&(n.data=u.SignatureDescriptor_Data.fromPartial(e.data)),e.sequence!==void 0&&e.sequence!==null&&(n.sequence=BigInt(e.sequence.toString())),n}};function ae(){return{single:void 0,multi:void 0}}u.SignatureDescriptor_Data={typeUrl:"/cosmos.tx.signing.v1beta1.Data",encode(e,n=I.BinaryWriter.create()){return e.single!==void 0&&u.SignatureDescriptor_Data_Single.encode(e.single,n.uint32(10).fork()).ldelim(),e.multi!==void 0&&u.SignatureDescriptor_Data_Multi.encode(e.multi,n.uint32(18).fork()).ldelim(),n},decode(e,n){let t=e instanceof I.BinaryReader?e:new I.BinaryReader(e),r=n===void 0?t.len:t.pos+n,i=ae();for(;t.pos<r;){let o=t.uint32();switch(o>>>3){case 1:i.single=u.SignatureDescriptor_Data_Single.decode(t,t.uint32());break;case 2:i.multi=u.SignatureDescriptor_Data_Multi.decode(t,t.uint32());break;default:t.skipType(o&7);break}}return i},fromJSON(e){let n=ae();return(0,_.isSet)(e.single)&&(n.single=u.SignatureDescriptor_Data_Single.fromJSON(e.single)),(0,_.isSet)(e.multi)&&(n.multi=u.SignatureDescriptor_Data_Multi.fromJSON(e.multi)),n},toJSON(e){let n={};return e.single!==void 0&&(n.single=e.single?u.SignatureDescriptor_Data_Single.toJSON(e.single):void 0),e.multi!==void 0&&(n.multi=e.multi?u.SignatureDescriptor_Data_Multi.toJSON(e.multi):void 0),n},fromPartial(e){let n=ae();return e.single!==void 0&&e.single!==null&&(n.single=u.SignatureDescriptor_Data_Single.fromPartial(e.single)),e.multi!==void 0&&e.multi!==null&&(n.multi=u.SignatureDescriptor_Data_Multi.fromPartial(e.multi)),n}};function se(){return{mode:0,signature:new Uint8Array}}u.SignatureDescriptor_Data_Single={typeUrl:"/cosmos.tx.signing.v1beta1.Single",encode(e,n=I.BinaryWriter.create()){return e.mode!==0&&n.uint32(8).int32(e.mode),e.signature.length!==0&&n.uint32(18).bytes(e.signature),n},decode(e,n){let t=e instanceof I.BinaryReader?e:new I.BinaryReader(e),r=n===void 0?t.len:t.pos+n,i=se();for(;t.pos<r;){let o=t.uint32();switch(o>>>3){case 1:i.mode=t.int32();break;case 2:i.signature=t.bytes();break;default:t.skipType(o&7);break}}return i},fromJSON(e){let n=se();return(0,_.isSet)(e.mode)&&(n.mode=Me(e.mode)),(0,_.isSet)(e.signature)&&(n.signature=(0,_.bytesFromBase64)(e.signature)),n},toJSON(e){let n={};return e.mode!==void 0&&(n.mode=Te(e.mode)),e.signature!==void 0&&(n.signature=(0,_.base64FromBytes)(e.signature!==void 0?e.signature:new Uint8Array)),n},fromPartial(e){let n=se();return n.mode=e.mode??0,n.signature=e.signature??new Uint8Array,n}};function ue(){return{bitarray:void 0,signatures:[]}}u.SignatureDescriptor_Data_Multi={typeUrl:"/cosmos.tx.signing.v1beta1.Multi",encode(e,n=I.BinaryWriter.create()){e.bitarray!==void 0&&q.CompactBitArray.encode(e.bitarray,n.uint32(10).fork()).ldelim();for(let t of e.signatures)u.SignatureDescriptor_Data.encode(t,n.uint32(18).fork()).ldelim();return n},decode(e,n){let t=e instanceof I.BinaryReader?e:new I.BinaryReader(e),r=n===void 0?t.len:t.pos+n,i=ue();for(;t.pos<r;){let o=t.uint32();switch(o>>>3){case 1:i.bitarray=q.CompactBitArray.decode(t,t.uint32());break;case 2:i.signatures.push(u.SignatureDescriptor_Data.decode(t,t.uint32()));break;default:t.skipType(o&7);break}}return i},fromJSON(e){let n=ue();return(0,_.isSet)(e.bitarray)&&(n.bitarray=q.CompactBitArray.fromJSON(e.bitarray)),Array.isArray(e?.signatures)&&(n.signatures=e.signatures.map(t=>u.SignatureDescriptor_Data.fromJSON(t))),n},toJSON(e){let n={};return e.bitarray!==void 0&&(n.bitarray=e.bitarray?q.CompactBitArray.toJSON(e.bitarray):void 0),e.signatures?n.signatures=e.signatures.map(t=>t?u.SignatureDescriptor_Data.toJSON(t):void 0):n.signatures=[],n},fromPartial(e){let n=ue();return e.bitarray!==void 0&&e.bitarray!==null&&(n.bitarray=q.CompactBitArray.fromPartial(e.bitarray)),n.signatures=e.signatures?.map(t=>u.SignatureDescriptor_Data.fromPartial(t))||[],n}}});var Pe=x(b=>{"use strict";S();g();Object.defineProperty(b,"__esModule",{value:!0});b.DecProto=b.IntProto=b.DecCoin=b.Coin=b.protobufPackage=void 0;var N=U(),v=P();b.protobufPackage="cosmos.base.v1beta1";function de(){return{denom:"",amount:""}}b.Coin={typeUrl:"/cosmos.base.v1beta1.Coin",encode(e,n=N.BinaryWriter.create()){return e.denom!==""&&n.uint32(10).string(e.denom),e.amount!==""&&n.uint32(18).string(e.amount),n},decode(e,n){let t=e instanceof N.BinaryReader?e:new N.BinaryReader(e),r=n===void 0?t.len:t.pos+n,i=de();for(;t.pos<r;){let o=t.uint32();switch(o>>>3){case 1:i.denom=t.string();break;case 2:i.amount=t.string();break;default:t.skipType(o&7);break}}return i},fromJSON(e){let n=de();return(0,v.isSet)(e.denom)&&(n.denom=String(e.denom)),(0,v.isSet)(e.amount)&&(n.amount=String(e.amount)),n},toJSON(e){let n={};return e.denom!==void 0&&(n.denom=e.denom),e.amount!==void 0&&(n.amount=e.amount),n},fromPartial(e){let n=de();return n.denom=e.denom??"",n.amount=e.amount??"",n}};function fe(){return{denom:"",amount:""}}b.DecCoin={typeUrl:"/cosmos.base.v1beta1.DecCoin",encode(e,n=N.BinaryWriter.create()){return e.denom!==""&&n.uint32(10).string(e.denom),e.amount!==""&&n.uint32(18).string(e.amount),n},decode(e,n){let t=e instanceof N.BinaryReader?e:new N.BinaryReader(e),r=n===void 0?t.len:t.pos+n,i=fe();for(;t.pos<r;){let o=t.uint32();switch(o>>>3){case 1:i.denom=t.string();break;case 2:i.amount=t.string();break;default:t.skipType(o&7);break}}return i},fromJSON(e){let n=fe();return(0,v.isSet)(e.denom)&&(n.denom=String(e.denom)),(0,v.isSet)(e.amount)&&(n.amount=String(e.amount)),n},toJSON(e){let n={};return e.denom!==void 0&&(n.denom=e.denom),e.amount!==void 0&&(n.amount=e.amount),n},fromPartial(e){let n=fe();return n.denom=e.denom??"",n.amount=e.amount??"",n}};function ce(){return{int:""}}b.IntProto={typeUrl:"/cosmos.base.v1beta1.IntProto",encode(e,n=N.BinaryWriter.create()){return e.int!==""&&n.uint32(10).string(e.int),n},decode(e,n){let t=e instanceof N.BinaryReader?e:new N.BinaryReader(e),r=n===void 0?t.len:t.pos+n,i=ce();for(;t.pos<r;){let o=t.uint32();switch(o>>>3){case 1:i.int=t.string();break;default:t.skipType(o&7);break}}return i},fromJSON(e){let n=ce();return(0,v.isSet)(e.int)&&(n.int=String(e.int)),n},toJSON(e){let n={};return e.int!==void 0&&(n.int=e.int),n},fromPartial(e){let n=ce();return n.int=e.int??"",n}};function le(){return{dec:""}}b.DecProto={typeUrl:"/cosmos.base.v1beta1.DecProto",encode(e,n=N.BinaryWriter.create()){return e.dec!==""&&n.uint32(10).string(e.dec),n},decode(e,n){let t=e instanceof N.BinaryReader?e:new N.BinaryReader(e),r=n===void 0?t.len:t.pos+n,i=le();for(;t.pos<r;){let o=t.uint32();switch(o>>>3){case 1:i.dec=t.string();break;default:t.skipType(o&7);break}}return i},fromJSON(e){let n=le();return(0,v.isSet)(e.dec)&&(n.dec=String(e.dec)),n},toJSON(e){let n={};return e.dec!==void 0&&(n.dec=e.dec),n},fromPartial(e){let n=le();return n.dec=e.dec??"",n}}});var gn=x(a=>{S();g();Object.defineProperty(a,"__esModule",{value:!0});a.AuxSignerData=a.Tip=a.Fee=a.ModeInfo_Multi=a.ModeInfo_Single=a.ModeInfo=a.SignerInfo=a.AuthInfo=a.TxBody=a.SignDocDirectAux=a.SignDoc=a.TxRaw=a.Tx=a.protobufPackage=void 0;var p=ee(),H=Ue(),K=ie(),D=Pe(),f=U(),s=P();a.protobufPackage="cosmos.tx.v1beta1";function ye(){return{body:void 0,authInfo:void 0,signatures:[]}}a.Tx={typeUrl:"/cosmos.tx.v1beta1.Tx",encode(e,n=f.BinaryWriter.create()){e.body!==void 0&&a.TxBody.encode(e.body,n.uint32(10).fork()).ldelim(),e.authInfo!==void 0&&a.AuthInfo.encode(e.authInfo,n.uint32(18).fork()).ldelim();for(let t of e.signatures)n.uint32(26).bytes(t);return n},decode(e,n){let t=e instanceof f.BinaryReader?e:new f.BinaryReader(e),r=n===void 0?t.len:t.pos+n,i=ye();for(;t.pos<r;){let o=t.uint32();switch(o>>>3){case 1:i.body=a.TxBody.decode(t,t.uint32());break;case 2:i.authInfo=a.AuthInfo.decode(t,t.uint32());break;case 3:i.signatures.push(t.bytes());break;default:t.skipType(o&7);break}}return i},fromJSON(e){let n=ye();return(0,s.isSet)(e.body)&&(n.body=a.TxBody.fromJSON(e.body)),(0,s.isSet)(e.authInfo)&&(n.authInfo=a.AuthInfo.fromJSON(e.authInfo)),Array.isArray(e?.signatures)&&(n.signatures=e.signatures.map(t=>(0,s.bytesFromBase64)(t))),n},toJSON(e){let n={};return e.body!==void 0&&(n.body=e.body?a.TxBody.toJSON(e.body):void 0),e.authInfo!==void 0&&(n.authInfo=e.authInfo?a.AuthInfo.toJSON(e.authInfo):void 0),e.signatures?n.signatures=e.signatures.map(t=>(0,s.base64FromBytes)(t!==void 0?t:new Uint8Array)):n.signatures=[],n},fromPartial(e){let n=ye();return e.body!==void 0&&e.body!==null&&(n.body=a.TxBody.fromPartial(e.body)),e.authInfo!==void 0&&e.authInfo!==null&&(n.authInfo=a.AuthInfo.fromPartial(e.authInfo)),n.signatures=e.signatures?.map(t=>t)||[],n}};function pe(){return{bodyBytes:new Uint8Array,authInfoBytes:new Uint8Array,signatures:[]}}a.TxRaw={typeUrl:"/cosmos.tx.v1beta1.TxRaw",encode(e,n=f.BinaryWriter.create()){e.bodyBytes.length!==0&&n.uint32(10).bytes(e.bodyBytes),e.authInfoBytes.length!==0&&n.uint32(18).bytes(e.authInfoBytes);for(let t of e.signatures)n.uint32(26).bytes(t);return n},decode(e,n){let t=e instanceof f.BinaryReader?e:new f.BinaryReader(e),r=n===void 0?t.len:t.pos+n,i=pe();for(;t.pos<r;){let o=t.uint32();switch(o>>>3){case 1:i.bodyBytes=t.bytes();break;case 2:i.authInfoBytes=t.bytes();break;case 3:i.signatures.push(t.bytes());break;default:t.skipType(o&7);break}}return i},fromJSON(e){let n=pe();return(0,s.isSet)(e.bodyBytes)&&(n.bodyBytes=(0,s.bytesFromBase64)(e.bodyBytes)),(0,s.isSet)(e.authInfoBytes)&&(n.authInfoBytes=(0,s.bytesFromBase64)(e.authInfoBytes)),Array.isArray(e?.signatures)&&(n.signatures=e.signatures.map(t=>(0,s.bytesFromBase64)(t))),n},toJSON(e){let n={};return e.bodyBytes!==void 0&&(n.bodyBytes=(0,s.base64FromBytes)(e.bodyBytes!==void 0?e.bodyBytes:new Uint8Array)),e.authInfoBytes!==void 0&&(n.authInfoBytes=(0,s.base64FromBytes)(e.authInfoBytes!==void 0?e.authInfoBytes:new Uint8Array)),e.signatures?n.signatures=e.signatures.map(t=>(0,s.base64FromBytes)(t!==void 0?t:new Uint8Array)):n.signatures=[],n},fromPartial(e){let n=pe();return n.bodyBytes=e.bodyBytes??new Uint8Array,n.authInfoBytes=e.authInfoBytes??new Uint8Array,n.signatures=e.signatures?.map(t=>t)||[],n}};function me(){return{bodyBytes:new Uint8Array,authInfoBytes:new Uint8Array,chainId:"",accountNumber:BigInt(0)}}a.SignDoc={typeUrl:"/cosmos.tx.v1beta1.SignDoc",encode(e,n=f.BinaryWriter.create()){return e.bodyBytes.length!==0&&n.uint32(10).bytes(e.bodyBytes),e.authInfoBytes.length!==0&&n.uint32(18).bytes(e.authInfoBytes),e.chainId!==""&&n.uint32(26).string(e.chainId),e.accountNumber!==BigInt(0)&&n.uint32(32).uint64(e.accountNumber),n},decode(e,n){let t=e instanceof f.BinaryReader?e:new f.BinaryReader(e),r=n===void 0?t.len:t.pos+n,i=me();for(;t.pos<r;){let o=t.uint32();switch(o>>>3){case 1:i.bodyBytes=t.bytes();break;case 2:i.authInfoBytes=t.bytes();break;case 3:i.chainId=t.string();break;case 4:i.accountNumber=t.uint64();break;default:t.skipType(o&7);break}}return i},fromJSON(e){let n=me();return(0,s.isSet)(e.bodyBytes)&&(n.bodyBytes=(0,s.bytesFromBase64)(e.bodyBytes)),(0,s.isSet)(e.authInfoBytes)&&(n.authInfoBytes=(0,s.bytesFromBase64)(e.authInfoBytes)),(0,s.isSet)(e.chainId)&&(n.chainId=String(e.chainId)),(0,s.isSet)(e.accountNumber)&&(n.accountNumber=BigInt(e.accountNumber.toString())),n},toJSON(e){let n={};return e.bodyBytes!==void 0&&(n.bodyBytes=(0,s.base64FromBytes)(e.bodyBytes!==void 0?e.bodyBytes:new Uint8Array)),e.authInfoBytes!==void 0&&(n.authInfoBytes=(0,s.base64FromBytes)(e.authInfoBytes!==void 0?e.authInfoBytes:new Uint8Array)),e.chainId!==void 0&&(n.chainId=e.chainId),e.accountNumber!==void 0&&(n.accountNumber=(e.accountNumber||BigInt(0)).toString()),n},fromPartial(e){let n=me();return n.bodyBytes=e.bodyBytes??new Uint8Array,n.authInfoBytes=e.authInfoBytes??new Uint8Array,n.chainId=e.chainId??"",e.accountNumber!==void 0&&e.accountNumber!==null&&(n.accountNumber=BigInt(e.accountNumber.toString())),n}};function he(){return{bodyBytes:new Uint8Array,publicKey:void 0,chainId:"",accountNumber:BigInt(0),sequence:BigInt(0),tip:void 0}}a.SignDocDirectAux={typeUrl:"/cosmos.tx.v1beta1.SignDocDirectAux",encode(e,n=f.BinaryWriter.create()){return e.bodyBytes.length!==0&&n.uint32(10).bytes(e.bodyBytes),e.publicKey!==void 0&&p.Any.encode(e.publicKey,n.uint32(18).fork()).ldelim(),e.chainId!==""&&n.uint32(26).string(e.chainId),e.accountNumber!==BigInt(0)&&n.uint32(32).uint64(e.accountNumber),e.sequence!==BigInt(0)&&n.uint32(40).uint64(e.sequence),e.tip!==void 0&&a.Tip.encode(e.tip,n.uint32(50).fork()).ldelim(),n},decode(e,n){let t=e instanceof f.BinaryReader?e:new f.BinaryReader(e),r=n===void 0?t.len:t.pos+n,i=he();for(;t.pos<r;){let o=t.uint32();switch(o>>>3){case 1:i.bodyBytes=t.bytes();break;case 2:i.publicKey=p.Any.decode(t,t.uint32());break;case 3:i.chainId=t.string();break;case 4:i.accountNumber=t.uint64();break;case 5:i.sequence=t.uint64();break;case 6:i.tip=a.Tip.decode(t,t.uint32());break;default:t.skipType(o&7);break}}return i},fromJSON(e){let n=he();return(0,s.isSet)(e.bodyBytes)&&(n.bodyBytes=(0,s.bytesFromBase64)(e.bodyBytes)),(0,s.isSet)(e.publicKey)&&(n.publicKey=p.Any.fromJSON(e.publicKey)),(0,s.isSet)(e.chainId)&&(n.chainId=String(e.chainId)),(0,s.isSet)(e.accountNumber)&&(n.accountNumber=BigInt(e.accountNumber.toString())),(0,s.isSet)(e.sequence)&&(n.sequence=BigInt(e.sequence.toString())),(0,s.isSet)(e.tip)&&(n.tip=a.Tip.fromJSON(e.tip)),n},toJSON(e){let n={};return e.bodyBytes!==void 0&&(n.bodyBytes=(0,s.base64FromBytes)(e.bodyBytes!==void 0?e.bodyBytes:new Uint8Array)),e.publicKey!==void 0&&(n.publicKey=e.publicKey?p.Any.toJSON(e.publicKey):void 0),e.chainId!==void 0&&(n.chainId=e.chainId),e.accountNumber!==void 0&&(n.accountNumber=(e.accountNumber||BigInt(0)).toString()),e.sequence!==void 0&&(n.sequence=(e.sequence||BigInt(0)).toString()),e.tip!==void 0&&(n.tip=e.tip?a.Tip.toJSON(e.tip):void 0),n},fromPartial(e){let n=he();return n.bodyBytes=e.bodyBytes??new Uint8Array,e.publicKey!==void 0&&e.publicKey!==null&&(n.publicKey=p.Any.fromPartial(e.publicKey)),n.chainId=e.chainId??"",e.accountNumber!==void 0&&e.accountNumber!==null&&(n.accountNumber=BigInt(e.accountNumber.toString())),e.sequence!==void 0&&e.sequence!==null&&(n.sequence=BigInt(e.sequence.toString())),e.tip!==void 0&&e.tip!==null&&(n.tip=a.Tip.fromPartial(e.tip)),n}};function Se(){return{messages:[],memo:"",timeoutHeight:BigInt(0),extensionOptions:[],nonCriticalExtensionOptions:[]}}a.TxBody={typeUrl:"/cosmos.tx.v1beta1.TxBody",encode(e,n=f.BinaryWriter.create()){for(let t of e.messages)p.Any.encode(t,n.uint32(10).fork()).ldelim();e.memo!==""&&n.uint32(18).string(e.memo),e.timeoutHeight!==BigInt(0)&&n.uint32(24).uint64(e.timeoutHeight);for(let t of e.extensionOptions)p.Any.encode(t,n.uint32(8186).fork()).ldelim();for(let t of e.nonCriticalExtensionOptions)p.Any.encode(t,n.uint32(16378).fork()).ldelim();return n},decode(e,n){let t=e instanceof f.BinaryReader?e:new f.BinaryReader(e),r=n===void 0?t.len:t.pos+n,i=Se();for(;t.pos<r;){let o=t.uint32();switch(o>>>3){case 1:i.messages.push(p.Any.decode(t,t.uint32()));break;case 2:i.memo=t.string();break;case 3:i.timeoutHeight=t.uint64();break;case 1023:i.extensionOptions.push(p.Any.decode(t,t.uint32()));break;case 2047:i.nonCriticalExtensionOptions.push(p.Any.decode(t,t.uint32()));break;default:t.skipType(o&7);break}}return i},fromJSON(e){let n=Se();return Array.isArray(e?.messages)&&(n.messages=e.messages.map(t=>p.Any.fromJSON(t))),(0,s.isSet)(e.memo)&&(n.memo=String(e.memo)),(0,s.isSet)(e.timeoutHeight)&&(n.timeoutHeight=BigInt(e.timeoutHeight.toString())),Array.isArray(e?.extensionOptions)&&(n.extensionOptions=e.extensionOptions.map(t=>p.Any.fromJSON(t))),Array.isArray(e?.nonCriticalExtensionOptions)&&(n.nonCriticalExtensionOptions=e.nonCriticalExtensionOptions.map(t=>p.Any.fromJSON(t))),n},toJSON(e){let n={};return e.messages?n.messages=e.messages.map(t=>t?p.Any.toJSON(t):void 0):n.messages=[],e.memo!==void 0&&(n.memo=e.memo),e.timeoutHeight!==void 0&&(n.timeoutHeight=(e.timeoutHeight||BigInt(0)).toString()),e.extensionOptions?n.extensionOptions=e.extensionOptions.map(t=>t?p.Any.toJSON(t):void 0):n.extensionOptions=[],e.nonCriticalExtensionOptions?n.nonCriticalExtensionOptions=e.nonCriticalExtensionOptions.map(t=>t?p.Any.toJSON(t):void 0):n.nonCriticalExtensionOptions=[],n},fromPartial(e){let n=Se();return n.messages=e.messages?.map(t=>p.Any.fromPartial(t))||[],n.memo=e.memo??"",e.timeoutHeight!==void 0&&e.timeoutHeight!==null&&(n.timeoutHeight=BigInt(e.timeoutHeight.toString())),n.extensionOptions=e.extensionOptions?.map(t=>p.Any.fromPartial(t))||[],n.nonCriticalExtensionOptions=e.nonCriticalExtensionOptions?.map(t=>p.Any.fromPartial(t))||[],n}};function ge(){return{signerInfos:[],fee:void 0,tip:void 0}}a.AuthInfo={typeUrl:"/cosmos.tx.v1beta1.AuthInfo",encode(e,n=f.BinaryWriter.create()){for(let t of e.signerInfos)a.SignerInfo.encode(t,n.uint32(10).fork()).ldelim();return e.fee!==void 0&&a.Fee.encode(e.fee,n.uint32(18).fork()).ldelim(),e.tip!==void 0&&a.Tip.encode(e.tip,n.uint32(26).fork()).ldelim(),n},decode(e,n){let t=e instanceof f.BinaryReader?e:new f.BinaryReader(e),r=n===void 0?t.len:t.pos+n,i=ge();for(;t.pos<r;){let o=t.uint32();switch(o>>>3){case 1:i.signerInfos.push(a.SignerInfo.decode(t,t.uint32()));break;case 2:i.fee=a.Fee.decode(t,t.uint32());break;case 3:i.tip=a.Tip.decode(t,t.uint32());break;default:t.skipType(o&7);break}}return i},fromJSON(e){let n=ge();return Array.isArray(e?.signerInfos)&&(n.signerInfos=e.signerInfos.map(t=>a.SignerInfo.fromJSON(t))),(0,s.isSet)(e.fee)&&(n.fee=a.Fee.fromJSON(e.fee)),(0,s.isSet)(e.tip)&&(n.tip=a.Tip.fromJSON(e.tip)),n},toJSON(e){let n={};return e.signerInfos?n.signerInfos=e.signerInfos.map(t=>t?a.SignerInfo.toJSON(t):void 0):n.signerInfos=[],e.fee!==void 0&&(n.fee=e.fee?a.Fee.toJSON(e.fee):void 0),e.tip!==void 0&&(n.tip=e.tip?a.Tip.toJSON(e.tip):void 0),n},fromPartial(e){let n=ge();return n.signerInfos=e.signerInfos?.map(t=>a.SignerInfo.fromPartial(t))||[],e.fee!==void 0&&e.fee!==null&&(n.fee=a.Fee.fromPartial(e.fee)),e.tip!==void 0&&e.tip!==null&&(n.tip=a.Tip.fromPartial(e.tip)),n}};function Be(){return{publicKey:void 0,modeInfo:void 0,sequence:BigInt(0)}}a.SignerInfo={typeUrl:"/cosmos.tx.v1beta1.SignerInfo",encode(e,n=f.BinaryWriter.create()){return e.publicKey!==void 0&&p.Any.encode(e.publicKey,n.uint32(10).fork()).ldelim(),e.modeInfo!==void 0&&a.ModeInfo.encode(e.modeInfo,n.uint32(18).fork()).ldelim(),e.sequence!==BigInt(0)&&n.uint32(24).uint64(e.sequence),n},decode(e,n){let t=e instanceof f.BinaryReader?e:new f.BinaryReader(e),r=n===void 0?t.len:t.pos+n,i=Be();for(;t.pos<r;){let o=t.uint32();switch(o>>>3){case 1:i.publicKey=p.Any.decode(t,t.uint32());break;case 2:i.modeInfo=a.ModeInfo.decode(t,t.uint32());break;case 3:i.sequence=t.uint64();break;default:t.skipType(o&7);break}}return i},fromJSON(e){let n=Be();return(0,s.isSet)(e.publicKey)&&(n.publicKey=p.Any.fromJSON(e.publicKey)),(0,s.isSet)(e.modeInfo)&&(n.modeInfo=a.ModeInfo.fromJSON(e.modeInfo)),(0,s.isSet)(e.sequence)&&(n.sequence=BigInt(e.sequence.toString())),n},toJSON(e){let n={};return e.publicKey!==void 0&&(n.publicKey=e.publicKey?p.Any.toJSON(e.publicKey):void 0),e.modeInfo!==void 0&&(n.modeInfo=e.modeInfo?a.ModeInfo.toJSON(e.modeInfo):void 0),e.sequence!==void 0&&(n.sequence=(e.sequence||BigInt(0)).toString()),n},fromPartial(e){let n=Be();return e.publicKey!==void 0&&e.publicKey!==null&&(n.publicKey=p.Any.fromPartial(e.publicKey)),e.modeInfo!==void 0&&e.modeInfo!==null&&(n.modeInfo=a.ModeInfo.fromPartial(e.modeInfo)),e.sequence!==void 0&&e.sequence!==null&&(n.sequence=BigInt(e.sequence.toString())),n}};function Ie(){return{single:void 0,multi:void 0}}a.ModeInfo={typeUrl:"/cosmos.tx.v1beta1.ModeInfo",encode(e,n=f.BinaryWriter.create()){return e.single!==void 0&&a.ModeInfo_Single.encode(e.single,n.uint32(10).fork()).ldelim(),e.multi!==void 0&&a.ModeInfo_Multi.encode(e.multi,n.uint32(18).fork()).ldelim(),n},decode(e,n){let t=e instanceof f.BinaryReader?e:new f.BinaryReader(e),r=n===void 0?t.len:t.pos+n,i=Ie();for(;t.pos<r;){let o=t.uint32();switch(o>>>3){case 1:i.single=a.ModeInfo_Single.decode(t,t.uint32());break;case 2:i.multi=a.ModeInfo_Multi.decode(t,t.uint32());break;default:t.skipType(o&7);break}}return i},fromJSON(e){let n=Ie();return(0,s.isSet)(e.single)&&(n.single=a.ModeInfo_Single.fromJSON(e.single)),(0,s.isSet)(e.multi)&&(n.multi=a.ModeInfo_Multi.fromJSON(e.multi)),n},toJSON(e){let n={};return e.single!==void 0&&(n.single=e.single?a.ModeInfo_Single.toJSON(e.single):void 0),e.multi!==void 0&&(n.multi=e.multi?a.ModeInfo_Multi.toJSON(e.multi):void 0),n},fromPartial(e){let n=Ie();return e.single!==void 0&&e.single!==null&&(n.single=a.ModeInfo_Single.fromPartial(e.single)),e.multi!==void 0&&e.multi!==null&&(n.multi=a.ModeInfo_Multi.fromPartial(e.multi)),n}};function be(){return{mode:0}}a.ModeInfo_Single={typeUrl:"/cosmos.tx.v1beta1.Single",encode(e,n=f.BinaryWriter.create()){return e.mode!==0&&n.uint32(8).int32(e.mode),n},decode(e,n){let t=e instanceof f.BinaryReader?e:new f.BinaryReader(e),r=n===void 0?t.len:t.pos+n,i=be();for(;t.pos<r;){let o=t.uint32();switch(o>>>3){case 1:i.mode=t.int32();break;default:t.skipType(o&7);break}}return i},fromJSON(e){let n=be();return(0,s.isSet)(e.mode)&&(n.mode=(0,H.signModeFromJSON)(e.mode)),n},toJSON(e){let n={};return e.mode!==void 0&&(n.mode=(0,H.signModeToJSON)(e.mode)),n},fromPartial(e){let n=be();return n.mode=e.mode??0,n}};function Ne(){return{bitarray:void 0,modeInfos:[]}}a.ModeInfo_Multi={typeUrl:"/cosmos.tx.v1beta1.Multi",encode(e,n=f.BinaryWriter.create()){e.bitarray!==void 0&&K.CompactBitArray.encode(e.bitarray,n.uint32(10).fork()).ldelim();for(let t of e.modeInfos)a.ModeInfo.encode(t,n.uint32(18).fork()).ldelim();return n},decode(e,n){let t=e instanceof f.BinaryReader?e:new f.BinaryReader(e),r=n===void 0?t.len:t.pos+n,i=Ne();for(;t.pos<r;){let o=t.uint32();switch(o>>>3){case 1:i.bitarray=K.CompactBitArray.decode(t,t.uint32());break;case 2:i.modeInfos.push(a.ModeInfo.decode(t,t.uint32()));break;default:t.skipType(o&7);break}}return i},fromJSON(e){let n=Ne();return(0,s.isSet)(e.bitarray)&&(n.bitarray=K.CompactBitArray.fromJSON(e.bitarray)),Array.isArray(e?.modeInfos)&&(n.modeInfos=e.modeInfos.map(t=>a.ModeInfo.fromJSON(t))),n},toJSON(e){let n={};return e.bitarray!==void 0&&(n.bitarray=e.bitarray?K.CompactBitArray.toJSON(e.bitarray):void 0),e.modeInfos?n.modeInfos=e.modeInfos.map(t=>t?a.ModeInfo.toJSON(t):void 0):n.modeInfos=[],n},fromPartial(e){let n=Ne();return e.bitarray!==void 0&&e.bitarray!==null&&(n.bitarray=K.CompactBitArray.fromPartial(e.bitarray)),n.modeInfos=e.modeInfos?.map(t=>a.ModeInfo.fromPartial(t))||[],n}};function Oe(){return{amount:[],gasLimit:BigInt(0),payer:"",granter:""}}a.Fee={typeUrl:"/cosmos.tx.v1beta1.Fee",encode(e,n=f.BinaryWriter.create()){for(let t of e.amount)D.Coin.encode(t,n.uint32(10).fork()).ldelim();return e.gasLimit!==BigInt(0)&&n.uint32(16).uint64(e.gasLimit),e.payer!==""&&n.uint32(26).string(e.payer),e.granter!==""&&n.uint32(34).string(e.granter),n},decode(e,n){let t=e instanceof f.BinaryReader?e:new f.BinaryReader(e),r=n===void 0?t.len:t.pos+n,i=Oe();for(;t.pos<r;){let o=t.uint32();switch(o>>>3){case 1:i.amount.push(D.Coin.decode(t,t.uint32()));break;case 2:i.gasLimit=t.uint64();break;case 3:i.payer=t.string();break;case 4:i.granter=t.string();break;default:t.skipType(o&7);break}}return i},fromJSON(e){let n=Oe();return Array.isArray(e?.amount)&&(n.amount=e.amount.map(t=>D.Coin.fromJSON(t))),(0,s.isSet)(e.gasLimit)&&(n.gasLimit=BigInt(e.gasLimit.toString())),(0,s.isSet)(e.payer)&&(n.payer=String(e.payer)),(0,s.isSet)(e.granter)&&(n.granter=String(e.granter)),n},toJSON(e){let n={};return e.amount?n.amount=e.amount.map(t=>t?D.Coin.toJSON(t):void 0):n.amount=[],e.gasLimit!==void 0&&(n.gasLimit=(e.gasLimit||BigInt(0)).toString()),e.payer!==void 0&&(n.payer=e.payer),e.granter!==void 0&&(n.granter=e.granter),n},fromPartial(e){let n=Oe();return n.amount=e.amount?.map(t=>D.Coin.fromPartial(t))||[],e.gasLimit!==void 0&&e.gasLimit!==null&&(n.gasLimit=BigInt(e.gasLimit.toString())),n.payer=e.payer??"",n.granter=e.granter??"",n}};function _e(){return{amount:[],tipper:""}}a.Tip={typeUrl:"/cosmos.tx.v1beta1.Tip",encode(e,n=f.BinaryWriter.create()){for(let t of e.amount)D.Coin.encode(t,n.uint32(10).fork()).ldelim();return e.tipper!==""&&n.uint32(18).string(e.tipper),n},decode(e,n){let t=e instanceof f.BinaryReader?e:new f.BinaryReader(e),r=n===void 0?t.len:t.pos+n,i=_e();for(;t.pos<r;){let o=t.uint32();switch(o>>>3){case 1:i.amount.push(D.Coin.decode(t,t.uint32()));break;case 2:i.tipper=t.string();break;default:t.skipType(o&7);break}}return i},fromJSON(e){let n=_e();return Array.isArray(e?.amount)&&(n.amount=e.amount.map(t=>D.Coin.fromJSON(t))),(0,s.isSet)(e.tipper)&&(n.tipper=String(e.tipper)),n},toJSON(e){let n={};return e.amount?n.amount=e.amount.map(t=>t?D.Coin.toJSON(t):void 0):n.amount=[],e.tipper!==void 0&&(n.tipper=e.tipper),n},fromPartial(e){let n=_e();return n.amount=e.amount?.map(t=>D.Coin.fromPartial(t))||[],n.tipper=e.tipper??"",n}};function De(){return{address:"",signDoc:void 0,mode:0,sig:new Uint8Array}}a.AuxSignerData={typeUrl:"/cosmos.tx.v1beta1.AuxSignerData",encode(e,n=f.BinaryWriter.create()){return e.address!==""&&n.uint32(10).string(e.address),e.signDoc!==void 0&&a.SignDocDirectAux.encode(e.signDoc,n.uint32(18).fork()).ldelim(),e.mode!==0&&n.uint32(24).int32(e.mode),e.sig.length!==0&&n.uint32(34).bytes(e.sig),n},decode(e,n){let t=e instanceof f.BinaryReader?e:new f.BinaryReader(e),r=n===void 0?t.len:t.pos+n,i=De();for(;t.pos<r;){let o=t.uint32();switch(o>>>3){case 1:i.address=t.string();break;case 2:i.signDoc=a.SignDocDirectAux.decode(t,t.uint32());break;case 3:i.mode=t.int32();break;case 4:i.sig=t.bytes();break;default:t.skipType(o&7);break}}return i},fromJSON(e){let n=De();return(0,s.isSet)(e.address)&&(n.address=String(e.address)),(0,s.isSet)(e.signDoc)&&(n.signDoc=a.SignDocDirectAux.fromJSON(e.signDoc)),(0,s.isSet)(e.mode)&&(n.mode=(0,H.signModeFromJSON)(e.mode)),(0,s.isSet)(e.sig)&&(n.sig=(0,s.bytesFromBase64)(e.sig)),n},toJSON(e){let n={};return e.address!==void 0&&(n.address=e.address),e.signDoc!==void 0&&(n.signDoc=e.signDoc?a.SignDocDirectAux.toJSON(e.signDoc):void 0),e.mode!==void 0&&(n.mode=(0,H.signModeToJSON)(e.mode)),e.sig!==void 0&&(n.sig=(0,s.base64FromBytes)(e.sig!==void 0?e.sig:new Uint8Array)),n},fromPartial(e){let n=De();return n.address=e.address??"",e.signDoc!==void 0&&e.signDoc!==null&&(n.signDoc=a.SignDocDirectAux.fromPartial(e.signDoc)),n.mode=e.mode??0,n.sig=e.sig??new Uint8Array,n}}});export default gn();
|
|
|
|
window.inOKXExtension = true;
|
|
window.inMiniApp = false;
|
|
window.ASSETS_BUILD_TYPE = "publish";
|
|
|
|
//# sourceMappingURL=tx-A3TZ6IAS.js.map
|