Files
to_session/text/3.65.22_0/scripts/ui/chunk-YUSIJWOC.js
Administrator a0720d80dc fefdwef
2025-11-12 12:54:37 +08:00

38 lines
76 KiB
JavaScript

import{a as Ai,b as Si,c as xi,d as Ei,e as ki,f as qi,g as Bi,h as Ti,i as Ri,j as Ni,l as kr,m as qr,n as Ii}from"./chunk-2DSLTDTL.js";import{b as xr,c as _,d as Er,o as h,q as d}from"./chunk-QTLWQ5AJ.js";var Tr=_((no,Br)=>{"use strict";h();d();Br.exports=M;var We=de();function M(r,e){this.lo=r>>>0,this.hi=e>>>0}var Te=M.zero=new M(0,0);Te.toNumber=function(){return 0};Te.zzEncode=Te.zzDecode=function(){return this};Te.length=function(){return 1};var Pi=M.zeroHash="\0\0\0\0\0\0\0\0";M.fromNumber=function(e){if(e===0)return Te;var t=e<0;t&&(e=-e);var n=e>>>0,i=(e-n)/4294967296>>>0;return t&&(i=~i>>>0,n=~n>>>0,++n>4294967295&&(n=0,++i>4294967295&&(i=0))),new M(n,i)};M.from=function(e){if(typeof e=="number")return M.fromNumber(e);if(We.isString(e))if(We.Long)e=We.Long.fromString(e);else return M.fromNumber(parseInt(e,10));return e.low||e.high?new M(e.low>>>0,e.high>>>0):Te};M.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=~this.lo+1>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+n*4294967296)}return this.lo+this.hi*4294967296};M.prototype.toLong=function(e){return We.Long?new We.Long(this.lo|0,this.hi|0,Boolean(e)):{low:this.lo|0,high:this.hi|0,unsigned:Boolean(e)}};var Se=String.prototype.charCodeAt;M.fromHash=function(e){return e===Pi?Te:new M((Se.call(e,0)|Se.call(e,1)<<8|Se.call(e,2)<<16|Se.call(e,3)<<24)>>>0,(Se.call(e,4)|Se.call(e,5)<<8|Se.call(e,6)<<16|Se.call(e,7)<<24)>>>0)};M.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};M.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this};M.prototype.zzDecode=function(){var e=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this};M.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return n===0?t===0?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}});var de=_(Nt=>{"use strict";h();d();var p=Nt;p.asPromise=Ai();p.base64=Si();p.EventEmitter=xi();p.float=Ei();p.inquire=ki();p.utf8=qi();p.pool=Bi();p.LongBits=Tr();p.isNode=Boolean(typeof globalThis<"u"&&globalThis&&globalThis.process&&globalThis.process.versions&&globalThis.process.versions.node);p.global=p.isNode&&globalThis||typeof window<"u"&&window||typeof self<"u"&&self||Nt;p.emptyArray=Object.freeze?Object.freeze([]):[];p.emptyObject=Object.freeze?Object.freeze({}):{};p.isInteger=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};p.isString=function(e){return typeof e=="string"||e instanceof String};p.isObject=function(e){return e&&typeof e=="object"};p.isset=p.isSet=function(e,t){var n=e[t];return n!=null&&e.hasOwnProperty(t)?typeof n!="object"||(Array.isArray(n)?n.length:Object.keys(n).length)>0:!1};p.Buffer=function(){try{var r=p.inquire("buffer").Buffer;return r.prototype.utf8Write?r:null}catch{return null}}();p._Buffer_from=null;p._Buffer_allocUnsafe=null;p.newBuffer=function(e){return typeof e=="number"?p.Buffer?p._Buffer_allocUnsafe(e):new p.Array(e):p.Buffer?p._Buffer_from(e):typeof Uint8Array>"u"?e:new Uint8Array(e)};p.Array=typeof Uint8Array<"u"?Uint8Array:Array;p.Long=p.global.dcodeIO&&p.global.dcodeIO.Long||p.global.Long||p.inquire("long");p.key2Re=/^true|false|0|1$/;p.key32Re=/^-?(?:0|[1-9][0-9]*)$/;p.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;p.longToHash=function(e){return e?p.LongBits.from(e).toHash():p.LongBits.zeroHash};p.longFromHash=function(e,t){var n=p.LongBits.fromHash(e);return p.Long?p.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))};function Rr(r,e,t){for(var n=Object.keys(e),i=0;i<n.length;++i)(r[n[i]]===void 0||!t)&&(r[n[i]]=e[n[i]]);return r}p.merge=Rr;p.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)};function Nr(r){function e(t,n){if(!(this instanceof e))return new e(t,n);Object.defineProperty(this,"message",{get:function(){return t}}),Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:new Error().stack||""}),n&&Rr(this,n)}return e.prototype=Object.create(Error.prototype,{constructor:{value:e,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return r},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),e}p.newError=Nr;p.ProtocolError=Nr("ProtocolError");p.oneOfGetter=function(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=1;return function(){for(var i=Object.keys(this),s=i.length-1;s>-1;--s)if(t[i[s]]===1&&this[i[s]]!==void 0&&this[i[s]]!==null)return i[s]}};p.oneOfSetter=function(e){return function(t){for(var n=0;n<e.length;++n)e[n]!==t&&delete this[e[n]]}};p.toJSONOptions={longs:String,enums:String,bytes:String,json:!0};p._configure=function(){var r=p.Buffer;if(!r){p._Buffer_from=p._Buffer_allocUnsafe=null;return}p._Buffer_from=r.from!==Uint8Array.from&&r.from||function(t,n){return new r(t,n)},p._Buffer_allocUnsafe=r.allocUnsafe||function(t){return new r(t)}}});var st=_((fo,Fr)=>{"use strict";h();d();Fr.exports=S;var ee=de(),It,it=ee.LongBits,Ir=ee.base64,Pr=ee.utf8;function He(r,e,t){this.fn=r,this.len=e,this.next=void 0,this.val=t}function $t(){}function $i(r){this.head=r.head,this.tail=r.tail,this.len=r.len,this.next=r.states}function S(){this.len=0,this.head=new He($t,0,0),this.tail=this.head,this.states=null}var $r=function(){return ee.Buffer?function(){return(S.create=function(){return new It})()}:function(){return new S}};S.create=$r();S.alloc=function(e){return new ee.Array(e)};ee.Array!==Array&&(S.alloc=ee.pool(S.alloc,ee.Array.prototype.subarray));S.prototype._push=function(e,t,n){return this.tail=this.tail.next=new He(e,t,n),this.len+=t,this};function Ft(r,e,t){e[t]=r&255}function Fi(r,e,t){for(;r>127;)e[t++]=r&127|128,r>>>=7;e[t]=r}function Dt(r,e){this.len=r,this.next=void 0,this.val=e}Dt.prototype=Object.create(He.prototype);Dt.prototype.fn=Fi;S.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new Dt((e=e>>>0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this};S.prototype.int32=function(e){return e<0?this._push(Lt,10,it.fromNumber(e)):this.uint32(e)};S.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)};function Lt(r,e,t){for(;r.hi;)e[t++]=r.lo&127|128,r.lo=(r.lo>>>7|r.hi<<25)>>>0,r.hi>>>=7;for(;r.lo>127;)e[t++]=r.lo&127|128,r.lo=r.lo>>>7;e[t++]=r.lo}S.prototype.uint64=function(e){var t=it.from(e);return this._push(Lt,t.length(),t)};S.prototype.int64=S.prototype.uint64;S.prototype.sint64=function(e){var t=it.from(e).zzEncode();return this._push(Lt,t.length(),t)};S.prototype.bool=function(e){return this._push(Ft,1,e?1:0)};function Pt(r,e,t){e[t]=r&255,e[t+1]=r>>>8&255,e[t+2]=r>>>16&255,e[t+3]=r>>>24}S.prototype.fixed32=function(e){return this._push(Pt,4,e>>>0)};S.prototype.sfixed32=S.prototype.fixed32;S.prototype.fixed64=function(e){var t=it.from(e);return this._push(Pt,4,t.lo)._push(Pt,4,t.hi)};S.prototype.sfixed64=S.prototype.fixed64;S.prototype.float=function(e){return this._push(ee.float.writeFloatLE,4,e)};S.prototype.double=function(e){return this._push(ee.float.writeDoubleLE,8,e)};var Di=ee.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var i=0;i<e.length;++i)t[n+i]=e[i]};S.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(Ft,1,0);if(ee.isString(e)){var n=S.alloc(t=Ir.length(e));Ir.decode(e,n,0),e=n}return this.uint32(t)._push(Di,t,e)};S.prototype.string=function(e){var t=Pr.length(e);return t?this.uint32(t)._push(Pr.write,t,e):this._push(Ft,1,0)};S.prototype.fork=function(){return this.states=new $i(this),this.head=this.tail=new He($t,0,0),this.len=0,this};S.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new He($t,0,0),this.len=0),this};S.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this};S.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t};S._configure=function(r){It=r,S.create=$r(),It._configure()}});var Jr=_((ho,Lr)=>{"use strict";h();d();Lr.exports=pe;var Dr=st();(pe.prototype=Object.create(Dr.prototype)).constructor=pe;var xe=de();function pe(){Dr.call(this)}pe._configure=function(){pe.alloc=xe._Buffer_allocUnsafe,pe.writeBytesBuffer=xe.Buffer&&xe.Buffer.prototype instanceof Uint8Array&&xe.Buffer.prototype.set.name==="set"?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var i=0;i<e.length;)t[n++]=e[i++]}};pe.prototype.bytes=function(e){xe.isString(e)&&(e=xe._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(pe.writeBytesBuffer,t,e),this};function Li(r,e,t){r.length<40?xe.utf8.write(r,e,t):e.utf8Write?e.utf8Write(r,t):e.write(r,t)}pe.prototype.string=function(e){var t=xe.Buffer.byteLength(e);return this.uint32(t),t&&this._push(Li,t,e),this};pe._configure()});var ut=_((mo,zr)=>{"use strict";h();d();zr.exports=P;var oe=de(),Ct,Vr=oe.LongBits,Ji=oe.utf8;function ue(r,e){return RangeError("index out of range: "+r.pos+" + "+(e||1)+" > "+r.len)}function P(r){this.buf=r,this.pos=0,this.len=r.length}var Cr=typeof Uint8Array<"u"?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new P(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new P(e);throw Error("illegal buffer")},Ur=function(){return oe.Buffer?function(t){return(P.create=function(i){return oe.Buffer.isBuffer(i)?new Ct(i):Cr(i)})(t)}:Cr};P.create=Ur();P.prototype._slice=oe.Array.prototype.subarray||oe.Array.prototype.slice;P.prototype.uint32=function(){var e=4294967295;return function(){if(e=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(e=(e|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,ue(this,10);return e}}();P.prototype.int32=function(){return this.uint32()|0};P.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(e&1)|0};function Jt(){var r=new Vr(0,0),e=0;if(this.len-this.pos>4){for(;e<4;++e)if(r.lo=(r.lo|(this.buf[this.pos]&127)<<e*7)>>>0,this.buf[this.pos++]<128)return r;if(r.lo=(r.lo|(this.buf[this.pos]&127)<<28)>>>0,r.hi=(r.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return r;e=0}else{for(;e<3;++e){if(this.pos>=this.len)throw ue(this);if(r.lo=(r.lo|(this.buf[this.pos]&127)<<e*7)>>>0,this.buf[this.pos++]<128)return r}return r.lo=(r.lo|(this.buf[this.pos++]&127)<<e*7)>>>0,r}if(this.len-this.pos>4){for(;e<5;++e)if(r.hi=(r.hi|(this.buf[this.pos]&127)<<e*7+3)>>>0,this.buf[this.pos++]<128)return r}else for(;e<5;++e){if(this.pos>=this.len)throw ue(this);if(r.hi=(r.hi|(this.buf[this.pos]&127)<<e*7+3)>>>0,this.buf[this.pos++]<128)return r}throw Error("invalid varint encoding")}P.prototype.bool=function(){return this.uint32()!==0};function ot(r,e){return(r[e-4]|r[e-3]<<8|r[e-2]<<16|r[e-1]<<24)>>>0}P.prototype.fixed32=function(){if(this.pos+4>this.len)throw ue(this,4);return ot(this.buf,this.pos+=4)};P.prototype.sfixed32=function(){if(this.pos+4>this.len)throw ue(this,4);return ot(this.buf,this.pos+=4)|0};function Mr(){if(this.pos+8>this.len)throw ue(this,8);return new Vr(ot(this.buf,this.pos+=4),ot(this.buf,this.pos+=4))}P.prototype.float=function(){if(this.pos+4>this.len)throw ue(this,4);var e=oe.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e};P.prototype.double=function(){if(this.pos+8>this.len)throw ue(this,4);var e=oe.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e};P.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw ue(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,n);if(t===n){var i=oe.Buffer;return i?i.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,n)};P.prototype.string=function(){var e=this.bytes();return Ji.read(e,0,e.length)};P.prototype.skip=function(e){if(typeof e=="number"){if(this.pos+e>this.len)throw ue(this,e);this.pos+=e}else do if(this.pos>=this.len)throw ue(this);while(this.buf[this.pos++]&128);return this};P.prototype.skipType=function(r){switch(r){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(r=this.uint32()&7)!==4;)this.skipType(r);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+r+" at offset "+this.pos)}return this};P._configure=function(r){Ct=r,P.create=Ur(),Ct._configure();var e=oe.Long?"toLong":"toNumber";oe.merge(P.prototype,{int64:function(){return Jt.call(this)[e](!1)},uint64:function(){return Jt.call(this)[e](!0)},sint64:function(){return Jt.call(this).zzDecode()[e](!1)},fixed64:function(){return Mr.call(this)[e](!0)},sfixed64:function(){return Mr.call(this)[e](!1)}})}});var Zr=_((bo,Hr)=>{"use strict";h();d();Hr.exports=Re;var Wr=ut();(Re.prototype=Object.create(Wr.prototype)).constructor=Re;var jr=de();function Re(r){Wr.call(this,r)}Re._configure=function(){jr.Buffer&&(Re.prototype._slice=jr.Buffer.prototype.slice)};Re.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))};Re._configure()});var Gr=_((_o,Kr)=>{"use strict";h();d();Kr.exports=Ze;var Mt=de();(Ze.prototype=Object.create(Mt.EventEmitter.prototype)).constructor=Ze;function Ze(r,e,t){if(typeof r!="function")throw TypeError("rpcImpl must be a function");Mt.EventEmitter.call(this),this.rpcImpl=r,this.requestDelimited=Boolean(e),this.responseDelimited=Boolean(t)}Ze.prototype.rpcCall=function r(e,t,n,i,s){if(!i)throw TypeError("request must be specified");var o=this;if(!s)return Mt.asPromise(r,o,e,t,n,i);if(!o.rpcImpl){setTimeout(function(){s(Error("already ended"))},0);return}try{return o.rpcImpl(e,t[o.requestDelimited?"encodeDelimited":"encode"](i).finish(),function(u,v){if(u)return o.emit("error",u,e),s(u);if(v===null){o.end(!0);return}if(!(v instanceof n))try{v=n[o.responseDelimited?"decodeDelimited":"decode"](v)}catch(L){return o.emit("error",L,e),s(L)}return o.emit("data",v,e),s(null,v)})}catch(a){o.emit("error",a,e),setTimeout(function(){s(a)},0);return}};Ze.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var Vt=_(Yr=>{"use strict";h();d();var Ci=Yr;Ci.Service=Gr()});var Ut=_((qo,Qr)=>{"use strict";h();d();Qr.exports={}});var zt=_(en=>{"use strict";h();d();var H=en;H.build="minimal";H.Writer=st();H.BufferWriter=Jr();H.Reader=ut();H.BufferReader=Zr();H.util=de();H.rpc=Vt();H.roots=Ut();H.configure=Xr;function Xr(){H.util._configure(),H.Writer._configure(H.BufferWriter),H.Reader._configure(H.BufferReader)}Xr()});var Ne=_(tn=>{"use strict";h();d();var Ke=tn,Mi=V(),Vi=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function Ge(r,e){var t=0,n={};for(e|=0;t<r.length;)n[Vi[t+e]]=r[t++];return n}Ke.basic=Ge([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]);Ke.defaults=Ge([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",Mi.emptyArray,null]);Ke.long=Ge([0,0,0,1,1],7);Ke.mapKey=Ge([0,0,0,5,5,0,0,0,1,1,0,2],2);Ke.packed=Ge([1,5,0,0,0,5,5,0,0,0,1,1,0])});var Ee=_((Do,sn)=>{"use strict";h();d();sn.exports=te;var at=Ie();((te.prototype=Object.create(at.prototype)).constructor=te).className="Field";var rn=ae(),nn=Ne(),D=V(),jt,Ui=/^required|optional|repeated$/;te.fromJSON=function(e,t){return new te(e,t.id,t.type,t.rule,t.extend,t.options,t.comment)};function te(r,e,t,n,i,s,o){if(D.isObject(n)?(o=i,s=n,n=i=void 0):D.isObject(i)&&(o=s,s=i,i=void 0),at.call(this,r,s),!D.isInteger(e)||e<0)throw TypeError("id must be a non-negative integer");if(!D.isString(t))throw TypeError("type must be a string");if(n!==void 0&&!Ui.test(n=n.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(i!==void 0&&!D.isString(i))throw TypeError("extend must be a string");n==="proto3_optional"&&(n="optional"),this.rule=n&&n!=="optional"?n:void 0,this.type=t,this.id=e,this.extend=i||void 0,this.required=n==="required",this.optional=!this.required,this.repeated=n==="repeated",this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=D.Long?nn.long[t]!==void 0:!1,this.bytes=t==="bytes",this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=o}Object.defineProperty(te.prototype,"packed",{get:function(){return this._packed===null&&(this._packed=this.getOption("packed")!==!1),this._packed}});te.prototype.setOption=function(e,t,n){return e==="packed"&&(this._packed=null),at.prototype.setOption.call(this,e,t,n)};te.prototype.toJSON=function(e){var t=e?Boolean(e.keepComments):!1;return D.toObject(["rule",this.rule!=="optional"&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])};te.prototype.resolve=function(){if(this.resolved)return this;if((this.typeDefault=nn.defaults[this.type])===void 0?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof jt?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&this.options.default!=null&&(this.typeDefault=this.options.default,this.resolvedType instanceof rn&&typeof this.typeDefault=="string"&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&((this.options.packed===!0||this.options.packed!==void 0&&this.resolvedType&&!(this.resolvedType instanceof rn))&&delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=D.Long.fromNumber(this.typeDefault,this.type.charAt(0)==="u"),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&typeof this.typeDefault=="string"){var e;D.base64.test(this.typeDefault)?D.base64.decode(this.typeDefault,e=D.newBuffer(D.base64.length(this.typeDefault)),0):D.utf8.write(this.typeDefault,e=D.newBuffer(D.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=D.emptyObject:this.repeated?this.defaultValue=D.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof jt&&(this.parent.ctor.prototype[this.name]=this.defaultValue),at.prototype.resolve.call(this)};te.d=function(e,t,n,i){return typeof t=="function"?t=D.decorateType(t).name:t&&typeof t=="object"&&(t=D.decorateEnum(t).name),function(o,a){D.decorateType(o.constructor).add(new te(a,e,t,n,{default:i}))}};te._configure=function(e){jt=e}});var Le=_((Co,an)=>{"use strict";h();d();an.exports=re;var lt=Ie();((re.prototype=Object.create(lt.prototype)).constructor=re).className="OneOf";var on=Ee(),ft=V();function re(r,e,t,n){if(Array.isArray(e)||(t=e,e=void 0),lt.call(this,r,t),!(e===void 0||Array.isArray(e)))throw TypeError("fieldNames must be an Array");this.oneof=e||[],this.fieldsArray=[],this.comment=n}re.fromJSON=function(e,t){return new re(e,t.oneof,t.options,t.comment)};re.prototype.toJSON=function(e){var t=e?Boolean(e.keepComments):!1;return ft.toObject(["options",this.options,"oneof",this.oneof,"comment",t?this.comment:void 0])};function un(r){if(r.parent)for(var e=0;e<r.fieldsArray.length;++e)r.fieldsArray[e].parent||r.parent.add(r.fieldsArray[e])}re.prototype.add=function(e){if(!(e instanceof on))throw TypeError("field must be a Field");return e.parent&&e.parent!==this.parent&&e.parent.remove(e),this.oneof.push(e.name),this.fieldsArray.push(e),e.partOf=this,un(this),this};re.prototype.remove=function(e){if(!(e instanceof on))throw TypeError("field must be a Field");var t=this.fieldsArray.indexOf(e);if(t<0)throw Error(e+" is not a member of "+this);return this.fieldsArray.splice(t,1),t=this.oneof.indexOf(e.name),t>-1&&this.oneof.splice(t,1),e.partOf=null,this};re.prototype.onAdd=function(e){lt.prototype.onAdd.call(this,e);for(var t=this,n=0;n<this.oneof.length;++n){var i=e.get(this.oneof[n]);i&&!i.partOf&&(i.partOf=t,t.fieldsArray.push(i))}un(this)};re.prototype.onRemove=function(e){for(var t=0,n;t<this.fieldsArray.length;++t)(n=this.fieldsArray[t]).parent&&n.parent.remove(n);lt.prototype.onRemove.call(this,e)};re.d=function(){for(var e=new Array(arguments.length),t=0;t<arguments.length;)e[t]=arguments[t++];return function(i,s){ft.decorateType(i.constructor).add(new re(s,e)),Object.defineProperty(i,s,{get:ft.oneOfGetter(e),set:ft.oneOfSetter(e)})}}});var Me=_((Uo,hn)=>{"use strict";h();d();hn.exports=x;var Wt=Ie();((x.prototype=Object.create(Wt.prototype)).constructor=x).className="Namespace";var fn=Ee(),ct=V(),zi=Le(),Je,Ye,Ce;x.fromJSON=function(e,t){return new x(e,t.options).addJSON(t.nested)};function ln(r,e){if(!!(r&&r.length)){for(var t={},n=0;n<r.length;++n)t[r[n].name]=r[n].toJSON(e);return t}}x.arrayToJSON=ln;x.isReservedId=function(e,t){if(e){for(var n=0;n<e.length;++n)if(typeof e[n]!="string"&&e[n][0]<=t&&e[n][1]>t)return!0}return!1};x.isReservedName=function(e,t){if(e){for(var n=0;n<e.length;++n)if(e[n]===t)return!0}return!1};function x(r,e){Wt.call(this,r,e),this.nested=void 0,this._nestedArray=null}function cn(r){return r._nestedArray=null,r}Object.defineProperty(x.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=ct.toArray(this.nested))}});x.prototype.toJSON=function(e){return ct.toObject(["options",this.options,"nested",ln(this.nestedArray,e)])};x.prototype.addJSON=function(e){var t=this;if(e)for(var n=Object.keys(e),i=0,s;i<n.length;++i)s=e[n[i]],t.add((s.fields!==void 0?Je.fromJSON:s.values!==void 0?Ce.fromJSON:s.methods!==void 0?Ye.fromJSON:s.id!==void 0?fn.fromJSON:x.fromJSON)(n[i],s));return this};x.prototype.get=function(e){return this.nested&&this.nested[e]||null};x.prototype.getEnum=function(e){if(this.nested&&this.nested[e]instanceof Ce)return this.nested[e].values;throw Error("no such enum: "+e)};x.prototype.add=function(e){if(!(e instanceof fn&&e.extend!==void 0||e instanceof Je||e instanceof zi||e instanceof Ce||e instanceof Ye||e instanceof x))throw TypeError("object must be a valid nested object");if(!this.nested)this.nested={};else{var t=this.get(e.name);if(t)if(t instanceof x&&e instanceof x&&!(t instanceof Je||t instanceof Ye)){for(var n=t.nestedArray,i=0;i<n.length;++i)e.add(n[i]);this.remove(t),this.nested||(this.nested={}),e.setOptions(t.options,!0)}else throw Error("duplicate name '"+e.name+"' in "+this)}return this.nested[e.name]=e,e.onAdd(this),cn(this)};x.prototype.remove=function(e){if(!(e instanceof Wt))throw TypeError("object must be a ReflectionObject");if(e.parent!==this)throw Error(e+" is not a member of "+this);return delete this.nested[e.name],Object.keys(this.nested).length||(this.nested=void 0),e.onRemove(this),cn(this)};x.prototype.define=function(e,t){if(ct.isString(e))e=e.split(".");else if(!Array.isArray(e))throw TypeError("illegal path");if(e&&e.length&&e[0]==="")throw Error("path must be relative");for(var n=this;e.length>0;){var i=e.shift();if(n.nested&&n.nested[i]){if(n=n.nested[i],!(n instanceof x))throw Error("path conflicts with non-namespace objects")}else n.add(n=new x(i))}return t&&n.addJSON(t),n};x.prototype.resolveAll=function(){for(var e=this.nestedArray,t=0;t<e.length;)e[t]instanceof x?e[t++].resolveAll():e[t++].resolve();return this.resolve()};x.prototype.lookup=function(e,t,n){if(typeof t=="boolean"?(n=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),ct.isString(e)&&e.length){if(e===".")return this.root;e=e.split(".")}else if(!e.length)return this;if(e[0]==="")return this.root.lookup(e.slice(1),t);var i=this.get(e[0]);if(i){if(e.length===1){if(!t||t.indexOf(i.constructor)>-1)return i}else if(i instanceof x&&(i=i.lookup(e.slice(1),t,!0)))return i}else for(var s=0;s<this.nestedArray.length;++s)if(this._nestedArray[s]instanceof x&&(i=this._nestedArray[s].lookup(e,t,!0)))return i;return this.parent===null||n?null:this.parent.lookup(e,t)};x.prototype.lookupType=function(e){var t=this.lookup(e,[Je]);if(!t)throw Error("no such type: "+e);return t};x.prototype.lookupEnum=function(e){var t=this.lookup(e,[Ce]);if(!t)throw Error("no such Enum '"+e+"' in "+this);return t};x.prototype.lookupTypeOrEnum=function(e){var t=this.lookup(e,[Je,Ce]);if(!t)throw Error("no such Type or Enum '"+e+"' in "+this);return t};x.prototype.lookupService=function(e){var t=this.lookup(e,[Ye]);if(!t)throw Error("no such Service '"+e+"' in "+this);return t};x._configure=function(r,e,t){Je=r,Ye=e,Ce=t}});var ht=_((Wo,dn)=>{"use strict";h();d();dn.exports=we;var Ht=Ee();((we.prototype=Object.create(Ht.prototype)).constructor=we).className="MapField";var ji=Ne(),Qe=V();function we(r,e,t,n,i,s){if(Ht.call(this,r,e,n,void 0,void 0,i,s),!Qe.isString(t))throw TypeError("keyType must be a string");this.keyType=t,this.resolvedKeyType=null,this.map=!0}we.fromJSON=function(e,t){return new we(e,t.id,t.keyType,t.type,t.options,t.comment)};we.prototype.toJSON=function(e){var t=e?Boolean(e.keepComments):!1;return Qe.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])};we.prototype.resolve=function(){if(this.resolved)return this;if(ji.mapKey[this.keyType]===void 0)throw Error("invalid key type: "+this.keyType);return Ht.prototype.resolve.call(this)};we.d=function(e,t,n){return typeof n=="function"?n=Qe.decorateType(n).name:n&&typeof n=="object"&&(n=Qe.decorateEnum(n).name),function(s,o){Qe.decorateType(s.constructor).add(new we(o,e,t,n))}}});var dt=_((Ko,pn)=>{"use strict";h();d();pn.exports=Pe;var Zt=Ie();((Pe.prototype=Object.create(Zt.prototype)).constructor=Pe).className="Method";var Ve=V();function Pe(r,e,t,n,i,s,o,a,u){if(Ve.isObject(i)?(o=i,i=s=void 0):Ve.isObject(s)&&(o=s,s=void 0),!(e===void 0||Ve.isString(e)))throw TypeError("type must be a string");if(!Ve.isString(t))throw TypeError("requestType must be a string");if(!Ve.isString(n))throw TypeError("responseType must be a string");Zt.call(this,r,o),this.type=e||"rpc",this.requestType=t,this.requestStream=i?!0:void 0,this.responseType=n,this.responseStream=s?!0:void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=a,this.parsedOptions=u}Pe.fromJSON=function(e,t){return new Pe(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment,t.parsedOptions)};Pe.prototype.toJSON=function(e){var t=e?Boolean(e.keepComments):!1;return Ve.toObject(["type",this.type!=="rpc"&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",t?this.comment:void 0,"parsedOptions",this.parsedOptions])};Pe.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),Zt.prototype.resolve.call(this))}});var pt=_((Qo,mn)=>{"use strict";h();d();mn.exports=ne;var ke=Me();((ne.prototype=Object.create(ke.prototype)).constructor=ne).className="Service";var Kt=dt(),Xe=V(),Wi=Vt();function ne(r,e){ke.call(this,r,e),this.methods={},this._methodsArray=null}ne.fromJSON=function(e,t){var n=new ne(e,t.options);if(t.methods)for(var i=Object.keys(t.methods),s=0;s<i.length;++s)n.add(Kt.fromJSON(i[s],t.methods[i[s]]));return t.nested&&n.addJSON(t.nested),n.comment=t.comment,n};ne.prototype.toJSON=function(e){var t=ke.prototype.toJSON.call(this,e),n=e?Boolean(e.keepComments):!1;return Xe.toObject(["options",t&&t.options||void 0,"methods",ke.arrayToJSON(this.methodsArray,e)||{},"nested",t&&t.nested||void 0,"comment",n?this.comment:void 0])};Object.defineProperty(ne.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=Xe.toArray(this.methods))}});function yn(r){return r._methodsArray=null,r}ne.prototype.get=function(e){return this.methods[e]||ke.prototype.get.call(this,e)};ne.prototype.resolveAll=function(){for(var e=this.methodsArray,t=0;t<e.length;++t)e[t].resolve();return ke.prototype.resolve.call(this)};ne.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof Kt?(this.methods[e.name]=e,e.parent=this,yn(this)):ke.prototype.add.call(this,e)};ne.prototype.remove=function(e){if(e instanceof Kt){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,yn(this)}return ke.prototype.remove.call(this,e)};ne.prototype.create=function(e,t,n){for(var i=new Wi.Service(e,t,n),s=0,o;s<this.methodsArray.length;++s){var a=Xe.lcFirst((o=this._methodsArray[s]).resolve().name).replace(/[^$\w_]/g,"");i[a]=Xe.codegen(["r","c"],Xe.isReserved(a)?a+"_":a)("return this.rpcCall(m,q,s,r,c)")({m:o,q:o.resolvedRequestType.ctor,s:o.resolvedResponseType.ctor})}return i}});var yt=_((tu,vn)=>{"use strict";h();d();vn.exports=ye;var Hi=de();function ye(r){if(r)for(var e=Object.keys(r),t=0;t<e.length;++t)this[e[t]]=r[e[t]]}ye.create=function(e){return this.$type.create(e)};ye.encode=function(e,t){return this.$type.encode(e,t)};ye.encodeDelimited=function(e,t){return this.$type.encodeDelimited(e,t)};ye.decode=function(e){return this.$type.decode(e)};ye.decodeDelimited=function(e){return this.$type.decodeDelimited(e)};ye.verify=function(e){return this.$type.verify(e)};ye.fromObject=function(e){return this.$type.fromObject(e)};ye.toObject=function(e,t){return this.$type.toObject(e,t)};ye.prototype.toJSON=function(){return this.$type.toObject(this,Hi.toJSONOptions)}});var Gt=_((iu,bn)=>{"use strict";h();d();bn.exports=Gi;var Zi=ae(),Oe=Ne(),gn=V();function Ki(r){return"missing required '"+r.name+"'"}function Gi(r){var e=gn.codegen(["r","l"],r.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(r.fieldsArray.filter(function(a){return a.map}).length?",k,value":""))("while(r.pos<c){")("var t=r.uint32()");r.group&&e("if((t&7)===4)")("break"),e("switch(t>>>3){");for(var t=0;t<r.fieldsArray.length;++t){var n=r._fieldsArray[t].resolve(),i=n.resolvedType instanceof Zi?"int32":n.type,s="m"+gn.safeProp(n.name);e("case %i: {",n.id),n.map?(e("if(%s===util.emptyObject)",s)("%s={}",s)("var c2 = r.uint32()+r.pos"),Oe.defaults[n.keyType]!==void 0?e("k=%j",Oe.defaults[n.keyType]):e("k=null"),Oe.defaults[i]!==void 0?e("value=%j",Oe.defaults[i]):e("value=null"),e("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",n.keyType)("case 2:"),Oe.basic[i]===void 0?e("value=types[%i].decode(r,r.uint32())",t):e("value=r.%s()",i),e("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),Oe.long[n.keyType]!==void 0?e('%s[typeof k==="object"?util.longToHash(k):k]=value',s):e("%s[k]=value",s)):n.repeated?(e("if(!(%s&&%s.length))",s,s)("%s=[]",s),Oe.packed[i]!==void 0&&e("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",s,i)("}else"),Oe.basic[i]===void 0?e(n.resolvedType.group?"%s.push(types[%i].decode(r))":"%s.push(types[%i].decode(r,r.uint32()))",s,t):e("%s.push(r.%s())",s,i)):Oe.basic[i]===void 0?e(n.resolvedType.group?"%s=types[%i].decode(r)":"%s=types[%i].decode(r,r.uint32())",s,t):e("%s=r.%s()",s,i),e("break")("}")}for(e("default:")("r.skipType(t&7)")("break")("}")("}"),t=0;t<r._fieldsArray.length;++t){var o=r._fieldsArray[t];o.required&&e("if(!m.hasOwnProperty(%j))",o.name)("throw util.ProtocolError(%j,{instance:m})",Ki(o))}return e("return m")}});var Xt=_((uu,wn)=>{"use strict";h();d();wn.exports=Xi;var Yi=ae(),Yt=V();function ie(r,e){return r.name+": "+e+(r.repeated&&e!=="array"?"[]":r.map&&e!=="object"?"{k:"+r.keyType+"}":"")+" expected"}function Qt(r,e,t,n){if(e.resolvedType)if(e.resolvedType instanceof Yi){r("switch(%s){",n)("default:")("return%j",ie(e,"enum value"));for(var i=Object.keys(e.resolvedType.values),s=0;s<i.length;++s)r("case %i:",e.resolvedType.values[i[s]]);r("break")("}")}else r("{")("var e=types[%i].verify(%s);",t,n)("if(e)")("return%j+e",e.name+".")("}");else switch(e.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":r("if(!util.isInteger(%s))",n)("return%j",ie(e,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":r("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",n,n,n,n)("return%j",ie(e,"integer|Long"));break;case"float":case"double":r('if(typeof %s!=="number")',n)("return%j",ie(e,"number"));break;case"bool":r('if(typeof %s!=="boolean")',n)("return%j",ie(e,"boolean"));break;case"string":r("if(!util.isString(%s))",n)("return%j",ie(e,"string"));break;case"bytes":r('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',n,n,n)("return%j",ie(e,"buffer"));break}return r}function Qi(r,e,t){switch(e.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":r("if(!util.key32Re.test(%s))",t)("return%j",ie(e,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":r("if(!util.key64Re.test(%s))",t)("return%j",ie(e,"integer|Long key"));break;case"bool":r("if(!util.key2Re.test(%s))",t)("return%j",ie(e,"boolean key"));break}return r}function Xi(r){var e=Yt.codegen(["m"],r.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),t=r.oneofsArray,n={};t.length&&e("var p={}");for(var i=0;i<r.fieldsArray.length;++i){var s=r._fieldsArray[i].resolve(),o="m"+Yt.safeProp(s.name);if(s.optional&&e("if(%s!=null&&m.hasOwnProperty(%j)){",o,s.name),s.map)e("if(!util.isObject(%s))",o)("return%j",ie(s,"object"))("var k=Object.keys(%s)",o)("for(var i=0;i<k.length;++i){"),Qi(e,s,"k[i]"),Qt(e,s,i,o+"[k[i]]")("}");else if(s.repeated)e("if(!Array.isArray(%s))",o)("return%j",ie(s,"array"))("for(var i=0;i<%s.length;++i){",o),Qt(e,s,i,o+"[i]")("}");else{if(s.partOf){var a=Yt.safeProp(s.partOf.name);n[s.partOf.name]===1&&e("if(p%s===1)",a)("return%j",s.partOf.name+": multiple values"),n[s.partOf.name]=1,e("p%s=1",a)}Qt(e,s,i,o)}s.optional&&e("}")}return e("return null")}});var rr=_(_n=>{"use strict";h();d();var On=_n,et=ae(),me=V();function er(r,e,t,n){var i=!1;if(e.resolvedType)if(e.resolvedType instanceof et){r("switch(d%s){",n);for(var s=e.resolvedType.values,o=Object.keys(s),a=0;a<o.length;++a)s[o[a]]===e.typeDefault&&!i&&(r("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}',n,n,n),e.repeated||r("break"),i=!0),r("case%j:",o[a])("case %i:",s[o[a]])("m%s=%j",n,s[o[a]])("break");r("}")}else r('if(typeof d%s!=="object")',n)("throw TypeError(%j)",e.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",n,t,n);else{var u=!1;switch(e.type){case"double":case"float":r("m%s=Number(d%s)",n,n);break;case"uint32":case"fixed32":r("m%s=d%s>>>0",n,n);break;case"int32":case"sint32":case"sfixed32":r("m%s=d%s|0",n,n);break;case"uint64":u=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":r("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",n,n,u)('else if(typeof d%s==="string")',n)("m%s=parseInt(d%s,10)",n,n)('else if(typeof d%s==="number")',n)("m%s=d%s",n,n)('else if(typeof d%s==="object")',n)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",n,n,n,u?"true":"");break;case"bytes":r('if(typeof d%s==="string")',n)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",n,n,n)("else if(d%s.length >= 0)",n)("m%s=d%s",n,n);break;case"string":r("m%s=String(d%s)",n,n);break;case"bool":r("m%s=Boolean(d%s)",n,n);break}}return r}On.fromObject=function(e){var t=e.fieldsArray,n=me.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return n("return new this.ctor");n("var m=new this.ctor");for(var i=0;i<t.length;++i){var s=t[i].resolve(),o=me.safeProp(s.name);s.map?(n("if(d%s){",o)('if(typeof d%s!=="object")',o)("throw TypeError(%j)",s.fullName+": object expected")("m%s={}",o)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",o),er(n,s,i,o+"[ks[i]]")("}")("}")):s.repeated?(n("if(d%s){",o)("if(!Array.isArray(d%s))",o)("throw TypeError(%j)",s.fullName+": array expected")("m%s=[]",o)("for(var i=0;i<d%s.length;++i){",o),er(n,s,i,o+"[i]")("}")("}")):(s.resolvedType instanceof et||n("if(d%s!=null){",o),er(n,s,i,o),s.resolvedType instanceof et||n("}"))}return n("return m")};function tr(r,e,t,n){if(e.resolvedType)e.resolvedType instanceof et?r("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",n,t,n,n,t,n,n):r("d%s=types[%i].toObject(m%s,o)",n,t,n);else{var i=!1;switch(e.type){case"double":case"float":r("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",n,n,n,n);break;case"uint64":i=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":r('if(typeof m%s==="number")',n)("d%s=o.longs===String?String(m%s):m%s",n,n,n)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",n,n,n,n,i?"true":"",n);break;case"bytes":r("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",n,n,n,n,n);break;default:r("d%s=m%s",n,n);break}}return r}On.toObject=function(e){var t=e.fieldsArray.slice().sort(me.compareFieldsById);if(!t.length)return me.codegen()("return {}");for(var n=me.codegen(["m","o"],e.name+"$toObject")("if(!o)")("o={}")("var d={}"),i=[],s=[],o=[],a=0;a<t.length;++a)t[a].partOf||(t[a].resolve().repeated?i:t[a].map?s:o).push(t[a]);if(i.length){for(n("if(o.arrays||o.defaults){"),a=0;a<i.length;++a)n("d%s=[]",me.safeProp(i[a].name));n("}")}if(s.length){for(n("if(o.objects||o.defaults){"),a=0;a<s.length;++a)n("d%s={}",me.safeProp(s[a].name));n("}")}if(o.length){for(n("if(o.defaults){"),a=0;a<o.length;++a){var u=o[a],v=me.safeProp(u.name);if(u.resolvedType instanceof et)n("d%s=o.enums===String?%j:%j",v,u.resolvedType.valuesById[u.typeDefault],u.typeDefault);else if(u.long)n("if(util.Long){")("var n=new util.Long(%i,%i,%j)",u.typeDefault.low,u.typeDefault.high,u.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",v)("}else")("d%s=o.longs===String?%j:%i",v,u.typeDefault.toString(),u.typeDefault.toNumber());else if(u.bytes){var L="["+Array.prototype.slice.call(u.typeDefault).join(",")+"]";n("if(o.bytes===String)d%s=%j",v,String.fromCharCode.apply(String,u.typeDefault))("else{")("d%s=%s",v,L)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",v,v)("}")}else n("d%s=%j",v,u.typeDefault)}n("}")}var R=!1;for(a=0;a<t.length;++a){var u=t[a],W=e._fieldsArray.indexOf(u),v=me.safeProp(u.name);u.map?(R||(R=!0,n("var ks2")),n("if(m%s&&(ks2=Object.keys(m%s)).length){",v,v)("d%s={}",v)("for(var j=0;j<ks2.length;++j){"),tr(n,u,W,v+"[ks2[j]]")("}")):u.repeated?(n("if(m%s&&m%s.length){",v,v)("d%s=[]",v)("for(var j=0;j<m%s.length;++j){",v),tr(n,u,W,v+"[j]")("}")):(n("if(m%s!=null&&m.hasOwnProperty(%j)){",v,u.name),tr(n,u,W,v),u.partOf&&n("if(o.oneofs)")("d%s=%j",me.safeProp(u.partOf.name),u.name)),n("}")}return n("return d")}});var nr=_(An=>{"use strict";h();d();var es=An,ts=yt();es[".google.protobuf.Any"]={fromObject:function(r){if(r&&r["@type"]){var e=r["@type"].substring(r["@type"].lastIndexOf("/")+1),t=this.lookup(e);if(t){var n=r["@type"].charAt(0)==="."?r["@type"].slice(1):r["@type"];return n.indexOf("/")===-1&&(n="/"+n),this.create({type_url:n,value:t.encode(t.fromObject(r)).finish()})}}return this.fromObject(r)},toObject:function(r,e){var t="type.googleapis.com/",n="",i="";if(e&&e.json&&r.type_url&&r.value){i=r.type_url.substring(r.type_url.lastIndexOf("/")+1),n=r.type_url.substring(0,r.type_url.lastIndexOf("/")+1);var s=this.lookup(i);s&&(r=s.decode(r.value))}if(!(r instanceof this.ctor)&&r instanceof ts){var o=r.$type.toObject(r,e),a=r.$type.fullName[0]==="."?r.$type.fullName.slice(1):r.$type.fullName;return n===""&&(n=t),i=n+a,o["@type"]=i,o}return this.toObject(r,e)}}});var gt=_((mu,xn)=>{"use strict";h();d();xn.exports=T;var fe=Me();((T.prototype=Object.create(fe.prototype)).constructor=T).className="Type";var rs=ae(),or=Le(),mt=Ee(),ns=ht(),is=pt(),ir=yt(),sr=ut(),ss=st(),j=V(),os=ur(),us=Gt(),as=Xt(),Sn=rr(),fs=nr();function T(r,e){fe.call(this,r,e),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}Object.defineProperties(T.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var r=Object.keys(this.fields),e=0;e<r.length;++e){var t=this.fields[r[e]],n=t.id;if(this._fieldsById[n])throw Error("duplicate id "+n+" in "+this);this._fieldsById[n]=t}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=j.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=j.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=T.generateConstructor(this)())},set:function(r){var e=r.prototype;e instanceof ir||((r.prototype=new ir).constructor=r,j.merge(r.prototype,e)),r.$type=r.prototype.$type=this,j.merge(r,ir,!0),this._ctor=r;for(var t=0;t<this.fieldsArray.length;++t)this._fieldsArray[t].resolve();var n={};for(t=0;t<this.oneofsArray.length;++t)n[this._oneofsArray[t].resolve().name]={get:j.oneOfGetter(this._oneofsArray[t].oneof),set:j.oneOfSetter(this._oneofsArray[t].oneof)};t&&Object.defineProperties(r.prototype,n)}}});T.generateConstructor=function(e){for(var t=j.codegen(["p"],e.name),n=0,i;n<e.fieldsArray.length;++n)(i=e._fieldsArray[n]).map?t("this%s={}",j.safeProp(i.name)):i.repeated&&t("this%s=[]",j.safeProp(i.name));return t("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")};function vt(r){return r._fieldsById=r._fieldsArray=r._oneofsArray=null,delete r.encode,delete r.decode,delete r.verify,r}T.fromJSON=function(e,t){var n=new T(e,t.options);n.extensions=t.extensions,n.reserved=t.reserved;for(var i=Object.keys(t.fields),s=0;s<i.length;++s)n.add((typeof t.fields[i[s]].keyType<"u"?ns.fromJSON:mt.fromJSON)(i[s],t.fields[i[s]]));if(t.oneofs)for(i=Object.keys(t.oneofs),s=0;s<i.length;++s)n.add(or.fromJSON(i[s],t.oneofs[i[s]]));if(t.nested)for(i=Object.keys(t.nested),s=0;s<i.length;++s){var o=t.nested[i[s]];n.add((o.id!==void 0?mt.fromJSON:o.fields!==void 0?T.fromJSON:o.values!==void 0?rs.fromJSON:o.methods!==void 0?is.fromJSON:fe.fromJSON)(i[s],o))}return t.extensions&&t.extensions.length&&(n.extensions=t.extensions),t.reserved&&t.reserved.length&&(n.reserved=t.reserved),t.group&&(n.group=!0),t.comment&&(n.comment=t.comment),n};T.prototype.toJSON=function(e){var t=fe.prototype.toJSON.call(this,e),n=e?Boolean(e.keepComments):!1;return j.toObject(["options",t&&t.options||void 0,"oneofs",fe.arrayToJSON(this.oneofsArray,e),"fields",fe.arrayToJSON(this.fieldsArray.filter(function(i){return!i.declaringField}),e)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:void 0,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"group",this.group||void 0,"nested",t&&t.nested||void 0,"comment",n?this.comment:void 0])};T.prototype.resolveAll=function(){for(var e=this.fieldsArray,t=0;t<e.length;)e[t++].resolve();var n=this.oneofsArray;for(t=0;t<n.length;)n[t++].resolve();return fe.prototype.resolveAll.call(this)};T.prototype.get=function(e){return this.fields[e]||this.oneofs&&this.oneofs[e]||this.nested&&this.nested[e]||null};T.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof mt&&e.extend===void 0){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),vt(this)}return e instanceof or?(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),vt(this)):fe.prototype.add.call(this,e)};T.prototype.remove=function(e){if(e instanceof mt&&e.extend===void 0){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),vt(this)}if(e instanceof or){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),vt(this)}return fe.prototype.remove.call(this,e)};T.prototype.isReservedId=function(e){return fe.isReservedId(this.reserved,e)};T.prototype.isReservedName=function(e){return fe.isReservedName(this.reserved,e)};T.prototype.create=function(e){return new this.ctor(e)};T.prototype.setup=function(){for(var e=this.fullName,t=[],n=0;n<this.fieldsArray.length;++n)t.push(this._fieldsArray[n].resolve().resolvedType);this.encode=os(this)({Writer:ss,types:t,util:j}),this.decode=us(this)({Reader:sr,types:t,util:j}),this.verify=as(this)({types:t,util:j}),this.fromObject=Sn.fromObject(this)({types:t,util:j}),this.toObject=Sn.toObject(this)({types:t,util:j});var i=fs[e];if(i){var s=Object.create(this);s.fromObject=this.fromObject,this.fromObject=i.fromObject.bind(s),s.toObject=this.toObject,this.toObject=i.toObject.bind(s)}return this};T.prototype.encode=function(e,t){return this.setup().encode(e,t)};T.prototype.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()};T.prototype.decode=function(e,t){return this.setup().decode(e,t)};T.prototype.decodeDelimited=function(e){return e instanceof sr||(e=sr.create(e)),this.decode(e,e.uint32())};T.prototype.verify=function(e){return this.setup().verify(e)};T.prototype.fromObject=function(e){return this.setup().fromObject(e)};T.prototype.toObject=function(e,t){return this.setup().toObject(e,t)};T.d=function(e){return function(n){j.decorateType(n,e)}}});var Ot=_((bu,Tn)=>{"use strict";h();d();Tn.exports=Y;var wt=Me();((Y.prototype=Object.create(wt.prototype)).constructor=Y).className="Root";var fr=Ee(),kn=ae(),ls=Le(),qe=V(),qn,ar,tt;function Y(r){wt.call(this,"",r),this.deferred=[],this.files=[]}Y.fromJSON=function(e,t){return t||(t=new Y),e.options&&t.setOptions(e.options),t.addJSON(e.nested)};Y.prototype.resolvePath=qe.path.resolve;Y.prototype.fetch=qe.fetch;function Bn(){}Y.prototype.load=function r(e,t,n){typeof t=="function"&&(n=t,t=void 0);var i=this;if(!n)return qe.asPromise(r,i,e,t);var s=n===Bn;function o(E,B){if(!!n){var k=n;if(n=null,s)throw E;k(E,B)}}function a(E){var B=E.lastIndexOf("google/protobuf/");if(B>-1){var k=E.substring(B);if(k in tt)return k}return null}function u(E,B){try{if(qe.isString(B)&&B.charAt(0)==="{"&&(B=JSON.parse(B)),!qe.isString(B))i.setOptions(B.options).addJSON(B.nested);else{ar.filename=E;var k=ar(B,i,t),C,J=0;if(k.imports)for(;J<k.imports.length;++J)(C=a(k.imports[J])||i.resolvePath(E,k.imports[J]))&&v(C);if(k.weakImports)for(J=0;J<k.weakImports.length;++J)(C=a(k.weakImports[J])||i.resolvePath(E,k.weakImports[J]))&&v(C,!0)}}catch(g){o(g)}!s&&!L&&o(null,i)}function v(E,B){if(E=a(E)||E,!(i.files.indexOf(E)>-1)){if(i.files.push(E),E in tt){s?u(E,tt[E]):(++L,setTimeout(function(){--L,u(E,tt[E])}));return}if(s){var k;try{k=qe.fs.readFileSync(E).toString("utf8")}catch(C){B||o(C);return}u(E,k)}else++L,i.fetch(E,function(C,J){if(--L,!!n){if(C){B?L||o(null,i):o(C);return}u(E,J)}})}}var L=0;qe.isString(e)&&(e=[e]);for(var R=0,W;R<e.length;++R)(W=i.resolvePath("",e[R]))&&v(W);if(s)return i;L||o(null,i)};Y.prototype.loadSync=function(e,t){if(!qe.isNode)throw Error("not supported");return this.load(e,t,Bn)};Y.prototype.resolveAll=function(){if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(e){return"'extend "+e.extend+"' in "+e.parent.fullName}).join(", "));return wt.prototype.resolveAll.call(this)};var bt=/^[A-Z]/;function En(r,e){var t=e.parent.lookup(e.extend);if(t){var n=new fr(e.fullName,e.id,e.type,e.rule,void 0,e.options);return t.get(n.name)||(n.declaringField=e,e.extensionField=n,t.add(n)),!0}return!1}Y.prototype._handleAdd=function(e){if(e instanceof fr)e.extend!==void 0&&!e.extensionField&&(En(this,e)||this.deferred.push(e));else if(e instanceof kn)bt.test(e.name)&&(e.parent[e.name]=e.values);else if(!(e instanceof ls)){if(e instanceof qn)for(var t=0;t<this.deferred.length;)En(this,this.deferred[t])?this.deferred.splice(t,1):++t;for(var n=0;n<e.nestedArray.length;++n)this._handleAdd(e._nestedArray[n]);bt.test(e.name)&&(e.parent[e.name]=e)}};Y.prototype._handleRemove=function(e){if(e instanceof fr){if(e.extend!==void 0)if(e.extensionField)e.extensionField.parent.remove(e.extensionField),e.extensionField=null;else{var t=this.deferred.indexOf(e);t>-1&&this.deferred.splice(t,1)}}else if(e instanceof kn)bt.test(e.name)&&delete e.parent[e.name];else if(e instanceof wt){for(var n=0;n<e.nestedArray.length;++n)this._handleRemove(e._nestedArray[n]);bt.test(e.name)&&delete e.parent[e.name]}};Y._configure=function(r,e,t){qn=r,ar=e,tt=t}});var V=_((_u,Nn)=>{"use strict";h();d();var $=Nn.exports=de(),Rn=Ut(),lr,cr;$.codegen=Ti();$.fetch=Ri();$.path=Ni();$.fs=$.inquire("fs");$.toArray=function(e){if(e){for(var t=Object.keys(e),n=new Array(t.length),i=0;i<t.length;)n[i]=e[t[i++]];return n}return[]};$.toObject=function(e){for(var t={},n=0;n<e.length;){var i=e[n++],s=e[n++];s!==void 0&&(t[i]=s)}return t};var cs=/\\/g,hs=/"/g;$.isReserved=function(e){return/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(e)};$.safeProp=function(e){return!/^[$\w_]+$/.test(e)||$.isReserved(e)?'["'+e.replace(cs,"\\\\").replace(hs,'\\"')+'"]':"."+e};$.ucFirst=function(e){return e.charAt(0).toUpperCase()+e.substring(1)};var ds=/_([a-z])/g;$.camelCase=function(e){return e.substring(0,1)+e.substring(1).replace(ds,function(t,n){return n.toUpperCase()})};$.compareFieldsById=function(e,t){return e.id-t.id};$.decorateType=function(e,t){if(e.$type)return t&&e.$type.name!==t&&($.decorateRoot.remove(e.$type),e.$type.name=t,$.decorateRoot.add(e.$type)),e.$type;lr||(lr=gt());var n=new lr(t||e.name);return $.decorateRoot.add(n),n.ctor=e,Object.defineProperty(e,"$type",{value:n,enumerable:!1}),Object.defineProperty(e.prototype,"$type",{value:n,enumerable:!1}),n};var ps=0;$.decorateEnum=function(e){if(e.$type)return e.$type;cr||(cr=ae());var t=new cr("Enum"+ps++,e);return $.decorateRoot.add(t),Object.defineProperty(e,"$type",{value:t,enumerable:!1}),t};$.setProperty=function(e,t,n){function i(s,o,a){var u=o.shift();if(u==="__proto__"||u==="prototype")return s;if(o.length>0)s[u]=i(s[u]||{},o,a);else{var v=s[u];v&&(a=[].concat(v).concat(a)),s[u]=a}return s}if(typeof e!="object")throw TypeError("dst must be an object");if(!t)throw TypeError("path must be specified");return t=t.split("."),i(e,t,n)};Object.defineProperty($,"decorateRoot",{get:function(){return Rn.decorated||(Rn.decorated=new(Ot()))}})});var Ie=_((xu,In)=>{"use strict";h();d();In.exports=Q;Q.className="ReflectionObject";var _t=V(),At;function Q(r,e){if(!_t.isString(r))throw TypeError("name must be a string");if(e&&!_t.isObject(e))throw TypeError("options must be an object");this.options=e,this.parsedOptions=null,this.name=r,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}Object.defineProperties(Q.prototype,{root:{get:function(){for(var r=this;r.parent!==null;)r=r.parent;return r}},fullName:{get:function(){for(var r=[this.name],e=this.parent;e;)r.unshift(e.name),e=e.parent;return r.join(".")}}});Q.prototype.toJSON=function(){throw Error()};Q.prototype.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var t=e.root;t instanceof At&&t._handleAdd(this)};Q.prototype.onRemove=function(e){var t=e.root;t instanceof At&&t._handleRemove(this),this.parent=null,this.resolved=!1};Q.prototype.resolve=function(){return this.resolved?this:(this.root instanceof At&&(this.resolved=!0),this)};Q.prototype.getOption=function(e){if(this.options)return this.options[e]};Q.prototype.setOption=function(e,t,n){return(!n||!this.options||this.options[e]===void 0)&&((this.options||(this.options={}))[e]=t),this};Q.prototype.setParsedOption=function(e,t,n){this.parsedOptions||(this.parsedOptions=[]);var i=this.parsedOptions;if(n){var s=i.find(function(u){return Object.prototype.hasOwnProperty.call(u,e)});if(s){var o=s[e];_t.setProperty(o,n,t)}else s={},s[e]=_t.setProperty({},n,t),i.push(s)}else{var a={};a[e]=t,i.push(a)}return this};Q.prototype.setOptions=function(e,t){if(e)for(var n=Object.keys(e),i=0;i<n.length;++i)this.setOption(n[i],e[n[i]],t);return this};Q.prototype.toString=function(){var e=this.constructor.className,t=this.fullName;return t.length?e+" "+t:e};Q._configure=function(r){At=r}});var ae=_((qu,Fn)=>{"use strict";h();d();Fn.exports=ve;var Pn=Ie();((ve.prototype=Object.create(Pn.prototype)).constructor=ve).className="Enum";var $n=Me(),St=V();function ve(r,e,t,n,i,s){if(Pn.call(this,r,t),e&&typeof e!="object")throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=n,this.comments=i||{},this.valuesOptions=s,this.reserved=void 0,e)for(var o=Object.keys(e),a=0;a<o.length;++a)typeof e[o[a]]=="number"&&(this.valuesById[this.values[o[a]]=e[o[a]]]=o[a])}ve.fromJSON=function(e,t){var n=new ve(e,t.values,t.options,t.comment,t.comments);return n.reserved=t.reserved,n};ve.prototype.toJSON=function(e){var t=e?Boolean(e.keepComments):!1;return St.toObject(["options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])};ve.prototype.add=function(e,t,n,i){if(!St.isString(e))throw TypeError("name must be a string");if(!St.isInteger(t))throw TypeError("id must be an integer");if(this.values[e]!==void 0)throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(this.valuesById[t]!==void 0){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return i&&(this.valuesOptions===void 0&&(this.valuesOptions={}),this.valuesOptions[e]=i||null),this.comments[e]=n||null,this};ve.prototype.remove=function(e){if(!St.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(t==null)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this};ve.prototype.isReservedId=function(e){return $n.isReservedId(this.reserved,e)};ve.prototype.isReservedName=function(e){return $n.isReservedName(this.reserved,e)}});var ur=_((Ru,Ln)=>{"use strict";h();d();Ln.exports=ms;var ys=ae(),hr=Ne(),dr=V();function Dn(r,e,t,n){return e.resolvedType.group?r("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",t,n,(e.id<<3|3)>>>0,(e.id<<3|4)>>>0):r("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",t,n,(e.id<<3|2)>>>0)}function ms(r){for(var e=dr.codegen(["m","w"],r.name+"$encode")("if(!w)")("w=Writer.create()"),t,n,i=r.fieldsArray.slice().sort(dr.compareFieldsById),t=0;t<i.length;++t){var s=i[t].resolve(),o=r._fieldsArray.indexOf(s),a=s.resolvedType instanceof ys?"int32":s.type,u=hr.basic[a];n="m"+dr.safeProp(s.name),s.map?(e("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",n,s.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",n)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(s.id<<3|2)>>>0,8|hr.mapKey[s.keyType],s.keyType),u===void 0?e("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",o,n):e(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|u,a,n),e("}")("}")):s.repeated?(e("if(%s!=null&&%s.length){",n,n),s.packed&&hr.packed[a]!==void 0?e("w.uint32(%i).fork()",(s.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",n)("w.%s(%s[i])",a,n)("w.ldelim()"):(e("for(var i=0;i<%s.length;++i)",n),u===void 0?Dn(e,s,o,n+"[i]"):e("w.uint32(%i).%s(%s[i])",(s.id<<3|u)>>>0,a,n)),e("}")):(s.optional&&e("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",n,s.name),u===void 0?Dn(e,s,o,n):e("w.uint32(%i).%s(%s)",(s.id<<3|u)>>>0,a,n))}return e("return w")}});var Cn=_((Pu,Jn)=>{"use strict";h();d();var A=Jn.exports=zt();A.build="light";function vs(r,e,t){return typeof e=="function"?(t=e,e=new A.Root):e||(e=new A.Root),e.load(r,t)}A.load=vs;function gs(r,e){return e||(e=new A.Root),e.loadSync(r)}A.loadSync=gs;A.encoder=ur();A.decoder=Gt();A.verifier=Xt();A.converter=rr();A.ReflectionObject=Ie();A.Namespace=Me();A.Root=Ot();A.Enum=ae();A.Type=gt();A.Field=Ee();A.OneOf=Le();A.MapField=ht();A.Service=pt();A.Method=dt();A.Message=yt();A.wrappers=nr();A.types=Ne();A.util=V();A.ReflectionObject._configure(A.Root);A.Namespace._configure(A.Type,A.Service,A.Enum);A.Root._configure(A.Type);A.Field._configure(A.Type)});var yr=_((Du,Un)=>{"use strict";h();d();Un.exports=Vn;var pr=/[\s{}=;:[\],'"()<>]/g,bs=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,ws=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,Os=/^ *[*/]+ */,_s=/^\s*\*?\/*/,As=/\n/g,Ss=/\s/,xs=/\\(.?)/g,Es={0:"\0",r:"\r",n:`
`,t:" "};function Mn(r){return r.replace(xs,function(e,t){switch(t){case"\\":case"":return t;default:return Es[t]||""}})}Vn.unescape=Mn;function Vn(r,e){r=r.toString();var t=0,n=r.length,i=1,s=0,o={},a=[],u=null;function v(b){return Error("illegal "+b+" (line "+i+")")}function L(){var b=u==="'"?ws:bs;b.lastIndex=t-1;var N=b.exec(r);if(!N)throw v("string");return t=b.lastIndex,C(u),u=null,Mn(N[1])}function R(b){return r.charAt(b)}function W(b,N,q){var I={type:r.charAt(b++),lineEmpty:!1,leading:q},Z;e?Z=2:Z=3;var K=b-Z,se;do if(--K<0||(se=r.charAt(K))===`
`){I.lineEmpty=!0;break}while(se===" "||se===" ");for(var ce=r.substring(b,N).split(As),F=0;F<ce.length;++F)ce[F]=ce[F].replace(e?_s:Os,"").trim();I.text=ce.join(`
`).trim(),o[i]=I,s=i}function E(b){var N=B(b),q=r.substring(b,N),I=/^\s*\/\//.test(q);return I}function B(b){for(var N=b;N<n&&R(N)!==`
`;)N++;return N}function k(){if(a.length>0)return a.shift();if(u)return L();var b,N,q,I,Z,K=t===0;do{if(t===n)return null;for(b=!1;Ss.test(q=R(t));)if(q===`
`&&(K=!0,++i),++t===n)return null;if(R(t)==="/"){if(++t===n)throw v("comment");if(R(t)==="/")if(e){if(I=t,Z=!1,E(t-1)){Z=!0;do if(t=B(t),t===n||(t++,!K))break;while(E(t))}else t=Math.min(n,B(t)+1);Z&&(W(I,t,K),K=!0),i++,b=!0}else{for(Z=R(I=t+1)==="/";R(++t)!==`
`;)if(t===n)return null;++t,Z&&(W(I,t-1,K),K=!0),++i,b=!0}else if((q=R(t))==="*"){I=t+1,Z=e||R(I)==="*";do{if(q===`
`&&++i,++t===n)throw v("comment");N=q,q=R(t)}while(N!=="*"||q!=="/");++t,Z&&(W(I,t-2,K),K=!0),b=!0}else return"/"}}while(b);var se=t;pr.lastIndex=0;var ce=pr.test(R(se++));if(!ce)for(;se<n&&!pr.test(R(se));)++se;var F=r.substring(t,t=se);return(F==='"'||F==="'")&&(u=F),F}function C(b){a.push(b)}function J(){if(!a.length){var b=k();if(b===null)return null;C(b)}return a[0]}function g(b,N){var q=J(),I=q===b;if(I)return k(),!0;if(!N)throw v("token '"+q+"', '"+b+"' expected");return!1}function De(b){var N=null,q;return b===void 0?(q=o[i-1],delete o[i-1],q&&(e||q.type==="*"||q.lineEmpty)&&(N=q.leading?q.text:null)):(s<b&&J(),q=o[b],delete o[b],q&&!q.lineEmpty&&(e||q.type==="/")&&(N=q.leading?null:q.text)),N}return Object.defineProperty({next:k,peek:J,push:C,skip:g,cmnt:De},"line",{get:function(){return i}})}});var Kn=_((Cu,Zn)=>{"use strict";h();d();Zn.exports=_e;_e.filename=null;_e.defaults={keepCase:!1};var ks=yr(),zn=Ot(),jn=gt(),Wn=Ee(),qs=ht(),Hn=Le(),Bs=ae(),Ts=pt(),Rs=dt(),mr=Ne(),vr=V(),Ns=/^[1-9][0-9]*$/,Is=/^-?[1-9][0-9]*$/,Ps=/^0[x][0-9a-fA-F]+$/,$s=/^-?0[x][0-9a-fA-F]+$/,Fs=/^0[0-7]+$/,Ds=/^-?0[0-7]+$/,Ls=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,ge=/^[a-zA-Z_][a-zA-Z_0-9]*$/,be=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/,Js=/^(?:\.[a-zA-Z_][a-zA-Z_0-9]*)+$/;function _e(r,e,t){e instanceof zn||(t=e,e=new zn),t||(t=_e.defaults);var n=t.preferTrailingComment||!1,i=ks(r,t.alternateCommentMode||!1),s=i.next,o=i.push,a=i.peek,u=i.skip,v=i.cmnt,L=!0,R,W,E,B,k=!1,C=e,J=t.keepCase?function(f){return f}:vr.camelCase;function g(f,l,c){var m=_e.filename;return c||(_e.filename=null),Error("illegal "+(l||"token")+" '"+f+"' ("+(m?m+", ":"")+"line "+i.line+")")}function De(){var f=[],l;do{if((l=s())!=='"'&&l!=="'")throw g(l);f.push(s()),u(l),l=a()}while(l==='"'||l==="'");return f.join("")}function b(f){var l=s();switch(l){case"'":case'"':return o(l),De();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return q(l,!0)}catch{if(f&&be.test(l))return l;throw g(l,"value")}}function N(f,l){var c,m;do l&&((c=a())==='"'||c==="'")?f.push(De()):f.push([m=I(s()),u("to",!0)?I(s()):m]);while(u(",",!0));u(";")}function q(f,l){var c=1;switch(f.charAt(0)==="-"&&(c=-1,f=f.substring(1)),f){case"inf":case"INF":case"Inf":return c*(1/0);case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(Ns.test(f))return c*parseInt(f,10);if(Ps.test(f))return c*parseInt(f,16);if(Fs.test(f))return c*parseInt(f,8);if(Ls.test(f))return c*parseFloat(f);throw g(f,"number",l)}function I(f,l){switch(f){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!l&&f.charAt(0)==="-")throw g(f,"id");if(Is.test(f))return parseInt(f,10);if($s.test(f))return parseInt(f,16);if(Ds.test(f))return parseInt(f,8);throw g(f,"id")}function Z(){if(R!==void 0)throw g("package");if(R=s(),!be.test(R))throw g(R,"name");C=C.define(R),u(";")}function K(){var f=a(),l;switch(f){case"weak":l=E||(E=[]),s();break;case"public":s();default:l=W||(W=[]);break}f=De(),u(";"),l.push(f)}function se(){if(u("="),B=De(),k=B==="proto3",!k&&B!=="proto2")throw g(B,"syntax");u(";")}function ce(f,l){switch(l){case"option":return he(f,l),u(";"),!0;case"message":return _r(f,l),!0;case"enum":return Ar(f,l),!0;case"service":return wi(f,l),!0;case"extend":return _i(f,l),!0}return!1}function F(f,l,c){var m=i.line;if(f&&(typeof f.comment!="string"&&(f.comment=v()),f.filename=_e.filename),u("{",!0)){for(var y;(y=s())!=="}";)l(y);u(";",!0)}else c&&c(),u(";"),f&&(typeof f.comment!="string"||n)&&(f.comment=v(m)||f.comment)}function _r(f,l){if(!ge.test(l=s()))throw g(l,"type name");var c=new jn(l);F(c,function(y){if(!ce(c,y))switch(y){case"map":mi(c,y);break;case"required":case"repeated":X(c,y);break;case"optional":k?X(c,"proto3_optional"):X(c,"optional");break;case"oneof":vi(c,y);break;case"extensions":N(c.extensions||(c.extensions=[]));break;case"reserved":N(c.reserved||(c.reserved=[]),!0);break;default:if(!k||!be.test(y))throw g(y);o(y),X(c,"optional");break}}),f.add(c)}function X(f,l,c){var m=s();if(m==="group"){yi(f,l);return}for(;m.endsWith(".")||a().startsWith(".");)m+=s();if(!be.test(m))throw g(m,"type");var y=s();if(!ge.test(y))throw g(y,"name");y=J(y),u("=");var w=new Wn(y,I(s()),m,l,c);if(F(w,function(G){if(G==="option")he(w,G),u(";");else throw g(G)},function(){Tt(w)}),l==="proto3_optional"){var U=new Hn("_"+y);w.setOption("proto3_optional",!0),U.add(w),f.add(U)}else f.add(w);!k&&w.repeated&&(mr.packed[m]!==void 0||mr.basic[m]===void 0)&&w.setOption("packed",!1,!0)}function yi(f,l){var c=s();if(!ge.test(c))throw g(c,"name");var m=vr.lcFirst(c);c===m&&(c=vr.ucFirst(c)),u("=");var y=I(s()),w=new jn(c);w.group=!0;var U=new Wn(m,y,c,l);U.filename=_e.filename,F(w,function(G){switch(G){case"option":he(w,G),u(";");break;case"required":case"repeated":X(w,G);break;case"optional":k?X(w,"proto3_optional"):X(w,"optional");break;case"message":_r(w,G);break;case"enum":Ar(w,G);break;default:throw g(G)}}),f.add(w).add(U)}function mi(f){u("<");var l=s();if(mr.mapKey[l]===void 0)throw g(l,"type");u(",");var c=s();if(!be.test(c))throw g(c,"type");u(">");var m=s();if(!ge.test(m))throw g(m,"name");u("=");var y=new qs(J(m),I(s()),l,c);F(y,function(U){if(U==="option")he(y,U),u(";");else throw g(U)},function(){Tt(y)}),f.add(y)}function vi(f,l){if(!ge.test(l=s()))throw g(l,"name");var c=new Hn(J(l));F(c,function(y){y==="option"?(he(c,y),u(";")):(o(y),X(c,"optional"))}),f.add(c)}function Ar(f,l){if(!ge.test(l=s()))throw g(l,"name");var c=new Bs(l);F(c,function(y){switch(y){case"option":he(c,y),u(";");break;case"reserved":N(c.reserved||(c.reserved=[]),!0);break;default:gi(c,y)}}),f.add(c)}function gi(f,l){if(!ge.test(l))throw g(l,"name");u("=");var c=I(s(),!0),m={options:void 0};m.setOption=function(y,w){this.options===void 0&&(this.options={}),this.options[y]=w},F(m,function(w){if(w==="option")he(m,w),u(";");else throw g(w)},function(){Tt(m)}),f.add(l,c,m.comment,m.options)}function he(f,l){var c=u("(",!0);if(!be.test(l=s()))throw g(l,"name");var m=l,y=m,w;c&&(u(")"),m="("+m+")",y=m,l=a(),Js.test(l)&&(w=l.slice(1),m+=l,s())),u("=");var U=Sr(f,m);bi(f,y,U,w)}function Sr(f,l){if(u("{",!0)){for(var c={};!u("}",!0);){if(!ge.test(z=s()))throw g(z,"name");if(z===null)throw g(z,"end of input");var m,y=z;if(u(":",!0),a()==="{")m=Sr(f,l+"."+z);else if(a()==="["){m=[];var w;if(u("[",!0)){do w=b(!0),m.push(w);while(u(",",!0));u("]"),typeof w<"u"&&Bt(f,l+"."+z,w)}}else m=b(!0),Bt(f,l+"."+z,m);var U=c[y];U&&(m=[].concat(U).concat(m)),c[y]=m,u(",",!0),u(";",!0)}return c}var Ae=b(!0);return Bt(f,l,Ae),Ae}function Bt(f,l,c){f.setOption&&f.setOption(l,c)}function bi(f,l,c,m){f.setParsedOption&&f.setParsedOption(l,c,m)}function Tt(f){if(u("[",!0)){do he(f,"option");while(u(",",!0));u("]")}return f}function wi(f,l){if(!ge.test(l=s()))throw g(l,"service name");var c=new Ts(l);F(c,function(y){if(!ce(c,y))if(y==="rpc")Oi(c,y);else throw g(y)}),f.add(c)}function Oi(f,l){var c=v(),m=l;if(!ge.test(l=s()))throw g(l,"name");var y=l,w,U,Ae,G;if(u("("),u("stream",!0)&&(U=!0),!be.test(l=s())||(w=l,u(")"),u("returns"),u("("),u("stream",!0)&&(G=!0),!be.test(l=s())))throw g(l);Ae=l,u(")");var nt=new Rs(y,m,w,Ae,U,G);nt.comment=c,F(nt,function(Rt){if(Rt==="option")he(nt,Rt),u(";");else throw g(Rt)}),f.add(nt)}function _i(f,l){if(!be.test(l=s()))throw g(l,"reference");var c=l;F(null,function(y){switch(y){case"required":case"repeated":X(f,y,c);break;case"optional":k?X(f,"proto3_optional",c):X(f,"optional",c);break;default:if(!k||!be.test(y))throw g(y);o(y),X(f,"optional",c);break}})}for(var z;(z=s())!==null;)switch(z){case"package":if(!L)throw g(z);Z();break;case"import":if(!L)throw g(z);K();break;case"syntax":if(!L)throw g(z);se();break;case"option":he(C,z),u(";");break;default:if(ce(C,z)){L=!1;continue}throw g(z)}return _e.filename=null,{package:R,imports:W,weakImports:E,syntax:B,root:e}}});var Qn=_((Uu,Yn)=>{"use strict";h();d();Yn.exports=le;var Cs=/\/|\./;function le(r,e){Cs.test(r)||(r="google/protobuf/"+r+".proto",e={nested:{google:{nested:{protobuf:{nested:e}}}}}),le[r]=e}le("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}});var Gn;le("duration",{Duration:Gn={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}});le("timestamp",{Timestamp:Gn});le("empty",{Empty:{fields:{}}});le("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}});le("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}});le("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}});le.get=function(e){return le[e]||null}});var ei=_((Wu,Xn)=>{"use strict";h();d();var Be=Xn.exports=Cn();Be.build="full";Be.tokenize=yr();Be.parse=Kn();Be.common=Qn();Be.Root._configure(Be.Type,Be.parse,Be.common)});var Ms=_((Ku,ti)=>{"use strict";h();d();ti.exports=ei()});var Vs=_((Qu,ri)=>{"use strict";h();d();ri.exports=zt()});var Hs={};Er(Hs,{base64ToBigint:()=>Ws,bigintToBase64:()=>js,bigintToBuf:()=>ni,bigintToHex:()=>si,bigintToText:()=>Us,bufToBigint:()=>ii,bufToHex:()=>fi,bufToText:()=>ui,hexToBigint:()=>oi,hexToBuf:()=>gr,parseHex:()=>rt,textToBigint:()=>zs,textToBuf:()=>ai});function rt(r,e=!1,t){let n=r.match(/^(0x)?([\da-fA-F]+)$/);if(n==null)throw new RangeError("input must be a hexadecimal string, e.g. '0x124fe3a' or '0214f1b2'");let i=n[2];if(t!==void 0){if(t<i.length/2)throw new RangeError(`expected byte length ${t} < input hex byte length ${Math.ceil(i.length/2)}`);i=i.padStart(2*t,"0")}return e?"0x"+i:i}function ni(r,e=!1){if(r<0)throw RangeError("a should be a non-negative integer. Negative values are not supported");return gr(si(r),e)}function ii(r){let e=8n;ArrayBuffer.isView(r)?e=BigInt(8*r.BYTES_PER_ELEMENT):r=new Uint8Array(r);let t=0n;for(let n of r.values())t=(t<<e)+BigInt(n);return t}function si(r,e=!1,t){if(r<0)throw RangeError("a should be a non-negative integer. Negative values are not supported");return r.toString(16)}function oi(r){return BigInt(rt(r,!0))}function Us(r){if(r<0)throw RangeError("a should be a non-negative integer. Negative values are not supported");return ui(gr(r.toString(16)))}function zs(r){return oi(fi(ai(r)))}function ui(r){return new TextDecoder().decode(new Uint8Array(r))}function ai(r,e=!1){return new TextEncoder().encode(r).buffer}function fi(r,e=!1,t){{let n="",i="0123456789abcdef";return(r=ArrayBuffer.isView(r)?new Uint8Array(r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)):new Uint8Array(r)).forEach(s=>{n+=i[s>>4]+i[15&s]}),rt(n,e,t)}}function gr(r,e=!1){let t=rt(r);return t=rt(r,!1,Math.ceil(t.length/2)),Uint8Array.from(t.match(/[\da-fA-F]{2}/g).map(n=>parseInt(n,16))).buffer}function js(r,e=!1,t=!0){return kr(ni(r),e,t)}function Ws(r){return ii(qr(r))}var Zs=xr(()=>{h();d();Ii()});var eo={};Er(eo,{abs:()=>$e,bitLength:()=>wr,eGcd:()=>xt,gcd:()=>li,isProbablyPrime:()=>br,lcm:()=>Ks,max:()=>Gs,min:()=>Ys,modInv:()=>Et,modPow:()=>je,prime:()=>Qs,primeSync:()=>Xs,randBetween:()=>qt,randBits:()=>hi,randBitsSync:()=>Fe,randBytes:()=>ci,randBytesSync:()=>kt,toZn:()=>ze});function $e(r){return r>=0?r:-r}function wr(r){if(typeof r=="number"&&(r=BigInt(r)),r===1n)return 1;let e=1;do e++;while((r>>=1n)>1n);return e}function xt(r,e){if(typeof r=="number"&&(r=BigInt(r)),typeof e=="number"&&(e=BigInt(e)),r<=0n||e<=0n)throw new RangeError("a and b MUST be > 0");let t=0n,n=1n,i=1n,s=0n;for(;r!==0n;){let o=e/r,a=e%r,u=t-i*o,v=n-s*o;e=r,r=a,t=i,n=s,i=u,s=v}return{g:e,x:t,y:n}}function li(r,e){let t=typeof r=="number"?BigInt($e(r)):$e(r),n=typeof e=="number"?BigInt($e(e)):$e(e);if(t===0n)return n;if(n===0n)return t;let i=0n;for(;(1n&(t|n))===0n;)t>>=1n,n>>=1n,i++;for(;(1n&t)===0n;)t>>=1n;do{for(;(1n&n)===0n;)n>>=1n;if(t>n){let s=t;t=n,n=s}n-=t}while(n!==0n);return t<<i}function Ks(r,e){return typeof r=="number"&&(r=BigInt(r)),typeof e=="number"&&(e=BigInt(e)),r===0n&&e===0n?BigInt(0):$e(r/li(r,e)*e)}function Gs(r,e){return r>=e?r:e}function Ys(r,e){return r>=e?e:r}function ze(r,e){if(typeof r=="number"&&(r=BigInt(r)),typeof e=="number"&&(e=BigInt(e)),e<=0n)throw new RangeError("n must be > 0");let t=r%e;return t<0n?t+e:t}function Et(r,e){let t=xt(ze(r,e),e);if(t.g!==1n)throw new RangeError(`${r.toString()} does not have inverse modulo ${e.toString()}`);return ze(t.x,e)}function je(r,e,t){if(typeof r=="number"&&(r=BigInt(r)),typeof e=="number"&&(e=BigInt(e)),typeof t=="number"&&(t=BigInt(t)),t<=0n)throw new RangeError("n must be > 0");if(t===1n)return 0n;if(r=ze(r,t),e<0n)return Et(je(r,$e(e),t),t);let n=1n;for(;e>0;)e%2n===1n&&(n=n*r%t),e/=2n,r=r**2n%t;return n}function Ue(r){let e=0n;for(let t of r.values())e=(e<<8n)+BigInt(t);return e}function ci(r,e=!1){if(r<1)throw new RangeError("byteLength MUST be > 0");return new Promise(function(t,n){{let i=new Uint8Array(r);if(r<=65536)self.crypto.getRandomValues(i);else for(let s=0;s<Math.ceil(r/65536);s++){let o=65536*s,a=o+65535<r?o+65535:r-1;self.crypto.getRandomValues(i.subarray(o,a))}e&&(i[0]=128|i[0]),t(i)}})}function kt(r,e=!1){if(r<1)throw new RangeError("byteLength MUST be > 0");{let t=new Uint8Array(r);if(r<=65536)self.crypto.getRandomValues(t);else for(let n=0;n<Math.ceil(r/65536);n++){let i=65536*n,s=i+65535<r?i+65535:r-1;self.crypto.getRandomValues(t.subarray(i,s))}return e&&(t[0]=128|t[0]),t}}function hi(r,e=!1){if(r<1)throw new RangeError("bitLength MUST be > 0");let t=Math.ceil(r/8),n=r%8;return new Promise((i,s)=>{ci(t,!1).then(function(o){if(n!==0&&(o[0]=o[0]&2**n-1),e){let a=n!==0?2**(n-1):128;o[0]=o[0]|a}i(o)})})}function Fe(r,e=!1){if(r<1)throw new RangeError("bitLength MUST be > 0");let t=kt(Math.ceil(r/8),!1),n=r%8;if(n!==0&&(t[0]=t[0]&2**n-1),e){let i=n!==0?2**(n-1):128;t[0]=t[0]|i}return t}function qt(r,e=1n){if(r<=e)throw new RangeError("Arguments MUST be: max > min");let t=r-e,n=wr(t),i;do i=Ue(Fe(n));while(i>t);return i+e}function br(r,e=16,t=!1){if(typeof r=="number"&&(r=BigInt(r)),r<0n)throw RangeError("w MUST be >= 0");return new Promise((n,i)=>{let s=new Worker(pi());s.onmessage=a=>{a?.data?._bcu?.isPrime!==void 0&&(s.terminate(),n(a.data._bcu.isPrime))},s.onmessageerror=a=>{i(a)};let o={_bcu:{rnd:r,iterations:e,id:0}};s.postMessage(o)})}function Or(r,e){if(r===2n)return!0;if((1n&r)===0n||r===1n)return!1;let t=[3n,5n,7n,11n,13n,17n,19n,23n,29n,31n,37n,41n,43n,47n,53n,59n,61n,67n,71n,73n,79n,83n,89n,97n,101n,103n,107n,109n,113n,127n,131n,137n,139n,149n,151n,157n,163n,167n,173n,179n,181n,191n,193n,197n,199n,211n,223n,227n,229n,233n,239n,241n,251n,257n,263n,269n,271n,277n,281n,283n,293n,307n,311n,313n,317n,331n,337n,347n,349n,353n,359n,367n,373n,379n,383n,389n,397n,401n,409n,419n,421n,431n,433n,439n,443n,449n,457n,461n,463n,467n,479n,487n,491n,499n,503n,509n,521n,523n,541n,547n,557n,563n,569n,571n,577n,587n,593n,599n,601n,607n,613n,617n,619n,631n,641n,643n,647n,653n,659n,661n,673n,677n,683n,691n,701n,709n,719n,727n,733n,739n,743n,751n,757n,761n,769n,773n,787n,797n,809n,811n,821n,823n,827n,829n,839n,853n,857n,859n,863n,877n,881n,883n,887n,907n,911n,919n,929n,937n,941n,947n,953n,967n,971n,977n,983n,991n,997n,1009n,1013n,1019n,1021n,1031n,1033n,1039n,1049n,1051n,1061n,1063n,1069n,1087n,1091n,1093n,1097n,1103n,1109n,1117n,1123n,1129n,1151n,1153n,1163n,1171n,1181n,1187n,1193n,1201n,1213n,1217n,1223n,1229n,1231n,1237n,1249n,1259n,1277n,1279n,1283n,1289n,1291n,1297n,1301n,1303n,1307n,1319n,1321n,1327n,1361n,1367n,1373n,1381n,1399n,1409n,1423n,1427n,1429n,1433n,1439n,1447n,1451n,1453n,1459n,1471n,1481n,1483n,1487n,1489n,1493n,1499n,1511n,1523n,1531n,1543n,1549n,1553n,1559n,1567n,1571n,1579n,1583n,1597n];for(let a=0;a<t.length&&t[a]<=r;a++){let u=t[a];if(r===u)return!0;if(r%u===0n)return!1}let n=0n,i=r-1n,s=i;for(;s%2n===0n;)s/=2n,++n;let o=i/2n**n;do{let a=je(qt(i,2n),o,r);if(a===1n||a===i)continue;let u=1;for(;u<n&&(a=je(a,2n,r),a!==i);){if(a===1n)return!1;u++}if(a!==i)return!1}while(--e!=0);return!0}function pi(){let r=`
'use strict';
const ${xt.name} = ${xt.toString()};
const ${Et.name} = ${Et.toString()};
const ${je.name} = ${je.toString()};
const ${ze.name} = ${ze.toString()};
const ${Fe.name} = ${Fe.toString()};
const ${kt.name} = ${kt.toString()};
const ${qt.name} = ${qt.toString()};
const ${br.name} = ${Or.toString()};
${wr.toString()};
${Ue.toString()};`;return r+=`
onmessage = async function(msg) {
if (msg !== undefined && msg.data !== undefined && msg.data._bcu !== undefined && msg.data._bcu.id !== undefined && msg.data._bcu.iterations !== undefined && msg.data._bcu.rnd !== undefined) {
const msgToParent = {
_bcu: {
isPrime: await ${br.name}(msg.data._bcu.rnd, msg.data._bcu.iterations),
value: msg.data._bcu.rnd,
id: msg.data._bcu.id
}
};
postMessage(msgToParent);
}
}`,function(e){e=`(() => {${e}})()`;let t=new Blob([e],{type:"text/javascript"});return window.URL.createObjectURL(t)}(r)}function Qs(r,e=16){if(r<1)throw new RangeError("bitLength MUST be > 0");if(!di){let t=0n;do t=Ue(Fe(r,!0));while(!Or(t,e));return new Promise(n=>{n(t)})}return new Promise((t,n)=>{let i=[],s=(o,a)=>{if(o._bcu.isPrime){for(let u=0;u<i.length;u++)i[u].terminate();for(;i.length>0;)i.pop();t(o._bcu.value)}else{let u=Ue(Fe(r,!0));try{let v={_bcu:{rnd:u,iterations:e,id:o._bcu.id}};a.postMessage(v)}catch{}}};{let o=pi();for(let a=0;a<self.navigator.hardwareConcurrency-1;a++){let u=new Worker(o);u.onmessage=v=>s(v.data,u),i.push(u)}}for(let o=0;o<i.length;o++)hi(r,!0).then(function(a){let u=Ue(a);i[o].postMessage({_bcu:{rnd:u,iterations:e,id:o}})}).catch(n)})}function Xs(r,e=16){if(r<1)throw new RangeError("bitLength MUST be > 0");let t=0n;do t=Ue(Fe(r,!0));while(!Or(t,e));return t}var di,to=xr(()=>{h();d();di=!1;self.Worker!==void 0&&(di=!0)});export{Ms as a,Vs as b,Hs as c,Zs as d,eo as e,to as f};
window.inOKXExtension = true;
window.inMiniApp = false;
window.ASSETS_BUILD_TYPE = "publish";
//# sourceMappingURL=chunk-YUSIJWOC.js.map