@nil-/xit 0.1.23 → 0.1.24

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/assets/index.js CHANGED
@@ -2,11 +2,11 @@ var P = (i) => {
2
2
  throw TypeError(i);
3
3
  };
4
4
  var C = (i, e, n) => e.has(i) || P("Cannot " + n);
5
- var w = (i, e, n) => (C(i, e, "read from private field"), n ? n.call(i) : e.get(i)), F = (i, e, n) => e.has(i) ? P("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, n), $ = (i, e, n, f) => (C(i, e, "write to private field"), f ? f.call(i, n) : e.set(i, n), n), W = (i, e, n) => (C(i, e, "access private method"), n);
5
+ var w = (i, e, n) => (C(i, e, "read from private field"), n ? n.call(i) : e.get(i)), F = (i, e, n) => e.has(i) ? P("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, n), $ = (i, e, n, u) => (C(i, e, "write to private field"), u ? u.call(i, n) : e.set(i, n), n), W = (i, e, n) => (C(i, e, "access private method"), n);
6
6
  import { w as writable, g as get } from "./svelte/store.js";
7
7
  var j, I, k, M, D, L, N, S, U;
8
8
  let Service$1 = (U = class {
9
- constructor({ host: e, port: n }) {
9
+ constructor(e) {
10
10
  F(this, j);
11
11
  F(this, k);
12
12
  // 0 idle, 1 has connected, 2 keep reconnecting, 3 stopped
@@ -15,7 +15,7 @@ let Service$1 = (U = class {
15
15
  F(this, L);
16
16
  F(this, N);
17
17
  F(this, S);
18
- $(this, N, `${e ?? "localhost"}${n != null ? `:${n}` : ""}`), $(this, k, 0), $(this, M, null), $(this, D, null), $(this, L, null), $(this, S, null);
18
+ $(this, N, e), $(this, k, 0), $(this, M, null), $(this, D, null), $(this, L, null), $(this, S, null);
19
19
  }
20
20
  on_message(e) {
21
21
  $(this, L, e);
@@ -58,33 +58,35 @@ const header = (i) => {
58
58
  const e = new Uint8Array(4);
59
59
  return new DataView(e.buffer).setUint32(0, i, !1), e;
60
60
  }, concat = (i) => {
61
- const e = new Uint8Array(i.reduce((f, u) => f + u.length, 0));
61
+ const e = new Uint8Array(i.reduce((u, f) => u + f.length, 0));
62
62
  let n = 0;
63
- for (const f of i)
64
- e.set(f, n), n += f.length;
63
+ for (const u of i)
64
+ e.set(u, n), n += u.length;
65
65
  return e;
66
66
  }, test_connection = async (i) => new Promise((e, n) => {
67
- const f = new Service$1(i), u = setTimeout(() => {
68
- f.stop(), n("connection failed... stopping");
67
+ const u = new Service$1(i), f = setTimeout(() => {
68
+ u.stop(), n("connection failed... stopping");
69
69
  }, 2500);
70
- f.on_connect(() => {
71
- clearTimeout(u), f.stop(), e();
72
- }), f.start();
73
- }), service_fetch = async (i, e, n) => new Promise((f, u) => {
74
- const a = new Service$1(i), t = setTimeout(() => {
75
- a.stop(), u("timed out, cancelled");
76
- }, 2500);
77
- a.on_connect(() => a.publish(e)), a.on_message((s, o) => {
78
- const r = new DataView(o.buffer).getUint32(0, !1), l = o.slice(4), d = n(r, l);
79
- d != null && (clearTimeout(t), a.stop(), f(d));
80
- }), a.start();
81
- }), service_publish = (i, e) => {
82
- const n = new Service$1(i), f = setTimeout(() => {
83
- n.stop();
70
+ u.on_connect(() => {
71
+ clearTimeout(f), u.stop(), e();
72
+ }), u.start();
73
+ }), service_fetch = async (i, e, n, u) => new Promise((f, a) => {
74
+ const t = new Service$1(i), s = setTimeout(() => {
75
+ t.stop(), a("timed out, cancelled");
76
+ }, 2500), o = concat([header(e), n]);
77
+ t.on_connect(() => t.publish(o)), t.on_message((r, l) => {
78
+ const d = new DataView(l.buffer).getUint32(0, !1), h = l.slice(4), c = u(d, h);
79
+ c != null && (clearTimeout(s), t.stop(), f(c));
80
+ }), t.start();
81
+ }), service_publish = (i, e, n) => {
82
+ const u = new Service$1(i), f = setTimeout(() => {
83
+ u.stop();
84
84
  }, 2500);
85
- n.on_connect(() => {
86
- clearTimeout(f), n.publish(e), n.stop();
87
- }), n.start();
85
+ u.on_connect(() => {
86
+ clearTimeout(f);
87
+ const a = concat([header(e), n]);
88
+ u.publish(a), u.stop();
89
+ }), u.start();
88
90
  };
89
91
  function WorkerWrapper(i) {
90
92
  return new Worker(
@@ -100,10 +102,10 @@ function getDefaultExportFromCjs(i) {
100
102
  }
101
103
  var indexLight = { exports: {} }, indexMinimal = {}, minimal = {}, aspromise = asPromise$1;
102
104
  function asPromise$1(i, e) {
103
- for (var n = new Array(arguments.length - 1), f = 0, u = 2, a = !0; u < arguments.length; )
104
- n[f++] = arguments[u++];
105
+ for (var n = new Array(arguments.length - 1), u = 0, f = 2, a = !0; f < arguments.length; )
106
+ n[u++] = arguments[f++];
105
107
  return new Promise(function(s, o) {
106
- n[f] = function(l) {
108
+ n[u] = function(l) {
107
109
  if (a)
108
110
  if (a = !1, l)
109
111
  o(l);
@@ -131,20 +133,20 @@ var base64$1 = {};
131
133
  ++r;
132
134
  return Math.ceil(s.length * 3) / 4 - r;
133
135
  };
134
- for (var n = new Array(64), f = new Array(123), u = 0; u < 64; )
135
- f[n[u] = u < 26 ? u + 65 : u < 52 ? u + 71 : u < 62 ? u - 4 : u - 59 | 43] = u++;
136
+ for (var n = new Array(64), u = new Array(123), f = 0; f < 64; )
137
+ u[n[f] = f < 26 ? f + 65 : f < 52 ? f + 71 : f < 62 ? f - 4 : f - 59 | 43] = f++;
136
138
  e.encode = function(s, o, r) {
137
139
  for (var l = null, d = [], h = 0, c = 0, p; o < r; ) {
138
- var y = s[o++];
140
+ var m = s[o++];
139
141
  switch (c) {
140
142
  case 0:
141
- d[h++] = n[y >> 2], p = (y & 3) << 4, c = 1;
143
+ d[h++] = n[m >> 2], p = (m & 3) << 4, c = 1;
142
144
  break;
143
145
  case 1:
144
- d[h++] = n[p | y >> 4], p = (y & 15) << 2, c = 2;
146
+ d[h++] = n[p | m >> 4], p = (m & 15) << 2, c = 2;
145
147
  break;
146
148
  case 2:
147
- d[h++] = n[p | y >> 6], d[h++] = n[y & 63], c = 0;
149
+ d[h++] = n[p | m >> 6], d[h++] = n[m & 63], c = 0;
148
150
  break;
149
151
  }
150
152
  h > 8191 && ((l || (l = [])).push(String.fromCharCode.apply(String, d)), h = 0);
@@ -157,7 +159,7 @@ var base64$1 = {};
157
159
  var p = s.charCodeAt(c++);
158
160
  if (p === 61 && d > 1)
159
161
  break;
160
- if ((p = f[p]) === void 0)
162
+ if ((p = u[p]) === void 0)
161
163
  throw Error(a);
162
164
  switch (d) {
163
165
  case 0:
@@ -185,10 +187,10 @@ var eventemitter = EventEmitter;
185
187
  function EventEmitter() {
186
188
  this._listeners = {};
187
189
  }
188
- EventEmitter.prototype.on = function(e, n, f) {
190
+ EventEmitter.prototype.on = function(e, n, u) {
189
191
  return (this._listeners[e] || (this._listeners[e] = [])).push({
190
192
  fn: n,
191
- ctx: f || this
193
+ ctx: u || this
192
194
  }), this;
193
195
  };
194
196
  EventEmitter.prototype.off = function(e, n) {
@@ -197,87 +199,87 @@ EventEmitter.prototype.off = function(e, n) {
197
199
  else if (n === void 0)
198
200
  this._listeners[e] = [];
199
201
  else
200
- for (var f = this._listeners[e], u = 0; u < f.length; )
201
- f[u].fn === n ? f.splice(u, 1) : ++u;
202
+ for (var u = this._listeners[e], f = 0; f < u.length; )
203
+ u[f].fn === n ? u.splice(f, 1) : ++f;
202
204
  return this;
203
205
  };
204
206
  EventEmitter.prototype.emit = function(e) {
205
207
  var n = this._listeners[e];
206
208
  if (n) {
207
- for (var f = [], u = 1; u < arguments.length; )
208
- f.push(arguments[u++]);
209
- for (u = 0; u < n.length; )
210
- n[u].fn.apply(n[u++].ctx, f);
209
+ for (var u = [], f = 1; f < arguments.length; )
210
+ u.push(arguments[f++]);
211
+ for (f = 0; f < n.length; )
212
+ n[f].fn.apply(n[f++].ctx, u);
211
213
  }
212
214
  return this;
213
215
  };
214
216
  var float = factory(factory);
215
217
  function factory(i) {
216
218
  return typeof Float32Array < "u" ? function() {
217
- var e = new Float32Array([-0]), n = new Uint8Array(e.buffer), f = n[3] === 128;
218
- function u(o, r, l) {
219
+ var e = new Float32Array([-0]), n = new Uint8Array(e.buffer), u = n[3] === 128;
220
+ function f(o, r, l) {
219
221
  e[0] = o, r[l] = n[0], r[l + 1] = n[1], r[l + 2] = n[2], r[l + 3] = n[3];
220
222
  }
221
223
  function a(o, r, l) {
222
224
  e[0] = o, r[l] = n[3], r[l + 1] = n[2], r[l + 2] = n[1], r[l + 3] = n[0];
223
225
  }
224
- i.writeFloatLE = f ? u : a, i.writeFloatBE = f ? a : u;
226
+ i.writeFloatLE = u ? f : a, i.writeFloatBE = u ? a : f;
225
227
  function t(o, r) {
226
228
  return n[0] = o[r], n[1] = o[r + 1], n[2] = o[r + 2], n[3] = o[r + 3], e[0];
227
229
  }
228
230
  function s(o, r) {
229
231
  return n[3] = o[r], n[2] = o[r + 1], n[1] = o[r + 2], n[0] = o[r + 3], e[0];
230
232
  }
231
- i.readFloatLE = f ? t : s, i.readFloatBE = f ? s : t;
233
+ i.readFloatLE = u ? t : s, i.readFloatBE = u ? s : t;
232
234
  }() : function() {
233
- function e(f, u, a, t) {
234
- var s = u < 0 ? 1 : 0;
235
- if (s && (u = -u), u === 0)
236
- f(1 / u > 0 ? (
235
+ function e(u, f, a, t) {
236
+ var s = f < 0 ? 1 : 0;
237
+ if (s && (f = -f), f === 0)
238
+ u(1 / f > 0 ? (
237
239
  /* positive */
238
240
  0
239
241
  ) : (
240
242
  /* negative 0 */
241
243
  2147483648
242
244
  ), a, t);
243
- else if (isNaN(u))
244
- f(2143289344, a, t);
245
- else if (u > 34028234663852886e22)
246
- f((s << 31 | 2139095040) >>> 0, a, t);
247
- else if (u < 11754943508222875e-54)
248
- f((s << 31 | Math.round(u / 1401298464324817e-60)) >>> 0, a, t);
245
+ else if (isNaN(f))
246
+ u(2143289344, a, t);
247
+ else if (f > 34028234663852886e22)
248
+ u((s << 31 | 2139095040) >>> 0, a, t);
249
+ else if (f < 11754943508222875e-54)
250
+ u((s << 31 | Math.round(f / 1401298464324817e-60)) >>> 0, a, t);
249
251
  else {
250
- var o = Math.floor(Math.log(u) / Math.LN2), r = Math.round(u * Math.pow(2, -o) * 8388608) & 8388607;
251
- f((s << 31 | o + 127 << 23 | r) >>> 0, a, t);
252
+ var o = Math.floor(Math.log(f) / Math.LN2), r = Math.round(f * Math.pow(2, -o) * 8388608) & 8388607;
253
+ u((s << 31 | o + 127 << 23 | r) >>> 0, a, t);
252
254
  }
253
255
  }
254
256
  i.writeFloatLE = e.bind(null, writeUintLE), i.writeFloatBE = e.bind(null, writeUintBE);
255
- function n(f, u, a) {
256
- var t = f(u, a), s = (t >> 31) * 2 + 1, o = t >>> 23 & 255, r = t & 8388607;
257
+ function n(u, f, a) {
258
+ var t = u(f, a), s = (t >> 31) * 2 + 1, o = t >>> 23 & 255, r = t & 8388607;
257
259
  return o === 255 ? r ? NaN : s * (1 / 0) : o === 0 ? s * 1401298464324817e-60 * r : s * Math.pow(2, o - 150) * (r + 8388608);
258
260
  }
259
261
  i.readFloatLE = n.bind(null, readUintLE), i.readFloatBE = n.bind(null, readUintBE);
260
262
  }(), typeof Float64Array < "u" ? function() {
261
- var e = new Float64Array([-0]), n = new Uint8Array(e.buffer), f = n[7] === 128;
262
- function u(o, r, l) {
263
+ var e = new Float64Array([-0]), n = new Uint8Array(e.buffer), u = n[7] === 128;
264
+ function f(o, r, l) {
263
265
  e[0] = o, r[l] = n[0], r[l + 1] = n[1], r[l + 2] = n[2], r[l + 3] = n[3], r[l + 4] = n[4], r[l + 5] = n[5], r[l + 6] = n[6], r[l + 7] = n[7];
264
266
  }
265
267
  function a(o, r, l) {
266
268
  e[0] = o, r[l] = n[7], r[l + 1] = n[6], r[l + 2] = n[5], r[l + 3] = n[4], r[l + 4] = n[3], r[l + 5] = n[2], r[l + 6] = n[1], r[l + 7] = n[0];
267
269
  }
268
- i.writeDoubleLE = f ? u : a, i.writeDoubleBE = f ? a : u;
270
+ i.writeDoubleLE = u ? f : a, i.writeDoubleBE = u ? a : f;
269
271
  function t(o, r) {
270
272
  return n[0] = o[r], n[1] = o[r + 1], n[2] = o[r + 2], n[3] = o[r + 3], n[4] = o[r + 4], n[5] = o[r + 5], n[6] = o[r + 6], n[7] = o[r + 7], e[0];
271
273
  }
272
274
  function s(o, r) {
273
275
  return n[7] = o[r], n[6] = o[r + 1], n[5] = o[r + 2], n[4] = o[r + 3], n[3] = o[r + 4], n[2] = o[r + 5], n[1] = o[r + 6], n[0] = o[r + 7], e[0];
274
276
  }
275
- i.readDoubleLE = f ? t : s, i.readDoubleBE = f ? s : t;
277
+ i.readDoubleLE = u ? t : s, i.readDoubleBE = u ? s : t;
276
278
  }() : function() {
277
- function e(f, u, a, t, s, o) {
279
+ function e(u, f, a, t, s, o) {
278
280
  var r = t < 0 ? 1 : 0;
279
281
  if (r && (t = -t), t === 0)
280
- f(0, s, o + u), f(1 / t > 0 ? (
282
+ u(0, s, o + f), u(1 / t > 0 ? (
281
283
  /* positive */
282
284
  0
283
285
  ) : (
@@ -285,22 +287,22 @@ function factory(i) {
285
287
  2147483648
286
288
  ), s, o + a);
287
289
  else if (isNaN(t))
288
- f(0, s, o + u), f(2146959360, s, o + a);
290
+ u(0, s, o + f), u(2146959360, s, o + a);
289
291
  else if (t > 17976931348623157e292)
290
- f(0, s, o + u), f((r << 31 | 2146435072) >>> 0, s, o + a);
292
+ u(0, s, o + f), u((r << 31 | 2146435072) >>> 0, s, o + a);
291
293
  else {
292
294
  var l;
293
295
  if (t < 22250738585072014e-324)
294
- l = t / 5e-324, f(l >>> 0, s, o + u), f((r << 31 | l / 4294967296) >>> 0, s, o + a);
296
+ l = t / 5e-324, u(l >>> 0, s, o + f), u((r << 31 | l / 4294967296) >>> 0, s, o + a);
295
297
  else {
296
298
  var d = Math.floor(Math.log(t) / Math.LN2);
297
- d === 1024 && (d = 1023), l = t * Math.pow(2, -d), f(l * 4503599627370496 >>> 0, s, o + u), f((r << 31 | d + 1023 << 20 | l * 1048576 & 1048575) >>> 0, s, o + a);
299
+ d === 1024 && (d = 1023), l = t * Math.pow(2, -d), u(l * 4503599627370496 >>> 0, s, o + f), u((r << 31 | d + 1023 << 20 | l * 1048576 & 1048575) >>> 0, s, o + a);
298
300
  }
299
301
  }
300
302
  }
301
303
  i.writeDoubleLE = e.bind(null, writeUintLE, 0, 4), i.writeDoubleBE = e.bind(null, writeUintBE, 4, 0);
302
- function n(f, u, a, t, s) {
303
- var o = f(t, s + u), r = f(t, s + a), l = (r >> 31) * 2 + 1, d = r >>> 20 & 2047, h = 4294967296 * (r & 1048575) + o;
304
+ function n(u, f, a, t, s) {
305
+ var o = u(t, s + f), r = u(t, s + a), l = (r >> 31) * 2 + 1, d = r >>> 20 & 2047, h = 4294967296 * (r & 1048575) + o;
304
306
  return d === 2047 ? h ? NaN : l * (1 / 0) : d === 0 ? l * 5e-324 * h : l * Math.pow(2, d - 1075) * (h + 4503599627370496);
305
307
  }
306
308
  i.readDoubleLE = n.bind(null, readUintLE, 0, 4), i.readDoubleBE = n.bind(null, readUintBE, 4, 0);
@@ -331,30 +333,30 @@ function inquire$1(moduleName) {
331
333
  var utf8$2 = {};
332
334
  (function(i) {
333
335
  var e = i;
334
- e.length = function(f) {
335
- for (var u = 0, a = 0, t = 0; t < f.length; ++t)
336
- a = f.charCodeAt(t), a < 128 ? u += 1 : a < 2048 ? u += 2 : (a & 64512) === 55296 && (f.charCodeAt(t + 1) & 64512) === 56320 ? (++t, u += 4) : u += 3;
337
- return u;
338
- }, e.read = function(f, u, a) {
339
- var t = a - u;
336
+ e.length = function(u) {
337
+ for (var f = 0, a = 0, t = 0; t < u.length; ++t)
338
+ a = u.charCodeAt(t), a < 128 ? f += 1 : a < 2048 ? f += 2 : (a & 64512) === 55296 && (u.charCodeAt(t + 1) & 64512) === 56320 ? (++t, f += 4) : f += 3;
339
+ return f;
340
+ }, e.read = function(u, f, a) {
341
+ var t = a - f;
340
342
  if (t < 1)
341
343
  return "";
342
- for (var s = null, o = [], r = 0, l; u < a; )
343
- l = f[u++], l < 128 ? o[r++] = l : l > 191 && l < 224 ? o[r++] = (l & 31) << 6 | f[u++] & 63 : l > 239 && l < 365 ? (l = ((l & 7) << 18 | (f[u++] & 63) << 12 | (f[u++] & 63) << 6 | f[u++] & 63) - 65536, o[r++] = 55296 + (l >> 10), o[r++] = 56320 + (l & 1023)) : o[r++] = (l & 15) << 12 | (f[u++] & 63) << 6 | f[u++] & 63, r > 8191 && ((s || (s = [])).push(String.fromCharCode.apply(String, o)), r = 0);
344
+ for (var s = null, o = [], r = 0, l; f < a; )
345
+ l = u[f++], l < 128 ? o[r++] = l : l > 191 && l < 224 ? o[r++] = (l & 31) << 6 | u[f++] & 63 : l > 239 && l < 365 ? (l = ((l & 7) << 18 | (u[f++] & 63) << 12 | (u[f++] & 63) << 6 | u[f++] & 63) - 65536, o[r++] = 55296 + (l >> 10), o[r++] = 56320 + (l & 1023)) : o[r++] = (l & 15) << 12 | (u[f++] & 63) << 6 | u[f++] & 63, r > 8191 && ((s || (s = [])).push(String.fromCharCode.apply(String, o)), r = 0);
344
346
  return s ? (r && s.push(String.fromCharCode.apply(String, o.slice(0, r))), s.join("")) : String.fromCharCode.apply(String, o.slice(0, r));
345
- }, e.write = function(f, u, a) {
346
- for (var t = a, s, o, r = 0; r < f.length; ++r)
347
- s = f.charCodeAt(r), s < 128 ? u[a++] = s : s < 2048 ? (u[a++] = s >> 6 | 192, u[a++] = s & 63 | 128) : (s & 64512) === 55296 && ((o = f.charCodeAt(r + 1)) & 64512) === 56320 ? (s = 65536 + ((s & 1023) << 10) + (o & 1023), ++r, u[a++] = s >> 18 | 240, u[a++] = s >> 12 & 63 | 128, u[a++] = s >> 6 & 63 | 128, u[a++] = s & 63 | 128) : (u[a++] = s >> 12 | 224, u[a++] = s >> 6 & 63 | 128, u[a++] = s & 63 | 128);
347
+ }, e.write = function(u, f, a) {
348
+ for (var t = a, s, o, r = 0; r < u.length; ++r)
349
+ s = u.charCodeAt(r), s < 128 ? f[a++] = s : s < 2048 ? (f[a++] = s >> 6 | 192, f[a++] = s & 63 | 128) : (s & 64512) === 55296 && ((o = u.charCodeAt(r + 1)) & 64512) === 56320 ? (s = 65536 + ((s & 1023) << 10) + (o & 1023), ++r, f[a++] = s >> 18 | 240, f[a++] = s >> 12 & 63 | 128, f[a++] = s >> 6 & 63 | 128, f[a++] = s & 63 | 128) : (f[a++] = s >> 12 | 224, f[a++] = s >> 6 & 63 | 128, f[a++] = s & 63 | 128);
348
350
  return a - t;
349
351
  };
350
352
  })(utf8$2);
351
353
  var pool_1 = pool;
352
354
  function pool(i, e, n) {
353
- var f = n || 8192, u = f >>> 1, a = null, t = f;
355
+ var u = n || 8192, f = u >>> 1, a = null, t = u;
354
356
  return function(o) {
355
- if (o < 1 || o > u)
357
+ if (o < 1 || o > f)
356
358
  return i(o);
357
- t + o > f && (a = i(f), t = 0);
359
+ t + o > u && (a = i(u), t = 0);
358
360
  var r = e.call(a, t, t += o);
359
361
  return t & 7 && (t = (t | 7) + 1), r;
360
362
  };
@@ -375,7 +377,7 @@ function requireLongbits() {
375
377
  }, n.length = function() {
376
378
  return 1;
377
379
  };
378
- var f = e.zeroHash = "\0\0\0\0\0\0\0\0";
380
+ var u = e.zeroHash = "\0\0\0\0\0\0\0\0";
379
381
  e.fromNumber = function(t) {
380
382
  if (t === 0)
381
383
  return n;
@@ -401,11 +403,11 @@ function requireLongbits() {
401
403
  }, e.prototype.toLong = function(t) {
402
404
  return i.Long ? new i.Long(this.lo | 0, this.hi | 0, !!t) : { low: this.lo | 0, high: this.hi | 0, unsigned: !!t };
403
405
  };
404
- var u = String.prototype.charCodeAt;
406
+ var f = String.prototype.charCodeAt;
405
407
  return e.fromHash = function(t) {
406
- return t === f ? n : new e(
407
- (u.call(t, 0) | u.call(t, 1) << 8 | u.call(t, 2) << 16 | u.call(t, 3) << 24) >>> 0,
408
- (u.call(t, 4) | u.call(t, 5) << 8 | u.call(t, 6) << 16 | u.call(t, 7) << 24) >>> 0
408
+ return t === u ? n : new e(
409
+ (f.call(t, 0) | f.call(t, 1) << 8 | f.call(t, 2) << 16 | f.call(t, 3) << 24) >>> 0,
410
+ (f.call(t, 4) | f.call(t, 5) << 8 | f.call(t, 6) << 16 | f.call(t, 7) << 24) >>> 0
409
411
  );
410
412
  }, e.prototype.toHash = function() {
411
413
  return String.fromCharCode(
@@ -457,8 +459,8 @@ function requireMinimal() {
457
459
  return s != null && a.hasOwnProperty(t) ? typeof s != "object" || (Array.isArray(s) ? s.length : Object.keys(s).length) > 0 : !1;
458
460
  }, e.Buffer = function() {
459
461
  try {
460
- var u = e.inquire("buffer").Buffer;
461
- return u.prototype.utf8Write ? u : (
462
+ var f = e.inquire("buffer").Buffer;
463
+ return f.prototype.utf8Write ? f : (
462
464
  /* istanbul ignore next */
463
465
  null
464
466
  );
@@ -476,15 +478,15 @@ function requireMinimal() {
476
478
  var s = e.LongBits.fromHash(a);
477
479
  return e.Long ? e.Long.fromBits(s.lo, s.hi, t) : s.toNumber(!!t);
478
480
  };
479
- function n(u, a, t) {
481
+ function n(f, a, t) {
480
482
  for (var s = Object.keys(a), o = 0; o < s.length; ++o)
481
- (u[s[o]] === void 0 || !t) && (u[s[o]] = a[s[o]]);
482
- return u;
483
+ (f[s[o]] === void 0 || !t) && (f[s[o]] = a[s[o]]);
484
+ return f;
483
485
  }
484
486
  e.merge = n, e.lcFirst = function(a) {
485
487
  return a.charAt(0).toLowerCase() + a.substring(1);
486
488
  };
487
- function f(u) {
489
+ function u(f) {
488
490
  function a(t, s) {
489
491
  if (!(this instanceof a))
490
492
  return new a(t, s);
@@ -501,7 +503,7 @@ function requireMinimal() {
501
503
  },
502
504
  name: {
503
505
  get: function() {
504
- return u;
506
+ return f;
505
507
  },
506
508
  set: void 0,
507
509
  enumerable: !1,
@@ -521,7 +523,7 @@ function requireMinimal() {
521
523
  }
522
524
  }), a;
523
525
  }
524
- e.newError = f, e.ProtocolError = f("ProtocolError"), e.oneOfGetter = function(a) {
526
+ e.newError = u, e.ProtocolError = u("ProtocolError"), e.oneOfGetter = function(a) {
525
527
  for (var t = {}, s = 0; s < a.length; ++s)
526
528
  t[a[s]] = 1;
527
529
  return function() {
@@ -540,17 +542,17 @@ function requireMinimal() {
540
542
  bytes: String,
541
543
  json: !0
542
544
  }, e._configure = function() {
543
- var u = e.Buffer;
544
- if (!u) {
545
+ var f = e.Buffer;
546
+ if (!f) {
545
547
  e._Buffer_from = e._Buffer_allocUnsafe = null;
546
548
  return;
547
549
  }
548
- e._Buffer_from = u.from !== Uint8Array.from && u.from || /* istanbul ignore next */
550
+ e._Buffer_from = f.from !== Uint8Array.from && f.from || /* istanbul ignore next */
549
551
  function(t, s) {
550
- return new u(t, s);
551
- }, e._Buffer_allocUnsafe = u.allocUnsafe || /* istanbul ignore next */
552
+ return new f(t, s);
553
+ }, e._Buffer_allocUnsafe = f.allocUnsafe || /* istanbul ignore next */
552
554
  function(t) {
553
- return new u(t);
555
+ return new f(t);
554
556
  };
555
557
  };
556
558
  }(minimal)), minimal;
@@ -581,8 +583,8 @@ Writer$1.alloc = function i(e) {
581
583
  return new util$6.Array(e);
582
584
  };
583
585
  util$6.Array !== Array && (Writer$1.alloc = util$6.pool(Writer$1.alloc, util$6.Array.prototype.subarray));
584
- Writer$1.prototype._push = function i(e, n, f) {
585
- return this.tail = this.tail.next = new Op(e, n, f), this.len += n, this;
586
+ Writer$1.prototype._push = function i(e, n, u) {
587
+ return this.tail = this.tail.next = new Op(e, n, u), this.len += n, this;
586
588
  };
587
589
  function writeByte(i, e, n) {
588
590
  e[n] = i & 255;
@@ -646,19 +648,19 @@ Writer$1.prototype.float = function i(e) {
646
648
  Writer$1.prototype.double = function i(e) {
647
649
  return this._push(util$6.float.writeDoubleLE, 8, e);
648
650
  };
649
- var writeBytes = util$6.Array.prototype.set ? function i(e, n, f) {
650
- n.set(e, f);
651
- } : function i(e, n, f) {
652
- for (var u = 0; u < e.length; ++u)
653
- n[f + u] = e[u];
651
+ var writeBytes = util$6.Array.prototype.set ? function i(e, n, u) {
652
+ n.set(e, u);
653
+ } : function i(e, n, u) {
654
+ for (var f = 0; f < e.length; ++f)
655
+ n[u + f] = e[f];
654
656
  };
655
657
  Writer$1.prototype.bytes = function i(e) {
656
658
  var n = e.length >>> 0;
657
659
  if (!n)
658
660
  return this._push(writeByte, 1, 0);
659
661
  if (util$6.isString(e)) {
660
- var f = Writer$1.alloc(n = base64.length(e));
661
- base64.decode(e, f, 0), e = f;
662
+ var u = Writer$1.alloc(n = base64.length(e));
663
+ base64.decode(e, u, 0), e = u;
662
664
  }
663
665
  return this.uint32(n)._push(writeBytes, n, e);
664
666
  };
@@ -673,12 +675,12 @@ Writer$1.prototype.reset = function i() {
673
675
  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 Op(noop$1, 0, 0), this.len = 0), this;
674
676
  };
675
677
  Writer$1.prototype.ldelim = function i() {
676
- var e = this.head, n = this.tail, f = this.len;
677
- return this.reset().uint32(f), f && (this.tail.next = e.next, this.tail = n, this.len += f), this;
678
+ var e = this.head, n = this.tail, u = this.len;
679
+ return this.reset().uint32(u), u && (this.tail.next = e.next, this.tail = n, this.len += u), this;
678
680
  };
679
681
  Writer$1.prototype.finish = function i() {
680
- for (var e = this.head.next, n = this.constructor.alloc(this.len), f = 0; e; )
681
- e.fn(e.val, n, f), f += e.len, e = e.next;
682
+ for (var e = this.head.next, n = this.constructor.alloc(this.len), u = 0; e; )
683
+ e.fn(e.val, n, u), u += e.len, e = e.next;
682
684
  return n;
683
685
  };
684
686
  Writer$1._configure = function(i) {
@@ -691,13 +693,13 @@ function BufferWriter() {
691
693
  Writer.call(this);
692
694
  }
693
695
  BufferWriter._configure = function() {
694
- BufferWriter.alloc = util$5._Buffer_allocUnsafe, BufferWriter.writeBytesBuffer = util$5.Buffer && util$5.Buffer.prototype instanceof Uint8Array && util$5.Buffer.prototype.set.name === "set" ? function(e, n, f) {
695
- n.set(e, f);
696
- } : function(e, n, f) {
696
+ BufferWriter.alloc = util$5._Buffer_allocUnsafe, BufferWriter.writeBytesBuffer = util$5.Buffer && util$5.Buffer.prototype instanceof Uint8Array && util$5.Buffer.prototype.set.name === "set" ? function(e, n, u) {
697
+ n.set(e, u);
698
+ } : function(e, n, u) {
697
699
  if (e.copy)
698
- e.copy(n, f, 0, e.length);
699
- else for (var u = 0; u < e.length; )
700
- n[f++] = e[u++];
700
+ e.copy(n, u, 0, e.length);
701
+ else for (var f = 0; f < e.length; )
702
+ n[u++] = e[f++];
701
703
  };
702
704
  };
703
705
  BufferWriter.prototype.bytes = function i(e) {
@@ -730,8 +732,8 @@ var create_array = typeof Uint8Array < "u" ? function i(e) {
730
732
  throw Error("illegal buffer");
731
733
  }, create = function i() {
732
734
  return util$4.Buffer ? function(n) {
733
- return (Reader$1.create = function(u) {
734
- return util$4.Buffer.isBuffer(u) ? new BufferReader$1(u) : create_array(u);
735
+ return (Reader$1.create = function(f) {
736
+ return util$4.Buffer.isBuffer(f) ? new BufferReader$1(f) : create_array(f);
735
737
  })(n);
736
738
  } : create_array;
737
739
  };
@@ -819,16 +821,16 @@ Reader$1.prototype.double = function i() {
819
821
  return this.pos += 8, e;
820
822
  };
821
823
  Reader$1.prototype.bytes = function i() {
822
- var e = this.uint32(), n = this.pos, f = this.pos + e;
823
- if (f > this.len)
824
+ var e = this.uint32(), n = this.pos, u = this.pos + e;
825
+ if (u > this.len)
824
826
  throw indexOutOfRange(this, e);
825
827
  if (this.pos += e, Array.isArray(this.buf))
826
- return this.buf.slice(n, f);
827
- if (n === f) {
828
- var u = util$4.Buffer;
829
- return u ? u.alloc(0) : new this.buf.constructor(0);
828
+ return this.buf.slice(n, u);
829
+ if (n === u) {
830
+ var f = util$4.Buffer;
831
+ return f ? f.alloc(0) : new this.buf.constructor(0);
830
832
  }
831
- return this._slice.call(this.buf, n, f);
833
+ return this._slice.call(this.buf, n, u);
832
834
  };
833
835
  Reader$1.prototype.string = function i() {
834
836
  var e = this.bytes();
@@ -914,12 +916,12 @@ function Service(i, e, n) {
914
916
  throw TypeError("rpcImpl must be a function");
915
917
  util$2.EventEmitter.call(this), this.rpcImpl = i, this.requestDelimited = !!e, this.responseDelimited = !!n;
916
918
  }
917
- Service.prototype.rpcCall = function i(e, n, f, u, a) {
918
- if (!u)
919
+ Service.prototype.rpcCall = function i(e, n, u, f, a) {
920
+ if (!f)
919
921
  throw TypeError("request must be specified");
920
922
  var t = this;
921
923
  if (!a)
922
- return util$2.asPromise(i, t, e, n, f, u);
924
+ return util$2.asPromise(i, t, e, n, u, f);
923
925
  if (!t.rpcImpl) {
924
926
  setTimeout(function() {
925
927
  a(Error("already ended"));
@@ -929,7 +931,7 @@ Service.prototype.rpcCall = function i(e, n, f, u, a) {
929
931
  try {
930
932
  return t.rpcImpl(
931
933
  e,
932
- n[t.requestDelimited ? "encodeDelimited" : "encode"](u).finish(),
934
+ n[t.requestDelimited ? "encodeDelimited" : "encode"](f).finish(),
933
935
  function(o, r) {
934
936
  if (o)
935
937
  return t.emit("error", o, e), a(o);
@@ -940,9 +942,9 @@ Service.prototype.rpcCall = function i(e, n, f, u, a) {
940
942
  );
941
943
  return;
942
944
  }
943
- if (!(r instanceof f))
945
+ if (!(r instanceof u))
944
946
  try {
945
- r = f[t.responseDelimited ? "decodeDelimited" : "decode"](r);
947
+ r = u[t.responseDelimited ? "decodeDelimited" : "decode"](r);
946
948
  } catch (l) {
947
949
  return t.emit("error", l, e), a(l);
948
950
  }
@@ -976,9 +978,9 @@ var util$1 = { exports: {} }, codegen_1 = codegen;
976
978
  function codegen(i, e) {
977
979
  typeof i == "string" && (e = i, i = void 0);
978
980
  var n = [];
979
- function f(a) {
981
+ function u(a) {
980
982
  if (typeof a != "string") {
981
- var t = u();
983
+ var t = f();
982
984
  if (codegen.verbose && console.log("codegen: " + t), t = "return " + t, a) {
983
985
  for (var s = Object.keys(a), o = new Array(s.length + 1), r = new Array(s.length), l = 0; l < s.length; )
984
986
  o[l] = s[l], r[l] = a[s[l++]];
@@ -988,57 +990,57 @@ function codegen(i, e) {
988
990
  }
989
991
  for (var d = new Array(arguments.length - 1), h = 0; h < d.length; )
990
992
  d[h] = arguments[++h];
991
- if (h = 0, a = a.replace(/%([%dfijs])/g, function(p, y) {
992
- var _ = d[h++];
993
- switch (y) {
993
+ if (h = 0, a = a.replace(/%([%dfijs])/g, function(p, m) {
994
+ var b = d[h++];
995
+ switch (m) {
994
996
  case "d":
995
997
  case "f":
996
- return String(Number(_));
998
+ return String(Number(b));
997
999
  case "i":
998
- return String(Math.floor(_));
1000
+ return String(Math.floor(b));
999
1001
  case "j":
1000
- return JSON.stringify(_);
1002
+ return JSON.stringify(b);
1001
1003
  case "s":
1002
- return String(_);
1004
+ return String(b);
1003
1005
  }
1004
1006
  return "%";
1005
1007
  }), h !== d.length)
1006
1008
  throw Error("parameter count mismatch");
1007
- return n.push(a), f;
1009
+ return n.push(a), u;
1008
1010
  }
1009
- function u(a) {
1011
+ function f(a) {
1010
1012
  return "function " + (a || e || "") + "(" + (i && i.join(",") || "") + `){
1011
1013
  ` + n.join(`
1012
1014
  `) + `
1013
1015
  }`;
1014
1016
  }
1015
- return f.toString = u, f;
1017
+ return u.toString = f, u;
1016
1018
  }
1017
1019
  codegen.verbose = !1;
1018
1020
  var fetch_1 = fetch, asPromise = aspromise, inquire = inquire_1, fs = inquire("fs");
1019
1021
  function fetch(i, e, n) {
1020
- return typeof e == "function" ? (n = e, e = {}) : e || (e = {}), n ? !e.xhr && fs && fs.readFile ? fs.readFile(i, function(u, a) {
1021
- return u && typeof XMLHttpRequest < "u" ? fetch.xhr(i, e, n) : u ? n(u) : n(null, e.binary ? a : a.toString("utf8"));
1022
+ return typeof e == "function" ? (n = e, e = {}) : e || (e = {}), n ? !e.xhr && fs && fs.readFile ? fs.readFile(i, function(f, a) {
1023
+ return f && typeof XMLHttpRequest < "u" ? fetch.xhr(i, e, n) : f ? n(f) : n(null, e.binary ? a : a.toString("utf8"));
1022
1024
  }) : fetch.xhr(i, e, n) : asPromise(fetch, this, i, e);
1023
1025
  }
1024
- fetch.xhr = function i(e, n, f) {
1025
- var u = new XMLHttpRequest();
1026
- u.onreadystatechange = function() {
1027
- if (u.readyState === 4) {
1028
- if (u.status !== 0 && u.status !== 200)
1029
- return f(Error("status " + u.status));
1026
+ fetch.xhr = function i(e, n, u) {
1027
+ var f = new XMLHttpRequest();
1028
+ f.onreadystatechange = function() {
1029
+ if (f.readyState === 4) {
1030
+ if (f.status !== 0 && f.status !== 200)
1031
+ return u(Error("status " + f.status));
1030
1032
  if (n.binary) {
1031
- var t = u.response;
1033
+ var t = f.response;
1032
1034
  if (!t) {
1033
1035
  t = [];
1034
- for (var s = 0; s < u.responseText.length; ++s)
1035
- t.push(u.responseText.charCodeAt(s) & 255);
1036
+ for (var s = 0; s < f.responseText.length; ++s)
1037
+ t.push(f.responseText.charCodeAt(s) & 255);
1036
1038
  }
1037
- return f(null, typeof Uint8Array < "u" ? new Uint8Array(t) : t);
1039
+ return u(null, typeof Uint8Array < "u" ? new Uint8Array(t) : t);
1038
1040
  }
1039
- return f(null, u.responseText);
1041
+ return u(null, f.responseText);
1040
1042
  }
1041
- }, n.binary && ("overrideMimeType" in u && u.overrideMimeType("text/plain; charset=x-user-defined"), u.responseType = "arraybuffer"), u.open("GET", e), u.send();
1043
+ }, n.binary && ("overrideMimeType" in f && f.overrideMimeType("text/plain; charset=x-user-defined"), f.responseType = "arraybuffer"), f.open("GET", e), f.send();
1042
1044
  };
1043
1045
  var path = {};
1044
1046
  (function(i) {
@@ -1051,7 +1053,7 @@ var path = {};
1051
1053
  e.isAbsolute = function(a) {
1052
1054
  return /^(?:\/|\w+:)/.test(a);
1053
1055
  }
1054
- ), f = (
1056
+ ), u = (
1055
1057
  /**
1056
1058
  * Normalizes the specified path.
1057
1059
  * @param {string} path Path to normalize
@@ -1067,13 +1069,13 @@ var path = {};
1067
1069
  }
1068
1070
  );
1069
1071
  e.resolve = function(a, t, s) {
1070
- return s || (t = f(t)), n(t) ? t : (s || (a = f(a)), (a = a.replace(/(?:\/|^)[^/]+$/, "")).length ? f(a + "/" + t) : t);
1072
+ return s || (t = u(t)), n(t) ? t : (s || (a = u(a)), (a = a.replace(/(?:\/|^)[^/]+$/, "")).length ? u(a + "/" + t) : t);
1071
1073
  };
1072
1074
  })(path);
1073
1075
  var types = {}, hasRequiredTypes;
1074
1076
  function requireTypes() {
1075
1077
  return hasRequiredTypes || (hasRequiredTypes = 1, function(i) {
1076
- var e = i, n = requireUtil(), f = [
1078
+ var e = i, n = requireUtil(), u = [
1077
1079
  "double",
1078
1080
  // 0
1079
1081
  "float",
@@ -1105,12 +1107,12 @@ function requireTypes() {
1105
1107
  "bytes"
1106
1108
  // 14
1107
1109
  ];
1108
- function u(a, t) {
1110
+ function f(a, t) {
1109
1111
  var s = 0, o = {};
1110
- for (t |= 0; s < a.length; ) o[f[s + t]] = a[s++];
1112
+ for (t |= 0; s < a.length; ) o[u[s + t]] = a[s++];
1111
1113
  return o;
1112
1114
  }
1113
- e.basic = u([
1115
+ e.basic = f([
1114
1116
  /* double */
1115
1117
  1,
1116
1118
  /* float */
@@ -1141,7 +1143,7 @@ function requireTypes() {
1141
1143
  2,
1142
1144
  /* bytes */
1143
1145
  2
1144
- ]), e.defaults = u([
1146
+ ]), e.defaults = f([
1145
1147
  /* double */
1146
1148
  0,
1147
1149
  /* float */
@@ -1174,7 +1176,7 @@ function requireTypes() {
1174
1176
  n.emptyArray,
1175
1177
  /* message */
1176
1178
  null
1177
- ]), e.long = u([
1179
+ ]), e.long = f([
1178
1180
  /* int64 */
1179
1181
  0,
1180
1182
  /* uint64 */
@@ -1185,7 +1187,7 @@ function requireTypes() {
1185
1187
  1,
1186
1188
  /* sfixed64 */
1187
1189
  1
1188
- ], 7), e.mapKey = u([
1190
+ ], 7), e.mapKey = f([
1189
1191
  /* int32 */
1190
1192
  0,
1191
1193
  /* uint32 */
@@ -1210,7 +1212,7 @@ function requireTypes() {
1210
1212
  0,
1211
1213
  /* string */
1212
1214
  2
1213
- ], 2), e.packed = u([
1215
+ ], 2), e.packed = f([
1214
1216
  /* double */
1215
1217
  1,
1216
1218
  /* float */
@@ -1246,20 +1248,20 @@ function requireField() {
1246
1248
  hasRequiredField = 1, field = t;
1247
1249
  var i = requireObject();
1248
1250
  ((t.prototype = Object.create(i.prototype)).constructor = t).className = "Field";
1249
- var e = require_enum(), n = requireTypes(), f = requireUtil(), u, a = /^required|optional|repeated$/;
1251
+ var e = require_enum(), n = requireTypes(), u = requireUtil(), f, a = /^required|optional|repeated$/;
1250
1252
  t.fromJSON = function(o, r) {
1251
1253
  return new t(o, r.id, r.type, r.rule, r.extend, r.options, r.comment);
1252
1254
  };
1253
1255
  function t(s, o, r, l, d, h, c) {
1254
- if (f.isObject(l) ? (c = d, h = l, l = d = void 0) : f.isObject(d) && (c = h, h = d, d = void 0), i.call(this, s, h), !f.isInteger(o) || o < 0)
1256
+ if (u.isObject(l) ? (c = d, h = l, l = d = void 0) : u.isObject(d) && (c = h, h = d, d = void 0), i.call(this, s, h), !u.isInteger(o) || o < 0)
1255
1257
  throw TypeError("id must be a non-negative integer");
1256
- if (!f.isString(r))
1258
+ if (!u.isString(r))
1257
1259
  throw TypeError("type must be a string");
1258
1260
  if (l !== void 0 && !a.test(l = l.toString().toLowerCase()))
1259
1261
  throw TypeError("rule must be a string rule");
1260
- if (d !== void 0 && !f.isString(d))
1262
+ if (d !== void 0 && !u.isString(d))
1261
1263
  throw TypeError("extend must be a string");
1262
- l === "proto3_optional" && (l = "optional"), this.rule = l && l !== "optional" ? l : void 0, this.type = r, this.id = o, this.extend = d || void 0, this.required = l === "required", this.optional = !this.required, this.repeated = l === "repeated", this.map = !1, this.message = null, this.partOf = null, this.typeDefault = null, this.defaultValue = null, this.long = f.Long ? n.long[r] !== void 0 : (
1264
+ l === "proto3_optional" && (l = "optional"), this.rule = l && l !== "optional" ? l : void 0, this.type = r, this.id = o, this.extend = d || void 0, this.required = l === "required", this.optional = !this.required, this.repeated = l === "repeated", this.map = !1, this.message = null, this.partOf = null, this.typeDefault = null, this.defaultValue = null, this.long = u.Long ? n.long[r] !== void 0 : (
1263
1265
  /* istanbul ignore next */
1264
1266
  !1
1265
1267
  ), this.bytes = r === "bytes", this.resolvedType = null, this.extensionField = null, this.declaringField = null, this._packed = null, this.comment = c;
@@ -1272,7 +1274,7 @@ function requireField() {
1272
1274
  return o === "packed" && (this._packed = null), i.prototype.setOption.call(this, o, r, l);
1273
1275
  }, t.prototype.toJSON = function(o) {
1274
1276
  var r = o ? !!o.keepComments : !1;
1275
- return f.toObject([
1277
+ return u.toObject([
1276
1278
  "rule",
1277
1279
  this.rule !== "optional" && this.rule || void 0,
1278
1280
  "type",
@@ -1289,36 +1291,36 @@ function requireField() {
1289
1291
  }, t.prototype.resolve = function() {
1290
1292
  if (this.resolved)
1291
1293
  return this;
1292
- if ((this.typeDefault = n.defaults[this.type]) === void 0 ? (this.resolvedType = (this.declaringField ? this.declaringField.parent : this.parent).lookupTypeOrEnum(this.type), this.resolvedType instanceof u ? 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 e && 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 e)) && delete this.options.packed, Object.keys(this.options).length || (this.options = void 0)), this.long)
1293
- this.typeDefault = f.Long.fromNumber(this.typeDefault, this.type.charAt(0) === "u"), Object.freeze && Object.freeze(this.typeDefault);
1294
+ if ((this.typeDefault = n.defaults[this.type]) === void 0 ? (this.resolvedType = (this.declaringField ? this.declaringField.parent : this.parent).lookupTypeOrEnum(this.type), this.resolvedType instanceof f ? 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 e && 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 e)) && delete this.options.packed, Object.keys(this.options).length || (this.options = void 0)), this.long)
1295
+ this.typeDefault = u.Long.fromNumber(this.typeDefault, this.type.charAt(0) === "u"), Object.freeze && Object.freeze(this.typeDefault);
1294
1296
  else if (this.bytes && typeof this.typeDefault == "string") {
1295
1297
  var o;
1296
- f.base64.test(this.typeDefault) ? f.base64.decode(this.typeDefault, o = f.newBuffer(f.base64.length(this.typeDefault)), 0) : f.utf8.write(this.typeDefault, o = f.newBuffer(f.utf8.length(this.typeDefault)), 0), this.typeDefault = o;
1298
+ u.base64.test(this.typeDefault) ? u.base64.decode(this.typeDefault, o = u.newBuffer(u.base64.length(this.typeDefault)), 0) : u.utf8.write(this.typeDefault, o = u.newBuffer(u.utf8.length(this.typeDefault)), 0), this.typeDefault = o;
1297
1299
  }
1298
- return this.map ? this.defaultValue = f.emptyObject : this.repeated ? this.defaultValue = f.emptyArray : this.defaultValue = this.typeDefault, this.parent instanceof u && (this.parent.ctor.prototype[this.name] = this.defaultValue), i.prototype.resolve.call(this);
1300
+ return this.map ? this.defaultValue = u.emptyObject : this.repeated ? this.defaultValue = u.emptyArray : this.defaultValue = this.typeDefault, this.parent instanceof f && (this.parent.ctor.prototype[this.name] = this.defaultValue), i.prototype.resolve.call(this);
1299
1301
  }, t.d = function(o, r, l, d) {
1300
- return typeof r == "function" ? r = f.decorateType(r).name : r && typeof r == "object" && (r = f.decorateEnum(r).name), function(c, p) {
1301
- f.decorateType(c.constructor).add(new t(p, o, r, l, { default: d }));
1302
+ return typeof r == "function" ? r = u.decorateType(r).name : r && typeof r == "object" && (r = u.decorateEnum(r).name), function(c, p) {
1303
+ u.decorateType(c.constructor).add(new t(p, o, r, l, { default: d }));
1302
1304
  };
1303
1305
  }, t._configure = function(o) {
1304
- u = o;
1306
+ f = o;
1305
1307
  }, field;
1306
1308
  }
1307
1309
  var oneof, hasRequiredOneof;
1308
1310
  function requireOneof() {
1309
1311
  if (hasRequiredOneof) return oneof;
1310
- hasRequiredOneof = 1, oneof = f;
1312
+ hasRequiredOneof = 1, oneof = u;
1311
1313
  var i = requireObject();
1312
- ((f.prototype = Object.create(i.prototype)).constructor = f).className = "OneOf";
1314
+ ((u.prototype = Object.create(i.prototype)).constructor = u).className = "OneOf";
1313
1315
  var e = requireField(), n = requireUtil();
1314
- function f(a, t, s, o) {
1316
+ function u(a, t, s, o) {
1315
1317
  if (Array.isArray(t) || (s = t, t = void 0), i.call(this, a, s), !(t === void 0 || Array.isArray(t)))
1316
1318
  throw TypeError("fieldNames must be an Array");
1317
1319
  this.oneof = t || [], this.fieldsArray = [], this.comment = o;
1318
1320
  }
1319
- f.fromJSON = function(t, s) {
1320
- return new f(t, s.oneof, s.options, s.comment);
1321
- }, f.prototype.toJSON = function(t) {
1321
+ u.fromJSON = function(t, s) {
1322
+ return new u(t, s.oneof, s.options, s.comment);
1323
+ }, u.prototype.toJSON = function(t) {
1322
1324
  var s = t ? !!t.keepComments : !1;
1323
1325
  return n.toObject([
1324
1326
  "options",
@@ -1329,38 +1331,38 @@ function requireOneof() {
1329
1331
  s ? this.comment : void 0
1330
1332
  ]);
1331
1333
  };
1332
- function u(a) {
1334
+ function f(a) {
1333
1335
  if (a.parent)
1334
1336
  for (var t = 0; t < a.fieldsArray.length; ++t)
1335
1337
  a.fieldsArray[t].parent || a.parent.add(a.fieldsArray[t]);
1336
1338
  }
1337
- return f.prototype.add = function(t) {
1339
+ return u.prototype.add = function(t) {
1338
1340
  if (!(t instanceof e))
1339
1341
  throw TypeError("field must be a Field");
1340
- return t.parent && t.parent !== this.parent && t.parent.remove(t), this.oneof.push(t.name), this.fieldsArray.push(t), t.partOf = this, u(this), this;
1341
- }, f.prototype.remove = function(t) {
1342
+ return t.parent && t.parent !== this.parent && t.parent.remove(t), this.oneof.push(t.name), this.fieldsArray.push(t), t.partOf = this, f(this), this;
1343
+ }, u.prototype.remove = function(t) {
1342
1344
  if (!(t instanceof e))
1343
1345
  throw TypeError("field must be a Field");
1344
1346
  var s = this.fieldsArray.indexOf(t);
1345
1347
  if (s < 0)
1346
1348
  throw Error(t + " is not a member of " + this);
1347
1349
  return this.fieldsArray.splice(s, 1), s = this.oneof.indexOf(t.name), s > -1 && this.oneof.splice(s, 1), t.partOf = null, this;
1348
- }, f.prototype.onAdd = function(t) {
1350
+ }, u.prototype.onAdd = function(t) {
1349
1351
  i.prototype.onAdd.call(this, t);
1350
1352
  for (var s = this, o = 0; o < this.oneof.length; ++o) {
1351
1353
  var r = t.get(this.oneof[o]);
1352
1354
  r && !r.partOf && (r.partOf = s, s.fieldsArray.push(r));
1353
1355
  }
1354
- u(this);
1355
- }, f.prototype.onRemove = function(t) {
1356
+ f(this);
1357
+ }, u.prototype.onRemove = function(t) {
1356
1358
  for (var s = 0, o; s < this.fieldsArray.length; ++s)
1357
1359
  (o = this.fieldsArray[s]).parent && o.parent.remove(o);
1358
1360
  i.prototype.onRemove.call(this, t);
1359
- }, f.d = function() {
1361
+ }, u.d = function() {
1360
1362
  for (var t = new Array(arguments.length), s = 0; s < arguments.length; )
1361
1363
  t[s] = arguments[s++];
1362
1364
  return function(r, l) {
1363
- n.decorateType(r.constructor).add(new f(l, t)), Object.defineProperty(r, l, {
1365
+ n.decorateType(r.constructor).add(new u(l, t)), Object.defineProperty(r, l, {
1364
1366
  get: n.oneOfGetter(t),
1365
1367
  set: n.oneOfSetter(t)
1366
1368
  });
@@ -1373,7 +1375,7 @@ function requireNamespace() {
1373
1375
  hasRequiredNamespace = 1, namespace = o;
1374
1376
  var i = requireObject();
1375
1377
  ((o.prototype = Object.create(i.prototype)).constructor = o).className = "Namespace";
1376
- var e = requireField(), n = requireUtil(), f = requireOneof(), u, a, t;
1378
+ var e = requireField(), n = requireUtil(), u = requireOneof(), f, a, t;
1377
1379
  o.fromJSON = function(d, h) {
1378
1380
  return new o(d, h.options).addJSON(h.nested);
1379
1381
  };
@@ -1419,10 +1421,10 @@ function requireNamespace() {
1419
1421
  }, o.prototype.addJSON = function(d) {
1420
1422
  var h = this;
1421
1423
  if (d)
1422
- for (var c = Object.keys(d), p = 0, y; p < c.length; ++p)
1423
- y = d[c[p]], h.add(
1424
+ for (var c = Object.keys(d), p = 0, m; p < c.length; ++p)
1425
+ m = d[c[p]], h.add(
1424
1426
  // most to least likely
1425
- (y.fields !== void 0 ? u.fromJSON : y.values !== void 0 ? t.fromJSON : y.methods !== void 0 ? a.fromJSON : y.id !== void 0 ? e.fromJSON : o.fromJSON)(c[p], y)
1427
+ (m.fields !== void 0 ? f.fromJSON : m.values !== void 0 ? t.fromJSON : m.methods !== void 0 ? a.fromJSON : m.id !== void 0 ? e.fromJSON : o.fromJSON)(c[p], m)
1426
1428
  );
1427
1429
  return this;
1428
1430
  }, o.prototype.get = function(d) {
@@ -1432,14 +1434,14 @@ function requireNamespace() {
1432
1434
  return this.nested[d].values;
1433
1435
  throw Error("no such enum: " + d);
1434
1436
  }, o.prototype.add = function(d) {
1435
- if (!(d instanceof e && d.extend !== void 0 || d instanceof u || d instanceof f || d instanceof t || d instanceof a || d instanceof o))
1437
+ if (!(d instanceof e && d.extend !== void 0 || d instanceof f || d instanceof u || d instanceof t || d instanceof a || d instanceof o))
1436
1438
  throw TypeError("object must be a valid nested object");
1437
1439
  if (!this.nested)
1438
1440
  this.nested = {};
1439
1441
  else {
1440
1442
  var h = this.get(d.name);
1441
1443
  if (h)
1442
- if (h instanceof o && d instanceof o && !(h instanceof u || h instanceof a)) {
1444
+ if (h instanceof o && d instanceof o && !(h instanceof f || h instanceof a)) {
1443
1445
  for (var c = h.nestedArray, p = 0; p < c.length; ++p)
1444
1446
  d.add(c[p]);
1445
1447
  this.remove(h), this.nested || (this.nested = {}), d.setOptions(h.options, !0);
@@ -1490,12 +1492,12 @@ function requireNamespace() {
1490
1492
  } else if (p instanceof o && (p = p.lookup(d.slice(1), h, !0)))
1491
1493
  return p;
1492
1494
  } else
1493
- for (var y = 0; y < this.nestedArray.length; ++y)
1494
- if (this._nestedArray[y] instanceof o && (p = this._nestedArray[y].lookup(d, h, !0)))
1495
+ for (var m = 0; m < this.nestedArray.length; ++m)
1496
+ if (this._nestedArray[m] instanceof o && (p = this._nestedArray[m].lookup(d, h, !0)))
1495
1497
  return p;
1496
1498
  return this.parent === null || c ? null : this.parent.lookup(d, h);
1497
1499
  }, o.prototype.lookupType = function(d) {
1498
- var h = this.lookup(d, [u]);
1500
+ var h = this.lookup(d, [f]);
1499
1501
  if (!h)
1500
1502
  throw Error("no such type: " + d);
1501
1503
  return h;
@@ -1505,7 +1507,7 @@ function requireNamespace() {
1505
1507
  throw Error("no such Enum '" + d + "' in " + this);
1506
1508
  return h;
1507
1509
  }, o.prototype.lookupTypeOrEnum = function(d) {
1508
- var h = this.lookup(d, [u, t]);
1510
+ var h = this.lookup(d, [f, t]);
1509
1511
  if (!h)
1510
1512
  throw Error("no such Type or Enum '" + d + "' in " + this);
1511
1513
  return h;
@@ -1515,24 +1517,24 @@ function requireNamespace() {
1515
1517
  throw Error("no such Service '" + d + "' in " + this);
1516
1518
  return h;
1517
1519
  }, o._configure = function(l, d, h) {
1518
- u = l, a = d, t = h;
1520
+ f = l, a = d, t = h;
1519
1521
  }, namespace;
1520
1522
  }
1521
1523
  var mapfield, hasRequiredMapfield;
1522
1524
  function requireMapfield() {
1523
1525
  if (hasRequiredMapfield) return mapfield;
1524
- hasRequiredMapfield = 1, mapfield = f;
1526
+ hasRequiredMapfield = 1, mapfield = u;
1525
1527
  var i = requireField();
1526
- ((f.prototype = Object.create(i.prototype)).constructor = f).className = "MapField";
1528
+ ((u.prototype = Object.create(i.prototype)).constructor = u).className = "MapField";
1527
1529
  var e = requireTypes(), n = requireUtil();
1528
- function f(u, a, t, s, o, r) {
1529
- if (i.call(this, u, a, s, void 0, void 0, o, r), !n.isString(t))
1530
+ function u(f, a, t, s, o, r) {
1531
+ if (i.call(this, f, a, s, void 0, void 0, o, r), !n.isString(t))
1530
1532
  throw TypeError("keyType must be a string");
1531
1533
  this.keyType = t, this.resolvedKeyType = null, this.map = !0;
1532
1534
  }
1533
- return f.fromJSON = function(a, t) {
1534
- return new f(a, t.id, t.keyType, t.type, t.options, t.comment);
1535
- }, f.prototype.toJSON = function(a) {
1535
+ return u.fromJSON = function(a, t) {
1536
+ return new u(a, t.id, t.keyType, t.type, t.options, t.comment);
1537
+ }, u.prototype.toJSON = function(a) {
1536
1538
  var t = a ? !!a.keepComments : !1;
1537
1539
  return n.toObject([
1538
1540
  "keyType",
@@ -1548,15 +1550,15 @@ function requireMapfield() {
1548
1550
  "comment",
1549
1551
  t ? this.comment : void 0
1550
1552
  ]);
1551
- }, f.prototype.resolve = function() {
1553
+ }, u.prototype.resolve = function() {
1552
1554
  if (this.resolved)
1553
1555
  return this;
1554
1556
  if (e.mapKey[this.keyType] === void 0)
1555
1557
  throw Error("invalid key type: " + this.keyType);
1556
1558
  return i.prototype.resolve.call(this);
1557
- }, f.d = function(a, t, s) {
1559
+ }, u.d = function(a, t, s) {
1558
1560
  return typeof s == "function" ? s = n.decorateType(s).name : s && typeof s == "object" && (s = n.decorateEnum(s).name), function(r, l) {
1559
- n.decorateType(r.constructor).add(new f(l, a, t, s));
1561
+ n.decorateType(r.constructor).add(new u(l, a, t, s));
1560
1562
  };
1561
1563
  }, mapfield;
1562
1564
  }
@@ -1567,19 +1569,19 @@ function requireMethod() {
1567
1569
  var i = requireObject();
1568
1570
  ((n.prototype = Object.create(i.prototype)).constructor = n).className = "Method";
1569
1571
  var e = requireUtil();
1570
- function n(f, u, a, t, s, o, r, l, d) {
1571
- if (e.isObject(s) ? (r = s, s = o = void 0) : e.isObject(o) && (r = o, o = void 0), !(u === void 0 || e.isString(u)))
1572
+ function n(u, f, a, t, s, o, r, l, d) {
1573
+ if (e.isObject(s) ? (r = s, s = o = void 0) : e.isObject(o) && (r = o, o = void 0), !(f === void 0 || e.isString(f)))
1572
1574
  throw TypeError("type must be a string");
1573
1575
  if (!e.isString(a))
1574
1576
  throw TypeError("requestType must be a string");
1575
1577
  if (!e.isString(t))
1576
1578
  throw TypeError("responseType must be a string");
1577
- i.call(this, f, r), this.type = u || "rpc", this.requestType = a, this.requestStream = s ? !0 : void 0, this.responseType = t, this.responseStream = o ? !0 : void 0, this.resolvedRequestType = null, this.resolvedResponseType = null, this.comment = l, this.parsedOptions = d;
1579
+ i.call(this, u, r), this.type = f || "rpc", this.requestType = a, this.requestStream = s ? !0 : void 0, this.responseType = t, this.responseStream = o ? !0 : void 0, this.resolvedRequestType = null, this.resolvedResponseType = null, this.comment = l, this.parsedOptions = d;
1578
1580
  }
1579
- return n.fromJSON = function(u, a) {
1580
- return new n(u, a.type, a.requestType, a.responseType, a.requestStream, a.responseStream, a.options, a.comment, a.parsedOptions);
1581
- }, n.prototype.toJSON = function(u) {
1582
- var a = u ? !!u.keepComments : !1;
1581
+ return n.fromJSON = function(f, a) {
1582
+ return new n(f, a.type, a.requestType, a.responseType, a.requestStream, a.responseStream, a.options, a.comment, a.parsedOptions);
1583
+ }, n.prototype.toJSON = function(f) {
1584
+ var a = f ? !!f.keepComments : !1;
1583
1585
  return e.toObject([
1584
1586
  "type",
1585
1587
  this.type !== "rpc" && /* istanbul ignore next */
@@ -1606,20 +1608,20 @@ function requireMethod() {
1606
1608
  var service, hasRequiredService;
1607
1609
  function requireService() {
1608
1610
  if (hasRequiredService) return service;
1609
- hasRequiredService = 1, service = u;
1611
+ hasRequiredService = 1, service = f;
1610
1612
  var i = requireNamespace();
1611
- ((u.prototype = Object.create(i.prototype)).constructor = u).className = "Service";
1612
- var e = requireMethod(), n = requireUtil(), f = rpc;
1613
- function u(t, s) {
1613
+ ((f.prototype = Object.create(i.prototype)).constructor = f).className = "Service";
1614
+ var e = requireMethod(), n = requireUtil(), u = rpc;
1615
+ function f(t, s) {
1614
1616
  i.call(this, t, s), this.methods = {}, this._methodsArray = null;
1615
1617
  }
1616
- u.fromJSON = function(s, o) {
1617
- var r = new u(s, o.options);
1618
+ f.fromJSON = function(s, o) {
1619
+ var r = new f(s, o.options);
1618
1620
  if (o.methods)
1619
1621
  for (var l = Object.keys(o.methods), d = 0; d < l.length; ++d)
1620
1622
  r.add(e.fromJSON(l[d], o.methods[l[d]]));
1621
1623
  return o.nested && r.addJSON(o.nested), r.comment = o.comment, r;
1622
- }, u.prototype.toJSON = function(s) {
1624
+ }, f.prototype.toJSON = function(s) {
1623
1625
  var o = i.prototype.toJSON.call(this, s), r = s ? !!s.keepComments : !1;
1624
1626
  return n.toObject([
1625
1627
  "options",
@@ -1632,7 +1634,7 @@ function requireService() {
1632
1634
  "comment",
1633
1635
  r ? this.comment : void 0
1634
1636
  ]);
1635
- }, Object.defineProperty(u.prototype, "methodsArray", {
1637
+ }, Object.defineProperty(f.prototype, "methodsArray", {
1636
1638
  get: function() {
1637
1639
  return this._methodsArray || (this._methodsArray = n.toArray(this.methods));
1638
1640
  }
@@ -1640,25 +1642,25 @@ function requireService() {
1640
1642
  function a(t) {
1641
1643
  return t._methodsArray = null, t;
1642
1644
  }
1643
- return u.prototype.get = function(s) {
1645
+ return f.prototype.get = function(s) {
1644
1646
  return this.methods[s] || i.prototype.get.call(this, s);
1645
- }, u.prototype.resolveAll = function() {
1647
+ }, f.prototype.resolveAll = function() {
1646
1648
  for (var s = this.methodsArray, o = 0; o < s.length; ++o)
1647
1649
  s[o].resolve();
1648
1650
  return i.prototype.resolve.call(this);
1649
- }, u.prototype.add = function(s) {
1651
+ }, f.prototype.add = function(s) {
1650
1652
  if (this.get(s.name))
1651
1653
  throw Error("duplicate name '" + s.name + "' in " + this);
1652
1654
  return s instanceof e ? (this.methods[s.name] = s, s.parent = this, a(this)) : i.prototype.add.call(this, s);
1653
- }, u.prototype.remove = function(s) {
1655
+ }, f.prototype.remove = function(s) {
1654
1656
  if (s instanceof e) {
1655
1657
  if (this.methods[s.name] !== s)
1656
1658
  throw Error(s + " is not a member of " + this);
1657
1659
  return delete this.methods[s.name], s.parent = null, a(this);
1658
1660
  }
1659
1661
  return i.prototype.remove.call(this, s);
1660
- }, u.prototype.create = function(s, o, r) {
1661
- for (var l = new f.Service(s, o, r), d = 0, h; d < /* initializes */
1662
+ }, f.prototype.create = function(s, o, r) {
1663
+ for (var l = new u.Service(s, o, r), d = 0, h; d < /* initializes */
1662
1664
  this.methodsArray.length; ++d) {
1663
1665
  var c = n.lcFirst((h = this._methodsArray[d]).resolve().name).replace(/[^$\w_]/g, "");
1664
1666
  l[c] = n.codegen(["r", "c"], n.isReserved(c) ? c + "_" : c)("return this.rpcCall(m,q,s,r,c)")({
@@ -1706,12 +1708,12 @@ Message.prototype.toJSON = function i() {
1706
1708
  var decoder_1, hasRequiredDecoder;
1707
1709
  function requireDecoder() {
1708
1710
  if (hasRequiredDecoder) return decoder_1;
1709
- hasRequiredDecoder = 1, decoder_1 = u;
1711
+ hasRequiredDecoder = 1, decoder_1 = f;
1710
1712
  var i = require_enum(), e = requireTypes(), n = requireUtil();
1711
- function f(a) {
1713
+ function u(a) {
1712
1714
  return "missing required '" + a.name + "'";
1713
1715
  }
1714
- function u(a) {
1716
+ function f(a) {
1715
1717
  var t = n.codegen(["r", "l"], a.name + "$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor" + (a.fieldsArray.filter(function(h) {
1716
1718
  return h.map;
1717
1719
  }).length ? ",k,value" : ""))("while(r.pos<c){")("var t=r.uint32()");
@@ -1723,7 +1725,7 @@ function requireDecoder() {
1723
1725
  }
1724
1726
  for (t("default:")("r.skipType(t&7)")("break")("}")("}"), s = 0; s < a._fieldsArray.length; ++s) {
1725
1727
  var d = a._fieldsArray[s];
1726
- d.required && t("if(!m.hasOwnProperty(%j))", d.name)("throw util.ProtocolError(%j,{instance:m})", f(d));
1728
+ d.required && t("if(!m.hasOwnProperty(%j))", d.name)("throw util.ProtocolError(%j,{instance:m})", u(d));
1727
1729
  }
1728
1730
  return t("return m");
1729
1731
  }
@@ -1737,7 +1739,7 @@ function requireVerifier() {
1737
1739
  function n(t, s) {
1738
1740
  return t.name + ": " + s + (t.repeated && s !== "array" ? "[]" : t.map && s !== "object" ? "{k:" + t.keyType + "}" : "") + " expected";
1739
1741
  }
1740
- function f(t, s, o, r) {
1742
+ function u(t, s, o, r) {
1741
1743
  if (s.resolvedType)
1742
1744
  if (s.resolvedType instanceof i) {
1743
1745
  t("switch(%s){", r)("default:")("return%j", n(s, "enum value"));
@@ -1777,7 +1779,7 @@ function requireVerifier() {
1777
1779
  }
1778
1780
  return t;
1779
1781
  }
1780
- function u(t, s, o) {
1782
+ function f(t, s, o) {
1781
1783
  switch (s.keyType) {
1782
1784
  case "int32":
1783
1785
  case "uint32":
@@ -1806,15 +1808,15 @@ function requireVerifier() {
1806
1808
  t.fieldsArray.length; ++l) {
1807
1809
  var d = t._fieldsArray[l].resolve(), h = "m" + e.safeProp(d.name);
1808
1810
  if (d.optional && s("if(%s!=null&&m.hasOwnProperty(%j)){", h, d.name), d.map)
1809
- s("if(!util.isObject(%s))", h)("return%j", n(d, "object"))("var k=Object.keys(%s)", h)("for(var i=0;i<k.length;++i){"), u(s, d, "k[i]"), f(s, d, l, h + "[k[i]]")("}");
1811
+ s("if(!util.isObject(%s))", h)("return%j", n(d, "object"))("var k=Object.keys(%s)", h)("for(var i=0;i<k.length;++i){"), f(s, d, "k[i]"), u(s, d, l, h + "[k[i]]")("}");
1810
1812
  else if (d.repeated)
1811
- s("if(!Array.isArray(%s))", h)("return%j", n(d, "array"))("for(var i=0;i<%s.length;++i){", h), f(s, d, l, h + "[i]")("}");
1813
+ s("if(!Array.isArray(%s))", h)("return%j", n(d, "array"))("for(var i=0;i<%s.length;++i){", h), u(s, d, l, h + "[i]")("}");
1812
1814
  else {
1813
1815
  if (d.partOf) {
1814
1816
  var c = e.safeProp(d.partOf.name);
1815
1817
  r[d.partOf.name] === 1 && s("if(p%s===1)", c)("return%j", d.partOf.name + ": multiple values"), r[d.partOf.name] = 1, s("p%s=1", c);
1816
1818
  }
1817
- f(s, d, l, h);
1819
+ u(s, d, l, h);
1818
1820
  }
1819
1821
  d.optional && s("}");
1820
1822
  }
@@ -1825,8 +1827,8 @@ function requireVerifier() {
1825
1827
  var converter = {}, hasRequiredConverter;
1826
1828
  function requireConverter() {
1827
1829
  return hasRequiredConverter || (hasRequiredConverter = 1, function(i) {
1828
- var e = i, n = require_enum(), f = requireUtil();
1829
- function u(t, s, o, r) {
1830
+ var e = i, n = require_enum(), u = requireUtil();
1831
+ function f(t, s, o, r) {
1830
1832
  var l = !1;
1831
1833
  if (s.resolvedType)
1832
1834
  if (s.resolvedType instanceof n) {
@@ -1873,24 +1875,24 @@ function requireConverter() {
1873
1875
  return t;
1874
1876
  }
1875
1877
  e.fromObject = function(s) {
1876
- var o = s.fieldsArray, r = f.codegen(["d"], s.name + "$fromObject")("if(d instanceof this.ctor)")("return d");
1878
+ var o = s.fieldsArray, r = u.codegen(["d"], s.name + "$fromObject")("if(d instanceof this.ctor)")("return d");
1877
1879
  if (!o.length) return r("return new this.ctor");
1878
1880
  r("var m=new this.ctor");
1879
1881
  for (var l = 0; l < o.length; ++l) {
1880
- var d = o[l].resolve(), h = f.safeProp(d.name);
1881
- d.map ? (r("if(d%s){", h)('if(typeof d%s!=="object")', h)("throw TypeError(%j)", d.fullName + ": object expected")("m%s={}", h)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){", h), u(
1882
+ var d = o[l].resolve(), h = u.safeProp(d.name);
1883
+ d.map ? (r("if(d%s){", h)('if(typeof d%s!=="object")', h)("throw TypeError(%j)", d.fullName + ": object expected")("m%s={}", h)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){", h), f(
1882
1884
  r,
1883
1885
  d,
1884
1886
  /* not sorted */
1885
1887
  l,
1886
1888
  h + "[ks[i]]"
1887
- )("}")("}")) : d.repeated ? (r("if(d%s){", h)("if(!Array.isArray(d%s))", h)("throw TypeError(%j)", d.fullName + ": array expected")("m%s=[]", h)("for(var i=0;i<d%s.length;++i){", h), u(
1889
+ )("}")("}")) : d.repeated ? (r("if(d%s){", h)("if(!Array.isArray(d%s))", h)("throw TypeError(%j)", d.fullName + ": array expected")("m%s=[]", h)("for(var i=0;i<d%s.length;++i){", h), f(
1888
1890
  r,
1889
1891
  d,
1890
1892
  /* not sorted */
1891
1893
  l,
1892
1894
  h + "[i]"
1893
- )("}")("}")) : (d.resolvedType instanceof n || r("if(d%s!=null){", h), u(
1895
+ )("}")("}")) : (d.resolvedType instanceof n || r("if(d%s!=null){", h), f(
1894
1896
  r,
1895
1897
  d,
1896
1898
  /* not sorted */
@@ -1929,53 +1931,53 @@ function requireConverter() {
1929
1931
  return t;
1930
1932
  }
1931
1933
  e.toObject = function(s) {
1932
- var o = s.fieldsArray.slice().sort(f.compareFieldsById);
1934
+ var o = s.fieldsArray.slice().sort(u.compareFieldsById);
1933
1935
  if (!o.length)
1934
- return f.codegen()("return {}");
1935
- for (var r = f.codegen(["m", "o"], s.name + "$toObject")("if(!o)")("o={}")("var d={}"), l = [], d = [], h = [], c = 0; c < o.length; ++c)
1936
+ return u.codegen()("return {}");
1937
+ for (var r = u.codegen(["m", "o"], s.name + "$toObject")("if(!o)")("o={}")("var d={}"), l = [], d = [], h = [], c = 0; c < o.length; ++c)
1936
1938
  o[c].partOf || (o[c].resolve().repeated ? l : o[c].map ? d : h).push(o[c]);
1937
1939
  if (l.length) {
1938
- for (r("if(o.arrays||o.defaults){"), c = 0; c < l.length; ++c) r("d%s=[]", f.safeProp(l[c].name));
1940
+ for (r("if(o.arrays||o.defaults){"), c = 0; c < l.length; ++c) r("d%s=[]", u.safeProp(l[c].name));
1939
1941
  r("}");
1940
1942
  }
1941
1943
  if (d.length) {
1942
- for (r("if(o.objects||o.defaults){"), c = 0; c < d.length; ++c) r("d%s={}", f.safeProp(d[c].name));
1944
+ for (r("if(o.objects||o.defaults){"), c = 0; c < d.length; ++c) r("d%s={}", u.safeProp(d[c].name));
1943
1945
  r("}");
1944
1946
  }
1945
1947
  if (h.length) {
1946
1948
  for (r("if(o.defaults){"), c = 0; c < h.length; ++c) {
1947
- var p = h[c], y = f.safeProp(p.name);
1948
- if (p.resolvedType instanceof n) r("d%s=o.enums===String?%j:%j", y, p.resolvedType.valuesById[p.typeDefault], p.typeDefault);
1949
- else if (p.long) r("if(util.Long){")("var n=new util.Long(%i,%i,%j)", p.typeDefault.low, p.typeDefault.high, p.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n", y)("}else")("d%s=o.longs===String?%j:%i", y, p.typeDefault.toString(), p.typeDefault.toNumber());
1949
+ var p = h[c], m = u.safeProp(p.name);
1950
+ if (p.resolvedType instanceof n) r("d%s=o.enums===String?%j:%j", m, p.resolvedType.valuesById[p.typeDefault], p.typeDefault);
1951
+ else if (p.long) r("if(util.Long){")("var n=new util.Long(%i,%i,%j)", p.typeDefault.low, p.typeDefault.high, p.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n", m)("}else")("d%s=o.longs===String?%j:%i", m, p.typeDefault.toString(), p.typeDefault.toNumber());
1950
1952
  else if (p.bytes) {
1951
- var _ = "[" + Array.prototype.slice.call(p.typeDefault).join(",") + "]";
1952
- r("if(o.bytes===String)d%s=%j", y, String.fromCharCode.apply(String, p.typeDefault))("else{")("d%s=%s", y, _)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)", y, y)("}");
1953
- } else r("d%s=%j", y, p.typeDefault);
1953
+ var b = "[" + Array.prototype.slice.call(p.typeDefault).join(",") + "]";
1954
+ r("if(o.bytes===String)d%s=%j", m, String.fromCharCode.apply(String, p.typeDefault))("else{")("d%s=%s", m, b)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)", m, m)("}");
1955
+ } else r("d%s=%j", m, p.typeDefault);
1954
1956
  }
1955
1957
  r("}");
1956
1958
  }
1957
1959
  var v = !1;
1958
1960
  for (c = 0; c < o.length; ++c) {
1959
- var p = o[c], m = s._fieldsArray.indexOf(p), y = f.safeProp(p.name);
1960
- p.map ? (v || (v = !0, r("var ks2")), r("if(m%s&&(ks2=Object.keys(m%s)).length){", y, y)("d%s={}", y)("for(var j=0;j<ks2.length;++j){"), a(
1961
+ var p = o[c], y = s._fieldsArray.indexOf(p), m = u.safeProp(p.name);
1962
+ p.map ? (v || (v = !0, r("var ks2")), r("if(m%s&&(ks2=Object.keys(m%s)).length){", m, m)("d%s={}", m)("for(var j=0;j<ks2.length;++j){"), a(
1961
1963
  r,
1962
1964
  p,
1963
1965
  /* sorted */
1964
- m,
1965
- y + "[ks2[j]]"
1966
- )("}")) : p.repeated ? (r("if(m%s&&m%s.length){", y, y)("d%s=[]", y)("for(var j=0;j<m%s.length;++j){", y), a(
1966
+ y,
1967
+ m + "[ks2[j]]"
1968
+ )("}")) : p.repeated ? (r("if(m%s&&m%s.length){", m, m)("d%s=[]", m)("for(var j=0;j<m%s.length;++j){", m), a(
1967
1969
  r,
1968
1970
  p,
1969
1971
  /* sorted */
1970
- m,
1971
- y + "[j]"
1972
- )("}")) : (r("if(m%s!=null&&m.hasOwnProperty(%j)){", y, p.name), a(
1972
+ y,
1973
+ m + "[j]"
1974
+ )("}")) : (r("if(m%s!=null&&m.hasOwnProperty(%j)){", m, p.name), a(
1973
1975
  r,
1974
1976
  p,
1975
1977
  /* sorted */
1976
- m,
1977
- y
1978
- ), p.partOf && r("if(o.oneofs)")("d%s=%j", f.safeProp(p.partOf.name), p.name)), r("}");
1978
+ y,
1979
+ m
1980
+ ), p.partOf && r("if(o.oneofs)")("d%s=%j", u.safeProp(p.partOf.name), p.name)), r("}");
1979
1981
  }
1980
1982
  return r("return d");
1981
1983
  };
@@ -1985,45 +1987,45 @@ var wrappers = {};
1985
1987
  (function(i) {
1986
1988
  var e = i, n = message;
1987
1989
  e[".google.protobuf.Any"] = {
1988
- fromObject: function(f) {
1989
- if (f && f["@type"]) {
1990
- var u = f["@type"].substring(f["@type"].lastIndexOf("/") + 1), a = this.lookup(u);
1990
+ fromObject: function(u) {
1991
+ if (u && u["@type"]) {
1992
+ var f = u["@type"].substring(u["@type"].lastIndexOf("/") + 1), a = this.lookup(f);
1991
1993
  if (a) {
1992
- var t = f["@type"].charAt(0) === "." ? f["@type"].slice(1) : f["@type"];
1994
+ var t = u["@type"].charAt(0) === "." ? u["@type"].slice(1) : u["@type"];
1993
1995
  return t.indexOf("/") === -1 && (t = "/" + t), this.create({
1994
1996
  type_url: t,
1995
- value: a.encode(a.fromObject(f)).finish()
1997
+ value: a.encode(a.fromObject(u)).finish()
1996
1998
  });
1997
1999
  }
1998
2000
  }
1999
- return this.fromObject(f);
2001
+ return this.fromObject(u);
2000
2002
  },
2001
- toObject: function(f, u) {
2003
+ toObject: function(u, f) {
2002
2004
  var a = "type.googleapis.com/", t = "", s = "";
2003
- if (u && u.json && f.type_url && f.value) {
2004
- s = f.type_url.substring(f.type_url.lastIndexOf("/") + 1), t = f.type_url.substring(0, f.type_url.lastIndexOf("/") + 1);
2005
+ if (f && f.json && u.type_url && u.value) {
2006
+ s = u.type_url.substring(u.type_url.lastIndexOf("/") + 1), t = u.type_url.substring(0, u.type_url.lastIndexOf("/") + 1);
2005
2007
  var o = this.lookup(s);
2006
- o && (f = o.decode(f.value));
2008
+ o && (u = o.decode(u.value));
2007
2009
  }
2008
- if (!(f instanceof this.ctor) && f instanceof n) {
2009
- var r = f.$type.toObject(f, u), l = f.$type.fullName[0] === "." ? f.$type.fullName.slice(1) : f.$type.fullName;
2010
+ if (!(u instanceof this.ctor) && u instanceof n) {
2011
+ var r = u.$type.toObject(u, f), l = u.$type.fullName[0] === "." ? u.$type.fullName.slice(1) : u.$type.fullName;
2010
2012
  return t === "" && (t = a), s = t + l, r["@type"] = s, r;
2011
2013
  }
2012
- return this.toObject(f, u);
2014
+ return this.toObject(u, f);
2013
2015
  }
2014
2016
  };
2015
2017
  })(wrappers);
2016
2018
  var type, hasRequiredType;
2017
2019
  function requireType() {
2018
2020
  if (hasRequiredType) return type;
2019
- hasRequiredType = 1, type = y;
2021
+ hasRequiredType = 1, type = m;
2020
2022
  var i = requireNamespace();
2021
- ((y.prototype = Object.create(i.prototype)).constructor = y).className = "Type";
2022
- var e = require_enum(), n = requireOneof(), f = requireField(), u = requireMapfield(), a = requireService(), t = message, s = reader, o = writer, r = requireUtil(), l = requireEncoder(), d = requireDecoder(), h = requireVerifier(), c = requireConverter(), p = wrappers;
2023
- function y(v, m) {
2024
- i.call(this, v, m), 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;
2023
+ ((m.prototype = Object.create(i.prototype)).constructor = m).className = "Type";
2024
+ var e = require_enum(), n = requireOneof(), u = requireField(), f = requireMapfield(), a = requireService(), t = message, s = reader, o = writer, r = requireUtil(), l = requireEncoder(), d = requireDecoder(), h = requireVerifier(), c = requireConverter(), p = wrappers;
2025
+ function m(v, y) {
2026
+ i.call(this, v, y), 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;
2025
2027
  }
2026
- Object.defineProperties(y.prototype, {
2028
+ Object.defineProperties(m.prototype, {
2027
2029
  /**
2028
2030
  * Message fields by id.
2029
2031
  * @name Type#fieldsById
@@ -2035,11 +2037,11 @@ function requireType() {
2035
2037
  if (this._fieldsById)
2036
2038
  return this._fieldsById;
2037
2039
  this._fieldsById = {};
2038
- for (var v = Object.keys(this.fields), m = 0; m < v.length; ++m) {
2039
- var g = this.fields[v[m]], b = g.id;
2040
- if (this._fieldsById[b])
2041
- throw Error("duplicate id " + b + " in " + this);
2042
- this._fieldsById[b] = g;
2040
+ for (var v = Object.keys(this.fields), y = 0; y < v.length; ++y) {
2041
+ var g = this.fields[v[y]], _ = g.id;
2042
+ if (this._fieldsById[_])
2043
+ throw Error("duplicate id " + _ + " in " + this);
2044
+ this._fieldsById[_] = g;
2043
2045
  }
2044
2046
  return this._fieldsById;
2045
2047
  }
@@ -2074,62 +2076,62 @@ function requireType() {
2074
2076
  */
2075
2077
  ctor: {
2076
2078
  get: function() {
2077
- return this._ctor || (this.ctor = y.generateConstructor(this)());
2079
+ return this._ctor || (this.ctor = m.generateConstructor(this)());
2078
2080
  },
2079
2081
  set: function(v) {
2080
- var m = v.prototype;
2081
- m instanceof t || ((v.prototype = new t()).constructor = v, r.merge(v.prototype, m)), v.$type = v.prototype.$type = this, r.merge(v, t, !0), this._ctor = v;
2082
+ var y = v.prototype;
2083
+ y instanceof t || ((v.prototype = new t()).constructor = v, r.merge(v.prototype, y)), v.$type = v.prototype.$type = this, r.merge(v, t, !0), this._ctor = v;
2082
2084
  for (var g = 0; g < /* initializes */
2083
2085
  this.fieldsArray.length; ++g)
2084
2086
  this._fieldsArray[g].resolve();
2085
- var b = {};
2087
+ var _ = {};
2086
2088
  for (g = 0; g < /* initializes */
2087
2089
  this.oneofsArray.length; ++g)
2088
- b[this._oneofsArray[g].resolve().name] = {
2090
+ _[this._oneofsArray[g].resolve().name] = {
2089
2091
  get: r.oneOfGetter(this._oneofsArray[g].oneof),
2090
2092
  set: r.oneOfSetter(this._oneofsArray[g].oneof)
2091
2093
  };
2092
- g && Object.defineProperties(v.prototype, b);
2094
+ g && Object.defineProperties(v.prototype, _);
2093
2095
  }
2094
2096
  }
2095
- }), y.generateConstructor = function(m) {
2096
- for (var g = r.codegen(["p"], m.name), b = 0, R; b < m.fieldsArray.length; ++b)
2097
- (R = m._fieldsArray[b]).map ? g("this%s={}", r.safeProp(R.name)) : R.repeated && g("this%s=[]", r.safeProp(R.name));
2097
+ }), m.generateConstructor = function(y) {
2098
+ for (var g = r.codegen(["p"], y.name), _ = 0, R; _ < y.fieldsArray.length; ++_)
2099
+ (R = y._fieldsArray[_]).map ? g("this%s={}", r.safeProp(R.name)) : R.repeated && g("this%s=[]", r.safeProp(R.name));
2098
2100
  return g("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]]");
2099
2101
  };
2100
- function _(v) {
2102
+ function b(v) {
2101
2103
  return v._fieldsById = v._fieldsArray = v._oneofsArray = null, delete v.encode, delete v.decode, delete v.verify, v;
2102
2104
  }
2103
- return y.fromJSON = function(m, g) {
2104
- var b = new y(m, g.options);
2105
- b.extensions = g.extensions, b.reserved = g.reserved;
2105
+ return m.fromJSON = function(y, g) {
2106
+ var _ = new m(y, g.options);
2107
+ _.extensions = g.extensions, _.reserved = g.reserved;
2106
2108
  for (var R = Object.keys(g.fields), O = 0; O < R.length; ++O)
2107
- b.add(
2108
- (typeof g.fields[R[O]].keyType < "u" ? u.fromJSON : f.fromJSON)(R[O], g.fields[R[O]])
2109
+ _.add(
2110
+ (typeof g.fields[R[O]].keyType < "u" ? f.fromJSON : u.fromJSON)(R[O], g.fields[R[O]])
2109
2111
  );
2110
2112
  if (g.oneofs)
2111
2113
  for (R = Object.keys(g.oneofs), O = 0; O < R.length; ++O)
2112
- b.add(n.fromJSON(R[O], g.oneofs[R[O]]));
2114
+ _.add(n.fromJSON(R[O], g.oneofs[R[O]]));
2113
2115
  if (g.nested)
2114
2116
  for (R = Object.keys(g.nested), O = 0; O < R.length; ++O) {
2115
2117
  var T = g.nested[R[O]];
2116
- b.add(
2118
+ _.add(
2117
2119
  // most to least likely
2118
- (T.id !== void 0 ? f.fromJSON : T.fields !== void 0 ? y.fromJSON : T.values !== void 0 ? e.fromJSON : T.methods !== void 0 ? a.fromJSON : i.fromJSON)(R[O], T)
2120
+ (T.id !== void 0 ? u.fromJSON : T.fields !== void 0 ? m.fromJSON : T.values !== void 0 ? e.fromJSON : T.methods !== void 0 ? a.fromJSON : i.fromJSON)(R[O], T)
2119
2121
  );
2120
2122
  }
2121
- return g.extensions && g.extensions.length && (b.extensions = g.extensions), g.reserved && g.reserved.length && (b.reserved = g.reserved), g.group && (b.group = !0), g.comment && (b.comment = g.comment), b;
2122
- }, y.prototype.toJSON = function(m) {
2123
- var g = i.prototype.toJSON.call(this, m), b = m ? !!m.keepComments : !1;
2123
+ return g.extensions && g.extensions.length && (_.extensions = g.extensions), g.reserved && g.reserved.length && (_.reserved = g.reserved), g.group && (_.group = !0), g.comment && (_.comment = g.comment), _;
2124
+ }, m.prototype.toJSON = function(y) {
2125
+ var g = i.prototype.toJSON.call(this, y), _ = y ? !!y.keepComments : !1;
2124
2126
  return r.toObject([
2125
2127
  "options",
2126
2128
  g && g.options || void 0,
2127
2129
  "oneofs",
2128
- i.arrayToJSON(this.oneofsArray, m),
2130
+ i.arrayToJSON(this.oneofsArray, y),
2129
2131
  "fields",
2130
2132
  i.arrayToJSON(this.fieldsArray.filter(function(R) {
2131
2133
  return !R.declaringField;
2132
- }), m) || {},
2134
+ }), y) || {},
2133
2135
  "extensions",
2134
2136
  this.extensions && this.extensions.length ? this.extensions : void 0,
2135
2137
  "reserved",
@@ -2139,55 +2141,55 @@ function requireType() {
2139
2141
  "nested",
2140
2142
  g && g.nested || void 0,
2141
2143
  "comment",
2142
- b ? this.comment : void 0
2144
+ _ ? this.comment : void 0
2143
2145
  ]);
2144
- }, y.prototype.resolveAll = function() {
2145
- for (var m = this.fieldsArray, g = 0; g < m.length; )
2146
- m[g++].resolve();
2147
- var b = this.oneofsArray;
2148
- for (g = 0; g < b.length; )
2149
- b[g++].resolve();
2146
+ }, m.prototype.resolveAll = function() {
2147
+ for (var y = this.fieldsArray, g = 0; g < y.length; )
2148
+ y[g++].resolve();
2149
+ var _ = this.oneofsArray;
2150
+ for (g = 0; g < _.length; )
2151
+ _[g++].resolve();
2150
2152
  return i.prototype.resolveAll.call(this);
2151
- }, y.prototype.get = function(m) {
2152
- return this.fields[m] || this.oneofs && this.oneofs[m] || this.nested && this.nested[m] || null;
2153
- }, y.prototype.add = function(m) {
2154
- if (this.get(m.name))
2155
- throw Error("duplicate name '" + m.name + "' in " + this);
2156
- if (m instanceof f && m.extend === void 0) {
2153
+ }, m.prototype.get = function(y) {
2154
+ return this.fields[y] || this.oneofs && this.oneofs[y] || this.nested && this.nested[y] || null;
2155
+ }, m.prototype.add = function(y) {
2156
+ if (this.get(y.name))
2157
+ throw Error("duplicate name '" + y.name + "' in " + this);
2158
+ if (y instanceof u && y.extend === void 0) {
2157
2159
  if (this._fieldsById ? (
2158
2160
  /* istanbul ignore next */
2159
- this._fieldsById[m.id]
2160
- ) : this.fieldsById[m.id])
2161
- throw Error("duplicate id " + m.id + " in " + this);
2162
- if (this.isReservedId(m.id))
2163
- throw Error("id " + m.id + " is reserved in " + this);
2164
- if (this.isReservedName(m.name))
2165
- throw Error("name '" + m.name + "' is reserved in " + this);
2166
- return m.parent && m.parent.remove(m), this.fields[m.name] = m, m.message = this, m.onAdd(this), _(this);
2167
- }
2168
- return m instanceof n ? (this.oneofs || (this.oneofs = {}), this.oneofs[m.name] = m, m.onAdd(this), _(this)) : i.prototype.add.call(this, m);
2169
- }, y.prototype.remove = function(m) {
2170
- if (m instanceof f && m.extend === void 0) {
2171
- if (!this.fields || this.fields[m.name] !== m)
2172
- throw Error(m + " is not a member of " + this);
2173
- return delete this.fields[m.name], m.parent = null, m.onRemove(this), _(this);
2174
- }
2175
- if (m instanceof n) {
2176
- if (!this.oneofs || this.oneofs[m.name] !== m)
2177
- throw Error(m + " is not a member of " + this);
2178
- return delete this.oneofs[m.name], m.parent = null, m.onRemove(this), _(this);
2179
- }
2180
- return i.prototype.remove.call(this, m);
2181
- }, y.prototype.isReservedId = function(m) {
2182
- return i.isReservedId(this.reserved, m);
2183
- }, y.prototype.isReservedName = function(m) {
2184
- return i.isReservedName(this.reserved, m);
2185
- }, y.prototype.create = function(m) {
2186
- return new this.ctor(m);
2187
- }, y.prototype.setup = function() {
2188
- for (var m = this.fullName, g = [], b = 0; b < /* initializes */
2189
- this.fieldsArray.length; ++b)
2190
- g.push(this._fieldsArray[b].resolve().resolvedType);
2161
+ this._fieldsById[y.id]
2162
+ ) : this.fieldsById[y.id])
2163
+ throw Error("duplicate id " + y.id + " in " + this);
2164
+ if (this.isReservedId(y.id))
2165
+ throw Error("id " + y.id + " is reserved in " + this);
2166
+ if (this.isReservedName(y.name))
2167
+ throw Error("name '" + y.name + "' is reserved in " + this);
2168
+ return y.parent && y.parent.remove(y), this.fields[y.name] = y, y.message = this, y.onAdd(this), b(this);
2169
+ }
2170
+ return y instanceof n ? (this.oneofs || (this.oneofs = {}), this.oneofs[y.name] = y, y.onAdd(this), b(this)) : i.prototype.add.call(this, y);
2171
+ }, m.prototype.remove = function(y) {
2172
+ if (y instanceof u && y.extend === void 0) {
2173
+ if (!this.fields || this.fields[y.name] !== y)
2174
+ throw Error(y + " is not a member of " + this);
2175
+ return delete this.fields[y.name], y.parent = null, y.onRemove(this), b(this);
2176
+ }
2177
+ if (y instanceof n) {
2178
+ if (!this.oneofs || this.oneofs[y.name] !== y)
2179
+ throw Error(y + " is not a member of " + this);
2180
+ return delete this.oneofs[y.name], y.parent = null, y.onRemove(this), b(this);
2181
+ }
2182
+ return i.prototype.remove.call(this, y);
2183
+ }, m.prototype.isReservedId = function(y) {
2184
+ return i.isReservedId(this.reserved, y);
2185
+ }, m.prototype.isReservedName = function(y) {
2186
+ return i.isReservedName(this.reserved, y);
2187
+ }, m.prototype.create = function(y) {
2188
+ return new this.ctor(y);
2189
+ }, m.prototype.setup = function() {
2190
+ for (var y = this.fullName, g = [], _ = 0; _ < /* initializes */
2191
+ this.fieldsArray.length; ++_)
2192
+ g.push(this._fieldsArray[_].resolve().resolvedType);
2191
2193
  this.encode = l(this)({
2192
2194
  Writer: o,
2193
2195
  types: g,
@@ -2206,29 +2208,29 @@ function requireType() {
2206
2208
  types: g,
2207
2209
  util: r
2208
2210
  });
2209
- var R = p[m];
2211
+ var R = p[y];
2210
2212
  if (R) {
2211
2213
  var O = Object.create(this);
2212
2214
  O.fromObject = this.fromObject, this.fromObject = R.fromObject.bind(O), O.toObject = this.toObject, this.toObject = R.toObject.bind(O);
2213
2215
  }
2214
2216
  return this;
2215
- }, y.prototype.encode = function(m, g) {
2216
- return this.setup().encode(m, g);
2217
- }, y.prototype.encodeDelimited = function(m, g) {
2218
- return this.encode(m, g && g.len ? g.fork() : g).ldelim();
2219
- }, y.prototype.decode = function(m, g) {
2220
- return this.setup().decode(m, g);
2221
- }, y.prototype.decodeDelimited = function(m) {
2222
- return m instanceof s || (m = s.create(m)), this.decode(m, m.uint32());
2223
- }, y.prototype.verify = function(m) {
2224
- return this.setup().verify(m);
2225
- }, y.prototype.fromObject = function(m) {
2226
- return this.setup().fromObject(m);
2227
- }, y.prototype.toObject = function(m, g) {
2228
- return this.setup().toObject(m, g);
2229
- }, y.d = function(m) {
2230
- return function(b) {
2231
- r.decorateType(b, m);
2217
+ }, m.prototype.encode = function(y, g) {
2218
+ return this.setup().encode(y, g);
2219
+ }, m.prototype.encodeDelimited = function(y, g) {
2220
+ return this.encode(y, g && g.len ? g.fork() : g).ldelim();
2221
+ }, m.prototype.decode = function(y, g) {
2222
+ return this.setup().decode(y, g);
2223
+ }, m.prototype.decodeDelimited = function(y) {
2224
+ return y instanceof s || (y = s.create(y)), this.decode(y, y.uint32());
2225
+ }, m.prototype.verify = function(y) {
2226
+ return this.setup().verify(y);
2227
+ }, m.prototype.fromObject = function(y) {
2228
+ return this.setup().fromObject(y);
2229
+ }, m.prototype.toObject = function(y, g) {
2230
+ return this.setup().toObject(y, g);
2231
+ }, m.d = function(y) {
2232
+ return function(_) {
2233
+ r.decorateType(_, y);
2232
2234
  };
2233
2235
  }, type;
2234
2236
  }
@@ -2238,27 +2240,27 @@ function requireRoot() {
2238
2240
  hasRequiredRoot = 1, root = o;
2239
2241
  var i = requireNamespace();
2240
2242
  ((o.prototype = Object.create(i.prototype)).constructor = o).className = "Root";
2241
- var e = requireField(), n = require_enum(), f = requireOneof(), u = requireUtil(), a, t, s;
2243
+ var e = requireField(), n = require_enum(), u = requireOneof(), f = requireUtil(), a, t, s;
2242
2244
  function o(h) {
2243
2245
  i.call(this, "", h), this.deferred = [], this.files = [];
2244
2246
  }
2245
2247
  o.fromJSON = function(c, p) {
2246
2248
  return p || (p = new o()), c.options && p.setOptions(c.options), p.addJSON(c.nested);
2247
- }, o.prototype.resolvePath = u.path.resolve, o.prototype.fetch = u.fetch;
2249
+ }, o.prototype.resolvePath = f.path.resolve, o.prototype.fetch = f.fetch;
2248
2250
  function r() {
2249
2251
  }
2250
- o.prototype.load = function h(c, p, y) {
2251
- typeof p == "function" && (y = p, p = void 0);
2252
- var _ = this;
2253
- if (!y)
2254
- return u.asPromise(h, _, c, p);
2255
- var v = y === r;
2256
- function m(q, A) {
2257
- if (y) {
2252
+ o.prototype.load = function h(c, p, m) {
2253
+ typeof p == "function" && (m = p, p = void 0);
2254
+ var b = this;
2255
+ if (!m)
2256
+ return f.asPromise(h, b, c, p);
2257
+ var v = m === r;
2258
+ function y(q, A) {
2259
+ if (m) {
2258
2260
  if (v)
2259
2261
  throw q;
2260
- var x = y;
2261
- y = null, x(q, A);
2262
+ var x = m;
2263
+ m = null, x(q, A);
2262
2264
  }
2263
2265
  }
2264
2266
  function g(q) {
@@ -2269,63 +2271,63 @@ function requireRoot() {
2269
2271
  }
2270
2272
  return null;
2271
2273
  }
2272
- function b(q, A) {
2274
+ function _(q, A) {
2273
2275
  try {
2274
- if (u.isString(A) && A.charAt(0) === "{" && (A = JSON.parse(A)), !u.isString(A))
2275
- _.setOptions(A.options).addJSON(A.nested);
2276
+ if (f.isString(A) && A.charAt(0) === "{" && (A = JSON.parse(A)), !f.isString(A))
2277
+ b.setOptions(A.options).addJSON(A.nested);
2276
2278
  else {
2277
2279
  t.filename = q;
2278
- var x = t(A, _, p), B, E = 0;
2280
+ var x = t(A, b, p), B, E = 0;
2279
2281
  if (x.imports)
2280
2282
  for (; E < x.imports.length; ++E)
2281
- (B = g(x.imports[E]) || _.resolvePath(q, x.imports[E])) && R(B);
2283
+ (B = g(x.imports[E]) || b.resolvePath(q, x.imports[E])) && R(B);
2282
2284
  if (x.weakImports)
2283
2285
  for (E = 0; E < x.weakImports.length; ++E)
2284
- (B = g(x.weakImports[E]) || _.resolvePath(q, x.weakImports[E])) && R(B, !0);
2286
+ (B = g(x.weakImports[E]) || b.resolvePath(q, x.weakImports[E])) && R(B, !0);
2285
2287
  }
2286
2288
  } catch (V) {
2287
- m(V);
2289
+ y(V);
2288
2290
  }
2289
- !v && !O && m(null, _);
2291
+ !v && !O && y(null, b);
2290
2292
  }
2291
2293
  function R(q, A) {
2292
- if (q = g(q) || q, !(_.files.indexOf(q) > -1)) {
2293
- if (_.files.push(q), q in s) {
2294
- v ? b(q, s[q]) : (++O, setTimeout(function() {
2295
- --O, b(q, s[q]);
2294
+ if (q = g(q) || q, !(b.files.indexOf(q) > -1)) {
2295
+ if (b.files.push(q), q in s) {
2296
+ v ? _(q, s[q]) : (++O, setTimeout(function() {
2297
+ --O, _(q, s[q]);
2296
2298
  }));
2297
2299
  return;
2298
2300
  }
2299
2301
  if (v) {
2300
2302
  var x;
2301
2303
  try {
2302
- x = u.fs.readFileSync(q).toString("utf8");
2304
+ x = f.fs.readFileSync(q).toString("utf8");
2303
2305
  } catch (B) {
2304
- A || m(B);
2306
+ A || y(B);
2305
2307
  return;
2306
2308
  }
2307
- b(q, x);
2309
+ _(q, x);
2308
2310
  } else
2309
- ++O, _.fetch(q, function(B, E) {
2310
- if (--O, !!y) {
2311
+ ++O, b.fetch(q, function(B, E) {
2312
+ if (--O, !!m) {
2311
2313
  if (B) {
2312
- A ? O || m(null, _) : m(B);
2314
+ A ? O || y(null, b) : y(B);
2313
2315
  return;
2314
2316
  }
2315
- b(q, E);
2317
+ _(q, E);
2316
2318
  }
2317
2319
  });
2318
2320
  }
2319
2321
  }
2320
2322
  var O = 0;
2321
- u.isString(c) && (c = [c]);
2323
+ f.isString(c) && (c = [c]);
2322
2324
  for (var T = 0, J; T < c.length; ++T)
2323
- (J = _.resolvePath("", c[T])) && R(J);
2325
+ (J = b.resolvePath("", c[T])) && R(J);
2324
2326
  if (v)
2325
- return _;
2326
- O || m(null, _);
2327
+ return b;
2328
+ O || y(null, b);
2327
2329
  }, o.prototype.loadSync = function(c, p) {
2328
- if (!u.isNode)
2330
+ if (!f.isNode)
2329
2331
  throw Error("not supported");
2330
2332
  return this.load(c, p, r);
2331
2333
  }, o.prototype.resolveAll = function() {
@@ -2339,8 +2341,8 @@ function requireRoot() {
2339
2341
  function d(h, c) {
2340
2342
  var p = c.parent.lookup(c.extend);
2341
2343
  if (p) {
2342
- var y = new e(c.fullName, c.id, c.type, c.rule, void 0, c.options);
2343
- return p.get(y.name) || (y.declaringField = c, c.extensionField = y, p.add(y)), !0;
2344
+ var m = new e(c.fullName, c.id, c.type, c.rule, void 0, c.options);
2345
+ return p.get(m.name) || (m.declaringField = c, c.extensionField = m, p.add(m)), !0;
2344
2346
  }
2345
2347
  return !1;
2346
2348
  }
@@ -2351,13 +2353,13 @@ function requireRoot() {
2351
2353
  !c.extensionField && (d(this, c) || this.deferred.push(c));
2352
2354
  else if (c instanceof n)
2353
2355
  l.test(c.name) && (c.parent[c.name] = c.values);
2354
- else if (!(c instanceof f)) {
2356
+ else if (!(c instanceof u)) {
2355
2357
  if (c instanceof a)
2356
2358
  for (var p = 0; p < this.deferred.length; )
2357
2359
  d(this, this.deferred[p]) ? this.deferred.splice(p, 1) : ++p;
2358
- for (var y = 0; y < /* initializes */
2359
- c.nestedArray.length; ++y)
2360
- this._handleAdd(c._nestedArray[y]);
2360
+ for (var m = 0; m < /* initializes */
2361
+ c.nestedArray.length; ++m)
2362
+ this._handleAdd(c._nestedArray[m]);
2361
2363
  l.test(c.name) && (c.parent[c.name] = c);
2362
2364
  }
2363
2365
  }, o.prototype._handleRemove = function(c) {
@@ -2378,9 +2380,9 @@ function requireRoot() {
2378
2380
  } else if (c instanceof n)
2379
2381
  l.test(c.name) && delete c.parent[c.name];
2380
2382
  else if (c instanceof i) {
2381
- for (var y = 0; y < /* initializes */
2382
- c.nestedArray.length; ++y)
2383
- this._handleRemove(c._nestedArray[y]);
2383
+ for (var m = 0; m < /* initializes */
2384
+ c.nestedArray.length; ++m)
2385
+ this._handleRemove(c._nestedArray[m]);
2384
2386
  l.test(c.name) && delete c.parent[c.name];
2385
2387
  }
2386
2388
  }, o._configure = function(h, c, p) {
@@ -2391,7 +2393,7 @@ var hasRequiredUtil;
2391
2393
  function requireUtil() {
2392
2394
  if (hasRequiredUtil) return util$1.exports;
2393
2395
  hasRequiredUtil = 1;
2394
- var i = util$1.exports = requireMinimal(), e = roots, n, f;
2396
+ var i = util$1.exports = requireMinimal(), e = roots, n, u;
2395
2397
  i.codegen = codegen_1, i.fetch = fetch_1, i.path = path, i.fs = i.inquire("fs"), i.toArray = function(r) {
2396
2398
  if (r) {
2397
2399
  for (var l = Object.keys(r), d = new Array(l.length), h = 0; h < l.length; )
@@ -2406,11 +2408,11 @@ function requireUtil() {
2406
2408
  }
2407
2409
  return l;
2408
2410
  };
2409
- var u = /\\/g, a = /"/g;
2411
+ var f = /\\/g, a = /"/g;
2410
2412
  i.isReserved = function(r) {
2411
2413
  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(r);
2412
2414
  }, i.safeProp = function(r) {
2413
- return !/^[$\w_]+$/.test(r) || i.isReserved(r) ? '["' + r.replace(u, "\\\\").replace(a, '\\"') + '"]' : "." + r;
2415
+ return !/^[$\w_]+$/.test(r) || i.isReserved(r) ? '["' + r.replace(f, "\\\\").replace(a, '\\"') + '"]' : "." + r;
2414
2416
  }, i.ucFirst = function(r) {
2415
2417
  return r.charAt(0).toUpperCase() + r.substring(1);
2416
2418
  };
@@ -2432,19 +2434,19 @@ function requireUtil() {
2432
2434
  return i.decorateEnum = function(r) {
2433
2435
  if (r.$type)
2434
2436
  return r.$type;
2435
- f || (f = require_enum());
2436
- var l = new f("Enum" + s++, r);
2437
+ u || (u = require_enum());
2438
+ var l = new u("Enum" + s++, r);
2437
2439
  return i.decorateRoot.add(l), Object.defineProperty(r, "$type", { value: l, enumerable: !1 }), l;
2438
2440
  }, i.setProperty = function(r, l, d) {
2439
- function h(c, p, y) {
2440
- var _ = p.shift();
2441
- if (_ === "__proto__" || _ === "prototype")
2441
+ function h(c, p, m) {
2442
+ var b = p.shift();
2443
+ if (b === "__proto__" || b === "prototype")
2442
2444
  return c;
2443
2445
  if (p.length > 0)
2444
- c[_] = h(c[_] || {}, p, y);
2446
+ c[b] = h(c[b] || {}, p, m);
2445
2447
  else {
2446
- var v = c[_];
2447
- v && (y = [].concat(v).concat(y)), c[_] = y;
2448
+ var v = c[b];
2449
+ v && (m = [].concat(v).concat(m)), c[b] = m;
2448
2450
  }
2449
2451
  return c;
2450
2452
  }
@@ -2464,12 +2466,12 @@ function requireObject() {
2464
2466
  if (hasRequiredObject) return object;
2465
2467
  hasRequiredObject = 1, object = n, n.className = "ReflectionObject";
2466
2468
  var i = requireUtil(), e;
2467
- function n(f, u) {
2468
- if (!i.isString(f))
2469
+ function n(u, f) {
2470
+ if (!i.isString(u))
2469
2471
  throw TypeError("name must be a string");
2470
- if (u && !i.isObject(u))
2472
+ if (f && !i.isObject(f))
2471
2473
  throw TypeError("options must be an object");
2472
- this.options = u, this.parsedOptions = null, this.name = f, this.parent = null, this.resolved = !1, this.comment = null, this.filename = null;
2474
+ this.options = f, this.parsedOptions = null, this.name = u, this.parent = null, this.resolved = !1, this.comment = null, this.filename = null;
2473
2475
  }
2474
2476
  return Object.defineProperties(n.prototype, {
2475
2477
  /**
@@ -2480,9 +2482,9 @@ function requireObject() {
2480
2482
  */
2481
2483
  root: {
2482
2484
  get: function() {
2483
- for (var f = this; f.parent !== null; )
2484
- f = f.parent;
2485
- return f;
2485
+ for (var u = this; u.parent !== null; )
2486
+ u = u.parent;
2487
+ return u;
2486
2488
  }
2487
2489
  },
2488
2490
  /**
@@ -2493,75 +2495,75 @@ function requireObject() {
2493
2495
  */
2494
2496
  fullName: {
2495
2497
  get: function() {
2496
- for (var f = [this.name], u = this.parent; u; )
2497
- f.unshift(u.name), u = u.parent;
2498
- return f.join(".");
2498
+ for (var u = [this.name], f = this.parent; f; )
2499
+ u.unshift(f.name), f = f.parent;
2500
+ return u.join(".");
2499
2501
  }
2500
2502
  }
2501
2503
  }), n.prototype.toJSON = /* istanbul ignore next */
2502
2504
  function() {
2503
2505
  throw Error();
2504
- }, n.prototype.onAdd = function(u) {
2505
- this.parent && this.parent !== u && this.parent.remove(this), this.parent = u, this.resolved = !1;
2506
- var a = u.root;
2506
+ }, n.prototype.onAdd = function(f) {
2507
+ this.parent && this.parent !== f && this.parent.remove(this), this.parent = f, this.resolved = !1;
2508
+ var a = f.root;
2507
2509
  a instanceof e && a._handleAdd(this);
2508
- }, n.prototype.onRemove = function(u) {
2509
- var a = u.root;
2510
+ }, n.prototype.onRemove = function(f) {
2511
+ var a = f.root;
2510
2512
  a instanceof e && a._handleRemove(this), this.parent = null, this.resolved = !1;
2511
2513
  }, n.prototype.resolve = function() {
2512
2514
  return this.resolved ? this : (this.root instanceof e && (this.resolved = !0), this);
2513
- }, n.prototype.getOption = function(u) {
2515
+ }, n.prototype.getOption = function(f) {
2514
2516
  if (this.options)
2515
- return this.options[u];
2516
- }, n.prototype.setOption = function(u, a, t) {
2517
- return (!t || !this.options || this.options[u] === void 0) && ((this.options || (this.options = {}))[u] = a), this;
2518
- }, n.prototype.setParsedOption = function(u, a, t) {
2517
+ return this.options[f];
2518
+ }, n.prototype.setOption = function(f, a, t) {
2519
+ return (!t || !this.options || this.options[f] === void 0) && ((this.options || (this.options = {}))[f] = a), this;
2520
+ }, n.prototype.setParsedOption = function(f, a, t) {
2519
2521
  this.parsedOptions || (this.parsedOptions = []);
2520
2522
  var s = this.parsedOptions;
2521
2523
  if (t) {
2522
2524
  var o = s.find(function(d) {
2523
- return Object.prototype.hasOwnProperty.call(d, u);
2525
+ return Object.prototype.hasOwnProperty.call(d, f);
2524
2526
  });
2525
2527
  if (o) {
2526
- var r = o[u];
2528
+ var r = o[f];
2527
2529
  i.setProperty(r, t, a);
2528
2530
  } else
2529
- o = {}, o[u] = i.setProperty({}, t, a), s.push(o);
2531
+ o = {}, o[f] = i.setProperty({}, t, a), s.push(o);
2530
2532
  } else {
2531
2533
  var l = {};
2532
- l[u] = a, s.push(l);
2534
+ l[f] = a, s.push(l);
2533
2535
  }
2534
2536
  return this;
2535
- }, n.prototype.setOptions = function(u, a) {
2536
- if (u)
2537
- for (var t = Object.keys(u), s = 0; s < t.length; ++s)
2538
- this.setOption(t[s], u[t[s]], a);
2537
+ }, n.prototype.setOptions = function(f, a) {
2538
+ if (f)
2539
+ for (var t = Object.keys(f), s = 0; s < t.length; ++s)
2540
+ this.setOption(t[s], f[t[s]], a);
2539
2541
  return this;
2540
2542
  }, n.prototype.toString = function() {
2541
- var u = this.constructor.className, a = this.fullName;
2542
- return a.length ? u + " " + a : u;
2543
- }, n._configure = function(f) {
2544
- e = f;
2543
+ var f = this.constructor.className, a = this.fullName;
2544
+ return a.length ? f + " " + a : f;
2545
+ }, n._configure = function(u) {
2546
+ e = u;
2545
2547
  }, object;
2546
2548
  }
2547
2549
  var _enum, hasRequired_enum;
2548
2550
  function require_enum() {
2549
2551
  if (hasRequired_enum) return _enum;
2550
- hasRequired_enum = 1, _enum = f;
2552
+ hasRequired_enum = 1, _enum = u;
2551
2553
  var i = requireObject();
2552
- ((f.prototype = Object.create(i.prototype)).constructor = f).className = "Enum";
2554
+ ((u.prototype = Object.create(i.prototype)).constructor = u).className = "Enum";
2553
2555
  var e = requireNamespace(), n = requireUtil();
2554
- function f(u, a, t, s, o, r) {
2555
- if (i.call(this, u, t), a && typeof a != "object")
2556
+ function u(f, a, t, s, o, r) {
2557
+ if (i.call(this, f, t), a && typeof a != "object")
2556
2558
  throw TypeError("values must be an object");
2557
2559
  if (this.valuesById = {}, this.values = Object.create(this.valuesById), this.comment = s, this.comments = o || {}, this.valuesOptions = r, this.reserved = void 0, a)
2558
2560
  for (var l = Object.keys(a), d = 0; d < l.length; ++d)
2559
2561
  typeof a[l[d]] == "number" && (this.valuesById[this.values[l[d]] = a[l[d]]] = l[d]);
2560
2562
  }
2561
- return f.fromJSON = function(a, t) {
2562
- var s = new f(a, t.values, t.options, t.comment, t.comments);
2563
+ return u.fromJSON = function(a, t) {
2564
+ var s = new u(a, t.values, t.options, t.comment, t.comments);
2563
2565
  return s.reserved = t.reserved, s;
2564
- }, f.prototype.toJSON = function(a) {
2566
+ }, u.prototype.toJSON = function(a) {
2565
2567
  var t = a ? !!a.keepComments : !1;
2566
2568
  return n.toObject([
2567
2569
  "options",
@@ -2577,7 +2579,7 @@ function require_enum() {
2577
2579
  "comments",
2578
2580
  t ? this.comments : void 0
2579
2581
  ]);
2580
- }, f.prototype.add = function(a, t, s, o) {
2582
+ }, u.prototype.add = function(a, t, s, o) {
2581
2583
  if (!n.isString(a))
2582
2584
  throw TypeError("name must be a string");
2583
2585
  if (!n.isInteger(t))
@@ -2595,34 +2597,34 @@ function require_enum() {
2595
2597
  } else
2596
2598
  this.valuesById[this.values[a] = t] = a;
2597
2599
  return o && (this.valuesOptions === void 0 && (this.valuesOptions = {}), this.valuesOptions[a] = o || null), this.comments[a] = s || null, this;
2598
- }, f.prototype.remove = function(a) {
2600
+ }, u.prototype.remove = function(a) {
2599
2601
  if (!n.isString(a))
2600
2602
  throw TypeError("name must be a string");
2601
2603
  var t = this.values[a];
2602
2604
  if (t == null)
2603
2605
  throw Error("name '" + a + "' does not exist in " + this);
2604
2606
  return delete this.valuesById[t], delete this.values[a], delete this.comments[a], this.valuesOptions && delete this.valuesOptions[a], this;
2605
- }, f.prototype.isReservedId = function(a) {
2607
+ }, u.prototype.isReservedId = function(a) {
2606
2608
  return e.isReservedId(this.reserved, a);
2607
- }, f.prototype.isReservedName = function(a) {
2609
+ }, u.prototype.isReservedName = function(a) {
2608
2610
  return e.isReservedName(this.reserved, a);
2609
2611
  }, _enum;
2610
2612
  }
2611
2613
  var encoder_1, hasRequiredEncoder;
2612
2614
  function requireEncoder() {
2613
2615
  if (hasRequiredEncoder) return encoder_1;
2614
- hasRequiredEncoder = 1, encoder_1 = u;
2616
+ hasRequiredEncoder = 1, encoder_1 = f;
2615
2617
  var i = require_enum(), e = requireTypes(), n = requireUtil();
2616
- function f(a, t, s, o) {
2618
+ function u(a, t, s, o) {
2617
2619
  return t.resolvedType.group ? a("types[%i].encode(%s,w.uint32(%i)).uint32(%i)", s, o, (t.id << 3 | 3) >>> 0, (t.id << 3 | 4) >>> 0) : a("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()", s, o, (t.id << 3 | 2) >>> 0);
2618
2620
  }
2619
- function u(a) {
2621
+ function f(a) {
2620
2622
  for (var t = n.codegen(["m", "w"], a.name + "$encode")("if(!w)")("w=Writer.create()"), s, o, r = (
2621
2623
  /* initializes */
2622
2624
  a.fieldsArray.slice().sort(n.compareFieldsById)
2623
2625
  ), s = 0; s < r.length; ++s) {
2624
2626
  var l = r[s].resolve(), d = a._fieldsArray.indexOf(l), h = l.resolvedType instanceof i ? "int32" : l.type, c = e.basic[h];
2625
- o = "m" + n.safeProp(l.name), l.map ? (t("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){", o, l.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){", o)("w.uint32(%i).fork().uint32(%i).%s(ks[i])", (l.id << 3 | 2) >>> 0, 8 | e.mapKey[l.keyType], l.keyType), c === void 0 ? t("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()", d, o) : t(".uint32(%i).%s(%s[ks[i]]).ldelim()", 16 | c, h, o), t("}")("}")) : l.repeated ? (t("if(%s!=null&&%s.length){", o, o), l.packed && e.packed[h] !== void 0 ? t("w.uint32(%i).fork()", (l.id << 3 | 2) >>> 0)("for(var i=0;i<%s.length;++i)", o)("w.%s(%s[i])", h, o)("w.ldelim()") : (t("for(var i=0;i<%s.length;++i)", o), c === void 0 ? f(t, l, d, o + "[i]") : t("w.uint32(%i).%s(%s[i])", (l.id << 3 | c) >>> 0, h, o)), t("}")) : (l.optional && t("if(%s!=null&&Object.hasOwnProperty.call(m,%j))", o, l.name), c === void 0 ? f(t, l, d, o) : t("w.uint32(%i).%s(%s)", (l.id << 3 | c) >>> 0, h, o));
2627
+ o = "m" + n.safeProp(l.name), l.map ? (t("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){", o, l.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){", o)("w.uint32(%i).fork().uint32(%i).%s(ks[i])", (l.id << 3 | 2) >>> 0, 8 | e.mapKey[l.keyType], l.keyType), c === void 0 ? t("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()", d, o) : t(".uint32(%i).%s(%s[ks[i]]).ldelim()", 16 | c, h, o), t("}")("}")) : l.repeated ? (t("if(%s!=null&&%s.length){", o, o), l.packed && e.packed[h] !== void 0 ? t("w.uint32(%i).fork()", (l.id << 3 | 2) >>> 0)("for(var i=0;i<%s.length;++i)", o)("w.%s(%s[i])", h, o)("w.ldelim()") : (t("for(var i=0;i<%s.length;++i)", o), c === void 0 ? u(t, l, d, o + "[i]") : t("w.uint32(%i).%s(%s[i])", (l.id << 3 | c) >>> 0, h, o)), t("}")) : (l.optional && t("if(%s!=null&&Object.hasOwnProperty.call(m,%j))", o, l.name), c === void 0 ? u(t, l, d, o) : t("w.uint32(%i).%s(%s)", (l.id << 3 | c) >>> 0, h, o));
2626
2628
  }
2627
2629
  return t("return w");
2628
2630
  }
@@ -2664,41 +2666,32 @@ var indexLightExports = indexLight.exports, light = indexLightExports;
2664
2666
  const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data = { options: { syntax: "proto3", optimize_for: "LITE_RUNTIME" }, nested: { nil: { nested: { xit: { nested: { proto: { nested: { MessageType: { values: { MessageType_FrameRequest: 0, MessageType_FrameResponse: 1, MessageType_FrameCache: 2, MessageType_FrameLoaded: 3, MessageType_FrameSubscribe: 4, MessageType_FrameUnsubscribe: 5, MessageType_ValueRequest: 6, MessageType_ValueResponse: 7, MessageType_ValueUpdate: 8, MessageType_SignalRequest: 9, MessageType_SignalResponse: 10, MessageType_SignalNotify: 11, MessageType_FileRequest: 12, MessageType_FileResponse: 13 } }, FrameRequest: { fields: { id: { type: "string", id: 1 } } }, FrameResponse: { oneofs: { value: { oneof: ["file", "content"] } }, fields: { id: { type: "string", id: 1 }, file: { type: "string", id: 2 }, content: { type: "string", id: 3 } } }, FrameCache: { fields: { id: { type: "string", id: 1 }, content: { type: "string", id: 2 }, files: { rule: "repeated", type: "FileInfo", id: 3 } } }, FrameLoaded: { oneofs: { _tag: { oneof: ["tag"] } }, fields: { id: { type: "string", id: 1 }, tag: { type: "string", id: 2, options: { proto3_optional: !0 } } } }, FrameSubscribe: { oneofs: { _tag: { oneof: ["tag"] } }, fields: { id: { type: "string", id: 1 }, tag: { type: "string", id: 2, options: { proto3_optional: !0 } } } }, FrameUnsubscribe: { oneofs: { _tag: { oneof: ["tag"] } }, fields: { id: { type: "string", id: 1 }, tag: { type: "string", id: 2, options: { proto3_optional: !0 } } } }, Value: { oneofs: { value: { oneof: ["value_boolean", "value_number", "value_double", "value_string", "value_buffer"] } }, fields: { id: { type: "string", id: 1 }, value_boolean: { type: "bool", id: 2 }, value_number: { type: "int64", id: 3 }, value_double: { type: "double", id: 4 }, value_string: { type: "string", id: 5 }, value_buffer: { type: "bytes", id: 6 } } }, ValueRequest: { oneofs: { _tag: { oneof: ["tag"] } }, fields: { id: { type: "string", id: 1 }, tag: { type: "string", id: 2, options: { proto3_optional: !0 } } } }, ValueResponse: { oneofs: { _tag: { oneof: ["tag"] } }, fields: { id: { type: "string", id: 1 }, tag: { type: "string", id: 2, options: { proto3_optional: !0 } }, values: { rule: "repeated", type: "Value", id: 3 } } }, ValueUpdate: { oneofs: { _tag: { oneof: ["tag"] } }, fields: { id: { type: "string", id: 1 }, tag: { type: "string", id: 2, options: { proto3_optional: !0 } }, value: { type: "Value", id: 3 } } }, SignalRequest: { fields: { id: { type: "string", id: 1 } } }, Signal: { oneofs: { _type: { oneof: ["type"] } }, fields: { id: { type: "string", id: 1 }, type: { type: "string", id: 2, options: { proto3_optional: !0 } } } }, SignalResponse: { oneofs: { _tag: { oneof: ["tag"] } }, fields: { id: { type: "string", id: 1 }, tag: { type: "string", id: 2, options: { proto3_optional: !0 } }, signals: { rule: "repeated", type: "Signal", id: 3 } } }, SignalNotify: { oneofs: { _tag: { oneof: ["tag"] }, arg: { oneof: ["arg_boolean", "arg_number", "arg_double", "arg_string", "arg_buffer"] } }, fields: { frame_id: { type: "string", id: 1 }, tag: { type: "string", id: 2, options: { proto3_optional: !0 } }, signal_id: { type: "string", id: 3 }, arg_boolean: { type: "bool", id: 4 }, arg_number: { type: "int64", id: 5 }, arg_double: { type: "double", id: 6 }, arg_string: { type: "string", id: 7 }, arg_buffer: { type: "bytes", id: 8 } } }, FileRequest: { fields: { target: { type: "string", id: 1 } } }, FileResponse: { fields: { target: { type: "string", id: 1 }, content: { type: "string", id: 2 }, metadata: { type: "bytes", id: 3 } } }, FileInfo: { fields: { target: { type: "string", id: 1 }, metadata: { type: "bytes", id: 2 } } } } } } } } } } }, nil_xit_proto = protobufjs.Root.fromJSON(proto_data).lookup(
2665
2667
  "nil.xit.proto"
2666
2668
  ), bundle = async (i) => new Promise((e, n) => {
2667
- const f = new WorkerWrapper();
2668
- f.postMessage({ type: "init", host: i.host, id: i.id, cdn_url: i.cdn_url }), f.addEventListener("message", async (u) => {
2669
- if (u.data.ok) {
2670
- if (u.data.files) {
2671
- const a = concat([
2672
- header(nil_xit_proto.MessageType.MessageType_FrameCache),
2673
- nil_xit_proto.FrameCache.encode({
2674
- id: i.id,
2675
- content: u.data.code,
2676
- files: u.data.files
2677
- }).finish()
2678
- ]);
2679
- service_publish({ host: i.host }, a);
2680
- }
2681
- e(await import(
2682
- /* @vite-ignore */
2683
- u.data.code
2684
- ));
2685
- } else
2686
- n(u.data.err);
2687
- f.terminate();
2669
+ const u = new WorkerWrapper();
2670
+ u.postMessage({ type: "init", host: i.host, id: i.id, cdn_url: i.cdn_url }), u.addEventListener("message", async (f) => {
2671
+ f.data.ok ? (f.data.files && service_publish(
2672
+ i.host,
2673
+ nil_xit_proto.MessageType.MessageType_FrameCache,
2674
+ nil_xit_proto.FrameCache.encode({
2675
+ id: i.id,
2676
+ content: f.data.code,
2677
+ files: f.data.files
2678
+ }).finish()
2679
+ ), e(await import(
2680
+ /* @vite-ignore */
2681
+ f.data.code
2682
+ ))) : n(f.data.err), u.terminate();
2688
2683
  });
2689
2684
  }), noop = (i) => {
2690
2685
  }, make_values = async ({
2691
2686
  id: i,
2692
2687
  tag: e,
2693
2688
  host: n,
2694
- service: f
2689
+ service: u
2695
2690
  }) => {
2696
- const u = await service_fetch(
2697
- { host: n },
2698
- concat([
2699
- header(nil_xit_proto.MessageType.MessageType_ValueRequest),
2700
- nil_xit_proto.ValueRequest.encode({ id: i, tag: e }).finish()
2701
- ]),
2691
+ const f = await service_fetch(
2692
+ n,
2693
+ nil_xit_proto.MessageType.MessageType_ValueRequest,
2694
+ nil_xit_proto.ValueRequest.encode({ id: i, tag: e }).finish(),
2702
2695
  (s, o) => {
2703
2696
  if (s === nil_xit_proto.MessageType.MessageType_ValueResponse) {
2704
2697
  const r = nil_xit_proto.ValueResponse.decode(o);
@@ -2714,13 +2707,13 @@ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data =
2714
2707
  value_buffer: /* @__PURE__ */ new Map()
2715
2708
  };
2716
2709
  let t = !1;
2717
- for (const s of u) {
2710
+ for (const s of f) {
2718
2711
  const o = s.id, r = s.value, l = writable(s[r]);
2719
2712
  l.subscribe((d) => {
2720
2713
  if (t)
2721
2714
  return;
2722
2715
  const h = { id: o, [r]: d, value: r }, c = { id: i, tag: e, value: h };
2723
- f.publish(
2716
+ u.publish(
2724
2717
  concat([
2725
2718
  header(nil_xit_proto.MessageType.MessageType_ValueUpdate),
2726
2719
  nil_xit_proto.ValueUpdate.encode(c).finish()
@@ -2728,7 +2721,7 @@ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data =
2728
2721
  );
2729
2722
  }), a[r].set(o, l);
2730
2723
  }
2731
- return f.on_message((s, o) => {
2724
+ return u.on_message((s, o) => {
2732
2725
  var d;
2733
2726
  const r = new DataView(o.buffer).getUint32(0, !1), l = o.slice(4);
2734
2727
  if (r === nil_xit_proto.MessageType.MessageType_ValueUpdate) {
@@ -2737,19 +2730,19 @@ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data =
2737
2730
  t = !0;
2738
2731
  const c = h.value.value, p = (d = a[c]) == null ? void 0 : d.get(h.value.id);
2739
2732
  if (c === "value_buffer") {
2740
- const y = h.value[c], _ = get(p);
2733
+ const m = h.value[c], b = get(p);
2741
2734
  let v = !0;
2742
- if (y.length != _.length)
2735
+ if (m.length != b.length)
2743
2736
  v = !1;
2744
2737
  else {
2745
- const m = y.length;
2746
- for (let g = 0; g < m; g++)
2747
- if (y[g] !== _[g]) {
2738
+ const y = m.length;
2739
+ for (let g = 0; g < y; g++)
2740
+ if (m[g] !== b[g]) {
2748
2741
  v = !1;
2749
2742
  break;
2750
2743
  }
2751
2744
  }
2752
- v || p == null || p.set(y);
2745
+ v || p == null || p.set(m);
2753
2746
  } else
2754
2747
  p == null || p.set(h.value[c]);
2755
2748
  t = !1;
@@ -2760,14 +2753,12 @@ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data =
2760
2753
  id: i,
2761
2754
  tag: e,
2762
2755
  host: n,
2763
- service: f
2756
+ service: u
2764
2757
  }) => {
2765
- const u = await service_fetch(
2766
- { host: n },
2767
- concat([
2768
- header(nil_xit_proto.MessageType.MessageType_SignalRequest),
2769
- nil_xit_proto.SignalRequest.encode({ id: i }).finish()
2770
- ]),
2758
+ const f = await service_fetch(
2759
+ n,
2760
+ nil_xit_proto.MessageType.MessageType_SignalRequest,
2761
+ nil_xit_proto.SignalRequest.encode({ id: i }).finish(),
2771
2762
  (t, s) => {
2772
2763
  if (t === nil_xit_proto.MessageType.MessageType_SignalResponse) {
2773
2764
  const o = nil_xit_proto.SignalResponse.decode(s);
@@ -2783,10 +2774,10 @@ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data =
2783
2774
  arg_string: /* @__PURE__ */ new Map(),
2784
2775
  arg_buffer: /* @__PURE__ */ new Map()
2785
2776
  };
2786
- for (const { id: t, type: s } of u)
2777
+ for (const { id: t, type: s } of f)
2787
2778
  s == null ? a.arg_none.set(t, () => {
2788
2779
  const o = { frame_id: i, signal_id: t, tag: e };
2789
- f.publish(
2780
+ u.publish(
2790
2781
  concat([
2791
2782
  header(nil_xit_proto.MessageType.MessageType_SignalNotify),
2792
2783
  nil_xit_proto.SignalNotify.encode(o).finish()
@@ -2794,7 +2785,7 @@ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data =
2794
2785
  );
2795
2786
  }) : a[s].set(t, (o) => {
2796
2787
  const r = { frame_id: i, signal_id: t, tag: e, [s]: o };
2797
- f.publish(
2788
+ u.publish(
2798
2789
  concat([
2799
2790
  header(nil_xit_proto.MessageType.MessageType_SignalNotify),
2800
2791
  nil_xit_proto.SignalNotify.encode(r).finish()
@@ -2808,19 +2799,19 @@ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data =
2808
2799
  string: (e, n) => i.value_string.get(e) ?? writable(n),
2809
2800
  number: (e, n) => i.value_number.get(e) ?? writable(n),
2810
2801
  buffer: (e, n) => i.value_buffer.get(e) ?? writable(n),
2811
- json: (e, n, f) => {
2812
- const u = i.value_buffer.get(e);
2813
- if (u != null) {
2814
- let a = get(u), t = f.decode(a);
2802
+ json: (e, n, u) => {
2803
+ const f = i.value_buffer.get(e);
2804
+ if (f != null) {
2805
+ let a = get(f), t = u.decode(a);
2815
2806
  return {
2816
2807
  set: (s) => {
2817
- t = s, a = f.encode(t), u.set(a);
2808
+ t = s, a = u.encode(t), f.set(a);
2818
2809
  },
2819
- subscribe: (s) => u.subscribe((o) => {
2820
- o !== a && (a = o, t = f.decode(a)), s(t);
2810
+ subscribe: (s) => f.subscribe((o) => {
2811
+ o !== a && (a = o, t = u.decode(a)), s(t);
2821
2812
  }),
2822
2813
  update: (s) => {
2823
- u.update((o) => (t = s(t), a = f.encode(t), a));
2814
+ f.update((o) => (t = s(t), a = u.encode(t), a));
2824
2815
  }
2825
2816
  };
2826
2817
  }
@@ -2835,97 +2826,93 @@ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data =
2835
2826
  string: (e) => i.arg_string.get(e) ?? noop,
2836
2827
  buffer: (e) => i.arg_buffer.get(e) ?? noop,
2837
2828
  json: (e, n) => {
2838
- const f = i.arg_buffer.get(e);
2839
- return f != null ? (u) => f(n(u)) : noop;
2829
+ const u = i.arg_buffer.get(e);
2830
+ return u != null ? (f) => u(n(f)) : noop;
2840
2831
  }
2841
- }), create_component$1 = async (i, e, n, f, u, a) => {
2842
- const t = { host: i };
2843
- await test_connection(t);
2844
- const s = new Service$1(t), [o, r, { nil_xit_fn: l }] = await Promise.all([
2845
- make_values({ id: e, tag: n, host: i, service: s }),
2846
- make_signals({ id: e, tag: n, host: i, service: s }),
2847
- bundle({ host: i, cdn_url: f, id: e })
2848
- ]), d = {
2849
- svelte: () => import("./svelte/index.js").then((y) => y.bW),
2850
- "svelte/store": () => import("./svelte/store.js").then((y) => y.i),
2832
+ }), create_component$1 = async (i, e, n, u, f, a) => {
2833
+ await test_connection(i);
2834
+ const t = new Service$1(i), [s, o, { nil_xit_fn: r }] = await Promise.all([
2835
+ make_values({ id: e, tag: n, host: i, service: t }),
2836
+ make_signals({ id: e, tag: n, host: i, service: t }),
2837
+ bundle({ host: i, cdn_url: u, id: e })
2838
+ ]), l = {
2839
+ svelte: () => import("./svelte/index.js").then((c) => c.bW),
2840
+ "svelte/store": () => import("./svelte/store.js").then((c) => c.i),
2851
2841
  "svelte/animate": () => import("./svelte/animate.js"),
2852
2842
  "svelte/easing": () => import("./svelte/easing.js"),
2853
2843
  "svelte/events": () => import("./svelte/events.js"),
2854
- "svelte/motion": () => import("./svelte/motion.js").then((y) => y.i),
2844
+ "svelte/motion": () => import("./svelte/motion.js").then((c) => c.i),
2855
2845
  "svelte/transition": () => import("./svelte/transition.js"),
2856
2846
  // @ts-ignore
2857
2847
  "svelte/internal/disclose-version": () => import("./svelte/internal/disclose-version.js"),
2858
2848
  // @ts-ignore
2859
2849
  "svelte/internal/client": () => import("./svelte/internal/client.js")
2860
- }, h = (y) => y in d ? d[y]() : import(
2850
+ }, d = (c) => c in l ? l[c]() : import(
2861
2851
  /* @vite-ignore */
2862
- y
2863
- ), { action: c } = await l(h);
2864
- s.on_connect(() => {
2865
- const y = concat([
2866
- header(nil_xit_proto.MessageType.MessageType_FrameSubscribe),
2867
- nil_xit_proto.FrameLoaded.encode({ id: e, tag: n }).finish()
2868
- ]);
2869
- s.publish(y);
2870
- }), s.start();
2871
- const p = concat([
2872
- header(nil_xit_proto.MessageType.MessageType_FrameLoaded),
2852
+ c
2853
+ ), { action: h } = await r(d);
2854
+ return t.on_connect(() => {
2855
+ t.publish(
2856
+ concat([
2857
+ header(nil_xit_proto.MessageType.MessageType_FrameSubscribe),
2858
+ nil_xit_proto.FrameLoaded.encode({ id: e, tag: n }).finish()
2859
+ ])
2860
+ );
2861
+ }), t.start(), service_publish(
2862
+ i,
2863
+ nil_xit_proto.MessageType.MessageType_FrameLoaded,
2873
2864
  nil_xit_proto.FrameLoaded.encode({ id: e, tag: n }).finish()
2874
- ]);
2875
- return service_publish(t, p), (y) => {
2876
- const _ = /* @__PURE__ */ new Map();
2877
- _.set("nil.xit", {
2878
- values: create_context_values(o),
2879
- signals: create_context_signals(r),
2880
- frame_ui: u,
2865
+ ), (c) => {
2866
+ const p = /* @__PURE__ */ new Map();
2867
+ p.set("nil.xit", {
2868
+ values: create_context_values(s),
2869
+ signals: create_context_signals(o),
2870
+ frame_ui: f,
2881
2871
  frame: a,
2882
- resub: () => s.start(),
2883
- unsub: () => s.stop()
2872
+ resub: () => t.start(),
2873
+ unsub: () => t.stop()
2884
2874
  });
2885
- const { destroy: v } = c(y, _);
2875
+ const { destroy: m } = h(c, p);
2886
2876
  return {
2887
2877
  destroy: () => {
2888
- s.stop(), v();
2878
+ t.stop(), m();
2889
2879
  }
2890
2880
  };
2891
2881
  };
2892
2882
  }, create_frame = async ({
2893
- server: i,
2883
+ host: i,
2894
2884
  frame: e,
2895
2885
  tag: n
2896
2886
  }) => {
2897
- const f = { host: i };
2898
- await test_connection(f);
2899
- const u = new Service$1(f), [a, t] = await Promise.all([
2887
+ const u = new Service$1(i), [f, a] = await Promise.all([
2900
2888
  make_values({ id: e, tag: n ?? null, host: i, service: u }),
2901
2889
  make_signals({ id: e, tag: n ?? null, host: i, service: u })
2902
2890
  ]);
2903
- u.on_connect(() => {
2904
- const o = concat([
2891
+ return u.on_connect(() => {
2892
+ const t = concat([
2905
2893
  header(nil_xit_proto.MessageType.MessageType_FrameSubscribe),
2906
2894
  nil_xit_proto.FrameLoaded.encode({ id: e, tag: n ?? null }).finish()
2907
2895
  ]);
2908
- u.publish(o);
2909
- }), u.start();
2910
- const s = concat([
2911
- header(nil_xit_proto.MessageType.MessageType_FrameLoaded),
2896
+ u.publish(t);
2897
+ }), u.start(), service_publish(
2898
+ i,
2899
+ nil_xit_proto.MessageType.MessageType_FrameLoaded,
2912
2900
  nil_xit_proto.FrameLoaded.encode({ id: e, tag: n ?? null }).finish()
2913
- ]);
2914
- return service_publish(f, s), {
2915
- values: create_context_values(a),
2916
- signals: create_context_signals(t),
2901
+ ), {
2902
+ values: create_context_values(f),
2903
+ signals: create_context_signals(a),
2917
2904
  resub: () => u.start(),
2918
2905
  unsub: () => u.stop()
2919
2906
  };
2920
2907
  }, create_frame_ui = async ({
2921
- server: i,
2908
+ host: i,
2922
2909
  cdn_url: e,
2923
2910
  frame: n,
2924
- tag: f
2911
+ tag: u
2925
2912
  }) => {
2926
- const u = async (a, t) => {
2913
+ const f = async (a, t) => {
2927
2914
  const s = await create_frame_ui({
2928
- server: i,
2915
+ host: i,
2929
2916
  cdn_url: e,
2930
2917
  frame: a,
2931
2918
  tag: t
@@ -2935,10 +2922,10 @@ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data =
2935
2922
  return create_component$1(
2936
2923
  i,
2937
2924
  n,
2938
- f ?? null,
2925
+ u ?? null,
2939
2926
  e,
2940
- async (a, t) => u(a, t),
2941
- async (a, t) => create_frame({ server: i, frame: a, tag: t })
2927
+ async (a, t) => f(a, t),
2928
+ async (a, t) => create_frame({ host: i, frame: a, tag: t })
2942
2929
  );
2943
2930
  }, create_component = async (i, e) => (await create_frame_ui(e))(i);
2944
2931
  export {