@viamrobotics/sdk 0.0.37 → 0.0.38
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/dist/components/arm/Arm.d.ts +3 -5
- package/dist/components/arm/Client.d.ts +1 -2
- package/dist/main.es.js +778 -637
- package/dist/main.umd.js +8 -8
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -12471,14 +12471,14 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12471
12471
|
}([function(p, o, r) {
|
|
12472
12472
|
Object.defineProperty(o, "__esModule", { value: !0 });
|
|
12473
12473
|
var i = r(3), l = function() {
|
|
12474
|
-
function c(d,
|
|
12475
|
-
d === void 0 && (d = {}),
|
|
12476
|
-
var
|
|
12474
|
+
function c(d, v) {
|
|
12475
|
+
d === void 0 && (d = {}), v === void 0 && (v = { splitValues: !1 });
|
|
12476
|
+
var m, y = this;
|
|
12477
12477
|
this.headersMap = {}, d && (typeof Headers < "u" && d instanceof Headers ? i.getHeaderKeys(d).forEach(function(f) {
|
|
12478
12478
|
i.getHeaderValues(d, f).forEach(function(b) {
|
|
12479
|
-
|
|
12479
|
+
v.splitValues ? y.append(f, i.splitHeaderValue(b)) : y.append(f, b);
|
|
12480
12480
|
});
|
|
12481
|
-
}) : typeof (
|
|
12481
|
+
}) : typeof (m = d) == "object" && typeof m.headersMap == "object" && typeof m.forEach == "function" ? d.forEach(function(f, b) {
|
|
12482
12482
|
y.append(f, b);
|
|
12483
12483
|
}) : typeof Map < "u" && d instanceof Map ? d.forEach(function(f, b) {
|
|
12484
12484
|
y.append(b, f);
|
|
@@ -12490,62 +12490,62 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12490
12490
|
}));
|
|
12491
12491
|
}
|
|
12492
12492
|
return c.prototype.appendFromString = function(d) {
|
|
12493
|
-
for (var
|
|
12494
|
-
`),
|
|
12495
|
-
var y = m
|
|
12493
|
+
for (var v = d.split(`\r
|
|
12494
|
+
`), m = 0; m < v.length; m++) {
|
|
12495
|
+
var y = v[m], f = y.indexOf(":");
|
|
12496
12496
|
if (f > 0) {
|
|
12497
12497
|
var b = y.substring(0, f).trim(), h = y.substring(f + 1).trim();
|
|
12498
12498
|
this.append(b, h);
|
|
12499
12499
|
}
|
|
12500
12500
|
}
|
|
12501
|
-
}, c.prototype.delete = function(d,
|
|
12502
|
-
var
|
|
12503
|
-
if (
|
|
12504
|
-
delete this.headersMap[
|
|
12501
|
+
}, c.prototype.delete = function(d, v) {
|
|
12502
|
+
var m = i.normalizeName(d);
|
|
12503
|
+
if (v === void 0)
|
|
12504
|
+
delete this.headersMap[m];
|
|
12505
12505
|
else {
|
|
12506
|
-
var y = this.headersMap[
|
|
12506
|
+
var y = this.headersMap[m];
|
|
12507
12507
|
if (y) {
|
|
12508
|
-
var f = y.indexOf(
|
|
12509
|
-
f >= 0 && y.splice(f, 1), y.length === 0 && delete this.headersMap[
|
|
12508
|
+
var f = y.indexOf(v);
|
|
12509
|
+
f >= 0 && y.splice(f, 1), y.length === 0 && delete this.headersMap[m];
|
|
12510
12510
|
}
|
|
12511
12511
|
}
|
|
12512
|
-
}, c.prototype.append = function(d,
|
|
12513
|
-
var
|
|
12514
|
-
Array.isArray(this.headersMap[y]) || (this.headersMap[y] = []), Array.isArray(
|
|
12515
|
-
|
|
12516
|
-
}) : this.headersMap[y].push(i.normalizeValue(
|
|
12517
|
-
}, c.prototype.set = function(d,
|
|
12518
|
-
var
|
|
12519
|
-
if (Array.isArray(
|
|
12512
|
+
}, c.prototype.append = function(d, v) {
|
|
12513
|
+
var m = this, y = i.normalizeName(d);
|
|
12514
|
+
Array.isArray(this.headersMap[y]) || (this.headersMap[y] = []), Array.isArray(v) ? v.forEach(function(f) {
|
|
12515
|
+
m.headersMap[y].push(i.normalizeValue(f));
|
|
12516
|
+
}) : this.headersMap[y].push(i.normalizeValue(v));
|
|
12517
|
+
}, c.prototype.set = function(d, v) {
|
|
12518
|
+
var m = i.normalizeName(d);
|
|
12519
|
+
if (Array.isArray(v)) {
|
|
12520
12520
|
var y = [];
|
|
12521
|
-
|
|
12521
|
+
v.forEach(function(f) {
|
|
12522
12522
|
y.push(i.normalizeValue(f));
|
|
12523
|
-
}), this.headersMap[
|
|
12523
|
+
}), this.headersMap[m] = y;
|
|
12524
12524
|
} else
|
|
12525
|
-
this.headersMap[
|
|
12526
|
-
}, c.prototype.has = function(d,
|
|
12527
|
-
var
|
|
12528
|
-
if (!Array.isArray(
|
|
12525
|
+
this.headersMap[m] = [i.normalizeValue(v)];
|
|
12526
|
+
}, c.prototype.has = function(d, v) {
|
|
12527
|
+
var m = this.headersMap[i.normalizeName(d)];
|
|
12528
|
+
if (!Array.isArray(m))
|
|
12529
12529
|
return !1;
|
|
12530
|
-
if (
|
|
12531
|
-
var y = i.normalizeValue(
|
|
12532
|
-
return
|
|
12530
|
+
if (v !== void 0) {
|
|
12531
|
+
var y = i.normalizeValue(v);
|
|
12532
|
+
return m.indexOf(y) >= 0;
|
|
12533
12533
|
}
|
|
12534
12534
|
return !0;
|
|
12535
12535
|
}, c.prototype.get = function(d) {
|
|
12536
|
-
var
|
|
12537
|
-
return
|
|
12536
|
+
var v = this.headersMap[i.normalizeName(d)];
|
|
12537
|
+
return v !== void 0 ? v.concat() : [];
|
|
12538
12538
|
}, c.prototype.forEach = function(d) {
|
|
12539
|
-
var
|
|
12540
|
-
Object.getOwnPropertyNames(this.headersMap).forEach(function(
|
|
12541
|
-
d(
|
|
12539
|
+
var v = this;
|
|
12540
|
+
Object.getOwnPropertyNames(this.headersMap).forEach(function(m) {
|
|
12541
|
+
d(m, v.headersMap[m]);
|
|
12542
12542
|
}, this);
|
|
12543
12543
|
}, c.prototype.toHeaders = function() {
|
|
12544
12544
|
if (typeof Headers < "u") {
|
|
12545
12545
|
var d = new Headers();
|
|
12546
|
-
return this.forEach(function(
|
|
12547
|
-
|
|
12548
|
-
d.append(
|
|
12546
|
+
return this.forEach(function(v, m) {
|
|
12547
|
+
m.forEach(function(y) {
|
|
12548
|
+
d.append(v, y);
|
|
12549
12549
|
});
|
|
12550
12550
|
}), d;
|
|
12551
12551
|
}
|
|
@@ -12578,23 +12578,23 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12578
12578
|
var d = l;
|
|
12579
12579
|
if (d instanceof Headers && d.getAll)
|
|
12580
12580
|
return d.getAll(c);
|
|
12581
|
-
var
|
|
12582
|
-
return
|
|
12581
|
+
var v = d.get(c);
|
|
12582
|
+
return v && typeof v == "string" ? [v] : v;
|
|
12583
12583
|
}, o.getHeaderKeys = function(l) {
|
|
12584
|
-
var c = l, d = {},
|
|
12585
|
-
return c.keys ? i.iterateHeadersKeys(c, function(
|
|
12586
|
-
d[
|
|
12587
|
-
}) : c.forEach ? c.forEach(function(
|
|
12588
|
-
d[y] || (d[y] = !0,
|
|
12589
|
-
}) : i.iterateHeaders(c, function(
|
|
12590
|
-
var y =
|
|
12591
|
-
d[y] || (d[y] = !0,
|
|
12592
|
-
}),
|
|
12584
|
+
var c = l, d = {}, v = [];
|
|
12585
|
+
return c.keys ? i.iterateHeadersKeys(c, function(m) {
|
|
12586
|
+
d[m] || (d[m] = !0, v.push(m));
|
|
12587
|
+
}) : c.forEach ? c.forEach(function(m, y) {
|
|
12588
|
+
d[y] || (d[y] = !0, v.push(y));
|
|
12589
|
+
}) : i.iterateHeaders(c, function(m) {
|
|
12590
|
+
var y = m[0];
|
|
12591
|
+
d[y] || (d[y] = !0, v.push(y));
|
|
12592
|
+
}), v;
|
|
12593
12593
|
}, o.splitHeaderValue = function(l) {
|
|
12594
12594
|
var c = [];
|
|
12595
12595
|
return l.split(", ").forEach(function(d) {
|
|
12596
|
-
d.split(",").forEach(function(
|
|
12597
|
-
c.push(
|
|
12596
|
+
d.split(",").forEach(function(v) {
|
|
12597
|
+
c.push(v);
|
|
12598
12598
|
});
|
|
12599
12599
|
}), c;
|
|
12600
12600
|
};
|
|
@@ -12618,17 +12618,17 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12618
12618
|
function d(f) {
|
|
12619
12619
|
return f.getUint32(1, !1);
|
|
12620
12620
|
}
|
|
12621
|
-
function
|
|
12621
|
+
function v(f, b, h) {
|
|
12622
12622
|
return f.byteLength - b >= h;
|
|
12623
12623
|
}
|
|
12624
|
-
function
|
|
12624
|
+
function m(f, b, h) {
|
|
12625
12625
|
if (f.slice)
|
|
12626
12626
|
return f.slice(b, h);
|
|
12627
12627
|
var R = f.length;
|
|
12628
12628
|
h !== void 0 && (R = h);
|
|
12629
|
-
for (var
|
|
12630
|
-
|
|
12631
|
-
return
|
|
12629
|
+
for (var O = new Uint8Array(R - b), P = 0, D = b; D < R; D++)
|
|
12630
|
+
O[P++] = f[D];
|
|
12631
|
+
return O;
|
|
12632
12632
|
}
|
|
12633
12633
|
g.decodeASCII = l, g.encodeASCII = function(f) {
|
|
12634
12634
|
for (var b = new Uint8Array(f.length), h = 0; h !== f.length; ++h) {
|
|
@@ -12648,27 +12648,27 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12648
12648
|
return f.prototype.parse = function(b, h) {
|
|
12649
12649
|
if (b.length === 0 && h)
|
|
12650
12650
|
return [];
|
|
12651
|
-
var R,
|
|
12651
|
+
var R, O = [];
|
|
12652
12652
|
if (this.buffer == null)
|
|
12653
12653
|
this.buffer = b, this.position = 0;
|
|
12654
12654
|
else if (this.position === this.buffer.byteLength)
|
|
12655
12655
|
this.buffer = b, this.position = 0;
|
|
12656
12656
|
else {
|
|
12657
|
-
var P = this.buffer.byteLength - this.position, D = new Uint8Array(P + b.byteLength), G =
|
|
12657
|
+
var P = this.buffer.byteLength - this.position, D = new Uint8Array(P + b.byteLength), G = m(this.buffer, this.position);
|
|
12658
12658
|
D.set(G, 0);
|
|
12659
12659
|
var z = new Uint8Array(b);
|
|
12660
12660
|
D.set(z, P), this.buffer = D, this.position = 0;
|
|
12661
12661
|
}
|
|
12662
12662
|
for (; ; ) {
|
|
12663
|
-
if (!
|
|
12664
|
-
return
|
|
12665
|
-
var x =
|
|
12666
|
-
if (!
|
|
12667
|
-
return
|
|
12668
|
-
var W =
|
|
12663
|
+
if (!v(this.buffer, this.position, 5))
|
|
12664
|
+
return O;
|
|
12665
|
+
var x = m(this.buffer, this.position, this.position + 5), L = new DataView(x.buffer, x.byteOffset, x.byteLength), k = d(L);
|
|
12666
|
+
if (!v(this.buffer, this.position, 5 + k))
|
|
12667
|
+
return O;
|
|
12668
|
+
var W = m(this.buffer, this.position + 5, this.position + 5 + k);
|
|
12669
12669
|
if (this.position += 5 + k, c(L))
|
|
12670
|
-
return
|
|
12671
|
-
|
|
12670
|
+
return O.push({ chunkType: o.TRAILERS, trailers: (R = W, new r.Metadata(l(R))) }), O;
|
|
12671
|
+
O.push({ chunkType: o.MESSAGE, data: W });
|
|
12672
12672
|
}
|
|
12673
12673
|
}, f;
|
|
12674
12674
|
}();
|
|
@@ -12715,9 +12715,9 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12715
12715
|
Object.defineProperty(g, "__esModule", { value: !0 }), g.client = void 0;
|
|
12716
12716
|
var o = p(65), r = p(617), i = p(8), l = p(346), c = p(57), d = p(882);
|
|
12717
12717
|
g.client = function(y, f) {
|
|
12718
|
-
return new
|
|
12718
|
+
return new v(y, f);
|
|
12719
12719
|
};
|
|
12720
|
-
var
|
|
12720
|
+
var v = function() {
|
|
12721
12721
|
function y(f, b) {
|
|
12722
12722
|
this.started = !1, this.sentFirstMessage = !1, this.completed = !1, this.closed = !1, this.finishedSending = !1, this.onHeadersCallbacks = [], this.onMessageCallbacks = [], this.onEndCallbacks = [], this.parser = new r.ChunkParser(), this.methodDefinition = f, this.props = b, this.createTransport();
|
|
12723
12723
|
}
|
|
@@ -12729,13 +12729,13 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12729
12729
|
this.props.debug && l.debug("grpc.onHeaders received after request was closed - ignoring");
|
|
12730
12730
|
else if (b !== 0) {
|
|
12731
12731
|
this.responseHeaders = f, this.props.debug && l.debug("onHeaders.responseHeaders", JSON.stringify(this.responseHeaders, null, 2));
|
|
12732
|
-
var h =
|
|
12732
|
+
var h = m(f);
|
|
12733
12733
|
this.props.debug && l.debug("onHeaders.gRPCStatus", h);
|
|
12734
12734
|
var R = h && h >= 0 ? h : i.httpStatusToCode(b);
|
|
12735
12735
|
this.props.debug && l.debug("onHeaders.code", R);
|
|
12736
|
-
var
|
|
12737
|
-
if (this.props.debug && l.debug("onHeaders.gRPCMessage",
|
|
12738
|
-
var P = this.decodeGRPCStatus(
|
|
12736
|
+
var O = f.get("grpc-message") || [];
|
|
12737
|
+
if (this.props.debug && l.debug("onHeaders.gRPCMessage", O), this.rawOnHeaders(f), R !== i.Code.OK) {
|
|
12738
|
+
var P = this.decodeGRPCStatus(O[0]);
|
|
12739
12739
|
this.rawOnError(R, P, f);
|
|
12740
12740
|
}
|
|
12741
12741
|
}
|
|
@@ -12752,8 +12752,8 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12752
12752
|
}
|
|
12753
12753
|
h.forEach(function(R) {
|
|
12754
12754
|
if (R.chunkType === r.ChunkType.MESSAGE) {
|
|
12755
|
-
var
|
|
12756
|
-
b.rawOnMessage(
|
|
12755
|
+
var O = b.methodDefinition.responseType.deserializeBinary(R.data);
|
|
12756
|
+
b.rawOnMessage(O);
|
|
12757
12757
|
} else
|
|
12758
12758
|
R.chunkType === r.ChunkType.TRAILERS && (b.responseHeaders ? (b.responseTrailers = new o.Metadata(R.trailers), b.props.debug && l.debug("onChunk.trailers", b.responseTrailers)) : (b.responseHeaders = new o.Metadata(R.trailers), b.rawOnHeaders(b.responseHeaders)));
|
|
12759
12759
|
});
|
|
@@ -12762,7 +12762,7 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12762
12762
|
if (this.props.debug && l.debug("grpc.onEnd"), this.closed)
|
|
12763
12763
|
this.props.debug && l.debug("grpc.onEnd received after request was closed - ignoring");
|
|
12764
12764
|
else if (this.responseTrailers !== void 0) {
|
|
12765
|
-
var f =
|
|
12765
|
+
var f = m(this.responseTrailers);
|
|
12766
12766
|
if (f !== null) {
|
|
12767
12767
|
var b = this.responseTrailers.get("grpc-message"), h = this.decodeGRPCStatus(b[0]);
|
|
12768
12768
|
this.rawOnEnd(f, h, this.responseTrailers);
|
|
@@ -12771,10 +12771,10 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12771
12771
|
} else {
|
|
12772
12772
|
if (this.responseHeaders === void 0)
|
|
12773
12773
|
return void this.rawOnError(i.Code.Unknown, "Response closed without headers");
|
|
12774
|
-
var R =
|
|
12775
|
-
if (this.props.debug && l.debug("grpc.headers only response ", R,
|
|
12774
|
+
var R = m(this.responseHeaders), O = this.responseHeaders.get("grpc-message");
|
|
12775
|
+
if (this.props.debug && l.debug("grpc.headers only response ", R, O), R === null)
|
|
12776
12776
|
return void this.rawOnEnd(i.Code.Unknown, "Response closed without grpc-status (Headers only)", this.responseHeaders);
|
|
12777
|
-
var P = this.decodeGRPCStatus(
|
|
12777
|
+
var P = this.decodeGRPCStatus(O[0]);
|
|
12778
12778
|
this.rawOnEnd(R, P, this.responseHeaders);
|
|
12779
12779
|
}
|
|
12780
12780
|
}, y.prototype.decodeGRPCStatus = function(f) {
|
|
@@ -12787,10 +12787,10 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12787
12787
|
}
|
|
12788
12788
|
}, y.prototype.rawOnEnd = function(f, b, h) {
|
|
12789
12789
|
var R = this;
|
|
12790
|
-
this.props.debug && l.debug("rawOnEnd", f, b, h), this.completed || (this.completed = !0, this.onEndCallbacks.forEach(function(
|
|
12790
|
+
this.props.debug && l.debug("rawOnEnd", f, b, h), this.completed || (this.completed = !0, this.onEndCallbacks.forEach(function(O) {
|
|
12791
12791
|
if (!R.closed)
|
|
12792
12792
|
try {
|
|
12793
|
-
|
|
12793
|
+
O(f, b, h);
|
|
12794
12794
|
} catch (P) {
|
|
12795
12795
|
setTimeout(function() {
|
|
12796
12796
|
throw P;
|
|
@@ -12809,10 +12809,10 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12809
12809
|
});
|
|
12810
12810
|
}, y.prototype.rawOnError = function(f, b, h) {
|
|
12811
12811
|
var R = this;
|
|
12812
|
-
h === void 0 && (h = new o.Metadata()), this.props.debug && l.debug("rawOnError", f, b), this.completed || (this.completed = !0, this.onEndCallbacks.forEach(function(
|
|
12812
|
+
h === void 0 && (h = new o.Metadata()), this.props.debug && l.debug("rawOnError", f, b), this.completed || (this.completed = !0, this.onEndCallbacks.forEach(function(O) {
|
|
12813
12813
|
if (!R.closed)
|
|
12814
12814
|
try {
|
|
12815
|
-
|
|
12815
|
+
O(f, b, h);
|
|
12816
12816
|
} catch (P) {
|
|
12817
12817
|
setTimeout(function() {
|
|
12818
12818
|
throw P;
|
|
@@ -12871,7 +12871,7 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12871
12871
|
this.closed = !0, this.props.debug && l.debug("request.abort aborting request"), this.transport.cancel();
|
|
12872
12872
|
}, y;
|
|
12873
12873
|
}();
|
|
12874
|
-
function
|
|
12874
|
+
function m(y) {
|
|
12875
12875
|
var f = y.get("grpc-status") || [];
|
|
12876
12876
|
if (f.length > 0)
|
|
12877
12877
|
try {
|
|
@@ -12890,8 +12890,8 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12890
12890
|
};
|
|
12891
12891
|
}, 607: function(u, g, p) {
|
|
12892
12892
|
Object.defineProperty(g, "__esModule", { value: !0 }), g.grpc = void 0;
|
|
12893
|
-
var o, r = p(418), i = p(57), l = p(229), c = p(540), d = p(210),
|
|
12894
|
-
(o = g.grpc || (g.grpc = {})).setDefaultTransport = i.setDefaultTransportFactory, o.CrossBrowserHttpTransport =
|
|
12893
|
+
var o, r = p(418), i = p(57), l = p(229), c = p(540), d = p(210), v = p(859), m = p(8), y = p(938), f = p(35), b = p(934);
|
|
12894
|
+
(o = g.grpc || (g.grpc = {})).setDefaultTransport = i.setDefaultTransportFactory, o.CrossBrowserHttpTransport = v.CrossBrowserHttpTransport, o.FetchReadableStreamTransport = l.FetchReadableStreamTransport, o.XhrTransport = d.XhrTransport, o.WebsocketTransport = c.WebsocketTransport, o.Code = m.Code, o.Metadata = r.BrowserHeaders, o.client = function(h, R) {
|
|
12895
12895
|
return b.client(h, R);
|
|
12896
12896
|
}, o.invoke = y.invoke, o.unary = f.unary;
|
|
12897
12897
|
}, 938: function(u, g, p) {
|
|
@@ -12924,8 +12924,8 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12924
12924
|
}, 229: function(u, g, p) {
|
|
12925
12925
|
var o = this && this.__assign || function() {
|
|
12926
12926
|
return (o = Object.assign || function(c) {
|
|
12927
|
-
for (var d,
|
|
12928
|
-
for (var y in d = arguments[
|
|
12927
|
+
for (var d, v = 1, m = arguments.length; v < m; v++)
|
|
12928
|
+
for (var y in d = arguments[v])
|
|
12929
12929
|
Object.prototype.hasOwnProperty.call(d, y) && (c[y] = d[y]);
|
|
12930
12930
|
return c;
|
|
12931
12931
|
}).apply(this, arguments);
|
|
@@ -12934,36 +12934,36 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12934
12934
|
var r = p(65), i = p(346);
|
|
12935
12935
|
g.FetchReadableStreamTransport = function(c) {
|
|
12936
12936
|
return function(d) {
|
|
12937
|
-
return function(
|
|
12938
|
-
return
|
|
12937
|
+
return function(v, m) {
|
|
12938
|
+
return v.debug && i.debug("fetchRequest", v), new l(v, m);
|
|
12939
12939
|
}(d, c);
|
|
12940
12940
|
};
|
|
12941
12941
|
};
|
|
12942
12942
|
var l = function() {
|
|
12943
|
-
function c(d,
|
|
12944
|
-
this.cancelled = !1, this.controller = self.AbortController && new AbortController(), this.options = d, this.init =
|
|
12943
|
+
function c(d, v) {
|
|
12944
|
+
this.cancelled = !1, this.controller = self.AbortController && new AbortController(), this.options = d, this.init = v;
|
|
12945
12945
|
}
|
|
12946
|
-
return c.prototype.pump = function(d,
|
|
12947
|
-
var
|
|
12946
|
+
return c.prototype.pump = function(d, v) {
|
|
12947
|
+
var m = this;
|
|
12948
12948
|
if (this.reader = d, this.cancelled)
|
|
12949
12949
|
return this.options.debug && i.debug("Fetch.pump.cancel at first pump"), void this.reader.cancel().catch(function(y) {
|
|
12950
|
-
|
|
12950
|
+
m.options.debug && i.debug("Fetch.pump.reader.cancel exception", y);
|
|
12951
12951
|
});
|
|
12952
12952
|
this.reader.read().then(function(y) {
|
|
12953
12953
|
if (y.done)
|
|
12954
|
-
return
|
|
12955
|
-
|
|
12954
|
+
return m.options.onEnd(), v;
|
|
12955
|
+
m.options.onChunk(y.value), m.pump(m.reader, v);
|
|
12956
12956
|
}).catch(function(y) {
|
|
12957
|
-
|
|
12957
|
+
m.cancelled ? m.options.debug && i.debug("Fetch.catch - request cancelled") : (m.cancelled = !0, m.options.debug && i.debug("Fetch.catch", y.message), m.options.onEnd(y));
|
|
12958
12958
|
});
|
|
12959
12959
|
}, c.prototype.send = function(d) {
|
|
12960
|
-
var
|
|
12961
|
-
fetch(this.options.url, o(o({}, this.init), { headers: this.metadata.toHeaders(), method: "POST", body: d, signal: this.controller && this.controller.signal })).then(function(
|
|
12962
|
-
if (
|
|
12963
|
-
return
|
|
12964
|
-
|
|
12965
|
-
}).catch(function(
|
|
12966
|
-
|
|
12960
|
+
var v = this;
|
|
12961
|
+
fetch(this.options.url, o(o({}, this.init), { headers: this.metadata.toHeaders(), method: "POST", body: d, signal: this.controller && this.controller.signal })).then(function(m) {
|
|
12962
|
+
if (v.options.debug && i.debug("Fetch.response", m), v.options.onHeaders(new r.Metadata(m.headers), m.status), !m.body)
|
|
12963
|
+
return m;
|
|
12964
|
+
v.pump(m.body.getReader(), m);
|
|
12965
|
+
}).catch(function(m) {
|
|
12966
|
+
v.cancelled ? v.options.debug && i.debug("Fetch.catch - request cancelled") : (v.cancelled = !0, v.options.debug && i.debug("Fetch.catch", m.message), v.options.onEnd(m));
|
|
12967
12967
|
});
|
|
12968
12968
|
}, c.prototype.sendMessage = function(d) {
|
|
12969
12969
|
this.send(d);
|
|
@@ -12972,8 +12972,8 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12972
12972
|
this.metadata = d;
|
|
12973
12973
|
}, c.prototype.cancel = function() {
|
|
12974
12974
|
var d = this;
|
|
12975
|
-
this.cancelled ? this.options.debug && i.debug("Fetch.cancel already cancelled") : (this.cancelled = !0, this.controller ? (this.options.debug && i.debug("Fetch.cancel.controller.abort"), this.controller.abort()) : this.options.debug && i.debug("Fetch.cancel.missing abort controller"), this.reader ? (this.options.debug && i.debug("Fetch.cancel.reader.cancel"), this.reader.cancel().catch(function(
|
|
12976
|
-
d.options.debug && i.debug("Fetch.cancel.reader.cancel exception",
|
|
12975
|
+
this.cancelled ? this.options.debug && i.debug("Fetch.cancel already cancelled") : (this.cancelled = !0, this.controller ? (this.options.debug && i.debug("Fetch.cancel.controller.abort"), this.controller.abort()) : this.options.debug && i.debug("Fetch.cancel.missing abort controller"), this.reader ? (this.options.debug && i.debug("Fetch.cancel.reader.cancel"), this.reader.cancel().catch(function(v) {
|
|
12976
|
+
d.options.debug && i.debug("Fetch.cancel.reader.cancel exception", v);
|
|
12977
12977
|
})) : this.options.debug && i.debug("Fetch.cancel before reader"));
|
|
12978
12978
|
}, c;
|
|
12979
12979
|
}();
|
|
@@ -12995,8 +12995,8 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12995
12995
|
return (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(h, R) {
|
|
12996
12996
|
h.__proto__ = R;
|
|
12997
12997
|
} || function(h, R) {
|
|
12998
|
-
for (var
|
|
12999
|
-
Object.prototype.hasOwnProperty.call(R,
|
|
12998
|
+
for (var O in R)
|
|
12999
|
+
Object.prototype.hasOwnProperty.call(R, O) && (h[O] = R[O]);
|
|
13000
13000
|
})(f, b);
|
|
13001
13001
|
}, function(f, b) {
|
|
13002
13002
|
function h() {
|
|
@@ -13009,7 +13009,7 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
13009
13009
|
g.XhrTransport = function(f) {
|
|
13010
13010
|
return function(b) {
|
|
13011
13011
|
if (c.detectMozXHRSupport())
|
|
13012
|
-
return new
|
|
13012
|
+
return new v(b, f);
|
|
13013
13013
|
if (c.detectXHROverrideMimeTypeSupport())
|
|
13014
13014
|
return new d(b, f);
|
|
13015
13015
|
throw new Error("This environment's XHR implementation cannot support binary transfer.");
|
|
@@ -13036,10 +13036,10 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
13036
13036
|
var h = this;
|
|
13037
13037
|
this.metadata = b;
|
|
13038
13038
|
var R = new XMLHttpRequest();
|
|
13039
|
-
this.xhr = R, R.open("POST", this.options.url), this.configureXhr(), this.metadata.forEach(function(
|
|
13040
|
-
R.setRequestHeader(
|
|
13041
|
-
}), R.withCredentials = !!this.init.withCredentials, R.addEventListener("readystatechange", this.onStateChange.bind(this)), R.addEventListener("progress", this.onProgressEvent.bind(this)), R.addEventListener("loadend", this.onLoadEvent.bind(this)), R.addEventListener("error", function(
|
|
13042
|
-
h.options.debug && l.debug("XHR.error",
|
|
13039
|
+
this.xhr = R, R.open("POST", this.options.url), this.configureXhr(), this.metadata.forEach(function(O, P) {
|
|
13040
|
+
R.setRequestHeader(O, P.join(", "));
|
|
13041
|
+
}), R.withCredentials = !!this.init.withCredentials, R.addEventListener("readystatechange", this.onStateChange.bind(this)), R.addEventListener("progress", this.onProgressEvent.bind(this)), R.addEventListener("loadend", this.onLoadEvent.bind(this)), R.addEventListener("error", function(O) {
|
|
13042
|
+
h.options.debug && l.debug("XHR.error", O), h.options.onEnd(O.error);
|
|
13043
13043
|
});
|
|
13044
13044
|
}, f.prototype.configureXhr = function() {
|
|
13045
13045
|
this.xhr.responseType = "text", this.xhr.overrideMimeType("text/plain; charset=x-user-defined");
|
|
@@ -13048,7 +13048,7 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
13048
13048
|
}, f;
|
|
13049
13049
|
}();
|
|
13050
13050
|
g.XHR = d;
|
|
13051
|
-
var
|
|
13051
|
+
var v = function(f) {
|
|
13052
13052
|
function b() {
|
|
13053
13053
|
return f !== null && f.apply(this, arguments) || this;
|
|
13054
13054
|
}
|
|
@@ -13059,7 +13059,7 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
13059
13059
|
this.options.debug && l.debug("MozXHR.onProgressEvent: ", new Uint8Array(h)), this.options.onChunk(new Uint8Array(h));
|
|
13060
13060
|
}, b;
|
|
13061
13061
|
}(d);
|
|
13062
|
-
function
|
|
13062
|
+
function m(f, b) {
|
|
13063
13063
|
var h = f.charCodeAt(b);
|
|
13064
13064
|
if (h >= 55296 && h <= 56319) {
|
|
13065
13065
|
var R = f.charCodeAt(b + 1);
|
|
@@ -13069,12 +13069,12 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
13069
13069
|
}
|
|
13070
13070
|
function y(f) {
|
|
13071
13071
|
for (var b = new Uint8Array(f.length), h = 0, R = 0; R < f.length; R++) {
|
|
13072
|
-
var
|
|
13073
|
-
b[h++] = 255 &
|
|
13072
|
+
var O = String.prototype.codePointAt ? f.codePointAt(R) : m(f, R);
|
|
13073
|
+
b[h++] = 255 & O;
|
|
13074
13074
|
}
|
|
13075
13075
|
return b;
|
|
13076
13076
|
}
|
|
13077
|
-
g.MozChunkedArrayBufferXHR =
|
|
13077
|
+
g.MozChunkedArrayBufferXHR = v, g.stringToArrayBuffer = y;
|
|
13078
13078
|
}, 849: function(u, g) {
|
|
13079
13079
|
var p;
|
|
13080
13080
|
function o() {
|
|
@@ -13115,7 +13115,7 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
13115
13115
|
return function(c) {
|
|
13116
13116
|
return function(d) {
|
|
13117
13117
|
d.debug && r.debug("websocketRequest", d);
|
|
13118
|
-
var
|
|
13118
|
+
var v, m = function(b) {
|
|
13119
13119
|
if (b.substr(0, 8) === "https://")
|
|
13120
13120
|
return "wss://" + b.substr(8);
|
|
13121
13121
|
if (b.substr(0, 7) === "http://")
|
|
@@ -13124,34 +13124,34 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
13124
13124
|
}(d.url), y = [];
|
|
13125
13125
|
function f(b) {
|
|
13126
13126
|
if (b === o.FINISH_SEND)
|
|
13127
|
-
|
|
13127
|
+
v.send(l);
|
|
13128
13128
|
else {
|
|
13129
13129
|
var h = b, R = new Int8Array(h.byteLength + 1);
|
|
13130
|
-
R.set(new Uint8Array([0])), R.set(h, 1),
|
|
13130
|
+
R.set(new Uint8Array([0])), R.set(h, 1), v.send(R);
|
|
13131
13131
|
}
|
|
13132
13132
|
}
|
|
13133
13133
|
return { sendMessage: function(b) {
|
|
13134
|
-
|
|
13134
|
+
v && v.readyState !== v.CONNECTING ? f(b) : y.push(b);
|
|
13135
13135
|
}, finishSend: function() {
|
|
13136
|
-
|
|
13136
|
+
v && v.readyState !== v.CONNECTING ? f(o.FINISH_SEND) : y.push(o.FINISH_SEND);
|
|
13137
13137
|
}, start: function(b) {
|
|
13138
|
-
(
|
|
13138
|
+
(v = new WebSocket(m, ["grpc-websockets"])).binaryType = "arraybuffer", v.onopen = function() {
|
|
13139
13139
|
var h;
|
|
13140
|
-
d.debug && r.debug("websocketRequest.onopen"),
|
|
13141
|
-
h += R + ": " +
|
|
13140
|
+
d.debug && r.debug("websocketRequest.onopen"), v.send((h = "", b.forEach(function(R, O) {
|
|
13141
|
+
h += R + ": " + O.join(", ") + `\r
|
|
13142
13142
|
`;
|
|
13143
13143
|
}), i.encodeASCII(h))), y.forEach(function(R) {
|
|
13144
13144
|
f(R);
|
|
13145
13145
|
});
|
|
13146
|
-
},
|
|
13146
|
+
}, v.onclose = function(h) {
|
|
13147
13147
|
d.debug && r.debug("websocketRequest.onclose", h), d.onEnd();
|
|
13148
|
-
},
|
|
13148
|
+
}, v.onerror = function(h) {
|
|
13149
13149
|
d.debug && r.debug("websocketRequest.onerror", h);
|
|
13150
|
-
},
|
|
13150
|
+
}, v.onmessage = function(h) {
|
|
13151
13151
|
d.onChunk(new Uint8Array(h.data));
|
|
13152
13152
|
};
|
|
13153
13153
|
}, cancel: function() {
|
|
13154
|
-
d.debug && r.debug("websocket.abort"),
|
|
13154
|
+
d.debug && r.debug("websocket.abort"), v.close();
|
|
13155
13155
|
} };
|
|
13156
13156
|
}(c);
|
|
13157
13157
|
};
|
|
@@ -13164,15 +13164,15 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
13164
13164
|
throw new Error(".unary cannot be used with server-streaming methods. Use .invoke or .client instead.");
|
|
13165
13165
|
if (i.requestStream)
|
|
13166
13166
|
throw new Error(".unary cannot be used with client-streaming methods. Use .client instead.");
|
|
13167
|
-
var c = null, d = null,
|
|
13168
|
-
return
|
|
13169
|
-
c =
|
|
13170
|
-
}),
|
|
13171
|
-
d =
|
|
13172
|
-
}),
|
|
13173
|
-
l.onEnd({ status:
|
|
13174
|
-
}),
|
|
13175
|
-
|
|
13167
|
+
var c = null, d = null, v = r.client(i, { host: l.host, transport: l.transport, debug: l.debug });
|
|
13168
|
+
return v.onHeaders(function(m) {
|
|
13169
|
+
c = m;
|
|
13170
|
+
}), v.onMessage(function(m) {
|
|
13171
|
+
d = m;
|
|
13172
|
+
}), v.onEnd(function(m, y, f) {
|
|
13173
|
+
l.onEnd({ status: m, statusMessage: y, headers: c || new o.Metadata(), message: d, trailers: f });
|
|
13174
|
+
}), v.start(l.metadata), v.send(l.request), v.finishSend(), { close: function() {
|
|
13175
|
+
v.close();
|
|
13176
13176
|
} };
|
|
13177
13177
|
};
|
|
13178
13178
|
}, 882: function(u, g) {
|
|
@@ -13249,58 +13249,58 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
13249
13249
|
}, function(e, s, n) {
|
|
13250
13250
|
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
13251
13251
|
var u = n(0), g = n(8), p = n(9), o = n(1), r = n(4), i = n(14);
|
|
13252
|
-
s.client = function(d,
|
|
13253
|
-
return new l(d,
|
|
13252
|
+
s.client = function(d, v) {
|
|
13253
|
+
return new l(d, v);
|
|
13254
13254
|
};
|
|
13255
13255
|
var l = function() {
|
|
13256
|
-
function d(
|
|
13257
|
-
this.started = !1, this.sentFirstMessage = !1, this.completed = !1, this.closed = !1, this.finishedSending = !1, this.onHeadersCallbacks = [], this.onMessageCallbacks = [], this.onEndCallbacks = [], this.parser = new g.ChunkParser(), this.methodDefinition =
|
|
13256
|
+
function d(v, m) {
|
|
13257
|
+
this.started = !1, this.sentFirstMessage = !1, this.completed = !1, this.closed = !1, this.finishedSending = !1, this.onHeadersCallbacks = [], this.onMessageCallbacks = [], this.onEndCallbacks = [], this.parser = new g.ChunkParser(), this.methodDefinition = v, this.props = m, this.createTransport();
|
|
13258
13258
|
}
|
|
13259
13259
|
return d.prototype.createTransport = function() {
|
|
13260
|
-
var
|
|
13261
|
-
this.props.transport ? this.transport = this.props.transport(
|
|
13262
|
-
}, d.prototype.onTransportHeaders = function(
|
|
13263
|
-
if (this.props.debug && o.debug("onHeaders",
|
|
13260
|
+
var v = this.props.host + "/" + this.methodDefinition.service.serviceName + "/" + this.methodDefinition.methodName, m = { methodDefinition: this.methodDefinition, debug: this.props.debug || !1, url: v, onHeaders: this.onTransportHeaders.bind(this), onChunk: this.onTransportChunk.bind(this), onEnd: this.onTransportEnd.bind(this) };
|
|
13261
|
+
this.props.transport ? this.transport = this.props.transport(m) : this.transport = r.makeDefaultTransport(m);
|
|
13262
|
+
}, d.prototype.onTransportHeaders = function(v, m) {
|
|
13263
|
+
if (this.props.debug && o.debug("onHeaders", v, m), this.closed)
|
|
13264
13264
|
this.props.debug && o.debug("grpc.onHeaders received after request was closed - ignoring");
|
|
13265
|
-
else if (
|
|
13266
|
-
this.responseHeaders =
|
|
13267
|
-
var y = c(
|
|
13265
|
+
else if (m !== 0) {
|
|
13266
|
+
this.responseHeaders = v, this.props.debug && o.debug("onHeaders.responseHeaders", JSON.stringify(this.responseHeaders, null, 2));
|
|
13267
|
+
var y = c(v);
|
|
13268
13268
|
this.props.debug && o.debug("onHeaders.gRPCStatus", y);
|
|
13269
|
-
var f = y && y >= 0 ? y : p.httpStatusToCode(
|
|
13269
|
+
var f = y && y >= 0 ? y : p.httpStatusToCode(m);
|
|
13270
13270
|
this.props.debug && o.debug("onHeaders.code", f);
|
|
13271
|
-
var b =
|
|
13272
|
-
if (this.props.debug && o.debug("onHeaders.gRPCMessage", b), this.rawOnHeaders(
|
|
13271
|
+
var b = v.get("grpc-message") || [];
|
|
13272
|
+
if (this.props.debug && o.debug("onHeaders.gRPCMessage", b), this.rawOnHeaders(v), f !== p.Code.OK) {
|
|
13273
13273
|
var h = this.decodeGRPCStatus(b[0]);
|
|
13274
|
-
this.rawOnError(f, h,
|
|
13274
|
+
this.rawOnError(f, h, v);
|
|
13275
13275
|
}
|
|
13276
13276
|
}
|
|
13277
|
-
}, d.prototype.onTransportChunk = function(
|
|
13278
|
-
var
|
|
13277
|
+
}, d.prototype.onTransportChunk = function(v) {
|
|
13278
|
+
var m = this;
|
|
13279
13279
|
if (this.closed)
|
|
13280
13280
|
this.props.debug && o.debug("grpc.onChunk received after request was closed - ignoring");
|
|
13281
13281
|
else {
|
|
13282
13282
|
var y = [];
|
|
13283
13283
|
try {
|
|
13284
|
-
y = this.parser.parse(
|
|
13284
|
+
y = this.parser.parse(v);
|
|
13285
13285
|
} catch (f) {
|
|
13286
13286
|
return this.props.debug && o.debug("onChunk.parsing error", f, f.message), void this.rawOnError(p.Code.Internal, "parsing error: " + f.message);
|
|
13287
13287
|
}
|
|
13288
13288
|
y.forEach(function(f) {
|
|
13289
13289
|
if (f.chunkType === g.ChunkType.MESSAGE) {
|
|
13290
|
-
var b =
|
|
13291
|
-
|
|
13290
|
+
var b = m.methodDefinition.responseType.deserializeBinary(f.data);
|
|
13291
|
+
m.rawOnMessage(b);
|
|
13292
13292
|
} else
|
|
13293
|
-
f.chunkType === g.ChunkType.TRAILERS && (
|
|
13293
|
+
f.chunkType === g.ChunkType.TRAILERS && (m.responseHeaders ? (m.responseTrailers = new u.Metadata(f.trailers), m.props.debug && o.debug("onChunk.trailers", m.responseTrailers)) : (m.responseHeaders = new u.Metadata(f.trailers), m.rawOnHeaders(m.responseHeaders)));
|
|
13294
13294
|
});
|
|
13295
13295
|
}
|
|
13296
13296
|
}, d.prototype.onTransportEnd = function() {
|
|
13297
13297
|
if (this.props.debug && o.debug("grpc.onEnd"), this.closed)
|
|
13298
13298
|
this.props.debug && o.debug("grpc.onEnd received after request was closed - ignoring");
|
|
13299
13299
|
else if (this.responseTrailers !== void 0) {
|
|
13300
|
-
var
|
|
13301
|
-
if (
|
|
13302
|
-
var
|
|
13303
|
-
this.rawOnEnd(
|
|
13300
|
+
var v = c(this.responseTrailers);
|
|
13301
|
+
if (v !== null) {
|
|
13302
|
+
var m = this.responseTrailers.get("grpc-message"), y = this.decodeGRPCStatus(m[0]);
|
|
13303
|
+
this.rawOnEnd(v, y, this.responseTrailers);
|
|
13304
13304
|
} else
|
|
13305
13305
|
this.rawOnError(p.Code.Internal, "Response closed without grpc-status (Trailers provided)");
|
|
13306
13306
|
} else {
|
|
@@ -13312,73 +13312,73 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
13312
13312
|
var h = this.decodeGRPCStatus(b[0]);
|
|
13313
13313
|
this.rawOnEnd(f, h, this.responseHeaders);
|
|
13314
13314
|
}
|
|
13315
|
-
}, d.prototype.decodeGRPCStatus = function(
|
|
13316
|
-
if (!
|
|
13315
|
+
}, d.prototype.decodeGRPCStatus = function(v) {
|
|
13316
|
+
if (!v)
|
|
13317
13317
|
return "";
|
|
13318
13318
|
try {
|
|
13319
|
-
return decodeURIComponent(
|
|
13319
|
+
return decodeURIComponent(v);
|
|
13320
13320
|
} catch {
|
|
13321
|
-
return
|
|
13321
|
+
return v;
|
|
13322
13322
|
}
|
|
13323
|
-
}, d.prototype.rawOnEnd = function(
|
|
13323
|
+
}, d.prototype.rawOnEnd = function(v, m, y) {
|
|
13324
13324
|
var f = this;
|
|
13325
|
-
this.props.debug && o.debug("rawOnEnd",
|
|
13325
|
+
this.props.debug && o.debug("rawOnEnd", v, m, y), this.completed || (this.completed = !0, this.onEndCallbacks.forEach(function(b) {
|
|
13326
13326
|
if (!f.closed)
|
|
13327
13327
|
try {
|
|
13328
|
-
b(
|
|
13328
|
+
b(v, m, y);
|
|
13329
13329
|
} catch (h) {
|
|
13330
13330
|
setTimeout(function() {
|
|
13331
13331
|
throw h;
|
|
13332
13332
|
});
|
|
13333
13333
|
}
|
|
13334
13334
|
}));
|
|
13335
|
-
}, d.prototype.rawOnHeaders = function(
|
|
13336
|
-
this.props.debug && o.debug("rawOnHeaders",
|
|
13335
|
+
}, d.prototype.rawOnHeaders = function(v) {
|
|
13336
|
+
this.props.debug && o.debug("rawOnHeaders", v), this.completed || this.onHeadersCallbacks.forEach(function(m) {
|
|
13337
13337
|
try {
|
|
13338
|
-
v
|
|
13338
|
+
m(v);
|
|
13339
13339
|
} catch (y) {
|
|
13340
13340
|
setTimeout(function() {
|
|
13341
13341
|
throw y;
|
|
13342
13342
|
});
|
|
13343
13343
|
}
|
|
13344
13344
|
});
|
|
13345
|
-
}, d.prototype.rawOnError = function(
|
|
13345
|
+
}, d.prototype.rawOnError = function(v, m, y) {
|
|
13346
13346
|
var f = this;
|
|
13347
|
-
y === void 0 && (y = new u.Metadata()), this.props.debug && o.debug("rawOnError",
|
|
13347
|
+
y === void 0 && (y = new u.Metadata()), this.props.debug && o.debug("rawOnError", v, m), this.completed || (this.completed = !0, this.onEndCallbacks.forEach(function(b) {
|
|
13348
13348
|
if (!f.closed)
|
|
13349
13349
|
try {
|
|
13350
|
-
b(
|
|
13350
|
+
b(v, m, y);
|
|
13351
13351
|
} catch (h) {
|
|
13352
13352
|
setTimeout(function() {
|
|
13353
13353
|
throw h;
|
|
13354
13354
|
});
|
|
13355
13355
|
}
|
|
13356
13356
|
}));
|
|
13357
|
-
}, d.prototype.rawOnMessage = function(
|
|
13358
|
-
var
|
|
13359
|
-
this.props.debug && o.debug("rawOnMessage",
|
|
13360
|
-
if (!
|
|
13357
|
+
}, d.prototype.rawOnMessage = function(v) {
|
|
13358
|
+
var m = this;
|
|
13359
|
+
this.props.debug && o.debug("rawOnMessage", v.toObject()), this.completed || this.closed || this.onMessageCallbacks.forEach(function(y) {
|
|
13360
|
+
if (!m.closed)
|
|
13361
13361
|
try {
|
|
13362
|
-
y(
|
|
13362
|
+
y(v);
|
|
13363
13363
|
} catch (f) {
|
|
13364
13364
|
setTimeout(function() {
|
|
13365
13365
|
throw f;
|
|
13366
13366
|
});
|
|
13367
13367
|
}
|
|
13368
13368
|
});
|
|
13369
|
-
}, d.prototype.onHeaders = function(
|
|
13370
|
-
this.onHeadersCallbacks.push(
|
|
13371
|
-
}, d.prototype.onMessage = function(
|
|
13372
|
-
this.onMessageCallbacks.push(
|
|
13373
|
-
}, d.prototype.onEnd = function(
|
|
13374
|
-
this.onEndCallbacks.push(
|
|
13375
|
-
}, d.prototype.start = function(
|
|
13369
|
+
}, d.prototype.onHeaders = function(v) {
|
|
13370
|
+
this.onHeadersCallbacks.push(v);
|
|
13371
|
+
}, d.prototype.onMessage = function(v) {
|
|
13372
|
+
this.onMessageCallbacks.push(v);
|
|
13373
|
+
}, d.prototype.onEnd = function(v) {
|
|
13374
|
+
this.onEndCallbacks.push(v);
|
|
13375
|
+
}, d.prototype.start = function(v) {
|
|
13376
13376
|
if (this.started)
|
|
13377
13377
|
throw new Error("Client already started - cannot .start()");
|
|
13378
13378
|
this.started = !0;
|
|
13379
|
-
var
|
|
13380
|
-
|
|
13381
|
-
}, d.prototype.send = function(
|
|
13379
|
+
var m = new u.Metadata(v || {});
|
|
13380
|
+
m.set("content-type", "application/grpc-web+proto"), m.set("x-grpc-web", "1"), this.transport.start(m);
|
|
13381
|
+
}, d.prototype.send = function(v) {
|
|
13382
13382
|
if (!this.started)
|
|
13383
13383
|
throw new Error("Client not started - .start() must be called before .send()");
|
|
13384
13384
|
if (this.closed)
|
|
@@ -13388,8 +13388,8 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
13388
13388
|
if (!this.methodDefinition.requestStream && this.sentFirstMessage)
|
|
13389
13389
|
throw new Error("Message already sent for non-client-streaming method - cannot .send()");
|
|
13390
13390
|
this.sentFirstMessage = !0;
|
|
13391
|
-
var
|
|
13392
|
-
this.transport.sendMessage(
|
|
13391
|
+
var m = i.frameRequest(v);
|
|
13392
|
+
this.transport.sendMessage(m);
|
|
13393
13393
|
}, d.prototype.finishSend = function() {
|
|
13394
13394
|
if (!this.started)
|
|
13395
13395
|
throw new Error("Client not started - .finishSend() must be called before .close()");
|
|
@@ -13407,11 +13407,11 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
13407
13407
|
}, d;
|
|
13408
13408
|
}();
|
|
13409
13409
|
function c(d) {
|
|
13410
|
-
var
|
|
13411
|
-
if (
|
|
13410
|
+
var v = d.get("grpc-status") || [];
|
|
13411
|
+
if (v.length > 0)
|
|
13412
13412
|
try {
|
|
13413
|
-
var
|
|
13414
|
-
return parseInt(
|
|
13413
|
+
var m = v[0];
|
|
13414
|
+
return parseInt(m, 10);
|
|
13415
13415
|
} catch {
|
|
13416
13416
|
return null;
|
|
13417
13417
|
}
|
|
@@ -13447,63 +13447,63 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
13447
13447
|
var r = o(3), i = function() {
|
|
13448
13448
|
function l(c, d) {
|
|
13449
13449
|
c === void 0 && (c = {}), d === void 0 && (d = { splitValues: !1 });
|
|
13450
|
-
var
|
|
13450
|
+
var v, m = this;
|
|
13451
13451
|
this.headersMap = {}, c && (typeof Headers < "u" && c instanceof Headers ? r.getHeaderKeys(c).forEach(function(y) {
|
|
13452
13452
|
r.getHeaderValues(c, y).forEach(function(f) {
|
|
13453
|
-
d.splitValues ?
|
|
13453
|
+
d.splitValues ? m.append(y, r.splitHeaderValue(f)) : m.append(y, f);
|
|
13454
13454
|
});
|
|
13455
|
-
}) : typeof (
|
|
13456
|
-
|
|
13455
|
+
}) : typeof (v = c) == "object" && typeof v.headersMap == "object" && typeof v.forEach == "function" ? c.forEach(function(y, f) {
|
|
13456
|
+
m.append(y, f);
|
|
13457
13457
|
}) : typeof Map < "u" && c instanceof Map ? c.forEach(function(y, f) {
|
|
13458
|
-
|
|
13458
|
+
m.append(f, y);
|
|
13459
13459
|
}) : typeof c == "string" ? this.appendFromString(c) : typeof c == "object" && Object.getOwnPropertyNames(c).forEach(function(y) {
|
|
13460
13460
|
var f = c[y];
|
|
13461
13461
|
Array.isArray(f) ? f.forEach(function(b) {
|
|
13462
|
-
|
|
13463
|
-
}) :
|
|
13462
|
+
m.append(y, b);
|
|
13463
|
+
}) : m.append(y, f);
|
|
13464
13464
|
}));
|
|
13465
13465
|
}
|
|
13466
13466
|
return l.prototype.appendFromString = function(c) {
|
|
13467
13467
|
for (var d = c.split(`\r
|
|
13468
|
-
`),
|
|
13469
|
-
var
|
|
13468
|
+
`), v = 0; v < d.length; v++) {
|
|
13469
|
+
var m = d[v], y = m.indexOf(":");
|
|
13470
13470
|
if (y > 0) {
|
|
13471
|
-
var f =
|
|
13471
|
+
var f = m.substring(0, y).trim(), b = m.substring(y + 1).trim();
|
|
13472
13472
|
this.append(f, b);
|
|
13473
13473
|
}
|
|
13474
13474
|
}
|
|
13475
13475
|
}, l.prototype.delete = function(c, d) {
|
|
13476
|
-
var
|
|
13476
|
+
var v = r.normalizeName(c);
|
|
13477
13477
|
if (d === void 0)
|
|
13478
|
-
delete this.headersMap[
|
|
13478
|
+
delete this.headersMap[v];
|
|
13479
13479
|
else {
|
|
13480
|
-
var
|
|
13481
|
-
if (
|
|
13482
|
-
var y =
|
|
13483
|
-
y >= 0 &&
|
|
13480
|
+
var m = this.headersMap[v];
|
|
13481
|
+
if (m) {
|
|
13482
|
+
var y = m.indexOf(d);
|
|
13483
|
+
y >= 0 && m.splice(y, 1), m.length === 0 && delete this.headersMap[v];
|
|
13484
13484
|
}
|
|
13485
13485
|
}
|
|
13486
13486
|
}, l.prototype.append = function(c, d) {
|
|
13487
|
-
var
|
|
13488
|
-
Array.isArray(this.headersMap[
|
|
13489
|
-
|
|
13490
|
-
}) : this.headersMap[
|
|
13487
|
+
var v = this, m = r.normalizeName(c);
|
|
13488
|
+
Array.isArray(this.headersMap[m]) || (this.headersMap[m] = []), Array.isArray(d) ? d.forEach(function(y) {
|
|
13489
|
+
v.headersMap[m].push(r.normalizeValue(y));
|
|
13490
|
+
}) : this.headersMap[m].push(r.normalizeValue(d));
|
|
13491
13491
|
}, l.prototype.set = function(c, d) {
|
|
13492
|
-
var
|
|
13492
|
+
var v = r.normalizeName(c);
|
|
13493
13493
|
if (Array.isArray(d)) {
|
|
13494
|
-
var
|
|
13494
|
+
var m = [];
|
|
13495
13495
|
d.forEach(function(y) {
|
|
13496
|
-
|
|
13497
|
-
}), this.headersMap[
|
|
13496
|
+
m.push(r.normalizeValue(y));
|
|
13497
|
+
}), this.headersMap[v] = m;
|
|
13498
13498
|
} else
|
|
13499
|
-
this.headersMap[
|
|
13499
|
+
this.headersMap[v] = [r.normalizeValue(d)];
|
|
13500
13500
|
}, l.prototype.has = function(c, d) {
|
|
13501
|
-
var
|
|
13502
|
-
if (!Array.isArray(
|
|
13501
|
+
var v = this.headersMap[r.normalizeName(c)];
|
|
13502
|
+
if (!Array.isArray(v))
|
|
13503
13503
|
return !1;
|
|
13504
13504
|
if (d !== void 0) {
|
|
13505
|
-
var
|
|
13506
|
-
return
|
|
13505
|
+
var m = r.normalizeValue(d);
|
|
13506
|
+
return v.indexOf(m) >= 0;
|
|
13507
13507
|
}
|
|
13508
13508
|
return !0;
|
|
13509
13509
|
}, l.prototype.get = function(c) {
|
|
@@ -13511,15 +13511,15 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
13511
13511
|
return d !== void 0 ? d.concat() : [];
|
|
13512
13512
|
}, l.prototype.forEach = function(c) {
|
|
13513
13513
|
var d = this;
|
|
13514
|
-
Object.getOwnPropertyNames(this.headersMap).forEach(function(
|
|
13515
|
-
c(
|
|
13514
|
+
Object.getOwnPropertyNames(this.headersMap).forEach(function(v) {
|
|
13515
|
+
c(v, d.headersMap[v]);
|
|
13516
13516
|
}, this);
|
|
13517
13517
|
}, l.prototype.toHeaders = function() {
|
|
13518
13518
|
if (typeof Headers < "u") {
|
|
13519
13519
|
var c = new Headers();
|
|
13520
|
-
return this.forEach(function(d,
|
|
13521
|
-
|
|
13522
|
-
c.append(d,
|
|
13520
|
+
return this.forEach(function(d, v) {
|
|
13521
|
+
v.forEach(function(m) {
|
|
13522
|
+
c.append(d, m);
|
|
13523
13523
|
});
|
|
13524
13524
|
}), c;
|
|
13525
13525
|
}
|
|
@@ -13556,13 +13556,13 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
13556
13556
|
return d && typeof d == "string" ? [d] : d;
|
|
13557
13557
|
}, p.getHeaderKeys = function(i) {
|
|
13558
13558
|
var l = i, c = {}, d = [];
|
|
13559
|
-
return l.keys ? r.iterateHeadersKeys(l, function(
|
|
13560
|
-
c[m] || (c[m] = !0, d.push(m));
|
|
13561
|
-
}) : l.forEach ? l.forEach(function(m, v) {
|
|
13562
|
-
c[v] || (c[v] = !0, d.push(v));
|
|
13563
|
-
}) : r.iterateHeaders(l, function(m) {
|
|
13564
|
-
var v = m[0];
|
|
13559
|
+
return l.keys ? r.iterateHeadersKeys(l, function(v) {
|
|
13565
13560
|
c[v] || (c[v] = !0, d.push(v));
|
|
13561
|
+
}) : l.forEach ? l.forEach(function(v, m) {
|
|
13562
|
+
c[m] || (c[m] = !0, d.push(m));
|
|
13563
|
+
}) : r.iterateHeaders(l, function(v) {
|
|
13564
|
+
var m = v[0];
|
|
13565
|
+
c[m] || (c[m] = !0, d.push(m));
|
|
13566
13566
|
}), d;
|
|
13567
13567
|
}, p.splitHeaderValue = function(i) {
|
|
13568
13568
|
var l = [];
|
|
@@ -13649,149 +13649,149 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
13649
13649
|
return typeof Response < "u" && Response.prototype.hasOwnProperty("body") && typeof Headers == "function";
|
|
13650
13650
|
};
|
|
13651
13651
|
}, function(e, s, n) {
|
|
13652
|
-
var u, g = this && this.__extends || (u = function(
|
|
13652
|
+
var u, g = this && this.__extends || (u = function(v, m) {
|
|
13653
13653
|
return (u = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(y, f) {
|
|
13654
13654
|
y.__proto__ = f;
|
|
13655
13655
|
} || function(y, f) {
|
|
13656
13656
|
for (var b in f)
|
|
13657
13657
|
f.hasOwnProperty(b) && (y[b] = f[b]);
|
|
13658
|
-
})(
|
|
13659
|
-
}, function(
|
|
13658
|
+
})(v, m);
|
|
13659
|
+
}, function(v, m) {
|
|
13660
13660
|
function y() {
|
|
13661
|
-
this.constructor =
|
|
13661
|
+
this.constructor = v;
|
|
13662
13662
|
}
|
|
13663
|
-
u(
|
|
13663
|
+
u(v, m), v.prototype = m === null ? Object.create(m) : (y.prototype = m.prototype, new y());
|
|
13664
13664
|
});
|
|
13665
13665
|
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
13666
13666
|
var p = n(0), o = n(1), r = n(11);
|
|
13667
|
-
s.XhrTransport = function(
|
|
13668
|
-
return function(
|
|
13667
|
+
s.XhrTransport = function(v) {
|
|
13668
|
+
return function(m) {
|
|
13669
13669
|
if (r.detectMozXHRSupport())
|
|
13670
|
-
return new l(
|
|
13670
|
+
return new l(m, v);
|
|
13671
13671
|
if (r.detectXHROverrideMimeTypeSupport())
|
|
13672
|
-
return new i(
|
|
13672
|
+
return new i(m, v);
|
|
13673
13673
|
throw new Error("This environment's XHR implementation cannot support binary transfer.");
|
|
13674
13674
|
};
|
|
13675
13675
|
};
|
|
13676
13676
|
var i = function() {
|
|
13677
|
-
function m
|
|
13678
|
-
this.options =
|
|
13677
|
+
function v(m, y) {
|
|
13678
|
+
this.options = m, this.init = y;
|
|
13679
13679
|
}
|
|
13680
|
-
return
|
|
13680
|
+
return v.prototype.onProgressEvent = function() {
|
|
13681
13681
|
this.options.debug && o.debug("XHR.onProgressEvent.length: ", this.xhr.response.length);
|
|
13682
|
-
var
|
|
13682
|
+
var m = this.xhr.response.substr(this.index);
|
|
13683
13683
|
this.index = this.xhr.response.length;
|
|
13684
|
-
var y = d(
|
|
13684
|
+
var y = d(m);
|
|
13685
13685
|
this.options.onChunk(y);
|
|
13686
|
-
},
|
|
13686
|
+
}, v.prototype.onLoadEvent = function() {
|
|
13687
13687
|
this.options.debug && o.debug("XHR.onLoadEvent"), this.options.onEnd();
|
|
13688
|
-
},
|
|
13688
|
+
}, v.prototype.onStateChange = function() {
|
|
13689
13689
|
this.options.debug && o.debug("XHR.onStateChange", this.xhr.readyState), this.xhr.readyState === XMLHttpRequest.HEADERS_RECEIVED && this.options.onHeaders(new p.Metadata(this.xhr.getAllResponseHeaders()), this.xhr.status);
|
|
13690
|
-
},
|
|
13691
|
-
this.xhr.send(
|
|
13692
|
-
},
|
|
13693
|
-
},
|
|
13690
|
+
}, v.prototype.sendMessage = function(m) {
|
|
13691
|
+
this.xhr.send(m);
|
|
13692
|
+
}, v.prototype.finishSend = function() {
|
|
13693
|
+
}, v.prototype.start = function(m) {
|
|
13694
13694
|
var y = this;
|
|
13695
|
-
this.metadata =
|
|
13695
|
+
this.metadata = m;
|
|
13696
13696
|
var f = new XMLHttpRequest();
|
|
13697
13697
|
this.xhr = f, f.open("POST", this.options.url), this.configureXhr(), this.metadata.forEach(function(b, h) {
|
|
13698
13698
|
f.setRequestHeader(b, h.join(", "));
|
|
13699
13699
|
}), f.withCredentials = !!this.init.withCredentials, f.addEventListener("readystatechange", this.onStateChange.bind(this)), f.addEventListener("progress", this.onProgressEvent.bind(this)), f.addEventListener("loadend", this.onLoadEvent.bind(this)), f.addEventListener("error", function(b) {
|
|
13700
13700
|
y.options.debug && o.debug("XHR.error", b), y.options.onEnd(b.error);
|
|
13701
13701
|
});
|
|
13702
|
-
},
|
|
13702
|
+
}, v.prototype.configureXhr = function() {
|
|
13703
13703
|
this.xhr.responseType = "text", this.xhr.overrideMimeType("text/plain; charset=x-user-defined");
|
|
13704
|
-
},
|
|
13704
|
+
}, v.prototype.cancel = function() {
|
|
13705
13705
|
this.options.debug && o.debug("XHR.abort"), this.xhr.abort();
|
|
13706
|
-
},
|
|
13706
|
+
}, v;
|
|
13707
13707
|
}();
|
|
13708
13708
|
s.XHR = i;
|
|
13709
|
-
var l = function(
|
|
13710
|
-
function
|
|
13711
|
-
return
|
|
13709
|
+
var l = function(v) {
|
|
13710
|
+
function m() {
|
|
13711
|
+
return v !== null && v.apply(this, arguments) || this;
|
|
13712
13712
|
}
|
|
13713
|
-
return g(
|
|
13713
|
+
return g(m, v), m.prototype.configureXhr = function() {
|
|
13714
13714
|
this.options.debug && o.debug("MozXHR.configureXhr: setting responseType to 'moz-chunked-arraybuffer'"), this.xhr.responseType = "moz-chunked-arraybuffer";
|
|
13715
|
-
},
|
|
13715
|
+
}, m.prototype.onProgressEvent = function() {
|
|
13716
13716
|
var y = this.xhr.response;
|
|
13717
13717
|
this.options.debug && o.debug("MozXHR.onProgressEvent: ", new Uint8Array(y)), this.options.onChunk(new Uint8Array(y));
|
|
13718
|
-
},
|
|
13718
|
+
}, m;
|
|
13719
13719
|
}(i);
|
|
13720
|
-
function c(
|
|
13721
|
-
var y =
|
|
13720
|
+
function c(v, m) {
|
|
13721
|
+
var y = v.charCodeAt(m);
|
|
13722
13722
|
if (y >= 55296 && y <= 56319) {
|
|
13723
|
-
var f =
|
|
13723
|
+
var f = v.charCodeAt(m + 1);
|
|
13724
13724
|
f >= 56320 && f <= 57343 && (y = 65536 + (y - 55296 << 10) + (f - 56320));
|
|
13725
13725
|
}
|
|
13726
13726
|
return y;
|
|
13727
13727
|
}
|
|
13728
|
-
function d(
|
|
13729
|
-
for (var
|
|
13730
|
-
var b = String.prototype.codePointAt ?
|
|
13731
|
-
|
|
13728
|
+
function d(v) {
|
|
13729
|
+
for (var m = new Uint8Array(v.length), y = 0, f = 0; f < v.length; f++) {
|
|
13730
|
+
var b = String.prototype.codePointAt ? v.codePointAt(f) : c(v, f);
|
|
13731
|
+
m[y++] = 255 & b;
|
|
13732
13732
|
}
|
|
13733
|
-
return
|
|
13733
|
+
return m;
|
|
13734
13734
|
}
|
|
13735
13735
|
s.MozChunkedArrayBufferXHR = l, s.stringToArrayBuffer = d;
|
|
13736
13736
|
}, function(e, s, n) {
|
|
13737
13737
|
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
13738
13738
|
var u, g = n(0);
|
|
13739
|
-
function p(
|
|
13740
|
-
return function(
|
|
13741
|
-
return
|
|
13742
|
-
}(
|
|
13739
|
+
function p(v) {
|
|
13740
|
+
return function(m) {
|
|
13741
|
+
return m === 9 || m === 10 || m === 13;
|
|
13742
|
+
}(v) || v >= 32 && v <= 126;
|
|
13743
13743
|
}
|
|
13744
|
-
function o(
|
|
13745
|
-
for (var
|
|
13746
|
-
if (!p(m
|
|
13744
|
+
function o(v) {
|
|
13745
|
+
for (var m = 0; m !== v.length; ++m)
|
|
13746
|
+
if (!p(v[m]))
|
|
13747
13747
|
throw new Error("Metadata is not valid (printable) ASCII");
|
|
13748
|
-
return String.fromCharCode.apply(String, Array.prototype.slice.call(
|
|
13748
|
+
return String.fromCharCode.apply(String, Array.prototype.slice.call(v));
|
|
13749
13749
|
}
|
|
13750
|
-
function r(
|
|
13751
|
-
return (128 &
|
|
13750
|
+
function r(v) {
|
|
13751
|
+
return (128 & v.getUint8(0)) == 128;
|
|
13752
13752
|
}
|
|
13753
|
-
function i(
|
|
13754
|
-
return
|
|
13753
|
+
function i(v) {
|
|
13754
|
+
return v.getUint32(1, !1);
|
|
13755
13755
|
}
|
|
13756
|
-
function l(
|
|
13757
|
-
return
|
|
13756
|
+
function l(v, m, y) {
|
|
13757
|
+
return v.byteLength - m >= y;
|
|
13758
13758
|
}
|
|
13759
|
-
function c(
|
|
13760
|
-
if (
|
|
13761
|
-
return
|
|
13762
|
-
var f =
|
|
13759
|
+
function c(v, m, y) {
|
|
13760
|
+
if (v.slice)
|
|
13761
|
+
return v.slice(m, y);
|
|
13762
|
+
var f = v.length;
|
|
13763
13763
|
y !== void 0 && (f = y);
|
|
13764
|
-
for (var b = new Uint8Array(f -
|
|
13765
|
-
b[h++] =
|
|
13764
|
+
for (var b = new Uint8Array(f - m), h = 0, R = m; R < f; R++)
|
|
13765
|
+
b[h++] = v[R];
|
|
13766
13766
|
return b;
|
|
13767
13767
|
}
|
|
13768
|
-
s.decodeASCII = o, s.encodeASCII = function(
|
|
13769
|
-
for (var
|
|
13770
|
-
var f =
|
|
13768
|
+
s.decodeASCII = o, s.encodeASCII = function(v) {
|
|
13769
|
+
for (var m = new Uint8Array(v.length), y = 0; y !== v.length; ++y) {
|
|
13770
|
+
var f = v.charCodeAt(y);
|
|
13771
13771
|
if (!p(f))
|
|
13772
13772
|
throw new Error("Metadata contains invalid ASCII");
|
|
13773
|
-
|
|
13773
|
+
m[y] = f;
|
|
13774
13774
|
}
|
|
13775
|
-
return
|
|
13776
|
-
}, function(
|
|
13777
|
-
|
|
13775
|
+
return m;
|
|
13776
|
+
}, function(v) {
|
|
13777
|
+
v[v.MESSAGE = 1] = "MESSAGE", v[v.TRAILERS = 2] = "TRAILERS";
|
|
13778
13778
|
}(u = s.ChunkType || (s.ChunkType = {}));
|
|
13779
13779
|
var d = function() {
|
|
13780
|
-
function
|
|
13780
|
+
function v() {
|
|
13781
13781
|
this.buffer = null, this.position = 0;
|
|
13782
13782
|
}
|
|
13783
|
-
return
|
|
13784
|
-
if (
|
|
13783
|
+
return v.prototype.parse = function(m, y) {
|
|
13784
|
+
if (m.length === 0 && y)
|
|
13785
13785
|
return [];
|
|
13786
13786
|
var f, b = [];
|
|
13787
13787
|
if (this.buffer == null)
|
|
13788
|
-
this.buffer =
|
|
13788
|
+
this.buffer = m, this.position = 0;
|
|
13789
13789
|
else if (this.position === this.buffer.byteLength)
|
|
13790
|
-
this.buffer =
|
|
13790
|
+
this.buffer = m, this.position = 0;
|
|
13791
13791
|
else {
|
|
13792
|
-
var h = this.buffer.byteLength - this.position, R = new Uint8Array(h +
|
|
13793
|
-
R.set(
|
|
13794
|
-
var P = new Uint8Array(
|
|
13792
|
+
var h = this.buffer.byteLength - this.position, R = new Uint8Array(h + m.byteLength), O = c(this.buffer, this.position);
|
|
13793
|
+
R.set(O, 0);
|
|
13794
|
+
var P = new Uint8Array(m);
|
|
13795
13795
|
R.set(P, h), this.buffer = R, this.position = 0;
|
|
13796
13796
|
}
|
|
13797
13797
|
for (; ; ) {
|
|
@@ -13805,7 +13805,7 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
13805
13805
|
return b.push({ chunkType: u.TRAILERS, trailers: (f = x, new g.Metadata(o(f))) }), b;
|
|
13806
13806
|
b.push({ chunkType: u.MESSAGE, data: x });
|
|
13807
13807
|
}
|
|
13808
|
-
},
|
|
13808
|
+
}, v;
|
|
13809
13809
|
}();
|
|
13810
13810
|
s.ChunkParser = d;
|
|
13811
13811
|
}, function(e, s, n) {
|
|
@@ -13847,11 +13847,11 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
13847
13847
|
};
|
|
13848
13848
|
}, function(e, s, n) {
|
|
13849
13849
|
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
13850
|
-
var u = n(3), g = n(4), p = n(6), o = n(12), r = n(7), i = n(5), l = n(9), c = n(13), d = n(15),
|
|
13851
|
-
(function(
|
|
13852
|
-
|
|
13853
|
-
return
|
|
13854
|
-
},
|
|
13850
|
+
var u = n(3), g = n(4), p = n(6), o = n(12), r = n(7), i = n(5), l = n(9), c = n(13), d = n(15), v = n(2);
|
|
13851
|
+
(function(m) {
|
|
13852
|
+
m.setDefaultTransport = g.setDefaultTransportFactory, m.CrossBrowserHttpTransport = i.CrossBrowserHttpTransport, m.FetchReadableStreamTransport = p.FetchReadableStreamTransport, m.XhrTransport = r.XhrTransport, m.WebsocketTransport = o.WebsocketTransport, m.Code = l.Code, m.Metadata = u.BrowserHeaders, m.client = function(y, f) {
|
|
13853
|
+
return v.client(y, f);
|
|
13854
|
+
}, m.invoke = c.invoke, m.unary = d.unary;
|
|
13855
13855
|
})(s.grpc || (s.grpc = {}));
|
|
13856
13856
|
}, function(e, s, n) {
|
|
13857
13857
|
var u;
|
|
@@ -13892,33 +13892,33 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
13892
13892
|
return function(r) {
|
|
13893
13893
|
return function(i) {
|
|
13894
13894
|
i.debug && g.debug("websocketRequest", i);
|
|
13895
|
-
var l, c = function(
|
|
13896
|
-
if (
|
|
13897
|
-
return "wss://" +
|
|
13898
|
-
if (
|
|
13899
|
-
return "ws://" +
|
|
13895
|
+
var l, c = function(m) {
|
|
13896
|
+
if (m.substr(0, 8) === "https://")
|
|
13897
|
+
return "wss://" + m.substr(8);
|
|
13898
|
+
if (m.substr(0, 7) === "http://")
|
|
13899
|
+
return "ws://" + m.substr(7);
|
|
13900
13900
|
throw new Error("Websocket transport constructed with non-https:// or http:// host.");
|
|
13901
13901
|
}(i.url), d = [];
|
|
13902
|
-
function m
|
|
13903
|
-
if (
|
|
13902
|
+
function v(m) {
|
|
13903
|
+
if (m === u.FINISH_SEND)
|
|
13904
13904
|
l.send(o);
|
|
13905
13905
|
else {
|
|
13906
|
-
var y =
|
|
13906
|
+
var y = m, f = new Int8Array(y.byteLength + 1);
|
|
13907
13907
|
f.set(new Uint8Array([0])), f.set(y, 1), l.send(f);
|
|
13908
13908
|
}
|
|
13909
13909
|
}
|
|
13910
|
-
return { sendMessage: function(
|
|
13911
|
-
l && l.readyState !== l.CONNECTING ? m
|
|
13910
|
+
return { sendMessage: function(m) {
|
|
13911
|
+
l && l.readyState !== l.CONNECTING ? v(m) : d.push(m);
|
|
13912
13912
|
}, finishSend: function() {
|
|
13913
|
-
l && l.readyState !== l.CONNECTING ?
|
|
13914
|
-
}, start: function(
|
|
13913
|
+
l && l.readyState !== l.CONNECTING ? v(u.FINISH_SEND) : d.push(u.FINISH_SEND);
|
|
13914
|
+
}, start: function(m) {
|
|
13915
13915
|
(l = new WebSocket(c, ["grpc-websockets"])).binaryType = "arraybuffer", l.onopen = function() {
|
|
13916
13916
|
var y;
|
|
13917
|
-
i.debug && g.debug("websocketRequest.onopen"), l.send((y = "",
|
|
13917
|
+
i.debug && g.debug("websocketRequest.onopen"), l.send((y = "", m.forEach(function(f, b) {
|
|
13918
13918
|
y += f + ": " + b.join(", ") + `\r
|
|
13919
13919
|
`;
|
|
13920
13920
|
}), p.encodeASCII(y))), d.forEach(function(f) {
|
|
13921
|
-
|
|
13921
|
+
v(f);
|
|
13922
13922
|
});
|
|
13923
13923
|
}, l.onclose = function(y) {
|
|
13924
13924
|
i.debug && g.debug("websocketRequest.onclose", y), i.onEnd();
|
|
@@ -13962,8 +13962,8 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
13962
13962
|
r = c;
|
|
13963
13963
|
}), l.onMessage(function(c) {
|
|
13964
13964
|
i = c;
|
|
13965
|
-
}), l.onEnd(function(c, d,
|
|
13966
|
-
o.onEnd({ status: c, statusMessage: d, headers: r || new u.Metadata(), message: i, trailers:
|
|
13965
|
+
}), l.onEnd(function(c, d, v) {
|
|
13966
|
+
o.onEnd({ status: c, statusMessage: d, headers: r || new u.Metadata(), message: i, trailers: v });
|
|
13967
13967
|
}), l.start(o.metadata), l.send(o.request), l.finishSend(), { close: function() {
|
|
13968
13968
|
l.close();
|
|
13969
13969
|
} };
|
|
@@ -20178,67 +20178,67 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20178
20178
|
}, 138: (t, e, s) => {
|
|
20179
20179
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ClientChannel = void 0;
|
|
20180
20180
|
var n = s(655), u = s(662), g = s(417), p = s(758), o = s(210), r = function(l) {
|
|
20181
|
-
function c(d,
|
|
20182
|
-
var
|
|
20183
|
-
return Object.defineProperty(
|
|
20184
|
-
return
|
|
20181
|
+
function c(d, v) {
|
|
20182
|
+
var m = l.call(this, d, v) || this;
|
|
20183
|
+
return Object.defineProperty(m, "streamIDCounter", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(m, "streams", { enumerable: !0, configurable: !0, writable: !0, value: {} }), v.onmessage = function(y) {
|
|
20184
|
+
return m.onChannelMessage(y);
|
|
20185
20185
|
}, d.addEventListener("iceconnectionstatechange", function() {
|
|
20186
20186
|
var y = d.iceConnectionState;
|
|
20187
|
-
y !== "failed" && y !== "disconnected" && y !== "closed" ||
|
|
20188
|
-
}),
|
|
20189
|
-
return
|
|
20190
|
-
}),
|
|
20187
|
+
y !== "failed" && y !== "disconnected" && y !== "closed" || m.onConnectionTerminated();
|
|
20188
|
+
}), v.addEventListener("close", function() {
|
|
20189
|
+
return m.onConnectionTerminated();
|
|
20190
|
+
}), m;
|
|
20191
20191
|
}
|
|
20192
20192
|
return n.__extends(c, l), Object.defineProperty(c.prototype, "transportFactory", { enumerable: !1, configurable: !0, writable: !0, value: function() {
|
|
20193
20193
|
var d = this;
|
|
20194
|
-
return function(
|
|
20195
|
-
return d.newStream(d.nextStreamID(),
|
|
20194
|
+
return function(v) {
|
|
20195
|
+
return d.newStream(d.nextStreamID(), v);
|
|
20196
20196
|
};
|
|
20197
20197
|
} }), Object.defineProperty(c.prototype, "onConnectionTerminated", { enumerable: !1, configurable: !0, writable: !0, value: function() {
|
|
20198
20198
|
this.closeWithReason(new p.ConnectionClosedError("data channel closed"));
|
|
20199
20199
|
var d = new p.ConnectionClosedError("connection terminated");
|
|
20200
|
-
for (var
|
|
20201
|
-
this.streams[
|
|
20200
|
+
for (var v in this.streams)
|
|
20201
|
+
this.streams[v].cs.closeWithRecvError(d);
|
|
20202
20202
|
} }), Object.defineProperty(c.prototype, "onChannelMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(d) {
|
|
20203
|
-
var
|
|
20203
|
+
var v;
|
|
20204
20204
|
try {
|
|
20205
|
-
|
|
20205
|
+
v = o.Response.deserializeBinary(d.data);
|
|
20206
20206
|
} catch (b) {
|
|
20207
20207
|
return void console.error("error deserializing message", b);
|
|
20208
20208
|
}
|
|
20209
|
-
var
|
|
20210
|
-
if (
|
|
20211
|
-
var y =
|
|
20212
|
-
f !== void 0 ? f.cs.onResponse(
|
|
20209
|
+
var m = v.getStream();
|
|
20210
|
+
if (m !== void 0) {
|
|
20211
|
+
var y = m.getId(), f = this.streams[y];
|
|
20212
|
+
f !== void 0 ? f.cs.onResponse(v) : console.error("no stream for id; discarding", "id", y);
|
|
20213
20213
|
} else
|
|
20214
20214
|
console.error("no stream id; discarding");
|
|
20215
20215
|
} }), Object.defineProperty(c.prototype, "nextStreamID", { enumerable: !1, configurable: !0, writable: !0, value: function() {
|
|
20216
20216
|
var d = new o.Stream();
|
|
20217
20217
|
return d.setId(this.streamIDCounter++), d;
|
|
20218
|
-
} }), Object.defineProperty(c.prototype, "newStream", { enumerable: !1, configurable: !0, writable: !0, value: function(d,
|
|
20219
|
-
var
|
|
20218
|
+
} }), Object.defineProperty(c.prototype, "newStream", { enumerable: !1, configurable: !0, writable: !0, value: function(d, v) {
|
|
20219
|
+
var m = this;
|
|
20220
20220
|
if (this.isClosed())
|
|
20221
|
-
return new i(new p.ConnectionClosedError("connection closed"),
|
|
20221
|
+
return new i(new p.ConnectionClosedError("connection closed"), v);
|
|
20222
20222
|
var y = this.streams[d.getId()];
|
|
20223
20223
|
if (y === void 0) {
|
|
20224
20224
|
if (Object.keys(this.streams).length > 256)
|
|
20225
|
-
return new i(new Error("stream limit hit"),
|
|
20225
|
+
return new i(new Error("stream limit hit"), v);
|
|
20226
20226
|
y = { cs: new g.ClientStream(this, d, function(f) {
|
|
20227
|
-
return
|
|
20228
|
-
},
|
|
20227
|
+
return m.removeStreamByID(f);
|
|
20228
|
+
}, v) }, this.streams[d.getId()] = y;
|
|
20229
20229
|
}
|
|
20230
20230
|
return y.cs;
|
|
20231
20231
|
} }), Object.defineProperty(c.prototype, "removeStreamByID", { enumerable: !1, configurable: !0, writable: !0, value: function(d) {
|
|
20232
20232
|
delete this.streams[d];
|
|
20233
|
-
} }), Object.defineProperty(c.prototype, "writeHeaders", { enumerable: !1, configurable: !0, writable: !0, value: function(d,
|
|
20234
|
-
var
|
|
20235
|
-
|
|
20236
|
-
} }), Object.defineProperty(c.prototype, "writeMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(d,
|
|
20237
|
-
var v = new o.Request();
|
|
20238
|
-
v.setStream(d), v.setMessage(m), this.write(v);
|
|
20239
|
-
} }), Object.defineProperty(c.prototype, "writeReset", { enumerable: !1, configurable: !0, writable: !0, value: function(d) {
|
|
20233
|
+
} }), Object.defineProperty(c.prototype, "writeHeaders", { enumerable: !1, configurable: !0, writable: !0, value: function(d, v) {
|
|
20234
|
+
var m = new o.Request();
|
|
20235
|
+
m.setStream(d), m.setHeaders(v), this.write(m);
|
|
20236
|
+
} }), Object.defineProperty(c.prototype, "writeMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(d, v) {
|
|
20240
20237
|
var m = new o.Request();
|
|
20241
|
-
m.setStream(d), m.
|
|
20238
|
+
m.setStream(d), m.setMessage(v), this.write(m);
|
|
20239
|
+
} }), Object.defineProperty(c.prototype, "writeReset", { enumerable: !1, configurable: !0, writable: !0, value: function(d) {
|
|
20240
|
+
var v = new o.Request();
|
|
20241
|
+
v.setStream(d), v.setRstStream(!0), this.write(v);
|
|
20242
20242
|
} }), c;
|
|
20243
20243
|
}(u.BaseChannel);
|
|
20244
20244
|
e.ClientChannel = r;
|
|
@@ -20259,74 +20259,74 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20259
20259
|
}, 417: (t, e, s) => {
|
|
20260
20260
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.encodeASCII = e.ClientStream = void 0;
|
|
20261
20261
|
var n = s(655), u = s(37), g = s(370), p = s(758), o = s(210), r = function(d) {
|
|
20262
|
-
function m
|
|
20262
|
+
function v(m, y, f, b) {
|
|
20263
20263
|
var h = d.call(this, y, f, b) || this;
|
|
20264
|
-
return Object.defineProperty(h, "channel", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(h, "headersReceived", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(h, "trailersReceived", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), h.channel =
|
|
20264
|
+
return Object.defineProperty(h, "channel", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(h, "headersReceived", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(h, "trailersReceived", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), h.channel = m, h;
|
|
20265
20265
|
}
|
|
20266
|
-
return n.__extends(
|
|
20266
|
+
return n.__extends(v, d), Object.defineProperty(v.prototype, "start", { enumerable: !1, configurable: !0, writable: !0, value: function(m) {
|
|
20267
20267
|
var y = "/".concat(this.opts.methodDefinition.service.serviceName, "/").concat(this.opts.methodDefinition.methodName), f = new o.RequestHeaders();
|
|
20268
|
-
f.setMethod(y), f.setMetadata(l(
|
|
20268
|
+
f.setMethod(y), f.setMetadata(l(m));
|
|
20269
20269
|
try {
|
|
20270
20270
|
this.channel.writeHeaders(this.stream, f);
|
|
20271
20271
|
} catch (b) {
|
|
20272
20272
|
console.error("error writing headers", b), this.closeWithRecvError(b);
|
|
20273
20273
|
}
|
|
20274
|
-
} }), Object.defineProperty(
|
|
20275
|
-
|
|
20276
|
-
} }), Object.defineProperty(
|
|
20274
|
+
} }), Object.defineProperty(v.prototype, "sendMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(m) {
|
|
20275
|
+
m ? this.writeMessage(!1, m.slice(5)) : this.writeMessage(!1, void 0);
|
|
20276
|
+
} }), Object.defineProperty(v.prototype, "resetStream", { enumerable: !1, configurable: !0, writable: !0, value: function() {
|
|
20277
20277
|
try {
|
|
20278
20278
|
this.channel.writeReset(this.stream);
|
|
20279
|
-
} catch (
|
|
20280
|
-
console.error("error writing reset",
|
|
20279
|
+
} catch (m) {
|
|
20280
|
+
console.error("error writing reset", m), this.closeWithRecvError(m);
|
|
20281
20281
|
}
|
|
20282
|
-
} }), Object.defineProperty(
|
|
20282
|
+
} }), Object.defineProperty(v.prototype, "finishSend", { enumerable: !1, configurable: !0, writable: !0, value: function() {
|
|
20283
20283
|
this.opts.methodDefinition.requestStream && this.writeMessage(!0, void 0);
|
|
20284
|
-
} }), Object.defineProperty(
|
|
20284
|
+
} }), Object.defineProperty(v.prototype, "cancel", { enumerable: !1, configurable: !0, writable: !0, value: function() {
|
|
20285
20285
|
this.closed || this.resetStream();
|
|
20286
|
-
} }), Object.defineProperty(
|
|
20286
|
+
} }), Object.defineProperty(v.prototype, "writeMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(m, y) {
|
|
20287
20287
|
try {
|
|
20288
20288
|
if (!y || y.length == 0)
|
|
20289
|
-
return (f = new o.PacketMessage()).setEom(!0), (b = new o.RequestMessage()).setHasMessage(!!y), b.setPacketMessage(f), b.setEos(
|
|
20289
|
+
return (f = new o.PacketMessage()).setEom(!0), (b = new o.RequestMessage()).setHasMessage(!!y), b.setPacketMessage(f), b.setEos(m), void this.channel.writeMessage(this.stream, b);
|
|
20290
20290
|
for (; y.length !== 0; ) {
|
|
20291
20291
|
var f, b, h = Math.min(y.length, 16373);
|
|
20292
|
-
(f = new o.PacketMessage()).setData(y.slice(0, h)), (y = y.slice(h)).length === 0 && f.setEom(!0), (b = new o.RequestMessage()).setHasMessage(!!y), b.setPacketMessage(f), b.setEos(
|
|
20292
|
+
(f = new o.PacketMessage()).setData(y.slice(0, h)), (y = y.slice(h)).length === 0 && f.setEom(!0), (b = new o.RequestMessage()).setHasMessage(!!y), b.setPacketMessage(f), b.setEos(m), this.channel.writeMessage(this.stream, b);
|
|
20293
20293
|
}
|
|
20294
20294
|
} catch (R) {
|
|
20295
20295
|
console.error("error writing message", R), this.closeWithRecvError(R);
|
|
20296
20296
|
}
|
|
20297
|
-
} }), Object.defineProperty(
|
|
20298
|
-
switch (
|
|
20297
|
+
} }), Object.defineProperty(v.prototype, "onResponse", { enumerable: !1, configurable: !0, writable: !0, value: function(m) {
|
|
20298
|
+
switch (m.getTypeCase()) {
|
|
20299
20299
|
case o.Response.TypeCase.HEADERS:
|
|
20300
20300
|
if (this.headersReceived)
|
|
20301
20301
|
return void this.closeWithRecvError(new Error("headers already received"));
|
|
20302
20302
|
if (this.trailersReceived)
|
|
20303
20303
|
return void this.closeWithRecvError(new Error("headers received after trailers"));
|
|
20304
|
-
this.processHeaders(
|
|
20304
|
+
this.processHeaders(m.getHeaders());
|
|
20305
20305
|
break;
|
|
20306
20306
|
case o.Response.TypeCase.MESSAGE:
|
|
20307
20307
|
if (!this.headersReceived)
|
|
20308
20308
|
return void this.closeWithRecvError(new Error("headers not yet received"));
|
|
20309
20309
|
if (this.trailersReceived)
|
|
20310
20310
|
return void this.closeWithRecvError(new Error("headers received after trailers"));
|
|
20311
|
-
this.processMessage(
|
|
20311
|
+
this.processMessage(m.getMessage());
|
|
20312
20312
|
break;
|
|
20313
20313
|
case o.Response.TypeCase.TRAILERS:
|
|
20314
|
-
this.processTrailers(
|
|
20314
|
+
this.processTrailers(m.getTrailers());
|
|
20315
20315
|
break;
|
|
20316
20316
|
default:
|
|
20317
|
-
console.error("unknown response type",
|
|
20317
|
+
console.error("unknown response type", m.getTypeCase());
|
|
20318
20318
|
}
|
|
20319
|
-
} }), Object.defineProperty(
|
|
20320
|
-
this.headersReceived = !0, this.opts.onHeaders(c(
|
|
20321
|
-
} }), Object.defineProperty(
|
|
20322
|
-
var y = d.prototype.processPacketMessage.call(this,
|
|
20319
|
+
} }), Object.defineProperty(v.prototype, "processHeaders", { enumerable: !1, configurable: !0, writable: !0, value: function(m) {
|
|
20320
|
+
this.headersReceived = !0, this.opts.onHeaders(c(m.getMetadata()), 200);
|
|
20321
|
+
} }), Object.defineProperty(v.prototype, "processMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(m) {
|
|
20322
|
+
var y = d.prototype.processPacketMessage.call(this, m.getPacketMessage());
|
|
20323
20323
|
if (y) {
|
|
20324
20324
|
var f = new ArrayBuffer(y.length + 5);
|
|
20325
20325
|
new DataView(f, 1, 4).setUint32(0, y.length, !1), new Uint8Array(f, 5).set(y), this.opts.onChunk(new Uint8Array(f));
|
|
20326
20326
|
}
|
|
20327
|
-
} }), Object.defineProperty(
|
|
20327
|
+
} }), Object.defineProperty(v.prototype, "processTrailers", { enumerable: !1, configurable: !0, writable: !0, value: function(m) {
|
|
20328
20328
|
this.trailersReceived = !0;
|
|
20329
|
-
var y, f, b = c(
|
|
20329
|
+
var y, f, b = c(m.getMetadata()), h = m.getStatus();
|
|
20330
20330
|
h ? (y = h.getCode(), f = h.getMessage(), b.set("grpc-status", "".concat(h.getCode())), f !== void 0 && b.set("grpc-message", h.getMessage())) : (y = 0, b.set("grpc-status", "0"), f = "");
|
|
20331
20331
|
var R = function(P) {
|
|
20332
20332
|
var D = "";
|
|
@@ -20334,14 +20334,14 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20334
20334
|
D += "".concat(G, ": ").concat(z.join(", "), `\r
|
|
20335
20335
|
`);
|
|
20336
20336
|
}), i(D);
|
|
20337
|
-
}(b),
|
|
20338
|
-
new DataView(
|
|
20339
|
-
} }),
|
|
20337
|
+
}(b), O = new ArrayBuffer(R.length + 5);
|
|
20338
|
+
new DataView(O, 0, 1).setUint8(0, 128), new DataView(O, 1, 4).setUint32(0, R.length, !1), new Uint8Array(O, 5).set(R), this.opts.onChunk(new Uint8Array(O)), y !== 0 ? this.closeWithRecvError(new p.GRPCError(y, f)) : this.closeWithRecvError();
|
|
20339
|
+
} }), v;
|
|
20340
20340
|
}(g.BaseStream);
|
|
20341
20341
|
function i(d) {
|
|
20342
|
-
for (var
|
|
20342
|
+
for (var v, m, y = new Uint8Array(d.length), f = 0; f !== d.length; ++f) {
|
|
20343
20343
|
var b = d.charCodeAt(f);
|
|
20344
|
-
if (!((
|
|
20344
|
+
if (!((v = m = b) === 9 || v === 10 || v === 13 || m >= 32 && m <= 126))
|
|
20345
20345
|
throw new Error("Metadata contains invalid ASCII");
|
|
20346
20346
|
y[f] = b;
|
|
20347
20347
|
}
|
|
@@ -20350,35 +20350,35 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20350
20350
|
e.ClientStream = r, e.encodeASCII = i;
|
|
20351
20351
|
var l = function(d) {
|
|
20352
20352
|
if (d) {
|
|
20353
|
-
var
|
|
20353
|
+
var v = new o.Metadata(), m = v.getMdMap();
|
|
20354
20354
|
if (d.forEach(function(y, f) {
|
|
20355
20355
|
var b = new o.Strings();
|
|
20356
|
-
b.setValuesList(f),
|
|
20357
|
-
}),
|
|
20358
|
-
return
|
|
20356
|
+
b.setValuesList(f), m.set(y, b);
|
|
20357
|
+
}), v.getMdMap().getLength() !== 0)
|
|
20358
|
+
return v;
|
|
20359
20359
|
}
|
|
20360
20360
|
}, c = function(d) {
|
|
20361
|
-
var
|
|
20362
|
-
return d && d.getMdMap().forEach(function(
|
|
20363
|
-
return
|
|
20364
|
-
}),
|
|
20361
|
+
var v = new u.grpc.Metadata();
|
|
20362
|
+
return d && d.getMdMap().forEach(function(m, y) {
|
|
20363
|
+
return v.append(y, m.getValuesList());
|
|
20364
|
+
}), v;
|
|
20365
20365
|
};
|
|
20366
20366
|
}, 512: (t, e, s) => {
|
|
20367
20367
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.dialWebRTC = e.dialDirect = void 0;
|
|
20368
|
-
var n = s(655), u = s(37), g = s(138), p = s(758), o = s(743), r = s(34), i = s(165), l = s(400), c = s(982), d = s(958),
|
|
20369
|
-
function
|
|
20368
|
+
var n = s(655), u = s(37), g = s(138), p = s(758), o = s(743), r = s(34), i = s(165), l = s(400), c = s(982), d = s(958), v = s(93);
|
|
20369
|
+
function m(h, R) {
|
|
20370
20370
|
return n.__awaiter(this, void 0, void 0, function() {
|
|
20371
|
-
var
|
|
20371
|
+
var O, P;
|
|
20372
20372
|
return n.__generator(this, function(D) {
|
|
20373
|
-
return b(R),
|
|
20373
|
+
return b(R), O = function(G) {
|
|
20374
20374
|
return u.grpc.CrossBrowserHttpTransport({ withCredentials: !1 })(G);
|
|
20375
|
-
}, !R?.accessToken || R?.externalAuthAddress && R?.externalAuthToEntity ? R && (R?.credentials || R?.accessToken) ? [2, y(h,
|
|
20376
|
-
return new f(G,
|
|
20375
|
+
}, !R?.accessToken || R?.externalAuthAddress && R?.externalAuthToEntity ? R && (R?.credentials || R?.accessToken) ? [2, y(h, O, R)] : [2, O] : ((P = new u.grpc.Metadata()).set("authorization", "Bearer ".concat(R.accessToken)), [2, function(G) {
|
|
20376
|
+
return new f(G, O, P);
|
|
20377
20377
|
}]);
|
|
20378
20378
|
});
|
|
20379
20379
|
});
|
|
20380
20380
|
}
|
|
20381
|
-
function y(h, R,
|
|
20381
|
+
function y(h, R, O) {
|
|
20382
20382
|
return n.__awaiter(this, void 0, void 0, function() {
|
|
20383
20383
|
var P, D, G, z = this;
|
|
20384
20384
|
return n.__generator(this, function(x) {
|
|
@@ -20386,31 +20386,31 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20386
20386
|
case 0:
|
|
20387
20387
|
return P = "", D = function() {
|
|
20388
20388
|
return n.__awaiter(z, void 0, void 0, function() {
|
|
20389
|
-
var L, k, W, X, S, M,
|
|
20390
|
-
return n.__generator(this, function(
|
|
20391
|
-
switch (
|
|
20389
|
+
var L, k, W, X, S, M, _, E, F, T;
|
|
20390
|
+
return n.__generator(this, function(w) {
|
|
20391
|
+
switch (w.label) {
|
|
20392
20392
|
case 0:
|
|
20393
|
-
return P != "" ? [3, 5] : (L = "",
|
|
20393
|
+
return P != "" ? [3, 5] : (L = "", O.accessToken && O.accessToken !== "" ? [3, 2] : ((_ = new i.AuthenticateRequest()).setEntity(O.authEntity ? O.authEntity : h.replace(/^(.*:\/\/)/, "")), (X = new i.Credentials()).setType((F = O.credentials) === null || F === void 0 ? void 0 : F.type), X.setPayload((T = O.credentials) === null || T === void 0 ? void 0 : T.payload), _.setCredentials(X), M = new Promise(function(C, j) {
|
|
20394
20394
|
k = C, W = j;
|
|
20395
|
-
}), u.grpc.invoke(l.AuthService.Authenticate, { request:
|
|
20395
|
+
}), u.grpc.invoke(l.AuthService.Authenticate, { request: _, host: O.externalAuthAddress ? O.externalAuthAddress : h, transport: R, onMessage: function(C) {
|
|
20396
20396
|
L = C.getAccessToken();
|
|
20397
20397
|
}, onEnd: function(C, j, I) {
|
|
20398
20398
|
C == u.grpc.Code.OK ? k(E) : W(j);
|
|
20399
20399
|
} }), [4, M]));
|
|
20400
20400
|
case 1:
|
|
20401
|
-
return
|
|
20401
|
+
return w.sent(), [3, 3];
|
|
20402
20402
|
case 2:
|
|
20403
|
-
L =
|
|
20403
|
+
L = O.accessToken, w.label = 3;
|
|
20404
20404
|
case 3:
|
|
20405
|
-
return P = L,
|
|
20405
|
+
return P = L, O.externalAuthAddress && O.externalAuthToEntity ? ((S = new u.grpc.Metadata()).set("authorization", "Bearer ".concat(P)), M = new Promise(function(C, j) {
|
|
20406
20406
|
k = C, W = j;
|
|
20407
|
-
}), L = "", (
|
|
20407
|
+
}), L = "", (_ = new i.AuthenticateToRequest()).setEntity(O.externalAuthToEntity), u.grpc.invoke(l.ExternalAuthService.AuthenticateTo, { request: _, host: O.externalAuthAddress, transport: R, metadata: S, onMessage: function(C) {
|
|
20408
20408
|
L = C.getAccessToken();
|
|
20409
20409
|
}, onEnd: function(C, j, I) {
|
|
20410
20410
|
C == u.grpc.Code.OK ? k(S) : W(j);
|
|
20411
20411
|
} }), [4, M]) : [3, 5];
|
|
20412
20412
|
case 4:
|
|
20413
|
-
|
|
20413
|
+
w.sent(), P = L, w.label = 5;
|
|
20414
20414
|
case 5:
|
|
20415
20415
|
return (E = new u.grpc.Metadata()).set("authorization", "Bearer ".concat(P)), [2, E];
|
|
20416
20416
|
}
|
|
@@ -20425,14 +20425,14 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20425
20425
|
});
|
|
20426
20426
|
});
|
|
20427
20427
|
}
|
|
20428
|
-
e.dialDirect =
|
|
20428
|
+
e.dialDirect = m;
|
|
20429
20429
|
var f = function() {
|
|
20430
|
-
function h(R,
|
|
20431
|
-
Object.defineProperty(this, "opts", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "transport", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "extraMetadata", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this.opts = R, this.extraMetadata = P, this.transport =
|
|
20430
|
+
function h(R, O, P) {
|
|
20431
|
+
Object.defineProperty(this, "opts", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "transport", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "extraMetadata", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this.opts = R, this.extraMetadata = P, this.transport = O(R);
|
|
20432
20432
|
}
|
|
20433
20433
|
return Object.defineProperty(h.prototype, "start", { enumerable: !1, configurable: !0, writable: !0, value: function(R) {
|
|
20434
|
-
this.extraMetadata.forEach(function(
|
|
20435
|
-
R.set(
|
|
20434
|
+
this.extraMetadata.forEach(function(O, P) {
|
|
20435
|
+
R.set(O, P);
|
|
20436
20436
|
}), this.transport.start(R);
|
|
20437
20437
|
} }), Object.defineProperty(h.prototype, "sendMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(R) {
|
|
20438
20438
|
this.transport.sendMessage(R);
|
|
@@ -20467,24 +20467,24 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20467
20467
|
}
|
|
20468
20468
|
}
|
|
20469
20469
|
}
|
|
20470
|
-
e.dialWebRTC = function(h, R,
|
|
20470
|
+
e.dialWebRTC = function(h, R, O) {
|
|
20471
20471
|
var P, D, G, z, x, L, k;
|
|
20472
20472
|
return n.__awaiter(this, void 0, void 0, function() {
|
|
20473
|
-
var W, X, S, M,
|
|
20473
|
+
var W, X, S, M, _, E, F, T, w, C, j, I, B, N, H, Z, ee, re, se, ie, pe, ne, ue, ae, ge = this;
|
|
20474
20474
|
return n.__generator(this, function(J) {
|
|
20475
20475
|
switch (J.label) {
|
|
20476
20476
|
case 0:
|
|
20477
|
-
return b(
|
|
20477
|
+
return b(O), W = O?.webrtcOptions, [4, (0, v.newPeerConnectionForClient)(W !== void 0 && W.disableTrickleICE, W?.rtcConfig)];
|
|
20478
20478
|
case 1:
|
|
20479
|
-
X = J.sent(), S = X.pc, M = X.dc,
|
|
20479
|
+
X = J.sent(), S = X.pc, M = X.dc, _ = !1, J.label = 2;
|
|
20480
20480
|
case 2:
|
|
20481
|
-
return J.trys.push([2, , 9, 10]), E =
|
|
20481
|
+
return J.trys.push([2, , 9, 10]), E = O, O && (E = n.__assign({}, O), O.accessToken || (E.authEntity = (P = O?.webrtcOptions) === null || P === void 0 ? void 0 : P.signalingAuthEntity, E.authEntity || (E.externalAuthAddress ? E.authEntity = (D = O.externalAuthAddress) === null || D === void 0 ? void 0 : D.replace(/^(.*:\/\/)/, "") : E.authEntity = h.replace(/^(.*:\/\/)/, "")), E.credentials = (G = O?.webrtcOptions) === null || G === void 0 ? void 0 : G.signalingCredentials, E.accessToken = (z = O?.webrtcOptions) === null || z === void 0 ? void 0 : z.signalingAccessToken), E.externalAuthAddress = (x = O?.webrtcOptions) === null || x === void 0 ? void 0 : x.signalingExternalAuthAddress, E.externalAuthToEntity = (L = O?.webrtcOptions) === null || L === void 0 ? void 0 : L.signalingExternalAuthToEntity), [4, m(h, E)];
|
|
20482
20482
|
case 3:
|
|
20483
|
-
return F = J.sent(),
|
|
20483
|
+
return F = J.sent(), T = u.grpc.client(d.SignalingService.Call, { host: h, transport: F }), w = "", C = !1, j = function(q) {
|
|
20484
20484
|
if (!C) {
|
|
20485
20485
|
C = !0;
|
|
20486
20486
|
var A = new c.CallUpdateRequest();
|
|
20487
|
-
A.setUuid(
|
|
20487
|
+
A.setUuid(w);
|
|
20488
20488
|
var V = new r.Status();
|
|
20489
20489
|
V.setCode(o.Code.UNKNOWN), V.setMessage(q), A.setError(V), u.grpc.unary(d.SignalingService.CallUpdate, { request: A, metadata: { "rpc-host": R }, host: h, transport: F, onEnd: function($) {
|
|
20490
20490
|
var U = $.status, Y = $.statusMessage, Q = $.message;
|
|
@@ -20495,7 +20495,7 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20495
20495
|
if (!C) {
|
|
20496
20496
|
C = !0;
|
|
20497
20497
|
var q = new c.CallUpdateRequest();
|
|
20498
|
-
q.setUuid(
|
|
20498
|
+
q.setUuid(w), q.setDone(!0), u.grpc.unary(d.SignalingService.CallUpdate, { request: q, metadata: { "rpc-host": R }, host: h, transport: F, onEnd: function(A) {
|
|
20499
20499
|
var V = A.status, $ = A.statusMessage, U = A.message;
|
|
20500
20500
|
V === u.grpc.Code.OK && U || console.error($);
|
|
20501
20501
|
} });
|
|
@@ -20512,7 +20512,7 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20512
20512
|
case 0:
|
|
20513
20513
|
return [4, N];
|
|
20514
20514
|
case 1:
|
|
20515
|
-
return $.sent(), H ? [2] : q.candidate === null ? (ee = !0, I(), [2]) : (U = q.candidate, (Y = new c.ICECandidate()).setCandidate(U.candidate), U.sdpMid && Y.setSdpMid(U.sdpMid), U.sdpMLineIndex && Y.setSdpmLineIndex(U.sdpMLineIndex), U.usernameFragment && Y.setUsernameFragment(U.usernameFragment), A = Y, (V = new c.CallUpdateRequest()).setUuid(
|
|
20515
|
+
return $.sent(), H ? [2] : q.candidate === null ? (ee = !0, I(), [2]) : (U = q.candidate, (Y = new c.ICECandidate()).setCandidate(U.candidate), U.sdpMid && Y.setSdpMid(U.sdpMid), U.sdpMLineIndex && Y.setSdpmLineIndex(U.sdpMLineIndex), U.usernameFragment && Y.setUsernameFragment(U.usernameFragment), A = Y, (V = new c.CallUpdateRequest()).setUuid(w), V.setCandidate(A), u.grpc.unary(d.SignalingService.CallUpdate, { request: V, metadata: { "rpc-host": R }, host: h, transport: F, onEnd: function(Q) {
|
|
20516
20516
|
var te = Q.status, K = Q.statusMessage, oe = Q.message;
|
|
20517
20517
|
te === u.grpc.Code.OK && oe || H || ee || console.error("error sending candidate", K);
|
|
20518
20518
|
} }), [2]);
|
|
@@ -20524,20 +20524,20 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20524
20524
|
case 5:
|
|
20525
20525
|
J.sent(), J.label = 6;
|
|
20526
20526
|
case 6:
|
|
20527
|
-
return re = !1,
|
|
20527
|
+
return re = !1, T.onMessage(function(q) {
|
|
20528
20528
|
return n.__awaiter(ge, void 0, void 0, function() {
|
|
20529
20529
|
var A, V, $, U, Y, Q;
|
|
20530
20530
|
return n.__generator(this, function(te) {
|
|
20531
20531
|
switch (te.label) {
|
|
20532
20532
|
case 0:
|
|
20533
|
-
return (A = q).hasInit() ? re ? (j("got init stage more than once"), [2]) : (V = A.getInit(), re = !0,
|
|
20533
|
+
return (A = q).hasInit() ? re ? (j("got init stage more than once"), [2]) : (V = A.getInit(), re = !0, w = A.getUuid(), $ = new RTCSessionDescription(JSON.parse(atob(V.getSdp()))), S.setRemoteDescription($), B(!0), W?.disableTrickleICE ? (H = !0, I(), [2]) : [3, 7]) : [3, 1];
|
|
20534
20534
|
case 1:
|
|
20535
20535
|
if (!A.hasUpdate())
|
|
20536
20536
|
return [3, 6];
|
|
20537
20537
|
if (!re)
|
|
20538
20538
|
return j("got update stage before init stage"), [2];
|
|
20539
|
-
if (A.getUuid() !==
|
|
20540
|
-
return j("uuid mismatch; have=".concat(A.getUuid(), " want=").concat(
|
|
20539
|
+
if (A.getUuid() !== w)
|
|
20540
|
+
return j("uuid mismatch; have=".concat(A.getUuid(), " want=").concat(w)), [2];
|
|
20541
20541
|
U = A.getUpdate(), K = U.getCandidate(), oe = { candidate: K.getCandidate() }, K.hasSdpMid() && (oe.sdpMid = K.getSdpMid()), K.hasSdpmLineIndex() && (oe.sdpMLineIndex = K.getSdpmLineIndex()), K.hasUsernameFragment() && (oe.usernameFragment = K.getUsernameFragment()), Y = oe, te.label = 2;
|
|
20542
20542
|
case 2:
|
|
20543
20543
|
return te.trys.push([2, 4, , 5]), [4, S.addIceCandidate(Y)];
|
|
@@ -20557,9 +20557,9 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20557
20557
|
});
|
|
20558
20558
|
}), pe = new Promise(function(q, A) {
|
|
20559
20559
|
se = q, ie = A;
|
|
20560
|
-
}),
|
|
20560
|
+
}), T.onEnd(function(q, A, V) {
|
|
20561
20561
|
q !== u.grpc.Code.OK ? A !== "Response closed without headers" ? (console.error(A), ie(A)) : ie(new p.ConnectionClosedError("failed to dial")) : se();
|
|
20562
|
-
}),
|
|
20562
|
+
}), T.start({ "rpc-host": R }), ne = new c.CallRequest(), ue = btoa(JSON.stringify(S.localDescription)), ne.setSdp(ue), W && W.disableTrickleICE && ne.setDisableTrickle(W.disableTrickleICE), T.send(ne), (ae = new g.ClientChannel(S, M)).ready.then(function() {
|
|
20563
20563
|
return se();
|
|
20564
20564
|
}).catch(function(q) {
|
|
20565
20565
|
return ie(q);
|
|
@@ -20567,9 +20567,9 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20567
20567
|
case 7:
|
|
20568
20568
|
return J.sent(), [4, ae.ready];
|
|
20569
20569
|
case 8:
|
|
20570
|
-
return J.sent(), H = !0, I(),
|
|
20570
|
+
return J.sent(), H = !0, I(), O?.externalAuthAddress || (k = O?.credentials) === null || k === void 0 || k.type, _ = !0, [2, { transportFactory: ae.transportFactory(), peerConnection: S }];
|
|
20571
20571
|
case 9:
|
|
20572
|
-
return
|
|
20572
|
+
return _ || S.close(), [7];
|
|
20573
20573
|
case 10:
|
|
20574
20574
|
return [2];
|
|
20575
20575
|
}
|
|
@@ -20601,7 +20601,7 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20601
20601
|
var n = s(655);
|
|
20602
20602
|
e.newPeerConnectionForClient = function(u, g) {
|
|
20603
20603
|
return n.__awaiter(this, void 0, void 0, function() {
|
|
20604
|
-
var p, o, r, i, l, c, d,
|
|
20604
|
+
var p, o, r, i, l, c, d, v, m = this;
|
|
20605
20605
|
return n.__generator(this, function(y) {
|
|
20606
20606
|
switch (y.label) {
|
|
20607
20607
|
case 0:
|
|
@@ -20610,7 +20610,7 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20610
20610
|
}), (i = p.createDataChannel("data", { id: 0, negotiated: !0, ordered: !0 })).binaryType = "arraybuffer", (l = p.createDataChannel("negotiation", { id: 1, negotiated: !0, ordered: !0 })).binaryType = "arraybuffer", c = !1, l.onopen = function() {
|
|
20611
20611
|
c = !0;
|
|
20612
20612
|
}, l.onmessage = function(f) {
|
|
20613
|
-
return n.__awaiter(
|
|
20613
|
+
return n.__awaiter(m, void 0, void 0, function() {
|
|
20614
20614
|
var b, h;
|
|
20615
20615
|
return n.__generator(this, function(R) {
|
|
20616
20616
|
switch (R.label) {
|
|
@@ -20630,7 +20630,7 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20630
20630
|
});
|
|
20631
20631
|
});
|
|
20632
20632
|
}, p.onnegotiationneeded = function() {
|
|
20633
|
-
return n.__awaiter(
|
|
20633
|
+
return n.__awaiter(m, void 0, void 0, function() {
|
|
20634
20634
|
var f;
|
|
20635
20635
|
return n.__generator(this, function(b) {
|
|
20636
20636
|
switch (b.label) {
|
|
@@ -20657,10 +20657,10 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20657
20657
|
case 3:
|
|
20658
20658
|
return y.sent(), [3, 5];
|
|
20659
20659
|
case 4:
|
|
20660
|
-
return
|
|
20660
|
+
return v = y.sent(), [2, Promise.reject(v)];
|
|
20661
20661
|
case 5:
|
|
20662
20662
|
return p.onicecandidate = function(f) {
|
|
20663
|
-
return n.__awaiter(
|
|
20663
|
+
return n.__awaiter(m, void 0, void 0, function() {
|
|
20664
20664
|
return n.__generator(this, function(b) {
|
|
20665
20665
|
return f.candidate !== null || o({ pc: p, dc: i }), [2];
|
|
20666
20666
|
});
|
|
@@ -20671,102 +20671,102 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20671
20671
|
});
|
|
20672
20672
|
};
|
|
20673
20673
|
}, 655: (t, e, s) => {
|
|
20674
|
-
s.r(e), s.d(e, { __assign: () => g, __asyncDelegator: () => P, __asyncGenerator: () =>
|
|
20674
|
+
s.r(e), s.d(e, { __assign: () => g, __asyncDelegator: () => P, __asyncGenerator: () => O, __asyncValues: () => D, __await: () => R, __awaiter: () => l, __classPrivateFieldGet: () => k, __classPrivateFieldIn: () => X, __classPrivateFieldSet: () => W, __createBinding: () => d, __decorate: () => o, __exportStar: () => v, __extends: () => u, __generator: () => c, __importDefault: () => L, __importStar: () => x, __makeTemplateObject: () => G, __metadata: () => i, __param: () => r, __read: () => y, __rest: () => p, __spread: () => f, __spreadArray: () => h, __spreadArrays: () => b, __values: () => m });
|
|
20675
20675
|
var n = function(S, M) {
|
|
20676
|
-
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
20677
|
-
|
|
20678
|
-
} || function(
|
|
20676
|
+
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, E) {
|
|
20677
|
+
_.__proto__ = E;
|
|
20678
|
+
} || function(_, E) {
|
|
20679
20679
|
for (var F in E)
|
|
20680
|
-
Object.prototype.hasOwnProperty.call(E, F) && (
|
|
20680
|
+
Object.prototype.hasOwnProperty.call(E, F) && (_[F] = E[F]);
|
|
20681
20681
|
}, n(S, M);
|
|
20682
20682
|
};
|
|
20683
20683
|
function u(S, M) {
|
|
20684
20684
|
if (typeof M != "function" && M !== null)
|
|
20685
20685
|
throw new TypeError("Class extends value " + String(M) + " is not a constructor or null");
|
|
20686
|
-
function
|
|
20686
|
+
function _() {
|
|
20687
20687
|
this.constructor = S;
|
|
20688
20688
|
}
|
|
20689
|
-
n(S, M), S.prototype = M === null ? Object.create(M) : (
|
|
20689
|
+
n(S, M), S.prototype = M === null ? Object.create(M) : (_.prototype = M.prototype, new _());
|
|
20690
20690
|
}
|
|
20691
20691
|
var g = function() {
|
|
20692
20692
|
return g = Object.assign || function(S) {
|
|
20693
|
-
for (var M,
|
|
20694
|
-
for (var F in M = arguments[
|
|
20693
|
+
for (var M, _ = 1, E = arguments.length; _ < E; _++)
|
|
20694
|
+
for (var F in M = arguments[_])
|
|
20695
20695
|
Object.prototype.hasOwnProperty.call(M, F) && (S[F] = M[F]);
|
|
20696
20696
|
return S;
|
|
20697
20697
|
}, g.apply(this, arguments);
|
|
20698
20698
|
};
|
|
20699
20699
|
function p(S, M) {
|
|
20700
|
-
var
|
|
20700
|
+
var _ = {};
|
|
20701
20701
|
for (var E in S)
|
|
20702
|
-
Object.prototype.hasOwnProperty.call(S, E) && M.indexOf(E) < 0 && (
|
|
20702
|
+
Object.prototype.hasOwnProperty.call(S, E) && M.indexOf(E) < 0 && (_[E] = S[E]);
|
|
20703
20703
|
if (S != null && typeof Object.getOwnPropertySymbols == "function") {
|
|
20704
20704
|
var F = 0;
|
|
20705
20705
|
for (E = Object.getOwnPropertySymbols(S); F < E.length; F++)
|
|
20706
|
-
M.indexOf(E[F]) < 0 && Object.prototype.propertyIsEnumerable.call(S, E[F]) && (
|
|
20706
|
+
M.indexOf(E[F]) < 0 && Object.prototype.propertyIsEnumerable.call(S, E[F]) && (_[E[F]] = S[E[F]]);
|
|
20707
20707
|
}
|
|
20708
|
-
return
|
|
20708
|
+
return _;
|
|
20709
20709
|
}
|
|
20710
|
-
function o(S, M,
|
|
20711
|
-
var F,
|
|
20710
|
+
function o(S, M, _, E) {
|
|
20711
|
+
var F, T = arguments.length, w = T < 3 ? M : E === null ? E = Object.getOwnPropertyDescriptor(M, _) : E;
|
|
20712
20712
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
20713
|
-
|
|
20713
|
+
w = Reflect.decorate(S, M, _, E);
|
|
20714
20714
|
else
|
|
20715
20715
|
for (var C = S.length - 1; C >= 0; C--)
|
|
20716
|
-
(F = S[C]) && (
|
|
20717
|
-
return
|
|
20716
|
+
(F = S[C]) && (w = (T < 3 ? F(w) : T > 3 ? F(M, _, w) : F(M, _)) || w);
|
|
20717
|
+
return T > 3 && w && Object.defineProperty(M, _, w), w;
|
|
20718
20718
|
}
|
|
20719
20719
|
function r(S, M) {
|
|
20720
|
-
return function(
|
|
20721
|
-
M(
|
|
20720
|
+
return function(_, E) {
|
|
20721
|
+
M(_, E, S);
|
|
20722
20722
|
};
|
|
20723
20723
|
}
|
|
20724
20724
|
function i(S, M) {
|
|
20725
20725
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
20726
20726
|
return Reflect.metadata(S, M);
|
|
20727
20727
|
}
|
|
20728
|
-
function l(S, M,
|
|
20729
|
-
return new (
|
|
20730
|
-
function
|
|
20728
|
+
function l(S, M, _, E) {
|
|
20729
|
+
return new (_ || (_ = Promise))(function(F, T) {
|
|
20730
|
+
function w(I) {
|
|
20731
20731
|
try {
|
|
20732
20732
|
j(E.next(I));
|
|
20733
20733
|
} catch (B) {
|
|
20734
|
-
|
|
20734
|
+
T(B);
|
|
20735
20735
|
}
|
|
20736
20736
|
}
|
|
20737
20737
|
function C(I) {
|
|
20738
20738
|
try {
|
|
20739
20739
|
j(E.throw(I));
|
|
20740
20740
|
} catch (B) {
|
|
20741
|
-
|
|
20741
|
+
T(B);
|
|
20742
20742
|
}
|
|
20743
20743
|
}
|
|
20744
20744
|
function j(I) {
|
|
20745
20745
|
var B;
|
|
20746
|
-
I.done ? F(I.value) : (B = I.value, B instanceof
|
|
20746
|
+
I.done ? F(I.value) : (B = I.value, B instanceof _ ? B : new _(function(N) {
|
|
20747
20747
|
N(B);
|
|
20748
|
-
})).then(
|
|
20748
|
+
})).then(w, C);
|
|
20749
20749
|
}
|
|
20750
20750
|
j((E = E.apply(S, M || [])).next());
|
|
20751
20751
|
});
|
|
20752
20752
|
}
|
|
20753
20753
|
function c(S, M) {
|
|
20754
|
-
var
|
|
20754
|
+
var _, E, F, T, w = { label: 0, sent: function() {
|
|
20755
20755
|
if (1 & F[0])
|
|
20756
20756
|
throw F[1];
|
|
20757
20757
|
return F[1];
|
|
20758
20758
|
}, trys: [], ops: [] };
|
|
20759
|
-
return
|
|
20759
|
+
return T = { next: C(0), throw: C(1), return: C(2) }, typeof Symbol == "function" && (T[Symbol.iterator] = function() {
|
|
20760
20760
|
return this;
|
|
20761
|
-
}),
|
|
20761
|
+
}), T;
|
|
20762
20762
|
function C(j) {
|
|
20763
20763
|
return function(I) {
|
|
20764
20764
|
return function(B) {
|
|
20765
|
-
if (
|
|
20765
|
+
if (_)
|
|
20766
20766
|
throw new TypeError("Generator is already executing.");
|
|
20767
|
-
for (;
|
|
20767
|
+
for (; T && (T = 0, B[0] && (w = 0)), w; )
|
|
20768
20768
|
try {
|
|
20769
|
-
if (
|
|
20769
|
+
if (_ = 1, E && (F = 2 & B[0] ? E.return : B[0] ? E.throw || ((F = E.return) && F.call(E), 0) : E.next) && !(F = F.call(E, B[1])).done)
|
|
20770
20770
|
return F;
|
|
20771
20771
|
switch (E = 0, F && (B = [2 & B[0], F.value]), B[0]) {
|
|
20772
20772
|
case 0:
|
|
@@ -20774,38 +20774,38 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20774
20774
|
F = B;
|
|
20775
20775
|
break;
|
|
20776
20776
|
case 4:
|
|
20777
|
-
return
|
|
20777
|
+
return w.label++, { value: B[1], done: !1 };
|
|
20778
20778
|
case 5:
|
|
20779
|
-
|
|
20779
|
+
w.label++, E = B[1], B = [0];
|
|
20780
20780
|
continue;
|
|
20781
20781
|
case 7:
|
|
20782
|
-
B =
|
|
20782
|
+
B = w.ops.pop(), w.trys.pop();
|
|
20783
20783
|
continue;
|
|
20784
20784
|
default:
|
|
20785
|
-
if (!((F = (F =
|
|
20786
|
-
|
|
20785
|
+
if (!((F = (F = w.trys).length > 0 && F[F.length - 1]) || B[0] !== 6 && B[0] !== 2)) {
|
|
20786
|
+
w = 0;
|
|
20787
20787
|
continue;
|
|
20788
20788
|
}
|
|
20789
20789
|
if (B[0] === 3 && (!F || B[1] > F[0] && B[1] < F[3])) {
|
|
20790
|
-
|
|
20790
|
+
w.label = B[1];
|
|
20791
20791
|
break;
|
|
20792
20792
|
}
|
|
20793
|
-
if (B[0] === 6 &&
|
|
20794
|
-
|
|
20793
|
+
if (B[0] === 6 && w.label < F[1]) {
|
|
20794
|
+
w.label = F[1], F = B;
|
|
20795
20795
|
break;
|
|
20796
20796
|
}
|
|
20797
|
-
if (F &&
|
|
20798
|
-
|
|
20797
|
+
if (F && w.label < F[2]) {
|
|
20798
|
+
w.label = F[2], w.ops.push(B);
|
|
20799
20799
|
break;
|
|
20800
20800
|
}
|
|
20801
|
-
F[2] &&
|
|
20801
|
+
F[2] && w.ops.pop(), w.trys.pop();
|
|
20802
20802
|
continue;
|
|
20803
20803
|
}
|
|
20804
|
-
B = M.call(S,
|
|
20804
|
+
B = M.call(S, w);
|
|
20805
20805
|
} catch (N) {
|
|
20806
20806
|
B = [6, N], E = 0;
|
|
20807
20807
|
} finally {
|
|
20808
|
-
|
|
20808
|
+
_ = F = 0;
|
|
20809
20809
|
}
|
|
20810
20810
|
if (5 & B[0])
|
|
20811
20811
|
throw B[1];
|
|
@@ -20814,23 +20814,23 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20814
20814
|
};
|
|
20815
20815
|
}
|
|
20816
20816
|
}
|
|
20817
|
-
var d = Object.create ? function(S, M,
|
|
20818
|
-
E === void 0 && (E =
|
|
20819
|
-
var F = Object.getOwnPropertyDescriptor(M,
|
|
20817
|
+
var d = Object.create ? function(S, M, _, E) {
|
|
20818
|
+
E === void 0 && (E = _);
|
|
20819
|
+
var F = Object.getOwnPropertyDescriptor(M, _);
|
|
20820
20820
|
F && !("get" in F ? !M.__esModule : F.writable || F.configurable) || (F = { enumerable: !0, get: function() {
|
|
20821
|
-
return M[
|
|
20821
|
+
return M[_];
|
|
20822
20822
|
} }), Object.defineProperty(S, E, F);
|
|
20823
|
-
} : function(S, M,
|
|
20824
|
-
E === void 0 && (E =
|
|
20823
|
+
} : function(S, M, _, E) {
|
|
20824
|
+
E === void 0 && (E = _), S[E] = M[_];
|
|
20825
20825
|
};
|
|
20826
|
-
function
|
|
20827
|
-
for (var
|
|
20828
|
-
|
|
20826
|
+
function v(S, M) {
|
|
20827
|
+
for (var _ in S)
|
|
20828
|
+
_ === "default" || Object.prototype.hasOwnProperty.call(M, _) || d(M, S, _);
|
|
20829
20829
|
}
|
|
20830
|
-
function
|
|
20831
|
-
var M = typeof Symbol == "function" && Symbol.iterator,
|
|
20832
|
-
if (
|
|
20833
|
-
return
|
|
20830
|
+
function m(S) {
|
|
20831
|
+
var M = typeof Symbol == "function" && Symbol.iterator, _ = M && S[M], E = 0;
|
|
20832
|
+
if (_)
|
|
20833
|
+
return _.call(S);
|
|
20834
20834
|
if (S && typeof S.length == "number")
|
|
20835
20835
|
return { next: function() {
|
|
20836
20836
|
return S && E >= S.length && (S = void 0), { value: S && S[E++], done: !S };
|
|
@@ -20838,24 +20838,24 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20838
20838
|
throw new TypeError(M ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
20839
20839
|
}
|
|
20840
20840
|
function y(S, M) {
|
|
20841
|
-
var
|
|
20842
|
-
if (!
|
|
20841
|
+
var _ = typeof Symbol == "function" && S[Symbol.iterator];
|
|
20842
|
+
if (!_)
|
|
20843
20843
|
return S;
|
|
20844
|
-
var E, F,
|
|
20844
|
+
var E, F, T = _.call(S), w = [];
|
|
20845
20845
|
try {
|
|
20846
|
-
for (; (M === void 0 || M-- > 0) && !(E =
|
|
20847
|
-
|
|
20846
|
+
for (; (M === void 0 || M-- > 0) && !(E = T.next()).done; )
|
|
20847
|
+
w.push(E.value);
|
|
20848
20848
|
} catch (C) {
|
|
20849
20849
|
F = { error: C };
|
|
20850
20850
|
} finally {
|
|
20851
20851
|
try {
|
|
20852
|
-
E && !E.done && (
|
|
20852
|
+
E && !E.done && (_ = T.return) && _.call(T);
|
|
20853
20853
|
} finally {
|
|
20854
20854
|
if (F)
|
|
20855
20855
|
throw F.error;
|
|
20856
20856
|
}
|
|
20857
20857
|
}
|
|
20858
|
-
return
|
|
20858
|
+
return w;
|
|
20859
20859
|
}
|
|
20860
20860
|
function f() {
|
|
20861
20861
|
for (var S = [], M = 0; M < arguments.length; M++)
|
|
@@ -20863,42 +20863,42 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20863
20863
|
return S;
|
|
20864
20864
|
}
|
|
20865
20865
|
function b() {
|
|
20866
|
-
for (var S = 0, M = 0,
|
|
20866
|
+
for (var S = 0, M = 0, _ = arguments.length; M < _; M++)
|
|
20867
20867
|
S += arguments[M].length;
|
|
20868
20868
|
var E = Array(S), F = 0;
|
|
20869
|
-
for (M = 0; M <
|
|
20870
|
-
for (var
|
|
20871
|
-
E[F] = w
|
|
20869
|
+
for (M = 0; M < _; M++)
|
|
20870
|
+
for (var T = arguments[M], w = 0, C = T.length; w < C; w++, F++)
|
|
20871
|
+
E[F] = T[w];
|
|
20872
20872
|
return E;
|
|
20873
20873
|
}
|
|
20874
|
-
function h(S, M,
|
|
20875
|
-
if (
|
|
20876
|
-
for (var E, F = 0,
|
|
20874
|
+
function h(S, M, _) {
|
|
20875
|
+
if (_ || arguments.length === 2)
|
|
20876
|
+
for (var E, F = 0, T = M.length; F < T; F++)
|
|
20877
20877
|
!E && F in M || (E || (E = Array.prototype.slice.call(M, 0, F)), E[F] = M[F]);
|
|
20878
20878
|
return S.concat(E || Array.prototype.slice.call(M));
|
|
20879
20879
|
}
|
|
20880
20880
|
function R(S) {
|
|
20881
20881
|
return this instanceof R ? (this.v = S, this) : new R(S);
|
|
20882
20882
|
}
|
|
20883
|
-
function
|
|
20883
|
+
function O(S, M, _) {
|
|
20884
20884
|
if (!Symbol.asyncIterator)
|
|
20885
20885
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
20886
|
-
var E, F =
|
|
20887
|
-
return E = {},
|
|
20886
|
+
var E, F = _.apply(S, M || []), T = [];
|
|
20887
|
+
return E = {}, w("next"), w("throw"), w("return"), E[Symbol.asyncIterator] = function() {
|
|
20888
20888
|
return this;
|
|
20889
20889
|
}, E;
|
|
20890
|
-
function
|
|
20890
|
+
function w(N) {
|
|
20891
20891
|
F[N] && (E[N] = function(H) {
|
|
20892
20892
|
return new Promise(function(Z, ee) {
|
|
20893
|
-
|
|
20893
|
+
T.push([N, H, Z, ee]) > 1 || C(N, H);
|
|
20894
20894
|
});
|
|
20895
20895
|
});
|
|
20896
20896
|
}
|
|
20897
20897
|
function C(N, H) {
|
|
20898
20898
|
try {
|
|
20899
|
-
(Z = F[N](H)).value instanceof R ? Promise.resolve(Z.value.v).then(j, I) : B(
|
|
20899
|
+
(Z = F[N](H)).value instanceof R ? Promise.resolve(Z.value.v).then(j, I) : B(T[0][2], Z);
|
|
20900
20900
|
} catch (ee) {
|
|
20901
|
-
B(
|
|
20901
|
+
B(T[0][3], ee);
|
|
20902
20902
|
}
|
|
20903
20903
|
var Z;
|
|
20904
20904
|
}
|
|
@@ -20909,37 +20909,37 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20909
20909
|
C("throw", N);
|
|
20910
20910
|
}
|
|
20911
20911
|
function B(N, H) {
|
|
20912
|
-
N(H),
|
|
20912
|
+
N(H), T.shift(), T.length && C(T[0][0], T[0][1]);
|
|
20913
20913
|
}
|
|
20914
20914
|
}
|
|
20915
20915
|
function P(S) {
|
|
20916
|
-
var M,
|
|
20916
|
+
var M, _;
|
|
20917
20917
|
return M = {}, E("next"), E("throw", function(F) {
|
|
20918
20918
|
throw F;
|
|
20919
20919
|
}), E("return"), M[Symbol.iterator] = function() {
|
|
20920
20920
|
return this;
|
|
20921
20921
|
}, M;
|
|
20922
|
-
function E(F,
|
|
20923
|
-
M[F] = S[F] ? function(
|
|
20924
|
-
return (
|
|
20925
|
-
} :
|
|
20922
|
+
function E(F, T) {
|
|
20923
|
+
M[F] = S[F] ? function(w) {
|
|
20924
|
+
return (_ = !_) ? { value: R(S[F](w)), done: F === "return" } : T ? T(w) : w;
|
|
20925
|
+
} : T;
|
|
20926
20926
|
}
|
|
20927
20927
|
}
|
|
20928
20928
|
function D(S) {
|
|
20929
20929
|
if (!Symbol.asyncIterator)
|
|
20930
20930
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
20931
|
-
var M,
|
|
20932
|
-
return
|
|
20931
|
+
var M, _ = S[Symbol.asyncIterator];
|
|
20932
|
+
return _ ? _.call(S) : (S = m(S), M = {}, E("next"), E("throw"), E("return"), M[Symbol.asyncIterator] = function() {
|
|
20933
20933
|
return this;
|
|
20934
20934
|
}, M);
|
|
20935
20935
|
function E(F) {
|
|
20936
|
-
M[F] = S[F] && function(
|
|
20937
|
-
return new Promise(function(
|
|
20936
|
+
M[F] = S[F] && function(T) {
|
|
20937
|
+
return new Promise(function(w, C) {
|
|
20938
20938
|
(function(j, I, B, N) {
|
|
20939
20939
|
Promise.resolve(N).then(function(H) {
|
|
20940
20940
|
j({ value: H, done: B });
|
|
20941
20941
|
}, I);
|
|
20942
|
-
})(
|
|
20942
|
+
})(w, C, (T = S[F](T)).done, T.value);
|
|
20943
20943
|
});
|
|
20944
20944
|
};
|
|
20945
20945
|
}
|
|
@@ -20957,28 +20957,28 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20957
20957
|
return S;
|
|
20958
20958
|
var M = {};
|
|
20959
20959
|
if (S != null)
|
|
20960
|
-
for (var
|
|
20961
|
-
|
|
20960
|
+
for (var _ in S)
|
|
20961
|
+
_ !== "default" && Object.prototype.hasOwnProperty.call(S, _) && d(M, S, _);
|
|
20962
20962
|
return z(M, S), M;
|
|
20963
20963
|
}
|
|
20964
20964
|
function L(S) {
|
|
20965
20965
|
return S && S.__esModule ? S : { default: S };
|
|
20966
20966
|
}
|
|
20967
|
-
function k(S, M,
|
|
20968
|
-
if (
|
|
20967
|
+
function k(S, M, _, E) {
|
|
20968
|
+
if (_ === "a" && !E)
|
|
20969
20969
|
throw new TypeError("Private accessor was defined without a getter");
|
|
20970
20970
|
if (typeof M == "function" ? S !== M || !E : !M.has(S))
|
|
20971
20971
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
20972
|
-
return
|
|
20972
|
+
return _ === "m" ? E : _ === "a" ? E.call(S) : E ? E.value : M.get(S);
|
|
20973
20973
|
}
|
|
20974
|
-
function W(S, M,
|
|
20974
|
+
function W(S, M, _, E, F) {
|
|
20975
20975
|
if (E === "m")
|
|
20976
20976
|
throw new TypeError("Private method is not writable");
|
|
20977
20977
|
if (E === "a" && !F)
|
|
20978
20978
|
throw new TypeError("Private accessor was defined without a setter");
|
|
20979
20979
|
if (typeof M == "function" ? S !== M || !F : !M.has(S))
|
|
20980
20980
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
20981
|
-
return E === "a" ? F.call(S,
|
|
20981
|
+
return E === "a" ? F.call(S, _) : F ? F.value = _ : M.set(S, _), _;
|
|
20982
20982
|
}
|
|
20983
20983
|
function X(S, M) {
|
|
20984
20984
|
if (M === null || typeof M != "object" && typeof M != "function")
|
|
@@ -21440,13 +21440,13 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
21440
21440
|
}
|
|
21441
21441
|
g.Authenticate = { methodName: "Authenticate", service: g, requestStream: !1, responseStream: !1, requestType: n.AuthenticateRequest, responseType: n.AuthenticateResponse }, e.AuthService = g, p.prototype.authenticate = function(i, l, c) {
|
|
21442
21442
|
arguments.length === 2 && (c = arguments[1]);
|
|
21443
|
-
var d = u.unary(g.Authenticate, { request: i, host: this.serviceHost, metadata: l, transport: this.options.transport, debug: this.options.debug, onEnd: function(
|
|
21443
|
+
var d = u.unary(g.Authenticate, { request: i, host: this.serviceHost, metadata: l, transport: this.options.transport, debug: this.options.debug, onEnd: function(v) {
|
|
21444
21444
|
if (c)
|
|
21445
|
-
if (
|
|
21446
|
-
var
|
|
21447
|
-
|
|
21445
|
+
if (v.status !== u.Code.OK) {
|
|
21446
|
+
var m = new Error(v.statusMessage);
|
|
21447
|
+
m.code = v.status, m.metadata = v.trailers, c(m, null);
|
|
21448
21448
|
} else
|
|
21449
|
-
c(null,
|
|
21449
|
+
c(null, v.message);
|
|
21450
21450
|
} });
|
|
21451
21451
|
return { cancel: function() {
|
|
21452
21452
|
c = null, d.close();
|
|
@@ -21462,13 +21462,13 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
21462
21462
|
}
|
|
21463
21463
|
o.AuthenticateTo = { methodName: "AuthenticateTo", service: o, requestStream: !1, responseStream: !1, requestType: n.AuthenticateToRequest, responseType: n.AuthenticateToResponse }, e.ExternalAuthService = o, r.prototype.authenticateTo = function(i, l, c) {
|
|
21464
21464
|
arguments.length === 2 && (c = arguments[1]);
|
|
21465
|
-
var d = u.unary(o.AuthenticateTo, { request: i, host: this.serviceHost, metadata: l, transport: this.options.transport, debug: this.options.debug, onEnd: function(
|
|
21465
|
+
var d = u.unary(o.AuthenticateTo, { request: i, host: this.serviceHost, metadata: l, transport: this.options.transport, debug: this.options.debug, onEnd: function(v) {
|
|
21466
21466
|
if (c)
|
|
21467
|
-
if (
|
|
21468
|
-
var
|
|
21469
|
-
|
|
21467
|
+
if (v.status !== u.Code.OK) {
|
|
21468
|
+
var m = new Error(v.statusMessage);
|
|
21469
|
+
m.code = v.status, m.metadata = v.trailers, c(m, null);
|
|
21470
21470
|
} else
|
|
21471
|
-
c(null,
|
|
21471
|
+
c(null, v.message);
|
|
21472
21472
|
} });
|
|
21473
21473
|
return { cancel: function() {
|
|
21474
21474
|
c = null, d.close();
|
|
@@ -22829,11 +22829,11 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
22829
22829
|
i.data.forEach(function(d) {
|
|
22830
22830
|
d(c);
|
|
22831
22831
|
});
|
|
22832
|
-
}, onEnd: function(c, d,
|
|
22833
|
-
i.status.forEach(function(
|
|
22834
|
-
|
|
22835
|
-
}), i.end.forEach(function(
|
|
22836
|
-
|
|
22832
|
+
}, onEnd: function(c, d, v) {
|
|
22833
|
+
i.status.forEach(function(m) {
|
|
22834
|
+
m({ code: c, details: d, metadata: v });
|
|
22835
|
+
}), i.end.forEach(function(m) {
|
|
22836
|
+
m({ code: c, details: d, metadata: v });
|
|
22837
22837
|
}), i = null;
|
|
22838
22838
|
} });
|
|
22839
22839
|
return { on: function(c, d) {
|
|
@@ -22857,10 +22857,10 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
22857
22857
|
}, p.prototype.answer = function(o) {
|
|
22858
22858
|
var r = { data: [], end: [], status: [] }, i = u.client(g.Answer, { host: this.serviceHost, metadata: o, transport: this.options.transport });
|
|
22859
22859
|
return i.onEnd(function(l, c, d) {
|
|
22860
|
-
r.status.forEach(function(
|
|
22861
|
-
|
|
22862
|
-
}), r.end.forEach(function(
|
|
22863
|
-
|
|
22860
|
+
r.status.forEach(function(v) {
|
|
22861
|
+
v({ code: l, details: c, metadata: d });
|
|
22862
|
+
}), r.end.forEach(function(v) {
|
|
22863
|
+
v({ code: l, details: c, metadata: d });
|
|
22864
22864
|
}), r = null;
|
|
22865
22865
|
}), i.onMessage(function(l) {
|
|
22866
22866
|
r.data.forEach(function(c) {
|
|
@@ -23237,7 +23237,6 @@ var __webpack_exports__dialDirect = __webpack_exports__.ry, __webpack_exports__d
|
|
|
23237
23237
|
var i, l = {
|
|
23238
23238
|
name: e.Message.getFieldWithDefault(r, 1, ""),
|
|
23239
23239
|
to: (i = r.getTo()) && u.Pose.toObject(o, i),
|
|
23240
|
-
worldState: (i = r.getWorldState()) && u.WorldState.toObject(o, i),
|
|
23241
23240
|
extra: (i = r.getExtra()) && p.Struct.toObject(o, i)
|
|
23242
23241
|
};
|
|
23243
23242
|
return o && (l.$jspbMessageInstance = r), l;
|
|
@@ -23259,10 +23258,6 @@ var __webpack_exports__dialDirect = __webpack_exports__.ry, __webpack_exports__d
|
|
|
23259
23258
|
var l = new u.Pose();
|
|
23260
23259
|
r.readMessage(l, u.Pose.deserializeBinaryFromReader), o.setTo(l);
|
|
23261
23260
|
break;
|
|
23262
|
-
case 3:
|
|
23263
|
-
var l = new u.WorldState();
|
|
23264
|
-
r.readMessage(l, u.WorldState.deserializeBinaryFromReader), o.setWorldState(l);
|
|
23265
|
-
break;
|
|
23266
23261
|
case 99:
|
|
23267
23262
|
var l = new p.Struct();
|
|
23268
23263
|
r.readMessage(l, p.Struct.deserializeBinaryFromReader), o.setExtra(l);
|
|
@@ -23285,10 +23280,6 @@ var __webpack_exports__dialDirect = __webpack_exports__.ry, __webpack_exports__d
|
|
|
23285
23280
|
2,
|
|
23286
23281
|
i,
|
|
23287
23282
|
u.Pose.serializeBinaryToWriter
|
|
23288
|
-
), i = o.getWorldState(), i != null && r.writeMessage(
|
|
23289
|
-
3,
|
|
23290
|
-
i,
|
|
23291
|
-
u.WorldState.serializeBinaryToWriter
|
|
23292
23283
|
), i = o.getExtra(), i != null && r.writeMessage(
|
|
23293
23284
|
99,
|
|
23294
23285
|
i,
|
|
@@ -23312,17 +23303,6 @@ var __webpack_exports__dialDirect = __webpack_exports__.ry, __webpack_exports__d
|
|
|
23312
23303
|
return this.setTo(void 0);
|
|
23313
23304
|
}, proto.viam.component.arm.v1.MoveToPositionRequest.prototype.hasTo = function() {
|
|
23314
23305
|
return e.Message.getField(this, 2) != null;
|
|
23315
|
-
}, proto.viam.component.arm.v1.MoveToPositionRequest.prototype.getWorldState = function() {
|
|
23316
|
-
return (
|
|
23317
|
-
/** @type{?proto.viam.common.v1.WorldState} */
|
|
23318
|
-
e.Message.getWrapperField(this, u.WorldState, 3)
|
|
23319
|
-
);
|
|
23320
|
-
}, proto.viam.component.arm.v1.MoveToPositionRequest.prototype.setWorldState = function(o) {
|
|
23321
|
-
return e.Message.setWrapperField(this, 3, o);
|
|
23322
|
-
}, proto.viam.component.arm.v1.MoveToPositionRequest.prototype.clearWorldState = function() {
|
|
23323
|
-
return this.setWorldState(void 0);
|
|
23324
|
-
}, proto.viam.component.arm.v1.MoveToPositionRequest.prototype.hasWorldState = function() {
|
|
23325
|
-
return e.Message.getField(this, 3) != null;
|
|
23326
23306
|
}, proto.viam.component.arm.v1.MoveToPositionRequest.prototype.getExtra = function() {
|
|
23327
23307
|
return (
|
|
23328
23308
|
/** @type{?proto.google.protobuf.Struct} */
|
|
@@ -26632,7 +26612,6 @@ var BoardServiceClient_1 = BoardServiceClient, gantry_pb = {};
|
|
|
26632
26612
|
var i, l = {
|
|
26633
26613
|
name: e.Message.getFieldWithDefault(r, 1, ""),
|
|
26634
26614
|
positionsMmList: (i = e.Message.getRepeatedFloatingPointField(r, 2)) == null ? void 0 : i,
|
|
26635
|
-
worldState: (i = r.getWorldState()) && u.WorldState.toObject(o, i),
|
|
26636
26615
|
extra: (i = r.getExtra()) && p.Struct.toObject(o, i)
|
|
26637
26616
|
};
|
|
26638
26617
|
return o && (l.$jspbMessageInstance = r), l;
|
|
@@ -26657,10 +26636,6 @@ var BoardServiceClient_1 = BoardServiceClient, gantry_pb = {};
|
|
|
26657
26636
|
), c = 0; c < l.length; c++)
|
|
26658
26637
|
o.addPositionsMm(l[c]);
|
|
26659
26638
|
break;
|
|
26660
|
-
case 3:
|
|
26661
|
-
var d = new u.WorldState();
|
|
26662
|
-
r.readMessage(d, u.WorldState.deserializeBinaryFromReader), o.setWorldState(d);
|
|
26663
|
-
break;
|
|
26664
26639
|
case 99:
|
|
26665
26640
|
var d = new p.Struct();
|
|
26666
26641
|
r.readMessage(d, p.Struct.deserializeBinaryFromReader), o.setExtra(d);
|
|
@@ -26682,10 +26657,6 @@ var BoardServiceClient_1 = BoardServiceClient, gantry_pb = {};
|
|
|
26682
26657
|
), i = o.getPositionsMmList(), i.length > 0 && r.writePackedDouble(
|
|
26683
26658
|
2,
|
|
26684
26659
|
i
|
|
26685
|
-
), i = o.getWorldState(), i != null && r.writeMessage(
|
|
26686
|
-
3,
|
|
26687
|
-
i,
|
|
26688
|
-
u.WorldState.serializeBinaryToWriter
|
|
26689
26660
|
), i = o.getExtra(), i != null && r.writeMessage(
|
|
26690
26661
|
99,
|
|
26691
26662
|
i,
|
|
@@ -26709,17 +26680,6 @@ var BoardServiceClient_1 = BoardServiceClient, gantry_pb = {};
|
|
|
26709
26680
|
return e.Message.addToRepeatedField(this, 2, o, r);
|
|
26710
26681
|
}, proto.viam.component.gantry.v1.MoveToPositionRequest.prototype.clearPositionsMmList = function() {
|
|
26711
26682
|
return this.setPositionsMmList([]);
|
|
26712
|
-
}, proto.viam.component.gantry.v1.MoveToPositionRequest.prototype.getWorldState = function() {
|
|
26713
|
-
return (
|
|
26714
|
-
/** @type{?proto.viam.common.v1.WorldState} */
|
|
26715
|
-
e.Message.getWrapperField(this, u.WorldState, 3)
|
|
26716
|
-
);
|
|
26717
|
-
}, proto.viam.component.gantry.v1.MoveToPositionRequest.prototype.setWorldState = function(o) {
|
|
26718
|
-
return e.Message.setWrapperField(this, 3, o);
|
|
26719
|
-
}, proto.viam.component.gantry.v1.MoveToPositionRequest.prototype.clearWorldState = function() {
|
|
26720
|
-
return this.setWorldState(void 0);
|
|
26721
|
-
}, proto.viam.component.gantry.v1.MoveToPositionRequest.prototype.hasWorldState = function() {
|
|
26722
|
-
return e.Message.getField(this, 3) != null;
|
|
26723
26683
|
}, proto.viam.component.gantry.v1.MoveToPositionRequest.prototype.getExtra = function() {
|
|
26724
26684
|
return (
|
|
26725
26685
|
/** @type{?proto.google.protobuf.Struct} */
|
|
@@ -28845,11 +28805,15 @@ var InputControllerServiceClient_1 = InputControllerServiceClient, motion_pb = {
|
|
|
28845
28805
|
var g = annotations_pb;
|
|
28846
28806
|
s.object.extend(proto, g);
|
|
28847
28807
|
var p = struct_pb;
|
|
28848
|
-
s.object.extend(proto, p), s.exportSymbol("proto.viam.service.motion.v1.CollisionSpecification", null, n), s.exportSymbol("proto.viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions", null, n), s.exportSymbol("proto.viam.service.motion.v1.Constraints", null, n), s.exportSymbol("proto.viam.service.motion.v1.GetPoseRequest", null, n), s.exportSymbol("proto.viam.service.motion.v1.GetPoseResponse", null, n), s.exportSymbol("proto.viam.service.motion.v1.LinearConstraint", null, n), s.exportSymbol("proto.viam.service.motion.v1.MoveRequest", null, n), s.exportSymbol("proto.viam.service.motion.v1.MoveResponse", null, n), s.exportSymbol("proto.viam.service.motion.v1.MoveSingleComponentRequest", null, n), s.exportSymbol("proto.viam.service.motion.v1.MoveSingleComponentResponse", null, n), s.exportSymbol("proto.viam.service.motion.v1.OrientationConstraint", null, n), proto.viam.service.motion.v1.MoveRequest = function(o) {
|
|
28808
|
+
s.object.extend(proto, p), s.exportSymbol("proto.viam.service.motion.v1.CollisionSpecification", null, n), s.exportSymbol("proto.viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions", null, n), s.exportSymbol("proto.viam.service.motion.v1.Constraints", null, n), s.exportSymbol("proto.viam.service.motion.v1.GetPoseRequest", null, n), s.exportSymbol("proto.viam.service.motion.v1.GetPoseResponse", null, n), s.exportSymbol("proto.viam.service.motion.v1.LinearConstraint", null, n), s.exportSymbol("proto.viam.service.motion.v1.MoveOnMapRequest", null, n), s.exportSymbol("proto.viam.service.motion.v1.MoveOnMapResponse", null, n), s.exportSymbol("proto.viam.service.motion.v1.MoveRequest", null, n), s.exportSymbol("proto.viam.service.motion.v1.MoveResponse", null, n), s.exportSymbol("proto.viam.service.motion.v1.MoveSingleComponentRequest", null, n), s.exportSymbol("proto.viam.service.motion.v1.MoveSingleComponentResponse", null, n), s.exportSymbol("proto.viam.service.motion.v1.OrientationConstraint", null, n), proto.viam.service.motion.v1.MoveRequest = function(o) {
|
|
28849
28809
|
e.Message.initialize(this, o, 0, -1, null, null);
|
|
28850
28810
|
}, s.inherits(proto.viam.service.motion.v1.MoveRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.motion.v1.MoveRequest.displayName = "proto.viam.service.motion.v1.MoveRequest"), proto.viam.service.motion.v1.MoveResponse = function(o) {
|
|
28851
28811
|
e.Message.initialize(this, o, 0, -1, null, null);
|
|
28852
|
-
}, s.inherits(proto.viam.service.motion.v1.MoveResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.motion.v1.MoveResponse.displayName = "proto.viam.service.motion.v1.MoveResponse"), proto.viam.service.motion.v1.
|
|
28812
|
+
}, s.inherits(proto.viam.service.motion.v1.MoveResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.motion.v1.MoveResponse.displayName = "proto.viam.service.motion.v1.MoveResponse"), proto.viam.service.motion.v1.MoveOnMapRequest = function(o) {
|
|
28813
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
28814
|
+
}, s.inherits(proto.viam.service.motion.v1.MoveOnMapRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.motion.v1.MoveOnMapRequest.displayName = "proto.viam.service.motion.v1.MoveOnMapRequest"), proto.viam.service.motion.v1.MoveOnMapResponse = function(o) {
|
|
28815
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
28816
|
+
}, s.inherits(proto.viam.service.motion.v1.MoveOnMapResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.motion.v1.MoveOnMapResponse.displayName = "proto.viam.service.motion.v1.MoveOnMapResponse"), proto.viam.service.motion.v1.MoveSingleComponentRequest = function(o) {
|
|
28853
28817
|
e.Message.initialize(this, o, 0, -1, null, null);
|
|
28854
28818
|
}, s.inherits(proto.viam.service.motion.v1.MoveSingleComponentRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.motion.v1.MoveSingleComponentRequest.displayName = "proto.viam.service.motion.v1.MoveSingleComponentRequest"), proto.viam.service.motion.v1.MoveSingleComponentResponse = function(o) {
|
|
28855
28819
|
e.Message.initialize(this, o, 0, -1, null, null);
|
|
@@ -28876,7 +28840,6 @@ var InputControllerServiceClient_1 = InputControllerServiceClient, motion_pb = {
|
|
|
28876
28840
|
componentName: (i = r.getComponentName()) && u.ResourceName.toObject(o, i),
|
|
28877
28841
|
worldState: (i = r.getWorldState()) && u.WorldState.toObject(o, i),
|
|
28878
28842
|
constraints: (i = r.getConstraints()) && proto.viam.service.motion.v1.Constraints.toObject(o, i),
|
|
28879
|
-
slamServiceName: (i = r.getSlamServiceName()) && u.ResourceName.toObject(o, i),
|
|
28880
28843
|
extra: (i = r.getExtra()) && p.Struct.toObject(o, i)
|
|
28881
28844
|
};
|
|
28882
28845
|
return o && (l.$jspbMessageInstance = r), l;
|
|
@@ -28910,10 +28873,6 @@ var InputControllerServiceClient_1 = InputControllerServiceClient, motion_pb = {
|
|
|
28910
28873
|
var l = new proto.viam.service.motion.v1.Constraints();
|
|
28911
28874
|
r.readMessage(l, proto.viam.service.motion.v1.Constraints.deserializeBinaryFromReader), o.setConstraints(l);
|
|
28912
28875
|
break;
|
|
28913
|
-
case 6:
|
|
28914
|
-
var l = new u.ResourceName();
|
|
28915
|
-
r.readMessage(l, u.ResourceName.deserializeBinaryFromReader), o.setSlamServiceName(l);
|
|
28916
|
-
break;
|
|
28917
28876
|
case 99:
|
|
28918
28877
|
var l = new p.Struct();
|
|
28919
28878
|
r.readMessage(l, p.Struct.deserializeBinaryFromReader), o.setExtra(l);
|
|
@@ -28948,10 +28907,6 @@ var InputControllerServiceClient_1 = InputControllerServiceClient, motion_pb = {
|
|
|
28948
28907
|
5,
|
|
28949
28908
|
i,
|
|
28950
28909
|
proto.viam.service.motion.v1.Constraints.serializeBinaryToWriter
|
|
28951
|
-
), i = o.getSlamServiceName(), i != null && r.writeMessage(
|
|
28952
|
-
6,
|
|
28953
|
-
i,
|
|
28954
|
-
u.ResourceName.serializeBinaryToWriter
|
|
28955
28910
|
), i = o.getExtra(), i != null && r.writeMessage(
|
|
28956
28911
|
99,
|
|
28957
28912
|
i,
|
|
@@ -29008,17 +28963,6 @@ var InputControllerServiceClient_1 = InputControllerServiceClient, motion_pb = {
|
|
|
29008
28963
|
return this.setConstraints(void 0);
|
|
29009
28964
|
}, proto.viam.service.motion.v1.MoveRequest.prototype.hasConstraints = function() {
|
|
29010
28965
|
return e.Message.getField(this, 5) != null;
|
|
29011
|
-
}, proto.viam.service.motion.v1.MoveRequest.prototype.getSlamServiceName = function() {
|
|
29012
|
-
return (
|
|
29013
|
-
/** @type{?proto.viam.common.v1.ResourceName} */
|
|
29014
|
-
e.Message.getWrapperField(this, u.ResourceName, 6)
|
|
29015
|
-
);
|
|
29016
|
-
}, proto.viam.service.motion.v1.MoveRequest.prototype.setSlamServiceName = function(o) {
|
|
29017
|
-
return e.Message.setWrapperField(this, 6, o);
|
|
29018
|
-
}, proto.viam.service.motion.v1.MoveRequest.prototype.clearSlamServiceName = function() {
|
|
29019
|
-
return this.setSlamServiceName(void 0);
|
|
29020
|
-
}, proto.viam.service.motion.v1.MoveRequest.prototype.hasSlamServiceName = function() {
|
|
29021
|
-
return e.Message.getField(this, 6) != null;
|
|
29022
28966
|
}, proto.viam.service.motion.v1.MoveRequest.prototype.getExtra = function() {
|
|
29023
28967
|
return (
|
|
29024
28968
|
/** @type{?proto.google.protobuf.Struct} */
|
|
@@ -29073,6 +29017,172 @@ var InputControllerServiceClient_1 = InputControllerServiceClient, motion_pb = {
|
|
|
29073
29017
|
);
|
|
29074
29018
|
}, proto.viam.service.motion.v1.MoveResponse.prototype.setSuccess = function(o) {
|
|
29075
29019
|
return e.Message.setProto3BooleanField(this, 1, o);
|
|
29020
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.motion.v1.MoveOnMapRequest.prototype.toObject = function(o) {
|
|
29021
|
+
return proto.viam.service.motion.v1.MoveOnMapRequest.toObject(o, this);
|
|
29022
|
+
}, proto.viam.service.motion.v1.MoveOnMapRequest.toObject = function(o, r) {
|
|
29023
|
+
var i, l = {
|
|
29024
|
+
name: e.Message.getFieldWithDefault(r, 1, ""),
|
|
29025
|
+
destination: (i = r.getDestination()) && u.Pose.toObject(o, i),
|
|
29026
|
+
componentName: (i = r.getComponentName()) && u.ResourceName.toObject(o, i),
|
|
29027
|
+
slamServiceName: (i = r.getSlamServiceName()) && u.ResourceName.toObject(o, i),
|
|
29028
|
+
extra: (i = r.getExtra()) && p.Struct.toObject(o, i)
|
|
29029
|
+
};
|
|
29030
|
+
return o && (l.$jspbMessageInstance = r), l;
|
|
29031
|
+
}), proto.viam.service.motion.v1.MoveOnMapRequest.deserializeBinary = function(o) {
|
|
29032
|
+
var r = new e.BinaryReader(o), i = new proto.viam.service.motion.v1.MoveOnMapRequest();
|
|
29033
|
+
return proto.viam.service.motion.v1.MoveOnMapRequest.deserializeBinaryFromReader(i, r);
|
|
29034
|
+
}, proto.viam.service.motion.v1.MoveOnMapRequest.deserializeBinaryFromReader = function(o, r) {
|
|
29035
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
29036
|
+
var i = r.getFieldNumber();
|
|
29037
|
+
switch (i) {
|
|
29038
|
+
case 1:
|
|
29039
|
+
var l = (
|
|
29040
|
+
/** @type {string} */
|
|
29041
|
+
r.readString()
|
|
29042
|
+
);
|
|
29043
|
+
o.setName(l);
|
|
29044
|
+
break;
|
|
29045
|
+
case 2:
|
|
29046
|
+
var l = new u.Pose();
|
|
29047
|
+
r.readMessage(l, u.Pose.deserializeBinaryFromReader), o.setDestination(l);
|
|
29048
|
+
break;
|
|
29049
|
+
case 3:
|
|
29050
|
+
var l = new u.ResourceName();
|
|
29051
|
+
r.readMessage(l, u.ResourceName.deserializeBinaryFromReader), o.setComponentName(l);
|
|
29052
|
+
break;
|
|
29053
|
+
case 4:
|
|
29054
|
+
var l = new u.ResourceName();
|
|
29055
|
+
r.readMessage(l, u.ResourceName.deserializeBinaryFromReader), o.setSlamServiceName(l);
|
|
29056
|
+
break;
|
|
29057
|
+
case 99:
|
|
29058
|
+
var l = new p.Struct();
|
|
29059
|
+
r.readMessage(l, p.Struct.deserializeBinaryFromReader), o.setExtra(l);
|
|
29060
|
+
break;
|
|
29061
|
+
default:
|
|
29062
|
+
r.skipField();
|
|
29063
|
+
break;
|
|
29064
|
+
}
|
|
29065
|
+
}
|
|
29066
|
+
return o;
|
|
29067
|
+
}, proto.viam.service.motion.v1.MoveOnMapRequest.prototype.serializeBinary = function() {
|
|
29068
|
+
var o = new e.BinaryWriter();
|
|
29069
|
+
return proto.viam.service.motion.v1.MoveOnMapRequest.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
29070
|
+
}, proto.viam.service.motion.v1.MoveOnMapRequest.serializeBinaryToWriter = function(o, r) {
|
|
29071
|
+
var i = void 0;
|
|
29072
|
+
i = o.getName(), i.length > 0 && r.writeString(
|
|
29073
|
+
1,
|
|
29074
|
+
i
|
|
29075
|
+
), i = o.getDestination(), i != null && r.writeMessage(
|
|
29076
|
+
2,
|
|
29077
|
+
i,
|
|
29078
|
+
u.Pose.serializeBinaryToWriter
|
|
29079
|
+
), i = o.getComponentName(), i != null && r.writeMessage(
|
|
29080
|
+
3,
|
|
29081
|
+
i,
|
|
29082
|
+
u.ResourceName.serializeBinaryToWriter
|
|
29083
|
+
), i = o.getSlamServiceName(), i != null && r.writeMessage(
|
|
29084
|
+
4,
|
|
29085
|
+
i,
|
|
29086
|
+
u.ResourceName.serializeBinaryToWriter
|
|
29087
|
+
), i = o.getExtra(), i != null && r.writeMessage(
|
|
29088
|
+
99,
|
|
29089
|
+
i,
|
|
29090
|
+
p.Struct.serializeBinaryToWriter
|
|
29091
|
+
);
|
|
29092
|
+
}, proto.viam.service.motion.v1.MoveOnMapRequest.prototype.getName = function() {
|
|
29093
|
+
return (
|
|
29094
|
+
/** @type {string} */
|
|
29095
|
+
e.Message.getFieldWithDefault(this, 1, "")
|
|
29096
|
+
);
|
|
29097
|
+
}, proto.viam.service.motion.v1.MoveOnMapRequest.prototype.setName = function(o) {
|
|
29098
|
+
return e.Message.setProto3StringField(this, 1, o);
|
|
29099
|
+
}, proto.viam.service.motion.v1.MoveOnMapRequest.prototype.getDestination = function() {
|
|
29100
|
+
return (
|
|
29101
|
+
/** @type{?proto.viam.common.v1.Pose} */
|
|
29102
|
+
e.Message.getWrapperField(this, u.Pose, 2)
|
|
29103
|
+
);
|
|
29104
|
+
}, proto.viam.service.motion.v1.MoveOnMapRequest.prototype.setDestination = function(o) {
|
|
29105
|
+
return e.Message.setWrapperField(this, 2, o);
|
|
29106
|
+
}, proto.viam.service.motion.v1.MoveOnMapRequest.prototype.clearDestination = function() {
|
|
29107
|
+
return this.setDestination(void 0);
|
|
29108
|
+
}, proto.viam.service.motion.v1.MoveOnMapRequest.prototype.hasDestination = function() {
|
|
29109
|
+
return e.Message.getField(this, 2) != null;
|
|
29110
|
+
}, proto.viam.service.motion.v1.MoveOnMapRequest.prototype.getComponentName = function() {
|
|
29111
|
+
return (
|
|
29112
|
+
/** @type{?proto.viam.common.v1.ResourceName} */
|
|
29113
|
+
e.Message.getWrapperField(this, u.ResourceName, 3)
|
|
29114
|
+
);
|
|
29115
|
+
}, proto.viam.service.motion.v1.MoveOnMapRequest.prototype.setComponentName = function(o) {
|
|
29116
|
+
return e.Message.setWrapperField(this, 3, o);
|
|
29117
|
+
}, proto.viam.service.motion.v1.MoveOnMapRequest.prototype.clearComponentName = function() {
|
|
29118
|
+
return this.setComponentName(void 0);
|
|
29119
|
+
}, proto.viam.service.motion.v1.MoveOnMapRequest.prototype.hasComponentName = function() {
|
|
29120
|
+
return e.Message.getField(this, 3) != null;
|
|
29121
|
+
}, proto.viam.service.motion.v1.MoveOnMapRequest.prototype.getSlamServiceName = function() {
|
|
29122
|
+
return (
|
|
29123
|
+
/** @type{?proto.viam.common.v1.ResourceName} */
|
|
29124
|
+
e.Message.getWrapperField(this, u.ResourceName, 4)
|
|
29125
|
+
);
|
|
29126
|
+
}, proto.viam.service.motion.v1.MoveOnMapRequest.prototype.setSlamServiceName = function(o) {
|
|
29127
|
+
return e.Message.setWrapperField(this, 4, o);
|
|
29128
|
+
}, proto.viam.service.motion.v1.MoveOnMapRequest.prototype.clearSlamServiceName = function() {
|
|
29129
|
+
return this.setSlamServiceName(void 0);
|
|
29130
|
+
}, proto.viam.service.motion.v1.MoveOnMapRequest.prototype.hasSlamServiceName = function() {
|
|
29131
|
+
return e.Message.getField(this, 4) != null;
|
|
29132
|
+
}, proto.viam.service.motion.v1.MoveOnMapRequest.prototype.getExtra = function() {
|
|
29133
|
+
return (
|
|
29134
|
+
/** @type{?proto.google.protobuf.Struct} */
|
|
29135
|
+
e.Message.getWrapperField(this, p.Struct, 99)
|
|
29136
|
+
);
|
|
29137
|
+
}, proto.viam.service.motion.v1.MoveOnMapRequest.prototype.setExtra = function(o) {
|
|
29138
|
+
return e.Message.setWrapperField(this, 99, o);
|
|
29139
|
+
}, proto.viam.service.motion.v1.MoveOnMapRequest.prototype.clearExtra = function() {
|
|
29140
|
+
return this.setExtra(void 0);
|
|
29141
|
+
}, proto.viam.service.motion.v1.MoveOnMapRequest.prototype.hasExtra = function() {
|
|
29142
|
+
return e.Message.getField(this, 99) != null;
|
|
29143
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.motion.v1.MoveOnMapResponse.prototype.toObject = function(o) {
|
|
29144
|
+
return proto.viam.service.motion.v1.MoveOnMapResponse.toObject(o, this);
|
|
29145
|
+
}, proto.viam.service.motion.v1.MoveOnMapResponse.toObject = function(o, r) {
|
|
29146
|
+
var i = {
|
|
29147
|
+
success: e.Message.getBooleanFieldWithDefault(r, 1, !1)
|
|
29148
|
+
};
|
|
29149
|
+
return o && (i.$jspbMessageInstance = r), i;
|
|
29150
|
+
}), proto.viam.service.motion.v1.MoveOnMapResponse.deserializeBinary = function(o) {
|
|
29151
|
+
var r = new e.BinaryReader(o), i = new proto.viam.service.motion.v1.MoveOnMapResponse();
|
|
29152
|
+
return proto.viam.service.motion.v1.MoveOnMapResponse.deserializeBinaryFromReader(i, r);
|
|
29153
|
+
}, proto.viam.service.motion.v1.MoveOnMapResponse.deserializeBinaryFromReader = function(o, r) {
|
|
29154
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
29155
|
+
var i = r.getFieldNumber();
|
|
29156
|
+
switch (i) {
|
|
29157
|
+
case 1:
|
|
29158
|
+
var l = (
|
|
29159
|
+
/** @type {boolean} */
|
|
29160
|
+
r.readBool()
|
|
29161
|
+
);
|
|
29162
|
+
o.setSuccess(l);
|
|
29163
|
+
break;
|
|
29164
|
+
default:
|
|
29165
|
+
r.skipField();
|
|
29166
|
+
break;
|
|
29167
|
+
}
|
|
29168
|
+
}
|
|
29169
|
+
return o;
|
|
29170
|
+
}, proto.viam.service.motion.v1.MoveOnMapResponse.prototype.serializeBinary = function() {
|
|
29171
|
+
var o = new e.BinaryWriter();
|
|
29172
|
+
return proto.viam.service.motion.v1.MoveOnMapResponse.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
29173
|
+
}, proto.viam.service.motion.v1.MoveOnMapResponse.serializeBinaryToWriter = function(o, r) {
|
|
29174
|
+
var i = void 0;
|
|
29175
|
+
i = o.getSuccess(), i && r.writeBool(
|
|
29176
|
+
1,
|
|
29177
|
+
i
|
|
29178
|
+
);
|
|
29179
|
+
}, proto.viam.service.motion.v1.MoveOnMapResponse.prototype.getSuccess = function() {
|
|
29180
|
+
return (
|
|
29181
|
+
/** @type {boolean} */
|
|
29182
|
+
e.Message.getBooleanFieldWithDefault(this, 1, !1)
|
|
29183
|
+
);
|
|
29184
|
+
}, proto.viam.service.motion.v1.MoveOnMapResponse.prototype.setSuccess = function(o) {
|
|
29185
|
+
return e.Message.setProto3BooleanField(this, 1, o);
|
|
29076
29186
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.motion.v1.MoveSingleComponentRequest.prototype.toObject = function(o) {
|
|
29077
29187
|
return proto.viam.service.motion.v1.MoveSingleComponentRequest.toObject(o, this);
|
|
29078
29188
|
}, proto.viam.service.motion.v1.MoveSingleComponentRequest.toObject = function(o, r) {
|
|
@@ -29750,6 +29860,14 @@ MotionService.Move = {
|
|
|
29750
29860
|
requestType: service_motion_v1_motion_pb.MoveRequest,
|
|
29751
29861
|
responseType: service_motion_v1_motion_pb.MoveResponse
|
|
29752
29862
|
};
|
|
29863
|
+
MotionService.MoveOnMap = {
|
|
29864
|
+
methodName: "MoveOnMap",
|
|
29865
|
+
service: MotionService,
|
|
29866
|
+
requestStream: !1,
|
|
29867
|
+
responseStream: !1,
|
|
29868
|
+
requestType: service_motion_v1_motion_pb.MoveOnMapRequest,
|
|
29869
|
+
responseType: service_motion_v1_motion_pb.MoveOnMapResponse
|
|
29870
|
+
};
|
|
29753
29871
|
MotionService.MoveSingleComponent = {
|
|
29754
29872
|
methodName: "MoveSingleComponent",
|
|
29755
29873
|
service: MotionService,
|
|
@@ -29800,6 +29918,29 @@ MotionServiceClient.prototype.move = function t(e, s, n) {
|
|
|
29800
29918
|
}
|
|
29801
29919
|
};
|
|
29802
29920
|
};
|
|
29921
|
+
MotionServiceClient.prototype.moveOnMap = function t(e, s, n) {
|
|
29922
|
+
arguments.length === 2 && (n = arguments[1]);
|
|
29923
|
+
var u = grpc$b.unary(MotionService.MoveOnMap, {
|
|
29924
|
+
request: e,
|
|
29925
|
+
host: this.serviceHost,
|
|
29926
|
+
metadata: s,
|
|
29927
|
+
transport: this.options.transport,
|
|
29928
|
+
debug: this.options.debug,
|
|
29929
|
+
onEnd: function(g) {
|
|
29930
|
+
if (n)
|
|
29931
|
+
if (g.status !== grpc$b.Code.OK) {
|
|
29932
|
+
var p = new Error(g.statusMessage);
|
|
29933
|
+
p.code = g.status, p.metadata = g.trailers, n(p, null);
|
|
29934
|
+
} else
|
|
29935
|
+
n(null, g.message);
|
|
29936
|
+
}
|
|
29937
|
+
});
|
|
29938
|
+
return {
|
|
29939
|
+
cancel: function() {
|
|
29940
|
+
n = null, u.close();
|
|
29941
|
+
}
|
|
29942
|
+
};
|
|
29943
|
+
};
|
|
29803
29944
|
MotionServiceClient.prototype.moveSingleComponent = function t(e, s, n) {
|
|
29804
29945
|
arguments.length === 2 && (n = arguments[1]);
|
|
29805
29946
|
var u = grpc$b.unary(MotionService.MoveSingleComponent, {
|
|
@@ -39027,7 +39168,7 @@ const isLocalConnection = (t) => t.includes(".local"), dialDirect = async (t) =>
|
|
|
39027
39168
|
if (!e)
|
|
39028
39169
|
throw new Error("failed to connect to robot");
|
|
39029
39170
|
return e;
|
|
39030
|
-
}, version = "0.0.
|
|
39171
|
+
}, version = "0.0.38";
|
|
39031
39172
|
var camera_pb = {}, httpbody_pb = {}, any_pb = {};
|
|
39032
39173
|
(function(t) {
|
|
39033
39174
|
var e = googleProtobuf, s = e, n = typeof globalThis < "u" && globalThis || typeof window < "u" && window || typeof n < "u" && n || typeof self < "u" && self || function() {
|
|
@@ -40495,13 +40636,13 @@ class ArmClient {
|
|
|
40495
40636
|
theta: g.getTheta()
|
|
40496
40637
|
};
|
|
40497
40638
|
}
|
|
40498
|
-
async moveToPosition(e, s
|
|
40499
|
-
const
|
|
40500
|
-
|
|
40501
|
-
const
|
|
40502
|
-
|
|
40503
|
-
|
|
40504
|
-
|
|
40639
|
+
async moveToPosition(e, s = {}) {
|
|
40640
|
+
const n = this.ArmService, u = new common_pb.Pose();
|
|
40641
|
+
u.setX(e.x), u.setY(e.y), u.setZ(e.z), u.setOX(e.ox), u.setOY(e.oy), u.setOZ(e.oz), u.setTheta(e.theta);
|
|
40642
|
+
const g = new arm_pb.MoveToPositionRequest();
|
|
40643
|
+
g.setName(this.name), g.setTo(u), g.setExtra(struct_pb.Struct.fromJavaScript(s)), this.options.requestLogger?.(g), await promisify(
|
|
40644
|
+
n.moveToPosition.bind(n),
|
|
40645
|
+
g
|
|
40505
40646
|
);
|
|
40506
40647
|
}
|
|
40507
40648
|
async moveToJointPositions(e, s = {}) {
|