aibox-web-tracing 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/es/index.mjs +260 -241
  2. package/lib/index.js +5 -5
  3. package/package.json +1 -1
package/es/index.mjs CHANGED
@@ -21,7 +21,7 @@ function cn() {
21
21
  function un() {
22
22
  return !!p.__webTracingInit__;
23
23
  }
24
- const p = Nt(), x = cn();
24
+ const p = Nt(), C = cn();
25
25
  function ae(...e) {
26
26
  d.value.debug && console.log("@web-tracing: ", ...e);
27
27
  }
@@ -31,19 +31,19 @@ function se(...e) {
31
31
  function D(e, n, t, r = !1) {
32
32
  e.addEventListener(n, t, r);
33
33
  }
34
- function le(e, n, t, r = !1) {
34
+ function de(e, n, t, r = !1) {
35
35
  if (e !== void 0 && (n in e || r)) {
36
36
  const o = e[n], a = t(o);
37
37
  nn(a) && (e[n] = a);
38
38
  }
39
39
  }
40
- function ge(e) {
40
+ function ce(e) {
41
41
  return Object.keys(e).forEach((n) => {
42
42
  const t = e[n];
43
43
  Kt(t) && (e[n] = t === 0 ? void 0 : parseFloat(t.toFixed(2)));
44
44
  }), e;
45
45
  }
46
- function M() {
46
+ function F() {
47
47
  return typeof document > "u" || document.location == null ? "" : document.location.href;
48
48
  }
49
49
  function R() {
@@ -82,13 +82,13 @@ function Ie(e, ...n) {
82
82
  ) : e[r] = t[r];
83
83
  }), e;
84
84
  }
85
- function O(e) {
85
+ function P(e) {
86
86
  return un() ? !0 : (se(`${e} 需要在SDK初始化之后使用`), !1);
87
87
  }
88
- function ce(e) {
88
+ function ue(e) {
89
89
  return Object.prototype.toString.call(e).slice(8, -1).toLowerCase();
90
90
  }
91
- function de(e, n) {
91
+ function fe(e, n) {
92
92
  return e in n;
93
93
  }
94
94
  function dn(e) {
@@ -210,7 +210,7 @@ function Ze(e, n = /* @__PURE__ */ new Map()) {
210
210
  return t || (e instanceof Array ? (t = [], n.set(e, t), e.forEach((r, o) => {
211
211
  t[o] = Ze(r, n);
212
212
  })) : (t = {}, n.set(e, t), Object.keys(e).forEach((r) => {
213
- de(r, e) && (t[r] = Ze(e[r], n));
213
+ fe(r, e) && (t[r] = Ze(e[r], n));
214
214
  })), t);
215
215
  }
216
216
  return e;
@@ -333,7 +333,7 @@ function En(e) {
333
333
  cacheWatingTime: y,
334
334
  ignoreErrors: m,
335
335
  ignoreRequest: k,
336
- scopeError: P,
336
+ scopeError: x,
337
337
  localization: U,
338
338
  sendTypeByXmlBody: q,
339
339
  // whiteScreen,
@@ -371,7 +371,7 @@ function En(e) {
371
371
  lt(m, "ignoreErrors", ["string", "regexp"]),
372
372
  E(k, "ignoreRequest", "array"),
373
373
  lt(k, "ignoreRequest", ["string", "regexp"]),
374
- E(P, "scopeError", "boolean"),
374
+ E(x, "scopeError", "boolean"),
375
375
  E(U, "localization", "boolean"),
376
376
  E(q, "sendTypeByXmlBody", "boolean"),
377
377
  // validateOption(whiteScreen, 'whiteScreen', 'boolean'),
@@ -393,8 +393,8 @@ function ut(e, n) {
393
393
  return on(e) ? (se(`【${n}】参数必填`), !1) : !0;
394
394
  }
395
395
  function E(e, n, t) {
396
- return !e || ce(e) === t ? !0 : (se(
397
- `TypeError:【${n}】期望传入${t}类型,目前是${ce(
396
+ return !e || ue(e) === t ? !0 : (se(
397
+ `TypeError:【${n}】期望传入${t}类型,目前是${ue(
398
398
  e
399
399
  )}类型`
400
400
  ), !1);
@@ -403,18 +403,18 @@ function lt(e, n, t) {
403
403
  if (!e) return !0;
404
404
  let r = !0;
405
405
  return e.forEach((o) => {
406
- t.includes(ce(o)) || (se(
406
+ t.includes(ue(o)) || (se(
407
407
  `TypeError:【${n}】数组内的值期望传入${t.join(
408
408
  "|"
409
- )}类型,目前值${o}是${ce(o)}类型`
409
+ )}类型,目前值${o}是${ue(o)}类型`
410
410
  ), r = !1);
411
411
  }), r;
412
412
  }
413
413
  let d;
414
414
  function Ln(e) {
415
- return !Sn(e) || !En(e) ? !1 : (d = qt(new yn(e)), x.options = d, !0);
415
+ return !Sn(e) || !En(e) ? !1 : (d = qt(new yn(e)), C.options = d, !0);
416
416
  }
417
- const wn = "0.0.5", dt = "_webtracing_device_id", Ye = "_webtracing_session_id", Rn = 18e5, _e = "_webtracing_localization_key", An = wn, f = {
417
+ const wn = "0.0.6", dt = "_webtracing_device_id", Ye = "_webtracing_session_id", Rn = 18e5, _e = "_webtracing_localization_key", An = wn, f = {
418
418
  ERROR: "error",
419
419
  CONSOLEERROR: "consoleError",
420
420
  UNHANDLEDREJECTION: "unhandledrejection",
@@ -431,7 +431,7 @@ const wn = "0.0.5", dt = "_webtracing_device_id", Ye = "_webtracing_session_id",
431
431
  READYSTATECHANGE: "readystatechange",
432
432
  ONLINE: "online",
433
433
  OFFLINE: "offline"
434
- }, V = {
434
+ }, M = {
435
435
  PV: "pv",
436
436
  // 路由跳转
437
437
  PVDURATION: "pv-duration",
@@ -448,7 +448,7 @@ const wn = "0.0.5", dt = "_webtracing_device_id", Ye = "_webtracing_session_id",
448
448
  // 手动触发事件
449
449
  INTERSECTION: "intersection"
450
450
  // 曝光采集
451
- }, C = {
451
+ }, O = {
452
452
  PAGE: "page_performance",
453
453
  // 页面
454
454
  RESOURCE: "resource",
@@ -537,7 +537,7 @@ class kn {
537
537
  });
538
538
  }
539
539
  }
540
- const b = x.eventBus || (x.eventBus = new kn()), A = {
540
+ const b = C.eventBus || (C.eventBus = new kn()), A = {
541
541
  consoleError: null,
542
542
  xhrOpen: null,
543
543
  xhrSend: null,
@@ -557,10 +557,10 @@ const b = x.eventBus || (x.eventBus = new kn()), A = {
557
557
  };
558
558
  function Tn() {
559
559
  for (const e in f)
560
- de(e, f) && Cn(e);
560
+ fe(e, f) && Cn(e);
561
561
  }
562
562
  function Cn(e) {
563
- if (!de(e, f)) return;
563
+ if (!fe(e, f)) return;
564
564
  switch (f[e]) {
565
565
  case f.ERROR:
566
566
  On(f.ERROR);
@@ -622,7 +622,7 @@ function Pn(e) {
622
622
  w.unhandledrejection = n, D(p, "unhandledrejection", n);
623
623
  }
624
624
  function xn(e) {
625
- A.consoleError = console.error, le(console, "error", (n) => function(...t) {
625
+ A.consoleError = console.error, de(console, "error", (n) => function(...t) {
626
626
  t[0] && t[0].slice && t[0].slice(0, 12) === "@web-tracing" || b.runEvent(e, t), n.apply(this, t);
627
627
  });
628
628
  }
@@ -646,17 +646,17 @@ function Mn(e) {
646
646
  w.beforeunload = n, D(p, "beforeunload", n, !1);
647
647
  }
648
648
  function Vn(e) {
649
- "XMLHttpRequest" in p && (A.xhrOpen = XMLHttpRequest.prototype.open, le(XMLHttpRequest.prototype, "open", (n) => function(...t) {
649
+ "XMLHttpRequest" in p && (A.xhrOpen = XMLHttpRequest.prototype.open, de(XMLHttpRequest.prototype, "open", (n) => function(...t) {
650
650
  b.runEvent(e, ...t), n.apply(this, t);
651
651
  }));
652
652
  }
653
653
  function Hn(e) {
654
- "XMLHttpRequest" in p && (A.xhrSend = XMLHttpRequest.prototype.send, le(XMLHttpRequest.prototype, "send", (n) => function(...t) {
654
+ "XMLHttpRequest" in p && (A.xhrSend = XMLHttpRequest.prototype.send, de(XMLHttpRequest.prototype, "send", (n) => function(...t) {
655
655
  b.runEvent(e, this, ...t), n.apply(this, t);
656
656
  }));
657
657
  }
658
658
  function Dn(e) {
659
- "fetch" in p && (A.fetch = p.fetch, le(p, "fetch", (n) => function(...t) {
659
+ "fetch" in p && (A.fetch = p.fetch, de(p, "fetch", (n) => function(...t) {
660
660
  const r = R(), o = {};
661
661
  return n.apply(p, t).then((a) => (b.runEvent(e, t[0], t[1], a, r, o), a));
662
662
  }));
@@ -668,12 +668,12 @@ function Xn(e) {
668
668
  w.hashchange = n, D(p, "hashchange", n);
669
669
  }
670
670
  function jn(e) {
671
- A.historyReplaceState = history.replaceState, le(history, "replaceState", (n) => function(...t) {
671
+ A.historyReplaceState = history.replaceState, de(history, "replaceState", (n) => function(...t) {
672
672
  b.runEvent(e, ...t), n.apply(this, t);
673
673
  });
674
674
  }
675
675
  function Un(e) {
676
- A.historyPushState = history.pushState, le(history, "pushState", (n) => function(...t) {
676
+ A.historyPushState = history.pushState, de(history, "pushState", (n) => function(...t) {
677
677
  b.runEvent(e, ...t), n.apply(this, t);
678
678
  });
679
679
  }
@@ -866,7 +866,7 @@ function H(e, n) {
866
866
  function ne(e, n) {
867
867
  return (n %= 64) === 32 ? [e[1], e[0]] : n < 32 ? [e[0] << n | e[1] >>> 32 - n, e[1] << n | e[0] >>> 32 - n] : (n -= 32, [e[1] << n | e[0] >>> 32 - n, e[0] << n | e[1] >>> 32 - n]);
868
868
  }
869
- function F(e, n) {
869
+ function V(e, n) {
870
870
  return (n %= 64) === 0 ? e : n < 32 ? [e[0] << n | e[1] >>> 32 - n, e[1] << n] : [e[1] << n - 32, 0];
871
871
  }
872
872
  function I(e, n) {
@@ -888,33 +888,33 @@ function _n(e, n) {
888
888
  ], c = ne(c = H(c, u), 31), a = J(a = ne(a = I(a, c = H(c, l)), 27), s), a = J(H(a, [0, 5]), [0, 1390208809]), i = ne(i = H(i, l), 33), s = J(s = ne(s = I(s, i = H(i, u)), 31), a), s = J(H(s, [0, 5]), [0, 944331445]);
889
889
  switch (c = [0, 0], i = [0, 0], r) {
890
890
  case 15:
891
- i = I(i, F([0, e.charCodeAt(t + 14)], 48));
891
+ i = I(i, V([0, e.charCodeAt(t + 14)], 48));
892
892
  case 14:
893
- i = I(i, F([0, e.charCodeAt(t + 13)], 40));
893
+ i = I(i, V([0, e.charCodeAt(t + 13)], 40));
894
894
  case 13:
895
- i = I(i, F([0, e.charCodeAt(t + 12)], 32));
895
+ i = I(i, V([0, e.charCodeAt(t + 12)], 32));
896
896
  case 12:
897
- i = I(i, F([0, e.charCodeAt(t + 11)], 24));
897
+ i = I(i, V([0, e.charCodeAt(t + 11)], 24));
898
898
  case 11:
899
- i = I(i, F([0, e.charCodeAt(t + 10)], 16));
899
+ i = I(i, V([0, e.charCodeAt(t + 10)], 16));
900
900
  case 10:
901
- i = I(i, F([0, e.charCodeAt(t + 9)], 8));
901
+ i = I(i, V([0, e.charCodeAt(t + 9)], 8));
902
902
  case 9:
903
903
  i = H(i = I(i, [0, e.charCodeAt(t + 8)]), l), s = I(s, i = H(i = ne(i, 33), u));
904
904
  case 8:
905
- c = I(c, F([0, e.charCodeAt(t + 7)], 56));
905
+ c = I(c, V([0, e.charCodeAt(t + 7)], 56));
906
906
  case 7:
907
- c = I(c, F([0, e.charCodeAt(t + 6)], 48));
907
+ c = I(c, V([0, e.charCodeAt(t + 6)], 48));
908
908
  case 6:
909
- c = I(c, F([0, e.charCodeAt(t + 5)], 40));
909
+ c = I(c, V([0, e.charCodeAt(t + 5)], 40));
910
910
  case 5:
911
- c = I(c, F([0, e.charCodeAt(t + 4)], 32));
911
+ c = I(c, V([0, e.charCodeAt(t + 4)], 32));
912
912
  case 4:
913
- c = I(c, F([0, e.charCodeAt(t + 3)], 24));
913
+ c = I(c, V([0, e.charCodeAt(t + 3)], 24));
914
914
  case 3:
915
- c = I(c, F([0, e.charCodeAt(t + 2)], 16));
915
+ c = I(c, V([0, e.charCodeAt(t + 2)], 16));
916
916
  case 2:
917
- c = I(c, F([0, e.charCodeAt(t + 1)], 8));
917
+ c = I(c, V([0, e.charCodeAt(t + 1)], 8));
918
918
  case 1:
919
919
  c = H(c = I(c, [0, e.charCodeAt(t)]), u), a = I(a, c = H(c = ne(c, 31), l));
920
920
  }
@@ -973,11 +973,11 @@ function zn(e, n, t) {
973
973
  return new Promise(function(m) {
974
974
  const k = Date.now();
975
975
  ft(y, function() {
976
- for (var P = [], U = 0; U < arguments.length; U++)
977
- P[U] = arguments[U];
976
+ for (var x = [], U = 0; U < arguments.length; U++)
977
+ x[U] = arguments[U];
978
978
  const q = S + Date.now() - k;
979
- if (!P[0]) return m({ error: pt(P[1]), duration: q });
980
- m({ value: P[1], duration: q });
979
+ if (!x[0]) return m({ error: pt(x[1]), duration: q });
980
+ m({ value: x[1], duration: q });
981
981
  });
982
982
  });
983
983
  });
@@ -1068,7 +1068,7 @@ function ze() {
1068
1068
  "webkitSpeechGrammar" in e
1069
1069
  ]) >= 5;
1070
1070
  }
1071
- function he() {
1071
+ function me() {
1072
1072
  const e = window, n = navigator;
1073
1073
  return j([
1074
1074
  "ApplePayError" in e,
@@ -1171,21 +1171,21 @@ function gt(e, n, t) {
1171
1171
  }
1172
1172
  function Qn(e) {
1173
1173
  for (var n = (function(c) {
1174
- for (var i, u, l = "Unexpected syntax '".concat(c, "'"), h = /^\s*([a-z-]*)(.*)$/i.exec(c), v = h[1] || void 0, g = {}, S = /([.:#][\w-]+|\[.+?\])/gi, y = function(k, P) {
1175
- g[k] = g[k] || [], g[k].push(P);
1174
+ for (var i, u, l = "Unexpected syntax '".concat(c, "'"), h = /^\s*([a-z-]*)(.*)$/i.exec(c), v = h[1] || void 0, g = {}, S = /([.:#][\w-]+|\[.+?\])/gi, y = function(k, x) {
1175
+ g[k] = g[k] || [], g[k].push(x);
1176
1176
  }; ; ) {
1177
1177
  const k = S.exec(h[2]);
1178
1178
  if (!k) break;
1179
- const P = k[0];
1180
- switch (P[0]) {
1179
+ const x = k[0];
1180
+ switch (x[0]) {
1181
1181
  case ".":
1182
- y("class", P.slice(1));
1182
+ y("class", x.slice(1));
1183
1183
  break;
1184
1184
  case "#":
1185
- y("id", P.slice(1));
1185
+ y("id", x.slice(1));
1186
1186
  break;
1187
1187
  case "[":
1188
- var m = /^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(P);
1188
+ var m = /^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(x);
1189
1189
  if (!m) throw new Error(l);
1190
1190
  y(
1191
1191
  m[1],
@@ -1403,7 +1403,7 @@ const L = Math, N = function() {
1403
1403
  return W(this, function(c) {
1404
1404
  switch (c.label) {
1405
1405
  case 0:
1406
- return he() || Xt() ? (i = atob, t = {
1406
+ return me() || Xt() ? (i = atob, t = {
1407
1407
  abpIndo: [
1408
1408
  "#Iklan-Melayang",
1409
1409
  "#Kolom-Iklan-728",
@@ -1781,7 +1781,7 @@ const L = Math, N = function() {
1781
1781
  return (function(e, n) {
1782
1782
  return n === void 0 && (n = 4e3), gt(function(t, r) {
1783
1783
  const o = r.document, a = o.body, s = a.style;
1784
- s.width = "".concat(n, "px"), s.webkitTextSizeAdjust = s.textSizeAdjust = "none", ze() ? a.style.zoom = "".concat(1 / r.devicePixelRatio) : he() && (a.style.zoom = "reset");
1784
+ s.width = "".concat(n, "px"), s.webkitTextSizeAdjust = s.textSizeAdjust = "none", ze() ? a.style.zoom = "".concat(1 / r.devicePixelRatio) : me() && (a.style.zoom = "reset");
1785
1785
  const c = o.createElement("div");
1786
1786
  return c.textContent = ie([], Array(n / 20 << 0), !0).map(function() {
1787
1787
  return "word";
@@ -1805,7 +1805,7 @@ const L = Math, N = function() {
1805
1805
  audio: function() {
1806
1806
  const e = window, n = e.OfflineAudioContext || e.webkitOfflineAudioContext;
1807
1807
  if (!n) return -2;
1808
- if (he() && !Je() && !(function() {
1808
+ if (me() && !Je() && !(function() {
1809
1809
  const u = window;
1810
1810
  return j([
1811
1811
  "DOMRectList" in u,
@@ -1824,7 +1824,7 @@ const L = Math, N = function() {
1824
1824
  };
1825
1825
  return [
1826
1826
  new Promise(function(y, m) {
1827
- let k = !1, P = 0, U = 0;
1827
+ let k = !1, x = 0, U = 0;
1828
1828
  u.oncomplete = function(G) {
1829
1829
  return y(G.renderedBuffer);
1830
1830
  };
@@ -1840,7 +1840,7 @@ const L = Math, N = function() {
1840
1840
  U = Date.now(), k && q();
1841
1841
  break;
1842
1842
  case "suspended":
1843
- document.hidden || P++, k && P >= l ? m(vt("suspended")) : setTimeout(ye, h);
1843
+ document.hidden || x++, k && x >= l ? m(vt("suspended")) : setTimeout(ye, h);
1844
1844
  }
1845
1845
  } catch (G) {
1846
1846
  m(G);
@@ -1969,7 +1969,7 @@ const L = Math, N = function() {
1969
1969
  },
1970
1970
  platform: function() {
1971
1971
  const e = navigator.platform;
1972
- return e === "MacIntel" && he() && !Je() ? (function() {
1972
+ return e === "MacIntel" && me() && !Je() ? (function() {
1973
1973
  if (navigator.platform === "iPad") return !0;
1974
1974
  const n = screen, t = n.width / n.height;
1975
1975
  return j([
@@ -2173,7 +2173,7 @@ const L = Math, N = function() {
2173
2173
  function rr(e) {
2174
2174
  const n = (function(r) {
2175
2175
  if (Xt()) return 0.4;
2176
- if (he()) return Je() ? 0.5 : 0.3;
2176
+ if (me()) return Je() ? 0.5 : 0.3;
2177
2177
  const o = r.platform.value || "";
2178
2178
  return /^Win/.test(o) ? 0.6 : /^Mac/.test(o) ? 0.5 : 0.7;
2179
2179
  })(e), t = (function(r) {
@@ -2451,7 +2451,7 @@ class vr {
2451
2451
  this.events = this.events.slice(d.value.cacheMaxLength);
2452
2452
  const t = R(), r = Pt(() => ({
2453
2453
  baseInfo: {
2454
- ...ue.base?.value,
2454
+ ...le.base?.value,
2455
2455
  sendTime: t,
2456
2456
  userUuid: d.value.userUuid
2457
2457
  },
@@ -2508,7 +2508,7 @@ class vr {
2508
2508
  * @param flush 是否立即发送
2509
2509
  */
2510
2510
  emit(n, t = !1) {
2511
- if (!n || !x.lineStatus.onLine || !t && !dn(d.value.tracesSampleRate)) return;
2511
+ if (!n || !C.lineStatus.onLine || !t && !dn(d.value.tracesSampleRate)) return;
2512
2512
  Te(n) || (n = [n]);
2513
2513
  const r = d.value.maxQueueLength ?? 200;
2514
2514
  if (!this.isServerAvailable && this.events.length >= r) {
@@ -2520,7 +2520,7 @@ class vr {
2520
2520
  !1,
2521
2521
  n
2522
2522
  );
2523
- Ce(o) || this.validateObject(o, "beforePushEventList") && (this.events = this.events.concat(o), nt(), this.timeoutID && clearTimeout(this.timeoutID), ue._initSuccess && (this.events.length >= d.value.cacheMaxLength || t ? this.send() : this.timeoutID = setTimeout(
2523
+ Ce(o) || this.validateObject(o, "beforePushEventList") && (this.events = this.events.concat(o), nt(), this.timeoutID && clearTimeout(this.timeoutID), le._initSuccess && (this.events.length >= d.value.cacheMaxLength || t ? this.send() : this.timeoutID = setTimeout(
2524
2524
  this.send.bind(this),
2525
2525
  d.value.cacheWatingTime
2526
2526
  )));
@@ -2559,8 +2559,8 @@ class vr {
2559
2559
  * 返回 false意思是取消放入队列 / 取消发送
2560
2560
  */
2561
2561
  validateObject(n, t) {
2562
- return n === !1 ? !1 : n ? ["object", "array"].includes(ce(n)) ? !0 : (se(
2563
- `TypeError: ${t}期望返回 {} 或者 [] 类型,目前是${ce(
2562
+ return n === !1 ? !1 : n ? ["object", "array"].includes(ue(n)) ? !0 : (se(
2563
+ `TypeError: ${t}期望返回 {} 或者 [] 类型,目前是${ue(
2564
2564
  n
2565
2565
  )}类型`
2566
2566
  ), !1) : (se(`NullError: ${t}期望返回 {} 或者 [] 类型,目前无返回值`), !1);
@@ -2574,7 +2574,7 @@ class vr {
2574
2574
  }
2575
2575
  let T;
2576
2576
  function gr() {
2577
- x.sendData = new vr(), T = x.sendData;
2577
+ C.sendData = new vr(), T = C.sendData;
2578
2578
  }
2579
2579
  class br {
2580
2580
  base;
@@ -2647,9 +2647,9 @@ class br {
2647
2647
  });
2648
2648
  }
2649
2649
  }
2650
- let ue;
2650
+ let le;
2651
2651
  function yr() {
2652
- ue = new br(), x.baseInfo = ue;
2652
+ le = new br(), C.baseInfo = le;
2653
2653
  }
2654
2654
  class Er {
2655
2655
  onLine = !0;
@@ -2671,7 +2671,7 @@ class Er {
2671
2671
  }
2672
2672
  }
2673
2673
  function Sr() {
2674
- x.lineStatus = new Er(), x.lineStatus;
2674
+ C.lineStatus = new Er(), C.lineStatus;
2675
2675
  }
2676
2676
  const Lr = 5e3, wr = 3;
2677
2677
  let $;
@@ -2826,7 +2826,7 @@ function Nr(e) {
2826
2826
  }).join(" | ");
2827
2827
  }
2828
2828
  function At(e) {
2829
- const { stack: n = "", message: t = "" } = e, r = { eventId: C.CODE, errMessage: t, errStack: n };
2829
+ const { stack: n = "", message: t = "" } = e, r = { eventId: O.CODE, errMessage: t, errStack: n };
2830
2830
  if (n) {
2831
2831
  const o = /^\s*at\s*([^(]+)\s*\((.+?):(\d+):(\d+)\)$/, a = /^\s*([^@]*)@(.+?):(\d+):(\d+)$/, s = n.replace(
2832
2832
  new RegExp(`^[\\w\\s:]*${t}
@@ -2863,7 +2863,7 @@ function Qe(e) {
2863
2863
  return o ? {
2864
2864
  errMessage: n,
2865
2865
  errStack: t,
2866
- eventId: C.CODE,
2866
+ eventId: O.CODE,
2867
2867
  line: r,
2868
2868
  // 不稳定属性 - 在某些浏览器可能是undefined,被废弃了
2869
2869
  col: a,
@@ -2872,29 +2872,29 @@ function Qe(e) {
2872
2872
  // 不稳定属性 - 非标准,有些浏览器可能不支持
2873
2873
  } : At(e);
2874
2874
  }
2875
- return e.message ? At(e) : typeof e == "string" ? { eventId: C.REJECT, errMessage: e } : Te(e) ? { eventId: C.CONSOLEERROR, errMessage: Nr(e) } : {};
2875
+ return e.message ? At(e) : typeof e == "string" ? { eventId: O.REJECT, errMessage: e } : Te(e) ? { eventId: O.CONSOLEERROR, errMessage: Nr(e) } : {};
2876
2876
  }
2877
2877
  function Fr(e) {
2878
2878
  return e && e.reason !== void 0;
2879
2879
  }
2880
2880
  function It(e) {
2881
2881
  if (Fr(e))
2882
- return { eventId: C.CODE, ...Qe(e.reason) };
2882
+ return { eventId: O.CODE, ...Qe(e.reason) };
2883
2883
  const { target: n } = e;
2884
2884
  if (n instanceof HTMLElement && n.nodeType === 1) {
2885
2885
  const t = {
2886
2886
  initiatorType: n.nodeName.toLowerCase(),
2887
- eventId: `${C.RESOURCE}_${V.ERROR}`,
2887
+ eventId: `${O.RESOURCE}_${M.ERROR}`,
2888
2888
  requestUrl: ""
2889
2889
  };
2890
2890
  return n.nodeName.toLowerCase() === "link" ? t.requestUrl = n.href : t.requestUrl = n.currentSrc || n.src, t;
2891
2891
  }
2892
2892
  if (e.error) {
2893
2893
  const t = e.error;
2894
- return t.fileName = t.filename || e.filename, t.columnNumber = t.colno || e.colno, t.lineNumber = t.lineno || e.lineno, { eventId: C.CODE, ...Qe(t) };
2894
+ return t.fileName = t.filename || e.filename, t.columnNumber = t.colno || e.colno, t.lineNumber = t.lineno || e.lineno, { eventId: O.CODE, ...Qe(t) };
2895
2895
  }
2896
2896
  return {
2897
- eventId: C.CODE,
2897
+ eventId: O.CODE,
2898
2898
  line: p.event.errorLine,
2899
2899
  col: p.event.errorCharacter,
2900
2900
  errMessage: p.event.errorMessage,
@@ -2914,9 +2914,9 @@ function Mr() {
2914
2914
  function Re(e, n = !1) {
2915
2915
  const t = {
2916
2916
  ...e,
2917
- eventType: V.ERROR,
2917
+ eventType: M.ERROR,
2918
2918
  recordscreen: d.value.recordScreen ? Ir(Mr()) : null,
2919
- triggerPageUrl: M(),
2919
+ triggerPageUrl: F(),
2920
2920
  triggerTime: R()
2921
2921
  };
2922
2922
  d.value.scopeError ? ot.pushCacheErrorA(t) : T.emit(t, n);
@@ -2943,7 +2943,7 @@ function Vr() {
2943
2943
  type: f.CONSOLEERROR,
2944
2944
  callback: (e) => {
2945
2945
  const n = Qe(e);
2946
- Xe(n) || Re({ eventId: C.CODE, ...n });
2946
+ Xe(n) || Re({ eventId: O.CODE, ...n });
2947
2947
  }
2948
2948
  }));
2949
2949
  }
@@ -2995,7 +2995,7 @@ class Dr {
2995
2995
  // 事件发生时间
2996
2996
  constructor(n = {}) {
2997
2997
  Object.keys(n).forEach((t) => {
2998
- de(t, n) && (this[t] = n[t] || null);
2998
+ fe(t, n) && (this[t] = n[t] || null);
2999
2999
  });
3000
3000
  }
3001
3001
  }
@@ -3004,13 +3004,13 @@ function Xr() {
3004
3004
  type: f.CLICK,
3005
3005
  callback: (e) => {
3006
3006
  const n = new Dr({
3007
- eventType: V.CLICK
3007
+ eventType: M.CLICK
3008
3008
  }), t = e.composedPath() ? e.composedPath() : e.target ? jr(e.target) : [], r = t.find(
3009
3009
  (i) => i.hasAttribute && (i.hasAttribute("data-warden-container") || i.hasAttribute("data-warden-event-id") || i.hasAttribute("data-warden-title"))
3010
3010
  );
3011
3011
  if (!r) return;
3012
3012
  const { scrollTop: o, scrollLeft: a } = document.documentElement, { top: s, left: c } = e.target.getBoundingClientRect();
3013
- n.x = c + a, n.y = s + o, n.triggerTime = R(), n.triggerPageUrl = M(), n.title = Ur(r), n.eventId = Zr(t), n.params = Yr(t), n.elementPath = Bt(r).slice(-128), T.emit(n);
3013
+ n.x = c + a, n.y = s + o, n.triggerTime = R(), n.triggerPageUrl = F(), n.title = Ur(r), n.eventId = Zr(t), n.params = Yr(t), n.elementPath = Bt(r).slice(-128), T.emit(n);
3014
3014
  }
3015
3015
  });
3016
3016
  }
@@ -3101,9 +3101,9 @@ function Gr(e = {}, n = !1) {
3101
3101
  T.emit(
3102
3102
  {
3103
3103
  ...e,
3104
- eventType: V.CUSTOM,
3104
+ eventType: M.CUSTOM,
3105
3105
  triggerTime: R(),
3106
- triggerPageUrl: M()
3106
+ triggerPageUrl: F()
3107
3107
  },
3108
3108
  n
3109
3109
  );
@@ -3154,54 +3154,54 @@ function Ct(e) {
3154
3154
  }
3155
3155
  const s = {};
3156
3156
  Object.keys(Jr).forEach((c) => {
3157
- de(c, o) && (s[c] = o[c]);
3157
+ fe(c, o) && (s[c] = o[c]);
3158
3158
  }), r.push(
3159
- ge({
3159
+ ce({
3160
3160
  ...s,
3161
- eventType: V.PERFORMANCE,
3162
- eventId: C.RESOURCE,
3161
+ eventType: M.PERFORMANCE,
3162
+ eventId: O.RESOURCE,
3163
3163
  requestUrl: o.name,
3164
3164
  triggerTime: R(),
3165
- triggerPageUrl: M()
3165
+ triggerPageUrl: F()
3166
3166
  })
3167
3167
  );
3168
3168
  }), r.length && T.emit(r), r;
3169
3169
  }
3170
- let me = null, pe = null;
3170
+ let pe = null, ve = null;
3171
3171
  function qr() {
3172
3172
  const e = ["img", "script", "link"];
3173
- me = new MutationObserver((n) => {
3173
+ pe = new MutationObserver((n) => {
3174
3174
  for (let t = 0; t < n.length; t += 1) {
3175
3175
  const r = R(), { addedNodes: o = [] } = n[t];
3176
3176
  o.forEach((a) => {
3177
3177
  const { nodeName: s } = a;
3178
3178
  e.indexOf(s.toLowerCase()) !== -1 && (D(a, f.LOAD, function() {
3179
3179
  T.emit(
3180
- ge({
3181
- eventType: V.PERFORMANCE,
3182
- eventId: C.RESOURCE,
3180
+ ce({
3181
+ eventType: M.PERFORMANCE,
3182
+ eventId: O.RESOURCE,
3183
3183
  requestUrl: a.src || a.href,
3184
3184
  duration: R() - r,
3185
3185
  triggerTime: R(),
3186
- triggerPageUrl: M()
3186
+ triggerPageUrl: F()
3187
3187
  })
3188
3188
  );
3189
3189
  }), D(a, f.ERROR, function() {
3190
3190
  T.emit(
3191
- ge({
3192
- eventType: V.PERFORMANCE,
3193
- eventId: C.RESOURCE,
3191
+ ce({
3192
+ eventType: M.PERFORMANCE,
3193
+ eventId: O.RESOURCE,
3194
3194
  requestUrl: a.src || a.href,
3195
3195
  responseStatus: "error",
3196
3196
  duration: R() - r,
3197
3197
  triggerTime: R(),
3198
- triggerPageUrl: M()
3198
+ triggerPageUrl: F()
3199
3199
  })
3200
3200
  );
3201
3201
  }));
3202
3202
  });
3203
3203
  }
3204
- }), me.observe(p.document, {
3204
+ }), pe.observe(p.document, {
3205
3205
  subtree: !0,
3206
3206
  // 目标以及目标的后代改变都会观察
3207
3207
  childList: !0
@@ -3211,6 +3211,25 @@ function qr() {
3211
3211
  });
3212
3212
  }
3213
3213
  function $r() {
3214
+ const e = (n) => {
3215
+ const t = { ...n, triggerPageUrl: F() };
3216
+ C.firstScreen ? C.firstScreen.push({ ...t }) : C.firstScreen = [{ ...t }], T.emit(
3217
+ ce({
3218
+ ...t,
3219
+ eventType: M.PERFORMANCE,
3220
+ eventId: O.PAGE
3221
+ })
3222
+ );
3223
+ };
3224
+ new PerformanceObserver((n, t) => {
3225
+ const r = n.getEntriesByName("first-contentful-paint")[0];
3226
+ r && (t.disconnect(), e({ fcp: r.startTime }));
3227
+ }).observe({ type: "paint", buffered: !0 }), new PerformanceObserver((n, t) => {
3228
+ const r = n.getEntriesByType("largest-contentful-paint"), o = r.length > 0 ? r[r.length - 1] : null;
3229
+ o && (t.disconnect(), e({ lcp: o.startTime }));
3230
+ }).observe({ type: "largest-contentful-paint", buffered: !0 });
3231
+ }
3232
+ function Qr() {
3214
3233
  const e = {}, { performance: n } = p;
3215
3234
  let t = n.timing;
3216
3235
  if (e.fmp = 0, Q.getEntriesByType) {
@@ -3221,19 +3240,19 @@ function $r() {
3221
3240
  }
3222
3241
  }
3223
3242
  e.fmp && Q.PerformanceNavigationTiming && (e.fmp -= t.fetchStart), e.whiteScreenTime = t.responseEnd - t.fetchStart, e.tti = t.domInteractive - t.fetchStart, e.ready = t.domContentLoadedEventEnd - t.fetchStart, e.loadTime = t.loadEventStart - t.fetchStart, e.firstByte = t.responseStart - t.domainLookupStart, e.dns = t.domainLookupEnd - t.domainLookupStart, e.dnsCache = t.domainLookupStart - t.fetchStart, e.tcp = t.connectEnd - t.connectStart, e.ttfb = t.responseStart - t.requestStart, e.trans = t.responseEnd - t.responseStart, e.dom = t.domInteractive - t.responseEnd, e.res = t.loadEventStart - t.domContentLoadedEventEnd, e.ssllink = t.connectEnd - t.secureConnectionStart, e.redirect = t.redirectEnd - t.redirectStart, e.unloadTime = t.unloadEventEnd - t.unloadEventStart;
3224
- const r = { ...e, triggerPageUrl: M() };
3225
- x.firstScreen ? x.firstScreen.push({ ...r }) : x.firstScreen = [{ ...r }], T.emit(
3226
- ge({
3243
+ const r = { ...e, triggerPageUrl: F() };
3244
+ C.firstScreen ? C.firstScreen.push({ ...r }) : C.firstScreen = [{ ...r }], T.emit(
3245
+ ce({
3227
3246
  ...r,
3228
- eventType: V.PERFORMANCE,
3229
- eventId: C.PAGE
3247
+ eventType: M.PERFORMANCE,
3248
+ eventId: O.PAGE
3230
3249
  })
3231
3250
  );
3232
3251
  }
3233
3252
  function Ot() {
3234
- Q.performance && d.value.performance.firstResource && $r(), Q.performance && d.value.performance.core && (Ct(p.performance), Q.PerformanceObserver ? (pe = new PerformanceObserver(Ct), pe.observe({ entryTypes: ["resource"] })) : Q.MutationObserver && qr());
3253
+ Q.performance && d.value.performance.firstResource && (Qr(), $r()), Q.performance && d.value.performance.core && (Ct(p.performance), Q.PerformanceObserver ? (ve = new PerformanceObserver(Ct), ve.observe({ entryTypes: ["resource"] })) : Q.MutationObserver && qr());
3235
3254
  }
3236
- function Qr() {
3255
+ function Kr() {
3237
3256
  !d.value.performance.firstResource && !d.value.performance.core || (document.readyState === "complete" ? Ot() : b.addEvent({
3238
3257
  type: f.LOAD,
3239
3258
  callback: () => {
@@ -3245,21 +3264,21 @@ function at(e = {}, n = !1) {
3245
3264
  const t = {
3246
3265
  ...e,
3247
3266
  triggerTime: R(),
3248
- triggerPageUrl: M(),
3249
- eventType: V.PERFORMANCE
3267
+ triggerPageUrl: F(),
3268
+ eventType: M.PERFORMANCE
3250
3269
  };
3251
- T.emit(ge(t), n);
3252
- }
3253
- function Kr() {
3254
- me && (me.disconnect(), me = null), pe && (pe.disconnect(), pe = null);
3270
+ T.emit(ce(t), n);
3255
3271
  }
3256
3272
  function eo() {
3273
+ pe && (pe.disconnect(), pe = null), ve && (ve.disconnect(), ve = null);
3274
+ }
3275
+ function to() {
3257
3276
  b.addEvent({
3258
3277
  type: f.FETCH,
3259
3278
  callback: async (e, n = {}, t, r, o = {}) => {
3260
3279
  const { method: a = "GET", body: s = {} } = n, { url: c, status: i, statusText: u } = t, l = String(a).toLocaleLowerCase();
3261
3280
  Zt(c) || (i === 200 || i === 304 ? d.value.performance.server && at({
3262
- eventId: C.SERVER,
3281
+ eventId: O.SERVER,
3263
3282
  requestUrl: c,
3264
3283
  triggerTime: r,
3265
3284
  duration: R() - r,
@@ -3269,7 +3288,7 @@ function eo() {
3269
3288
  ...o,
3270
3289
  params: a.toUpperCase() === "POST" ? s : Be(c)
3271
3290
  }) : d.value.error.server && it({
3272
- eventId: C.SERVER,
3291
+ eventId: O.SERVER,
3273
3292
  triggerTime: r,
3274
3293
  duration: R() - r,
3275
3294
  errMessage: u,
@@ -3283,7 +3302,7 @@ function eo() {
3283
3302
  }
3284
3303
  });
3285
3304
  }
3286
- class to {
3305
+ class no {
3287
3306
  requestUrl = "";
3288
3307
  // 请求地址
3289
3308
  requestMethod = "";
@@ -3294,12 +3313,12 @@ class to {
3294
3313
  // 请求发生时间
3295
3314
  constructor(n = {}) {
3296
3315
  Object.keys(n).forEach((t) => {
3297
- de(t, n) && (this[t] = n[t] || null);
3316
+ fe(t, n) && (this[t] = n[t] || null);
3298
3317
  });
3299
3318
  }
3300
3319
  }
3301
- function no() {
3302
- const e = new to();
3320
+ function ro() {
3321
+ const e = new no();
3303
3322
  b.addEvent({
3304
3323
  type: f.XHROPEN,
3305
3324
  callback: (n, t) => {
@@ -3314,7 +3333,7 @@ function no() {
3314
3333
  const i = a || e.requestUrl;
3315
3334
  if (Zt(i)) return;
3316
3335
  o === 200 || o === 304 ? d.value.performance.server && at({
3317
- eventId: C.SERVER,
3336
+ eventId: O.SERVER,
3318
3337
  requestUrl: i,
3319
3338
  requestMethod: e.requestMethod,
3320
3339
  requestType: "xhr",
@@ -3322,7 +3341,7 @@ function no() {
3322
3341
  duration: R() - e.triggerTime,
3323
3342
  params: e.requestMethod === "post" ? t : e.requestParams
3324
3343
  }) : d.value.error.server && it({
3325
- eventId: C.SERVER,
3344
+ eventId: O.SERVER,
3326
3345
  errMessage: s || c,
3327
3346
  requestUrl: i,
3328
3347
  requestMethod: e.requestMethod,
@@ -3338,36 +3357,36 @@ function no() {
3338
3357
  function Zt(e) {
3339
3358
  return !d.value.ignoreRequest.length || !e ? !1 : d.value.ignoreRequest.some((n) => et(n) ? !!n.test(e) : e === n);
3340
3359
  }
3341
- function ro() {
3342
- !d.value.performance.server && !d.value.error.server || (no(), eo());
3343
- }
3344
3360
  function oo() {
3361
+ !d.value.performance.server && !d.value.error.server || (ro(), to());
3362
+ }
3363
+ function io() {
3345
3364
  b.removeEvents([
3346
3365
  f.FETCH,
3347
3366
  f.XHROPEN,
3348
3367
  f.XHRSEND
3349
3368
  ]);
3350
3369
  }
3351
- let K = M();
3352
- function io() {
3370
+ let K = F();
3371
+ function ao() {
3353
3372
  if (!d.value.pv.core) return;
3354
3373
  let e = !1, n = !1;
3355
- fe({ referer: document.referrer }), b.addEvent({
3374
+ he({ referer: document.referrer }), b.addEvent({
3356
3375
  type: f.HISTORYPUSHSTATE,
3357
3376
  callback: () => {
3358
- n || (e = !1, fe({ action: "navigation" }));
3377
+ n || (e = !1, he({ action: "navigation" }));
3359
3378
  }
3360
3379
  }), b.addEvent({
3361
3380
  type: f.HISTORYREPLACESTATE,
3362
3381
  callback: () => {
3363
- n = !0, e = !1, fe({ action: "navigation" }), setTimeout(() => {
3382
+ n = !0, e = !1, he({ action: "navigation" }), setTimeout(() => {
3364
3383
  n = !1;
3365
3384
  }, 100);
3366
3385
  }
3367
3386
  }), b.addEvent({
3368
3387
  type: f.HASHCHANGE,
3369
3388
  callback: () => {
3370
- n || (e || fe(), e = !1);
3389
+ n || (e || he(), e = !1);
3371
3390
  }
3372
3391
  }), b.addEvent({
3373
3392
  type: f.POPSTATE,
@@ -3378,28 +3397,28 @@ function io() {
3378
3397
  if (p.location.href.slice(0, p.location.href.indexOf("#")) === t)
3379
3398
  return;
3380
3399
  }
3381
- e = !0, fe();
3400
+ e = !0, he();
3382
3401
  }
3383
3402
  }
3384
3403
  }), b.addEvent({
3385
3404
  type: f.BEFOREUNLOAD,
3386
3405
  callback: () => {
3387
3406
  const t = R() - Ke;
3388
- Object.values(ve).length > 0 && t > 100 && T.emit({ ...ve, durationTime: t }, !0);
3407
+ Object.values(ge).length > 0 && t > 100 && T.emit({ ...ge, durationTime: t }, !0);
3389
3408
  }
3390
3409
  });
3391
3410
  }
3392
- let Ke = R(), ve = {};
3393
- function fe(e = {}) {
3411
+ let Ke = R(), ge = {};
3412
+ function he(e = {}) {
3394
3413
  const { referer: n = K, action: t, params: r, title: o } = e;
3395
3414
  let a = t;
3396
3415
  a || (a = In[performance.navigation.type] || ""), setTimeout(
3397
3416
  () => {
3398
- K = M();
3417
+ K = F();
3399
3418
  const s = {
3400
- eventType: V.PV,
3401
- eventId: ue.pageId,
3402
- triggerPageUrl: M(),
3419
+ eventType: M.PV,
3420
+ eventId: le.pageId,
3421
+ triggerPageUrl: F(),
3403
3422
  referer: n,
3404
3423
  params: r,
3405
3424
  title: o || document.title,
@@ -3408,29 +3427,29 @@ function fe(e = {}) {
3408
3427
  };
3409
3428
  T.emit(s);
3410
3429
  const c = R() - Ke;
3411
- Ke = R(), Object.values(ve).length > 0 && c > 100 && T.emit({ ...ve, durationTime: c }), ve = {
3430
+ Ke = R(), Object.values(ge).length > 0 && c > 100 && T.emit({ ...ge, durationTime: c }), ge = {
3412
3431
  ...s,
3413
- eventType: V.PVDURATION
3432
+ eventType: M.PVDURATION
3414
3433
  };
3415
3434
  },
3416
3435
  o ? 0 : 17
3417
3436
  );
3418
3437
  }
3419
- function ao(e = {}, n = !1) {
3438
+ function so(e = {}, n = !1) {
3420
3439
  T.emit(
3421
3440
  {
3422
3441
  referer: K,
3423
3442
  title: document.title,
3424
3443
  ...e,
3425
- eventType: V.PV,
3426
- eventId: ue.pageId,
3427
- triggerPageUrl: M(),
3444
+ eventType: M.PV,
3445
+ eventId: le.pageId,
3446
+ triggerPageUrl: F(),
3428
3447
  triggerTime: R()
3429
3448
  },
3430
3449
  n
3431
3450
  );
3432
3451
  }
3433
- function so() {
3452
+ function co() {
3434
3453
  b.removeEvents([
3435
3454
  f.HISTORYPUSHSTATE,
3436
3455
  f.HISTORYREPLACESTATE,
@@ -3439,7 +3458,7 @@ function so() {
3439
3458
  f.BEFOREUNLOAD
3440
3459
  ]);
3441
3460
  }
3442
- class co {
3461
+ class uo {
3443
3462
  ioMap = {};
3444
3463
  targetMap = [];
3445
3464
  options = {
@@ -3483,8 +3502,8 @@ class co {
3483
3502
  */
3484
3503
  sendEvent(n) {
3485
3504
  T.emit({
3486
- eventType: V.INTERSECTION,
3487
- triggerPageUrl: M(),
3505
+ eventType: M.INTERSECTION,
3506
+ triggerPageUrl: F(),
3488
3507
  ...n
3489
3508
  });
3490
3509
  }
@@ -3532,145 +3551,145 @@ class co {
3532
3551
  }
3533
3552
  }
3534
3553
  let be;
3535
- function uo() {
3536
- x.intersection = new co(), be = x.intersection;
3537
- }
3538
3554
  function lo() {
3539
- be?.disconnect();
3555
+ C.intersection = new uo(), be = C.intersection;
3540
3556
  }
3541
- function fo(e) {
3542
- return kr(e);
3557
+ function fo() {
3558
+ be?.disconnect();
3543
3559
  }
3544
3560
  function ho(e) {
3545
- O("beforePushEventList") && d.value.beforePushEventList.push(e);
3561
+ return kr(e);
3546
3562
  }
3547
3563
  function mo(e) {
3548
- O("beforeSendData") && d.value.beforeSendData.push(e);
3564
+ P("beforePushEventList") && d.value.beforePushEventList.push(e);
3549
3565
  }
3550
3566
  function po(e) {
3551
- O("afterSendData") && d.value.afterSendData.push(e);
3567
+ P("beforeSendData") && d.value.beforeSendData.push(e);
3552
3568
  }
3553
3569
  function vo(e) {
3554
- O("setUserUuid") && (d.value.userUuid = e);
3570
+ P("afterSendData") && d.value.afterSendData.push(e);
3555
3571
  }
3556
- function go() {
3557
- if (O("getUserUuid"))
3558
- return d.value.userUuid;
3572
+ function go(e) {
3573
+ P("setUserUuid") && (d.value.userUuid = e);
3559
3574
  }
3560
3575
  function bo() {
3561
- if (O("getSDKUserUuid"))
3562
- return d.value.sdkUserUuid;
3576
+ if (P("getUserUuid"))
3577
+ return d.value.userUuid;
3563
3578
  }
3564
3579
  function yo() {
3565
- if (O("getBaseInfo"))
3580
+ if (P("getSDKUserUuid"))
3581
+ return d.value.sdkUserUuid;
3582
+ }
3583
+ function Eo() {
3584
+ if (P("getBaseInfo"))
3566
3585
  return {
3567
- ...x.baseInfo.base,
3586
+ ...C.baseInfo.base,
3568
3587
  userUuid: d.value.userUuid
3569
3588
  };
3570
3589
  }
3571
- function Eo() {
3572
- if (O("getFirstScreen"))
3573
- return { ...x.firstScreen };
3590
+ function So() {
3591
+ if (P("getFirstScreen"))
3592
+ return { ...C.firstScreen };
3574
3593
  }
3575
- function So(e = {}, n = !1) {
3576
- if (O("traceError"))
3594
+ function Lo(e = {}, n = !1) {
3595
+ if (P("traceError"))
3577
3596
  return it(e, n);
3578
3597
  }
3579
- function Lo(e = {}, n = !1) {
3580
- if (O("tracePerformance"))
3598
+ function wo(e = {}, n = !1) {
3599
+ if (P("tracePerformance"))
3581
3600
  return at(e, n);
3582
3601
  }
3583
- function wo(e = {}, n = !1) {
3584
- if (O("traceCustomEvent"))
3602
+ function Ro(e = {}, n = !1) {
3603
+ if (P("traceCustomEvent"))
3585
3604
  return Gr(e, n);
3586
3605
  }
3587
- function Ro(e = {}, n = !1) {
3588
- if (O("tracePageView"))
3589
- return ao(e, n);
3606
+ function Ao(e = {}, n = !1) {
3607
+ if (P("tracePageView"))
3608
+ return so(e, n);
3590
3609
  }
3591
- function Ao() {
3610
+ function Io() {
3592
3611
  return Wt().then((e) => e[0]);
3593
3612
  }
3594
- function Io(e) {
3595
- O("intersectionObserver") && be.observe(e);
3596
- }
3597
3613
  function ko(e) {
3598
- O("intersectionUnobserve") && be.unobserve(e);
3614
+ P("intersectionObserver") && be.observe(e);
3599
3615
  }
3600
- function To() {
3601
- O("intersectionDisconnect") && be.disconnect();
3616
+ function To(e) {
3617
+ P("intersectionUnobserve") && be.unobserve(e);
3602
3618
  }
3603
3619
  function Co() {
3604
- if (!O("sendData") && !d.value.localization) return;
3620
+ P("intersectionDisconnect") && be.disconnect();
3621
+ }
3622
+ function Oo() {
3623
+ if (!P("sendData") && !d.value.localization) return;
3605
3624
  const e = $e.getItem(_e);
3606
3625
  e && (T.sendLocal(e), $e.removeItem(_e));
3607
3626
  }
3608
- function Oo(e) {
3609
- !O("localizationOverFlow") && !d.value.localization || (d.value.localizationOverFlow = e);
3627
+ function Po(e) {
3628
+ !P("localizationOverFlow") && !d.value.localization || (d.value.localizationOverFlow = e);
3610
3629
  }
3611
- function Po() {
3630
+ function xo() {
3612
3631
  return Ze(d.value);
3613
3632
  }
3614
- const Do = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3633
+ const Xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3615
3634
  __proto__: null,
3616
- afterSendData: po,
3617
- beforePushEventList: ho,
3618
- beforeSendData: mo,
3619
- getBaseInfo: yo,
3620
- getFirstScreen: Eo,
3621
- getIPs: Ao,
3622
- getOptions: Po,
3623
- getSDKUserUuid: bo,
3624
- getUserUuid: go,
3625
- intersectionDisconnect: To,
3626
- intersectionObserver: Io,
3627
- intersectionUnobserve: ko,
3628
- sendLocal: Co,
3629
- setLocalizationOverFlow: Oo,
3630
- setUserUuid: vo,
3631
- traceCustomEvent: wo,
3632
- traceError: So,
3633
- tracePageView: Ro,
3634
- tracePerformance: Lo,
3635
- unzipRecordscreen: fo
3635
+ afterSendData: vo,
3636
+ beforePushEventList: mo,
3637
+ beforeSendData: po,
3638
+ getBaseInfo: Eo,
3639
+ getFirstScreen: So,
3640
+ getIPs: Io,
3641
+ getOptions: xo,
3642
+ getSDKUserUuid: yo,
3643
+ getUserUuid: bo,
3644
+ intersectionDisconnect: Co,
3645
+ intersectionObserver: ko,
3646
+ intersectionUnobserve: To,
3647
+ sendLocal: Oo,
3648
+ setLocalizationOverFlow: Po,
3649
+ setUserUuid: go,
3650
+ traceCustomEvent: Ro,
3651
+ traceError: Lo,
3652
+ tracePageView: Ao,
3653
+ tracePerformance: wo,
3654
+ unzipRecordscreen: ho
3636
3655
  }, Symbol.toStringTag, { value: "Module" }));
3637
- function xo(e) {
3638
- p.__webTracingInit__ || Ln(e) && (Tn(), yr(), gr(), Sr(), Vr(), _r(), ro(), Qr(), io(), uo(), d.value.recordScreen && Rr(), p.__webTracingInit__ = !0);
3656
+ function No(e) {
3657
+ p.__webTracingInit__ || Ln(e) && (Tn(), yr(), gr(), Sr(), Vr(), _r(), oo(), Kr(), ao(), lo(), d.value.recordScreen && Rr(), p.__webTracingInit__ = !0);
3639
3658
  }
3640
- function Xo() {
3641
- zr(), Hr(), oo(), Kr(), lo(), Tr(), so(), Yn(), T && T.destroy(), p.__webTracingInit__ = !1;
3659
+ function jo() {
3660
+ zr(), Hr(), io(), eo(), fo(), Tr(), co(), Yn(), T && T.destroy(), p.__webTracingInit__ = !1;
3642
3661
  }
3643
- function jo(e, n) {
3644
- xo(n);
3662
+ function Uo(e, n) {
3663
+ No(n);
3645
3664
  }
3646
3665
  export {
3647
- V as SEDNEVENTTYPES,
3648
- C as SENDID,
3666
+ M as SEDNEVENTTYPES,
3667
+ O as SENDID,
3649
3668
  d as _options,
3650
- po as afterSendData,
3651
- ho as beforePushEventList,
3652
- mo as beforeSendData,
3653
- Xo as destroyTracing,
3654
- Do as exportMethods,
3655
- yo as getBaseInfo,
3656
- Eo as getFirstScreen,
3657
- Ao as getIPs,
3658
- Po as getOptions,
3659
- bo as getSDKUserUuid,
3660
- go as getUserUuid,
3661
- xo as init,
3662
- jo as install,
3663
- To as intersectionDisconnect,
3664
- Io as intersectionObserver,
3665
- ko as intersectionUnobserve,
3669
+ vo as afterSendData,
3670
+ mo as beforePushEventList,
3671
+ po as beforeSendData,
3672
+ jo as destroyTracing,
3673
+ Xo as exportMethods,
3674
+ Eo as getBaseInfo,
3675
+ So as getFirstScreen,
3676
+ Io as getIPs,
3677
+ xo as getOptions,
3678
+ yo as getSDKUserUuid,
3679
+ bo as getUserUuid,
3680
+ No as init,
3681
+ Uo as install,
3682
+ Co as intersectionDisconnect,
3683
+ ko as intersectionObserver,
3684
+ To as intersectionUnobserve,
3666
3685
  se as logError,
3667
3686
  Qe as parseError,
3668
- Co as sendLocal,
3669
- Oo as setLocalizationOverFlow,
3670
- vo as setUserUuid,
3671
- wo as traceCustomEvent,
3672
- So as traceError,
3673
- Ro as tracePageView,
3674
- Lo as tracePerformance,
3675
- fo as unzipRecordscreen
3687
+ Oo as sendLocal,
3688
+ Po as setLocalizationOverFlow,
3689
+ go as setUserUuid,
3690
+ Ro as traceCustomEvent,
3691
+ Lo as traceError,
3692
+ Ao as tracePageView,
3693
+ wo as tracePerformance,
3694
+ ho as unzipRecordscreen
3676
3695
  };