@nil-/xit 0.1.7 → 0.1.9

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
@@ -82,8 +82,8 @@ const header = (i) => {
82
82
  const u = new Service$1(i), t = setTimeout(() => {
83
83
  u.stop(), f("timed out, cancelled");
84
84
  }, 2500);
85
- u.on_connect(() => u.publish(e)), u.on_message((o, s) => {
86
- const r = new DataView(s.buffer).getUint32(0, !1), l = s.slice(4), d = n(r, l);
85
+ u.on_connect(() => u.publish(e)), u.on_message((s, o) => {
86
+ const r = new DataView(o.buffer).getUint32(0, !1), l = o.slice(4), d = n(r, l);
87
87
  d != null && (clearTimeout(t), u.stop(), a(d));
88
88
  }), u.start();
89
89
  }), service_publish = (i, e) => {
@@ -110,83 +110,83 @@ var indexLight = { exports: {} }, indexMinimal = {}, minimal = {}, aspromise = a
110
110
  function asPromise$1(i, e) {
111
111
  for (var n = new Array(arguments.length - 1), a = 0, f = 2, u = !0; f < arguments.length; )
112
112
  n[a++] = arguments[f++];
113
- return new Promise(function(o, s) {
113
+ return new Promise(function(s, o) {
114
114
  n[a] = function(l) {
115
115
  if (u)
116
116
  if (u = !1, l)
117
- s(l);
117
+ o(l);
118
118
  else {
119
- for (var d = new Array(arguments.length - 1), h = 0; h < d.length; )
120
- d[h++] = arguments[h];
121
- o.apply(null, d);
119
+ for (var d = new Array(arguments.length - 1), c = 0; c < d.length; )
120
+ d[c++] = arguments[c];
121
+ s.apply(null, d);
122
122
  }
123
123
  };
124
124
  try {
125
125
  i.apply(e || null, n);
126
126
  } catch (r) {
127
- u && (u = !1, s(r));
127
+ u && (u = !1, o(r));
128
128
  }
129
129
  });
130
130
  }
131
131
  var base64$1 = {};
132
132
  (function(i) {
133
133
  var e = i;
134
- e.length = function(o) {
135
- var s = o.length;
136
- if (!s)
134
+ e.length = function(s) {
135
+ var o = s.length;
136
+ if (!o)
137
137
  return 0;
138
- for (var r = 0; --s % 4 > 1 && o.charAt(s) === "="; )
138
+ for (var r = 0; --o % 4 > 1 && s.charAt(o) === "="; )
139
139
  ++r;
140
- return Math.ceil(o.length * 3) / 4 - r;
140
+ return Math.ceil(s.length * 3) / 4 - r;
141
141
  };
142
142
  for (var n = new Array(64), a = new Array(123), f = 0; f < 64; )
143
143
  a[n[f] = f < 26 ? f + 65 : f < 52 ? f + 71 : f < 62 ? f - 4 : f - 59 | 43] = f++;
144
- e.encode = function(o, s, r) {
145
- for (var l = null, d = [], h = 0, c = 0, y; s < r; ) {
146
- var m = o[s++];
147
- switch (c) {
144
+ e.encode = function(s, o, r) {
145
+ for (var l = null, d = [], c = 0, h = 0, y; o < r; ) {
146
+ var m = s[o++];
147
+ switch (h) {
148
148
  case 0:
149
- d[h++] = n[m >> 2], y = (m & 3) << 4, c = 1;
149
+ d[c++] = n[m >> 2], y = (m & 3) << 4, h = 1;
150
150
  break;
151
151
  case 1:
152
- d[h++] = n[y | m >> 4], y = (m & 15) << 2, c = 2;
152
+ d[c++] = n[y | m >> 4], y = (m & 15) << 2, h = 2;
153
153
  break;
154
154
  case 2:
155
- d[h++] = n[y | m >> 6], d[h++] = n[m & 63], c = 0;
155
+ d[c++] = n[y | m >> 6], d[c++] = n[m & 63], h = 0;
156
156
  break;
157
157
  }
158
- h > 8191 && ((l || (l = [])).push(String.fromCharCode.apply(String, d)), h = 0);
158
+ c > 8191 && ((l || (l = [])).push(String.fromCharCode.apply(String, d)), c = 0);
159
159
  }
160
- return c && (d[h++] = n[y], d[h++] = 61, c === 1 && (d[h++] = 61)), l ? (h && l.push(String.fromCharCode.apply(String, d.slice(0, h))), l.join("")) : String.fromCharCode.apply(String, d.slice(0, h));
160
+ return h && (d[c++] = n[y], d[c++] = 61, h === 1 && (d[c++] = 61)), l ? (c && l.push(String.fromCharCode.apply(String, d.slice(0, c))), l.join("")) : String.fromCharCode.apply(String, d.slice(0, c));
161
161
  };
162
162
  var u = "invalid encoding";
163
- e.decode = function(o, s, r) {
164
- for (var l = r, d = 0, h, c = 0; c < o.length; ) {
165
- var y = o.charCodeAt(c++);
163
+ e.decode = function(s, o, r) {
164
+ for (var l = r, d = 0, c, h = 0; h < s.length; ) {
165
+ var y = s.charCodeAt(h++);
166
166
  if (y === 61 && d > 1)
167
167
  break;
168
168
  if ((y = a[y]) === void 0)
169
169
  throw Error(u);
170
170
  switch (d) {
171
171
  case 0:
172
- h = y, d = 1;
172
+ c = y, d = 1;
173
173
  break;
174
174
  case 1:
175
- s[r++] = h << 2 | (y & 48) >> 4, h = y, d = 2;
175
+ o[r++] = c << 2 | (y & 48) >> 4, c = y, d = 2;
176
176
  break;
177
177
  case 2:
178
- s[r++] = (h & 15) << 4 | (y & 60) >> 2, h = y, d = 3;
178
+ o[r++] = (c & 15) << 4 | (y & 60) >> 2, c = y, d = 3;
179
179
  break;
180
180
  case 3:
181
- s[r++] = (h & 3) << 6 | y, d = 0;
181
+ o[r++] = (c & 3) << 6 | y, d = 0;
182
182
  break;
183
183
  }
184
184
  }
185
185
  if (d === 1)
186
186
  throw Error(u);
187
187
  return r - l;
188
- }, e.test = function(o) {
189
- return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(o);
188
+ }, e.test = function(s) {
189
+ return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(s);
190
190
  };
191
191
  })(base64$1);
192
192
  var eventemitter = EventEmitter;
@@ -223,24 +223,24 @@ var float = factory(factory);
223
223
  function factory(i) {
224
224
  return typeof Float32Array < "u" ? function() {
225
225
  var e = new Float32Array([-0]), n = new Uint8Array(e.buffer), a = n[3] === 128;
226
- function f(s, r, l) {
227
- e[0] = s, r[l] = n[0], r[l + 1] = n[1], r[l + 2] = n[2], r[l + 3] = n[3];
226
+ function f(o, r, l) {
227
+ e[0] = o, r[l] = n[0], r[l + 1] = n[1], r[l + 2] = n[2], r[l + 3] = n[3];
228
228
  }
229
- function u(s, r, l) {
230
- e[0] = s, r[l] = n[3], r[l + 1] = n[2], r[l + 2] = n[1], r[l + 3] = n[0];
229
+ function u(o, r, l) {
230
+ e[0] = o, r[l] = n[3], r[l + 1] = n[2], r[l + 2] = n[1], r[l + 3] = n[0];
231
231
  }
232
232
  i.writeFloatLE = a ? f : u, i.writeFloatBE = a ? u : f;
233
- function t(s, r) {
234
- return n[0] = s[r], n[1] = s[r + 1], n[2] = s[r + 2], n[3] = s[r + 3], e[0];
233
+ function t(o, r) {
234
+ return n[0] = o[r], n[1] = o[r + 1], n[2] = o[r + 2], n[3] = o[r + 3], e[0];
235
235
  }
236
- function o(s, r) {
237
- return n[3] = s[r], n[2] = s[r + 1], n[1] = s[r + 2], n[0] = s[r + 3], e[0];
236
+ function s(o, r) {
237
+ return n[3] = o[r], n[2] = o[r + 1], n[1] = o[r + 2], n[0] = o[r + 3], e[0];
238
238
  }
239
- i.readFloatLE = a ? t : o, i.readFloatBE = a ? o : t;
239
+ i.readFloatLE = a ? t : s, i.readFloatBE = a ? s : t;
240
240
  }() : function() {
241
241
  function e(a, f, u, t) {
242
- var o = f < 0 ? 1 : 0;
243
- if (o && (f = -f), f === 0)
242
+ var s = f < 0 ? 1 : 0;
243
+ if (s && (f = -f), f === 0)
244
244
  a(1 / f > 0 ? (
245
245
  /* positive */
246
246
  0
@@ -251,65 +251,65 @@ function factory(i) {
251
251
  else if (isNaN(f))
252
252
  a(2143289344, u, t);
253
253
  else if (f > 34028234663852886e22)
254
- a((o << 31 | 2139095040) >>> 0, u, t);
254
+ a((s << 31 | 2139095040) >>> 0, u, t);
255
255
  else if (f < 11754943508222875e-54)
256
- a((o << 31 | Math.round(f / 1401298464324817e-60)) >>> 0, u, t);
256
+ a((s << 31 | Math.round(f / 1401298464324817e-60)) >>> 0, u, t);
257
257
  else {
258
- var s = Math.floor(Math.log(f) / Math.LN2), r = Math.round(f * Math.pow(2, -s) * 8388608) & 8388607;
259
- a((o << 31 | s + 127 << 23 | r) >>> 0, u, t);
258
+ var o = Math.floor(Math.log(f) / Math.LN2), r = Math.round(f * Math.pow(2, -o) * 8388608) & 8388607;
259
+ a((s << 31 | o + 127 << 23 | r) >>> 0, u, t);
260
260
  }
261
261
  }
262
262
  i.writeFloatLE = e.bind(null, writeUintLE), i.writeFloatBE = e.bind(null, writeUintBE);
263
263
  function n(a, f, u) {
264
- var t = a(f, u), o = (t >> 31) * 2 + 1, s = t >>> 23 & 255, r = t & 8388607;
265
- return s === 255 ? r ? NaN : o * (1 / 0) : s === 0 ? o * 1401298464324817e-60 * r : o * Math.pow(2, s - 150) * (r + 8388608);
264
+ var t = a(f, u), s = (t >> 31) * 2 + 1, o = t >>> 23 & 255, r = t & 8388607;
265
+ return o === 255 ? r ? NaN : s * (1 / 0) : o === 0 ? s * 1401298464324817e-60 * r : s * Math.pow(2, o - 150) * (r + 8388608);
266
266
  }
267
267
  i.readFloatLE = n.bind(null, readUintLE), i.readFloatBE = n.bind(null, readUintBE);
268
268
  }(), typeof Float64Array < "u" ? function() {
269
269
  var e = new Float64Array([-0]), n = new Uint8Array(e.buffer), a = n[7] === 128;
270
- function f(s, r, l) {
271
- e[0] = s, 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];
270
+ function f(o, r, l) {
271
+ 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];
272
272
  }
273
- function u(s, r, l) {
274
- e[0] = s, 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];
273
+ function u(o, r, l) {
274
+ 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];
275
275
  }
276
276
  i.writeDoubleLE = a ? f : u, i.writeDoubleBE = a ? u : f;
277
- function t(s, r) {
278
- return n[0] = s[r], n[1] = s[r + 1], n[2] = s[r + 2], n[3] = s[r + 3], n[4] = s[r + 4], n[5] = s[r + 5], n[6] = s[r + 6], n[7] = s[r + 7], e[0];
277
+ function t(o, r) {
278
+ 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];
279
279
  }
280
- function o(s, r) {
281
- return n[7] = s[r], n[6] = s[r + 1], n[5] = s[r + 2], n[4] = s[r + 3], n[3] = s[r + 4], n[2] = s[r + 5], n[1] = s[r + 6], n[0] = s[r + 7], e[0];
280
+ function s(o, r) {
281
+ 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];
282
282
  }
283
- i.readDoubleLE = a ? t : o, i.readDoubleBE = a ? o : t;
283
+ i.readDoubleLE = a ? t : s, i.readDoubleBE = a ? s : t;
284
284
  }() : function() {
285
- function e(a, f, u, t, o, s) {
285
+ function e(a, f, u, t, s, o) {
286
286
  var r = t < 0 ? 1 : 0;
287
287
  if (r && (t = -t), t === 0)
288
- a(0, o, s + f), a(1 / t > 0 ? (
288
+ a(0, s, o + f), a(1 / t > 0 ? (
289
289
  /* positive */
290
290
  0
291
291
  ) : (
292
292
  /* negative 0 */
293
293
  2147483648
294
- ), o, s + u);
294
+ ), s, o + u);
295
295
  else if (isNaN(t))
296
- a(0, o, s + f), a(2146959360, o, s + u);
296
+ a(0, s, o + f), a(2146959360, s, o + u);
297
297
  else if (t > 17976931348623157e292)
298
- a(0, o, s + f), a((r << 31 | 2146435072) >>> 0, o, s + u);
298
+ a(0, s, o + f), a((r << 31 | 2146435072) >>> 0, s, o + u);
299
299
  else {
300
300
  var l;
301
301
  if (t < 22250738585072014e-324)
302
- l = t / 5e-324, a(l >>> 0, o, s + f), a((r << 31 | l / 4294967296) >>> 0, o, s + u);
302
+ l = t / 5e-324, a(l >>> 0, s, o + f), a((r << 31 | l / 4294967296) >>> 0, s, o + u);
303
303
  else {
304
304
  var d = Math.floor(Math.log(t) / Math.LN2);
305
- d === 1024 && (d = 1023), l = t * Math.pow(2, -d), a(l * 4503599627370496 >>> 0, o, s + f), a((r << 31 | d + 1023 << 20 | l * 1048576 & 1048575) >>> 0, o, s + u);
305
+ d === 1024 && (d = 1023), l = t * Math.pow(2, -d), a(l * 4503599627370496 >>> 0, s, o + f), a((r << 31 | d + 1023 << 20 | l * 1048576 & 1048575) >>> 0, s, o + u);
306
306
  }
307
307
  }
308
308
  }
309
309
  i.writeDoubleLE = e.bind(null, writeUintLE, 0, 4), i.writeDoubleBE = e.bind(null, writeUintBE, 4, 0);
310
- function n(a, f, u, t, o) {
311
- var s = a(t, o + f), r = a(t, o + u), l = (r >> 31) * 2 + 1, d = r >>> 20 & 2047, h = 4294967296 * (r & 1048575) + s;
312
- return d === 2047 ? h ? NaN : l * (1 / 0) : d === 0 ? l * 5e-324 * h : l * Math.pow(2, d - 1075) * (h + 4503599627370496);
310
+ function n(a, f, u, t, s) {
311
+ var o = a(t, s + f), r = a(t, s + u), l = (r >> 31) * 2 + 1, d = r >>> 20 & 2047, c = 4294967296 * (r & 1048575) + o;
312
+ return d === 2047 ? c ? NaN : l * (1 / 0) : d === 0 ? l * 5e-324 * c : l * Math.pow(2, d - 1075) * (c + 4503599627370496);
313
313
  }
314
314
  i.readDoubleLE = n.bind(null, readUintLE, 0, 4), i.readDoubleBE = n.bind(null, readUintBE, 4, 0);
315
315
  }(), i;
@@ -347,23 +347,23 @@ var utf8$2 = {};
347
347
  var t = u - f;
348
348
  if (t < 1)
349
349
  return "";
350
- for (var o = null, s = [], r = 0, l; f < u; )
351
- l = a[f++], l < 128 ? s[r++] = l : l > 191 && l < 224 ? s[r++] = (l & 31) << 6 | a[f++] & 63 : l > 239 && l < 365 ? (l = ((l & 7) << 18 | (a[f++] & 63) << 12 | (a[f++] & 63) << 6 | a[f++] & 63) - 65536, s[r++] = 55296 + (l >> 10), s[r++] = 56320 + (l & 1023)) : s[r++] = (l & 15) << 12 | (a[f++] & 63) << 6 | a[f++] & 63, r > 8191 && ((o || (o = [])).push(String.fromCharCode.apply(String, s)), r = 0);
352
- return o ? (r && o.push(String.fromCharCode.apply(String, s.slice(0, r))), o.join("")) : String.fromCharCode.apply(String, s.slice(0, r));
350
+ for (var s = null, o = [], r = 0, l; f < u; )
351
+ l = a[f++], l < 128 ? o[r++] = l : l > 191 && l < 224 ? o[r++] = (l & 31) << 6 | a[f++] & 63 : l > 239 && l < 365 ? (l = ((l & 7) << 18 | (a[f++] & 63) << 12 | (a[f++] & 63) << 6 | a[f++] & 63) - 65536, o[r++] = 55296 + (l >> 10), o[r++] = 56320 + (l & 1023)) : o[r++] = (l & 15) << 12 | (a[f++] & 63) << 6 | a[f++] & 63, r > 8191 && ((s || (s = [])).push(String.fromCharCode.apply(String, o)), r = 0);
352
+ return s ? (r && s.push(String.fromCharCode.apply(String, o.slice(0, r))), s.join("")) : String.fromCharCode.apply(String, o.slice(0, r));
353
353
  }, e.write = function(a, f, u) {
354
- for (var t = u, o, s, r = 0; r < a.length; ++r)
355
- o = a.charCodeAt(r), o < 128 ? f[u++] = o : o < 2048 ? (f[u++] = o >> 6 | 192, f[u++] = o & 63 | 128) : (o & 64512) === 55296 && ((s = a.charCodeAt(r + 1)) & 64512) === 56320 ? (o = 65536 + ((o & 1023) << 10) + (s & 1023), ++r, f[u++] = o >> 18 | 240, f[u++] = o >> 12 & 63 | 128, f[u++] = o >> 6 & 63 | 128, f[u++] = o & 63 | 128) : (f[u++] = o >> 12 | 224, f[u++] = o >> 6 & 63 | 128, f[u++] = o & 63 | 128);
354
+ for (var t = u, s, o, r = 0; r < a.length; ++r)
355
+ s = a.charCodeAt(r), s < 128 ? f[u++] = s : s < 2048 ? (f[u++] = s >> 6 | 192, f[u++] = s & 63 | 128) : (s & 64512) === 55296 && ((o = a.charCodeAt(r + 1)) & 64512) === 56320 ? (s = 65536 + ((s & 1023) << 10) + (o & 1023), ++r, f[u++] = s >> 18 | 240, f[u++] = s >> 12 & 63 | 128, f[u++] = s >> 6 & 63 | 128, f[u++] = s & 63 | 128) : (f[u++] = s >> 12 | 224, f[u++] = s >> 6 & 63 | 128, f[u++] = s & 63 | 128);
356
356
  return u - t;
357
357
  };
358
358
  })(utf8$2);
359
359
  var pool_1 = pool;
360
360
  function pool(i, e, n) {
361
361
  var a = n || 8192, f = a >>> 1, u = null, t = a;
362
- return function(s) {
363
- if (s < 1 || s > f)
364
- return i(s);
365
- t + s > a && (u = i(a), t = 0);
366
- var r = e.call(u, t, t += s);
362
+ return function(o) {
363
+ if (o < 1 || o > f)
364
+ return i(o);
365
+ t + o > a && (u = i(a), t = 0);
366
+ var r = e.call(u, t, t += o);
367
367
  return t & 7 && (t = (t | 7) + 1), r;
368
368
  };
369
369
  }
@@ -387,10 +387,10 @@ function requireLongbits() {
387
387
  e.fromNumber = function(t) {
388
388
  if (t === 0)
389
389
  return n;
390
- var o = t < 0;
391
- o && (t = -t);
392
- var s = t >>> 0, r = (t - s) / 4294967296 >>> 0;
393
- return o && (r = ~r >>> 0, s = ~s >>> 0, ++s > 4294967295 && (s = 0, ++r > 4294967295 && (r = 0))), new e(s, r);
390
+ var s = t < 0;
391
+ s && (t = -t);
392
+ var o = t >>> 0, r = (t - o) / 4294967296 >>> 0;
393
+ return s && (r = ~r >>> 0, o = ~o >>> 0, ++o > 4294967295 && (o = 0, ++r > 4294967295 && (r = 0))), new e(o, r);
394
394
  }, e.from = function(t) {
395
395
  if (typeof t == "number")
396
396
  return e.fromNumber(t);
@@ -402,8 +402,8 @@ function requireLongbits() {
402
402
  return t.low || t.high ? new e(t.low >>> 0, t.high >>> 0) : n;
403
403
  }, e.prototype.toNumber = function(t) {
404
404
  if (!t && this.hi >>> 31) {
405
- var o = ~this.lo + 1 >>> 0, s = ~this.hi >>> 0;
406
- return o || (s = s + 1 >>> 0), -(o + s * 4294967296);
405
+ var s = ~this.lo + 1 >>> 0, o = ~this.hi >>> 0;
406
+ return s || (o = o + 1 >>> 0), -(s + o * 4294967296);
407
407
  }
408
408
  return this.lo + this.hi * 4294967296;
409
409
  }, e.prototype.toLong = function(t) {
@@ -433,8 +433,8 @@ function requireLongbits() {
433
433
  var t = -(this.lo & 1);
434
434
  return this.lo = ((this.lo >>> 1 | this.hi << 31) ^ t) >>> 0, this.hi = (this.hi >>> 1 ^ t) >>> 0, this;
435
435
  }, e.prototype.length = function() {
436
- var t = this.lo, o = (this.lo >>> 28 | this.hi << 4) >>> 0, s = this.hi >>> 24;
437
- return s === 0 ? o === 0 ? t < 16384 ? t < 128 ? 1 : 2 : t < 2097152 ? 3 : 4 : o < 16384 ? o < 128 ? 5 : 6 : o < 2097152 ? 7 : 8 : s < 128 ? 9 : 10;
436
+ var t = this.lo, s = (this.lo >>> 28 | this.hi << 4) >>> 0, o = this.hi >>> 24;
437
+ return o === 0 ? s === 0 ? t < 16384 ? t < 128 ? 1 : 2 : t < 2097152 ? 3 : 4 : s < 16384 ? s < 128 ? 5 : 6 : s < 2097152 ? 7 : 8 : o < 128 ? 9 : 10;
438
438
  }, longbits;
439
439
  }
440
440
  var hasRequiredMinimal;
@@ -461,8 +461,8 @@ function requireMinimal() {
461
461
  * @returns {boolean} `true` if considered to be present, otherwise `false`
462
462
  */
463
463
  e.isSet = function(u, t) {
464
- var o = u[t];
465
- return o != null && u.hasOwnProperty(t) ? typeof o != "object" || (Array.isArray(o) ? o.length : Object.keys(o).length) > 0 : !1;
464
+ var s = u[t];
465
+ return s != null && u.hasOwnProperty(t) ? typeof s != "object" || (Array.isArray(s) ? s.length : Object.keys(s).length) > 0 : !1;
466
466
  }, e.Buffer = function() {
467
467
  try {
468
468
  var f = e.inquire("buffer").Buffer;
@@ -481,24 +481,24 @@ function requireMinimal() {
481
481
  e.global.Long || e.inquire("long"), e.key2Re = /^true|false|0|1$/, e.key32Re = /^-?(?:0|[1-9][0-9]*)$/, e.key64Re = /^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/, e.longToHash = function(u) {
482
482
  return u ? e.LongBits.from(u).toHash() : e.LongBits.zeroHash;
483
483
  }, e.longFromHash = function(u, t) {
484
- var o = e.LongBits.fromHash(u);
485
- return e.Long ? e.Long.fromBits(o.lo, o.hi, t) : o.toNumber(!!t);
484
+ var s = e.LongBits.fromHash(u);
485
+ return e.Long ? e.Long.fromBits(s.lo, s.hi, t) : s.toNumber(!!t);
486
486
  };
487
487
  function n(f, u, t) {
488
- for (var o = Object.keys(u), s = 0; s < o.length; ++s)
489
- (f[o[s]] === void 0 || !t) && (f[o[s]] = u[o[s]]);
488
+ for (var s = Object.keys(u), o = 0; o < s.length; ++o)
489
+ (f[s[o]] === void 0 || !t) && (f[s[o]] = u[s[o]]);
490
490
  return f;
491
491
  }
492
492
  e.merge = n, e.lcFirst = function(u) {
493
493
  return u.charAt(0).toLowerCase() + u.substring(1);
494
494
  };
495
495
  function a(f) {
496
- function u(t, o) {
496
+ function u(t, s) {
497
497
  if (!(this instanceof u))
498
- return new u(t, o);
498
+ return new u(t, s);
499
499
  Object.defineProperty(this, "message", { get: function() {
500
500
  return t;
501
- } }), Error.captureStackTrace ? Error.captureStackTrace(this, u) : Object.defineProperty(this, "stack", { value: new Error().stack || "" }), o && n(this, o);
501
+ } }), Error.captureStackTrace ? Error.captureStackTrace(this, u) : Object.defineProperty(this, "stack", { value: new Error().stack || "" }), s && n(this, s);
502
502
  }
503
503
  return u.prototype = Object.create(Error.prototype, {
504
504
  constructor: {
@@ -530,17 +530,17 @@ function requireMinimal() {
530
530
  }), u;
531
531
  }
532
532
  e.newError = a, e.ProtocolError = a("ProtocolError"), e.oneOfGetter = function(u) {
533
- for (var t = {}, o = 0; o < u.length; ++o)
534
- t[u[o]] = 1;
533
+ for (var t = {}, s = 0; s < u.length; ++s)
534
+ t[u[s]] = 1;
535
535
  return function() {
536
- for (var s = Object.keys(this), r = s.length - 1; r > -1; --r)
537
- if (t[s[r]] === 1 && this[s[r]] !== void 0 && this[s[r]] !== null)
538
- return s[r];
536
+ for (var o = Object.keys(this), r = o.length - 1; r > -1; --r)
537
+ if (t[o[r]] === 1 && this[o[r]] !== void 0 && this[o[r]] !== null)
538
+ return o[r];
539
539
  };
540
540
  }, e.oneOfSetter = function(u) {
541
541
  return function(t) {
542
- for (var o = 0; o < u.length; ++o)
543
- u[o] !== t && delete this[u[o]];
542
+ for (var s = 0; s < u.length; ++s)
543
+ u[s] !== t && delete this[u[s]];
544
544
  };
545
545
  }, e.toJSONOptions = {
546
546
  longs: String,
@@ -554,8 +554,8 @@ function requireMinimal() {
554
554
  return;
555
555
  }
556
556
  e._Buffer_from = f.from !== Uint8Array.from && f.from || /* istanbul ignore next */
557
- function(t, o) {
558
- return new f(t, o);
557
+ function(t, s) {
558
+ return new f(t, s);
559
559
  }, e._Buffer_allocUnsafe = f.allocUnsafe || /* istanbul ignore next */
560
560
  function(t) {
561
561
  return new f(t);
@@ -938,9 +938,9 @@ Service.prototype.rpcCall = function i(e, n, a, f, u) {
938
938
  return t.rpcImpl(
939
939
  e,
940
940
  n[t.requestDelimited ? "encodeDelimited" : "encode"](f).finish(),
941
- function(s, r) {
942
- if (s)
943
- return t.emit("error", s, e), u(s);
941
+ function(o, r) {
942
+ if (o)
943
+ return t.emit("error", o, e), u(o);
944
944
  if (r === null) {
945
945
  t.end(
946
946
  /* endedByRPC */
@@ -957,9 +957,9 @@ Service.prototype.rpcCall = function i(e, n, a, f, u) {
957
957
  return t.emit("data", r, e), u(null, r);
958
958
  }
959
959
  );
960
- } catch (o) {
961
- t.emit("error", o, e), setTimeout(function() {
962
- u(o);
960
+ } catch (s) {
961
+ t.emit("error", s, e), setTimeout(function() {
962
+ u(s);
963
963
  }, 0);
964
964
  return;
965
965
  }
@@ -988,16 +988,16 @@ function codegen(i, e) {
988
988
  if (typeof u != "string") {
989
989
  var t = f();
990
990
  if (codegen.verbose && console.log("codegen: " + t), t = "return " + t, u) {
991
- for (var o = Object.keys(u), s = new Array(o.length + 1), r = new Array(o.length), l = 0; l < o.length; )
992
- s[l] = o[l], r[l] = u[o[l++]];
993
- return s[l] = t, Function.apply(null, s).apply(null, r);
991
+ for (var s = Object.keys(u), o = new Array(s.length + 1), r = new Array(s.length), l = 0; l < s.length; )
992
+ o[l] = s[l], r[l] = u[s[l++]];
993
+ return o[l] = t, Function.apply(null, o).apply(null, r);
994
994
  }
995
995
  return Function(t)();
996
996
  }
997
- for (var d = new Array(arguments.length - 1), h = 0; h < d.length; )
998
- d[h] = arguments[++h];
999
- if (h = 0, u = u.replace(/%([%dfijs])/g, function(y, m) {
1000
- var b = d[h++];
997
+ for (var d = new Array(arguments.length - 1), c = 0; c < d.length; )
998
+ d[c] = arguments[++c];
999
+ if (c = 0, u = u.replace(/%([%dfijs])/g, function(y, m) {
1000
+ var b = d[c++];
1001
1001
  switch (m) {
1002
1002
  case "d":
1003
1003
  case "f":
@@ -1010,7 +1010,7 @@ function codegen(i, e) {
1010
1010
  return String(b);
1011
1011
  }
1012
1012
  return "%";
1013
- }), h !== d.length)
1013
+ }), c !== d.length)
1014
1014
  throw Error("parameter count mismatch");
1015
1015
  return n.push(u), a;
1016
1016
  }
@@ -1039,8 +1039,8 @@ fetch.xhr = function i(e, n, a) {
1039
1039
  var t = f.response;
1040
1040
  if (!t) {
1041
1041
  t = [];
1042
- for (var o = 0; o < f.responseText.length; ++o)
1043
- t.push(f.responseText.charCodeAt(o) & 255);
1042
+ for (var s = 0; s < f.responseText.length; ++s)
1043
+ t.push(f.responseText.charCodeAt(s) & 255);
1044
1044
  }
1045
1045
  return a(null, typeof Uint8Array < "u" ? new Uint8Array(t) : t);
1046
1046
  }
@@ -1067,15 +1067,15 @@ var path = {};
1067
1067
  */
1068
1068
  e.normalize = function(u) {
1069
1069
  u = u.replace(/\\/g, "/").replace(/\/{2,}/g, "/");
1070
- var t = u.split("/"), o = n(u), s = "";
1071
- o && (s = t.shift() + "/");
1070
+ var t = u.split("/"), s = n(u), o = "";
1071
+ s && (o = t.shift() + "/");
1072
1072
  for (var r = 0; r < t.length; )
1073
- t[r] === ".." ? r > 0 && t[r - 1] !== ".." ? t.splice(--r, 2) : o ? t.splice(r, 1) : ++r : t[r] === "." ? t.splice(r, 1) : ++r;
1074
- return s + t.join("/");
1073
+ t[r] === ".." ? r > 0 && t[r - 1] !== ".." ? t.splice(--r, 2) : s ? t.splice(r, 1) : ++r : t[r] === "." ? t.splice(r, 1) : ++r;
1074
+ return o + t.join("/");
1075
1075
  }
1076
1076
  );
1077
- e.resolve = function(u, t, o) {
1078
- return o || (t = a(t)), n(t) ? t : (o || (u = a(u)), (u = u.replace(/(?:\/|^)[^/]+$/, "")).length ? a(u + "/" + t) : t);
1077
+ e.resolve = function(u, t, s) {
1078
+ return s || (t = a(t)), n(t) ? t : (s || (u = a(u)), (u = u.replace(/(?:\/|^)[^/]+$/, "")).length ? a(u + "/" + t) : t);
1079
1079
  };
1080
1080
  })(path);
1081
1081
  var types = {}, hasRequiredTypes;
@@ -1114,9 +1114,9 @@ function requireTypes() {
1114
1114
  // 14
1115
1115
  ];
1116
1116
  function f(u, t) {
1117
- var o = 0, s = {};
1118
- for (t |= 0; o < u.length; ) s[a[o + t]] = u[o++];
1119
- return s;
1117
+ var s = 0, o = {};
1118
+ for (t |= 0; s < u.length; ) o[a[s + t]] = u[s++];
1119
+ return o;
1120
1120
  }
1121
1121
  e.basic = f([
1122
1122
  /* double */
@@ -1255,11 +1255,11 @@ function requireField() {
1255
1255
  var i = requireObject();
1256
1256
  ((t.prototype = Object.create(i.prototype)).constructor = t).className = "Field";
1257
1257
  var e = require_enum(), n = requireTypes(), a = requireUtil(), f, u = /^required|optional|repeated$/;
1258
- t.fromJSON = function(s, r) {
1259
- return new t(s, r.id, r.type, r.rule, r.extend, r.options, r.comment);
1258
+ t.fromJSON = function(o, r) {
1259
+ return new t(o, r.id, r.type, r.rule, r.extend, r.options, r.comment);
1260
1260
  };
1261
- function t(o, s, r, l, d, h, c) {
1262
- if (a.isObject(l) ? (c = d, h = l, l = d = void 0) : a.isObject(d) && (c = h, h = d, d = void 0), i.call(this, o, h), !a.isInteger(s) || s < 0)
1261
+ function t(s, o, r, l, d, c, h) {
1262
+ if (a.isObject(l) ? (h = d, c = l, l = d = void 0) : a.isObject(d) && (h = c, c = d, d = void 0), i.call(this, s, c), !a.isInteger(o) || o < 0)
1263
1263
  throw TypeError("id must be a non-negative integer");
1264
1264
  if (!a.isString(r))
1265
1265
  throw TypeError("type must be a string");
@@ -1267,19 +1267,19 @@ function requireField() {
1267
1267
  throw TypeError("rule must be a string rule");
1268
1268
  if (d !== void 0 && !a.isString(d))
1269
1269
  throw TypeError("extend must be a string");
1270
- l === "proto3_optional" && (l = "optional"), this.rule = l && l !== "optional" ? l : void 0, this.type = r, this.id = s, 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 = a.Long ? n.long[r] !== void 0 : (
1270
+ 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 = a.Long ? n.long[r] !== void 0 : (
1271
1271
  /* istanbul ignore next */
1272
1272
  !1
1273
- ), this.bytes = r === "bytes", this.resolvedType = null, this.extensionField = null, this.declaringField = null, this._packed = null, this.comment = c;
1273
+ ), this.bytes = r === "bytes", this.resolvedType = null, this.extensionField = null, this.declaringField = null, this._packed = null, this.comment = h;
1274
1274
  }
1275
1275
  return Object.defineProperty(t.prototype, "packed", {
1276
1276
  get: function() {
1277
1277
  return this._packed === null && (this._packed = this.getOption("packed") !== !1), this._packed;
1278
1278
  }
1279
- }), t.prototype.setOption = function(s, r, l) {
1280
- return s === "packed" && (this._packed = null), i.prototype.setOption.call(this, s, r, l);
1281
- }, t.prototype.toJSON = function(s) {
1282
- var r = s ? !!s.keepComments : !1;
1279
+ }), t.prototype.setOption = function(o, r, l) {
1280
+ return o === "packed" && (this._packed = null), i.prototype.setOption.call(this, o, r, l);
1281
+ }, t.prototype.toJSON = function(o) {
1282
+ var r = o ? !!o.keepComments : !1;
1283
1283
  return a.toObject([
1284
1284
  "rule",
1285
1285
  this.rule !== "optional" && this.rule || void 0,
@@ -1300,16 +1300,16 @@ function requireField() {
1300
1300
  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)
1301
1301
  this.typeDefault = a.Long.fromNumber(this.typeDefault, this.type.charAt(0) === "u"), Object.freeze && Object.freeze(this.typeDefault);
1302
1302
  else if (this.bytes && typeof this.typeDefault == "string") {
1303
- var s;
1304
- a.base64.test(this.typeDefault) ? a.base64.decode(this.typeDefault, s = a.newBuffer(a.base64.length(this.typeDefault)), 0) : a.utf8.write(this.typeDefault, s = a.newBuffer(a.utf8.length(this.typeDefault)), 0), this.typeDefault = s;
1303
+ var o;
1304
+ a.base64.test(this.typeDefault) ? a.base64.decode(this.typeDefault, o = a.newBuffer(a.base64.length(this.typeDefault)), 0) : a.utf8.write(this.typeDefault, o = a.newBuffer(a.utf8.length(this.typeDefault)), 0), this.typeDefault = o;
1305
1305
  }
1306
1306
  return this.map ? this.defaultValue = a.emptyObject : this.repeated ? this.defaultValue = a.emptyArray : this.defaultValue = this.typeDefault, this.parent instanceof f && (this.parent.ctor.prototype[this.name] = this.defaultValue), i.prototype.resolve.call(this);
1307
- }, t.d = function(s, r, l, d) {
1308
- return typeof r == "function" ? r = a.decorateType(r).name : r && typeof r == "object" && (r = a.decorateEnum(r).name), function(c, y) {
1309
- a.decorateType(c.constructor).add(new t(y, s, r, l, { default: d }));
1307
+ }, t.d = function(o, r, l, d) {
1308
+ return typeof r == "function" ? r = a.decorateType(r).name : r && typeof r == "object" && (r = a.decorateEnum(r).name), function(h, y) {
1309
+ a.decorateType(h.constructor).add(new t(y, o, r, l, { default: d }));
1310
1310
  };
1311
- }, t._configure = function(s) {
1312
- f = s;
1311
+ }, t._configure = function(o) {
1312
+ f = o;
1313
1313
  }, field;
1314
1314
  }
1315
1315
  var oneof, hasRequiredOneof;
@@ -1319,22 +1319,22 @@ function requireOneof() {
1319
1319
  var i = requireObject();
1320
1320
  ((a.prototype = Object.create(i.prototype)).constructor = a).className = "OneOf";
1321
1321
  var e = requireField(), n = requireUtil();
1322
- function a(u, t, o, s) {
1323
- if (Array.isArray(t) || (o = t, t = void 0), i.call(this, u, o), !(t === void 0 || Array.isArray(t)))
1322
+ function a(u, t, s, o) {
1323
+ if (Array.isArray(t) || (s = t, t = void 0), i.call(this, u, s), !(t === void 0 || Array.isArray(t)))
1324
1324
  throw TypeError("fieldNames must be an Array");
1325
- this.oneof = t || [], this.fieldsArray = [], this.comment = s;
1325
+ this.oneof = t || [], this.fieldsArray = [], this.comment = o;
1326
1326
  }
1327
- a.fromJSON = function(t, o) {
1328
- return new a(t, o.oneof, o.options, o.comment);
1327
+ a.fromJSON = function(t, s) {
1328
+ return new a(t, s.oneof, s.options, s.comment);
1329
1329
  }, a.prototype.toJSON = function(t) {
1330
- var o = t ? !!t.keepComments : !1;
1330
+ var s = t ? !!t.keepComments : !1;
1331
1331
  return n.toObject([
1332
1332
  "options",
1333
1333
  this.options,
1334
1334
  "oneof",
1335
1335
  this.oneof,
1336
1336
  "comment",
1337
- o ? this.comment : void 0
1337
+ s ? this.comment : void 0
1338
1338
  ]);
1339
1339
  };
1340
1340
  function f(u) {
@@ -1349,24 +1349,24 @@ function requireOneof() {
1349
1349
  }, a.prototype.remove = function(t) {
1350
1350
  if (!(t instanceof e))
1351
1351
  throw TypeError("field must be a Field");
1352
- var o = this.fieldsArray.indexOf(t);
1353
- if (o < 0)
1352
+ var s = this.fieldsArray.indexOf(t);
1353
+ if (s < 0)
1354
1354
  throw Error(t + " is not a member of " + this);
1355
- return this.fieldsArray.splice(o, 1), o = this.oneof.indexOf(t.name), o > -1 && this.oneof.splice(o, 1), t.partOf = null, this;
1355
+ return this.fieldsArray.splice(s, 1), s = this.oneof.indexOf(t.name), s > -1 && this.oneof.splice(s, 1), t.partOf = null, this;
1356
1356
  }, a.prototype.onAdd = function(t) {
1357
1357
  i.prototype.onAdd.call(this, t);
1358
- for (var o = this, s = 0; s < this.oneof.length; ++s) {
1359
- var r = t.get(this.oneof[s]);
1360
- r && !r.partOf && (r.partOf = o, o.fieldsArray.push(r));
1358
+ for (var s = this, o = 0; o < this.oneof.length; ++o) {
1359
+ var r = t.get(this.oneof[o]);
1360
+ r && !r.partOf && (r.partOf = s, s.fieldsArray.push(r));
1361
1361
  }
1362
1362
  f(this);
1363
1363
  }, a.prototype.onRemove = function(t) {
1364
- for (var o = 0, s; o < this.fieldsArray.length; ++o)
1365
- (s = this.fieldsArray[o]).parent && s.parent.remove(s);
1364
+ for (var s = 0, o; s < this.fieldsArray.length; ++s)
1365
+ (o = this.fieldsArray[s]).parent && o.parent.remove(o);
1366
1366
  i.prototype.onRemove.call(this, t);
1367
1367
  }, a.d = function() {
1368
- for (var t = new Array(arguments.length), o = 0; o < arguments.length; )
1369
- t[o] = arguments[o++];
1368
+ for (var t = new Array(arguments.length), s = 0; s < arguments.length; )
1369
+ t[s] = arguments[s++];
1370
1370
  return function(r, l) {
1371
1371
  n.decorateType(r.constructor).add(new a(l, t)), Object.defineProperty(r, l, {
1372
1372
  get: n.oneOfGetter(t),
@@ -1378,152 +1378,152 @@ function requireOneof() {
1378
1378
  var namespace, hasRequiredNamespace;
1379
1379
  function requireNamespace() {
1380
1380
  if (hasRequiredNamespace) return namespace;
1381
- hasRequiredNamespace = 1, namespace = s;
1381
+ hasRequiredNamespace = 1, namespace = o;
1382
1382
  var i = requireObject();
1383
- ((s.prototype = Object.create(i.prototype)).constructor = s).className = "Namespace";
1383
+ ((o.prototype = Object.create(i.prototype)).constructor = o).className = "Namespace";
1384
1384
  var e = requireField(), n = requireUtil(), a = requireOneof(), f, u, t;
1385
- s.fromJSON = function(d, h) {
1386
- return new s(d, h.options).addJSON(h.nested);
1385
+ o.fromJSON = function(d, c) {
1386
+ return new o(d, c.options).addJSON(c.nested);
1387
1387
  };
1388
- function o(l, d) {
1388
+ function s(l, d) {
1389
1389
  if (l && l.length) {
1390
- for (var h = {}, c = 0; c < l.length; ++c)
1391
- h[l[c].name] = l[c].toJSON(d);
1392
- return h;
1390
+ for (var c = {}, h = 0; h < l.length; ++h)
1391
+ c[l[h].name] = l[h].toJSON(d);
1392
+ return c;
1393
1393
  }
1394
1394
  }
1395
- s.arrayToJSON = o, s.isReservedId = function(d, h) {
1395
+ o.arrayToJSON = s, o.isReservedId = function(d, c) {
1396
1396
  if (d) {
1397
- for (var c = 0; c < d.length; ++c)
1398
- if (typeof d[c] != "string" && d[c][0] <= h && d[c][1] > h)
1397
+ for (var h = 0; h < d.length; ++h)
1398
+ if (typeof d[h] != "string" && d[h][0] <= c && d[h][1] > c)
1399
1399
  return !0;
1400
1400
  }
1401
1401
  return !1;
1402
- }, s.isReservedName = function(d, h) {
1402
+ }, o.isReservedName = function(d, c) {
1403
1403
  if (d) {
1404
- for (var c = 0; c < d.length; ++c)
1405
- if (d[c] === h)
1404
+ for (var h = 0; h < d.length; ++h)
1405
+ if (d[h] === c)
1406
1406
  return !0;
1407
1407
  }
1408
1408
  return !1;
1409
1409
  };
1410
- function s(l, d) {
1410
+ function o(l, d) {
1411
1411
  i.call(this, l, d), this.nested = void 0, this._nestedArray = null;
1412
1412
  }
1413
1413
  function r(l) {
1414
1414
  return l._nestedArray = null, l;
1415
1415
  }
1416
- return Object.defineProperty(s.prototype, "nestedArray", {
1416
+ return Object.defineProperty(o.prototype, "nestedArray", {
1417
1417
  get: function() {
1418
1418
  return this._nestedArray || (this._nestedArray = n.toArray(this.nested));
1419
1419
  }
1420
- }), s.prototype.toJSON = function(d) {
1420
+ }), o.prototype.toJSON = function(d) {
1421
1421
  return n.toObject([
1422
1422
  "options",
1423
1423
  this.options,
1424
1424
  "nested",
1425
- o(this.nestedArray, d)
1425
+ s(this.nestedArray, d)
1426
1426
  ]);
1427
- }, s.prototype.addJSON = function(d) {
1428
- var h = this;
1427
+ }, o.prototype.addJSON = function(d) {
1428
+ var c = this;
1429
1429
  if (d)
1430
- for (var c = Object.keys(d), y = 0, m; y < c.length; ++y)
1431
- m = d[c[y]], h.add(
1430
+ for (var h = Object.keys(d), y = 0, m; y < h.length; ++y)
1431
+ m = d[h[y]], c.add(
1432
1432
  // most to least likely
1433
- (m.fields !== void 0 ? f.fromJSON : m.values !== void 0 ? t.fromJSON : m.methods !== void 0 ? u.fromJSON : m.id !== void 0 ? e.fromJSON : s.fromJSON)(c[y], m)
1433
+ (m.fields !== void 0 ? f.fromJSON : m.values !== void 0 ? t.fromJSON : m.methods !== void 0 ? u.fromJSON : m.id !== void 0 ? e.fromJSON : o.fromJSON)(h[y], m)
1434
1434
  );
1435
1435
  return this;
1436
- }, s.prototype.get = function(d) {
1436
+ }, o.prototype.get = function(d) {
1437
1437
  return this.nested && this.nested[d] || null;
1438
- }, s.prototype.getEnum = function(d) {
1438
+ }, o.prototype.getEnum = function(d) {
1439
1439
  if (this.nested && this.nested[d] instanceof t)
1440
1440
  return this.nested[d].values;
1441
1441
  throw Error("no such enum: " + d);
1442
- }, s.prototype.add = function(d) {
1443
- if (!(d instanceof e && d.extend !== void 0 || d instanceof f || d instanceof a || d instanceof t || d instanceof u || d instanceof s))
1442
+ }, o.prototype.add = function(d) {
1443
+ if (!(d instanceof e && d.extend !== void 0 || d instanceof f || d instanceof a || d instanceof t || d instanceof u || d instanceof o))
1444
1444
  throw TypeError("object must be a valid nested object");
1445
1445
  if (!this.nested)
1446
1446
  this.nested = {};
1447
1447
  else {
1448
- var h = this.get(d.name);
1449
- if (h)
1450
- if (h instanceof s && d instanceof s && !(h instanceof f || h instanceof u)) {
1451
- for (var c = h.nestedArray, y = 0; y < c.length; ++y)
1452
- d.add(c[y]);
1453
- this.remove(h), this.nested || (this.nested = {}), d.setOptions(h.options, !0);
1448
+ var c = this.get(d.name);
1449
+ if (c)
1450
+ if (c instanceof o && d instanceof o && !(c instanceof f || c instanceof u)) {
1451
+ for (var h = c.nestedArray, y = 0; y < h.length; ++y)
1452
+ d.add(h[y]);
1453
+ this.remove(c), this.nested || (this.nested = {}), d.setOptions(c.options, !0);
1454
1454
  } else
1455
1455
  throw Error("duplicate name '" + d.name + "' in " + this);
1456
1456
  }
1457
1457
  return this.nested[d.name] = d, d.onAdd(this), r(this);
1458
- }, s.prototype.remove = function(d) {
1458
+ }, o.prototype.remove = function(d) {
1459
1459
  if (!(d instanceof i))
1460
1460
  throw TypeError("object must be a ReflectionObject");
1461
1461
  if (d.parent !== this)
1462
1462
  throw Error(d + " is not a member of " + this);
1463
1463
  return delete this.nested[d.name], Object.keys(this.nested).length || (this.nested = void 0), d.onRemove(this), r(this);
1464
- }, s.prototype.define = function(d, h) {
1464
+ }, o.prototype.define = function(d, c) {
1465
1465
  if (n.isString(d))
1466
1466
  d = d.split(".");
1467
1467
  else if (!Array.isArray(d))
1468
1468
  throw TypeError("illegal path");
1469
1469
  if (d && d.length && d[0] === "")
1470
1470
  throw Error("path must be relative");
1471
- for (var c = this; d.length > 0; ) {
1471
+ for (var h = this; d.length > 0; ) {
1472
1472
  var y = d.shift();
1473
- if (c.nested && c.nested[y]) {
1474
- if (c = c.nested[y], !(c instanceof s))
1473
+ if (h.nested && h.nested[y]) {
1474
+ if (h = h.nested[y], !(h instanceof o))
1475
1475
  throw Error("path conflicts with non-namespace objects");
1476
1476
  } else
1477
- c.add(c = new s(y));
1477
+ h.add(h = new o(y));
1478
1478
  }
1479
- return h && c.addJSON(h), c;
1480
- }, s.prototype.resolveAll = function() {
1481
- for (var d = this.nestedArray, h = 0; h < d.length; )
1482
- d[h] instanceof s ? d[h++].resolveAll() : d[h++].resolve();
1479
+ return c && h.addJSON(c), h;
1480
+ }, o.prototype.resolveAll = function() {
1481
+ for (var d = this.nestedArray, c = 0; c < d.length; )
1482
+ d[c] instanceof o ? d[c++].resolveAll() : d[c++].resolve();
1483
1483
  return this.resolve();
1484
- }, s.prototype.lookup = function(d, h, c) {
1485
- if (typeof h == "boolean" ? (c = h, h = void 0) : h && !Array.isArray(h) && (h = [h]), n.isString(d) && d.length) {
1484
+ }, o.prototype.lookup = function(d, c, h) {
1485
+ if (typeof c == "boolean" ? (h = c, c = void 0) : c && !Array.isArray(c) && (c = [c]), n.isString(d) && d.length) {
1486
1486
  if (d === ".")
1487
1487
  return this.root;
1488
1488
  d = d.split(".");
1489
1489
  } else if (!d.length)
1490
1490
  return this;
1491
1491
  if (d[0] === "")
1492
- return this.root.lookup(d.slice(1), h);
1492
+ return this.root.lookup(d.slice(1), c);
1493
1493
  var y = this.get(d[0]);
1494
1494
  if (y) {
1495
1495
  if (d.length === 1) {
1496
- if (!h || h.indexOf(y.constructor) > -1)
1496
+ if (!c || c.indexOf(y.constructor) > -1)
1497
1497
  return y;
1498
- } else if (y instanceof s && (y = y.lookup(d.slice(1), h, !0)))
1498
+ } else if (y instanceof o && (y = y.lookup(d.slice(1), c, !0)))
1499
1499
  return y;
1500
1500
  } else
1501
1501
  for (var m = 0; m < this.nestedArray.length; ++m)
1502
- if (this._nestedArray[m] instanceof s && (y = this._nestedArray[m].lookup(d, h, !0)))
1502
+ if (this._nestedArray[m] instanceof o && (y = this._nestedArray[m].lookup(d, c, !0)))
1503
1503
  return y;
1504
- return this.parent === null || c ? null : this.parent.lookup(d, h);
1505
- }, s.prototype.lookupType = function(d) {
1506
- var h = this.lookup(d, [f]);
1507
- if (!h)
1504
+ return this.parent === null || h ? null : this.parent.lookup(d, c);
1505
+ }, o.prototype.lookupType = function(d) {
1506
+ var c = this.lookup(d, [f]);
1507
+ if (!c)
1508
1508
  throw Error("no such type: " + d);
1509
- return h;
1510
- }, s.prototype.lookupEnum = function(d) {
1511
- var h = this.lookup(d, [t]);
1512
- if (!h)
1509
+ return c;
1510
+ }, o.prototype.lookupEnum = function(d) {
1511
+ var c = this.lookup(d, [t]);
1512
+ if (!c)
1513
1513
  throw Error("no such Enum '" + d + "' in " + this);
1514
- return h;
1515
- }, s.prototype.lookupTypeOrEnum = function(d) {
1516
- var h = this.lookup(d, [f, t]);
1517
- if (!h)
1514
+ return c;
1515
+ }, o.prototype.lookupTypeOrEnum = function(d) {
1516
+ var c = this.lookup(d, [f, t]);
1517
+ if (!c)
1518
1518
  throw Error("no such Type or Enum '" + d + "' in " + this);
1519
- return h;
1520
- }, s.prototype.lookupService = function(d) {
1521
- var h = this.lookup(d, [u]);
1522
- if (!h)
1519
+ return c;
1520
+ }, o.prototype.lookupService = function(d) {
1521
+ var c = this.lookup(d, [u]);
1522
+ if (!c)
1523
1523
  throw Error("no such Service '" + d + "' in " + this);
1524
- return h;
1525
- }, s._configure = function(l, d, h) {
1526
- f = l, u = d, t = h;
1524
+ return c;
1525
+ }, o._configure = function(l, d, c) {
1526
+ f = l, u = d, t = c;
1527
1527
  }, namespace;
1528
1528
  }
1529
1529
  var mapfield, hasRequiredMapfield;
@@ -1533,8 +1533,8 @@ function requireMapfield() {
1533
1533
  var i = requireField();
1534
1534
  ((a.prototype = Object.create(i.prototype)).constructor = a).className = "MapField";
1535
1535
  var e = requireTypes(), n = requireUtil();
1536
- function a(f, u, t, o, s, r) {
1537
- if (i.call(this, f, u, o, void 0, void 0, s, r), !n.isString(t))
1536
+ function a(f, u, t, s, o, r) {
1537
+ if (i.call(this, f, u, s, void 0, void 0, o, r), !n.isString(t))
1538
1538
  throw TypeError("keyType must be a string");
1539
1539
  this.keyType = t, this.resolvedKeyType = null, this.map = !0;
1540
1540
  }
@@ -1562,9 +1562,9 @@ function requireMapfield() {
1562
1562
  if (e.mapKey[this.keyType] === void 0)
1563
1563
  throw Error("invalid key type: " + this.keyType);
1564
1564
  return i.prototype.resolve.call(this);
1565
- }, a.d = function(u, t, o) {
1566
- return typeof o == "function" ? o = n.decorateType(o).name : o && typeof o == "object" && (o = n.decorateEnum(o).name), function(r, l) {
1567
- n.decorateType(r.constructor).add(new a(l, u, t, o));
1565
+ }, a.d = function(u, t, s) {
1566
+ return typeof s == "function" ? s = n.decorateType(s).name : s && typeof s == "object" && (s = n.decorateEnum(s).name), function(r, l) {
1567
+ n.decorateType(r.constructor).add(new a(l, u, t, s));
1568
1568
  };
1569
1569
  }, mapfield;
1570
1570
  }
@@ -1575,14 +1575,14 @@ function requireMethod() {
1575
1575
  var i = requireObject();
1576
1576
  ((n.prototype = Object.create(i.prototype)).constructor = n).className = "Method";
1577
1577
  var e = requireUtil();
1578
- function n(a, f, u, t, o, s, r, l, d) {
1579
- if (e.isObject(o) ? (r = o, o = s = void 0) : e.isObject(s) && (r = s, s = void 0), !(f === void 0 || e.isString(f)))
1578
+ function n(a, f, u, t, s, o, r, l, d) {
1579
+ if (e.isObject(s) ? (r = s, s = o = void 0) : e.isObject(o) && (r = o, o = void 0), !(f === void 0 || e.isString(f)))
1580
1580
  throw TypeError("type must be a string");
1581
1581
  if (!e.isString(u))
1582
1582
  throw TypeError("requestType must be a string");
1583
1583
  if (!e.isString(t))
1584
1584
  throw TypeError("responseType must be a string");
1585
- i.call(this, a, r), this.type = f || "rpc", this.requestType = u, this.requestStream = o ? !0 : void 0, this.responseType = t, this.responseStream = s ? !0 : void 0, this.resolvedRequestType = null, this.resolvedResponseType = null, this.comment = l, this.parsedOptions = d;
1585
+ i.call(this, a, r), this.type = f || "rpc", this.requestType = u, 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;
1586
1586
  }
1587
1587
  return n.fromJSON = function(f, u) {
1588
1588
  return new n(f, u.type, u.requestType, u.responseType, u.requestStream, u.responseStream, u.options, u.comment, u.parsedOptions);
@@ -1618,25 +1618,25 @@ function requireService() {
1618
1618
  var i = requireNamespace();
1619
1619
  ((f.prototype = Object.create(i.prototype)).constructor = f).className = "Service";
1620
1620
  var e = requireMethod(), n = requireUtil(), a = rpc;
1621
- function f(t, o) {
1622
- i.call(this, t, o), this.methods = {}, this._methodsArray = null;
1621
+ function f(t, s) {
1622
+ i.call(this, t, s), this.methods = {}, this._methodsArray = null;
1623
1623
  }
1624
- f.fromJSON = function(o, s) {
1625
- var r = new f(o, s.options);
1626
- if (s.methods)
1627
- for (var l = Object.keys(s.methods), d = 0; d < l.length; ++d)
1628
- r.add(e.fromJSON(l[d], s.methods[l[d]]));
1629
- return s.nested && r.addJSON(s.nested), r.comment = s.comment, r;
1630
- }, f.prototype.toJSON = function(o) {
1631
- var s = i.prototype.toJSON.call(this, o), r = o ? !!o.keepComments : !1;
1624
+ f.fromJSON = function(s, o) {
1625
+ var r = new f(s, o.options);
1626
+ if (o.methods)
1627
+ for (var l = Object.keys(o.methods), d = 0; d < l.length; ++d)
1628
+ r.add(e.fromJSON(l[d], o.methods[l[d]]));
1629
+ return o.nested && r.addJSON(o.nested), r.comment = o.comment, r;
1630
+ }, f.prototype.toJSON = function(s) {
1631
+ var o = i.prototype.toJSON.call(this, s), r = s ? !!s.keepComments : !1;
1632
1632
  return n.toObject([
1633
1633
  "options",
1634
- s && s.options || void 0,
1634
+ o && o.options || void 0,
1635
1635
  "methods",
1636
- i.arrayToJSON(this.methodsArray, o) || /* istanbul ignore next */
1636
+ i.arrayToJSON(this.methodsArray, s) || /* istanbul ignore next */
1637
1637
  {},
1638
1638
  "nested",
1639
- s && s.nested || void 0,
1639
+ o && o.nested || void 0,
1640
1640
  "comment",
1641
1641
  r ? this.comment : void 0
1642
1642
  ]);
@@ -1648,31 +1648,31 @@ function requireService() {
1648
1648
  function u(t) {
1649
1649
  return t._methodsArray = null, t;
1650
1650
  }
1651
- return f.prototype.get = function(o) {
1652
- return this.methods[o] || i.prototype.get.call(this, o);
1651
+ return f.prototype.get = function(s) {
1652
+ return this.methods[s] || i.prototype.get.call(this, s);
1653
1653
  }, f.prototype.resolveAll = function() {
1654
- for (var o = this.methodsArray, s = 0; s < o.length; ++s)
1655
- o[s].resolve();
1654
+ for (var s = this.methodsArray, o = 0; o < s.length; ++o)
1655
+ s[o].resolve();
1656
1656
  return i.prototype.resolve.call(this);
1657
- }, f.prototype.add = function(o) {
1658
- if (this.get(o.name))
1659
- throw Error("duplicate name '" + o.name + "' in " + this);
1660
- return o instanceof e ? (this.methods[o.name] = o, o.parent = this, u(this)) : i.prototype.add.call(this, o);
1661
- }, f.prototype.remove = function(o) {
1662
- if (o instanceof e) {
1663
- if (this.methods[o.name] !== o)
1664
- throw Error(o + " is not a member of " + this);
1665
- return delete this.methods[o.name], o.parent = null, u(this);
1666
- }
1667
- return i.prototype.remove.call(this, o);
1668
- }, f.prototype.create = function(o, s, r) {
1669
- for (var l = new a.Service(o, s, r), d = 0, h; d < /* initializes */
1657
+ }, f.prototype.add = function(s) {
1658
+ if (this.get(s.name))
1659
+ throw Error("duplicate name '" + s.name + "' in " + this);
1660
+ return s instanceof e ? (this.methods[s.name] = s, s.parent = this, u(this)) : i.prototype.add.call(this, s);
1661
+ }, f.prototype.remove = function(s) {
1662
+ if (s instanceof e) {
1663
+ if (this.methods[s.name] !== s)
1664
+ throw Error(s + " is not a member of " + this);
1665
+ return delete this.methods[s.name], s.parent = null, u(this);
1666
+ }
1667
+ return i.prototype.remove.call(this, s);
1668
+ }, f.prototype.create = function(s, o, r) {
1669
+ for (var l = new a.Service(s, o, r), d = 0, c; d < /* initializes */
1670
1670
  this.methodsArray.length; ++d) {
1671
- var c = n.lcFirst((h = this._methodsArray[d]).resolve().name).replace(/[^$\w_]/g, "");
1672
- l[c] = n.codegen(["r", "c"], n.isReserved(c) ? c + "_" : c)("return this.rpcCall(m,q,s,r,c)")({
1673
- m: h,
1674
- q: h.resolvedRequestType.ctor,
1675
- s: h.resolvedResponseType.ctor
1671
+ var h = n.lcFirst((c = this._methodsArray[d]).resolve().name).replace(/[^$\w_]/g, "");
1672
+ l[h] = n.codegen(["r", "c"], n.isReserved(h) ? h + "_" : h)("return this.rpcCall(m,q,s,r,c)")({
1673
+ m: c,
1674
+ q: c.resolvedRequestType.ctor,
1675
+ s: c.resolvedResponseType.ctor
1676
1676
  });
1677
1677
  }
1678
1678
  return l;
@@ -1720,17 +1720,17 @@ function requireDecoder() {
1720
1720
  return "missing required '" + u.name + "'";
1721
1721
  }
1722
1722
  function f(u) {
1723
- var t = n.codegen(["r", "l"], u.name + "$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor" + (u.fieldsArray.filter(function(h) {
1724
- return h.map;
1723
+ var t = n.codegen(["r", "l"], u.name + "$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor" + (u.fieldsArray.filter(function(c) {
1724
+ return c.map;
1725
1725
  }).length ? ",k,value" : ""))("while(r.pos<c){")("var t=r.uint32()");
1726
1726
  u.group && t("if((t&7)===4)")("break"), t("switch(t>>>3){");
1727
- for (var o = 0; o < /* initializes */
1728
- u.fieldsArray.length; ++o) {
1729
- var s = u._fieldsArray[o].resolve(), r = s.resolvedType instanceof i ? "int32" : s.type, l = "m" + n.safeProp(s.name);
1730
- t("case %i: {", s.id), s.map ? (t("if(%s===util.emptyObject)", l)("%s={}", l)("var c2 = r.uint32()+r.pos"), e.defaults[s.keyType] !== void 0 ? t("k=%j", e.defaults[s.keyType]) : t("k=null"), e.defaults[r] !== void 0 ? t("value=%j", e.defaults[r]) : t("value=null"), t("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break", s.keyType)("case 2:"), e.basic[r] === void 0 ? t("value=types[%i].decode(r,r.uint32())", o) : t("value=r.%s()", r), t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"), e.long[s.keyType] !== void 0 ? t('%s[typeof k==="object"?util.longToHash(k):k]=value', l) : t("%s[k]=value", l)) : s.repeated ? (t("if(!(%s&&%s.length))", l, l)("%s=[]", l), e.packed[r] !== void 0 && t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())", l, r)("}else"), e.basic[r] === void 0 ? t(s.resolvedType.group ? "%s.push(types[%i].decode(r))" : "%s.push(types[%i].decode(r,r.uint32()))", l, o) : t("%s.push(r.%s())", l, r)) : e.basic[r] === void 0 ? t(s.resolvedType.group ? "%s=types[%i].decode(r)" : "%s=types[%i].decode(r,r.uint32())", l, o) : t("%s=r.%s()", l, r), t("break")("}");
1727
+ for (var s = 0; s < /* initializes */
1728
+ u.fieldsArray.length; ++s) {
1729
+ var o = u._fieldsArray[s].resolve(), r = o.resolvedType instanceof i ? "int32" : o.type, l = "m" + n.safeProp(o.name);
1730
+ t("case %i: {", o.id), o.map ? (t("if(%s===util.emptyObject)", l)("%s={}", l)("var c2 = r.uint32()+r.pos"), e.defaults[o.keyType] !== void 0 ? t("k=%j", e.defaults[o.keyType]) : t("k=null"), e.defaults[r] !== void 0 ? t("value=%j", e.defaults[r]) : t("value=null"), t("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break", o.keyType)("case 2:"), e.basic[r] === void 0 ? t("value=types[%i].decode(r,r.uint32())", s) : t("value=r.%s()", r), t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"), e.long[o.keyType] !== void 0 ? t('%s[typeof k==="object"?util.longToHash(k):k]=value', l) : t("%s[k]=value", l)) : o.repeated ? (t("if(!(%s&&%s.length))", l, l)("%s=[]", l), e.packed[r] !== void 0 && t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())", l, r)("}else"), e.basic[r] === void 0 ? t(o.resolvedType.group ? "%s.push(types[%i].decode(r))" : "%s.push(types[%i].decode(r,r.uint32()))", l, s) : t("%s.push(r.%s())", l, r)) : e.basic[r] === void 0 ? t(o.resolvedType.group ? "%s=types[%i].decode(r)" : "%s=types[%i].decode(r,r.uint32())", l, s) : t("%s=r.%s()", l, r), t("break")("}");
1731
1731
  }
1732
- for (t("default:")("r.skipType(t&7)")("break")("}")("}"), o = 0; o < u._fieldsArray.length; ++o) {
1733
- var d = u._fieldsArray[o];
1732
+ for (t("default:")("r.skipType(t&7)")("break")("}")("}"), s = 0; s < u._fieldsArray.length; ++s) {
1733
+ var d = u._fieldsArray[s];
1734
1734
  d.required && t("if(!m.hasOwnProperty(%j))", d.name)("throw util.ProtocolError(%j,{instance:m})", a(d));
1735
1735
  }
1736
1736
  return t("return m");
@@ -1742,91 +1742,91 @@ function requireVerifier() {
1742
1742
  if (hasRequiredVerifier) return verifier_1;
1743
1743
  hasRequiredVerifier = 1, verifier_1 = u;
1744
1744
  var i = require_enum(), e = requireUtil();
1745
- function n(t, o) {
1746
- return t.name + ": " + o + (t.repeated && o !== "array" ? "[]" : t.map && o !== "object" ? "{k:" + t.keyType + "}" : "") + " expected";
1745
+ function n(t, s) {
1746
+ return t.name + ": " + s + (t.repeated && s !== "array" ? "[]" : t.map && s !== "object" ? "{k:" + t.keyType + "}" : "") + " expected";
1747
1747
  }
1748
- function a(t, o, s, r) {
1749
- if (o.resolvedType)
1750
- if (o.resolvedType instanceof i) {
1751
- t("switch(%s){", r)("default:")("return%j", n(o, "enum value"));
1752
- for (var l = Object.keys(o.resolvedType.values), d = 0; d < l.length; ++d) t("case %i:", o.resolvedType.values[l[d]]);
1748
+ function a(t, s, o, r) {
1749
+ if (s.resolvedType)
1750
+ if (s.resolvedType instanceof i) {
1751
+ t("switch(%s){", r)("default:")("return%j", n(s, "enum value"));
1752
+ for (var l = Object.keys(s.resolvedType.values), d = 0; d < l.length; ++d) t("case %i:", s.resolvedType.values[l[d]]);
1753
1753
  t("break")("}");
1754
1754
  } else
1755
- t("{")("var e=types[%i].verify(%s);", s, r)("if(e)")("return%j+e", o.name + ".")("}");
1755
+ t("{")("var e=types[%i].verify(%s);", o, r)("if(e)")("return%j+e", s.name + ".")("}");
1756
1756
  else
1757
- switch (o.type) {
1757
+ switch (s.type) {
1758
1758
  case "int32":
1759
1759
  case "uint32":
1760
1760
  case "sint32":
1761
1761
  case "fixed32":
1762
1762
  case "sfixed32":
1763
- t("if(!util.isInteger(%s))", r)("return%j", n(o, "integer"));
1763
+ t("if(!util.isInteger(%s))", r)("return%j", n(s, "integer"));
1764
1764
  break;
1765
1765
  case "int64":
1766
1766
  case "uint64":
1767
1767
  case "sint64":
1768
1768
  case "fixed64":
1769
1769
  case "sfixed64":
1770
- t("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))", r, r, r, r)("return%j", n(o, "integer|Long"));
1770
+ t("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))", r, r, r, r)("return%j", n(s, "integer|Long"));
1771
1771
  break;
1772
1772
  case "float":
1773
1773
  case "double":
1774
- t('if(typeof %s!=="number")', r)("return%j", n(o, "number"));
1774
+ t('if(typeof %s!=="number")', r)("return%j", n(s, "number"));
1775
1775
  break;
1776
1776
  case "bool":
1777
- t('if(typeof %s!=="boolean")', r)("return%j", n(o, "boolean"));
1777
+ t('if(typeof %s!=="boolean")', r)("return%j", n(s, "boolean"));
1778
1778
  break;
1779
1779
  case "string":
1780
- t("if(!util.isString(%s))", r)("return%j", n(o, "string"));
1780
+ t("if(!util.isString(%s))", r)("return%j", n(s, "string"));
1781
1781
  break;
1782
1782
  case "bytes":
1783
- t('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))', r, r, r)("return%j", n(o, "buffer"));
1783
+ t('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))', r, r, r)("return%j", n(s, "buffer"));
1784
1784
  break;
1785
1785
  }
1786
1786
  return t;
1787
1787
  }
1788
- function f(t, o, s) {
1789
- switch (o.keyType) {
1788
+ function f(t, s, o) {
1789
+ switch (s.keyType) {
1790
1790
  case "int32":
1791
1791
  case "uint32":
1792
1792
  case "sint32":
1793
1793
  case "fixed32":
1794
1794
  case "sfixed32":
1795
- t("if(!util.key32Re.test(%s))", s)("return%j", n(o, "integer key"));
1795
+ t("if(!util.key32Re.test(%s))", o)("return%j", n(s, "integer key"));
1796
1796
  break;
1797
1797
  case "int64":
1798
1798
  case "uint64":
1799
1799
  case "sint64":
1800
1800
  case "fixed64":
1801
1801
  case "sfixed64":
1802
- t("if(!util.key64Re.test(%s))", s)("return%j", n(o, "integer|Long key"));
1802
+ t("if(!util.key64Re.test(%s))", o)("return%j", n(s, "integer|Long key"));
1803
1803
  break;
1804
1804
  case "bool":
1805
- t("if(!util.key2Re.test(%s))", s)("return%j", n(o, "boolean key"));
1805
+ t("if(!util.key2Re.test(%s))", o)("return%j", n(s, "boolean key"));
1806
1806
  break;
1807
1807
  }
1808
1808
  return t;
1809
1809
  }
1810
1810
  function u(t) {
1811
- var o = e.codegen(["m"], t.name + "$verify")('if(typeof m!=="object"||m===null)')("return%j", "object expected"), s = t.oneofsArray, r = {};
1812
- s.length && o("var p={}");
1811
+ var s = e.codegen(["m"], t.name + "$verify")('if(typeof m!=="object"||m===null)')("return%j", "object expected"), o = t.oneofsArray, r = {};
1812
+ o.length && s("var p={}");
1813
1813
  for (var l = 0; l < /* initializes */
1814
1814
  t.fieldsArray.length; ++l) {
1815
- var d = t._fieldsArray[l].resolve(), h = "m" + e.safeProp(d.name);
1816
- if (d.optional && o("if(%s!=null&&m.hasOwnProperty(%j)){", h, d.name), d.map)
1817
- o("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(o, d, "k[i]"), a(o, d, l, h + "[k[i]]")("}");
1815
+ var d = t._fieldsArray[l].resolve(), c = "m" + e.safeProp(d.name);
1816
+ if (d.optional && s("if(%s!=null&&m.hasOwnProperty(%j)){", c, d.name), d.map)
1817
+ s("if(!util.isObject(%s))", c)("return%j", n(d, "object"))("var k=Object.keys(%s)", c)("for(var i=0;i<k.length;++i){"), f(s, d, "k[i]"), a(s, d, l, c + "[k[i]]")("}");
1818
1818
  else if (d.repeated)
1819
- o("if(!Array.isArray(%s))", h)("return%j", n(d, "array"))("for(var i=0;i<%s.length;++i){", h), a(o, d, l, h + "[i]")("}");
1819
+ s("if(!Array.isArray(%s))", c)("return%j", n(d, "array"))("for(var i=0;i<%s.length;++i){", c), a(s, d, l, c + "[i]")("}");
1820
1820
  else {
1821
1821
  if (d.partOf) {
1822
- var c = e.safeProp(d.partOf.name);
1823
- r[d.partOf.name] === 1 && o("if(p%s===1)", c)("return%j", d.partOf.name + ": multiple values"), r[d.partOf.name] = 1, o("p%s=1", c);
1822
+ var h = e.safeProp(d.partOf.name);
1823
+ r[d.partOf.name] === 1 && s("if(p%s===1)", h)("return%j", d.partOf.name + ": multiple values"), r[d.partOf.name] = 1, s("p%s=1", h);
1824
1824
  }
1825
- a(o, d, l, h);
1825
+ a(s, d, l, c);
1826
1826
  }
1827
- d.optional && o("}");
1827
+ d.optional && s("}");
1828
1828
  }
1829
- return o("return null");
1829
+ return s("return null");
1830
1830
  }
1831
1831
  return verifier_1;
1832
1832
  }
@@ -1834,18 +1834,18 @@ var converter = {}, hasRequiredConverter;
1834
1834
  function requireConverter() {
1835
1835
  return hasRequiredConverter || (hasRequiredConverter = 1, function(i) {
1836
1836
  var e = i, n = require_enum(), a = requireUtil();
1837
- function f(t, o, s, r) {
1837
+ function f(t, s, o, r) {
1838
1838
  var l = !1;
1839
- if (o.resolvedType)
1840
- if (o.resolvedType instanceof n) {
1839
+ if (s.resolvedType)
1840
+ if (s.resolvedType instanceof n) {
1841
1841
  t("switch(d%s){", r);
1842
- for (var d = o.resolvedType.values, h = Object.keys(d), c = 0; c < h.length; ++c)
1843
- d[h[c]] === o.typeDefault && !l && (t("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}', r, r, r), o.repeated || t("break"), l = !0), t("case%j:", h[c])("case %i:", d[h[c]])("m%s=%j", r, d[h[c]])("break");
1842
+ for (var d = s.resolvedType.values, c = Object.keys(d), h = 0; h < c.length; ++h)
1843
+ d[c[h]] === s.typeDefault && !l && (t("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}', r, r, r), s.repeated || t("break"), l = !0), t("case%j:", c[h])("case %i:", d[c[h]])("m%s=%j", r, d[c[h]])("break");
1844
1844
  t("}");
1845
- } else t('if(typeof d%s!=="object")', r)("throw TypeError(%j)", o.fullName + ": object expected")("m%s=types[%i].fromObject(d%s)", r, s, r);
1845
+ } else t('if(typeof d%s!=="object")', r)("throw TypeError(%j)", s.fullName + ": object expected")("m%s=types[%i].fromObject(d%s)", r, o, r);
1846
1846
  else {
1847
1847
  var y = !1;
1848
- switch (o.type) {
1848
+ switch (s.type) {
1849
1849
  case "double":
1850
1850
  case "float":
1851
1851
  t("m%s=Number(d%s)", r, r);
@@ -1880,40 +1880,40 @@ function requireConverter() {
1880
1880
  }
1881
1881
  return t;
1882
1882
  }
1883
- e.fromObject = function(o) {
1884
- var s = o.fieldsArray, r = a.codegen(["d"], o.name + "$fromObject")("if(d instanceof this.ctor)")("return d");
1885
- if (!s.length) return r("return new this.ctor");
1883
+ e.fromObject = function(s) {
1884
+ var o = s.fieldsArray, r = a.codegen(["d"], s.name + "$fromObject")("if(d instanceof this.ctor)")("return d");
1885
+ if (!o.length) return r("return new this.ctor");
1886
1886
  r("var m=new this.ctor");
1887
- for (var l = 0; l < s.length; ++l) {
1888
- var d = s[l].resolve(), h = a.safeProp(d.name);
1889
- 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(
1887
+ for (var l = 0; l < o.length; ++l) {
1888
+ var d = o[l].resolve(), c = a.safeProp(d.name);
1889
+ d.map ? (r("if(d%s){", c)('if(typeof d%s!=="object")', c)("throw TypeError(%j)", d.fullName + ": object expected")("m%s={}", c)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){", c), f(
1890
1890
  r,
1891
1891
  d,
1892
1892
  /* not sorted */
1893
1893
  l,
1894
- h + "[ks[i]]"
1895
- )("}")("}")) : 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(
1894
+ c + "[ks[i]]"
1895
+ )("}")("}")) : d.repeated ? (r("if(d%s){", c)("if(!Array.isArray(d%s))", c)("throw TypeError(%j)", d.fullName + ": array expected")("m%s=[]", c)("for(var i=0;i<d%s.length;++i){", c), f(
1896
1896
  r,
1897
1897
  d,
1898
1898
  /* not sorted */
1899
1899
  l,
1900
- h + "[i]"
1901
- )("}")("}")) : (d.resolvedType instanceof n || r("if(d%s!=null){", h), f(
1900
+ c + "[i]"
1901
+ )("}")("}")) : (d.resolvedType instanceof n || r("if(d%s!=null){", c), f(
1902
1902
  r,
1903
1903
  d,
1904
1904
  /* not sorted */
1905
1905
  l,
1906
- h
1906
+ c
1907
1907
  ), d.resolvedType instanceof n || r("}"));
1908
1908
  }
1909
1909
  return r("return m");
1910
1910
  };
1911
- function u(t, o, s, r) {
1912
- if (o.resolvedType)
1913
- o.resolvedType instanceof n ? t("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s", r, s, r, r, s, r, r) : t("d%s=types[%i].toObject(m%s,o)", r, s, r);
1911
+ function u(t, s, o, r) {
1912
+ if (s.resolvedType)
1913
+ s.resolvedType instanceof n ? t("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s", r, o, r, r, o, r, r) : t("d%s=types[%i].toObject(m%s,o)", r, o, r);
1914
1914
  else {
1915
1915
  var l = !1;
1916
- switch (o.type) {
1916
+ switch (s.type) {
1917
1917
  case "double":
1918
1918
  case "float":
1919
1919
  t("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s", r, r, r, r);
@@ -1936,23 +1936,23 @@ function requireConverter() {
1936
1936
  }
1937
1937
  return t;
1938
1938
  }
1939
- e.toObject = function(o) {
1940
- var s = o.fieldsArray.slice().sort(a.compareFieldsById);
1941
- if (!s.length)
1939
+ e.toObject = function(s) {
1940
+ var o = s.fieldsArray.slice().sort(a.compareFieldsById);
1941
+ if (!o.length)
1942
1942
  return a.codegen()("return {}");
1943
- for (var r = a.codegen(["m", "o"], o.name + "$toObject")("if(!o)")("o={}")("var d={}"), l = [], d = [], h = [], c = 0; c < s.length; ++c)
1944
- s[c].partOf || (s[c].resolve().repeated ? l : s[c].map ? d : h).push(s[c]);
1943
+ for (var r = a.codegen(["m", "o"], s.name + "$toObject")("if(!o)")("o={}")("var d={}"), l = [], d = [], c = [], h = 0; h < o.length; ++h)
1944
+ o[h].partOf || (o[h].resolve().repeated ? l : o[h].map ? d : c).push(o[h]);
1945
1945
  if (l.length) {
1946
- for (r("if(o.arrays||o.defaults){"), c = 0; c < l.length; ++c) r("d%s=[]", a.safeProp(l[c].name));
1946
+ for (r("if(o.arrays||o.defaults){"), h = 0; h < l.length; ++h) r("d%s=[]", a.safeProp(l[h].name));
1947
1947
  r("}");
1948
1948
  }
1949
1949
  if (d.length) {
1950
- for (r("if(o.objects||o.defaults){"), c = 0; c < d.length; ++c) r("d%s={}", a.safeProp(d[c].name));
1950
+ for (r("if(o.objects||o.defaults){"), h = 0; h < d.length; ++h) r("d%s={}", a.safeProp(d[h].name));
1951
1951
  r("}");
1952
1952
  }
1953
- if (h.length) {
1954
- for (r("if(o.defaults){"), c = 0; c < h.length; ++c) {
1955
- var y = h[c], m = a.safeProp(y.name);
1953
+ if (c.length) {
1954
+ for (r("if(o.defaults){"), h = 0; h < c.length; ++h) {
1955
+ var y = c[h], m = a.safeProp(y.name);
1956
1956
  if (y.resolvedType instanceof n) r("d%s=o.enums===String?%j:%j", m, y.resolvedType.valuesById[y.typeDefault], y.typeDefault);
1957
1957
  else if (y.long) r("if(util.Long){")("var n=new util.Long(%i,%i,%j)", y.typeDefault.low, y.typeDefault.high, y.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, y.typeDefault.toString(), y.typeDefault.toNumber());
1958
1958
  else if (y.bytes) {
@@ -1963,8 +1963,8 @@ function requireConverter() {
1963
1963
  r("}");
1964
1964
  }
1965
1965
  var v = !1;
1966
- for (c = 0; c < s.length; ++c) {
1967
- var y = s[c], p = o._fieldsArray.indexOf(y), m = a.safeProp(y.name);
1966
+ for (h = 0; h < o.length; ++h) {
1967
+ var y = o[h], p = s._fieldsArray.indexOf(y), m = a.safeProp(y.name);
1968
1968
  y.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){"), u(
1969
1969
  r,
1970
1970
  y,
@@ -2007,15 +2007,15 @@ var wrappers = {};
2007
2007
  return this.fromObject(a);
2008
2008
  },
2009
2009
  toObject: function(a, f) {
2010
- var u = "type.googleapis.com/", t = "", o = "";
2010
+ var u = "type.googleapis.com/", t = "", s = "";
2011
2011
  if (f && f.json && a.type_url && a.value) {
2012
- o = a.type_url.substring(a.type_url.lastIndexOf("/") + 1), t = a.type_url.substring(0, a.type_url.lastIndexOf("/") + 1);
2013
- var s = this.lookup(o);
2014
- s && (a = s.decode(a.value));
2012
+ s = a.type_url.substring(a.type_url.lastIndexOf("/") + 1), t = a.type_url.substring(0, a.type_url.lastIndexOf("/") + 1);
2013
+ var o = this.lookup(s);
2014
+ o && (a = o.decode(a.value));
2015
2015
  }
2016
2016
  if (!(a instanceof this.ctor) && a instanceof n) {
2017
2017
  var r = a.$type.toObject(a, f), l = a.$type.fullName[0] === "." ? a.$type.fullName.slice(1) : a.$type.fullName;
2018
- return t === "" && (t = u), o = t + l, r["@type"] = o, r;
2018
+ return t === "" && (t = u), s = t + l, r["@type"] = s, r;
2019
2019
  }
2020
2020
  return this.toObject(a, f);
2021
2021
  }
@@ -2027,7 +2027,7 @@ function requireType() {
2027
2027
  hasRequiredType = 1, type = m;
2028
2028
  var i = requireNamespace();
2029
2029
  ((m.prototype = Object.create(i.prototype)).constructor = m).className = "Type";
2030
- var e = require_enum(), n = requireOneof(), a = requireField(), f = requireMapfield(), u = requireService(), t = message, o = reader, s = writer, r = requireUtil(), l = requireEncoder(), d = requireDecoder(), h = requireVerifier(), c = requireConverter(), y = wrappers;
2030
+ var e = require_enum(), n = requireOneof(), a = requireField(), f = requireMapfield(), u = requireService(), t = message, s = reader, o = writer, r = requireUtil(), l = requireEncoder(), d = requireDecoder(), c = requireVerifier(), h = requireConverter(), y = wrappers;
2031
2031
  function m(v, p) {
2032
2032
  i.call(this, v, p), 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;
2033
2033
  }
@@ -2197,20 +2197,20 @@ function requireType() {
2197
2197
  this.fieldsArray.length; ++_)
2198
2198
  g.push(this._fieldsArray[_].resolve().resolvedType);
2199
2199
  this.encode = l(this)({
2200
- Writer: s,
2200
+ Writer: o,
2201
2201
  types: g,
2202
2202
  util: r
2203
2203
  }), this.decode = d(this)({
2204
- Reader: o,
2204
+ Reader: s,
2205
2205
  types: g,
2206
2206
  util: r
2207
- }), this.verify = h(this)({
2207
+ }), this.verify = c(this)({
2208
2208
  types: g,
2209
2209
  util: r
2210
- }), this.fromObject = c.fromObject(this)({
2210
+ }), this.fromObject = h.fromObject(this)({
2211
2211
  types: g,
2212
2212
  util: r
2213
- }), this.toObject = c.toObject(this)({
2213
+ }), this.toObject = h.toObject(this)({
2214
2214
  types: g,
2215
2215
  util: r
2216
2216
  });
@@ -2227,7 +2227,7 @@ function requireType() {
2227
2227
  }, m.prototype.decode = function(p, g) {
2228
2228
  return this.setup().decode(p, g);
2229
2229
  }, m.prototype.decodeDelimited = function(p) {
2230
- return p instanceof o || (p = o.create(p)), this.decode(p, p.uint32());
2230
+ return p instanceof s || (p = s.create(p)), this.decode(p, p.uint32());
2231
2231
  }, m.prototype.verify = function(p) {
2232
2232
  return this.setup().verify(p);
2233
2233
  }, m.prototype.fromObject = function(p) {
@@ -2243,23 +2243,23 @@ function requireType() {
2243
2243
  var root, hasRequiredRoot;
2244
2244
  function requireRoot() {
2245
2245
  if (hasRequiredRoot) return root;
2246
- hasRequiredRoot = 1, root = s;
2246
+ hasRequiredRoot = 1, root = o;
2247
2247
  var i = requireNamespace();
2248
- ((s.prototype = Object.create(i.prototype)).constructor = s).className = "Root";
2249
- var e = requireField(), n = require_enum(), a = requireOneof(), f = requireUtil(), u, t, o;
2250
- function s(h) {
2251
- i.call(this, "", h), this.deferred = [], this.files = [];
2248
+ ((o.prototype = Object.create(i.prototype)).constructor = o).className = "Root";
2249
+ var e = requireField(), n = require_enum(), a = requireOneof(), f = requireUtil(), u, t, s;
2250
+ function o(c) {
2251
+ i.call(this, "", c), this.deferred = [], this.files = [];
2252
2252
  }
2253
- s.fromJSON = function(c, y) {
2254
- return y || (y = new s()), c.options && y.setOptions(c.options), y.addJSON(c.nested);
2255
- }, s.prototype.resolvePath = f.path.resolve, s.prototype.fetch = f.fetch;
2253
+ o.fromJSON = function(h, y) {
2254
+ return y || (y = new o()), h.options && y.setOptions(h.options), y.addJSON(h.nested);
2255
+ }, o.prototype.resolvePath = f.path.resolve, o.prototype.fetch = f.fetch;
2256
2256
  function r() {
2257
2257
  }
2258
- s.prototype.load = function h(c, y, m) {
2258
+ o.prototype.load = function c(h, y, m) {
2259
2259
  typeof y == "function" && (m = y, y = void 0);
2260
2260
  var b = this;
2261
2261
  if (!m)
2262
- return f.asPromise(h, b, c, y);
2262
+ return f.asPromise(c, b, h, y);
2263
2263
  var v = m === r;
2264
2264
  function p(q, S) {
2265
2265
  if (m) {
@@ -2273,7 +2273,7 @@ function requireRoot() {
2273
2273
  var S = q.lastIndexOf("google/protobuf/");
2274
2274
  if (S > -1) {
2275
2275
  var k = q.substring(S);
2276
- if (k in o) return k;
2276
+ if (k in s) return k;
2277
2277
  }
2278
2278
  return null;
2279
2279
  }
@@ -2298,9 +2298,9 @@ function requireRoot() {
2298
2298
  }
2299
2299
  function R(q, S) {
2300
2300
  if (q = g(q) || q, !(b.files.indexOf(q) > -1)) {
2301
- if (b.files.push(q), q in o) {
2302
- v ? _(q, o[q]) : (++O, setTimeout(function() {
2303
- --O, _(q, o[q]);
2301
+ if (b.files.push(q), q in s) {
2302
+ v ? _(q, s[q]) : (++O, setTimeout(function() {
2303
+ --O, _(q, s[q]);
2304
2304
  }));
2305
2305
  return;
2306
2306
  }
@@ -2326,73 +2326,73 @@ function requireRoot() {
2326
2326
  }
2327
2327
  }
2328
2328
  var O = 0;
2329
- f.isString(c) && (c = [c]);
2330
- for (var T = 0, J; T < c.length; ++T)
2331
- (J = b.resolvePath("", c[T])) && R(J);
2329
+ f.isString(h) && (h = [h]);
2330
+ for (var T = 0, J; T < h.length; ++T)
2331
+ (J = b.resolvePath("", h[T])) && R(J);
2332
2332
  if (v)
2333
2333
  return b;
2334
2334
  O || p(null, b);
2335
- }, s.prototype.loadSync = function(c, y) {
2335
+ }, o.prototype.loadSync = function(h, y) {
2336
2336
  if (!f.isNode)
2337
2337
  throw Error("not supported");
2338
- return this.load(c, y, r);
2339
- }, s.prototype.resolveAll = function() {
2338
+ return this.load(h, y, r);
2339
+ }, o.prototype.resolveAll = function() {
2340
2340
  if (this.deferred.length)
2341
- throw Error("unresolvable extensions: " + this.deferred.map(function(c) {
2342
- return "'extend " + c.extend + "' in " + c.parent.fullName;
2341
+ throw Error("unresolvable extensions: " + this.deferred.map(function(h) {
2342
+ return "'extend " + h.extend + "' in " + h.parent.fullName;
2343
2343
  }).join(", "));
2344
2344
  return i.prototype.resolveAll.call(this);
2345
2345
  };
2346
2346
  var l = /^[A-Z]/;
2347
- function d(h, c) {
2348
- var y = c.parent.lookup(c.extend);
2347
+ function d(c, h) {
2348
+ var y = h.parent.lookup(h.extend);
2349
2349
  if (y) {
2350
- var m = new e(c.fullName, c.id, c.type, c.rule, void 0, c.options);
2351
- return y.get(m.name) || (m.declaringField = c, c.extensionField = m, y.add(m)), !0;
2350
+ var m = new e(h.fullName, h.id, h.type, h.rule, void 0, h.options);
2351
+ return y.get(m.name) || (m.declaringField = h, h.extensionField = m, y.add(m)), !0;
2352
2352
  }
2353
2353
  return !1;
2354
2354
  }
2355
- return s.prototype._handleAdd = function(c) {
2356
- if (c instanceof e)
2355
+ return o.prototype._handleAdd = function(h) {
2356
+ if (h instanceof e)
2357
2357
  /* an extension field (implies not part of a oneof) */
2358
- c.extend !== void 0 && /* not already handled */
2359
- !c.extensionField && (d(this, c) || this.deferred.push(c));
2360
- else if (c instanceof n)
2361
- l.test(c.name) && (c.parent[c.name] = c.values);
2362
- else if (!(c instanceof a)) {
2363
- if (c instanceof u)
2358
+ h.extend !== void 0 && /* not already handled */
2359
+ !h.extensionField && (d(this, h) || this.deferred.push(h));
2360
+ else if (h instanceof n)
2361
+ l.test(h.name) && (h.parent[h.name] = h.values);
2362
+ else if (!(h instanceof a)) {
2363
+ if (h instanceof u)
2364
2364
  for (var y = 0; y < this.deferred.length; )
2365
2365
  d(this, this.deferred[y]) ? this.deferred.splice(y, 1) : ++y;
2366
2366
  for (var m = 0; m < /* initializes */
2367
- c.nestedArray.length; ++m)
2368
- this._handleAdd(c._nestedArray[m]);
2369
- l.test(c.name) && (c.parent[c.name] = c);
2367
+ h.nestedArray.length; ++m)
2368
+ this._handleAdd(h._nestedArray[m]);
2369
+ l.test(h.name) && (h.parent[h.name] = h);
2370
2370
  }
2371
- }, s.prototype._handleRemove = function(c) {
2372
- if (c instanceof e) {
2371
+ }, o.prototype._handleRemove = function(h) {
2372
+ if (h instanceof e) {
2373
2373
  if (
2374
2374
  /* an extension field */
2375
- c.extend !== void 0
2375
+ h.extend !== void 0
2376
2376
  )
2377
2377
  if (
2378
2378
  /* already handled */
2379
- c.extensionField
2379
+ h.extensionField
2380
2380
  )
2381
- c.extensionField.parent.remove(c.extensionField), c.extensionField = null;
2381
+ h.extensionField.parent.remove(h.extensionField), h.extensionField = null;
2382
2382
  else {
2383
- var y = this.deferred.indexOf(c);
2383
+ var y = this.deferred.indexOf(h);
2384
2384
  y > -1 && this.deferred.splice(y, 1);
2385
2385
  }
2386
- } else if (c instanceof n)
2387
- l.test(c.name) && delete c.parent[c.name];
2388
- else if (c instanceof i) {
2386
+ } else if (h instanceof n)
2387
+ l.test(h.name) && delete h.parent[h.name];
2388
+ else if (h instanceof i) {
2389
2389
  for (var m = 0; m < /* initializes */
2390
- c.nestedArray.length; ++m)
2391
- this._handleRemove(c._nestedArray[m]);
2392
- l.test(c.name) && delete c.parent[c.name];
2390
+ h.nestedArray.length; ++m)
2391
+ this._handleRemove(h._nestedArray[m]);
2392
+ l.test(h.name) && delete h.parent[h.name];
2393
2393
  }
2394
- }, s._configure = function(h, c, y) {
2395
- u = h, t = c, o = y;
2394
+ }, o._configure = function(c, h, y) {
2395
+ u = c, t = h, s = y;
2396
2396
  }, root;
2397
2397
  }
2398
2398
  var hasRequiredUtil;
@@ -2402,15 +2402,15 @@ function requireUtil() {
2402
2402
  var i = util$1.exports = requireMinimal(), e = roots, n, a;
2403
2403
  i.codegen = codegen_1, i.fetch = fetch_1, i.path = path, i.fs = i.inquire("fs"), i.toArray = function(r) {
2404
2404
  if (r) {
2405
- for (var l = Object.keys(r), d = new Array(l.length), h = 0; h < l.length; )
2406
- d[h] = r[l[h++]];
2405
+ for (var l = Object.keys(r), d = new Array(l.length), c = 0; c < l.length; )
2406
+ d[c] = r[l[c++]];
2407
2407
  return d;
2408
2408
  }
2409
2409
  return [];
2410
2410
  }, i.toObject = function(r) {
2411
2411
  for (var l = {}, d = 0; d < r.length; ) {
2412
- var h = r[d++], c = r[d++];
2413
- c !== void 0 && (l[h] = c);
2412
+ var c = r[d++], h = r[d++];
2413
+ h !== void 0 && (l[c] = h);
2414
2414
  }
2415
2415
  return l;
2416
2416
  };
@@ -2436,31 +2436,31 @@ function requireUtil() {
2436
2436
  var d = new n(l || r.name);
2437
2437
  return i.decorateRoot.add(d), d.ctor = r, Object.defineProperty(r, "$type", { value: d, enumerable: !1 }), Object.defineProperty(r.prototype, "$type", { value: d, enumerable: !1 }), d;
2438
2438
  };
2439
- var o = 0;
2439
+ var s = 0;
2440
2440
  return i.decorateEnum = function(r) {
2441
2441
  if (r.$type)
2442
2442
  return r.$type;
2443
2443
  a || (a = require_enum());
2444
- var l = new a("Enum" + o++, r);
2444
+ var l = new a("Enum" + s++, r);
2445
2445
  return i.decorateRoot.add(l), Object.defineProperty(r, "$type", { value: l, enumerable: !1 }), l;
2446
2446
  }, i.setProperty = function(r, l, d) {
2447
- function h(c, y, m) {
2447
+ function c(h, y, m) {
2448
2448
  var b = y.shift();
2449
2449
  if (b === "__proto__" || b === "prototype")
2450
- return c;
2450
+ return h;
2451
2451
  if (y.length > 0)
2452
- c[b] = h(c[b] || {}, y, m);
2452
+ h[b] = c(h[b] || {}, y, m);
2453
2453
  else {
2454
- var v = c[b];
2455
- v && (m = [].concat(v).concat(m)), c[b] = m;
2454
+ var v = h[b];
2455
+ v && (m = [].concat(v).concat(m)), h[b] = m;
2456
2456
  }
2457
- return c;
2457
+ return h;
2458
2458
  }
2459
2459
  if (typeof r != "object")
2460
2460
  throw TypeError("dst must be an object");
2461
2461
  if (!l)
2462
2462
  throw TypeError("path must be specified");
2463
- return l = l.split("."), h(r, l, d);
2463
+ return l = l.split("."), c(r, l, d);
2464
2464
  }, Object.defineProperty(i, "decorateRoot", {
2465
2465
  get: function() {
2466
2466
  return e.decorated || (e.decorated = new (requireRoot())());
@@ -2525,25 +2525,25 @@ function requireObject() {
2525
2525
  return (!t || !this.options || this.options[f] === void 0) && ((this.options || (this.options = {}))[f] = u), this;
2526
2526
  }, n.prototype.setParsedOption = function(f, u, t) {
2527
2527
  this.parsedOptions || (this.parsedOptions = []);
2528
- var o = this.parsedOptions;
2528
+ var s = this.parsedOptions;
2529
2529
  if (t) {
2530
- var s = o.find(function(d) {
2530
+ var o = s.find(function(d) {
2531
2531
  return Object.prototype.hasOwnProperty.call(d, f);
2532
2532
  });
2533
- if (s) {
2534
- var r = s[f];
2533
+ if (o) {
2534
+ var r = o[f];
2535
2535
  i.setProperty(r, t, u);
2536
2536
  } else
2537
- s = {}, s[f] = i.setProperty({}, t, u), o.push(s);
2537
+ o = {}, o[f] = i.setProperty({}, t, u), s.push(o);
2538
2538
  } else {
2539
2539
  var l = {};
2540
- l[f] = u, o.push(l);
2540
+ l[f] = u, s.push(l);
2541
2541
  }
2542
2542
  return this;
2543
2543
  }, n.prototype.setOptions = function(f, u) {
2544
2544
  if (f)
2545
- for (var t = Object.keys(f), o = 0; o < t.length; ++o)
2546
- this.setOption(t[o], f[t[o]], u);
2545
+ for (var t = Object.keys(f), s = 0; s < t.length; ++s)
2546
+ this.setOption(t[s], f[t[s]], u);
2547
2547
  return this;
2548
2548
  }, n.prototype.toString = function() {
2549
2549
  var f = this.constructor.className, u = this.fullName;
@@ -2559,16 +2559,16 @@ function require_enum() {
2559
2559
  var i = requireObject();
2560
2560
  ((a.prototype = Object.create(i.prototype)).constructor = a).className = "Enum";
2561
2561
  var e = requireNamespace(), n = requireUtil();
2562
- function a(f, u, t, o, s, r) {
2562
+ function a(f, u, t, s, o, r) {
2563
2563
  if (i.call(this, f, t), u && typeof u != "object")
2564
2564
  throw TypeError("values must be an object");
2565
- if (this.valuesById = {}, this.values = Object.create(this.valuesById), this.comment = o, this.comments = s || {}, this.valuesOptions = r, this.reserved = void 0, u)
2565
+ if (this.valuesById = {}, this.values = Object.create(this.valuesById), this.comment = s, this.comments = o || {}, this.valuesOptions = r, this.reserved = void 0, u)
2566
2566
  for (var l = Object.keys(u), d = 0; d < l.length; ++d)
2567
2567
  typeof u[l[d]] == "number" && (this.valuesById[this.values[l[d]] = u[l[d]]] = l[d]);
2568
2568
  }
2569
2569
  return a.fromJSON = function(u, t) {
2570
- var o = new a(u, t.values, t.options, t.comment, t.comments);
2571
- return o.reserved = t.reserved, o;
2570
+ var s = new a(u, t.values, t.options, t.comment, t.comments);
2571
+ return s.reserved = t.reserved, s;
2572
2572
  }, a.prototype.toJSON = function(u) {
2573
2573
  var t = u ? !!u.keepComments : !1;
2574
2574
  return n.toObject([
@@ -2585,7 +2585,7 @@ function require_enum() {
2585
2585
  "comments",
2586
2586
  t ? this.comments : void 0
2587
2587
  ]);
2588
- }, a.prototype.add = function(u, t, o, s) {
2588
+ }, a.prototype.add = function(u, t, s, o) {
2589
2589
  if (!n.isString(u))
2590
2590
  throw TypeError("name must be a string");
2591
2591
  if (!n.isInteger(t))
@@ -2602,7 +2602,7 @@ function require_enum() {
2602
2602
  this.values[u] = t;
2603
2603
  } else
2604
2604
  this.valuesById[this.values[u] = t] = u;
2605
- return s && (this.valuesOptions === void 0 && (this.valuesOptions = {}), this.valuesOptions[u] = s || null), this.comments[u] = o || null, this;
2605
+ return o && (this.valuesOptions === void 0 && (this.valuesOptions = {}), this.valuesOptions[u] = o || null), this.comments[u] = s || null, this;
2606
2606
  }, a.prototype.remove = function(u) {
2607
2607
  if (!n.isString(u))
2608
2608
  throw TypeError("name must be a string");
@@ -2621,16 +2621,16 @@ function requireEncoder() {
2621
2621
  if (hasRequiredEncoder) return encoder_1;
2622
2622
  hasRequiredEncoder = 1, encoder_1 = f;
2623
2623
  var i = require_enum(), e = requireTypes(), n = requireUtil();
2624
- function a(u, t, o, s) {
2625
- return t.resolvedType.group ? u("types[%i].encode(%s,w.uint32(%i)).uint32(%i)", o, s, (t.id << 3 | 3) >>> 0, (t.id << 3 | 4) >>> 0) : u("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()", o, s, (t.id << 3 | 2) >>> 0);
2624
+ function a(u, t, s, o) {
2625
+ return t.resolvedType.group ? u("types[%i].encode(%s,w.uint32(%i)).uint32(%i)", s, o, (t.id << 3 | 3) >>> 0, (t.id << 3 | 4) >>> 0) : u("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()", s, o, (t.id << 3 | 2) >>> 0);
2626
2626
  }
2627
2627
  function f(u) {
2628
- for (var t = n.codegen(["m", "w"], u.name + "$encode")("if(!w)")("w=Writer.create()"), o, s, r = (
2628
+ for (var t = n.codegen(["m", "w"], u.name + "$encode")("if(!w)")("w=Writer.create()"), s, o, r = (
2629
2629
  /* initializes */
2630
2630
  u.fieldsArray.slice().sort(n.compareFieldsById)
2631
- ), o = 0; o < r.length; ++o) {
2632
- var l = r[o].resolve(), d = u._fieldsArray.indexOf(l), h = l.resolvedType instanceof i ? "int32" : l.type, c = e.basic[h];
2633
- s = "m" + n.safeProp(l.name), l.map ? (t("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){", s, l.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){", s)("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, s) : t(".uint32(%i).%s(%s[ks[i]]).ldelim()", 16 | c, h, s), t("}")("}")) : l.repeated ? (t("if(%s!=null&&%s.length){", s, s), 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)", s)("w.%s(%s[i])", h, s)("w.ldelim()") : (t("for(var i=0;i<%s.length;++i)", s), c === void 0 ? a(t, l, d, s + "[i]") : t("w.uint32(%i).%s(%s[i])", (l.id << 3 | c) >>> 0, h, s)), t("}")) : (l.optional && t("if(%s!=null&&Object.hasOwnProperty.call(m,%j))", s, l.name), c === void 0 ? a(t, l, d, s) : t("w.uint32(%i).%s(%s)", (l.id << 3 | c) >>> 0, h, s));
2631
+ ), s = 0; s < r.length; ++s) {
2632
+ var l = r[s].resolve(), d = u._fieldsArray.indexOf(l), c = l.resolvedType instanceof i ? "int32" : l.type, h = e.basic[c];
2633
+ 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), h === 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 | h, c, o), t("}")("}")) : l.repeated ? (t("if(%s!=null&&%s.length){", o, o), l.packed && e.packed[c] !== 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])", c, o)("w.ldelim()") : (t("for(var i=0;i<%s.length;++i)", o), h === void 0 ? a(t, l, d, o + "[i]") : t("w.uint32(%i).%s(%s[i])", (l.id << 3 | h) >>> 0, c, o)), t("}")) : (l.optional && t("if(%s!=null&&Object.hasOwnProperty.call(m,%j))", o, l.name), h === void 0 ? a(t, l, d, o) : t("w.uint32(%i).%s(%s)", (l.id << 3 | h) >>> 0, c, o));
2634
2634
  }
2635
2635
  return t("return w");
2636
2636
  }
@@ -2686,12 +2686,10 @@ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data =
2686
2686
  ]);
2687
2687
  service_publish({ host: i.host }, u);
2688
2688
  }
2689
- e(
2690
- await import(
2691
- /* @vite-ignore */
2692
- "data:text/javascript;base64," + btoa(unescape(encodeURIComponent(f.data.code)))
2693
- )
2694
- );
2689
+ e(await import(
2690
+ /* @vite-ignore */
2691
+ f.data.code
2692
+ ));
2695
2693
  } else
2696
2694
  n(f.data.err);
2697
2695
  a.terminate();
@@ -2709,11 +2707,11 @@ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data =
2709
2707
  header(nil_xit_proto.MessageType.MessageType_ValueRequest),
2710
2708
  nil_xit_proto.ValueRequest.encode({ id: i, tag: e }).finish()
2711
2709
  ]),
2712
- (t, o) => {
2710
+ (t, s) => {
2713
2711
  if (t === nil_xit_proto.MessageType.MessageType_ValueResponse) {
2714
- const s = nil_xit_proto.ValueResponse.decode(o);
2715
- if (s.id === i && e === s.tag)
2716
- return s.values;
2712
+ const o = nil_xit_proto.ValueResponse.decode(s);
2713
+ if (o.id === i && e === o.tag)
2714
+ return o.values;
2717
2715
  }
2718
2716
  }
2719
2717
  ), u = {
@@ -2724,25 +2722,25 @@ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data =
2724
2722
  value_buffer: /* @__PURE__ */ new Map()
2725
2723
  };
2726
2724
  for (const t of f) {
2727
- const o = t.id, s = t.value, r = writable(t[s]);
2725
+ const s = t.id, o = t.value, r = writable(t[o]);
2728
2726
  r.subscribe((l) => {
2729
- const d = { id: o, [s]: l, value: s }, h = { id: i, tag: e, value: d };
2727
+ const d = { id: s, [o]: l, value: o }, c = { id: i, tag: e, value: d };
2730
2728
  a.publish(
2731
2729
  concat([
2732
2730
  header(nil_xit_proto.MessageType.MessageType_ValueUpdate),
2733
- nil_xit_proto.ValueUpdate.encode(h).finish()
2731
+ nil_xit_proto.ValueUpdate.encode(c).finish()
2734
2732
  ])
2735
2733
  );
2736
- }), u[s].set(o, r);
2734
+ }), u[o].set(s, r);
2737
2735
  }
2738
- return a.on_message((t, o) => {
2736
+ return a.on_message((t, s) => {
2739
2737
  var l;
2740
- const s = new DataView(o.buffer).getUint32(0, !1), r = o.slice(4);
2741
- if (s === nil_xit_proto.MessageType.MessageType_ValueUpdate) {
2738
+ const o = new DataView(s.buffer).getUint32(0, !1), r = s.slice(4);
2739
+ if (o === nil_xit_proto.MessageType.MessageType_ValueUpdate) {
2742
2740
  const d = nil_xit_proto.ValueUpdate.decode(r);
2743
2741
  if (d.id === i && e === d.tag) {
2744
- const h = d.value.value, c = (l = u[h]) == null ? void 0 : l.get(d.value.id);
2745
- c == null || c.set(d.value[h]);
2742
+ const c = d.value.value, h = (l = u[c]) == null ? void 0 : l.get(d.value.id);
2743
+ h == null || h.set(d.value[c]);
2746
2744
  }
2747
2745
  }
2748
2746
  }), u;
@@ -2758,11 +2756,11 @@ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data =
2758
2756
  header(nil_xit_proto.MessageType.MessageType_SignalRequest),
2759
2757
  nil_xit_proto.SignalRequest.encode({ id: i }).finish()
2760
2758
  ]),
2761
- (t, o) => {
2759
+ (t, s) => {
2762
2760
  if (t === nil_xit_proto.MessageType.MessageType_SignalResponse) {
2763
- const s = nil_xit_proto.SignalResponse.decode(o);
2764
- if (s.id === i)
2765
- return s.signals;
2761
+ const o = nil_xit_proto.SignalResponse.decode(s);
2762
+ if (o.id === i)
2763
+ return o.signals;
2766
2764
  }
2767
2765
  }
2768
2766
  ), u = {
@@ -2773,17 +2771,17 @@ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data =
2773
2771
  arg_string: /* @__PURE__ */ new Map(),
2774
2772
  arg_buffer: /* @__PURE__ */ new Map()
2775
2773
  };
2776
- for (const { id: t, type: o } of f)
2777
- o == null ? u.arg_none.set(t, () => {
2778
- const s = { frame_id: i, signal_id: t, tag: e };
2774
+ for (const { id: t, type: s } of f)
2775
+ s == null ? u.arg_none.set(t, () => {
2776
+ const o = { frame_id: i, signal_id: t, tag: e };
2779
2777
  a.publish(
2780
2778
  concat([
2781
2779
  header(nil_xit_proto.MessageType.MessageType_SignalNotify),
2782
- nil_xit_proto.SignalNotify.encode(s).finish()
2780
+ nil_xit_proto.SignalNotify.encode(o).finish()
2783
2781
  ])
2784
2782
  );
2785
- }) : u[o].set(t, (s) => {
2786
- const r = { frame_id: i, signal_id: t, tag: e, [o]: s };
2783
+ }) : u[s].set(t, (o) => {
2784
+ const r = { frame_id: i, signal_id: t, tag: e, [s]: o };
2787
2785
  a.publish(
2788
2786
  concat([
2789
2787
  header(nil_xit_proto.MessageType.MessageType_SignalNotify),
@@ -2802,14 +2800,16 @@ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data =
2802
2800
  json: (a, f, u) => {
2803
2801
  const t = i.value_buffer.get(a);
2804
2802
  if (t != null) {
2805
- let o = u.decode(get(t));
2803
+ let s = get(t), o = u.decode(s);
2806
2804
  return {
2807
- set: (s) => {
2808
- o = s, t.set(u.encode(o));
2805
+ set: (r) => {
2806
+ o = r, s = u.encode(o), t.set(s);
2809
2807
  },
2810
- subscribe: (s) => t.subscribe((r) => s(o)),
2811
- update: (s) => {
2812
- t.update((r) => (o = s(o), u.encode(o)));
2808
+ subscribe: (r) => t.subscribe((l) => {
2809
+ l !== s && (s = l, o = u.decode(s)), r(o);
2810
+ }),
2811
+ update: (r) => {
2812
+ t.update((l) => (o = r(o), s = u.encode(o), s));
2813
2813
  }
2814
2814
  };
2815
2815
  }
@@ -2832,11 +2832,11 @@ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data =
2832
2832
  loader: n
2833
2833
  }), create_app = async (i, e, n, a, f) => {
2834
2834
  await test_connection({ host: i });
2835
- const u = new Service$1({ host: i }), [t, o, { nil_xit_fn: s }] = await Promise.all([
2835
+ const u = new Service$1({ host: i }), [t, s, { nil_xit_fn: o }] = await Promise.all([
2836
2836
  make_values({ id: e, tag: n, host: i, service: u }),
2837
2837
  make_signals({ id: e, tag: n, host: i, service: u }),
2838
2838
  bundle({ host: i, cdn_url: a, id: e })
2839
- ]), { action: r } = await s({
2839
+ ]), { action: r } = await o({
2840
2840
  svelte: () => import("./svelte/index.js").then((l) => l.bT),
2841
2841
  "svelte/store": () => import("./svelte/store.js").then((l) => l.i),
2842
2842
  "svelte/animate": () => import("./svelte/animate.js"),
@@ -2851,47 +2851,37 @@ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data =
2851
2851
  });
2852
2852
  return (l) => {
2853
2853
  const d = /* @__PURE__ */ new Map();
2854
- d.set("nil.xit", create_context(t, o, f));
2855
- const { destroy: h } = r(l, d);
2854
+ d.set("nil.xit", create_context(t, s, f));
2855
+ const { destroy: c } = r(l, d);
2856
2856
  return u.start(), {
2857
2857
  destroy: () => {
2858
- u.stop(), h();
2858
+ u.stop(), c();
2859
2859
  }
2860
2860
  };
2861
2861
  };
2862
- }, create_action = async (i) => {
2863
- const e = async (f) => {
2864
- const u = await Promise.all(
2865
- f.map((t) => create_action({
2866
- server: i.server,
2867
- cdn_url: i.cdn_url,
2868
- frame: t.frame,
2869
- tag: t.tag
2870
- }))
2862
+ }, create_action = async ({ server: i, cdn_url: e, frame: n, tag: a }) => {
2863
+ const f = async (s) => {
2864
+ const o = await Promise.all(
2865
+ s.map(
2866
+ ({ frame: r, tag: l }) => create_action({
2867
+ server: i,
2868
+ cdn_url: e,
2869
+ frame: r,
2870
+ tag: l
2871
+ })
2872
+ )
2871
2873
  );
2872
- return (t) => {
2873
- const o = u.map(
2874
- (s) => mount(ActionLoader, { target: t, props: { action: s } })
2875
- );
2876
- return {
2877
- destroy: () => o.forEach((s) => unmount(s))
2878
- };
2879
- };
2880
- }, n = {
2881
- one: (f, u) => e([{ frame: f, tag: u }]),
2882
- all: (f) => e(f)
2883
- }, a = await create_app(
2884
- i.server,
2885
- i.frame,
2886
- i.tag ?? null,
2887
- i.cdn_url,
2888
- n
2889
- );
2890
- return (f) => {
2891
- const u = mount(ActionLoader, { target: f, props: { action: a } });
2892
- return {
2893
- destroy: () => unmount(u)
2874
+ return (r) => {
2875
+ const l = o.map((d) => mount(ActionLoader, { target: r, props: { action: d } }));
2876
+ return { destroy: () => l.forEach(unmount) };
2894
2877
  };
2878
+ }, t = await create_app(i, n, a ?? null, e, {
2879
+ one: (s, o) => f([{ frame: s, tag: o }]),
2880
+ all: (s) => f(s)
2881
+ });
2882
+ return (s) => {
2883
+ const o = mount(ActionLoader, { target: s, props: { action: t } });
2884
+ return { destroy: () => unmount(o) };
2895
2885
  };
2896
2886
  }, create_component = async (i, e) => (await create_action(e))(i);
2897
2887
  export {