@smartspectra/node-sdk 3.4.0-rc.3 → 3.4.0-rc.4

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.
@@ -146,7 +146,17 @@ $root.presage = (function() {
146
146
  long = 0;
147
147
  if (long > $Reader.recursionLimit)
148
148
  throw Error("maximum nesting depth exceeded");
149
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.presage.smartspectra.Measurement();
149
+ var end, message;
150
+ if (length === undefined)
151
+ end = reader.len;
152
+ else {
153
+ end = reader.pos + length;
154
+ if (end > reader.len)
155
+ throw RangeError("index out of range");
156
+ length = reader.len;
157
+ reader.len = end;
158
+ }
159
+ message = new $root.presage.smartspectra.Measurement();
150
160
  while (reader.pos < end) {
151
161
  var tag = reader.uint32();
152
162
  if (tag === error)
@@ -169,6 +179,11 @@ $root.presage = (function() {
169
179
  break;
170
180
  }
171
181
  }
182
+ if (length !== undefined) {
183
+ if (reader.pos !== end)
184
+ throw RangeError("index out of range");
185
+ reader.len = length;
186
+ }
172
187
  return message;
173
188
  };
174
189
 
@@ -203,13 +218,13 @@ $root.presage = (function() {
203
218
  long = 0;
204
219
  if (long > $util.recursionLimit)
205
220
  return "maximum nesting depth exceeded";
206
- if (message.value != null && message.hasOwnProperty("value"))
221
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
207
222
  if (typeof message.value !== "number")
208
223
  return "value: number expected";
209
- if (message.stable != null && message.hasOwnProperty("stable"))
224
+ if (message.stable != null && Object.hasOwnProperty.call(message, "stable"))
210
225
  if (typeof message.stable !== "boolean")
211
226
  return "stable: boolean expected";
212
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
227
+ if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
213
228
  if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
214
229
  return "timestamp: integer|Long expected";
215
230
  return null;
@@ -275,11 +290,11 @@ $root.presage = (function() {
275
290
  } else
276
291
  object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
277
292
  }
278
- if (message.value != null && message.hasOwnProperty("value"))
293
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
279
294
  object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value;
280
- if (message.stable != null && message.hasOwnProperty("stable"))
295
+ if (message.stable != null && Object.hasOwnProperty.call(message, "stable"))
281
296
  object.stable = message.stable;
282
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
297
+ if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
283
298
  if (typeof BigInt !== "undefined" && options.longs === BigInt)
284
299
  object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, false).toBigInt();
285
300
  else if (typeof message.timestamp === "number")
@@ -437,7 +452,17 @@ $root.presage = (function() {
437
452
  long = 0;
438
453
  if (long > $Reader.recursionLimit)
439
454
  throw Error("maximum nesting depth exceeded");
440
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.presage.smartspectra.DetectionStatus();
455
+ var end, message;
456
+ if (length === undefined)
457
+ end = reader.len;
458
+ else {
459
+ end = reader.pos + length;
460
+ if (end > reader.len)
461
+ throw RangeError("index out of range");
462
+ length = reader.len;
463
+ reader.len = end;
464
+ }
465
+ message = new $root.presage.smartspectra.DetectionStatus();
441
466
  while (reader.pos < end) {
442
467
  var tag = reader.uint32();
443
468
  if (tag === error)
@@ -460,6 +485,11 @@ $root.presage = (function() {
460
485
  break;
461
486
  }
462
487
  }
488
+ if (length !== undefined) {
489
+ if (reader.pos !== end)
490
+ throw RangeError("index out of range");
491
+ reader.len = length;
492
+ }
463
493
  return message;
464
494
  };
465
495
 
@@ -494,13 +524,13 @@ $root.presage = (function() {
494
524
  long = 0;
495
525
  if (long > $util.recursionLimit)
496
526
  return "maximum nesting depth exceeded";
497
- if (message.detected != null && message.hasOwnProperty("detected"))
527
+ if (message.detected != null && Object.hasOwnProperty.call(message, "detected"))
498
528
  if (typeof message.detected !== "boolean")
499
529
  return "detected: boolean expected";
500
- if (message.stable != null && message.hasOwnProperty("stable"))
530
+ if (message.stable != null && Object.hasOwnProperty.call(message, "stable"))
501
531
  if (typeof message.stable !== "boolean")
502
532
  return "stable: boolean expected";
503
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
533
+ if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
504
534
  if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
505
535
  return "timestamp: integer|Long expected";
506
536
  return null;
@@ -566,11 +596,11 @@ $root.presage = (function() {
566
596
  } else
567
597
  object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
568
598
  }
569
- if (message.detected != null && message.hasOwnProperty("detected"))
599
+ if (message.detected != null && Object.hasOwnProperty.call(message, "detected"))
570
600
  object.detected = message.detected;
571
- if (message.stable != null && message.hasOwnProperty("stable"))
601
+ if (message.stable != null && Object.hasOwnProperty.call(message, "stable"))
572
602
  object.stable = message.stable;
573
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
603
+ if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
574
604
  if (typeof BigInt !== "undefined" && options.longs === BigInt)
575
605
  object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, false).toBigInt();
576
606
  else if (typeof message.timestamp === "number")
@@ -739,7 +769,17 @@ $root.presage = (function() {
739
769
  long = 0;
740
770
  if (long > $Reader.recursionLimit)
741
771
  throw Error("maximum nesting depth exceeded");
742
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.presage.smartspectra.MeasurementWithConfidence();
772
+ var end, message;
773
+ if (length === undefined)
774
+ end = reader.len;
775
+ else {
776
+ end = reader.pos + length;
777
+ if (end > reader.len)
778
+ throw RangeError("index out of range");
779
+ length = reader.len;
780
+ reader.len = end;
781
+ }
782
+ message = new $root.presage.smartspectra.MeasurementWithConfidence();
743
783
  while (reader.pos < end) {
744
784
  var tag = reader.uint32();
745
785
  if (tag === error)
@@ -766,6 +806,11 @@ $root.presage = (function() {
766
806
  break;
767
807
  }
768
808
  }
809
+ if (length !== undefined) {
810
+ if (reader.pos !== end)
811
+ throw RangeError("index out of range");
812
+ reader.len = length;
813
+ }
769
814
  return message;
770
815
  };
771
816
 
@@ -800,16 +845,16 @@ $root.presage = (function() {
800
845
  long = 0;
801
846
  if (long > $util.recursionLimit)
802
847
  return "maximum nesting depth exceeded";
803
- if (message.value != null && message.hasOwnProperty("value"))
848
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
804
849
  if (typeof message.value !== "number")
805
850
  return "value: number expected";
806
- if (message.stable != null && message.hasOwnProperty("stable"))
851
+ if (message.stable != null && Object.hasOwnProperty.call(message, "stable"))
807
852
  if (typeof message.stable !== "boolean")
808
853
  return "stable: boolean expected";
809
- if (message.confidence != null && message.hasOwnProperty("confidence"))
854
+ if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence"))
810
855
  if (typeof message.confidence !== "number")
811
856
  return "confidence: number expected";
812
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
857
+ if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
813
858
  if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
814
859
  return "timestamp: integer|Long expected";
815
860
  return null;
@@ -878,13 +923,13 @@ $root.presage = (function() {
878
923
  } else
879
924
  object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
880
925
  }
881
- if (message.value != null && message.hasOwnProperty("value"))
926
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
882
927
  object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value;
883
- if (message.stable != null && message.hasOwnProperty("stable"))
928
+ if (message.stable != null && Object.hasOwnProperty.call(message, "stable"))
884
929
  object.stable = message.stable;
885
- if (message.confidence != null && message.hasOwnProperty("confidence"))
930
+ if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence"))
886
931
  object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence;
887
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
932
+ if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
888
933
  if (typeof BigInt !== "undefined" && options.longs === BigInt)
889
934
  object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, false).toBigInt();
890
935
  else if (typeof message.timestamp === "number")
@@ -1058,7 +1103,17 @@ $root.presage = (function() {
1058
1103
  long = 0;
1059
1104
  if (long > $Reader.recursionLimit)
1060
1105
  throw Error("maximum nesting depth exceeded");
1061
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.presage.smartspectra.ExpressionScore();
1106
+ var end, message;
1107
+ if (length === undefined)
1108
+ end = reader.len;
1109
+ else {
1110
+ end = reader.pos + length;
1111
+ if (end > reader.len)
1112
+ throw RangeError("index out of range");
1113
+ length = reader.len;
1114
+ reader.len = end;
1115
+ }
1116
+ message = new $root.presage.smartspectra.ExpressionScore();
1062
1117
  while (reader.pos < end) {
1063
1118
  var tag = reader.uint32();
1064
1119
  if (tag === error)
@@ -1077,6 +1132,11 @@ $root.presage = (function() {
1077
1132
  break;
1078
1133
  }
1079
1134
  }
1135
+ if (length !== undefined) {
1136
+ if (reader.pos !== end)
1137
+ throw RangeError("index out of range");
1138
+ reader.len = length;
1139
+ }
1080
1140
  return message;
1081
1141
  };
1082
1142
 
@@ -1111,7 +1171,7 @@ $root.presage = (function() {
1111
1171
  long = 0;
1112
1172
  if (long > $util.recursionLimit)
1113
1173
  return "maximum nesting depth exceeded";
1114
- if (message.type != null && message.hasOwnProperty("type"))
1174
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
1115
1175
  switch (message.type) {
1116
1176
  default:
1117
1177
  return "type: enum value expected";
@@ -1126,7 +1186,7 @@ $root.presage = (function() {
1126
1186
  case 8:
1127
1187
  break;
1128
1188
  }
1129
- if (message.confidence != null && message.hasOwnProperty("confidence"))
1189
+ if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence"))
1130
1190
  if (typeof message.confidence !== "number")
1131
1191
  return "confidence: number expected";
1132
1192
  return null;
@@ -1220,9 +1280,9 @@ $root.presage = (function() {
1220
1280
  object.type = options.enums === String ? "UNSPECIFIED" : 0;
1221
1281
  object.confidence = 0;
1222
1282
  }
1223
- if (message.type != null && message.hasOwnProperty("type"))
1283
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
1224
1284
  object.type = options.enums === String ? $root.presage.smartspectra.ExpressionType[message.type] === undefined ? message.type : $root.presage.smartspectra.ExpressionType[message.type] : message.type;
1225
- if (message.confidence != null && message.hasOwnProperty("confidence"))
1285
+ if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence"))
1226
1286
  object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence;
1227
1287
  return object;
1228
1288
  };
@@ -1377,7 +1437,17 @@ $root.presage = (function() {
1377
1437
  long = 0;
1378
1438
  if (long > $Reader.recursionLimit)
1379
1439
  throw Error("maximum nesting depth exceeded");
1380
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.presage.smartspectra.Expression();
1440
+ var end, message;
1441
+ if (length === undefined)
1442
+ end = reader.len;
1443
+ else {
1444
+ end = reader.pos + length;
1445
+ if (end > reader.len)
1446
+ throw RangeError("index out of range");
1447
+ length = reader.len;
1448
+ reader.len = end;
1449
+ }
1450
+ message = new $root.presage.smartspectra.Expression();
1381
1451
  while (reader.pos < end) {
1382
1452
  var tag = reader.uint32();
1383
1453
  if (tag === error)
@@ -1402,6 +1472,11 @@ $root.presage = (function() {
1402
1472
  break;
1403
1473
  }
1404
1474
  }
1475
+ if (length !== undefined) {
1476
+ if (reader.pos !== end)
1477
+ throw RangeError("index out of range");
1478
+ reader.len = length;
1479
+ }
1405
1480
  return message;
1406
1481
  };
1407
1482
 
@@ -1436,13 +1511,13 @@ $root.presage = (function() {
1436
1511
  long = 0;
1437
1512
  if (long > $util.recursionLimit)
1438
1513
  return "maximum nesting depth exceeded";
1439
- if (message.stable != null && message.hasOwnProperty("stable"))
1514
+ if (message.stable != null && Object.hasOwnProperty.call(message, "stable"))
1440
1515
  if (typeof message.stable !== "boolean")
1441
1516
  return "stable: boolean expected";
1442
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
1517
+ if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
1443
1518
  if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
1444
1519
  return "timestamp: integer|Long expected";
1445
- if (message.scores != null && message.hasOwnProperty("scores")) {
1520
+ if (message.scores != null && Object.hasOwnProperty.call(message, "scores")) {
1446
1521
  if (!Array.isArray(message.scores))
1447
1522
  return "scores: array expected";
1448
1523
  for (var i = 0; i < message.scores.length; ++i) {
@@ -1523,9 +1598,9 @@ $root.presage = (function() {
1523
1598
  } else
1524
1599
  object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
1525
1600
  }
1526
- if (message.stable != null && message.hasOwnProperty("stable"))
1601
+ if (message.stable != null && Object.hasOwnProperty.call(message, "stable"))
1527
1602
  object.stable = message.stable;
1528
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
1603
+ if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
1529
1604
  if (typeof BigInt !== "undefined" && options.longs === BigInt)
1530
1605
  object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, false).toBigInt();
1531
1606
  else if (typeof message.timestamp === "number")
@@ -1731,7 +1806,17 @@ $root.presage = (function() {
1731
1806
  long = 0;
1732
1807
  if (long > $Reader.recursionLimit)
1733
1808
  throw Error("maximum nesting depth exceeded");
1734
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.presage.smartspectra.Hrv();
1809
+ var end, message;
1810
+ if (length === undefined)
1811
+ end = reader.len;
1812
+ else {
1813
+ end = reader.pos + length;
1814
+ if (end > reader.len)
1815
+ throw RangeError("index out of range");
1816
+ length = reader.len;
1817
+ reader.len = end;
1818
+ }
1819
+ message = new $root.presage.smartspectra.Hrv();
1735
1820
  while (reader.pos < end) {
1736
1821
  var tag = reader.uint32();
1737
1822
  if (tag === error)
@@ -1770,6 +1855,11 @@ $root.presage = (function() {
1770
1855
  break;
1771
1856
  }
1772
1857
  }
1858
+ if (length !== undefined) {
1859
+ if (reader.pos !== end)
1860
+ throw RangeError("index out of range");
1861
+ reader.len = length;
1862
+ }
1773
1863
  return message;
1774
1864
  };
1775
1865
 
@@ -1804,25 +1894,25 @@ $root.presage = (function() {
1804
1894
  long = 0;
1805
1895
  if (long > $util.recursionLimit)
1806
1896
  return "maximum nesting depth exceeded";
1807
- if (message.rmssd != null && message.hasOwnProperty("rmssd"))
1897
+ if (message.rmssd != null && Object.hasOwnProperty.call(message, "rmssd"))
1808
1898
  if (typeof message.rmssd !== "number")
1809
1899
  return "rmssd: number expected";
1810
- if (message.meanNn != null && message.hasOwnProperty("meanNn"))
1900
+ if (message.meanNn != null && Object.hasOwnProperty.call(message, "meanNn"))
1811
1901
  if (typeof message.meanNn !== "number")
1812
1902
  return "meanNn: number expected";
1813
- if (message.sdnn != null && message.hasOwnProperty("sdnn"))
1903
+ if (message.sdnn != null && Object.hasOwnProperty.call(message, "sdnn"))
1814
1904
  if (typeof message.sdnn !== "number")
1815
1905
  return "sdnn: number expected";
1816
- if (message.baevsky != null && message.hasOwnProperty("baevsky"))
1906
+ if (message.baevsky != null && Object.hasOwnProperty.call(message, "baevsky"))
1817
1907
  if (typeof message.baevsky !== "number")
1818
1908
  return "baevsky: number expected";
1819
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
1909
+ if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
1820
1910
  if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
1821
1911
  return "timestamp: integer|Long expected";
1822
- if (message.confidence != null && message.hasOwnProperty("confidence"))
1912
+ if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence"))
1823
1913
  if (typeof message.confidence !== "number")
1824
1914
  return "confidence: number expected";
1825
- if (message.stable != null && message.hasOwnProperty("stable"))
1915
+ if (message.stable != null && Object.hasOwnProperty.call(message, "stable"))
1826
1916
  if (typeof message.stable !== "boolean")
1827
1917
  return "stable: boolean expected";
1828
1918
  return null;
@@ -1900,24 +1990,24 @@ $root.presage = (function() {
1900
1990
  object.confidence = 0;
1901
1991
  object.stable = false;
1902
1992
  }
1903
- if (message.rmssd != null && message.hasOwnProperty("rmssd"))
1993
+ if (message.rmssd != null && Object.hasOwnProperty.call(message, "rmssd"))
1904
1994
  object.rmssd = options.json && !isFinite(message.rmssd) ? String(message.rmssd) : message.rmssd;
1905
- if (message.meanNn != null && message.hasOwnProperty("meanNn"))
1995
+ if (message.meanNn != null && Object.hasOwnProperty.call(message, "meanNn"))
1906
1996
  object.meanNn = options.json && !isFinite(message.meanNn) ? String(message.meanNn) : message.meanNn;
1907
- if (message.sdnn != null && message.hasOwnProperty("sdnn"))
1997
+ if (message.sdnn != null && Object.hasOwnProperty.call(message, "sdnn"))
1908
1998
  object.sdnn = options.json && !isFinite(message.sdnn) ? String(message.sdnn) : message.sdnn;
1909
- if (message.baevsky != null && message.hasOwnProperty("baevsky"))
1999
+ if (message.baevsky != null && Object.hasOwnProperty.call(message, "baevsky"))
1910
2000
  object.baevsky = options.json && !isFinite(message.baevsky) ? String(message.baevsky) : message.baevsky;
1911
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
2001
+ if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
1912
2002
  if (typeof BigInt !== "undefined" && options.longs === BigInt)
1913
2003
  object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, false).toBigInt();
1914
2004
  else if (typeof message.timestamp === "number")
1915
2005
  object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
1916
2006
  else
1917
2007
  object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() : message.timestamp;
1918
- if (message.confidence != null && message.hasOwnProperty("confidence"))
2008
+ if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence"))
1919
2009
  object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence;
1920
- if (message.stable != null && message.hasOwnProperty("stable"))
2010
+ if (message.stable != null && Object.hasOwnProperty.call(message, "stable"))
1921
2011
  object.stable = message.stable;
1922
2012
  return object;
1923
2013
  };
@@ -2048,7 +2138,17 @@ $root.presage = (function() {
2048
2138
  long = 0;
2049
2139
  if (long > $Reader.recursionLimit)
2050
2140
  throw Error("maximum nesting depth exceeded");
2051
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.presage.smartspectra.Strict();
2141
+ var end, message;
2142
+ if (length === undefined)
2143
+ end = reader.len;
2144
+ else {
2145
+ end = reader.pos + length;
2146
+ if (end > reader.len)
2147
+ throw RangeError("index out of range");
2148
+ length = reader.len;
2149
+ reader.len = end;
2150
+ }
2151
+ message = new $root.presage.smartspectra.Strict();
2052
2152
  while (reader.pos < end) {
2053
2153
  var tag = reader.uint32();
2054
2154
  if (tag === error)
@@ -2063,6 +2163,11 @@ $root.presage = (function() {
2063
2163
  break;
2064
2164
  }
2065
2165
  }
2166
+ if (length !== undefined) {
2167
+ if (reader.pos !== end)
2168
+ throw RangeError("index out of range");
2169
+ reader.len = length;
2170
+ }
2066
2171
  return message;
2067
2172
  };
2068
2173
 
@@ -2097,7 +2202,7 @@ $root.presage = (function() {
2097
2202
  long = 0;
2098
2203
  if (long > $util.recursionLimit)
2099
2204
  return "maximum nesting depth exceeded";
2100
- if (message.value != null && message.hasOwnProperty("value"))
2205
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
2101
2206
  if (typeof message.value !== "number")
2102
2207
  return "value: number expected";
2103
2208
  return null;
@@ -2145,7 +2250,7 @@ $root.presage = (function() {
2145
2250
  var object = {};
2146
2251
  if (options.defaults)
2147
2252
  object.value = 0;
2148
- if (message.value != null && message.hasOwnProperty("value"))
2253
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
2149
2254
  object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value;
2150
2255
  return object;
2151
2256
  };
@@ -2317,7 +2422,17 @@ $root.presage = (function() {
2317
2422
  long = 0;
2318
2423
  if (long > $Reader.recursionLimit)
2319
2424
  throw Error("maximum nesting depth exceeded");
2320
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.presage.smartspectra.Pulse();
2425
+ var end, message;
2426
+ if (length === undefined)
2427
+ end = reader.len;
2428
+ else {
2429
+ end = reader.pos + length;
2430
+ if (end > reader.len)
2431
+ throw RangeError("index out of range");
2432
+ length = reader.len;
2433
+ reader.len = end;
2434
+ }
2435
+ message = new $root.presage.smartspectra.Pulse();
2321
2436
  while (reader.pos < end) {
2322
2437
  var tag = reader.uint32();
2323
2438
  if (tag === error)
@@ -2350,6 +2465,11 @@ $root.presage = (function() {
2350
2465
  break;
2351
2466
  }
2352
2467
  }
2468
+ if (length !== undefined) {
2469
+ if (reader.pos !== end)
2470
+ throw RangeError("index out of range");
2471
+ reader.len = length;
2472
+ }
2353
2473
  return message;
2354
2474
  };
2355
2475
 
@@ -2384,7 +2504,7 @@ $root.presage = (function() {
2384
2504
  long = 0;
2385
2505
  if (long > $util.recursionLimit)
2386
2506
  return "maximum nesting depth exceeded";
2387
- if (message.rate != null && message.hasOwnProperty("rate")) {
2507
+ if (message.rate != null && Object.hasOwnProperty.call(message, "rate")) {
2388
2508
  if (!Array.isArray(message.rate))
2389
2509
  return "rate: array expected";
2390
2510
  for (var i = 0; i < message.rate.length; ++i) {
@@ -2393,7 +2513,7 @@ $root.presage = (function() {
2393
2513
  return "rate." + error;
2394
2514
  }
2395
2515
  }
2396
- if (message.trace != null && message.hasOwnProperty("trace")) {
2516
+ if (message.trace != null && Object.hasOwnProperty.call(message, "trace")) {
2397
2517
  if (!Array.isArray(message.trace))
2398
2518
  return "trace: array expected";
2399
2519
  for (var i = 0; i < message.trace.length; ++i) {
@@ -2402,7 +2522,7 @@ $root.presage = (function() {
2402
2522
  return "trace." + error;
2403
2523
  }
2404
2524
  }
2405
- if (message.pulseRespirationQuotient != null && message.hasOwnProperty("pulseRespirationQuotient")) {
2525
+ if (message.pulseRespirationQuotient != null && Object.hasOwnProperty.call(message, "pulseRespirationQuotient")) {
2406
2526
  if (!Array.isArray(message.pulseRespirationQuotient))
2407
2527
  return "pulseRespirationQuotient: array expected";
2408
2528
  for (var i = 0; i < message.pulseRespirationQuotient.length; ++i) {
@@ -2411,7 +2531,7 @@ $root.presage = (function() {
2411
2531
  return "pulseRespirationQuotient." + error;
2412
2532
  }
2413
2533
  }
2414
- if (message.strict != null && message.hasOwnProperty("strict")) {
2534
+ if (message.strict != null && Object.hasOwnProperty.call(message, "strict")) {
2415
2535
  var error = $root.presage.smartspectra.Strict.verify(message.strict, long + 1);
2416
2536
  if (error)
2417
2537
  return "strict." + error;
@@ -2514,7 +2634,7 @@ $root.presage = (function() {
2514
2634
  for (var j = 0; j < message.pulseRespirationQuotient.length; ++j)
2515
2635
  object.pulseRespirationQuotient[j] = $root.presage.smartspectra.Measurement.toObject(message.pulseRespirationQuotient[j], options, q + 1);
2516
2636
  }
2517
- if (message.strict != null && message.hasOwnProperty("strict"))
2637
+ if (message.strict != null && Object.hasOwnProperty.call(message, "strict"))
2518
2638
  object.strict = $root.presage.smartspectra.Strict.toObject(message.strict, options, q + 1);
2519
2639
  return object;
2520
2640
  };
@@ -2554,9 +2674,17 @@ $root.presage = (function() {
2554
2674
  * Properties of a Breathing.
2555
2675
  * @memberof presage.smartspectra
2556
2676
  * @interface IBreathing
2557
- * @property {Array.<presage.smartspectra.IMeasurementWithConfidence>|null} [rate] Respiratory rate measurements with confidence scores
2558
- * @property {Array.<presage.smartspectra.IMeasurement>|null} [upperTrace] Chest breathing movement trace measurements
2559
- * @property {Array.<presage.smartspectra.IMeasurement>|null} [lowerTrace] Abdominal breathing movement trace measurements
2677
+ * @property {Array.<presage.smartspectra.IMeasurementWithConfidence>|null} [rate] Respiratory rate measurements with confidence scores. `stable` marks
2678
+ * confidence at or above the minimum accepted accuracy standard for breathing
2679
+ * rate (+/-1 br/min), which corresponds to confidence >= 45; see the
2680
+ * [breathing model card](https://vandv.presagetech.com/breathing_model_card.html)
2681
+ * for the confidence-to-error mapping.
2682
+ * @property {Array.<presage.smartspectra.IMeasurement>|null} [upperTrace] Chest breathing movement trace measurements. The trace has no confidence of
2683
+ * its own; `stable` is inherited from the breathing rate verdict (>= 45); see
2684
+ * the [breathing model card](https://vandv.presagetech.com/breathing_model_card.html).
2685
+ * @property {Array.<presage.smartspectra.IMeasurement>|null} [lowerTrace] Abdominal breathing movement trace measurements. The trace has no confidence
2686
+ * of its own; `stable` is inherited from the breathing rate verdict (>= 45); see
2687
+ * the [breathing model card](https://vandv.presagetech.com/breathing_model_card.html).
2560
2688
  * @property {Array.<presage.smartspectra.IMeasurement>|null} [amplitude] Breathing amplitude measurements
2561
2689
  * @property {Array.<presage.smartspectra.IDetectionStatus>|null} [apnea] Apnea (breathing cessation) detection status
2562
2690
  * @property {Array.<presage.smartspectra.IMeasurement>|null} [respiratoryLineLength] Respiratory line length measurements for breathing pattern analysis
@@ -2591,7 +2719,11 @@ $root.presage = (function() {
2591
2719
  }
2592
2720
 
2593
2721
  /**
2594
- * Respiratory rate measurements with confidence scores
2722
+ * Respiratory rate measurements with confidence scores. `stable` marks
2723
+ * confidence at or above the minimum accepted accuracy standard for breathing
2724
+ * rate (+/-1 br/min), which corresponds to confidence >= 45; see the
2725
+ * [breathing model card](https://vandv.presagetech.com/breathing_model_card.html)
2726
+ * for the confidence-to-error mapping.
2595
2727
  * @member {Array.<presage.smartspectra.IMeasurementWithConfidence>} rate
2596
2728
  * @memberof presage.smartspectra.Breathing
2597
2729
  * @instance
@@ -2599,7 +2731,9 @@ $root.presage = (function() {
2599
2731
  Breathing.prototype.rate = $util.emptyArray;
2600
2732
 
2601
2733
  /**
2602
- * Chest breathing movement trace measurements
2734
+ * Chest breathing movement trace measurements. The trace has no confidence of
2735
+ * its own; `stable` is inherited from the breathing rate verdict (>= 45); see
2736
+ * the [breathing model card](https://vandv.presagetech.com/breathing_model_card.html).
2603
2737
  * @member {Array.<presage.smartspectra.IMeasurement>} upperTrace
2604
2738
  * @memberof presage.smartspectra.Breathing
2605
2739
  * @instance
@@ -2607,7 +2741,9 @@ $root.presage = (function() {
2607
2741
  Breathing.prototype.upperTrace = $util.emptyArray;
2608
2742
 
2609
2743
  /**
2610
- * Abdominal breathing movement trace measurements
2744
+ * Abdominal breathing movement trace measurements. The trace has no confidence
2745
+ * of its own; `stable` is inherited from the breathing rate verdict (>= 45); see
2746
+ * the [breathing model card](https://vandv.presagetech.com/breathing_model_card.html).
2611
2747
  * @member {Array.<presage.smartspectra.IMeasurement>} lowerTrace
2612
2748
  * @memberof presage.smartspectra.Breathing
2613
2749
  * @instance
@@ -2751,7 +2887,17 @@ $root.presage = (function() {
2751
2887
  long = 0;
2752
2888
  if (long > $Reader.recursionLimit)
2753
2889
  throw Error("maximum nesting depth exceeded");
2754
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.presage.smartspectra.Breathing();
2890
+ var end, message;
2891
+ if (length === undefined)
2892
+ end = reader.len;
2893
+ else {
2894
+ end = reader.pos + length;
2895
+ if (end > reader.len)
2896
+ throw RangeError("index out of range");
2897
+ length = reader.len;
2898
+ reader.len = end;
2899
+ }
2900
+ message = new $root.presage.smartspectra.Breathing();
2755
2901
  while (reader.pos < end) {
2756
2902
  var tag = reader.uint32();
2757
2903
  if (tag === error)
@@ -2814,6 +2960,11 @@ $root.presage = (function() {
2814
2960
  break;
2815
2961
  }
2816
2962
  }
2963
+ if (length !== undefined) {
2964
+ if (reader.pos !== end)
2965
+ throw RangeError("index out of range");
2966
+ reader.len = length;
2967
+ }
2817
2968
  return message;
2818
2969
  };
2819
2970
 
@@ -2848,7 +2999,7 @@ $root.presage = (function() {
2848
2999
  long = 0;
2849
3000
  if (long > $util.recursionLimit)
2850
3001
  return "maximum nesting depth exceeded";
2851
- if (message.rate != null && message.hasOwnProperty("rate")) {
3002
+ if (message.rate != null && Object.hasOwnProperty.call(message, "rate")) {
2852
3003
  if (!Array.isArray(message.rate))
2853
3004
  return "rate: array expected";
2854
3005
  for (var i = 0; i < message.rate.length; ++i) {
@@ -2857,7 +3008,7 @@ $root.presage = (function() {
2857
3008
  return "rate." + error;
2858
3009
  }
2859
3010
  }
2860
- if (message.upperTrace != null && message.hasOwnProperty("upperTrace")) {
3011
+ if (message.upperTrace != null && Object.hasOwnProperty.call(message, "upperTrace")) {
2861
3012
  if (!Array.isArray(message.upperTrace))
2862
3013
  return "upperTrace: array expected";
2863
3014
  for (var i = 0; i < message.upperTrace.length; ++i) {
@@ -2866,7 +3017,7 @@ $root.presage = (function() {
2866
3017
  return "upperTrace." + error;
2867
3018
  }
2868
3019
  }
2869
- if (message.lowerTrace != null && message.hasOwnProperty("lowerTrace")) {
3020
+ if (message.lowerTrace != null && Object.hasOwnProperty.call(message, "lowerTrace")) {
2870
3021
  if (!Array.isArray(message.lowerTrace))
2871
3022
  return "lowerTrace: array expected";
2872
3023
  for (var i = 0; i < message.lowerTrace.length; ++i) {
@@ -2875,7 +3026,7 @@ $root.presage = (function() {
2875
3026
  return "lowerTrace." + error;
2876
3027
  }
2877
3028
  }
2878
- if (message.amplitude != null && message.hasOwnProperty("amplitude")) {
3029
+ if (message.amplitude != null && Object.hasOwnProperty.call(message, "amplitude")) {
2879
3030
  if (!Array.isArray(message.amplitude))
2880
3031
  return "amplitude: array expected";
2881
3032
  for (var i = 0; i < message.amplitude.length; ++i) {
@@ -2884,7 +3035,7 @@ $root.presage = (function() {
2884
3035
  return "amplitude." + error;
2885
3036
  }
2886
3037
  }
2887
- if (message.apnea != null && message.hasOwnProperty("apnea")) {
3038
+ if (message.apnea != null && Object.hasOwnProperty.call(message, "apnea")) {
2888
3039
  if (!Array.isArray(message.apnea))
2889
3040
  return "apnea: array expected";
2890
3041
  for (var i = 0; i < message.apnea.length; ++i) {
@@ -2893,7 +3044,7 @@ $root.presage = (function() {
2893
3044
  return "apnea." + error;
2894
3045
  }
2895
3046
  }
2896
- if (message.respiratoryLineLength != null && message.hasOwnProperty("respiratoryLineLength")) {
3047
+ if (message.respiratoryLineLength != null && Object.hasOwnProperty.call(message, "respiratoryLineLength")) {
2897
3048
  if (!Array.isArray(message.respiratoryLineLength))
2898
3049
  return "respiratoryLineLength: array expected";
2899
3050
  for (var i = 0; i < message.respiratoryLineLength.length; ++i) {
@@ -2902,7 +3053,7 @@ $root.presage = (function() {
2902
3053
  return "respiratoryLineLength." + error;
2903
3054
  }
2904
3055
  }
2905
- if (message.baseline != null && message.hasOwnProperty("baseline")) {
3056
+ if (message.baseline != null && Object.hasOwnProperty.call(message, "baseline")) {
2906
3057
  if (!Array.isArray(message.baseline))
2907
3058
  return "baseline: array expected";
2908
3059
  for (var i = 0; i < message.baseline.length; ++i) {
@@ -2911,7 +3062,7 @@ $root.presage = (function() {
2911
3062
  return "baseline." + error;
2912
3063
  }
2913
3064
  }
2914
- if (message.inhaleExhaleRatio != null && message.hasOwnProperty("inhaleExhaleRatio")) {
3065
+ if (message.inhaleExhaleRatio != null && Object.hasOwnProperty.call(message, "inhaleExhaleRatio")) {
2915
3066
  if (!Array.isArray(message.inhaleExhaleRatio))
2916
3067
  return "inhaleExhaleRatio: array expected";
2917
3068
  for (var i = 0; i < message.inhaleExhaleRatio.length; ++i) {
@@ -2920,7 +3071,7 @@ $root.presage = (function() {
2920
3071
  return "inhaleExhaleRatio." + error;
2921
3072
  }
2922
3073
  }
2923
- if (message.strict != null && message.hasOwnProperty("strict")) {
3074
+ if (message.strict != null && Object.hasOwnProperty.call(message, "strict")) {
2924
3075
  var error = $root.presage.smartspectra.Strict.verify(message.strict, long + 1);
2925
3076
  if (error)
2926
3077
  return "strict." + error;
@@ -3103,7 +3254,7 @@ $root.presage = (function() {
3103
3254
  for (var j = 0; j < message.inhaleExhaleRatio.length; ++j)
3104
3255
  object.inhaleExhaleRatio[j] = $root.presage.smartspectra.Measurement.toObject(message.inhaleExhaleRatio[j], options, q + 1);
3105
3256
  }
3106
- if (message.strict != null && message.hasOwnProperty("strict"))
3257
+ if (message.strict != null && Object.hasOwnProperty.call(message, "strict"))
3107
3258
  object.strict = $root.presage.smartspectra.Strict.toObject(message.strict, options, q + 1);
3108
3259
  return object;
3109
3260
  };
@@ -3269,7 +3420,17 @@ $root.presage = (function() {
3269
3420
  long = 0;
3270
3421
  if (long > $Reader.recursionLimit)
3271
3422
  throw Error("maximum nesting depth exceeded");
3272
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.presage.smartspectra.Landmarks();
3423
+ var end, message;
3424
+ if (length === undefined)
3425
+ end = reader.len;
3426
+ else {
3427
+ end = reader.pos + length;
3428
+ if (end > reader.len)
3429
+ throw RangeError("index out of range");
3430
+ length = reader.len;
3431
+ reader.len = end;
3432
+ }
3433
+ message = new $root.presage.smartspectra.Landmarks();
3273
3434
  while (reader.pos < end) {
3274
3435
  var tag = reader.uint32();
3275
3436
  if (tag === error)
@@ -3298,6 +3459,11 @@ $root.presage = (function() {
3298
3459
  break;
3299
3460
  }
3300
3461
  }
3462
+ if (length !== undefined) {
3463
+ if (reader.pos !== end)
3464
+ throw RangeError("index out of range");
3465
+ reader.len = length;
3466
+ }
3301
3467
  return message;
3302
3468
  };
3303
3469
 
@@ -3332,7 +3498,7 @@ $root.presage = (function() {
3332
3498
  long = 0;
3333
3499
  if (long > $util.recursionLimit)
3334
3500
  return "maximum nesting depth exceeded";
3335
- if (message.value != null && message.hasOwnProperty("value")) {
3501
+ if (message.value != null && Object.hasOwnProperty.call(message, "value")) {
3336
3502
  if (!Array.isArray(message.value))
3337
3503
  return "value: array expected";
3338
3504
  for (var i = 0; i < message.value.length; ++i) {
@@ -3341,13 +3507,13 @@ $root.presage = (function() {
3341
3507
  return "value." + error;
3342
3508
  }
3343
3509
  }
3344
- if (message.stable != null && message.hasOwnProperty("stable"))
3510
+ if (message.stable != null && Object.hasOwnProperty.call(message, "stable"))
3345
3511
  if (typeof message.stable !== "boolean")
3346
3512
  return "stable: boolean expected";
3347
- if (message.reset != null && message.hasOwnProperty("reset"))
3513
+ if (message.reset != null && Object.hasOwnProperty.call(message, "reset"))
3348
3514
  if (typeof message.reset !== "boolean")
3349
3515
  return "reset: boolean expected";
3350
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
3516
+ if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
3351
3517
  if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
3352
3518
  return "timestamp: integer|Long expected";
3353
3519
  return null;
@@ -3430,11 +3596,11 @@ $root.presage = (function() {
3430
3596
  for (var j = 0; j < message.value.length; ++j)
3431
3597
  object.value[j] = $root.presage.smartspectra.Point2dFloat.toObject(message.value[j], options, q + 1);
3432
3598
  }
3433
- if (message.stable != null && message.hasOwnProperty("stable"))
3599
+ if (message.stable != null && Object.hasOwnProperty.call(message, "stable"))
3434
3600
  object.stable = message.stable;
3435
- if (message.reset != null && message.hasOwnProperty("reset"))
3601
+ if (message.reset != null && Object.hasOwnProperty.call(message, "reset"))
3436
3602
  object.reset = message.reset;
3437
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
3603
+ if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
3438
3604
  if (typeof BigInt !== "undefined" && options.longs === BigInt)
3439
3605
  object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, false).toBigInt();
3440
3606
  else if (typeof message.timestamp === "number")
@@ -3611,7 +3777,17 @@ $root.presage = (function() {
3611
3777
  long = 0;
3612
3778
  if (long > $Reader.recursionLimit)
3613
3779
  throw Error("maximum nesting depth exceeded");
3614
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.presage.smartspectra.Face();
3780
+ var end, message;
3781
+ if (length === undefined)
3782
+ end = reader.len;
3783
+ else {
3784
+ end = reader.pos + length;
3785
+ if (end > reader.len)
3786
+ throw RangeError("index out of range");
3787
+ length = reader.len;
3788
+ reader.len = end;
3789
+ }
3790
+ message = new $root.presage.smartspectra.Face();
3615
3791
  while (reader.pos < end) {
3616
3792
  var tag = reader.uint32();
3617
3793
  if (tag === error)
@@ -3646,6 +3822,11 @@ $root.presage = (function() {
3646
3822
  break;
3647
3823
  }
3648
3824
  }
3825
+ if (length !== undefined) {
3826
+ if (reader.pos !== end)
3827
+ throw RangeError("index out of range");
3828
+ reader.len = length;
3829
+ }
3649
3830
  return message;
3650
3831
  };
3651
3832
 
@@ -3680,7 +3861,7 @@ $root.presage = (function() {
3680
3861
  long = 0;
3681
3862
  if (long > $util.recursionLimit)
3682
3863
  return "maximum nesting depth exceeded";
3683
- if (message.blinking != null && message.hasOwnProperty("blinking")) {
3864
+ if (message.blinking != null && Object.hasOwnProperty.call(message, "blinking")) {
3684
3865
  if (!Array.isArray(message.blinking))
3685
3866
  return "blinking: array expected";
3686
3867
  for (var i = 0; i < message.blinking.length; ++i) {
@@ -3689,7 +3870,7 @@ $root.presage = (function() {
3689
3870
  return "blinking." + error;
3690
3871
  }
3691
3872
  }
3692
- if (message.talking != null && message.hasOwnProperty("talking")) {
3873
+ if (message.talking != null && Object.hasOwnProperty.call(message, "talking")) {
3693
3874
  if (!Array.isArray(message.talking))
3694
3875
  return "talking: array expected";
3695
3876
  for (var i = 0; i < message.talking.length; ++i) {
@@ -3698,7 +3879,7 @@ $root.presage = (function() {
3698
3879
  return "talking." + error;
3699
3880
  }
3700
3881
  }
3701
- if (message.landmarks != null && message.hasOwnProperty("landmarks")) {
3882
+ if (message.landmarks != null && Object.hasOwnProperty.call(message, "landmarks")) {
3702
3883
  if (!Array.isArray(message.landmarks))
3703
3884
  return "landmarks: array expected";
3704
3885
  for (var i = 0; i < message.landmarks.length; ++i) {
@@ -3707,7 +3888,7 @@ $root.presage = (function() {
3707
3888
  return "landmarks." + error;
3708
3889
  }
3709
3890
  }
3710
- if (message.expression != null && message.hasOwnProperty("expression")) {
3891
+ if (message.expression != null && Object.hasOwnProperty.call(message, "expression")) {
3711
3892
  if (!Array.isArray(message.expression))
3712
3893
  return "expression: array expected";
3713
3894
  for (var i = 0; i < message.expression.length; ++i) {
@@ -3967,7 +4148,17 @@ $root.presage = (function() {
3967
4148
  long = 0;
3968
4149
  if (long > $Reader.recursionLimit)
3969
4150
  throw Error("maximum nesting depth exceeded");
3970
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.presage.smartspectra.MicroMotion();
4151
+ var end, message;
4152
+ if (length === undefined)
4153
+ end = reader.len;
4154
+ else {
4155
+ end = reader.pos + length;
4156
+ if (end > reader.len)
4157
+ throw RangeError("index out of range");
4158
+ length = reader.len;
4159
+ reader.len = end;
4160
+ }
4161
+ message = new $root.presage.smartspectra.MicroMotion();
3971
4162
  while (reader.pos < end) {
3972
4163
  var tag = reader.uint32();
3973
4164
  if (tag === error)
@@ -3990,6 +4181,11 @@ $root.presage = (function() {
3990
4181
  break;
3991
4182
  }
3992
4183
  }
4184
+ if (length !== undefined) {
4185
+ if (reader.pos !== end)
4186
+ throw RangeError("index out of range");
4187
+ reader.len = length;
4188
+ }
3993
4189
  return message;
3994
4190
  };
3995
4191
 
@@ -4024,7 +4220,7 @@ $root.presage = (function() {
4024
4220
  long = 0;
4025
4221
  if (long > $util.recursionLimit)
4026
4222
  return "maximum nesting depth exceeded";
4027
- if (message.glutes != null && message.hasOwnProperty("glutes")) {
4223
+ if (message.glutes != null && Object.hasOwnProperty.call(message, "glutes")) {
4028
4224
  if (!Array.isArray(message.glutes))
4029
4225
  return "glutes: array expected";
4030
4226
  for (var i = 0; i < message.glutes.length; ++i) {
@@ -4033,7 +4229,7 @@ $root.presage = (function() {
4033
4229
  return "glutes." + error;
4034
4230
  }
4035
4231
  }
4036
- if (message.knees != null && message.hasOwnProperty("knees")) {
4232
+ if (message.knees != null && Object.hasOwnProperty.call(message, "knees")) {
4037
4233
  if (!Array.isArray(message.knees))
4038
4234
  return "knees: array expected";
4039
4235
  for (var i = 0; i < message.knees.length; ++i) {
@@ -4155,13 +4351,13 @@ $root.presage = (function() {
4155
4351
  * Properties of an Eda.
4156
4352
  * @memberof presage.smartspectra
4157
4353
  * @interface IEda
4158
- * @property {Array.<presage.smartspectra.IMeasurement>|null} [trace] EDA trace measurements over time
4354
+ * @property {Array.<presage.smartspectra.IMeasurement>|null} [trace] EDA Proxy trace measurements over time
4159
4355
  */
4160
4356
 
4161
4357
  /**
4162
4358
  * Constructs a new Eda.
4163
4359
  * @memberof presage.smartspectra
4164
- * @classdesc Electrodermal Activity (EDA) measurements.
4360
+ * @classdesc EDA Proxy (electrodermal activity) measurements.
4165
4361
  * Tracks skin conductance changes related to autonomic nervous system activity.
4166
4362
  * @implements IEda
4167
4363
  * @constructor
@@ -4176,7 +4372,7 @@ $root.presage = (function() {
4176
4372
  }
4177
4373
 
4178
4374
  /**
4179
- * EDA trace measurements over time
4375
+ * EDA Proxy trace measurements over time
4180
4376
  * @member {Array.<presage.smartspectra.IMeasurement>} trace
4181
4377
  * @memberof presage.smartspectra.Eda
4182
4378
  * @instance
@@ -4248,7 +4444,17 @@ $root.presage = (function() {
4248
4444
  long = 0;
4249
4445
  if (long > $Reader.recursionLimit)
4250
4446
  throw Error("maximum nesting depth exceeded");
4251
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.presage.smartspectra.Eda();
4447
+ var end, message;
4448
+ if (length === undefined)
4449
+ end = reader.len;
4450
+ else {
4451
+ end = reader.pos + length;
4452
+ if (end > reader.len)
4453
+ throw RangeError("index out of range");
4454
+ length = reader.len;
4455
+ reader.len = end;
4456
+ }
4457
+ message = new $root.presage.smartspectra.Eda();
4252
4458
  while (reader.pos < end) {
4253
4459
  var tag = reader.uint32();
4254
4460
  if (tag === error)
@@ -4265,6 +4471,11 @@ $root.presage = (function() {
4265
4471
  break;
4266
4472
  }
4267
4473
  }
4474
+ if (length !== undefined) {
4475
+ if (reader.pos !== end)
4476
+ throw RangeError("index out of range");
4477
+ reader.len = length;
4478
+ }
4268
4479
  return message;
4269
4480
  };
4270
4481
 
@@ -4299,7 +4510,7 @@ $root.presage = (function() {
4299
4510
  long = 0;
4300
4511
  if (long > $util.recursionLimit)
4301
4512
  return "maximum nesting depth exceeded";
4302
- if (message.trace != null && message.hasOwnProperty("trace")) {
4513
+ if (message.trace != null && Object.hasOwnProperty.call(message, "trace")) {
4303
4514
  if (!Array.isArray(message.trace))
4304
4515
  return "trace: array expected";
4305
4516
  for (var i = 0; i < message.trace.length; ++i) {
@@ -4404,9 +4615,21 @@ $root.presage = (function() {
4404
4615
  * Properties of a Cardio.
4405
4616
  * @memberof presage.smartspectra
4406
4617
  * @interface ICardio
4407
- * @property {Array.<presage.smartspectra.IMeasurementWithConfidence>|null} [pulseRate] Heart rate measurements with confidence scores
4408
- * @property {Array.<presage.smartspectra.IMeasurementWithConfidence>|null} [arterialPressureTrace] Arterial pressure trace (uncalibrated, unitless) measurements with confidence scores
4409
- * @property {Array.<presage.smartspectra.IHrv>|null} [hrv] Heart rate variability measurements with confidence scores
4618
+ * @property {Array.<presage.smartspectra.IMeasurementWithConfidence>|null} [pulseRate] Heart rate measurements with confidence scores. `stable` marks confidence
4619
+ * at or above the minimum accepted accuracy standard for heart rate
4620
+ * (+/-3 bpm), which corresponds to confidence >= 40; see the
4621
+ * [arterial pressure model card](https://vandv.presagetech.com/arterial_pressure_model_card.html)
4622
+ * for the confidence-to-error mapping. Heart rate is derived from the same signal.
4623
+ * @property {Array.<presage.smartspectra.IMeasurementWithConfidence>|null} [arterialPressureTrace] Arterial pressure trace (uncalibrated, unitless) measurements with confidence
4624
+ * scores. `stable` uses the same threshold as heart rate -- the minimum accepted
4625
+ * accuracy standard (+/-3 bpm), confidence >= 40 -- since both derive from the
4626
+ * arterial pressure signal; see the
4627
+ * [arterial pressure model card](https://vandv.presagetech.com/arterial_pressure_model_card.html).
4628
+ * @property {Array.<presage.smartspectra.IHrv>|null} [hrv] Heart rate variability measurements with confidence scores. `stable` marks
4629
+ * confidence at or above the minimum accepted accuracy standard for HRV
4630
+ * (+/-5 ms), which corresponds to confidence >= 50; see the
4631
+ * [HRV model card](https://vandv.presagetech.com/hrv_model_card.html)
4632
+ * for the confidence-to-error mapping.
4410
4633
  */
4411
4634
 
4412
4635
  /**
@@ -4428,7 +4651,11 @@ $root.presage = (function() {
4428
4651
  }
4429
4652
 
4430
4653
  /**
4431
- * Heart rate measurements with confidence scores
4654
+ * Heart rate measurements with confidence scores. `stable` marks confidence
4655
+ * at or above the minimum accepted accuracy standard for heart rate
4656
+ * (+/-3 bpm), which corresponds to confidence >= 40; see the
4657
+ * [arterial pressure model card](https://vandv.presagetech.com/arterial_pressure_model_card.html)
4658
+ * for the confidence-to-error mapping. Heart rate is derived from the same signal.
4432
4659
  * @member {Array.<presage.smartspectra.IMeasurementWithConfidence>} pulseRate
4433
4660
  * @memberof presage.smartspectra.Cardio
4434
4661
  * @instance
@@ -4436,7 +4663,11 @@ $root.presage = (function() {
4436
4663
  Cardio.prototype.pulseRate = $util.emptyArray;
4437
4664
 
4438
4665
  /**
4439
- * Arterial pressure trace (uncalibrated, unitless) measurements with confidence scores
4666
+ * Arterial pressure trace (uncalibrated, unitless) measurements with confidence
4667
+ * scores. `stable` uses the same threshold as heart rate -- the minimum accepted
4668
+ * accuracy standard (+/-3 bpm), confidence >= 40 -- since both derive from the
4669
+ * arterial pressure signal; see the
4670
+ * [arterial pressure model card](https://vandv.presagetech.com/arterial_pressure_model_card.html).
4440
4671
  * @member {Array.<presage.smartspectra.IMeasurementWithConfidence>} arterialPressureTrace
4441
4672
  * @memberof presage.smartspectra.Cardio
4442
4673
  * @instance
@@ -4444,7 +4675,11 @@ $root.presage = (function() {
4444
4675
  Cardio.prototype.arterialPressureTrace = $util.emptyArray;
4445
4676
 
4446
4677
  /**
4447
- * Heart rate variability measurements with confidence scores
4678
+ * Heart rate variability measurements with confidence scores. `stable` marks
4679
+ * confidence at or above the minimum accepted accuracy standard for HRV
4680
+ * (+/-5 ms), which corresponds to confidence >= 50; see the
4681
+ * [HRV model card](https://vandv.presagetech.com/hrv_model_card.html)
4682
+ * for the confidence-to-error mapping.
4448
4683
  * @member {Array.<presage.smartspectra.IHrv>} hrv
4449
4684
  * @memberof presage.smartspectra.Cardio
4450
4685
  * @instance
@@ -4522,7 +4757,17 @@ $root.presage = (function() {
4522
4757
  long = 0;
4523
4758
  if (long > $Reader.recursionLimit)
4524
4759
  throw Error("maximum nesting depth exceeded");
4525
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.presage.smartspectra.Cardio();
4760
+ var end, message;
4761
+ if (length === undefined)
4762
+ end = reader.len;
4763
+ else {
4764
+ end = reader.pos + length;
4765
+ if (end > reader.len)
4766
+ throw RangeError("index out of range");
4767
+ length = reader.len;
4768
+ reader.len = end;
4769
+ }
4770
+ message = new $root.presage.smartspectra.Cardio();
4526
4771
  while (reader.pos < end) {
4527
4772
  var tag = reader.uint32();
4528
4773
  if (tag === error)
@@ -4551,6 +4796,11 @@ $root.presage = (function() {
4551
4796
  break;
4552
4797
  }
4553
4798
  }
4799
+ if (length !== undefined) {
4800
+ if (reader.pos !== end)
4801
+ throw RangeError("index out of range");
4802
+ reader.len = length;
4803
+ }
4554
4804
  return message;
4555
4805
  };
4556
4806
 
@@ -4585,7 +4835,7 @@ $root.presage = (function() {
4585
4835
  long = 0;
4586
4836
  if (long > $util.recursionLimit)
4587
4837
  return "maximum nesting depth exceeded";
4588
- if (message.pulseRate != null && message.hasOwnProperty("pulseRate")) {
4838
+ if (message.pulseRate != null && Object.hasOwnProperty.call(message, "pulseRate")) {
4589
4839
  if (!Array.isArray(message.pulseRate))
4590
4840
  return "pulseRate: array expected";
4591
4841
  for (var i = 0; i < message.pulseRate.length; ++i) {
@@ -4594,7 +4844,7 @@ $root.presage = (function() {
4594
4844
  return "pulseRate." + error;
4595
4845
  }
4596
4846
  }
4597
- if (message.arterialPressureTrace != null && message.hasOwnProperty("arterialPressureTrace")) {
4847
+ if (message.arterialPressureTrace != null && Object.hasOwnProperty.call(message, "arterialPressureTrace")) {
4598
4848
  if (!Array.isArray(message.arterialPressureTrace))
4599
4849
  return "arterialPressureTrace: array expected";
4600
4850
  for (var i = 0; i < message.arterialPressureTrace.length; ++i) {
@@ -4603,7 +4853,7 @@ $root.presage = (function() {
4603
4853
  return "arterialPressureTrace." + error;
4604
4854
  }
4605
4855
  }
4606
- if (message.hrv != null && message.hasOwnProperty("hrv")) {
4856
+ if (message.hrv != null && Object.hasOwnProperty.call(message, "hrv")) {
4607
4857
  if (!Array.isArray(message.hrv))
4608
4858
  return "hrv: array expected";
4609
4859
  for (var i = 0; i < message.hrv.length; ++i) {
@@ -4743,7 +4993,7 @@ $root.presage = (function() {
4743
4993
  * @interface IMetrics
4744
4994
  * @property {presage.smartspectra.IBreathing|null} [breathing] Breathing and respiratory analysis results
4745
4995
  * @property {presage.smartspectra.IMicroMotion|null} [micromotion] Micro-motion analysis results
4746
- * @property {presage.smartspectra.IEda|null} [eda] Electrodermal activity measurements. Note: processing needs to run for over 35 seconds to generate the first EDA result.
4996
+ * @property {presage.smartspectra.IEda|null} [eda] EDA Proxy (electrodermal activity) measurements. Note: processing needs to run for over 35 seconds to generate the first EDA Proxy result.
4747
4997
  * @property {presage.smartspectra.IFace|null} [face] Facial analysis results
4748
4998
  * @property {presage.smartspectra.ICardio|null} [cardio] Cardiovascular measurements (pulse rate, arterial pressure, HRV)
4749
4999
  */
@@ -4781,7 +5031,7 @@ $root.presage = (function() {
4781
5031
  Metrics.prototype.micromotion = null;
4782
5032
 
4783
5033
  /**
4784
- * Electrodermal activity measurements. Note: processing needs to run for over 35 seconds to generate the first EDA result.
5034
+ * EDA Proxy (electrodermal activity) measurements. Note: processing needs to run for over 35 seconds to generate the first EDA Proxy result.
4785
5035
  * @member {presage.smartspectra.IEda|null|undefined} eda
4786
5036
  * @memberof presage.smartspectra.Metrics
4787
5037
  * @instance
@@ -4876,7 +5126,17 @@ $root.presage = (function() {
4876
5126
  long = 0;
4877
5127
  if (long > $Reader.recursionLimit)
4878
5128
  throw Error("maximum nesting depth exceeded");
4879
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.presage.smartspectra.Metrics();
5129
+ var end, message;
5130
+ if (length === undefined)
5131
+ end = reader.len;
5132
+ else {
5133
+ end = reader.pos + length;
5134
+ if (end > reader.len)
5135
+ throw RangeError("index out of range");
5136
+ length = reader.len;
5137
+ reader.len = end;
5138
+ }
5139
+ message = new $root.presage.smartspectra.Metrics();
4880
5140
  while (reader.pos < end) {
4881
5141
  var tag = reader.uint32();
4882
5142
  if (tag === error)
@@ -4907,6 +5167,11 @@ $root.presage = (function() {
4907
5167
  break;
4908
5168
  }
4909
5169
  }
5170
+ if (length !== undefined) {
5171
+ if (reader.pos !== end)
5172
+ throw RangeError("index out of range");
5173
+ reader.len = length;
5174
+ }
4910
5175
  return message;
4911
5176
  };
4912
5177
 
@@ -4941,27 +5206,27 @@ $root.presage = (function() {
4941
5206
  long = 0;
4942
5207
  if (long > $util.recursionLimit)
4943
5208
  return "maximum nesting depth exceeded";
4944
- if (message.breathing != null && message.hasOwnProperty("breathing")) {
5209
+ if (message.breathing != null && Object.hasOwnProperty.call(message, "breathing")) {
4945
5210
  var error = $root.presage.smartspectra.Breathing.verify(message.breathing, long + 1);
4946
5211
  if (error)
4947
5212
  return "breathing." + error;
4948
5213
  }
4949
- if (message.micromotion != null && message.hasOwnProperty("micromotion")) {
5214
+ if (message.micromotion != null && Object.hasOwnProperty.call(message, "micromotion")) {
4950
5215
  var error = $root.presage.smartspectra.MicroMotion.verify(message.micromotion, long + 1);
4951
5216
  if (error)
4952
5217
  return "micromotion." + error;
4953
5218
  }
4954
- if (message.eda != null && message.hasOwnProperty("eda")) {
5219
+ if (message.eda != null && Object.hasOwnProperty.call(message, "eda")) {
4955
5220
  var error = $root.presage.smartspectra.Eda.verify(message.eda, long + 1);
4956
5221
  if (error)
4957
5222
  return "eda." + error;
4958
5223
  }
4959
- if (message.face != null && message.hasOwnProperty("face")) {
5224
+ if (message.face != null && Object.hasOwnProperty.call(message, "face")) {
4960
5225
  var error = $root.presage.smartspectra.Face.verify(message.face, long + 1);
4961
5226
  if (error)
4962
5227
  return "face." + error;
4963
5228
  }
4964
- if (message.cardio != null && message.hasOwnProperty("cardio")) {
5229
+ if (message.cardio != null && Object.hasOwnProperty.call(message, "cardio")) {
4965
5230
  var error = $root.presage.smartspectra.Cardio.verify(message.cardio, long + 1);
4966
5231
  if (error)
4967
5232
  return "cardio." + error;
@@ -5039,15 +5304,15 @@ $root.presage = (function() {
5039
5304
  object.face = null;
5040
5305
  object.cardio = null;
5041
5306
  }
5042
- if (message.breathing != null && message.hasOwnProperty("breathing"))
5307
+ if (message.breathing != null && Object.hasOwnProperty.call(message, "breathing"))
5043
5308
  object.breathing = $root.presage.smartspectra.Breathing.toObject(message.breathing, options, q + 1);
5044
- if (message.micromotion != null && message.hasOwnProperty("micromotion"))
5309
+ if (message.micromotion != null && Object.hasOwnProperty.call(message, "micromotion"))
5045
5310
  object.micromotion = $root.presage.smartspectra.MicroMotion.toObject(message.micromotion, options, q + 1);
5046
- if (message.eda != null && message.hasOwnProperty("eda"))
5311
+ if (message.eda != null && Object.hasOwnProperty.call(message, "eda"))
5047
5312
  object.eda = $root.presage.smartspectra.Eda.toObject(message.eda, options, q + 1);
5048
- if (message.face != null && message.hasOwnProperty("face"))
5313
+ if (message.face != null && Object.hasOwnProperty.call(message, "face"))
5049
5314
  object.face = $root.presage.smartspectra.Face.toObject(message.face, options, q + 1);
5050
- if (message.cardio != null && message.hasOwnProperty("cardio"))
5315
+ if (message.cardio != null && Object.hasOwnProperty.call(message, "cardio"))
5051
5316
  object.cardio = $root.presage.smartspectra.Cardio.toObject(message.cardio, options, q + 1);
5052
5317
  return object;
5053
5318
  };
@@ -5189,7 +5454,17 @@ $root.presage = (function() {
5189
5454
  long = 0;
5190
5455
  if (long > $Reader.recursionLimit)
5191
5456
  throw Error("maximum nesting depth exceeded");
5192
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.presage.smartspectra.Point2dInt32();
5457
+ var end, message;
5458
+ if (length === undefined)
5459
+ end = reader.len;
5460
+ else {
5461
+ end = reader.pos + length;
5462
+ if (end > reader.len)
5463
+ throw RangeError("index out of range");
5464
+ length = reader.len;
5465
+ reader.len = end;
5466
+ }
5467
+ message = new $root.presage.smartspectra.Point2dInt32();
5193
5468
  while (reader.pos < end) {
5194
5469
  var tag = reader.uint32();
5195
5470
  if (tag === error)
@@ -5208,6 +5483,11 @@ $root.presage = (function() {
5208
5483
  break;
5209
5484
  }
5210
5485
  }
5486
+ if (length !== undefined) {
5487
+ if (reader.pos !== end)
5488
+ throw RangeError("index out of range");
5489
+ reader.len = length;
5490
+ }
5211
5491
  return message;
5212
5492
  };
5213
5493
 
@@ -5242,10 +5522,10 @@ $root.presage = (function() {
5242
5522
  long = 0;
5243
5523
  if (long > $util.recursionLimit)
5244
5524
  return "maximum nesting depth exceeded";
5245
- if (message.x != null && message.hasOwnProperty("x"))
5525
+ if (message.x != null && Object.hasOwnProperty.call(message, "x"))
5246
5526
  if (!$util.isInteger(message.x))
5247
5527
  return "x: integer expected";
5248
- if (message.y != null && message.hasOwnProperty("y"))
5528
+ if (message.y != null && Object.hasOwnProperty.call(message, "y"))
5249
5529
  if (!$util.isInteger(message.y))
5250
5530
  return "y: integer expected";
5251
5531
  return null;
@@ -5297,9 +5577,9 @@ $root.presage = (function() {
5297
5577
  object.x = 0;
5298
5578
  object.y = 0;
5299
5579
  }
5300
- if (message.x != null && message.hasOwnProperty("x"))
5580
+ if (message.x != null && Object.hasOwnProperty.call(message, "x"))
5301
5581
  object.x = message.x;
5302
- if (message.y != null && message.hasOwnProperty("y"))
5582
+ if (message.y != null && Object.hasOwnProperty.call(message, "y"))
5303
5583
  object.y = message.y;
5304
5584
  return object;
5305
5585
  };
@@ -5441,7 +5721,17 @@ $root.presage = (function() {
5441
5721
  long = 0;
5442
5722
  if (long > $Reader.recursionLimit)
5443
5723
  throw Error("maximum nesting depth exceeded");
5444
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.presage.smartspectra.Point2dFloat();
5724
+ var end, message;
5725
+ if (length === undefined)
5726
+ end = reader.len;
5727
+ else {
5728
+ end = reader.pos + length;
5729
+ if (end > reader.len)
5730
+ throw RangeError("index out of range");
5731
+ length = reader.len;
5732
+ reader.len = end;
5733
+ }
5734
+ message = new $root.presage.smartspectra.Point2dFloat();
5445
5735
  while (reader.pos < end) {
5446
5736
  var tag = reader.uint32();
5447
5737
  if (tag === error)
@@ -5460,6 +5750,11 @@ $root.presage = (function() {
5460
5750
  break;
5461
5751
  }
5462
5752
  }
5753
+ if (length !== undefined) {
5754
+ if (reader.pos !== end)
5755
+ throw RangeError("index out of range");
5756
+ reader.len = length;
5757
+ }
5463
5758
  return message;
5464
5759
  };
5465
5760
 
@@ -5494,10 +5789,10 @@ $root.presage = (function() {
5494
5789
  long = 0;
5495
5790
  if (long > $util.recursionLimit)
5496
5791
  return "maximum nesting depth exceeded";
5497
- if (message.x != null && message.hasOwnProperty("x"))
5792
+ if (message.x != null && Object.hasOwnProperty.call(message, "x"))
5498
5793
  if (typeof message.x !== "number")
5499
5794
  return "x: number expected";
5500
- if (message.y != null && message.hasOwnProperty("y"))
5795
+ if (message.y != null && Object.hasOwnProperty.call(message, "y"))
5501
5796
  if (typeof message.y !== "number")
5502
5797
  return "y: number expected";
5503
5798
  return null;
@@ -5549,9 +5844,9 @@ $root.presage = (function() {
5549
5844
  object.x = 0;
5550
5845
  object.y = 0;
5551
5846
  }
5552
- if (message.x != null && message.hasOwnProperty("x"))
5847
+ if (message.x != null && Object.hasOwnProperty.call(message, "x"))
5553
5848
  object.x = options.json && !isFinite(message.x) ? String(message.x) : message.x;
5554
- if (message.y != null && message.hasOwnProperty("y"))
5849
+ if (message.y != null && Object.hasOwnProperty.call(message, "y"))
5555
5850
  object.y = options.json && !isFinite(message.y) ? String(message.y) : message.y;
5556
5851
  return object;
5557
5852
  };
@@ -5704,7 +5999,17 @@ $root.presage = (function() {
5704
5999
  long = 0;
5705
6000
  if (long > $Reader.recursionLimit)
5706
6001
  throw Error("maximum nesting depth exceeded");
5707
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.presage.smartspectra.Point3dFloat();
6002
+ var end, message;
6003
+ if (length === undefined)
6004
+ end = reader.len;
6005
+ else {
6006
+ end = reader.pos + length;
6007
+ if (end > reader.len)
6008
+ throw RangeError("index out of range");
6009
+ length = reader.len;
6010
+ reader.len = end;
6011
+ }
6012
+ message = new $root.presage.smartspectra.Point3dFloat();
5708
6013
  while (reader.pos < end) {
5709
6014
  var tag = reader.uint32();
5710
6015
  if (tag === error)
@@ -5727,6 +6032,11 @@ $root.presage = (function() {
5727
6032
  break;
5728
6033
  }
5729
6034
  }
6035
+ if (length !== undefined) {
6036
+ if (reader.pos !== end)
6037
+ throw RangeError("index out of range");
6038
+ reader.len = length;
6039
+ }
5730
6040
  return message;
5731
6041
  };
5732
6042
 
@@ -5761,13 +6071,13 @@ $root.presage = (function() {
5761
6071
  long = 0;
5762
6072
  if (long > $util.recursionLimit)
5763
6073
  return "maximum nesting depth exceeded";
5764
- if (message.x != null && message.hasOwnProperty("x"))
6074
+ if (message.x != null && Object.hasOwnProperty.call(message, "x"))
5765
6075
  if (typeof message.x !== "number")
5766
6076
  return "x: number expected";
5767
- if (message.y != null && message.hasOwnProperty("y"))
6077
+ if (message.y != null && Object.hasOwnProperty.call(message, "y"))
5768
6078
  if (typeof message.y !== "number")
5769
6079
  return "y: number expected";
5770
- if (message.z != null && message.hasOwnProperty("z"))
6080
+ if (message.z != null && Object.hasOwnProperty.call(message, "z"))
5771
6081
  if (typeof message.z !== "number")
5772
6082
  return "z: number expected";
5773
6083
  return null;
@@ -5822,11 +6132,11 @@ $root.presage = (function() {
5822
6132
  object.y = 0;
5823
6133
  object.z = 0;
5824
6134
  }
5825
- if (message.x != null && message.hasOwnProperty("x"))
6135
+ if (message.x != null && Object.hasOwnProperty.call(message, "x"))
5826
6136
  object.x = options.json && !isFinite(message.x) ? String(message.x) : message.x;
5827
- if (message.y != null && message.hasOwnProperty("y"))
6137
+ if (message.y != null && Object.hasOwnProperty.call(message, "y"))
5828
6138
  object.y = options.json && !isFinite(message.y) ? String(message.y) : message.y;
5829
- if (message.z != null && message.hasOwnProperty("z"))
6139
+ if (message.z != null && Object.hasOwnProperty.call(message, "z"))
5830
6140
  object.z = options.json && !isFinite(message.z) ? String(message.z) : message.z;
5831
6141
  return object;
5832
6142
  };