@nsshunt/stsobservability 1.0.34 → 1.0.35

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.
@@ -21,7 +21,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
21
21
  }
22
22
  });
23
23
 
24
- var _a, _label, _options, _data, _interval, _timeoutComputeVelocity, _lastVelocity, _delta, _maxVelocity, _timerInterval, _copy, _velocity, _velocityVal, _valStack, _averageValStack, _maxAverageValStack, _maxAverageIterations, _valStackMaxLength, _valStackAverage, _timeStamp, _maxTimeDiff, _vaTimeDiff, _velocityTimeDiff, _autoComputeVelocity, _autoComputeVelocityTimeout, _countDiff, _timeDiff, _deltaCountDiff, _deltaTimeDif, _minTimeForReporting, _averageVelocity, _InstrumentVelocity_instances, ComputeVelocityByTimeDiff_fn, ComputeVelocity_fn, SetupAutoComputeVelocity_fn, GetVelocityStackAverage_fn, GetVal_fn, SetVal_fn, GetVelocity_fn, GetMaxVelocity_fn, GetDelta_fn, GetTimeStamp_fn, GetCountDiff_fn, GetTimeDiff_fn, GetDeltaCountDiff_fn, GetDeltaTimeDif_fn, GetAverageVelocity_fn, _histogramData, _val, _copy2, _InstrumentHistogram_instances, GetVal_fn2, SetVal_fn2, GetHistogramData_fn, SetHistogramData_fn, _messages, _readPos, _maxSize, _copy3, _useLatestMessages, _consoleLogging, _instrumentLogging, _winstonLogging, _stsLogger, _InstrumentLog_instances, DumpToConsole_fn, GetVal_fn3, SetVal_fn3, _start, _copy4, _pauseVal, _InstrumentTimerGauge_instances, GetVal_fn4, SetVal_fn4, convertMS_fn, _val2, _maxval, _lastObservedValue, _timeSeriesList, _maxSampleSize, _timerInterval2, _observer, _min, _max, _observations, _total, _copy5, _InstrumentGauge_instances, GetVal_fn5, SetVal_fn5, GetMin_fn, GetMax_fn, GetAverage_fn, GetAndResetMaxVal_fn, NumberCompare_fn, GetPercentileData_fn, _val3, _copy6, _InstrumentObject_instances, GetVal_fn6, SetVal_fn6, _tinyEmitter, _RequestCompleted, _instruments, _inPublish, _observer2, _publishState, _PublishInstrumentController_instances, GetInstrument_fn, ProcessTelemetryCommand_fn, CreateInstrument_fn, CreateInstruments_fn, GetPayloadData_fn, PublishTimeoutLoop_fn, UpdateState_fn, _httpsAgent, _kafkaLog, _maxLogLength, _socketSubscribeKeepAlive, _options2, _ObservabilityRESTAPISubscriber_instances, LogDebugMessage_fn, LogErrorMessage_fn, InvokeRESTAPI_fn, _GetData, SetupTimeout_fn, AddKeepAlive_fn, RemoveKeepAlive_fn, _messageWithAckPayloadRecords, _socket, _maxReties, _timeoutValue, _options3, _SocketIoMessageSender_instances, LogDebugMessage_fn2, GetSubscribeKeepAliveAckEventName_fn, _socketSubscribeKeepAlive2, _socket2, _options4, _socketIoMessageSender, _ObservabilitySocketIOSubscriber_instances, LogDebugMessage_fn3, LogErrorMessage_fn2, AddKeepAlive_fn2, RemoveKeepAlive_fn2, _observabilitySocketIOSubscriber, _subscriptions, _kafkaHelper, _serviceModel, _agentModel, _lambdaModel, _options5, _ObservabilitySubscriptionManager_instances, LogDebugMessage_fn4, LogErrorMessage_fn3, _options6, _sockets, _httpsAgent2, _SocketIoClientHelper_instances, LogDebugMessage_fn5, LogErrorMessage_fn4, EstablishSocketConnect_fn;
24
+ var _a, _label, _options, _data, _val, _interval, _timeoutComputeVelocity, _lastVelocity, _delta, _maxVelocity, _timerInterval, _copy, _velocity, _velocityVal, _valStack, _averageValStack, _maxAverageValStack, _maxAverageIterations, _valStackMaxLength, _valStackAverage, _timeStamp, _maxTimeDiff, _vaTimeDiff, _velocityTimeDiff, _autoComputeVelocity, _autoComputeVelocityTimeout, _countDiff, _timeDiff, _deltaCountDiff, _deltaTimeDif, _minTimeForReporting, _averageVelocity, _InstrumentVelocity_instances, ComputeVelocityByTimeDiff_fn, ComputeVelocity_fn, SetupAutoComputeVelocity_fn, GetVelocityStackAverage_fn, GetVal_fn, SetVal_fn, GetVelocity_fn, GetMaxVelocity_fn, GetDelta_fn, GetTimeStamp_fn, GetCountDiff_fn, GetTimeDiff_fn, GetDeltaCountDiff_fn, GetDeltaTimeDif_fn, GetAverageVelocity_fn, _histogramData, _val2, _copy2, _InstrumentHistogram_instances, GetVal_fn2, SetVal_fn2, GetHistogramData_fn, SetHistogramData_fn, _messages, _readPos, _maxSize, _copy3, _useLatestMessages, _consoleLogging, _instrumentLogging, _winstonLogging, _stsLogger, _InstrumentLog_instances, DumpToConsole_fn, GetVal_fn3, SetVal_fn3, _start, _copy4, _pauseVal, _InstrumentTimerGauge_instances, GetVal_fn4, SetVal_fn4, _val3, _maxval, _lastObservedValue, _timeSeriesList, _maxSampleSize, _timerInterval2, _observer, _min, _max, _observations, _total, _copy5, _InstrumentGauge_instances, GetVal_fn5, SetVal_fn5, GetMin_fn, GetMax_fn, GetAverage_fn, GetAndResetMaxVal_fn, NumberCompare_fn, GetPercentileData_fn, _val4, _copy6, _InstrumentObject_instances, GetVal_fn6, SetVal_fn6, _tinyEmitter, _RequestCompleted, _instruments, _inPublish, _observer2, _publishState, _PublishInstrumentController_instances, GetInstrument_fn, ProcessTelemetryCommand_fn, CreateInstrument_fn, CreateInstruments_fn, GetPayloadData_fn, PublishTimeoutLoop_fn, UpdateState_fn, _httpsAgent, _kafkaLog, _maxLogLength, _socketSubscribeKeepAlive, _options2, _ObservabilityRESTAPISubscriber_instances, LogDebugMessage_fn, LogErrorMessage_fn, InvokeRESTAPI_fn, _GetData, SetupTimeout_fn, AddKeepAlive_fn, RemoveKeepAlive_fn, _messageWithAckPayloadRecords, _socket, _maxReties, _timeoutValue, _options3, _SocketIoMessageSender_instances, LogDebugMessage_fn2, GetSubscribeKeepAliveAckEventName_fn, _socketSubscribeKeepAlive2, _socket2, _options4, _socketIoMessageSender, _ObservabilitySocketIOSubscriber_instances, LogDebugMessage_fn3, LogErrorMessage_fn2, AddKeepAlive_fn2, RemoveKeepAlive_fn2, _observabilitySocketIOSubscriber, _subscriptions, _kafkaHelper, _serviceModel, _agentModel, _lambdaModel, _options5, _ObservabilitySubscriptionManager_instances, LogDebugMessage_fn4, LogErrorMessage_fn3, _options6, _sockets, _httpsAgent2, _SocketIoClientHelper_instances, LogDebugMessage_fn5, LogErrorMessage_fn4, EstablishSocketConnect_fn;
25
25
  var Gauge = /* @__PURE__ */ ((Gauge2) => {
26
26
  Gauge2["ACTIVE_REQUEST_GAUGE"] = "a";
27
27
  Gauge2["AUTHENTICATION_COUNT_GAUGE"] = "b";
@@ -192,9 +192,11 @@ var __privateWrapper = (obj, member, setter, getter) => ({
192
192
  constructor(options = {}) {
193
193
  super(options);
194
194
  __privateAdd(this, _InstrumentVelocity_instances);
195
- //#val = 0;
195
+ // eslint-disable-next-line no-unused-private-class-members
196
+ __privateAdd(this, _val, 0);
196
197
  __privateAdd(this, _interval, null);
197
198
  __privateAdd(this, _timeoutComputeVelocity, null);
199
+ // eslint-disable-next-line no-unused-private-class-members
198
200
  __privateAdd(this, _lastVelocity, 0);
199
201
  __privateAdd(this, _delta, 0);
200
202
  __privateAdd(this, _maxVelocity, 0);
@@ -206,6 +208,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
206
208
  __privateAdd(this, _averageValStack, []);
207
209
  __privateAdd(this, _maxAverageValStack, 0);
208
210
  __privateAdd(this, _maxAverageIterations, 0);
211
+ // eslint-disable-next-line no-unused-private-class-members
209
212
  __privateAdd(this, _valStackMaxLength, 0);
210
213
  __privateAdd(this, _valStackAverage, 0);
211
214
  __privateAdd(this, _timeStamp, 0);
@@ -381,16 +384,16 @@ var __privateWrapper = (obj, member, setter, getter) => ({
381
384
  __privateSet(this, _interval, setInterval(() => {
382
385
  __privateMethod(this, _InstrumentVelocity_instances, ComputeVelocity_fn).call(this);
383
386
  let pushVal = __privateGet(this, _velocity);
384
- for (let i = 0; i < __privateGet(this, _maxAverageIterations); i++) {
385
- if (!__privateGet(this, _averageValStack)[i]) {
386
- __privateGet(this, _averageValStack)[i] = [];
387
+ for (let i2 = 0; i2 < __privateGet(this, _maxAverageIterations); i2++) {
388
+ if (!__privateGet(this, _averageValStack)[i2]) {
389
+ __privateGet(this, _averageValStack)[i2] = [];
387
390
  }
388
- __privateGet(this, _averageValStack)[i].push(pushVal);
389
- if (__privateGet(this, _averageValStack)[i].length > __privateGet(this, _maxAverageValStack)) {
390
- __privateGet(this, _averageValStack)[i].shift();
391
+ __privateGet(this, _averageValStack)[i2].push(pushVal);
392
+ if (__privateGet(this, _averageValStack)[i2].length > __privateGet(this, _maxAverageValStack)) {
393
+ __privateGet(this, _averageValStack)[i2].shift();
391
394
  }
392
- pushVal = __privateGet(this, _averageValStack)[i].reduce((prev, current) => prev + current) / __privateGet(this, _averageValStack)[i].length;
393
- __privateGet(this, _averageVelocity)[i] = pushVal;
395
+ pushVal = __privateGet(this, _averageValStack)[i2].reduce((prev, current) => prev + current) / __privateGet(this, _averageValStack)[i2].length;
396
+ __privateGet(this, _averageVelocity)[i2] = pushVal;
394
397
  }
395
398
  }, __privateGet(this, _timerInterval)));
396
399
  if (isNode) {
@@ -420,6 +423,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
420
423
  }
421
424
  }
422
425
  }
426
+ _val = new WeakMap();
423
427
  _interval = new WeakMap();
424
428
  _timeoutComputeVelocity = new WeakMap();
425
429
  _lastVelocity = new WeakMap();
@@ -459,15 +463,15 @@ var __privateWrapper = (obj, member, setter, getter) => ({
459
463
  const dp = __privateGet(this, _valStack)[__privateGet(this, _valStack).length - 1];
460
464
  let timeDiffPos = -1;
461
465
  let deltaDiffPos = -1;
462
- for (let i = __privateGet(this, _valStack).length - 2; i > -1; i--) {
463
- if (timeDiffPos === -1 && __privateGet(this, _timeStamp) - __privateGet(this, _valStack)[i].timeStamp >= checkTimeDiff) {
464
- timeDiffPos = i;
466
+ for (let i2 = __privateGet(this, _valStack).length - 2; i2 > -1; i2--) {
467
+ if (timeDiffPos === -1 && __privateGet(this, _timeStamp) - __privateGet(this, _valStack)[i2].timeStamp >= checkTimeDiff) {
468
+ timeDiffPos = i2;
465
469
  if (checkDeltaTimeDiff === 0) {
466
470
  break;
467
471
  }
468
472
  }
469
- if (deltaDiffPos === -1 && __privateGet(this, _timeStamp) - __privateGet(this, _valStack)[i].timeStamp >= checkDeltaTimeDiff) {
470
- deltaDiffPos = i;
473
+ if (deltaDiffPos === -1 && __privateGet(this, _timeStamp) - __privateGet(this, _valStack)[i2].timeStamp >= checkDeltaTimeDiff) {
474
+ deltaDiffPos = i2;
471
475
  }
472
476
  if (timeDiffPos !== -1 && deltaDiffPos !== -1) {
473
477
  break;
@@ -611,7 +615,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
611
615
  super(options);
612
616
  __privateAdd(this, _InstrumentHistogram_instances);
613
617
  __privateAdd(this, _histogramData, []);
614
- __privateAdd(this, _val, 0);
618
+ __privateAdd(this, _val2, 0);
615
619
  __privateAdd(this, _copy2, false);
616
620
  __publicField(this, "hist", []);
617
621
  __publicField(this, "val", 0);
@@ -643,8 +647,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
643
647
  ]);
644
648
  } else if (Array.isArray(histogramData)) {
645
649
  __privateSet(this, _histogramData, []);
646
- for (let i = 0; i < histogramData.length; i++) {
647
- __privateGet(this, _histogramData).push([0, "" + histogramData[i], parseFloat(histogramData[i].toString())]);
650
+ for (let i2 = 0; i2 < histogramData.length; i2++) {
651
+ __privateGet(this, _histogramData).push([0, "" + histogramData[i2], parseFloat(histogramData[i2].toString())]);
648
652
  }
649
653
  __privateGet(this, _histogramData).push([0, "EE", 0]);
650
654
  } else {
@@ -676,41 +680,41 @@ var __privateWrapper = (obj, member, setter, getter) => ({
676
680
  });
677
681
  }
678
682
  if (typeof options.initValue !== "undefined") {
679
- __privateSet(this, _val, options.initValue);
683
+ __privateSet(this, _val2, options.initValue);
680
684
  }
681
685
  if (typeof options.fromJSON !== "undefined") {
682
686
  const result = _cloneDeep(options.fromJSON);
683
- __privateSet(this, _val, result.val);
687
+ __privateSet(this, _val2, result.val);
684
688
  this.hist = result.hist;
685
689
  }
686
690
  }
687
691
  WithInitVal(initVal) {
688
- __privateSet(this, _val, initVal);
692
+ __privateSet(this, _val2, initVal);
689
693
  return this;
690
694
  }
691
695
  ResetHistogramData() {
692
- for (let i = 0; i < this.hist.length; i++) {
693
- this.hist[i][0] = 0;
696
+ for (let i2 = 0; i2 < this.hist.length; i2++) {
697
+ this.hist[i2][0] = 0;
694
698
  }
695
699
  }
696
700
  AddObservation(updateValue) {
697
701
  if (__privateGet(this, _copy2)) {
698
702
  throw new Error("Cannot add observations from the copy version of this class.");
699
703
  }
700
- let i = 0;
701
- for (; i < __privateGet(this, _histogramData).length - 1; i++) {
702
- if (updateValue <= __privateGet(this, _histogramData)[i][
704
+ let i2 = 0;
705
+ for (; i2 < __privateGet(this, _histogramData).length - 1; i2++) {
706
+ if (updateValue <= __privateGet(this, _histogramData)[i2][
703
707
  2
704
708
  /* breakPoint */
705
709
  ]) {
706
- __privateGet(this, _histogramData)[i][
710
+ __privateGet(this, _histogramData)[i2][
707
711
  0
708
712
  /* val */
709
713
  ]++;
710
714
  return;
711
715
  }
712
716
  }
713
- __privateGet(this, _histogramData)[i][
717
+ __privateGet(this, _histogramData)[i2][
714
718
  0
715
719
  /* val */
716
720
  ]++;
@@ -718,11 +722,11 @@ var __privateWrapper = (obj, member, setter, getter) => ({
718
722
  get formattedHistogramData() {
719
723
  let retVal = "";
720
724
  let sep = "";
721
- for (let i = 0; i < this.hist.length; i++) {
722
- retVal += sep + "[" + (this.hist[i][
725
+ for (let i2 = 0; i2 < this.hist.length; i2++) {
726
+ retVal += sep + "[" + (this.hist[i2][
723
727
  0
724
728
  /* val */
725
- ] + "/" + this.hist[i][
729
+ ] + "/" + this.hist[i2][
726
730
  1
727
731
  /* label */
728
732
  ]).padStart(10, " ") + "]";
@@ -740,29 +744,29 @@ var __privateWrapper = (obj, member, setter, getter) => ({
740
744
  if (histogramAData.length !== histogramBData.length) {
741
745
  throw new Error("Invalid HistogramData. HistogramData bucket lengths must be the same.");
742
746
  }
743
- for (let i = 0; i < histogramAData.length; i++) {
744
- if (histogramAData[i][
747
+ for (let i2 = 0; i2 < histogramAData.length; i2++) {
748
+ if (histogramAData[i2][
745
749
  2
746
750
  /* breakPoint */
747
- ] !== histogramBData[i][
751
+ ] !== histogramBData[i2][
748
752
  2
749
753
  /* breakPoint */
750
754
  ]) {
751
- throw new Error(`Invalid HistogramData. HistogramData bucket break-point at index [${i}] must be the same.`);
755
+ throw new Error(`Invalid HistogramData. HistogramData bucket break-point at index [${i2}] must be the same.`);
752
756
  }
753
- if (histogramAData[i][
757
+ if (histogramAData[i2][
754
758
  1
755
759
  /* label */
756
- ] !== histogramBData[i][
760
+ ] !== histogramBData[i2][
757
761
  1
758
762
  /* label */
759
763
  ]) {
760
- throw new Error(`Invalid HistogramData. HistogramData bucket label at index [${i}] must be the same.`);
764
+ throw new Error(`Invalid HistogramData. HistogramData bucket label at index [${i2}] must be the same.`);
761
765
  }
762
- histogramAData[i][
766
+ histogramAData[i2][
763
767
  0
764
768
  /* val */
765
- ] += histogramBData[i][
769
+ ] += histogramBData[i2][
766
770
  0
767
771
  /* val */
768
772
  ];
@@ -780,29 +784,29 @@ var __privateWrapper = (obj, member, setter, getter) => ({
780
784
  if (this.hist.length !== histogramData.hist.length) {
781
785
  throw new Error("Invalid HistogramData. HistogramData bucket lengths must be the same.");
782
786
  }
783
- for (let i = 0; i < histogramData.hist.length; i++) {
784
- if (this.hist[i][
787
+ for (let i2 = 0; i2 < histogramData.hist.length; i2++) {
788
+ if (this.hist[i2][
785
789
  2
786
790
  /* breakPoint */
787
- ] !== histogramData.hist[i][
791
+ ] !== histogramData.hist[i2][
788
792
  2
789
793
  /* breakPoint */
790
794
  ]) {
791
- throw new Error(`Invalid HistogramData. HistogramData bucket break-point at index [${i}] must be the same.`);
795
+ throw new Error(`Invalid HistogramData. HistogramData bucket break-point at index [${i2}] must be the same.`);
792
796
  }
793
- if (this.hist[i][
797
+ if (this.hist[i2][
794
798
  1
795
799
  /* label */
796
- ] !== histogramData.hist[i][
800
+ ] !== histogramData.hist[i2][
797
801
  1
798
802
  /* label */
799
803
  ]) {
800
- throw new Error(`Invalid HistogramData. HistogramData bucket label at index [${i}] must be the same.`);
804
+ throw new Error(`Invalid HistogramData. HistogramData bucket label at index [${i2}] must be the same.`);
801
805
  }
802
- this.hist[i][
806
+ this.hist[i2][
803
807
  0
804
808
  /* val */
805
- ] += histogramData.hist[i][
809
+ ] += histogramData.hist[i2][
806
810
  0
807
811
  /* val */
808
812
  ];
@@ -815,14 +819,14 @@ var __privateWrapper = (obj, member, setter, getter) => ({
815
819
  }
816
820
  }
817
821
  _histogramData = new WeakMap();
818
- _val = new WeakMap();
822
+ _val2 = new WeakMap();
819
823
  _copy2 = new WeakMap();
820
824
  _InstrumentHistogram_instances = new WeakSet();
821
825
  GetVal_fn2 = function() {
822
- return this.GetNumber(__privateGet(this, _val));
826
+ return this.GetNumber(__privateGet(this, _val2));
823
827
  };
824
828
  SetVal_fn2 = function(value) {
825
- __privateSet(this, _val, value);
829
+ __privateSet(this, _val2, value);
826
830
  this.AddObservation(value);
827
831
  };
828
832
  GetHistogramData_fn = function() {
@@ -966,8 +970,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
966
970
  __privateSet(this, _instrumentLogging, value);
967
971
  }
968
972
  Append(messageArray) {
969
- for (let i = 0; i < messageArray.length; i++) {
970
- this.LogMessage(messageArray[i]);
973
+ for (let i2 = 0; i2 < messageArray.length; i2++) {
974
+ this.LogMessage(messageArray[i2]);
971
975
  }
972
976
  }
973
977
  error(message) {
@@ -1047,8 +1051,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
1047
1051
  _InstrumentLog_instances = new WeakSet();
1048
1052
  DumpToConsole_fn = function() {
1049
1053
  const logReport = this.GetMessagesSinceLastRead();
1050
- for (let i = 0; i < logReport.length; i++) {
1051
- console.log(logReport[i]);
1054
+ for (let i2 = 0; i2 < logReport.length; i2++) {
1055
+ console.log(logReport[i2]);
1052
1056
  }
1053
1057
  };
1054
1058
  GetVal_fn3 = function() {
@@ -1139,6 +1143,22 @@ var __privateWrapper = (obj, member, setter, getter) => ({
1139
1143
  get start() {
1140
1144
  return __privateGet(this, _start);
1141
1145
  }
1146
+ /*
1147
+ #convertMS(ms: number): string {
1148
+ //let d, h, m, s;
1149
+ let s = Math.floor(ms / 1000);
1150
+ let m = Math.floor(s / 60);
1151
+ s = s % 60;
1152
+ let h = Math.floor(m / 60);
1153
+ m = m % 60;
1154
+ const d = Math.floor(h / 24);
1155
+ h = h % 24;
1156
+
1157
+ const pad: (n: number) => string = function(n: number) { return n < 10 ? '0' + n : n.toString(); };
1158
+
1159
+ return (d + '.' + pad(h) + ':' + pad(m) + ':' + pad(s)).padStart(12);
1160
+ }
1161
+ */
1142
1162
  ProcessTelemetry(telemetry) {
1143
1163
  if (telemetry.val) {
1144
1164
  this.val = telemetry.val;
@@ -1175,19 +1195,6 @@ var __privateWrapper = (obj, member, setter, getter) => ({
1175
1195
  __privateSet(this, _start, performance.now() - updatedValue);
1176
1196
  }
1177
1197
  };
1178
- convertMS_fn = function(ms) {
1179
- let s = Math.floor(ms / 1e3);
1180
- let m = Math.floor(s / 60);
1181
- s = s % 60;
1182
- let h = Math.floor(m / 60);
1183
- m = m % 60;
1184
- const d = Math.floor(h / 24);
1185
- h = h % 24;
1186
- const pad = function(n) {
1187
- return n < 10 ? "0" + n : n.toString();
1188
- };
1189
- return (d + "." + pad(h) + ":" + pad(m) + ":" + pad(s)).padStart(12);
1190
- };
1191
1198
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
1192
1199
  function getDefaultExportFromCjs(x) {
1193
1200
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
@@ -1477,17 +1484,17 @@ var __privateWrapper = (obj, member, setter, getter) => ({
1477
1484
  this.mergeAt(n);
1478
1485
  }
1479
1486
  };
1480
- TimSort2.prototype.mergeAt = function mergeAt(i) {
1487
+ TimSort2.prototype.mergeAt = function mergeAt(i2) {
1481
1488
  var compare = this.compare;
1482
1489
  var array = this.array;
1483
- var start1 = this.runStart[i];
1484
- var length1 = this.runLength[i];
1485
- var start2 = this.runStart[i + 1];
1486
- var length2 = this.runLength[i + 1];
1487
- this.runLength[i] = length1 + length2;
1488
- if (i === this.stackSize - 3) {
1489
- this.runStart[i + 1] = this.runStart[i + 2];
1490
- this.runLength[i + 1] = this.runLength[i + 2];
1490
+ var start1 = this.runStart[i2];
1491
+ var length1 = this.runLength[i2];
1492
+ var start2 = this.runStart[i2 + 1];
1493
+ var length2 = this.runLength[i2 + 1];
1494
+ this.runLength[i2] = length1 + length2;
1495
+ if (i2 === this.stackSize - 3) {
1496
+ this.runStart[i2 + 1] = this.runStart[i2 + 2];
1497
+ this.runLength[i2 + 1] = this.runLength[i2 + 2];
1491
1498
  }
1492
1499
  this.stackSize--;
1493
1500
  var k = gallopRight(array[start2], array, start1, length1, 0, compare);
@@ -1510,23 +1517,23 @@ var __privateWrapper = (obj, member, setter, getter) => ({
1510
1517
  var compare = this.compare;
1511
1518
  var array = this.array;
1512
1519
  var tmp = this.tmp;
1513
- var i = 0;
1514
- for (i = 0; i < length1; i++) {
1515
- tmp[i] = array[start1 + i];
1520
+ var i2 = 0;
1521
+ for (i2 = 0; i2 < length1; i2++) {
1522
+ tmp[i2] = array[start1 + i2];
1516
1523
  }
1517
1524
  var cursor1 = 0;
1518
1525
  var cursor2 = start2;
1519
1526
  var dest = start1;
1520
1527
  array[dest++] = array[cursor2++];
1521
1528
  if (--length2 === 0) {
1522
- for (i = 0; i < length1; i++) {
1523
- array[dest + i] = tmp[cursor1 + i];
1529
+ for (i2 = 0; i2 < length1; i2++) {
1530
+ array[dest + i2] = tmp[cursor1 + i2];
1524
1531
  }
1525
1532
  return;
1526
1533
  }
1527
1534
  if (length1 === 1) {
1528
- for (i = 0; i < length2; i++) {
1529
- array[dest + i] = array[cursor2 + i];
1535
+ for (i2 = 0; i2 < length2; i2++) {
1536
+ array[dest + i2] = array[cursor2 + i2];
1530
1537
  }
1531
1538
  array[dest + length2] = tmp[cursor1];
1532
1539
  return;
@@ -1561,8 +1568,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
1561
1568
  do {
1562
1569
  count1 = gallopRight(array[cursor2], tmp, cursor1, length1, 0, compare);
1563
1570
  if (count1 !== 0) {
1564
- for (i = 0; i < count1; i++) {
1565
- array[dest + i] = tmp[cursor1 + i];
1571
+ for (i2 = 0; i2 < count1; i2++) {
1572
+ array[dest + i2] = tmp[cursor1 + i2];
1566
1573
  }
1567
1574
  dest += count1;
1568
1575
  cursor1 += count1;
@@ -1579,8 +1586,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
1579
1586
  }
1580
1587
  count2 = gallopLeft(tmp[cursor1], array, cursor2, length2, 0, compare);
1581
1588
  if (count2 !== 0) {
1582
- for (i = 0; i < count2; i++) {
1583
- array[dest + i] = array[cursor2 + i];
1589
+ for (i2 = 0; i2 < count2; i2++) {
1590
+ array[dest + i2] = array[cursor2 + i2];
1584
1591
  }
1585
1592
  dest += count2;
1586
1593
  cursor2 += count2;
@@ -1610,15 +1617,15 @@ var __privateWrapper = (obj, member, setter, getter) => ({
1610
1617
  this.minGallop = 1;
1611
1618
  }
1612
1619
  if (length1 === 1) {
1613
- for (i = 0; i < length2; i++) {
1614
- array[dest + i] = array[cursor2 + i];
1620
+ for (i2 = 0; i2 < length2; i2++) {
1621
+ array[dest + i2] = array[cursor2 + i2];
1615
1622
  }
1616
1623
  array[dest + length2] = tmp[cursor1];
1617
1624
  } else if (length1 === 0) {
1618
1625
  throw new Error("mergeLow preconditions were not respected");
1619
1626
  } else {
1620
- for (i = 0; i < length1; i++) {
1621
- array[dest + i] = tmp[cursor1 + i];
1627
+ for (i2 = 0; i2 < length1; i2++) {
1628
+ array[dest + i2] = tmp[cursor1 + i2];
1622
1629
  }
1623
1630
  }
1624
1631
  };
@@ -1626,9 +1633,9 @@ var __privateWrapper = (obj, member, setter, getter) => ({
1626
1633
  var compare = this.compare;
1627
1634
  var array = this.array;
1628
1635
  var tmp = this.tmp;
1629
- var i = 0;
1630
- for (i = 0; i < length2; i++) {
1631
- tmp[i] = array[start2 + i];
1636
+ var i2 = 0;
1637
+ for (i2 = 0; i2 < length2; i2++) {
1638
+ tmp[i2] = array[start2 + i2];
1632
1639
  }
1633
1640
  var cursor1 = start1 + length1 - 1;
1634
1641
  var cursor2 = length2 - 1;
@@ -1638,8 +1645,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
1638
1645
  array[dest--] = array[cursor1--];
1639
1646
  if (--length1 === 0) {
1640
1647
  customCursor = dest - (length2 - 1);
1641
- for (i = 0; i < length2; i++) {
1642
- array[customCursor + i] = tmp[i];
1648
+ for (i2 = 0; i2 < length2; i2++) {
1649
+ array[customCursor + i2] = tmp[i2];
1643
1650
  }
1644
1651
  return;
1645
1652
  }
@@ -1648,8 +1655,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
1648
1655
  cursor1 -= length1;
1649
1656
  customDest = dest + 1;
1650
1657
  customCursor = cursor1 + 1;
1651
- for (i = length1 - 1; i >= 0; i--) {
1652
- array[customDest + i] = array[customCursor + i];
1658
+ for (i2 = length1 - 1; i2 >= 0; i2--) {
1659
+ array[customDest + i2] = array[customCursor + i2];
1653
1660
  }
1654
1661
  array[dest] = tmp[cursor2];
1655
1662
  return;
@@ -1689,8 +1696,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
1689
1696
  length1 -= count1;
1690
1697
  customDest = dest + 1;
1691
1698
  customCursor = cursor1 + 1;
1692
- for (i = count1 - 1; i >= 0; i--) {
1693
- array[customDest + i] = array[customCursor + i];
1699
+ for (i2 = count1 - 1; i2 >= 0; i2--) {
1700
+ array[customDest + i2] = array[customCursor + i2];
1694
1701
  }
1695
1702
  if (length1 === 0) {
1696
1703
  exit = true;
@@ -1709,8 +1716,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
1709
1716
  length2 -= count2;
1710
1717
  customDest = dest + 1;
1711
1718
  customCursor = cursor2 + 1;
1712
- for (i = 0; i < count2; i++) {
1713
- array[customDest + i] = tmp[customCursor + i];
1719
+ for (i2 = 0; i2 < count2; i2++) {
1720
+ array[customDest + i2] = tmp[customCursor + i2];
1714
1721
  }
1715
1722
  if (length2 <= 1) {
1716
1723
  exit = true;
@@ -1741,16 +1748,16 @@ var __privateWrapper = (obj, member, setter, getter) => ({
1741
1748
  cursor1 -= length1;
1742
1749
  customDest = dest + 1;
1743
1750
  customCursor = cursor1 + 1;
1744
- for (i = length1 - 1; i >= 0; i--) {
1745
- array[customDest + i] = array[customCursor + i];
1751
+ for (i2 = length1 - 1; i2 >= 0; i2--) {
1752
+ array[customDest + i2] = array[customCursor + i2];
1746
1753
  }
1747
1754
  array[dest] = tmp[cursor2];
1748
1755
  } else if (length2 === 0) {
1749
1756
  throw new Error("mergeHigh preconditions were not respected");
1750
1757
  } else {
1751
1758
  customCursor = dest - (length2 - 1);
1752
- for (i = 0; i < length2; i++) {
1753
- array[customCursor + i] = tmp[i];
1759
+ for (i2 = 0; i2 < length2; i2++) {
1760
+ array[customCursor + i2] = tmp[i2];
1754
1761
  }
1755
1762
  }
1756
1763
  };
@@ -1878,7 +1885,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
1878
1885
  constructor(options = {}) {
1879
1886
  super(options);
1880
1887
  __privateAdd(this, _InstrumentGauge_instances);
1881
- __privateAdd(this, _val2, 0);
1888
+ __privateAdd(this, _val3, 0);
1882
1889
  __privateAdd(this, _maxval, null);
1883
1890
  __privateAdd(this, _lastObservedValue, 0);
1884
1891
  __privateAdd(this, _timeSeriesList, []);
@@ -2017,7 +2024,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
2017
2024
  this.StopTimer();
2018
2025
  __privateSet(this, _maxval, 0);
2019
2026
  __privateSet(this, _lastObservedValue, 0);
2020
- __privateSet(this, _val2, 0);
2027
+ __privateSet(this, _val3, 0);
2021
2028
  __privateSet(this, _min, null);
2022
2029
  __privateSet(this, _max, 0);
2023
2030
  __privateSet(this, _observations, 0);
@@ -2027,10 +2034,10 @@ var __privateWrapper = (obj, member, setter, getter) => ({
2027
2034
  }
2028
2035
  }
2029
2036
  Inc(incVal = 1) {
2030
- __privateMethod(this, _InstrumentGauge_instances, SetVal_fn5).call(this, __privateGet(this, _val2) + incVal);
2037
+ __privateMethod(this, _InstrumentGauge_instances, SetVal_fn5).call(this, __privateGet(this, _val3) + incVal);
2031
2038
  }
2032
2039
  Dec(decVal = 1) {
2033
- __privateMethod(this, _InstrumentGauge_instances, SetVal_fn5).call(this, __privateGet(this, _val2) - decVal);
2040
+ __privateMethod(this, _InstrumentGauge_instances, SetVal_fn5).call(this, __privateGet(this, _val3) - decVal);
2034
2041
  }
2035
2042
  ProcessTelemetry(telemetry) {
2036
2043
  if (telemetry.Inc) {
@@ -2044,7 +2051,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
2044
2051
  }
2045
2052
  }
2046
2053
  }
2047
- _val2 = new WeakMap();
2054
+ _val3 = new WeakMap();
2048
2055
  _maxval = new WeakMap();
2049
2056
  _lastObservedValue = new WeakMap();
2050
2057
  _timeSeriesList = new WeakMap();
@@ -2069,28 +2076,28 @@ var __privateWrapper = (obj, member, setter, getter) => ({
2069
2076
  return this.GetNumber(__privateGet(this, _maxval));
2070
2077
  }
2071
2078
  }
2072
- return this.GetNumber(__privateGet(this, _val2));
2079
+ return this.GetNumber(__privateGet(this, _val3));
2073
2080
  };
2074
2081
  SetVal_fn5 = function(updatedValue) {
2075
- __privateSet(this, _val2, updatedValue);
2082
+ __privateSet(this, _val3, updatedValue);
2076
2083
  __privateWrapper(this, _observations)._++;
2077
2084
  __privateSet(this, _total, __privateGet(this, _total) + updatedValue);
2078
- if (__privateGet(this, _val2) > __privateGet(this, _max)) {
2079
- __privateSet(this, _max, __privateGet(this, _val2));
2085
+ if (__privateGet(this, _val3) > __privateGet(this, _max)) {
2086
+ __privateSet(this, _max, __privateGet(this, _val3));
2080
2087
  }
2081
2088
  if (__privateGet(this, _min) !== null) {
2082
- if (__privateGet(this, _val2) < __privateGet(this, _min)) {
2083
- __privateSet(this, _min, __privateGet(this, _val2));
2089
+ if (__privateGet(this, _val3) < __privateGet(this, _min)) {
2090
+ __privateSet(this, _min, __privateGet(this, _val3));
2084
2091
  }
2085
2092
  } else {
2086
- __privateSet(this, _min, __privateGet(this, _val2));
2093
+ __privateSet(this, _min, __privateGet(this, _val3));
2087
2094
  }
2088
2095
  if (__privateGet(this, _timerInterval2) > 0) {
2089
2096
  __privateSet(this, _lastObservedValue, updatedValue);
2090
2097
  if (__privateGet(this, _maxval) === null) {
2091
- __privateSet(this, _maxval, __privateGet(this, _val2));
2092
- } else if (__privateGet(this, _val2) > __privateGet(this, _maxval)) {
2093
- __privateSet(this, _maxval, __privateGet(this, _val2));
2098
+ __privateSet(this, _maxval, __privateGet(this, _val3));
2099
+ } else if (__privateGet(this, _val3) > __privateGet(this, _maxval)) {
2100
+ __privateSet(this, _maxval, __privateGet(this, _val3));
2094
2101
  }
2095
2102
  }
2096
2103
  };
@@ -2142,7 +2149,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
2142
2149
  constructor(options = {}) {
2143
2150
  super(options);
2144
2151
  __privateAdd(this, _InstrumentObject_instances);
2145
- __privateAdd(this, _val3, {});
2152
+ __privateAdd(this, _val4, {});
2146
2153
  __privateAdd(this, _copy6, false);
2147
2154
  __publicField(this, "val");
2148
2155
  if (typeof options.label === "undefined") {
@@ -2192,14 +2199,14 @@ var __privateWrapper = (obj, member, setter, getter) => ({
2192
2199
  }
2193
2200
  }
2194
2201
  }
2195
- _val3 = new WeakMap();
2202
+ _val4 = new WeakMap();
2196
2203
  _copy6 = new WeakMap();
2197
2204
  _InstrumentObject_instances = new WeakSet();
2198
2205
  GetVal_fn6 = function() {
2199
- return __privateGet(this, _val3);
2206
+ return __privateGet(this, _val4);
2200
2207
  };
2201
2208
  SetVal_fn6 = function(updatedValue) {
2202
- __privateSet(this, _val3, updatedValue);
2209
+ __privateSet(this, _val4, updatedValue);
2203
2210
  };
2204
2211
  function CreateInstrument(sourceInstrument) {
2205
2212
  switch (sourceInstrument[GaugeTypes.GAUGE_TYPE]) {
@@ -2425,7 +2432,6 @@ var __privateWrapper = (obj, member, setter, getter) => ({
2425
2432
  * @param {*} next
2426
2433
  * @returns
2427
2434
  */
2428
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
2429
2435
  __publicField(this, "Middleware", async (req, res, next) => {
2430
2436
  if (this.options.ignoresocketio && req.originalUrl.includes("socket.io")) {
2431
2437
  return;
@@ -2827,8 +2833,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
2827
2833
  }
2828
2834
  const t1 = 2 * l - t2;
2829
2835
  const rgb = [0, 0, 0];
2830
- for (let i = 0; i < 3; i++) {
2831
- t3 = h + 1 / 3 * -(i - 1);
2836
+ for (let i2 = 0; i2 < 3; i2++) {
2837
+ t3 = h + 1 / 3 * -(i2 - 1);
2832
2838
  if (t3 < 0) {
2833
2839
  t3++;
2834
2840
  }
@@ -2844,7 +2850,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
2844
2850
  } else {
2845
2851
  val = t1;
2846
2852
  }
2847
- rgb[i] = val * 255;
2853
+ rgb[i2] = val * 255;
2848
2854
  }
2849
2855
  return rgb;
2850
2856
  };
@@ -2911,17 +2917,17 @@ var __privateWrapper = (obj, member, setter, getter) => ({
2911
2917
  wh /= ratio;
2912
2918
  bl /= ratio;
2913
2919
  }
2914
- const i = Math.floor(6 * h);
2920
+ const i2 = Math.floor(6 * h);
2915
2921
  const v = 1 - bl;
2916
- f = 6 * h - i;
2917
- if ((i & 1) !== 0) {
2922
+ f = 6 * h - i2;
2923
+ if ((i2 & 1) !== 0) {
2918
2924
  f = 1 - f;
2919
2925
  }
2920
2926
  const n = wh + f * (v - wh);
2921
2927
  let r;
2922
2928
  let g;
2923
2929
  let b;
2924
- switch (i) {
2930
+ switch (i2) {
2925
2931
  default:
2926
2932
  case 6:
2927
2933
  case 0:
@@ -3303,8 +3309,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3303
3309
  function buildGraph() {
3304
3310
  const graph = {};
3305
3311
  const models = Object.keys(conversions2);
3306
- for (let len = models.length, i = 0; i < len; i++) {
3307
- graph[models[i]] = {
3312
+ for (let len = models.length, i2 = 0; i2 < len; i2++) {
3313
+ graph[models[i2]] = {
3308
3314
  // http://jsperf.com/1-vs-infinity
3309
3315
  // micro-opt, but this is simple.
3310
3316
  distance: -1,
@@ -3320,8 +3326,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3320
3326
  while (queue.length) {
3321
3327
  const current = queue.pop();
3322
3328
  const adjacents = Object.keys(conversions2[current]);
3323
- for (let len = adjacents.length, i = 0; i < len; i++) {
3324
- const adjacent = adjacents[i];
3329
+ for (let len = adjacents.length, i2 = 0; i2 < len; i2++) {
3330
+ const adjacent = adjacents[i2];
3325
3331
  const node = graph[adjacent];
3326
3332
  if (node.distance === -1) {
3327
3333
  node.distance = graph[current].distance + 1;
@@ -3353,8 +3359,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3353
3359
  const graph = deriveBFS(fromModel);
3354
3360
  const conversion = {};
3355
3361
  const models = Object.keys(graph);
3356
- for (let len = models.length, i = 0; i < len; i++) {
3357
- const toModel = models[i];
3362
+ for (let len = models.length, i2 = 0; i2 < len; i2++) {
3363
+ const toModel = models[i2];
3358
3364
  const node = graph[toModel];
3359
3365
  if (node.parent === null) {
3360
3366
  continue;
@@ -3401,8 +3407,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3401
3407
  }
3402
3408
  const result = fn(args);
3403
3409
  if (typeof result === "object") {
3404
- for (let len = result.length, i = 0; i < len; i++) {
3405
- result[i] = Math.round(result[i]);
3410
+ for (let len = result.length, i2 = 0; i2 < len; i2++) {
3411
+ result[i2] = Math.round(result[i2]);
3406
3412
  }
3407
3413
  }
3408
3414
  return result;
@@ -3870,10 +3876,10 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3870
3876
  }
3871
3877
  const arguments_ = strings.slice(1);
3872
3878
  const parts = [firstString.raw[0]];
3873
- for (let i = 1; i < firstString.length; i++) {
3879
+ for (let i2 = 1; i2 < firstString.length; i2++) {
3874
3880
  parts.push(
3875
- String(arguments_[i - 1]).replace(/[{}\\]/g, "\\$&"),
3876
- String(firstString.raw[i])
3881
+ String(arguments_[i2 - 1]).replace(/[{}\\]/g, "\\$&"),
3882
+ String(firstString.raw[i2])
3877
3883
  );
3878
3884
  }
3879
3885
  if (template === void 0) {
@@ -4474,22 +4480,22 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4474
4480
  }
4475
4481
  };
4476
4482
  ExtensionCodec2.prototype.tryToEncode = function(object, context) {
4477
- for (var i = 0; i < this.builtInEncoders.length; i++) {
4478
- var encodeExt = this.builtInEncoders[i];
4483
+ for (var i2 = 0; i2 < this.builtInEncoders.length; i2++) {
4484
+ var encodeExt = this.builtInEncoders[i2];
4479
4485
  if (encodeExt != null) {
4480
4486
  var data = encodeExt(object, context);
4481
4487
  if (data != null) {
4482
- var type = -1 - i;
4488
+ var type = -1 - i2;
4483
4489
  return new ExtData(type, data);
4484
4490
  }
4485
4491
  }
4486
4492
  }
4487
- for (var i = 0; i < this.encoders.length; i++) {
4488
- var encodeExt = this.encoders[i];
4493
+ for (var i2 = 0; i2 < this.encoders.length; i2++) {
4494
+ var encodeExt = this.encoders[i2];
4489
4495
  if (encodeExt != null) {
4490
4496
  var data = encodeExt(object, context);
4491
4497
  if (data != null) {
4492
- var type = i;
4498
+ var type = i2;
4493
4499
  return new ExtData(type, data);
4494
4500
  }
4495
4501
  }
@@ -5742,8 +5748,15 @@ var __privateWrapper = (obj, member, setter, getter) => ({
5742
5748
  delete __privateGet(this, _socketSubscribeKeepAlive)[subscription.subscriptionKey.id];
5743
5749
  }
5744
5750
  };
5745
- let getRandomValues;
5746
- const rnds8 = new Uint8Array(16);
5751
+ var byteToHex = [];
5752
+ for (var i = 0; i < 256; ++i) {
5753
+ byteToHex.push((i + 256).toString(16).slice(1));
5754
+ }
5755
+ function unsafeStringify(arr, offset = 0) {
5756
+ return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
5757
+ }
5758
+ var getRandomValues;
5759
+ var rnds8 = new Uint8Array(16);
5747
5760
  function rng() {
5748
5761
  if (!getRandomValues) {
5749
5762
  getRandomValues = typeof crypto !== "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
@@ -5753,14 +5766,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
5753
5766
  }
5754
5767
  return getRandomValues(rnds8);
5755
5768
  }
5756
- const byteToHex = [];
5757
- for (let i = 0; i < 256; ++i) {
5758
- byteToHex.push((i + 256).toString(16).slice(1));
5759
- }
5760
- function unsafeStringify(arr, offset = 0) {
5761
- return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
5762
- }
5763
- const randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
5769
+ var randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
5764
5770
  const native = {
5765
5771
  randomUUID
5766
5772
  };
@@ -5769,13 +5775,13 @@ var __privateWrapper = (obj, member, setter, getter) => ({
5769
5775
  return native.randomUUID();
5770
5776
  }
5771
5777
  options = options || {};
5772
- const rnds = options.random || (options.rng || rng)();
5778
+ var rnds = options.random || (options.rng || rng)();
5773
5779
  rnds[6] = rnds[6] & 15 | 64;
5774
5780
  rnds[8] = rnds[8] & 63 | 128;
5775
5781
  if (buf) {
5776
5782
  offset = offset || 0;
5777
- for (let i = 0; i < 16; ++i) {
5778
- buf[offset + i] = rnds[i];
5783
+ for (var i2 = 0; i2 < 16; ++i2) {
5784
+ buf[offset + i2] = rnds[i2];
5779
5785
  }
5780
5786
  return buf;
5781
5787
  }
@@ -6076,32 +6082,32 @@ var __privateWrapper = (obj, member, setter, getter) => ({
6076
6082
  RemoveSubscriptionsByKey(keyToFind) {
6077
6083
  var _a2;
6078
6084
  const newSubscriptions = [];
6079
- for (let i = 0; i < this.subscriptions.length; i++) {
6080
- if (((_a2 = this.subscriptions[i].subscriptionKey.key) == null ? void 0 : _a2.localeCompare(keyToFind)) === 0) {
6085
+ for (let i2 = 0; i2 < this.subscriptions.length; i2++) {
6086
+ if (((_a2 = this.subscriptions[i2].subscriptionKey.key) == null ? void 0 : _a2.localeCompare(keyToFind)) === 0) {
6081
6087
  if (__privateGet(this, _observabilitySocketIOSubscriber)) {
6082
- __privateGet(this, _observabilitySocketIOSubscriber).UnSubscribeOne(this.subscriptions[i]);
6088
+ __privateGet(this, _observabilitySocketIOSubscriber).UnSubscribeOne(this.subscriptions[i2]);
6083
6089
  }
6084
6090
  } else {
6085
- newSubscriptions.push(this.subscriptions[i]);
6091
+ newSubscriptions.push(this.subscriptions[i2]);
6086
6092
  }
6087
6093
  }
6088
6094
  __privateSet(this, _subscriptions, newSubscriptions);
6089
6095
  }
6090
6096
  FindSubscriptionByKey(keyToFind) {
6091
6097
  var _a2;
6092
- for (let i = 0; i < this.subscriptions.length; i++) {
6093
- if (((_a2 = this.subscriptions[i].subscriptionKey.key) == null ? void 0 : _a2.localeCompare(keyToFind)) === 0) {
6094
- return this.subscriptions[i];
6098
+ for (let i2 = 0; i2 < this.subscriptions.length; i2++) {
6099
+ if (((_a2 = this.subscriptions[i2].subscriptionKey.key) == null ? void 0 : _a2.localeCompare(keyToFind)) === 0) {
6100
+ return this.subscriptions[i2];
6095
6101
  }
6096
6102
  }
6097
6103
  return void 0;
6098
6104
  }
6099
6105
  FindSubscriptionByKeyAndSubKey(keyToFind, subKeyToFind) {
6100
6106
  var _a2, _b;
6101
- for (let i = 0; i < this.subscriptions.length; i++) {
6102
- if (((_a2 = this.subscriptions[i].subscriptionKey.key) == null ? void 0 : _a2.localeCompare(keyToFind)) === 0) {
6103
- if (((_b = this.subscriptions[i].subscriptionKey.subkey) == null ? void 0 : _b.localeCompare(subKeyToFind)) === 0) {
6104
- return this.subscriptions[i];
6107
+ for (let i2 = 0; i2 < this.subscriptions.length; i2++) {
6108
+ if (((_a2 = this.subscriptions[i2].subscriptionKey.key) == null ? void 0 : _a2.localeCompare(keyToFind)) === 0) {
6109
+ if (((_b = this.subscriptions[i2].subscriptionKey.subkey) == null ? void 0 : _b.localeCompare(subKeyToFind)) === 0) {
6110
+ return this.subscriptions[i2];
6105
6111
  }
6106
6112
  }
6107
6113
  }