++n)
t[e[n]] = 1;
return function() {
for (var e = Object.keys(this), n = e.length - 1; n > -1; --n)
if (1 === t[e[n]] && void 0 !== this[e[n]] && null !== this[e[n]])
return e[n]
}
}
,
t.oneOfSetter = function(e) {
return function(t) {
for (var n = 0; n < e.length; ++n)
e[n] !== t && delete this[e[n]]
}
}
,
t.toJSONOptions = {
longs: String,
enums: String,
bytes: String,
json: !0
},
t._configure = function() {
var e = t.Buffer;
e ? (t._Buffer_from = e.from !== Uint8Array.from && e.from || function(t, n) {
return new e(t,n)
}
,
t._Buffer_allocUnsafe = e.allocUnsafe || function(t) {
return new e(t)
}
) : t._Buffer_from = t._Buffer_allocUnsafe = null
}
}(minimal$1)),
minimal$1
}
var writer = Writer$1, util$4 = requireMinimal(), BufferWriter$1, LongBits$1 = util$4.LongBits, base64 = util$4.base64, utf8$1 = util$4.utf8;
function Op(e, t, n) {
this.fn = e,
this.len = t,
this.next = void 0,
this.val = n
}
function noop() {}
function State(e) {
this.head = e.head,
this.tail = e.tail,
this.len = e.len,
this.next = e.states
}
function Writer$1() {
this.len = 0,
this.head = new Op(noop,0,0),
this.tail = this.head,
this.states = null
}
var create$1 = function() {
return util$4.Buffer ? function() {
return (Writer$1.create = function() {
return new BufferWriter$1
}
)()
}
: function() {
return new Writer$1
}
};
function writeByte(e, t, n) {
t[n] = 255 & e
}
function writeVarint32(e, t, n) {
for (; e > 127; )
t[n++] = 127 & e | 128,
e >>>= 7;
t[n] = e
}
function VarintOp(e, t) {
this.len = e,
this.next = void 0,
this.val = t
}
function writeVarint64(e, t, n) {
for (; e.hi; )
t[n++] = 127 & e.lo | 128,
e.lo = (e.lo >>> 7 | e.hi << 25) >>> 0,
e.hi >>>= 7;
for (; e.lo > 127; )
t[n++] = 127 & e.lo | 128,
e.lo = e.lo >>> 7;
t[n++] = e.lo
}
function writeFixed32(e, t, n) {
t[n] = 255 & e,
t[n + 1] = e >>> 8 & 255,
t[n + 2] = e >>> 16 & 255,
t[n + 3] = e >>> 24
}
Writer$1.create = create$1(),
Writer$1.alloc = function(e) {
return new util$4.Array(e)
}
,
util$4.Array !== Array && (Writer$1.alloc = util$4.pool(Writer$1.alloc, util$4.Array.prototype.subarray)),
Writer$1.prototype._push = function(e, t, n) {
return this.tail = this.tail.next = new Op(e,t,n),
this.len += t,
this
}
,
VarintOp.prototype = Object.create(Op.prototype),
VarintOp.prototype.fn = writeVarint32,
Writer$1.prototype.uint32 = function(e) {
return this.len += (this.tail = this.tail.next = new VarintOp((e >>>= 0) < 128 ? 1 : e < 16384 ? 2 : e < 2097152 ? 3 : e < 268435456 ? 4 : 5,e)).len,
this
}
,
Writer$1.prototype.int32 = function(e) {
return e < 0 ? this._push(writeVarint64, 10, LongBits$1.fromNumber(e)) : this.uint32(e)
}
,
Writer$1.prototype.sint32 = function(e) {
return this.uint32((e << 1 ^ e >> 31) >>> 0)
}
,
Writer$1.prototype.uint64 = function(e) {
var t = LongBits$1.from(e);
return this._push(writeVarint64, t.length(), t)
}
,
Writer$1.prototype.int64 = Writer$1.prototype.uint64,
Writer$1.prototype.sint64 = function(e) {
var t = LongBits$1.from(e).zzEncode();
return this._push(writeVarint64, t.length(), t)
}
,
Writer$1.prototype.bool = function(e) {
return this._push(writeByte, 1, e ? 1 : 0)
}
,
Writer$1.prototype.fixed32 = function(e) {
return this._push(writeFixed32, 4, e >>> 0)
}
,
Writer$1.prototype.sfixed32 = Writer$1.prototype.fixed32,
Writer$1.prototype.fixed64 = function(e) {
var t = LongBits$1.from(e);
return this._push(writeFixed32, 4, t.lo)._push(writeFixed32, 4, t.hi)
}
,
Writer$1.prototype.sfixed64 = Writer$1.prototype.fixed64,
Writer$1.prototype.float = function(e) {
return this._push(util$4.float.writeFloatLE, 4, e)
}
,
Writer$1.prototype.double = function(e) {
return this._push(util$4.float.writeDoubleLE, 8, e)
}
;
var writeBytes = util$4.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]
}
;
Writer$1.prototype.bytes = function(e) {
var t = e.length >>> 0;
if (!t)
return this._push(writeByte, 1, 0);
if (util$4.isString(e)) {
var n = |