@viamrobotics/sdk 0.0.40-alpha.2 → 0.0.41

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