@bufbuild/protobuf 0.0.7 → 0.0.8
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/cjs/google/protobuf/struct_pb.js +1 -1
- package/dist/cjs/google/protobuf/type_pb.js +1 -1
- package/dist/esm/google/protobuf/struct_pb.js +1 -1
- package/dist/esm/google/protobuf/type_pb.js +1 -1
- package/dist/protobuf.cjs +2 -0
- package/dist/protobuf.cjs.map +1 -0
- package/dist/protobuf.esm.js +2 -0
- package/dist/protobuf.esm.js.map +1 -0
- package/dist/protobuf.modern.js +2 -0
- package/dist/protobuf.modern.js.map +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function e(){return e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.apply(this,arguments)}function t(e,t){if(!e)throw new Error(t)}function n(e){if("number"!=typeof e)throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>2147483647||e<-2147483648)throw new Error("invalid int 32: "+e)}function r(e){if("number"!=typeof e)throw new Error("invalid uint 32: "+typeof e);if(!Number.isInteger(e)||e>4294967295||e<0)throw new Error("invalid uint 32: "+e)}function s(e){if("number"!=typeof e)throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>34028234663852886e22||e<-34028234663852886e22))throw new Error("invalid float 32: "+e)}const o=Symbol("@bufbuild/protobuf/enum-type");function i(e){const n=e[o];return t(n,"missing enum type on enum object"),n}function a(e,t,n){e[o]=u(t,n)}function u(e,t){const n=Object.create(null),r=Object.create(null),s=[];for(const e of t)s.push(e),n[e.name]=e,r[e.no]=e;return{typeName:e,values:s,findName:e=>n[e],findNumber:e=>r[e]}}function l(e,t,n){const r={};for(const e of t){const t=c(e,null==n?void 0:n.sharedPrefix);r[t]=e.no,r[e.no]=t}return a(r,e,t),r}function c(e,t){return void 0===t?e.name:e.name.startsWith(t)?e.name.substring(t.length):e.name}class m{equals(e){return this.getType().runtime.util.equals(this.getType(),this,e)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(e,t){const n=this.getType().runtime.bin,r=n.makeReadOptions(t);return n.readMessage(this,r.readerFactory(e),e.byteLength,r),this}fromJson(e,t){const n=this.getType(),r=n.runtime.json,s=r.makeReadOptions(t);return r.readMessage(n,e,s,this),this}fromJsonString(e,t){return this.fromJson(JSON.parse(e),t)}toBinary(e){const t=this.getType().runtime.bin,n=t.makeWriteOptions(e),r=n.writerFactory();return t.writeMessage(this,r,n),r.finish()}toJson(e){const t=this.getType().runtime.json,n=t.makeWriteOptions(e);return t.writeMessage(this,n)}toJsonString(e){var t;const n=this.toJson(e);return JSON.stringify(n,null,null!=(t=null==e?void 0:e.prettySpaces)?t:0)}getType(){return Object.getPrototypeOf(this).constructor}}function f(e,t,n,r){return{syntax:e,json:t,bin:n,util:r,makeMessageType(e,t,n){return function(e,t,n,r){var s;const o=null!=(s=null==r?void 0:r.localName)?s:t.substring(t.lastIndexOf(".")+1),i={[o]:function(t){e.util.initFields(this),e.util.initPartial(t,this)}}[o];return Object.setPrototypeOf(i.prototype,new m),Object.assign(i,{runtime:e,typeName:t,fields:e.util.newFieldList(n),fromBinary:(e,t)=>(new i).fromBinary(e,t),fromJson:(e,t)=>(new i).fromJson(e,t),fromJsonString:(e,t)=>(new i).fromJsonString(e,t),equals:(t,n)=>e.util.equals(i,t,n)}),i}(this,e,t,n)},makeEnum:l,makeEnumType:u,getEnumType:i}}var d;function p(){let e=0,t=0;for(let n=0;n<28;n+=7){let r=this.buf[this.pos++];if(e|=(127&r)<<n,0==(128&r))return this.assertBounds(),[e,t]}let n=this.buf[this.pos++];if(e|=(15&n)<<28,t=(112&n)>>4,0==(128&n))return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let r=this.buf[this.pos++];if(t|=(127&r)<<n,0==(128&r))return this.assertBounds(),[e,t]}throw new Error("invalid varint")}function h(e,t,n){for(let r=0;r<28;r+=7){const s=e>>>r,o=!(s>>>7==0&&0==t);if(n.push(255&(o?128|s:s)),!o)return}const r=e>>>28&15|(7&t)<<4,s=!(t>>3==0);if(n.push(255&(s?128|r:r)),s){for(let e=3;e<31;e+=7){const r=t>>>e,s=!(r>>>7==0);if(n.push(255&(s?128|r:r)),!s)return}n.push(t>>>31&1)}}function g(e){let t="-"==e[0];t&&(e=e.slice(1));const n=1e6;let r=0,s=0;function o(t,o){const i=Number(e.slice(t,o));s*=n,r=r*n+i,r>=4294967296&&(s+=r/4294967296|0,r%=4294967296)}return o(-24,-18),o(-18,-12),o(-12,-6),o(-6),[t,r,s]}function T(e,t){if(t<=2097151)return""+(4294967296*t+e);let n=(e>>>24|t<<8)>>>0&16777215,r=t>>16&65535,s=(16777215&e)+6777216*n+6710656*r,o=n+8147497*r,i=2*r,a=1e7;function u(e,t){let n=e?String(e):"";return t?"0000000".slice(n.length)+n:n}return s>=a&&(o+=Math.floor(s/a),s%=a),o>=a&&(i+=Math.floor(o/a),o%=a),u(i,0)+u(o,i)+u(s,1)}function y(e,t){if(e>=0){for(;e>127;)t.push(127&e|128),e>>>=7;t.push(e)}else{for(let n=0;n<9;n++)t.push(127&e|128),e>>=7;t.push(1)}}function w(){let e=this.buf[this.pos++],t=127&e;if(0==(128&e))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(127&e)<<7,0==(128&e))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(127&e)<<14,0==(128&e))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(127&e)<<21,0==(128&e))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(15&e)<<28;for(let t=5;0!=(128&e)&&t<10;t++)e=this.buf[this.pos++];if(0!=(128&e))throw new Error("invalid varint");return this.assertBounds(),t>>>0}!function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"}(d||(d={}));const v=function(){const e=new DataView(new ArrayBuffer(8));if(void 0!==globalThis.BigInt&&"function"==typeof e.getBigInt64&&"function"==typeof e.getBigUint64&&"function"==typeof e.setBigInt64&&"function"==typeof e.setBigUint64){const t=BigInt("-9223372036854775808"),n=BigInt("9223372036854775807"),r=BigInt("0"),s=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(e){const r="bigint"==typeof e?e:BigInt(e);if(r>n||r<t)throw new Error(`int64 invalid: ${e}`);return r},uParse(e){const t="bigint"==typeof e?e:BigInt(e);if(t>s||t<r)throw new Error(`uint64 invalid: ${e}`);return t},enc(t){return e.setBigInt64(0,this.parse(t),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(t){return e.setBigInt64(0,this.uParse(t),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec:(t,n)=>(e.setInt32(0,t,!0),e.setInt32(4,n,!0),e.getBigInt64(0,!0)),uDec:(t,n)=>(e.setInt32(0,t,!0),e.setInt32(4,n,!0),e.getBigUint64(0,!0))}}return{zero:"0",supported:!1,parse(e){if(!/^-?[0-9]+$/.test(e))throw new Error(`int64 invalid: ${e}`);return e},uParse(e){if(!/^-?[0-9]+$/.test(e))throw new Error(`uint64 invalid: ${e}`);return e},enc(e){if("string"==typeof e){if(!/^-?[0-9]+$/.test(e))throw new Error(`int64 invalid: ${e}`)}else e=e.toString(10);const[,t,n]=g(e);return{lo:t,hi:n}},uEnc(e){if("string"==typeof e){if(!/^-?[0-9]+$/.test(e))throw new Error(`uint64 invalid: ${e}`)}else e=e.toString(10);const[t,n,r]=g(e);if(t)throw new Error(`uint64 invalid: ${e}`);return{lo:n,hi:r}},dec:(e,t)=>0!=(2147483648&t)?(t=~t,e?e=1+~e:t+=1,"-"+T(e,t)):T(e,t),uDec:(e,t)=>T(e,t)}}();var N;!function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"}(N||(N={}));class b{constructor(e){this.chunks=void 0,this.buf=void 0,this.stack=[],this.textEncoder=void 0,this.textEncoder=null!=e?e:new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let t=0;t<this.chunks.length;t++)e+=this.chunks[t].length;let t=new Uint8Array(e),n=0;for(let e=0;e<this.chunks.length;e++)t.set(this.chunks[e],n),n+=this.chunks[e].length;return this.chunks=[],t}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let e=this.finish(),t=this.stack.pop();if(!t)throw new Error("invalid state, fork stack empty");return this.chunks=t.chunks,this.buf=t.buf,this.uint32(e.byteLength),this.raw(e)}tag(e,t){return this.uint32((e<<3|t)>>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(r(e);e>127;)this.buf.push(127&e|128),e>>>=7;return this.buf.push(e),this}int32(e){return n(e),y(e,this.buf),this}bool(e){return this.buf.push(e?1:0),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let t=this.textEncoder.encode(e);return this.uint32(t.byteLength),this.raw(t)}float(e){s(e);let t=new Uint8Array(4);return new DataView(t.buffer).setFloat32(0,e,!0),this.raw(t)}double(e){let t=new Uint8Array(8);return new DataView(t.buffer).setFloat64(0,e,!0),this.raw(t)}fixed32(e){r(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){n(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return n(e),y(e=(e<<1^e>>31)>>>0,this.buf),this}sfixed64(e){let t=new Uint8Array(8),n=new DataView(t.buffer),r=v.enc(e);return n.setInt32(0,r.lo,!0),n.setInt32(4,r.hi,!0),this.raw(t)}fixed64(e){let t=new Uint8Array(8),n=new DataView(t.buffer),r=v.uEnc(e);return n.setInt32(0,r.lo,!0),n.setInt32(4,r.hi,!0),this.raw(t)}int64(e){let t=v.enc(e);return h(t.lo,t.hi,this.buf),this}sint64(e){let t=v.enc(e),n=t.hi>>31;return h(t.lo<<1^n,(t.hi<<1|t.lo>>>31)^n,this.buf),this}uint64(e){let t=v.uEnc(e);return h(t.lo,t.hi,this.buf),this}}class k{constructor(e,t){this.pos=void 0,this.len=void 0,this.buf=void 0,this.view=void 0,this.textDecoder=void 0,this.varint64=p,this.uint32=w,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.textDecoder=null!=t?t:new TextDecoder}tag(){let e=this.uint32(),t=e>>>3,n=7&e;if(t<=0||n<0||n>5)throw new Error("illegal tag: field no "+t+" wire type "+n);return[t,n]}skip(e){let t=this.pos;switch(e){case N.Varint:for(;128&this.buf[this.pos++];);break;case N.Bit64:this.pos+=4;case N.Bit32:this.pos+=4;break;case N.LengthDelimited:let t=this.uint32();this.pos+=t;break;case N.StartGroup:let n;for(;(n=this.tag()[1])!==N.EndGroup;)this.skip(n);break;default:throw new Error("cant skip wire type "+e)}return this.assertBounds(),this.buf.subarray(t,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return 0|this.uint32()}sint32(){let e=this.uint32();return e>>>1^-(1&e)}int64(){return v.dec(...this.varint64())}uint64(){return v.uDec(...this.varint64())}sint64(){let[e,t]=this.varint64(),n=-(1&e);return e=(e>>>1|(1&t)<<31)^n,t=t>>>1^n,v.dec(e,t)}bool(){let[e,t]=this.varint64();return 0!==e||0!==t}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return v.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return v.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),t=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}string(){return this.textDecoder.decode(this.bytes())}}function E(e,t){if(t instanceof e)return t;if(e.fieldWrapper)return e.fieldWrapper.wrapField(t);throw new Error(`cannot unwrap field value, ${e.typeName} does not define a field wrapper`)}function S(e,t){return e.fieldWrapper?e.fieldWrapper.unwrapField(t):t}function I(e,t,n){if(t===n)return!0;if(e==d.BYTES){if(!(t instanceof Uint8Array&&n instanceof Uint8Array))return!1;if(t.length!==n.length)return!1;for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0}switch(e){case d.UINT64:case d.FIXED64:case d.INT64:case d.SFIXED64:case d.SINT64:return t==n}return!1}function J(e){switch(e){case d.BOOL:return!1;case d.UINT64:case d.FIXED64:case d.INT64:case d.SFIXED64:case d.SINT64:return v.zero;case d.DOUBLE:case d.FLOAT:return 0;case d.BYTES:return new Uint8Array(0);case d.STRING:return"";default:return 0}}function O(e,t){const n=void 0===t;let r=N.Varint,s=0===t;switch(e){case d.STRING:s=n||!t.length,r=N.LengthDelimited;break;case d.BOOL:s=!1===t;break;case d.DOUBLE:r=N.Bit64;break;case d.FLOAT:r=N.Bit32;break;case d.INT64:case d.UINT64:s=n||0==t;break;case d.FIXED64:s=n||0==t,r=N.Bit64;break;case d.BYTES:s=n||!t.byteLength,r=N.LengthDelimited;break;case d.FIXED32:case d.SFIXED32:r=N.Bit32;break;case d.SFIXED64:s=n||0==t,r=N.Bit64;break;case d.SINT64:s=n||0==t}return[r,d[e].toLowerCase(),n||s]}const _=Symbol("@bufbuild/protobuf/unknown-fields"),F={readUnknownFields:!0,readerFactory:e=>new k(e)},B={writeUnknownFields:!0,writerFactory:()=>new b};function P(t){return t?e({},F,t):F}function D(t){return t?e({},B,t):B}function L(){return{makeReadOptions:P,makeWriteOptions:D,listUnknownFields(e){var t;return null!=(t=e[_])?t:[]},discardUnknownFields(e){delete e[_]},writeUnknownFields(e,t){const n=e[_];if(n)for(const e of n)t.tag(e.no,e.wireType).raw(e.data)},onUnknownField(e,t,n,r){const s=e;Array.isArray(s[_])||(s[_]=[]),s[_].push({no:t,wireType:n,data:r})},readMessage(e,t,n,r){const s=e.getType(),o=void 0===n?t.len:t.pos+n;for(;t.pos<o;){const[n,o]=t.tag(),i=s.fields.find(n);if(!i){const s=t.skip(o);r.readUnknownFields&&this.onUnknownField(e,n,o,s);continue}let a=e,u=i.repeated,l=i.localName;switch(i.oneof&&(a=a[i.oneof.localName],a.case!=l&&delete a.value,a.case=l,l="value"),i.kind){case"scalar":case"enum":const e="enum"==i.kind?d.INT32:i.T;if(u){let n=a[l];if(o==N.LengthDelimited&&e!=d.STRING&&e!=d.BYTES){let r=t.uint32()+t.pos;for(;t.pos<r;)n.push(x(t,e))}else n.push(x(t,e))}else a[l]=x(t,e);break;case"message":const n=i.T;u?a[l].push(n.fromBinary(t.bytes(),r)):a[l]instanceof n?a[l].fromBinary(t.bytes(),r):a[l]=S(n,n.fromBinary(t.bytes(),r));break;case"map":let[s,c]=U(i,t,r);a[l][s]=c}}}}}function U(e,t,n){const r=t.uint32(),s=t.pos+r;let o,i;for(;t.pos<s;){let[r]=t.tag();switch(r){case 1:o=x(t,e.K);break;case 2:switch(e.V.kind){case"scalar":i=x(t,e.V.T);break;case"enum":i=t.int32();break;case"message":i=e.V.T.fromBinary(t.bytes(),n)}}}if(void 0===o){let t=J(e.K);o=e.K==d.BOOL?t.toString():t}if("string"!=typeof o&&"number"!=typeof o&&(o=o.toString()),void 0===i)switch(e.V.kind){case"scalar":i=J(e.V.T);break;case"enum":i=0;break;case"message":i=new e.V.T}return[o,i]}function x(e,t){let[,n]=O(t);return e[n]()}function A(e,n,r,s,o){e.tag(r.no,N.LengthDelimited),e.fork();let i=s;switch(r.K){case d.INT32:case d.FIXED32:case d.UINT32:case d.SFIXED32:case d.SINT32:i=Number.parseInt(s);break;case d.BOOL:t("true"==s||"false"==s),i="true"==s}switch(q(e,r.K,1,i,!0),r.V.kind){case"scalar":q(e,r.V.T,2,o,!0);break;case"enum":q(e,d.INT32,2,o,!0);break;case"message":$(e,n,r.V.T,2,o)}e.join()}function $(e,t,n,r,s){if(void 0!==s){const o=E(n,s);e.tag(r,N.LengthDelimited).bytes(o.toBinary(t))}}function q(e,t,n,r,s){let[o,i,a]=O(t,r);a&&!s||e.tag(n,o)[i](r)}function Y(e,t,n,r){if(!r.length)return;e.tag(n,N.LengthDelimited).fork();let[,s]=O(t);for(let t=0;t<r.length;t++)e[s](r[t]);e.join()}let R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),V=[];for(let e=0;e<R.length;e++)V[R[e].charCodeAt(0)]=e;V["-".charCodeAt(0)]=R.indexOf("+"),V["_".charCodeAt(0)]=R.indexOf("/");const j={dec(e){let t=3*e.length/4;"="==e[e.length-2]?t-=2:"="==e[e.length-1]&&(t-=1);let n,r=new Uint8Array(t),s=0,o=0,i=0;for(let t=0;t<e.length;t++){if(n=V[e.charCodeAt(t)],void 0===n)switch(e[t]){case"=":o=0;case"\n":case"\r":case"\t":case" ":continue;default:throw Error("invalid base64 string.")}switch(o){case 0:i=n,o=1;break;case 1:r[s++]=i<<2|(48&n)>>4,i=n,o=2;break;case 2:r[s++]=(15&i)<<4|(60&n)>>2,i=n,o=3;break;case 3:r[s++]=(3&i)<<6|n,o=0}}if(1==o)throw Error("invalid base64 string.");return r.subarray(0,s)},enc(e){let t,n="",r=0,s=0;for(let o=0;o<e.length;o++)switch(t=e[o],r){case 0:n+=R[t>>2],s=(3&t)<<4,r=1;break;case 1:n+=R[s|t>>4],s=(15&t)<<2,r=2;break;case 2:n+=R[s|t>>6],n+=R[63&t],r=0}return r&&(n+=R[s],n+="=",1==r&&(n+="=")),n}},M={ignoreUnknownFields:!1},G={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function X(t){return t?e({},M,t):M}function C(t){return t?e({},G,t):G}function W(e){const t=e(Q,H);return{makeReadOptions:X,makeWriteOptions:C,readMessage(e,t,n,r){var s;if(null==t||Array.isArray(t)||"object"!=typeof t)throw new Error(`cannot decode message ${e.typeName} from JSON: ${this.debug(t)}`);r=null!=(s=r)?s:new e;const o={};for(const[s,i]of Object.entries(t)){const t=e.fields.findJsonName(s);if(!t){if(!n.ignoreUnknownFields)throw new Error(`cannot decode message ${e.typeName} from JSON: key "${s}" is unknown`);continue}let a=t.localName,u=r;if(t.oneof){if(null===i&&"scalar"==t.kind)continue;const n=o[t.oneof.localName];if(n)throw new Error(`cannot decode message ${e.typeName} from JSON: multiple keys for oneof "${t.oneof.name}" present: "${n}", "${s}"`);o[t.oneof.localName]=s,u=u[t.oneof.localName]={case:a},a="value"}if(t.repeated){if(null===i)continue;if(!Array.isArray(i))throw new Error(`cannot decode field ${e.typeName}.${t.name} from JSON: "${this.debug(i)}"`);const r=u[a];for(const s of i){if(null===s)throw new Error(`cannot decode field ${e.typeName}.${t.name} from JSON: "${this.debug(s)}"`);let o;switch(t.kind){case"message":o=t.T.fromJson(s,n);break;case"enum":if(o=z(t.T,s,n.ignoreUnknownFields),void 0===o)continue;break;case"scalar":try{o=Z(t.T,s)}catch(n){let r=`cannot decode field ${e.typeName}.${t.name} from JSON: "${this.debug(s)}"`;throw n instanceof Error&&n.message.length>0&&(r+=`: ${n.message}`),new Error(r)}}r.push(o)}}else if("map"==t.kind){if(null===i)continue;if(Array.isArray(i)||"object"!=typeof i)throw new Error(`cannot decode field ${e.typeName}.${t.name} from JSON: ${this.debug(i)}`);const r=u[a];for(const[s,o]of Object.entries(i)){if(null===o)throw new Error(`cannot decode field ${e.typeName}.${t.name} from JSON: map value null`);let a;switch(t.V.kind){case"message":a=t.V.T.fromJson(o,n);break;case"enum":if(a=z(t.V.T,o,n.ignoreUnknownFields),void 0===a)continue;break;case"scalar":try{a=Z(t.V.T,o)}catch(n){let r=`cannot decode map value for field ${e.typeName}.${t.name} from JSON: "${this.debug(i)}"`;throw n instanceof Error&&n.message.length>0&&(r+=`: ${n.message}`),new Error(r)}}try{r[Z(t.K,t.K==d.BOOL?"true"==s||"false"!=s&&s:s).toString()]=a}catch(n){let r=`cannot decode map key for field ${e.typeName}.${t.name} from JSON: "${this.debug(i)}"`;throw n instanceof Error&&n.message.length>0&&(r+=`: ${n.message}`),new Error(r)}}}else switch(t.kind){case"message":const r=t.T;if(null===i&&"google.protobuf.Value"!=r.typeName){if(t.oneof)throw new Error(`cannot decode field ${e.typeName}.${t.name} from JSON: null is invalid for oneof field "${s}"`);continue}const o=void 0===u[a]?new r:E(r,u[a]);u[a]=S(r,o.fromJson(i,n));break;case"enum":const l=z(t.T,i,n.ignoreUnknownFields);void 0!==l&&(u[a]=l);break;case"scalar":try{u[a]=Z(t.T,i)}catch(n){let r=`cannot decode field ${e.typeName}.${t.name} from JSON: "${this.debug(i)}"`;throw n instanceof Error&&n.message.length>0&&(r+=`: ${n.message}`),new Error(r)}}}return r},writeMessage(e,n){const r=e.getType(),s={};let o;try{for(const i of r.fields.byMember()){let r;if("oneof"==i.kind){const s=e[i.localName];if(void 0===s.value)continue;if(o=i.findField(s.case),!o)throw"oneof case not found: "+s.case;r=t(o,s.value,n)}else o=i,r=t(o,e[o.localName],n);void 0!==r&&(s[n.useProtoFieldName?o.name:o.jsonName]=r)}}catch(e){const t=o?`cannot encode field ${r.typeName}.${o.name} to JSON`:`cannot encode message ${r.typeName} to JSON`,n=e instanceof Error?e.message:String(e);throw new Error(t+(n.length>0?`: ${n}`:""))}return s},readScalar:Z,writeScalar:H,debug:K}}function K(e){if(null===e)return"null";switch(typeof e){case"object":return Array.isArray(e)?"array":"object";case"string":return e.length>100?"string":`"${e.split('"').join('\\"')}"`;default:return e.toString()}}function Z(e,t){switch(e){case d.DOUBLE:case d.FLOAT:if(null===t)return 0;if("NaN"===t)return Number.NaN;if("Infinity"===t)return Number.POSITIVE_INFINITY;if("-Infinity"===t)return Number.NEGATIVE_INFINITY;if(""===t)break;if("string"==typeof t&&t.trim().length!==t.length)break;if("string"!=typeof t&&"number"!=typeof t)break;const o=Number(t);if(Number.isNaN(o))break;if(!Number.isFinite(o))break;return e==d.FLOAT&&s(o),o;case d.INT32:case d.FIXED32:case d.SFIXED32:case d.SINT32:case d.UINT32:if(null===t)return 0;let i;if("number"==typeof t?i=t:"string"==typeof t&&t.length>0&&t.trim().length===t.length&&(i=Number(t)),void 0===i)break;return e==d.UINT32?r(i):n(i),i;case d.INT64:case d.SFIXED64:case d.SINT64:if(null===t)return v.zero;if("number"!=typeof t&&"string"!=typeof t)break;return v.parse(t);case d.FIXED64:case d.UINT64:if(null===t)return v.zero;if("number"!=typeof t&&"string"!=typeof t)break;return v.uParse(t);case d.BOOL:if(null===t)return!1;if("boolean"!=typeof t)break;return t;case d.STRING:if(null===t)return"";if("string"!=typeof t)break;try{encodeURIComponent(t)}catch(e){throw new Error("invalid UTF8")}return t;case d.BYTES:if(null===t||""===t)return new Uint8Array(0);if("string"!=typeof t)break;return j.dec(t)}throw new Error}function z(e,t,n){if(null===t)return 0;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":const r=e.findName(t);if(r||n)return null==r?void 0:r.no}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${K(t)}`)}function Q(e,t,n,r){var s;if(void 0===t)return t;if(0===t&&!n)return;if(r)return t;if("google.protobuf.NullValue"==e.typeName)return null;const o=e.findNumber(t);return null!=(s=null==o?void 0:o.name)?s:t}function H(e,n,r){if(void 0!==n)switch(e){case d.INT32:case d.SFIXED32:case d.SINT32:case d.FIXED32:case d.UINT32:return t("number"==typeof n),0!=n||r?n:void 0;case d.FLOAT:case d.DOUBLE:return t("number"==typeof n),Number.isNaN(n)?"NaN":n===Number.POSITIVE_INFINITY?"Infinity":n===Number.NEGATIVE_INFINITY?"-Infinity":0!==n||r?n:void 0;case d.STRING:return t("string"==typeof n),n.length>0||r?n:void 0;case d.BOOL:return t("boolean"==typeof n),n||r?n:void 0;case d.UINT64:case d.FIXED64:case d.INT64:case d.SFIXED64:case d.SINT64:return t("bigint"==typeof n||"string"==typeof n||"number"==typeof n),r||0!=n?n.toString(10):void 0;case d.BYTES:return t(n instanceof Uint8Array),r||n.byteLength>0?j.enc(n):void 0}}function ee(){return{setEnumType:a,initPartial(e,t){if(void 0===e)return;const n=t.getType();for(const r of n.fields.byMember()){const n=r.localName,s=t,o=e;if(void 0!==o[n])switch(r.kind){case"oneof":const e=o[n].case;if(void 0===e)continue;const t=r.findField(e);let i=o[n].value;!t||"message"!=t.kind||i instanceof t.T||(i=new t.T(i)),s[n]={case:e,value:i};break;case"scalar":case"enum":s[n]=o[n];break;case"map":switch(r.V.kind){case"scalar":case"enum":Object.assign(s[n],o[n]);break;case"message":const e=r.V.T;for(const t of Object.keys(o[n])){let r=o[n][t];e.fieldWrapper||(r=new e(r)),s[n][t]=r}}break;case"message":const a=r.T;if(r.repeated)s[n]=o[n].map(e=>e instanceof a?e:new a(e));else if(void 0!==o[n]){const e=o[n];s[n]=a.fieldWrapper||e instanceof a?e:new a(e)}}}},equals:(e,t,n)=>t===n||!(!t||!n)&&e.fields.byMember().every(e=>{const r=t[e.localName],s=n[e.localName];if(e.repeated){if(r.length!==s.length)return!1;switch(e.kind){case"message":return r.every((t,n)=>e.T.equals(t,s[n]));case"scalar":return r.every((t,n)=>I(e.T,t,s[n]));case"enum":return r.every((e,t)=>I(d.INT32,e,s[t]))}throw new Error(`repeated cannot contain ${e.kind}`)}switch(e.kind){case"message":return e.T.equals(r,s);case"enum":return I(d.INT32,r,s);case"scalar":return I(e.T,r,s);case"oneof":if(r.case!==s.case)return!1;const t=r.case,n=e.findField(t);if(void 0===n)return!0;switch(n.kind){case"message":return n.T.equals(r[t],s[t]);case"enum":return I(d.INT32,r,s);case"scalar":return I(n.T,r,s)}throw new Error(`oneof cannot contain ${n.kind}`);case"map":const o=Object.keys(r);if(o.some(e=>void 0===s[e]))return!1;switch(e.V.kind){case"message":const t=e.V.T;return o.every(e=>t.equals(r[e],s[e]));case"enum":return o.every(e=>I(d.INT32,r[e],s[e]));case"scalar":const n=e.V.T;return o.every(e=>I(n,r[e],s[e]))}}}),clone(e){const t=e.getType(),n=new t,r=n;for(const n of t.fields.byMember()){const t=e[n.localName];let s;if(n.repeated)s=t.map(e=>te(n,e));else if("map"==n.kind){s=r[n.localName];for(const[e,r]of Object.entries(t))s[e]=te(n.V,r)}else if("oneof"==n.kind){const e=n.findField(t.case);s=e?{case:t.case,value:te(e,t.value)}:{case:void 0}}else s=te(n,t);r[n.localName]=s}return n}}}function te(e,t){if(void 0===t)return t;switch(e.kind){case"enum":return t;case"scalar":if(e.T===d.BYTES){const e=new Uint8Array(t.byteLength);return e.set(t),e}return t;case"message":return e.T.fieldWrapper?e.T.fieldWrapper.unwrapField(e.T.fieldWrapper.wrapField(t).clone()):t.clone()}}class ne{constructor(e,t){this._fields=void 0,this._normalizer=void 0,this.all=void 0,this.numbersAsc=void 0,this.jsonNames=void 0,this.numbers=void 0,this.members=void 0,this._fields=e,this._normalizer=t}findJsonName(e){if(!this.jsonNames){const e={};for(const t of this.list())e[t.jsonName]=e[t.name]=t;this.jsonNames=e}return this.jsonNames[e]}find(e){if(!this.numbers){const e={};for(const t of this.list())e[t.no]=t;this.numbers=e}return this.numbers[e]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((e,t)=>e.no-t.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const e=this.members;let t;for(const n of this.list())n.oneof?n.oneof!==t&&(t=n.oneof,e.push(t)):e.push(n)}return this.members}}function re(e){return oe(e)}function se(e,t){const n=oe(e);return t?n:ae[n]?n+ie:n}function oe(e){let t=!1;const n=[];for(let r=0;r<e.length;r++){let s=e.charAt(r);switch(s){case"_":t=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n.push(s),t=!1;break;default:t&&(t=!1,s=s.toUpperCase()),n.push(s)}}return n.join("")}const ie="$",ae={constructor:!0,toString:!0,toJSON:!0,valueOf:!0,getType:!0,clone:!0,equals:!0,fromBinary:!0,fromJson:!0,fromJsonString:!0,toBinary:!0,toJson:!0,toJsonString:!0,toObject:!0};class ue{constructor(e){this.kind="oneof",this.name=void 0,this.localName=void 0,this.repeated=!1,this.packed=!1,this.opt=!1,this.default=void 0,this.fields=[],this._lookup=void 0,this.name=e,this.localName=se(e,!1)}addField(e){t(e.oneof===this,`field ${e.name} not one of ${this.name}`),this.fields.push(e)}findField(e){if(!this._lookup){this._lookup=Object.create(null);for(let e=0;e<this.fields.length;e++)this._lookup[this.fields[e].localName]=this.fields[e]}return this._lookup[e]}}const le=f("proto3",W((e,n)=>function(r,s,o){if("map"==r.kind){const i={};switch(r.V.kind){case"scalar":for(const[e,o]of Object.entries(s)){const s=n(r.V.T,o,!0);t(void 0!==s),i[e.toString()]=s}break;case"message":for(const[e,t]of Object.entries(s))i[e.toString()]=t.toJson(o);break;case"enum":const a=r.V.T;for(const[n,r]of Object.entries(s)){t(void 0===r||"number"==typeof r);const s=e(a,r,!0,o.enumAsInteger);t(void 0!==s),i[n.toString()]=s}}return o.emitDefaultValues||Object.keys(i).length>0?i:void 0}if(r.repeated){const t=[];switch(r.kind){case"scalar":for(let e=0;e<s.length;e++)t.push(n(r.T,s[e],!0));break;case"enum":for(let n=0;n<s.length;n++)t.push(e(r.T,s[n],!0,o.enumAsInteger));break;case"message":for(let e=0;e<s.length;e++)t.push(E(r.T,s[e]).toJson(o))}return o.emitDefaultValues||t.length>0?t:void 0}switch(r.kind){case"scalar":return n(r.T,s,!!r.oneof||r.opt||o.emitDefaultValues);case"enum":return e(r.T,s,!!r.oneof||r.opt||o.emitDefaultValues,o.enumAsInteger);case"message":return void 0!==s?E(r.T,s).toJson(o):void 0}}),e({},L(),{writeMessage(e,t,n){const r=e.getType();for(const s of r.fields.byNumber()){let r,o=s.repeated,i=s.localName;if(s.oneof){const t=e[s.oneof.localName];if(t.case!==i)continue;r=t.value}else r=e[i];switch(s.kind){case"scalar":case"enum":let e="enum"==s.kind?d.INT32:s.T;if(o)if(s.packed)Y(t,e,s.no,r);else for(const n of r)q(t,e,s.no,n,!0);else void 0!==r&&q(t,e,s.no,r,!!s.oneof||s.opt);break;case"message":if(o)for(const e of r)$(t,n,s.T,s.no,e);else $(t,n,s.T,s.no,r);break;case"map":for(const[e,o]of Object.entries(r))A(t,n,s,e,o)}}return n.writeUnknownFields&&this.writeUnknownFields(e,t),t}}),e({},ee(),{newFieldList:e=>new ne(e,ce),initFields(e){for(const t of e.getType().fields.byMember()){if(t.opt)continue;const n=t.localName,r=e;if(t.repeated)r[n]=[];else switch(t.kind){case"oneof":r[n]={case:void 0};break;case"enum":r[n]=0;break;case"map":r[n]={};break;case"scalar":r[n]=J(t.T)}}}}));function ce(e){const t=[];let n;for(const i of"function"==typeof e?e():e){var r,s,o;const e=i;if(e.localName=se(i.name,void 0!==i.oneof),e.jsonName=null!=(r=i.jsonName)?r:re(i.name),e.repeated=null!=(s=i.repeated)&&s,e.packed=null!=(o=i.packed)?o:"enum"==i.kind||"scalar"==i.kind&&i.T!=d.BYTES&&i.T!=d.STRING,void 0!==i.oneof){const t="string"==typeof i.oneof?i.oneof:i.oneof.name;n&&n.name==t||(n=new ue(t)),e.oneof=n,n.addField(e)}t.push(e)}return t}const me=f("proto2",W((e,n)=>function(r,s,o){if("map"==r.kind){const i={};switch(r.V.kind){case"scalar":for(const[e,o]of Object.entries(s)){const s=n(r.V.T,o,!0);t(void 0!==s),i[e.toString()]=s}break;case"message":for(const[e,t]of Object.entries(s))i[e.toString()]=t.toJson(o);break;case"enum":const a=r.V.T;for(const[n,r]of Object.entries(s)){t(void 0===r||"number"==typeof r);const s=e(a,r,!0,o.enumAsInteger);t(void 0!==s),i[n.toString()]=s}}return o.emitDefaultValues||Object.keys(i).length>0?i:void 0}if(r.repeated){const t=[];switch(r.kind){case"scalar":for(let e=0;e<s.length;e++)t.push(n(r.T,s[e],!0));break;case"enum":for(let n=0;n<s.length;n++)t.push(e(r.T,s[n],!0,o.enumAsInteger));break;case"message":for(let e=0;e<s.length;e++)t.push(s[e].toJson(o))}return o.emitDefaultValues||t.length>0?t:void 0}if(void 0!==s)switch(r.kind){case"scalar":return n(r.T,s,!0);case"enum":return e(r.T,s,!0,o.enumAsInteger);case"message":return E(r.T,s).toJson(o)}else if(!r.oneof&&!r.opt)throw"required field not set"}),e({},L(),{writeMessage(e,t,n){const r=e.getType();let s;try{for(s of r.fields.byNumber()){let o,i=s.repeated,a=s.localName;if(s.oneof){const t=e[s.oneof.localName];if(t.case!==a)continue;o=t.value}else if(o=e[a],void 0===o&&!s.oneof&&!s.opt)throw new Error(`cannot encode field ${r.typeName}.${s.name} to JSON: required field not set`);switch(s.kind){case"scalar":case"enum":let e="enum"==s.kind?d.INT32:s.T;if(i)if(s.packed)Y(t,e,s.no,o);else for(const n of o)q(t,e,s.no,n,!0);else void 0!==o&&q(t,e,s.no,o,!0);break;case"message":if(i)for(const e of o)$(t,n,s.T,s.no,e);else $(t,n,s.T,s.no,o);break;case"map":for(const[e,r]of Object.entries(o))A(t,n,s,e,r)}}}catch(e){var o;let t=s?`cannot encode field ${r.typeName}.${null==(o=s)?void 0:o.name} to binary`:`cannot encode message ${r.typeName} to binary`,n=e instanceof Error?e.message:String(e);throw new Error(t+(n.length>0?`: ${n}`:""))}return n.writeUnknownFields&&this.writeUnknownFields(e,t),t}}),e({},ee(),{newFieldList:e=>new ne(e,fe),initFields(e){for(const t of e.getType().fields.byMember()){const n=t.localName,r=e;if(t.repeated)r[n]=[];else switch(t.kind){case"oneof":r[n]={case:void 0};break;case"map":r[n]={}}}}}));function fe(e){const t=[];let n;for(const i of"function"==typeof e?e():e){var r,s,o;const e=i;if(e.localName=se(i.name,void 0!==i.oneof),e.jsonName=null!=(r=i.jsonName)?r:re(i.name),e.repeated=null!=(s=i.repeated)&&s,e.packed=null!=(o=i.packed)&&o,void 0!==i.oneof){const t="string"==typeof i.oneof?i.oneof:i.oneof.name;n&&n.name==t||(n=new ue(t)),e.oneof=n,n.addField(e)}t.push(e)}return t}var de,pe,he,ge,Te,ye,we,ve;!function(e){e[e.Unary=0]="Unary",e[e.ServerStreaming=1]="ServerStreaming",e[e.ClientStreaming=2]="ClientStreaming",e[e.BiDiStreaming=3]="BiDiStreaming"}(de||(de={})),function(e){e[e.NoSideEffects=1]="NoSideEffects",e[e.Idempotent=2]="Idempotent"}(pe||(pe={}));class Ne{constructor(){this.messages={},this.enums={},this.services={}}findMessage(e){return this.messages[e]}findEnum(e){return this.enums[e]}findService(e){return this.services[e]}add(e){"fields"in e?this.messages[e.typeName]=e:"methods"in e?this.services[e.typeName]=e:this.enums[e.typeName]=e}static fromIterable(e){const t=new Ne;for(const n of e)t.add(n);return t}static fromTypes(...e){return Ne.fromIterable(e)}}class be extends m{constructor(e){super(),this.file=[],me.util.initPartial(e,this)}static fromBinary(e,t){return(new be).fromBinary(e,t)}static fromJson(e,t){return(new be).fromJson(e,t)}static fromJsonString(e,t){return(new be).fromJsonString(e,t)}static equals(e,t){return me.util.equals(be,e,t)}}be.runtime=me,be.typeName="google.protobuf.FileDescriptorSet",be.fields=me.util.newFieldList(()=>[{no:1,name:"file",kind:"message",T:ke,repeated:!0}]);class ke extends m{constructor(e){super(),this.name=void 0,this.package=void 0,this.dependency=[],this.publicDependency=[],this.weakDependency=[],this.messageType=[],this.enumType=[],this.service=[],this.extension=[],this.options=void 0,this.sourceCodeInfo=void 0,this.syntax=void 0,me.util.initPartial(e,this)}static fromBinary(e,t){return(new ke).fromBinary(e,t)}static fromJson(e,t){return(new ke).fromJson(e,t)}static fromJsonString(e,t){return(new ke).fromJsonString(e,t)}static equals(e,t){return me.util.equals(ke,e,t)}}ke.runtime=me,ke.typeName="google.protobuf.FileDescriptorProto",ke.fields=me.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"package",kind:"scalar",T:9,opt:!0},{no:3,name:"dependency",kind:"scalar",T:9,repeated:!0},{no:10,name:"public_dependency",kind:"scalar",T:5,repeated:!0},{no:11,name:"weak_dependency",kind:"scalar",T:5,repeated:!0},{no:4,name:"message_type",kind:"message",T:Ee,repeated:!0},{no:5,name:"enum_type",kind:"message",T:Fe,repeated:!0},{no:6,name:"service",kind:"message",T:De,repeated:!0},{no:7,name:"extension",kind:"message",T:Oe,repeated:!0},{no:8,name:"options",kind:"message",T:Ue,opt:!0},{no:9,name:"source_code_info",kind:"message",T:Ge,opt:!0},{no:12,name:"syntax",kind:"scalar",T:9,opt:!0}]);class Ee extends m{constructor(e){super(),this.name=void 0,this.field=[],this.extension=[],this.nestedType=[],this.enumType=[],this.extensionRange=[],this.oneofDecl=[],this.options=void 0,this.reservedRange=[],this.reservedName=[],me.util.initPartial(e,this)}static fromBinary(e,t){return(new Ee).fromBinary(e,t)}static fromJson(e,t){return(new Ee).fromJson(e,t)}static fromJsonString(e,t){return(new Ee).fromJsonString(e,t)}static equals(e,t){return me.util.equals(Ee,e,t)}}Ee.runtime=me,Ee.typeName="google.protobuf.DescriptorProto",Ee.fields=me.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"field",kind:"message",T:Oe,repeated:!0},{no:6,name:"extension",kind:"message",T:Oe,repeated:!0},{no:3,name:"nested_type",kind:"message",T:Ee,repeated:!0},{no:4,name:"enum_type",kind:"message",T:Fe,repeated:!0},{no:5,name:"extension_range",kind:"message",T:Se,repeated:!0},{no:8,name:"oneof_decl",kind:"message",T:_e,repeated:!0},{no:7,name:"options",kind:"message",T:xe,opt:!0},{no:9,name:"reserved_range",kind:"message",T:Ie,repeated:!0},{no:10,name:"reserved_name",kind:"scalar",T:9,repeated:!0}]);class Se extends m{constructor(e){super(),this.start=void 0,this.end=void 0,this.options=void 0,me.util.initPartial(e,this)}static fromBinary(e,t){return(new Se).fromBinary(e,t)}static fromJson(e,t){return(new Se).fromJson(e,t)}static fromJsonString(e,t){return(new Se).fromJsonString(e,t)}static equals(e,t){return me.util.equals(Se,e,t)}}Se.runtime=me,Se.typeName="google.protobuf.DescriptorProto.ExtensionRange",Se.fields=me.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0},{no:3,name:"options",kind:"message",T:Je,opt:!0}]);class Ie extends m{constructor(e){super(),this.start=void 0,this.end=void 0,me.util.initPartial(e,this)}static fromBinary(e,t){return(new Ie).fromBinary(e,t)}static fromJson(e,t){return(new Ie).fromJson(e,t)}static fromJsonString(e,t){return(new Ie).fromJsonString(e,t)}static equals(e,t){return me.util.equals(Ie,e,t)}}Ie.runtime=me,Ie.typeName="google.protobuf.DescriptorProto.ReservedRange",Ie.fields=me.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0}]);class Je extends m{constructor(e){super(),this.uninterpretedOption=[],me.util.initPartial(e,this)}static fromBinary(e,t){return(new Je).fromBinary(e,t)}static fromJson(e,t){return(new Je).fromJson(e,t)}static fromJsonString(e,t){return(new Je).fromJsonString(e,t)}static equals(e,t){return me.util.equals(Je,e,t)}}Je.runtime=me,Je.typeName="google.protobuf.ExtensionRangeOptions",Je.fields=me.util.newFieldList(()=>[{no:999,name:"uninterpreted_option",kind:"message",T:je,repeated:!0}]);class Oe extends m{constructor(e){super(),this.name=void 0,this.number=void 0,this.label=void 0,this.type=void 0,this.typeName=void 0,this.extendee=void 0,this.defaultValue=void 0,this.oneofIndex=void 0,this.jsonName=void 0,this.options=void 0,this.proto3Optional=void 0,me.util.initPartial(e,this)}static fromBinary(e,t){return(new Oe).fromBinary(e,t)}static fromJson(e,t){return(new Oe).fromJson(e,t)}static fromJsonString(e,t){return(new Oe).fromJsonString(e,t)}static equals(e,t){return me.util.equals(Oe,e,t)}}Oe.runtime=me,Oe.typeName="google.protobuf.FieldDescriptorProto",Oe.fields=me.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:3,name:"number",kind:"scalar",T:5,opt:!0},{no:4,name:"label",kind:"enum",T:me.getEnumType(ge),opt:!0},{no:5,name:"type",kind:"enum",T:me.getEnumType(he),opt:!0},{no:6,name:"type_name",kind:"scalar",T:9,opt:!0},{no:2,name:"extendee",kind:"scalar",T:9,opt:!0},{no:7,name:"default_value",kind:"scalar",T:9,opt:!0},{no:9,name:"oneof_index",kind:"scalar",T:5,opt:!0},{no:10,name:"json_name",kind:"scalar",T:9,opt:!0},{no:8,name:"options",kind:"message",T:Ae,opt:!0},{no:17,name:"proto3_optional",kind:"scalar",T:8,opt:!0}]),function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.GROUP=10]="GROUP",e[e.MESSAGE=11]="MESSAGE",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.ENUM=14]="ENUM",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"}(he||(he={})),me.util.setEnumType(he,"google.protobuf.FieldDescriptorProto.Type",[{no:1,name:"TYPE_DOUBLE"},{no:2,name:"TYPE_FLOAT"},{no:3,name:"TYPE_INT64"},{no:4,name:"TYPE_UINT64"},{no:5,name:"TYPE_INT32"},{no:6,name:"TYPE_FIXED64"},{no:7,name:"TYPE_FIXED32"},{no:8,name:"TYPE_BOOL"},{no:9,name:"TYPE_STRING"},{no:10,name:"TYPE_GROUP"},{no:11,name:"TYPE_MESSAGE"},{no:12,name:"TYPE_BYTES"},{no:13,name:"TYPE_UINT32"},{no:14,name:"TYPE_ENUM"},{no:15,name:"TYPE_SFIXED32"},{no:16,name:"TYPE_SFIXED64"},{no:17,name:"TYPE_SINT32"},{no:18,name:"TYPE_SINT64"}]),function(e){e[e.OPTIONAL=1]="OPTIONAL",e[e.REQUIRED=2]="REQUIRED",e[e.REPEATED=3]="REPEATED"}(ge||(ge={})),me.util.setEnumType(ge,"google.protobuf.FieldDescriptorProto.Label",[{no:1,name:"LABEL_OPTIONAL"},{no:2,name:"LABEL_REQUIRED"},{no:3,name:"LABEL_REPEATED"}]);class _e extends m{constructor(e){super(),this.name=void 0,this.options=void 0,me.util.initPartial(e,this)}static fromBinary(e,t){return(new _e).fromBinary(e,t)}static fromJson(e,t){return(new _e).fromJson(e,t)}static fromJsonString(e,t){return(new _e).fromJsonString(e,t)}static equals(e,t){return me.util.equals(_e,e,t)}}_e.runtime=me,_e.typeName="google.protobuf.OneofDescriptorProto",_e.fields=me.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"options",kind:"message",T:$e,opt:!0}]);class Fe extends m{constructor(e){super(),this.name=void 0,this.value=[],this.options=void 0,this.reservedRange=[],this.reservedName=[],me.util.initPartial(e,this)}static fromBinary(e,t){return(new Fe).fromBinary(e,t)}static fromJson(e,t){return(new Fe).fromJson(e,t)}static fromJsonString(e,t){return(new Fe).fromJsonString(e,t)}static equals(e,t){return me.util.equals(Fe,e,t)}}Fe.runtime=me,Fe.typeName="google.protobuf.EnumDescriptorProto",Fe.fields=me.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"value",kind:"message",T:Pe,repeated:!0},{no:3,name:"options",kind:"message",T:qe,opt:!0},{no:4,name:"reserved_range",kind:"message",T:Be,repeated:!0},{no:5,name:"reserved_name",kind:"scalar",T:9,repeated:!0}]);class Be extends m{constructor(e){super(),this.start=void 0,this.end=void 0,me.util.initPartial(e,this)}static fromBinary(e,t){return(new Be).fromBinary(e,t)}static fromJson(e,t){return(new Be).fromJson(e,t)}static fromJsonString(e,t){return(new Be).fromJsonString(e,t)}static equals(e,t){return me.util.equals(Be,e,t)}}Be.runtime=me,Be.typeName="google.protobuf.EnumDescriptorProto.EnumReservedRange",Be.fields=me.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0}]);class Pe extends m{constructor(e){super(),this.name=void 0,this.number=void 0,this.options=void 0,me.util.initPartial(e,this)}static fromBinary(e,t){return(new Pe).fromBinary(e,t)}static fromJson(e,t){return(new Pe).fromJson(e,t)}static fromJsonString(e,t){return(new Pe).fromJsonString(e,t)}static equals(e,t){return me.util.equals(Pe,e,t)}}Pe.runtime=me,Pe.typeName="google.protobuf.EnumValueDescriptorProto",Pe.fields=me.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"number",kind:"scalar",T:5,opt:!0},{no:3,name:"options",kind:"message",T:Ye,opt:!0}]);class De extends m{constructor(e){super(),this.name=void 0,this.method=[],this.options=void 0,me.util.initPartial(e,this)}static fromBinary(e,t){return(new De).fromBinary(e,t)}static fromJson(e,t){return(new De).fromJson(e,t)}static fromJsonString(e,t){return(new De).fromJsonString(e,t)}static equals(e,t){return me.util.equals(De,e,t)}}De.runtime=me,De.typeName="google.protobuf.ServiceDescriptorProto",De.fields=me.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"method",kind:"message",T:Le,repeated:!0},{no:3,name:"options",kind:"message",T:Re,opt:!0}]);class Le extends m{constructor(e){super(),this.name=void 0,this.inputType=void 0,this.outputType=void 0,this.options=void 0,this.clientStreaming=void 0,this.serverStreaming=void 0,me.util.initPartial(e,this)}static fromBinary(e,t){return(new Le).fromBinary(e,t)}static fromJson(e,t){return(new Le).fromJson(e,t)}static fromJsonString(e,t){return(new Le).fromJsonString(e,t)}static equals(e,t){return me.util.equals(Le,e,t)}}Le.runtime=me,Le.typeName="google.protobuf.MethodDescriptorProto",Le.fields=me.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"input_type",kind:"scalar",T:9,opt:!0},{no:3,name:"output_type",kind:"scalar",T:9,opt:!0},{no:4,name:"options",kind:"message",T:Ve,opt:!0},{no:5,name:"client_streaming",kind:"scalar",T:8,opt:!0,default:!1},{no:6,name:"server_streaming",kind:"scalar",T:8,opt:!0,default:!1}]);class Ue extends m{constructor(e){super(),this.javaPackage=void 0,this.javaOuterClassname=void 0,this.javaMultipleFiles=void 0,this.javaGenerateEqualsAndHash=void 0,this.javaStringCheckUtf8=void 0,this.optimizeFor=void 0,this.goPackage=void 0,this.ccGenericServices=void 0,this.javaGenericServices=void 0,this.pyGenericServices=void 0,this.phpGenericServices=void 0,this.deprecated=void 0,this.ccEnableArenas=void 0,this.objcClassPrefix=void 0,this.csharpNamespace=void 0,this.swiftPrefix=void 0,this.phpClassPrefix=void 0,this.phpNamespace=void 0,this.phpMetadataNamespace=void 0,this.rubyPackage=void 0,this.uninterpretedOption=[],me.util.initPartial(e,this)}static fromBinary(e,t){return(new Ue).fromBinary(e,t)}static fromJson(e,t){return(new Ue).fromJson(e,t)}static fromJsonString(e,t){return(new Ue).fromJsonString(e,t)}static equals(e,t){return me.util.equals(Ue,e,t)}}Ue.runtime=me,Ue.typeName="google.protobuf.FileOptions",Ue.fields=me.util.newFieldList(()=>[{no:1,name:"java_package",kind:"scalar",T:9,opt:!0},{no:8,name:"java_outer_classname",kind:"scalar",T:9,opt:!0},{no:10,name:"java_multiple_files",kind:"scalar",T:8,opt:!0,default:!1},{no:20,name:"java_generate_equals_and_hash",kind:"scalar",T:8,opt:!0},{no:27,name:"java_string_check_utf8",kind:"scalar",T:8,opt:!0,default:!1},{no:9,name:"optimize_for",kind:"enum",T:me.getEnumType(Te),opt:!0,default:Te.SPEED},{no:11,name:"go_package",kind:"scalar",T:9,opt:!0},{no:16,name:"cc_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:17,name:"java_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:18,name:"py_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:42,name:"php_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:23,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:31,name:"cc_enable_arenas",kind:"scalar",T:8,opt:!0,default:!0},{no:36,name:"objc_class_prefix",kind:"scalar",T:9,opt:!0},{no:37,name:"csharp_namespace",kind:"scalar",T:9,opt:!0},{no:39,name:"swift_prefix",kind:"scalar",T:9,opt:!0},{no:40,name:"php_class_prefix",kind:"scalar",T:9,opt:!0},{no:41,name:"php_namespace",kind:"scalar",T:9,opt:!0},{no:44,name:"php_metadata_namespace",kind:"scalar",T:9,opt:!0},{no:45,name:"ruby_package",kind:"scalar",T:9,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:je,repeated:!0}]),function(e){e[e.SPEED=1]="SPEED",e[e.CODE_SIZE=2]="CODE_SIZE",e[e.LITE_RUNTIME=3]="LITE_RUNTIME"}(Te||(Te={})),me.util.setEnumType(Te,"google.protobuf.FileOptions.OptimizeMode",[{no:1,name:"SPEED"},{no:2,name:"CODE_SIZE"},{no:3,name:"LITE_RUNTIME"}]);class xe extends m{constructor(e){super(),this.messageSetWireFormat=void 0,this.noStandardDescriptorAccessor=void 0,this.deprecated=void 0,this.mapEntry=void 0,this.uninterpretedOption=[],me.util.initPartial(e,this)}static fromBinary(e,t){return(new xe).fromBinary(e,t)}static fromJson(e,t){return(new xe).fromJson(e,t)}static fromJsonString(e,t){return(new xe).fromJsonString(e,t)}static equals(e,t){return me.util.equals(xe,e,t)}}xe.runtime=me,xe.typeName="google.protobuf.MessageOptions",xe.fields=me.util.newFieldList(()=>[{no:1,name:"message_set_wire_format",kind:"scalar",T:8,opt:!0,default:!1},{no:2,name:"no_standard_descriptor_accessor",kind:"scalar",T:8,opt:!0,default:!1},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:7,name:"map_entry",kind:"scalar",T:8,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:je,repeated:!0}]);class Ae extends m{constructor(e){super(),this.ctype=void 0,this.packed=void 0,this.jstype=void 0,this.lazy=void 0,this.unverifiedLazy=void 0,this.deprecated=void 0,this.weak=void 0,this.uninterpretedOption=[],me.util.initPartial(e,this)}static fromBinary(e,t){return(new Ae).fromBinary(e,t)}static fromJson(e,t){return(new Ae).fromJson(e,t)}static fromJsonString(e,t){return(new Ae).fromJsonString(e,t)}static equals(e,t){return me.util.equals(Ae,e,t)}}Ae.runtime=me,Ae.typeName="google.protobuf.FieldOptions",Ae.fields=me.util.newFieldList(()=>[{no:1,name:"ctype",kind:"enum",T:me.getEnumType(ye),opt:!0,default:ye.STRING},{no:2,name:"packed",kind:"scalar",T:8,opt:!0},{no:6,name:"jstype",kind:"enum",T:me.getEnumType(we),opt:!0,default:we.JS_NORMAL},{no:5,name:"lazy",kind:"scalar",T:8,opt:!0,default:!1},{no:15,name:"unverified_lazy",kind:"scalar",T:8,opt:!0,default:!1},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:10,name:"weak",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:je,repeated:!0}]),function(e){e[e.STRING=0]="STRING",e[e.CORD=1]="CORD",e[e.STRING_PIECE=2]="STRING_PIECE"}(ye||(ye={})),me.util.setEnumType(ye,"google.protobuf.FieldOptions.CType",[{no:0,name:"STRING"},{no:1,name:"CORD"},{no:2,name:"STRING_PIECE"}]),function(e){e[e.JS_NORMAL=0]="JS_NORMAL",e[e.JS_STRING=1]="JS_STRING",e[e.JS_NUMBER=2]="JS_NUMBER"}(we||(we={})),me.util.setEnumType(we,"google.protobuf.FieldOptions.JSType",[{no:0,name:"JS_NORMAL"},{no:1,name:"JS_STRING"},{no:2,name:"JS_NUMBER"}]);class $e extends m{constructor(e){super(),this.uninterpretedOption=[],me.util.initPartial(e,this)}static fromBinary(e,t){return(new $e).fromBinary(e,t)}static fromJson(e,t){return(new $e).fromJson(e,t)}static fromJsonString(e,t){return(new $e).fromJsonString(e,t)}static equals(e,t){return me.util.equals($e,e,t)}}$e.runtime=me,$e.typeName="google.protobuf.OneofOptions",$e.fields=me.util.newFieldList(()=>[{no:999,name:"uninterpreted_option",kind:"message",T:je,repeated:!0}]);class qe extends m{constructor(e){super(),this.allowAlias=void 0,this.deprecated=void 0,this.uninterpretedOption=[],me.util.initPartial(e,this)}static fromBinary(e,t){return(new qe).fromBinary(e,t)}static fromJson(e,t){return(new qe).fromJson(e,t)}static fromJsonString(e,t){return(new qe).fromJsonString(e,t)}static equals(e,t){return me.util.equals(qe,e,t)}}qe.runtime=me,qe.typeName="google.protobuf.EnumOptions",qe.fields=me.util.newFieldList(()=>[{no:2,name:"allow_alias",kind:"scalar",T:8,opt:!0},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:je,repeated:!0}]);class Ye extends m{constructor(e){super(),this.deprecated=void 0,this.uninterpretedOption=[],me.util.initPartial(e,this)}static fromBinary(e,t){return(new Ye).fromBinary(e,t)}static fromJson(e,t){return(new Ye).fromJson(e,t)}static fromJsonString(e,t){return(new Ye).fromJsonString(e,t)}static equals(e,t){return me.util.equals(Ye,e,t)}}Ye.runtime=me,Ye.typeName="google.protobuf.EnumValueOptions",Ye.fields=me.util.newFieldList(()=>[{no:1,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:je,repeated:!0}]);class Re extends m{constructor(e){super(),this.deprecated=void 0,this.uninterpretedOption=[],me.util.initPartial(e,this)}static fromBinary(e,t){return(new Re).fromBinary(e,t)}static fromJson(e,t){return(new Re).fromJson(e,t)}static fromJsonString(e,t){return(new Re).fromJsonString(e,t)}static equals(e,t){return me.util.equals(Re,e,t)}}Re.runtime=me,Re.typeName="google.protobuf.ServiceOptions",Re.fields=me.util.newFieldList(()=>[{no:33,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:je,repeated:!0}]);class Ve extends m{constructor(e){super(),this.deprecated=void 0,this.idempotencyLevel=void 0,this.uninterpretedOption=[],me.util.initPartial(e,this)}static fromBinary(e,t){return(new Ve).fromBinary(e,t)}static fromJson(e,t){return(new Ve).fromJson(e,t)}static fromJsonString(e,t){return(new Ve).fromJsonString(e,t)}static equals(e,t){return me.util.equals(Ve,e,t)}}Ve.runtime=me,Ve.typeName="google.protobuf.MethodOptions",Ve.fields=me.util.newFieldList(()=>[{no:33,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:34,name:"idempotency_level",kind:"enum",T:me.getEnumType(ve),opt:!0,default:ve.IDEMPOTENCY_UNKNOWN},{no:999,name:"uninterpreted_option",kind:"message",T:je,repeated:!0}]),function(e){e[e.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",e[e.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",e[e.IDEMPOTENT=2]="IDEMPOTENT"}(ve||(ve={})),me.util.setEnumType(ve,"google.protobuf.MethodOptions.IdempotencyLevel",[{no:0,name:"IDEMPOTENCY_UNKNOWN"},{no:1,name:"NO_SIDE_EFFECTS"},{no:2,name:"IDEMPOTENT"}]);class je extends m{constructor(e){super(),this.name=[],this.identifierValue=void 0,this.positiveIntValue=void 0,this.negativeIntValue=void 0,this.doubleValue=void 0,this.stringValue=void 0,this.aggregateValue=void 0,me.util.initPartial(e,this)}static fromBinary(e,t){return(new je).fromBinary(e,t)}static fromJson(e,t){return(new je).fromJson(e,t)}static fromJsonString(e,t){return(new je).fromJsonString(e,t)}static equals(e,t){return me.util.equals(je,e,t)}}je.runtime=me,je.typeName="google.protobuf.UninterpretedOption",je.fields=me.util.newFieldList(()=>[{no:2,name:"name",kind:"message",T:Me,repeated:!0},{no:3,name:"identifier_value",kind:"scalar",T:9,opt:!0},{no:4,name:"positive_int_value",kind:"scalar",T:4,opt:!0},{no:5,name:"negative_int_value",kind:"scalar",T:3,opt:!0},{no:6,name:"double_value",kind:"scalar",T:1,opt:!0},{no:7,name:"string_value",kind:"scalar",T:12,opt:!0},{no:8,name:"aggregate_value",kind:"scalar",T:9,opt:!0}]);class Me extends m{constructor(e){super(),this.namePart=void 0,this.isExtension=void 0,me.util.initPartial(e,this)}static fromBinary(e,t){return(new Me).fromBinary(e,t)}static fromJson(e,t){return(new Me).fromJson(e,t)}static fromJsonString(e,t){return(new Me).fromJsonString(e,t)}static equals(e,t){return me.util.equals(Me,e,t)}}Me.runtime=me,Me.typeName="google.protobuf.UninterpretedOption.NamePart",Me.fields=me.util.newFieldList(()=>[{no:1,name:"name_part",kind:"scalar",T:9},{no:2,name:"is_extension",kind:"scalar",T:8}]);class Ge extends m{constructor(e){super(),this.location=[],me.util.initPartial(e,this)}static fromBinary(e,t){return(new Ge).fromBinary(e,t)}static fromJson(e,t){return(new Ge).fromJson(e,t)}static fromJsonString(e,t){return(new Ge).fromJsonString(e,t)}static equals(e,t){return me.util.equals(Ge,e,t)}}Ge.runtime=me,Ge.typeName="google.protobuf.SourceCodeInfo",Ge.fields=me.util.newFieldList(()=>[{no:1,name:"location",kind:"message",T:Xe,repeated:!0}]);class Xe extends m{constructor(e){super(),this.path=[],this.span=[],this.leadingComments=void 0,this.trailingComments=void 0,this.leadingDetachedComments=[],me.util.initPartial(e,this)}static fromBinary(e,t){return(new Xe).fromBinary(e,t)}static fromJson(e,t){return(new Xe).fromJson(e,t)}static fromJsonString(e,t){return(new Xe).fromJsonString(e,t)}static equals(e,t){return me.util.equals(Xe,e,t)}}Xe.runtime=me,Xe.typeName="google.protobuf.SourceCodeInfo.Location",Xe.fields=me.util.newFieldList(()=>[{no:1,name:"path",kind:"scalar",T:5,repeated:!0,packed:!0},{no:2,name:"span",kind:"scalar",T:5,repeated:!0,packed:!0},{no:3,name:"leading_comments",kind:"scalar",T:9,opt:!0},{no:4,name:"trailing_comments",kind:"scalar",T:9,opt:!0},{no:6,name:"leading_detached_comments",kind:"scalar",T:9,repeated:!0}]);class Ce extends m{constructor(e){super(),this.annotation=[],me.util.initPartial(e,this)}static fromBinary(e,t){return(new Ce).fromBinary(e,t)}static fromJson(e,t){return(new Ce).fromJson(e,t)}static fromJsonString(e,t){return(new Ce).fromJsonString(e,t)}static equals(e,t){return me.util.equals(Ce,e,t)}}Ce.runtime=me,Ce.typeName="google.protobuf.GeneratedCodeInfo",Ce.fields=me.util.newFieldList(()=>[{no:1,name:"annotation",kind:"message",T:We,repeated:!0}]);class We extends m{constructor(e){super(),this.path=[],this.sourceFile=void 0,this.begin=void 0,this.end=void 0,me.util.initPartial(e,this)}static fromBinary(e,t){return(new We).fromBinary(e,t)}static fromJson(e,t){return(new We).fromJson(e,t)}static fromJsonString(e,t){return(new We).fromJsonString(e,t)}static equals(e,t){return me.util.equals(We,e,t)}}We.runtime=me,We.typeName="google.protobuf.GeneratedCodeInfo.Annotation",We.fields=me.util.newFieldList(()=>[{no:1,name:"path",kind:"scalar",T:5,repeated:!0,packed:!0},{no:2,name:"source_file",kind:"scalar",T:9,opt:!0},{no:3,name:"begin",kind:"scalar",T:5,opt:!0},{no:4,name:"end",kind:"scalar",T:5,opt:!0}]);class Ke{constructor(){this.enums={},this.messages={},this.services={}}add(...e){for(const t of e)Qe(t,this)}listEnums(){return Object.values(this.enums).filter(Ze)}listMessages(){return Object.values(this.messages).filter(Ze)}listServices(){return Object.values(this.services).filter(Ze)}}function Ze(e){return void 0!==e}const ze={[he.DOUBLE]:d.DOUBLE,[he.FLOAT]:d.FLOAT,[he.INT64]:d.INT64,[he.UINT64]:d.UINT64,[he.INT32]:d.INT32,[he.FIXED64]:d.FIXED64,[he.FIXED32]:d.FIXED32,[he.BOOL]:d.BOOL,[he.STRING]:d.STRING,[he.GROUP]:void 0,[he.MESSAGE]:void 0,[he.BYTES]:d.BYTES,[he.UINT32]:d.UINT32,[he.ENUM]:void 0,[he.SFIXED32]:d.SFIXED32,[he.SFIXED64]:d.SFIXED64,[he.SINT32]:d.SINT32,[he.SINT64]:d.SINT64};function Qe(e,n){if(t(e.name,"missing file descriptor name"),void 0!==e.syntax&&"proto3"!==e.syntax)throw new Error(`invalid descriptor: unsupported syntax: ${e.syntax}`);const r={proto:e,syntax:"proto3"===e.syntax?"proto3":"proto2",name:e.name.endsWith(".proto")?e.name.substring(-".proto".length):e.name,toString(){return`file ${this.proto.name}`}};for(const t of e.messageType)tt(t,void 0,r,n);for(const t of e.enumType)He(t,void 0,r,n);for(const t of e.extension)it(t,void 0,r);for(const t of e.service)at(t,r,n);return r}function He(e,n,r,s){let o;t(e.name,"invalid descriptor: missing enum descriptor name"),o=n?`${n.protoTypeName}.${e.name}`:void 0!==r.proto.package?`.${r.proto.package}.${e.name}`:`.${e.name}`;const i=[],a={proto:e,file:r,parent:n,name:e.name,protoTypeName:o,typeName:o.startsWith(".")?o.substring(1):o,values:i,toString(){return`enum ${this.typeName}`}};s.enums[a.protoTypeName]=a;for(const t of e.value)i.push(et(t,a));return a}function et(e,n){return t(e.name,"invalid descriptor: missing enum value descriptor name"),t(void 0!==e.number,"invalid descriptor: missing enum value descriptor number"),{proto:e,name:e.name,number:e.number,parent:n,toString(){return`enum value ${this.parent.typeName}.${this.proto.name}`}}}function tt(e,n,r,s){t(e.name,"invalid descriptor: missing name");const o=[],i=[],a=[],u=[],l=[];let c;c=n?`${n.protoTypeName}.${e.name}`:void 0!==r.proto.package?`.${r.proto.package}.${e.name}`:`.${e.name}`;const m={proto:e,file:r,parent:n,name:e.name,typeName:c.startsWith(".")?c.substring(1):c,protoTypeName:c,fields:i,oneofs:a,nestedEnums:u,nestedMessages:o,nestedExtensions:l,toString(){return`message ${this.typeName}`}};s.messages[m.protoTypeName]=m;for(const t of e.nestedType)o.push(tt(t,m,r,s));for(const t of e.oneofDecl)a.push(ot(t,m,r));for(const n of e.field){let e;var f;void 0!==n.oneofIndex&&(e=a[n.oneofIndex],t(e,`invalid descriptor: oneof declaration index ${n.oneofIndex} specified by field #${null!=(f=n.number)?f:-1} not found`)),i.push(nt(n,m,e))}for(const t of e.enumType)u.push(He(t,m,r,s));for(const t of e.extension)l.push(it(t,m,r));return m}function nt(e,n,r){var s;t(e.name,"invalid descriptor: missing name"),t(e.number,"invalid descriptor: missing number"),t(e.type,"invalid descriptor: missing type");let o=!1,i=!0===(null==(s=e.options)?void 0:s.packed);switch(n.file.syntax){case"proto2":o=void 0===r&&e.label===ge.OPTIONAL;break;case"proto3":switch(o=!0===e.proto3Optional,e.type){case he.DOUBLE:case he.FLOAT:case he.INT64:case he.UINT64:case he.INT32:case he.FIXED64:case he.FIXED32:case he.UINT32:case he.SFIXED32:case he.SFIXED64:case he.SINT32:case he.SINT64:case he.BOOL:case he.ENUM:i=!0;break;case he.STRING:case he.GROUP:case he.MESSAGE:case he.BYTES:t(!i,`invalid descriptor: ${he[e.type]} cannot be packed`)}}const a={proto:e,name:e.name,number:e.number,type:e.type,parent:n,oneof:!0===e.proto3Optional?void 0:r,optional:o,packed:i,toString:()=>`field ${n.typeName}.${e.name}`,resolve(e){return rt(this,e)}};return r&&r.fields.push(a),a}function rt(n,r){const s=n.proto.label===ge.REPEATED;switch(n.type){case he.MESSAGE:case he.GROUP:{var o;t(n.proto.typeName,`invalid descriptor: ${n.toString()} has type ${he[n.type]}, but type_name is unset`);const i=r.messages[n.proto.typeName];return t(i,`invalid descriptor: cannot find type_name "${n.proto.typeName}" specified by ${n.toString()}`),void 0!==(null==(o=i.proto.options)?void 0:o.mapEntry)?e({},n,{repeated:!1,scalarType:void 0,message:void 0,enum:void 0,map:st(i,r)}):e({},n,{repeated:s,scalarType:void 0,message:i,enum:void 0,map:void 0})}case he.ENUM:{t(n.proto.typeName,`invalid descriptor: ${n.toString()} has type ${he[n.type]}, but type_name is unset`);const o=r.enums[n.proto.typeName];return t(o,`invalid descriptor: cannot find type_name "${n.proto.typeName}" specified by ${n.toString()}`),e({},n,{repeated:s,scalarType:void 0,message:void 0,enum:o,map:void 0})}default:{const r=ze[n.type];return t(r,`invalid descriptor: unable to convert google.protobuf.FieldDescriptorProto.Type ${he[n.type]} to ScalarType`),e({},n,{repeated:s,scalarType:r,message:void 0,enum:void 0,map:void 0})}}}function st(e,n){var r;t(null==(r=e.proto.options)?void 0:r.mapEntry,`invalid descriptor: expected ${e.toString()} to be a map entry`),t(2===e.fields.length,`invalid descriptor: map entry ${e.toString()} has ${e.fields.length} fields`);const s=e.fields.find(e=>1===e.proto.number);t(s,`invalid descriptor: map entry ${e.toString()} is missing key field`);const o=rt(s,n);t(void 0!==o.scalarType&&o.scalarType!==d.BYTES&&o.scalarType!==d.FLOAT&&o.scalarType!==d.DOUBLE,`invalid descriptor: map entry ${e.toString()} has unexpected key type ${he[o.type]}`);const i=e.fields.find(e=>2===e.proto.number);t(i,`invalid descriptor: map entry ${e.toString()} is missing value field`);const a=rt(i,n);if(void 0!==a.scalarType)return{key:o.scalarType,value:{scalarType:a.scalarType,enum:void 0,message:void 0}};if(void 0!==a.enum)return{key:o.scalarType,value:{scalar:void 0,enum:a.enum,message:void 0}};if(void 0!==a.message)return{key:o.scalarType,value:{scalar:void 0,enum:void 0,message:a.message}};throw new Error(`invalid descriptor: map entry ${e.toString()} has unexpected value type ${he[o.type]}`)}function ot(e,n,r){return t(e.name,"invalid descriptor: missing oneof descriptor name"),{proto:e,parent:n,file:r,fields:[],name:e.name,toString:()=>`oneof ${n.typeName}.${e.name}`}}function it(e,n,r,s){return t(e.name,"invalid descriptor: missing field descriptor name"),{proto:e,file:r,parent:n}}function at(e,n,r){let s;t(e.name,"invalid descriptor: missing service descriptor name"),s=void 0!==n.proto.package?`.${n.proto.package}.${e.name}`:`.${e.name}`;const o=[],i={proto:e,file:n,typeName:s.startsWith(".")?s.substring(1):s,protoTypeName:s,methods:o,toString(){return`service ${this.typeName}`}};for(const t of e.method)o.push(ut(t,i));return r.services[i.protoTypeName]=i,i}function ut(e,n){var r;let s,o;switch(t(e.name,"invalid descriptor: missing method descriptor name"),t(e.inputType,"invalid descriptor: missing method input type"),t(e.outputType,"invalid descriptor: missing method output type"),s=!0===e.clientStreaming&&!0===e.serverStreaming?de.BiDiStreaming:!0===e.clientStreaming?de.ClientStreaming:!0===e.serverStreaming?de.ServerStreaming:de.Unary,null==(r=e.options)?void 0:r.idempotencyLevel){case ve.IDEMPOTENT:o=pe.Idempotent;break;case ve.NO_SIDE_EFFECTS:o=pe.NoSideEffects;break;case ve.IDEMPOTENCY_UNKNOWN:case void 0:o=void 0}const i=e.inputType.startsWith(".")?e.inputType.substring(1):e.inputType,a=e.outputType.startsWith(".")?e.outputType.substring(1):e.outputType;return{proto:e,parent:n,name:e.name,kind:s,idempotency:o,inputTypeName:i,outputTypeName:a,toString(){return`rpc ${this.parent.typeName}.${e.name}`}}}class lt extends m{constructor(e){super(),this.seconds=v.zero,this.nanos=0,le.util.initPartial(e,this)}fromJson(e,t){if("string"!=typeof e)throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${le.json.debug(e)}`);const n=e.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!n)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");const r=Date.parse(n[1]+"-"+n[2]+"-"+n[3]+"T"+n[4]+":"+n[5]+":"+n[6]+(n[8]?n[8]:"Z"));if(Number.isNaN(r))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(r<Date.parse("0001-01-01T00:00:00Z")||r>Date.parse("9999-12-31T23:59:59Z"))throw new Error("cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");return this.seconds=v.parse(r/1e3),this.nanos=0,n[7]&&(this.nanos=parseInt("1"+n[7]+"0".repeat(9-n[7].length))-1e9),this}toJson(e){const t=1e3*Number(this.seconds);if(t<Date.parse("0001-01-01T00:00:00Z")||t>Date.parse("9999-12-31T23:59:59Z"))throw new Error("cannot encode google.protobuf.Timestamp to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");if(this.nanos<0)throw new Error("cannot encode google.protobuf.Timestamp to JSON: nanos must not be negative");let n="Z";if(this.nanos>0){const e=(this.nanos+1e9).toString().substring(1);n="000000"===e.substring(3)?"."+e.substring(0,3)+"Z":"000"===e.substring(6)?"."+e.substring(0,6)+"Z":"."+e+"Z"}return new Date(t).toISOString().replace(".000Z",n)}toDate(){return new Date(1e3*Number(this.seconds)+Math.ceil(this.nanos/1e6))}static now(){return lt.fromDate(new Date)}static fromDate(e){const t=e.getTime();return new lt({seconds:v.parse(Math.floor(t/1e3)),nanos:t%1e3*1e6})}static fromBinary(e,t){return(new lt).fromBinary(e,t)}static fromJson(e,t){return(new lt).fromJson(e,t)}static fromJsonString(e,t){return(new lt).fromJsonString(e,t)}static equals(e,t){return le.util.equals(lt,e,t)}}lt.runtime=le,lt.typeName="google.protobuf.Timestamp",lt.fields=le.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class ct extends m{constructor(e){super(),this.seconds=v.zero,this.nanos=0,le.util.initPartial(e,this)}fromJson(e,t){if("string"!=typeof e)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${le.json.debug(e)}`);const n=e.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/);if(null===n)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${le.json.debug(e)}`);const r=Number(n[1]);if(r>315576e6||r<-315576e6)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${le.json.debug(e)}`);if(this.seconds=v.parse(r),"string"==typeof n[2]){const e=n[2]+"0".repeat(9-n[2].length);this.nanos=parseInt(e),r<0n&&(this.nanos=-this.nanos)}return this}toJson(e){if(Number(this.seconds)>315576e6||Number(this.seconds)<-315576e6)throw new Error("cannot encode google.protobuf.Duration to JSON: value out of range");let t=this.seconds.toString();if(0!==this.nanos){let e=Math.abs(this.nanos).toString();e="0".repeat(9-e.length)+e,"000000"===e.substring(3)?e=e.substring(0,3):"000"===e.substring(6)&&(e=e.substring(0,6)),t+="."+e}return t+"s"}static fromBinary(e,t){return(new ct).fromBinary(e,t)}static fromJson(e,t){return(new ct).fromJson(e,t)}static fromJsonString(e,t){return(new ct).fromJsonString(e,t)}static equals(e,t){return le.util.equals(ct,e,t)}}ct.runtime=le,ct.typeName="google.protobuf.Duration",ct.fields=le.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class mt extends m{constructor(e){super(),this.typeUrl="",this.value=new Uint8Array(0),le.util.initPartial(e,this)}toJson(e){var t;if(""===this.typeUrl)return{};const n=this.typeUrlToName(this.typeUrl),r=null==e||null==(t=e.typeRegistry)?void 0:t.findMessage(n);if(!r)throw new Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let s=r.fromBinary(this.value).toJson(e);return(n.startsWith("google.protobuf.")||null===s||Array.isArray(s)||"object"!=typeof s)&&(s={value:s}),s["@type"]=this.typeUrl,s}fromJson(e,t){var n;if(null===e||Array.isArray(e)||"object"!=typeof e)throw new Error("cannot decode message google.protobuf.Any from JSON: expected object but got "+(null===e?"null":Array.isArray(e)?"array":typeof e));const r=e["@type"];if("string"!=typeof r||""==r)throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');const s=this.typeUrlToName(r),o=null==t||null==(n=t.typeRegistry)?void 0:n.findMessage(s);if(!o)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${r} is not in the type registry`);let i;if(s.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(e,"value"))i=o.fromJson(e.value,t);else{const n=Object.assign({},e);delete n["@type"],i=o.fromJson(n,t)}return this.packFrom(i),this}packFrom(e){this.value=e.toBinary(),this.typeUrl=this.typeNameToUrl(e.getType().typeName)}unpackTo(e){return!!this.is(e.getType())&&(e.fromBinary(this.value),!0)}is(e){return this.typeUrl===this.typeNameToUrl(e.typeName)}typeNameToUrl(e){return`type.googleapis.com/${e}`}typeUrlToName(e){if(!e.length)throw new Error(`invalid type url: ${e}`);const t=e.lastIndexOf("/"),n=t>0?e.substring(t+1):e;if(!n.length)throw new Error(`invalid type url: ${e}`);return n}static pack(e){const t=new mt;return t.packFrom(e),t}static fromBinary(e,t){return(new mt).fromBinary(e,t)}static fromJson(e,t){return(new mt).fromJson(e,t)}static fromJsonString(e,t){return(new mt).fromJsonString(e,t)}static equals(e,t){return le.util.equals(mt,e,t)}}mt.runtime=le,mt.typeName="google.protobuf.Any",mt.fields=le.util.newFieldList(()=>[{no:1,name:"type_url",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:12}]);class ft extends m{constructor(e){super(),le.util.initPartial(e,this)}static fromBinary(e,t){return(new ft).fromBinary(e,t)}static fromJson(e,t){return(new ft).fromJson(e,t)}static fromJsonString(e,t){return(new ft).fromJsonString(e,t)}static equals(e,t){return le.util.equals(ft,e,t)}}ft.runtime=le,ft.typeName="google.protobuf.Empty",ft.fields=le.util.newFieldList(()=>[]);class dt extends m{constructor(e){super(),this.paths=[],le.util.initPartial(e,this)}toJson(e){return this.paths.map(e=>{if(e.match(/_[0-9]?_/g)||e.match(/[A-Z]/g))throw new Error('cannot decode google.protobuf.FieldMask from JSON: lowerCamelCase of path name "'+e+'" is irreversible');return function(e){let t=!1;const n=[];for(let r=0;r<e.length;r++){let s=e.charAt(r);switch(s){case"_":t=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n.push(s),t=!1;break;default:t&&(t=!1,s=s.toUpperCase()),n.push(s)}}return n.join("")}(e)}).join(",")}fromJson(e,t){if("string"!=typeof e)throw new Error("cannot decode google.protobuf.FieldMask from JSON: "+le.json.debug(e));return""===e||(this.paths=e.split(",").map(function(e){if(e.includes("_"))throw new Error("cannot decode google.protobuf.FieldMask from JSON: path names must be lowerCamelCase");const t=e.replace(/[A-Z]/g,e=>"_"+e.toLowerCase());return"_"===t[0]?t.substring(1):t})),this}static fromBinary(e,t){return(new dt).fromBinary(e,t)}static fromJson(e,t){return(new dt).fromJson(e,t)}static fromJsonString(e,t){return(new dt).fromJsonString(e,t)}static equals(e,t){return le.util.equals(dt,e,t)}}var pt;dt.runtime=le,dt.typeName="google.protobuf.FieldMask",dt.fields=le.util.newFieldList(()=>[{no:1,name:"paths",kind:"scalar",T:9,repeated:!0}]),function(e){e[e.NULL_VALUE=0]="NULL_VALUE"}(pt||(pt={})),le.util.setEnumType(pt,"google.protobuf.NullValue",[{no:0,name:"NULL_VALUE"}]);class ht extends m{constructor(e){super(),this.fields={},le.util.initPartial(e,this)}toJson(e){const t={};for(const[n,r]of Object.entries(this.fields))t[n]=r.toJson(e);return t}fromJson(e,t){if("object"!=typeof e||null==e||Array.isArray(e))throw new Error("cannot decode google.protobuf.Struct from JSON "+le.json.debug(e));for(const[t,n]of Object.entries(e))this.fields[t]=gt.fromJson(n);return this}static fromBinary(e,t){return(new ht).fromBinary(e,t)}static fromJson(e,t){return(new ht).fromJson(e,t)}static fromJsonString(e,t){return(new ht).fromJsonString(e,t)}static equals(e,t){return le.util.equals(ht,e,t)}}ht.runtime=le,ht.typeName="google.protobuf.Struct",ht.fields=le.util.newFieldList(()=>[{no:1,name:"fields",kind:"map",K:9,V:{kind:"message",T:gt}}]);class gt extends m{constructor(e){super(),this.kind={case:void 0},le.util.initPartial(e,this)}toJson(t){switch(this.kind.case){case"nullValue":return null;case"boolValue":case"numberValue":case"stringValue":return this.kind.value;case"structValue":case"listValue":return this.kind.value.toJson(e({},t,{emitDefaultValues:!0}))}throw new Error("google.protobuf.Value must have a value")}fromJson(e,t){switch(typeof e){case"number":this.kind={case:"numberValue",value:e};break;case"string":this.kind={case:"stringValue",value:e};break;case"boolean":this.kind={case:"boolValue",value:e};break;case"object":this.kind=null===e?{case:"nullValue",value:pt.NULL_VALUE}:Array.isArray(e)?{case:"listValue",value:Tt.fromJson(e)}:{case:"structValue",value:ht.fromJson(e)};break;default:throw new Error("cannot decode google.protobuf.Value from JSON "+le.json.debug(e))}return this}static fromBinary(e,t){return(new gt).fromBinary(e,t)}static fromJson(e,t){return(new gt).fromJson(e,t)}static fromJsonString(e,t){return(new gt).fromJsonString(e,t)}static equals(e,t){return le.util.equals(gt,e,t)}}gt.runtime=le,gt.typeName="google.protobuf.Value",gt.fields=le.util.newFieldList(()=>[{no:1,name:"null_value",kind:"enum",T:le.getEnumType(pt),oneof:"kind"},{no:2,name:"number_value",kind:"scalar",T:1,oneof:"kind"},{no:3,name:"string_value",kind:"scalar",T:9,oneof:"kind"},{no:4,name:"bool_value",kind:"scalar",T:8,oneof:"kind"},{no:5,name:"struct_value",kind:"message",T:ht,oneof:"kind"},{no:6,name:"list_value",kind:"message",T:Tt,oneof:"kind"}]);class Tt extends m{constructor(e){super(),this.values=[],le.util.initPartial(e,this)}toJson(e){return this.values.map(e=>e.toJson())}fromJson(e,t){if(!Array.isArray(e))throw new Error("cannot decode google.protobuf.ListValue from JSON "+le.json.debug(e));for(let t of e)this.values.push(gt.fromJson(t));return this}static fromBinary(e,t){return(new Tt).fromBinary(e,t)}static fromJson(e,t){return(new Tt).fromJson(e,t)}static fromJsonString(e,t){return(new Tt).fromJsonString(e,t)}static equals(e,t){return le.util.equals(Tt,e,t)}}Tt.runtime=le,Tt.typeName="google.protobuf.ListValue",Tt.fields=le.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:gt,repeated:!0}]);class yt extends m{constructor(e){super(),this.value=0,le.util.initPartial(e,this)}toJson(e){return le.json.writeScalar(d.DOUBLE,this.value,!0)}fromJson(e,t){try{this.value=le.json.readScalar(d.DOUBLE,e)}catch(e){let t='cannot decode message google.protobuf.DoubleValue from JSON"';throw e instanceof Error&&e.message.length>0&&(t+=`: ${e.message}`),new Error(t)}return this}static fromBinary(e,t){return(new yt).fromBinary(e,t)}static fromJson(e,t){return(new yt).fromJson(e,t)}static fromJsonString(e,t){return(new yt).fromJsonString(e,t)}static equals(e,t){return le.util.equals(yt,e,t)}}yt.runtime=le,yt.typeName="google.protobuf.DoubleValue",yt.fields=le.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:1}]),yt.fieldWrapper={wrapField:e=>e instanceof yt?e:new yt({value:e}),unwrapField:e=>e.value};class wt extends m{constructor(e){super(),this.value=0,le.util.initPartial(e,this)}toJson(e){return le.json.writeScalar(d.FLOAT,this.value,!0)}fromJson(e,t){try{this.value=le.json.readScalar(d.FLOAT,e)}catch(e){let t='cannot decode message google.protobuf.FloatValue from JSON"';throw e instanceof Error&&e.message.length>0&&(t+=`: ${e.message}`),new Error(t)}return this}static fromBinary(e,t){return(new wt).fromBinary(e,t)}static fromJson(e,t){return(new wt).fromJson(e,t)}static fromJsonString(e,t){return(new wt).fromJsonString(e,t)}static equals(e,t){return le.util.equals(wt,e,t)}}wt.runtime=le,wt.typeName="google.protobuf.FloatValue",wt.fields=le.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:2}]),wt.fieldWrapper={wrapField:e=>e instanceof wt?e:new wt({value:e}),unwrapField:e=>e.value};class vt extends m{constructor(e){super(),this.value=v.zero,le.util.initPartial(e,this)}toJson(e){return le.json.writeScalar(d.INT64,this.value,!0)}fromJson(e,t){try{this.value=le.json.readScalar(d.INT64,e)}catch(e){let t='cannot decode message google.protobuf.Int64Value from JSON"';throw e instanceof Error&&e.message.length>0&&(t+=`: ${e.message}`),new Error(t)}return this}static fromBinary(e,t){return(new vt).fromBinary(e,t)}static fromJson(e,t){return(new vt).fromJson(e,t)}static fromJsonString(e,t){return(new vt).fromJsonString(e,t)}static equals(e,t){return le.util.equals(vt,e,t)}}vt.runtime=le,vt.typeName="google.protobuf.Int64Value",vt.fields=le.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:3}]),vt.fieldWrapper={wrapField:e=>e instanceof vt?e:new vt({value:e}),unwrapField:e=>e.value};class Nt extends m{constructor(e){super(),this.value=v.zero,le.util.initPartial(e,this)}toJson(e){return le.json.writeScalar(d.UINT64,this.value,!0)}fromJson(e,t){try{this.value=le.json.readScalar(d.UINT64,e)}catch(e){let t='cannot decode message google.protobuf.UInt64Value from JSON"';throw e instanceof Error&&e.message.length>0&&(t+=`: ${e.message}`),new Error(t)}return this}static fromBinary(e,t){return(new Nt).fromBinary(e,t)}static fromJson(e,t){return(new Nt).fromJson(e,t)}static fromJsonString(e,t){return(new Nt).fromJsonString(e,t)}static equals(e,t){return le.util.equals(Nt,e,t)}}Nt.runtime=le,Nt.typeName="google.protobuf.UInt64Value",Nt.fields=le.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:4}]),Nt.fieldWrapper={wrapField:e=>e instanceof Nt?e:new Nt({value:e}),unwrapField:e=>e.value};class bt extends m{constructor(e){super(),this.value=0,le.util.initPartial(e,this)}toJson(e){return le.json.writeScalar(d.INT32,this.value,!0)}fromJson(e,t){try{this.value=le.json.readScalar(d.INT32,e)}catch(e){let t='cannot decode message google.protobuf.Int32Value from JSON"';throw e instanceof Error&&e.message.length>0&&(t+=`: ${e.message}`),new Error(t)}return this}static fromBinary(e,t){return(new bt).fromBinary(e,t)}static fromJson(e,t){return(new bt).fromJson(e,t)}static fromJsonString(e,t){return(new bt).fromJsonString(e,t)}static equals(e,t){return le.util.equals(bt,e,t)}}bt.runtime=le,bt.typeName="google.protobuf.Int32Value",bt.fields=le.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:5}]),bt.fieldWrapper={wrapField:e=>e instanceof bt?e:new bt({value:e}),unwrapField:e=>e.value};class kt extends m{constructor(e){super(),this.value=0,le.util.initPartial(e,this)}toJson(e){return le.json.writeScalar(d.UINT32,this.value,!0)}fromJson(e,t){try{this.value=le.json.readScalar(d.UINT32,e)}catch(e){let t='cannot decode message google.protobuf.UInt32Value from JSON"';throw e instanceof Error&&e.message.length>0&&(t+=`: ${e.message}`),new Error(t)}return this}static fromBinary(e,t){return(new kt).fromBinary(e,t)}static fromJson(e,t){return(new kt).fromJson(e,t)}static fromJsonString(e,t){return(new kt).fromJsonString(e,t)}static equals(e,t){return le.util.equals(kt,e,t)}}kt.runtime=le,kt.typeName="google.protobuf.UInt32Value",kt.fields=le.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:13}]),kt.fieldWrapper={wrapField:e=>e instanceof kt?e:new kt({value:e}),unwrapField:e=>e.value};class Et extends m{constructor(e){super(),this.value=!1,le.util.initPartial(e,this)}toJson(e){return le.json.writeScalar(d.BOOL,this.value,!0)}fromJson(e,t){try{this.value=le.json.readScalar(d.BOOL,e)}catch(e){let t='cannot decode message google.protobuf.BoolValue from JSON"';throw e instanceof Error&&e.message.length>0&&(t+=`: ${e.message}`),new Error(t)}return this}static fromBinary(e,t){return(new Et).fromBinary(e,t)}static fromJson(e,t){return(new Et).fromJson(e,t)}static fromJsonString(e,t){return(new Et).fromJsonString(e,t)}static equals(e,t){return le.util.equals(Et,e,t)}}Et.runtime=le,Et.typeName="google.protobuf.BoolValue",Et.fields=le.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:8}]),Et.fieldWrapper={wrapField:e=>e instanceof Et?e:new Et({value:e}),unwrapField:e=>e.value};class St extends m{constructor(e){super(),this.value="",le.util.initPartial(e,this)}toJson(e){return le.json.writeScalar(d.STRING,this.value,!0)}fromJson(e,t){try{this.value=le.json.readScalar(d.STRING,e)}catch(e){let t='cannot decode message google.protobuf.StringValue from JSON"';throw e instanceof Error&&e.message.length>0&&(t+=`: ${e.message}`),new Error(t)}return this}static fromBinary(e,t){return(new St).fromBinary(e,t)}static fromJson(e,t){return(new St).fromJson(e,t)}static fromJsonString(e,t){return(new St).fromJsonString(e,t)}static equals(e,t){return le.util.equals(St,e,t)}}St.runtime=le,St.typeName="google.protobuf.StringValue",St.fields=le.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:9}]),St.fieldWrapper={wrapField:e=>e instanceof St?e:new St({value:e}),unwrapField:e=>e.value};class It extends m{constructor(e){super(),this.value=new Uint8Array(0),le.util.initPartial(e,this)}toJson(e){return le.json.writeScalar(d.BYTES,this.value,!0)}fromJson(e,t){try{this.value=le.json.readScalar(d.BYTES,e)}catch(e){let t='cannot decode message google.protobuf.BytesValue from JSON"';throw e instanceof Error&&e.message.length>0&&(t+=`: ${e.message}`),new Error(t)}return this}static fromBinary(e,t){return(new It).fromBinary(e,t)}static fromJson(e,t){return(new It).fromJson(e,t)}static fromJsonString(e,t){return(new It).fromJsonString(e,t)}static equals(e,t){return le.util.equals(It,e,t)}}It.runtime=le,It.typeName="google.protobuf.BytesValue",It.fields=le.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:12}]),It.fieldWrapper={wrapField:e=>e instanceof It?e:new It({value:e}),unwrapField:e=>e.value};const Jt=[mt,ct,ft,dt,ht,gt,Tt,lt,ct,yt,wt,vt,bt,kt,Nt,Et,St,It],Ot=[i(pt)];class _t{constructor(e,t=!0){if(this.ds=void 0,this.enums={},this.messages={},this.services={},this.ds=null!=e?e:new Ke,t){for(const e of Jt)this.messages["."+e.typeName]=e;for(const e of Ot)this.enums["."+e.typeName]=e}}static fromFileDescriptorSet(e){const t=e instanceof Uint8Array?be.fromBinary(e):new be(e),n=new _t;return n.add(...t.file),n}add(...e){this.ds.add(...e)}findEnum(e){const t="."+e,n=this.enums[t];if(n)return n;const r=this.ds.enums[t];if(!r)return;const s=("proto3"==r.file.syntax?le:me).makeEnumType(e,r.values.map(e=>({no:e.number,name:e.name})),{});return this.enums[t]=s,s}findMessage(e){const t="."+e,n=this.messages[t];if(n)return n;const r=this.ds.messages[t];if(!r)return;const s=[],o=("proto3"==r.file.syntax?le:me).makeMessageType(e,()=>s,{localName:Ft(r)});this.messages[t]=o;for(const e of r.fields.map(e=>e.resolve(this.ds))){const t=Bt(e,this);s.push(t)}return o}findService(e){const n="."+e,r=this.services[n];if(r)return r;const s=this.ds.services[n];if(!s)return;const o={};for(const e of s.methods){const n=this.findMessage(e.inputTypeName),r=this.findMessage(e.outputTypeName);t(n,`message "${e.inputTypeName}" for ${e.toString()} not found`),t(r,`output message "${e.outputTypeName}" for ${e.toString()} not found`);const s={name:e.name,localName:(i=e.name,0==i.length?i:i[0].toLowerCase()+i.substring(1)),I:n,O:r,kind:e.kind,idempotency:e.idempotency,options:{}};o[s.localName]=s}var i;return this.services[n]={typeName:s.typeName,methods:o}}}function Ft(e){var t;const n=e.typeName,r=(null!=(t=e.file.proto.package)?t:"")+".";return n.startsWith(r)?n.substring(r.length).split(".").join("_"):e.name}function Bt(n,r){if(void 0!==n.map)return function(n,r){const s={kind:"map",name:n.name,no:n.number,K:n.map.key};if(n.map.value.message){const o=r.findMessage(n.map.value.message.typeName);return t(o,`message "${n.map.value.message.typeName}" for ${n.toString()} not found`),e({},s,{V:{kind:"message",T:o}})}if(n.map.value.enum){const o=r.findEnum(n.map.value.enum.typeName);return t(o,`enum "${n.map.value.enum.typeName}" for ${n.toString()} not found`),e({},s,{V:{kind:"enum",T:o}})}return e({},s,{V:{kind:"scalar",T:n.map.value.scalarType}})}(n,r);if(n.message)return function(n,r){const s=r.findMessage(n.message.typeName);t(s,`message "${n.message.typeName}" for ${n.toString()} not found`);const o={no:n.number,name:n.name,kind:"message",T:s};return n.repeated?e({},o,{repeated:!0,packed:n.packed,oneof:void 0}):n.oneof?e({},o,{oneof:n.oneof.name}):n.optional?e({},o,{opt:!0}):o}(n,r);const s=n.enum?function(n,r){const s=r.findEnum(n.enum.typeName);t(s,`message "${n.enum.typeName}" for ${n.toString()} not found`);const o={no:n.number,name:n.name,kind:"enum",T:s};return n.repeated?e({},o,{repeated:!0,packed:n.packed,oneof:void 0}):n.oneof?e({},o,{oneof:n.oneof.name}):n.optional?e({},o,{opt:!0}):o}(n,r):function(t){const n={no:t.number,name:t.name,kind:"scalar",T:t.scalarType};return t.repeated?e({},n,{repeated:!0,packed:t.packed,oneof:void 0,T:t.scalarType}):t.oneof?e({},n,{oneof:t.oneof.name}):t.optional?e({},n,{opt:!0}):n}(n);return s.default=function(e){const n=e.proto.defaultValue;if(void 0!==n){if(e.enum){const r=e.enum.values.find(e=>e.name===n);return t(r,`cannot parse ${e.toString()} default value: ${n}`),r.number}if(e.scalarType)switch(e.scalarType){case d.STRING:return n;case d.BYTES:{const t=function(e){const t=[],n={tail:e,c:"",next(){return 0!=this.tail.length&&(this.c=this.tail[0],this.tail=this.tail.substring(1),!0)},take(e){if(this.tail.length>=e){const t=this.tail.substring(0,e);return this.tail=this.tail.substring(e),t}return!1}};for(;n.next();)if("\\"===n.c){if(n.next())switch(n.c){case"\\":t.push(n.c.charCodeAt(0));break;case"b":t.push(8);break;case"f":t.push(12);break;case"n":t.push(10);break;case"r":t.push(13);break;case"t":t.push(9);break;case"v":t.push(11);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{const e=n.c,r=n.take(2);if(!1===r)return!1;const s=parseInt(e+r,8);if(isNaN(s))return!1;t.push(s);break}case"x":{const e=n.c,r=n.take(2);if(!1===r)return!1;const s=parseInt(e+r,16);if(isNaN(s))return!1;t.push(s);break}case"u":{const e=n.c,r=n.take(4);if(!1===r)return!1;const s=parseInt(e+r,16);if(isNaN(s))return!1;const o=new Uint8Array(4);new DataView(o.buffer).setInt32(0,s,!0),t.push(o[0],o[1],o[2],o[3]);break}case"U":{const e=n.c,r=n.take(8);if(!1===r)return!1;const s=v.uEnc(e+r),o=new Uint8Array(8),i=new DataView(o.buffer);i.setInt32(0,s.lo,!0),i.setInt32(4,s.hi,!0),t.push(o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7]);break}}}else t.push(n.c.charCodeAt(0));return new Uint8Array(t)}(n);if(!1===t)throw new Error(`cannot parse ${e.toString()} default value: ${n}`);return t}case d.INT64:case d.SFIXED64:case d.SINT64:return v.parse(n);case d.UINT64:case d.FIXED64:return v.uParse(n);case d.DOUBLE:case d.FLOAT:switch(n){case"inf":return Number.POSITIVE_INFINITY;case"-inf":return Number.NEGATIVE_INFINITY;case"nan":return Number.NaN;default:return parseFloat(n)}case d.BOOL:return Boolean(n);case d.INT32:case d.UINT32:case d.SINT32:case d.FIXED32:case d.SFIXED32:return parseInt(n,10)}}}(n),s}class Pt extends m{constructor(e){super(),this.major=void 0,this.minor=void 0,this.patch=void 0,this.suffix=void 0,me.util.initPartial(e,this)}static fromBinary(e,t){return(new Pt).fromBinary(e,t)}static fromJson(e,t){return(new Pt).fromJson(e,t)}static fromJsonString(e,t){return(new Pt).fromJsonString(e,t)}static equals(e,t){return me.util.equals(Pt,e,t)}}Pt.runtime=me,Pt.typeName="google.protobuf.compiler.Version",Pt.fields=me.util.newFieldList(()=>[{no:1,name:"major",kind:"scalar",T:5,opt:!0},{no:2,name:"minor",kind:"scalar",T:5,opt:!0},{no:3,name:"patch",kind:"scalar",T:5,opt:!0},{no:4,name:"suffix",kind:"scalar",T:9,opt:!0}]);class Dt extends m{constructor(e){super(),this.fileToGenerate=[],this.parameter=void 0,this.protoFile=[],this.compilerVersion=void 0,me.util.initPartial(e,this)}static fromBinary(e,t){return(new Dt).fromBinary(e,t)}static fromJson(e,t){return(new Dt).fromJson(e,t)}static fromJsonString(e,t){return(new Dt).fromJsonString(e,t)}static equals(e,t){return me.util.equals(Dt,e,t)}}Dt.runtime=me,Dt.typeName="google.protobuf.compiler.CodeGeneratorRequest",Dt.fields=me.util.newFieldList(()=>[{no:1,name:"file_to_generate",kind:"scalar",T:9,repeated:!0},{no:2,name:"parameter",kind:"scalar",T:9,opt:!0},{no:15,name:"proto_file",kind:"message",T:ke,repeated:!0},{no:3,name:"compiler_version",kind:"message",T:Pt,opt:!0}]);class Lt extends m{constructor(e){super(),this.error=void 0,this.supportedFeatures=void 0,this.file=[],me.util.initPartial(e,this)}static fromBinary(e,t){return(new Lt).fromBinary(e,t)}static fromJson(e,t){return(new Lt).fromJson(e,t)}static fromJsonString(e,t){return(new Lt).fromJsonString(e,t)}static equals(e,t){return me.util.equals(Lt,e,t)}}var Ut,xt,At,$t;Lt.runtime=me,Lt.typeName="google.protobuf.compiler.CodeGeneratorResponse",Lt.fields=me.util.newFieldList(()=>[{no:1,name:"error",kind:"scalar",T:9,opt:!0},{no:2,name:"supported_features",kind:"scalar",T:4,opt:!0},{no:15,name:"file",kind:"message",T:qt,repeated:!0}]),function(e){e[e.NONE=0]="NONE",e[e.PROTO3_OPTIONAL=1]="PROTO3_OPTIONAL"}(Ut||(Ut={})),me.util.setEnumType(Ut,"google.protobuf.compiler.CodeGeneratorResponse.Feature",[{no:0,name:"FEATURE_NONE"},{no:1,name:"FEATURE_PROTO3_OPTIONAL"}]);class qt extends m{constructor(e){super(),this.name=void 0,this.insertionPoint=void 0,this.content=void 0,this.generatedCodeInfo=void 0,me.util.initPartial(e,this)}static fromBinary(e,t){return(new qt).fromBinary(e,t)}static fromJson(e,t){return(new qt).fromJson(e,t)}static fromJsonString(e,t){return(new qt).fromJsonString(e,t)}static equals(e,t){return me.util.equals(qt,e,t)}}qt.runtime=me,qt.typeName="google.protobuf.compiler.CodeGeneratorResponse.File",qt.fields=me.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"insertion_point",kind:"scalar",T:9,opt:!0},{no:15,name:"content",kind:"scalar",T:9,opt:!0},{no:16,name:"generated_code_info",kind:"message",T:Ce,opt:!0}]);class Yt extends m{constructor(e){super(),this.fileName="",le.util.initPartial(e,this)}static fromBinary(e,t){return(new Yt).fromBinary(e,t)}static fromJson(e,t){return(new Yt).fromJson(e,t)}static fromJsonString(e,t){return(new Yt).fromJsonString(e,t)}static equals(e,t){return le.util.equals(Yt,e,t)}}Yt.runtime=le,Yt.typeName="google.protobuf.SourceContext",Yt.fields=le.util.newFieldList(()=>[{no:1,name:"file_name",kind:"scalar",T:9}]),function(e){e[e.PROTO2=0]="PROTO2",e[e.PROTO3=1]="PROTO3"}(xt||(xt={})),le.util.setEnumType(xt,"google.protobuf.Syntax",[{no:0,name:"SYNTAX_PROTO2"},{no:1,name:"SYNTAX_PROTO3"}]);class Rt extends m{constructor(e){super(),this.name="",this.fields=[],this.oneofs=[],this.options=[],this.sourceContext=void 0,this.syntax=xt.PROTO2,le.util.initPartial(e,this)}static fromBinary(e,t){return(new Rt).fromBinary(e,t)}static fromJson(e,t){return(new Rt).fromJson(e,t)}static fromJsonString(e,t){return(new Rt).fromJsonString(e,t)}static equals(e,t){return le.util.equals(Rt,e,t)}}Rt.runtime=le,Rt.typeName="google.protobuf.Type",Rt.fields=le.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"fields",kind:"message",T:Vt,repeated:!0},{no:3,name:"oneofs",kind:"scalar",T:9,repeated:!0},{no:4,name:"options",kind:"message",T:Gt,repeated:!0},{no:5,name:"source_context",kind:"message",T:Yt},{no:6,name:"syntax",kind:"enum",T:le.getEnumType(xt)}]);class Vt extends m{constructor(e){super(),this.kind=At.TYPE_UNKNOWN,this.cardinality=$t.UNKNOWN,this.number=0,this.name="",this.typeUrl="",this.oneofIndex=0,this.packed=!1,this.options=[],this.jsonName="",this.defaultValue="",le.util.initPartial(e,this)}static fromBinary(e,t){return(new Vt).fromBinary(e,t)}static fromJson(e,t){return(new Vt).fromJson(e,t)}static fromJsonString(e,t){return(new Vt).fromJsonString(e,t)}static equals(e,t){return le.util.equals(Vt,e,t)}}Vt.runtime=le,Vt.typeName="google.protobuf.Field",Vt.fields=le.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:le.getEnumType(At)},{no:2,name:"cardinality",kind:"enum",T:le.getEnumType($t)},{no:3,name:"number",kind:"scalar",T:5},{no:4,name:"name",kind:"scalar",T:9},{no:6,name:"type_url",kind:"scalar",T:9},{no:7,name:"oneof_index",kind:"scalar",T:5},{no:8,name:"packed",kind:"scalar",T:8},{no:9,name:"options",kind:"message",T:Gt,repeated:!0},{no:10,name:"json_name",kind:"scalar",T:9},{no:11,name:"default_value",kind:"scalar",T:9}]),function(e){e[e.TYPE_UNKNOWN=0]="TYPE_UNKNOWN",e[e.TYPE_DOUBLE=1]="TYPE_DOUBLE",e[e.TYPE_FLOAT=2]="TYPE_FLOAT",e[e.TYPE_INT64=3]="TYPE_INT64",e[e.TYPE_UINT64=4]="TYPE_UINT64",e[e.TYPE_INT32=5]="TYPE_INT32",e[e.TYPE_FIXED64=6]="TYPE_FIXED64",e[e.TYPE_FIXED32=7]="TYPE_FIXED32",e[e.TYPE_BOOL=8]="TYPE_BOOL",e[e.TYPE_STRING=9]="TYPE_STRING",e[e.TYPE_GROUP=10]="TYPE_GROUP",e[e.TYPE_MESSAGE=11]="TYPE_MESSAGE",e[e.TYPE_BYTES=12]="TYPE_BYTES",e[e.TYPE_UINT32=13]="TYPE_UINT32",e[e.TYPE_ENUM=14]="TYPE_ENUM",e[e.TYPE_SFIXED32=15]="TYPE_SFIXED32",e[e.TYPE_SFIXED64=16]="TYPE_SFIXED64",e[e.TYPE_SINT32=17]="TYPE_SINT32",e[e.TYPE_SINT64=18]="TYPE_SINT64"}(At||(At={})),le.util.setEnumType(At,"google.protobuf.Field.Kind",[{no:0,name:"TYPE_UNKNOWN"},{no:1,name:"TYPE_DOUBLE"},{no:2,name:"TYPE_FLOAT"},{no:3,name:"TYPE_INT64"},{no:4,name:"TYPE_UINT64"},{no:5,name:"TYPE_INT32"},{no:6,name:"TYPE_FIXED64"},{no:7,name:"TYPE_FIXED32"},{no:8,name:"TYPE_BOOL"},{no:9,name:"TYPE_STRING"},{no:10,name:"TYPE_GROUP"},{no:11,name:"TYPE_MESSAGE"},{no:12,name:"TYPE_BYTES"},{no:13,name:"TYPE_UINT32"},{no:14,name:"TYPE_ENUM"},{no:15,name:"TYPE_SFIXED32"},{no:16,name:"TYPE_SFIXED64"},{no:17,name:"TYPE_SINT32"},{no:18,name:"TYPE_SINT64"}]),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.OPTIONAL=1]="OPTIONAL",e[e.REQUIRED=2]="REQUIRED",e[e.REPEATED=3]="REPEATED"}($t||($t={})),le.util.setEnumType($t,"google.protobuf.Field.Cardinality",[{no:0,name:"CARDINALITY_UNKNOWN"},{no:1,name:"CARDINALITY_OPTIONAL"},{no:2,name:"CARDINALITY_REQUIRED"},{no:3,name:"CARDINALITY_REPEATED"}]);class jt extends m{constructor(e){super(),this.name="",this.enumvalue=[],this.options=[],this.sourceContext=void 0,this.syntax=xt.PROTO2,le.util.initPartial(e,this)}static fromBinary(e,t){return(new jt).fromBinary(e,t)}static fromJson(e,t){return(new jt).fromJson(e,t)}static fromJsonString(e,t){return(new jt).fromJsonString(e,t)}static equals(e,t){return le.util.equals(jt,e,t)}}jt.runtime=le,jt.typeName="google.protobuf.Enum",jt.fields=le.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"enumvalue",kind:"message",T:Mt,repeated:!0},{no:3,name:"options",kind:"message",T:Gt,repeated:!0},{no:4,name:"source_context",kind:"message",T:Yt},{no:5,name:"syntax",kind:"enum",T:le.getEnumType(xt)}]);class Mt extends m{constructor(e){super(),this.name="",this.number=0,this.options=[],le.util.initPartial(e,this)}static fromBinary(e,t){return(new Mt).fromBinary(e,t)}static fromJson(e,t){return(new Mt).fromJson(e,t)}static fromJsonString(e,t){return(new Mt).fromJsonString(e,t)}static equals(e,t){return le.util.equals(Mt,e,t)}}Mt.runtime=le,Mt.typeName="google.protobuf.EnumValue",Mt.fields=le.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"number",kind:"scalar",T:5},{no:3,name:"options",kind:"message",T:Gt,repeated:!0}]);class Gt extends m{constructor(e){super(),this.name="",this.value=void 0,le.util.initPartial(e,this)}static fromBinary(e,t){return(new Gt).fromBinary(e,t)}static fromJson(e,t){return(new Gt).fromJson(e,t)}static fromJsonString(e,t){return(new Gt).fromJsonString(e,t)}static equals(e,t){return le.util.equals(Gt,e,t)}}Gt.runtime=le,Gt.typeName="google.protobuf.Option",Gt.fields=le.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"message",T:mt}]);class Xt extends m{constructor(e){super(),this.name="",this.methods=[],this.options=[],this.version="",this.sourceContext=void 0,this.mixins=[],this.syntax=xt.PROTO2,le.util.initPartial(e,this)}static fromBinary(e,t){return(new Xt).fromBinary(e,t)}static fromJson(e,t){return(new Xt).fromJson(e,t)}static fromJsonString(e,t){return(new Xt).fromJsonString(e,t)}static equals(e,t){return le.util.equals(Xt,e,t)}}Xt.runtime=le,Xt.typeName="google.protobuf.Api",Xt.fields=le.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"methods",kind:"message",T:Ct,repeated:!0},{no:3,name:"options",kind:"message",T:Gt,repeated:!0},{no:4,name:"version",kind:"scalar",T:9},{no:5,name:"source_context",kind:"message",T:Yt},{no:6,name:"mixins",kind:"message",T:Wt,repeated:!0},{no:7,name:"syntax",kind:"enum",T:le.getEnumType(xt)}]);class Ct extends m{constructor(e){super(),this.name="",this.requestTypeUrl="",this.requestStreaming=!1,this.responseTypeUrl="",this.responseStreaming=!1,this.options=[],this.syntax=xt.PROTO2,le.util.initPartial(e,this)}static fromBinary(e,t){return(new Ct).fromBinary(e,t)}static fromJson(e,t){return(new Ct).fromJson(e,t)}static fromJsonString(e,t){return(new Ct).fromJsonString(e,t)}static equals(e,t){return le.util.equals(Ct,e,t)}}Ct.runtime=le,Ct.typeName="google.protobuf.Method",Ct.fields=le.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"request_type_url",kind:"scalar",T:9},{no:3,name:"request_streaming",kind:"scalar",T:8},{no:4,name:"response_type_url",kind:"scalar",T:9},{no:5,name:"response_streaming",kind:"scalar",T:8},{no:6,name:"options",kind:"message",T:Gt,repeated:!0},{no:7,name:"syntax",kind:"enum",T:le.getEnumType(xt)}]);class Wt extends m{constructor(e){super(),this.name="",this.root="",le.util.initPartial(e,this)}static fromBinary(e,t){return(new Wt).fromBinary(e,t)}static fromJson(e,t){return(new Wt).fromJson(e,t)}static fromJsonString(e,t){return(new Wt).fromJsonString(e,t)}static equals(e,t){return le.util.equals(Wt,e,t)}}Wt.runtime=le,Wt.typeName="google.protobuf.Mixin",Wt.fields=le.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"root",kind:"scalar",T:9}]);export{mt as Any,Xt as Api,k as BinaryReader,b as BinaryWriter,Et as BoolValue,It as BytesValue,Dt as CodeGeneratorRequest,Lt as CodeGeneratorResponse,Ut as CodeGeneratorResponse_Feature,qt as CodeGeneratorResponse_File,Ee as DescriptorProto,Se as DescriptorProto_ExtensionRange,Ie as DescriptorProto_ReservedRange,_t as DescriptorRegistry,Ke as DescriptorSet,yt as DoubleValue,ct as Duration,ft as Empty,jt as Enum,Fe as EnumDescriptorProto,Be as EnumDescriptorProto_EnumReservedRange,qe as EnumOptions,Mt as EnumValue,Pe as EnumValueDescriptorProto,Ye as EnumValueOptions,Je as ExtensionRangeOptions,Vt as Field,Oe as FieldDescriptorProto,ge as FieldDescriptorProto_Label,he as FieldDescriptorProto_Type,dt as FieldMask,Ae as FieldOptions,ye as FieldOptions_CType,we as FieldOptions_JSType,$t as Field_Cardinality,At as Field_Kind,ke as FileDescriptorProto,be as FileDescriptorSet,Ue as FileOptions,Te as FileOptions_OptimizeMode,wt as FloatValue,Ce as GeneratedCodeInfo,We as GeneratedCodeInfo_Annotation,bt as Int32Value,vt as Int64Value,Tt as ListValue,m as Message,xe as MessageOptions,Ct as Method,Le as MethodDescriptorProto,pe as MethodIdempotency,de as MethodKind,Ve as MethodOptions,ve as MethodOptions_IdempotencyLevel,Wt as Mixin,pt as NullValue,_e as OneofDescriptorProto,$e as OneofOptions,Gt as Option,d as ScalarType,De as ServiceDescriptorProto,Re as ServiceOptions,Ge as SourceCodeInfo,Xe as SourceCodeInfo_Location,Yt as SourceContext,St as StringValue,ht as Struct,xt as Syntax,lt as Timestamp,Rt as Type,Ne as TypeRegistry,kt as UInt32Value,Nt as UInt64Value,je as UninterpretedOption,Me as UninterpretedOption_NamePart,gt as Value,Pt as Version,N as WireType,me as proto2,le as proto3,j as protoBase64,v as protoInt64};
|
|
2
|
+
//# sourceMappingURL=protobuf.modern.js.map
|