@viamrobotics/sdk 0.0.40 → 0.0.42

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.
Files changed (163) hide show
  1. package/dist/components/arm/Client.d.ts +1 -9
  2. package/dist/gen/common/v1/common_pb.d.ts +557 -0
  3. package/dist/gen/common/v1/common_pb_service.d.ts +3 -0
  4. package/dist/gen/component/arm/v1/arm_pb.d.ts +336 -0
  5. package/dist/gen/component/arm/v1/arm_pb_service.d.ts +178 -0
  6. package/dist/gen/component/audioinput/v1/audioinput_pb.d.ts +222 -0
  7. package/dist/gen/component/audioinput/v1/audioinput_pb_service.d.ts +114 -0
  8. package/dist/gen/component/base/v1/base_pb.d.ts +298 -0
  9. package/dist/gen/component/base/v1/base_pb_service.d.ts +178 -0
  10. package/dist/gen/component/board/v1/board_pb.d.ts +517 -0
  11. package/dist/gen/component/board/v1/board_pb_service.d.ts +254 -0
  12. package/dist/gen/component/camera/v1/camera_pb.d.ts +330 -0
  13. package/dist/gen/component/camera/v1/camera_pb_service.d.ts +141 -0
  14. package/dist/gen/component/encoder/v1/encoder_pb.d.ts +164 -0
  15. package/dist/gen/component/encoder/v1/encoder_pb_service.d.ts +121 -0
  16. package/dist/gen/component/gantry/v1/gantry_pb.d.ts +266 -0
  17. package/dist/gen/component/gantry/v1/gantry_pb_service.d.ts +159 -0
  18. package/dist/gen/component/generic/v1/generic_pb.d.ts +7 -0
  19. package/dist/gen/component/generic/v1/generic_pb_service.d.ts +64 -0
  20. package/dist/gen/component/gripper/v1/gripper_pb.d.ts +184 -0
  21. package/dist/gen/component/gripper/v1/gripper_pb_service.d.ts +140 -0
  22. package/dist/gen/component/inputcontroller/v1/input_controller_pb.d.ts +295 -0
  23. package/dist/gen/component/inputcontroller/v1/input_controller_pb_service.d.ts +132 -0
  24. package/dist/gen/component/motor/v1/motor_pb.d.ts +452 -0
  25. package/dist/gen/component/motor/v1/motor_pb_service.d.ts +235 -0
  26. package/dist/gen/component/movementsensor/v1/movementsensor_pb.d.ts +409 -0
  27. package/dist/gen/component/movementsensor/v1/movementsensor_pb_service.d.ts +216 -0
  28. package/dist/gen/component/posetracker/v1/pose_tracker_pb.d.ts +59 -0
  29. package/dist/gen/component/posetracker/v1/pose_tracker_pb_service.d.ts +83 -0
  30. package/dist/gen/component/sensor/v1/sensor_pb.d.ts +53 -0
  31. package/dist/gen/component/sensor/v1/sensor_pb_service.d.ts +83 -0
  32. package/dist/gen/component/servo/v1/servo_pb.d.ts +206 -0
  33. package/dist/gen/component/servo/v1/servo_pb_service.d.ts +140 -0
  34. package/dist/gen/component/testecho/v1/testecho_pb.d.ts +174 -0
  35. package/dist/gen/component/testecho/v1/testecho_pb_service.d.ts +104 -0
  36. package/dist/gen/google/api/annotations_pb.d.ts +9 -0
  37. package/dist/gen/google/api/annotations_pb_service.d.ts +3 -0
  38. package/dist/gen/google/api/client_pb.d.ts +467 -0
  39. package/dist/gen/google/api/client_pb_service.d.ts +3 -0
  40. package/dist/gen/google/api/expr/v1alpha1/checked_pb.d.ts +454 -0
  41. package/dist/gen/google/api/expr/v1alpha1/checked_pb_service.d.ts +3 -0
  42. package/dist/gen/google/api/expr/v1alpha1/eval_pb.d.ts +145 -0
  43. package/dist/gen/google/api/expr/v1alpha1/eval_pb_service.d.ts +3 -0
  44. package/dist/gen/google/api/expr/v1alpha1/explain_pb.d.ts +58 -0
  45. package/dist/gen/google/api/expr/v1alpha1/explain_pb_service.d.ts +3 -0
  46. package/dist/gen/google/api/expr/v1alpha1/syntax_pb.d.ts +503 -0
  47. package/dist/gen/google/api/expr/v1alpha1/syntax_pb_service.d.ts +3 -0
  48. package/dist/gen/google/api/expr/v1alpha1/value_pb.d.ts +210 -0
  49. package/dist/gen/google/api/expr/v1alpha1/value_pb_service.d.ts +3 -0
  50. package/dist/gen/google/api/expr/v1beta1/decl_pb.d.ts +143 -0
  51. package/dist/gen/google/api/expr/v1beta1/decl_pb_service.d.ts +3 -0
  52. package/dist/gen/google/api/expr/v1beta1/eval_pb.d.ts +167 -0
  53. package/dist/gen/google/api/expr/v1beta1/eval_pb_service.d.ts +3 -0
  54. package/dist/gen/google/api/expr/v1beta1/expr_pb.d.ts +414 -0
  55. package/dist/gen/google/api/expr/v1beta1/expr_pb_service.d.ts +3 -0
  56. package/dist/gen/google/api/expr/v1beta1/source_pb.d.ts +66 -0
  57. package/dist/gen/google/api/expr/v1beta1/source_pb_service.d.ts +3 -0
  58. package/dist/gen/google/api/expr/v1beta1/value_pb.d.ts +210 -0
  59. package/dist/gen/google/api/expr/v1beta1/value_pb_service.d.ts +3 -0
  60. package/dist/gen/google/api/field_behavior_pb.d.ts +21 -0
  61. package/dist/gen/google/api/field_behavior_pb_service.d.ts +3 -0
  62. package/dist/gen/google/api/http_pb.d.ts +136 -0
  63. package/dist/gen/google/api/http_pb_service.d.ts +3 -0
  64. package/dist/gen/google/api/httpbody_pb.d.ts +38 -0
  65. package/dist/gen/google/api/httpbody_pb_service.d.ts +3 -0
  66. package/dist/gen/google/api/launch_stage_pb.d.ts +18 -0
  67. package/dist/gen/google/api/launch_stage_pb_service.d.ts +3 -0
  68. package/dist/gen/google/api/resource_pb.d.ts +99 -0
  69. package/dist/gen/google/api/resource_pb_service.d.ts +3 -0
  70. package/dist/gen/google/api/visibility_pb.d.ts +64 -0
  71. package/dist/gen/google/api/visibility_pb_service.d.ts +3 -0
  72. package/dist/gen/google/bytestream/bytestream_pb.d.ts +155 -0
  73. package/dist/gen/google/bytestream/bytestream_pb_service.d.ts +85 -0
  74. package/dist/gen/google/geo/type/viewport_pb.d.ts +34 -0
  75. package/dist/gen/google/geo/type/viewport_pb_service.d.ts +3 -0
  76. package/dist/gen/google/longrunning/operations_pb.d.ts +231 -0
  77. package/dist/gen/google/longrunning/operations_pb_service.d.ts +140 -0
  78. package/dist/gen/google/rpc/code_pb.d.ts +27 -0
  79. package/dist/gen/google/rpc/code_pb_service.d.ts +3 -0
  80. package/dist/gen/google/rpc/context/attribute_context_pb.d.ts +356 -0
  81. package/dist/gen/google/rpc/context/attribute_context_pb_service.d.ts +3 -0
  82. package/dist/gen/google/rpc/error_details_pb.d.ts +349 -0
  83. package/dist/gen/google/rpc/error_details_pb_service.d.ts +3 -0
  84. package/dist/gen/google/rpc/status_pb.d.ts +36 -0
  85. package/dist/gen/google/rpc/status_pb_service.d.ts +3 -0
  86. package/dist/gen/google/type/calendar_period_pb.d.ts +18 -0
  87. package/dist/gen/google/type/calendar_period_pb_service.d.ts +3 -0
  88. package/dist/gen/google/type/color_pb.d.ts +40 -0
  89. package/dist/gen/google/type/color_pb_service.d.ts +3 -0
  90. package/dist/gen/google/type/date_pb.d.ts +33 -0
  91. package/dist/gen/google/type/date_pb_service.d.ts +3 -0
  92. package/dist/gen/google/type/datetime_pb.d.ts +93 -0
  93. package/dist/gen/google/type/datetime_pb_service.d.ts +3 -0
  94. package/dist/gen/google/type/dayofweek_pb.d.ts +18 -0
  95. package/dist/gen/google/type/dayofweek_pb_service.d.ts +3 -0
  96. package/dist/gen/google/type/decimal_pb.d.ts +25 -0
  97. package/dist/gen/google/type/decimal_pb_service.d.ts +3 -0
  98. package/dist/gen/google/type/expr_pb.d.ts +37 -0
  99. package/dist/gen/google/type/expr_pb_service.d.ts +3 -0
  100. package/dist/gen/google/type/fraction_pb.d.ts +29 -0
  101. package/dist/gen/google/type/fraction_pb_service.d.ts +3 -0
  102. package/dist/gen/google/type/interval_pb.d.ts +34 -0
  103. package/dist/gen/google/type/interval_pb_service.d.ts +3 -0
  104. package/dist/gen/google/type/latlng_pb.d.ts +29 -0
  105. package/dist/gen/google/type/latlng_pb_service.d.ts +3 -0
  106. package/dist/gen/google/type/localized_text_pb.d.ts +29 -0
  107. package/dist/gen/google/type/localized_text_pb_service.d.ts +3 -0
  108. package/dist/gen/google/type/money_pb.d.ts +33 -0
  109. package/dist/gen/google/type/money_pb_service.d.ts +3 -0
  110. package/dist/gen/google/type/month_pb.d.ts +23 -0
  111. package/dist/gen/google/type/month_pb_service.d.ts +3 -0
  112. package/dist/gen/google/type/phone_number_pb.d.ts +68 -0
  113. package/dist/gen/google/type/phone_number_pb_service.d.ts +3 -0
  114. package/dist/gen/google/type/postal_address_pb.d.ts +69 -0
  115. package/dist/gen/google/type/postal_address_pb_service.d.ts +3 -0
  116. package/dist/gen/google/type/quaternion_pb.d.ts +37 -0
  117. package/dist/gen/google/type/quaternion_pb_service.d.ts +3 -0
  118. package/dist/gen/google/type/timeofday_pb.d.ts +37 -0
  119. package/dist/gen/google/type/timeofday_pb_service.d.ts +3 -0
  120. package/dist/gen/proto/rpc/examples/echo/v1/echo_pb.d.ts +126 -0
  121. package/dist/gen/proto/rpc/examples/echo/v1/echo_pb_service.d.ts +85 -0
  122. package/dist/gen/proto/rpc/examples/echoresource/v1/echoresource_pb.d.ts +137 -0
  123. package/dist/gen/proto/rpc/examples/echoresource/v1/echoresource_pb_service.d.ts +85 -0
  124. package/dist/gen/proto/rpc/examples/fileupload/v1/fileupload_pb.d.ts +66 -0
  125. package/dist/gen/proto/rpc/examples/fileupload/v1/fileupload_pb_service.d.ts +55 -0
  126. package/dist/gen/proto/rpc/v1/auth_pb.d.ts +116 -0
  127. package/dist/gen/proto/rpc/v1/auth_pb_service.d.ts +92 -0
  128. package/dist/gen/proto/rpc/webrtc/v1/grpc_pb.d.ts +324 -0
  129. package/dist/gen/proto/rpc/webrtc/v1/grpc_pb_service.d.ts +3 -0
  130. package/dist/gen/proto/rpc/webrtc/v1/signaling_pb.d.ts +585 -0
  131. package/dist/gen/proto/rpc/webrtc/v1/signaling_pb_service.d.ts +104 -0
  132. package/dist/gen/proto/stream/v1/stream_pb.d.ts +115 -0
  133. package/dist/gen/proto/stream/v1/stream_pb_service.d.ts +101 -0
  134. package/dist/gen/robot/v1/robot_pb.d.ts +912 -0
  135. package/dist/gen/robot/v1/robot_pb_service.d.ts +321 -0
  136. package/dist/gen/service/datamanager/v1/data_manager_pb.d.ts +50 -0
  137. package/dist/gen/service/datamanager/v1/data_manager_pb_service.d.ts +83 -0
  138. package/dist/gen/service/mlmodel/v1/mlmodel_pb.d.ts +219 -0
  139. package/dist/gen/service/mlmodel/v1/mlmodel_pb_service.d.ts +82 -0
  140. package/dist/gen/service/motion/v1/motion_pb.d.ts +400 -0
  141. package/dist/gen/service/motion/v1/motion_pb_service.d.ts +140 -0
  142. package/dist/gen/service/navigation/v1/navigation_pb.d.ts +324 -0
  143. package/dist/gen/service/navigation/v1/navigation_pb_service.d.ts +178 -0
  144. package/dist/gen/service/sensors/v1/sensors_pb.d.ts +135 -0
  145. package/dist/gen/service/sensors/v1/sensors_pb_service.d.ts +102 -0
  146. package/dist/gen/service/shell/v1/shell_pb.d.ts +66 -0
  147. package/dist/gen/service/shell/v1/shell_pb_service.d.ts +75 -0
  148. package/dist/gen/service/slam/v1/slam_pb.d.ts +144 -0
  149. package/dist/gen/service/slam/v1/slam_pb_service.d.ts +105 -0
  150. package/dist/gen/service/vision/v1/vision_pb.d.ts +906 -0
  151. package/dist/gen/service/vision/v1/vision_pb_service.d.ts +349 -0
  152. package/dist/main.d.ts +4 -20
  153. package/dist/main.es.js +518 -424
  154. package/dist/main.umd.js +9 -9
  155. package/dist/services/datamanager/client.d.ts +11 -0
  156. package/dist/services/datamanager/datamanager.d.ts +4 -0
  157. package/dist/services/motion/Client.d.ts +20 -0
  158. package/dist/services/motion/Motion.d.ts +50 -0
  159. package/dist/services/motion/types.d.ts +4 -0
  160. package/dist/services/motion.d.ts +3 -0
  161. package/dist/types.d.ts +21 -0
  162. package/dist/utils.d.ts +22 -0
  163. package/package.json +23 -19
