@incodetech/core 0.0.0-dev-20260618-c6ccb3ca → 0.0.0-dev-20260619-bb63cb3a
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.
- package/dist/ae-signature.d.ts +1 -1
- package/dist/{browser-8Za96B1X-2HhouIRF.esm.js → browser-DlFgHpoC-iQk9oyxh.esm.js} +18 -18
- package/dist/certificate-issuance.d.ts +28 -28
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-Cu8PF0H0.d.ts → consentManager-CNdr6JTS.d.ts} +50 -50
- package/dist/cpf-ocr.d.ts +1 -1
- package/dist/{cpfOcrManager-CNfIFhha.d.ts → cpfOcrManager-CII4qiF3.d.ts} +17 -17
- package/dist/document-capture.d.ts +230 -230
- package/dist/document-upload.d.ts +46 -46
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybStateMachine-Br1wBDpg.esm.js → ekybStateMachine-DGFH-tLB.esm.js} +1 -1
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/extensibility.d.ts +4 -4
- package/dist/extensibility.esm.js +3 -3
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +2 -2
- package/dist/{flowServices-Bfszkz06.esm.js → flowServices-3MBrgTQn.esm.js} +1 -1
- package/dist/home.d.ts +10 -10
- package/dist/id-ocr.d.ts +55 -55
- package/dist/id-verification.d.ts +25 -25
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-Bnvstb8q.esm.js → idCaptureManager-Bkrt8QIC.esm.js} +1 -1
- package/dist/{idCaptureStateMachine-D2-YLKEq.esm.js → idCaptureStateMachine-H-1tL3jX.esm.js} +1 -1
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-DI4OYfZa.d.ts → identityReuseManager-C3VRLqYZ.d.ts} +34 -34
- package/dist/{index-B97U8dGl.d.ts → index-DXzIC0HG.d.ts} +168 -168
- package/dist/index.esm.js +3 -3
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-92wvPNCD.d.ts → mandatoryConsentManager-Cy0yEZ2A.d.ts} +47 -47
- package/dist/qe-signature.d.ts +1 -1
- package/dist/session.esm.js +1 -1
- package/dist/{sessionInitializer-BCFgAROb.esm.js → sessionInitializer-DBTrvltw.esm.js} +1 -1
- package/dist/{setup-BSvUCn_x.esm.js → setup-Dq9-4cRc.esm.js} +2 -2
- package/dist/{tri-Dm8DCwTc.esm.js → tri-DPpCyQfs.esm.js} +3 -1
- package/dist/{tri.esm-Cb1T14_N.esm.js → tri.esm-CpKcH4P7.esm.js} +362 -375
- package/dist/tri.esm.js +1 -1
- package/dist/trust-graph.d.ts +2 -2
- package/dist/wasm.esm.js +3 -3
- package/dist/workflow.d.ts +140 -140
- package/dist/workflow.esm.js +4 -4
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@incodetech+tri-sdk@0.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@incodetech+tri-sdk@0.4.0/node_modules/@incodetech/tri-sdk/dist/tri.esm.js
|
|
2
2
|
var t = class t {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.t =
|
|
4
|
+
this.t = !1;
|
|
5
5
|
}
|
|
6
6
|
static get instance() {
|
|
7
7
|
return t.i || (t.i = new t()), t.i;
|
|
@@ -37,8 +37,8 @@ function e(t$1, n$1, e$1) {
|
|
|
37
37
|
i$1 = window.matchMedia(`(resolution: ${t$2}dppx)`), o$1 = "change";
|
|
38
38
|
}
|
|
39
39
|
i$1.addEventListener(o$1, e$1, {
|
|
40
|
-
capture:
|
|
41
|
-
passive:
|
|
40
|
+
capture: !0,
|
|
41
|
+
passive: !0
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
function i(t$1, n$1, e$1) {
|
|
@@ -47,7 +47,7 @@ function i(t$1, n$1, e$1) {
|
|
|
47
47
|
const t$2 = window.devicePixelRatio;
|
|
48
48
|
i$1 = window.matchMedia(`(resolution: ${t$2}dppx)`), o$1 = "change";
|
|
49
49
|
}
|
|
50
|
-
i$1.removeEventListener(o$1, e$1, { capture:
|
|
50
|
+
i$1.removeEventListener(o$1, e$1, { capture: !0 });
|
|
51
51
|
}
|
|
52
52
|
const o = globalThis.setTimeout.bind(globalThis), r = globalThis.clearTimeout.bind(globalThis);
|
|
53
53
|
function s(t$1, e$1) {
|
|
@@ -67,7 +67,7 @@ async function c(t$1) {
|
|
|
67
67
|
function a(t$1) {
|
|
68
68
|
return (n$1) => s(() => t$1(n$1));
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function u(t$1) {
|
|
71
71
|
return (...e$1) => {
|
|
72
72
|
try {
|
|
73
73
|
t$1(...e$1);
|
|
@@ -76,8 +76,8 @@ function l(t$1) {
|
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return o(
|
|
79
|
+
function l(t$1, n$1) {
|
|
80
|
+
return o(u(t$1), n$1);
|
|
81
81
|
}
|
|
82
82
|
function d(t$1) {
|
|
83
83
|
if (null !== t$1) try {
|
|
@@ -107,7 +107,7 @@ function p(t$1, n$1) {
|
|
|
107
107
|
return n$1 ? t$1 : null;
|
|
108
108
|
}
|
|
109
109
|
function m(t$1, n$1) {
|
|
110
|
-
const e$1 = t$1, i$1 = t$1.responseStart > 0, o$1 = p(t$1.domainLookupEnd - t$1.domainLookupStart, i$1), r$1 = p(t$1.connectEnd - t$1.connectStart, i$1), s$1 = p(t$1.connectEnd > 0 && t$1.secureConnectionStart > 0 ? t$1.connectEnd - t$1.secureConnectionStart : 0, i$1), c$1 = p(t$1.responseStart - t$1.requestStart, i$1), a$1 = p(t$1.responseEnd - t$1.responseStart, i$1),
|
|
110
|
+
const e$1 = t$1, i$1 = t$1.responseStart > 0, o$1 = p(t$1.domainLookupEnd - t$1.domainLookupStart, i$1), r$1 = p(t$1.connectEnd - t$1.connectStart, i$1), s$1 = p(t$1.connectEnd > 0 && t$1.secureConnectionStart > 0 ? t$1.connectEnd - t$1.secureConnectionStart : 0, i$1), c$1 = p(t$1.responseStart - t$1.requestStart, i$1), a$1 = p(t$1.responseEnd - t$1.responseStart, i$1), u$1 = i$1 ? t$1.transferSize : null, l$1 = i$1 ? t$1.encodedBodySize : null, d$1 = i$1 ? t$1.decodedBodySize : null, f$1 = i$1 && t$1.nextHopProtocol || null, m$1 = i$1 && void 0 !== e$1.deliveryType ? e$1.deliveryType : null, w$1 = e$1.responseStatus, y$1 = void 0 !== w$1 && 0 !== w$1 ? w$1 : null;
|
|
111
111
|
return {
|
|
112
112
|
name: "network_request",
|
|
113
113
|
timestamp: Date.now(),
|
|
@@ -121,8 +121,8 @@ function m(t$1, n$1) {
|
|
|
121
121
|
tlsHandshakeMs: s$1,
|
|
122
122
|
ttfbMs: c$1,
|
|
123
123
|
responseDownloadMs: a$1,
|
|
124
|
-
transferSize:
|
|
125
|
-
encodedBodySize:
|
|
124
|
+
transferSize: u$1,
|
|
125
|
+
encodedBodySize: l$1,
|
|
126
126
|
decodedBodySize: d$1,
|
|
127
127
|
nextHopProtocol: f$1,
|
|
128
128
|
deliveryType: m$1,
|
|
@@ -135,32 +135,32 @@ const y = 2e3;
|
|
|
135
135
|
function v(t$1) {
|
|
136
136
|
return !!t$1 && t$1.nodeType === Node.TEXT_NODE;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function b(t$1, n$1) {
|
|
139
139
|
return t$1.tagName?.toLowerCase() === n$1.toLowerCase();
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function g(t$1) {
|
|
142
142
|
return !!t$1 && t$1.nodeType === Node.DOCUMENT_FRAGMENT_NODE;
|
|
143
143
|
}
|
|
144
144
|
function k(t$1) {
|
|
145
|
-
return t$1
|
|
145
|
+
return !!t$1 && t$1.hasAttribute("data-tri-ignore");
|
|
146
146
|
}
|
|
147
147
|
function T(t$1) {
|
|
148
|
-
return t$1
|
|
148
|
+
return !!t$1 && t$1.hasAttribute("data-tri-redact");
|
|
149
149
|
}
|
|
150
150
|
function _(t$1, n$1) {
|
|
151
|
-
return n$1?.includes(t$1.toLowerCase()) ??
|
|
151
|
+
return n$1?.includes(t$1.toLowerCase()) ?? !1;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function x(t$1) {
|
|
154
154
|
try {
|
|
155
155
|
return new URL(t$1).origin !== window.location.origin;
|
|
156
156
|
} catch {
|
|
157
|
-
return
|
|
157
|
+
return !1;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
function S(t$1, n$1) {
|
|
161
|
-
return t$1
|
|
161
|
+
return !t$1 || (t$1[n$1]?.enabled ?? !1);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function I() {
|
|
164
164
|
const t$1 = document.activeElement;
|
|
165
165
|
if (t$1 instanceof HTMLInputElement || t$1 instanceof HTMLTextAreaElement) {
|
|
166
166
|
const n$2 = t$1.selectionStart, e$1 = t$1.selectionEnd;
|
|
@@ -170,7 +170,7 @@ function x() {
|
|
|
170
170
|
return !n$1 || n$1.isCollapsed ? null : n$1.toString() || null;
|
|
171
171
|
}
|
|
172
172
|
function E(t$1, n$1) {
|
|
173
|
-
return "off"
|
|
173
|
+
return "off" !== n$1 && !k(t$1) && !T(t$1);
|
|
174
174
|
}
|
|
175
175
|
function A(t$1) {
|
|
176
176
|
const n$1 = document.activeElement;
|
|
@@ -188,8 +188,8 @@ function M() {
|
|
|
188
188
|
}(t$1, n$1), "function" != typeof (null == e$1 ? void 0 : e$1.load)) throw new Error($);
|
|
189
189
|
return e$1;
|
|
190
190
|
}
|
|
191
|
-
const D = "Blocked by CSP",
|
|
192
|
-
function
|
|
191
|
+
const D = "Blocked by CSP", C = "The endpoint parameter is not a valid URL";
|
|
192
|
+
function P(t$1) {
|
|
193
193
|
return function(t$2, n$1) {
|
|
194
194
|
const e$1 = document, i$1 = "securitypolicyviolation";
|
|
195
195
|
let o$1;
|
|
@@ -212,12 +212,12 @@ function C(t$1) {
|
|
|
212
212
|
return new Promise((n$1, e$1) => {
|
|
213
213
|
if (function(t$3) {
|
|
214
214
|
if (URL.prototype) try {
|
|
215
|
-
return new URL(t$3, location.href),
|
|
215
|
+
return new URL(t$3, location.href), !1;
|
|
216
216
|
} catch (t$4) {
|
|
217
|
-
if (t$4 instanceof Error && "TypeError" === t$4.name) return
|
|
217
|
+
if (t$4 instanceof Error && "TypeError" === t$4.name) return !0;
|
|
218
218
|
throw t$4;
|
|
219
219
|
}
|
|
220
|
-
}(t$2)) throw new Error(
|
|
220
|
+
}(t$2)) throw new Error(C);
|
|
221
221
|
const i$1 = document.createElement("script"), o$1 = () => {
|
|
222
222
|
var t$3;
|
|
223
223
|
return null === (t$3 = i$1.parentNode) || void 0 === t$3 ? void 0 : t$3.removeChild(i$1);
|
|
@@ -226,7 +226,7 @@ function C(t$1) {
|
|
|
226
226
|
o$1(), n$1();
|
|
227
227
|
}, i$1.onerror = () => {
|
|
228
228
|
o$1(), e$1(new Error(L));
|
|
229
|
-
}, i$1.async =
|
|
229
|
+
}, i$1.async = !0, i$1.src = t$2, r$1.appendChild(i$1);
|
|
230
230
|
});
|
|
231
231
|
}(t$1)).then(M);
|
|
232
232
|
}
|
|
@@ -316,7 +316,7 @@ async function F(t$1) {
|
|
|
316
316
|
return [n$3.current(), (t$6, o$3) => {
|
|
317
317
|
let r$3;
|
|
318
318
|
const s$3 = o$3 instanceof Error ? o$3.message : "";
|
|
319
|
-
if (s$3 === D || s$3 ===
|
|
319
|
+
if (s$3 === D || s$3 === C) n$3.exclude(), r$3 = 0;
|
|
320
320
|
else if (s$3 === $) n$3.exclude();
|
|
321
321
|
else if (s$3 === L) {
|
|
322
322
|
const e$5 = Date.now() - t$6.getTime() < 50, o$4 = n$3.current();
|
|
@@ -340,8 +340,8 @@ async function F(t$1) {
|
|
|
340
340
|
const n$3 = o$2(i$4, t$6);
|
|
341
341
|
if (!n$3) throw r$2;
|
|
342
342
|
const [c$3, a$3] = n$3;
|
|
343
|
-
return (
|
|
344
|
-
var
|
|
343
|
+
return (u$1 = a$3, new Promise((t$7) => setTimeout(t$7, u$1))).then(() => s$2(c$3));
|
|
344
|
+
var u$1;
|
|
345
345
|
});
|
|
346
346
|
};
|
|
347
347
|
return s$2(i$3).then((t$5) => [t$5, e$3]);
|
|
@@ -350,7 +350,7 @@ async function F(t$1) {
|
|
|
350
350
|
const e$3 = encodeURIComponent;
|
|
351
351
|
return t$6.replace(/<[^<>]+>/g, (t$7) => "<version>" === t$7 ? "3" : "<apiKey>" === t$7 ? e$3(n$3) : "<loaderVersion>" === t$7 ? e$3(z) : t$7);
|
|
352
352
|
}(String(t$5), n$2));
|
|
353
|
-
}(s$1, r$1),
|
|
353
|
+
}(s$1, r$1), P);
|
|
354
354
|
}).catch((t$4) => {
|
|
355
355
|
throw a$1(), function(t$5) {
|
|
356
356
|
return t$5 instanceof Error && t$5.message === $ ? new Error(L) : t$5;
|
|
@@ -372,7 +372,7 @@ async function F(t$1) {
|
|
|
372
372
|
}), H);
|
|
373
373
|
}(t$1)).get({
|
|
374
374
|
timeout: t$1.timeoutMs,
|
|
375
|
-
extendedResult:
|
|
375
|
+
extendedResult: !0
|
|
376
376
|
});
|
|
377
377
|
if (!e$1.visitorId) return null;
|
|
378
378
|
const i$1 = t$1.cacheTtlMs ?? 2592e6;
|
|
@@ -442,7 +442,7 @@ function Z(t$1, n$1, e$1, i$1, o$1) {
|
|
|
442
442
|
const Q = {
|
|
443
443
|
fingerprint: {
|
|
444
444
|
create: function(t$1) {
|
|
445
|
-
let n$1 =
|
|
445
|
+
let n$1 = !1;
|
|
446
446
|
return c(async () => {
|
|
447
447
|
const e$1 = await async function(t$2) {
|
|
448
448
|
const n$2 = function() {
|
|
@@ -466,7 +466,7 @@ const Q = {
|
|
|
466
466
|
timestamp: Date.now()
|
|
467
467
|
});
|
|
468
468
|
}), () => {
|
|
469
|
-
n$1 =
|
|
469
|
+
n$1 = !0;
|
|
470
470
|
};
|
|
471
471
|
},
|
|
472
472
|
layer: "device-fingerprinting"
|
|
@@ -599,20 +599,20 @@ const Q = {
|
|
|
599
599
|
isTrusted: n$3.isTrusted,
|
|
600
600
|
element: t$1.resolveElement(n$3.target),
|
|
601
601
|
inputType: n$3.inputType ?? "",
|
|
602
|
-
isComposing: n$3.isComposing ??
|
|
602
|
+
isComposing: n$3.isComposing ?? !1,
|
|
603
603
|
length: (e$2 = n$3.target, e$2 instanceof HTMLInputElement || e$2 instanceof HTMLTextAreaElement || e$2 instanceof HTMLSelectElement ? e$2.value.length : 0)
|
|
604
604
|
};
|
|
605
605
|
var e$2;
|
|
606
606
|
}(e$1)), function(t$2) {
|
|
607
|
-
if ("insertReplacementText" === t$2.inputType) return
|
|
607
|
+
if ("insertReplacementText" === t$2.inputType) return !0;
|
|
608
608
|
const n$3 = t$2.target;
|
|
609
|
-
return V(n$3)
|
|
609
|
+
return !!V(n$3) && function(t$3) {
|
|
610
610
|
try {
|
|
611
611
|
return t$3.matches(":-webkit-autofill");
|
|
612
612
|
} catch {
|
|
613
|
-
return
|
|
613
|
+
return !1;
|
|
614
614
|
}
|
|
615
|
-
}(n$3)
|
|
615
|
+
}(n$3);
|
|
616
616
|
}(e$1) && t$1.push(function(t$2, n$3) {
|
|
617
617
|
const e$2 = t$2.target;
|
|
618
618
|
let i$1 = 0;
|
|
@@ -680,7 +680,7 @@ const Q = {
|
|
|
680
680
|
create: function(t$1, n$1 = "on", o$1) {
|
|
681
681
|
const r$1 = a((e$1) => {
|
|
682
682
|
const i$1 = function(e$2) {
|
|
683
|
-
const i$2 = e$2, o$2 = e$2.type, r$2 = ("paste" === e$2.type ? i$2.clipboardData?.getData("text/plain") :
|
|
683
|
+
const i$2 = e$2, o$2 = e$2.type, r$2 = ("paste" === e$2.type ? i$2.clipboardData?.getData("text/plain") : I()) ?? null, s$1 = E(i$2.target, n$1);
|
|
684
684
|
return {
|
|
685
685
|
name: "clipboard",
|
|
686
686
|
type: o$2,
|
|
@@ -744,24 +744,24 @@ const Q = {
|
|
|
744
744
|
},
|
|
745
745
|
selection: {
|
|
746
746
|
create: function(t$1, n$1) {
|
|
747
|
-
let o$1 =
|
|
748
|
-
function
|
|
747
|
+
let o$1 = !1, r$1 = 0, s$1 = null, c$1 = !1, u$1 = !1;
|
|
748
|
+
function l$1() {
|
|
749
749
|
s$1 && (clearTimeout(s$1), s$1 = null);
|
|
750
750
|
}
|
|
751
751
|
function d$1() {
|
|
752
|
-
|
|
752
|
+
l$1(), c$1 || u$1 || (s$1 = setTimeout(() => {
|
|
753
753
|
s$1 = null, o$1 && h$1("timeout");
|
|
754
754
|
}, 250));
|
|
755
755
|
}
|
|
756
756
|
function h$1(e$1) {
|
|
757
|
-
o$1 && (o$1 =
|
|
758
|
-
const i$1 = A("end"), o$2 = i$1 && E(i$1, n$1), r$2 =
|
|
757
|
+
o$1 && (o$1 = !1, l$1(), function(e$2) {
|
|
758
|
+
const i$1 = A("end"), o$2 = i$1 && E(i$1, n$1), r$2 = I();
|
|
759
759
|
t$1.push({
|
|
760
760
|
name: "selection",
|
|
761
761
|
phase: "end",
|
|
762
762
|
timestamp: Date.now(),
|
|
763
763
|
trigger: e$2,
|
|
764
|
-
isTrusted:
|
|
764
|
+
isTrusted: !0,
|
|
765
765
|
element: t$1.resolveElement(i$1),
|
|
766
766
|
length: r$2?.length ?? 0,
|
|
767
767
|
...o$2 && r$2 ? { content: r$2 } : {}
|
|
@@ -773,7 +773,7 @@ const Q = {
|
|
|
773
773
|
const t$2 = document.getSelection();
|
|
774
774
|
return !t$2 || t$2.isCollapsed || 0 === t$2.rangeCount;
|
|
775
775
|
}();
|
|
776
|
-
if (!o$1 && !n$2) return o$1 =
|
|
776
|
+
if (!o$1 && !n$2) return o$1 = !0, r$1 = Date.now(), t$1.push({
|
|
777
777
|
name: "selection",
|
|
778
778
|
phase: "start",
|
|
779
779
|
timestamp: r$1,
|
|
@@ -781,22 +781,22 @@ const Q = {
|
|
|
781
781
|
}), void d$1();
|
|
782
782
|
o$1 && n$2 ? h$1("collapse") : o$1 && d$1();
|
|
783
783
|
}), p$1 = a((t$2) => {
|
|
784
|
-
0 === t$2.button && (c$1 =
|
|
784
|
+
0 === t$2.button && (c$1 = !0, l$1());
|
|
785
785
|
}), m$1 = a((t$2) => {
|
|
786
|
-
0 === t$2.button && (c$1 =
|
|
786
|
+
0 === t$2.button && (c$1 = !1, o$1 && h$1("pointer"));
|
|
787
787
|
}), w$1 = a((t$2) => {
|
|
788
|
-
"Shift" === t$2.key && (
|
|
788
|
+
"Shift" === t$2.key && (u$1 = !0, l$1());
|
|
789
789
|
}), y$1 = a((t$2) => {
|
|
790
|
-
"Shift" === t$2.key && (
|
|
790
|
+
"Shift" === t$2.key && (u$1 = !1, o$1 && h$1("keyboard"));
|
|
791
791
|
}), v$1 = a(() => {
|
|
792
|
-
c$1 =
|
|
793
|
-
}), g$1 = a(() => {
|
|
794
|
-
"hidden" === document.visibilityState && (c$1 = 0, l$1 = 0, o$1 && h$1("timeout"));
|
|
792
|
+
c$1 = !1;
|
|
795
793
|
}), b$1 = a(() => {
|
|
796
|
-
c$1 =
|
|
794
|
+
"hidden" === document.visibilityState && (c$1 = !1, u$1 = !1, o$1 && h$1("timeout"));
|
|
795
|
+
}), g$1 = a(() => {
|
|
796
|
+
c$1 = !1, o$1 && h$1("pointer");
|
|
797
797
|
});
|
|
798
|
-
return e(document, "selectionchange", f$1), e(document, "pointerdown", p$1), e(document, "pointerup", m$1), e(document, "keydown", w$1), e(document, "keyup", y$1), e(document, "contextmenu", v$1), e(document, "visibilitychange",
|
|
799
|
-
|
|
798
|
+
return e(document, "selectionchange", f$1), e(document, "pointerdown", p$1), e(document, "pointerup", m$1), e(document, "keydown", w$1), e(document, "keyup", y$1), e(document, "contextmenu", v$1), e(document, "visibilitychange", b$1), e(document, "dragend", g$1), () => {
|
|
799
|
+
l$1(), i(document, "selectionchange", f$1), i(document, "pointerdown", p$1), i(document, "pointerup", m$1), i(document, "keydown", w$1), i(document, "keyup", y$1), i(document, "contextmenu", v$1), i(document, "visibilitychange", b$1), i(document, "dragend", g$1);
|
|
800
800
|
};
|
|
801
801
|
},
|
|
802
802
|
layer: "behavioral"
|
|
@@ -865,7 +865,7 @@ const Q = {
|
|
|
865
865
|
from: n$1,
|
|
866
866
|
to: r$2
|
|
867
867
|
}, performance.timeOrigin));
|
|
868
|
-
}),
|
|
868
|
+
}), u$1 = a(() => d$1("traverse")), l$1 = a(() => d$1("hashchange"));
|
|
869
869
|
function d$1(e$1) {
|
|
870
870
|
const i$1 = t$1.sanitizeUrl(location.href);
|
|
871
871
|
"hashchange" === e$1 && i$1 === n$1 || o$1(Z("change", e$1, {
|
|
@@ -880,8 +880,8 @@ const Q = {
|
|
|
880
880
|
const n$2 = f$1.apply(this, t$2);
|
|
881
881
|
return s(() => d$1("replace")), n$2;
|
|
882
882
|
};
|
|
883
|
-
return window.navigation ? e(window.navigation, "currententrychange", c$1) : (history.pushState = p$1, history.replaceState = m$1, e(window, "popstate",
|
|
884
|
-
window.navigation ? i(window.navigation, "currententrychange", c$1) : (history.pushState === p$1 && (history.pushState = h$1), history.replaceState === m$1 && (history.replaceState = f$1), i(window, "popstate",
|
|
883
|
+
return window.navigation ? e(window.navigation, "currententrychange", c$1) : (history.pushState = p$1, history.replaceState = m$1, e(window, "popstate", u$1), e(window, "hashchange", l$1)), "complete" === document.readyState ? r$1(new Event("load")) : e(window, "load", r$1), () => {
|
|
884
|
+
window.navigation ? i(window.navigation, "currententrychange", c$1) : (history.pushState === p$1 && (history.pushState = h$1), history.replaceState === m$1 && (history.replaceState = f$1), i(window, "popstate", u$1), i(window, "hashchange", l$1)), i(window, "load", r$1);
|
|
885
885
|
};
|
|
886
886
|
},
|
|
887
887
|
layer: "session"
|
|
@@ -996,10 +996,10 @@ const Q = {
|
|
|
996
996
|
},
|
|
997
997
|
sensors: {
|
|
998
998
|
create: function(t$1, n$1, o$1) {
|
|
999
|
-
let r$1 = null, s$1 = null, c$1 = null,
|
|
999
|
+
let r$1 = null, s$1 = null, c$1 = null, l$1 = null, h$1 = !1;
|
|
1000
1000
|
function f$1() {
|
|
1001
|
-
|
|
1002
|
-
p$1(),
|
|
1001
|
+
l$1 && d(l$1), l$1 = setTimeout(u(() => {
|
|
1002
|
+
p$1(), l$1 = null;
|
|
1003
1003
|
}), y);
|
|
1004
1004
|
}
|
|
1005
1005
|
function p$1() {
|
|
@@ -1007,7 +1007,7 @@ const Q = {
|
|
|
1007
1007
|
}
|
|
1008
1008
|
const m$1 = a((n$2) => {
|
|
1009
1009
|
const e$1 = n$2, i$1 = e$1.timeStamp, o$2 = e$1.acceleration, s$2 = e$1.accelerationIncludingGravity, c$2 = e$1.rotationRate;
|
|
1010
|
-
if (!o$2 && !s$2 && !c$2) return;
|
|
1010
|
+
if (!o$2 && !s$2 && !c$2 || null === o$2?.x && null === o$2?.y && null === o$2?.z && null === s$2?.x && null === s$2?.y && null === s$2?.z && null === c$2?.alpha && null === c$2?.beta && null === c$2?.gamma) return;
|
|
1011
1011
|
if (!r$1) return r$1 = {
|
|
1012
1012
|
name: "sensors",
|
|
1013
1013
|
type: "motion",
|
|
@@ -1100,8 +1100,8 @@ const Q = {
|
|
|
1100
1100
|
}
|
|
1101
1101
|
}, f$1());
|
|
1102
1102
|
});
|
|
1103
|
-
return S(o$1, "motion") && e(window, "devicemotion", m$1), S(o$1, "orientation") && ("ondeviceorientationabsolute" in window ? (h$1 =
|
|
1104
|
-
i(window, "devicemotion", m$1), i(window, h$1 ? "deviceorientationabsolute" : "deviceorientation", w$1), i(window, "devicelight", v$1),
|
|
1103
|
+
return S(o$1, "motion") && e(window, "devicemotion", m$1), S(o$1, "orientation") && ("ondeviceorientationabsolute" in window ? (h$1 = !0, e(window, "deviceorientationabsolute", w$1)) : e(window, "deviceorientation", w$1)), S(o$1, "light") && e(window, "devicelight", v$1), function() {
|
|
1104
|
+
i(window, "devicemotion", m$1), i(window, h$1 ? "deviceorientationabsolute" : "deviceorientation", w$1), i(window, "devicelight", v$1), l$1 && (d(l$1), l$1 = null), p$1();
|
|
1105
1105
|
};
|
|
1106
1106
|
},
|
|
1107
1107
|
layer: "behavioral",
|
|
@@ -1125,7 +1125,7 @@ const Q = {
|
|
|
1125
1125
|
}
|
|
1126
1126
|
}), r$1.observe({
|
|
1127
1127
|
type: "resource",
|
|
1128
|
-
buffered:
|
|
1128
|
+
buffered: !0
|
|
1129
1129
|
});
|
|
1130
1130
|
} catch {
|
|
1131
1131
|
return n.warn("network-request", "PerformanceObserver failed to start"), w;
|
|
@@ -1139,7 +1139,7 @@ const Q = {
|
|
|
1139
1139
|
try {
|
|
1140
1140
|
return e$1.has(new URL(t$2).origin);
|
|
1141
1141
|
} catch {
|
|
1142
|
-
return
|
|
1142
|
+
return !1;
|
|
1143
1143
|
}
|
|
1144
1144
|
}), t$1.sanitizeUrl);
|
|
1145
1145
|
return function() {
|
|
@@ -1167,7 +1167,7 @@ const Q = {
|
|
|
1167
1167
|
type: t$2.orientation.type,
|
|
1168
1168
|
angle: t$2.orientation.angle
|
|
1169
1169
|
} : null,
|
|
1170
|
-
isExtended: t$2.isExtended ??
|
|
1170
|
+
isExtended: t$2.isExtended ?? !1,
|
|
1171
1171
|
viewport: {
|
|
1172
1172
|
height: window.innerHeight,
|
|
1173
1173
|
width: window.innerWidth,
|
|
@@ -1200,8 +1200,8 @@ function nt(t$1) {
|
|
|
1200
1200
|
n$1.username = "", n$1.password = "", n$1.hash = "";
|
|
1201
1201
|
const e$1 = [...n$1.searchParams.keys()], i$1 = e$1.length > 0 ? "?" + e$1.map((t$2) => `${encodeURIComponent(t$2)}=<redacted>`).join("&") : "";
|
|
1202
1202
|
n$1.search = "", n$1.pathname = n$1.pathname.split("/").map((t$2) => "" !== t$2 && function(t$3) {
|
|
1203
|
-
for (const n$2 of tt) if (n$2.test(t$3)) return
|
|
1204
|
-
return
|
|
1203
|
+
for (const n$2 of tt) if (n$2.test(t$3)) return !0;
|
|
1204
|
+
return !1;
|
|
1205
1205
|
}(t$2) ? ":param" : t$2).join("/");
|
|
1206
1206
|
const o$1 = n$1.origin + n$1.pathname + i$1;
|
|
1207
1207
|
return o$1.length > 2048 ? o$1.slice(0, 2048) : o$1;
|
|
@@ -1209,7 +1209,7 @@ function nt(t$1) {
|
|
|
1209
1209
|
return "";
|
|
1210
1210
|
}
|
|
1211
1211
|
}
|
|
1212
|
-
const et = {
|
|
1212
|
+
const et = "idle", it = "ready", ot = "collection-disabled", rt = "init-failed", st = {
|
|
1213
1213
|
flush: {
|
|
1214
1214
|
intervalMs: 2e3,
|
|
1215
1215
|
maxIntervalMs: 3e4,
|
|
@@ -1218,90 +1218,90 @@ const et = {
|
|
|
1218
1218
|
},
|
|
1219
1219
|
queue: { size: 100 }
|
|
1220
1220
|
};
|
|
1221
|
-
function
|
|
1221
|
+
function ct() {
|
|
1222
1222
|
const t$1 = {};
|
|
1223
|
-
for (const n$1 of W) t$1[n$1] =
|
|
1223
|
+
for (const n$1 of W) t$1[n$1] = lt(n$1, void 0, !0);
|
|
1224
1224
|
return t$1;
|
|
1225
1225
|
}
|
|
1226
|
-
function
|
|
1226
|
+
function at(t$1) {
|
|
1227
1227
|
const n$1 = {};
|
|
1228
|
-
for (const e$1 of W) n$1[e$1] =
|
|
1228
|
+
for (const e$1 of W) n$1[e$1] = lt(e$1, void 0, t$1[Q[e$1].layer] ?? !1);
|
|
1229
1229
|
return n$1;
|
|
1230
1230
|
}
|
|
1231
|
-
function
|
|
1231
|
+
function ut(t$1) {
|
|
1232
1232
|
const n$1 = {};
|
|
1233
1233
|
for (const e$1 of W) {
|
|
1234
1234
|
const i$1 = t$1[e$1];
|
|
1235
|
-
n$1[e$1] =
|
|
1235
|
+
n$1[e$1] = lt(e$1, i$1, i$1?.enabled ?? !1);
|
|
1236
1236
|
}
|
|
1237
1237
|
return n$1;
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1239
|
+
function lt(t$1, n$1, e$1) {
|
|
1240
1240
|
const i$1 = Q[t$1]?.events ?? [];
|
|
1241
1241
|
if (0 === i$1.length) return { enabled: e$1 };
|
|
1242
1242
|
const o$1 = n$1?.events, r$1 = {};
|
|
1243
|
-
for (const t$2 of i$1) r$1[t$2] = { enabled: o$1?.[t$2] ??
|
|
1243
|
+
for (const t$2 of i$1) r$1[t$2] = { enabled: o$1?.[t$2] ?? !0 };
|
|
1244
1244
|
return {
|
|
1245
1245
|
enabled: e$1,
|
|
1246
1246
|
events: r$1
|
|
1247
1247
|
};
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function dt(t$1) {
|
|
1250
1250
|
if (!t$1) return null;
|
|
1251
1251
|
const n$1 = t$1.split(".")[1], e$1 = atob(n$1.replace(/-/g, "+").replace(/_/g, "/"));
|
|
1252
1252
|
return JSON.parse(e$1);
|
|
1253
1253
|
}
|
|
1254
|
-
const
|
|
1255
|
-
if (!t$1) return
|
|
1256
|
-
const e$1 =
|
|
1257
|
-
return e$1
|
|
1254
|
+
const ht = function(t$1, n$1 = 30) {
|
|
1255
|
+
if (!t$1) return !0;
|
|
1256
|
+
const e$1 = dt(t$1);
|
|
1257
|
+
return !e$1 || "number" != typeof e$1.exp || 1e3 * e$1.exp <= Date.now() + 1e3 * n$1;
|
|
1258
1258
|
};
|
|
1259
|
-
async function
|
|
1259
|
+
async function ft(t$1, n$1) {
|
|
1260
1260
|
return globalThis.navigator && "locks" in globalThis.navigator && "request" in globalThis.navigator.locks && "query" in globalThis.navigator.locks ? navigator.locks.request(t$1, { mode: "exclusive" }, async () => c(n$1)) : c(n$1);
|
|
1261
1261
|
}
|
|
1262
|
-
const
|
|
1263
|
-
var
|
|
1262
|
+
const pt = "__tri", mt = `${pt}_activity_token`, wt = `${pt}_activity_id`, yt = `${pt}_activity_status`, vt = "__tri_activity_lock";
|
|
1263
|
+
var bt = class {
|
|
1264
1264
|
constructor(t$1) {
|
|
1265
|
-
this.context = t$1, this.
|
|
1265
|
+
this.context = t$1, this.u = null, this.l = null, this.h = null, this.p = null, this.m = !1;
|
|
1266
1266
|
}
|
|
1267
1267
|
getToken() {
|
|
1268
|
-
return this.
|
|
1268
|
+
return this.u;
|
|
1269
1269
|
}
|
|
1270
1270
|
getActivityId() {
|
|
1271
|
-
return this.
|
|
1271
|
+
return this.l ?? "";
|
|
1272
1272
|
}
|
|
1273
1273
|
isActive() {
|
|
1274
|
-
return "ACTIVE" === this.h && null !== this.
|
|
1274
|
+
return "ACTIVE" === this.h && null !== this.u;
|
|
1275
1275
|
}
|
|
1276
1276
|
async start() {
|
|
1277
|
-
return this.m =
|
|
1277
|
+
return this.m = !0, this.p || (this.p = this.v()), this.p;
|
|
1278
1278
|
}
|
|
1279
1279
|
async stop() {
|
|
1280
|
-
this.m =
|
|
1280
|
+
this.m = !1, this.k(null), this.p = null, this.u && await this.context.stopActivity(), this.T(null);
|
|
1281
1281
|
}
|
|
1282
1282
|
async refresh() {
|
|
1283
1283
|
if (!this.m) return;
|
|
1284
|
-
const t$1 = this.
|
|
1285
|
-
await
|
|
1286
|
-
if (this.
|
|
1284
|
+
const t$1 = this.u;
|
|
1285
|
+
await ft(vt, async () => {
|
|
1286
|
+
if (this.u && this.u !== t$1 && !ht(this.u) && "ACTIVE" === this.h) return;
|
|
1287
1287
|
const n$1 = this._();
|
|
1288
|
-
n$1 && n$1.token !== t$1 && !
|
|
1288
|
+
n$1 && n$1.token !== t$1 && !ht(n$1.token) && "ACTIVE" === n$1.activityStatus ? this.T(n$1) : (this.S(), await this.I());
|
|
1289
1289
|
});
|
|
1290
1290
|
}
|
|
1291
1291
|
async v() {
|
|
1292
1292
|
try {
|
|
1293
|
-
if (this.
|
|
1294
|
-
await
|
|
1295
|
-
await this.
|
|
1293
|
+
if (this.u && !ht(this.u)) return;
|
|
1294
|
+
await ft(vt, async () => {
|
|
1295
|
+
await this.I();
|
|
1296
1296
|
});
|
|
1297
1297
|
} finally {
|
|
1298
1298
|
this.p = null;
|
|
1299
1299
|
}
|
|
1300
1300
|
}
|
|
1301
|
-
async
|
|
1301
|
+
async I() {
|
|
1302
1302
|
const t$1 = this._();
|
|
1303
|
-
if (t$1 && !
|
|
1304
|
-
t$1 && this.
|
|
1303
|
+
if (t$1 && !ht(t$1.token) && "ACTIVE" === t$1.activityStatus) return void this.T(t$1);
|
|
1304
|
+
t$1 && this.S();
|
|
1305
1305
|
const n$1 = await this.context.startActivity();
|
|
1306
1306
|
if (!n$1.ok) return;
|
|
1307
1307
|
if (!n$1.data.token) return;
|
|
@@ -1310,36 +1310,36 @@ var mt = class {
|
|
|
1310
1310
|
}
|
|
1311
1311
|
_() {
|
|
1312
1312
|
const [t$1, n$1, e$1] = [
|
|
1313
|
-
O.get(
|
|
1314
|
-
O.get(
|
|
1315
|
-
O.get(
|
|
1313
|
+
O.get(mt),
|
|
1314
|
+
O.get(wt),
|
|
1315
|
+
O.get(yt)
|
|
1316
1316
|
];
|
|
1317
1317
|
return t$1 && n$1 && e$1 ? {
|
|
1318
1318
|
token: t$1,
|
|
1319
1319
|
activityId: n$1,
|
|
1320
1320
|
activityStatus: e$1
|
|
1321
|
-
} : ((t$1 || n$1 || e$1) && this.
|
|
1321
|
+
} : ((t$1 || n$1 || e$1) && this.S(), null);
|
|
1322
1322
|
}
|
|
1323
1323
|
A(t$1) {
|
|
1324
|
-
O.set(
|
|
1324
|
+
O.set(mt, t$1.token), O.set(wt, t$1.activityId), O.set(yt, t$1.activityStatus);
|
|
1325
1325
|
}
|
|
1326
|
-
|
|
1326
|
+
S() {
|
|
1327
1327
|
this.k(null), this.T(null);
|
|
1328
1328
|
}
|
|
1329
1329
|
k(t$1) {
|
|
1330
|
-
if (!t$1) return O.remove(
|
|
1331
|
-
O.set(
|
|
1330
|
+
if (!t$1) return O.remove(mt), O.remove(wt), void O.remove(yt);
|
|
1331
|
+
O.set(mt, t$1.token), O.set(wt, t$1.activityId), O.set(yt, t$1.activityStatus);
|
|
1332
1332
|
}
|
|
1333
1333
|
T(t$1) {
|
|
1334
|
-
if (!t$1) return this.
|
|
1335
|
-
this.
|
|
1334
|
+
if (!t$1) return this.u = null, this.l = null, void (this.h = null);
|
|
1335
|
+
this.u = t$1.token, this.l = t$1.activityId, this.h = t$1.activityStatus;
|
|
1336
1336
|
}
|
|
1337
1337
|
};
|
|
1338
|
-
const
|
|
1338
|
+
const gt = [
|
|
1339
1339
|
401,
|
|
1340
1340
|
403,
|
|
1341
1341
|
409
|
|
1342
|
-
],
|
|
1342
|
+
], kt = Object.freeze({
|
|
1343
1343
|
tab: 80,
|
|
1344
1344
|
navigation: 80,
|
|
1345
1345
|
visibility: 80,
|
|
@@ -1359,86 +1359,86 @@ const wt = [
|
|
|
1359
1359
|
scroll: 40,
|
|
1360
1360
|
sensors: 40
|
|
1361
1361
|
});
|
|
1362
|
-
function
|
|
1363
|
-
return "pointer" === t$1.name && "move" === t$1.phase || "viewport" === t$1.name && "resize" === t$1.type ? 40 :
|
|
1362
|
+
function Tt(t$1) {
|
|
1363
|
+
return "pointer" === t$1.name && "move" === t$1.phase || "viewport" === t$1.name && "resize" === t$1.type ? 40 : kt[t$1.name];
|
|
1364
1364
|
}
|
|
1365
|
-
const
|
|
1366
|
-
for (let t$1 = 0; t$1 < 256; t$1++)
|
|
1367
|
-
const
|
|
1368
|
-
function
|
|
1369
|
-
return
|
|
1365
|
+
const _t = new Array(256);
|
|
1366
|
+
for (let t$1 = 0; t$1 < 256; t$1++) _t[t$1] = (t$1 + 256).toString(16).slice(1);
|
|
1367
|
+
const xt = new Uint8Array(16);
|
|
1368
|
+
function St(t$1) {
|
|
1369
|
+
return _t[t$1[0]] + _t[t$1[1]] + _t[t$1[2]] + _t[t$1[3]] + "-" + _t[t$1[4]] + _t[t$1[5]] + "-" + _t[t$1[6]] + _t[t$1[7]] + "-" + _t[t$1[8]] + _t[t$1[9]] + "-" + _t[t$1[10]] + _t[t$1[11]] + _t[t$1[12]] + _t[t$1[13]] + _t[t$1[14]] + _t[t$1[15]];
|
|
1370
1370
|
}
|
|
1371
|
-
function
|
|
1371
|
+
function It() {
|
|
1372
1372
|
return crypto.randomUUID();
|
|
1373
1373
|
}
|
|
1374
|
-
function
|
|
1375
|
-
return crypto.getRandomValues(
|
|
1374
|
+
function Et() {
|
|
1375
|
+
return crypto.getRandomValues(xt), xt[6] = 15 & xt[6] | 64, xt[8] = 63 & xt[8] | 128, St(xt);
|
|
1376
1376
|
}
|
|
1377
|
-
function
|
|
1378
|
-
for (let t$1 = 0; t$1 < 16; t$1++)
|
|
1379
|
-
return
|
|
1377
|
+
function At() {
|
|
1378
|
+
for (let t$1 = 0; t$1 < 16; t$1++) xt[t$1] = 256 * Math.random() | 0;
|
|
1379
|
+
return xt[6] = 15 & xt[6] | 64, xt[8] = 63 & xt[8] | 128, St(xt);
|
|
1380
1380
|
}
|
|
1381
|
-
const
|
|
1381
|
+
const Mt = function() {
|
|
1382
1382
|
if ("undefined" != typeof crypto) {
|
|
1383
|
-
if ("function" == typeof crypto.randomUUID) return
|
|
1384
|
-
if ("function" == typeof crypto.getRandomValues) return
|
|
1383
|
+
if ("function" == typeof crypto.randomUUID) return It;
|
|
1384
|
+
if ("function" == typeof crypto.getRandomValues) return Et;
|
|
1385
1385
|
}
|
|
1386
|
-
return
|
|
1386
|
+
return At;
|
|
1387
1387
|
}();
|
|
1388
|
-
function
|
|
1389
|
-
return
|
|
1388
|
+
function Dt() {
|
|
1389
|
+
return Mt();
|
|
1390
1390
|
}
|
|
1391
|
-
var
|
|
1391
|
+
var Ct = class {
|
|
1392
1392
|
constructor(t$1, n$1) {
|
|
1393
|
-
this.M = t$1, this.D = n$1, this.
|
|
1393
|
+
this.M = t$1, this.D = n$1, this.C = [], this.P = null, this.R = [], this.L = null, this.m = !1, this.$ = !0, this.U = 0, this.B = 0, this.O = t$1.flush.intervalMs;
|
|
1394
1394
|
}
|
|
1395
1395
|
push(t$1) {
|
|
1396
1396
|
if (this.m) {
|
|
1397
|
-
if (this.
|
|
1397
|
+
if (this.C.length < this.q() ? this.C.push(t$1) : this.j(t$1), this.$) return this.C.length >= this.M.flush.size ? (d(this.P), this.P = null, void this.flush("capacity")) : void this.H();
|
|
1398
1398
|
} else n.warn("Transport", "push() called before start() — event dropped");
|
|
1399
1399
|
}
|
|
1400
1400
|
flush(t$1) {
|
|
1401
1401
|
if (this.m && this.D.isActivityActive()) try {
|
|
1402
1402
|
if ("lifecycle" === t$1) return void this.N();
|
|
1403
|
-
if (0 === this.
|
|
1403
|
+
if (0 === this.C.length) return;
|
|
1404
1404
|
const e$1 = this.F(t$1);
|
|
1405
|
-
this.D.ingest(e$1,
|
|
1405
|
+
this.D.ingest(e$1, !1).then((t$2) => this.X(t$2, e$1)).catch(() => {
|
|
1406
1406
|
n.warn("Transport", "ingest threw unexpectedly — batch dropped");
|
|
1407
|
-
}), this.
|
|
1407
|
+
}), this.C.length > 0 && this.H();
|
|
1408
1408
|
} catch (t$2) {
|
|
1409
1409
|
n.warn("Transport", "flush() threw unexpectedly:", t$2);
|
|
1410
1410
|
}
|
|
1411
1411
|
}
|
|
1412
1412
|
start() {
|
|
1413
|
-
this.m || (this.m =
|
|
1413
|
+
this.m || (this.m = !0, this.$ = "undefined" == typeof navigator || navigator.onLine);
|
|
1414
1414
|
}
|
|
1415
1415
|
stop() {
|
|
1416
1416
|
if (!this.m) return Promise.resolve();
|
|
1417
|
-
d(this.
|
|
1417
|
+
d(this.P), this.P = null, d(this.L), this.L = null;
|
|
1418
1418
|
const t$1 = this.N();
|
|
1419
|
-
return this.m =
|
|
1419
|
+
return this.m = !1, t$1;
|
|
1420
1420
|
}
|
|
1421
1421
|
onConnectionChange() {
|
|
1422
|
-
const t$1 = "undefined"
|
|
1422
|
+
const t$1 = "undefined" == typeof navigator || navigator.onLine;
|
|
1423
1423
|
if (t$1 !== this.$) {
|
|
1424
|
-
if (this.$ = t$1, !this.$) return d(this.
|
|
1425
|
-
this.
|
|
1424
|
+
if (this.$ = t$1, !this.$) return d(this.P), this.P = null, d(this.L), void (this.L = null);
|
|
1425
|
+
this.C.length > 0 && this.H(), this.R.length > 0 && this.K();
|
|
1426
1426
|
}
|
|
1427
1427
|
}
|
|
1428
1428
|
H() {
|
|
1429
|
-
this.m && this.$ && null === this.
|
|
1430
|
-
this.
|
|
1429
|
+
this.m && this.$ && null === this.P && (this.P = l(() => {
|
|
1430
|
+
this.P = null, this.flush("interval");
|
|
1431
1431
|
}, this.O));
|
|
1432
1432
|
}
|
|
1433
1433
|
K() {
|
|
1434
|
-
this.m && this.$ && null === this.L && (this.L =
|
|
1434
|
+
this.m && this.$ && null === this.L && (this.L = l(() => {
|
|
1435
1435
|
this.L = null, this.V();
|
|
1436
1436
|
}, this.O));
|
|
1437
1437
|
}
|
|
1438
1438
|
V() {
|
|
1439
1439
|
if (!this.m || !this.$ || 0 === this.R.length || !this.D.isActivityActive()) return;
|
|
1440
1440
|
const t$1 = this.R.shift();
|
|
1441
|
-
this.D.ingest(t$1.batch,
|
|
1441
|
+
this.D.ingest(t$1.batch, !1).then((n$1) => this.Y(n$1, t$1)).catch(() => {
|
|
1442
1442
|
n.warn("Transport", "retry drain ingest threw unexpectedly — batch dropped"), this.R.length > 0 && this.K();
|
|
1443
1443
|
});
|
|
1444
1444
|
}
|
|
@@ -1470,65 +1470,65 @@ var Et = class {
|
|
|
1470
1470
|
async N() {
|
|
1471
1471
|
if (!this.D.isActivityActive()) return Promise.resolve();
|
|
1472
1472
|
const t$1 = [];
|
|
1473
|
-
for (const e$1 of this.R) t$1.push(this.D.ingest(e$1.batch,
|
|
1473
|
+
for (const e$1 of this.R) t$1.push(this.D.ingest(e$1.batch, !0).catch(() => {
|
|
1474
1474
|
n.warn("Transport", "lifecycle retry ingest threw — batch dropped");
|
|
1475
1475
|
}));
|
|
1476
|
-
if (this.R = [], this.
|
|
1476
|
+
if (this.R = [], this.C.length > 0) {
|
|
1477
1477
|
const e$1 = this.F("lifecycle");
|
|
1478
|
-
t$1.push(this.D.ingest(e$1,
|
|
1478
|
+
t$1.push(this.D.ingest(e$1, !0).catch(() => {
|
|
1479
1479
|
n.warn("Transport", "lifecycle ingest threw — batch dropped");
|
|
1480
1480
|
}));
|
|
1481
1481
|
}
|
|
1482
1482
|
return Promise.allSettled(t$1).then(() => {});
|
|
1483
1483
|
}
|
|
1484
1484
|
j(t$1) {
|
|
1485
|
-
const n$1 =
|
|
1486
|
-
for (let e$1 = 0; e$1 < this.
|
|
1487
|
-
for (let t$2 = e$1; t$2 < this.
|
|
1488
|
-
this.
|
|
1485
|
+
const n$1 = Tt(t$1);
|
|
1486
|
+
for (let e$1 = 0; e$1 < this.C.length; e$1++) if (Tt(this.C[e$1]) < n$1) {
|
|
1487
|
+
for (let t$2 = e$1; t$2 < this.C.length - 1; t$2++) this.C[t$2] = this.C[t$2 + 1];
|
|
1488
|
+
this.C.length -= 1, this.C.push(t$1);
|
|
1489
1489
|
return;
|
|
1490
1490
|
}
|
|
1491
1491
|
}
|
|
1492
1492
|
F(t$1) {
|
|
1493
|
-
const n$1 = "lifecycle" === t$1 ? this.
|
|
1493
|
+
const n$1 = "lifecycle" === t$1 ? this.C.splice(-this.M.flush.size) : this.C.splice(0, this.M.flush.size);
|
|
1494
1494
|
return {
|
|
1495
1495
|
activityId: "",
|
|
1496
|
-
batchId:
|
|
1496
|
+
batchId: Dt(),
|
|
1497
1497
|
batchSequence: this.B++,
|
|
1498
1498
|
clientTimestamp: Date.now(),
|
|
1499
1499
|
schemaVersion: "0.1.0",
|
|
1500
|
-
sdkVersion: "0.
|
|
1500
|
+
sdkVersion: "0.4.0",
|
|
1501
1501
|
sdkPlatform: "web",
|
|
1502
1502
|
tabId: this.D.getTabId(),
|
|
1503
1503
|
events: n$1
|
|
1504
1504
|
};
|
|
1505
1505
|
}
|
|
1506
1506
|
Z(t$1) {
|
|
1507
|
-
if (t$1.ok) return
|
|
1507
|
+
if (t$1.ok) return !1;
|
|
1508
1508
|
switch (t$1.kind) {
|
|
1509
1509
|
case "timeout":
|
|
1510
1510
|
case "server":
|
|
1511
|
-
case "rate_limited": return
|
|
1512
|
-
default: return
|
|
1511
|
+
case "rate_limited": return !0;
|
|
1512
|
+
default: return !1;
|
|
1513
1513
|
}
|
|
1514
1514
|
}
|
|
1515
1515
|
};
|
|
1516
|
-
const
|
|
1517
|
-
const
|
|
1518
|
-
if ("undefined" == typeof Storage || "undefined" == typeof window) return
|
|
1516
|
+
const Pt = "tri:bcast:";
|
|
1517
|
+
const Rt = "function" == typeof BroadcastChannel ? BroadcastChannel : function() {
|
|
1518
|
+
if ("undefined" == typeof Storage || "undefined" == typeof window) return !1;
|
|
1519
1519
|
try {
|
|
1520
1520
|
const t$1 = "__tri_bcast_probe__";
|
|
1521
1521
|
localStorage.setItem(t$1, "1");
|
|
1522
1522
|
const n$1 = "1" === localStorage.getItem(t$1);
|
|
1523
1523
|
return localStorage.removeItem(t$1), n$1;
|
|
1524
1524
|
} catch {
|
|
1525
|
-
return
|
|
1525
|
+
return !1;
|
|
1526
1526
|
}
|
|
1527
1527
|
}() ? class {
|
|
1528
1528
|
constructor(t$1) {
|
|
1529
|
-
this.seq = 0, this.closed =
|
|
1529
|
+
this.seq = 0, this.closed = !1, this.listeners = /* @__PURE__ */ new Set(), this.onStorageEvent = (t$2) => {
|
|
1530
1530
|
if (this.closed) return;
|
|
1531
|
-
if (!t$2.key || !t$2.key.startsWith(`${
|
|
1531
|
+
if (!t$2.key || !t$2.key.startsWith(`${Pt}${this.channelName}:`)) return;
|
|
1532
1532
|
if (null === t$2.newValue) return;
|
|
1533
1533
|
let n$1;
|
|
1534
1534
|
s(() => O.remove(t$2.key));
|
|
@@ -1539,11 +1539,11 @@ const Mt = "function" == typeof BroadcastChannel ? BroadcastChannel : function()
|
|
|
1539
1539
|
}
|
|
1540
1540
|
const e$1 = { data: n$1 };
|
|
1541
1541
|
for (const t$3 of this.listeners) s(() => t$3(e$1));
|
|
1542
|
-
}, this.channelName = t$1, this.senderId =
|
|
1542
|
+
}, this.channelName = t$1, this.senderId = Dt(), window.addEventListener("storage", this.onStorageEvent);
|
|
1543
1543
|
}
|
|
1544
1544
|
postMessage(t$1) {
|
|
1545
1545
|
if (this.closed) return;
|
|
1546
|
-
const n$1 = `${
|
|
1546
|
+
const n$1 = `${Pt}${this.channelName}:${this.senderId}:${this.seq++}`;
|
|
1547
1547
|
s(() => {
|
|
1548
1548
|
O.set(n$1, t$1), O.remove(n$1);
|
|
1549
1549
|
});
|
|
@@ -1555,7 +1555,7 @@ const Mt = "function" == typeof BroadcastChannel ? BroadcastChannel : function()
|
|
|
1555
1555
|
this.listeners.delete(n$1);
|
|
1556
1556
|
}
|
|
1557
1557
|
close() {
|
|
1558
|
-
this.closed || (this.closed =
|
|
1558
|
+
this.closed || (this.closed = !0, window.removeEventListener("storage", this.onStorageEvent), this.listeners.clear());
|
|
1559
1559
|
}
|
|
1560
1560
|
} : class {
|
|
1561
1561
|
constructor(t$1) {
|
|
@@ -1565,24 +1565,24 @@ const Mt = "function" == typeof BroadcastChannel ? BroadcastChannel : function()
|
|
|
1565
1565
|
addEventListener(t$1, n$1) {}
|
|
1566
1566
|
removeEventListener(t$1, n$1) {}
|
|
1567
1567
|
close() {}
|
|
1568
|
-
},
|
|
1569
|
-
var
|
|
1568
|
+
}, zt = "__tri_tabId";
|
|
1569
|
+
var Lt = class {
|
|
1570
1570
|
constructor(t$1) {
|
|
1571
|
-
this.context = t$1, this.tt = "", this.m =
|
|
1571
|
+
this.context = t$1, this.tt = "", this.m = !1, this.nt = null, this.et = null, this.it = null, this.ot = /* @__PURE__ */ new Map(), this.rt = -1, this.st = null;
|
|
1572
1572
|
}
|
|
1573
1573
|
async start() {
|
|
1574
|
-
this.m || (this.m =
|
|
1574
|
+
this.m || (this.m = !0, this.tt = this.ct(), this.ut(), this.lt({
|
|
1575
1575
|
type: "hello",
|
|
1576
1576
|
tabId: this.tt,
|
|
1577
1577
|
ts: Date.now()
|
|
1578
1578
|
}), this.dt(), this.ht("active"), this.ft());
|
|
1579
1579
|
}
|
|
1580
1580
|
stop() {
|
|
1581
|
-
this.m && (this.m =
|
|
1581
|
+
this.m && (this.m = !1, this.ht("inactive"), this.lt({
|
|
1582
1582
|
type: "bye",
|
|
1583
1583
|
tabId: this.tt,
|
|
1584
1584
|
ts: Date.now()
|
|
1585
|
-
}), this.wt(this.yt()), this.vt(), this.
|
|
1585
|
+
}), this.wt(this.yt()), this.vt(), this.bt(), this.gt());
|
|
1586
1586
|
}
|
|
1587
1587
|
getTabId() {
|
|
1588
1588
|
return this.tt;
|
|
@@ -1590,14 +1590,14 @@ var Pt = class {
|
|
|
1590
1590
|
queryTabsNumber() {
|
|
1591
1591
|
return this.ot.size + 1;
|
|
1592
1592
|
}
|
|
1593
|
-
|
|
1593
|
+
ut() {
|
|
1594
1594
|
try {
|
|
1595
|
-
this.nt = new
|
|
1595
|
+
this.nt = new Rt("__tri_tab_channel"), this.st = this.kt.bind(this), this.nt.addEventListener("message", this.st);
|
|
1596
1596
|
} catch (t$1) {
|
|
1597
1597
|
n.warn("TabManager", "failed to open broadcast channel:", t$1);
|
|
1598
1598
|
}
|
|
1599
1599
|
}
|
|
1600
|
-
|
|
1600
|
+
gt() {
|
|
1601
1601
|
try {
|
|
1602
1602
|
if (!this.nt) return;
|
|
1603
1603
|
this.st && this.nt.removeEventListener("message", this.st), this.nt.close();
|
|
@@ -1608,7 +1608,7 @@ var Pt = class {
|
|
|
1608
1608
|
dt() {
|
|
1609
1609
|
this.et = setInterval(() => {
|
|
1610
1610
|
const t$1 = Date.now();
|
|
1611
|
-
this.
|
|
1611
|
+
this.lt({
|
|
1612
1612
|
type: "heartbeat",
|
|
1613
1613
|
tabId: this.tt,
|
|
1614
1614
|
ts: t$1
|
|
@@ -1625,10 +1625,10 @@ var Pt = class {
|
|
|
1625
1625
|
t$1 !== this.rt && (this.rt = t$1, this.wt(t$1));
|
|
1626
1626
|
}, 1e3);
|
|
1627
1627
|
}
|
|
1628
|
-
|
|
1628
|
+
bt() {
|
|
1629
1629
|
null != this.it && (clearTimeout(this.it), this.it = null);
|
|
1630
1630
|
}
|
|
1631
|
-
|
|
1631
|
+
lt(t$1) {
|
|
1632
1632
|
try {
|
|
1633
1633
|
if (!this.nt) return;
|
|
1634
1634
|
this.nt.postMessage(t$1);
|
|
@@ -1640,7 +1640,7 @@ var Pt = class {
|
|
|
1640
1640
|
const { type: n$1, tabId: e$1 } = t$1.data;
|
|
1641
1641
|
if (e$1 === this.tt) return;
|
|
1642
1642
|
const i$1 = Date.now();
|
|
1643
|
-
"hello" === n$1 ? (this.
|
|
1643
|
+
"hello" === n$1 ? (this.lt({
|
|
1644
1644
|
type: "ack",
|
|
1645
1645
|
tabId: this.tt,
|
|
1646
1646
|
ts: i$1,
|
|
@@ -1666,10 +1666,10 @@ var Pt = class {
|
|
|
1666
1666
|
});
|
|
1667
1667
|
}
|
|
1668
1668
|
ct() {
|
|
1669
|
-
const t$1 = q.get(
|
|
1669
|
+
const t$1 = q.get(zt);
|
|
1670
1670
|
if (t$1) return t$1;
|
|
1671
|
-
const n$1 =
|
|
1672
|
-
return q.set(
|
|
1671
|
+
const n$1 = Dt();
|
|
1672
|
+
return q.set(zt, n$1), n$1;
|
|
1673
1673
|
}
|
|
1674
1674
|
yt(t$1 = Date.now()) {
|
|
1675
1675
|
let n$1 = 0;
|
|
@@ -1677,13 +1677,13 @@ var Pt = class {
|
|
|
1677
1677
|
return n$1;
|
|
1678
1678
|
}
|
|
1679
1679
|
};
|
|
1680
|
-
const
|
|
1681
|
-
let
|
|
1682
|
-
async function
|
|
1680
|
+
const $t = globalThis.CompressionStream, Ut = globalThis.Response, Bt = globalThis.Blob, Ot = new TextEncoder();
|
|
1681
|
+
let qt = null;
|
|
1682
|
+
async function jt(t$1) {
|
|
1683
1683
|
const e$1 = await async function(t$2) {
|
|
1684
|
-
if ("function" != typeof
|
|
1684
|
+
if ("function" != typeof $t) return null;
|
|
1685
1685
|
try {
|
|
1686
|
-
return await new
|
|
1686
|
+
return await new Ut(new Bt([Ot.encode(t$2)]).stream().pipeThrough(new $t("gzip"))).arrayBuffer();
|
|
1687
1687
|
} catch (t$3) {
|
|
1688
1688
|
return n.warn("compression", "Native gzip failed:", t$3), null;
|
|
1689
1689
|
}
|
|
@@ -1691,42 +1691,42 @@ async function Ut(t$1) {
|
|
|
1691
1691
|
return null !== e$1 ? e$1 : async function(t$2) {
|
|
1692
1692
|
try {
|
|
1693
1693
|
const e$2 = await function() {
|
|
1694
|
-
if (null ===
|
|
1694
|
+
if (null === qt) {
|
|
1695
1695
|
const t$3 = function(t$4, e$3 = 1e4) {
|
|
1696
1696
|
let i$2 = null;
|
|
1697
1697
|
const o$2 = new Promise((t$5) => {
|
|
1698
|
-
i$2 =
|
|
1698
|
+
i$2 = l(() => {
|
|
1699
1699
|
n.warn("import", `Import timed out after ${e$3}ms`), t$5(null);
|
|
1700
1700
|
}, e$3);
|
|
1701
1701
|
}), r$1 = Promise.resolve().then(t$4).catch((t$5) => (n.warn("import", "Import failed:", t$5), null));
|
|
1702
1702
|
return Promise.race([r$1, o$2]).finally(() => {
|
|
1703
1703
|
d(i$2);
|
|
1704
1704
|
});
|
|
1705
|
-
}(() => import("./browser-
|
|
1706
|
-
|
|
1707
|
-
null === n$1 &&
|
|
1708
|
-
|
|
1705
|
+
}(() => import("./browser-DlFgHpoC-iQk9oyxh.esm.js"), 1e4);
|
|
1706
|
+
qt = t$3, t$3.then((n$1) => {
|
|
1707
|
+
null === n$1 && l(() => {
|
|
1708
|
+
qt === t$3 && (qt = null);
|
|
1709
1709
|
}, 1e4);
|
|
1710
1710
|
});
|
|
1711
1711
|
}
|
|
1712
|
-
return
|
|
1712
|
+
return qt;
|
|
1713
1713
|
}();
|
|
1714
1714
|
if (null === e$2) return null;
|
|
1715
|
-
const { gzipSync: i$1 } = e$2, o$1 = i$1(
|
|
1715
|
+
const { gzipSync: i$1 } = e$2, o$1 = i$1(Ot.encode(t$2));
|
|
1716
1716
|
return o$1.buffer.slice(o$1.byteOffset, o$1.byteOffset + o$1.byteLength);
|
|
1717
1717
|
} catch (t$3) {
|
|
1718
1718
|
return n.warn("compression", "fflate gzip failed:", t$3), null;
|
|
1719
1719
|
}
|
|
1720
1720
|
}(t$1);
|
|
1721
1721
|
}
|
|
1722
|
-
function
|
|
1722
|
+
function Ht(t$1) {
|
|
1723
1723
|
const n$1 = { Accept: "application/json" };
|
|
1724
1724
|
return t$1?.hasBody && ("json" === t$1.contentType ? n$1["Content-Type"] = "application/json" : "ndjson" === t$1.contentType && (n$1["Content-Type"] = "application/x-ndjson"), "gzip" === t$1.contentEncoding && (n$1["Content-Encoding"] = "gzip")), t$1?.token && (n$1.Authorization = `Bearer ${t$1.token}`), t$1?.profileId && (n$1["x-profile-id"] = t$1.profileId), t$1?.api?.version && (n$1["x-api-version"] = t$1.api.version), t$1?.customHeaders && Object.entries(t$1.customHeaders).forEach(([t$2, e$1]) => {
|
|
1725
1725
|
n$1[t$2] = e$1;
|
|
1726
1726
|
}), n$1;
|
|
1727
1727
|
}
|
|
1728
|
-
const
|
|
1729
|
-
var
|
|
1728
|
+
const Nt = "function" == typeof globalThis.fetch ? globalThis.fetch.bind(globalThis) : void 0;
|
|
1729
|
+
var Ft = class {
|
|
1730
1730
|
constructor(t$1) {
|
|
1731
1731
|
this.context = t$1;
|
|
1732
1732
|
}
|
|
@@ -1747,7 +1747,7 @@ var qt = class {
|
|
|
1747
1747
|
}
|
|
1748
1748
|
}
|
|
1749
1749
|
};
|
|
1750
|
-
const
|
|
1750
|
+
const Xt = new Set([
|
|
1751
1751
|
"A",
|
|
1752
1752
|
"BUTTON",
|
|
1753
1753
|
"INPUT",
|
|
@@ -1758,7 +1758,7 @@ const jt = new Set([
|
|
|
1758
1758
|
"LABEL",
|
|
1759
1759
|
"OPTION",
|
|
1760
1760
|
"FIELDSET"
|
|
1761
|
-
]),
|
|
1761
|
+
]), Kt = new Set([
|
|
1762
1762
|
"button",
|
|
1763
1763
|
"link",
|
|
1764
1764
|
"tab",
|
|
@@ -1776,15 +1776,15 @@ const jt = new Set([
|
|
|
1776
1776
|
"searchbox",
|
|
1777
1777
|
"textbox",
|
|
1778
1778
|
"treeitem"
|
|
1779
|
-
]),
|
|
1780
|
-
function
|
|
1779
|
+
]), Vt = 255;
|
|
1780
|
+
function Yt(t$1, n$1, e$1) {
|
|
1781
1781
|
const i$1 = t$1.tagName.toLowerCase(), o$1 = function(t$2) {
|
|
1782
1782
|
const n$2 = t$2.parentElement?.children ?? [], e$2 = Math.min(n$2.length, 1e3);
|
|
1783
1783
|
let i$2 = e$2 - 1, o$2 = 0, r$2 = 0;
|
|
1784
1784
|
for (let i$3 = 0; i$3 < e$2; i$3++) {
|
|
1785
1785
|
r$2++;
|
|
1786
1786
|
const e$3 = n$2[i$3];
|
|
1787
|
-
if (
|
|
1787
|
+
if (b(e$3, t$2.tagName) && o$2++, e$3 === t$2) break;
|
|
1788
1788
|
}
|
|
1789
1789
|
return {
|
|
1790
1790
|
siblings: i$2,
|
|
@@ -1808,16 +1808,16 @@ function Ft(t$1, n$1, e$1) {
|
|
|
1808
1808
|
return t$3.getAttribute("data-testid") ?? t$3.getAttribute("data-cy") ?? null;
|
|
1809
1809
|
}(t$2);
|
|
1810
1810
|
a$1 && !_("data-testid", e$2) && (i$2.testId = a$1);
|
|
1811
|
-
const
|
|
1812
|
-
|
|
1813
|
-
const
|
|
1814
|
-
|
|
1811
|
+
const u$1 = t$2.hasAttribute("readonly");
|
|
1812
|
+
u$1 && !_("readonly", e$2) && (i$2.readOnly = u$1);
|
|
1813
|
+
const l$1 = t$2.hasAttribute("required");
|
|
1814
|
+
l$1 && !_("required", e$2) && (i$2.required = l$1);
|
|
1815
1815
|
const d$1 = t$2.getAttribute("contenteditable");
|
|
1816
1816
|
d$1 && !_("contenteditable", e$2) && (i$2.contentEditable = "true" === d$1 || "" === d$1);
|
|
1817
1817
|
const h$1 = t$2.getAttribute("href");
|
|
1818
1818
|
h$1 && !_("href", e$2) && (i$2.href = {
|
|
1819
1819
|
...n$2 ? {} : { url: h$1 },
|
|
1820
|
-
external:
|
|
1820
|
+
external: x(h$1)
|
|
1821
1821
|
});
|
|
1822
1822
|
const f$1 = t$2.getAttribute("role");
|
|
1823
1823
|
f$1 && !_("role", e$2) && (i$2.role = f$1);
|
|
@@ -1839,23 +1839,23 @@ function Ft(t$1, n$1, e$1) {
|
|
|
1839
1839
|
...o$1 ? { nth: o$1 } : {}
|
|
1840
1840
|
};
|
|
1841
1841
|
}
|
|
1842
|
-
function
|
|
1842
|
+
function Jt(t$1, n$1) {
|
|
1843
1843
|
let e$1 = 0;
|
|
1844
1844
|
const i$1 = [];
|
|
1845
1845
|
return function(t$2) {
|
|
1846
|
-
return
|
|
1846
|
+
return Xt.has(t$2.tagName);
|
|
1847
1847
|
}(t$1) && (e$1 += 40, i$1.push("native")), function(t$2) {
|
|
1848
1848
|
return t$2.hasAttribute("data-tri-interactive");
|
|
1849
1849
|
}(t$1) && (e$1 += 40, i$1.push("tri-interactive")), function(t$2) {
|
|
1850
|
-
return
|
|
1850
|
+
return b(t$2, "a") && t$2.hasAttribute("href");
|
|
1851
1851
|
}(t$1) && (e$1 += 15, i$1.push("has-href")), function(t$2) {
|
|
1852
1852
|
const n$2 = t$2.getAttribute("role");
|
|
1853
|
-
return null !== n$2 &&
|
|
1853
|
+
return null !== n$2 && Kt.has(n$2);
|
|
1854
1854
|
}(t$1) && (e$1 += 30, i$1.push("role")), function(t$2) {
|
|
1855
1855
|
return t$2.hasAttribute("onclick") || t$2.hasAttribute("ng-click") || t$2.hasAttribute("data-action") || t$2.hasAttribute("@click");
|
|
1856
1856
|
}(t$1) && (e$1 += 20, i$1.push("click-handler")), function(t$2) {
|
|
1857
1857
|
const n$2 = t$2.getAttribute("tabindex");
|
|
1858
|
-
if (null === n$2) return
|
|
1858
|
+
if (null === n$2) return !1;
|
|
1859
1859
|
const e$2 = parseInt(n$2, 10);
|
|
1860
1860
|
return null !== e$2 && e$2 >= 0;
|
|
1861
1861
|
}(t$1) && (e$1 += 10, i$1.push("tabindex")), (t$1.id || t$1.getAttribute("data-testid")) && (e$1 += 5, i$1.push("has-id")), n$1 > 0 && (e$1 += Math.round(15 / n$1), i$1.push("depth")), {
|
|
@@ -1863,45 +1863,45 @@ function Xt(t$1, n$1) {
|
|
|
1863
1863
|
reasons: i$1
|
|
1864
1864
|
};
|
|
1865
1865
|
}
|
|
1866
|
-
function
|
|
1866
|
+
function Gt(t$1) {
|
|
1867
1867
|
return t$1 >= 20;
|
|
1868
1868
|
}
|
|
1869
|
-
function
|
|
1869
|
+
function Zt(t$1) {
|
|
1870
1870
|
return null !== t$1 && t$1.width > 0 && t$1.height > 0 && t$1.y < window.innerHeight && t$1.y + t$1.height > 0 && t$1.x < window.innerWidth && t$1.x + t$1.width > 0;
|
|
1871
1871
|
}
|
|
1872
|
-
function
|
|
1873
|
-
return
|
|
1872
|
+
function Qt(t$1) {
|
|
1873
|
+
return !0 === t$1.disabled || "true" === t$1.getAttribute("aria-disabled");
|
|
1874
1874
|
}
|
|
1875
|
-
function
|
|
1875
|
+
function Wt(t$1, n$1 = !1) {
|
|
1876
1876
|
if (n$1) return null;
|
|
1877
|
-
const e$1 =
|
|
1877
|
+
const e$1 = nn(t$1, "labelledby");
|
|
1878
1878
|
if (e$1) return {
|
|
1879
|
-
text:
|
|
1879
|
+
text: on(e$1),
|
|
1880
1880
|
resolutionMethod: "aria-labelledby",
|
|
1881
1881
|
confidence: "high"
|
|
1882
1882
|
};
|
|
1883
|
-
const i$1 =
|
|
1883
|
+
const i$1 = en(t$1);
|
|
1884
1884
|
if (i$1) return {
|
|
1885
|
-
text:
|
|
1885
|
+
text: on(i$1),
|
|
1886
1886
|
resolutionMethod: "aria-label",
|
|
1887
1887
|
confidence: "high"
|
|
1888
1888
|
};
|
|
1889
1889
|
const o$1 = function(t$2) {
|
|
1890
1890
|
if (!t$2.id) return null;
|
|
1891
1891
|
const n$2 = document.querySelector(`label[for="${CSS.escape(t$2.id)}"]`);
|
|
1892
|
-
return n$2 ?
|
|
1892
|
+
return n$2 ? tn(n$2) : null;
|
|
1893
1893
|
}(t$1);
|
|
1894
1894
|
if (o$1) return {
|
|
1895
|
-
text:
|
|
1895
|
+
text: on(o$1),
|
|
1896
1896
|
resolutionMethod: "html-for",
|
|
1897
1897
|
confidence: "high"
|
|
1898
1898
|
};
|
|
1899
1899
|
const r$1 = function(t$2) {
|
|
1900
1900
|
const n$2 = t$2.closest("label");
|
|
1901
|
-
return n$2 ?
|
|
1901
|
+
return n$2 ? tn(n$2) : null;
|
|
1902
1902
|
}(t$1);
|
|
1903
1903
|
if (r$1) return {
|
|
1904
|
-
text:
|
|
1904
|
+
text: on(r$1),
|
|
1905
1905
|
resolutionMethod: "wrapping-label",
|
|
1906
1906
|
confidence: "high"
|
|
1907
1907
|
};
|
|
@@ -1909,7 +1909,7 @@ function Jt(t$1, n$1 = 0) {
|
|
|
1909
1909
|
return t$2.getAttribute("placeholder")?.trim() ?? null;
|
|
1910
1910
|
}(t$1);
|
|
1911
1911
|
if (s$1) return {
|
|
1912
|
-
text:
|
|
1912
|
+
text: on(s$1),
|
|
1913
1913
|
resolutionMethod: "placeholder",
|
|
1914
1914
|
confidence: "low"
|
|
1915
1915
|
};
|
|
@@ -1917,55 +1917,55 @@ function Jt(t$1, n$1 = 0) {
|
|
|
1917
1917
|
return t$2.getAttribute("title")?.trim() ?? null;
|
|
1918
1918
|
}(t$1);
|
|
1919
1919
|
if (c$1) return {
|
|
1920
|
-
text:
|
|
1920
|
+
text: on(c$1),
|
|
1921
1921
|
resolutionMethod: "title",
|
|
1922
1922
|
confidence: "low"
|
|
1923
1923
|
};
|
|
1924
|
-
const a$1 =
|
|
1924
|
+
const a$1 = nn(t$1, "describedby");
|
|
1925
1925
|
if (a$1) return {
|
|
1926
|
-
text:
|
|
1926
|
+
text: on(a$1),
|
|
1927
1927
|
resolutionMethod: "aria-describedby",
|
|
1928
1928
|
confidence: "low"
|
|
1929
1929
|
};
|
|
1930
|
-
const
|
|
1931
|
-
return
|
|
1932
|
-
text:
|
|
1930
|
+
const u$1 = tn(t$1);
|
|
1931
|
+
return u$1 ? {
|
|
1932
|
+
text: u$1,
|
|
1933
1933
|
resolutionMethod: "text-content",
|
|
1934
1934
|
confidence: "low"
|
|
1935
1935
|
} : null;
|
|
1936
1936
|
}
|
|
1937
|
-
function
|
|
1937
|
+
function tn(t$1, n$1 = 0) {
|
|
1938
1938
|
if (n$1 > 8) return "";
|
|
1939
1939
|
if (v(t$1)) return function(t$2) {
|
|
1940
|
-
return t$2 ? t$2.trim().split(/(\s+)/).join("").replace(/[\r\n]/g, " ").replace(/[ ]+/g, " ").substring(0,
|
|
1940
|
+
return t$2 ? t$2.trim().split(/(\s+)/).join("").replace(/[\r\n]/g, " ").replace(/[ ]+/g, " ").substring(0, Vt) : null;
|
|
1941
1941
|
}(t$1.textContent) ?? "";
|
|
1942
1942
|
if (!t$1.childNodes?.length) return "";
|
|
1943
1943
|
let e$1 = "";
|
|
1944
1944
|
for (const i$1 of t$1.childNodes) {
|
|
1945
|
-
const t$2 =
|
|
1946
|
-
if (t$2 && (e$1 = e$1 ? `${e$1} ${t$2}` : t$2, e$1.length >=
|
|
1945
|
+
const t$2 = tn(i$1, n$1 + 1);
|
|
1946
|
+
if (t$2 && (e$1 = e$1 ? `${e$1} ${t$2}` : t$2, e$1.length >= Vt)) break;
|
|
1947
1947
|
}
|
|
1948
|
-
return
|
|
1948
|
+
return on(e$1);
|
|
1949
1949
|
}
|
|
1950
|
-
function
|
|
1950
|
+
function nn(t$1, n$1) {
|
|
1951
1951
|
const e$1 = "labelledby" === n$1 ? "aria-labelledby" : "aria-describedby", i$1 = t$1?.getAttribute(e$1);
|
|
1952
1952
|
if (!i$1) return null;
|
|
1953
1953
|
const o$1 = i$1.split(/\s+/), r$1 = [];
|
|
1954
1954
|
for (const t$2 of o$1) {
|
|
1955
1955
|
const n$2 = document.getElementById(t$2);
|
|
1956
1956
|
if (!n$2) continue;
|
|
1957
|
-
const e$2 =
|
|
1957
|
+
const e$2 = en(n$2) ?? tn(n$2);
|
|
1958
1958
|
e$2.length && r$1.push(e$2);
|
|
1959
1959
|
}
|
|
1960
1960
|
return r$1.length ? r$1.join(" ") : null;
|
|
1961
1961
|
}
|
|
1962
|
-
function
|
|
1962
|
+
function en(t$1) {
|
|
1963
1963
|
return t$1?.getAttribute("aria-label")?.trim() ?? null;
|
|
1964
1964
|
}
|
|
1965
|
-
function
|
|
1966
|
-
return t$1.length >
|
|
1965
|
+
function on(t$1) {
|
|
1966
|
+
return t$1.length > Vt ? t$1.slice(0, Vt) + "..." : t$1;
|
|
1967
1967
|
}
|
|
1968
|
-
function
|
|
1968
|
+
function rn(t$1) {
|
|
1969
1969
|
const n$1 = t$1.getBoundingClientRect();
|
|
1970
1970
|
return {
|
|
1971
1971
|
x: n$1.x,
|
|
@@ -1974,7 +1974,7 @@ function tn(t$1) {
|
|
|
1974
1974
|
height: n$1.height
|
|
1975
1975
|
};
|
|
1976
1976
|
}
|
|
1977
|
-
var
|
|
1977
|
+
var sn = class {
|
|
1978
1978
|
constructor(t$1) {
|
|
1979
1979
|
this.capacity = t$1, this.cache = /* @__PURE__ */ new Map();
|
|
1980
1980
|
}
|
|
@@ -1999,60 +1999,60 @@ var nn = class {
|
|
|
1999
1999
|
return this.cache.size;
|
|
2000
2000
|
}
|
|
2001
2001
|
};
|
|
2002
|
-
async function
|
|
2002
|
+
async function cn(t$1, o$1) {
|
|
2003
2003
|
const { collectors: r$1, sdk: s$1 } = t$1;
|
|
2004
|
-
let c$1 = null,
|
|
2004
|
+
let c$1 = null, u$1 = null, h$1 = null, f$1 = null;
|
|
2005
2005
|
try {
|
|
2006
2006
|
c$1 = function(t$3) {
|
|
2007
2007
|
"undefined" != typeof document && "function" == typeof globalThis.fetch || n.warn("FalconService", "createFalconServiceManager called in a non-browser environment — all requests will resolve with { ok: false, kind: 'network' }.");
|
|
2008
2008
|
const e$1 = function(t$4) {
|
|
2009
2009
|
const n$1 = t$4?.timeout, e$2 = t$4?.baseUrl ?? "", i$2 = t$4?.api;
|
|
2010
2010
|
async function o$3(t$5, o$4, r$2) {
|
|
2011
|
-
if (void 0 ===
|
|
2012
|
-
ok:
|
|
2011
|
+
if (void 0 === Nt) return {
|
|
2012
|
+
ok: !1,
|
|
2013
2013
|
kind: "network"
|
|
2014
2014
|
};
|
|
2015
2015
|
const s$2 = e$2 ? `${e$2}${o$4}` : o$4, c$2 = new AbortController();
|
|
2016
|
-
let a$1 = null,
|
|
2017
|
-
a$1 =
|
|
2018
|
-
|
|
2016
|
+
let a$1 = null, u$2 = !1;
|
|
2017
|
+
a$1 = l(() => {
|
|
2018
|
+
u$2 = !0, c$2.abort();
|
|
2019
2019
|
}, n$1);
|
|
2020
2020
|
const h$2 = r$2?.signal;
|
|
2021
2021
|
let f$2, p$2 = () => {};
|
|
2022
2022
|
if (h$2) if (h$2.aborted) c$2.abort();
|
|
2023
2023
|
else {
|
|
2024
2024
|
const t$6 = () => c$2.abort();
|
|
2025
|
-
h$2.addEventListener("abort", t$6, { once:
|
|
2025
|
+
h$2.addEventListener("abort", t$6, { once: !0 }), p$2 = () => h$2.removeEventListener("abort", t$6);
|
|
2026
2026
|
}
|
|
2027
2027
|
if (null != r$2 && "body" in r$2 && null != r$2.body) {
|
|
2028
2028
|
const t$6 = function(t$7) {
|
|
2029
2029
|
if (null == t$7) return {
|
|
2030
|
-
ok:
|
|
2030
|
+
ok: !0,
|
|
2031
2031
|
body: void 0
|
|
2032
2032
|
};
|
|
2033
2033
|
if ("string" == typeof t$7 || t$7 instanceof ArrayBuffer || ArrayBuffer.isView(t$7) || t$7 instanceof Blob || t$7 instanceof FormData || t$7 instanceof URLSearchParams || t$7 instanceof ReadableStream) return {
|
|
2034
|
-
ok:
|
|
2034
|
+
ok: !0,
|
|
2035
2035
|
body: t$7
|
|
2036
2036
|
};
|
|
2037
2037
|
try {
|
|
2038
2038
|
return {
|
|
2039
|
-
ok:
|
|
2039
|
+
ok: !0,
|
|
2040
2040
|
body: JSON.stringify(t$7)
|
|
2041
2041
|
};
|
|
2042
2042
|
} catch {
|
|
2043
|
-
return { ok:
|
|
2043
|
+
return { ok: !1 };
|
|
2044
2044
|
}
|
|
2045
2045
|
}(r$2.body);
|
|
2046
2046
|
if (!t$6.ok) return d(a$1), p$2(), {
|
|
2047
|
-
ok:
|
|
2047
|
+
ok: !1,
|
|
2048
2048
|
kind: "serialize"
|
|
2049
2049
|
};
|
|
2050
2050
|
f$2 = t$6.body;
|
|
2051
2051
|
}
|
|
2052
2052
|
try {
|
|
2053
|
-
const n$2 = await
|
|
2053
|
+
const n$2 = await Nt(s$2, {
|
|
2054
2054
|
method: t$5,
|
|
2055
|
-
headers:
|
|
2055
|
+
headers: Ht({
|
|
2056
2056
|
token: r$2?.token,
|
|
2057
2057
|
profileId: r$2?.profileId,
|
|
2058
2058
|
contentType: r$2?.contentType,
|
|
@@ -2066,51 +2066,51 @@ async function en(t$1, o$1) {
|
|
|
2066
2066
|
keepalive: r$2?.keepalive
|
|
2067
2067
|
});
|
|
2068
2068
|
if (!n$2.ok) return 429 === (m$2 = n$2.status) ? {
|
|
2069
|
-
ok:
|
|
2069
|
+
ok: !1,
|
|
2070
2070
|
kind: "rate_limited",
|
|
2071
2071
|
status: m$2
|
|
2072
2072
|
} : m$2 >= 400 && m$2 < 500 ? {
|
|
2073
|
-
ok:
|
|
2073
|
+
ok: !1,
|
|
2074
2074
|
kind: "client",
|
|
2075
2075
|
status: m$2
|
|
2076
2076
|
} : {
|
|
2077
|
-
ok:
|
|
2077
|
+
ok: !1,
|
|
2078
2078
|
kind: "server",
|
|
2079
2079
|
status: m$2
|
|
2080
2080
|
};
|
|
2081
2081
|
if (204 === n$2.status) return {
|
|
2082
|
-
ok:
|
|
2082
|
+
ok: !0,
|
|
2083
2083
|
data: void 0,
|
|
2084
2084
|
status: 204
|
|
2085
2085
|
};
|
|
2086
2086
|
try {
|
|
2087
2087
|
return {
|
|
2088
|
-
ok:
|
|
2088
|
+
ok: !0,
|
|
2089
2089
|
data: await n$2.json(),
|
|
2090
2090
|
status: n$2.status
|
|
2091
2091
|
};
|
|
2092
2092
|
} catch {
|
|
2093
|
-
return c$2.signal.aborted ?
|
|
2094
|
-
ok:
|
|
2093
|
+
return c$2.signal.aborted ? u$2 ? {
|
|
2094
|
+
ok: !1,
|
|
2095
2095
|
kind: "timeout"
|
|
2096
2096
|
} : {
|
|
2097
|
-
ok:
|
|
2097
|
+
ok: !1,
|
|
2098
2098
|
kind: "abort"
|
|
2099
2099
|
} : {
|
|
2100
|
-
ok:
|
|
2100
|
+
ok: !1,
|
|
2101
2101
|
kind: "parse",
|
|
2102
2102
|
status: n$2.status
|
|
2103
2103
|
};
|
|
2104
2104
|
}
|
|
2105
2105
|
} catch {
|
|
2106
|
-
return
|
|
2107
|
-
ok:
|
|
2106
|
+
return u$2 ? {
|
|
2107
|
+
ok: !1,
|
|
2108
2108
|
kind: "timeout"
|
|
2109
2109
|
} : c$2.signal.aborted ? {
|
|
2110
|
-
ok:
|
|
2110
|
+
ok: !1,
|
|
2111
2111
|
kind: "abort"
|
|
2112
2112
|
} : {
|
|
2113
|
-
ok:
|
|
2113
|
+
ok: !1,
|
|
2114
2114
|
kind: "network"
|
|
2115
2115
|
};
|
|
2116
2116
|
} finally {
|
|
@@ -2139,9 +2139,9 @@ async function en(t$1, o$1) {
|
|
|
2139
2139
|
if (n$1) return t$5(n$1);
|
|
2140
2140
|
}
|
|
2141
2141
|
const s$2 = e$2() ?? "", c$2 = await t$5(s$2);
|
|
2142
|
-
if ((a$1 = c$2).ok || "client" !== a$1.kind || !
|
|
2142
|
+
if ((a$1 = c$2).ok || "client" !== a$1.kind || !gt.includes(a$1.status) || !1 === r$2?.refreshable) return c$2;
|
|
2143
2143
|
var a$1;
|
|
2144
|
-
const
|
|
2144
|
+
const u$2 = await (o$3 || (o$3 = async function() {
|
|
2145
2145
|
try {
|
|
2146
2146
|
return await i$2(), e$2();
|
|
2147
2147
|
} catch (t$6) {
|
|
@@ -2150,7 +2150,7 @@ async function en(t$1, o$1) {
|
|
|
2150
2150
|
}().finally(() => {
|
|
2151
2151
|
o$3 = null;
|
|
2152
2152
|
}), o$3));
|
|
2153
|
-
return
|
|
2153
|
+
return u$2 && u$2 !== s$2 ? t$5(u$2) : c$2;
|
|
2154
2154
|
} };
|
|
2155
2155
|
}(t$3), o$2 = () => ({ profileId: t$3.getProfileId() ?? void 0 });
|
|
2156
2156
|
return { api: {
|
|
@@ -2160,16 +2160,16 @@ async function en(t$1, o$1) {
|
|
|
2160
2160
|
...c$2,
|
|
2161
2161
|
activityId: t$3.getActivityId()
|
|
2162
2162
|
};
|
|
2163
|
-
let
|
|
2163
|
+
let u$2;
|
|
2164
2164
|
try {
|
|
2165
|
-
|
|
2165
|
+
u$2 = await async function(t$4, n$2) {
|
|
2166
2166
|
const e$2 = function(t$5, n$3) {
|
|
2167
2167
|
const e$3 = [JSON.stringify(t$5)];
|
|
2168
2168
|
for (let t$6 = 0; t$6 < n$3.length; t$6++) try {
|
|
2169
2169
|
e$3.push(JSON.stringify(n$3[t$6]));
|
|
2170
2170
|
} catch {}
|
|
2171
2171
|
return e$3.join("\n");
|
|
2172
|
-
}(t$4, n$2), i$3 = await
|
|
2172
|
+
}(t$4, n$2), i$3 = await jt(e$2);
|
|
2173
2173
|
return i$3 ? {
|
|
2174
2174
|
type: "gzip",
|
|
2175
2175
|
body: i$3
|
|
@@ -2180,16 +2180,16 @@ async function en(t$1, o$1) {
|
|
|
2180
2180
|
}(a$1, s$2);
|
|
2181
2181
|
} catch {
|
|
2182
2182
|
return {
|
|
2183
|
-
ok:
|
|
2183
|
+
ok: !1,
|
|
2184
2184
|
kind: "serialize"
|
|
2185
2185
|
};
|
|
2186
2186
|
}
|
|
2187
2187
|
return e$1.post("/events/capture", {
|
|
2188
|
-
body:
|
|
2188
|
+
body: u$2.body,
|
|
2189
2189
|
token: i$2,
|
|
2190
2190
|
keepalive: r$2,
|
|
2191
2191
|
contentType: "ndjson",
|
|
2192
|
-
contentEncoding: "gzip" ===
|
|
2192
|
+
contentEncoding: "gzip" === u$2.type ? "gzip" : void 0,
|
|
2193
2193
|
...o$2()
|
|
2194
2194
|
});
|
|
2195
2195
|
}, { refreshable: !r$2 });
|
|
@@ -2211,9 +2211,9 @@ async function en(t$1, o$1) {
|
|
|
2211
2211
|
stopActivity: async function() {
|
|
2212
2212
|
return i$1.withAuth((t$4) => e$1.post("/events/end-activity", {
|
|
2213
2213
|
token: t$4,
|
|
2214
|
-
keepalive:
|
|
2214
|
+
keepalive: !0,
|
|
2215
2215
|
...o$2()
|
|
2216
|
-
}), { refreshable:
|
|
2216
|
+
}), { refreshable: !1 });
|
|
2217
2217
|
},
|
|
2218
2218
|
collectionStatus: async function() {
|
|
2219
2219
|
return e$1.get("/sdk/collection-status", {
|
|
@@ -2237,22 +2237,22 @@ async function en(t$1, o$1) {
|
|
|
2237
2237
|
},
|
|
2238
2238
|
getSdkToken: () => s$1.token,
|
|
2239
2239
|
getProfileId: () => o$1.getProfileId(),
|
|
2240
|
-
getToken: () =>
|
|
2241
|
-
refresh: async () =>
|
|
2242
|
-
getActivityId: () =>
|
|
2240
|
+
getToken: () => u$1?.getToken() ?? null,
|
|
2241
|
+
refresh: async () => u$1?.refresh() ?? Promise.resolve(),
|
|
2242
|
+
getActivityId: () => u$1?.getActivityId() ?? ""
|
|
2243
2243
|
});
|
|
2244
2244
|
const t$2 = await c$1.api.collectionStatus();
|
|
2245
|
-
if (!t$2.ok ||
|
|
2246
|
-
|
|
2245
|
+
if (!t$2.ok || !0 !== t$2.data.eventsCollectionEnabled) return { status: "collection-disabled" };
|
|
2246
|
+
u$1 = new bt({
|
|
2247
2247
|
startActivity: () => c$1.api.startActivity(),
|
|
2248
2248
|
stopActivity: () => c$1.api.stopActivity()
|
|
2249
|
-
}), h$1 = new
|
|
2249
|
+
}), h$1 = new Ct(st, {
|
|
2250
2250
|
ingest: (t$3, n$1) => c$1.api.ingest(t$3, n$1),
|
|
2251
2251
|
getTabId: () => f$1?.getTabId() ?? "unknown",
|
|
2252
|
-
isActivityActive: () =>
|
|
2252
|
+
isActivityActive: () => u$1?.isActive() ?? !1
|
|
2253
2253
|
});
|
|
2254
2254
|
const p$1 = r$1.tab;
|
|
2255
|
-
f$1 = new
|
|
2255
|
+
f$1 = new Lt({
|
|
2256
2256
|
push: (t$3) => h$1?.push(t$3),
|
|
2257
2257
|
events: {
|
|
2258
2258
|
state: p$1.enabled && p$1.events.state.enabled,
|
|
@@ -2277,12 +2277,12 @@ async function en(t$1, o$1) {
|
|
|
2277
2277
|
};
|
|
2278
2278
|
}({
|
|
2279
2279
|
flush: () => h$1?.flush("lifecycle"),
|
|
2280
|
-
stopActivity: async () =>
|
|
2280
|
+
stopActivity: async () => u$1?.stop(),
|
|
2281
2281
|
stopTab: () => f$1?.stop(),
|
|
2282
2282
|
getShouldSkipStopActivity: () => (f$1?.queryTabsNumber() ?? 0) > 1,
|
|
2283
2283
|
onConnectionChange: () => h$1?.onConnectionChange()
|
|
2284
2284
|
}), w$1 = function(t$3) {
|
|
2285
|
-
const n$1 = t$3 || "redact", e$1 = new
|
|
2285
|
+
const n$1 = t$3 || "redact", e$1 = new sn(6), i$1 = new sn(6);
|
|
2286
2286
|
return { resolve: function(t$4) {
|
|
2287
2287
|
if (!t$4 || k(t$4) || "off" === n$1) return null;
|
|
2288
2288
|
let o$2 = e$1.get(t$4);
|
|
@@ -2306,8 +2306,8 @@ async function en(t$1, o$1) {
|
|
|
2306
2306
|
};
|
|
2307
2307
|
T(e$2) && (i$2 = n$2.length), n$2.push(e$2);
|
|
2308
2308
|
const t$6 = e$2.parentNode;
|
|
2309
|
-
if (!t$6 ||
|
|
2310
|
-
e$2 =
|
|
2309
|
+
if (!t$6 || b(e$2, "body")) break;
|
|
2310
|
+
e$2 = g(t$6) ? t$6.host : t$6;
|
|
2311
2311
|
}
|
|
2312
2312
|
return {
|
|
2313
2313
|
chain: n$2,
|
|
@@ -2320,39 +2320,39 @@ async function en(t$1, o$1) {
|
|
|
2320
2320
|
const r$2 = "redact" === o$2.redaction.level || "redact" === n$1 || T(t$4);
|
|
2321
2321
|
let s$2 = i$1.get(t$4);
|
|
2322
2322
|
return s$2 || (s$2 = function(t$5, n$2, e$2, i$2) {
|
|
2323
|
-
const o$3 = getComputedStyle(t$5), r$3 =
|
|
2323
|
+
const o$3 = getComputedStyle(t$5), r$3 = rn(t$5), s$3 = function(t$6, n$3) {
|
|
2324
2324
|
const e$3 = [], i$3 = [];
|
|
2325
2325
|
for (let o$4 = t$6.length - 1; o$4 >= 0; o$4--) {
|
|
2326
|
-
const r$4 = t$6[o$4], s$4 = o$4 <= n$3, c$3 = o$4 + 1, a$2 =
|
|
2327
|
-
if (e$3.push(a$2), !
|
|
2328
|
-
const d$1 =
|
|
2326
|
+
const r$4 = t$6[o$4], s$4 = o$4 <= n$3, c$3 = o$4 + 1, a$2 = Yt(r$4, s$4, rn(r$4)), { score: u$3, reasons: l$1 } = Jt(r$4, c$3);
|
|
2327
|
+
if (e$3.push(a$2), !Gt(u$3)) continue;
|
|
2328
|
+
const d$1 = Wt(r$4, s$4);
|
|
2329
2329
|
i$3.push({
|
|
2330
2330
|
...a$2,
|
|
2331
2331
|
...d$1 ? { label: d$1 } : {},
|
|
2332
2332
|
depth: c$3,
|
|
2333
|
-
score:
|
|
2334
|
-
reasons:
|
|
2333
|
+
score: u$3,
|
|
2334
|
+
reasons: l$1
|
|
2335
2335
|
});
|
|
2336
2336
|
}
|
|
2337
2337
|
return {
|
|
2338
2338
|
ancestors: e$3,
|
|
2339
2339
|
interactiveCandidates: i$3.reverse()
|
|
2340
2340
|
};
|
|
2341
|
-
}(n$2, i$2), c$2 =
|
|
2342
|
-
const { score: i$3, reasons: o$4 } =
|
|
2341
|
+
}(n$2, i$2), c$2 = Yt(t$5, e$2, r$3), a$1 = function(t$6, n$3, e$3) {
|
|
2342
|
+
const { score: i$3, reasons: o$4 } = Jt(t$6, 0);
|
|
2343
2343
|
return {
|
|
2344
|
-
interactive:
|
|
2344
|
+
interactive: Gt(i$3),
|
|
2345
2345
|
...o$4.length > 0 ? { reasons: o$4 } : {},
|
|
2346
|
-
disabled:
|
|
2346
|
+
disabled: Qt(t$6),
|
|
2347
2347
|
rendered: "none" !== n$3?.display,
|
|
2348
2348
|
visible: "hidden" !== n$3?.visibility,
|
|
2349
|
-
inViewport:
|
|
2349
|
+
inViewport: Zt(e$3),
|
|
2350
2350
|
acceptsPointer: "none" !== n$3?.pointerEvents,
|
|
2351
2351
|
opacity: parseFloat(n$3?.opacity || "1")
|
|
2352
2352
|
};
|
|
2353
2353
|
}(t$5, o$3, r$3);
|
|
2354
|
-
let
|
|
2355
|
-
return e$2 || (
|
|
2354
|
+
let u$2 = null;
|
|
2355
|
+
return e$2 || (u$2 = a$1.interactive ? Wt(t$5) : null), {
|
|
2356
2356
|
tagName: c$2.tagName,
|
|
2357
2357
|
frame: c$2.frame,
|
|
2358
2358
|
viewport: {
|
|
@@ -2364,7 +2364,7 @@ async function en(t$1, o$1) {
|
|
|
2364
2364
|
},
|
|
2365
2365
|
attributes: c$2.attributes,
|
|
2366
2366
|
nth: c$2.nth,
|
|
2367
|
-
...
|
|
2367
|
+
...u$2 ? { label: u$2 } : {},
|
|
2368
2368
|
ancestors: s$3.ancestors,
|
|
2369
2369
|
interactiveCandidates: s$3.interactiveCandidates,
|
|
2370
2370
|
interactivity: a$1
|
|
@@ -2381,7 +2381,7 @@ async function en(t$1, o$1) {
|
|
|
2381
2381
|
if (i$1.has(o$3)) return;
|
|
2382
2382
|
const r$2 = Q[o$3];
|
|
2383
2383
|
if (!r$2 || !function(t$4, n$2) {
|
|
2384
|
-
return n$2[t$4]?.enabled ??
|
|
2384
|
+
return n$2[t$4]?.enabled ?? !1;
|
|
2385
2385
|
}(o$3, n$1)) return;
|
|
2386
2386
|
const s$2 = n$1[o$3], c$2 = r$2.create(t$3, e$1, s$2 && "events" in s$2 ? s$2.events : void 0);
|
|
2387
2387
|
i$1.set(o$3, c$2);
|
|
@@ -2408,15 +2408,15 @@ async function en(t$1, o$1) {
|
|
|
2408
2408
|
resolveElement: (t$3) => w$1.resolve(t$3),
|
|
2409
2409
|
sanitizeUrl: s$1.sanitizeUrl,
|
|
2410
2410
|
ignoredOrigins: y$1
|
|
2411
|
-
}, r$1, s$1.capture?.content), _$1 = new
|
|
2412
|
-
getActivityId: () =>
|
|
2411
|
+
}, r$1, s$1.capture?.content), _$1 = new Ft({
|
|
2412
|
+
getActivityId: () => u$1?.getActivityId() ?? "",
|
|
2413
2413
|
reportEvent: (t$3) => c$1.api.reportEvent(t$3)
|
|
2414
2414
|
});
|
|
2415
2415
|
return {
|
|
2416
2416
|
status: "ready",
|
|
2417
2417
|
managers: {
|
|
2418
2418
|
falconServiceManager: c$1,
|
|
2419
|
-
activityManager:
|
|
2419
|
+
activityManager: u$1,
|
|
2420
2420
|
transportManager: h$1,
|
|
2421
2421
|
tabManager: f$1,
|
|
2422
2422
|
lifecycleManager: m$1,
|
|
@@ -2428,15 +2428,15 @@ async function en(t$1, o$1) {
|
|
|
2428
2428
|
return n.warn("IncodeTRI", "setup() failed during construction:", t$2), { status: "init-failed" };
|
|
2429
2429
|
}
|
|
2430
2430
|
}
|
|
2431
|
-
let
|
|
2431
|
+
let an = class t$1 {
|
|
2432
2432
|
constructor() {
|
|
2433
|
-
this.Tt = 0, this.
|
|
2433
|
+
this.Tt = 0, this._t = null, this.xt = et;
|
|
2434
2434
|
}
|
|
2435
2435
|
static get instance() {
|
|
2436
2436
|
return t$1.i || (t$1.i = new t$1()), t$1.i;
|
|
2437
2437
|
}
|
|
2438
2438
|
async setup(t$2) {
|
|
2439
|
-
if (
|
|
2439
|
+
if (this.xt !== et) return n.fatal("error", "setup()", `cannot set up from state '${this.xt}' — call reset() (or reload) first. Ignoring.`), rt;
|
|
2440
2440
|
try {
|
|
2441
2441
|
const e$1 = function(t$3) {
|
|
2442
2442
|
if ("undefined" == typeof document) return n.fatal("error", "IncodeTRI", "TRI is not available in a non-browser environment."), null;
|
|
@@ -2448,7 +2448,6 @@ let on = class t$1 {
|
|
|
2448
2448
|
element: e$2 ?? "redact",
|
|
2449
2449
|
content: i$2 ?? "off"
|
|
2450
2450
|
},
|
|
2451
|
-
profileId: t$3.profileId,
|
|
2452
2451
|
api: {
|
|
2453
2452
|
version: t$3.apiVersion ?? "1.0",
|
|
2454
2453
|
url: t$3.apiURL
|
|
@@ -2456,73 +2455,52 @@ let on = class t$1 {
|
|
|
2456
2455
|
sanitizeUrl: (r$1 = t$3.sanitizeUrl, r$1 ? function(t$4) {
|
|
2457
2456
|
return s(() => r$1(t$4, nt)) ?? nt(t$4);
|
|
2458
2457
|
} : nt),
|
|
2459
|
-
DEBUG: t$3.DEBUG ??
|
|
2458
|
+
DEBUG: t$3.DEBUG ?? !1
|
|
2460
2459
|
};
|
|
2461
2460
|
var r$1;
|
|
2462
2461
|
return void 0 === t$3.collectors && void 0 === t$3.layers ? {
|
|
2463
2462
|
sdk: o$1,
|
|
2464
|
-
collectors:
|
|
2463
|
+
collectors: ct()
|
|
2465
2464
|
} : void 0 !== t$3.collectors ? {
|
|
2466
2465
|
sdk: o$1,
|
|
2467
|
-
collectors:
|
|
2466
|
+
collectors: ut(t$3.collectors)
|
|
2468
2467
|
} : {
|
|
2469
2468
|
sdk: o$1,
|
|
2470
|
-
collectors:
|
|
2469
|
+
collectors: at(t$3.layers)
|
|
2471
2470
|
};
|
|
2472
2471
|
}(t$2);
|
|
2473
|
-
if (!e$1) return
|
|
2472
|
+
if (!e$1) return this.xt = rt, rt;
|
|
2474
2473
|
n.DEBUG = e$1.sdk.DEBUG;
|
|
2475
|
-
const i$1 = await
|
|
2476
|
-
return "collection-disabled" === i$1.status ? (n.fatal("warn", "setup()", "Collection is disabled for the provided API Key."),
|
|
2474
|
+
const i$1 = await cn(e$1, { getProfileId: () => null });
|
|
2475
|
+
return "collection-disabled" === i$1.status ? (n.fatal("warn", "setup()", "Collection is disabled for the provided API Key."), this.xt = ot, ot) : "init-failed" === i$1.status ? (this.xt = rt, rt) : (this._t = i$1.managers, this.xt = it, it);
|
|
2477
2476
|
} catch (t$3) {
|
|
2478
|
-
return n.warn("setup()", "failed:", t$3),
|
|
2477
|
+
return n.warn("setup()", "failed:", t$3), this.xt = rt, rt;
|
|
2479
2478
|
}
|
|
2480
2479
|
}
|
|
2481
2480
|
async start() {
|
|
2482
|
-
if (
|
|
2483
|
-
if (
|
|
2484
|
-
this.
|
|
2481
|
+
if (this.xt === et) return n.warn("start()", "start() requires a prior successful setup() — ignoring."), this.xt;
|
|
2482
|
+
if (this.xt !== it) return n.fatal("warn", "start()", "TRI is either already started or isn't ready — ignoring."), this.xt;
|
|
2483
|
+
this.xt = "starting";
|
|
2485
2484
|
const t$2 = ++this.Tt;
|
|
2486
|
-
return await this.v(t$2), this.
|
|
2485
|
+
return await this.v(t$2), this.xt;
|
|
2487
2486
|
}
|
|
2488
2487
|
async stop() {
|
|
2489
2488
|
n.warn("stop()", "called");
|
|
2490
2489
|
const t$2 = this._t;
|
|
2491
|
-
return t$2 ? (++this.Tt, t$2.lifecycleManager.stop(), t$2.collectorManager.stop(), t$2.tabManager.stop(), t$2.eventReportManager.stop(), this.
|
|
2490
|
+
return t$2 ? (++this.Tt, t$2.lifecycleManager.stop(), t$2.collectorManager.stop(), t$2.tabManager.stop(), t$2.eventReportManager.stop(), this.xt = it, this.St(t$2)) : Promise.resolve(this.xt);
|
|
2492
2491
|
}
|
|
2493
2492
|
async reset() {
|
|
2494
2493
|
const t$2 = this.stop();
|
|
2495
|
-
return this.
|
|
2494
|
+
return this.xt = et, this._t = null, t$2.then(() => this.xt);
|
|
2496
2495
|
}
|
|
2497
|
-
async
|
|
2496
|
+
async St(t$2) {
|
|
2498
2497
|
return await function(t$3) {
|
|
2499
2498
|
let n$1 = null;
|
|
2500
2499
|
const e$1 = new Promise((t$4) => {
|
|
2501
|
-
n$1 =
|
|
2500
|
+
n$1 = l(t$4, 2e3);
|
|
2502
2501
|
});
|
|
2503
2502
|
return Promise.race([t$3.finally(() => d(n$1)), e$1]);
|
|
2504
|
-
}(Promise.resolve(t$2.transportManager.stop())), await t$2.activityManager.stop(), this.
|
|
2505
|
-
}
|
|
2506
|
-
reportEvent(t$2, e$1) {
|
|
2507
|
-
"started" === this.It ? this._t ? c(() => this._t.eventReportManager.report(t$2, e$1)) : n.warn("reportEvent()", "reportEvent() called but managers are unavailable — dropping event.") : n.warn("reportEvent()", "reportEvent() called before start() completed — dropping event.");
|
|
2508
|
-
}
|
|
2509
|
-
setProfileId(t$2) {
|
|
2510
|
-
"started" === this.It ? this.M?.sdk && (this.M.sdk.profileId = t$2, this.xt(t$2)) : n.warn("setProfileId()", "setProfileId() called before start() completed — ignoring.");
|
|
2511
|
-
}
|
|
2512
|
-
async linkInterview(t$2) {
|
|
2513
|
-
if ("started" !== this.It || !this._t) return n.warn("linkInterview()", "linkInterview() called before start() completed — ignoring."), 0;
|
|
2514
|
-
if (!t$2) return n.warn("linkInterview()", "linkInterview() called without sessionToken — ignoring."), 0;
|
|
2515
|
-
try {
|
|
2516
|
-
return (await this._t.falconServiceManager.api.linkInterview(t$2)).ok;
|
|
2517
|
-
} catch (t$3) {
|
|
2518
|
-
return n.warn("linkInterview()", "failed:", t$3), 0;
|
|
2519
|
-
}
|
|
2520
|
-
}
|
|
2521
|
-
St() {
|
|
2522
|
-
return this.M?.sdk?.profileId ?? O.get("__tri_profile_id") ?? null;
|
|
2523
|
-
}
|
|
2524
|
-
xt(t$2) {
|
|
2525
|
-
t$2 && O.set("__tri_profile_id", t$2);
|
|
2503
|
+
}(Promise.resolve(t$2.transportManager.stop())), await t$2.activityManager.stop(), this.xt;
|
|
2526
2504
|
}
|
|
2527
2505
|
async v(t$2) {
|
|
2528
2506
|
const e$1 = this._t;
|
|
@@ -2532,24 +2510,24 @@ let on = class t$1 {
|
|
|
2532
2510
|
if (e$1.transportManager.start(), await e$1.tabManager.start(), t$2 !== this.Tt) return;
|
|
2533
2511
|
e$1.lifecycleManager.start(), e$1.collectorManager.autocapture();
|
|
2534
2512
|
} catch (e$2) {
|
|
2535
|
-
n.warn("start()", "failed during monitoring start:", e$2), t$2 === this.Tt && (this.
|
|
2513
|
+
n.warn("start()", "failed during monitoring start:", e$2), t$2 === this.Tt && (this.xt = it);
|
|
2536
2514
|
return;
|
|
2537
2515
|
}
|
|
2538
|
-
t$2 === this.Tt && (this.
|
|
2516
|
+
t$2 === this.Tt && (this.xt = "started");
|
|
2539
2517
|
}
|
|
2540
2518
|
}
|
|
2541
2519
|
};
|
|
2542
|
-
async function
|
|
2520
|
+
async function un(t$1, n$1) {
|
|
2543
2521
|
const e$1 = n$1?.apiURL ?? "https://falcon-ingest-k8s.stage.incodetest.com", i$1 = n$1?.timeout ?? 1e4, o$1 = new AbortController();
|
|
2544
|
-
let r$1 = null, s$1 =
|
|
2545
|
-
i$1 && (r$1 =
|
|
2546
|
-
s$1 =
|
|
2522
|
+
let r$1 = null, s$1 = !1, c$1 = () => {};
|
|
2523
|
+
i$1 && (r$1 = l(() => {
|
|
2524
|
+
s$1 = !0, o$1.abort();
|
|
2547
2525
|
}, i$1));
|
|
2548
2526
|
const a$1 = n$1?.signal;
|
|
2549
2527
|
if (a$1) if (a$1.aborted) o$1.abort();
|
|
2550
2528
|
else {
|
|
2551
2529
|
const t$2 = () => o$1.abort();
|
|
2552
|
-
a$1.addEventListener("abort", t$2, { once:
|
|
2530
|
+
a$1.addEventListener("abort", t$2, { once: !0 }), c$1 = () => a$1.removeEventListener("abort", t$2);
|
|
2553
2531
|
}
|
|
2554
2532
|
try {
|
|
2555
2533
|
const n$2 = await fetch(`${e$1}/api/v1/sdk/init`, {
|
|
@@ -2569,22 +2547,31 @@ async function rn(t$1, n$1) {
|
|
|
2569
2547
|
} catch {}
|
|
2570
2548
|
return {
|
|
2571
2549
|
token: null,
|
|
2572
|
-
|
|
2550
|
+
expiresAt: null,
|
|
2551
|
+
tokenType: null,
|
|
2552
|
+
eventsCollectionEnabled: !1,
|
|
2573
2553
|
error: {
|
|
2574
2554
|
status: n$2.status,
|
|
2575
2555
|
message: t$2
|
|
2576
2556
|
}
|
|
2577
2557
|
};
|
|
2578
2558
|
}
|
|
2579
|
-
|
|
2559
|
+
const i$2 = await n$2.json();
|
|
2560
|
+
return {
|
|
2561
|
+
token: i$2.token,
|
|
2562
|
+
expiresAt: i$2.expiresAt,
|
|
2563
|
+
tokenType: i$2.tokenType,
|
|
2564
|
+
eventsCollectionEnabled: !0,
|
|
2565
|
+
error: null
|
|
2566
|
+
};
|
|
2580
2567
|
} catch (t$2) {
|
|
2581
2568
|
throw new Error((s$1 ? "[TRI] createSession timed out" : "[TRI] Failed to create session:") + " " + t$2.message);
|
|
2582
2569
|
} finally {
|
|
2583
2570
|
d(r$1), c$1();
|
|
2584
2571
|
}
|
|
2585
2572
|
}
|
|
2586
|
-
|
|
2587
|
-
const
|
|
2573
|
+
an.i = null;
|
|
2574
|
+
const ln = an.instance;
|
|
2588
2575
|
|
|
2589
2576
|
//#endregion
|
|
2590
|
-
export {
|
|
2577
|
+
export { un as createSession, ln as default };
|