@nil-/xit 0.1.10 → 0.1.12

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
@@ -108,8 +108,8 @@ function asPromise$1(i, e) {
108
108
  if (u = !1, l)
109
109
  o(l);
110
110
  else {
111
- for (var d = new Array(arguments.length - 1), c = 0; c < d.length; )
112
- d[c++] = arguments[c];
111
+ for (var d = new Array(arguments.length - 1), h = 0; h < d.length; )
112
+ d[h++] = arguments[h];
113
113
  s.apply(null, d);
114
114
  }
115
115
  };
@@ -134,43 +134,43 @@ var base64$1 = {};
134
134
  for (var n = new Array(64), a = new Array(123), f = 0; f < 64; )
135
135
  a[n[f] = f < 26 ? f + 65 : f < 52 ? f + 71 : f < 62 ? f - 4 : f - 59 | 43] = f++;
136
136
  e.encode = function(s, o, r) {
137
- for (var l = null, d = [], c = 0, h = 0, y; o < r; ) {
137
+ for (var l = null, d = [], h = 0, c = 0, p; o < r; ) {
138
138
  var m = s[o++];
139
- switch (h) {
139
+ switch (c) {
140
140
  case 0:
141
- d[c++] = n[m >> 2], y = (m & 3) << 4, h = 1;
141
+ d[h++] = n[m >> 2], p = (m & 3) << 4, c = 1;
142
142
  break;
143
143
  case 1:
144
- d[c++] = n[y | m >> 4], y = (m & 15) << 2, h = 2;
144
+ d[h++] = n[p | m >> 4], p = (m & 15) << 2, c = 2;
145
145
  break;
146
146
  case 2:
147
- d[c++] = n[y | m >> 6], d[c++] = n[m & 63], h = 0;
147
+ d[h++] = n[p | m >> 6], d[h++] = n[m & 63], c = 0;
148
148
  break;
149
149
  }
150
- c > 8191 && ((l || (l = [])).push(String.fromCharCode.apply(String, d)), c = 0);
150
+ h > 8191 && ((l || (l = [])).push(String.fromCharCode.apply(String, d)), h = 0);
151
151
  }
152
- 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));
152
+ return c && (d[h++] = n[p], 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));
153
153
  };
154
154
  var u = "invalid encoding";
155
155
  e.decode = function(s, o, r) {
156
- for (var l = r, d = 0, c, h = 0; h < s.length; ) {
157
- var y = s.charCodeAt(h++);
158
- if (y === 61 && d > 1)
156
+ for (var l = r, d = 0, h, c = 0; c < s.length; ) {
157
+ var p = s.charCodeAt(c++);
158
+ if (p === 61 && d > 1)
159
159
  break;
160
- if ((y = a[y]) === void 0)
160
+ if ((p = a[p]) === void 0)
161
161
  throw Error(u);
162
162
  switch (d) {
163
163
  case 0:
164
- c = y, d = 1;
164
+ h = p, d = 1;
165
165
  break;
166
166
  case 1:
167
- o[r++] = c << 2 | (y & 48) >> 4, c = y, d = 2;
167
+ o[r++] = h << 2 | (p & 48) >> 4, h = p, d = 2;
168
168
  break;
169
169
  case 2:
170
- o[r++] = (c & 15) << 4 | (y & 60) >> 2, c = y, d = 3;
170
+ o[r++] = (h & 15) << 4 | (p & 60) >> 2, h = p, d = 3;
171
171
  break;
172
172
  case 3:
173
- o[r++] = (c & 3) << 6 | y, d = 0;
173
+ o[r++] = (h & 3) << 6 | p, d = 0;
174
174
  break;
175
175
  }
176
176
  }
@@ -300,8 +300,8 @@ function factory(i) {
300
300
  }
301
301
  i.writeDoubleLE = e.bind(null, writeUintLE, 0, 4), i.writeDoubleBE = e.bind(null, writeUintBE, 4, 0);
302
302
  function n(a, f, u, t, s) {
303
- 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;
304
- return d === 2047 ? c ? NaN : l * (1 / 0) : d === 0 ? l * 5e-324 * c : l * Math.pow(2, d - 1075) * (c + 4503599627370496);
303
+ var o = a(t, s + f), r = a(t, s + u), l = (r >> 31) * 2 + 1, d = r >>> 20 & 2047, h = 4294967296 * (r & 1048575) + o;
304
+ return d === 2047 ? h ? NaN : l * (1 / 0) : d === 0 ? l * 5e-324 * h : l * Math.pow(2, d - 1075) * (h + 4503599627370496);
305
305
  }
306
306
  i.readDoubleLE = n.bind(null, readUintLE, 0, 4), i.readDoubleBE = n.bind(null, readUintBE, 4, 0);
307
307
  }(), i;
@@ -986,10 +986,10 @@ function codegen(i, e) {
986
986
  }
987
987
  return Function(t)();
988
988
  }
989
- for (var d = new Array(arguments.length - 1), c = 0; c < d.length; )
990
- d[c] = arguments[++c];
991
- if (c = 0, u = u.replace(/%([%dfijs])/g, function(y, m) {
992
- var b = d[c++];
989
+ for (var d = new Array(arguments.length - 1), h = 0; h < d.length; )
990
+ d[h] = arguments[++h];
991
+ if (h = 0, u = u.replace(/%([%dfijs])/g, function(p, m) {
992
+ var b = d[h++];
993
993
  switch (m) {
994
994
  case "d":
995
995
  case "f":
@@ -1002,7 +1002,7 @@ function codegen(i, e) {
1002
1002
  return String(b);
1003
1003
  }
1004
1004
  return "%";
1005
- }), c !== d.length)
1005
+ }), h !== d.length)
1006
1006
  throw Error("parameter count mismatch");
1007
1007
  return n.push(u), a;
1008
1008
  }
@@ -1250,8 +1250,8 @@ function requireField() {
1250
1250
  t.fromJSON = function(o, r) {
1251
1251
  return new t(o, r.id, r.type, r.rule, r.extend, r.options, r.comment);
1252
1252
  };
1253
- function t(s, o, r, l, d, c, h) {
1254
- 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)
1253
+ function t(s, o, r, l, d, h, c) {
1254
+ 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, s, h), !a.isInteger(o) || o < 0)
1255
1255
  throw TypeError("id must be a non-negative integer");
1256
1256
  if (!a.isString(r))
1257
1257
  throw TypeError("type must be a string");
@@ -1262,7 +1262,7 @@ function requireField() {
1262
1262
  l === "proto3_optional" && (l = "optional"), this.rule = l && l !== "optional" ? l : void 0, this.type = r, this.id = o, this.extend = d || void 0, this.required = l === "required", this.optional = !this.required, this.repeated = l === "repeated", this.map = !1, this.message = null, this.partOf = null, this.typeDefault = null, this.defaultValue = null, this.long = a.Long ? n.long[r] !== void 0 : (
1263
1263
  /* istanbul ignore next */
1264
1264
  !1
1265
- ), this.bytes = r === "bytes", this.resolvedType = null, this.extensionField = null, this.declaringField = null, this._packed = null, this.comment = h;
1265
+ ), this.bytes = r === "bytes", this.resolvedType = null, this.extensionField = null, this.declaringField = null, this._packed = null, this.comment = c;
1266
1266
  }
