@viamrobotics/sdk 0.0.45 → 0.0.47-alpha.1

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/main.es.js CHANGED
@@ -12484,8 +12484,8 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
12484
12484
  y.append(b, f);
12485
12485
  }) : typeof d == "string" ? this.appendFromString(d) : typeof d == "object" && Object.getOwnPropertyNames(d).forEach(function(f) {
12486
12486
  var b = d[f];
12487
- Array.isArray(b) ? b.forEach(function(h) {
12488
- y.append(f, h);
12487
+ Array.isArray(b) ? b.forEach(function(M) {
12488
+ y.append(f, M);
12489
12489
  }) : y.append(f, b);
12490
12490
  }));
12491
12491
  }
@@ -12494,8 +12494,8 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
12494
12494
  `), v = 0; v < m.length; v++) {
12495
12495
  var y = m[v], f = y.indexOf(":");
12496
12496
  if (f > 0) {
12497
- var b = y.substring(0, f).trim(), h = y.substring(f + 1).trim();
12498
- this.append(b, h);
12497
+ var b = y.substring(0, f).trim(), M = y.substring(f + 1).trim();
12498
+ this.append(b, M);
12499
12499
  }
12500
12500
  }
12501
12501
  }, c.prototype.delete = function(d, m) {
@@ -12618,24 +12618,24 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
12618
12618
  function d(f) {
12619
12619
  return f.getUint32(1, !1);
12620
12620
  }
12621
- function m(f, b, h) {
12622
- return f.byteLength - b >= h;
12621
+ function m(f, b, M) {
12622
+ return f.byteLength - b >= M;
12623
12623
  }
12624
- function v(f, b, h) {
12624
+ function v(f, b, M) {
12625
12625
  if (f.slice)
12626
- return f.slice(b, h);
12627
- var R = f.length;
12628
- h !== void 0 && (R = h);
12629
- for (var _ = new Uint8Array(R - b), P = 0, D = b; D < R; D++)
12630
- _[P++] = f[D];
12631
- return _;
12626
+ return f.slice(b, M);
12627
+ var h = f.length;
12628
+ M !== void 0 && (h = M);
12629
+ for (var O = new Uint8Array(h - b), w = 0, C = b; C < h; C++)
12630
+ O[w++] = f[C];
12631
+ return O;
12632
12632
  }
12633
12633
  g.decodeASCII = l, g.encodeASCII = function(f) {
12634
- for (var b = new Uint8Array(f.length), h = 0; h !== f.length; ++h) {
12635
- var R = f.charCodeAt(h);
12636
- if (!i(R))
12634
+ for (var b = new Uint8Array(f.length), M = 0; M !== f.length; ++M) {
12635
+ var h = f.charCodeAt(M);
12636
+ if (!i(h))
12637
12637
  throw new Error("Metadata contains invalid ASCII");
12638
- b[h] = R;
12638
+ b[M] = h;
12639
12639
  }
12640
12640
  return b;
12641
12641
  }, function(f) {
@@ -12645,30 +12645,30 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
12645
12645
  function f() {
12646
12646
  this.buffer = null, this.position = 0;
12647
12647
  }
12648
- return f.prototype.parse = function(b, h) {
12649
- if (b.length === 0 && h)
12648
+ return f.prototype.parse = function(b, M) {
12649
+ if (b.length === 0 && M)
12650
12650
  return [];
12651
- var R, _ = [];
12651
+ var h, 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), I = v(this.buffer, this.position);
12658
- D.set(I, 0);
12659
- var z = new Uint8Array(b);
12660
- D.set(z, P), this.buffer = D, this.position = 0;
12657
+ var w = this.buffer.byteLength - this.position, C = new Uint8Array(w + b.byteLength), L = v(this.buffer, this.position);
12658
+ C.set(L, 0);
12659
+ var W = new Uint8Array(b);
12660
+ C.set(W, w), this.buffer = C, this.position = 0;
12661
12661
  }
12662
12662
  for (; ; ) {
12663
12663
  if (!m(this.buffer, this.position, 5))
12664
- return _;
12665
- var x = v(this.buffer, this.position, this.position + 5), q = new DataView(x.buffer, x.byteOffset, x.byteLength), k = d(q);
12666
- if (!m(this.buffer, this.position, 5 + k))
12667
- return _;
12668
- var N = v(this.buffer, this.position + 5, this.position + 5 + k);
12669
- if (this.position += 5 + k, c(q))
12670
- return _.push({ chunkType: o.TRAILERS, trailers: (R = N, new r.Metadata(l(R))) }), _;
12671
- _.push({ chunkType: o.MESSAGE, data: N });
12664
+ return O;
12665
+ var z = v(this.buffer, this.position, this.position + 5), U = new DataView(z.buffer, z.byteOffset, z.byteLength), I = d(U);
12666
+ if (!m(this.buffer, this.position, 5 + I))
12667
+ return O;
12668
+ var x = v(this.buffer, this.position + 5, this.position + 5 + I);
12669
+ if (this.position += 5 + I, c(U))
12670
+ return O.push({ chunkType: o.TRAILERS, trailers: (h = x, new r.Metadata(l(h))) }), O;
12671
+ O.push({ chunkType: o.MESSAGE, data: x });
12672
12672
  }
12673
12673
  }, f;
12674
12674
  }();
@@ -12729,14 +12729,14 @@ 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 = v(f);
12733
- this.props.debug && l.debug("onHeaders.gRPCStatus", h);
12734
- var R = h && h >= 0 ? h : i.httpStatusToCode(b);
12735
- this.props.debug && l.debug("onHeaders.code", R);
12736
- var _ = f.get("grpc-message") || [];
12737
- if (this.props.debug && l.debug("onHeaders.gRPCMessage", _), this.rawOnHeaders(f), R !== i.Code.OK) {
12738
- var P = this.decodeGRPCStatus(_[0]);
12739
- this.rawOnError(R, P, f);
12732
+ var M = v(f);
12733
+ this.props.debug && l.debug("onHeaders.gRPCStatus", M);
12734
+ var h = M && M >= 0 ? M : i.httpStatusToCode(b);
12735
+ this.props.debug && l.debug("onHeaders.code", h);
12736
+ var O = f.get("grpc-message") || [];
12737
+ if (this.props.debug && l.debug("onHeaders.gRPCMessage", O), this.rawOnHeaders(f), h !== i.Code.OK) {
12738
+ var w = this.decodeGRPCStatus(O[0]);
12739
+ this.rawOnError(h, w, f);
12740
12740
  }
12741
12741
  }
12742
12742
  }, y.prototype.onTransportChunk = function(f) {
@@ -12744,18 +12744,18 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
12744
12744
  if (this.closed)
12745
12745
  this.props.debug && l.debug("grpc.onChunk received after request was closed - ignoring");
12746
12746
  else {
12747
- var h = [];
12747
+ var M = [];
12748
12748
  try {
12749
- h = this.parser.parse(f);
12750
- } catch (R) {
12751
- return this.props.debug && l.debug("onChunk.parsing error", R, R.message), void this.rawOnError(i.Code.Internal, "parsing error: " + R.message);
12749
+ M = this.parser.parse(f);
12750
+ } catch (h) {
12751
+ return this.props.debug && l.debug("onChunk.parsing error", h, h.message), void this.rawOnError(i.Code.Internal, "parsing error: " + h.message);
12752
12752
  }
12753
- h.forEach(function(R) {
12754
- if (R.chunkType === r.ChunkType.MESSAGE) {
12755
- var _ = b.methodDefinition.responseType.deserializeBinary(R.data);
12756
- b.rawOnMessage(_);
12753
+ M.forEach(function(h) {
12754
+ if (h.chunkType === r.ChunkType.MESSAGE) {
12755
+ var O = b.methodDefinition.responseType.deserializeBinary(h.data);
12756
+ b.rawOnMessage(O);
12757
12757
  } else
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)));
12758
+ h.chunkType === r.ChunkType.TRAILERS && (b.responseHeaders ? (b.responseTrailers = new o.Metadata(h.trailers), b.props.debug && l.debug("onChunk.trailers", b.responseTrailers)) : (b.responseHeaders = new o.Metadata(h.trailers), b.rawOnHeaders(b.responseHeaders)));
12759
12759
  });
12760
12760
  }
12761
12761
  }, y.prototype.onTransportEnd = function() {
@@ -12764,18 +12764,18 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
12764
12764
  else if (this.responseTrailers !== void 0) {
12765
12765
  var f = v(this.responseTrailers);
12766
12766
  if (f !== null) {
12767
- var b = this.responseTrailers.get("grpc-message"), h = this.decodeGRPCStatus(b[0]);
12768
- this.rawOnEnd(f, h, this.responseTrailers);
12767
+ var b = this.responseTrailers.get("grpc-message"), M = this.decodeGRPCStatus(b[0]);
12768
+ this.rawOnEnd(f, M, this.responseTrailers);
12769
12769
  } else
12770
12770
  this.rawOnError(i.Code.Internal, "Response closed without grpc-status (Trailers provided)");
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 = v(this.responseHeaders), _ = this.responseHeaders.get("grpc-message");
12775
- if (this.props.debug && l.debug("grpc.headers only response ", R, _), R === null)
12774
+ var h = v(this.responseHeaders), O = this.responseHeaders.get("grpc-message");
12775
+ if (this.props.debug && l.debug("grpc.headers only response ", h, O), h === null)
12776
12776
  return void this.rawOnEnd(i.Code.Unknown, "Response closed without grpc-status (Headers only)", this.responseHeaders);
12777
- var P = this.decodeGRPCStatus(_[0]);
12778
- this.rawOnEnd(R, P, this.responseHeaders);
12777
+ var w = this.decodeGRPCStatus(O[0]);
12778
+ this.rawOnEnd(h, w, this.responseHeaders);
12779
12779
  }
12780
12780
  }, y.prototype.decodeGRPCStatus = function(f) {
12781
12781
  if (!f)
@@ -12785,15 +12785,15 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
12785
12785
  } catch {
12786
12786
  return f;
12787
12787
  }
12788
- }, y.prototype.rawOnEnd = function(f, b, h) {
12789
- var R = this;
12790
- this.props.debug && l.debug("rawOnEnd", f, b, h), this.completed || (this.completed = !0, this.onEndCallbacks.forEach(function(_) {
12791
- if (!R.closed)
12788
+ }, y.prototype.rawOnEnd = function(f, b, M) {
12789
+ var h = this;
12790
+ this.props.debug && l.debug("rawOnEnd", f, b, M), this.completed || (this.completed = !0, this.onEndCallbacks.forEach(function(O) {
12791
+ if (!h.closed)
12792
12792
  try {
12793
- _(f, b, h);
12794
- } catch (P) {
12793
+ O(f, b, M);
12794
+ } catch (w) {
12795
12795
  setTimeout(function() {
12796
- throw P;
12796
+ throw w;
12797
12797
  }, 0);
12798
12798
  }
12799
12799
  }));
@@ -12801,33 +12801,33 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
12801
12801
  this.props.debug && l.debug("rawOnHeaders", f), this.completed || this.onHeadersCallbacks.forEach(function(b) {
12802
12802
  try {
12803
12803
  b(f);
12804
- } catch (h) {
12804
+ } catch (M) {
12805
12805
  setTimeout(function() {
12806
- throw h;
12806
+ throw M;
12807
12807
  }, 0);
12808
12808
  }
12809
12809
  });
12810
- }, y.prototype.rawOnError = function(f, b, h) {
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(_) {
12813
- if (!R.closed)
12810
+ }, y.prototype.rawOnError = function(f, b, M) {
12811
+ var h = this;
12812
+ M === void 0 && (M = new o.Metadata()), this.props.debug && l.debug("rawOnError", f, b), this.completed || (this.completed = !0, this.onEndCallbacks.forEach(function(O) {
12813
+ if (!h.closed)
12814
12814
  try {
12815
- _(f, b, h);
12816
- } catch (P) {
12815
+ O(f, b, M);
12816
+ } catch (w) {
12817
12817
  setTimeout(function() {
12818
- throw P;
12818
+ throw w;
12819
12819
  }, 0);
12820
12820
  }
12821
12821
  }));
12822
12822
  }, y.prototype.rawOnMessage = function(f) {
12823
12823
  var b = this;
12824
- this.props.debug && l.debug("rawOnMessage", f.toObject()), this.completed || this.closed || this.onMessageCallbacks.forEach(function(h) {
12824
+ this.props.debug && l.debug("rawOnMessage", f.toObject()), this.completed || this.closed || this.onMessageCallbacks.forEach(function(M) {
12825
12825
  if (!b.closed)
12826
12826
  try {
12827
- h(f);
12828
- } catch (R) {
12827
+ M(f);
12828
+ } catch (h) {
12829
12829
  setTimeout(function() {
12830
- throw R;
12830
+ throw h;
12831
12831
  }, 0);
12832
12832
  }
12833
12833
  });
@@ -12891,8 +12891,8 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
12891
12891
  }, 607: function(u, g, p) {
12892
12892
  Object.defineProperty(g, "__esModule", { value: !0 }), g.grpc = void 0;
12893
12893
  var o, r = p(418), i = p(57), l = p(229), c = p(540), d = p(210), m = p(859), v = p(8), y = p(938), f = p(35), b = p(934);
12894
- (o = g.grpc || (g.grpc = {})).setDefaultTransport = i.setDefaultTransportFactory, o.CrossBrowserHttpTransport = m.CrossBrowserHttpTransport, o.FetchReadableStreamTransport = l.FetchReadableStreamTransport, o.XhrTransport = d.XhrTransport, o.WebsocketTransport = c.WebsocketTransport, o.Code = v.Code, o.Metadata = r.BrowserHeaders, o.client = function(h, R) {
12895
- return b.client(h, R);
12894
+ (o = g.grpc || (g.grpc = {})).setDefaultTransport = i.setDefaultTransportFactory, o.CrossBrowserHttpTransport = m.CrossBrowserHttpTransport, o.FetchReadableStreamTransport = l.FetchReadableStreamTransport, o.XhrTransport = d.XhrTransport, o.WebsocketTransport = c.WebsocketTransport, o.Code = v.Code, o.Metadata = r.BrowserHeaders, o.client = function(M, h) {
12895
+ return b.client(M, h);
12896
12896
  }, o.invoke = y.invoke, o.unary = f.unary;
12897
12897
  }, 938: function(u, g, p) {
12898
12898
  Object.defineProperty(g, "__esModule", { value: !0 }), g.invoke = void 0;
@@ -12992,17 +12992,17 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
12992
12992
  };
12993
12993
  }, 210: function(u, g, p) {
12994
12994
  var o, r = this && this.__extends || (o = function(f, b) {
12995
- return (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(h, R) {
12996
- h.__proto__ = R;
12997
- } || function(h, R) {
12998
- for (var _ in R)
12999
- Object.prototype.hasOwnProperty.call(R, _) && (h[_] = R[_]);
12995
+ return (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(M, h) {
12996
+ M.__proto__ = h;
12997
+ } || function(M, h) {
12998
+ for (var O in h)
12999
+ Object.prototype.hasOwnProperty.call(h, O) && (M[O] = h[O]);
13000
13000
  })(f, b);
13001
13001
  }, function(f, b) {
13002
- function h() {
13002
+ function M() {
13003
13003
  this.constructor = f;
13004
13004
  }
13005
- o(f, b), f.prototype = b === null ? Object.create(b) : (h.prototype = b.prototype, new h());
13005
+ o(f, b), f.prototype = b === null ? Object.create(b) : (M.prototype = b.prototype, new M());
13006
13006
  });
13007
13007
  Object.defineProperty(g, "__esModule", { value: !0 }), g.stringToArrayBuffer = g.MozChunkedArrayBufferXHR = g.XHR = g.XhrTransport = void 0;
13008
13008
  var i = p(65), l = p(346), c = p(849);
@@ -13016,15 +13016,15 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
13016
13016
  };
13017
13017
  };
13018
13018
  var d = function() {
13019
- function f(b, h) {
13020
- this.options = b, this.init = h;
13019
+ function f(b, M) {
13020
+ this.options = b, this.init = M;
13021
13021
  }
13022
13022
  return f.prototype.onProgressEvent = function() {
13023
13023
  this.options.debug && l.debug("XHR.onProgressEvent.length: ", this.xhr.response.length);
13024
13024
  var b = this.xhr.response.substr(this.index);
13025
13025
  this.index = this.xhr.response.length;
13026
- var h = y(b);
13027
- this.options.onChunk(h);
13026
+ var M = y(b);
13027
+ this.options.onChunk(M);
13028
13028
  }, f.prototype.onLoadEvent = function() {
13029
13029
  this.options.debug && l.debug("XHR.onLoadEvent"), this.options.onEnd();
13030
13030
  }, f.prototype.onStateChange = function() {
@@ -13033,13 +13033,13 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
13033
13033
  this.xhr.send(b);
13034
13034
  }, f.prototype.finishSend = function() {
13035
13035
  }, f.prototype.start = function(b) {
13036
- var h = this;
13036
+ var M = this;
13037
13037
  this.metadata = b;
13038
- var R = new XMLHttpRequest();
13039
- this.xhr = R, R.open("POST", this.options.url), this.configureXhr(), this.metadata.forEach(function(_, P) {
13040
- R.setRequestHeader(_, 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(_) {
13042
- h.options.debug && l.debug("XHR.error", _), h.options.onEnd(_.error);
13038
+ var h = new XMLHttpRequest();
13039
+ this.xhr = h, h.open("POST", this.options.url), this.configureXhr(), this.metadata.forEach(function(O, w) {
13040
+ h.setRequestHeader(O, w.join(", "));
13041
+ }), h.withCredentials = !!this.init.withCredentials, h.addEventListener("readystatechange", this.onStateChange.bind(this)), h.addEventListener("progress", this.onProgressEvent.bind(this)), h.addEventListener("loadend", this.onLoadEvent.bind(this)), h.addEventListener("error", function(O) {
13042
+ M.options.debug && l.debug("XHR.error", O), M.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");
@@ -13055,22 +13055,22 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
13055
13055
  return r(b, f), b.prototype.configureXhr = function() {
13056
13056
  this.options.debug && l.debug("MozXHR.configureXhr: setting responseType to 'moz-chunked-arraybuffer'"), this.xhr.responseType = "moz-chunked-arraybuffer";
13057
13057
  }, b.prototype.onProgressEvent = function() {
13058
- var h = this.xhr.response;
13059
- this.options.debug && l.debug("MozXHR.onProgressEvent: ", new Uint8Array(h)), this.options.onChunk(new Uint8Array(h));
13058
+ var M = this.xhr.response;
13059
+ this.options.debug && l.debug("MozXHR.onProgressEvent: ", new Uint8Array(M)), this.options.onChunk(new Uint8Array(M));
13060
13060
  }, b;
13061
13061
  }(d);
13062
13062
  function v(f, b) {
13063
- var h = f.charCodeAt(b);
13064
- if (h >= 55296 && h <= 56319) {
13065
- var R = f.charCodeAt(b + 1);
13066
- R >= 56320 && R <= 57343 && (h = 65536 + (h - 55296 << 10) + (R - 56320));
13063
+ var M = f.charCodeAt(b);
13064
+ if (M >= 55296 && M <= 56319) {
13065
+ var h = f.charCodeAt(b + 1);
13066
+ h >= 56320 && h <= 57343 && (M = 65536 + (M - 55296 << 10) + (h - 56320));
13067
13067
  }
13068
- return h;
13068
+ return M;
13069
13069
  }
13070
13070
  function y(f) {
13071
- for (var b = new Uint8Array(f.length), h = 0, R = 0; R < f.length; R++) {
13072
- var _ = String.prototype.codePointAt ? f.codePointAt(R) : v(f, R);
13073
- b[h++] = 255 & _;
13071
+ for (var b = new Uint8Array(f.length), M = 0, h = 0; h < f.length; h++) {
13072
+ var O = String.prototype.codePointAt ? f.codePointAt(h) : v(f, h);
13073
+ b[M++] = 255 & O;
13074
13074
  }
13075
13075
  return b;
13076
13076
  }
@@ -13126,8 +13126,8 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
13126
13126
  if (b === o.FINISH_SEND)
13127
13127
  m.send(l);
13128
13128
  else {
13129
- var h = b, R = new Int8Array(h.byteLength + 1);
13130
- R.set(new Uint8Array([0])), R.set(h, 1), m.send(R);
13129
+ var M = b, h = new Int8Array(M.byteLength + 1);
13130
+ h.set(new Uint8Array([0])), h.set(M, 1), m.send(h);
13131
13131
  }
13132
13132
  }
13133
13133
  return { sendMessage: function(b) {
@@ -13136,19 +13136,19 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
13136
13136
  m && m.readyState !== m.CONNECTING ? f(o.FINISH_SEND) : y.push(o.FINISH_SEND);
13137
13137
  }, start: function(b) {
13138
13138
  (m = new WebSocket(v, ["grpc-websockets"])).binaryType = "arraybuffer", m.onopen = function() {
13139
- var h;
13140
- d.debug && r.debug("websocketRequest.onopen"), m.send((h = "", b.forEach(function(R, _) {
13141
- h += R + ": " + _.join(", ") + `\r
13139
+ var M;
13140
+ d.debug && r.debug("websocketRequest.onopen"), m.send((M = "", b.forEach(function(h, O) {
13141
+ M += h + ": " + O.join(", ") + `\r
13142
13142
  `;
13143
- }), i.encodeASCII(h))), y.forEach(function(R) {
13144
- f(R);
13143
+ }), i.encodeASCII(M))), y.forEach(function(h) {
13144
+ f(h);
13145
13145
  });
