@launchdarkly/observability 0.1.9 → 0.1.10

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.
@@ -1,5 +1,5 @@
1
1
  var Ss = Object.defineProperty, Os = (t, e, n) => e in t ? Ss(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, pe = (t, e, n) => Os(t, typeof e != "symbol" ? e + "" : e, n);
2
- class As {
2
+ let As = class {
3
3
  constructor(e, n) {
4
4
  pe(this, "debug"), pe(this, "name"), this.debug = e, this.name = n;
5
5
  }
@@ -13,7 +13,7 @@ class As {
13
13
  let n = `[${Date.now()}]`;
14
14
  this.name && (n += ` - ${this.name}`), console.warn.apply(console, [n, ...e]);
15
15
  }
16
- }
16
+ };
17
17
  class To {
18
18
  constructor() {
19
19
  pe(this, "_sdk"), pe(this, "_isLoaded", !1), pe(this, "_callBuffer", []), pe(this, "_capacity", 1e5), pe(this, "_droppedEvents", 0), pe(this, "_exceededCapacity", !1), pe(this, "_logger", new As());
@@ -300,7 +300,8 @@ let Us = class {
300
300
  end: this.end
301
301
  };
302
302
  }
303
- }, xo = class {
303
+ };
304
+ class xo {
304
305
  /**
305
306
  * The kind of Token.
306
307
  */
@@ -341,7 +342,7 @@ let Us = class {
341
342
  column: this.column
342
343
  };
343
344
  }
344
- };
345
+ }
345
346
  const No = {
346
347
  Name: [],
347
348
  Document: ["definitions"],
@@ -3839,7 +3840,7 @@ let Ac = class {
3839
3840
  }
3840
3841
  init(e) {
3841
3842
  this.client.track(wc, {
3842
- sessionSecureID: e
3843
+ sessionID: e
3843
3844
  });
3844
3845
  }
3845
3846
  recordGauge(e, n) {
@@ -3849,7 +3850,7 @@ let Ac = class {
3849
3850
  Xe(N({}, (r = n.tags) == null ? void 0 : r.map((i) => ({ [i.name]: i.value })).reduce((i, o) => N(N({}, i), o), {})), {
3850
3851
  category: n.category,
3851
3852
  group: n.group,
3852
- sessionSecureID: e
3853
+ sessionID: e
3853
3854
  }),
3854
3855
  n.value
3855
3856
  );
@@ -3858,7 +3859,7 @@ let Ac = class {
3858
3859
  }
3859
3860
  error(e, n) {
3860
3861
  this.client.track(Sc, Xe(N({}, n), {
3861
- sessionSecureID: e
3862
+ sessionID: e
3862
3863
  }));
3863
3864
  }
3864
3865
  track(e, n) {
@@ -3866,7 +3867,7 @@ let Ac = class {
3866
3867
  this.client.track(
3867
3868
  r ? `${ii}:${r}` : ii,
3868
3869
  Xe(N({}, n), {
3869
- sessionSecureID: e
3870
+ sessionID: e
3870
3871
  })
3871
3872
  );
3872
3873
  }
@@ -3953,11 +3954,11 @@ class si extends To {
3953
3954
  recordUpDownCounter(e) {
3954
3955
  return this._bufferCall("recordUpDownCounter", [e]);
3955
3956
  }
3956
- startSpan() {
3957
- return this._bufferCall("startSpan", []);
3957
+ startSpan(e, n, r, i) {
3958
+ return this._bufferCall("startSpan", [e, n, r, i]);
3958
3959
  }
3959
- startManualSpan() {
3960
- return this._bufferCall("startManualSpan", []);
3960
+ startManualSpan(e, n, r, i) {
3961
+ return this._bufferCall("startManualSpan", [e, n, r, i]);
3961
3962
  }
3962
3963
  register(e, n) {
3963
3964
  return this._bufferCall("register", [e, n]);
@@ -8467,39 +8468,13 @@ const dm = (t, e, n) => {
8467
8468
  "https://securetoken.googleapis.com"
8468
8469
  ], vm = new RegExp("sdk\\/evalx\\/[^/]+\\/contexts\\/(?<context>[^/?]*)\\??.*?"), gm = new RegExp("\\/eval\\/[^/]+\\/(?<context>[^/?]*)\\??.*?");
8469
8470
  function _m(t) {
8470
- try {
8471
- if (t.includes("://")) {
8472
- const e = new URL(t);
8473
- let n = !1;
8474
- if (e.username && (e.username = "redacted", n = !0), e.password && (e.password = "redacted", n = !0), n)
8475
- return e.toString();
8476
- }
8477
- } catch {
8478
- }
8479
- return t;
8480
- }
8481
- function bm(t) {
8482
- var e, n;
8483
- if (t.includes("/sdk/evalx")) {
8484
- const r = t.match(vm), i = (e = r?.groups) == null ? void 0 : e.context;
8485
- if (i)
8486
- return t.replace(i, "*".repeat(i.length));
8487
- }
8488
- if (t.includes("/eval/")) {
8489
- const r = t.match(gm), i = (n = r?.groups) == null ? void 0 : n.context;
8490
- if (i)
8491
- return t.replace(i, "*".repeat(i.length));
8492
- }
8493
- return t;
8471
+ return !!(t.includes("/sdk/evalx") && t.match(vm) || t.includes("/eval/") && t.match(gm));
8494
8472
  }
8495
- function Em(t) {
8496
- return bm(_m(t));
8497
- }
8498
- const Tm = (t) => ["events.ld.catamorphic.com", "events.launchdarkly.com"].some(
8473
+ const bm = (t) => ["events.ld.catamorphic.com", "events.launchdarkly.com"].some(
8499
8474
  (e) => t.toLocaleLowerCase().includes(e)
8500
- ), wm = (t) => t !== Em(t), Sm = (t, e) => e.some(
8475
+ ), Em = (t) => _m(t), Tm = (t, e) => e.some(
8501
8476
  (n) => t.toLocaleLowerCase().includes(n)
8502
- ), Om = (t, e, n) => !Sm(t, e) && !wm(t) && !Tm(t), Am = (t, e, n) => {
8477
+ ), wm = (t, e, n) => !Tm(t, e) && !Em(t) && !bm(t), Sm = (t, e, n) => {
8503
8478
  var r;
8504
8479
  if (n.some(
8505
8480
  (a) => t.toLowerCase().includes(a)
@@ -8511,7 +8486,7 @@ const Tm = (t) => ["events.ld.catamorphic.com", "events.launchdarkly.com"].some(
8511
8486
  return i.forEach((a) => {
8512
8487
  t.match(a) && (o = !0);
8513
8488
  }), o;
8514
- }, Hi = 64 * 1024, xm = {
8489
+ }, Hi = 64 * 1024, Om = {
8515
8490
  "application/json": 64 * 1024 * 1024,
8516
8491
  // MB
8517
8492
  "text/plain": 64 * 1024 * 1024
@@ -8526,7 +8501,7 @@ const Tm = (t) => ["events.ld.catamorphic.com", "events.launchdarkly.com"].some(
8526
8501
  c = c.split(";")[0];
8527
8502
  } catch {
8528
8503
  }
8529
- u = (a = xm[c]) != null ? a : Hi;
8504
+ u = (a = Om[c]) != null ? a : Hi;
8530
8505
  }
8531
8506
  if (t) {
8532
8507
  if (e)
@@ -8557,7 +8532,7 @@ const Tm = (t) => ["events.ld.catamorphic.com", "events.launchdarkly.com"].some(
8557
8532
  } catch {
8558
8533
  }
8559
8534
  return t;
8560
- }, Nm = (t, e, n) => _n(void 0, null, function* () {
8535
+ }, Am = (t, e, n) => _n(void 0, null, function* () {
8561
8536
  let r;
8562
8537
  try {
8563
8538
  const i = t.clone().body;
@@ -8594,7 +8569,7 @@ var za = (
8594
8569
  return this._delegate.shutdown();
8595
8570
  }, t;
8596
8571
  }()
8597
- ), Lm = /* @__PURE__ */ function() {
8572
+ ), xm = /* @__PURE__ */ function() {
8598
8573
  var t = function(e, n) {
8599
8574
  return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
8600
8575
  r.__proto__ = i;
@@ -8614,7 +8589,7 @@ var za = (
8614
8589
  }(), qi = (
8615
8590
  /** @class */
8616
8591
  function(t) {
8617
- Lm(e, t);
8592
+ xm(e, t);
8618
8593
  function e(n, r, i) {
8619
8594
  var o = t.call(this, n) || this;
8620
8595
  return o.name = "OTLPExporterError", o.data = i, o.code = r, o;
@@ -8622,33 +8597,33 @@ var za = (
8622
8597
  return e;
8623
8598
  }(Error)
8624
8599
  );
8625
- function Cm(t) {
8600
+ function Nm(t) {
8626
8601
  if (!Number.isNaN(t) && Number.isFinite(t) && t > 0)
8627
8602
  return t;
8628
8603
  throw new Error("Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '" + t + "')");
8629
8604
  }
8630
- function Rm(t) {
8605
+ function Lm(t) {
8631
8606
  if (t != null)
8632
8607
  return function() {
8633
8608
  return t;
8634
8609
  };
8635
8610
  }
8636
- function Pm(t, e, n) {
8611
+ function Cm(t, e, n) {
8637
8612
  var r, i, o, a, u, c;
8638
8613
  return {
8639
- timeoutMillis: Cm((i = (r = t.timeoutMillis) !== null && r !== void 0 ? r : e.timeoutMillis) !== null && i !== void 0 ? i : n.timeoutMillis),
8614
+ timeoutMillis: Nm((i = (r = t.timeoutMillis) !== null && r !== void 0 ? r : e.timeoutMillis) !== null && i !== void 0 ? i : n.timeoutMillis),
8640
8615
  concurrencyLimit: (a = (o = t.concurrencyLimit) !== null && o !== void 0 ? o : e.concurrencyLimit) !== null && a !== void 0 ? a : n.concurrencyLimit,
8641
8616
  compression: (c = (u = t.compression) !== null && u !== void 0 ? u : e.compression) !== null && c !== void 0 ? c : n.compression
8642
8617
  };
8643
8618
  }
8644
- function Im() {
8619
+ function Rm() {
8645
8620
  return {
8646
8621
  timeoutMillis: 1e4,
8647
8622
  concurrencyLimit: 30,
8648
8623
  compression: "none"
8649
8624
  };
8650
8625
  }
8651
- var km = function(t, e, n, r) {
8626
+ var Pm = function(t, e, n, r) {
8652
8627
  function i(o) {
8653
8628
  return o instanceof n ? o : new n(function(a) {
8654
8629
  a(o);
@@ -8674,7 +8649,7 @@ var km = function(t, e, n, r) {
8674
8649
  }
8675
8650
  s((r = r.apply(t, [])).next());
8676
8651
  });
8677
- }, Mm = function(t, e) {
8652
+ }, Im = function(t, e) {
8678
8653
  var n = { label: 0, sent: function() {
8679
8654
  if (o[0] & 1) throw o[1];
8680
8655
  return o[1];
@@ -8733,7 +8708,7 @@ var km = function(t, e, n, r) {
8733
8708
  if (s[0] & 5) throw s[1];
8734
8709
  return { value: s[0] ? s[1] : void 0, done: !0 };
8735
8710
  }
8736
- }, Dm = (
8711
+ }, km = (
8737
8712
  /** @class */
8738
8713
  function() {
8739
8714
  function t(e) {
@@ -8752,8 +8727,8 @@ var km = function(t, e, n, r) {
8752
8727
  }, t.prototype.hasReachedLimit = function() {
8753
8728
  return this._sendingPromises.length >= this._concurrencyLimit;
8754
8729
  }, t.prototype.awaitAll = function() {
8755
- return km(this, void 0, void 0, function() {
8756
- return Mm(this, function(e) {
8730
+ return Pm(this, void 0, void 0, function() {
8731
+ return Im(this, function(e) {
8757
8732
  switch (e.label) {
8758
8733
  case 0:
8759
8734
  return [4, Promise.all(this._sendingPromises)];
@@ -8768,20 +8743,20 @@ var km = function(t, e, n, r) {
8768
8743
  }, t;
8769
8744
  }()
8770
8745
  );
8771
- function Um(t) {
8772
- return new Dm(t.concurrencyLimit);
8746
+ function Mm(t) {
8747
+ return new km(t.concurrencyLimit);
8773
8748
  }
8774
- function jm(t) {
8749
+ function Dm(t) {
8775
8750
  return Object.prototype.hasOwnProperty.call(t, "partialSuccess");
8776
8751
  }
8777
- function Bm() {
8752
+ function Um() {
8778
8753
  return {
8779
8754
  handleResponse: function(t) {
8780
- t == null || !jm(t) || t.partialSuccess == null || Object.keys(t.partialSuccess).length === 0 || E.warn("Received Partial Success response:", JSON.stringify(t.partialSuccess));
8755
+ t == null || !Dm(t) || t.partialSuccess == null || Object.keys(t.partialSuccess).length === 0 || E.warn("Received Partial Success response:", JSON.stringify(t.partialSuccess));
8781
8756
  }
8782
8757
  };
8783
8758
  }
8784
- var $m = function(t, e, n, r) {
8759
+ var jm = function(t, e, n, r) {
8785
8760
  function i(o) {
8786
8761
  return o instanceof n ? o : new n(function(a) {
8787
8762
  a(o);
@@ -8807,7 +8782,7 @@ var $m = function(t, e, n, r) {
8807
8782
  }
8808
8783
  s((r = r.apply(t, [])).next());
8809
8784
  });
8810
- }, Fm = function(t, e) {
8785
+ }, Bm = function(t, e) {
8811
8786
  var n = { label: 0, sent: function() {
8812
8787
  if (o[0] & 1) throw o[1];
8813
8788
  return o[1];
@@ -8866,7 +8841,7 @@ var $m = function(t, e, n, r) {
8866
8841
  if (s[0] & 5) throw s[1];
8867
8842
  return { value: s[0] ? s[1] : void 0, done: !0 };
8868
8843
  }
8869
- }, Vm = (
8844
+ }, $m = (
8870
8845
  /** @class */
8871
8846
  function() {
8872
8847
  function t(e, n, r, i, o) {
@@ -8925,8 +8900,8 @@ var $m = function(t, e, n, r) {
8925
8900
  }, t.prototype.forceFlush = function() {
8926
8901
  return this._promiseQueue.awaitAll();
8927
8902
  }, t.prototype.shutdown = function() {
8928
- return $m(this, void 0, void 0, function() {
8929
- return Fm(this, function(e) {
8903
+ return jm(this, void 0, void 0, function() {
8904
+ return Bm(this, function(e) {
8930
8905
  switch (e.label) {
8931
8906
  case 0:
8932
8907
  return this._diagLogger.debug("shutdown started"), [4, this.forceFlush()];
@@ -8941,33 +8916,33 @@ var $m = function(t, e, n, r) {
8941
8916
  }, t;
8942
8917
  }()
8943
8918
  );
8944
- function Gm(t, e) {
8945
- return new Vm(t.transport, t.serializer, Bm(), t.promiseHandler, e.timeout);
8919
+ function Fm(t, e) {
8920
+ return new $m(t.transport, t.serializer, Um(), t.promiseHandler, e.timeout);
8946
8921
  }
8947
8922
  function Xa(t, e, n) {
8948
- return Gm({
8923
+ return Fm({
8949
8924
  transport: n,
8950
8925
  serializer: e,
8951
- promiseHandler: Um(t)
8926
+ promiseHandler: Mm(t)
8952
8927
  }, { timeout: t.timeoutMillis });
8953
8928
  }
8954
8929
  function Ka(t) {
8955
8930
  var e = BigInt(1e9);
8956
8931
  return BigInt(t[0]) * e + BigInt(t[1]);
8957
8932
  }
8958
- function Hm(t) {
8933
+ function Vm(t) {
8959
8934
  var e = Number(BigInt.asUintN(32, t)), n = Number(BigInt.asUintN(32, t >> BigInt(32)));
8960
8935
  return { low: e, high: n };
8961
8936
  }
8962
8937
  function Ya(t) {
8963
8938
  var e = Ka(t);
8964
- return Hm(e);
8939
+ return Vm(e);
8965
8940
  }
8966
- function qm(t) {
8941
+ function Gm(t) {
8967
8942
  var e = Ka(t);
8968
8943
  return e.toString();
8969
8944
  }
8970
- var zm = typeof BigInt < "u" ? qm : me;
8945
+ var Hm = typeof BigInt < "u" ? Gm : me;
8971
8946
  function zi(t) {
8972
8947
  return t;
8973
8948
  }
@@ -8975,7 +8950,7 @@ function Wa(t) {
8975
8950
  if (t !== void 0)
8976
8951
  return zr(t);
8977
8952
  }
8978
- var Xm = {
8953
+ var qm = {
8979
8954
  encodeHrTime: Ya,
8980
8955
  encodeSpanContext: zr,
8981
8956
  encodeOptionalSpanContext: Wa
@@ -8983,15 +8958,15 @@ var Xm = {
8983
8958
  function Ja(t) {
8984
8959
  var e, n;
8985
8960
  if (t === void 0)
8986
- return Xm;
8961
+ return qm;
8987
8962
  var r = (e = t.useLongBits) !== null && e !== void 0 ? e : !0, i = (n = t.useHex) !== null && n !== void 0 ? n : !1;
8988
8963
  return {
8989
- encodeHrTime: r ? Ya : zm,
8964
+ encodeHrTime: r ? Ya : Hm,
8990
8965
  encodeSpanContext: i ? zi : zr,
8991
8966
  encodeOptionalSpanContext: i ? zi : Wa
8992
8967
  };
8993
8968
  }
8994
- var Km = function(t, e) {
8969
+ var zm = function(t, e) {
8995
8970
  var n = typeof Symbol == "function" && t[Symbol.iterator];
8996
8971
  if (!n) return t;
8997
8972
  var r = n.call(t), i, o = [], a;
@@ -9036,7 +9011,7 @@ function ts(t) {
9036
9011
  return e === "string" ? { stringValue: t } : e === "number" ? Number.isInteger(t) ? { intValue: t } : { doubleValue: t } : e === "boolean" ? { boolValue: t } : t instanceof Uint8Array ? { bytesValue: t } : Array.isArray(t) ? { arrayValue: { values: t.map(ts) } } : e === "object" && t != null ? {
9037
9012
  kvlistValue: {
9038
9013
  values: Object.entries(t).map(function(n) {
9039
- var r = Km(n, 2), i = r[0], o = r[1];
9014
+ var r = zm(n, 2), i = r[0], o = r[1];
9040
9015
  return es(i, o);
9041
9016
  })
9042
9017
  }
@@ -9050,7 +9025,7 @@ var ue;
9050
9025
  (function(t) {
9051
9026
  t[t.HISTOGRAM = 0] = "HISTOGRAM", t[t.EXPONENTIAL_HISTOGRAM = 1] = "EXPONENTIAL_HISTOGRAM", t[t.GAUGE = 2] = "GAUGE", t[t.SUM = 3] = "SUM";
9052
9027
  })(ue || (ue = {}));
9053
- var Ym = /* @__PURE__ */ function() {
9028
+ var Xm = /* @__PURE__ */ function() {
9054
9029
  var t = function(e, n) {
9055
9030
  return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
9056
9031
  r.__proto__ = i;
@@ -9152,7 +9127,7 @@ var Ym = /* @__PURE__ */ function() {
9152
9127
  if (s[0] & 5) throw s[1];
9153
9128
  return { value: s[0] ? s[1] : void 0, done: !0 };
9154
9129
  }
9155
- }, Wm = function(t, e) {
9130
+ }, Km = function(t, e) {
9156
9131
  var n = typeof Symbol == "function" && t[Symbol.iterator];
9157
9132
  if (!n) return t;
9158
9133
  var r = n.call(t), i, o = [], a;
@@ -9168,11 +9143,11 @@ var Ym = /* @__PURE__ */ function() {
9168
9143
  }
9169
9144
  }
9170
9145
  return o;
9171
- }, Jm = function(t, e, n) {
9146
+ }, Ym = function(t, e, n) {
9172
9147
  if (arguments.length === 2) for (var r = 0, i = e.length, o; r < i; r++)
9173
9148
  (o || !(r in e)) && (o || (o = Array.prototype.slice.call(e, 0, r)), o[r] = e[r]);
9174
9149
  return t.concat(o || Array.prototype.slice.call(e));
9175
- }, Qm = function(t) {
9150
+ }, Wm = function(t) {
9176
9151
  var e = typeof Symbol == "function" && Symbol.iterator, n = e && t[e], r = 0;
9177
9152
  if (n) return n.call(t);
9178
9153
  if (t && typeof t.length == "number") return {
@@ -9182,7 +9157,7 @@ var Ym = /* @__PURE__ */ function() {
9182
9157
  };
9183
9158
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
9184
9159
  };
9185
- function Zm(t) {
9160
+ function Jm(t) {
9186
9161
  return t != null;
9187
9162
  }
9188
9163
  function ns(t) {
@@ -9191,14 +9166,14 @@ function ns(t) {
9191
9166
  return [n, t[n]];
9192
9167
  })));
9193
9168
  }
9194
- function ey(t) {
9169
+ function Qm(t) {
9195
9170
  var e, n;
9196
9171
  return t.name + ":" + ((e = t.version) !== null && e !== void 0 ? e : "") + ":" + ((n = t.schemaUrl) !== null && n !== void 0 ? n : "");
9197
9172
  }
9198
9173
  var rs = (
9199
9174
  /** @class */
9200
9175
  function(t) {
9201
- Ym(e, t);
9176
+ Xm(e, t);
9202
9177
  function e(n) {
9203
9178
  var r = t.call(this, n) || this;
9204
9179
  return Object.setPrototypeOf(r, e.prototype), r;
@@ -9218,7 +9193,7 @@ function wt(t, e) {
9218
9193
  throw clearTimeout(n), i;
9219
9194
  });
9220
9195
  }
9221
- function ty(t) {
9196
+ function Zm(t) {
9222
9197
  return Xi(this, void 0, void 0, function() {
9223
9198
  var e = this;
9224
9199
  return Ki(this, function(n) {
@@ -9251,21 +9226,21 @@ function ty(t) {
9251
9226
  });
9252
9227
  });
9253
9228
  }
9254
- function ny(t) {
9229
+ function ey(t) {
9255
9230
  return t.status === "rejected";
9256
9231
  }
9257
9232
  function Yi(t, e) {
9258
9233
  var n = [];
9259
9234
  return t.forEach(function(r) {
9260
- n.push.apply(n, Jm([], Wm(e(r)), !1));
9235
+ n.push.apply(n, Ym([], Km(e(r)), !1));
9261
9236
  }), n;
9262
9237
  }
9263
- function ry(t, e) {
9238
+ function ty(t, e) {
9264
9239
  var n, r;
9265
9240
  if (t.size !== e.size)
9266
9241
  return !1;
9267
9242
  try {
9268
- for (var i = Qm(t), o = i.next(); !o.done; o = i.next()) {
9243
+ for (var i = Wm(t), o = i.next(); !o.done; o = i.next()) {
9269
9244
  var a = o.value;
9270
9245
  if (!e.has(a))
9271
9246
  return !1;
@@ -9281,21 +9256,21 @@ function ry(t, e) {
9281
9256
  }
9282
9257
  return !0;
9283
9258
  }
9284
- function iy(t, e) {
9259
+ function ny(t, e) {
9285
9260
  for (var n = 0, r = t.length - 1, i = t.length; r >= n; ) {
9286
9261
  var o = n + Math.trunc((r - n) / 2);
9287
9262
  t[o] < e ? n = o + 1 : (i = o, r = o - 1);
9288
9263
  }
9289
9264
  return i;
9290
9265
  }
9291
- function oy(t, e) {
9266
+ function ry(t, e) {
9292
9267
  return t.toLowerCase() === e.toLowerCase();
9293
9268
  }
9294
9269
  var ke;
9295
9270
  (function(t) {
9296
9271
  t[t.DROP = 0] = "DROP", t[t.SUM = 1] = "SUM", t[t.LAST_VALUE = 2] = "LAST_VALUE", t[t.HISTOGRAM = 3] = "HISTOGRAM", t[t.EXPONENTIAL_HISTOGRAM = 4] = "EXPONENTIAL_HISTOGRAM";
9297
9272
  })(ke || (ke = {}));
9298
- var ay = (
9273
+ var iy = (
9299
9274
  /** @class */
9300
9275
  function() {
9301
9276
  function t() {
@@ -9313,7 +9288,7 @@ var ay = (
9313
9288
  })(O || (O = {}));
9314
9289
  function ge(t, e, n) {
9315
9290
  var r, i, o, a;
9316
- return ly(t) || E.warn('Invalid metric name: "' + t + '". The metric name should be a ASCII string with a length no greater than 255 characters.'), {
9291
+ return uy(t) || E.warn('Invalid metric name: "' + t + '". The metric name should be a ASCII string with a length no greater than 255 characters.'), {
9317
9292
  name: t,
9318
9293
  type: e,
9319
9294
  description: (r = n?.description) !== null && r !== void 0 ? r : "",
@@ -9322,7 +9297,7 @@ function ge(t, e, n) {
9322
9297
  advice: (a = n?.advice) !== null && a !== void 0 ? a : {}
9323
9298
  };
9324
9299
  }
9325
- function sy(t, e) {
9300
+ function oy(t, e) {
9326
9301
  var n, r;
9327
9302
  return {
9328
9303
  name: (n = t.name) !== null && n !== void 0 ? n : e.name,
@@ -9333,14 +9308,14 @@ function sy(t, e) {
9333
9308
  advice: e.advice
9334
9309
  };
9335
9310
  }
9336
- function uy(t, e) {
9337
- return oy(t.name, e.name) && t.unit === e.unit && t.type === e.type && t.valueType === e.valueType;
9311
+ function ay(t, e) {
9312
+ return ry(t.name, e.name) && t.unit === e.unit && t.type === e.type && t.valueType === e.valueType;
9338
9313
  }
9339
- var cy = /^[a-z][a-z0-9_.\-/]{0,254}$/i;
9340
- function ly(t) {
9341
- return t.match(cy) != null;
9314
+ var sy = /^[a-z][a-z0-9_.\-/]{0,254}$/i;
9315
+ function uy(t) {
9316
+ return t.match(sy) != null;
9342
9317
  }
9343
- var py = function(t, e) {
9318
+ var cy = function(t, e) {
9344
9319
  var n = typeof Symbol == "function" && t[Symbol.iterator];
9345
9320
  if (!n) return t;
9346
9321
  var r = n.call(t), i, o = [], a;
@@ -9357,7 +9332,7 @@ var py = function(t, e) {
9357
9332
  }
9358
9333
  return o;
9359
9334
  };
9360
- function fy(t) {
9335
+ function ly(t) {
9361
9336
  var e = t.map(function() {
9362
9337
  return 0;
9363
9338
  });
@@ -9377,12 +9352,12 @@ var Kn = (
9377
9352
  /** @class */
9378
9353
  function() {
9379
9354
  function t(e, n, r, i) {
9380
- r === void 0 && (r = !0), i === void 0 && (i = fy(n)), this.startTime = e, this._boundaries = n, this._recordMinMax = r, this._current = i;
9355
+ r === void 0 && (r = !0), i === void 0 && (i = ly(n)), this.startTime = e, this._boundaries = n, this._recordMinMax = r, this._current = i;
9381
9356
  }
9382
9357
  return t.prototype.record = function(e) {
9383
9358
  if (!Number.isNaN(e)) {
9384
9359
  this._current.count += 1, this._current.sum += e, this._recordMinMax && (this._current.min = Math.min(e, this._current.min), this._current.max = Math.max(e, this._current.max), this._current.hasMinMax = !0);
9385
- var n = iy(this._boundaries, e);
9360
+ var n = ny(this._boundaries, e);
9386
9361
  this._current.buckets.counts[n] += 1;
9387
9362
  }
9388
9363
  }, t.prototype.setStartTime = function(e) {
@@ -9434,7 +9409,7 @@ var Kn = (
9434
9409
  aggregationTemporality: n,
9435
9410
  dataPointType: ue.HISTOGRAM,
9436
9411
  dataPoints: r.map(function(o) {
9437
- var a = py(o, 2), u = a[0], c = a[1], s = c.toPointValue(), l = e.type === O.GAUGE || e.type === O.UP_DOWN_COUNTER || e.type === O.OBSERVABLE_GAUGE || e.type === O.OBSERVABLE_UP_DOWN_COUNTER;
9412
+ var a = cy(o, 2), u = a[0], c = a[1], s = c.toPointValue(), l = e.type === O.GAUGE || e.type === O.UP_DOWN_COUNTER || e.type === O.OBSERVABLE_GAUGE || e.type === O.OBSERVABLE_UP_DOWN_COUNTER;
9438
9413
  return {
9439
9414
  attributes: u,
9440
9415
  startTime: c.startTime,
@@ -9475,7 +9450,7 @@ var Kn = (
9475
9450
  /** @class */
9476
9451
  function() {
9477
9452
  function t(e, n, r, i) {
9478
- e === void 0 && (e = new hy()), n === void 0 && (n = 0), r === void 0 && (r = 0), i === void 0 && (i = 0), this.backing = e, this.indexBase = n, this.indexStart = r, this.indexEnd = i;
9453
+ e === void 0 && (e = new py()), n === void 0 && (n = 0), r === void 0 && (r = 0), i === void 0 && (i = 0), this.backing = e, this.indexBase = n, this.indexStart = r, this.indexEnd = i;
9479
9454
  }
9480
9455
  return Object.defineProperty(t.prototype, "offset", {
9481
9456
  /**
@@ -9543,7 +9518,7 @@ var Kn = (
9543
9518
  e !== n && this.incrementBucket(e, this.backing.emptyBucket(n));
9544
9519
  }, t;
9545
9520
  }()
9546
- ), hy = (
9521
+ ), py = (
9547
9522
  /** @class */
9548
9523
  function() {
9549
9524
  function t(e) {
@@ -9583,26 +9558,26 @@ var Kn = (
9583
9558
  return new t(Wn([], Yn(this._counts), !1));
9584
9559
  }, t;
9585
9560
  }()
9586
- ), dy = 52, my = 2146435072, yy = 1048575, os = 1023, as = -1022, ss = os, xr = Math.pow(2, -1022);
9561
+ ), fy = 52, hy = 2146435072, dy = 1048575, os = 1023, as = -1022, ss = os, xr = Math.pow(2, -1022);
9587
9562
  function us(t) {
9588
9563
  var e = new DataView(new ArrayBuffer(8));
9589
9564
  e.setFloat64(0, t);
9590
- var n = e.getUint32(0), r = (n & my) >> 20;
9565
+ var n = e.getUint32(0), r = (n & hy) >> 20;
9591
9566
  return r - os;
9592
9567
  }
9593
9568
  function cs(t) {
9594
9569
  var e = new DataView(new ArrayBuffer(8));
9595
9570
  e.setFloat64(0, t);
9596
- var n = e.getUint32(0), r = e.getUint32(4), i = (n & yy) * Math.pow(2, 32);
9571
+ var n = e.getUint32(0), r = e.getUint32(4), i = (n & dy) * Math.pow(2, 32);
9597
9572
  return i + r;
9598
9573
  }
9599
9574
  function Nr(t, e) {
9600
9575
  return t === 0 || t === Number.POSITIVE_INFINITY || t === Number.NEGATIVE_INFINITY || Number.isNaN(t) ? t : t * Math.pow(2, e);
9601
9576
  }
9602
- function vy(t) {
9577
+ function my(t) {
9603
9578
  return t--, t |= t >> 1, t |= t >> 2, t |= t >> 4, t |= t >> 8, t |= t >> 16, t++, t;
9604
9579
  }
9605
- var gy = /* @__PURE__ */ function() {
9580
+ var yy = /* @__PURE__ */ function() {
9606
9581
  var t = function(e, n) {
9607
9582
  return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
9608
9583
  r.__proto__ = i;
@@ -9622,13 +9597,13 @@ var gy = /* @__PURE__ */ function() {
9622
9597
  }(), St = (
9623
9598
  /** @class */
9624
9599
  function(t) {
9625
- gy(e, t);
9600
+ yy(e, t);
9626
9601
  function e() {
9627
9602
  return t !== null && t.apply(this, arguments) || this;
9628
9603
  }
9629
9604
  return e;
9630
9605
  }(Error)
9631
- ), _y = (
9606
+ ), vy = (
9632
9607
  /** @class */
9633
9608
  function() {
9634
9609
  function t(e) {
@@ -9637,7 +9612,7 @@ var gy = /* @__PURE__ */ function() {
9637
9612
  return t.prototype.mapToIndex = function(e) {
9638
9613
  if (e < xr)
9639
9614
  return this._minNormalLowerBoundaryIndex();
9640
- var n = us(e), r = this._rightShift(cs(e) - 1, dy);
9615
+ var n = us(e), r = this._rightShift(cs(e) - 1, fy);
9641
9616
  return n + r >> this._shift;
9642
9617
  }, t.prototype.lowerBoundary = function(e) {
9643
9618
  var n = this._minNormalLowerBoundaryIndex();
@@ -9666,7 +9641,7 @@ var gy = /* @__PURE__ */ function() {
9666
9641
  return Math.floor(e * Math.pow(2, -n));
9667
9642
  }, t;
9668
9643
  }()
9669
- ), by = (
9644
+ ), gy = (
9670
9645
  /** @class */
9671
9646
  function() {
9672
9647
  function t(e) {
@@ -9713,15 +9688,15 @@ var gy = /* @__PURE__ */ function() {
9713
9688
  return (ss + 1 << this._scale) - 1;
9714
9689
  }, t;
9715
9690
  }()
9716
- ), Ji = -10, Qi = 20, Ey = Array.from({ length: 31 }, function(t, e) {
9717
- return e > 10 ? new by(e - 10) : new _y(e - 10);
9691
+ ), Ji = -10, Qi = 20, _y = Array.from({ length: 31 }, function(t, e) {
9692
+ return e > 10 ? new gy(e - 10) : new vy(e - 10);
9718
9693
  });
9719
9694
  function Zi(t) {
9720
9695
  if (t > Qi || t < Ji)
9721
9696
  throw new St("expected scale >= " + Ji + " && <= " + Qi + ", got: " + t);
9722
- return Ey[t + 10];
9697
+ return _y[t + 10];
9723
9698
  }
9724
- var Ty = function(t, e) {
9699
+ var by = function(t, e) {
9725
9700
  var n = typeof Symbol == "function" && t[Symbol.iterator];
9726
9701
  if (!n) return t;
9727
9702
  var r = n.call(t), i, o = [], a;
@@ -9747,11 +9722,11 @@ var Ty = function(t, e) {
9747
9722
  return new t(Math.min(e.low, n.low), Math.max(e.high, n.high));
9748
9723
  }, t;
9749
9724
  }()
9750
- ), wy = 20, Sy = 160, Jn = 2, Oy = (
9725
+ ), Ey = 20, Ty = 160, Jn = 2, wy = (
9751
9726
  /** @class */
9752
9727
  function() {
9753
9728
  function t(e, n, r, i, o, a, u, c, s, l, p) {
9754
- e === void 0 && (e = e), n === void 0 && (n = Sy), r === void 0 && (r = !0), i === void 0 && (i = 0), o === void 0 && (o = 0), a === void 0 && (a = 0), u === void 0 && (u = Number.POSITIVE_INFINITY), c === void 0 && (c = Number.NEGATIVE_INFINITY), s === void 0 && (s = new Wi()), l === void 0 && (l = new Wi()), p === void 0 && (p = Zi(wy)), this.startTime = e, this._maxSize = n, this._recordMinMax = r, this._sum = i, this._count = o, this._zeroCount = a, this._min = u, this._max = c, this._positive = s, this._negative = l, this._mapping = p, this._maxSize < Jn && (E.warn("Exponential Histogram Max Size set to " + this._maxSize + ", changing to the minimum size of: " + Jn), this._maxSize = Jn);
9729
+ e === void 0 && (e = e), n === void 0 && (n = Ty), r === void 0 && (r = !0), i === void 0 && (i = 0), o === void 0 && (o = 0), a === void 0 && (a = 0), u === void 0 && (u = Number.POSITIVE_INFINITY), c === void 0 && (c = Number.NEGATIVE_INFINITY), s === void 0 && (s = new Wi()), l === void 0 && (l = new Wi()), p === void 0 && (p = Zi(Ey)), this.startTime = e, this._maxSize = n, this._recordMinMax = r, this._sum = i, this._count = o, this._zeroCount = a, this._min = u, this._max = c, this._positive = s, this._negative = l, this._mapping = p, this._maxSize < Jn && (E.warn("Exponential Histogram Max Size set to " + this._maxSize + ", changing to the minimum size of: " + Jn), this._maxSize = Jn);
9755
9730
  }
9756
9731
  return t.prototype.record = function(e) {
9757
9732
  this.updateByIncrement(e, 1);
@@ -9887,7 +9862,7 @@ var Ty = function(t, e) {
9887
9862
  o < 0 && (o += e.backing.length), e.incrementBucket(o, r);
9888
9863
  }
9889
9864
  }, t.prototype._grow = function(e, n) {
9890
- var r = e.backing.length, i = e.indexBase - e.indexStart, o = r - i, a = vy(n);
9865
+ var r = e.backing.length, i = e.indexBase - e.indexStart, o = r - i, a = my(n);
9891
9866
  a > this._maxSize && (a = this._maxSize);
9892
9867
  var u = a - i;
9893
9868
  e.backing.growTo(a, o, u);
@@ -9921,14 +9896,14 @@ var Ty = function(t, e) {
9921
9896
  e.trim();
9922
9897
  }, t;
9923
9898
  }()
9924
- ), Ay = (
9899
+ ), Sy = (
9925
9900
  /** @class */
9926
9901
  function() {
9927
9902
  function t(e, n) {
9928
9903
  this._maxSize = e, this._recordMinMax = n, this.kind = ke.EXPONENTIAL_HISTOGRAM;
9929
9904
  }
9930
9905
  return t.prototype.createAccumulation = function(e) {
9931
- return new Oy(e, this._maxSize, this._recordMinMax);
9906
+ return new wy(e, this._maxSize, this._recordMinMax);
9932
9907
  }, t.prototype.merge = function(e, n) {
9933
9908
  var r = n.clone();
9934
9909
  return r.merge(e), r;
@@ -9941,7 +9916,7 @@ var Ty = function(t, e) {
9941
9916
  aggregationTemporality: n,
9942
9917
  dataPointType: ue.EXPONENTIAL_HISTOGRAM,
9943
9918
  dataPoints: r.map(function(o) {
9944
- var a = Ty(o, 2), u = a[0], c = a[1], s = c.toPointValue(), l = e.type === O.GAUGE || e.type === O.UP_DOWN_COUNTER || e.type === O.OBSERVABLE_GAUGE || e.type === O.OBSERVABLE_UP_DOWN_COUNTER;
9919
+ var a = by(o, 2), u = a[0], c = a[1], s = c.toPointValue(), l = e.type === O.GAUGE || e.type === O.UP_DOWN_COUNTER || e.type === O.OBSERVABLE_GAUGE || e.type === O.OBSERVABLE_UP_DOWN_COUNTER;
9945
9920
  return {
9946
9921
  attributes: u,
9947
9922
  startTime: c.startTime,
@@ -9967,7 +9942,7 @@ var Ty = function(t, e) {
9967
9942
  };
9968
9943
  }, t;
9969
9944
  }()
9970
- ), xy = function(t, e) {
9945
+ ), Oy = function(t, e) {
9971
9946
  var n = typeof Symbol == "function" && t[Symbol.iterator];
9972
9947
  if (!n) return t;
9973
9948
  var r = n.call(t), i, o = [], a;
@@ -9997,7 +9972,7 @@ var Ty = function(t, e) {
9997
9972
  return this._current;
9998
9973
  }, t;
9999
9974
  }()
10000
- ), Ny = (
9975
+ ), Ay = (
10001
9976
  /** @class */
10002
9977
  function() {
10003
9978
  function t() {
@@ -10017,7 +9992,7 @@ var Ty = function(t, e) {
10017
9992
  aggregationTemporality: n,
10018
9993
  dataPointType: ue.GAUGE,
10019
9994
  dataPoints: r.map(function(o) {
10020
- var a = xy(o, 2), u = a[0], c = a[1];
9995
+ var a = Oy(o, 2), u = a[0], c = a[1];
10021
9996
  return {
10022
9997
  attributes: u,
10023
9998
  startTime: c.startTime,
@@ -10028,7 +10003,7 @@ var Ty = function(t, e) {
10028
10003
  };
10029
10004
  }, t;
10030
10005
  }()
10031
- ), Ly = function(t, e) {
10006
+ ), xy = function(t, e) {
10032
10007
  var n = typeof Symbol == "function" && t[Symbol.iterator];
10033
10008
  if (!n) return t;
10034
10009
  var r = n.call(t), i, o = [], a;
@@ -10078,7 +10053,7 @@ var Ty = function(t, e) {
10078
10053
  aggregationTemporality: n,
10079
10054
  dataPointType: ue.SUM,
10080
10055
  dataPoints: r.map(function(o) {
10081
- var a = Ly(o, 2), u = a[0], c = a[1];
10056
+ var a = xy(o, 2), u = a[0], c = a[1];
10082
10057
  return {
10083
10058
  attributes: u,
10084
10059
  startTime: c.startTime,
@@ -10121,12 +10096,12 @@ var Ty = function(t, e) {
10121
10096
  }, t.Histogram = function() {
10122
10097
  return hs;
10123
10098
  }, t.ExponentialHistogram = function() {
10124
- return Uy;
10099
+ return My;
10125
10100
  }, t.Default = function() {
10126
- return jy;
10101
+ return Dy;
10127
10102
  }, t;
10128
10103
  }()
10129
- ), Cy = (
10104
+ ), Ny = (
10130
10105
  /** @class */
10131
10106
  function(t) {
10132
10107
  je(e, t);
@@ -10135,9 +10110,9 @@ var Ty = function(t, e) {
10135
10110
  }
10136
10111
  return e.prototype.createAggregator = function(n) {
10137
10112
  return e.DEFAULT_INSTANCE;
10138
- }, e.DEFAULT_INSTANCE = new ay(), e;
10113
+ }, e.DEFAULT_INSTANCE = new iy(), e;
10139
10114
  }(ve)
10140
- ), Ry = (
10115
+ ), Ly = (
10141
10116
  /** @class */
10142
10117
  function(t) {
10143
10118
  je(e, t);
@@ -10155,7 +10130,7 @@ var Ty = function(t, e) {
10155
10130
  }
10156
10131
  }, e.MONOTONIC_INSTANCE = new eo(!0), e.NON_MONOTONIC_INSTANCE = new eo(!1), e;
10157
10132
  }(ve)
10158
- ), Py = (
10133
+ ), Cy = (
10159
10134
  /** @class */
10160
10135
  function(t) {
10161
10136
  je(e, t);
@@ -10164,9 +10139,9 @@ var Ty = function(t, e) {
10164
10139
  }
10165
10140
  return e.prototype.createAggregator = function(n) {
10166
10141
  return e.DEFAULT_INSTANCE;
10167
- }, e.DEFAULT_INSTANCE = new Ny(), e;
10142
+ }, e.DEFAULT_INSTANCE = new Ay(), e;
10168
10143
  }(ve)
10169
- ), Iy = (
10144
+ ), Ry = (
10170
10145
  /** @class */
10171
10146
  function(t) {
10172
10147
  je(e, t);
@@ -10177,7 +10152,7 @@ var Ty = function(t, e) {
10177
10152
  return e.DEFAULT_INSTANCE;
10178
10153
  }, e.DEFAULT_INSTANCE = new is([0, 5, 10, 25, 50, 75, 100, 250, 500, 750, 1e3, 2500, 5e3, 7500, 1e4], !0), e;
10179
10154
  }(ve)
10180
- ), ky = (
10155
+ ), Py = (
10181
10156
  /** @class */
10182
10157
  function(t) {
10183
10158
  je(e, t);
@@ -10196,7 +10171,7 @@ var Ty = function(t, e) {
10196
10171
  return new is(this._boundaries, this._recordMinMax);
10197
10172
  }, e;
10198
10173
  }(ve)
10199
- ), My = (
10174
+ ), Iy = (
10200
10175
  /** @class */
10201
10176
  function(t) {
10202
10177
  je(e, t);
@@ -10206,10 +10181,10 @@ var Ty = function(t, e) {
10206
10181
  return i._maxSize = n, i._recordMinMax = r, i;
10207
10182
  }
10208
10183
  return e.prototype.createAggregator = function(n) {
10209
- return new Ay(this._maxSize, this._recordMinMax);
10184
+ return new Sy(this._maxSize, this._recordMinMax);
10210
10185
  }, e;
10211
10186
  }(ve)
10212
- ), Dy = (
10187
+ ), ky = (
10213
10188
  /** @class */
10214
10189
  function(t) {
10215
10190
  je(e, t);
@@ -10227,16 +10202,16 @@ var Ty = function(t, e) {
10227
10202
  case O.OBSERVABLE_GAUGE:
10228
10203
  return fs;
10229
10204
  case O.HISTOGRAM:
10230
- return n.advice.explicitBucketBoundaries ? new ky(n.advice.explicitBucketBoundaries) : hs;
10205
+ return n.advice.explicitBucketBoundaries ? new Py(n.advice.explicitBucketBoundaries) : hs;
10231
10206
  }
10232
10207
  return E.warn("Unable to recognize instrument type: " + n.type), ls;
10233
10208
  }, e.prototype.createAggregator = function(n) {
10234
10209
  return this._resolve(n).createAggregator(n);
10235
10210
  }, e;
10236
10211
  }(ve)
10237
- ), ls = new Cy(), ps = new Ry(), fs = new Py(), hs = new Iy(), Uy = new My(), jy = new Dy(), By = function(t) {
10212
+ ), ls = new Ny(), ps = new Ly(), fs = new Cy(), hs = new Ry(), My = new Iy(), Dy = new ky(), Uy = function(t) {
10238
10213
  return ve.Default();
10239
- }, $y = function(t) {
10214
+ }, jy = function(t) {
10240
10215
  return ae.CUMULATIVE;
10241
10216
  }, Zn = function(t, e, n, r) {
10242
10217
  function i(o) {
@@ -10339,16 +10314,16 @@ var Ty = function(t, e) {
10339
10314
  }
10340
10315
  }
10341
10316
  return o;
10342
- }, Fy = function(t, e, n) {
10317
+ }, By = function(t, e, n) {
10343
10318
  if (arguments.length === 2) for (var r = 0, i = e.length, o; r < i; r++)
10344
10319
  (o || !(r in e)) && (o || (o = Array.prototype.slice.call(e, 0, r)), o[r] = e[r]);
10345
10320
  return t.concat(o || Array.prototype.slice.call(e));
10346
- }, Vy = (
10321
+ }, $y = (
10347
10322
  /** @class */
10348
10323
  function() {
10349
10324
  function t(e) {
10350
10325
  var n, r, i;
10351
- this._shutdown = !1, this._aggregationSelector = (n = e?.aggregationSelector) !== null && n !== void 0 ? n : By, this._aggregationTemporalitySelector = (r = e?.aggregationTemporalitySelector) !== null && r !== void 0 ? r : $y, this._metricProducers = (i = e?.metricProducers) !== null && i !== void 0 ? i : [], this._cardinalitySelector = e?.cardinalitySelector;
10326
+ this._shutdown = !1, this._aggregationSelector = (n = e?.aggregationSelector) !== null && n !== void 0 ? n : Uy, this._aggregationTemporalitySelector = (r = e?.aggregationTemporalitySelector) !== null && r !== void 0 ? r : jy, this._metricProducers = (i = e?.metricProducers) !== null && i !== void 0 ? i : [], this._cardinalitySelector = e?.cardinalitySelector;
10352
10327
  }
10353
10328
  return t.prototype.setMetricProducer = function(e) {
10354
10329
  if (this._sdkMetricProducer)
@@ -10371,7 +10346,7 @@ var Ty = function(t, e) {
10371
10346
  throw new Error("MetricReader is not bound to a MetricProducer");
10372
10347
  if (this._shutdown)
10373
10348
  throw new Error("MetricReader is shutdown");
10374
- return [4, Promise.all(Fy([
10349
+ return [4, Promise.all(By([
10375
10350
  this._sdkMetricProducer.collect({
10376
10351
  timeoutMillis: e?.timeoutMillis
10377
10352
  })
@@ -10444,7 +10419,7 @@ var Ty = function(t, e) {
10444
10419
  });
10445
10420
  }, t;
10446
10421
  }()
10447
- ), Gy = /* @__PURE__ */ function() {
10422
+ ), Fy = /* @__PURE__ */ function() {
10448
10423
  var t = function(e, n) {
10449
10424
  return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
10450
10425
  r.__proto__ = i;
@@ -10546,7 +10521,7 @@ var Ty = function(t, e) {
10546
10521
  if (s[0] & 5) throw s[1];
10547
10522
  return { value: s[0] ? s[1] : void 0, done: !0 };
10548
10523
  }
10549
- }, Hy = function(t, e) {
10524
+ }, Vy = function(t, e) {
10550
10525
  var n = typeof Symbol == "function" && t[Symbol.iterator];
10551
10526
  if (!n) return t;
10552
10527
  var r = n.call(t), i, o = [], a;
@@ -10562,14 +10537,14 @@ var Ty = function(t, e) {
10562
10537
  }
10563
10538
  }
10564
10539
  return o;
10565
- }, qy = function(t, e, n) {
10540
+ }, Gy = function(t, e, n) {
10566
10541
  if (arguments.length === 2) for (var r = 0, i = e.length, o; r < i; r++)
10567
10542
  (o || !(r in e)) && (o || (o = Array.prototype.slice.call(e, 0, r)), o[r] = e[r]);
10568
10543
  return t.concat(o || Array.prototype.slice.call(e));
10569
- }, zy = (
10544
+ }, Hy = (
10570
10545
  /** @class */
10571
10546
  function(t) {
10572
- Gy(e, t);
10547
+ Fy(e, t);
10573
10548
  function e(n) {
10574
10549
  var r, i, o, a, u = t.call(this, {
10575
10550
  aggregationSelector: (r = n.exporter.selectAggregation) === null || r === void 0 ? void 0 : r.bind(n.exporter),
@@ -10617,7 +10592,7 @@ var Ty = function(t, e) {
10617
10592
  timeoutMillis: this._exportTimeout
10618
10593
  })];
10619
10594
  case 1:
10620
- if (i = l.sent(), o = i.resourceMetrics, a = i.errors, a.length > 0 && (s = E).error.apply(s, qy(["PeriodicExportingMetricReader: metrics collection errors"], Hy(a), !1)), !o.resource.asyncAttributesPending) return [3, 5];
10595
+ if (i = l.sent(), o = i.resourceMetrics, a = i.errors, a.length > 0 && (s = E).error.apply(s, Gy(["PeriodicExportingMetricReader: metrics collection errors"], Vy(a), !1)), !o.resource.asyncAttributesPending) return [3, 5];
10621
10596
  l.label = 2;
10622
10597
  case 2:
10623
10598
  return l.trys.push([2, 4, , 5]), [4, (r = (n = o.resource).waitForAsyncAttributes) === null || r === void 0 ? void 0 : r.call(n)];
@@ -10678,8 +10653,8 @@ var Ty = function(t, e) {
10678
10653
  });
10679
10654
  });
10680
10655
  }, e;
10681
- }(Vy)
10682
- ), Xy = (
10656
+ }($y)
10657
+ ), qy = (
10683
10658
  /** @class */
10684
10659
  function() {
10685
10660
  function t() {
@@ -10729,7 +10704,7 @@ var Ty = function(t, e) {
10729
10704
  this._descriptor.valueType === be.INT && !Number.isInteger(e) && (E.warn("INT value type cannot accept a floating-point value for " + this._descriptor.name + ", ignoring the fractional digits."), e = Math.trunc(e), !Number.isInteger(e)) || this._writableMetricStorage.record(e, n, r, te(Date.now()));
10730
10705
  }, t;
10731
10706
  }()
10732
- ), Ky = (
10707
+ ), zy = (
10733
10708
  /** @class */
10734
10709
  function(t) {
10735
10710
  Be(e, t);
@@ -10740,7 +10715,7 @@ var Ty = function(t, e) {
10740
10715
  this._record(n, r, i);
10741
10716
  }, e;
10742
10717
  }(Sn)
10743
- ), Yy = (
10718
+ ), Xy = (
10744
10719
  /** @class */
10745
10720
  function(t) {
10746
10721
  Be(e, t);
@@ -10755,7 +10730,7 @@ var Ty = function(t, e) {
10755
10730
  this._record(n, r, i);
10756
10731
  }, e;
10757
10732
  }(Sn)
10758
- ), Wy = (
10733
+ ), Ky = (
10759
10734
  /** @class */
10760
10735
  function(t) {
10761
10736
  Be(e, t);
@@ -10766,7 +10741,7 @@ var Ty = function(t, e) {
10766
10741
  this._record(n, r, i);
10767
10742
  }, e;
10768
10743
  }(Sn)
10769
- ), Jy = (
10744
+ ), Yy = (
10770
10745
  /** @class */
10771
10746
  function(t) {
10772
10747
  Be(e, t);
@@ -10793,7 +10768,7 @@ var Ty = function(t, e) {
10793
10768
  this._observableRegistry.removeCallback(e, this);
10794
10769
  }, t;
10795
10770
  }()
10796
- ), Qy = (
10771
+ ), Wy = (
10797
10772
  /** @class */
10798
10773
  function(t) {
10799
10774
  Be(e, t);
@@ -10802,7 +10777,7 @@ var Ty = function(t, e) {
10802
10777
  }
10803
10778
  return e;
10804
10779
  }(On)
10805
- ), Zy = (
10780
+ ), Jy = (
10806
10781
  /** @class */
10807
10782
  function(t) {
10808
10783
  Be(e, t);
@@ -10811,7 +10786,7 @@ var Ty = function(t, e) {
10811
10786
  }
10812
10787
  return e;
10813
10788
  }(On)
10814
- ), ev = (
10789
+ ), Qy = (
10815
10790
  /** @class */
10816
10791
  function(t) {
10817
10792
  Be(e, t);
@@ -10824,7 +10799,7 @@ var Ty = function(t, e) {
10824
10799
  function Lr(t) {
10825
10800
  return t instanceof On;
10826
10801
  }
10827
- var tv = (
10802
+ var Zy = (
10828
10803
  /** @class */
10829
10804
  function() {
10830
10805
  function t(e) {
@@ -10832,25 +10807,25 @@ var tv = (
10832
10807
  }
10833
10808
  return t.prototype.createGauge = function(e, n) {
10834
10809
  var r = ge(e, O.GAUGE, n), i = this._meterSharedState.registerMetricStorage(r);
10835
- return new Wy(i, r);
10810
+ return new Ky(i, r);
10836
10811
  }, t.prototype.createHistogram = function(e, n) {
10837
10812
  var r = ge(e, O.HISTOGRAM, n), i = this._meterSharedState.registerMetricStorage(r);
10838
- return new Jy(i, r);
10813
+ return new Yy(i, r);
10839
10814
  }, t.prototype.createCounter = function(e, n) {
10840
10815
  var r = ge(e, O.COUNTER, n), i = this._meterSharedState.registerMetricStorage(r);
10841
- return new Yy(i, r);
10816
+ return new Xy(i, r);
10842
10817
  }, t.prototype.createUpDownCounter = function(e, n) {
10843
10818
  var r = ge(e, O.UP_DOWN_COUNTER, n), i = this._meterSharedState.registerMetricStorage(r);
10844
- return new Ky(i, r);
10819
+ return new zy(i, r);
10845
10820
  }, t.prototype.createObservableGauge = function(e, n) {
10846
10821
  var r = ge(e, O.OBSERVABLE_GAUGE, n), i = this._meterSharedState.registerAsyncMetricStorage(r);
10847
- return new Zy(r, i, this._meterSharedState.observableRegistry);
10822
+ return new Jy(r, i, this._meterSharedState.observableRegistry);
10848
10823
  }, t.prototype.createObservableCounter = function(e, n) {
10849
10824
  var r = ge(e, O.OBSERVABLE_COUNTER, n), i = this._meterSharedState.registerAsyncMetricStorage(r);
10850
- return new Qy(r, i, this._meterSharedState.observableRegistry);
10825
+ return new Wy(r, i, this._meterSharedState.observableRegistry);
10851
10826
  }, t.prototype.createObservableUpDownCounter = function(e, n) {
10852
10827
  var r = ge(e, O.OBSERVABLE_UP_DOWN_COUNTER, n), i = this._meterSharedState.registerAsyncMetricStorage(r);
10853
- return new ev(r, i, this._meterSharedState.observableRegistry);
10828
+ return new Qy(r, i, this._meterSharedState.observableRegistry);
10854
10829
  }, t.prototype.addBatchObservableCallback = function(e, n) {
10855
10830
  this._meterSharedState.observableRegistry.addBatchCallback(e, n);
10856
10831
  }, t.prototype.removeBatchObservableCallback = function(e, n) {
@@ -10874,7 +10849,7 @@ var tv = (
10874
10849
  });
10875
10850
  }, t;
10876
10851
  }()
10877
- ), nv = /* @__PURE__ */ function() {
10852
+ ), ev = /* @__PURE__ */ function() {
10878
10853
  var t = function(e, n) {
10879
10854
  return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
10880
10855
  r.__proto__ = i;
@@ -10950,7 +10925,7 @@ var tv = (
10950
10925
  if (s[0] & 5) throw s[1];
10951
10926
  return { value: s[0] ? s[1] : void 0, done: !0 };
10952
10927
  }
10953
- }, rv = (
10928
+ }, tv = (
10954
10929
  /** @class */
10955
10930
  function() {
10956
10931
  function t(e) {
@@ -11013,13 +10988,13 @@ var tv = (
11013
10988
  ), Ce = (
11014
10989
  /** @class */
11015
10990
  function(t) {
11016
- nv(e, t);
10991
+ ev(e, t);
11017
10992
  function e() {
11018
10993
  return t.call(this, ns) || this;
11019
10994
  }
11020
10995
  return e;
11021
- }(rv)
11022
- ), iv = function(t, e) {
10996
+ }(tv)
10997
+ ), nv = function(t, e) {
11023
10998
  var n = typeof Symbol == "function" && t[Symbol.iterator];
11024
10999
  if (!n) return t;
11025
11000
  var r = n.call(t), i, o = [], a;
@@ -11057,7 +11032,7 @@ var tv = (
11057
11032
  }, t.prototype.batchCumulate = function(e, n) {
11058
11033
  var r = this;
11059
11034
  Array.from(e.entries()).forEach(function(i) {
11060
- var o = iv(i, 3), a = o[0], u = o[1], c = o[2], s = r._aggregator.createAccumulation(n);
11035
+ var o = nv(i, 3), a = o[0], u = o[1], c = o[2], s = r._aggregator.createAccumulation(n);
11061
11036
  s?.record(u);
11062
11037
  var l = s;
11063
11038
  if (r._cumulativeMemoStorage.has(a, c)) {
@@ -11125,7 +11100,7 @@ var tv = (
11125
11100
  collectionTime: i,
11126
11101
  aggregationTemporality: u
11127
11102
  });
11128
- var l = ov(a);
11103
+ var l = rv(a);
11129
11104
  if (l.length !== 0)
11130
11105
  return this._aggregator.toMetricData(
11131
11106
  n,
@@ -11200,10 +11175,10 @@ var tv = (
11200
11175
  }, t;
11201
11176
  }()
11202
11177
  );
11203
- function ov(t) {
11178
+ function rv(t) {
11204
11179
  return Array.from(t.entries());
11205
11180
  }
11206
- var av = /* @__PURE__ */ function() {
11181
+ var iv = /* @__PURE__ */ function() {
11207
11182
  var t = function(e, n) {
11208
11183
  return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
11209
11184
  r.__proto__ = i;
@@ -11220,7 +11195,7 @@ var av = /* @__PURE__ */ function() {
11220
11195
  }
11221
11196
  e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
11222
11197
  };
11223
- }(), sv = function(t, e) {
11198
+ }(), ov = function(t, e) {
11224
11199
  var n = typeof Symbol == "function" && t[Symbol.iterator];
11225
11200
  if (!n) return t;
11226
11201
  var r = n.call(t), i, o = [], a;
@@ -11236,10 +11211,10 @@ var av = /* @__PURE__ */ function() {
11236
11211
  }
11237
11212
  }
11238
11213
  return o;
11239
- }, uv = (
11214
+ }, av = (
11240
11215
  /** @class */
11241
11216
  function(t) {
11242
- av(e, t);
11217
+ iv(e, t);
11243
11218
  function e(n, r, i, o, a) {
11244
11219
  var u = t.call(this, n) || this;
11245
11220
  return u._attributesProcessor = i, u._aggregationCardinalityLimit = a, u._deltaMetricStorage = new ms(r, u._aggregationCardinalityLimit), u._temporalMetricStorage = new ys(r, o), u;
@@ -11247,7 +11222,7 @@ var av = /* @__PURE__ */ function() {
11247
11222
  return e.prototype.record = function(n, r) {
11248
11223
  var i = this, o = new Ce();
11249
11224
  Array.from(n.entries()).forEach(function(a) {
11250
- var u = sv(a, 2), c = u[0], s = u[1];
11225
+ var u = ov(a, 2), c = u[0], s = u[1];
11251
11226
  o.set(i._attributesProcessor.process(c), s);
11252
11227
  }), this._deltaMetricStorage.batchCumulate(o, r);
11253
11228
  }, e.prototype.collect = function(n, r) {
@@ -11264,13 +11239,13 @@ function io(t, e) {
11264
11239
  `), t.description !== e.description && (n += " - Description '" + t.description + "' does not match '" + e.description + `'
11265
11240
  `), n;
11266
11241
  }
11267
- function cv(t, e) {
11242
+ function sv(t, e) {
11268
11243
  return " - use valueType '" + t.valueType + "' on instrument creation or use an instrument name other than '" + e.name + "'";
11269
11244
  }
11270
- function lv(t, e) {
11245
+ function uv(t, e) {
11271
11246
  return " - use unit '" + t.unit + "' on instrument creation or use an instrument name other than '" + e.name + "'";
11272
11247
  }
11273
- function pv(t, e) {
11248
+ function cv(t, e) {
11274
11249
  var n = {
11275
11250
  name: e.name,
11276
11251
  type: e.type,
@@ -11278,7 +11253,7 @@ function pv(t, e) {
11278
11253
  }, r = JSON.stringify(n);
11279
11254
  return " - create a new view with a name other than '" + t.name + "' and InstrumentSelector '" + r + "'";
11280
11255
  }
11281
- function fv(t, e) {
11256
+ function lv(t, e) {
11282
11257
  var n = {
11283
11258
  name: e.name,
11284
11259
  type: e.type,
@@ -11289,7 +11264,7 @@ function fv(t, e) {
11289
11264
  - OR - create a new view with the name ` + e.name + " and description '" + t.description + "' and InstrumentSelector " + r;
11290
11265
  }
11291
11266
  function oo(t, e) {
11292
- return t.valueType !== e.valueType ? cv(t, e) : t.unit !== e.unit ? lv(t, e) : t.type !== e.type ? pv(t, e) : t.description !== e.description ? fv(t, e) : "";
11267
+ return t.valueType !== e.valueType ? sv(t, e) : t.unit !== e.unit ? uv(t, e) : t.type !== e.type ? cv(t, e) : t.description !== e.description ? lv(t, e) : "";
11293
11268
  }
11294
11269
  var nr = function(t) {
11295
11270
  var e = typeof Symbol == "function" && Symbol.iterator, n = e && t[e], r = 0;
@@ -11300,7 +11275,7 @@ var nr = function(t) {
11300
11275
  }
11301
11276
  };
11302
11277
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
11303
- }, hv = (
11278
+ }, pv = (
11304
11279
  /** @class */
11305
11280
  function() {
11306
11281
  function t() {
@@ -11367,7 +11342,7 @@ var nr = function(t) {
11367
11342
  try {
11368
11343
  for (var a = nr(n), u = a.next(); !u.done; u = a.next()) {
11369
11344
  var c = u.value, s = c.getInstrumentDescriptor();
11370
- uy(s, e) ? (s.description !== e.description && (e.description.length > s.description.length && c.updateDescription(e.description), E.warn("A view or instrument with the name ", e.name, ` has already been registered, but has a different description and is incompatible with another registered view.
11345
+ ay(s, e) ? (s.description !== e.description && (e.description.length > s.description.length && c.updateDescription(e.description), E.warn("A view or instrument with the name ", e.name, ` has already been registered, but has a different description and is incompatible with another registered view.
11371
11346
  `, `Details:
11372
11347
  `, io(s, e), `The longer description will be used.
11373
11348
  To resolve the conflict:`, oo(s, e))), o = c) : E.warn("A view or instrument with the name ", e.name, ` has already been registered and is incompatible with another registered view.
@@ -11387,7 +11362,7 @@ To resolve the conflict:`, oo(s, e))), o = c) : E.warn("A view or instrument wit
11387
11362
  return o;
11388
11363
  }, t;
11389
11364
  }()
11390
- ), dv = (
11365
+ ), fv = (
11391
11366
  /** @class */
11392
11367
  function() {
11393
11368
  function t(e) {
@@ -11399,7 +11374,7 @@ To resolve the conflict:`, oo(s, e))), o = c) : E.warn("A view or instrument wit
11399
11374
  });
11400
11375
  }, t;
11401
11376
  }()
11402
- ), mv = (
11377
+ ), hv = (
11403
11378
  /** @class */
11404
11379
  function() {
11405
11380
  function t(e, n) {
@@ -11413,7 +11388,7 @@ To resolve the conflict:`, oo(s, e))), o = c) : E.warn("A view or instrument wit
11413
11388
  this._valueType === be.INT && !Number.isInteger(e) && (E.warn("INT value type cannot accept a floating-point value for " + this._instrumentName + ", ignoring the fractional digits."), e = Math.trunc(e), !Number.isInteger(e)) || this._buffer.set(n, e);
11414
11389
  }, t;
11415
11390
  }()
11416
- ), yv = (
11391
+ ), dv = (
11417
11392
  /** @class */
11418
11393
  function() {
11419
11394
  function t() {
@@ -11535,7 +11510,7 @@ To resolve the conflict:`, oo(s, e))), o = c) : E.warn("A view or instrument wit
11535
11510
  if (arguments.length === 2) for (var r = 0, i = e.length, o; r < i; r++)
11536
11511
  (o || !(r in e)) && (o || (o = Array.prototype.slice.call(e, 0, r)), o[r] = e[r]);
11537
11512
  return t.concat(o || Array.prototype.slice.call(e));
11538
- }, vv = (
11513
+ }, mv = (
11539
11514
  /** @class */
11540
11515
  function() {
11541
11516
  function t() {
@@ -11564,9 +11539,9 @@ To resolve the conflict:`, oo(s, e))), o = c) : E.warn("A view or instrument wit
11564
11539
  return ir(this, function(u) {
11565
11540
  switch (u.label) {
11566
11541
  case 0:
11567
- return r = this._observeCallbacks(e, n), i = this._observeBatchCallbacks(e, n), [4, ty(so(so([], ao(r), !1), ao(i), !1))];
11542
+ return r = this._observeCallbacks(e, n), i = this._observeBatchCallbacks(e, n), [4, Zm(so(so([], ao(r), !1), ao(i), !1))];
11568
11543
  case 1:
11569
- return o = u.sent(), a = o.filter(ny).map(function(c) {
11544
+ return o = u.sent(), a = o.filter(ey).map(function(c) {
11570
11545
  return c.reason;
11571
11546
  }), [2, a];
11572
11547
  }
@@ -11581,7 +11556,7 @@ To resolve the conflict:`, oo(s, e))), o = c) : E.warn("A view or instrument wit
11581
11556
  return ir(this, function(s) {
11582
11557
  switch (s.label) {
11583
11558
  case 0:
11584
- return u = new mv(a._descriptor.name, a._descriptor.valueType), c = Promise.resolve(o(u)), n != null && (c = wt(c, n)), [4, c];
11559
+ return u = new hv(a._descriptor.name, a._descriptor.valueType), c = Promise.resolve(o(u)), n != null && (c = wt(c, n)), [4, c];
11585
11560
  case 1:
11586
11561
  return s.sent(), a._metricStorages.forEach(function(l) {
11587
11562
  l.record(u._buffer, e);
@@ -11602,7 +11577,7 @@ To resolve the conflict:`, oo(s, e))), o = c) : E.warn("A view or instrument wit
11602
11577
  return ir(this, function(s) {
11603
11578
  switch (s.label) {
11604
11579
  case 0:
11605
- return u = new yv(), c = Promise.resolve(o(u)), n != null && (c = wt(c, n)), [4, c];
11580
+ return u = new dv(), c = Promise.resolve(o(u)), n != null && (c = wt(c, n)), [4, c];
11606
11581
  case 1:
11607
11582
  return s.sent(), a.forEach(function(l) {
11608
11583
  var p = u._buffer.get(l);
@@ -11623,11 +11598,11 @@ To resolve the conflict:`, oo(s, e))), o = c) : E.warn("A view or instrument wit
11623
11598
  });
11624
11599
  }, t.prototype._findBatchCallback = function(e, n) {
11625
11600
  return this._batchCallbacks.findIndex(function(r) {
11626
- return r.callback === e && ry(r.instruments, n);
11601
+ return r.callback === e && ty(r.instruments, n);
11627
11602
  });
11628
11603
  }, t;
11629
11604
  }()
11630
- ), gv = /* @__PURE__ */ function() {
11605
+ ), yv = /* @__PURE__ */ function() {
11631
11606
  var t = function(e, n) {
11632
11607
  return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
11633
11608
  r.__proto__ = i;
@@ -11644,10 +11619,10 @@ To resolve the conflict:`, oo(s, e))), o = c) : E.warn("A view or instrument wit
11644
11619
  }
11645
11620
  e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
11646
11621
  };
11647
- }(), _v = (
11622
+ }(), vv = (
11648
11623
  /** @class */
11649
11624
  function(t) {
11650
- gv(e, t);
11625
+ yv(e, t);
11651
11626
  function e(n, r, i, o, a) {
11652
11627
  var u = t.call(this, n) || this;
11653
11628
  return u._attributesProcessor = i, u._aggregationCardinalityLimit = a, u._deltaMetricStorage = new ms(r, u._aggregationCardinalityLimit), u._temporalMetricStorage = new ys(r, o), u;
@@ -11682,10 +11657,10 @@ To resolve the conflict:`, oo(s, e))), o = c) : E.warn("A view or instrument wit
11682
11657
  function t() {
11683
11658
  }
11684
11659
  return t.Noop = function() {
11685
- return Ev;
11660
+ return _v;
11686
11661
  }, t;
11687
11662
  }()
11688
- ), bv = (
11663
+ ), gv = (
11689
11664
  /** @class */
11690
11665
  function(t) {
11691
11666
  vs(e, t);
@@ -11712,7 +11687,7 @@ To resolve the conflict:`, oo(s, e))), o = c) : E.warn("A view or instrument wit
11712
11687
  }), o;
11713
11688
  }, e;
11714
11689
  })(Yr);
11715
- var Ev = new bv(), Tv = function(t, e, n, r) {
11690
+ var _v = new gv(), bv = function(t, e, n, r) {
11716
11691
  function i(o) {
11717
11692
  return o instanceof n ? o : new n(function(a) {
11718
11693
  a(o);
@@ -11738,7 +11713,7 @@ var Ev = new bv(), Tv = function(t, e, n, r) {
11738
11713
  }
11739
11714
  s((r = r.apply(t, [])).next());
11740
11715
  });
11741
- }, wv = function(t, e) {
11716
+ }, Ev = function(t, e) {
11742
11717
  var n = { label: 0, sent: function() {
11743
11718
  if (o[0] & 1) throw o[1];
11744
11719
  return o[1];
@@ -11797,7 +11772,7 @@ var Ev = new bv(), Tv = function(t, e, n, r) {
11797
11772
  if (s[0] & 5) throw s[1];
11798
11773
  return { value: s[0] ? s[1] : void 0, done: !0 };
11799
11774
  }
11800
- }, Sv = function(t, e) {
11775
+ }, Tv = function(t, e) {
11801
11776
  var n = typeof Symbol == "function" && t[Symbol.iterator];
11802
11777
  if (!n) return t;
11803
11778
  var r = n.call(t), i, o = [], a;
@@ -11813,29 +11788,29 @@ var Ev = new bv(), Tv = function(t, e, n, r) {
11813
11788
  }
11814
11789
  }
11815
11790
  return o;
11816
- }, Ov = (
11791
+ }, wv = (
11817
11792
  /** @class */
11818
11793
  function() {
11819
11794
  function t(e, n) {
11820
- this._meterProviderSharedState = e, this._instrumentationScope = n, this.metricStorageRegistry = new hv(), this.observableRegistry = new vv(), this.meter = new tv(this);
11795
+ this._meterProviderSharedState = e, this._instrumentationScope = n, this.metricStorageRegistry = new pv(), this.observableRegistry = new mv(), this.meter = new Zy(this);
11821
11796
  }
11822
11797
  return t.prototype.registerMetricStorage = function(e) {
11823
- var n = this._registerMetricStorage(e, _v);
11824
- return n.length === 1 ? n[0] : new dv(n);
11798
+ var n = this._registerMetricStorage(e, vv);
11799
+ return n.length === 1 ? n[0] : new fv(n);
11825
11800
  }, t.prototype.registerAsyncMetricStorage = function(e) {
11826
- var n = this._registerMetricStorage(e, uv);
11801
+ var n = this._registerMetricStorage(e, av);
11827
11802
  return n;
11828
11803
  }, t.prototype.collect = function(e, n, r) {
11829
- return Tv(this, void 0, void 0, function() {
11804
+ return bv(this, void 0, void 0, function() {
11830
11805
  var i, o, a;
11831
- return wv(this, function(u) {
11806
+ return Ev(this, function(u) {
11832
11807
  switch (u.label) {
11833
11808
  case 0:
11834
11809
  return [4, this.observableRegistry.observe(n, r?.timeoutMillis)];
11835
11810
  case 1:
11836
11811
  return i = u.sent(), o = this.metricStorageRegistry.getStorages(e), o.length === 0 ? [2, null] : (a = o.map(function(c) {
11837
11812
  return c.collect(e, n);
11838
- }).filter(Zm), a.length === 0 ? [2, { errors: i }] : [2, {
11813
+ }).filter(Jm), a.length === 0 ? [2, { errors: i }] : [2, {
11839
11814
  scopeMetrics: {
11840
11815
  scope: this._instrumentationScope,
11841
11816
  metrics: a
@@ -11847,7 +11822,7 @@ var Ev = new bv(), Tv = function(t, e, n, r) {
11847
11822
  });
11848
11823
  }, t.prototype._registerMetricStorage = function(e, n) {
11849
11824
  var r = this, i = this._meterProviderSharedState.viewRegistry.findViews(e, this._instrumentationScope), o = i.map(function(c) {
11850
- var s = sy(c, e), l = r.metricStorageRegistry.findOrUpdateCompatibleStorage(s);
11825
+ var s = oy(c, e), l = r.metricStorageRegistry.findOrUpdateCompatibleStorage(s);
11851
11826
  if (l != null)
11852
11827
  return l;
11853
11828
  var p = c.aggregation.createAggregator(s), f = new n(s, p, c.attributesProcessor, r._meterProviderSharedState.metricCollectors, c.aggregationCardinalityLimit);
@@ -11855,7 +11830,7 @@ var Ev = new bv(), Tv = function(t, e, n, r) {
11855
11830
  });
11856
11831
  if (o.length === 0) {
11857
11832
  var a = this._meterProviderSharedState.selectAggregations(e.type), u = a.map(function(c) {
11858
- var s = Sv(c, 2), l = s[0], p = s[1], f = r.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(l, e);
11833
+ var s = Tv(c, 2), l = s[0], p = s[1], f = r.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(l, e);
11859
11834
  if (f != null)
11860
11835
  return f;
11861
11836
  var y = p.createAggregator(e), m = l.selectCardinalityLimit(e.type), v = new n(e, y, Yr.Noop(), [l], m);
@@ -11866,7 +11841,7 @@ var Ev = new bv(), Tv = function(t, e, n, r) {
11866
11841
  return o;
11867
11842
  }, t;
11868
11843
  }()
11869
- ), Av = function(t) {
11844
+ ), Sv = function(t) {
11870
11845
  var e = typeof Symbol == "function" && Symbol.iterator, n = e && t[e], r = 0;
11871
11846
  if (n) return n.call(t);
11872
11847
  if (t && typeof t.length == "number") return {
@@ -11875,19 +11850,19 @@ var Ev = new bv(), Tv = function(t, e, n, r) {
11875
11850
  }
11876
11851
  };
11877
11852
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
11878
- }, xv = (
11853
+ }, Ov = (
11879
11854
  /** @class */
11880
11855
  function() {
11881
11856
  function t(e) {
11882
- this.resource = e, this.viewRegistry = new Xy(), this.metricCollectors = [], this.meterSharedStates = /* @__PURE__ */ new Map();
11857
+ this.resource = e, this.viewRegistry = new qy(), this.metricCollectors = [], this.meterSharedStates = /* @__PURE__ */ new Map();
11883
11858
  }
11884
11859
  return t.prototype.getMeterSharedState = function(e) {
11885
- var n = ey(e), r = this.meterSharedStates.get(n);
11886
- return r == null && (r = new Ov(this, e), this.meterSharedStates.set(n, r)), r;
11860
+ var n = Qm(e), r = this.meterSharedStates.get(n);
11861
+ return r == null && (r = new wv(this, e), this.meterSharedStates.set(n, r)), r;
11887
11862
  }, t.prototype.selectAggregations = function(e) {
11888
11863
  var n, r, i = [];
11889
11864
  try {
11890
- for (var o = Av(this.metricCollectors), a = o.next(); !a.done; a = o.next()) {
11865
+ for (var o = Sv(this.metricCollectors), a = o.next(); !a.done; a = o.next()) {
11891
11866
  var u = a.value;
11892
11867
  i.push([u, u.selectAggregation(e)]);
11893
11868
  }
@@ -11988,7 +11963,7 @@ var Ev = new bv(), Tv = function(t, e, n, r) {
11988
11963
  if (s[0] & 5) throw s[1];
11989
11964
  return { value: s[0] ? s[1] : void 0, done: !0 };
11990
11965
  }
11991
- }, Nv = function(t, e) {
11966
+ }, Av = function(t, e) {
11992
11967
  var n = typeof Symbol == "function" && t[Symbol.iterator];
11993
11968
  if (!n) return t;
11994
11969
  var r = n.call(t), i, o = [], a;
@@ -12004,11 +11979,11 @@ var Ev = new bv(), Tv = function(t, e, n, r) {
12004
11979
  }
12005
11980
  }
12006
11981
  return o;
12007
- }, Lv = function(t, e, n) {
11982
+ }, xv = function(t, e, n) {
12008
11983
  if (arguments.length === 2) for (var r = 0, i = e.length, o; r < i; r++)
12009
11984
  (o || !(r in e)) && (o || (o = Array.prototype.slice.call(e, 0, r)), o[r] = e[r]);
12010
11985
  return t.concat(o || Array.prototype.slice.call(e));
12011
- }, Cv = (
11986
+ }, Nv = (
12012
11987
  /** @class */
12013
11988
  function() {
12014
11989
  function t(e, n) {
@@ -12028,7 +12003,7 @@ var Ev = new bv(), Tv = function(t, e, n, r) {
12028
12003
  case 0:
12029
12004
  return [4, c.collect(this, n, e)];
12030
12005
  case 1:
12031
- return s = l.sent(), s?.scopeMetrics != null && r.push(s.scopeMetrics), s?.errors != null && i.push.apply(i, Lv([], Nv(s.errors), !1)), [
12006
+ return s = l.sent(), s?.scopeMetrics != null && r.push(s.scopeMetrics), s?.errors != null && i.push.apply(i, xv([], Av(s.errors), !1)), [
12032
12007
  2
12033
12008
  /*return*/
12034
12009
  ];
@@ -12179,16 +12154,16 @@ var Ev = new bv(), Tv = function(t, e, n, r) {
12179
12154
  };
12180
12155
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
12181
12156
  };
12182
- function Rv(t, e) {
12157
+ function Lv(t, e) {
12183
12158
  var n = e ?? Tt.empty();
12184
12159
  return t ? Tt.default().merge(n) : n;
12185
12160
  }
12186
- var Pv = (
12161
+ var Cv = (
12187
12162
  /** @class */
12188
12163
  function() {
12189
12164
  function t(e) {
12190
12165
  var n, r, i, o, a;
12191
- if (this._shutdown = !1, this._sharedState = new xv(Rv((a = e?.mergeResourceWithDefaults) !== null && a !== void 0 ? a : !0, e?.resource)), e?.views != null && e.views.length > 0)
12166
+ if (this._shutdown = !1, this._sharedState = new Ov(Lv((a = e?.mergeResourceWithDefaults) !== null && a !== void 0 ? a : !0, e?.resource)), e?.views != null && e.views.length > 0)
12192
12167
  try {
12193
12168
  for (var u = lo(e.views), c = u.next(); !c.done; c = u.next()) {
12194
12169
  var s = c.value;
@@ -12226,7 +12201,7 @@ var Pv = (
12226
12201
  schemaUrl: r.schemaUrl
12227
12202
  }).meter;
12228
12203
  }, t.prototype.addMetricReader = function(e) {
12229
- var n = new Cv(this._sharedState, e);
12204
+ var n = new Nv(this._sharedState, e);
12230
12205
  e.setMetricProducer(n), this._sharedState.metricCollectors.push(n);
12231
12206
  }, t.prototype.shutdown = function(e) {
12232
12207
  return uo(this, void 0, void 0, function() {
@@ -12269,31 +12244,31 @@ var Pv = (
12269
12244
  }, t;
12270
12245
  }()
12271
12246
  );
12272
- function Iv(t, e) {
12247
+ function Rv(t, e) {
12273
12248
  var n = Ja(e);
12274
12249
  return {
12275
12250
  resource: Qa(t.resource),
12276
12251
  schemaUrl: void 0,
12277
- scopeMetrics: kv(t.scopeMetrics, n)
12252
+ scopeMetrics: Pv(t.scopeMetrics, n)
12278
12253
  };
12279
12254
  }
12280
- function kv(t, e) {
12255
+ function Pv(t, e) {
12281
12256
  return Array.from(t.map(function(n) {
12282
12257
  return {
12283
12258
  scope: Za(n.scope),
12284
12259
  metrics: n.metrics.map(function(r) {
12285
- return Mv(r, e);
12260
+ return Iv(r, e);
12286
12261
  }),
12287
12262
  schemaUrl: n.scope.schemaUrl
12288
12263
  };
12289
12264
  }));
12290
12265
  }
12291
- function Mv(t, e) {
12266
+ function Iv(t, e) {
12292
12267
  var n = {
12293
12268
  name: t.descriptor.name,
12294
12269
  description: t.descriptor.description,
12295
12270
  unit: t.descriptor.unit
12296
- }, r = Bv(t.aggregationTemporality);
12271
+ }, r = Uv(t.aggregationTemporality);
12297
12272
  switch (t.dataPointType) {
12298
12273
  case ue.SUM:
12299
12274
  n.sum = {
@@ -12310,19 +12285,19 @@ function Mv(t, e) {
12310
12285
  case ue.HISTOGRAM:
12311
12286
  n.histogram = {
12312
12287
  aggregationTemporality: r,
12313
- dataPoints: Uv(t, e)
12288
+ dataPoints: Mv(t, e)
12314
12289
  };
12315
12290
  break;
12316
12291
  case ue.EXPONENTIAL_HISTOGRAM:
12317
12292
  n.exponentialHistogram = {
12318
12293
  aggregationTemporality: r,
12319
- dataPoints: jv(t, e)
12294
+ dataPoints: Dv(t, e)
12320
12295
  };
12321
12296
  break;
12322
12297
  }
12323
12298
  return n;
12324
12299
  }
12325
- function Dv(t, e, n) {
12300
+ function kv(t, e, n) {
12326
12301
  var r = {
12327
12302
  attributes: Ue(t.attributes),
12328
12303
  startTimeUnixNano: n.encodeHrTime(t.startTime),
@@ -12340,10 +12315,10 @@ function Dv(t, e, n) {
12340
12315
  }
12341
12316
  function po(t, e) {
12342
12317
  return t.dataPoints.map(function(n) {
12343
- return Dv(n, t.descriptor.valueType, e);
12318
+ return kv(n, t.descriptor.valueType, e);
12344
12319
  });
12345
12320
  }
12346
- function Uv(t, e) {
12321
+ function Mv(t, e) {
12347
12322
  return t.dataPoints.map(function(n) {
12348
12323
  var r = n.value;
12349
12324
  return {
@@ -12359,7 +12334,7 @@ function Uv(t, e) {
12359
12334
  };
12360
12335
  });
12361
12336
  }
12362
- function jv(t, e) {
12337
+ function Dv(t, e) {
12363
12338
  return t.dataPoints.map(function(n) {
12364
12339
  var r = n.value;
12365
12340
  return {
@@ -12383,7 +12358,7 @@ function jv(t, e) {
12383
12358
  };
12384
12359
  });
12385
12360
  }
12386
- function Bv(t) {
12361
+ function Uv(t) {
12387
12362
  switch (t) {
12388
12363
  case ae.DELTA:
12389
12364
  return 1;
@@ -12391,14 +12366,14 @@ function Bv(t) {
12391
12366
  return 2;
12392
12367
  }
12393
12368
  }
12394
- function $v(t, e) {
12369
+ function jv(t, e) {
12395
12370
  return {
12396
12371
  resourceMetrics: t.map(function(n) {
12397
- return Iv(n, e);
12372
+ return Rv(n, e);
12398
12373
  })
12399
12374
  };
12400
12375
  }
12401
- var Fv = function(t) {
12376
+ var Bv = function(t) {
12402
12377
  var e = typeof Symbol == "function" && Symbol.iterator, n = e && t[e], r = 0;
12403
12378
  if (n) return n.call(t);
12404
12379
  if (t && typeof t.length == "number") return {
@@ -12407,7 +12382,7 @@ var Fv = function(t) {
12407
12382
  }
12408
12383
  };
12409
12384
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
12410
- }, Vv = function(t, e) {
12385
+ }, $v = function(t, e) {
12411
12386
  var n = typeof Symbol == "function" && t[Symbol.iterator];
12412
12387
  if (!n) return t;
12413
12388
  var r = n.call(t), i, o = [], a;
@@ -12424,7 +12399,7 @@ var Fv = function(t) {
12424
12399
  }
12425
12400
  return o;
12426
12401
  };
12427
- function Gv(t, e) {
12402
+ function Fv(t, e) {
12428
12403
  var n, r = t.spanContext(), i = t.status;
12429
12404
  return {
12430
12405
  traceId: e.encodeSpanContext(r.traceId),
@@ -12439,7 +12414,7 @@ function Gv(t, e) {
12439
12414
  attributes: Ue(t.attributes),
12440
12415
  droppedAttributesCount: t.droppedAttributesCount,
12441
12416
  events: t.events.map(function(o) {
12442
- return qv(o, e);
12417
+ return Gv(o, e);
12443
12418
  }),
12444
12419
  droppedEventsCount: t.droppedEventsCount,
12445
12420
  status: {
@@ -12448,12 +12423,12 @@ function Gv(t, e) {
12448
12423
  message: i.message
12449
12424
  },
12450
12425
  links: t.links.map(function(o) {
12451
- return Hv(o, e);
12426
+ return Vv(o, e);
12452
12427
  }),
12453
12428
  droppedLinksCount: t.droppedLinksCount
12454
12429
  };
12455
12430
  }
12456
- function Hv(t, e) {
12431
+ function Vv(t, e) {
12457
12432
  var n;
12458
12433
  return {
12459
12434
  attributes: t.attributes ? Ue(t.attributes) : [],
@@ -12463,7 +12438,7 @@ function Hv(t, e) {
12463
12438
  droppedAttributesCount: t.droppedAttributesCount || 0
12464
12439
  };
12465
12440
  }
12466
- function qv(t, e) {
12441
+ function Gv(t, e) {
12467
12442
  return {
12468
12443
  attributes: t.attributes ? Ue(t.attributes) : [],
12469
12444
  name: t.name,
@@ -12471,16 +12446,16 @@ function qv(t, e) {
12471
12446
  droppedAttributesCount: t.droppedAttributesCount || 0
12472
12447
  };
12473
12448
  }
12474
- function zv(t, e) {
12449
+ function Hv(t, e) {
12475
12450
  var n = Ja(e);
12476
12451
  return {
12477
- resourceSpans: Kv(t, n)
12452
+ resourceSpans: zv(t, n)
12478
12453
  };
12479
12454
  }
12480
- function Xv(t) {
12455
+ function qv(t) {
12481
12456
  var e, n, r = /* @__PURE__ */ new Map();
12482
12457
  try {
12483
- for (var i = Fv(t), o = i.next(); !o.done; o = i.next()) {
12458
+ for (var i = Bv(t), o = i.next(); !o.done; o = i.next()) {
12484
12459
  var a = o.value, u = r.get(a.resource);
12485
12460
  u || (u = /* @__PURE__ */ new Map(), r.set(a.resource, u));
12486
12461
  var c = a.instrumentationLibrary.name + "@" + (a.instrumentationLibrary.version || "") + ":" + (a.instrumentationLibrary.schemaUrl || ""), s = u.get(c);
@@ -12497,13 +12472,13 @@ function Xv(t) {
12497
12472
  }
12498
12473
  return r;
12499
12474
  }
12500
- function Kv(t, e) {
12501
- for (var n = Xv(t), r = [], i = n.entries(), o = i.next(); !o.done; ) {
12502
- for (var a = Vv(o.value, 2), u = a[0], c = a[1], s = [], l = c.values(), p = l.next(); !p.done; ) {
12475
+ function zv(t, e) {
12476
+ for (var n = qv(t), r = [], i = n.entries(), o = i.next(); !o.done; ) {
12477
+ for (var a = $v(o.value, 2), u = a[0], c = a[1], s = [], l = c.values(), p = l.next(); !p.done; ) {
12503
12478
  var f = p.value;
12504
12479
  if (f.length > 0) {
12505
12480
  var y = f.map(function(v) {
12506
- return Gv(v, e);
12481
+ return Fv(v, e);
12507
12482
  });
12508
12483
  s.push({
12509
12484
  scope: Za(f[0].instrumentationLibrary),
@@ -12522,9 +12497,9 @@ function Kv(t, e) {
12522
12497
  }
12523
12498
  return r;
12524
12499
  }
12525
- var Yv = {
12500
+ var Xv = {
12526
12501
  serializeRequest: function(t) {
12527
- var e = $v([t], {
12502
+ var e = jv([t], {
12528
12503
  useLongBits: !1
12529
12504
  }), n = new TextEncoder();
12530
12505
  return n.encode(JSON.stringify(e));
@@ -12533,9 +12508,9 @@ var Yv = {
12533
12508
  var e = new TextDecoder();
12534
12509
  return JSON.parse(e.decode(t));
12535
12510
  }
12536
- }, Wv = {
12511
+ }, Kv = {
12537
12512
  serializeRequest: function(t) {
12538
- var e = zv(t, {
12513
+ var e = Hv(t, {
12539
12514
  useHex: !0,
12540
12515
  useLongBits: !1
12541
12516
  }), n = new TextEncoder();
@@ -12545,7 +12520,7 @@ var Yv = {
12545
12520
  var e = new TextDecoder();
12546
12521
  return JSON.parse(e.decode(t));
12547
12522
  }
12548
- }, Jv = function(t, e, n, r) {
12523
+ }, Yv = function(t, e, n, r) {
12549
12524
  function i(o) {
12550
12525
  return o instanceof n ? o : new n(function(a) {
12551
12526
  a(o);
@@ -12571,7 +12546,7 @@ var Yv = {
12571
12546
  }
12572
12547
  s((r = r.apply(t, [])).next());
12573
12548
  });
12574
- }, Qv = function(t, e) {
12549
+ }, Wv = function(t, e) {
12575
12550
  var n = { label: 0, sent: function() {
12576
12551
  if (o[0] & 1) throw o[1];
12577
12552
  return o[1];
@@ -12630,11 +12605,11 @@ var Yv = {
12630
12605
  if (s[0] & 5) throw s[1];
12631
12606
  return { value: s[0] ? s[1] : void 0, done: !0 };
12632
12607
  }
12633
- }, Zv = 5, eg = 1e3, tg = 5e3, ng = 1.5, fo = 0.2;
12634
- function rg() {
12608
+ }, Jv = 5, Qv = 1e3, Zv = 5e3, eg = 1.5, fo = 0.2;
12609
+ function tg() {
12635
12610
  return Math.random() * (2 * fo) - fo;
12636
12611
  }
12637
- var ig = (
12612
+ var ng = (
12638
12613
  /** @class */
12639
12614
  function() {
12640
12615
  function t(e) {
@@ -12649,16 +12624,16 @@ var ig = (
12649
12624
  });
12650
12625
  }, t.prototype.send = function(e, n) {
12651
12626
  var r;
12652
- return Jv(this, void 0, void 0, function() {
12627
+ return Yv(this, void 0, void 0, function() {
12653
12628
  var i, o, a, u, c, s, l;
12654
- return Qv(this, function(p) {
12629
+ return Wv(this, function(p) {
12655
12630
  switch (p.label) {
12656
12631
  case 0:
12657
12632
  return i = Date.now() + n, [4, this._transport.send(e, n)];
12658
12633
  case 1:
12659
- o = p.sent(), a = Zv, u = eg, p.label = 2;
12634
+ o = p.sent(), a = Jv, u = Qv, p.label = 2;
12660
12635
  case 2:
12661
- return o.status === "retryable" && a > 0 ? (a--, c = Math.max(Math.min(u, tg) + rg(), 0), u = u * ng, s = (r = o.retryInMillis) !== null && r !== void 0 ? r : c, l = i - Date.now(), s > l ? [2, o] : [4, this.retry(e, l, s)]) : [3, 4];
12636
+ return o.status === "retryable" && a > 0 ? (a--, c = Math.max(Math.min(u, Zv) + tg(), 0), u = u * eg, s = (r = o.retryInMillis) !== null && r !== void 0 ? r : c, l = i - Date.now(), s > l ? [2, o] : [4, this.retry(e, l, s)]) : [3, 4];
12662
12637
  case 3:
12663
12638
  return o = p.sent(), [3, 2];
12664
12639
  case 4:
@@ -12672,13 +12647,13 @@ var ig = (
12672
12647
  }()
12673
12648
  );
12674
12649
  function gs(t) {
12675
- return new ig(t.transport);
12650
+ return new ng(t.transport);
12676
12651
  }
12677
- function og(t) {
12652
+ function rg(t) {
12678
12653
  var e = [429, 502, 503, 504];
12679
12654
  return e.includes(t);
12680
12655
  }
12681
- function ag(t) {
12656
+ function ig(t) {
12682
12657
  if (t != null) {
12683
12658
  var e = Number.parseInt(t, 10);
12684
12659
  if (Number.isInteger(e))
@@ -12687,7 +12662,7 @@ function ag(t) {
12687
12662
  return n >= 0 ? n : 0;
12688
12663
  }
12689
12664
  }
12690
- var sg = function(t, e) {
12665
+ var og = function(t, e) {
12691
12666
  var n = typeof Symbol == "function" && t[Symbol.iterator];
12692
12667
  if (!n) return t;
12693
12668
  var r = n.call(t), i, o = [], a;
@@ -12703,7 +12678,7 @@ var sg = function(t, e) {
12703
12678
  }
12704
12679
  }
12705
12680
  return o;
12706
- }, ug = (
12681
+ }, ag = (
12707
12682
  /** @class */
12708
12683
  function() {
12709
12684
  function t(e) {
@@ -12716,7 +12691,7 @@ var sg = function(t, e) {
12716
12691
  o.timeout = n, o.open("POST", r._parameters.url);
12717
12692
  var a = r._parameters.headers();
12718
12693
  Object.entries(a).forEach(function(u) {
12719
- var c = sg(u, 2), s = c[0], l = c[1];
12694
+ var c = og(u, 2), s = c[0], l = c[1];
12720
12695
  o.setRequestHeader(s, l);
12721
12696
  }), o.ontimeout = function(u) {
12722
12697
  i({
@@ -12726,9 +12701,9 @@ var sg = function(t, e) {
12726
12701
  }, o.onreadystatechange = function() {
12727
12702
  o.status >= 200 && o.status <= 299 ? (E.debug("XHR success"), i({
12728
12703
  status: "success"
12729
- })) : o.status && og(o.status) ? i({
12704
+ })) : o.status && rg(o.status) ? i({
12730
12705
  status: "retryable",
12731
- retryInMillis: ag(o.getResponseHeader("Retry-After"))
12706
+ retryInMillis: ig(o.getResponseHeader("Retry-After"))
12732
12707
  }) : o.status !== 0 && i({
12733
12708
  status: "failure",
12734
12709
  error: new Error("XHR request failed with non-retryable status")
@@ -12749,10 +12724,10 @@ var sg = function(t, e) {
12749
12724
  }, t;
12750
12725
  }()
12751
12726
  );
12752
- function cg(t) {
12753
- return new ug(t);
12727
+ function sg(t) {
12728
+ return new ag(t);
12754
12729
  }
12755
- var lg = (
12730
+ var ug = (
12756
12731
  /** @class */
12757
12732
  function() {
12758
12733
  function t(e) {
@@ -12772,23 +12747,23 @@ var lg = (
12772
12747
  }, t;
12773
12748
  }()
12774
12749
  );
12775
- function pg(t) {
12776
- return new lg(t);
12750
+ function cg(t) {
12751
+ return new ug(t);
12777
12752
  }
12778
- function fg(t, e) {
12753
+ function lg(t, e) {
12779
12754
  return Xa(t, e, gs({
12780
- transport: cg(t)
12755
+ transport: sg(t)
12781
12756
  }));
12782
12757
  }
12783
- function hg(t, e) {
12758
+ function pg(t, e) {
12784
12759
  return Xa(t, e, gs({
12785
- transport: pg({
12760
+ transport: cg({
12786
12761
  url: t.url,
12787
12762
  blobType: t.headers()["Content-Type"]
12788
12763
  })
12789
12764
  }));
12790
12765
  }
12791
- var dg = function(t, e) {
12766
+ var fg = function(t, e) {
12792
12767
  var n = typeof Symbol == "function" && t[Symbol.iterator];
12793
12768
  if (!n) return t;
12794
12769
  var r = n.call(t), i, o = [], a;
@@ -12805,11 +12780,11 @@ var dg = function(t, e) {
12805
12780
  }
12806
12781
  return o;
12807
12782
  };
12808
- function mg(t) {
12783
+ function hg(t) {
12809
12784
  return function() {
12810
12785
  var e, n = {};
12811
12786
  return Object.entries((e = t?.()) !== null && e !== void 0 ? e : {}).forEach(function(r) {
12812
- var i = dg(r, 2), o = i[0], a = i[1];
12787
+ var i = fg(r, 2), o = i[0], a = i[1];
12813
12788
  typeof a < "u" ? n[o] = String(a) : E.warn('Header "' + o + '" has invalid value (' + a + ") and will be ignored");
12814
12789
  }), n;
12815
12790
  };
@@ -12823,13 +12798,13 @@ var Me = function() {
12823
12798
  return t;
12824
12799
  }, Me.apply(this, arguments);
12825
12800
  };
12826
- function yg(t, e, n) {
12801
+ function dg(t, e, n) {
12827
12802
  var r = Me({}, n()), i = {};
12828
12803
  return function() {
12829
12804
  return e != null && Object.assign(i, e()), t != null && Object.assign(i, t()), Object.assign(i, r);
12830
12805
  };
12831
12806
  }
12832
- function vg(t) {
12807
+ function mg(t) {
12833
12808
  if (t != null)
12834
12809
  try {
12835
12810
  return new URL(t), t;
@@ -12837,33 +12812,33 @@ function vg(t) {
12837
12812
  throw new Error("Configuration: Could not parse user-provided export URL: '" + t + "'");
12838
12813
  }
12839
12814
  }
12840
- function gg(t, e, n) {
12815
+ function yg(t, e, n) {
12841
12816
  var r, i, o, a;
12842
- return Me(Me({}, Pm(t, e, n)), { headers: yg(mg(t.headers), e.headers, n.headers), url: (i = (r = vg(t.url)) !== null && r !== void 0 ? r : e.url) !== null && i !== void 0 ? i : n.url, agentOptions: (a = (o = t.agentOptions) !== null && o !== void 0 ? o : e.agentOptions) !== null && a !== void 0 ? a : n.agentOptions });
12817
+ return Me(Me({}, Cm(t, e, n)), { headers: dg(hg(t.headers), e.headers, n.headers), url: (i = (r = mg(t.url)) !== null && r !== void 0 ? r : e.url) !== null && i !== void 0 ? i : n.url, agentOptions: (a = (o = t.agentOptions) !== null && o !== void 0 ? o : e.agentOptions) !== null && a !== void 0 ? a : n.agentOptions });
12843
12818
  }
12844
- function _g(t, e) {
12845
- return Me(Me({}, Im()), { headers: function() {
12819
+ function vg(t, e) {
12820
+ return Me(Me({}, Rm()), { headers: function() {
12846
12821
  return t;
12847
12822
  }, url: "http://localhost:4318/" + e, agentOptions: { keepAlive: !0 } });
12848
12823
  }
12849
- function bg(t, e, n) {
12850
- return gg(
12824
+ function gg(t, e, n) {
12825
+ return yg(
12851
12826
  {
12852
12827
  url: t.url,
12853
12828
  timeoutMillis: t.timeoutMillis,
12854
- headers: Rm(t.headers),
12829
+ headers: Lm(t.headers),
12855
12830
  concurrencyLimit: t.concurrencyLimit
12856
12831
  },
12857
12832
  {},
12858
12833
  // no fallback for browser case
12859
- _g(n, e)
12834
+ vg(n, e)
12860
12835
  );
12861
12836
  }
12862
12837
  function _s(t, e, n, r) {
12863
- var i = !!t.headers || typeof navigator.sendBeacon != "function", o = bg(t, n, r);
12864
- return i ? fg(o, e) : hg(o, e);
12838
+ var i = !!t.headers || typeof navigator.sendBeacon != "function", o = gg(t, n, r);
12839
+ return i ? lg(o, e) : pg(o, e);
12865
12840
  }
12866
- var Eg = /* @__PURE__ */ function() {
12841
+ var _g = /* @__PURE__ */ function() {
12867
12842
  var t = function(e, n) {
12868
12843
  return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
12869
12844
  r.__proto__ = i;
@@ -12880,12 +12855,12 @@ var Eg = /* @__PURE__ */ function() {
12880
12855
  }
12881
12856
  e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
12882
12857
  };
12883
- }(), Tg = (
12858
+ }(), bg = (
12884
12859
  /** @class */
12885
12860
  function(t) {
12886
- Eg(e, t);
12861
+ _g(e, t);
12887
12862
  function e(n) {
12888
- return n === void 0 && (n = {}), t.call(this, _s(n, Wv, "v1/traces", { "Content-Type": "application/json" })) || this;
12863
+ return n === void 0 && (n = {}), t.call(this, _s(n, Kv, "v1/traces", { "Content-Type": "application/json" })) || this;
12889
12864
  }
12890
12865
  return e;
12891
12866
  }(za)
@@ -12893,7 +12868,7 @@ var Eg = /* @__PURE__ */ function() {
12893
12868
  (function(t) {
12894
12869
  t[t.DELTA = 0] = "DELTA", t[t.CUMULATIVE = 1] = "CUMULATIVE", t[t.LOWMEMORY = 2] = "LOWMEMORY";
12895
12870
  })(dn || (dn = {}));
12896
- var wg = /* @__PURE__ */ function() {
12871
+ var Eg = /* @__PURE__ */ function() {
12897
12872
  var t = function(e, n) {
12898
12873
  return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
12899
12874
  r.__proto__ = i;
@@ -12937,25 +12912,25 @@ var wg = /* @__PURE__ */ function() {
12937
12912
  return ae.CUMULATIVE;
12938
12913
  }
12939
12914
  };
12940
- function Sg() {
12915
+ function Tg() {
12941
12916
  var t = Je(), e = t.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE.trim().toLowerCase();
12942
12917
  return e === "cumulative" ? Cr : e === "delta" ? bs : e === "lowmemory" ? Es : (E.warn("OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE is set to '" + t.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + "', but only 'cumulative' and 'delta' are allowed. Using default ('cumulative') instead."), Cr);
12943
12918
  }
12944
- function Og(t) {
12945
- return t != null ? t === dn.DELTA ? bs : t === dn.LOWMEMORY ? Es : Cr : Sg();
12919
+ function wg(t) {
12920
+ return t != null ? t === dn.DELTA ? bs : t === dn.LOWMEMORY ? Es : Cr : Tg();
12946
12921
  }
12947
- function Ag(t) {
12922
+ function Sg(t) {
12948
12923
  return t != null && t.aggregationPreference ? t.aggregationPreference : function(e) {
12949
12924
  return ve.Default();
12950
12925
  };
12951
12926
  }
12952
- var xg = (
12927
+ var Og = (
12953
12928
  /** @class */
12954
12929
  function(t) {
12955
- wg(e, t);
12930
+ Eg(e, t);
12956
12931
  function e(n, r) {
12957
12932
  var i = t.call(this, n) || this;
12958
- return i._aggregationSelector = Ag(r), i._aggregationTemporalitySelector = Og(r?.temporalityPreference), i;
12933
+ return i._aggregationSelector = Sg(r), i._aggregationTemporalitySelector = wg(r?.temporalityPreference), i;
12959
12934
  }
12960
12935
  return e.prototype.selectAggregation = function(n) {
12961
12936
  return this._aggregationSelector(n);
@@ -12963,7 +12938,7 @@ var xg = (
12963
12938
  return this._aggregationTemporalitySelector(n);
12964
12939
  }, e;
12965
12940
  }(za)
12966
- ), Ng = /* @__PURE__ */ function() {
12941
+ ), Ag = /* @__PURE__ */ function() {
12967
12942
  var t = function(e, n) {
12968
12943
  return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
12969
12944
  r.__proto__ = i;
@@ -12980,17 +12955,17 @@ var xg = (
12980
12955
  }
12981
12956
  e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
12982
12957
  };
12983
- }(), Lg = (
12958
+ }(), xg = (
12984
12959
  /** @class */
12985
12960
  function(t) {
12986
- Ng(e, t);
12961
+ Ag(e, t);
12987
12962
  function e(n) {
12988
- return t.call(this, _s(n ?? {}, Yv, "v1/metrics", { "Content-Type": "application/json" }), n) || this;
12963
+ return t.call(this, _s(n ?? {}, Xv, "v1/metrics", { "Content-Type": "application/json" }), n) || this;
12989
12964
  }
12990
12965
  return e;
12991
- }(xg)
12966
+ }(Og)
12992
12967
  );
12993
- function Cg(t, e) {
12968
+ function Ng(t, e) {
12994
12969
  const n = t.spanContext();
12995
12970
  return {
12996
12971
  name: t.name,
@@ -13012,7 +12987,7 @@ function Cg(t, e) {
13012
12987
  droppedLinksCount: t.droppedLinksCount
13013
12988
  };
13014
12989
  }
13015
- function Rg(t, e) {
12990
+ function Lg(t, e) {
13016
12991
  if (!e.isSamplingEnabled())
13017
12992
  return t;
13018
12993
  const n = [], r = {}, i = {};
@@ -13021,7 +12996,7 @@ function Rg(t, e) {
13021
12996
  o.spanContext().spanId
13022
12997
  ));
13023
12998
  const a = e.shouldSample(o);
13024
- a.sample ? a.attributes ? r[o.spanContext().spanId] = Cg(
12999
+ a.sample ? a.attributes ? r[o.spanContext().spanId] = Ng(
13025
13000
  o,
13026
13001
  a.attributes
13027
13002
  ) : r[o.spanContext().spanId] = o : n.push(o.spanContext().spanId);
@@ -13034,7 +13009,7 @@ function Rg(t, e) {
13034
13009
  }
13035
13010
  return Object.values(r);
13036
13011
  }
13037
- class Pg extends Tg {
13012
+ class Cg extends bg {
13038
13013
  constructor(e, n) {
13039
13014
  super(J($({}, e), {
13040
13015
  headers: {}
@@ -13042,7 +13017,7 @@ class Pg extends Tg {
13042
13017
  })), this.sampler = n;
13043
13018
  }
13044
13019
  export(e, n) {
13045
- const r = Rg(e, this.sampler);
13020
+ const r = Lg(e, this.sampler);
13046
13021
  if (r.length === 0)
13047
13022
  return;
13048
13023
  let i = 0;
@@ -13059,7 +13034,7 @@ class Pg extends Tg {
13059
13034
  super.export(r, o);
13060
13035
  }
13061
13036
  }
13062
- class Ig extends Lg {
13037
+ class Rg extends xg {
13063
13038
  constructor(e) {
13064
13039
  super(J($({}, e), {
13065
13040
  headers: {}
@@ -13080,8 +13055,8 @@ class Ig extends Lg {
13080
13055
  super.export(e, i);
13081
13056
  }
13082
13057
  }
13083
- const kg = "OT_ZONE_CONTEXT", Mg = "Navigation:";
13084
- function Dg() {
13058
+ const Pg = "OT_ZONE_CONTEXT", Ig = "Navigation:";
13059
+ function kg() {
13085
13060
  return !1;
13086
13061
  }
13087
13062
  const Rr = class we extends Ra {
@@ -13090,7 +13065,7 @@ const Rr = class we extends Ra {
13090
13065
  we.moduleName,
13091
13066
  we.version,
13092
13067
  e
13093
- ), M(this, "_spansData", /* @__PURE__ */ new WeakMap()), M(this, "_zonePatched"), M(this, "_wrappedListeners", /* @__PURE__ */ new WeakMap()), M(this, "_eventsSpanMap", /* @__PURE__ */ new WeakMap()), M(this, "_shouldPreventSpanCreation"), this._shouldPreventSpanCreation = typeof e?.shouldPreventSpanCreation == "function" ? e.shouldPreventSpanCreation : Dg;
13068
+ ), M(this, "_spansData", /* @__PURE__ */ new WeakMap()), M(this, "_zonePatched"), M(this, "_wrappedListeners", /* @__PURE__ */ new WeakMap()), M(this, "_eventsSpanMap", /* @__PURE__ */ new WeakMap()), M(this, "_shouldPreventSpanCreation"), this._shouldPreventSpanCreation = typeof e?.shouldPreventSpanCreation == "function" ? e.shouldPreventSpanCreation : kg;
13094
13069
  }
13095
13070
  init() {
13096
13071
  }
@@ -13171,7 +13146,7 @@ const Rr = class we extends Ra {
13171
13146
  * @private
13172
13147
  */
13173
13148
  _getCurrentSpan(e) {
13174
- const n = e.get(kg);
13149
+ const n = e.get(Pg);
13175
13150
  return n && C.getSpan(n);
13176
13151
  }
13177
13152
  /**
@@ -13322,7 +13297,7 @@ const Rr = class we extends Ra {
13322
13297
  const n = C.getSpan(
13323
13298
  L.active()
13324
13299
  );
13325
- n && typeof n.updateName == "function" && n.updateName(`${Mg} ${e}`);
13300
+ n && typeof n.updateName == "function" && n.updateName(`${Ig} ${e}`);
13326
13301
  }
13327
13302
  /**
13328
13303
  * Patches zone cancel task - this is done to be able to correctly
@@ -13478,8 +13453,8 @@ const Rr = class we extends Ra {
13478
13453
  }
13479
13454
  };
13480
13455
  M(Rr, "version", "0.1.0"), M(Rr, "moduleName", "user-interaction");
13481
- let Ug = Rr, Se = {}, He;
13482
- const mn = "highlight.record", jg = "launchdarkly.js.log", Bg = (t, e) => {
13456
+ let Mg = Rr, Se = {}, He;
13457
+ const mn = "highlight.record", Dg = "launchdarkly.js.log", Ug = (t, e) => {
13483
13458
  var n, r, i, o, a, u, c, s, l;
13484
13459
  if (Se.tracerProvider !== void 0) {
13485
13460
  console.warn("OTEL already initialized. Skipping...");
@@ -13501,10 +13476,10 @@ const mn = "highlight.record", jg = "launchdarkly.js.log", Bg = (t, e) => {
13501
13476
  timeout: 5e3,
13502
13477
  keepAlive: !0
13503
13478
  }
13504
- }, v = new Pg(
13479
+ }, v = new Cg(
13505
13480
  m,
13506
13481
  e
13507
- ), _ = new $g(v, {
13482
+ ), _ = new jg(v, {
13508
13483
  maxExportBatchSize: 100,
13509
13484
  maxQueueSize: 1e3,
13510
13485
  exportTimeoutMillis: m.timeoutMillis,
@@ -13519,24 +13494,24 @@ const mn = "highlight.record", jg = "launchdarkly.js.log", Bg = (t, e) => {
13519
13494
  resource: T,
13520
13495
  spanProcessors: [_]
13521
13496
  }), C.setGlobalTracerProvider(Se.tracerProvider);
13522
- const P = new Ig(J($({}, m), {
13497
+ const P = new Rg(J($({}, m), {
13523
13498
  url: t.otlpEndpoint + "/v1/metrics"
13524
- })), B = new zy({
13499
+ })), B = new Hy({
13525
13500
  exporter: P,
13526
13501
  exportIntervalMillis: m.timeoutMillis,
13527
13502
  exportTimeoutMillis: m.timeoutMillis
13528
13503
  });
13529
- Se.meterProvider = new Pv({ resource: T, readers: [B] }), de.setGlobalMeterProvider(Se.meterProvider);
13504
+ Se.meterProvider = new Cv({ resource: T, readers: [B] }), de.setGlobalMeterProvider(Se.meterProvider);
13530
13505
  let k = [];
13531
13506
  ((a = t.instrumentations) == null ? void 0 : a["@opentelemetry/instrumentation-document-load"]) !== !1 && k.push(
13532
13507
  new Xh({
13533
13508
  applyCustomAttributesOnSpan: {
13534
13509
  documentLoad: vo,
13535
13510
  documentFetch: vo,
13536
- resourceFetch: Gg
13511
+ resourceFetch: Fg
13537
13512
  }
13538
13513
  })
13539
- ), ((u = t.instrumentations) == null ? void 0 : u["@opentelemetry/instrumentation-user-interaction"]) !== !1 && k.push(new Ug()), (c = t.networkRecordingOptions) != null && c.enabled && (((s = t.instrumentations) == null ? void 0 : s["@opentelemetry/instrumentation-fetch"]) !== !1 && k.push(
13514
+ ), ((u = t.instrumentations) == null ? void 0 : u["@opentelemetry/instrumentation-user-interaction"]) !== !1 && k.push(new Mg()), (c = t.networkRecordingOptions) != null && c.enabled && (((s = t.instrumentations) == null ? void 0 : s["@opentelemetry/instrumentation-fetch"]) !== !1 && k.push(
13540
13515
  new Id({
13541
13516
  propagateTraceHeaderCorsUrls: go(
13542
13517
  t.tracingOrigins
@@ -13562,7 +13537,7 @@ const mn = "highlight.record", jg = "launchdarkly.js.log", Bg = (t, e) => {
13562
13537
  H.headers,
13563
13538
  t.networkRecordingOptions
13564
13539
  );
13565
- const g = yield Nm(
13540
+ const g = yield Am(
13566
13541
  D,
13567
13542
  (ie = t.networkRecordingOptions) == null ? void 0 : ie.bodyKeysToRecord,
13568
13543
  (X = t.networkRecordingOptions) == null ? void 0 : X.networkBodyKeysToRedact
@@ -13607,7 +13582,7 @@ const mn = "highlight.record", jg = "launchdarkly.js.log", Bg = (t, e) => {
13607
13582
  propagator: new ma({
13608
13583
  propagators: [
13609
13584
  new ua(),
13610
- new Fg({
13585
+ new Bg({
13611
13586
  backendUrl: p,
13612
13587
  otlpEndpoint: t.otlpEndpoint,
13613
13588
  tracingOrigins: t.tracingOrigins,
@@ -13617,12 +13592,12 @@ const mn = "highlight.record", jg = "launchdarkly.js.log", Bg = (t, e) => {
13617
13592
  })
13618
13593
  });
13619
13594
  };
13620
- class $g extends ka {
13595
+ class jg extends ka {
13621
13596
  onEnd(e) {
13622
13597
  e.attributes[mn] !== !1 && super.onEnd(e);
13623
13598
  }
13624
13599
  }
13625
- class Fg extends ya {
13600
+ class Bg extends ya {
13626
13601
  constructor(e) {
13627
13602
  super(), M(this, "highlightEndpoints"), M(this, "tracingOrigins"), M(this, "urlBlocklist"), this.highlightEndpoints = [
13628
13603
  e.backendUrl,
@@ -13637,12 +13612,12 @@ class Fg extends ya {
13637
13612
  if (!o || !o.attributes)
13638
13613
  return;
13639
13614
  const a = o.attributes["http.url"];
13640
- typeof a == "string" && (Vg(
13615
+ typeof a == "string" && ($g(
13641
13616
  a,
13642
13617
  this.highlightEndpoints,
13643
13618
  this.tracingOrigins,
13644
13619
  this.urlBlocklist
13645
- ) || o.setAttribute(mn, !1), !Am(
13620
+ ) || o.setAttribute(mn, !1), !Sm(
13646
13621
  a,
13647
13622
  (i = this.tracingOrigins) != null ? i : [],
13648
13623
  this.urlBlocklist
@@ -13697,9 +13672,9 @@ const Ts = "highlight-browser", Gt = Ts, ho = () => {
13697
13672
  Object.fromEntries(u.searchParams)
13698
13673
  )
13699
13674
  });
13700
- }, Vg = (t, e, n, r) => r != null && r.some(
13675
+ }, $g = (t, e, n, r) => r != null && r.some(
13701
13676
  (i) => t.toLowerCase().includes(i)
13702
- ) ? !1 : Om(
13677
+ ) ? !1 : wm(
13703
13678
  t,
13704
13679
  e
13705
13680
  ), vo = (t) => {
@@ -13755,7 +13730,7 @@ function Z(t, e, n) {
13755
13730
  const o = r.time[0] * 1e9 + r.time[1];
13756
13731
  return i.time[0] * 1e9 + i.time[1] - o;
13757
13732
  }
13758
- const Gg = (t, e) => {
13733
+ const Fg = (t, e) => {
13759
13734
  const n = {
13760
13735
  domain_lookup: (e.domainLookupEnd - e.domainLookupStart) * 1e6,
13761
13736
  connect: (e.connectEnd - e.connectStart) * 1e6,
@@ -13788,18 +13763,18 @@ const Gg = (t, e) => {
13788
13763
  return `${Number(t.toFixed(1))}ns`;
13789
13764
  }, go = (t) => t === !0 ? [/localhost/, /^\//, new RegExp(window.location.host)] : Array.isArray(t) ? t.map(
13790
13765
  (e) => typeof e == "string" ? new RegExp(e) : e
13791
- ) : /^$/, Hg = 30, qg = () => new Promise(
13766
+ ) : /^$/, Vg = 30, Gg = () => new Promise(
13792
13767
  (t) => requestAnimationFrame(
13793
13768
  (e) => requestAnimationFrame((n) => t(n - e))
13794
13769
  )
13795
- ), zg = () => _n(void 0, null, function* () {
13770
+ ), Hg = () => _n(void 0, null, function* () {
13796
13771
  const t = [];
13797
- for (let e = 0; e < Hg; e++)
13798
- t.push(yield qg());
13772
+ for (let e = 0; e < Vg; e++)
13773
+ t.push(yield Gg());
13799
13774
  return t.reduce((e, n) => e + n, 0) / t.length;
13800
- }), Xg = (t, e) => {
13775
+ }), qg = (t, e) => {
13801
13776
  let n = {}, r = 16.666666666666668;
13802
- zg().then((c) => r = c);
13777
+ Hg().then((c) => r = c);
13803
13778
  const i = (c) => {
13804
13779
  var s;
13805
13780
  n != null && n.event || (n = {
@@ -13826,7 +13801,7 @@ const Gg = (t, e) => {
13826
13801
  return window.addEventListener("click", i, !0), window.addEventListener("keydown", i, !0), () => {
13827
13802
  window.removeEventListener("keydown", i, !0), window.removeEventListener("click", i, !0);
13828
13803
  };
13829
- }, Kg = typeof window < "u", _o = Kg && "performance" in window && "memory" in performance ? performance : { memory: {} }, Yg = (t, e) => {
13804
+ }, zg = typeof window < "u", _o = zg && "performance" in window && "memory" in performance ? performance : { memory: {} }, Xg = (t, e) => {
13830
13805
  let n = 0, r = 0;
13831
13806
  const i = () => {
13832
13807
  const s = ((/* @__PURE__ */ new Date()).getTime() - e) / 1e3, l = _o.memory.jsHeapSizeLimit || 0, p = _o.memory.usedJSHeapSize || 0;
@@ -13850,23 +13825,23 @@ const Gg = (t, e) => {
13850
13825
  return c(), () => {
13851
13826
  clearInterval(o), cancelAnimationFrame(r);
13852
13827
  };
13853
- }, Wg = "launchdarkly.js.log", Jg = "log.severity", Qg = "log.message", bo = "launchdarkly.sampling.ratio";
13854
- function Zg(t) {
13828
+ }, Kg = "launchdarkly.js.log", Yg = "log.severity", Wg = "log.message", bo = "launchdarkly.sampling.ratio";
13829
+ function Jg(t) {
13855
13830
  return "regexValue" in t;
13856
13831
  }
13857
- function e_(t) {
13832
+ function Qg(t) {
13858
13833
  return "matchValue" in t;
13859
13834
  }
13860
- function t_(t) {
13835
+ function Zg(t) {
13861
13836
  const e = Math.trunc(t);
13862
13837
  return e === 1 ? !0 : e === 0 ? !1 : Math.floor(Math.random() * e) === 0;
13863
13838
  }
13864
- class n_ {
13839
+ class e_ {
13865
13840
  /**
13866
13841
  * @param config The sampling configuration.
13867
13842
  * @param sampler The sampler to use. This is intended to be used for testing purposes.
13868
13843
  */
13869
- constructor(e = t_) {
13844
+ constructor(e = Zg) {
13870
13845
  M(this, "regexCache", /* @__PURE__ */ new Map()), M(this, "config"), this.sampler = e;
13871
13846
  }
13872
13847
  setConfig(e) {
@@ -13878,7 +13853,7 @@ class n_ {
13878
13853
  }
13879
13854
  shouldSample(e) {
13880
13855
  var n, r;
13881
- return e.name === Wg ? this.sampleLog((n = this.config) == null ? void 0 : n.logs, e) : this.sampleSpan((r = this.config) == null ? void 0 : r.spans, e);
13856
+ return e.name === Kg ? this.sampleLog((n = this.config) == null ? void 0 : n.logs, e) : this.sampleSpan((r = this.config) == null ? void 0 : r.spans, e);
13882
13857
  }
13883
13858
  /**
13884
13859
  * Check if a value matches a match config.
@@ -13886,9 +13861,9 @@ class n_ {
13886
13861
  matchesValue(e, n) {
13887
13862
  if (!e)
13888
13863
  return !1;
13889
- if (e_(e))
13864
+ if (Qg(e))
13890
13865
  return e.matchValue === n;
13891
- if (Zg(e)) {
13866
+ if (Jg(e)) {
13892
13867
  const r = e.regexValue;
13893
13868
  if (r === null)
13894
13869
  return !1;
@@ -13955,12 +13930,12 @@ class n_ {
13955
13930
  }
13956
13931
  matchesLogConfig(e, n) {
13957
13932
  if (e.severityText) {
13958
- const r = n[Jg];
13933
+ const r = n[Yg];
13959
13934
  if (typeof r == "string" && !this.matchesValue(e.severityText, r))
13960
13935
  return !1;
13961
13936
  }
13962
13937
  if (e.message) {
13963
- const r = n[Qg];
13938
+ const r = n[Wg];
13964
13939
  if (typeof r == "string" && !this.matchesValue(e.message, r))
13965
13940
  return !1;
13966
13941
  }
@@ -14034,9 +14009,9 @@ const Eo = () => {
14034
14009
  };
14035
14010
  return t;
14036
14011
  };
14037
- class r_ {
14012
+ class t_ {
14038
14013
  constructor(e) {
14039
- M(this, "sessionSecureID"), M(this, "projectID"), M(this, "_integrations", []), M(this, "_gauges", /* @__PURE__ */ new Map()), M(this, "_counters", /* @__PURE__ */ new Map()), M(this, "_histograms", /* @__PURE__ */ new Map()), M(this, "_up_down_counters", /* @__PURE__ */ new Map()), M(this, "sampler", new n_()), M(this, "graphqlSDK"), this.sessionSecureID = e.sessionSecureId, this.projectID = e.projectId, Bg(e, this.sampler);
14014
+ M(this, "sessionSecureID"), M(this, "projectID"), M(this, "_integrations", []), M(this, "_gauges", /* @__PURE__ */ new Map()), M(this, "_counters", /* @__PURE__ */ new Map()), M(this, "_histograms", /* @__PURE__ */ new Map()), M(this, "_up_down_counters", /* @__PURE__ */ new Map()), M(this, "sampler", new e_()), M(this, "graphqlSDK"), this.sessionSecureID = e.sessionSecureId, this.projectID = e.projectId, Ug(e, this.sampler);
14040
14015
  const n = new xu(`${e.backendUrl}`, {
14041
14016
  headers: {}
14042
14017
  });
@@ -14060,7 +14035,7 @@ class r_ {
14060
14035
  });
14061
14036
  }
14062
14037
  recordLog(e, n, r) {
14063
- this.startSpan(jg, (i) => {
14038
+ this.startSpan(Dg, (i) => {
14064
14039
  i?.setAttributes({
14065
14040
  "highlight.session_id": this.sessionSecureID
14066
14041
  }), i?.addEvent("log", $({
@@ -14235,7 +14210,7 @@ class r_ {
14235
14210
  stringLengthLimit: 1e3
14236
14211
  }
14237
14212
  }
14238
- ), e.enablePerformanceRecording !== !1 && (Yg((r) => {
14213
+ ), e.enablePerformanceRecording !== !1 && (Xg((r) => {
14239
14214
  Object.entries(r).filter(([i]) => i !== "relativeTimestamp").forEach(
14240
14215
  ([i, o]) => o && Ne.recordGauge({
14241
14216
  name: i,
@@ -14246,7 +14221,7 @@ class r_ {
14246
14221
  }
14247
14222
  })
14248
14223
  );
14249
- }, 0), Xg((r) => {
14224
+ }, 0), qg((r) => {
14250
14225
  Ne.recordGauge({
14251
14226
  name: "Jank",
14252
14227
  value: r.jankAmount,
@@ -14279,7 +14254,7 @@ class r_ {
14279
14254
  );
14280
14255
  }
14281
14256
  }
14282
- class m_ extends Cc {
14257
+ class h_ extends Cc {
14283
14258
  constructor(e, n) {
14284
14259
  var r, i, o, a, u, c;
14285
14260
  if (typeof window > "u" || typeof document > "u") {
@@ -14294,7 +14269,7 @@ class m_ extends Cc {
14294
14269
  );
14295
14270
  return;
14296
14271
  }
14297
- super(n), M(this, "observe"), this.observe = new r_({
14272
+ super(n), M(this, "observe"), this.observe = new t_({
14298
14273
  backendUrl: (r = n?.backendUrl) != null ? r : "https://pub.observability.app.launchdarkly.com",
14299
14274
  otlpEndpoint: (o = (i = n?.otel) == null ? void 0 : i.otlpEndpoint) != null ? o : "https://otel.observability.app.launchdarkly.com",
14300
14275
  projectId: e,
@@ -14376,6 +14351,6 @@ class m_ extends Cc {
14376
14351
  }
14377
14352
  export {
14378
14353
  Ne as LDObserve,
14379
- m_ as default
14354
+ h_ as default
14380
14355
  };
14381
14356
  //# sourceMappingURL=observability.js.map