1267
1267
  return Object.defineProperty(t.prototype, "packed", {
1268
1268
  get: function() {
@@ -1297,8 +1297,8 @@ function requireField() {
1297
1297
  }
1298
1298
  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);
1299
1299
  }, t.d = function(o, r, l, d) {
1300
- return typeof r == "function" ? r = a.decorateType(r).name : r && typeof r == "object" && (r = a.decorateEnum(r).name), function(h, y) {
1301
- a.decorateType(h.constructor).add(new t(y, o, r, l, { default: d }));
1300
+ return typeof r == "function" ? r = a.decorateType(r).name : r && typeof r == "object" && (r = a.decorateEnum(r).name), function(c, p) {
1301
+ a.decorateType(c.constructor).add(new t(p, o, r, l, { default: d }));
1302
1302
  };
1303
1303
  }, t._configure = function(o) {
1304
1304
  f = o;
@@ -1374,27 +1374,27 @@ function requireNamespace() {
1374
1374
  var i = requireObject();
1375
1375
  ((o.prototype = Object.create(i.prototype)).constructor = o).className = "Namespace";
1376
1376
  var e = requireField(), n = requireUtil(), a = requireOneof(), f, u, t;
1377
- o.fromJSON = function(d, c) {
1378
- return new o(d, c.options).addJSON(c.nested);
1377
+ o.fromJSON = function(d, h) {
1378
+ return new o(d, h.options).addJSON(h.nested);
1379
1379
  };
1380
1380
  function s(l, d) {
1381
1381
  if (l && l.length) {
1382
- for (var c = {}, h = 0; h < l.length; ++h)
1383
- c[l[h].name] = l[h].toJSON(d);
1384
- return c;
1382
+ for (var h = {}, c = 0; c < l.length; ++c)
1383
+ h[l[c].name] = l[c].toJSON(d);
1384
+ return h;
1385
1385
  }
1386
1386
  }
1387
- o.arrayToJSON = s, o.isReservedId = function(d, c) {
1387
+ o.arrayToJSON = s, o.isReservedId = function(d, h) {
1388
1388
  if (d) {
1389
- for (var h = 0; h < d.length; ++h)
1390
- if (typeof d[h] != "string" && d[h][0] <= c && d[h][1] > c)
1389
+ for (var c = 0; c < d.length; ++c)
1390
+ if (typeof d[c] != "string" && d[c][0] <= h && d[c][1] > h)
1391
1391
  return !0;
1392
1392
  }
1393
1393
  return !1;
1394
- }, o.isReservedName = function(d, c) {
1394
+ }, o.isReservedName = function(d, h) {
1395
1395
  if (d) {
1396
- for (var h = 0; h < d.length; ++h)
1397
- if (d[h] === c)
1396
+ for (var c = 0; c < d.length; ++c)
1397
+ if (d[c] === h)
1398
1398
  return !0;
1399
1399
  }
1400
1400
  return !1;
@@ -1417,12 +1417,12 @@ function requireNamespace() {
1417
1417
  s(this.nestedArray, d)
1418
1418
  ]);
1419
1419
  }, o.prototype.addJSON = function(d) {
1420
- var c = this;
1420
+ var h = this;
1421
1421
  if (d)
1422
- for (var h = Object.keys(d), y = 0, m; y < h.length; ++y)
1423
- m = d[h[y]], c.add(
1422
+ for (var c = Object.keys(d), p = 0, m; p < c.length; ++p)
1423
+ m = d[c[p]], h.add(
1424
1424
  // most to least likely
1425
- (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)
1425
+ (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)(c[p], m)
1426
1426
  );
1427
1427
  return this;
1428
1428
  }, o.prototype.get = function(d) {
@@ -1437,12 +1437,12 @@ function requireNamespace() {
1437
1437
  if (!this.nested)
1438
1438
  this.nested = {};
1439
1439
  else {
1440
- var c = this.get(d.name);
1441
- if (c)
1442
- if (c instanceof o && d instanceof o && !(c instanceof f || c instanceof u)) {
1443
- for (var h = c.nestedArray, y = 0; y < h.length; ++y)
1444
- d.add(h[y]);
1445
- this.remove(c), this.nested || (this.nested = {}), d.setOptions(c.options, !0);
1440
+ var h = this.get(d.name);
1441
+ if (h)
1442
+ if (h instanceof o && d instanceof o && !(h instanceof f || h instanceof u)) {
1443
+ for (var c = h.nestedArray, p = 0; p < c.length; ++p)
1444
+ d.add(c[p]);
1445
+ this.remove(h), this.nested || (this.nested = {}), d.setOptions(h.options, !0);
1446
1446
  } else
1447
1447
  throw Error("duplicate name '" + d.name + "' in " + this);
1448
1448
  }
@@ -1453,69 +1453,69 @@ function requireNamespace() {
1453
1453
  if (d.parent !== this)
1454
1454
  throw Error(d + " is not a member of " + this);
1455
1455
  return delete this.nested[d.name], Object.keys(this.nested).length || (this.nested = void 0), d.onRemove(this), r(this);
1456
- }, o.prototype.define = function(d, c) {
1456
+ }, o.prototype.define = function(d, h) {
1457
1457
  if (n.isString(d))
1458
1458
  d = d.split(".");
1459
1459
  else if (!Array.isArray(d))
1460
1460
  throw TypeError("illegal path");
1461
1461
  if (d && d.length && d[0] === "")
1462
1462
  throw Error("path must be relative");
1463
- for (var h = this; d.length > 0; ) {
1464
- var y = d.shift();
1465
- if (h.nested && h.nested[y]) {
1466
- if (h = h.nested[y], !(h instanceof o))
1463
+ for (var c = this; d.length > 0; ) {
1464
+ var p = d.shift();
1465
+ if (c.nested && c.nested[p]) {
1466
+ if (c = c.nested[p], !(c instanceof o))
1467
1467
  throw Error("path conflicts with non-namespace objects");
1468
1468
  } else
1469
- h.add(h = new o(y));
1469
+ c.add(c = new o(p));
1470
1470
  }
1471
- return c && h.addJSON(c), h;
1471
+ return h && c.addJSON(h), c;
1472
1472
  }, o.prototype.resolveAll = function() {
1473
- for (var d = this.nestedArray, c = 0; c < d.length; )
1474
- d[c] instanceof o ? d[c++].resolveAll() : d[c++].resolve();
1473
+ for (var d = this.nestedArray, h = 0; h < d.length; )
1474
+ d[h] instanceof o ? d[h++].resolveAll() : d[h++].resolve();
1475
1475
  return this.resolve();
1476
- }, o.prototype.lookup = function(d, c, h) {
1477
- if (typeof c == "boolean" ? (h = c, c = void 0) : c && !Array.isArray(c) && (c = [c]), n.isString(d) && d.length) {
1476
+ }, o.prototype.lookup = function(d, h, c) {
1477
+ if (typeof h == "boolean" ? (c = h, h = void 0) : h && !Array.isArray(h) && (h = [h]), n.isString(d) && d.length) {
1478
1478
  if (d === ".")
1479
1479
  return this.root;
1480
1480
  d = d.split(".");
1481
1481
  } else if (!d.length)
1482
1482
  return this;
1483
1483
  if (d[0] === "")
1484
- return this.root.lookup(d.slice(1), c);
1485
- var y = this.get(d[0]);
1486
- if (y) {
1484
+ return this.root.lookup(d.slice(1), h);
1485
+ var p = this.get(d[0]);
1486
+ if (p) {
1487
1487
  if (d.length === 1) {
1488
- if (!c || c.indexOf(y.constructor) > -1)
1489
- return y;
1490
- } else if (y instanceof o && (y = y.lookup(d.slice(1), c, !0)))
1491
- return y;
1488
+ if (!h || h.indexOf(p.constructor) > -1)
1489
+ return p;
1490
+ } else if (p instanceof o && (p = p.lookup(d.slice(1), h, !0)))
1491
+ return p;
1492
1492
  } else
1493
1493
  for (var m = 0; m < this.nestedArray.length; ++m)
1494
- if (this._nestedArray[m] instanceof o && (y = this._nestedArray[m].lookup(d, c, !0)))
1495
- return y;
1496
- return this.parent === null || h ? null : this.parent.lookup(d, c);
1494
+ if (this._nestedArray[m] instanceof o && (p = this._nestedArray[m].lookup(d, h, !0)))
1495
+ return p;
1496
+ return this.parent === null || c ? null : this.parent.lookup(d, h);
1497
1497
  }, o.prototype.lookupType = function(d) {
1498
- var c = this.lookup(d, [f]);
1499
- if (!c)
1498
+ var h = this.lookup(d, [f]);
1499
+ if (!h)
1500
1500
  throw Error("no such type: " + d);
1501
- return c;
1501
+ return h;
1502
1502
  }, o.prototype.lookupEnum = function(d) {
1503
- var c = this.lookup(d, [t]);
1504
- if (!c)
1503
+ var h = this.lookup(d, [t]);
1504
+ if (!h)
1505
1505
  throw Error("no such Enum '" + d + "' in " + this);
1506
- return c;
1506
+ return h;
1507
1507
  }, o.prototype.lookupTypeOrEnum = function(d) {
1508
- var c = this.lookup(d, [f, t]);
1509
- if (!c)
1508
+ var h = this.lookup(d, [f, t]);
1509
+ if (!h)
1510
1510
  throw Error("no such Type or Enum '" + d + "' in " + this);
1511
- return c;
1511
+ return h;
1512
1512
  }, o.prototype.lookupService = function(d) {
1513
- var c = this.lookup(d, [u]);
1514
- if (!c)
1513
+ var h = this.lookup(d, [u]);
1514
+ if (!h)
1515
1515
  throw Error("no such Service '" + d + "' in " + this);
1516
- return c;
1517
- }, o._configure = function(l, d, c) {
1518
- f = l, u = d, t = c;
1516
+ return h;
1517
+ }, o._configure = function(l, d, h) {
1518
+ f = l, u = d, t = h;
1519
1519
  }, namespace;
1520
1520
  }
1521
1521
  var mapfield, hasRequiredMapfield;
@@ -1658,13 +1658,13 @@ function requireService() {
1658
1658
  }
1659
1659
  return i.prototype.remove.call(this, s);
1660
1660
  }, f.prototype.create = function(s, o, r) {
1661
- for (var l = new a.Service(s, o, r), d = 0, c; d < /* initializes */
1661
+ for (var l = new a.Service(s, o, r), d = 0, h; d < /* initializes */
1662
1662
  this.methodsArray.length; ++d) {
1663
- var h = n.lcFirst((c = this._methodsArray[d]).resolve().name).replace(/[^$\w_]/g, "");
1664
- l[h] = n.codegen(["r", "c"], n.isReserved(h) ? h + "_" : h)("return this.rpcCall(m,q,s,r,c)")({
1665
- m: c,
1666
- q: c.resolvedRequestType.ctor,
1667
- s: c.resolvedResponseType.ctor
1663
+ var c = n.lcFirst((h = this._methodsArray[d]).resolve().name).replace(/[^$\w_]/g, "");
1664
+ l[c] = n.codegen(["r", "c"], n.isReserved(c) ? c + "_" : c)("return this.rpcCall(m,q,s,r,c)")({
1665
+ m: h,
1666
+ q: h.resolvedRequestType.ctor,
1667
+ s: h.resolvedResponseType.ctor
1668
1668
  });
1669
1669
  }
1670
1670
  return l;
@@ -1712,8 +1712,8 @@ function requireDecoder() {
1712
1712
  return "missing required '" + u.name + "'";
1713
1713
  }
1714
1714
  function f(u) {
1715
- 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) {
1716
- return c.map;
1715
+ 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) {
1716
+ return h.map;
1717
1717
  }).length ? ",k,value" : ""))("while(r.pos<c){")("var t=r.uint32()");
1718
1718
  u.group && t("if((t&7)===4)")("break"), t("switch(t>>>3){");
1719
1719
  for (var s = 0; s < /* initializes */
@@ -1804,17 +1804,17 @@ function requireVerifier() {
1804
1804
  o.length && s("var p={}");
1805
1805
  for (var l = 0; l < /* initializes */
1806
1806
  t.fieldsArray.length; ++l) {
1807
- var d = t._fieldsArray[l].resolve(), c = "m" + e.safeProp(d.name);
1808
- if (d.optional && s("if(%s!=null&&m.hasOwnProperty(%j)){", c, d.name), d.map)
1809
- 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]]")("}");
1807
+ var d = t._fieldsArray[l].resolve(), h = "m" + e.safeProp(d.name);
1808
+ if (d.optional && s("if(%s!=null&&m.hasOwnProperty(%j)){", h, d.name), d.map)
1809
+ s("if(!util.isObject(%s))", h)("return%j", n(d, "object"))("var k=Object.keys(%s)", h)("for(var i=0;i<k.length;++i){"), f(s, d, "k[i]"), a(s, d, l, h + "[k[i]]")("}");
1810
1810
  else if (d.repeated)
1811
- 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]")("}");
1811
+ s("if(!Array.isArray(%s))", h)("return%j", n(d, "array"))("for(var i=0;i<%s.length;++i){", h), a(s, d, l, h + "[i]")("}");
1812
1812
  else {
1813
1813
  if (d.partOf) {
1814
- var h = e.safeProp(d.partOf.name);
1815
- 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);
1814
+ var c = e.safeProp(d.partOf.name);
1815
+ r[d.partOf.name] === 1 && s("if(p%s===1)", c)("return%j", d.partOf.name + ": multiple values"), r[d.partOf.name] = 1, s("p%s=1", c);
1816
1816
  }
1817
- a(s, d, l, c);
1817
+ a(s, d, l, h);
1818
1818
  }
1819
1819
  d.optional && s("}");
1820
1820
  }
@@ -1831,12 +1831,12 @@ function requireConverter() {
1831
1831
  if (s.resolvedType)
1832
1832
  if (s.resolvedType instanceof n) {
1833
1833
  t("switch(d%s){", r);
1834
- for (var d = s.resolvedType.values, c = Object.keys(d), h = 0; h < c.length; ++h)
1835
- 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");
1834
+ for (var d = s.resolvedType.values, h = Object.keys(d), c = 0; c < h.length; ++c)
1835
+ d[h[c]] === 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:", h[c])("case %i:", d[h[c]])("m%s=%j", r, d[h[c]])("break");
1836
1836
  t("}");
1837
1837
  } 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);
1838
1838
  else {
1839
- var y = !1;
1839
+ var p = !1;
1840
1840
  switch (s.type) {
1841
1841
  case "double":
1842
1842
  case "float":
@@ -1852,12 +1852,12 @@ function requireConverter() {
1852
1852
  t("m%s=d%s|0", r, r);
1853
1853
  break;
1854
1854
  case "uint64":
1855
- y = !0;
1855
+ p = !0;
1856
1856
  case "int64":
1857
1857
  case "sint64":
1858
1858
  case "fixed64":
1859
1859
  case "sfixed64":
1860
- t("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j", r, r, y)('else if(typeof d%s==="string")', r)("m%s=parseInt(d%s,10)", r, r)('else if(typeof d%s==="number")', r)("m%s=d%s", r, r)('else if(typeof d%s==="object")', r)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)", r, r, r, y ? "true" : "");
1860
+ t("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j", r, r, p)('else if(typeof d%s==="string")', r)("m%s=parseInt(d%s,10)", r, r)('else if(typeof d%s==="number")', r)("m%s=d%s", r, r)('else if(typeof d%s==="object")', r)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)", r, r, r, p ? "true" : "");
1861
1861
  break;
1862
1862
  case "bytes":
1863
1863
  t('if(typeof d%s==="string")', r)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)", r, r, r)("else if(d%s.length >= 0)", r)("m%s=d%s", r, r);
@@ -1877,25 +1877,25 @@ function requireConverter() {
1877
1877
  if (!o.length) return r("return new this.ctor");
1878
1878
  r("var m=new this.ctor");
1879
1879
  for (var l = 0; l < o.length; ++l) {
1880
- var d = o[l].resolve(), c = a.safeProp(d.name);
1881
- 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(
1880
+ var d = o[l].resolve(), h = a.safeProp(d.name);
1881
+ d.map ? (r("if(d%s){", h)('if(typeof d%s!=="object")', h)("throw TypeError(%j)", d.fullName + ": object expected")("m%s={}", h)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){", h), f(
1882
1882
  r,
1883
1883
  d,
1884
1884
  /* not sorted */
1885
1885
  l,
1886
- c + "[ks[i]]"
1887
- )("}")("}")) : 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(
1886
+ h + "[ks[i]]"
1887
+ )("}")("}")) : d.repeated ? (r("if(d%s){", h)("if(!Array.isArray(d%s))", h)("throw TypeError(%j)", d.fullName + ": array expected")("m%s=[]", h)("for(var i=0;i<d%s.length;++i){", h), f(
1888
1888
  r,
1889
1889
  d,
1890
1890
  /* not sorted */
1891
1891
  l,
1892
- c + "[i]"
1893
- )("}")("}")) : (d.resolvedType instanceof n || r("if(d%s!=null){", c), f(
1892
+ h + "[i]"
1893
+ )("}")("}")) : (d.resolvedType instanceof n || r("if(d%s!=null){", h), f(
1894
1894
  r,
1895
1895
  d,
1896
1896
  /* not sorted */
1897
1897
  l,
1898
- c
1898
+ h
1899
1899
  ), d.resolvedType instanceof n || r("}"));
1900
1900
  }
1901
1901
  return r("return m");
@@ -1932,50 +1932,50 @@ function requireConverter() {
1932
1932
  var o = s.fieldsArray.slice().sort(a.compareFieldsById);
1933
1933
  if (!o.length)
1934
1934
  return a.codegen()("return {}");
1935
- for (var r = a.codegen(["m", "o"], s.name + "$toObject")("if(!o)")("o={}")("var d={}"), l = [], d = [], c = [], h = 0; h < o.length; ++h)
1936
- o[h].partOf || (o[h].resolve().repeated ? l : o[h].map ? d : c).push(o[h]);
1935
+ for (var r = a.codegen(["m", "o"], s.name + "$toObject")("if(!o)")("o={}")("var d={}"), l = [], d = [], h = [], c = 0; c < o.length; ++c)
1936
+ o[c].partOf || (o[c].resolve().repeated ? l : o[c].map ? d : h).push(o[c]);
1937
1937
  if (l.length) {
1938
- for (r("if(o.arrays||o.defaults){"), h = 0; h < l.length; ++h) r("d%s=[]", a.safeProp(l[h].name));
1938
+ for (r("if(o.arrays||o.defaults){"), c = 0; c < l.length; ++c) r("d%s=[]", a.safeProp(l[c].name));
1939
1939
  r("}");
1940
1940
  }
1941
1941
  if (d.length) {
1942
- for (r("if(o.objects||o.defaults){"), h = 0; h < d.length; ++h) r("d%s={}", a.safeProp(d[h].name));
1942
+ for (r("if(o.objects||o.defaults){"), c = 0; c < d.length; ++c) r("d%s={}", a.safeProp(d[c].name));
1943
1943
  r("}");
1944
1944
  }
1945
- if (c.length) {
1946
- for (r("if(o.defaults){"), h = 0; h < c.length; ++h) {
1947
- var y = c[h], m = a.safeProp(y.name);
1948
- if (y.resolvedType instanceof n) r("d%s=o.enums===String?%j:%j", m, y.resolvedType.valuesById[y.typeDefault], y.typeDefault);
1949
- 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());
1950
- else if (y.bytes) {
1951
- var b = "[" + Array.prototype.slice.call(y.typeDefault).join(",") + "]";
1952
- r("if(o.bytes===String)d%s=%j", m, String.fromCharCode.apply(String, y.typeDefault))("else{")("d%s=%s", m, b)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)", m, m)("}");
1953
- } else r("d%s=%j", m, y.typeDefault);
1945
+ if (h.length) {
1946
+ for (r("if(o.defaults){"), c = 0; c < h.length; ++c) {
1947
+ var p = h[c], m = a.safeProp(p.name);
1948
+ if (p.resolvedType instanceof n) r("d%s=o.enums===String?%j:%j", m, p.resolvedType.valuesById[p.typeDefault], p.typeDefault);
1949
+ else if (p.long) r("if(util.Long){")("var n=new util.Long(%i,%i,%j)", p.typeDefault.low, p.typeDefault.high, p.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n", m)("}else")("d%s=o.longs===String?%j:%i", m, p.typeDefault.toString(), p.typeDefault.toNumber());
1950
+ else if (p.bytes) {
1951
+ var b = "[" + Array.prototype.slice.call(p.typeDefault).join(",") + "]";
1952
+ r("if(o.bytes===String)d%s=%j", m, String.fromCharCode.apply(String, p.typeDefault))("else{")("d%s=%s", m, b)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)", m, m)("}");
1953
+ } else r("d%s=%j", m, p.typeDefault);
1954
1954
  }
1955
1955
  r("}");
1956
1956
  }
1957
1957
  var v = !1;
1958
- for (h = 0; h < o.length; ++h) {
1959
- var y = o[h], p = s._fieldsArray.indexOf(y), m = a.safeProp(y.name);
1960
- 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(
1958
+ for (c = 0; c < o.length; ++c) {
1959
+ var p = o[c], y = s._fieldsArray.indexOf(p), m = a.safeProp(p.name);
1960
+ p.map ? (v || (v = !0, r("var ks2")), r("if(m%s&&(ks2=Object.keys(m%s)).length){", m, m)("d%s={}", m)("for(var j=0;j<ks2.length;++j){"), u(
1961
1961
  r,
1962
- y,
1963
- /* sorted */
1964
1962
  p,
1963
+ /* sorted */
1964
+ y,
1965
1965
  m + "[ks2[j]]"
1966
- )("}")) : y.repeated ? (r("if(m%s&&m%s.length){", m, m)("d%s=[]", m)("for(var j=0;j<m%s.length;++j){", m), u(
1966
+ )("}")) : p.repeated ? (r("if(m%s&&m%s.length){", m, m)("d%s=[]", m)("for(var j=0;j<m%s.length;++j){", m), u(
1967
1967
  r,
1968
- y,
1969
- /* sorted */
1970
1968
  p,
1969
+ /* sorted */
1970
+ y,
1971
1971
  m + "[j]"
1972
- )("}")) : (r("if(m%s!=null&&m.hasOwnProperty(%j)){", m, y.name), u(
1972
+ )("}")) : (r("if(m%s!=null&&m.hasOwnProperty(%j)){", m, p.name), u(
1973
1973
  r,
1974
- y,
1975
- /* sorted */
1976
1974
  p,
1975
+ /* sorted */
1976
+ y,
1977
1977
  m
1978
- ), y.partOf && r("if(o.oneofs)")("d%s=%j", a.safeProp(y.partOf.name), y.name)), r("}");
1978
+ ), p.partOf && r("if(o.oneofs)")("d%s=%j", a.safeProp(p.partOf.name), p.name)), r("}");
1979
1979
  }
1980
1980
  return r("return d");
1981
1981
  };
@@ -2019,9 +2019,9 @@ function requireType() {
2019
2019
  hasRequiredType = 1, type = m;
2020
2020
  var i = requireNamespace();
2021
2021
  ((m.prototype = Object.create(i.prototype)).constructor = m).className = "Type";
2022
- 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;
2023
- function m(v, p) {
2024
- 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;
2022
+ var e = require_enum(), n = requireOneof(), a = requireField(), f = requireMapfield(), u = requireService(), t = message, s = reader, o = writer, r = requireUtil(), l = requireEncoder(), d = requireDecoder(), h = requireVerifier(), c = requireConverter(), p = wrappers;
2023
+ function m(v, y) {
2024
+ i.call(this, v, y), this.fields = {}, this.oneofs = void 0, this.extensions = void 0, this.reserved = void 0, this.group = void 0, this._fieldsById = null, this._fieldsArray = null, this._oneofsArray = null, this._ctor = null;
2025
2025
  }
2026
2026
  Object.defineProperties(m.prototype, {
2027
2027
  /**
@@ -2035,8 +2035,8 @@ function requireType() {
2035
2035
  if (this._fieldsById)
2036
2036
  return this._fieldsById;
2037
2037
  this._fieldsById = {};
2038
- for (var v = Object.keys(this.fields), p = 0; p < v.length; ++p) {
2039
- var g = this.fields[v[p]], _ = g.id;
2038
+ for (var v = Object.keys(this.fields), y = 0; y < v.length; ++y) {
2039
+ var g = this.fields[v[y]], _ = g.id;
2040
2040
  if (this._fieldsById[_])
2041
2041
  throw Error("duplicate id " + _ + " in " + this);
2042
2042
  this._fieldsById[_] = g;
@@ -2077,8 +2077,8 @@ function requireType() {
2077
2077
  return this._ctor || (this.ctor = m.generateConstructor(this)());
2078
2078
  },
2079
2079
  set: function(v) {
2080
- var p = v.prototype;
2081
- p instanceof t || ((v.prototype = new t()).constructor = v, r.merge(v.prototype, p)), v.$type = v.prototype.$type = this, r.merge(v, t, !0), this._ctor = v;
2080
+ var y = v.prototype;
2081
+ y instanceof t || ((v.prototype = new t()).constructor = v, r.merge(v.prototype, y)), v.$type = v.prototype.$type = this, r.merge(v, t, !0), this._ctor = v;
2082
2082
  for (var g = 0; g < /* initializes */
2083
2083
  this.fieldsArray.length; ++g)
2084
2084
  this._fieldsArray[g].resolve();
@@ -2092,16 +2092,16 @@ function requireType() {
2092
2092
  g && Object.defineProperties(v.prototype, _);
2093
2093
  }
2094
2094
  }
2095
- }), m.generateConstructor = function(p) {
2096
- for (var g = r.codegen(["p"], p.name), _ = 0, R; _ < p.fieldsArray.length; ++_)
2097
- (R = p._fieldsArray[_]).map ? g("this%s={}", r.safeProp(R.name)) : R.repeated && g("this%s=[]", r.safeProp(R.name));
2095
+ }), m.generateConstructor = function(y) {
2096
+ for (var g = r.codegen(["p"], y.name), _ = 0, R; _ < y.fieldsArray.length; ++_)
2097
+ (R = y._fieldsArray[_]).map ? g("this%s={}", r.safeProp(R.name)) : R.repeated && g("this%s=[]", r.safeProp(R.name));
2098
2098
  return g("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]");
2099
2099
  };
2100
2100
  function b(v) {
2101
2101
  return v._fieldsById = v._fieldsArray = v._oneofsArray = null, delete v.encode, delete v.decode, delete v.verify, v;
2102
2102
  }
2103
- return m.fromJSON = function(p, g) {
2104
- var _ = new m(p, g.options);
2103
+ return m.fromJSON = function(y, g) {
2104
+ var _ = new m(y, g.options);
2105
2105
  _.extensions = g.extensions, _.reserved = g.reserved;
2106
2106
  for (var R = Object.keys(g.fields), O = 0; O < R.length; ++O)
2107
2107
  _.add(
@@ -2119,17 +2119,17 @@ function requireType() {
2119
2119
  );
2120
2120
  }
2121
2121
  return g.extensions && g.extensions.length && (_.extensions = g.extensions), g.reserved && g.reserved.length && (_.reserved = g.reserved), g.group && (_.group = !0), g.comment && (_.comment = g.comment), _;
2122
- }, m.prototype.toJSON = function(p) {
2123
- var g = i.prototype.toJSON.call(this, p), _ = p ? !!p.keepComments : !1;
2122
+ }, m.prototype.toJSON = function(y) {
2123
+ var g = i.prototype.toJSON.call(this, y), _ = y ? !!y.keepComments : !1;
2124
2124
  return r.toObject([
2125
2125
  "options",
2126
2126
  g && g.options || void 0,
2127
2127
  "oneofs",
2128
- i.arrayToJSON(this.oneofsArray, p),
2128
+ i.arrayToJSON(this.oneofsArray, y),
2129
2129
  "fields",
2130
2130
  i.arrayToJSON(this.fieldsArray.filter(function(R) {
2131
2131
  return !R.declaringField;
2132
- }), p) || {},
2132
+ }), y) || {},
2133
2133
  "extensions",
2134
2134
  this.extensions && this.extensions.length ? this.extensions : void 0,
2135
2135
  "reserved",
@@ -2142,50 +2142,50 @@ function requireType() {
2142
2142
  _ ? this.comment : void 0
2143
2143
  ]);
2144
2144
  }, m.prototype.resolveAll = function() {
2145
- for (var p = this.fieldsArray, g = 0; g < p.length; )
2146
- p[g++].resolve();
2145
+ for (var y = this.fieldsArray, g = 0; g < y.length; )
2146
+ y[g++].resolve();
2147
2147
  var _ = this.oneofsArray;
2148
2148
  for (g = 0; g < _.length; )
2149
2149
  _[g++].resolve();
2150
2150
  return i.prototype.resolveAll.call(this);
2151
- }, m.prototype.get = function(p) {
2152
- return this.fields[p] || this.oneofs && this.oneofs[p] || this.nested && this.nested[p] || null;
2153
- }, m.prototype.add = function(p) {
2154
- if (this.get(p.name))
2155
- throw Error("duplicate name '" + p.name + "' in " + this);
2156
- if (p instanceof a && p.extend === void 0) {
2151
+ }, m.prototype.get = function(y) {
2152
+ return this.fields[y] || this.oneofs && this.oneofs[y] || this.nested && this.nested[y] || null;
2153
+ }, m.prototype.add = function(y) {
2154
+ if (this.get(y.name))
2155
+ throw Error("duplicate name '" + y.name + "' in " + this);
2156
+ if (y instanceof a && y.extend === void 0) {
2157
2157
  if (this._fieldsById ? (
2158
2158
  /* istanbul ignore next */
2159
- this._fieldsById[p.id]
2160
- ) : this.fieldsById[p.id])
2161
- throw Error("duplicate id " + p.id + " in " + this);
2162
- if (this.isReservedId(p.id))
2163
- throw Error("id " + p.id + " is reserved in " + this);
2164
- if (this.isReservedName(p.name))
2165
- throw Error("name '" + p.name + "' is reserved in " + this);
2166
- return p.parent && p.parent.remove(p), this.fields[p.name] = p, p.message = this, p.onAdd(this), b(this);
2167
- }
2168
- return p instanceof n ? (this.oneofs || (this.oneofs = {}), this.oneofs[p.name] = p, p.onAdd(this), b(this)) : i.prototype.add.call(this, p);
2169
- }, m.prototype.remove = function(p) {
2170
- if (p instanceof a && p.extend === void 0) {
2171
- if (!this.fields || this.fields[p.name] !== p)
2172
- throw Error(p + " is not a member of " + this);
2173
- return delete this.fields[p.name], p.parent = null, p.onRemove(this), b(this);
2174
- }
2175
- if (p instanceof n) {
2176
- if (!this.oneofs || this.oneofs[p.name] !== p)
2177
- throw Error(p + " is not a member of " + this);
2178
- return delete this.oneofs[p.name], p.parent = null, p.onRemove(this), b(this);
2179
- }
2180
- return i.prototype.remove.call(this, p);
2181
- }, m.prototype.isReservedId = function(p) {
2182
- return i.isReservedId(this.reserved, p);
2183
- }, m.prototype.isReservedName = function(p) {
2184
- return i.isReservedName(this.reserved, p);
2185
- }, m.prototype.create = function(p) {
2186
- return new this.ctor(p);
2159
+ this._fieldsById[y.id]
2160
+ ) : this.fieldsById[y.id])
2161
+ throw Error("duplicate id " + y.id + " in " + this);
2162
+ if (this.isReservedId(y.id))
2163
+ throw Error("id " + y.id + " is reserved in " + this);
2164
+ if (this.isReservedName(y.name))
2165
+ throw Error("name '" + y.name + "' is reserved in " + this);
2166
+ return y.parent && y.parent.remove(y), this.fields[y.name] = y, y.message = this, y.onAdd(this), b(this);
2167
+ }
2168
+ return y instanceof n ? (this.oneofs || (this.oneofs = {}), this.oneofs[y.name] = y, y.onAdd(this), b(this)) : i.prototype.add.call(this, y);
2169
+ }, m.prototype.remove = function(y) {
2170
+ if (y instanceof a && y.extend === void 0) {
2171
+ if (!this.fields || this.fields[y.name] !== y)
2172
+ throw Error(y + " is not a member of " + this);
2173
+ return delete this.fields[y.name], y.parent = null, y.onRemove(this), b(this);
2174
+ }
2175
+ if (y instanceof n) {
2176
+ if (!this.oneofs || this.oneofs[y.name] !== y)
2177
+ throw Error(y + " is not a member of " + this);
2178
+ return delete this.oneofs[y.name], y.parent = null, y.onRemove(this), b(this);
2179
+ }
2180
+ return i.prototype.remove.call(this, y);
2181
+ }, m.prototype.isReservedId = function(y) {
2182
+ return i.isReservedId(this.reserved, y);
2183
+ }, m.prototype.isReservedName = function(y) {
2184
+ return i.isReservedName(this.reserved, y);
2185
+ }, m.prototype.create = function(y) {
2186
+ return new this.ctor(y);
2187
2187
  }, m.prototype.setup = function() {
2188
- for (var p = this.fullName, g = [], _ = 0; _ < /* initializes */
2188
+ for (var y = this.fullName, g = [], _ = 0; _ < /* initializes */
2189
2189
  this.fieldsArray.length; ++_)
2190
2190
  g.push(this._fieldsArray[_].resolve().resolvedType);
2191
2191
  this.encode = l(this)({
@@ -2196,39 +2196,39 @@ function requireType() {
2196
2196
  Reader: s,
2197
2197
  types: g,
2198
2198
  util: r
2199
- }), this.verify = c(this)({
2199
+ }), this.verify = h(this)({
2200
2200
  types: g,
2201
2201
  util: r
2202
- }), this.fromObject = h.fromObject(this)({
2202
+ }), this.fromObject = c.fromObject(this)({
2203
2203
  types: g,
2204
2204
  util: r
2205
- }), this.toObject = h.toObject(this)({
2205
+ }), this.toObject = c.toObject(this)({
2206
2206
  types: g,
2207
2207
  util: r
2208
2208
  });
2209
- var R = y[p];
2209
+ var R = p[y];
2210
2210
  if (R) {
2211
2211
  var O = Object.create(this);
2212
2212
  O.fromObject = this.fromObject, this.fromObject = R.fromObject.bind(O), O.toObject = this.toObject, this.toObject = R.toObject.bind(O);
2213
2213
  }
2214
2214
  return this;
2215
- }, m.prototype.encode = function(p, g) {
2216
- return this.setup().encode(p, g);
2217
- }, m.prototype.encodeDelimited = function(p, g) {
2218
- return this.encode(p, g && g.len ? g.fork() : g).ldelim();
2219
- }, m.prototype.decode = function(p, g) {
2220
- return this.setup().decode(p, g);
2221
- }, m.prototype.decodeDelimited = function(p) {
2222
- return p instanceof s || (p = s.create(p)), this.decode(p, p.uint32());
2223
- }, m.prototype.verify = function(p) {
2224
- return this.setup().verify(p);
2225
- }, m.prototype.fromObject = function(p) {
2226
- return this.setup().fromObject(p);
2227
- }, m.prototype.toObject = function(p, g) {
2228
- return this.setup().toObject(p, g);
2229
- }, m.d = function(p) {
2215
+ }, m.prototype.encode = function(y, g) {
2216
+ return this.setup().encode(y, g);
2217
+ }, m.prototype.encodeDelimited = function(y, g) {
2218
+ return this.encode(y, g && g.len ? g.fork() : g).ldelim();
2219
+ }, m.prototype.decode = function(y, g) {
2220
+ return this.setup().decode(y, g);
2221
+ }, m.prototype.decodeDelimited = function(y) {
2222
+ return y instanceof s || (y = s.create(y)), this.decode(y, y.uint32());
2223
+ }, m.prototype.verify = function(y) {
2224
+ return this.setup().verify(y);
2225
+ }, m.prototype.fromObject = function(y) {
2226
+ return this.setup().fromObject(y);
2227
+ }, m.prototype.toObject = function(y, g) {
2228
+ return this.setup().toObject(y, g);
2229
+ }, m.d = function(y) {
2230
2230
  return function(_) {
2231
- r.decorateType(_, p);
2231
+ r.decorateType(_, y);
2232
2232
  };
2233
2233
  }, type;
2234
2234
  }
@@ -2239,21 +2239,21 @@ function requireRoot() {
2239
2239
  var i = requireNamespace();
2240
2240
  ((o.prototype = Object.create(i.prototype)).constructor = o).className = "Root";
2241
2241
  var e = requireField(), n = require_enum(), a = requireOneof(), f = requireUtil(), u, t, s;
2242
- function o(c) {
2243
- i.call(this, "", c), this.deferred = [], this.files = [];
2242
+ function o(h) {
2243
+ i.call(this, "", h), this.deferred = [], this.files = [];
2244
2244
  }
2245
- o.fromJSON = function(h, y) {
2246
- return y || (y = new o()), h.options && y.setOptions(h.options), y.addJSON(h.nested);
2245
+ o.fromJSON = function(c, p) {
2246
+ return p || (p = new o()), c.options && p.setOptions(c.options), p.addJSON(c.nested);
2247
2247
  }, o.prototype.resolvePath = f.path.resolve, o.prototype.fetch = f.fetch;
2248
2248
  function r() {
2249
2249
  }
2250
- o.prototype.load = function c(h, y, m) {
2251
- typeof y == "function" && (m = y, y = void 0);
2250
+ o.prototype.load = function h(c, p, m) {
2251
+ typeof p == "function" && (m = p, p = void 0);
2252
2252
  var b = this;
2253
2253
  if (!m)
2254
- return f.asPromise(c, b, h, y);
2254
+ return f.asPromise(h, b, c, p);
2255
2255
  var v = m === r;
2256
- function p(q, A) {
2256
+ function y(q, A) {
2257
2257
  if (m) {
2258
2258
  if (v)
2259
2259
  throw q;
@@ -2275,7 +2275,7 @@ function requireRoot() {
2275
2275
  b.setOptions(A.options).addJSON(A.nested);
2276
2276
  else {
2277
2277
  t.filename = q;
2278
- var k = t(A, b, y), B, x = 0;
2278
+ var k = t(A, b, p), B, x = 0;
2279
2279
  if (k.imports)
2280
2280
  for (; x < k.imports.length; ++x)
2281
2281
  (B = g(k.imports[x]) || b.resolvePath(q, k.imports[x])) && R(B);
@@ -2284,9 +2284,9 @@ function requireRoot() {
2284
2284
  (B = g(k.weakImports[x]) || b.resolvePath(q, k.weakImports[x])) && R(B, !0);
2285
2285
  }
2286
2286
  } catch (V) {
2287
- p(V);
2287
+ y(V);
2288
2288
  }
2289
- !v && !O && p(null, b);
2289
+ !v && !O && y(null, b);
2290
2290
  }
2291
2291
  function R(q, A) {
2292
2292
  if (q = g(q) || q, !(b.files.indexOf(q) > -1)) {
@@ -2301,7 +2301,7 @@ function requireRoot() {
2301
2301
  try {
2302
2302
  k = f.fs.readFileSync(q).toString("utf8");
2303
2303
  } catch (B) {
2304
- A || p(B);
2304
+ A || y(B);
2305
2305
  return;
2306
2306
  }
2307
2307
  _(q, k);
@@ -2309,7 +2309,7 @@ function requireRoot() {
2309
2309
  ++O, b.fetch(q, function(B, x) {
2310
2310
  if (--O, !!m) {
2311
2311
  if (B) {
2312
- A ? O || p(null, b) : p(B);
2312
+ A ? O || y(null, b) : y(B);
2313
2313
  return;
2314
2314
  }
2315
2315
  _(q, x);
@@ -2318,73 +2318,73 @@ function requireRoot() {
2318
2318
  }
2319
2319
  }
2320
2320
  var O = 0;
2321
- f.isString(h) && (h = [h]);
2322
- for (var T = 0, J; T < h.length; ++T)
2323
- (J = b.resolvePath("", h[T])) && R(J);
2321
+ f.isString(c) && (c = [c]);
2322
+ for (var T = 0, J; T < c.length; ++T)
2323
+ (J = b.resolvePath("", c[T])) && R(J);
2324
2324
  if (v)
2325
2325
  return b;
2326
- O || p(null, b);
2327
- }, o.prototype.loadSync = function(h, y) {
2326
+ O || y(null, b);
2327
+ }, o.prototype.loadSync = function(c, p) {
2328
2328
  if (!f.isNode)
2329
2329
  throw Error("not supported");
2330
- return this.load(h, y, r);
2330
+ return this.load(c, p, r);
2331
2331
  }, o.prototype.resolveAll = function() {
2332
2332
  if (this.deferred.length)
2333
- throw Error("unresolvable extensions: " + this.deferred.map(function(h) {
2334
- return "'extend " + h.extend + "' in " + h.parent.fullName;
2333
+ throw Error("unresolvable extensions: " + this.deferred.map(function(c) {
2334
+ return "'extend " + c.extend + "' in " + c.parent.fullName;
2335
2335
  }).join(", "));
2336
2336
  return i.prototype.resolveAll.call(this);
2337
2337
  };
2338
2338
  var l = /^[A-Z]/;
2339
- function d(c, h) {
2340
- var y = h.parent.lookup(h.extend);
2341
- if (y) {
2342
- var m = new e(h.fullName, h.id, h.type, h.rule, void 0, h.options);
2343
- return y.get(m.name) || (m.declaringField = h, h.extensionField = m, y.add(m)), !0;
2339
+ function d(h, c) {
2340
+ var p = c.parent.lookup(c.extend);
2341
+ if (p) {
2342
+ var m = new e(c.fullName, c.id, c.type, c.rule, void 0, c.options);
2343
+ return p.get(m.name) || (m.declaringField = c, c.extensionField = m, p.add(m)), !0;
2344
2344
  }
2345
2345
  return !1;
2346
2346
  }
2347
- return o.prototype._handleAdd = function(h) {
2348
- if (h instanceof e)
2347
+ return o.prototype._handleAdd = function(c) {
2348
+ if (c instanceof e)
2349
2349
  /* an extension field (implies not part of a oneof) */
2350
- h.extend !== void 0 && /* not already handled */
2351
- !h.extensionField && (d(this, h) || this.deferred.push(h));
2352
- else if (h instanceof n)
2353
- l.test(h.name) && (h.parent[h.name] = h.values);
2354
- else if (!(h instanceof a)) {
2355
- if (h instanceof u)
2356
- for (var y = 0; y < this.deferred.length; )
2357
- d(this, this.deferred[y]) ? this.deferred.splice(y, 1) : ++y;
2350
+ c.extend !== void 0 && /* not already handled */
2351
+ !c.extensionField && (d(this, c) || this.deferred.push(c));
2352
+ else if (c instanceof n)
2353
+ l.test(c.name) && (c.parent[c.name] = c.values);
2354
+ else if (!(c instanceof a)) {
2355
+ if (c instanceof u)
2356
+ for (var p = 0; p < this.deferred.length; )
2357
+ d(this, this.deferred[p]) ? this.deferred.splice(p, 1) : ++p;
2358
2358
  for (var m = 0; m < /* initializes */
2359
- h.nestedArray.length; ++m)
2360
- this._handleAdd(h._nestedArray[m]);
2361
- l.test(h.name) && (h.parent[h.name] = h);
2359
+ c.nestedArray.length; ++m)
2360
+ this._handleAdd(c._nestedArray[m]);
2361
+ l.test(c.name) && (c.parent[c.name] = c);
2362
2362
  }
2363
- }, o.prototype._handleRemove = function(h) {
2364
- if (h instanceof e) {
2363
+ }, o.prototype._handleRemove = function(c) {
2364
+ if (c instanceof e) {
2365
2365
  if (
2366
2366
  /* an extension field */
2367
- h.extend !== void 0
2367
+ c.extend !== void 0
2368
2368
  )
2369
2369
  if (
2370
2370
  /* already handled */
2371
- h.extensionField
2371
+ c.extensionField
2372
2372
  )
2373
- h.extensionField.parent.remove(h.extensionField), h.extensionField = null;
2373
+ c.extensionField.parent.remove(c.extensionField), c.extensionField = null;
2374
2374
  else {
2375
- var y = this.deferred.indexOf(h);
2376
- y > -1 && this.deferred.splice(y, 1);
2375
+ var p = this.deferred.indexOf(c);
2376
+ p > -1 && this.deferred.splice(p, 1);
2377
2377
  }
2378
- } else if (h instanceof n)
2379
- l.test(h.name) && delete h.parent[h.name];
2380
- else if (h instanceof i) {
2378
+ } else if (c instanceof n)
2379
+ l.test(c.name) && delete c.parent[c.name];
2380
+ else if (c instanceof i) {
2381
2381
  for (var m = 0; m < /* initializes */
2382
- h.nestedArray.length; ++m)
2383
- this._handleRemove(h._nestedArray[m]);
2384
- l.test(h.name) && delete h.parent[h.name];
2382
+ c.nestedArray.length; ++m)
2383
+ this._handleRemove(c._nestedArray[m]);
2384
+ l.test(c.name) && delete c.parent[c.name];
2385
2385
  }
2386
- }, o._configure = function(c, h, y) {
2387
- u = c, t = h, s = y;
2386
+ }, o._configure = function(h, c, p) {
2387
+ u = h, t = c, s = p;
2388
2388
  }, root;
2389
2389
  }
2390
2390
  var hasRequiredUtil;
@@ -2394,15 +2394,15 @@ function requireUtil() {
2394
2394
  var i = util$1.exports = requireMinimal(), e = roots, n, a;
2395
2395
  i.codegen = codegen_1, i.fetch = fetch_1, i.path = path, i.fs = i.inquire("fs"), i.toArray = function(r) {
2396
2396
  if (r) {
2397
- for (var l = Object.keys(r), d = new Array(l.length), c = 0; c < l.length; )
2398
- d[c] = r[l[c++]];
2397
+ for (var l = Object.keys(r), d = new Array(l.length), h = 0; h < l.length; )
2398
+ d[h] = r[l[h++]];
2399
2399
  return d;
2400
2400
  }
2401
2401
  return [];
2402
2402
  }, i.toObject = function(r) {
2403
2403
  for (var l = {}, d = 0; d < r.length; ) {
2404
- var c = r[d++], h = r[d++];
2405
- h !== void 0 && (l[c] = h);
2404
+ var h = r[d++], c = r[d++];
2405
+ c !== void 0 && (l[h] = c);
2406
2406
  }
2407
2407
  return l;
2408
2408
  };
@@ -2436,23 +2436,23 @@ function requireUtil() {
2436
2436
  var l = new a("Enum" + s++, r);
2437
2437
  return i.decorateRoot.add(l), Object.defineProperty(r, "$type", { value: l, enumerable: !1 }), l;
2438
2438
  }, i.setProperty = function(r, l, d) {
2439
- function c(h, y, m) {
2440
- var b = y.shift();
2439
+ function h(c, p, m) {
2440
+ var b = p.shift();
2441
2441
  if (b === "__proto__" || b === "prototype")
2442
- return h;
2443
- if (y.length > 0)
2444
- h[b] = c(h[b] || {}, y, m);
2442
+ return c;
2443
+ if (p.length > 0)
2444
+ c[b] = h(c[b] || {}, p, m);
2445
2445
  else {
2446
- var v = h[b];
2447
- v && (m = [].concat(v).concat(m)), h[b] = m;
2446
+ var v = c[b];
2447
+ v && (m = [].concat(v).concat(m)), c[b] = m;
2448
2448
  }
2449
- return h;
2449
+ return c;
2450
2450
  }
2451
2451
  if (typeof r != "object")
2452
2452
  throw TypeError("dst must be an object");
2453
2453
  if (!l)
2454
2454
  throw TypeError("path must be specified");
2455
- return l = l.split("."), c(r, l, d);
2455
+ return l = l.split("."), h(r, l, d);
2456
2456
  }, Object.defineProperty(i, "decorateRoot", {
2457
2457
  get: function() {
2458
2458
  return e.decorated || (e.decorated = new (requireRoot())());
@@ -2621,8 +2621,8 @@ function requireEncoder() {
2621
2621
  /* initializes */
2622
2622
  u.fieldsArray.slice().sort(n.compareFieldsById)
2623
2623
  ), s = 0; s < r.length; ++s) {
2624
- var l = r[s].resolve(), d = u._fieldsArray.indexOf(l), c = l.resolvedType instanceof i ? "int32" : l.type, h = e.basic[c];
2625
- o = "m" + n.safeProp(l.name), l.map ? (t("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){", o, l.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){", o)("w.uint32(%i).fork().uint32(%i).%s(ks[i])", (l.id << 3 | 2) >>> 0, 8 | e.mapKey[l.keyType], l.keyType), 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));
2624
+ var l = r[s].resolve(), d = u._fieldsArray.indexOf(l), h = l.resolvedType instanceof i ? "int32" : l.type, c = e.basic[h];
2625
+ o = "m" + n.safeProp(l.name), l.map ? (t("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){", o, l.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){", o)("w.uint32(%i).fork().uint32(%i).%s(ks[i])", (l.id << 3 | 2) >>> 0, 8 | e.mapKey[l.keyType], l.keyType), c === void 0 ? t("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()", d, o) : t(".uint32(%i).%s(%s[ks[i]]).ldelim()", 16 | c, h, o), t("}")("}")) : l.repeated ? (t("if(%s!=null&&%s.length){", o, o), l.packed && e.packed[h] !== void 0 ? t("w.uint32(%i).fork()", (l.id << 3 | 2) >>> 0)("for(var i=0;i<%s.length;++i)", o)("w.%s(%s[i])", h, o)("w.ldelim()") : (t("for(var i=0;i<%s.length;++i)", o), c === void 0 ? a(t, l, d, o + "[i]") : t("w.uint32(%i).%s(%s[i])", (l.id << 3 | c) >>> 0, h, o)), t("}")) : (l.optional && t("if(%s!=null&&Object.hasOwnProperty.call(m,%j))", o, l.name), c === void 0 ? a(t, l, d, o) : t("w.uint32(%i).%s(%s)", (l.id << 3 | c) >>> 0, h, o));
2626
2626
  }
2627
2627
  return t("return w");
2628
2628
  }
@@ -2716,11 +2716,11 @@ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data =
2716
2716
  for (const t of f) {
2717
2717
  const s = t.id, o = t.value, r = writable(t[o]);
2718
2718
  r.subscribe((l) => {
2719
- const d = { id: s, [o]: l, value: o }, c = { id: i, tag: e, value: d };
2719
+ const d = { id: s, [o]: l, value: o }, h = { id: i, tag: e, value: d };
2720
2720
  a.publish(
2721
2721
  concat([
2722
2722
  header(nil_xit_proto.MessageType.MessageType_ValueUpdate),
2723
- nil_xit_proto.ValueUpdate.encode(c).finish()
2723
+ nil_xit_proto.ValueUpdate.encode(h).finish()
2724
2724
  ])
2725
2725
  );
2726
2726
  }), u[o].set(s, r);
@@ -2731,8 +2731,8 @@ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data =
2731
2731
  if (o === nil_xit_proto.MessageType.MessageType_ValueUpdate) {
2732
2732
  const d = nil_xit_proto.ValueUpdate.decode(r);
2733
2733
  if (d.id === i && e === d.tag) {
2734
- const c = d.value.value, h = (l = u[c]) == null ? void 0 : l.get(d.value.id);
2735
- h == null || h.set(d.value[c]);
2734
+ const h = d.value.value, c = (l = u[h]) == null ? void 0 : l.get(d.value.id);
2735
+ c == null || c.set(d.value[h]);
2736
2736
  }
2737
2737
  }
2738
2738
  }), u;
@@ -2828,26 +2828,29 @@ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data =
2828
2828
  make_values({ id: e, tag: n, host: i, service: u }),
2829
2829
  make_signals({ id: e, tag: n, host: i, service: u }),
2830
2830
  bundle({ host: i, cdn_url: a, id: e })
2831
- ]), { action: r } = await o({
2832
- svelte: () => import("./svelte/index.js").then((l) => l.bT),
2833
- "svelte/store": () => import("./svelte/store.js").then((l) => l.i),
2831
+ ]), r = {
2832
+ svelte: () => import("./svelte/index.js").then((h) => h.bT),
2833
+ "svelte/store": () => import("./svelte/store.js").then((h) => h.i),
2834
2834
  "svelte/animate": () => import("./svelte/animate.js"),
2835
2835
  "svelte/easing": () => import("./svelte/easing.js"),
2836
2836
  "svelte/events": () => import("./svelte/events.js"),
2837
- "svelte/motion": () => import("./svelte/motion.js").then((l) => l.i),
2837
+ "svelte/motion": () => import("./svelte/motion.js").then((h) => h.i),
2838
2838
  "svelte/transition": () => import("./svelte/transition.js"),
2839
2839
  // @ts-ignore
2840
2840
  "svelte/internal/disclose-version": () => import("./svelte/internal/disclose-version.js"),
2841
2841
  // @ts-ignore
2842
2842
  "svelte/internal/client": () => import("./svelte/internal/client.js")
2843
- });
2844
- return (l) => {
2845
- const d = /* @__PURE__ */ new Map();
2846
- d.set("nil.xit", create_context(t, s, f));
2847
- const { destroy: c } = r(l, d);
2843
+ }, l = (h) => h in r ? r[h]() : import(
2844
+ /* @vite-ignore */
2845
+ h
2846
+ ), { action: d } = await o(l);
2847
+ return (h) => {
2848
+ const c = /* @__PURE__ */ new Map();
2849
+ c.set("nil.xit", create_context(t, s, f));
2850
+ const { destroy: p } = d(h, c);
2848
2851
  return u.start(), {
2849
2852
  destroy: () => {
2850
- u.stop(), c();
2853
+ u.stop(), p();
2851
2854
  }
2852
2855
  };
2853
2856
  };