13146
- }, m.onclose = function(h) {
13147
- d.debug && r.debug("websocketRequest.onclose", h), d.onEnd();
13148
- }, m.onerror = function(h) {
13149
- d.debug && r.debug("websocketRequest.onerror", h);
13150
- }, m.onmessage = function(h) {
13151
- d.onChunk(new Uint8Array(h.data));
13146
+ }, m.onclose = function(M) {
13147
+ d.debug && r.debug("websocketRequest.onclose", M), d.onEnd();
13148
+ }, m.onerror = function(M) {
13149
+ d.debug && r.debug("websocketRequest.onerror", M);
13150
+ }, m.onmessage = function(M) {
13151
+ d.onChunk(new Uint8Array(M.data));
13152
13152
  };
13153
13153
  }, cancel: function() {
13154
13154
  d.debug && r.debug("websocket.abort"), m.close();
@@ -13193,15 +13193,9 @@ const promisify = function(t, e) {
13193
13193
  return new Promise((s, n) => {
13194
13194
  t(e, new grpcWebClient_umdExports.grpc.Metadata(), (u, g) => u ? n(u) : g ? s(g) : n(new Error("no response")));
13195
13195
  });
13196
- }, encodeVector3D = function(t) {
13196
+ }, encodeVector3 = function(t) {
13197
13197
  const e = new common_pb.Vector3();
13198
13198
  return e.setX(t.x), e.setY(t.y), e.setZ(t.z), e;
13199
- }, decodeVector3D = function(t) {
13200
- return {
13201
- x: t.getX(),
13202
- y: t.getY(),
13203
- z: t.getZ()
13204
- };
13205
13199
  }, encodePose = (t) => {
13206
13200
  const e = new common_pb.Pose();
13207
13201
  return e.setX(t.x), e.setY(t.y), e.setZ(t.z), e.setOX(t.oX), e.setOY(t.oY), e.setOZ(t.oZ), e.setTheta(t.theta), e;
@@ -13221,7 +13215,7 @@ const promisify = function(t, e) {
13221
13215
  }
13222
13216
  if (t.box !== void 0) {
13223
13217
  const s = new common_pb.RectangularPrism();
13224
- t.box.dimsMm !== void 0 && s.setDimsMm(encodeVector3D(t.box.dimsMm)), e.setBox(s);
13218
+ t.box.dimsMm !== void 0 && s.setDimsMm(encodeVector3(t.box.dimsMm)), e.setBox(s);
13225
13219
  }
13226
13220
  if (t.capsule !== void 0) {
13227
13221
  const s = new common_pb.Capsule();
@@ -13307,8 +13301,8 @@ var __webpack_modules__ = { 37: function(t) {
13307
13301
  this.props.debug && o.debug("onHeaders.code", f);
13308
13302
  var b = m.get("grpc-message") || [];
13309
13303
  if (this.props.debug && o.debug("onHeaders.gRPCMessage", b), this.rawOnHeaders(m), f !== p.Code.OK) {
13310
- var h = this.decodeGRPCStatus(b[0]);
13311
- this.rawOnError(f, h, m);
13304
+ var M = this.decodeGRPCStatus(b[0]);
13305
+ this.rawOnError(f, M, m);
13312
13306
  }
13313
13307
  }
13314
13308
  }, d.prototype.onTransportChunk = function(m) {
@@ -13346,8 +13340,8 @@ var __webpack_modules__ = { 37: function(t) {
13346
13340
  var f = c(this.responseHeaders), b = this.responseHeaders.get("grpc-message");
13347
13341
  if (this.props.debug && o.debug("grpc.headers only response ", f, b), f === null)
13348
13342
  return void this.rawOnEnd(p.Code.Unknown, "Response closed without grpc-status (Headers only)", this.responseHeaders);
13349
- var h = this.decodeGRPCStatus(b[0]);
13350
- this.rawOnEnd(f, h, this.responseHeaders);
13343
+ var M = this.decodeGRPCStatus(b[0]);
13344
+ this.rawOnEnd(f, M, this.responseHeaders);
13351
13345
  }
13352
13346
  }, d.prototype.decodeGRPCStatus = function(m) {
13353
13347
  if (!m)
@@ -13363,9 +13357,9 @@ var __webpack_modules__ = { 37: function(t) {
13363
13357
  if (!f.closed)
13364
13358
  try {
13365
13359
  b(m, v, y);
13366
- } catch (h) {
13360
+ } catch (M) {
13367
13361
  setTimeout(function() {
13368
- throw h;
13362
+ throw M;
13369
13363
  });
13370
13364
  }
13371
13365
  }));
@@ -13385,9 +13379,9 @@ var __webpack_modules__ = { 37: function(t) {
13385
13379
  if (!f.closed)
13386
13380
  try {
13387
13381
  b(m, v, y);
13388
- } catch (h) {
13382
+ } catch (M) {
13389
13383
  setTimeout(function() {
13390
- throw h;
13384
+ throw M;
13391
13385
  });
13392
13386
  }
13393
13387
  }));
@@ -13731,8 +13725,8 @@ var __webpack_modules__ = { 37: function(t) {
13731
13725
  var y = this;
13732
13726
  this.metadata = v;
13733
13727
  var f = new XMLHttpRequest();
13734
- this.xhr = f, f.open("POST", this.options.url), this.configureXhr(), this.metadata.forEach(function(b, h) {
13735
- f.setRequestHeader(b, h.join(", "));
13728
+ this.xhr = f, f.open("POST", this.options.url), this.configureXhr(), this.metadata.forEach(function(b, M) {
13729
+ f.setRequestHeader(b, M.join(", "));
13736
13730
  }), 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) {
13737
13731
  y.options.debug && o.debug("XHR.error", b), y.options.onEnd(b.error);
13738
13732
  });
@@ -13798,8 +13792,8 @@ var __webpack_modules__ = { 37: function(t) {
13798
13792
  return m.slice(v, y);
13799
13793
  var f = m.length;
13800
13794
  y !== void 0 && (f = y);
13801
- for (var b = new Uint8Array(f - v), h = 0, R = v; R < f; R++)
13802
- b[h++] = m[R];
13795
+ for (var b = new Uint8Array(f - v), M = 0, h = v; h < f; h++)
13796
+ b[M++] = m[h];
13803
13797
  return b;
13804
13798
  }
13805
13799
  s.decodeASCII = o, s.encodeASCII = function(m) {
@@ -13826,21 +13820,21 @@ var __webpack_modules__ = { 37: function(t) {
13826
13820
  else if (this.position === this.buffer.byteLength)
13827
13821
  this.buffer = v, this.position = 0;
13828
13822
  else {
13829
- var h = this.buffer.byteLength - this.position, R = new Uint8Array(h + v.byteLength), _ = c(this.buffer, this.position);
13830
- R.set(_, 0);
13831
- var P = new Uint8Array(v);
13832
- R.set(P, h), this.buffer = R, this.position = 0;
13823
+ var M = this.buffer.byteLength - this.position, h = new Uint8Array(M + v.byteLength), O = c(this.buffer, this.position);
13824
+ h.set(O, 0);
13825
+ var w = new Uint8Array(v);
13826
+ h.set(w, M), this.buffer = h, this.position = 0;
13833
13827
  }
13834
13828
  for (; ; ) {
13835
13829
  if (!l(this.buffer, this.position, 5))
13836
13830
  return b;
13837
- var D = c(this.buffer, this.position, this.position + 5), I = new DataView(D.buffer, D.byteOffset, D.byteLength), z = i(I);
13838
- if (!l(this.buffer, this.position, 5 + z))
13831
+ var C = c(this.buffer, this.position, this.position + 5), L = new DataView(C.buffer, C.byteOffset, C.byteLength), W = i(L);
13832
+ if (!l(this.buffer, this.position, 5 + W))
13839
13833
  return b;
13840
- var x = c(this.buffer, this.position + 5, this.position + 5 + z);
13841
- if (this.position += 5 + z, r(I))
13842
- return b.push({ chunkType: u.TRAILERS, trailers: (f = x, new g.Metadata(o(f))) }), b;
13843
- b.push({ chunkType: u.MESSAGE, data: x });
13834
+ var z = c(this.buffer, this.position + 5, this.position + 5 + W);
13835
+ if (this.position += 5 + W, r(L))
13836
+ return b.push({ chunkType: u.TRAILERS, trailers: (f = z, new g.Metadata(o(f))) }), b;
13837
+ b.push({ chunkType: u.MESSAGE, data: z });
13844
13838
  }
13845
13839
  }, m;
13846
13840
  }();
@@ -20157,7 +20151,7 @@ var __webpack_modules__ = { 37: function(t) {
20157
20151
  var n = s(758), u = function() {
20158
20152
  function g(p, o) {
20159
20153
  var r = this;
20160
- Object.defineProperty(this, "ready", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "peerConn", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "dataChannel", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "pResolve", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "pReject", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "closed", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "closedReason", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "maxDataChannelSize", { enumerable: !0, configurable: !0, writable: !0, value: 16384 }), this.peerConn = p, this.dataChannel = o, this.ready = new Promise(function(i, l) {
20154
+ Object.defineProperty(this, "ready", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "peerConn", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "dataChannel", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "pResolve", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "pReject", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "closed", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "closedReason", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "maxDataChannelSize", { enumerable: !0, configurable: !0, writable: !0, value: 65535 }), this.peerConn = p, this.dataChannel = o, this.ready = new Promise(function(i, l) {
20161
20155
  r.pResolve = i, r.pReject = l;
20162
20156
  }), o.onopen = function() {
20163
20157
  return r.onChannelOpen();
@@ -20297,8 +20291,8 @@ var __webpack_modules__ = { 37: function(t) {
20297
20291
  Object.defineProperty(e, "__esModule", { value: !0 }), e.encodeASCII = e.ClientStream = void 0;
20298
20292
  var n = s(655), u = s(37), g = s(370), p = s(758), o = s(210), r = function(d) {
20299
20293
  function m(v, y, f, b) {
20300
- var h = d.call(this, y, f, b) || this;
20301
- 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 = v, h;
20294
+ var M = d.call(this, y, f, b) || this;
20295
+ return Object.defineProperty(M, "channel", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(M, "headersReceived", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(M, "trailersReceived", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), M.channel = v, M;
20302
20296
  }
20303
20297
  return n.__extends(m, d), Object.defineProperty(m.prototype, "start", { enumerable: !1, configurable: !0, writable: !0, value: function(v) {
20304
20298
  var y = "/".concat(this.opts.methodDefinition.service.serviceName, "/").concat(this.opts.methodDefinition.methodName), f = new o.RequestHeaders();
@@ -20325,11 +20319,11 @@ var __webpack_modules__ = { 37: function(t) {
20325
20319
  if (!y || y.length == 0)
20326
20320
  return (f = new o.PacketMessage()).setEom(!0), (b = new o.RequestMessage()).setHasMessage(!!y), b.setPacketMessage(f), b.setEos(v), void this.channel.writeMessage(this.stream, b);
20327
20321
  for (; y.length !== 0; ) {
20328
- var f, b, h = Math.min(y.length, 16373);
20329
- (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(v), this.channel.writeMessage(this.stream, b);
20322
+ var f, b, M = Math.min(y.length, 16373);
20323
+ (f = new o.PacketMessage()).setData(y.slice(0, M)), (y = y.slice(M)).length === 0 && f.setEom(!0), (b = new o.RequestMessage()).setHasMessage(!!y), b.setPacketMessage(f), b.setEos(v), this.channel.writeMessage(this.stream, b);
20330
20324
  }
20331
- } catch (R) {
20332
- console.error("error writing message", R), this.closeWithRecvError(R);
20325
+ } catch (h) {
20326
+ console.error("error writing message", h), this.closeWithRecvError(h);
20333
20327
  }
20334
20328
  } }), Object.defineProperty(m.prototype, "onResponse", { enumerable: !1, configurable: !0, writable: !0, value: function(v) {
20335
20329
  switch (v.getTypeCase()) {
@@ -20363,16 +20357,16 @@ var __webpack_modules__ = { 37: function(t) {
20363
20357
  }
20364
20358
  } }), Object.defineProperty(m.prototype, "processTrailers", { enumerable: !1, configurable: !0, writable: !0, value: function(v) {
20365
20359
  this.trailersReceived = !0;
20366
- var y, f, b = c(v.getMetadata()), h = v.getStatus();
20367
- 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 = "");
20368
- var R = function(P) {
20369
- var D = "";
20370
- return P.forEach(function(I, z) {
20371
- D += "".concat(I, ": ").concat(z.join(", "), `\r
20360
+ var y, f, b = c(v.getMetadata()), M = v.getStatus();
20361
+ M ? (y = M.getCode(), f = M.getMessage(), b.set("grpc-status", "".concat(M.getCode())), f !== void 0 && b.set("grpc-message", M.getMessage())) : (y = 0, b.set("grpc-status", "0"), f = "");
20362
+ var h = function(w) {
20363
+ var C = "";
20364
+ return w.forEach(function(L, W) {
20365
+ C += "".concat(L, ": ").concat(W.join(", "), `\r
20372
20366
  `);
20373
- }), i(D);
20374
- }(b), _ = new ArrayBuffer(R.length + 5);
20375
- new DataView(_, 0, 1).setUint8(0, 128), new DataView(_, 1, 4).setUint32(0, R.length, !1), new Uint8Array(_, 5).set(R), this.opts.onChunk(new Uint8Array(_)), y !== 0 ? this.closeWithRecvError(new p.GRPCError(y, f)) : this.closeWithRecvError();
20367
+ }), i(C);
20368
+ }(b), O = new ArrayBuffer(h.length + 5);
20369
+ new DataView(O, 0, 1).setUint8(0, 128), new DataView(O, 1, 4).setUint32(0, h.length, !1), new Uint8Array(O, 5).set(h), this.opts.onChunk(new Uint8Array(O)), y !== 0 ? this.closeWithRecvError(new p.GRPCError(y, f)) : this.closeWithRecvError();
20376
20370
  } }), m;
20377
20371
  }(g.BaseStream);
20378
20372
  function i(d) {
@@ -20403,60 +20397,60 @@ var __webpack_modules__ = { 37: function(t) {
20403
20397
  }, 512: (t, e, s) => {
20404
20398
  Object.defineProperty(e, "__esModule", { value: !0 }), e.dialWebRTC = e.dialDirect = void 0;
20405
20399
  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), m = s(93);
20406
- function v(h, R) {
20400
+ function v(h, O) {
20407
20401
  return n.__awaiter(this, void 0, void 0, function() {
20408
- var _, P;
20409
- return n.__generator(this, function(D) {
20410
- return b(R), _ = function(I) {
20411
- return u.grpc.CrossBrowserHttpTransport({ withCredentials: !1 })(I);
20412
- }, !R?.accessToken || R?.externalAuthAddress && R?.externalAuthToEntity ? R && (R?.credentials || R?.accessToken) ? [2, y(h, _, R)] : [2, _] : ((P = new u.grpc.Metadata()).set("authorization", "Bearer ".concat(R.accessToken)), [2, function(I) {
20413
- return new f(I, _, P);
20402
+ var w, C;
20403
+ return n.__generator(this, function(L) {
20404
+ return M(O), w = function(W) {
20405
+ return u.grpc.CrossBrowserHttpTransport({ withCredentials: !1 })(W);
20406
+ }, !O?.accessToken || O?.externalAuthAddress && O?.externalAuthToEntity ? O && (O?.credentials || O?.accessToken) ? [2, y(h, w, O)] : [2, w] : ((C = new u.grpc.Metadata()).set("authorization", "Bearer ".concat(O.accessToken)), [2, function(W) {
20407
+ return new f(W, w, C);
20414
20408
  }]);
20415
20409
  });
20416
20410
  });
20417
20411
  }
20418
- function y(h, R, _) {
20412
+ function y(h, O, w) {
20419
20413
  return n.__awaiter(this, void 0, void 0, function() {
20420
- var P, D, I, z = this;
20421
- return n.__generator(this, function(x) {
20422
- switch (x.label) {
20414
+ var C, L, W, z = this;
20415
+ return n.__generator(this, function(U) {
20416
+ switch (U.label) {
20423
20417
  case 0:
20424
- return P = "", D = function() {
20418
+ return C = "", L = function() {
20425
20419
  return n.__awaiter(z, void 0, void 0, function() {
20426
- var q, k, N, X, S, M, O, E, F, T;
20427
- return n.__generator(this, function(w) {
20428
- switch (w.label) {
20420
+ var I, x, k, S, R, _, E, F, P, T;
20421
+ return n.__generator(this, function(D) {
20422
+ switch (D.label) {
20429
20423
  case 0:
20430
- return P != "" ? [3, 5] : (q = "", _.accessToken && _.accessToken !== "" ? [3, 2] : ((O = new i.AuthenticateRequest()).setEntity(_.authEntity ? _.authEntity : h.replace(/^(.*:\/\/)/, "")), (X = new i.Credentials()).setType((F = _.credentials) === null || F === void 0 ? void 0 : F.type), X.setPayload((T = _.credentials) === null || T === void 0 ? void 0 : T.payload), O.setCredentials(X), M = new Promise(function(C, j) {
20431
- k = C, N = j;
20432
- }), u.grpc.invoke(l.AuthService.Authenticate, { request: O, host: _.externalAuthAddress ? _.externalAuthAddress : h, transport: R, onMessage: function(C) {
20433
- q = C.getAccessToken();
20434
- }, onEnd: function(C, j, G) {
20435
- C == u.grpc.Code.OK ? k(E) : N(j);
20436
- } }), [4, M]));
20424
+ return C != "" ? [3, 5] : (I = "", w.accessToken && w.accessToken !== "" ? [3, 2] : ((E = new i.AuthenticateRequest()).setEntity(w.authEntity ? w.authEntity : h.replace(/^(.*:\/\/)/, "")), (S = new i.Credentials()).setType((P = w.credentials) === null || P === void 0 ? void 0 : P.type), S.setPayload((T = w.credentials) === null || T === void 0 ? void 0 : T.payload), E.setCredentials(S), _ = new Promise(function(A, j) {
20425
+ x = A, k = j;
20426
+ }), u.grpc.invoke(l.AuthService.Authenticate, { request: E, host: w.externalAuthAddress ? w.externalAuthAddress : h, transport: O, onMessage: function(A) {
20427
+ I = A.getAccessToken();
20428
+ }, onEnd: function(A, j, B) {
20429
+ A == u.grpc.Code.OK ? x(F) : k(j);
20430
+ } }), [4, _]));
20437
20431
  case 1:
20438
- return w.sent(), [3, 3];
20432
+ return D.sent(), [3, 3];
20439
20433
  case 2:
20440
- q = _.accessToken, w.label = 3;
20434
+ I = w.accessToken, D.label = 3;
20441
20435
  case 3:
20442
- return P = q, _.externalAuthAddress && _.externalAuthToEntity ? ((S = new u.grpc.Metadata()).set("authorization", "Bearer ".concat(P)), M = new Promise(function(C, j) {
20443
- k = C, N = j;
20444
- }), q = "", (O = new i.AuthenticateToRequest()).setEntity(_.externalAuthToEntity), u.grpc.invoke(l.ExternalAuthService.AuthenticateTo, { request: O, host: _.externalAuthAddress, transport: R, metadata: S, onMessage: function(C) {
20445
- q = C.getAccessToken();
20446
- }, onEnd: function(C, j, G) {
20447
- C == u.grpc.Code.OK ? k(S) : N(j);
20448
- } }), [4, M]) : [3, 5];
20436
+ return C = I, w.externalAuthAddress && w.externalAuthToEntity ? ((R = new u.grpc.Metadata()).set("authorization", "Bearer ".concat(C)), _ = new Promise(function(A, j) {
20437
+ x = A, k = j;
20438
+ }), I = "", (E = new i.AuthenticateToRequest()).setEntity(w.externalAuthToEntity), u.grpc.invoke(l.ExternalAuthService.AuthenticateTo, { request: E, host: w.externalAuthAddress, transport: O, metadata: R, onMessage: function(A) {
20439
+ I = A.getAccessToken();
20440
+ }, onEnd: function(A, j, B) {
20441
+ A == u.grpc.Code.OK ? x(R) : k(j);
20442
+ } }), [4, _]) : [3, 5];
20449
20443
  case 4:
20450
- w.sent(), P = q, w.label = 5;
20444
+ D.sent(), C = I, D.label = 5;
20451
20445
  case 5:
20452
- return (E = new u.grpc.Metadata()).set("authorization", "Bearer ".concat(P)), [2, E];
20446
+ return (F = new u.grpc.Metadata()).set("authorization", "Bearer ".concat(C)), [2, F];
20453
20447
  }
20454
20448
  });
20455
20449
  });
20456
- }, [4, D()];
20450
+ }, [4, L()];
20457
20451
  case 1:
20458
- return I = x.sent(), [2, function(q) {
20459
- return new f(q, R, I);
20452
+ return W = U.sent(), [2, function(I) {
20453
+ return new f(I, O, W);
20460
20454
  }];
20461
20455
  }
20462
20456
  });
@@ -20464,23 +20458,50 @@ var __webpack_modules__ = { 37: function(t) {
20464
20458
  }
20465
20459
  e.dialDirect = v;
20466
20460
  var f = function() {
20467
- function h(R, _, P) {
20468
- 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 = _(R);
20469
- }
20470
- return Object.defineProperty(h.prototype, "start", { enumerable: !1, configurable: !0, writable: !0, value: function(R) {
20471
- this.extraMetadata.forEach(function(_, P) {
20472
- R.set(_, P);
20473
- }), this.transport.start(R);
20474
- } }), Object.defineProperty(h.prototype, "sendMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(R) {
20475
- this.transport.sendMessage(R);
20461
+ function h(O, w, C) {
20462
+ 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 = O, this.extraMetadata = C, this.transport = w(O);
20463
+ }
20464
+ return Object.defineProperty(h.prototype, "start", { enumerable: !1, configurable: !0, writable: !0, value: function(O) {
20465
+ this.extraMetadata.forEach(function(w, C) {
20466
+ O.set(w, C);
20467
+ }), this.transport.start(O);
20468
+ } }), Object.defineProperty(h.prototype, "sendMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(O) {
20469
+ this.transport.sendMessage(O);
20476
20470
  } }), Object.defineProperty(h.prototype, "finishSend", { enumerable: !1, configurable: !0, writable: !0, value: function() {
20477
20471
  this.transport.finishSend();
20478
20472
  } }), Object.defineProperty(h.prototype, "cancel", { enumerable: !1, configurable: !0, writable: !0, value: function() {
20479
20473
  this.transport.cancel();
20480
20474
  } }), h;
20481
20475
  }();
20482
- function b(h) {
20483
- var R;
20476
+ function b(h, O, w) {
20477
+ return n.__awaiter(this, void 0, void 0, function() {
20478
+ var C, L, W, z, U, I;
20479
+ return n.__generator(this, function(x) {
20480
+ switch (x.label) {
20481
+ case 0:
20482
+ return C = n.__assign({}, w), [4, v(h, C)];
20483
+ case 1:
20484
+ return L = x.sent(), I = new Promise(function(k, S) {
20485
+ W = k, z = S;
20486
+ }), u.grpc.unary(d.SignalingService.OptionalWebRTCConfig, { request: new c.OptionalWebRTCConfigRequest(), metadata: { "rpc-host": O }, host: h, transport: L, onEnd: function(k) {
20487
+ var S = k.status, R = k.statusMessage, _ = k.message;
20488
+ if (S === u.grpc.Code.OK && _) {
20489
+ if (!(U = _.getConfig()))
20490
+ return void W(new c.WebRTCConfig());
20491
+ W(U);
20492
+ } else
20493
+ z(R);
20494
+ } }), [4, I];
20495
+ case 2:
20496
+ if (x.sent(), !U)
20497
+ throw new Error("no config");
20498
+ return [2, U];
20499
+ }
20500
+ });
20501
+ });
20502
+ }
20503
+ function M(h) {
20504
+ var O;
20484
20505
  if (h) {
20485
20506
  if (h.accessToken && h.accessToken.length > 0) {
20486
20507
  if (h.authEntity)
@@ -20496,7 +20517,7 @@ var __webpack_modules__ = { 37: function(t) {
20496
20517
  throw new Error("cannot set webrtcOptions.signalingCredentials with accessToken");
20497
20518
  }
20498
20519
  }
20499
- if (!((R = h?.webrtcOptions) === null || R === void 0) && R.signalingAccessToken && h.webrtcOptions.signalingAccessToken.length > 0) {
20520
+ if (!((O = h?.webrtcOptions) === null || O === void 0) && O.signalingAccessToken && h.webrtcOptions.signalingAccessToken.length > 0) {
20500
20521
  if (h.webrtcOptions.signalingAuthEntity)
20501
20522
  throw new Error("cannot set webrtcOptions.signalingAuthEntity with webrtcOptions.signalingAccessToken");
20502
20523
  if (h.webrtcOptions.signalingCredentials)
@@ -20504,110 +20525,114 @@ var __webpack_modules__ = { 37: function(t) {
20504
20525
  }
20505
20526
  }
20506
20527
  }
20507
- e.dialWebRTC = function(h, R, _) {
20508
- var P, D, I, z, x, q, k;
20528
+ e.dialWebRTC = function(h, O, w) {
20529
+ var C, L, W, z, U, I, x;
20509
20530
  return n.__awaiter(this, void 0, void 0, function() {
20510
- var N, X, S, M, O, E, F, T, w, C, j, G, B, W, H, Z, ee, re, se, ie, pe, ne, ue, ae, ge = this;
20531
+ var k, S, R, _, E, F, P, T, D, A, j, B, N, V, Z, oe, re, ge, ae, ie, pe, ne, le, se, ce, ue, de = this;
20511
20532
  return n.__generator(this, function(J) {
20512
20533
  switch (J.label) {
20513
20534
  case 0:
20514
- return b(_), N = _?.webrtcOptions, [4, (0, m.newPeerConnectionForClient)(N !== void 0 && N.disableTrickleICE, N?.rtcConfig)];
20535
+ return M(w), [4, b(h, O, w)];
20515
20536
  case 1:
20516
- X = J.sent(), S = X.pc, M = X.dc, O = !1, J.label = 2;
20537
+ return k = J.sent(), S = k.toObject().additionalIceServersList.map(function(q) {
20538
+ return { urls: q.urlsList, credential: q.credential, username: q.username };
20539
+ }), w || (w = {}), w.webrtcOptions ? (R = w.webrtcOptions).rtcConfig ? R.rtcConfig.iceServers = n.__spreadArray(n.__spreadArray([], R.rtcConfig.iceServers || [], !0), S, !0) : R.rtcConfig = { iceServers: S } : R = { disableTrickleICE: k.getDisableTrickle(), rtcConfig: { iceServers: S } }, [4, (0, m.newPeerConnectionForClient)(R !== void 0 && R.disableTrickleICE, R?.rtcConfig)];
20517
20540
  case 2:
20518
- return J.trys.push([2, , 9, 10]), E = _, _ && (E = n.__assign({}, _), _.accessToken || (E.authEntity = (P = _?.webrtcOptions) === null || P === void 0 ? void 0 : P.signalingAuthEntity, E.authEntity || (E.externalAuthAddress ? E.authEntity = (D = _.externalAuthAddress) === null || D === void 0 ? void 0 : D.replace(/^(.*:\/\/)/, "") : E.authEntity = h.replace(/^(.*:\/\/)/, "")), E.credentials = (I = _?.webrtcOptions) === null || I === void 0 ? void 0 : I.signalingCredentials, E.accessToken = (z = _?.webrtcOptions) === null || z === void 0 ? void 0 : z.signalingAccessToken), E.externalAuthAddress = (x = _?.webrtcOptions) === null || x === void 0 ? void 0 : x.signalingExternalAuthAddress, E.externalAuthToEntity = (q = _?.webrtcOptions) === null || q === void 0 ? void 0 : q.signalingExternalAuthToEntity), [4, v(h, E)];
20541
+ _ = J.sent(), E = _.pc, F = _.dc, P = !1, J.label = 3;
20519
20542
  case 3:
20520
- return F = J.sent(), T = u.grpc.client(d.SignalingService.Call, { host: h, transport: F }), w = "", C = !1, j = function(L) {
20521
- if (!C) {
20522
- C = !0;
20523
- var A = new c.CallUpdateRequest();
20524
- A.setUuid(w);
20525
- var V = new r.Status();
20526
- V.setCode(o.Code.UNKNOWN), V.setMessage(L), A.setError(V), u.grpc.unary(d.SignalingService.CallUpdate, { request: A, metadata: { "rpc-host": R }, host: h, transport: F, onEnd: function($) {
20527
- var U = $.status, Y = $.statusMessage, Q = $.message;
20528
- U === u.grpc.Code.OK && Q || console.error(Y);
20543
+ return J.trys.push([3, , 10, 11]), T = w, w && (T = n.__assign({}, w), w.accessToken || (T.authEntity = (C = w?.webrtcOptions) === null || C === void 0 ? void 0 : C.signalingAuthEntity, T.authEntity || (T.externalAuthAddress ? T.authEntity = (L = w.externalAuthAddress) === null || L === void 0 ? void 0 : L.replace(/^(.*:\/\/)/, "") : T.authEntity = h.replace(/^(.*:\/\/)/, "")), T.credentials = (W = w?.webrtcOptions) === null || W === void 0 ? void 0 : W.signalingCredentials, T.accessToken = (z = w?.webrtcOptions) === null || z === void 0 ? void 0 : z.signalingAccessToken), T.externalAuthAddress = (U = w?.webrtcOptions) === null || U === void 0 ? void 0 : U.signalingExternalAuthAddress, T.externalAuthToEntity = (I = w?.webrtcOptions) === null || I === void 0 ? void 0 : I.signalingExternalAuthToEntity), [4, v(h, T)];
20544
+ case 4:
20545
+ return D = J.sent(), A = u.grpc.client(d.SignalingService.Call, { host: h, transport: D }), j = "", B = !1, N = function(q) {
20546
+ if (!B) {
20547
+ B = !0;
20548
+ var G = new c.CallUpdateRequest();
20549
+ G.setUuid(j);
20550
+ var $ = new r.Status();
20551
+ $.setCode(o.Code.UNKNOWN), $.setMessage(q), G.setError($), u.grpc.unary(d.SignalingService.CallUpdate, { request: G, metadata: { "rpc-host": O }, host: h, transport: D, onEnd: function(Y) {
20552
+ var H = Y.status, K = Y.statusMessage, Q = Y.message;
20553
+ H === u.grpc.Code.OK && Q || console.error(K);
20529
20554
  } });
20530
20555
  }
20531
- }, G = function() {
20532
- if (!C) {
20533
- C = !0;
20534
- var L = new c.CallUpdateRequest();
20535
- L.setUuid(w), L.setDone(!0), u.grpc.unary(d.SignalingService.CallUpdate, { request: L, metadata: { "rpc-host": R }, host: h, transport: F, onEnd: function(A) {
20536
- var V = A.status, $ = A.statusMessage, U = A.message;
20537
- V === u.grpc.Code.OK && U || console.error($);
20556
+ }, V = function() {
20557
+ if (!B) {
20558
+ B = !0;
20559
+ var q = new c.CallUpdateRequest();
20560
+ q.setUuid(j), q.setDone(!0), u.grpc.unary(d.SignalingService.CallUpdate, { request: q, metadata: { "rpc-host": O }, host: h, transport: D, onEnd: function(G) {
20561
+ var $ = G.status, Y = G.statusMessage, H = G.message;
20562
+ $ === u.grpc.Code.OK && H || console.error(Y);
20538
20563
  } });
20539
20564
  }
20540
- }, W = new Promise(function(L) {
20541
- B = L;
20542
- }), H = !1, N?.disableTrickleICE ? [3, 6] : [4, S.createOffer()];
20543
- case 4:
20544
- return Z = J.sent(), ee = !1, S.onicecandidate = function(L) {
20545
- return n.__awaiter(ge, void 0, void 0, function() {
20546
- var A, V;
20547
- return n.__generator(this, function($) {
20548
- switch ($.label) {
20565
+ }, oe = new Promise(function(q) {
20566
+ Z = q;
20567
+ }), re = !1, R?.disableTrickleICE ? [3, 7] : [4, E.createOffer()];
20568
+ case 5:
20569
+ return ge = J.sent(), ae = !1, E.onicecandidate = function(q) {
20570
+ return n.__awaiter(de, void 0, void 0, function() {
20571
+ var G, $;
20572
+ return n.__generator(this, function(Y) {
20573
+ switch (Y.label) {
20549
20574
  case 0:
20550
- return [4, W];
20575
+ return [4, oe];
20551
20576
  case 1:
20552
- return $.sent(), H ? [2] : L.candidate === null ? (ee = !0, G(), [2]) : (U = L.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) {
20553
- var te = Q.status, K = Q.statusMessage, oe = Q.message;
20554
- te === u.grpc.Code.OK && oe || H || ee || console.error("error sending candidate", K);
20577
+ return Y.sent(), re ? [2] : q.candidate === null ? (ae = !0, V(), [2]) : (H = q.candidate, (K = new c.ICECandidate()).setCandidate(H.candidate), H.sdpMid && K.setSdpMid(H.sdpMid), H.sdpMLineIndex && K.setSdpmLineIndex(H.sdpMLineIndex), H.usernameFragment && K.setUsernameFragment(H.usernameFragment), G = K, ($ = new c.CallUpdateRequest()).setUuid(j), $.setCandidate(G), u.grpc.unary(d.SignalingService.CallUpdate, { request: $, metadata: { "rpc-host": O }, host: h, transport: D, onEnd: function(Q) {
20578
+ var ee = Q.status, X = Q.statusMessage, te = Q.message;
20579
+ ee === u.grpc.Code.OK && te || re || ae || console.error("error sending candidate", X);
20555
20580
  } }), [2]);
20556
20581
  }
20557
- var U, Y;
20582
+ var H, K;
20558
20583
  });
20559
20584
  });
20560
- }, [4, S.setLocalDescription(Z)];
20561
- case 5:
20562
- J.sent(), J.label = 6;
20585
+ }, [4, E.setLocalDescription(ge)];
20563
20586
  case 6:
20564
- return re = !1, T.onMessage(function(L) {
20565
- return n.__awaiter(ge, void 0, void 0, function() {
20566
- var A, V, $, U, Y, Q;
20567
- return n.__generator(this, function(te) {
20568
- switch (te.label) {
20587
+ J.sent(), J.label = 7;
20588
+ case 7:
20589
+ return ie = !1, A.onMessage(function(q) {
20590
+ return n.__awaiter(de, void 0, void 0, function() {
20591
+ var G, $, Y, H, K, Q;
20592
+ return n.__generator(this, function(ee) {
20593
+ switch (ee.label) {
20569
20594
  case 0:
20570
- return (A = L).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), N?.disableTrickleICE ? (H = !0, G(), [2]) : [3, 7]) : [3, 1];
20595
+ return (G = q).hasInit() ? ie ? (N("got init stage more than once"), [2]) : ($ = G.getInit(), ie = !0, j = G.getUuid(), Y = new RTCSessionDescription(JSON.parse(atob($.getSdp()))), E.setRemoteDescription(Y), Z(!0), R?.disableTrickleICE ? (re = !0, V(), [2]) : [3, 7]) : [3, 1];
20571
20596
  case 1:
20572
- if (!A.hasUpdate())
20597
+ if (!G.hasUpdate())
20573
20598
  return [3, 6];
20574
- if (!re)
20575
- return j("got update stage before init stage"), [2];
20576
- if (A.getUuid() !== w)
20577
- return j("uuid mismatch; have=".concat(A.getUuid(), " want=").concat(w)), [2];
20578
- 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;
20599
+ if (!ie)
20600
+ return N("got update stage before init stage"), [2];
20601
+ if (G.getUuid() !== j)
20602
+ return N("uuid mismatch; have=".concat(G.getUuid(), " want=").concat(j)), [2];
20603
+ H = G.getUpdate(), X = H.getCandidate(), te = { candidate: X.getCandidate() }, X.hasSdpMid() && (te.sdpMid = X.getSdpMid()), X.hasSdpmLineIndex() && (te.sdpMLineIndex = X.getSdpmLineIndex()), X.hasUsernameFragment() && (te.usernameFragment = X.getUsernameFragment()), K = te, ee.label = 2;
20579
20604
  case 2:
20580
- return te.trys.push([2, 4, , 5]), [4, S.addIceCandidate(Y)];
20605
+ return ee.trys.push([2, 4, , 5]), [4, E.addIceCandidate(K)];
20581
20606
  case 3:
20582
- return te.sent(), [3, 5];
20607
+ return ee.sent(), [3, 5];
20583
20608
  case 4:
20584
- return Q = te.sent(), j(JSON.stringify(Q)), [2];
20609
+ return Q = ee.sent(), N(JSON.stringify(Q)), [2];
20585
20610
  case 5:
20586
20611
  return [3, 7];
20587
20612
  case 6:
20588
- return j("unknown CallResponse stage"), [2];
20613
+ return N("unknown CallResponse stage"), [2];
20589
20614
  case 7:
20590
20615
  return [2];
20591
20616
  }
20592
- var K, oe;
20617
+ var X, te;
20593
20618
  });
20594
20619
  });
20595
- }), pe = new Promise(function(L, A) {
20596
- se = L, ie = A;
20597
- }), T.onEnd(function(L, A, V) {
20598
- L !== u.grpc.Code.OK ? A !== "Response closed without headers" ? (console.error(A), ie(A)) : ie(new p.ConnectionClosedError("failed to dial")) : se();
20599
- }), T.start({ "rpc-host": R }), ne = new c.CallRequest(), ue = btoa(JSON.stringify(S.localDescription)), ne.setSdp(ue), N && N.disableTrickleICE && ne.setDisableTrickle(N.disableTrickleICE), T.send(ne), (ae = new g.ClientChannel(S, M)).ready.then(function() {
20600
- return se();
20601
- }).catch(function(L) {
20602
- return ie(L);
20603
- }), [4, pe];
20604
- case 7:
20605
- return J.sent(), [4, ae.ready];
20620
+ }), le = new Promise(function(q, G) {
20621
+ pe = q, ne = G;
20622
+ }), A.onEnd(function(q, G, $) {
20623
+ q !== u.grpc.Code.OK ? G !== "Response closed without headers" ? (console.error(G), ne(G)) : ne(new p.ConnectionClosedError("failed to dial")) : pe();
20624
+ }), A.start({ "rpc-host": O }), se = new c.CallRequest(), ce = btoa(JSON.stringify(E.localDescription)), se.setSdp(ce), R && R.disableTrickleICE && se.setDisableTrickle(R.disableTrickleICE), A.send(se), (ue = new g.ClientChannel(E, F)).ready.then(function() {
20625
+ return pe();
20626
+ }).catch(function(q) {
20627
+ return ne(q);
20628
+ }), [4, le];
20606
20629
  case 8:
20607
- return J.sent(), H = !0, G(), _?.externalAuthAddress || (k = _?.credentials) === null || k === void 0 || k.type, O = !0, [2, { transportFactory: ae.transportFactory(), peerConnection: S }];
20630
+ return J.sent(), [4, ue.ready];
20608
20631
  case 9:
20609
- return O || S.close(), [7];
20632
+ return J.sent(), re = !0, V(), w?.externalAuthAddress || (x = w?.credentials) === null || x === void 0 || x.type, P = !0, [2, { transportFactory: ue.transportFactory(), peerConnection: E }];
20610
20633
  case 10:
20634
+ return P || E.close(), [7];
20635
+ case 11:
20611
20636
  return [2];
20612
20637
  }
20613
20638
  });
@@ -20648,19 +20673,19 @@ var __webpack_modules__ = { 37: function(t) {
20648
20673
  c = !0;
20649
20674
  }, l.onmessage = function(f) {
20650
20675
  return n.__awaiter(v, void 0, void 0, function() {
20651
- var b, h;
20652
- return n.__generator(this, function(R) {
20653
- switch (R.label) {
20676
+ var b, M;
20677
+ return n.__generator(this, function(h) {
20678
+ switch (h.label) {
20654
20679
  case 0:
20655
- return R.trys.push([0, 4, , 5]), (b = new RTCSessionDescription(JSON.parse(atob(f.data)))).type === "offer" && (b || p.signalingState), [4, p.setRemoteDescription(b)];
20680
+ return h.trys.push([0, 4, , 5]), (b = new RTCSessionDescription(JSON.parse(atob(f.data)))).type === "offer" && (b || p.signalingState), [4, p.setRemoteDescription(b)];
20656
20681
  case 1:
20657
- return R.sent(), b.type !== "offer" ? [3, 3] : [4, p.setLocalDescription()];
20682
+ return h.sent(), b.type !== "offer" ? [3, 3] : [4, p.setLocalDescription()];
20658
20683
  case 2:
20659
- R.sent(), l.send(btoa(JSON.stringify(p.localDescription))), R.label = 3;
20684
+ h.sent(), l.send(btoa(JSON.stringify(p.localDescription))), h.label = 3;
20660
20685
  case 3:
20661
20686
  return [3, 5];
20662
20687
  case 4:
20663
- return h = R.sent(), console.error(h), [3, 5];
20688
+ return M = h.sent(), console.error(M), [3, 5];
20664
20689
  case 5:
20665
20690
  return [2];
20666
20691
  }
@@ -20708,102 +20733,102 @@ var __webpack_modules__ = { 37: function(t) {
20708
20733
  });
20709
20734
  };
20710
20735
  }, 655: (t, e, s) => {
20711
- s.r(e), s.d(e, { __assign: () => g, __asyncDelegator: () => P, __asyncGenerator: () => _, __asyncValues: () => D, __await: () => R, __awaiter: () => l, __classPrivateFieldGet: () => k, __classPrivateFieldIn: () => X, __classPrivateFieldSet: () => N, __createBinding: () => d, __decorate: () => o, __exportStar: () => m, __extends: () => u, __generator: () => c, __importDefault: () => q, __importStar: () => x, __makeTemplateObject: () => I, __metadata: () => i, __param: () => r, __read: () => y, __rest: () => p, __spread: () => f, __spreadArray: () => h, __spreadArrays: () => b, __values: () => v });
20712
- var n = function(S, M) {
20713
- return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(O, E) {
20714
- O.__proto__ = E;
20715
- } || function(O, E) {
20736
+ s.r(e), s.d(e, { __assign: () => g, __asyncDelegator: () => w, __asyncGenerator: () => O, __asyncValues: () => C, __await: () => h, __awaiter: () => l, __classPrivateFieldGet: () => I, __classPrivateFieldIn: () => k, __classPrivateFieldSet: () => x, __createBinding: () => d, __decorate: () => o, __exportStar: () => m, __extends: () => u, __generator: () => c, __importDefault: () => U, __importStar: () => z, __makeTemplateObject: () => L, __metadata: () => i, __param: () => r, __read: () => y, __rest: () => p, __spread: () => f, __spreadArray: () => M, __spreadArrays: () => b, __values: () => v });
20737
+ var n = function(S, R) {
20738
+ return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, E) {
20739
+ _.__proto__ = E;
20740
+ } || function(_, E) {
20716
20741
  for (var F in E)
20717
- Object.prototype.hasOwnProperty.call(E, F) && (O[F] = E[F]);
20718
- }, n(S, M);
20742
+ Object.prototype.hasOwnProperty.call(E, F) && (_[F] = E[F]);
20743
+ }, n(S, R);
20719
20744
  };
20720
- function u(S, M) {
20721
- if (typeof M != "function" && M !== null)
20722
- throw new TypeError("Class extends value " + String(M) + " is not a constructor or null");
20723
- function O() {
20745
+ function u(S, R) {
20746
+ if (typeof R != "function" && R !== null)
20747
+ throw new TypeError("Class extends value " + String(R) + " is not a constructor or null");
20748
+ function _() {
20724
20749
  this.constructor = S;
20725
20750
  }
20726
- n(S, M), S.prototype = M === null ? Object.create(M) : (O.prototype = M.prototype, new O());
20751
+ n(S, R), S.prototype = R === null ? Object.create(R) : (_.prototype = R.prototype, new _());
20727
20752
  }
20728
20753
  var g = function() {
20729
20754
  return g = Object.assign || function(S) {
20730
- for (var M, O = 1, E = arguments.length; O < E; O++)
20731
- for (var F in M = arguments[O])
20732
- Object.prototype.hasOwnProperty.call(M, F) && (S[F] = M[F]);
20755
+ for (var R, _ = 1, E = arguments.length; _ < E; _++)
20756
+ for (var F in R = arguments[_])
20757
+ Object.prototype.hasOwnProperty.call(R, F) && (S[F] = R[F]);
20733
20758
  return S;
20734
20759
  }, g.apply(this, arguments);
20735
20760
  };
20736
- function p(S, M) {
20737
- var O = {};
20761
+ function p(S, R) {
20762
+ var _ = {};
20738
20763
  for (var E in S)
20739
- Object.prototype.hasOwnProperty.call(S, E) && M.indexOf(E) < 0 && (O[E] = S[E]);
20764
+ Object.prototype.hasOwnProperty.call(S, E) && R.indexOf(E) < 0 && (_[E] = S[E]);
20740
20765
  if (S != null && typeof Object.getOwnPropertySymbols == "function") {
20741
20766
  var F = 0;
20742
20767
  for (E = Object.getOwnPropertySymbols(S); F < E.length; F++)
20743
- M.indexOf(E[F]) < 0 && Object.prototype.propertyIsEnumerable.call(S, E[F]) && (O[E[F]] = S[E[F]]);
20768
+ R.indexOf(E[F]) < 0 && Object.prototype.propertyIsEnumerable.call(S, E[F]) && (_[E[F]] = S[E[F]]);
20744
20769
  }
20745
- return O;
20770
+ return _;
20746
20771
  }
20747
- function o(S, M, O, E) {
20748
- var F, T = arguments.length, w = T < 3 ? M : E === null ? E = Object.getOwnPropertyDescriptor(M, O) : E;
20772
+ function o(S, R, _, E) {
20773
+ var F, P = arguments.length, T = P < 3 ? R : E === null ? E = Object.getOwnPropertyDescriptor(R, _) : E;
20749
20774
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
20750
- w = Reflect.decorate(S, M, O, E);
20775
+ T = Reflect.decorate(S, R, _, E);
20751
20776
  else
20752
- for (var C = S.length - 1; C >= 0; C--)
20753
- (F = S[C]) && (w = (T < 3 ? F(w) : T > 3 ? F(M, O, w) : F(M, O)) || w);
20754
- return T > 3 && w && Object.defineProperty(M, O, w), w;
20777
+ for (var D = S.length - 1; D >= 0; D--)
20778
+ (F = S[D]) && (T = (P < 3 ? F(T) : P > 3 ? F(R, _, T) : F(R, _)) || T);
20779
+ return P > 3 && T && Object.defineProperty(R, _, T), T;
20755
20780
  }
20756
- function r(S, M) {
20757
- return function(O, E) {
20758
- M(O, E, S);
20781
+ function r(S, R) {
20782
+ return function(_, E) {
20783
+ R(_, E, S);
20759
20784
  };
20760
20785
  }
20761
- function i(S, M) {
20786
+ function i(S, R) {
20762
20787
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
20763
- return Reflect.metadata(S, M);
20788
+ return Reflect.metadata(S, R);
20764
20789
  }
20765
- function l(S, M, O, E) {
20766
- return new (O || (O = Promise))(function(F, T) {
20767
- function w(G) {
20790
+ function l(S, R, _, E) {
20791
+ return new (_ || (_ = Promise))(function(F, P) {
20792
+ function T(j) {
20768
20793
  try {
20769
- j(E.next(G));
20794
+ A(E.next(j));
20770
20795
  } catch (B) {
20771
- T(B);
20796
+ P(B);
20772
20797
  }
20773
20798
  }
20774
- function C(G) {
20799
+ function D(j) {
20775
20800
  try {
20776
- j(E.throw(G));
20801
+ A(E.throw(j));
20777
20802
  } catch (B) {
20778
- T(B);
20803
+ P(B);
20779
20804
  }
20780
20805
  }
20781
- function j(G) {
20806
+ function A(j) {
20782
20807
  var B;
20783
- G.done ? F(G.value) : (B = G.value, B instanceof O ? B : new O(function(W) {
20784
- W(B);
20785
- })).then(w, C);
20808
+ j.done ? F(j.value) : (B = j.value, B instanceof _ ? B : new _(function(N) {
20809
+ N(B);
20810
+ })).then(T, D);
20786
20811
  }
20787
- j((E = E.apply(S, M || [])).next());
20812
+ A((E = E.apply(S, R || [])).next());
20788
20813
  });
20789
20814
  }
20790
- function c(S, M) {
20791
- var O, E, F, T, w = { label: 0, sent: function() {
20815
+ function c(S, R) {
20816
+ var _, E, F, P, T = { label: 0, sent: function() {
20792
20817
  if (1 & F[0])
20793
20818
  throw F[1];
20794
20819
  return F[1];
20795
20820
  }, trys: [], ops: [] };
20796
- return T = { next: C(0), throw: C(1), return: C(2) }, typeof Symbol == "function" && (T[Symbol.iterator] = function() {
20821
+ return P = { next: D(0), throw: D(1), return: D(2) }, typeof Symbol == "function" && (P[Symbol.iterator] = function() {
20797
20822
  return this;
20798
- }), T;
20799
- function C(j) {
20800
- return function(G) {
20823
+ }), P;
20824
+ function D(A) {
20825
+ return function(j) {
20801
20826
  return function(B) {
20802
- if (O)
20827
+ if (_)
20803
20828
  throw new TypeError("Generator is already executing.");
20804
- for (; T && (T = 0, B[0] && (w = 0)), w; )
20829
+ for (; P && (P = 0, B[0] && (T = 0)), T; )
20805
20830
  try {
20806
- if (O = 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)
20831
+ 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)
20807
20832
  return F;
20808
20833
  switch (E = 0, F && (B = [2 & B[0], F.value]), B[0]) {
20809
20834
  case 0:
@@ -20811,216 +20836,216 @@ var __webpack_modules__ = { 37: function(t) {
20811
20836
  F = B;
20812
20837
  break;
20813
20838
  case 4:
20814
- return w.label++, { value: B[1], done: !1 };
20839
+ return T.label++, { value: B[1], done: !1 };
20815
20840
  case 5:
20816
- w.label++, E = B[1], B = [0];
20841
+ T.label++, E = B[1], B = [0];
20817
20842
  continue;
20818
20843
  case 7:
20819
- B = w.ops.pop(), w.trys.pop();
20844
+ B = T.ops.pop(), T.trys.pop();
20820
20845
  continue;
20821
20846
  default:
20822
- if (!((F = (F = w.trys).length > 0 && F[F.length - 1]) || B[0] !== 6 && B[0] !== 2)) {
20823
- w = 0;
20847
+ if (!((F = (F = T.trys).length > 0 && F[F.length - 1]) || B[0] !== 6 && B[0] !== 2)) {
20848
+ T = 0;
20824
20849
  continue;
20825
20850
  }
20826
20851
  if (B[0] === 3 && (!F || B[1] > F[0] && B[1] < F[3])) {
20827
- w.label = B[1];
20852
+ T.label = B[1];
20828
20853
  break;
20829
20854
  }
20830
- if (B[0] === 6 && w.label < F[1]) {
20831
- w.label = F[1], F = B;
20855
+ if (B[0] === 6 && T.label < F[1]) {
20856
+ T.label = F[1], F = B;
20832
20857
  break;
20833
20858
  }
20834
- if (F && w.label < F[2]) {
20835
- w.label = F[2], w.ops.push(B);
20859
+ if (F && T.label < F[2]) {
20860
+ T.label = F[2], T.ops.push(B);
20836
20861
  break;
20837
20862
  }
20838
- F[2] && w.ops.pop(), w.trys.pop();
20863
+ F[2] && T.ops.pop(), T.trys.pop();
20839
20864
  continue;
20840
20865
  }
20841
- B = M.call(S, w);
20842
- } catch (W) {
20843
- B = [6, W], E = 0;
20866
+ B = R.call(S, T);
20867
+ } catch (N) {
20868
+ B = [6, N], E = 0;
20844
20869
  } finally {
20845
- O = F = 0;
20870
+ _ = F = 0;
20846
20871
  }
20847
20872
  if (5 & B[0])
20848
20873
  throw B[1];
20849
20874
  return { value: B[0] ? B[1] : void 0, done: !0 };
20850
- }([j, G]);
20875
+ }([A, j]);
20851
20876
  };
20852
20877
  }
20853
20878
  }
20854
- var d = Object.create ? function(S, M, O, E) {
20855
- E === void 0 && (E = O);
20856
- var F = Object.getOwnPropertyDescriptor(M, O);
20857
- F && !("get" in F ? !M.__esModule : F.writable || F.configurable) || (F = { enumerable: !0, get: function() {
20858
- return M[O];
20879
+ var d = Object.create ? function(S, R, _, E) {
20880
+ E === void 0 && (E = _);
20881
+ var F = Object.getOwnPropertyDescriptor(R, _);
20882
+ F && !("get" in F ? !R.__esModule : F.writable || F.configurable) || (F = { enumerable: !0, get: function() {
20883
+ return R[_];
20859
20884
  } }), Object.defineProperty(S, E, F);
20860
- } : function(S, M, O, E) {
20861
- E === void 0 && (E = O), S[E] = M[O];
20885
+ } : function(S, R, _, E) {
20886
+ E === void 0 && (E = _), S[E] = R[_];
20862
20887
  };
20863
- function m(S, M) {
20864
- for (var O in S)
20865
- O === "default" || Object.prototype.hasOwnProperty.call(M, O) || d(M, S, O);
20888
+ function m(S, R) {
20889
+ for (var _ in S)
20890
+ _ === "default" || Object.prototype.hasOwnProperty.call(R, _) || d(R, S, _);
20866
20891
  }
20867
20892
  function v(S) {
20868
- var M = typeof Symbol == "function" && Symbol.iterator, O = M && S[M], E = 0;
20869
- if (O)
20870
- return O.call(S);
20893
+ var R = typeof Symbol == "function" && Symbol.iterator, _ = R && S[R], E = 0;
20894
+ if (_)
20895
+ return _.call(S);
20871
20896
  if (S && typeof S.length == "number")
20872
20897
  return { next: function() {
20873
20898
  return S && E >= S.length && (S = void 0), { value: S && S[E++], done: !S };
20874
20899
  } };
20875
- throw new TypeError(M ? "Object is not iterable." : "Symbol.iterator is not defined.");
20900
+ throw new TypeError(R ? "Object is not iterable." : "Symbol.iterator is not defined.");
20876
20901
  }
20877
- function y(S, M) {
20878
- var O = typeof Symbol == "function" && S[Symbol.iterator];
20879
- if (!O)
20902
+ function y(S, R) {
20903
+ var _ = typeof Symbol == "function" && S[Symbol.iterator];
20904
+ if (!_)
20880
20905
  return S;
20881
- var E, F, T = O.call(S), w = [];
20906
+ var E, F, P = _.call(S), T = [];
20882
20907
  try {
20883
- for (; (M === void 0 || M-- > 0) && !(E = T.next()).done; )
20884
- w.push(E.value);
20885
- } catch (C) {
20886
- F = { error: C };
20908
+ for (; (R === void 0 || R-- > 0) && !(E = P.next()).done; )
20909
+ T.push(E.value);
20910
+ } catch (D) {
20911
+ F = { error: D };
20887
20912
  } finally {
20888
20913
  try {
20889
- E && !E.done && (O = T.return) && O.call(T);
20914
+ E && !E.done && (_ = P.return) && _.call(P);
20890
20915
  } finally {
20891
20916
  if (F)
20892
20917
  throw F.error;
20893
20918
  }
20894
20919
  }
20895
- return w;
20920
+ return T;
20896
20921
  }
20897
20922
  function f() {
20898
- for (var S = [], M = 0; M < arguments.length; M++)
20899
- S = S.concat(y(arguments[M]));
20923
+ for (var S = [], R = 0; R < arguments.length; R++)
20924
+ S = S.concat(y(arguments[R]));
20900
20925
  return S;
20901
20926
  }
20902
20927
  function b() {
20903
- for (var S = 0, M = 0, O = arguments.length; M < O; M++)
20904
- S += arguments[M].length;
20928
+ for (var S = 0, R = 0, _ = arguments.length; R < _; R++)
20929
+ S += arguments[R].length;
20905
20930
  var E = Array(S), F = 0;
20906
- for (M = 0; M < O; M++)
20907
- for (var T = arguments[M], w = 0, C = T.length; w < C; w++, F++)
20908
- E[F] = T[w];
20931
+ for (R = 0; R < _; R++)
20932
+ for (var P = arguments[R], T = 0, D = P.length; T < D; T++, F++)
20933
+ E[F] = P[T];
20909
20934
  return E;
20910
20935
  }
20911
- function h(S, M, O) {
20912
- if (O || arguments.length === 2)
20913
- for (var E, F = 0, T = M.length; F < T; F++)
20914
- !E && F in M || (E || (E = Array.prototype.slice.call(M, 0, F)), E[F] = M[F]);
20915
- return S.concat(E || Array.prototype.slice.call(M));
20936
+ function M(S, R, _) {
20937
+ if (_ || arguments.length === 2)
20938
+ for (var E, F = 0, P = R.length; F < P; F++)
20939
+ !E && F in R || (E || (E = Array.prototype.slice.call(R, 0, F)), E[F] = R[F]);
20940
+ return S.concat(E || Array.prototype.slice.call(R));
20916
20941
  }
20917
- function R(S) {
20918
- return this instanceof R ? (this.v = S, this) : new R(S);
20942
+ function h(S) {
20943
+ return this instanceof h ? (this.v = S, this) : new h(S);
20919
20944
  }
20920
- function _(S, M, O) {
20945
+ function O(S, R, _) {
20921
20946
  if (!Symbol.asyncIterator)
20922
20947
  throw new TypeError("Symbol.asyncIterator is not defined.");
20923
- var E, F = O.apply(S, M || []), T = [];
20924
- return E = {}, w("next"), w("throw"), w("return"), E[Symbol.asyncIterator] = function() {
20948
+ var E, F = _.apply(S, R || []), P = [];
20949
+ return E = {}, T("next"), T("throw"), T("return"), E[Symbol.asyncIterator] = function() {
20925
20950
  return this;
20926
20951
  }, E;
20927
- function w(W) {
20928
- F[W] && (E[W] = function(H) {
20929
- return new Promise(function(Z, ee) {
20930
- T.push([W, H, Z, ee]) > 1 || C(W, H);
20952
+ function T(N) {
20953
+ F[N] && (E[N] = function(V) {
20954
+ return new Promise(function(Z, oe) {
20955
+ P.push([N, V, Z, oe]) > 1 || D(N, V);
20931
20956
  });
20932
20957
  });
20933
20958
  }
20934
- function C(W, H) {
20959
+ function D(N, V) {
20935
20960
  try {
20936
- (Z = F[W](H)).value instanceof R ? Promise.resolve(Z.value.v).then(j, G) : B(T[0][2], Z);
20937
- } catch (ee) {
20938
- B(T[0][3], ee);
20961
+ (Z = F[N](V)).value instanceof h ? Promise.resolve(Z.value.v).then(A, j) : B(P[0][2], Z);
20962
+ } catch (oe) {
20963
+ B(P[0][3], oe);
20939
20964
  }
20940
20965
  var Z;
20941
20966
  }
20942
- function j(W) {
20943
- C("next", W);
20967
+ function A(N) {
20968
+ D("next", N);
20944
20969
  }
20945
- function G(W) {
20946
- C("throw", W);
20970
+ function j(N) {
20971
+ D("throw", N);
20947
20972
  }
20948
- function B(W, H) {
20949
- W(H), T.shift(), T.length && C(T[0][0], T[0][1]);
20973
+ function B(N, V) {
20974
+ N(V), P.shift(), P.length && D(P[0][0], P[0][1]);
20950
20975
  }
20951
20976
  }
20952
- function P(S) {
20953
- var M, O;
20954
- return M = {}, E("next"), E("throw", function(F) {
20977
+ function w(S) {
20978
+ var R, _;
20979
+ return R = {}, E("next"), E("throw", function(F) {
20955
20980
  throw F;
20956
- }), E("return"), M[Symbol.iterator] = function() {
20981
+ }), E("return"), R[Symbol.iterator] = function() {
20957
20982
  return this;
20958
- }, M;
20959
- function E(F, T) {
20960
- M[F] = S[F] ? function(w) {
20961
- return (O = !O) ? { value: R(S[F](w)), done: F === "return" } : T ? T(w) : w;
20962
- } : T;
20983
+ }, R;
20984
+ function E(F, P) {
20985
+ R[F] = S[F] ? function(T) {
20986
+ return (_ = !_) ? { value: h(S[F](T)), done: F === "return" } : P ? P(T) : T;
20987
+ } : P;
20963
20988
  }
20964
20989
  }
20965
- function D(S) {
20990
+ function C(S) {
20966
20991
  if (!Symbol.asyncIterator)
20967
20992
  throw new TypeError("Symbol.asyncIterator is not defined.");
20968
- var M, O = S[Symbol.asyncIterator];
20969
- return O ? O.call(S) : (S = v(S), M = {}, E("next"), E("throw"), E("return"), M[Symbol.asyncIterator] = function() {
20993
+ var R, _ = S[Symbol.asyncIterator];
20994
+ return _ ? _.call(S) : (S = v(S), R = {}, E("next"), E("throw"), E("return"), R[Symbol.asyncIterator] = function() {
20970
20995
  return this;
20971
- }, M);
20996
+ }, R);
20972
20997
  function E(F) {
20973
- M[F] = S[F] && function(T) {
20974
- return new Promise(function(w, C) {
20975
- (function(j, G, B, W) {
20976
- Promise.resolve(W).then(function(H) {
20977
- j({ value: H, done: B });
20978
- }, G);
20979
- })(w, C, (T = S[F](T)).done, T.value);
20998
+ R[F] = S[F] && function(P) {
20999
+ return new Promise(function(T, D) {
21000
+ (function(A, j, B, N) {
21001
+ Promise.resolve(N).then(function(V) {
21002
+ A({ value: V, done: B });
21003
+ }, j);
21004
+ })(T, D, (P = S[F](P)).done, P.value);
20980
21005
  });
20981
21006
  };
20982
21007
  }
20983
21008
  }
20984
- function I(S, M) {
20985
- return Object.defineProperty ? Object.defineProperty(S, "raw", { value: M }) : S.raw = M, S;
21009
+ function L(S, R) {
21010
+ return Object.defineProperty ? Object.defineProperty(S, "raw", { value: R }) : S.raw = R, S;
20986
21011
  }
20987
- var z = Object.create ? function(S, M) {
20988
- Object.defineProperty(S, "default", { enumerable: !0, value: M });
20989
- } : function(S, M) {
20990
- S.default = M;
21012
+ var W = Object.create ? function(S, R) {
21013
+ Object.defineProperty(S, "default", { enumerable: !0, value: R });
21014
+ } : function(S, R) {
21015
+ S.default = R;
20991
21016
  };
20992
- function x(S) {
21017
+ function z(S) {
20993
21018
  if (S && S.__esModule)
20994
21019
  return S;
20995
- var M = {};
21020
+ var R = {};
20996
21021
  if (S != null)
20997
- for (var O in S)
20998
- O !== "default" && Object.prototype.hasOwnProperty.call(S, O) && d(M, S, O);
20999
- return z(M, S), M;
21022
+ for (var _ in S)
21023
+ _ !== "default" && Object.prototype.hasOwnProperty.call(S, _) && d(R, S, _);
21024
+ return W(R, S), R;
21000
21025
  }
21001
- function q(S) {
21026
+ function U(S) {
21002
21027
  return S && S.__esModule ? S : { default: S };
21003
21028
  }
21004
- function k(S, M, O, E) {
21005
- if (O === "a" && !E)
21029
+ function I(S, R, _, E) {
21030
+ if (_ === "a" && !E)
21006
21031
  throw new TypeError("Private accessor was defined without a getter");
21007
- if (typeof M == "function" ? S !== M || !E : !M.has(S))
21032
+ if (typeof R == "function" ? S !== R || !E : !R.has(S))
21008
21033
  throw new TypeError("Cannot read private member from an object whose class did not declare it");
21009
- return O === "m" ? E : O === "a" ? E.call(S) : E ? E.value : M.get(S);
21034
+ return _ === "m" ? E : _ === "a" ? E.call(S) : E ? E.value : R.get(S);
21010
21035
  }
21011
- function N(S, M, O, E, F) {
21036
+ function x(S, R, _, E, F) {
21012
21037
  if (E === "m")
21013
21038
  throw new TypeError("Private method is not writable");
21014
21039
  if (E === "a" && !F)
21015
21040
  throw new TypeError("Private accessor was defined without a setter");
21016
- if (typeof M == "function" ? S !== M || !F : !M.has(S))
21041
+ if (typeof R == "function" ? S !== R || !F : !R.has(S))
21017
21042
  throw new TypeError("Cannot write private member to an object whose class did not declare it");
21018
- return E === "a" ? F.call(S, O) : F ? F.value = O : M.set(S, O), O;
21043
+ return E === "a" ? F.call(S, _) : F ? F.value = _ : R.set(S, _), _;
21019
21044
  }
21020
- function X(S, M) {
21021
- if (M === null || typeof M != "object" && typeof M != "function")
21045
+ function k(S, R) {
21046
+ if (R === null || typeof R != "object" && typeof R != "function")
21022
21047
  throw new TypeError("Cannot use 'in' operator on non-object");
21023
- return typeof S == "function" ? M === S : S.has(M);
21048
+ return typeof S == "function" ? R === S : S.has(R);
21024
21049
  }
21025
21050
  }, 80: (t, e, s) => {
21026
21051
  var n = s(19), u = n, g = function() {
@@ -32502,7 +32527,7 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
32502
32527
  }, proto.viam.component.movementsensor.v1.GetPositionResponse.toObject = function(o, r) {
32503
32528
  var i, l = {
32504
32529
  coordinate: (i = r.getCoordinate()) && u.GeoPoint.toObject(o, i),
32505
- altitudeMm: e.Message.getFloatingPointFieldWithDefault(r, 2, 0)
32530
+ altitudeM: e.Message.getFloatingPointFieldWithDefault(r, 2, 0)
32506
32531
  };
32507
32532
  return o && (l.$jspbMessageInstance = r), l;
32508
32533
  }), proto.viam.component.movementsensor.v1.GetPositionResponse.deserializeBinary = function(o) {
@@ -32521,7 +32546,7 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
32521
32546
  /** @type {number} */
32522
32547
  r.readFloat()
32523
32548
  );
32524
- o.setAltitudeMm(l);
32549
+ o.setAltitudeM(l);
32525
32550
  break;
32526
32551
  default:
32527
32552
  r.skipField();
@@ -32538,7 +32563,7 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
32538
32563
  1,
32539
32564
  i,
32540
32565
  u.GeoPoint.serializeBinaryToWriter
32541
- ), i = o.getAltitudeMm(), i !== 0 && r.writeFloat(
32566
+ ), i = o.getAltitudeM(), i !== 0 && r.writeFloat(
32542
32567
  2,
32543
32568
  i
32544
32569
  );
@@ -32553,12 +32578,12 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
32553
32578
  return this.setCoordinate(void 0);
32554
32579
  }, proto.viam.component.movementsensor.v1.GetPositionResponse.prototype.hasCoordinate = function() {
32555
32580
  return e.Message.getField(this, 1) != null;
32556
- }, proto.viam.component.movementsensor.v1.GetPositionResponse.prototype.getAltitudeMm = function() {
32581
+ }, proto.viam.component.movementsensor.v1.GetPositionResponse.prototype.getAltitudeM = function() {
32557
32582
  return (
32558
32583
  /** @type {number} */
32559
32584
  e.Message.getFloatingPointFieldWithDefault(this, 2, 0)
32560
32585
  );
32561
- }, proto.viam.component.movementsensor.v1.GetPositionResponse.prototype.setAltitudeMm = function(o) {
32586
+ }, proto.viam.component.movementsensor.v1.GetPositionResponse.prototype.setAltitudeM = function(o) {
32562
32587
  return e.Message.setProto3FloatField(this, 2, o);
32563
32588
  }, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.movementsensor.v1.GetPropertiesRequest.prototype.toObject = function(o) {
32564
32589
  return proto.viam.component.movementsensor.v1.GetPropertiesRequest.toObject(o, this);
@@ -32823,7 +32848,7 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
32823
32848
  return proto.viam.component.movementsensor.v1.GetAccuracyResponse.toObject(o, this);
32824
32849
  }, proto.viam.component.movementsensor.v1.GetAccuracyResponse.toObject = function(o, r) {
32825
32850
  var i, l = {
32826
- accuracyMmMap: (i = r.getAccuracyMmMap()) ? i.toObject(o, void 0) : []
32851
+ accuracyMap: (i = r.getAccuracyMap()) ? i.toObject(o, void 0) : []
32827
32852
  };
32828
32853
  return o && (l.$jspbMessageInstance = r), l;
32829
32854
  }), proto.viam.component.movementsensor.v1.GetAccuracyResponse.deserializeBinary = function(o) {
@@ -32834,7 +32859,7 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
32834
32859
  var i = r.getFieldNumber();
32835
32860
  switch (i) {
32836
32861
  case 1:
32837
- var l = o.getAccuracyMmMap();
32862
+ var l = o.getAccuracyMap();
32838
32863
  r.readMessage(l, function(c, d) {
32839
32864
  e.Map.deserializeBinary(c, d, e.BinaryReader.prototype.readString, e.BinaryReader.prototype.readFloat, null, "", 0);
32840
32865
  });
@@ -32850,8 +32875,8 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
32850
32875
  return proto.viam.component.movementsensor.v1.GetAccuracyResponse.serializeBinaryToWriter(this, o), o.getResultBuffer();
32851
32876
  }, proto.viam.component.movementsensor.v1.GetAccuracyResponse.serializeBinaryToWriter = function(o, r) {
32852
32877
  var i = void 0;
32853
- i = o.getAccuracyMmMap(!0), i && i.getLength() > 0 && i.serializeBinary(1, r, e.BinaryWriter.prototype.writeString, e.BinaryWriter.prototype.writeFloat);
32854
- }, proto.viam.component.movementsensor.v1.GetAccuracyResponse.prototype.getAccuracyMmMap = function(o) {
32878
+ i = o.getAccuracyMap(!0), i && i.getLength() > 0 && i.serializeBinary(1, r, e.BinaryWriter.prototype.writeString, e.BinaryWriter.prototype.writeFloat);
32879
+ }, proto.viam.component.movementsensor.v1.GetAccuracyResponse.prototype.getAccuracyMap = function(o) {
32855
32880
  return (
32856
32881
  /** @type {!jspb.Map<string,number>} */
32857
32882
  e.Message.getMapField(
@@ -32861,8 +32886,8 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
32861
32886
  null
32862
32887
  )
32863
32888
  );
32864
- }, proto.viam.component.movementsensor.v1.GetAccuracyResponse.prototype.clearAccuracyMmMap = function() {
32865
- return this.getAccuracyMmMap().clear(), this;
32889
+ }, proto.viam.component.movementsensor.v1.GetAccuracyResponse.prototype.clearAccuracyMap = function() {
32890
+ return this.getAccuracyMap().clear(), this;
32866
32891
  }, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.prototype.toObject = function(o) {
32867
32892
  return proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.toObject(o, this);
32868
32893
  }, proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.toObject = function(o, r) {
@@ -39810,14 +39835,14 @@ class BaseClient {
39810
39835
  }
39811
39836
  async setPower(e, s, n = {}) {
39812
39837
  const u = this.baseService, g = new base_pb.SetPowerRequest();
39813
- g.setName(this.name), g.setLinear(encodeVector3D(e)), g.setAngular(encodeVector3D(s)), g.setExtra(struct_pb.Struct.fromJavaScript(n)), this.options.requestLogger?.(g), await promisify(
39838
+ g.setName(this.name), g.setLinear(encodeVector3(e)), g.setAngular(encodeVector3(s)), g.setExtra(struct_pb.Struct.fromJavaScript(n)), this.options.requestLogger?.(g), await promisify(
39814
39839
  u.setPower.bind(u),
39815
39840
  g
39816
39841
  );
39817
39842
  }
39818
39843
  async setVelocity(e, s, n = {}) {
39819
39844
  const u = this.baseService, g = new base_pb.SetVelocityRequest();
39820
- g.setName(this.name), g.setLinear(encodeVector3D(e)), g.setAngular(encodeVector3D(s)), g.setExtra(struct_pb.Struct.fromJavaScript(n)), this.options.requestLogger?.(g), await promisify(
39845
+ g.setName(this.name), g.setLinear(encodeVector3(e)), g.setAngular(encodeVector3(s)), g.setExtra(struct_pb.Struct.fromJavaScript(n)), this.options.requestLogger?.(g), await promisify(
39821
39846
  u.setVelocity.bind(u),
39822
39847
  g
39823
39848
  );
@@ -41578,7 +41603,7 @@ class MovementSensorClient {
41578
41603
  )).getLinearVelocity();
41579
41604
  if (!g)
41580
41605
  throw new Error("no linear velocity");
41581
- return decodeVector3D(g);
41606
+ return g.toObject();
41582
41607
  }
41583
41608
  async getAngularVelocity(e = {}) {
41584
41609
  const s = this.movementsensorService, n = new movementsensor_pb.GetAngularVelocityRequest();
@@ -41589,7 +41614,7 @@ class MovementSensorClient {
41589
41614
  )).getAngularVelocity();
41590
41615
  if (!g)
41591
41616
  throw new Error("no angular velocity");
41592
- return decodeVector3D(g);
41617
+ return g.toObject();
41593
41618
  }
41594
41619
  async getCompassHeading(e = {}) {
41595
41620
  const s = this.movementsensorService, n = new movementsensor_pb.GetCompassHeadingRequest();
@@ -41607,42 +41632,20 @@ class MovementSensorClient {
41607
41632
  )).getOrientation();
41608
41633
  if (!g)
41609
41634
  throw new Error("no orientation");
41610
- return {
41611
- ox: g.getOX(),
41612
- oy: g.getOY(),
41613
- oz: g.getOZ(),
41614
- theta: g.getTheta()
41615
- };
41635
+ return g.toObject();
41616
41636
  }
41617
41637
  async getPosition(e = {}) {
41618
41638
  const s = this.movementsensorService, n = new movementsensor_pb.GetPositionRequest();
41619
- n.setName(this.name), n.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(n);
41620
- const u = await promisify(s.getPosition.bind(s), n), g = u.getCoordinate();
41621
- if (!g)
41622
- throw new Error("no coordinate");
41623
- return {
41624
- latitude: g.getLatitude(),
41625
- longitude: g.getLongitude(),
41626
- altitudeMM: u.getAltitudeMm()
41627
- };
41639
+ return n.setName(this.name), n.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(n), (await promisify(s.getPosition.bind(s), n)).toObject();
41628
41640
  }
41629
41641
  async getProperties(e = {}) {
41630
41642
  const s = this.movementsensorService, n = new movementsensor_pb.GetPropertiesRequest();
41631
- n.setName(this.name), n.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(n);
41632
- const u = await promisify(s.getProperties.bind(s), n);
41633
- return {
41634
- linearVelocitySupported: u.getLinearVelocitySupported(),
41635
- angularVelocitySupported: u.getAngularVelocitySupported(),
41636
- orientationSupported: u.getOrientationSupported(),
41637
- positionSupported: u.getPositionSupported(),
41638
- compassHeadingSupported: u.getCompassHeadingSupported(),
41639
- linearAccelerationSupported: u.getLinearAccelerationSupported()
41640
- };
41643
+ return n.setName(this.name), n.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(n), (await promisify(s.getProperties.bind(s), n)).toObject();
41641
41644
  }
41642
41645
  async getAccuracy(e = {}) {
41643
41646
  const s = this.movementsensorService, n = new movementsensor_pb.GetAccuracyRequest();
41644
41647
  n.setName(this.name), n.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(n);
41645
- const g = (await promisify(s.getAccuracy.bind(s), n)).getAccuracyMmMap(), p = {};
41648
+ const g = (await promisify(s.getAccuracy.bind(s), n)).getAccuracyMap(), p = {};
41646
41649
  for (const [o, r] of g.entries())
41647
41650
  p[o] = r;
41648
41651
  return p;
@@ -41656,7 +41659,7 @@ class MovementSensorClient {
41656
41659
  )).getLinearAcceleration();
41657
41660
  if (!g)
41658
41661
  throw new Error("no linear acceleration");
41659
- return decodeVector3D(g);
41662
+ return g.toObject();
41660
41663
  }
41661
41664
  getReadings(e = {}) {
41662
41665
  return this.sensorclient.getReadings(e);
@@ -42319,7 +42322,7 @@ class DataManagerClient {
42319
42322
  );
42320
42323
  }
42321
42324
  }
42322
- const version = "0.0.45";
42325
+ const version = "0.0.47-alpha.1";
42323
42326
  export {
42324
42327
  ArmClient,
42325
42328
  BaseClient,