package/dist/main.es.js CHANGED
@@ -1,4 +1,3 @@
1
- const version = "0.0.40";
2
1
  var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, robot_pb = {}, googleProtobuf = {};
3
2
  (function(exports) {
4
3
  var $jscomp = $jscomp || {};
@@ -12472,14 +12471,14 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
12472
12471
  }([function(p, o, r) {
12473
12472
  Object.defineProperty(o, "__esModule", { value: !0 });
12474
12473
  var i = r(3), l = function() {
12475
- function c(d, v) {
12476
- d === void 0 && (d = {}), v === void 0 && (v = { splitValues: !1 });
12477
- var m, y = this;
12474
+ function c(d, m) {
12475
+ d === void 0 && (d = {}), m === void 0 && (m = { splitValues: !1 });
12476
+ var v, y = this;
12478
12477
  this.headersMap = {}, d && (typeof Headers < "u" && d instanceof Headers ? i.getHeaderKeys(d).forEach(function(f) {
12479
12478
  i.getHeaderValues(d, f).forEach(function(b) {
12480
- v.splitValues ? y.append(f, i.splitHeaderValue(b)) : y.append(f, b);
12479
+ m.splitValues ? y.append(f, i.splitHeaderValue(b)) : y.append(f, b);
12481
12480
  });
12482
- }) : typeof (m = d) == "object" && typeof m.headersMap == "object" && typeof m.forEach == "function" ? d.forEach(function(f, b) {
12481
+ }) : typeof (v = d) == "object" && typeof v.headersMap == "object" && typeof v.forEach == "function" ? d.forEach(function(f, b) {
12483
12482
  y.append(f, b);
12484
12483
  }) : typeof Map < "u" && d instanceof Map ? d.forEach(function(f, b) {
12485
12484
  y.append(b, f);
@@ -12491,62 +12490,62 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
12491
12490
  }));
12492
12491
  }
12493
12492
  return c.prototype.appendFromString = function(d) {
12494
- for (var v = d.split(`\r
12495
- `), m = 0; m < v.length; m++) {
12496
- var y = v[m], f = y.indexOf(":");
12493
+ for (var m = d.split(`\r
12494
+ `), v = 0; v < m.length; v++) {
12495
+ var y = m[v], f = y.indexOf(":");
12497
12496
  if (f > 0) {
12498
12497
  var b = y.substring(0, f).trim(), h = y.substring(f + 1).trim();
12499
12498
  this.append(b, h);
12500
12499
  }
12501
12500
  }
12502
- }, c.prototype.delete = function(d, v) {
12503
- var m = i.normalizeName(d);
12504
- if (v === void 0)
12505
- delete this.headersMap[m];
12501
+ }, c.prototype.delete = function(d, m) {
12502
+ var v = i.normalizeName(d);
12503
+ if (m === void 0)
12504
+ delete this.headersMap[v];
12506
12505
  else {
12507
- var y = this.headersMap[m];
12506
+ var y = this.headersMap[v];
12508
12507
  if (y) {
12509
- var f = y.indexOf(v);
12510
- f >= 0 && y.splice(f, 1), y.length === 0 && delete this.headersMap[m];
12508
+ var f = y.indexOf(m);
12509
+ f >= 0 && y.splice(f, 1), y.length === 0 && delete this.headersMap[v];
12511
12510
  }
12512
12511
  }
12513
- }, c.prototype.append = function(d, v) {
12514
- var m = this, y = i.normalizeName(d);
12515
- Array.isArray(this.headersMap[y]) || (this.headersMap[y] = []), Array.isArray(v) ? v.forEach(function(f) {
12516
- m.headersMap[y].push(i.normalizeValue(f));
12517
- }) : this.headersMap[y].push(i.normalizeValue(v));
12518
- }, c.prototype.set = function(d, v) {
12519
- var m = i.normalizeName(d);
12520
- if (Array.isArray(v)) {
12512
+ }, c.prototype.append = function(d, m) {
12513
+ var v = this, y = i.normalizeName(d);
12514
+ Array.isArray(this.headersMap[y]) || (this.headersMap[y] = []), Array.isArray(m) ? m.forEach(function(f) {
12515
+ v.headersMap[y].push(i.normalizeValue(f));
12516
+ }) : this.headersMap[y].push(i.normalizeValue(m));
12517
+ }, c.prototype.set = function(d, m) {
12518
+ var v = i.normalizeName(d);
12519
+ if (Array.isArray(m)) {
12521
12520
  var y = [];
12522
- v.forEach(function(f) {
12521
+ m.forEach(function(f) {
12523
12522
  y.push(i.normalizeValue(f));
12524
- }), this.headersMap[m] = y;
12523
+ }), this.headersMap[v] = y;
12525
12524
  } else
12526
- this.headersMap[m] = [i.normalizeValue(v)];
12527
- }, c.prototype.has = function(d, v) {
12528
- var m = this.headersMap[i.normalizeName(d)];
12529
- if (!Array.isArray(m))
12525
+ this.headersMap[v] = [i.normalizeValue(m)];
12526
+ }, c.prototype.has = function(d, m) {
12527
+ var v = this.headersMap[i.normalizeName(d)];
12528
+ if (!Array.isArray(v))
12530
12529
  return !1;
12531
- if (v !== void 0) {
12532
- var y = i.normalizeValue(v);
12533
- return m.indexOf(y) >= 0;
12530
+ if (m !== void 0) {
12531
+ var y = i.normalizeValue(m);
12532
+ return v.indexOf(y) >= 0;
12534
12533
  }
12535
12534
  return !0;
12536
12535
  }, c.prototype.get = function(d) {
12537
- var v = this.headersMap[i.normalizeName(d)];
12538
- return v !== void 0 ? v.concat() : [];
12536
+ var m = this.headersMap[i.normalizeName(d)];
12537
+ return m !== void 0 ? m.concat() : [];
12539
12538
  }, c.prototype.forEach = function(d) {
12540
- var v = this;
12541
- Object.getOwnPropertyNames(this.headersMap).forEach(function(m) {
12542
- d(m, v.headersMap[m]);
12539
+ var m = this;
12540
+ Object.getOwnPropertyNames(this.headersMap).forEach(function(v) {
12541
+ d(v, m.headersMap[v]);
12543
12542
  }, this);
12544
12543
  }, c.prototype.toHeaders = function() {
12545
12544
  if (typeof Headers < "u") {
12546
12545
  var d = new Headers();
12547
- return this.forEach(function(v, m) {
12548
- m.forEach(function(y) {
12549
- d.append(v, y);
12546
+ return this.forEach(function(m, v) {
12547
+ v.forEach(function(y) {
12548
+ d.append(m, y);
12550
12549
  });
12551
12550
  }), d;
12552
12551
  }
@@ -12579,23 +12578,23 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
12579
12578
  var d = l;
12580
12579
  if (d instanceof Headers && d.getAll)
12581
12580
  return d.getAll(c);
12582
- var v = d.get(c);
12583
- return v && typeof v == "string" ? [v] : v;
12581
+ var m = d.get(c);
12582
+ return m && typeof m == "string" ? [m] : m;
12584
12583
  }, o.getHeaderKeys = function(l) {
12585
- var c = l, d = {}, v = [];
12586
- return c.keys ? i.iterateHeadersKeys(c, function(m) {
12587
- d[m] || (d[m] = !0, v.push(m));
12588
- }) : c.forEach ? c.forEach(function(m, y) {
12589
- d[y] || (d[y] = !0, v.push(y));
12590
- }) : i.iterateHeaders(c, function(m) {
12591
- var y = m[0];
12592
- d[y] || (d[y] = !0, v.push(y));
12593
- }), v;
12584
+ var c = l, d = {}, m = [];
12585
+ return c.keys ? i.iterateHeadersKeys(c, function(v) {
12586
+ d[v] || (d[v] = !0, m.push(v));
12587
+ }) : c.forEach ? c.forEach(function(v, y) {
12588
+ d[y] || (d[y] = !0, m.push(y));
12589
+ }) : i.iterateHeaders(c, function(v) {
12590
+ var y = v[0];
12591
+ d[y] || (d[y] = !0, m.push(y));
12592
+ }), m;
12594
12593
  }, o.splitHeaderValue = function(l) {
12595
12594
  var c = [];
12596
12595
  return l.split(", ").forEach(function(d) {
12597
- d.split(",").forEach(function(v) {
12598
- c.push(v);
12596
+ d.split(",").forEach(function(m) {
12597
+ c.push(m);
12599
12598
  });
12600
12599
  }), c;
12601
12600
  };
@@ -12619,10 +12618,10 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
12619
12618
  function d(f) {
12620
12619
  return f.getUint32(1, !1);
12621
12620
  }
12622
- function v(f, b, h) {
12621
+ function m(f, b, h) {
12623
12622
  return f.byteLength - b >= h;
12624
12623
  }
12625
- function m(f, b, h) {
12624
+ function v(f, b, h) {
12626
12625
  if (f.slice)
12627
12626
  return f.slice(b, h);
12628
12627
  var R = f.length;
@@ -12655,18 +12654,18 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
12655
12654
  else if (this.position === this.buffer.byteLength)
12656
12655
  this.buffer = b, this.position = 0;
12657
12656
  else {
12658
- var P = this.buffer.byteLength - this.position, D = new Uint8Array(P + b.byteLength), G = m(this.buffer, this.position);
12657
+ var P = this.buffer.byteLength - this.position, D = new Uint8Array(P + b.byteLength), G = v(this.buffer, this.position);
12659
12658
  D.set(G, 0);
12660
12659
  var z = new Uint8Array(b);
12661
12660
  D.set(z, P), this.buffer = D, this.position = 0;
12662
12661
  }
12663
12662
  for (; ; ) {
12664
- if (!v(this.buffer, this.position, 5))
12663
+ if (!m(this.buffer, this.position, 5))
12665
12664
  return O;
12666
- var x = m(this.buffer, this.position, this.position + 5), L = new DataView(x.buffer, x.byteOffset, x.byteLength), k = d(L);
12667
- if (!v(this.buffer, this.position, 5 + k))
12665
+ var x = v(this.buffer, this.position, this.position + 5), L = new DataView(x.buffer, x.byteOffset, x.byteLength), k = d(L);
12666
+ if (!m(this.buffer, this.position, 5 + k))
12668
12667
  return O;
12669
- var W = m(this.buffer, this.position + 5, this.position + 5 + k);
12668
+ var W = v(this.buffer, this.position + 5, this.position + 5 + k);
12670
12669
  if (this.position += 5 + k, c(L))
12671
12670
  return O.push({ chunkType: o.TRAILERS, trailers: (R = W, new r.Metadata(l(R))) }), O;
12672
12671
  O.push({ chunkType: o.MESSAGE, data: W });
@@ -12716,9 +12715,9 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
12716
12715
  Object.defineProperty(g, "__esModule", { value: !0 }), g.client = void 0;
12717
12716
  var o = p(65), r = p(617), i = p(8), l = p(346), c = p(57), d = p(882);
12718
12717
  g.client = function(y, f) {
12719
- return new v(y, f);
12718
+ return new m(y, f);
12720
12719
  };
12721
- var v = function() {
12720
+ var m = function() {
12722
12721
  function y(f, b) {
12723
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();
12724
12723
  }
@@ -12730,7 +12729,7 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
12730
12729
  this.props.debug && l.debug("grpc.onHeaders received after request was closed - ignoring");
12731
12730
  else if (b !== 0) {
12732
12731
  this.responseHeaders = f, this.props.debug && l.debug("onHeaders.responseHeaders", JSON.stringify(this.responseHeaders, null, 2));
12733
- var h = m(f);
12732
+ var h = v(f);
12734
12733
  this.props.debug && l.debug("onHeaders.gRPCStatus", h);
12735
12734
  var R = h && h >= 0 ? h : i.httpStatusToCode(b);
12736
12735
  this.props.debug && l.debug("onHeaders.code", R);
@@ -12763,7 +12762,7 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
12763
12762
  if (this.props.debug && l.debug("grpc.onEnd"), this.closed)
12764
12763
  this.props.debug && l.debug("grpc.onEnd received after request was closed - ignoring");
12765
12764
  else if (this.responseTrailers !== void 0) {
12766
- var f = m(this.responseTrailers);
12765
+ var f = v(this.responseTrailers);
12767
12766
  if (f !== null) {
12768
12767
  var b = this.responseTrailers.get("grpc-message"), h = this.decodeGRPCStatus(b[0]);
12769
12768
  this.rawOnEnd(f, h, this.responseTrailers);
@@ -12772,7 +12771,7 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
12772
12771
  } else {
12773
12772
  if (this.responseHeaders === void 0)
12774
12773
  return void this.rawOnError(i.Code.Unknown, "Response closed without headers");
12775
- var R = m(this.responseHeaders), O = this.responseHeaders.get("grpc-message");
12774
+ var R = v(this.responseHeaders), O = this.responseHeaders.get("grpc-message");
12776
12775
  if (this.props.debug && l.debug("grpc.headers only response ", R, O), R === null)
12777
12776
  return void this.rawOnEnd(i.Code.Unknown, "Response closed without grpc-status (Headers only)", this.responseHeaders);
12778
12777
  var P = this.decodeGRPCStatus(O[0]);
@@ -12872,7 +12871,7 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
12872
12871
  this.closed = !0, this.props.debug && l.debug("request.abort aborting request"), this.transport.cancel();
12873
12872
  }, y;
12874
12873
  }();
12875
- function m(y) {
12874
+ function v(y) {
12876
12875
  var f = y.get("grpc-status") || [];
12877
12876
  if (f.length > 0)
12878
12877
  try {
@@ -12891,8 +12890,8 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
12891
12890
  };
12892
12891
  }, 607: function(u, g, p) {
12893
12892
  Object.defineProperty(g, "__esModule", { value: !0 }), g.grpc = void 0;
12894
- 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);
12895
- (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) {
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) {
12896
12895
  return b.client(h, R);
12897
12896
  }, o.invoke = y.invoke, o.unary = f.unary;
12898
12897
  }, 938: function(u, g, p) {
@@ -12925,8 +12924,8 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
12925
12924
  }, 229: function(u, g, p) {
12926
12925
  var o = this && this.__assign || function() {
12927
12926
  return (o = Object.assign || function(c) {
12928
- for (var d, v = 1, m = arguments.length; v < m; v++)
12929
- for (var y in d = arguments[v])
12927
+ for (var d, m = 1, v = arguments.length; m < v; m++)
12928
+ for (var y in d = arguments[m])
12930
12929
  Object.prototype.hasOwnProperty.call(d, y) && (c[y] = d[y]);
12931
12930
  return c;
12932
12931
  }).apply(this, arguments);
@@ -12935,36 +12934,36 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
12935
12934
  var r = p(65), i = p(346);
12936
12935
  g.FetchReadableStreamTransport = function(c) {
12937
12936
  return function(d) {
12938
- return function(v, m) {
12939
- return v.debug && i.debug("fetchRequest", v), new l(v, m);
12937
+ return function(m, v) {
12938
+ return m.debug && i.debug("fetchRequest", m), new l(m, v);
12940
12939
  }(d, c);
12941
12940
  };
12942
12941
  };
12943
12942
  var l = function() {
12944
- function c(d, v) {
12945
- this.cancelled = !1, this.controller = self.AbortController && new AbortController(), this.options = d, this.init = v;
12943
+ function c(d, m) {
12944
+ this.cancelled = !1, this.controller = self.AbortController && new AbortController(), this.options = d, this.init = m;
12946
12945
  }
12947
- return c.prototype.pump = function(d, v) {
12948
- var m = this;
12946
+ return c.prototype.pump = function(d, m) {
12947
+ var v = this;
12949
12948
  if (this.reader = d, this.cancelled)
12950
12949
  return this.options.debug && i.debug("Fetch.pump.cancel at first pump"), void this.reader.cancel().catch(function(y) {
12951
- m.options.debug && i.debug("Fetch.pump.reader.cancel exception", y);
12950
+ v.options.debug && i.debug("Fetch.pump.reader.cancel exception", y);
12952
12951
  });
12953
12952
  this.reader.read().then(function(y) {
12954
12953
  if (y.done)
12955
- return m.options.onEnd(), v;
12956
- m.options.onChunk(y.value), m.pump(m.reader, v);
12954
+ return v.options.onEnd(), m;
12955
+ v.options.onChunk(y.value), v.pump(v.reader, m);
12957
12956
  }).catch(function(y) {
12958
- 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));
12957
+ v.cancelled ? v.options.debug && i.debug("Fetch.catch - request cancelled") : (v.cancelled = !0, v.options.debug && i.debug("Fetch.catch", y.message), v.options.onEnd(y));
12959
12958
  });
12960
12959
  }, c.prototype.send = function(d) {
12961
- var v = this;
12962
- 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) {
12963
- if (v.options.debug && i.debug("Fetch.response", m), v.options.onHeaders(new r.Metadata(m.headers), m.status), !m.body)
12964
- return m;
12965
- v.pump(m.body.getReader(), m);
12966
- }).catch(function(m) {
12967
- 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));
12960
+ var m = 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(v) {
12962
+ if (m.options.debug && i.debug("Fetch.response", v), m.options.onHeaders(new r.Metadata(v.headers), v.status), !v.body)
12963
+ return v;
12964
+ m.pump(v.body.getReader(), v);
12965
+ }).catch(function(v) {
12966
+ m.cancelled ? m.options.debug && i.debug("Fetch.catch - request cancelled") : (m.cancelled = !0, m.options.debug && i.debug("Fetch.catch", v.message), m.options.onEnd(v));
12968
12967
  });
12969
12968
  }, c.prototype.sendMessage = function(d) {
12970
12969
  this.send(d);
@@ -12973,8 +12972,8 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
12973
12972
  this.metadata = d;
12974
12973
  }, c.prototype.cancel = function() {
12975
12974
  var d = this;
12976
- 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) {
12977
- d.options.debug && i.debug("Fetch.cancel.reader.cancel exception", v);
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(m) {
12976
+ d.options.debug && i.debug("Fetch.cancel.reader.cancel exception", m);
12978
12977
  })) : this.options.debug && i.debug("Fetch.cancel before reader"));
12979
12978
  }, c;
12980
12979
  }();
@@ -13010,7 +13009,7 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
13010
13009
  g.XhrTransport = function(f) {
13011
13010
  return function(b) {
13012
13011
  if (c.detectMozXHRSupport())
13013
- return new v(b, f);
13012
+ return new m(b, f);
13014
13013
  if (c.detectXHROverrideMimeTypeSupport())
13015
13014
  return new d(b, f);
13016
13015
  throw new Error("This environment's XHR implementation cannot support binary transfer.");
@@ -13049,7 +13048,7 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
13049
13048
  }, f;
13050
13049
  }();
13051
13050
  g.XHR = d;
13052
- var v = function(f) {
13051
+ var m = function(f) {
13053
13052
  function b() {
13054
13053
  return f !== null && f.apply(this, arguments) || this;
13055
13054
  }
@@ -13060,7 +13059,7 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
13060
13059
  this.options.debug && l.debug("MozXHR.onProgressEvent: ", new Uint8Array(h)), this.options.onChunk(new Uint8Array(h));
13061
13060
  }, b;
13062
13061
  }(d);
13063
- function m(f, b) {
13062
+ function v(f, b) {
13064
13063
  var h = f.charCodeAt(b);
13065
13064
  if (h >= 55296 && h <= 56319) {
13066
13065
  var R = f.charCodeAt(b + 1);
@@ -13070,12 +13069,12 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
13070
13069
  }
13071
13070
  function y(f) {
13072
13071
  for (var b = new Uint8Array(f.length), h = 0, R = 0; R < f.length; R++) {
13073
- var O = String.prototype.codePointAt ? f.codePointAt(R) : m(f, R);
13072
+ var O = String.prototype.codePointAt ? f.codePointAt(R) : v(f, R);
13074
13073
  b[h++] = 255 & O;
13075
13074
  }
13076
13075
  return b;
13077
13076
  }
13078
- g.MozChunkedArrayBufferXHR = v, g.stringToArrayBuffer = y;
13077
+ g.MozChunkedArrayBufferXHR = m, g.stringToArrayBuffer = y;
13079
13078
  }, 849: function(u, g) {
13080
13079
  var p;
13081
13080
  function o() {
@@ -13116,7 +13115,7 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
13116
13115
  return function(c) {
13117
13116
  return function(d) {
13118
13117
  d.debug && r.debug("websocketRequest", d);
13119
- var v, m = function(b) {
13118
+ var m, v = function(b) {
13120
13119
  if (b.substr(0, 8) === "https://")
13121
13120
  return "wss://" + b.substr(8);
13122
13121
  if (b.substr(0, 7) === "http://")
@@ -13125,34 +13124,34 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
13125
13124
  }(d.url), y = [];
13126
13125
  function f(b) {
13127
13126
  if (b === o.FINISH_SEND)
13128
- v.send(l);
13127
+ m.send(l);
13129
13128
  else {
13130
13129
  var h = b, R = new Int8Array(h.byteLength + 1);
13131
- R.set(new Uint8Array([0])), R.set(h, 1), v.send(R);
13130
+ R.set(new Uint8Array([0])), R.set(h, 1), m.send(R);
13132
13131
  }
13133
13132
  }
13134
13133
  return { sendMessage: function(b) {
13135
- v && v.readyState !== v.CONNECTING ? f(b) : y.push(b);
13134
+ m && m.readyState !== m.CONNECTING ? f(b) : y.push(b);
13136
13135
  }, finishSend: function() {
13137
- v && v.readyState !== v.CONNECTING ? f(o.FINISH_SEND) : y.push(o.FINISH_SEND);
13136
+ m && m.readyState !== m.CONNECTING ? f(o.FINISH_SEND) : y.push(o.FINISH_SEND);
13138
13137
  }, start: function(b) {
13139
- (v = new WebSocket(m, ["grpc-websockets"])).binaryType = "arraybuffer", v.onopen = function() {
13138
+ (m = new WebSocket(v, ["grpc-websockets"])).binaryType = "arraybuffer", m.onopen = function() {
13140
13139
  var h;
13141
- d.debug && r.debug("websocketRequest.onopen"), v.send((h = "", b.forEach(function(R, O) {
13140
+ d.debug && r.debug("websocketRequest.onopen"), m.send((h = "", b.forEach(function(R, O) {
13142
13141
  h += R + ": " + O.join(", ") + `\r
13143
13142
  `;
13144
13143
  }), i.encodeASCII(h))), y.forEach(function(R) {
13145
13144
  f(R);
13146
13145
  });
13147
- }, v.onclose = function(h) {
13146
+ }, m.onclose = function(h) {
13148
13147
  d.debug && r.debug("websocketRequest.onclose", h), d.onEnd();
13149
- }, v.onerror = function(h) {
13148
+ }, m.onerror = function(h) {
13150
13149
  d.debug && r.debug("websocketRequest.onerror", h);
13151
- }, v.onmessage = function(h) {
13150
+ }, m.onmessage = function(h) {
13152
13151
  d.onChunk(new Uint8Array(h.data));
13153
13152
  };
13154
13153
  }, cancel: function() {
13155
- d.debug && r.debug("websocket.abort"), v.close();
13154
+ d.debug && r.debug("websocket.abort"), m.close();
13156
13155
  } };
13157
13156
  }(c);
13158
13157
  };
@@ -13165,15 +13164,15 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
13165
13164
  throw new Error(".unary cannot be used with server-streaming methods. Use .invoke or .client instead.");
13166
13165
  if (i.requestStream)
13167
13166
  throw new Error(".unary cannot be used with client-streaming methods. Use .client instead.");
13168
- var c = null, d = null, v = r.client(i, { host: l.host, transport: l.transport, debug: l.debug });
13169
- return v.onHeaders(function(m) {
13170
- c = m;
13171
- }), v.onMessage(function(m) {
13172
- d = m;
13173
- }), v.onEnd(function(m, y, f) {
13174
- l.onEnd({ status: m, statusMessage: y, headers: c || new o.Metadata(), message: d, trailers: f });
13175
- }), v.start(l.metadata), v.send(l.request), v.finishSend(), { close: function() {
13176
- v.close();
13167
+ var c = null, d = null, m = r.client(i, { host: l.host, transport: l.transport, debug: l.debug });
13168
+ return m.onHeaders(function(v) {
13169
+ c = v;
13170
+ }), m.onMessage(function(v) {
13171
+ d = v;
13172
+ }), m.onEnd(function(v, y, f) {
13173
+ l.onEnd({ status: v, statusMessage: y, headers: c || new o.Metadata(), message: d, trailers: f });
13174
+ }), m.start(l.metadata), m.send(l.request), m.finishSend(), { close: function() {
13175
+ m.close();
13177
13176
  } };
13178
13177
  };
13179
13178
  }, 882: function(u, g) {
@@ -13203,6 +13202,43 @@ const promisify = function(t, e) {
13203
13202
  y: t.getY(),
13204
13203
  z: t.getZ()
13205
13204
  };
13205
+ }, encodePose = (t) => {
13206
+ const e = new common_pb.Pose();
13207
+ 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;
13208
+ }, encodePoseInFrame = (t) => {
13209
+ if (!t.pose)
13210
+ throw new Error("no pose");
13211
+ const e = new common_pb.PoseInFrame();
13212
+ return e.setPose(encodePose(t.pose)), e.setReferenceFrame(t.referenceFrame), e;
13213
+ }, encodeResourceName = (t) => {
13214
+ const e = new common_pb.ResourceName();
13215
+ return e.setNamespace(t.namespace), e.setType(t.type), e.setSubtype(t.subtype), e.setName(t.name), e;
13216
+ }, encodeGeometry = (t) => {
13217
+ const e = new common_pb.Geometry();
13218
+ if (t.center !== void 0 && e.setCenter(encodePose(t.center)), t.sphere !== void 0) {
13219
+ const s = new common_pb.Sphere();
13220
+ s.setRadiusMm(t.sphere.radiusMm), e.setSphere(s);
13221
+ }
13222
+ if (t.box !== void 0) {
13223
+ const s = new common_pb.RectangularPrism();
13224
+ t.box.dimsMm !== void 0 && s.setDimsMm(encodeVector3D(t.box.dimsMm)), e.setBox(s);
13225
+ }
13226
+ if (t.capsule !== void 0) {
13227
+ const s = new common_pb.Capsule();
13228
+ s.setLengthMm(t.capsule.lengthMm), s.setRadiusMm(t.capsule.radiusMm), e.setCapsule(s);
13229
+ }
13230
+ return e;
13231
+ }, encodeGeometriesInFrame = (t) => {
13232
+ const e = new common_pb.GeometriesInFrame();
13233
+ return e.setReferenceFrame(t.referenceFrame), e.setGeometriesList(t.geometriesList.map((s) => encodeGeometry(s))), e;
13234
+ }, encodeTransform = (t) => {
13235
+ const e = new common_pb.Transform();
13236
+ return e.setReferenceFrame(t.referenceFrame), t.physicalObject !== void 0 && e.setPhysicalObject(encodeGeometry(t.physicalObject)), t.poseInObserverFrame !== void 0 && e.setPoseInObserverFrame(encodePoseInFrame(t.poseInObserverFrame)), e;
13237
+ }, encodeWorldState = (t) => {
13238
+ const e = new common_pb.WorldState();
13239
+ return e.setObstaclesList(
13240
+ t.obstaclesList.map((s) => encodeGeometriesInFrame(s))
13241
+ ), e.setTransformsList(t.transformsList.map((s) => encodeTransform(s))), e;
13206
13242
  };
13207
13243
  var __webpack_modules__ = { 37: function(t) {
13208
13244
  t.exports = function(e) {
@@ -13250,58 +13286,58 @@ var __webpack_modules__ = { 37: function(t) {
13250
13286
  }, function(e, s, n) {
13251
13287
  Object.defineProperty(s, "__esModule", { value: !0 });
13252
13288
  var u = n(0), g = n(8), p = n(9), o = n(1), r = n(4), i = n(14);
13253
- s.client = function(d, v) {
13254
- return new l(d, v);
13289
+ s.client = function(d, m) {
13290
+ return new l(d, m);
13255
13291
  };
13256
13292
  var l = function() {
13257
- function d(v, m) {
13258
- 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();
13293
+ function d(m, v) {
13294
+ 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 = m, this.props = v, this.createTransport();
13259
13295
  }
13260
13296
  return d.prototype.createTransport = function() {
13261
- 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) };
13262
- this.props.transport ? this.transport = this.props.transport(m) : this.transport = r.makeDefaultTransport(m);
13263
- }, d.prototype.onTransportHeaders = function(v, m) {
13264
- if (this.props.debug && o.debug("onHeaders", v, m), this.closed)
13297
+ var m = this.props.host + "/" + this.methodDefinition.service.serviceName + "/" + this.methodDefinition.methodName, v = { methodDefinition: this.methodDefinition, debug: this.props.debug || !1, url: m, onHeaders: this.onTransportHeaders.bind(this), onChunk: this.onTransportChunk.bind(this), onEnd: this.onTransportEnd.bind(this) };
13298
+ this.props.transport ? this.transport = this.props.transport(v) : this.transport = r.makeDefaultTransport(v);
13299
+ }, d.prototype.onTransportHeaders = function(m, v) {
13300
+ if (this.props.debug && o.debug("onHeaders", m, v), this.closed)
13265
13301
  this.props.debug && o.debug("grpc.onHeaders received after request was closed - ignoring");
13266
- else if (m !== 0) {
13267
- this.responseHeaders = v, this.props.debug && o.debug("onHeaders.responseHeaders", JSON.stringify(this.responseHeaders, null, 2));
13268
- var y = c(v);
13302
+ else if (v !== 0) {
13303
+ this.responseHeaders = m, this.props.debug && o.debug("onHeaders.responseHeaders", JSON.stringify(this.responseHeaders, null, 2));
13304
+ var y = c(m);
13269
13305
  this.props.debug && o.debug("onHeaders.gRPCStatus", y);
13270
- var f = y && y >= 0 ? y : p.httpStatusToCode(m);
13306
+ var f = y && y >= 0 ? y : p.httpStatusToCode(v);
13271
13307
  this.props.debug && o.debug("onHeaders.code", f);
13272
- var b = v.get("grpc-message") || [];
13273
- if (this.props.debug && o.debug("onHeaders.gRPCMessage", b), this.rawOnHeaders(v), f !== p.Code.OK) {
13308
+ var b = m.get("grpc-message") || [];
13309
+ if (this.props.debug && o.debug("onHeaders.gRPCMessage", b), this.rawOnHeaders(m), f !== p.Code.OK) {
13274
13310
  var h = this.decodeGRPCStatus(b[0]);
13275
- this.rawOnError(f, h, v);
13311
+ this.rawOnError(f, h, m);
13276
13312
  }
13277
13313
  }
13278
- }, d.prototype.onTransportChunk = function(v) {
13279
- var m = this;
13314
+ }, d.prototype.onTransportChunk = function(m) {
13315
+ var v = this;
13280
13316
  if (this.closed)
13281
13317
  this.props.debug && o.debug("grpc.onChunk received after request was closed - ignoring");
13282
13318
  else {
13283
13319
  var y = [];
13284
13320
  try {
13285
- y = this.parser.parse(v);
13321
+ y = this.parser.parse(m);
13286
13322
  } catch (f) {
13287
13323
  return this.props.debug && o.debug("onChunk.parsing error", f, f.message), void this.rawOnError(p.Code.Internal, "parsing error: " + f.message);
13288
13324
  }
13289
13325
  y.forEach(function(f) {
13290
13326
  if (f.chunkType === g.ChunkType.MESSAGE) {
13291
- var b = m.methodDefinition.responseType.deserializeBinary(f.data);
13292
- m.rawOnMessage(b);
13327
+ var b = v.methodDefinition.responseType.deserializeBinary(f.data);
13328
+ v.rawOnMessage(b);
13293
13329
  } else
13294
- 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)));
13330
+ f.chunkType === g.ChunkType.TRAILERS && (v.responseHeaders ? (v.responseTrailers = new u.Metadata(f.trailers), v.props.debug && o.debug("onChunk.trailers", v.responseTrailers)) : (v.responseHeaders = new u.Metadata(f.trailers), v.rawOnHeaders(v.responseHeaders)));
13295
13331
  });
13296
13332
  }
13297
13333
  }, d.prototype.onTransportEnd = function() {
13298
13334
  if (this.props.debug && o.debug("grpc.onEnd"), this.closed)
13299
13335
  this.props.debug && o.debug("grpc.onEnd received after request was closed - ignoring");
13300
13336
  else if (this.responseTrailers !== void 0) {
13301
- var v = c(this.responseTrailers);
13302
- if (v !== null) {
13303
- var m = this.responseTrailers.get("grpc-message"), y = this.decodeGRPCStatus(m[0]);
13304
- this.rawOnEnd(v, y, this.responseTrailers);
13337
+ var m = c(this.responseTrailers);
13338
+ if (m !== null) {
13339
+ var v = this.responseTrailers.get("grpc-message"), y = this.decodeGRPCStatus(v[0]);
13340
+ this.rawOnEnd(m, y, this.responseTrailers);
13305
13341
  } else
13306
13342
  this.rawOnError(p.Code.Internal, "Response closed without grpc-status (Trailers provided)");
13307
13343
  } else {
@@ -13313,73 +13349,73 @@ var __webpack_modules__ = { 37: function(t) {
13313
13349
  var h = this.decodeGRPCStatus(b[0]);
13314
13350
  this.rawOnEnd(f, h, this.responseHeaders);
13315
13351
  }
13316
- }, d.prototype.decodeGRPCStatus = function(v) {
13317
- if (!v)
13352
+ }, d.prototype.decodeGRPCStatus = function(m) {
13353
+ if (!m)
13318
13354
  return "";
13319
13355
  try {
13320
- return decodeURIComponent(v);
13356
+ return decodeURIComponent(m);
13321
13357
  } catch {
13322
- return v;
13358
+ return m;
13323
13359
  }
13324
- }, d.prototype.rawOnEnd = function(v, m, y) {
13360
+ }, d.prototype.rawOnEnd = function(m, v, y) {
13325
13361
  var f = this;
13326
- this.props.debug && o.debug("rawOnEnd", v, m, y), this.completed || (this.completed = !0, this.onEndCallbacks.forEach(function(b) {
13362
+ this.props.debug && o.debug("rawOnEnd", m, v, y), this.completed || (this.completed = !0, this.onEndCallbacks.forEach(function(b) {
13327
13363
  if (!f.closed)
13328
13364
  try {
13329
- b(v, m, y);
13365
+ b(m, v, y);
13330
13366
  } catch (h) {
13331
13367
  setTimeout(function() {
13332
13368
  throw h;
13333
13369
  });
13334
13370
  }
13335
13371
  }));
13336
- }, d.prototype.rawOnHeaders = function(v) {
13337
- this.props.debug && o.debug("rawOnHeaders", v), this.completed || this.onHeadersCallbacks.forEach(function(m) {
13372
+ }, d.prototype.rawOnHeaders = function(m) {
13373
+ this.props.debug && o.debug("rawOnHeaders", m), this.completed || this.onHeadersCallbacks.forEach(function(v) {
13338
13374
  try {
13339
- m(v);
13375
+ v(m);
13340
13376
  } catch (y) {
13341
13377
  setTimeout(function() {
13342
13378
  throw y;
13343
13379
  });
13344
13380
  }
13345
13381
  });
13346
- }, d.prototype.rawOnError = function(v, m, y) {
13382
+ }, d.prototype.rawOnError = function(m, v, y) {
13347
13383
  var f = this;
13348
- 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) {
13384
+ y === void 0 && (y = new u.Metadata()), this.props.debug && o.debug("rawOnError", m, v), this.completed || (this.completed = !0, this.onEndCallbacks.forEach(function(b) {
13349
13385
  if (!f.closed)
13350
13386
  try {
13351
- b(v, m, y);
13387
+ b(m, v, y);
13352
13388
  } catch (h) {
13353
13389
  setTimeout(function() {
13354
13390
  throw h;
13355
13391
  });
13356
13392
  }
13357
13393
  }));
13358
- }, d.prototype.rawOnMessage = function(v) {
13359
- var m = this;
13360
- this.props.debug && o.debug("rawOnMessage", v.toObject()), this.completed || this.closed || this.onMessageCallbacks.forEach(function(y) {
13361
- if (!m.closed)
13394
+ }, d.prototype.rawOnMessage = function(m) {
13395
+ var v = this;
13396
+ this.props.debug && o.debug("rawOnMessage", m.toObject()), this.completed || this.closed || this.onMessageCallbacks.forEach(function(y) {
13397
+ if (!v.closed)
13362
13398
  try {
13363
- y(v);
13399
+ y(m);
13364
13400
  } catch (f) {
13365
13401
  setTimeout(function() {
13366
13402
  throw f;
13367
13403
  });
13368
13404
  }
13369
13405
  });
13370
- }, d.prototype.onHeaders = function(v) {
13371
- this.onHeadersCallbacks.push(v);
13372
- }, d.prototype.onMessage = function(v) {
13373
- this.onMessageCallbacks.push(v);
13374
- }, d.prototype.onEnd = function(v) {
13375
- this.onEndCallbacks.push(v);
13376
- }, d.prototype.start = function(v) {
13406
+ }, d.prototype.onHeaders = function(m) {
13407
+ this.onHeadersCallbacks.push(m);
13408
+ }, d.prototype.onMessage = function(m) {
13409
+ this.onMessageCallbacks.push(m);
13410
+ }, d.prototype.onEnd = function(m) {
13411
+ this.onEndCallbacks.push(m);
13412
+ }, d.prototype.start = function(m) {
13377
13413
  if (this.started)
13378
13414
  throw new Error("Client already started - cannot .start()");
13379
13415
  this.started = !0;
13380
- var m = new u.Metadata(v || {});
13381
- m.set("content-type", "application/grpc-web+proto"), m.set("x-grpc-web", "1"), this.transport.start(m);
13382
- }, d.prototype.send = function(v) {
13416
+ var v = new u.Metadata(m || {});
13417
+ v.set("content-type", "application/grpc-web+proto"), v.set("x-grpc-web", "1"), this.transport.start(v);
13418
+ }, d.prototype.send = function(m) {
13383
13419
  if (!this.started)
13384
13420
  throw new Error("Client not started - .start() must be called before .send()");
13385
13421
  if (this.closed)
@@ -13389,8 +13425,8 @@ var __webpack_modules__ = { 37: function(t) {
13389
13425
  if (!this.methodDefinition.requestStream && this.sentFirstMessage)
13390
13426
  throw new Error("Message already sent for non-client-streaming method - cannot .send()");
13391
13427
  this.sentFirstMessage = !0;
13392
- var m = i.frameRequest(v);
13393
- this.transport.sendMessage(m);
13428
+ var v = i.frameRequest(m);
13429
+ this.transport.sendMessage(v);
13394
13430
  }, d.prototype.finishSend = function() {
13395
13431
  if (!this.started)
13396
13432
  throw new Error("Client not started - .finishSend() must be called before .close()");
@@ -13408,11 +13444,11 @@ var __webpack_modules__ = { 37: function(t) {
13408
13444
  }, d;
13409
13445
  }();
13410
13446
  function c(d) {
13411
- var v = d.get("grpc-status") || [];
13412
- if (v.length > 0)
13447
+ var m = d.get("grpc-status") || [];
13448
+ if (m.length > 0)
13413
13449
  try {
13414
- var m = v[0];
13415
- return parseInt(m, 10);
13450
+ var v = m[0];
13451
+ return parseInt(v, 10);
13416
13452
  } catch {
13417
13453
  return null;
13418
13454
  }
@@ -13448,63 +13484,63 @@ var __webpack_modules__ = { 37: function(t) {
13448
13484
  var r = o(3), i = function() {
13449
13485
  function l(c, d) {
13450
13486
  c === void 0 && (c = {}), d === void 0 && (d = { splitValues: !1 });
13451
- var v, m = this;
13487
+ var m, v = this;
13452
13488
  this.headersMap = {}, c && (typeof Headers < "u" && c instanceof Headers ? r.getHeaderKeys(c).forEach(function(y) {
13453
13489
  r.getHeaderValues(c, y).forEach(function(f) {
13454
- d.splitValues ? m.append(y, r.splitHeaderValue(f)) : m.append(y, f);
13490
+ d.splitValues ? v.append(y, r.splitHeaderValue(f)) : v.append(y, f);
13455
13491
  });
13456
- }) : typeof (v = c) == "object" && typeof v.headersMap == "object" && typeof v.forEach == "function" ? c.forEach(function(y, f) {
13457
- m.append(y, f);
13492
+ }) : typeof (m = c) == "object" && typeof m.headersMap == "object" && typeof m.forEach == "function" ? c.forEach(function(y, f) {
13493
+ v.append(y, f);
13458
13494
  }) : typeof Map < "u" && c instanceof Map ? c.forEach(function(y, f) {
13459
- m.append(f, y);
13495
+ v.append(f, y);
13460
13496
  }) : typeof c == "string" ? this.appendFromString(c) : typeof c == "object" && Object.getOwnPropertyNames(c).forEach(function(y) {
13461
13497
  var f = c[y];
13462
13498
  Array.isArray(f) ? f.forEach(function(b) {
13463
- m.append(y, b);
13464
- }) : m.append(y, f);
13499
+ v.append(y, b);
13500
+ }) : v.append(y, f);
13465
13501
  }));
13466
13502
  }
13467
13503
  return l.prototype.appendFromString = function(c) {
13468
13504
  for (var d = c.split(`\r
13469
- `), v = 0; v < d.length; v++) {
13470
- var m = d[v], y = m.indexOf(":");
13505
+ `), m = 0; m < d.length; m++) {
13506
+ var v = d[m], y = v.indexOf(":");
13471
13507
  if (y > 0) {
13472
- var f = m.substring(0, y).trim(), b = m.substring(y + 1).trim();
13508
+ var f = v.substring(0, y).trim(), b = v.substring(y + 1).trim();
13473
13509
  this.append(f, b);
13474
13510
  }
13475
13511
  }
13476
13512
  }, l.prototype.delete = function(c, d) {
13477
- var v = r.normalizeName(c);
13513
+ var m = r.normalizeName(c);
13478
13514
  if (d === void 0)
13479
- delete this.headersMap[v];
13515
+ delete this.headersMap[m];
13480
13516
  else {
13481
- var m = this.headersMap[v];
13482
- if (m) {
13483
- var y = m.indexOf(d);
13484
- y >= 0 && m.splice(y, 1), m.length === 0 && delete this.headersMap[v];
13517
+ var v = this.headersMap[m];
13518
+ if (v) {
13519
+ var y = v.indexOf(d);
13520
+ y >= 0 && v.splice(y, 1), v.length === 0 && delete this.headersMap[m];
13485
13521
  }
13486
13522
  }
13487
13523
  }, l.prototype.append = function(c, d) {
13488
- var v = this, m = r.normalizeName(c);
13489
- Array.isArray(this.headersMap[m]) || (this.headersMap[m] = []), Array.isArray(d) ? d.forEach(function(y) {
13490
- v.headersMap[m].push(r.normalizeValue(y));
13491
- }) : this.headersMap[m].push(r.normalizeValue(d));
13524
+ var m = this, v = r.normalizeName(c);
13525
+ Array.isArray(this.headersMap[v]) || (this.headersMap[v] = []), Array.isArray(d) ? d.forEach(function(y) {
13526
+ m.headersMap[v].push(r.normalizeValue(y));
13527
+ }) : this.headersMap[v].push(r.normalizeValue(d));
13492
13528
  }, l.prototype.set = function(c, d) {
13493
- var v = r.normalizeName(c);
13529
+ var m = r.normalizeName(c);
13494
13530
  if (Array.isArray(d)) {
13495
- var m = [];
13531
+ var v = [];
13496
13532
  d.forEach(function(y) {
13497
- m.push(r.normalizeValue(y));
13498
- }), this.headersMap[v] = m;
13533
+ v.push(r.normalizeValue(y));
13534
+ }), this.headersMap[m] = v;
13499
13535
  } else
13500
- this.headersMap[v] = [r.normalizeValue(d)];
13536
+ this.headersMap[m] = [r.normalizeValue(d)];
13501
13537
  }, l.prototype.has = function(c, d) {
13502
- var v = this.headersMap[r.normalizeName(c)];
13503
- if (!Array.isArray(v))
13538
+ var m = this.headersMap[r.normalizeName(c)];
13539
+ if (!Array.isArray(m))
13504
13540
  return !1;
13505
13541
  if (d !== void 0) {
13506
- var m = r.normalizeValue(d);
13507
- return v.indexOf(m) >= 0;
13542
+ var v = r.normalizeValue(d);
13543
+ return m.indexOf(v) >= 0;
13508
13544
  }
13509
13545
  return !0;
13510
13546
  }, l.prototype.get = function(c) {
@@ -13512,15 +13548,15 @@ var __webpack_modules__ = { 37: function(t) {
13512
13548
  return d !== void 0 ? d.concat() : [];
13513
13549
  }, l.prototype.forEach = function(c) {
13514
13550
  var d = this;
13515
- Object.getOwnPropertyNames(this.headersMap).forEach(function(v) {
13516
- c(v, d.headersMap[v]);
13551
+ Object.getOwnPropertyNames(this.headersMap).forEach(function(m) {
13552
+ c(m, d.headersMap[m]);
13517
13553
  }, this);
13518
13554
  }, l.prototype.toHeaders = function() {
13519
13555
  if (typeof Headers < "u") {
13520
13556
  var c = new Headers();
13521
- return this.forEach(function(d, v) {
13522
- v.forEach(function(m) {
13523
- c.append(d, m);
13557
+ return this.forEach(function(d, m) {
13558
+ m.forEach(function(v) {
13559
+ c.append(d, v);
13524
13560
  });
13525
13561
  }), c;
13526
13562
  }
@@ -13557,13 +13593,13 @@ var __webpack_modules__ = { 37: function(t) {
13557
13593
  return d && typeof d == "string" ? [d] : d;
13558
13594
  }, p.getHeaderKeys = function(i) {
13559
13595
  var l = i, c = {}, d = [];
13560
- return l.keys ? r.iterateHeadersKeys(l, function(v) {
13561
- c[v] || (c[v] = !0, d.push(v));
13562
- }) : l.forEach ? l.forEach(function(v, m) {
13563
- c[m] || (c[m] = !0, d.push(m));
13564
- }) : r.iterateHeaders(l, function(v) {
13565
- var m = v[0];
13596
+ return l.keys ? r.iterateHeadersKeys(l, function(m) {
13566
13597
  c[m] || (c[m] = !0, d.push(m));
13598
+ }) : l.forEach ? l.forEach(function(m, v) {
13599
+ c[v] || (c[v] = !0, d.push(v));
13600
+ }) : r.iterateHeaders(l, function(m) {
13601
+ var v = m[0];
13602
+ c[v] || (c[v] = !0, d.push(v));
13567
13603
  }), d;
13568
13604
  }, p.splitHeaderValue = function(i) {
13569
13605
  var l = [];
@@ -13650,149 +13686,149 @@ var __webpack_modules__ = { 37: function(t) {
13650
13686
  return typeof Response < "u" && Response.prototype.hasOwnProperty("body") && typeof Headers == "function";
13651
13687
  };
13652
13688
  }, function(e, s, n) {
13653
- var u, g = this && this.__extends || (u = function(v, m) {
13689
+ var u, g = this && this.__extends || (u = function(m, v) {
13654
13690
  return (u = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(y, f) {
13655
13691
  y.__proto__ = f;
13656
13692
  } || function(y, f) {
13657
13693
  for (var b in f)
13658
13694
  f.hasOwnProperty(b) && (y[b] = f[b]);
13659
- })(v, m);
13660
- }, function(v, m) {
13695
+ })(m, v);
13696
+ }, function(m, v) {
13661
13697
  function y() {
13662
- this.constructor = v;
13698
+ this.constructor = m;
13663
13699
  }
13664
- u(v, m), v.prototype = m === null ? Object.create(m) : (y.prototype = m.prototype, new y());
13700
+ u(m, v), m.prototype = v === null ? Object.create(v) : (y.prototype = v.prototype, new y());
13665
13701
  });
13666
13702
  Object.defineProperty(s, "__esModule", { value: !0 });
13667
13703
  var p = n(0), o = n(1), r = n(11);
13668
- s.XhrTransport = function(v) {
13669
- return function(m) {
13704
+ s.XhrTransport = function(m) {
13705
+ return function(v) {
13670
13706
  if (r.detectMozXHRSupport())
13671
- return new l(m, v);
13707
+ return new l(v, m);
13672
13708
  if (r.detectXHROverrideMimeTypeSupport())
13673
- return new i(m, v);
13709
+ return new i(v, m);
13674
13710
  throw new Error("This environment's XHR implementation cannot support binary transfer.");
13675
13711
  };
13676
13712
  };
13677
13713
  var i = function() {
13678
- function v(m, y) {
13679
- this.options = m, this.init = y;
13714
+ function m(v, y) {
13715
+ this.options = v, this.init = y;
13680
13716
  }
13681
- return v.prototype.onProgressEvent = function() {
13717
+ return m.prototype.onProgressEvent = function() {
13682
13718
  this.options.debug && o.debug("XHR.onProgressEvent.length: ", this.xhr.response.length);
13683
- var m = this.xhr.response.substr(this.index);
13719
+ var v = this.xhr.response.substr(this.index);
13684
13720
  this.index = this.xhr.response.length;
13685
- var y = d(m);
13721
+ var y = d(v);
13686
13722
  this.options.onChunk(y);
13687
- }, v.prototype.onLoadEvent = function() {
13723
+ }, m.prototype.onLoadEvent = function() {
13688
13724
  this.options.debug && o.debug("XHR.onLoadEvent"), this.options.onEnd();
13689
- }, v.prototype.onStateChange = function() {
13725
+ }, m.prototype.onStateChange = function() {
13690
13726
  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);
13691
- }, v.prototype.sendMessage = function(m) {
13692
- this.xhr.send(m);
13693
- }, v.prototype.finishSend = function() {
13694
- }, v.prototype.start = function(m) {
13727
+ }, m.prototype.sendMessage = function(v) {
13728
+ this.xhr.send(v);
13729
+ }, m.prototype.finishSend = function() {
13730
+ }, m.prototype.start = function(v) {
13695
13731
  var y = this;
13696
- this.metadata = m;
13732
+ this.metadata = v;
13697
13733
  var f = new XMLHttpRequest();
13698
13734
  this.xhr = f, f.open("POST", this.options.url), this.configureXhr(), this.metadata.forEach(function(b, h) {
13699
13735
  f.setRequestHeader(b, h.join(", "));
13700
13736
  }), 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) {
13701
13737
  y.options.debug && o.debug("XHR.error", b), y.options.onEnd(b.error);
13702
13738
  });
13703
- }, v.prototype.configureXhr = function() {
13739
+ }, m.prototype.configureXhr = function() {
13704
13740
  this.xhr.responseType = "text", this.xhr.overrideMimeType("text/plain; charset=x-user-defined");
13705
- }, v.prototype.cancel = function() {
13741
+ }, m.prototype.cancel = function() {
13706
13742
  this.options.debug && o.debug("XHR.abort"), this.xhr.abort();
13707
- }, v;
13743
+ }, m;
13708
13744
  }();
13709
13745
  s.XHR = i;
13710
- var l = function(v) {
13711
- function m() {
13712
- return v !== null && v.apply(this, arguments) || this;
13746
+ var l = function(m) {
13747
+ function v() {
13748
+ return m !== null && m.apply(this, arguments) || this;
13713
13749
  }
13714
- return g(m, v), m.prototype.configureXhr = function() {
13750
+ return g(v, m), v.prototype.configureXhr = function() {
13715
13751
  this.options.debug && o.debug("MozXHR.configureXhr: setting responseType to 'moz-chunked-arraybuffer'"), this.xhr.responseType = "moz-chunked-arraybuffer";
13716
- }, m.prototype.onProgressEvent = function() {
13752
+ }, v.prototype.onProgressEvent = function() {
13717
13753
  var y = this.xhr.response;
13718
13754
  this.options.debug && o.debug("MozXHR.onProgressEvent: ", new Uint8Array(y)), this.options.onChunk(new Uint8Array(y));
13719
- }, m;
13755
+ }, v;
13720
13756
  }(i);
13721
- function c(v, m) {
13722
- var y = v.charCodeAt(m);
13757
+ function c(m, v) {
13758
+ var y = m.charCodeAt(v);
13723
13759
  if (y >= 55296 && y <= 56319) {
13724
- var f = v.charCodeAt(m + 1);
13760
+ var f = m.charCodeAt(v + 1);
13725
13761
  f >= 56320 && f <= 57343 && (y = 65536 + (y - 55296 << 10) + (f - 56320));
13726
13762
  }
13727
13763
  return y;
13728
13764
  }
13729
- function d(v) {
13730
- for (var m = new Uint8Array(v.length), y = 0, f = 0; f < v.length; f++) {
13731
- var b = String.prototype.codePointAt ? v.codePointAt(f) : c(v, f);
13732
- m[y++] = 255 & b;
13765
+ function d(m) {
13766
+ for (var v = new Uint8Array(m.length), y = 0, f = 0; f < m.length; f++) {
13767
+ var b = String.prototype.codePointAt ? m.codePointAt(f) : c(m, f);
13768
+ v[y++] = 255 & b;
13733
13769
  }
13734
- return m;
13770
+ return v;
13735
13771
  }
13736
13772
  s.MozChunkedArrayBufferXHR = l, s.stringToArrayBuffer = d;
13737
13773
  }, function(e, s, n) {
13738
13774
  Object.defineProperty(s, "__esModule", { value: !0 });
13739
13775
  var u, g = n(0);
13740
- function p(v) {
13741
- return function(m) {
13742
- return m === 9 || m === 10 || m === 13;
13743
- }(v) || v >= 32 && v <= 126;
13776
+ function p(m) {
13777
+ return function(v) {
13778
+ return v === 9 || v === 10 || v === 13;
13779
+ }(m) || m >= 32 && m <= 126;
13744
13780
  }
13745
- function o(v) {
13746
- for (var m = 0; m !== v.length; ++m)
13747
- if (!p(v[m]))
13781
+ function o(m) {
13782
+ for (var v = 0; v !== m.length; ++v)
13783
+ if (!p(m[v]))
13748
13784
  throw new Error("Metadata is not valid (printable) ASCII");
13749
- return String.fromCharCode.apply(String, Array.prototype.slice.call(v));
13785
+ return String.fromCharCode.apply(String, Array.prototype.slice.call(m));
13750
13786
  }
13751
- function r(v) {
13752
- return (128 & v.getUint8(0)) == 128;
13787
+ function r(m) {
13788
+ return (128 & m.getUint8(0)) == 128;
13753
13789
  }
13754
- function i(v) {
13755
- return v.getUint32(1, !1);
13790
+ function i(m) {
13791
+ return m.getUint32(1, !1);
13756
13792
  }
13757
- function l(v, m, y) {
13758
- return v.byteLength - m >= y;
13793
+ function l(m, v, y) {
13794
+ return m.byteLength - v >= y;
13759
13795
  }
13760
- function c(v, m, y) {
13761
- if (v.slice)
13762
- return v.slice(m, y);
13763
- var f = v.length;
13796
+ function c(m, v, y) {
13797
+ if (m.slice)
13798
+ return m.slice(v, y);
13799
+ var f = m.length;
13764
13800
  y !== void 0 && (f = y);
13765
- for (var b = new Uint8Array(f - m), h = 0, R = m; R < f; R++)
13766
- b[h++] = v[R];
13801
+ for (var b = new Uint8Array(f - v), h = 0, R = v; R < f; R++)
13802
+ b[h++] = m[R];
13767
13803
  return b;
13768
13804
  }
13769
- s.decodeASCII = o, s.encodeASCII = function(v) {
13770
- for (var m = new Uint8Array(v.length), y = 0; y !== v.length; ++y) {
13771
- var f = v.charCodeAt(y);
13805
+ s.decodeASCII = o, s.encodeASCII = function(m) {
13806
+ for (var v = new Uint8Array(m.length), y = 0; y !== m.length; ++y) {
13807
+ var f = m.charCodeAt(y);
13772
13808
  if (!p(f))
13773
13809
  throw new Error("Metadata contains invalid ASCII");
13774
- m[y] = f;
13810
+ v[y] = f;
13775
13811
  }
13776
- return m;
13777
- }, function(v) {
13778
- v[v.MESSAGE = 1] = "MESSAGE", v[v.TRAILERS = 2] = "TRAILERS";
13812
+ return v;
13813
+ }, function(m) {
13814
+ m[m.MESSAGE = 1] = "MESSAGE", m[m.TRAILERS = 2] = "TRAILERS";
13779
13815
  }(u = s.ChunkType || (s.ChunkType = {}));
13780
13816
  var d = function() {
13781
- function v() {
13817
+ function m() {
13782
13818
  this.buffer = null, this.position = 0;
13783
13819
  }
13784
- return v.prototype.parse = function(m, y) {
13785
- if (m.length === 0 && y)
13820
+ return m.prototype.parse = function(v, y) {
13821
+ if (v.length === 0 && y)
13786
13822
  return [];
13787
13823
  var f, b = [];
13788
13824
  if (this.buffer == null)
13789
- this.buffer = m, this.position = 0;
13825
+ this.buffer = v, this.position = 0;
13790
13826
  else if (this.position === this.buffer.byteLength)
13791
- this.buffer = m, this.position = 0;
13827
+ this.buffer = v, this.position = 0;
13792
13828
  else {
13793
- var h = this.buffer.byteLength - this.position, R = new Uint8Array(h + m.byteLength), O = c(this.buffer, this.position);
13829
+ var h = this.buffer.byteLength - this.position, R = new Uint8Array(h + v.byteLength), O = c(this.buffer, this.position);
13794
13830
  R.set(O, 0);
13795
- var P = new Uint8Array(m);
13831
+ var P = new Uint8Array(v);
13796
13832
  R.set(P, h), this.buffer = R, this.position = 0;
13797
13833
  }
13798
13834
  for (; ; ) {
@@ -13806,7 +13842,7 @@ var __webpack_modules__ = { 37: function(t) {
13806
13842
  return b.push({ chunkType: u.TRAILERS, trailers: (f = x, new g.Metadata(o(f))) }), b;
13807
13843
  b.push({ chunkType: u.MESSAGE, data: x });
13808
13844
  }
13809
- }, v;
13845
+ }, m;
13810
13846
  }();
13811
13847
  s.ChunkParser = d;
13812
13848
  }, function(e, s, n) {
@@ -13848,11 +13884,11 @@ var __webpack_modules__ = { 37: function(t) {
13848
13884
  };
13849
13885
  }, function(e, s, n) {
13850
13886
  Object.defineProperty(s, "__esModule", { value: !0 });
13851
- 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);
13852
- (function(m) {
13853
- 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) {
13854
- return v.client(y, f);
13855
- }, m.invoke = c.invoke, m.unary = d.unary;
13887
+ 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), m = n(2);
13888
+ (function(v) {
13889
+ v.setDefaultTransport = g.setDefaultTransportFactory, v.CrossBrowserHttpTransport = i.CrossBrowserHttpTransport, v.FetchReadableStreamTransport = p.FetchReadableStreamTransport, v.XhrTransport = r.XhrTransport, v.WebsocketTransport = o.WebsocketTransport, v.Code = l.Code, v.Metadata = u.BrowserHeaders, v.client = function(y, f) {
13890
+ return m.client(y, f);
13891
+ }, v.invoke = c.invoke, v.unary = d.unary;
13856
13892
  })(s.grpc || (s.grpc = {}));
13857
13893
  }, function(e, s, n) {
13858
13894
  var u;
@@ -13893,33 +13929,33 @@ var __webpack_modules__ = { 37: function(t) {
13893
13929
  return function(r) {
13894
13930
  return function(i) {
13895
13931
  i.debug && g.debug("websocketRequest", i);
13896
- var l, c = function(m) {
13897
- if (m.substr(0, 8) === "https://")
13898
- return "wss://" + m.substr(8);
13899
- if (m.substr(0, 7) === "http://")
13900
- return "ws://" + m.substr(7);
13932
+ var l, c = function(v) {
13933
+ if (v.substr(0, 8) === "https://")
13934
+ return "wss://" + v.substr(8);
13935
+ if (v.substr(0, 7) === "http://")
13936
+ return "ws://" + v.substr(7);
13901
13937
  throw new Error("Websocket transport constructed with non-https:// or http:// host.");
13902
13938
  }(i.url), d = [];
13903
- function v(m) {
13904
- if (m === u.FINISH_SEND)
13939
+ function m(v) {
13940
+ if (v === u.FINISH_SEND)
13905
13941
  l.send(o);
13906
13942
  else {
13907
- var y = m, f = new Int8Array(y.byteLength + 1);
13943
+ var y = v, f = new Int8Array(y.byteLength + 1);
13908
13944
  f.set(new Uint8Array([0])), f.set(y, 1), l.send(f);
13909
13945
  }
13910
13946
  }
13911
- return { sendMessage: function(m) {
13912
- l && l.readyState !== l.CONNECTING ? v(m) : d.push(m);
13947
+ return { sendMessage: function(v) {
13948
+ l && l.readyState !== l.CONNECTING ? m(v) : d.push(v);
13913
13949
  }, finishSend: function() {
13914
- l && l.readyState !== l.CONNECTING ? v(u.FINISH_SEND) : d.push(u.FINISH_SEND);
13915
- }, start: function(m) {
13950
+ l && l.readyState !== l.CONNECTING ? m(u.FINISH_SEND) : d.push(u.FINISH_SEND);
13951
+ }, start: function(v) {
13916
13952
  (l = new WebSocket(c, ["grpc-websockets"])).binaryType = "arraybuffer", l.onopen = function() {
13917
13953
  var y;
13918
- i.debug && g.debug("websocketRequest.onopen"), l.send((y = "", m.forEach(function(f, b) {
13954
+ i.debug && g.debug("websocketRequest.onopen"), l.send((y = "", v.forEach(function(f, b) {
13919
13955
  y += f + ": " + b.join(", ") + `\r
13920
13956
  `;
13921
13957
  }), p.encodeASCII(y))), d.forEach(function(f) {
13922
- v(f);
13958
+ m(f);
13923
13959
  });
13924
13960
  }, l.onclose = function(y) {
13925
13961
  i.debug && g.debug("websocketRequest.onclose", y), i.onEnd();
@@ -13963,8 +13999,8 @@ var __webpack_modules__ = { 37: function(t) {
13963
13999
  r = c;
13964
14000
  }), l.onMessage(function(c) {
13965
14001
  i = c;
13966
- }), l.onEnd(function(c, d, v) {
13967
- o.onEnd({ status: c, statusMessage: d, headers: r || new u.Metadata(), message: i, trailers: v });
14002
+ }), l.onEnd(function(c, d, m) {
14003
+ o.onEnd({ status: c, statusMessage: d, headers: r || new u.Metadata(), message: i, trailers: m });
13968
14004
  }), l.start(o.metadata), l.send(o.request), l.finishSend(), { close: function() {
13969
14005
  l.close();
13970
14006
  } };
@@ -20179,67 +20215,67 @@ var __webpack_modules__ = { 37: function(t) {
20179
20215
  }, 138: (t, e, s) => {
20180
20216
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ClientChannel = void 0;
20181
20217
  var n = s(655), u = s(662), g = s(417), p = s(758), o = s(210), r = function(l) {
20182
- function c(d, v) {
20183
- var m = l.call(this, d, v) || this;
20184
- 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) {
20185
- return m.onChannelMessage(y);
20218
+ function c(d, m) {
20219
+ var v = l.call(this, d, m) || this;
20220
+ return Object.defineProperty(v, "streamIDCounter", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(v, "streams", { enumerable: !0, configurable: !0, writable: !0, value: {} }), m.onmessage = function(y) {
20221
+ return v.onChannelMessage(y);
20186
20222
  }, d.addEventListener("iceconnectionstatechange", function() {
20187
20223
  var y = d.iceConnectionState;
20188
- y !== "failed" && y !== "disconnected" && y !== "closed" || m.onConnectionTerminated();
20189
- }), v.addEventListener("close", function() {
20190
- return m.onConnectionTerminated();
20191
- }), m;
20224
+ y !== "failed" && y !== "disconnected" && y !== "closed" || v.onConnectionTerminated();
20225
+ }), m.addEventListener("close", function() {
20226
+ return v.onConnectionTerminated();
20227
+ }), v;
20192
20228
  }
20193
20229
  return n.__extends(c, l), Object.defineProperty(c.prototype, "transportFactory", { enumerable: !1, configurable: !0, writable: !0, value: function() {
20194
20230
  var d = this;
20195
- return function(v) {
20196
- return d.newStream(d.nextStreamID(), v);
20231
+ return function(m) {
20232
+ return d.newStream(d.nextStreamID(), m);
20197
20233
  };
20198
20234
  } }), Object.defineProperty(c.prototype, "onConnectionTerminated", { enumerable: !1, configurable: !0, writable: !0, value: function() {
20199
20235
  this.closeWithReason(new p.ConnectionClosedError("data channel closed"));
20200
20236
  var d = new p.ConnectionClosedError("connection terminated");
20201
- for (var v in this.streams)
20202
- this.streams[v].cs.closeWithRecvError(d);
20237
+ for (var m in this.streams)
20238
+ this.streams[m].cs.closeWithRecvError(d);
20203
20239
  } }), Object.defineProperty(c.prototype, "onChannelMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(d) {
20204
- var v;
20240
+ var m;
20205
20241
  try {
20206
- v = o.Response.deserializeBinary(d.data);
20242
+ m = o.Response.deserializeBinary(d.data);
20207
20243
  } catch (b) {
20208
20244
  return void console.error("error deserializing message", b);
20209
20245
  }
20210
- var m = v.getStream();
20211
- if (m !== void 0) {
20212
- var y = m.getId(), f = this.streams[y];
20213
- f !== void 0 ? f.cs.onResponse(v) : console.error("no stream for id; discarding", "id", y);
20246
+ var v = m.getStream();
20247
+ if (v !== void 0) {
20248
+ var y = v.getId(), f = this.streams[y];
20249
+ f !== void 0 ? f.cs.onResponse(m) : console.error("no stream for id; discarding", "id", y);
20214
20250
  } else
20215
20251
  console.error("no stream id; discarding");
20216
20252
  } }), Object.defineProperty(c.prototype, "nextStreamID", { enumerable: !1, configurable: !0, writable: !0, value: function() {
20217
20253
  var d = new o.Stream();
20218
20254
  return d.setId(this.streamIDCounter++), d;
20219
- } }), Object.defineProperty(c.prototype, "newStream", { enumerable: !1, configurable: !0, writable: !0, value: function(d, v) {
20220
- var m = this;
20255
+ } }), Object.defineProperty(c.prototype, "newStream", { enumerable: !1, configurable: !0, writable: !0, value: function(d, m) {
20256
+ var v = this;
20221
20257
  if (this.isClosed())
20222
- return new i(new p.ConnectionClosedError("connection closed"), v);
20258
+ return new i(new p.ConnectionClosedError("connection closed"), m);
20223
20259
  var y = this.streams[d.getId()];
20224
20260
  if (y === void 0) {
20225
20261
  if (Object.keys(this.streams).length > 256)
20226
- return new i(new Error("stream limit hit"), v);
20262
+ return new i(new Error("stream limit hit"), m);
20227
20263
  y = { cs: new g.ClientStream(this, d, function(f) {
20228
- return m.removeStreamByID(f);
20229
- }, v) }, this.streams[d.getId()] = y;
20264
+ return v.removeStreamByID(f);
20265
+ }, m) }, this.streams[d.getId()] = y;
20230
20266
  }
20231
20267
  return y.cs;
20232
20268
  } }), Object.defineProperty(c.prototype, "removeStreamByID", { enumerable: !1, configurable: !0, writable: !0, value: function(d) {
20233
20269
  delete this.streams[d];
20234
- } }), Object.defineProperty(c.prototype, "writeHeaders", { enumerable: !1, configurable: !0, writable: !0, value: function(d, v) {
20235
- var m = new o.Request();
20236
- m.setStream(d), m.setHeaders(v), this.write(m);
20237
- } }), Object.defineProperty(c.prototype, "writeMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(d, v) {
20238
- var m = new o.Request();
20239
- m.setStream(d), m.setMessage(v), this.write(m);
20240
- } }), Object.defineProperty(c.prototype, "writeReset", { enumerable: !1, configurable: !0, writable: !0, value: function(d) {
20270
+ } }), Object.defineProperty(c.prototype, "writeHeaders", { enumerable: !1, configurable: !0, writable: !0, value: function(d, m) {
20271
+ var v = new o.Request();
20272
+ v.setStream(d), v.setHeaders(m), this.write(v);
20273
+ } }), Object.defineProperty(c.prototype, "writeMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(d, m) {
20241
20274
  var v = new o.Request();
20242
- v.setStream(d), v.setRstStream(!0), this.write(v);
20275
+ v.setStream(d), v.setMessage(m), this.write(v);
20276
+ } }), Object.defineProperty(c.prototype, "writeReset", { enumerable: !1, configurable: !0, writable: !0, value: function(d) {
20277
+ var m = new o.Request();
20278
+ m.setStream(d), m.setRstStream(!0), this.write(m);
20243
20279
  } }), c;
20244
20280
  }(u.BaseChannel);
20245
20281
  e.ClientChannel = r;
@@ -20260,74 +20296,74 @@ var __webpack_modules__ = { 37: function(t) {
20260
20296
  }, 417: (t, e, s) => {
20261
20297
  Object.defineProperty(e, "__esModule", { value: !0 }), e.encodeASCII = e.ClientStream = void 0;
20262
20298
  var n = s(655), u = s(37), g = s(370), p = s(758), o = s(210), r = function(d) {
20263
- function v(m, y, f, b) {
20299
+ function m(v, y, f, b) {
20264
20300
  var h = d.call(this, y, f, b) || this;
20265
- 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;
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;
20266
20302
  }
20267
- return n.__extends(v, d), Object.defineProperty(v.prototype, "start", { enumerable: !1, configurable: !0, writable: !0, value: function(m) {
20303
+ return n.__extends(m, d), Object.defineProperty(m.prototype, "start", { enumerable: !1, configurable: !0, writable: !0, value: function(v) {
20268
20304
  var y = "/".concat(this.opts.methodDefinition.service.serviceName, "/").concat(this.opts.methodDefinition.methodName), f = new o.RequestHeaders();
20269
- f.setMethod(y), f.setMetadata(l(m));
20305
+ f.setMethod(y), f.setMetadata(l(v));
20270
20306
  try {
20271
20307
  this.channel.writeHeaders(this.stream, f);
20272
20308
  } catch (b) {
20273
20309
  console.error("error writing headers", b), this.closeWithRecvError(b);
20274
20310
  }
20275
- } }), Object.defineProperty(v.prototype, "sendMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(m) {
20276
- m ? this.writeMessage(!1, m.slice(5)) : this.writeMessage(!1, void 0);
20277
- } }), Object.defineProperty(v.prototype, "resetStream", { enumerable: !1, configurable: !0, writable: !0, value: function() {
20311
+ } }), Object.defineProperty(m.prototype, "sendMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(v) {
20312
+ v ? this.writeMessage(!1, v.slice(5)) : this.writeMessage(!1, void 0);
20313
+ } }), Object.defineProperty(m.prototype, "resetStream", { enumerable: !1, configurable: !0, writable: !0, value: function() {
20278
20314
  try {
20279
20315
  this.channel.writeReset(this.stream);
20280
- } catch (m) {
20281
- console.error("error writing reset", m), this.closeWithRecvError(m);
20316
+ } catch (v) {
20317
+ console.error("error writing reset", v), this.closeWithRecvError(v);
20282
20318
  }
20283
- } }), Object.defineProperty(v.prototype, "finishSend", { enumerable: !1, configurable: !0, writable: !0, value: function() {
20319
+ } }), Object.defineProperty(m.prototype, "finishSend", { enumerable: !1, configurable: !0, writable: !0, value: function() {
20284
20320
  this.opts.methodDefinition.requestStream && this.writeMessage(!0, void 0);
20285
- } }), Object.defineProperty(v.prototype, "cancel", { enumerable: !1, configurable: !0, writable: !0, value: function() {
20321
+ } }), Object.defineProperty(m.prototype, "cancel", { enumerable: !1, configurable: !0, writable: !0, value: function() {
20286
20322
  this.closed || this.resetStream();
20287
- } }), Object.defineProperty(v.prototype, "writeMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(m, y) {
20323
+ } }), Object.defineProperty(m.prototype, "writeMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(v, y) {
20288
20324
  try {
20289
20325
  if (!y || y.length == 0)
20290
- 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);
20326
+ 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);
20291
20327
  for (; y.length !== 0; ) {
20292
20328
  var f, b, h = Math.min(y.length, 16373);
20293
- (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);
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);
20294
20330
  }
20295
20331
  } catch (R) {
20296
20332
  console.error("error writing message", R), this.closeWithRecvError(R);
20297
20333
  }
20298
- } }), Object.defineProperty(v.prototype, "onResponse", { enumerable: !1, configurable: !0, writable: !0, value: function(m) {
20299
- switch (m.getTypeCase()) {
20334
+ } }), Object.defineProperty(m.prototype, "onResponse", { enumerable: !1, configurable: !0, writable: !0, value: function(v) {
20335
+ switch (v.getTypeCase()) {
20300
20336
  case o.Response.TypeCase.HEADERS:
20301
20337
  if (this.headersReceived)
20302
20338
  return void this.closeWithRecvError(new Error("headers already received"));
20303
20339
  if (this.trailersReceived)
20304
20340
  return void this.closeWithRecvError(new Error("headers received after trailers"));
20305
- this.processHeaders(m.getHeaders());
20341
+ this.processHeaders(v.getHeaders());
20306
20342
  break;
20307
20343
  case o.Response.TypeCase.MESSAGE:
20308
20344
  if (!this.headersReceived)
20309
20345
  return void this.closeWithRecvError(new Error("headers not yet received"));
20310
20346
  if (this.trailersReceived)
20311
20347
  return void this.closeWithRecvError(new Error("headers received after trailers"));
20312
- this.processMessage(m.getMessage());
20348
+ this.processMessage(v.getMessage());
20313
20349
  break;
20314
20350
  case o.Response.TypeCase.TRAILERS:
20315
- this.processTrailers(m.getTrailers());
20351
+ this.processTrailers(v.getTrailers());
20316
20352
  break;
20317
20353
  default:
20318
- console.error("unknown response type", m.getTypeCase());
20354
+ console.error("unknown response type", v.getTypeCase());
20319
20355
  }
20320
- } }), Object.defineProperty(v.prototype, "processHeaders", { enumerable: !1, configurable: !0, writable: !0, value: function(m) {
20321
- this.headersReceived = !0, this.opts.onHeaders(c(m.getMetadata()), 200);
20322
- } }), Object.defineProperty(v.prototype, "processMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(m) {
20323
- var y = d.prototype.processPacketMessage.call(this, m.getPacketMessage());
20356
+ } }), Object.defineProperty(m.prototype, "processHeaders", { enumerable: !1, configurable: !0, writable: !0, value: function(v) {
20357
+ this.headersReceived = !0, this.opts.onHeaders(c(v.getMetadata()), 200);
20358
+ } }), Object.defineProperty(m.prototype, "processMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(v) {
20359
+ var y = d.prototype.processPacketMessage.call(this, v.getPacketMessage());
20324
20360
  if (y) {
20325
20361
  var f = new ArrayBuffer(y.length + 5);
20326
20362
  new DataView(f, 1, 4).setUint32(0, y.length, !1), new Uint8Array(f, 5).set(y), this.opts.onChunk(new Uint8Array(f));
20327
20363
  }
20328
- } }), Object.defineProperty(v.prototype, "processTrailers", { enumerable: !1, configurable: !0, writable: !0, value: function(m) {
20364
+ } }), Object.defineProperty(m.prototype, "processTrailers", { enumerable: !1, configurable: !0, writable: !0, value: function(v) {
20329
20365
  this.trailersReceived = !0;
20330
- var y, f, b = c(m.getMetadata()), h = m.getStatus();
20366
+ var y, f, b = c(v.getMetadata()), h = v.getStatus();
20331
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 = "");
20332
20368
  var R = function(P) {
20333
20369
  var D = "";
@@ -20337,12 +20373,12 @@ var __webpack_modules__ = { 37: function(t) {
20337
20373
  }), i(D);
20338
20374
  }(b), O = new ArrayBuffer(R.length + 5);
20339
20375
  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();
20340
- } }), v;
20376
+ } }), m;
20341
20377
  }(g.BaseStream);
20342
20378
  function i(d) {
20343
- for (var v, m, y = new Uint8Array(d.length), f = 0; f !== d.length; ++f) {
20379
+ for (var m, v, y = new Uint8Array(d.length), f = 0; f !== d.length; ++f) {
20344
20380
  var b = d.charCodeAt(f);
20345
- if (!((v = m = b) === 9 || v === 10 || v === 13 || m >= 32 && m <= 126))
20381
+ if (!((m = v = b) === 9 || m === 10 || m === 13 || v >= 32 && v <= 126))
20346
20382
  throw new Error("Metadata contains invalid ASCII");
20347
20383
  y[f] = b;
20348
20384
  }
@@ -20351,23 +20387,23 @@ var __webpack_modules__ = { 37: function(t) {
20351
20387
  e.ClientStream = r, e.encodeASCII = i;
20352
20388
  var l = function(d) {
20353
20389
  if (d) {
20354
- var v = new o.Metadata(), m = v.getMdMap();
20390
+ var m = new o.Metadata(), v = m.getMdMap();
20355
20391
  if (d.forEach(function(y, f) {
20356
20392
  var b = new o.Strings();
20357
- b.setValuesList(f), m.set(y, b);
20358
- }), v.getMdMap().getLength() !== 0)
20359
- return v;
20393
+ b.setValuesList(f), v.set(y, b);
20394
+ }), m.getMdMap().getLength() !== 0)
20395
+ return m;
20360
20396
  }
20361
20397
  }, c = function(d) {
20362
- var v = new u.grpc.Metadata();
20363
- return d && d.getMdMap().forEach(function(m, y) {
20364
- return v.append(y, m.getValuesList());
20365
- }), v;
20398
+ var m = new u.grpc.Metadata();
20399
+ return d && d.getMdMap().forEach(function(v, y) {
20400
+ return m.append(y, v.getValuesList());
20401
+ }), m;
20366
20402
  };
20367
20403
  }, 512: (t, e, s) => {
20368
20404
  Object.defineProperty(e, "__esModule", { value: !0 }), e.dialWebRTC = e.dialDirect = void 0;
20369
- 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);
20370
- function m(h, R) {
20405
+ 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) {
20371
20407
  return n.__awaiter(this, void 0, void 0, function() {
20372
20408
  var O, P;
20373
20409
  return n.__generator(this, function(D) {
@@ -20426,7 +20462,7 @@ var __webpack_modules__ = { 37: function(t) {
20426
20462
  });
20427
20463
  });
20428
20464
  }
20429
- e.dialDirect = m;
20465
+ e.dialDirect = v;
20430
20466
  var f = function() {
20431
20467
  function h(R, O, P) {
20432
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 = O(R);
@@ -20475,11 +20511,11 @@ var __webpack_modules__ = { 37: function(t) {
20475
20511
  return n.__generator(this, function(J) {
20476
20512
  switch (J.label) {
20477
20513
  case 0:
20478
- return b(O), W = O?.webrtcOptions, [4, (0, v.newPeerConnectionForClient)(W !== void 0 && W.disableTrickleICE, W?.rtcConfig)];
20514
+ return b(O), W = O?.webrtcOptions, [4, (0, m.newPeerConnectionForClient)(W !== void 0 && W.disableTrickleICE, W?.rtcConfig)];
20479
20515
  case 1:
20480
20516
  X = J.sent(), S = X.pc, M = X.dc, _ = !1, J.label = 2;
20481
20517
  case 2:
20482
- 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)];
20518
+ 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, v(h, E)];
20483
20519
  case 3:
20484
20520
  return F = J.sent(), T = u.grpc.client(d.SignalingService.Call, { host: h, transport: F }), w = "", C = !1, j = function(q) {
20485
20521
  if (!C) {
@@ -20602,7 +20638,7 @@ var __webpack_modules__ = { 37: function(t) {
20602
20638
  var n = s(655);
20603
20639
  e.newPeerConnectionForClient = function(u, g) {
20604
20640
  return n.__awaiter(this, void 0, void 0, function() {
20605
- var p, o, r, i, l, c, d, v, m = this;
20641
+ var p, o, r, i, l, c, d, m, v = this;
20606
20642
  return n.__generator(this, function(y) {
20607
20643
  switch (y.label) {
20608
20644
  case 0:
@@ -20611,7 +20647,7 @@ var __webpack_modules__ = { 37: function(t) {
20611
20647
  }), (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() {
20612
20648
  c = !0;
20613
20649
  }, l.onmessage = function(f) {
20614
- return n.__awaiter(m, void 0, void 0, function() {
20650
+ return n.__awaiter(v, void 0, void 0, function() {
20615
20651
  var b, h;
20616
20652
  return n.__generator(this, function(R) {
20617
20653
  switch (R.label) {
@@ -20631,7 +20667,7 @@ var __webpack_modules__ = { 37: function(t) {
20631
20667
  });
20632
20668
  });
20633
20669
  }, p.onnegotiationneeded = function() {
20634
- return n.__awaiter(m, void 0, void 0, function() {
20670
+ return n.__awaiter(v, void 0, void 0, function() {
20635
20671
  var f;
20636
20672
  return n.__generator(this, function(b) {
20637
20673
  switch (b.label) {
@@ -20658,10 +20694,10 @@ var __webpack_modules__ = { 37: function(t) {
20658
20694
  case 3:
20659
20695
  return y.sent(), [3, 5];
20660
20696
  case 4:
20661
- return v = y.sent(), [2, Promise.reject(v)];
20697
+ return m = y.sent(), [2, Promise.reject(m)];
20662
20698
  case 5:
20663
20699
  return p.onicecandidate = function(f) {
20664
- return n.__awaiter(m, void 0, void 0, function() {
20700
+ return n.__awaiter(v, void 0, void 0, function() {
20665
20701
  return n.__generator(this, function(b) {
20666
20702
  return f.candidate !== null || o({ pc: p, dc: i }), [2];
20667
20703
  });
@@ -20672,7 +20708,7 @@ var __webpack_modules__ = { 37: function(t) {
20672
20708
  });
20673
20709
  };
20674
20710
  }, 655: (t, e, s) => {
20675
- 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 });
20711
+ 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: () => m, __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: () => v });
20676
20712
  var n = function(S, M) {
20677
20713
  return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, E) {
20678
20714
  _.__proto__ = E;
@@ -20824,11 +20860,11 @@ var __webpack_modules__ = { 37: function(t) {
20824
20860
  } : function(S, M, _, E) {
20825
20861
  E === void 0 && (E = _), S[E] = M[_];
20826
20862
  };
20827
- function v(S, M) {
20863
+ function m(S, M) {
20828
20864
  for (var _ in S)
20829
20865
  _ === "default" || Object.prototype.hasOwnProperty.call(M, _) || d(M, S, _);
20830
20866
  }
20831
- function m(S) {
20867
+ function v(S) {
20832
20868
  var M = typeof Symbol == "function" && Symbol.iterator, _ = M && S[M], E = 0;
20833
20869
  if (_)
20834
20870
  return _.call(S);
@@ -20930,7 +20966,7 @@ var __webpack_modules__ = { 37: function(t) {
20930
20966
  if (!Symbol.asyncIterator)
20931
20967
  throw new TypeError("Symbol.asyncIterator is not defined.");
20932
20968
  var M, _ = S[Symbol.asyncIterator];
20933
- return _ ? _.call(S) : (S = m(S), M = {}, E("next"), E("throw"), E("return"), M[Symbol.asyncIterator] = function() {
20969
+ return _ ? _.call(S) : (S = v(S), M = {}, E("next"), E("throw"), E("return"), M[Symbol.asyncIterator] = function() {
20934
20970
  return this;
20935
20971
  }, M);
20936
20972
  function E(F) {
@@ -21441,13 +21477,13 @@ var __webpack_modules__ = { 37: function(t) {
21441
21477
  }
21442
21478
  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) {
21443
21479
  arguments.length === 2 && (c = arguments[1]);
21444
- var d = u.unary(g.Authenticate, { request: i, host: this.serviceHost, metadata: l, transport: this.options.transport, debug: this.options.debug, onEnd: function(v) {
21480
+ var d = u.unary(g.Authenticate, { request: i, host: this.serviceHost, metadata: l, transport: this.options.transport, debug: this.options.debug, onEnd: function(m) {
21445
21481
  if (c)
21446
- if (v.status !== u.Code.OK) {
21447
- var m = new Error(v.statusMessage);
21448
- m.code = v.status, m.metadata = v.trailers, c(m, null);
21482
+ if (m.status !== u.Code.OK) {
21483
+ var v = new Error(m.statusMessage);
21484
+ v.code = m.status, v.metadata = m.trailers, c(v, null);
21449
21485
  } else
21450
- c(null, v.message);
21486
+ c(null, m.message);
21451
21487
  } });
21452
21488
  return { cancel: function() {
21453
21489
  c = null, d.close();
@@ -21463,13 +21499,13 @@ var __webpack_modules__ = { 37: function(t) {
21463
21499
  }
21464
21500
  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) {
21465
21501
  arguments.length === 2 && (c = arguments[1]);
21466
- var d = u.unary(o.AuthenticateTo, { request: i, host: this.serviceHost, metadata: l, transport: this.options.transport, debug: this.options.debug, onEnd: function(v) {
21502
+ var d = u.unary(o.AuthenticateTo, { request: i, host: this.serviceHost, metadata: l, transport: this.options.transport, debug: this.options.debug, onEnd: function(m) {
21467
21503
  if (c)
21468
- if (v.status !== u.Code.OK) {
21469
- var m = new Error(v.statusMessage);
21470
- m.code = v.status, m.metadata = v.trailers, c(m, null);
21504
+ if (m.status !== u.Code.OK) {
21505
+ var v = new Error(m.statusMessage);
21506
+ v.code = m.status, v.metadata = m.trailers, c(v, null);
21471
21507
  } else
21472
- c(null, v.message);
21508
+ c(null, m.message);
21473
21509
  } });
21474
21510
  return { cancel: function() {
21475
21511
  c = null, d.close();
@@ -22830,11 +22866,11 @@ var __webpack_modules__ = { 37: function(t) {
22830
22866
  i.data.forEach(function(d) {
22831
22867
  d(c);
22832
22868
  });
22833
- }, onEnd: function(c, d, v) {
22834
- i.status.forEach(function(m) {
22835
- m({ code: c, details: d, metadata: v });
22836
- }), i.end.forEach(function(m) {
22837
- m({ code: c, details: d, metadata: v });
22869
+ }, onEnd: function(c, d, m) {
22870
+ i.status.forEach(function(v) {
22871
+ v({ code: c, details: d, metadata: m });
22872
+ }), i.end.forEach(function(v) {
22873
+ v({ code: c, details: d, metadata: m });
22838
22874
  }), i = null;
22839
22875
  } });
22840
22876
  return { on: function(c, d) {
@@ -22858,10 +22894,10 @@ var __webpack_modules__ = { 37: function(t) {
22858
22894
  }, p.prototype.answer = function(o) {
22859
22895
  var r = { data: [], end: [], status: [] }, i = u.client(g.Answer, { host: this.serviceHost, metadata: o, transport: this.options.transport });
22860
22896
  return i.onEnd(function(l, c, d) {
22861
- r.status.forEach(function(v) {
22862
- v({ code: l, details: c, metadata: d });
22863
- }), r.end.forEach(function(v) {
22864
- v({ code: l, details: c, metadata: d });
22897
+ r.status.forEach(function(m) {
22898
+ m({ code: l, details: c, metadata: d });
22899
+ }), r.end.forEach(function(m) {
22900
+ m({ code: l, details: c, metadata: d });
22865
22901
  }), r = null;
22866
22902
  }), i.onMessage(function(l) {
22867
22903
  r.data.forEach(function(c) {
@@ -39186,23 +39222,13 @@ class ArmClient {
39186
39222
  const g = (await promisify(s.getEndPosition.bind(s), n)).getPose();
39187
39223
  if (!g)
39188
39224
  throw new Error("no pose");
39189
- return {
39190
- x: g.getX(),
39191
- y: g.getY(),
39192
- z: g.getZ(),
39193
- ox: g.getOX(),
39194
- oy: g.getOY(),
39195
- oz: g.getOZ(),
39196
- theta: g.getTheta()
39197
- };
39225
+ return g.toObject();
39198
39226
  }
39199
39227
  async moveToPosition(e, s = {}) {
39200
- const n = this.ArmService, u = new common_pb.Pose();
39201
- 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);
39202
- const g = new arm_pb.MoveToPositionRequest();
39203
- g.setName(this.name), g.setTo(u), g.setExtra(struct_pb.Struct.fromJavaScript(s)), this.options.requestLogger?.(g), await promisify(
39228
+ const n = this.ArmService, u = new arm_pb.MoveToPositionRequest();
39229
+ u.setName(this.name), u.setTo(encodePose(e)), u.setExtra(struct_pb.Struct.fromJavaScript(s)), this.options.requestLogger?.(u), await promisify(
39204
39230
  n.moveToPosition.bind(n),
39205
- g
39231
+ u
39206
39232
  );
39207
39233
  }
39208
39234
  async moveToJointPositions(e, s = {}) {
@@ -41402,12 +41428,80 @@ class StreamClient extends EventDispatcher {
41402
41428
  }
41403
41429
  }
41404
41430
  }
41431
+ const encodeLinearConstraint = (t) => {
41432
+ const e = new motion_pb.LinearConstraint();
41433
+ return e.setLineToleranceMm(t.lineToleranceMm), e.setOrientationToleranceDegs(t.orientationToleranceDegs), e;
41434
+ }, encodeOrientationConstraint = (t) => {
41435
+ const e = new motion_pb.OrientationConstraint();
41436
+ return e.setOrientationToleranceDegs(t.orientationToleranceDegs), e;
41437
+ }, encodeAllowedFrameCollisions = (t) => {
41438
+ const e = new motion_pb.CollisionSpecification.AllowedFrameCollisions();
41439
+ return e.setFrame1(t.frame1), e.setFrame2(t.frame2), e;
41440
+ }, encodeCollisionSpecification = (t) => {
41441
+ const e = new motion_pb.CollisionSpecification();
41442
+ return e.setAllowsList(
41443
+ t.allowsList.map((s) => encodeAllowedFrameCollisions(s))
41444
+ ), e;
41445
+ }, encodeConstraints = (t) => {
41446
+ const e = new motion_pb.Constraints();
41447
+ return e.setLinearConstraintList(
41448
+ t.linearConstraintList.map((s) => encodeLinearConstraint(s))
41449
+ ), e.setOrientationConstraintList(
41450
+ t.orientationConstraintList.map((s) => encodeOrientationConstraint(s))
41451
+ ), e.setCollisionSpecificationList(
41452
+ t.collisionSpecificationList.map((s) => encodeCollisionSpecification(s))
41453
+ ), e;
41454
+ };
41455
+ class MotionClient {
41456
+ client;
41457
+ name;
41458
+ options;
41459
+ constructor(e, s, n = {}) {
41460
+ this.client = e.createServiceClient(MotionServiceClient_1), this.name = s, this.options = n;
41461
+ }
41462
+ get service() {
41463
+ return this.client;
41464
+ }
41465
+ async move(e, s, n, u, g = {}) {
41466
+ const p = this.service, o = new motion_pb.MoveRequest();
41467
+ return o.setName(this.name), o.setDestination(encodePoseInFrame(e)), o.setComponentName(encodeResourceName(s)), n !== void 0 && o.setWorldState(encodeWorldState(n)), u !== void 0 && o.setConstraints(encodeConstraints(u)), o.setExtra(struct_pb.Struct.fromJavaScript(g)), this.options.requestLogger?.(o), (await promisify(
41468
+ p.move.bind(p),
41469
+ o
41470
+ )).getSuccess();
41471
+ }
41472
+ async moveOnMap(e, s, n, u = {}) {
41473
+ const g = this.service, p = new motion_pb.MoveOnMapRequest();
41474
+ return p.setName(this.name), p.setDestination(encodePose(e)), p.setComponentName(encodeResourceName(s)), p.setSlamServiceName(encodeResourceName(n)), p.setExtra(struct_pb.Struct.fromJavaScript(u)), this.options.requestLogger?.(p), (await promisify(
41475
+ g.moveOnMap.bind(g),
41476
+ p
41477
+ )).getSuccess();
41478
+ }
41479
+ async moveSingleComponent(e, s, n, u = {}) {
41480
+ const g = this.service, p = new motion_pb.MoveSingleComponentRequest();
41481
+ return p.setName(this.name), p.setDestination(encodePoseInFrame(e)), p.setComponentName(encodeResourceName(s)), n !== void 0 && p.setWorldState(encodeWorldState(n)), p.setExtra(struct_pb.Struct.fromJavaScript(u)), this.options.requestLogger?.(p), (await promisify(g.moveSingleComponent.bind(g), p)).getSuccess();
41482
+ }
41483
+ async getPose(e, s, n, u = {}) {
41484
+ const g = this.service, p = new motion_pb.GetPoseRequest();
41485
+ p.setName(this.name), p.setComponentName(encodeResourceName(e)), p.setDestinationFrame(s), p.setSupplementalTransformsList(
41486
+ n.map((i) => encodeTransform(i))
41487
+ ), p.setExtra(struct_pb.Struct.fromJavaScript(u)), this.options.requestLogger?.(p);
41488
+ const r = (await promisify(
41489
+ g.getPose.bind(g),
41490
+ p
41491
+ )).getPose();
41492
+ if (!r)
41493
+ throw new Error("no pose");
41494
+ return r.toObject();
41495
+ }
41496
+ }
41497
+ const version = "0.0.42";
41405
41498
  export {
41406
41499
  ArmClient,
41407
41500
  BaseClient,
41408
41501
  BoardClient,
41409
41502
  CameraClient,
41410
41503
  RobotClient as Client,
41504
+ MotionClient,
41411
41505
  MotorClient,
41412
41506
  MovementSensorClient,
41413
41507
  RobotClient,