@konnectio/core 4.11.1 → 4.11.3
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/{ActionField-CD7A8umF.js → ActionField-dg0RS8gf.js} +16 -17
- package/dist/ActionField-dg0RS8gf.js.br +0 -0
- package/dist/ActionField-dg0RS8gf.js.gz +0 -0
- package/dist/{AvailabilitySkeleton-D_EldM2s.js → AvailabilitySkeleton-uoeeP_5d.js} +2374 -2900
- package/dist/AvailabilitySkeleton-uoeeP_5d.js.br +0 -0
- package/dist/AvailabilitySkeleton-uoeeP_5d.js.gz +0 -0
- package/dist/{CheckoutWindow-BYvzbPyY.js → CheckoutWindow-DXRVoh-J.js} +579 -655
- package/dist/CheckoutWindow-DXRVoh-J.js.br +0 -0
- package/dist/CheckoutWindow-DXRVoh-J.js.gz +0 -0
- package/dist/{ErrorMessage-GCkS8yEW.js → ErrorMessage-OQ4r9QGR.js} +12 -14
- package/dist/ErrorMessage-OQ4r9QGR.js.br +0 -0
- package/dist/ErrorMessage-OQ4r9QGR.js.gz +0 -0
- package/dist/{EventAvailabilityForm-f-BUsWJ-.js → EventAvailabilityForm-B4pOCkcm.js} +29 -30
- package/dist/EventAvailabilityForm-B4pOCkcm.js.br +0 -0
- package/dist/EventAvailabilityForm-B4pOCkcm.js.gz +0 -0
- package/dist/{Field-TMCJPa0F.js → Field-DpRx5gtJ.js} +6 -7
- package/dist/Field-DpRx5gtJ.js.br +0 -0
- package/dist/Field-DpRx5gtJ.js.gz +0 -0
- package/dist/HotelAvailabilityForm-BSM-KcqG.js +312 -0
- package/dist/HotelAvailabilityForm-BSM-KcqG.js.br +0 -0
- package/dist/HotelAvailabilityForm-BSM-KcqG.js.gz +0 -0
- package/dist/{SelectField-DSkOZgE4.js → SelectField-CEEffgaQ.js} +3462 -2858
- package/dist/SelectField-CEEffgaQ.js.br +0 -0
- package/dist/SelectField-CEEffgaQ.js.gz +0 -0
- package/dist/{TermsOfService-D9W3pXOi.js → TermsOfService-C4YZ5zhE.js} +5 -6
- package/dist/TermsOfService-C4YZ5zhE.js.br +0 -0
- package/dist/TermsOfService-C4YZ5zhE.js.gz +0 -0
- package/dist/_-DM-h5BQz.js +24 -0
- package/dist/_-DM-h5BQz.js.br +0 -0
- package/dist/_-DM-h5BQz.js.gz +0 -0
- package/dist/availability.js +24 -25
- package/dist/availability.js.br +0 -0
- package/dist/availability.js.gz +0 -0
- package/dist/cancel-reservation.js +57 -62
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/cancel-reservation.js.gz +0 -0
- package/dist/core.css +1 -1
- package/dist/core.css.br +0 -0
- package/dist/core.css.gz +0 -0
- package/dist/deep-link.js +15 -16
- package/dist/deep-link.js.br +0 -0
- package/dist/deep-link.js.gz +0 -0
- package/dist/{dist-Vu9z8BNS.js → dist-BQy2-bMP.js} +168 -139
- package/dist/dist-BQy2-bMP.js.br +0 -0
- package/dist/dist-BQy2-bMP.js.gz +0 -0
- package/dist/{dist-YUX9nmGu.js → dist-Q9kXoafy.js} +705 -756
- package/dist/dist-Q9kXoafy.js.br +0 -0
- package/dist/dist-Q9kXoafy.js.gz +0 -0
- package/dist/event.js +334 -344
- package/dist/event.js.br +0 -0
- package/dist/event.js.gz +0 -0
- package/dist/gift-card-validation.js +42 -43
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card-validation.js.gz +0 -0
- package/dist/gift-card.js +157 -161
- package/dist/gift-card.js.br +0 -0
- package/dist/gift-card.js.gz +0 -0
- package/dist/{giftCard-DwGwHq7_.js → giftCard-DO4ELDIx.js} +14 -15
- package/dist/giftCard-DO4ELDIx.js.br +0 -0
- package/dist/giftCard-DO4ELDIx.js.gz +0 -0
- package/dist/hotel.js +983 -1145
- package/dist/hotel.js.br +0 -0
- package/dist/hotel.js.gz +0 -0
- package/dist/{i18n-BU9Enb5i.js → i18n-Dq3VKG7w.js} +4004 -3647
- package/dist/i18n-Dq3VKG7w.js.br +0 -0
- package/dist/i18n-Dq3VKG7w.js.gz +0 -0
- package/dist/polyfill.js +905 -818
- package/dist/polyfill.js.br +0 -0
- package/dist/polyfill.js.gz +0 -0
- package/dist/{rolldown-runtime-B0aSnxlc.js → rolldown-runtime-QGRDbDUS.js} +2 -3
- package/dist/rolldown-runtime-QGRDbDUS.js.br +0 -0
- package/dist/rolldown-runtime-QGRDbDUS.js.gz +0 -0
- package/dist/style-xK2dve9W.js +1284 -0
- package/dist/style-xK2dve9W.js.br +0 -0
- package/dist/style-xK2dve9W.js.gz +0 -0
- package/dist-wix/availability.js +42 -34
- package/dist-wix/event.js +54 -46
- package/dist-wix/gift-card-validation.js +39 -31
- package/dist-wix/gift-card.js +43 -35
- package/dist-wix/hotel.js +54 -46
- package/package.json +32 -32
- package/dist/ActionField-CD7A8umF.js.br +0 -0
- package/dist/ActionField-CD7A8umF.js.gz +0 -0
- package/dist/AvailabilitySkeleton-D_EldM2s.js.br +0 -0
- package/dist/AvailabilitySkeleton-D_EldM2s.js.gz +0 -0
- package/dist/CheckoutWindow-BYvzbPyY.js.br +0 -0
- package/dist/CheckoutWindow-BYvzbPyY.js.gz +0 -0
- package/dist/ErrorMessage-GCkS8yEW.js.br +0 -0
- package/dist/ErrorMessage-GCkS8yEW.js.gz +0 -0
- package/dist/EventAvailabilityForm-f-BUsWJ-.js.br +0 -0
- package/dist/EventAvailabilityForm-f-BUsWJ-.js.gz +0 -0
- package/dist/Field-TMCJPa0F.js.br +0 -0
- package/dist/Field-TMCJPa0F.js.gz +0 -0
- package/dist/HotelAvailabilityForm-BjaKmdM9.js +0 -322
- package/dist/HotelAvailabilityForm-BjaKmdM9.js.br +0 -0
- package/dist/HotelAvailabilityForm-BjaKmdM9.js.gz +0 -0
- package/dist/SelectField-DSkOZgE4.js.br +0 -0
- package/dist/SelectField-DSkOZgE4.js.gz +0 -0
- package/dist/TermsOfService-D9W3pXOi.js.br +0 -0
- package/dist/TermsOfService-D9W3pXOi.js.gz +0 -0
- package/dist/_-DY1GJjiW.js +0 -25
- package/dist/_-DY1GJjiW.js.br +0 -0
- package/dist/_-DY1GJjiW.js.gz +0 -0
- package/dist/dist-Vu9z8BNS.js.br +0 -0
- package/dist/dist-Vu9z8BNS.js.gz +0 -0
- package/dist/dist-YUX9nmGu.js.br +0 -0
- package/dist/dist-YUX9nmGu.js.gz +0 -0
- package/dist/giftCard-DwGwHq7_.js.br +0 -0
- package/dist/giftCard-DwGwHq7_.js.gz +0 -0
- package/dist/i18n-BU9Enb5i.js.br +0 -0
- package/dist/i18n-BU9Enb5i.js.gz +0 -0
- package/dist/rolldown-runtime-B0aSnxlc.js.br +0 -0
- package/dist/rolldown-runtime-B0aSnxlc.js.gz +0 -5
- package/dist/style-E-j_0DIE.js +0 -1711
- package/dist/style-E-j_0DIE.js.br +0 -0
- package/dist/style-E-j_0DIE.js.gz +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as e, t } from "./rolldown-runtime-
|
|
2
|
-
import { B as n, Z as r,
|
|
3
|
-
|
|
4
|
-
var s =
|
|
1
|
+
import { r as e, t } from "./rolldown-runtime-QGRDbDUS.js";
|
|
2
|
+
import { B as n, Z as r, ft as i, xt as a, z as o } from "./i18n-Dq3VKG7w.js";
|
|
3
|
+
// node_modules/@flareapp/core/dist/urlAttributes-CaF6sZNP.mjs
|
|
4
|
+
var s = "2.13.0", c = "5pqzBljrmDvquWZYSrSUKldIUREtPyB3", l = "\"4.11.3\"";
|
|
5
5
|
function u(e, t, n) {
|
|
6
6
|
return n && !e && console.error(`Flare JavaScript client v${s}: ${t}`), !!e;
|
|
7
7
|
}
|
|
@@ -43,23 +43,28 @@ function ne(e) {
|
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
+
function p(e, t, n) {
|
|
47
|
+
if (e.has(t) || e.size < n) return;
|
|
48
|
+
let r = e.keys().next().value;
|
|
49
|
+
r !== void 0 && e.delete(r);
|
|
50
|
+
}
|
|
46
51
|
var re = 64;
|
|
47
|
-
function
|
|
52
|
+
function m(e) {
|
|
48
53
|
let t = e.code;
|
|
49
54
|
if (typeof t == "string" && t.length !== 0) return t.slice(0, re);
|
|
50
55
|
}
|
|
51
|
-
var
|
|
52
|
-
function
|
|
56
|
+
var h = 5e4;
|
|
57
|
+
function g(e = h) {
|
|
53
58
|
return { remaining: e };
|
|
54
59
|
}
|
|
55
|
-
function
|
|
60
|
+
function ie(e) {
|
|
56
61
|
return e.remaining <= 0 ? !1 : (e.remaining--, !0);
|
|
57
62
|
}
|
|
58
63
|
var ae = "[truncated: too large]";
|
|
59
64
|
function oe(e, t) {
|
|
60
|
-
let n = /* @__PURE__ */ new WeakSet(), r =
|
|
65
|
+
let n = /* @__PURE__ */ new WeakSet(), r = g(), i = t.mode === "display" ? t.maxDepth : 24;
|
|
61
66
|
function a(e, o) {
|
|
62
|
-
if (!
|
|
67
|
+
if (!ie(r)) return ae;
|
|
63
68
|
if (e === null) return null;
|
|
64
69
|
let s = typeof e;
|
|
65
70
|
if (s === "bigint") return e.toString();
|
|
@@ -78,16 +83,11 @@ function oe(e, t) {
|
|
|
78
83
|
if (o > i) return t.mode === "display" ? "[Object]" : ae;
|
|
79
84
|
n.add(e);
|
|
80
85
|
let c = {}, l = Object.keys(e), u = t.mode === "display" ? t.objectKeyCap : Infinity, d = l.length > u ? l.slice(0, u) : l;
|
|
81
|
-
for (let n of d)
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
try {
|
|
87
|
-
c[n] = a(e[n], o + 1);
|
|
88
|
-
} catch {
|
|
89
|
-
c[n] = "[Getter threw]";
|
|
90
|
-
}
|
|
86
|
+
for (let n of d) if (t.mode === "display" && t.denylist.test(n)) c[n] = "[redacted]";
|
|
87
|
+
else try {
|
|
88
|
+
c[n] = a(e[n], o + 1);
|
|
89
|
+
} catch {
|
|
90
|
+
c[n] = "[Getter threw]";
|
|
91
91
|
}
|
|
92
92
|
return l.length > u && (c["…"] = `[${l.length - u} more keys]`), n.delete(e), c;
|
|
93
93
|
}
|
|
@@ -101,7 +101,7 @@ function ce(e) {
|
|
|
101
101
|
let t = Object.getPrototypeOf(e);
|
|
102
102
|
return t === Object.prototype || t === null;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function _(e) {
|
|
105
105
|
return JSON.stringify(oe(e, { mode: "json" }));
|
|
106
106
|
}
|
|
107
107
|
function le(e) {
|
|
@@ -125,8 +125,8 @@ function de(e, t) {
|
|
|
125
125
|
function fe() {
|
|
126
126
|
return Math.round(Date.now() / 1e3);
|
|
127
127
|
}
|
|
128
|
-
var
|
|
129
|
-
function pe(e, t = !1, n =
|
|
128
|
+
var v = /password|passwd|pwd|token|secret|authorization|\bauth\b|bearer|oauth|credentials?|cookie|api[-_]?key|private[-_]?key|session|csrf|xsrf|\bpin\b|\bssn\b|card[-_]?number|\bcvv\b/i;
|
|
129
|
+
function pe(e, t = !1, n = v) {
|
|
130
130
|
if (!e) return n;
|
|
131
131
|
if (t) {
|
|
132
132
|
let t = e.flags.replace(/[gy]/g, "");
|
|
@@ -140,35 +140,35 @@ function me(e, t) {
|
|
|
140
140
|
for (let r of e + t) r !== "g" && r !== "y" && n.add(r);
|
|
141
141
|
return [...n].join("");
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
let n =
|
|
143
|
+
function he(e, t = v) {
|
|
144
|
+
let n = _e(e), r = n.indexOf("?");
|
|
145
145
|
if (r === -1) return n;
|
|
146
146
|
let i = n.indexOf("#", r), a = i === -1 ? n.length : i, o = n.slice(0, r + 1), s = n.slice(r + 1, a), c = n.slice(a);
|
|
147
147
|
return `${o}${s.split("&").map((e) => {
|
|
148
148
|
if (e === "") return e;
|
|
149
|
-
let n = e.indexOf("="), r = n === -1 ? e : e.slice(0, n), i =
|
|
149
|
+
let n = e.indexOf("="), r = n === -1 ? e : e.slice(0, n), i = ve(r);
|
|
150
150
|
return t.test(i) ? n === -1 ? r : `${r}=[redacted]` : e;
|
|
151
151
|
}).join("&")}${c}`;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function ge(e, t = v) {
|
|
154
154
|
let n = Object.create(null);
|
|
155
155
|
for (let r of Object.keys(e)) n[r] = t.test(r) ? "[redacted]" : e[r];
|
|
156
156
|
return n;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function _e(e) {
|
|
159
159
|
let t = /^[a-z][a-z0-9+.-]*:\/\//i.exec(e);
|
|
160
160
|
if (!t) return e;
|
|
161
161
|
let n = t[0].length, r = e.slice(n), i = /[/?#]/.exec(r), a = i ? n + i.index : e.length, o = e.slice(n, a), s = o.lastIndexOf("@");
|
|
162
162
|
return s === -1 ? e : e.slice(0, n) + o.slice(s + 1) + e.slice(a);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function ve(e) {
|
|
165
165
|
try {
|
|
166
166
|
return decodeURIComponent(e);
|
|
167
167
|
} catch {
|
|
168
168
|
return e;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function ye(e) {
|
|
172
172
|
if (typeof e == "string") return e;
|
|
173
173
|
if (e && typeof e == "object") {
|
|
174
174
|
let t = e.message;
|
|
@@ -181,33 +181,28 @@ function ve(e) {
|
|
|
181
181
|
}
|
|
182
182
|
return String(e);
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function be(e) {
|
|
185
185
|
return !!e && typeof e == "object" && typeof e.stack == "string";
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
if (t instanceof Error)
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}
|
|
192
|
-
if (ye(t)) {
|
|
193
|
-
let n = Error(ve(t));
|
|
187
|
+
function xe(e, t) {
|
|
188
|
+
if (t instanceof Error) e.reportSilently(t);
|
|
189
|
+
else if (be(t)) {
|
|
190
|
+
let n = Error(ye(t));
|
|
194
191
|
n.stack = t.stack, e.reportSilently(n);
|
|
195
|
-
|
|
196
|
-
}
|
|
197
|
-
Promise.resolve(e.reportUnhandledRejection(ve(t))).catch(() => {});
|
|
192
|
+
} else Promise.resolve(e.reportUnhandledRejection(ye(t))).catch(() => {});
|
|
198
193
|
}
|
|
199
194
|
function y(e, t, n) {
|
|
200
195
|
n != null && (e[t] = n);
|
|
201
196
|
}
|
|
202
|
-
function
|
|
197
|
+
function Se(e, t) {
|
|
203
198
|
return { "context.custom": { [e]: t } };
|
|
204
199
|
}
|
|
205
|
-
var
|
|
206
|
-
function
|
|
207
|
-
return e.length <= 2048 ? e : `${e.slice(0,
|
|
200
|
+
var Ce = 2048;
|
|
201
|
+
function we(e) {
|
|
202
|
+
return e.length <= 2048 ? e : `${e.slice(0, Ce)}…[truncated]`;
|
|
208
203
|
}
|
|
209
|
-
function
|
|
210
|
-
let n =
|
|
204
|
+
function Te(e, t = v) {
|
|
205
|
+
let n = we(he(e, t)), r = { "url.full": n }, i;
|
|
211
206
|
try {
|
|
212
207
|
i = new URL(n);
|
|
213
208
|
} catch {
|
|
@@ -215,13 +210,12 @@ function we(e, t = _) {
|
|
|
215
210
|
}
|
|
216
211
|
return r["url.scheme"] = i.protocol.slice(0, -1), r["url.path"] = i.pathname, i.search && (r["url.query"] = i.search.slice(1)), r;
|
|
217
212
|
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
var Te = /* @__PURE__ */ t(((e, t) => {
|
|
213
|
+
// node_modules/stackframe/stackframe.js
|
|
214
|
+
var Ee = /* @__PURE__ */ t(((e, t, n) => {
|
|
221
215
|
(function(n, r) {
|
|
222
216
|
/* istanbul ignore next */
|
|
223
217
|
typeof define == "function" && define.amd ? define("stackframe", [], r) : typeof e == "object" ? t.exports = r() : n.StackFrame = r();
|
|
224
|
-
})(
|
|
218
|
+
})(n, function() {
|
|
225
219
|
function e(e) {
|
|
226
220
|
return !isNaN(parseFloat(e)) && isFinite(e);
|
|
227
221
|
}
|
|
@@ -295,11 +289,11 @@ var Te = /* @__PURE__ */ t(((e, t) => {
|
|
|
295
289
|
})(a[u]);
|
|
296
290
|
return s;
|
|
297
291
|
});
|
|
298
|
-
})),
|
|
292
|
+
})), De = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t, n) => {
|
|
299
293
|
(function(n, r) {
|
|
300
294
|
/* istanbul ignore next */
|
|
301
|
-
typeof define == "function" && define.amd ? define("error-stack-parser", ["stackframe"], r) : typeof e == "object" ? t.exports = r(
|
|
302
|
-
})(
|
|
295
|
+
typeof define == "function" && define.amd ? define("error-stack-parser", ["stackframe"], r) : typeof e == "object" ? t.exports = r(Ee()) : n.ErrorStackParser = r(n.StackFrame);
|
|
296
|
+
})(n, function(e) {
|
|
303
297
|
var t = /(^|@)\S+:\d+/, n = /^\s*at .*(\S+:\d+|\(native\))/m, r = /^(eval@)?(\[native code])?$/;
|
|
304
298
|
return {
|
|
305
299
|
parse: function(e) {
|
|
@@ -392,7 +386,7 @@ var Te = /* @__PURE__ */ t(((e, t) => {
|
|
|
392
386
|
}
|
|
393
387
|
};
|
|
394
388
|
});
|
|
395
|
-
})))(), 1),
|
|
389
|
+
})))(), 1), Oe = {
|
|
396
390
|
Js: "js",
|
|
397
391
|
Node: "node",
|
|
398
392
|
NodeElectron: "node-electron",
|
|
@@ -408,7 +402,7 @@ var Te = /* @__PURE__ */ t(((e, t) => {
|
|
|
408
402
|
Xhr: "browser_xhr",
|
|
409
403
|
Component: "browser_component",
|
|
410
404
|
WebVital: "browser_web_vital"
|
|
411
|
-
},
|
|
405
|
+
}, ke = {
|
|
412
406
|
Click: "browser_click",
|
|
413
407
|
Input: "browser_input",
|
|
414
408
|
RouteChange: "browser_route_change"
|
|
@@ -416,15 +410,15 @@ var Te = /* @__PURE__ */ t(((e, t) => {
|
|
|
416
410
|
Unset: 0,
|
|
417
411
|
Ok: 1,
|
|
418
412
|
Error: 2
|
|
419
|
-
},
|
|
413
|
+
}, Ae = new TextEncoder();
|
|
420
414
|
function S(e) {
|
|
421
|
-
return
|
|
415
|
+
return Ae.encode(e).length;
|
|
422
416
|
}
|
|
423
|
-
var
|
|
417
|
+
var je = 6e4, Me = 15, Ne = class {
|
|
424
418
|
pendingKeepaliveBytes = 0;
|
|
425
419
|
pendingKeepaliveRequests = 0;
|
|
426
420
|
keepaliveBudgetRemaining() {
|
|
427
|
-
return this.pendingKeepaliveRequests >=
|
|
421
|
+
return this.pendingKeepaliveRequests >= Me ? 0 : Math.max(0, je - this.pendingKeepaliveBytes);
|
|
428
422
|
}
|
|
429
423
|
report(e, t, n, r, i = !1) {
|
|
430
424
|
return this.send({
|
|
@@ -436,7 +430,7 @@ var Ae = 6e4, je = 15, Me = class {
|
|
|
436
430
|
"X-Report-Browser-Extension-Errors": JSON.stringify(r),
|
|
437
431
|
"X-Flare-Client-Version": "2"
|
|
438
432
|
},
|
|
439
|
-
body:
|
|
433
|
+
body: _(e),
|
|
440
434
|
label: "Flare",
|
|
441
435
|
debug: i,
|
|
442
436
|
keepalive: !1
|
|
@@ -446,7 +440,7 @@ var Ae = 6e4, je = 15, Me = class {
|
|
|
446
440
|
return this.send({
|
|
447
441
|
url: t,
|
|
448
442
|
headers: this.ingestHeaders(n),
|
|
449
|
-
body:
|
|
443
|
+
body: _(e),
|
|
450
444
|
label: "Flare logs",
|
|
451
445
|
debug: r,
|
|
452
446
|
keepalive: i
|
|
@@ -457,7 +451,7 @@ var Ae = 6e4, je = 15, Me = class {
|
|
|
457
451
|
try {
|
|
458
452
|
a = JSON.stringify(e);
|
|
459
453
|
} catch {
|
|
460
|
-
a =
|
|
454
|
+
a = _(e);
|
|
461
455
|
}
|
|
462
456
|
return this.send({
|
|
463
457
|
url: t,
|
|
@@ -476,7 +470,7 @@ var Ae = 6e4, je = 15, Me = class {
|
|
|
476
470
|
};
|
|
477
471
|
}
|
|
478
472
|
send(e) {
|
|
479
|
-
let { url: t, headers: n, body: r, label: i, debug: a, keepalive: o } = e, s = o ? S(r) : 0, c = o && this.pendingKeepaliveRequests <
|
|
473
|
+
let { url: t, headers: n, body: r, label: i, debug: a, keepalive: o } = e, s = o ? S(r) : 0, c = o && this.pendingKeepaliveRequests < Me && this.pendingKeepaliveBytes + s <= je;
|
|
480
474
|
return c && (this.pendingKeepaliveBytes += s, this.pendingKeepaliveRequests += 1), fetch(t, {
|
|
481
475
|
method: "POST",
|
|
482
476
|
keepalive: c,
|
|
@@ -491,11 +485,11 @@ var Ae = 6e4, je = 15, Me = class {
|
|
|
491
485
|
});
|
|
492
486
|
}
|
|
493
487
|
};
|
|
494
|
-
function
|
|
495
|
-
let n =
|
|
488
|
+
function Pe(e, t) {
|
|
489
|
+
let n = he(e, t);
|
|
496
490
|
return n.length > 256 ? n.slice(0, 256) : n;
|
|
497
491
|
}
|
|
498
|
-
function
|
|
492
|
+
function Fe(e, t, n, r, i) {
|
|
499
493
|
t.enableBreadcrumbs && e.active().addBreadcrumb({
|
|
500
494
|
type: n,
|
|
501
495
|
startTimeUnixNano: i,
|
|
@@ -503,7 +497,7 @@ function Pe(e, t, n, r, i) {
|
|
|
503
497
|
attributes: r
|
|
504
498
|
}, t.maxBreadcrumbs);
|
|
505
499
|
}
|
|
506
|
-
var
|
|
500
|
+
var Ie = class {
|
|
507
501
|
entries = [];
|
|
508
502
|
bufferedBytes = 0;
|
|
509
503
|
timer;
|
|
@@ -518,23 +512,15 @@ var Fe = class {
|
|
|
518
512
|
let t = this.deps.getConfig();
|
|
519
513
|
if (t.hasConsent === !1) return;
|
|
520
514
|
let n = this.policy.limits(t), r = this.policy.estimateBytes(e);
|
|
521
|
-
|
|
522
|
-
t.debug && console.error(this.policy.oversizedMessage);
|
|
523
|
-
return;
|
|
524
|
-
}
|
|
525
|
-
this.entries.push({
|
|
515
|
+
r > n.maxBytes ? t.debug && console.error(this.policy.oversizedMessage) : (this.entries.push({
|
|
526
516
|
record: e,
|
|
527
517
|
bytes: r
|
|
528
|
-
}), this.bufferedBytes += r, this.policy.onRecordBuffered?.(e), this.evaluateTriggers(t, n), this.trim(n);
|
|
518
|
+
}), this.bufferedBytes += r, this.policy.onRecordBuffered?.(e), this.evaluateTriggers(t, n), this.trim(n));
|
|
529
519
|
}
|
|
530
520
|
flush(e) {
|
|
531
521
|
let t = this.deps.getConfig();
|
|
532
522
|
if (!this.policy.enabled(t) || this.entries.length === 0) return;
|
|
533
|
-
if (t.hasConsent === !1) {
|
|
534
|
-
this.clearTimer();
|
|
535
|
-
return;
|
|
536
|
-
}
|
|
537
|
-
if (!d(t.key, t.debug)) {
|
|
523
|
+
if (t.hasConsent === !1 || !d(t.key, t.debug)) {
|
|
538
524
|
this.clearTimer();
|
|
539
525
|
return;
|
|
540
526
|
}
|
|
@@ -550,15 +536,7 @@ var Fe = class {
|
|
|
550
536
|
this.entries = [], this.bufferedBytes = 0, this.clearTimer();
|
|
551
537
|
}
|
|
552
538
|
evaluateTriggers(e, t) {
|
|
553
|
-
|
|
554
|
-
this.flush();
|
|
555
|
-
return;
|
|
556
|
-
}
|
|
557
|
-
if (this.bufferedBytes >= t.maxBytes) {
|
|
558
|
-
this.flush();
|
|
559
|
-
return;
|
|
560
|
-
}
|
|
561
|
-
this.armTimer(t);
|
|
539
|
+
this.entries.length >= t.maxSize || this.bufferedBytes >= t.maxBytes ? this.flush() : this.armTimer(t);
|
|
562
540
|
}
|
|
563
541
|
armTimer(e) {
|
|
564
542
|
this.timerActive || (this.timerActive = !0, this.timer = setTimeout(() => {
|
|
@@ -588,7 +566,7 @@ var Fe = class {
|
|
|
588
566
|
this.timer &&= (clearTimeout(this.timer), void 0), this.timerActive = !1;
|
|
589
567
|
}
|
|
590
568
|
};
|
|
591
|
-
function
|
|
569
|
+
function Le(e, t, n, r) {
|
|
592
570
|
let i = {
|
|
593
571
|
"telemetry.sdk.language": "javascript",
|
|
594
572
|
"telemetry.sdk.name": n.name,
|
|
@@ -600,11 +578,11 @@ function Ie(e, t, n, r) {
|
|
|
600
578
|
...i
|
|
601
579
|
};
|
|
602
580
|
}
|
|
603
|
-
function
|
|
604
|
-
return
|
|
581
|
+
function Re(e, t = /* @__PURE__ */ new WeakSet(), n = g()) {
|
|
582
|
+
return ze(e, t, 0, n);
|
|
605
583
|
}
|
|
606
|
-
function
|
|
607
|
-
if (!
|
|
584
|
+
function ze(e, t, n, r) {
|
|
585
|
+
if (!ie(r)) return { stringValue: ae };
|
|
608
586
|
if (typeof e == "string") return { stringValue: e };
|
|
609
587
|
if (typeof e == "boolean") return { boolValue: e };
|
|
610
588
|
if (typeof e == "number") return Number.isFinite(e) ? Number.isInteger(e) ? { intValue: e } : { doubleValue: e } : null;
|
|
@@ -615,7 +593,7 @@ function Re(e, t, n, r) {
|
|
|
615
593
|
t.add(e);
|
|
616
594
|
let i = [];
|
|
617
595
|
for (let a of e) {
|
|
618
|
-
let e =
|
|
596
|
+
let e = ze(a, t, n + 1, r);
|
|
619
597
|
e !== null && i.push(e);
|
|
620
598
|
}
|
|
621
599
|
return t.delete(e), { arrayValue: { values: i } };
|
|
@@ -625,7 +603,7 @@ function Re(e, t, n, r) {
|
|
|
625
603
|
t.add(e);
|
|
626
604
|
let i = [];
|
|
627
605
|
for (let [a, o] of Object.entries(e)) {
|
|
628
|
-
let e =
|
|
606
|
+
let e = ze(o, t, n + 1, r);
|
|
629
607
|
e !== null && i.push({
|
|
630
608
|
key: a,
|
|
631
609
|
value: e
|
|
@@ -635,10 +613,10 @@ function Re(e, t, n, r) {
|
|
|
635
613
|
}
|
|
636
614
|
return null;
|
|
637
615
|
}
|
|
638
|
-
function
|
|
639
|
-
let t =
|
|
616
|
+
function C(e) {
|
|
617
|
+
let t = g(), n = [];
|
|
640
618
|
for (let [r, i] of Object.entries(e)) {
|
|
641
|
-
let e =
|
|
619
|
+
let e = Re(i, /* @__PURE__ */ new WeakSet(), t);
|
|
642
620
|
e !== null && n.push({
|
|
643
621
|
key: r,
|
|
644
622
|
value: e
|
|
@@ -661,7 +639,7 @@ function Be(e) {
|
|
|
661
639
|
function Ve(e, t, n, r) {
|
|
662
640
|
return { resourceLogs: [{
|
|
663
641
|
resource: {
|
|
664
|
-
attributes:
|
|
642
|
+
attributes: C(t),
|
|
665
643
|
droppedAttributesCount: 0
|
|
666
644
|
},
|
|
667
645
|
scopeLogs: [{
|
|
@@ -676,10 +654,10 @@ function Ve(e, t, n, r) {
|
|
|
676
654
|
}] };
|
|
677
655
|
}
|
|
678
656
|
function He(e) {
|
|
679
|
-
return S(
|
|
657
|
+
return S(_(Be(e)));
|
|
680
658
|
}
|
|
681
659
|
function Ue(e, t, n) {
|
|
682
|
-
return S(
|
|
660
|
+
return S(_(Ve([], e, t, n)));
|
|
683
661
|
}
|
|
684
662
|
var We = {
|
|
685
663
|
debug: 5,
|
|
@@ -704,7 +682,7 @@ var Je = class {
|
|
|
704
682
|
inner;
|
|
705
683
|
resourceAttributes = {};
|
|
706
684
|
constructor(e) {
|
|
707
|
-
this.deps = e, this.inner = new
|
|
685
|
+
this.deps = e, this.inner = new Ie({
|
|
708
686
|
getConfig: e.getConfig,
|
|
709
687
|
scheduler: e.scheduler
|
|
710
688
|
}, {
|
|
@@ -782,15 +760,15 @@ var Je = class {
|
|
|
782
760
|
severityNumber: Ge(e),
|
|
783
761
|
severityText: Ke(e),
|
|
784
762
|
message: t,
|
|
785
|
-
recordAttributes:
|
|
763
|
+
recordAttributes: C(o),
|
|
786
764
|
resourceAttributes: s
|
|
787
765
|
});
|
|
788
766
|
}
|
|
789
767
|
resourceForFlush() {
|
|
790
|
-
return
|
|
768
|
+
return Le(this.resourceAttributes, this.deps.getConfig(), this.deps.getSdkInfo(), this.deps.getFramework());
|
|
791
769
|
}
|
|
792
770
|
estimateBytes(e) {
|
|
793
|
-
return
|
|
771
|
+
return _(e).length;
|
|
794
772
|
}
|
|
795
773
|
}, Ye = class {
|
|
796
774
|
register() {}
|
|
@@ -813,12 +791,12 @@ function Qe(e) {
|
|
|
813
791
|
record: n
|
|
814
792
|
};
|
|
815
793
|
}
|
|
816
|
-
var
|
|
794
|
+
var w = {
|
|
817
795
|
id: "user.id",
|
|
818
796
|
email: "user.email",
|
|
819
797
|
fullName: "user.full_name",
|
|
820
798
|
ipAddress: "client.address"
|
|
821
|
-
}, $e = [...Object.values(
|
|
799
|
+
}, $e = [...Object.values(w), "user.attributes"], et = class {
|
|
822
800
|
glows = [];
|
|
823
801
|
breadcrumbs = [];
|
|
824
802
|
pendingAttributes = {};
|
|
@@ -878,9 +856,7 @@ function at(e, t, n, r = 1e3, i = 40) {
|
|
|
878
856
|
continue;
|
|
879
857
|
}
|
|
880
858
|
a[l] = u.slice(0, r) + "…";
|
|
881
|
-
|
|
882
|
-
}
|
|
883
|
-
a[l] = u;
|
|
859
|
+
} else a[l] = u;
|
|
884
860
|
}
|
|
885
861
|
return {
|
|
886
862
|
codeSnippet: a,
|
|
@@ -892,7 +868,7 @@ function ot(e, t, n) {
|
|
|
892
868
|
if (!ut(e)) return r([lt("stacktrace missing")]);
|
|
893
869
|
let i;
|
|
894
870
|
try {
|
|
895
|
-
i =
|
|
871
|
+
i = De.default.parse(e);
|
|
896
872
|
} catch (n) {
|
|
897
873
|
return u(!1, "Couldn't parse stacktrace of below error:", t), t && (console.error(n), console.error(e)), r([lt("stacktrace could not be parsed")]);
|
|
898
874
|
}
|
|
@@ -1015,13 +991,7 @@ var vt = class {
|
|
|
1015
991
|
if (this.ended) return this;
|
|
1016
992
|
if (this.events.length >= this.deps.maxEventsPerSpan) return this.droppedEventsCount++, this;
|
|
1017
993
|
let n = {}, r = 0;
|
|
1018
|
-
for (let [e, i] of Object.entries(t))
|
|
1019
|
-
if (Object.keys(n).length >= this.deps.maxAttributesPerSpanEvent) {
|
|
1020
|
-
r++;
|
|
1021
|
-
continue;
|
|
1022
|
-
}
|
|
1023
|
-
n[e] = i;
|
|
1024
|
-
}
|
|
994
|
+
for (let [e, i] of Object.entries(t)) Object.keys(n).length >= this.deps.maxAttributesPerSpanEvent ? r++ : n[e] = i;
|
|
1025
995
|
return this.events.push({
|
|
1026
996
|
name: e,
|
|
1027
997
|
timeUnixNano: this.deps.now(),
|
|
@@ -1057,7 +1027,7 @@ function yt(e) {
|
|
|
1057
1027
|
function bt(e, t, n, r) {
|
|
1058
1028
|
return { resourceSpans: [{
|
|
1059
1029
|
resource: {
|
|
1060
|
-
attributes:
|
|
1030
|
+
attributes: C(t),
|
|
1061
1031
|
droppedAttributesCount: 0
|
|
1062
1032
|
},
|
|
1063
1033
|
scopeSpans: [{
|
|
@@ -1072,7 +1042,7 @@ function bt(e, t, n, r) {
|
|
|
1072
1042
|
}] };
|
|
1073
1043
|
}
|
|
1074
1044
|
function xt(e) {
|
|
1075
|
-
return S(
|
|
1045
|
+
return S(_(yt(e)));
|
|
1076
1046
|
}
|
|
1077
1047
|
function St(e, t, n) {
|
|
1078
1048
|
return S(JSON.stringify(bt([], e, t, n)));
|
|
@@ -1080,7 +1050,7 @@ function St(e, t, n) {
|
|
|
1080
1050
|
var Ct = class {
|
|
1081
1051
|
inner;
|
|
1082
1052
|
constructor(e) {
|
|
1083
|
-
this.deps = e, this.inner = new
|
|
1053
|
+
this.deps = e, this.inner = new Ie({
|
|
1084
1054
|
getConfig: e.getConfig,
|
|
1085
1055
|
scheduler: e.scheduler
|
|
1086
1056
|
}, {
|
|
@@ -1123,7 +1093,7 @@ var Ct = class {
|
|
|
1123
1093
|
this.inner.clear();
|
|
1124
1094
|
}
|
|
1125
1095
|
resourceForFlush() {
|
|
1126
|
-
return
|
|
1096
|
+
return Le(this.deps.getResourceAttributes(), this.deps.getConfig(), this.deps.getSdkInfo(), this.deps.getFramework());
|
|
1127
1097
|
}
|
|
1128
1098
|
estimateBytes(e) {
|
|
1129
1099
|
return JSON.stringify(e).length;
|
|
@@ -1151,16 +1121,11 @@ function Mt(e) {
|
|
|
1151
1121
|
function Nt(e) {
|
|
1152
1122
|
return "epoch" in e && typeof e.epoch == "number";
|
|
1153
1123
|
}
|
|
1154
|
-
function
|
|
1124
|
+
function T() {
|
|
1155
1125
|
let e = globalThis.performance, t = e && typeof e.now == "function" && typeof e.timeOrigin == "number" ? e.timeOrigin + e.now() : Date.now();
|
|
1156
1126
|
return Math.round(t * 1e6);
|
|
1157
1127
|
}
|
|
1158
|
-
|
|
1159
|
-
if (e.has(t) || e.size < n) return;
|
|
1160
|
-
let r = e.keys().next().value;
|
|
1161
|
-
r !== void 0 && e.delete(r);
|
|
1162
|
-
}
|
|
1163
|
-
var Ft = 100, It = class {
|
|
1128
|
+
var Pt = 100, Ft = class {
|
|
1164
1129
|
buffer;
|
|
1165
1130
|
holder;
|
|
1166
1131
|
traceStates = /* @__PURE__ */ new Map();
|
|
@@ -1181,7 +1146,7 @@ var Ft = 100, It = class {
|
|
|
1181
1146
|
getResourceAttributes: e.getResourceAttributes,
|
|
1182
1147
|
track: e.track,
|
|
1183
1148
|
scheduler: e.scheduler
|
|
1184
|
-
}), this.holder = e.activeSpanHolder ?? new pt(), this.now = e.now ??
|
|
1149
|
+
}), this.holder = e.activeSpanHolder ?? new pt(), this.now = e.now ?? T, this.rng = e.rng ?? Math.random, this.maxLiveTraces = e.maxLiveTraces ?? 1e3;
|
|
1185
1150
|
}
|
|
1186
1151
|
getActiveSpan() {
|
|
1187
1152
|
return this.holder.getActive();
|
|
@@ -1313,7 +1278,7 @@ var Ft = 100, It = class {
|
|
|
1313
1278
|
return this.createState(e, t, n());
|
|
1314
1279
|
}
|
|
1315
1280
|
createState(e, t, n) {
|
|
1316
|
-
|
|
1281
|
+
p(this.traceStates, e, this.maxLiveTraces);
|
|
1317
1282
|
let r = {
|
|
1318
1283
|
traceId: e,
|
|
1319
1284
|
recording: n,
|
|
@@ -1343,7 +1308,7 @@ var Ft = 100, It = class {
|
|
|
1343
1308
|
return i;
|
|
1344
1309
|
}
|
|
1345
1310
|
rememberClosed(e) {
|
|
1346
|
-
|
|
1311
|
+
p(this.closedTraces, e.traceId, Pt), this.closedTraces.set(e.traceId, {
|
|
1347
1312
|
localRootSpanId: e.localRootSpanId,
|
|
1348
1313
|
recording: e.recording,
|
|
1349
1314
|
startedSpanCount: e.startedSpanCount
|
|
@@ -1364,13 +1329,13 @@ var Ft = 100, It = class {
|
|
|
1364
1329
|
startTimeUnixNano: e.startTimeUnixNano,
|
|
1365
1330
|
endTimeUnixNano: e.endTimeUnixNano,
|
|
1366
1331
|
status: e.status,
|
|
1367
|
-
recordAttributes:
|
|
1332
|
+
recordAttributes: C(t),
|
|
1368
1333
|
droppedAttributesCount: e.droppedAttributesCount,
|
|
1369
1334
|
droppedEventsCount: e.droppedEventsCount,
|
|
1370
1335
|
events: e.events.map((e) => ({
|
|
1371
1336
|
name: e.name,
|
|
1372
1337
|
timeUnixNano: e.timeUnixNano,
|
|
1373
|
-
attributes:
|
|
1338
|
+
attributes: C(e.attributes),
|
|
1374
1339
|
droppedAttributesCount: e.droppedAttributesCount
|
|
1375
1340
|
}))
|
|
1376
1341
|
};
|
|
@@ -1379,7 +1344,7 @@ var Ft = 100, It = class {
|
|
|
1379
1344
|
this.deps.getConfig().debug && console.error("Flare: failed to buffer span", e);
|
|
1380
1345
|
}
|
|
1381
1346
|
}
|
|
1382
|
-
},
|
|
1347
|
+
}, It = $e.filter((e) => e !== w.id), Lt = "@flareapp/core", Rt = class {
|
|
1383
1348
|
inflight = /* @__PURE__ */ new Set();
|
|
1384
1349
|
_logger;
|
|
1385
1350
|
_tracer;
|
|
@@ -1395,7 +1360,7 @@ var Ft = 100, It = class {
|
|
|
1395
1360
|
ingestUrl: "https://ingress.flareapp.io/v1/errors",
|
|
1396
1361
|
reportBrowserExtensionErrors: !1,
|
|
1397
1362
|
debug: !1,
|
|
1398
|
-
urlDenylist:
|
|
1363
|
+
urlDenylist: v,
|
|
1399
1364
|
replaceDefaultUrlDenylist: !1,
|
|
1400
1365
|
sampleRate: 1,
|
|
1401
1366
|
beforeEvaluate: (e) => e,
|
|
@@ -1418,11 +1383,11 @@ var Ft = 100, It = class {
|
|
|
1418
1383
|
maxAttributesPerSpanEvent: 128
|
|
1419
1384
|
};
|
|
1420
1385
|
sdkInfo = {
|
|
1421
|
-
name:
|
|
1386
|
+
name: Lt,
|
|
1422
1387
|
version: s
|
|
1423
1388
|
};
|
|
1424
1389
|
framework = null;
|
|
1425
|
-
constructor(e = new
|
|
1390
|
+
constructor(e = new Ne(), t = () => ({}), n = new ft(), r = new tt(), i = new Ye(), a = new pt()) {
|
|
1426
1391
|
this.api = e, this.contextCollector = t, this.fileReader = n, this.scopeProvider = r, this._logger = new Je({
|
|
1427
1392
|
api: this.api,
|
|
1428
1393
|
getConfig: () => this._config,
|
|
@@ -1431,7 +1396,7 @@ var Ft = 100, It = class {
|
|
|
1431
1396
|
buildLogAttributes: (e) => this.buildLogAttributes(e),
|
|
1432
1397
|
track: (e) => this.track(e),
|
|
1433
1398
|
scheduler: i
|
|
1434
|
-
}), this._tracer = new
|
|
1399
|
+
}), this._tracer = new Ft({
|
|
1435
1400
|
api: this.api,
|
|
1436
1401
|
getConfig: () => this._config,
|
|
1437
1402
|
getSdkInfo: () => this.sdkInfo,
|
|
@@ -1506,7 +1471,7 @@ var Ft = 100, It = class {
|
|
|
1506
1471
|
}, this._config.maxGlowsPerReport), this;
|
|
1507
1472
|
}
|
|
1508
1473
|
addBreadcrumb(e, t, n) {
|
|
1509
|
-
|
|
1474
|
+
Fe(this.scopeProvider, this._config, e, t, n);
|
|
1510
1475
|
}
|
|
1511
1476
|
clearGlows() {
|
|
1512
1477
|
return this.scopeProvider.active().clearGlows(), this;
|
|
@@ -1526,7 +1491,7 @@ var Ft = 100, It = class {
|
|
|
1526
1491
|
for (let e of $e) delete t.pendingAttributes[e];
|
|
1527
1492
|
if (!e) return this;
|
|
1528
1493
|
let { id: n, email: r, fullName: i, ipAddress: a, ...o } = e;
|
|
1529
|
-
n != null && t.setAttribute(
|
|
1494
|
+
n != null && t.setAttribute(w.id, String(n)), r !== void 0 && t.setAttribute(w.email, r), i !== void 0 && t.setAttribute(w.fullName, i), a !== void 0 && t.setAttribute(w.ipAddress, a);
|
|
1530
1495
|
let s = Object.fromEntries(Object.entries(o).filter(([, e]) => e !== void 0));
|
|
1531
1496
|
return Object.keys(s).length > 0 && t.setAttribute("user.attributes", s), this;
|
|
1532
1497
|
}
|
|
@@ -1603,7 +1568,7 @@ var Ft = 100, It = class {
|
|
|
1603
1568
|
isLog: !1,
|
|
1604
1569
|
level: void 0,
|
|
1605
1570
|
extraAttributes: t,
|
|
1606
|
-
code:
|
|
1571
|
+
code: m(e),
|
|
1607
1572
|
seenAtUnixNano: n
|
|
1608
1573
|
});
|
|
1609
1574
|
}
|
|
@@ -1643,7 +1608,7 @@ var Ft = 100, It = class {
|
|
|
1643
1608
|
}
|
|
1644
1609
|
getScopeAttributes() {
|
|
1645
1610
|
let e = { ...this.assembleAttributes({}, {}, !1) };
|
|
1646
|
-
for (let t of
|
|
1611
|
+
for (let t of It) delete e[t];
|
|
1647
1612
|
return e;
|
|
1648
1613
|
}
|
|
1649
1614
|
spanResourceAttributes() {
|
|
@@ -1666,116 +1631,126 @@ var Ft = 100, It = class {
|
|
|
1666
1631
|
if (t) return this.api.report(t, this._config.ingestUrl, this._config.key, this._config.reportBrowserExtensionErrors, this._config.debug);
|
|
1667
1632
|
}
|
|
1668
1633
|
};
|
|
1669
|
-
function
|
|
1634
|
+
function zt(e) {
|
|
1670
1635
|
let t = {};
|
|
1671
1636
|
y(t, "os.name", e.os?.name), y(t, "os.version", e.os?.version), y(t, "process.runtime.name", e.runtime?.name), y(t, "process.runtime.version", e.runtime?.version), y(t, "device.type", e.device?.type), y(t, "device.model.name", e.device?.model), y(t, "device.memory_gb", e.device?.memoryGb), y(t, "device.cpu_cores", e.device?.cpuCores), y(t, "device.screen.width", e.device?.screen?.width), y(t, "device.screen.height", e.device?.screen?.height), y(t, "device.screen.scale", e.device?.screen?.scale), y(t, "network.effective_type", e.network?.effectiveType), y(t, "network.downlink_mbps", e.network?.downlinkMbps), y(t, "network.rtt_ms", e.network?.rttMs), y(t, "network.online", e.network?.online), y(t, "app.version", e.app?.version), y(t, "app.id", e.app?.id);
|
|
1672
|
-
let n =
|
|
1637
|
+
let n = Bt(e);
|
|
1673
1638
|
return Object.keys(n).length > 0 && (t["context.device"] = n), t;
|
|
1674
1639
|
}
|
|
1675
|
-
function
|
|
1676
|
-
if (!
|
|
1640
|
+
function Bt(e) {
|
|
1641
|
+
if (!Vt(e.device) && !Ht(e.network)) return {};
|
|
1677
1642
|
let t = {}, n = [e.os?.name, e.os?.version].filter((e) => e != null).join(" ");
|
|
1678
1643
|
n && (t.OS = n), y(t, "Model", e.device?.model), y(t, "Type", e.device?.type);
|
|
1679
1644
|
let r = e.device?.screen;
|
|
1680
1645
|
return r?.width != null && r?.height != null && (t.Screen = r.scale == null ? `${r.width} × ${r.height}` : `${r.width} × ${r.height} @ ${r.scale}x`), e.device?.memoryGb != null && (t.Memory = `${e.device.memoryGb} GB`), y(t, "CPU cores", e.device?.cpuCores), y(t, "Connection", e.network?.effectiveType), e.network?.downlinkMbps != null && (t.Downlink = `${e.network.downlinkMbps} Mbps`), e.network?.rttMs != null && (t.RTT = `${e.network.rttMs} ms`), y(t, "Online", e.network?.online), y(t, "App version", e.app?.version), y(t, "App ID", e.app?.id), y(t, "Language", e.locale?.language), y(t, "Timezone", e.locale?.timezone), t;
|
|
1681
1646
|
}
|
|
1682
|
-
function
|
|
1647
|
+
function Vt(e) {
|
|
1683
1648
|
return e != null && (e.type != null || e.model != null || e.memoryGb != null || e.cpuCores != null || e.screen?.width != null || e.screen?.height != null);
|
|
1684
1649
|
}
|
|
1685
|
-
function
|
|
1650
|
+
function Ht(e) {
|
|
1686
1651
|
return e != null && (e.effectiveType != null || e.downlinkMbps != null || e.rttMs != null || e.online != null);
|
|
1687
1652
|
}
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
function Wt(e, t) {
|
|
1653
|
+
// node_modules/@flareapp/js/dist/catchWindowErrors-BFAg08Kl.mjs
|
|
1654
|
+
function Ut(e, t) {
|
|
1691
1655
|
return document.addEventListener(e, t, !0), () => document.removeEventListener(e, t, !0);
|
|
1692
1656
|
}
|
|
1693
|
-
var
|
|
1694
|
-
function
|
|
1657
|
+
var Wt = "button, a, input, select, textarea, label, [role], [tabindex], [onclick]", Gt = 5;
|
|
1658
|
+
function Kt(e) {
|
|
1695
1659
|
let t = e;
|
|
1696
|
-
for (let e = 0; t && e <
|
|
1697
|
-
if (t.matches?.(
|
|
1660
|
+
for (let e = 0; t && e < Gt; e++) {
|
|
1661
|
+
if (t.matches?.(Wt)) return t;
|
|
1698
1662
|
t = t.parentElement;
|
|
1699
1663
|
}
|
|
1700
1664
|
return e;
|
|
1701
1665
|
}
|
|
1702
|
-
function
|
|
1666
|
+
function qt(e) {
|
|
1703
1667
|
let t = e.tagName.toLowerCase();
|
|
1704
1668
|
e.id && (t += `#${e.id}`);
|
|
1705
1669
|
for (let n of e.classList) t += `.${n}`;
|
|
1706
1670
|
return t;
|
|
1707
1671
|
}
|
|
1708
|
-
function
|
|
1672
|
+
function Jt(e) {
|
|
1709
1673
|
return e.getAttribute?.("data-testid") ?? void 0;
|
|
1710
1674
|
}
|
|
1711
|
-
function
|
|
1712
|
-
let t = { "browser.element.selector":
|
|
1675
|
+
function Yt(e) {
|
|
1676
|
+
let t = { "browser.element.selector": qt(e) }, n = Jt(e);
|
|
1713
1677
|
return n && (t["browser.element.test_id"] = n), t;
|
|
1714
1678
|
}
|
|
1715
|
-
var
|
|
1716
|
-
type =
|
|
1679
|
+
var Xt = class {
|
|
1680
|
+
type = ke.Click;
|
|
1717
1681
|
constructor(e) {
|
|
1718
1682
|
this.host = e, this.onClick = this.onClick.bind(this);
|
|
1719
1683
|
}
|
|
1720
1684
|
install() {
|
|
1721
|
-
return
|
|
1685
|
+
return Ut("click", this.onClick);
|
|
1722
1686
|
}
|
|
1723
1687
|
onClick(e) {
|
|
1724
1688
|
let t = e.target;
|
|
1725
|
-
t instanceof Element && this.host.record(this.type,
|
|
1689
|
+
t instanceof Element && this.host.record(this.type, Yt(Kt(t)), T());
|
|
1726
1690
|
}
|
|
1727
|
-
},
|
|
1728
|
-
type =
|
|
1691
|
+
}, Zt = class {
|
|
1692
|
+
type = ke.Input;
|
|
1729
1693
|
constructor(e) {
|
|
1730
1694
|
this.host = e, this.onChange = this.onChange.bind(this);
|
|
1731
1695
|
}
|
|
1732
1696
|
install() {
|
|
1733
|
-
return
|
|
1697
|
+
return Ut("change", this.onChange);
|
|
1734
1698
|
}
|
|
1735
1699
|
onChange(e) {
|
|
1736
1700
|
let t = e.target;
|
|
1737
|
-
t instanceof Element && this.host.record(this.type,
|
|
1701
|
+
t instanceof Element && this.host.record(this.type, Yt(t), T());
|
|
1738
1702
|
}
|
|
1739
1703
|
};
|
|
1740
|
-
function
|
|
1741
|
-
if (
|
|
1704
|
+
function Qt(e) {
|
|
1705
|
+
if (e != null && typeof window < "u") try {
|
|
1742
1706
|
return new URL(e, window.location.href);
|
|
1743
1707
|
} catch {
|
|
1744
1708
|
return;
|
|
1745
1709
|
}
|
|
1746
1710
|
}
|
|
1747
|
-
function
|
|
1748
|
-
return
|
|
1711
|
+
function $t(e) {
|
|
1712
|
+
return Qt(e)?.href;
|
|
1749
1713
|
}
|
|
1750
|
-
function
|
|
1714
|
+
function en() {
|
|
1751
1715
|
return typeof location < "u" ? location.pathname : "";
|
|
1752
1716
|
}
|
|
1753
|
-
function
|
|
1717
|
+
function tn() {
|
|
1754
1718
|
return typeof location < "u" ? location.href : "";
|
|
1755
1719
|
}
|
|
1756
|
-
function
|
|
1720
|
+
function nn(e, t, n, r = "") {
|
|
1757
1721
|
try {
|
|
1758
1722
|
let t = e();
|
|
1759
1723
|
if (t) return {
|
|
1760
|
-
name: t,
|
|
1724
|
+
name: an(r, t),
|
|
1761
1725
|
source: "route",
|
|
1762
1726
|
url: n
|
|
1763
1727
|
};
|
|
1764
1728
|
} catch {}
|
|
1765
1729
|
return {
|
|
1766
|
-
name: t,
|
|
1730
|
+
name: an(r, t),
|
|
1767
1731
|
source: "url",
|
|
1768
1732
|
url: n
|
|
1769
1733
|
};
|
|
1770
1734
|
}
|
|
1735
|
+
function rn(e) {
|
|
1736
|
+
if (!e) return "";
|
|
1737
|
+
let t = e.indexOf("#"), n = (t === -1 ? e : e.slice(0, t)).split("?")[0];
|
|
1738
|
+
return t === -1 ? on(n) : `${n}#${on(e.slice(t + 1))}`;
|
|
1739
|
+
}
|
|
1771
1740
|
function an(e, t) {
|
|
1741
|
+
return e ? t.startsWith("/") ? e + t : `${e}/${t}` : t;
|
|
1742
|
+
}
|
|
1743
|
+
function on(e) {
|
|
1744
|
+
return e.replace(/\/+$/, "");
|
|
1745
|
+
}
|
|
1746
|
+
function sn(e, t) {
|
|
1772
1747
|
let n = t;
|
|
1773
1748
|
try {
|
|
1774
1749
|
n = e() ?? t;
|
|
1775
1750
|
} catch {}
|
|
1776
|
-
return
|
|
1751
|
+
return $t(n);
|
|
1777
1752
|
}
|
|
1778
|
-
function
|
|
1753
|
+
function cn(e, t, n) {
|
|
1779
1754
|
let r = e[t];
|
|
1780
1755
|
if (typeof r != "function" || r.__flare_original__) return;
|
|
1781
1756
|
let i = n(r);
|
|
@@ -1786,125 +1761,125 @@ function on(e, t, n) {
|
|
|
1786
1761
|
writable: !0
|
|
1787
1762
|
}), e[t] = i;
|
|
1788
1763
|
}
|
|
1789
|
-
function
|
|
1764
|
+
function ln(e, t) {
|
|
1790
1765
|
let n = e[t];
|
|
1791
1766
|
n && n.__flare_original__ && (e[t] = n.__flare_original__);
|
|
1792
1767
|
}
|
|
1793
|
-
var
|
|
1794
|
-
function
|
|
1795
|
-
for (let t of
|
|
1768
|
+
var E = /* @__PURE__ */ new Set(), D = null, O = null, k = "", A = null;
|
|
1769
|
+
function j(e) {
|
|
1770
|
+
for (let t of E) try {
|
|
1796
1771
|
e(t);
|
|
1797
1772
|
} catch {}
|
|
1798
1773
|
}
|
|
1799
|
-
function
|
|
1800
|
-
if (!
|
|
1801
|
-
let e =
|
|
1802
|
-
e !==
|
|
1774
|
+
function un() {
|
|
1775
|
+
if (!A) return;
|
|
1776
|
+
let e = en();
|
|
1777
|
+
e !== k && (k = e, D || j((t) => t.onUrlChanged?.(e)));
|
|
1803
1778
|
}
|
|
1804
|
-
function
|
|
1805
|
-
if (
|
|
1806
|
-
|
|
1779
|
+
function dn() {
|
|
1780
|
+
if (A || typeof window > "u" || typeof history > "u" || typeof location > "u") return;
|
|
1781
|
+
k = en();
|
|
1807
1782
|
function e(e) {
|
|
1808
1783
|
return function(...t) {
|
|
1809
1784
|
let n = e.apply(this, t);
|
|
1810
|
-
return
|
|
1785
|
+
return un(), n;
|
|
1811
1786
|
};
|
|
1812
1787
|
}
|
|
1813
|
-
|
|
1814
|
-
|
|
1788
|
+
cn(history, "pushState", e), cn(history, "replaceState", e), window.addEventListener("popstate", un), A = () => {
|
|
1789
|
+
ln(history, "pushState"), ln(history, "replaceState"), window.removeEventListener("popstate", un);
|
|
1815
1790
|
};
|
|
1816
1791
|
}
|
|
1817
|
-
function
|
|
1818
|
-
if (
|
|
1819
|
-
e.onRouteName?.(
|
|
1792
|
+
function fn(e) {
|
|
1793
|
+
if (E.size === 0 && dn(), E.add(e), O) try {
|
|
1794
|
+
e.onRouteName?.(O.route, O.owner);
|
|
1820
1795
|
} catch {}
|
|
1821
1796
|
let t = !1;
|
|
1822
1797
|
return () => {
|
|
1823
|
-
t || (t = !0,
|
|
1798
|
+
t || (t = !0, E.delete(e), E.size === 0 && (A?.(), A = null, k = ""));
|
|
1824
1799
|
};
|
|
1825
1800
|
}
|
|
1826
|
-
function
|
|
1801
|
+
function pn() {
|
|
1827
1802
|
let e = {};
|
|
1828
|
-
|
|
1829
|
-
let t = () =>
|
|
1803
|
+
D && console.debug("Flare: navigation source replaced"), D = e;
|
|
1804
|
+
let t = () => D === e;
|
|
1830
1805
|
return {
|
|
1831
1806
|
startNavigation(e) {
|
|
1832
1807
|
if (!t()) return;
|
|
1833
|
-
let n = e?.path ??
|
|
1834
|
-
|
|
1808
|
+
let n = e?.path ?? en();
|
|
1809
|
+
k = n, j((t) => t.onNavigationStart?.({
|
|
1835
1810
|
path: n,
|
|
1836
1811
|
url: e?.url,
|
|
1837
1812
|
hold: e?.hold
|
|
1838
1813
|
}));
|
|
1839
1814
|
},
|
|
1840
1815
|
setActiveRouteName(n) {
|
|
1841
|
-
t() && (
|
|
1816
|
+
t() && (O = {
|
|
1842
1817
|
route: n,
|
|
1843
1818
|
owner: e
|
|
1844
|
-
},
|
|
1819
|
+
}, j((t) => t.onRouteName?.(n, e)));
|
|
1845
1820
|
},
|
|
1846
1821
|
settleNavigation(n) {
|
|
1847
|
-
t() && (
|
|
1822
|
+
t() && (O = {
|
|
1848
1823
|
route: n,
|
|
1849
1824
|
owner: e
|
|
1850
|
-
},
|
|
1825
|
+
}, j((t) => t.onNavigationSettle?.(n, e)));
|
|
1851
1826
|
},
|
|
1852
1827
|
unregister() {
|
|
1853
|
-
t() && (
|
|
1828
|
+
t() && (j((e) => e.onSourceUnregistered?.()), D = null, O = null, k = en());
|
|
1854
1829
|
}
|
|
1855
1830
|
};
|
|
1856
1831
|
}
|
|
1857
|
-
function
|
|
1858
|
-
return e !== null &&
|
|
1832
|
+
function mn(e) {
|
|
1833
|
+
return e !== null && D === e;
|
|
1859
1834
|
}
|
|
1860
|
-
var
|
|
1861
|
-
type =
|
|
1835
|
+
var hn = class {
|
|
1836
|
+
type = ke.RouteChange;
|
|
1862
1837
|
previousHref = "";
|
|
1863
1838
|
constructor(e) {
|
|
1864
1839
|
this.host = e, this.onUrlChanged = this.onUrlChanged.bind(this), this.onNavigationSettle = this.onNavigationSettle.bind(this);
|
|
1865
1840
|
}
|
|
1866
1841
|
install() {
|
|
1867
|
-
return this.record(
|
|
1842
|
+
return this.record(tn()), fn({
|
|
1868
1843
|
onUrlChanged: this.onUrlChanged,
|
|
1869
1844
|
onNavigationSettle: this.onNavigationSettle
|
|
1870
1845
|
});
|
|
1871
1846
|
}
|
|
1872
1847
|
onUrlChanged() {
|
|
1873
|
-
this.record(
|
|
1848
|
+
this.record(tn());
|
|
1874
1849
|
}
|
|
1875
1850
|
onNavigationSettle(e) {
|
|
1876
|
-
this.record(e.url ??
|
|
1851
|
+
this.record(e.url ?? tn(), e);
|
|
1877
1852
|
}
|
|
1878
1853
|
record(e, t) {
|
|
1879
1854
|
let n = { "browser.route.to": this.clean(e) };
|
|
1880
|
-
this.previousHref && (n["browser.route.from"] = this.clean(this.previousHref)), t?.source === "route" && (n["flare.entry_point.handler.identifier"] = t.name, n["flare.route.source"] = t.source), this.previousHref = e, this.host.record(this.type, n,
|
|
1855
|
+
this.previousHref && (n["browser.route.from"] = this.clean(this.previousHref)), t?.source === "route" && (n["flare.entry_point.handler.identifier"] = t.name, n["flare.route.source"] = t.source), this.previousHref = e, this.host.record(this.type, n, T());
|
|
1881
1856
|
}
|
|
1882
1857
|
clean(e) {
|
|
1883
|
-
return
|
|
1858
|
+
return Pe(e, this.host.config().urlDenylist);
|
|
1884
1859
|
}
|
|
1885
|
-
},
|
|
1886
|
-
function
|
|
1887
|
-
return
|
|
1888
|
-
|
|
1860
|
+
}, gn = /* @__PURE__ */ new Set(), M = null;
|
|
1861
|
+
function _n(e) {
|
|
1862
|
+
return gn.add(e), () => {
|
|
1863
|
+
gn.delete(e);
|
|
1889
1864
|
};
|
|
1890
1865
|
}
|
|
1891
|
-
function
|
|
1892
|
-
return
|
|
1893
|
-
|
|
1866
|
+
function vn(e) {
|
|
1867
|
+
return M !== null && console.warn("%c FLARE %c\n\nWhat: two things tried to add headers to outgoing requests. Only one can.\n\nWhy it matters: the first one stopped. Requests can now go out without a traceparent header, so Flare cannot link a browser request to its server trace.\n\nHow to fix: use one Flare instance, and check your bundle for two copies of @flareapp/js.", "background:#e11d48;color:#fff;font-weight:bold;font-size:14px;padding:2px 6px", "color:#e11d48;font-size:13px"), M = e, () => {
|
|
1868
|
+
M === e && (M = null);
|
|
1894
1869
|
};
|
|
1895
1870
|
}
|
|
1896
|
-
function
|
|
1897
|
-
return
|
|
1871
|
+
function yn() {
|
|
1872
|
+
return gn.size > 0 || M !== null;
|
|
1898
1873
|
}
|
|
1899
|
-
function
|
|
1874
|
+
function bn(e) {
|
|
1900
1875
|
let t = [];
|
|
1901
|
-
for (let n of
|
|
1876
|
+
for (let n of gn) try {
|
|
1902
1877
|
let r = n(e);
|
|
1903
1878
|
r && t.push(r);
|
|
1904
1879
|
} catch {}
|
|
1905
1880
|
let n = e.init, r;
|
|
1906
|
-
if (
|
|
1907
|
-
let i =
|
|
1881
|
+
if (M) try {
|
|
1882
|
+
let i = M(e);
|
|
1908
1883
|
i && (t.push(i), i.init !== void 0 && (n = i.init), r = i.headers);
|
|
1909
1884
|
} catch {}
|
|
1910
1885
|
return t.length === 0 && n === e.init && r === void 0 ? null : {
|
|
@@ -1917,30 +1892,30 @@ function vn(e) {
|
|
|
1917
1892
|
}
|
|
1918
1893
|
};
|
|
1919
1894
|
}
|
|
1920
|
-
var
|
|
1921
|
-
function
|
|
1895
|
+
var xn = "__flare_internal_request__";
|
|
1896
|
+
function Sn(e) {
|
|
1922
1897
|
return {
|
|
1923
1898
|
...e,
|
|
1924
|
-
[
|
|
1899
|
+
[xn]: !0
|
|
1925
1900
|
};
|
|
1926
1901
|
}
|
|
1927
|
-
function
|
|
1928
|
-
return e?.[
|
|
1902
|
+
function Cn(e) {
|
|
1903
|
+
return e?.[xn] === !0;
|
|
1929
1904
|
}
|
|
1930
|
-
function
|
|
1905
|
+
function wn(e) {
|
|
1931
1906
|
return typeof e == "function" && /native code/.test(Function.prototype.toString.call(e));
|
|
1932
1907
|
}
|
|
1933
|
-
function
|
|
1908
|
+
function Tn() {
|
|
1934
1909
|
let e = globalThis;
|
|
1935
1910
|
if (typeof e.fetch != "function") return !1;
|
|
1936
|
-
if (
|
|
1911
|
+
if (wn(e.fetch)) return !0;
|
|
1937
1912
|
let t = !1, n = e.document;
|
|
1938
1913
|
if (n && typeof n.createElement == "function") {
|
|
1939
1914
|
let e = null;
|
|
1940
1915
|
try {
|
|
1941
1916
|
e = n.createElement("iframe"), e.hidden = !0, n.head.appendChild(e);
|
|
1942
1917
|
let r = e.contentWindow;
|
|
1943
|
-
r && typeof r.fetch == "function" && (t =
|
|
1918
|
+
r && typeof r.fetch == "function" && (t = wn(r.fetch));
|
|
1944
1919
|
} catch {
|
|
1945
1920
|
t = !1;
|
|
1946
1921
|
} finally {
|
|
@@ -1951,7 +1926,7 @@ function Cn() {
|
|
|
1951
1926
|
}
|
|
1952
1927
|
return t;
|
|
1953
1928
|
}
|
|
1954
|
-
function
|
|
1929
|
+
function En() {
|
|
1955
1930
|
let e = !1, t = [];
|
|
1956
1931
|
return {
|
|
1957
1932
|
get installed() {
|
|
@@ -1961,7 +1936,7 @@ function wn() {
|
|
|
1961
1936
|
if (e) return;
|
|
1962
1937
|
function i(e) {
|
|
1963
1938
|
let t = r[e];
|
|
1964
|
-
t &&
|
|
1939
|
+
t && cn(n, e, t);
|
|
1965
1940
|
}
|
|
1966
1941
|
t = Object.keys(r);
|
|
1967
1942
|
for (let e of t) i(e);
|
|
@@ -1972,26 +1947,26 @@ function wn() {
|
|
|
1972
1947
|
let t = n[e];
|
|
1973
1948
|
return typeof t != "function" || !!t.__flare_original__;
|
|
1974
1949
|
})) {
|
|
1975
|
-
for (let e of t)
|
|
1950
|
+
for (let e of t) ln(n, e);
|
|
1976
1951
|
e = !1;
|
|
1977
1952
|
}
|
|
1978
1953
|
}
|
|
1979
1954
|
};
|
|
1980
1955
|
}
|
|
1981
|
-
function
|
|
1956
|
+
function Dn(e, t) {
|
|
1982
1957
|
let n, r = t?.method;
|
|
1983
1958
|
return typeof Request < "u" && e instanceof Request ? (n = e.url, r ??= e.method) : n = typeof e == "string" ? e : String(e), {
|
|
1984
1959
|
method: (r ?? "GET").toUpperCase(),
|
|
1985
1960
|
url: n
|
|
1986
1961
|
};
|
|
1987
1962
|
}
|
|
1988
|
-
function
|
|
1963
|
+
function On(e) {
|
|
1989
1964
|
return function(t, n) {
|
|
1990
1965
|
let r = (n) => e.call(this, t, n), i = null;
|
|
1991
1966
|
try {
|
|
1992
|
-
if (
|
|
1993
|
-
let e =
|
|
1994
|
-
i =
|
|
1967
|
+
if (yn() && !Cn(n)) {
|
|
1968
|
+
let e = Dn(t, n);
|
|
1969
|
+
i = bn({
|
|
1995
1970
|
kind: "fetch",
|
|
1996
1971
|
method: e.method,
|
|
1997
1972
|
url: e.url,
|
|
@@ -2012,35 +1987,35 @@ function En(e) {
|
|
|
2012
1987
|
return s.then((e) => (a({ status: e.status }), e), o);
|
|
2013
1988
|
};
|
|
2014
1989
|
}
|
|
2015
|
-
var
|
|
2016
|
-
function
|
|
2017
|
-
if (
|
|
1990
|
+
var kn = En();
|
|
1991
|
+
function An() {
|
|
1992
|
+
if (kn.installed) return;
|
|
2018
1993
|
let e = globalThis;
|
|
2019
|
-
typeof e.fetch == "function" &&
|
|
1994
|
+
typeof e.fetch == "function" && Tn() && kn.install(e, { fetch: (e) => On(e) });
|
|
2020
1995
|
}
|
|
2021
|
-
function
|
|
2022
|
-
|
|
1996
|
+
function jn() {
|
|
1997
|
+
kn.uninstall(globalThis);
|
|
2023
1998
|
}
|
|
2024
|
-
var
|
|
2025
|
-
function
|
|
1999
|
+
var Mn = 4, N = /* @__PURE__ */ new WeakMap();
|
|
2000
|
+
function Nn(e) {
|
|
2026
2001
|
e.watched = void 0, e.onDone = void 0;
|
|
2027
2002
|
}
|
|
2028
|
-
function
|
|
2029
|
-
e.ended = !0, e.watched?.settle(t),
|
|
2003
|
+
function Pn(e, t) {
|
|
2004
|
+
e.ended = !0, e.watched?.settle(t), Nn(e);
|
|
2030
2005
|
}
|
|
2031
|
-
function
|
|
2006
|
+
function Fn(e) {
|
|
2032
2007
|
return function(t, n, ...r) {
|
|
2033
|
-
let i =
|
|
2034
|
-
i && i.watched && !i.ended && (i.onDone && this.removeEventListener("readystatechange", i.onDone),
|
|
2008
|
+
let i = N.get(this);
|
|
2009
|
+
i && i.watched && !i.ended && (i.onDone && this.removeEventListener("readystatechange", i.onDone), Pn(i, { aborted: !0 }));
|
|
2035
2010
|
try {
|
|
2036
|
-
t && n != null ?
|
|
2011
|
+
t && n != null ? N.set(this, {
|
|
2037
2012
|
method: String(t).toUpperCase(),
|
|
2038
2013
|
url: String(n),
|
|
2039
2014
|
appHeaders: /* @__PURE__ */ new Set(),
|
|
2040
2015
|
ended: !1
|
|
2041
|
-
}) :
|
|
2016
|
+
}) : N.delete(this);
|
|
2042
2017
|
} catch {
|
|
2043
|
-
|
|
2018
|
+
N.delete(this);
|
|
2044
2019
|
}
|
|
2045
2020
|
return e.apply(this, [
|
|
2046
2021
|
t,
|
|
@@ -2049,12 +2024,12 @@ function Nn(e) {
|
|
|
2049
2024
|
]);
|
|
2050
2025
|
};
|
|
2051
2026
|
}
|
|
2052
|
-
function
|
|
2027
|
+
function In(e) {
|
|
2053
2028
|
return function(t, n) {
|
|
2054
|
-
e.call(this, t, n), typeof t == "string" &&
|
|
2029
|
+
e.call(this, t, n), typeof t == "string" && N.get(this)?.appHeaders.add(t.toLowerCase());
|
|
2055
2030
|
};
|
|
2056
2031
|
}
|
|
2057
|
-
function
|
|
2032
|
+
function Ln(e, t) {
|
|
2058
2033
|
let n = t.watched?.headers;
|
|
2059
2034
|
if (n) {
|
|
2060
2035
|
for (let [r, i] of Object.entries(n)) if (!t.appHeaders.has(r.toLowerCase())) try {
|
|
@@ -2062,13 +2037,13 @@ function Fn(e, t) {
|
|
|
2062
2037
|
} catch {}
|
|
2063
2038
|
}
|
|
2064
2039
|
}
|
|
2065
|
-
function
|
|
2040
|
+
function Rn(e) {
|
|
2066
2041
|
return function(t) {
|
|
2067
|
-
let n = () => e.call(this, t), r =
|
|
2068
|
-
if (!r || !
|
|
2042
|
+
let n = () => e.call(this, t), r = N.get(this);
|
|
2043
|
+
if (!r || !yn() || r.ended) return n();
|
|
2069
2044
|
let i = null;
|
|
2070
2045
|
try {
|
|
2071
|
-
i =
|
|
2046
|
+
i = bn({
|
|
2072
2047
|
kind: "xhr",
|
|
2073
2048
|
method: r.method,
|
|
2074
2049
|
url: r.url
|
|
@@ -2077,48 +2052,48 @@ function In(e) {
|
|
|
2077
2052
|
i = null;
|
|
2078
2053
|
}
|
|
2079
2054
|
if (!i) return n();
|
|
2080
|
-
r.watched = i,
|
|
2055
|
+
r.watched = i, Ln(this, r);
|
|
2081
2056
|
let a = () => {
|
|
2082
|
-
if (this.readyState !==
|
|
2057
|
+
if (this.readyState !== Mn || (this.removeEventListener("readystatechange", a), r.ended)) return;
|
|
2083
2058
|
let e = 0;
|
|
2084
2059
|
try {
|
|
2085
2060
|
e = this.status;
|
|
2086
2061
|
} catch {}
|
|
2087
|
-
|
|
2062
|
+
Pn(r, { status: e });
|
|
2088
2063
|
};
|
|
2089
2064
|
this.addEventListener("readystatechange", a), r.onDone = a;
|
|
2090
2065
|
try {
|
|
2091
2066
|
return n();
|
|
2092
2067
|
} catch (e) {
|
|
2093
|
-
throw this.removeEventListener("readystatechange", a),
|
|
2068
|
+
throw this.removeEventListener("readystatechange", a), Pn(r, { error: e }), e;
|
|
2094
2069
|
}
|
|
2095
2070
|
};
|
|
2096
2071
|
}
|
|
2097
|
-
var
|
|
2098
|
-
function
|
|
2099
|
-
if (
|
|
2072
|
+
var zn = En(), Bn = null;
|
|
2073
|
+
function Vn() {
|
|
2074
|
+
if (zn.installed) return;
|
|
2100
2075
|
let e = globalThis.XMLHttpRequest;
|
|
2101
|
-
typeof e
|
|
2102
|
-
open: (e) =>
|
|
2103
|
-
setRequestHeader: (e) =>
|
|
2104
|
-
send: (e) =>
|
|
2105
|
-
}),
|
|
2106
|
-
}
|
|
2107
|
-
function
|
|
2108
|
-
|
|
2109
|
-
}
|
|
2110
|
-
var
|
|
2111
|
-
function
|
|
2112
|
-
|
|
2076
|
+
typeof e == "function" && e.prototype && (zn.install(e.prototype, {
|
|
2077
|
+
open: (e) => Fn(e),
|
|
2078
|
+
setRequestHeader: (e) => In(e),
|
|
2079
|
+
send: (e) => Rn(e)
|
|
2080
|
+
}), Bn = e.prototype);
|
|
2081
|
+
}
|
|
2082
|
+
function Hn() {
|
|
2083
|
+
Bn && (zn.uninstall(Bn), zn.installed || (Bn = null));
|
|
2084
|
+
}
|
|
2085
|
+
var Un = 0;
|
|
2086
|
+
function Wn(e) {
|
|
2087
|
+
Un === 0 && (An(), Vn()), Un++;
|
|
2113
2088
|
let t = e(), n = !1;
|
|
2114
2089
|
return () => {
|
|
2115
|
-
n || (n = !0, t(),
|
|
2090
|
+
n || (n = !0, t(), Un--, Un === 0 && (jn(), Hn()));
|
|
2116
2091
|
};
|
|
2117
2092
|
}
|
|
2118
|
-
function
|
|
2093
|
+
function Gn(e, t, n, r) {
|
|
2119
2094
|
return r ? r.length !== 0 && r.some((t) => typeof t == "string" ? e.includes(t) : t.test(e)) : t !== null && t.origin === n;
|
|
2120
2095
|
}
|
|
2121
|
-
function
|
|
2096
|
+
function Kn(e) {
|
|
2122
2097
|
try {
|
|
2123
2098
|
let t = [];
|
|
2124
2099
|
for (let n of e) {
|
|
@@ -2132,10 +2107,10 @@ function Wn(e) {
|
|
|
2132
2107
|
return null;
|
|
2133
2108
|
}
|
|
2134
2109
|
}
|
|
2135
|
-
function
|
|
2110
|
+
function qn(e) {
|
|
2136
2111
|
return e !== null && (typeof e == "object" || typeof e == "function") && typeof e[Symbol.iterator] == "function";
|
|
2137
2112
|
}
|
|
2138
|
-
function
|
|
2113
|
+
function Jn(e, t, n) {
|
|
2139
2114
|
let r = t?.headers ?? (typeof Request < "u" && e instanceof Request ? e.headers : void 0), i;
|
|
2140
2115
|
if (r instanceof Headers) {
|
|
2141
2116
|
if (r.has("traceparent")) return t;
|
|
@@ -2143,8 +2118,8 @@ function Kn(e, t, n) {
|
|
|
2143
2118
|
} else if (Array.isArray(r)) {
|
|
2144
2119
|
if (r.some(([e]) => String(e).toLowerCase() === "traceparent")) return t;
|
|
2145
2120
|
i = [...r, ["traceparent", n]];
|
|
2146
|
-
} else if (
|
|
2147
|
-
let e =
|
|
2121
|
+
} else if (qn(r)) {
|
|
2122
|
+
let e = Kn(r);
|
|
2148
2123
|
if (e === null) i = r;
|
|
2149
2124
|
else if (e.some(([e]) => e.toLowerCase() === "traceparent")) return t;
|
|
2150
2125
|
else i = [...e, ["traceparent", n]];
|
|
@@ -2162,146 +2137,134 @@ function Kn(e, t, n) {
|
|
|
2162
2137
|
}
|
|
2163
2138
|
return a.duplex === void 0 && typeof Request < "u" && e instanceof Request && e.body != null && (a.duplex = "half"), a;
|
|
2164
2139
|
}
|
|
2165
|
-
var
|
|
2140
|
+
var Yn = {
|
|
2166
2141
|
fetch: b.Fetch,
|
|
2167
2142
|
xhr: b.Xhr
|
|
2168
|
-
},
|
|
2169
|
-
function
|
|
2143
|
+
}, Xn = /* @__PURE__ */ new Set(["data:", "blob:"]);
|
|
2144
|
+
function Zn() {
|
|
2170
2145
|
let e = globalThis.location?.origin ?? "";
|
|
2171
2146
|
return {
|
|
2172
2147
|
origin: e,
|
|
2173
2148
|
base: () => globalThis.document?.baseURI || e
|
|
2174
2149
|
};
|
|
2175
2150
|
}
|
|
2176
|
-
function
|
|
2151
|
+
function Qn(e, t) {
|
|
2177
2152
|
try {
|
|
2178
2153
|
return new URL(e, t || void 0);
|
|
2179
2154
|
} catch {
|
|
2180
2155
|
return null;
|
|
2181
2156
|
}
|
|
2182
2157
|
}
|
|
2183
|
-
var
|
|
2184
|
-
function
|
|
2158
|
+
var $n = null, er = [];
|
|
2159
|
+
function tr(e, t) {
|
|
2185
2160
|
let n = [
|
|
2186
2161
|
e.ingestUrl,
|
|
2187
2162
|
e.logsIngestUrl,
|
|
2188
2163
|
e.tracesIngestUrl
|
|
2189
2164
|
], r = `${t} ${n.join(" ")}`;
|
|
2190
|
-
return r !==
|
|
2165
|
+
return r !== $n && ($n = r, er = n.filter((e) => typeof e == "string" && e.length > 0).map((e) => Qn(e, t)).filter((e) => e !== null).map((e) => e.href)), er;
|
|
2191
2166
|
}
|
|
2192
|
-
function
|
|
2167
|
+
function nr(e, t) {
|
|
2193
2168
|
if (!e.startsWith(t)) return !1;
|
|
2194
2169
|
let n = e.charAt(t.length);
|
|
2195
2170
|
return n === "" || n === "/" || n === "?" || n === "#";
|
|
2196
2171
|
}
|
|
2197
|
-
function
|
|
2198
|
-
return e ?
|
|
2172
|
+
function rr(e, t, n) {
|
|
2173
|
+
return e ? tr(t, n).some((t) => nr(e.href, t)) : !1;
|
|
2199
2174
|
}
|
|
2200
|
-
function
|
|
2175
|
+
function ir(e, t, n, r) {
|
|
2201
2176
|
return {
|
|
2202
2177
|
"http.request.method": e,
|
|
2203
|
-
...
|
|
2178
|
+
...Te(t ? t.href : n, r.urlDenylist),
|
|
2204
2179
|
...t ? { "server.address": t.hostname } : {},
|
|
2205
2180
|
...t && t.port ? { "server.port": Number(t.port) } : {}
|
|
2206
2181
|
};
|
|
2207
2182
|
}
|
|
2208
|
-
function
|
|
2183
|
+
function ar(e, t, n) {
|
|
2209
2184
|
e.setAttribute("http.response.status_code", t), (t >= 500 || n?.zeroIsError && t === 0) && e.setStatus({ code: x.Error }), e.end();
|
|
2210
2185
|
}
|
|
2211
|
-
function
|
|
2186
|
+
function or(e, t) {
|
|
2212
2187
|
e.setStatus({
|
|
2213
2188
|
code: x.Error,
|
|
2214
2189
|
message: t instanceof Error ? t.message : String(t)
|
|
2215
2190
|
}), e.end();
|
|
2216
2191
|
}
|
|
2217
|
-
function
|
|
2218
|
-
return
|
|
2192
|
+
function sr(e, t, n, r, i) {
|
|
2193
|
+
return Gn(t ? t.href : n, t, r, i.tracePropagationTargets) ? kt(e.traceId, e.spanId, e.isRecording) : null;
|
|
2219
2194
|
}
|
|
2220
|
-
function
|
|
2221
|
-
let { method: n, url: r, urls: i, spanType: a } = t, o = e.config, s = i.base(), c =
|
|
2222
|
-
if (
|
|
2195
|
+
function cr(e, t) {
|
|
2196
|
+
let { method: n, url: r, urls: i, spanType: a } = t, o = e.config, s = i.base(), c = Qn(r, s);
|
|
2197
|
+
if (rr(c, o, s) || c && Xn.has(c.protocol)) return null;
|
|
2223
2198
|
let l = c ? c.pathname : r;
|
|
2224
2199
|
return {
|
|
2225
2200
|
span: e.startSpan(`${n} ${l}`, {
|
|
2226
2201
|
spanType: a,
|
|
2227
|
-
attributes:
|
|
2202
|
+
attributes: ir(n, c, r, o)
|
|
2228
2203
|
}),
|
|
2229
2204
|
absoluteUrl: c
|
|
2230
2205
|
};
|
|
2231
2206
|
}
|
|
2232
|
-
function
|
|
2207
|
+
function lr(e) {
|
|
2233
2208
|
return e !== null && (e.protocol === "http:" || e.protocol === "https:");
|
|
2234
2209
|
}
|
|
2235
|
-
function
|
|
2236
|
-
let a =
|
|
2237
|
-
return a ? n.kind === "xhr" ? { headers: { traceparent: a } } : n.input === void 0 ? {} : { init:
|
|
2210
|
+
function ur(e, t, n, r, i) {
|
|
2211
|
+
let a = sr(e, t, n.url, r.origin, i.config);
|
|
2212
|
+
return a ? n.kind === "xhr" ? { headers: { traceparent: a } } : n.input === void 0 ? {} : { init: Jn(n.input, n.init, a) } : {};
|
|
2238
2213
|
}
|
|
2239
|
-
function
|
|
2240
|
-
return
|
|
2214
|
+
function dr(e, t) {
|
|
2215
|
+
return vn((n) => {
|
|
2241
2216
|
if (!e.config.enableTracing) return;
|
|
2242
|
-
let r =
|
|
2217
|
+
let r = cr(e, {
|
|
2243
2218
|
method: n.method,
|
|
2244
2219
|
url: n.url,
|
|
2245
2220
|
urls: t,
|
|
2246
|
-
spanType:
|
|
2221
|
+
spanType: Yn[n.kind]
|
|
2247
2222
|
});
|
|
2248
2223
|
if (!r) return;
|
|
2249
2224
|
let { span: i, absoluteUrl: a } = r, o = {};
|
|
2250
2225
|
try {
|
|
2251
|
-
o =
|
|
2226
|
+
o = ur(i, a, n, t, e);
|
|
2252
2227
|
} catch {
|
|
2253
2228
|
o = {};
|
|
2254
2229
|
}
|
|
2255
2230
|
return {
|
|
2256
2231
|
...o,
|
|
2257
2232
|
onSettle({ status: e, error: t, aborted: r }) {
|
|
2258
|
-
|
|
2259
|
-
i.setStatus({ code: x.Error }), i.end();
|
|
2260
|
-
return;
|
|
2261
|
-
}
|
|
2262
|
-
if (t !== void 0) {
|
|
2263
|
-
ir(i, t);
|
|
2264
|
-
return;
|
|
2265
|
-
}
|
|
2266
|
-
if (n.kind === "xhr") {
|
|
2267
|
-
rr(i, e ?? 0, { zeroIsError: sr(a) });
|
|
2268
|
-
return;
|
|
2269
|
-
}
|
|
2270
|
-
rr(i, e ?? 0);
|
|
2233
|
+
r ? (i.setStatus({ code: x.Error }), i.end()) : t === void 0 ? n.kind === "xhr" ? ar(i, e ?? 0, { zeroIsError: lr(a) }) : ar(i, e ?? 0) : or(i, t);
|
|
2271
2234
|
}
|
|
2272
2235
|
};
|
|
2273
2236
|
});
|
|
2274
2237
|
}
|
|
2275
|
-
var
|
|
2238
|
+
var fr = class {
|
|
2276
2239
|
type = "browser_request";
|
|
2277
2240
|
constructor(e) {
|
|
2278
2241
|
this.host = e, this.subscribe = this.subscribe.bind(this), this.onStart = this.onStart.bind(this), this.onSettle = this.onSettle.bind(this);
|
|
2279
2242
|
}
|
|
2280
2243
|
install() {
|
|
2281
|
-
return
|
|
2244
|
+
return Wn(this.subscribe);
|
|
2282
2245
|
}
|
|
2283
2246
|
subscribe() {
|
|
2284
|
-
return
|
|
2247
|
+
return _n(this.onStart);
|
|
2285
2248
|
}
|
|
2286
2249
|
onStart(e) {
|
|
2287
|
-
let t =
|
|
2288
|
-
if (!
|
|
2250
|
+
let t = Zn().base(), n = Qn(e.url, t);
|
|
2251
|
+
if (!rr(n, this.host.config(), t)) return { onSettle: this.onSettle.bind(this, e, n) };
|
|
2289
2252
|
}
|
|
2290
2253
|
onSettle(e, t, n) {
|
|
2291
2254
|
let r = t ? t.href : e.url, i = {
|
|
2292
2255
|
"http.request.method": e.method,
|
|
2293
|
-
"url.full":
|
|
2256
|
+
"url.full": Pe(r, this.host.config().urlDenylist)
|
|
2294
2257
|
};
|
|
2295
|
-
t?.hostname && (i["server.address"] = t.hostname), n.status !== void 0 && (i["http.response.status_code"] = n.status), this.host.record(
|
|
2258
|
+
t?.hostname && (i["server.address"] = t.hostname), n.status !== void 0 && (i["http.response.status_code"] = n.status), this.host.record(Yn[e.kind], i, T());
|
|
2296
2259
|
}
|
|
2297
2260
|
};
|
|
2298
|
-
function
|
|
2261
|
+
function pr(e) {
|
|
2299
2262
|
if (typeof document > "u") return () => {};
|
|
2300
2263
|
let t = [
|
|
2264
|
+
new Xt(e),
|
|
2301
2265
|
new Zt(e),
|
|
2302
|
-
new
|
|
2303
|
-
new
|
|
2304
|
-
new pn(e)
|
|
2266
|
+
new fr(e),
|
|
2267
|
+
new hn(e)
|
|
2305
2268
|
], n = [];
|
|
2306
2269
|
for (let e of t) try {
|
|
2307
2270
|
n.push(e.install());
|
|
@@ -2312,14 +2275,14 @@ function dr(e) {
|
|
|
2312
2275
|
} catch {}
|
|
2313
2276
|
};
|
|
2314
2277
|
}
|
|
2315
|
-
var
|
|
2278
|
+
var mr = class {
|
|
2316
2279
|
register(e) {
|
|
2317
|
-
typeof document
|
|
2280
|
+
typeof document < "u" && document && (document.addEventListener("visibilitychange", () => {
|
|
2318
2281
|
document.visibilityState === "hidden" && e({ keepalive: !0 });
|
|
2319
2282
|
}), typeof window < "u" && window && window.addEventListener("pagehide", () => e({ keepalive: !0 })));
|
|
2320
2283
|
}
|
|
2321
2284
|
};
|
|
2322
|
-
function
|
|
2285
|
+
function hr(e) {
|
|
2323
2286
|
if (!window.document.cookie) return {};
|
|
2324
2287
|
let t = Object.create(null);
|
|
2325
2288
|
return window.document.cookie.split("; ").forEach((n) => {
|
|
@@ -2332,13 +2295,13 @@ function pr(e) {
|
|
|
2332
2295
|
t[i] = e.test(i) ? "[redacted]" : a;
|
|
2333
2296
|
}), { "http.request.cookies": t };
|
|
2334
2297
|
}
|
|
2335
|
-
var
|
|
2298
|
+
var gr = [
|
|
2336
2299
|
"slow-2g",
|
|
2337
2300
|
"2g",
|
|
2338
2301
|
"3g",
|
|
2339
2302
|
"4g"
|
|
2340
2303
|
];
|
|
2341
|
-
function
|
|
2304
|
+
function _r() {
|
|
2342
2305
|
if (typeof screen > "u" || typeof screen.width != "number" || typeof screen.height != "number") return null;
|
|
2343
2306
|
let e = typeof devicePixelRatio == "number" ? devicePixelRatio : void 0;
|
|
2344
2307
|
return e == null ? {
|
|
@@ -2350,33 +2313,33 @@ function hr() {
|
|
|
2350
2313
|
scale: e
|
|
2351
2314
|
};
|
|
2352
2315
|
}
|
|
2353
|
-
function
|
|
2316
|
+
function vr(e) {
|
|
2354
2317
|
let t = {};
|
|
2355
2318
|
typeof e.onLine == "boolean" && (t.online = e.onLine);
|
|
2356
2319
|
let n = e.connection;
|
|
2357
2320
|
if (n) {
|
|
2358
2321
|
let { effectiveType: e, downlink: r, rtt: i } = n;
|
|
2359
|
-
e &&
|
|
2322
|
+
e && gr.includes(e) && (t.effectiveType = e), typeof r == "number" && (t.downlinkMbps = r), typeof i == "number" && (t.rttMs = i);
|
|
2360
2323
|
}
|
|
2361
2324
|
return Object.keys(t).length > 0 ? t : null;
|
|
2362
2325
|
}
|
|
2363
|
-
function
|
|
2326
|
+
function yr() {
|
|
2364
2327
|
try {
|
|
2365
2328
|
return Intl.DateTimeFormat().resolvedOptions().timeZone || void 0;
|
|
2366
2329
|
} catch {
|
|
2367
2330
|
return;
|
|
2368
2331
|
}
|
|
2369
2332
|
}
|
|
2370
|
-
var
|
|
2333
|
+
var br = new class {
|
|
2371
2334
|
staticInfo = null;
|
|
2372
2335
|
collect() {
|
|
2373
2336
|
if (typeof window > "u" || typeof navigator > "u") return {};
|
|
2374
|
-
let e = navigator, t = {}, n = this.readStatic(e), r =
|
|
2337
|
+
let e = navigator, t = {}, n = this.readStatic(e), r = _r(), i = {
|
|
2375
2338
|
...n.device,
|
|
2376
2339
|
...r ? { screen: r } : {}
|
|
2377
2340
|
};
|
|
2378
2341
|
Object.keys(i).length > 0 && (t.device = i), n.locale && (t.locale = n.locale);
|
|
2379
|
-
let a =
|
|
2342
|
+
let a = vr(e);
|
|
2380
2343
|
return a && (t.network = a), t;
|
|
2381
2344
|
}
|
|
2382
2345
|
readStatic(e) {
|
|
@@ -2385,57 +2348,57 @@ var vr = new class {
|
|
|
2385
2348
|
typeof e.deviceMemory == "number" && (t.memoryGb = e.deviceMemory), typeof e.hardwareConcurrency == "number" && (t.cpuCores = e.hardwareConcurrency);
|
|
2386
2349
|
let n = {};
|
|
2387
2350
|
e.language && (n.language = e.language);
|
|
2388
|
-
let r =
|
|
2351
|
+
let r = yr();
|
|
2389
2352
|
return r && (n.timezone = r), this.staticInfo = {
|
|
2390
2353
|
device: Object.keys(t).length > 0 ? t : void 0,
|
|
2391
2354
|
locale: Object.keys(n).length > 0 ? n : void 0
|
|
2392
2355
|
}, this.staticInfo;
|
|
2393
2356
|
}
|
|
2394
2357
|
}();
|
|
2395
|
-
function
|
|
2358
|
+
function xr(e, t) {
|
|
2396
2359
|
return {
|
|
2397
|
-
...
|
|
2360
|
+
...Te(t ?? window.location.href, e),
|
|
2398
2361
|
"user_agent.original": window.navigator.userAgent,
|
|
2399
|
-
"http.request.referrer":
|
|
2362
|
+
"http.request.referrer": he(window.document.referrer, e),
|
|
2400
2363
|
"document.ready_state": window.document.readyState
|
|
2401
2364
|
};
|
|
2402
2365
|
}
|
|
2403
|
-
function
|
|
2366
|
+
function Sr(e, t) {
|
|
2404
2367
|
if (typeof window > "u") return { "flare.entry_point.type": "web" };
|
|
2405
2368
|
let n = { "flare.entry_point.type": "web" }, r = t ? t.href : window?.location?.href;
|
|
2406
2369
|
if (r) {
|
|
2407
|
-
n["flare.entry_point.value"] =
|
|
2370
|
+
n["flare.entry_point.value"] = he(r, e.urlDenylist);
|
|
2408
2371
|
let i = t ? t.pathname : window?.location?.pathname;
|
|
2409
2372
|
i && (n["flare.entry_point.handler.identifier"] = i, n["http.route"] = i, n["flare.entry_point.handler.type"] = "browser");
|
|
2410
2373
|
}
|
|
2411
2374
|
return n;
|
|
2412
2375
|
}
|
|
2413
|
-
var
|
|
2414
|
-
let t = { ...
|
|
2415
|
-
return Object.assign(t,
|
|
2416
|
-
},
|
|
2376
|
+
var Cr = (e) => {
|
|
2377
|
+
let t = { ...Sr(e) };
|
|
2378
|
+
return Object.assign(t, zt(br.collect())), typeof window > "u" || (window?.location?.hostname && (t["host.name"] = window.location.hostname), Object.assign(t, xr(e.urlDenylist)), Object.assign(t, hr(e.urlDenylist))), t;
|
|
2379
|
+
}, wr = class {
|
|
2417
2380
|
read(e) {
|
|
2418
|
-
return /^https?:\/\//i.test(e) ? fetch(e,
|
|
2381
|
+
return /^https?:\/\//i.test(e) ? fetch(e, Sn()).then((e) => e.status === 200 ? e.text() : null).catch(() => null) : Promise.resolve(null);
|
|
2419
2382
|
}
|
|
2420
|
-
},
|
|
2421
|
-
function
|
|
2383
|
+
}, Tr = "2.13.0";
|
|
2384
|
+
function Er(e) {
|
|
2422
2385
|
return (...t) => {
|
|
2423
2386
|
try {
|
|
2424
2387
|
e(...t);
|
|
2425
2388
|
} catch {}
|
|
2426
2389
|
};
|
|
2427
2390
|
}
|
|
2428
|
-
function
|
|
2391
|
+
function Dr(e) {
|
|
2429
2392
|
try {
|
|
2430
2393
|
e?.();
|
|
2431
2394
|
} catch {}
|
|
2432
2395
|
}
|
|
2433
|
-
var
|
|
2434
|
-
function
|
|
2435
|
-
|
|
2396
|
+
var Or = /* @__PURE__ */ new WeakMap();
|
|
2397
|
+
function kr(e, t) {
|
|
2398
|
+
Or.get(e)?.();
|
|
2436
2399
|
let n = [];
|
|
2437
2400
|
function r() {
|
|
2438
|
-
for (let e = n.length - 1; e >= 0; e--)
|
|
2401
|
+
for (let e = n.length - 1; e >= 0; e--) Dr(n[e]);
|
|
2439
2402
|
}
|
|
2440
2403
|
try {
|
|
2441
2404
|
t((e) => {
|
|
@@ -2445,54 +2408,54 @@ function Dr(e, t) {
|
|
|
2445
2408
|
return r(), () => {};
|
|
2446
2409
|
}
|
|
2447
2410
|
function i() {
|
|
2448
|
-
r(),
|
|
2411
|
+
r(), Or.get(e) === i && Or.delete(e);
|
|
2449
2412
|
}
|
|
2450
|
-
return
|
|
2413
|
+
return Or.set(e, i), i;
|
|
2451
2414
|
}
|
|
2452
|
-
function
|
|
2415
|
+
function Ar(e, t) {
|
|
2453
2416
|
if (typeof window > "u") return {};
|
|
2454
|
-
let n =
|
|
2417
|
+
let n = Qt(t);
|
|
2455
2418
|
return {
|
|
2456
|
-
...
|
|
2457
|
-
...
|
|
2419
|
+
...Sr(e, n),
|
|
2420
|
+
...xr(e.urlDenylist, n?.href)
|
|
2458
2421
|
};
|
|
2459
2422
|
}
|
|
2460
|
-
function
|
|
2423
|
+
function jr(e, t) {
|
|
2461
2424
|
if (typeof window > "u") return {};
|
|
2462
|
-
let n =
|
|
2425
|
+
let n = Qt(t);
|
|
2463
2426
|
if (!n) return {};
|
|
2464
|
-
let r =
|
|
2427
|
+
let r = Te(n.href, e.urlDenylist);
|
|
2465
2428
|
return {
|
|
2466
2429
|
"url.query": "",
|
|
2467
2430
|
...r,
|
|
2468
2431
|
"flare.entry_point.value": r["url.full"]
|
|
2469
2432
|
};
|
|
2470
2433
|
}
|
|
2471
|
-
var
|
|
2434
|
+
var Mr = -1, P = () => Mr, F = (e) => {
|
|
2472
2435
|
addEventListener("pageshow", (t) => {
|
|
2473
|
-
t.persisted && (
|
|
2436
|
+
t.persisted && (Mr = t.timeStamp, e(t));
|
|
2474
2437
|
}, !0);
|
|
2475
|
-
},
|
|
2438
|
+
}, Nr = (e, t) => e > t[1] ? "poor" : e > t[0] ? "needs-improvement" : "good", I = (e, t, n, r) => {
|
|
2476
2439
|
let i, a;
|
|
2477
2440
|
return (o) => {
|
|
2478
|
-
t.value >= 0 && (o || r) && (a = t.value - (i ?? 0), (a || i === void 0) && (i = t.value, t.delta = a, t.rating =
|
|
2441
|
+
t.value >= 0 && (o || r) && (a = t.value - (i ?? 0), (a || i === void 0) && (i = t.value, t.delta = a, t.rating = Nr(t.value, n), e(t)));
|
|
2479
2442
|
};
|
|
2480
|
-
},
|
|
2443
|
+
}, Pr = (e) => {
|
|
2481
2444
|
requestAnimationFrame(() => requestAnimationFrame(e));
|
|
2482
|
-
},
|
|
2445
|
+
}, Fr = () => {
|
|
2483
2446
|
let e = performance.getEntriesByType("navigation")[0];
|
|
2484
2447
|
if (e && e.responseStart > 0 && e.responseStart < performance.now()) return e;
|
|
2485
|
-
},
|
|
2448
|
+
}, Ir = () => Fr()?.activationStart ?? 0, L = -1, Lr = /* @__PURE__ */ new Set(), Rr = () => document.visibilityState === "hidden" && !document.prerendering ? 0 : Infinity, zr = (e) => {
|
|
2486
2449
|
if (document.visibilityState === "hidden") {
|
|
2487
|
-
if (e.type === "visibilitychange") for (let e of
|
|
2488
|
-
isFinite(L) || (L = e.type === "visibilitychange" ? e.timeStamp : 0, removeEventListener("prerenderingchange",
|
|
2450
|
+
if (e.type === "visibilitychange") for (let e of Lr) e();
|
|
2451
|
+
isFinite(L) || (L = e.type === "visibilitychange" ? e.timeStamp : 0, removeEventListener("prerenderingchange", zr, !0));
|
|
2489
2452
|
}
|
|
2490
2453
|
}, R = (e = !1) => {
|
|
2491
2454
|
if (e && (L = Infinity), L < 0) {
|
|
2492
|
-
let e =
|
|
2493
|
-
L = (document.prerendering ? void 0 : globalThis.performance.getEntriesByType("visibility-state").find((t) => t.name === "hidden" && t.startTime >= e)?.startTime) ??
|
|
2455
|
+
let e = Ir();
|
|
2456
|
+
L = (document.prerendering ? void 0 : globalThis.performance.getEntriesByType("visibility-state").find((t) => t.name === "hidden" && t.startTime >= e)?.startTime) ?? Rr(), addEventListener("visibilitychange", zr, !0), addEventListener("prerenderingchange", zr, !0), F(() => {
|
|
2494
2457
|
setTimeout(() => {
|
|
2495
|
-
L =
|
|
2458
|
+
L = Rr();
|
|
2496
2459
|
});
|
|
2497
2460
|
});
|
|
2498
2461
|
}
|
|
@@ -2501,30 +2464,30 @@ var Ar = -1, N = () => Ar, P = (e) => {
|
|
|
2501
2464
|
return L;
|
|
2502
2465
|
},
|
|
2503
2466
|
onHidden(e) {
|
|
2504
|
-
|
|
2467
|
+
Lr.add(e);
|
|
2505
2468
|
}
|
|
2506
2469
|
};
|
|
2507
|
-
},
|
|
2508
|
-
let s =
|
|
2509
|
-
return n ? l = n :
|
|
2470
|
+
}, Br = () => `v6-${Date.now()}-${Math.floor(Math.random() * 8999999999999) + 0xe8d4a51000}`, z = (e, t = -1, n, r = 0, i, a, o) => {
|
|
2471
|
+
let s = Fr(), c = s?.navigationId || 0, l = "navigate";
|
|
2472
|
+
return n ? l = n : P() >= 0 ? l = "back-forward-cache" : s && (document.prerendering || Ir() > 0 ? l = "prerender" : document.wasDiscarded ? l = "restore" : s.type && (l = s.type.replace(/_/g, "-"))), {
|
|
2510
2473
|
name: e,
|
|
2511
2474
|
value: t,
|
|
2512
2475
|
rating: "good",
|
|
2513
2476
|
delta: 0,
|
|
2514
2477
|
entries: [],
|
|
2515
|
-
id:
|
|
2478
|
+
id: Br(),
|
|
2516
2479
|
navigationType: l,
|
|
2517
2480
|
navigationId: r || c,
|
|
2518
2481
|
navigationInteractionId: i,
|
|
2519
2482
|
navigationURL: a || s?.name,
|
|
2520
2483
|
navigationStartTime: o || 0
|
|
2521
2484
|
};
|
|
2522
|
-
},
|
|
2523
|
-
function
|
|
2524
|
-
let n =
|
|
2525
|
-
return n || (n = /* @__PURE__ */ new WeakMap(),
|
|
2485
|
+
}, Vr = /* @__PURE__ */ new WeakMap();
|
|
2486
|
+
function Hr(e, t) {
|
|
2487
|
+
let n = Vr.get(t);
|
|
2488
|
+
return n || (n = /* @__PURE__ */ new WeakMap(), Vr.set(t, n)), n.get(e) || n.set(e, new t()), n.get(e);
|
|
2526
2489
|
}
|
|
2527
|
-
var
|
|
2490
|
+
var Ur = class {
|
|
2528
2491
|
_onAfterProcessingUnexpectedShift;
|
|
2529
2492
|
_sessionValue = 0;
|
|
2530
2493
|
_sessionEntries = [];
|
|
@@ -2551,77 +2514,71 @@ var Br = class {
|
|
|
2551
2514
|
return e;
|
|
2552
2515
|
}
|
|
2553
2516
|
} catch {}
|
|
2554
|
-
}, V = (e) => globalThis.PerformanceObserver?.supportedEntryTypes.includes("soft-navigation") && typeof globalThis.PerformanceSoftNavigation?.prototype?.getLargestInteractionContentfulPaint == "function" && e && e.reportSoftNavs,
|
|
2517
|
+
}, V = (e) => globalThis.PerformanceObserver?.supportedEntryTypes.includes("soft-navigation") && typeof globalThis.PerformanceSoftNavigation?.prototype?.getLargestInteractionContentfulPaint == "function" && e && e.reportSoftNavs, Wr = (e, t) => {
|
|
2555
2518
|
if (e.set(t.navigationId, t), e.size > 2) {
|
|
2556
2519
|
let t = e.keys().next().value;
|
|
2557
2520
|
t !== void 0 && e.delete(t);
|
|
2558
2521
|
}
|
|
2559
|
-
},
|
|
2522
|
+
}, Gr = (e) => {
|
|
2560
2523
|
let t = !1;
|
|
2561
2524
|
return () => {
|
|
2562
2525
|
t ||= (e(), !0);
|
|
2563
2526
|
};
|
|
2564
|
-
},
|
|
2527
|
+
}, Kr = class {
|
|
2565
2528
|
_softNavigationEntryMap;
|
|
2566
|
-
},
|
|
2529
|
+
}, qr = (e) => {
|
|
2567
2530
|
document.prerendering ? addEventListener("prerenderingchange", e, !0) : e();
|
|
2568
|
-
},
|
|
2531
|
+
}, Jr = [1800, 3e3], Yr = (e, t = {}) => {
|
|
2569
2532
|
let n = V(t);
|
|
2570
|
-
|
|
2571
|
-
let r =
|
|
2572
|
-
for (let t of e) t.name === "first-contentful-paint" && (s.disconnect(), t.startTime < i.firstHiddenTime && (a.value = Math.max(t.startTime -
|
|
2533
|
+
qr(() => {
|
|
2534
|
+
let r = Hr(t, Kr), i = R(), a = z("FCP"), o, s = B(["paint"], (e) => {
|
|
2535
|
+
for (let t of e) t.name === "first-contentful-paint" && (s.disconnect(), t.startTime < i.firstHiddenTime && (a.value = Math.max(t.startTime - Ir(), 0), a.entries.push(t), a.navigationId = t.navigationId || a.navigationId, o(!0)));
|
|
2573
2536
|
});
|
|
2574
|
-
s && (o =
|
|
2575
|
-
a = z("FCP", -1, "back-forward-cache", a.navigationId, a.navigationInteractionId, a.navigationURL,
|
|
2537
|
+
s && (o = I(e, a, Jr, t.reportAllChanges), F((n) => {
|
|
2538
|
+
a = z("FCP", -1, "back-forward-cache", a.navigationId, a.navigationInteractionId, a.navigationURL, P()), o = I(e, a, Jr, t.reportAllChanges), Pr(() => {
|
|
2576
2539
|
a.value = performance.now() - n.timeStamp, o(!0);
|
|
2577
2540
|
});
|
|
2578
2541
|
})), n && B(["soft-navigation"], (n) => {
|
|
2579
2542
|
n.forEach((n) => {
|
|
2580
|
-
r._softNavigationEntryMap && n.navigationId &&
|
|
2543
|
+
r._softNavigationEntryMap && n.navigationId && Wr(r._softNavigationEntryMap, n), a = z("FCP", Math.max((n.presentationTime || n.paintTime || 0) - n.startTime, 0), "soft-navigation", n.navigationId, n.interactionId, n.name, n.startTime), o = I(e, a, Jr, t.reportAllChanges), o(!0);
|
|
2581
2544
|
});
|
|
2582
2545
|
}, t);
|
|
2583
2546
|
});
|
|
2584
|
-
},
|
|
2547
|
+
}, Xr = [.1, .25], Zr = (e, t = {}) => {
|
|
2585
2548
|
let n = R();
|
|
2586
|
-
|
|
2587
|
-
let r = z("CLS", 0), i, a =
|
|
2588
|
-
r = z("CLS", 0, n, o, s, c, l), a._sessionValue = 0, i =
|
|
2549
|
+
Yr(Gr(() => {
|
|
2550
|
+
let r = z("CLS", 0), i, a = Hr(t, Ur), o = (n, o, s, c, l) => {
|
|
2551
|
+
r = z("CLS", 0, n, o, s, c, l), a._sessionValue = 0, i = I(e, r, Xr, t.reportAllChanges);
|
|
2589
2552
|
}, s = (e = !1) => {
|
|
2590
2553
|
a._sessionValue > r.value && (r.value = a._sessionValue, r.entries = a._sessionEntries), i(e);
|
|
2591
2554
|
}, c = (e) => {
|
|
2592
2555
|
s(!0), o("soft-navigation", e.navigationId, e.interactionId, e.name, e.startTime);
|
|
2593
2556
|
}, l = (e) => {
|
|
2594
|
-
for (let t of e)
|
|
2595
|
-
if (t.entryType === "soft-navigation") {
|
|
2596
|
-
c(t);
|
|
2597
|
-
continue;
|
|
2598
|
-
}
|
|
2599
|
-
a._processEntry(t);
|
|
2600
|
-
}
|
|
2557
|
+
for (let t of e) t.entryType === "soft-navigation" ? c(t) : a._processEntry(t);
|
|
2601
2558
|
s();
|
|
2602
2559
|
}, u = ["layout-shift"];
|
|
2603
2560
|
V(t) && u.push("soft-navigation");
|
|
2604
2561
|
let d = B(u, l);
|
|
2605
|
-
d && (i =
|
|
2562
|
+
d && (i = I(e, r, Xr, t.reportAllChanges), n.onHidden(() => {
|
|
2606
2563
|
l(d.takeRecords()), i(!0);
|
|
2607
|
-
}),
|
|
2608
|
-
o("back-forward-cache", r.navigationId, r.navigationInteractionId, r.navigationURL,
|
|
2564
|
+
}), F(() => {
|
|
2565
|
+
o("back-forward-cache", r.navigationId, r.navigationInteractionId, r.navigationURL, P()), Pr(i);
|
|
2609
2566
|
}), setTimeout(i));
|
|
2610
2567
|
}));
|
|
2611
|
-
},
|
|
2612
|
-
for (let t of e) t.interactionId && (
|
|
2613
|
-
},
|
|
2614
|
-
"interactionCount" in performance ||
|
|
2615
|
-
},
|
|
2568
|
+
}, Qr = 0, $r = Infinity, ei = 0, ti = (e) => {
|
|
2569
|
+
for (let t of e) t.interactionId && ($r = Math.min($r, t.interactionId), ei = Math.max(ei, t.interactionId), Qr = ei ? (ei - $r) / 7 + 1 : 0);
|
|
2570
|
+
}, ni, ri = () => ni ? Qr : performance.interactionCount ?? 0, ii = () => {
|
|
2571
|
+
"interactionCount" in performance || ni || (ni = B(["event"], ti, { durationThreshold: 0 }));
|
|
2572
|
+
}, ai = 10, oi = 0, si = () => ri() - oi, ci = class {
|
|
2616
2573
|
_longestInteractionList = [];
|
|
2617
2574
|
_longestInteractionMap = /* @__PURE__ */ new Map();
|
|
2618
2575
|
_onBeforeProcessingEntry;
|
|
2619
2576
|
_onAfterProcessingINPCandidate;
|
|
2620
2577
|
_resetInteractions() {
|
|
2621
|
-
|
|
2578
|
+
oi = ri(), this._longestInteractionList.length = 0, this._longestInteractionMap.clear();
|
|
2622
2579
|
}
|
|
2623
2580
|
_estimateP98LongestInteraction(e) {
|
|
2624
|
-
let t =
|
|
2581
|
+
let t = si(), n = Math.min(this._longestInteractionList.length - 1, Math.floor(t / 50));
|
|
2625
2582
|
return t && n === -1 && (e === "soft-navigation" || e === "back-forward-cache") ? {
|
|
2626
2583
|
_latency: 8,
|
|
2627
2584
|
id: -1,
|
|
@@ -2631,23 +2588,23 @@ var Br = class {
|
|
|
2631
2588
|
_processEntry(e) {
|
|
2632
2589
|
if (this._onBeforeProcessingEntry?.(e), !(e.interactionId || e.entryType === "first-input")) return;
|
|
2633
2590
|
let t = this._longestInteractionList.at(-1), n = this._longestInteractionMap.get(e.interactionId);
|
|
2634
|
-
if (n || this._longestInteractionList.length <
|
|
2591
|
+
if (n || this._longestInteractionList.length < ai || e.duration > t._latency) {
|
|
2635
2592
|
if (n ? e.duration > n._latency ? (n.entries = [e], n._latency = e.duration) : e.duration === n._latency && e.startTime === n.entries[0].startTime && n.entries.push(e) : (n = {
|
|
2636
2593
|
id: e.interactionId,
|
|
2637
2594
|
entries: [e],
|
|
2638
2595
|
_latency: e.duration
|
|
2639
|
-
}, this._longestInteractionMap.set(n.id, n), this._longestInteractionList.push(n)), this._longestInteractionList.sort((e, t) => t._latency - e._latency), this._longestInteractionList.length >
|
|
2640
|
-
let e = this._longestInteractionList.splice(
|
|
2596
|
+
}, this._longestInteractionMap.set(n.id, n), this._longestInteractionList.push(n)), this._longestInteractionList.sort((e, t) => t._latency - e._latency), this._longestInteractionList.length > ai) {
|
|
2597
|
+
let e = this._longestInteractionList.splice(ai);
|
|
2641
2598
|
for (let t of e) this._longestInteractionMap.delete(t.id);
|
|
2642
2599
|
}
|
|
2643
2600
|
this._onAfterProcessingINPCandidate?.(n);
|
|
2644
2601
|
}
|
|
2645
2602
|
}
|
|
2646
|
-
},
|
|
2603
|
+
}, li = (e) => {
|
|
2647
2604
|
let t = "requestIdleCallback" in globalThis ? 1e3 : 0, n = globalThis.requestIdleCallback || setTimeout, r = globalThis.cancelIdleCallback || clearTimeout;
|
|
2648
2605
|
if (document.visibilityState === "hidden") e();
|
|
2649
2606
|
else {
|
|
2650
|
-
let i =
|
|
2607
|
+
let i = Gr(e), a = -1, o = () => {
|
|
2651
2608
|
r(a), i();
|
|
2652
2609
|
};
|
|
2653
2610
|
addEventListener("visibilitychange", o, {
|
|
@@ -2657,54 +2614,48 @@ var Br = class {
|
|
|
2657
2614
|
removeEventListener("visibilitychange", o, { capture: !0 }), i();
|
|
2658
2615
|
}, { timeout: t });
|
|
2659
2616
|
}
|
|
2660
|
-
},
|
|
2617
|
+
}, ui = [200, 500], di = 40, fi = (e, t = {}) => {
|
|
2661
2618
|
if (!(globalThis.PerformanceEventTiming && "interactionId" in PerformanceEventTiming.prototype)) return;
|
|
2662
2619
|
let n = R();
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
let r = z("INP"), i, a =
|
|
2666
|
-
a._resetInteractions(), r = z("INP", -1, n, o, s, c, l), i =
|
|
2620
|
+
qr(() => {
|
|
2621
|
+
ii();
|
|
2622
|
+
let r = z("INP"), i, a = Hr(t, ci), o = (n, o, s, c, l) => {
|
|
2623
|
+
a._resetInteractions(), r = z("INP", -1, n, o, s, c, l), i = I(e, r, ui, t.reportAllChanges);
|
|
2667
2624
|
}, s = () => {
|
|
2668
2625
|
let e = a._estimateP98LongestInteraction(r.navigationType);
|
|
2669
2626
|
e && e._latency !== r.value && (r.value = e._latency, r.entries = e.entries, i());
|
|
2670
2627
|
}, c = (e) => {
|
|
2671
2628
|
s(), i(!0), o("soft-navigation", e.navigationId, e.interactionId, e.name, e.startTime);
|
|
2672
2629
|
}, l = (e, t = !1) => {
|
|
2673
|
-
|
|
2674
|
-
for (let t of e)
|
|
2675
|
-
if (t.entryType === "soft-navigation") {
|
|
2676
|
-
c(t);
|
|
2677
|
-
continue;
|
|
2678
|
-
}
|
|
2679
|
-
a._processEntry(t);
|
|
2680
|
-
}
|
|
2630
|
+
li(() => {
|
|
2631
|
+
for (let t of e) t.entryType === "soft-navigation" ? c(t) : a._processEntry(t);
|
|
2681
2632
|
s(), t && i(!0);
|
|
2682
2633
|
});
|
|
2683
2634
|
}, u = ["event", "first-input"];
|
|
2684
2635
|
V(t) && u.push("soft-navigation");
|
|
2685
2636
|
let d = B(u, l, {
|
|
2686
2637
|
...t,
|
|
2687
|
-
durationThreshold: t.durationThreshold ??
|
|
2638
|
+
durationThreshold: t.durationThreshold ?? di
|
|
2688
2639
|
});
|
|
2689
|
-
i =
|
|
2640
|
+
i = I(e, r, ui, t.reportAllChanges), d && (n.onHidden(() => {
|
|
2690
2641
|
l(d.takeRecords(), !0);
|
|
2691
|
-
}),
|
|
2692
|
-
o("back-forward-cache", r.navigationId, r.navigationInteractionId, r.navigationURL,
|
|
2642
|
+
}), F(() => {
|
|
2643
|
+
o("back-forward-cache", r.navigationId, r.navigationInteractionId, r.navigationURL, P());
|
|
2693
2644
|
}));
|
|
2694
2645
|
});
|
|
2695
|
-
},
|
|
2646
|
+
}, pi = class {
|
|
2696
2647
|
_onBeforeProcessingEntry;
|
|
2697
2648
|
_softNavigationEntryMap;
|
|
2698
2649
|
_processEntry(e) {
|
|
2699
2650
|
this._onBeforeProcessingEntry?.(e);
|
|
2700
2651
|
}
|
|
2701
|
-
},
|
|
2652
|
+
}, mi = [2500, 4e3], hi = (e, t = {}) => {
|
|
2702
2653
|
let n = !1, r = V(t);
|
|
2703
|
-
|
|
2704
|
-
let i = R(), a = z("LCP"), o, s =
|
|
2705
|
-
a = z("LCP", -1, r, s, c, l, u), o =
|
|
2654
|
+
qr(() => {
|
|
2655
|
+
let i = R(), a = z("LCP"), o, s = Hr(t, pi), c = (r, s, c, l, u) => {
|
|
2656
|
+
a = z("LCP", -1, r, s, c, l, u), o = I(e, a, mi, t.reportAllChanges), n = !1, r === "soft-navigation" && (i = R(!0));
|
|
2706
2657
|
}, l = (e) => {
|
|
2707
|
-
s._softNavigationEntryMap && e.navigationId &&
|
|
2658
|
+
s._softNavigationEntryMap && e.navigationId && Wr(s._softNavigationEntryMap, e), n || o(!0), c("soft-navigation", e.navigationId, e.interactionId, e.name, e.startTime);
|
|
2708
2659
|
let t = e.getLargestInteractionContentfulPaint?.();
|
|
2709
2660
|
t && u([t]);
|
|
2710
2661
|
}, u = (e) => {
|
|
@@ -2716,7 +2667,7 @@ var Br = class {
|
|
|
2716
2667
|
continue;
|
|
2717
2668
|
}
|
|
2718
2669
|
let e = 0, n = [], r = t.startTime;
|
|
2719
|
-
if (t.entryType === "largest-contentful-paint") e = Math.max(t.startTime -
|
|
2670
|
+
if (t.entryType === "largest-contentful-paint") e = Math.max(t.startTime - Ir(), 0), s._processEntry(t), n = [t];
|
|
2720
2671
|
else if (t.entryType === "interaction-contentful-paint") {
|
|
2721
2672
|
let i = t;
|
|
2722
2673
|
if (!a.navigationId || "interactionId" in i && i.interactionId != a.navigationInteractionId) continue;
|
|
@@ -2728,7 +2679,7 @@ var Br = class {
|
|
|
2728
2679
|
r && d.push("interaction-contentful-paint", "soft-navigation");
|
|
2729
2680
|
let f = B(d, u);
|
|
2730
2681
|
if (f) {
|
|
2731
|
-
o =
|
|
2682
|
+
o = I(e, a, mi, t.reportAllChanges);
|
|
2732
2683
|
let i = [
|
|
2733
2684
|
"keydown",
|
|
2734
2685
|
"click",
|
|
@@ -2736,7 +2687,7 @@ var Br = class {
|
|
|
2736
2687
|
], s = (e) => {
|
|
2737
2688
|
if (e.isTrusted && !n) {
|
|
2738
2689
|
let e = a.id;
|
|
2739
|
-
|
|
2690
|
+
li(() => {
|
|
2740
2691
|
if (!n) {
|
|
2741
2692
|
if (!r) {
|
|
2742
2693
|
f.disconnect();
|
|
@@ -2748,38 +2699,38 @@ var Br = class {
|
|
|
2748
2699
|
}
|
|
2749
2700
|
};
|
|
2750
2701
|
for (let e of i) addEventListener(e, s, { capture: !0 });
|
|
2751
|
-
|
|
2752
|
-
c("back-forward-cache", a.navigationId, a.navigationInteractionId, a.navigationURL,
|
|
2702
|
+
F((r) => {
|
|
2703
|
+
c("back-forward-cache", a.navigationId, a.navigationInteractionId, a.navigationURL, P()), o = I(e, a, mi, t.reportAllChanges), Pr(() => {
|
|
2753
2704
|
a.value = performance.now() - r.timeStamp, n = !0, o(!0);
|
|
2754
2705
|
});
|
|
2755
2706
|
});
|
|
2756
2707
|
}
|
|
2757
2708
|
});
|
|
2758
|
-
},
|
|
2759
|
-
document.prerendering ?
|
|
2760
|
-
},
|
|
2761
|
-
let n = V(t), r = z("TTFB"), i =
|
|
2762
|
-
|
|
2763
|
-
let a =
|
|
2709
|
+
}, gi = [800, 1800], _i = (e) => {
|
|
2710
|
+
document.prerendering ? qr(() => _i(e)) : document.readyState === "complete" ? setTimeout(e) : addEventListener("load", () => _i(e), !0);
|
|
2711
|
+
}, vi = (e, t = {}) => {
|
|
2712
|
+
let n = V(t), r = z("TTFB"), i = I(e, r, gi, t.reportAllChanges);
|
|
2713
|
+
_i(() => {
|
|
2714
|
+
let a = Fr();
|
|
2764
2715
|
if (a) {
|
|
2765
2716
|
let o = a.responseStart;
|
|
2766
|
-
r.value = Math.max(o -
|
|
2767
|
-
r = z("TTFB", 0, "back-forward-cache", r.navigationId, r.navigationInteractionId, r.navigationURL,
|
|
2717
|
+
r.value = Math.max(o - Ir(), 0), r.entries = [a], i(!0), F(() => {
|
|
2718
|
+
r = z("TTFB", 0, "back-forward-cache", r.navigationId, r.navigationInteractionId, r.navigationURL, P()), i = I(e, r, gi, t.reportAllChanges), i(!0);
|
|
2768
2719
|
}), n && B(["soft-navigation"], (n) => {
|
|
2769
2720
|
n.forEach((n) => {
|
|
2770
|
-
n.navigationId && (r = z("TTFB", 0, "soft-navigation", n.navigationId, n.interactionId, n.name, n.startTime), r.entries = [n], i =
|
|
2721
|
+
n.navigationId && (r = z("TTFB", 0, "soft-navigation", n.navigationId, n.interactionId, n.name, n.startTime), r.entries = [n], i = I(e, r, gi, t.reportAllChanges), i(!0));
|
|
2771
2722
|
});
|
|
2772
2723
|
}, t);
|
|
2773
2724
|
}
|
|
2774
2725
|
});
|
|
2775
|
-
},
|
|
2776
|
-
function
|
|
2726
|
+
}, yi = ["ttfb", "fcp"];
|
|
2727
|
+
function bi(e) {
|
|
2777
2728
|
let t = {};
|
|
2778
2729
|
for (let [n, r] of Object.entries(e)) typeof r == "number" && (t[`browser.web_vital.${n}`] = r);
|
|
2779
2730
|
return t;
|
|
2780
2731
|
}
|
|
2781
|
-
function
|
|
2782
|
-
let t =
|
|
2732
|
+
function xi(e) {
|
|
2733
|
+
let t = bi(e.vitals);
|
|
2783
2734
|
return Object.keys(t).length === 0 ? null : {
|
|
2784
2735
|
name: e.routeName,
|
|
2785
2736
|
startTimeUnixNano: e.rootStartTimeUnixNano,
|
|
@@ -2793,53 +2744,76 @@ function vi(e) {
|
|
|
2793
2744
|
}
|
|
2794
2745
|
};
|
|
2795
2746
|
}
|
|
2796
|
-
var H = {},
|
|
2797
|
-
function
|
|
2747
|
+
var H = {}, Si = !1, U = !1, Ci = !1;
|
|
2748
|
+
function wi() {
|
|
2798
2749
|
return {
|
|
2799
|
-
onTTFB: (e) =>
|
|
2800
|
-
onFCP: (e) =>
|
|
2801
|
-
onLCP: (e) =>
|
|
2802
|
-
onCLS: (e) =>
|
|
2803
|
-
onINP: (e) =>
|
|
2750
|
+
onTTFB: (e) => vi(e),
|
|
2751
|
+
onFCP: (e) => Yr(e),
|
|
2752
|
+
onLCP: (e) => hi(e, { reportAllChanges: !0 }),
|
|
2753
|
+
onCLS: (e) => Zr(e, { reportAllChanges: !0 }),
|
|
2754
|
+
onINP: (e) => fi(e, { reportAllChanges: !0 })
|
|
2804
2755
|
};
|
|
2805
2756
|
}
|
|
2806
|
-
function
|
|
2807
|
-
U = !0,
|
|
2757
|
+
function Ti(e = wi()) {
|
|
2758
|
+
U = !0, Si || (Si = !0, W(e.onTTFB, "ttfb"), W(e.onFCP, "fcp"), W(e.onLCP, "lcp"), W(e.onCLS, "cls"), W(e.onINP, "inp"));
|
|
2808
2759
|
}
|
|
2809
2760
|
function W(e, t) {
|
|
2810
2761
|
try {
|
|
2811
|
-
e((e) =>
|
|
2762
|
+
e((e) => Ei(t, e));
|
|
2812
2763
|
} catch {}
|
|
2813
2764
|
}
|
|
2814
|
-
function
|
|
2815
|
-
|
|
2765
|
+
function Ei(e, t) {
|
|
2766
|
+
U && typeof t?.value == "number" && (H[e] = t.value);
|
|
2816
2767
|
}
|
|
2817
|
-
function
|
|
2768
|
+
function Di() {
|
|
2818
2769
|
U = !1, H = {};
|
|
2819
2770
|
}
|
|
2820
|
-
function
|
|
2771
|
+
function Oi() {
|
|
2821
2772
|
if (!U) return null;
|
|
2822
2773
|
let e = {};
|
|
2823
|
-
for (let t of
|
|
2774
|
+
for (let t of yi) {
|
|
2824
2775
|
let n = H[t];
|
|
2825
2776
|
n !== void 0 && (e[t] = n, delete H[t]);
|
|
2826
2777
|
}
|
|
2827
2778
|
return Object.keys(e).length === 0 ? null : e;
|
|
2828
2779
|
}
|
|
2829
|
-
function
|
|
2830
|
-
if (
|
|
2831
|
-
|
|
2780
|
+
function ki() {
|
|
2781
|
+
if (Ci || !U || Object.keys(H).length === 0) return null;
|
|
2782
|
+
Ci = !0;
|
|
2832
2783
|
let e = H;
|
|
2833
2784
|
return H = {}, e;
|
|
2834
2785
|
}
|
|
2835
|
-
function
|
|
2836
|
-
H = e,
|
|
2786
|
+
function Ai(e) {
|
|
2787
|
+
H = e, Ci = !1;
|
|
2788
|
+
}
|
|
2789
|
+
var ji = 256, G = /* @__PURE__ */ new Map();
|
|
2790
|
+
function Mi(e, t, n) {
|
|
2791
|
+
let r = G.get(e);
|
|
2792
|
+
r ? r.push([t, n]) : (p(G, e, ji), G.set(e, [[t, n]]));
|
|
2793
|
+
}
|
|
2794
|
+
function Ni(e, t, n) {
|
|
2795
|
+
let r = G.get(e);
|
|
2796
|
+
G.delete(e);
|
|
2797
|
+
let i = n - t;
|
|
2798
|
+
return r ? Math.max(0, i - Fi(r, t, n)) : Math.max(0, i);
|
|
2799
|
+
}
|
|
2800
|
+
function Pi() {
|
|
2801
|
+
G.clear();
|
|
2802
|
+
}
|
|
2803
|
+
function Fi(e, t, n) {
|
|
2804
|
+
e.sort((e, t) => e[0] - t[0]);
|
|
2805
|
+
let r = 0, i = t;
|
|
2806
|
+
for (let [t, a] of e) {
|
|
2807
|
+
let e = Math.max(t, i), o = Math.min(a, n);
|
|
2808
|
+
o > e && (r += o - e, i = o);
|
|
2809
|
+
}
|
|
2810
|
+
return r;
|
|
2837
2811
|
}
|
|
2838
|
-
var
|
|
2812
|
+
var Ii = {
|
|
2839
2813
|
idleTimeout: 1e3,
|
|
2840
2814
|
finalTimeout: 3e4,
|
|
2841
2815
|
childSpanTimeout: 15e3
|
|
2842
|
-
},
|
|
2816
|
+
}, Li = class {
|
|
2843
2817
|
openChildren = 0;
|
|
2844
2818
|
lastChildEndTime = null;
|
|
2845
2819
|
settleTime = null;
|
|
@@ -2861,25 +2835,19 @@ var Oi = {
|
|
|
2861
2835
|
this.finish(this.openChildren > 0 || this.held ? this.deps.now() : this.trimmedEnd());
|
|
2862
2836
|
}
|
|
2863
2837
|
releaseHold() {
|
|
2864
|
-
this.ended
|
|
2838
|
+
!this.ended && this.held && (this.held = !1, this.openChildren === 0 && (this.settleTime = this.deps.now()), this.armIdle());
|
|
2865
2839
|
}
|
|
2866
2840
|
onSpanEvent(e, t) {
|
|
2867
|
-
|
|
2868
|
-
if (e === "start") {
|
|
2869
|
-
this.onChildStarted();
|
|
2870
|
-
return;
|
|
2871
|
-
}
|
|
2872
|
-
this.onChildEnded(t);
|
|
2873
|
-
}
|
|
2841
|
+
this.ended || t !== this.deps.root && t.traceId === this.deps.root.traceId && (e === "start" ? this.onChildStarted() : this.onChildEnded(t));
|
|
2874
2842
|
}
|
|
2875
2843
|
onChildStarted() {
|
|
2876
2844
|
this.openChildren++, this.clearIdle(), this.openChildren === 1 && this.armChildTimeout();
|
|
2877
2845
|
}
|
|
2878
2846
|
onChildEnded(e) {
|
|
2879
|
-
this.openChildren = Math.max(0, this.openChildren - 1), this.lastChildEndTime = e.endTimeUnixNano || this.deps.now(),
|
|
2847
|
+
this.openChildren = Math.max(0, this.openChildren - 1), this.lastChildEndTime = e.endTimeUnixNano || this.deps.now(), this.openChildren > 0 || (this.clearChildTimeout(), this.armIdle());
|
|
2880
2848
|
}
|
|
2881
2849
|
armIdle() {
|
|
2882
|
-
this.clearIdle(),
|
|
2850
|
+
this.clearIdle(), this.held || (this.idleTimer = this.deps.setTimeout(() => {
|
|
2883
2851
|
this.openChildren > 0 || this.finish(this.trimmedEnd());
|
|
2884
2852
|
}, this.timeouts.idleTimeout));
|
|
2885
2853
|
}
|
|
@@ -2899,55 +2867,56 @@ var Oi = {
|
|
|
2899
2867
|
this.ended || (this.ended = !0, e = Math.max(e, this.deps.rootStartTime), this.clearIdle(), this.clearChildTimeout(), this.finalTimer !== null && (this.deps.clearTimeout(this.finalTimer), this.finalTimer = null), this.unsubscribe(), this.deps.beforeEnd?.(), this.deps.root.end(e), this.deps.setActiveRoot(void 0));
|
|
2900
2868
|
}
|
|
2901
2869
|
};
|
|
2902
|
-
function
|
|
2870
|
+
function Ri(e, t) {
|
|
2903
2871
|
return Math.round((e + (t ?? 0)) * 1e6);
|
|
2904
2872
|
}
|
|
2905
|
-
function
|
|
2873
|
+
function zi(e, t, n, r) {
|
|
2906
2874
|
return r || t - e > n ? t : e;
|
|
2907
2875
|
}
|
|
2908
|
-
function
|
|
2876
|
+
function Bi() {
|
|
2909
2877
|
let e = globalThis.performance;
|
|
2910
2878
|
return !e || typeof e.getEntriesByType != "function" || typeof e.timeOrigin != "number" ? null : e;
|
|
2911
2879
|
}
|
|
2912
|
-
function
|
|
2880
|
+
function Vi(e) {
|
|
2913
2881
|
return e.getEntriesByType("navigation")[0];
|
|
2914
2882
|
}
|
|
2915
|
-
function
|
|
2916
|
-
let e =
|
|
2917
|
-
return e ?
|
|
2883
|
+
function Hi() {
|
|
2884
|
+
let e = Bi();
|
|
2885
|
+
return e ? Ri(e.timeOrigin, Vi(e)?.startTime) : T();
|
|
2918
2886
|
}
|
|
2919
|
-
function
|
|
2887
|
+
function Ui(e, t, n, r) {
|
|
2920
2888
|
let i = t || n || 0;
|
|
2921
2889
|
return i ? Math.round((e + i) * 1e6) : r;
|
|
2922
2890
|
}
|
|
2923
|
-
function
|
|
2924
|
-
let e =
|
|
2925
|
-
if (!e) return
|
|
2926
|
-
let t =
|
|
2927
|
-
return
|
|
2891
|
+
function Wi() {
|
|
2892
|
+
let e = Bi();
|
|
2893
|
+
if (!e) return T();
|
|
2894
|
+
let t = Vi(e);
|
|
2895
|
+
return Ui(e.timeOrigin, t?.loadEventEnd, t?.domContentLoadedEventEnd, T());
|
|
2928
2896
|
}
|
|
2929
|
-
var
|
|
2930
|
-
function
|
|
2897
|
+
var K = null, Gi = null, Ki = null, qi = !1, q = null, Ji = null, J = null, Y = null, X = null, Yi = 0, Z = null, Q = {};
|
|
2898
|
+
function Xi(e) {
|
|
2931
2899
|
return {
|
|
2932
|
-
idleTimeout: e.idleTimeout ??
|
|
2933
|
-
finalTimeout: e.finalTimeout ??
|
|
2934
|
-
childSpanTimeout: e.childSpanTimeout ??
|
|
2900
|
+
idleTimeout: e.idleTimeout ?? Ii.idleTimeout,
|
|
2901
|
+
finalTimeout: e.finalTimeout ?? Ii.finalTimeout,
|
|
2902
|
+
childSpanTimeout: e.childSpanTimeout ?? Ii.childSpanTimeout
|
|
2935
2903
|
};
|
|
2936
2904
|
}
|
|
2937
|
-
function
|
|
2938
|
-
if (
|
|
2939
|
-
e(
|
|
2905
|
+
function Zi(e) {
|
|
2906
|
+
if (K && !K.isEnded) try {
|
|
2907
|
+
e(K);
|
|
2940
2908
|
} catch (e) {
|
|
2941
|
-
|
|
2909
|
+
q?.config.debug && console.error("Flare: browser tracing controller callback failed", e);
|
|
2942
2910
|
}
|
|
2943
2911
|
}
|
|
2944
|
-
function
|
|
2945
|
-
|
|
2912
|
+
function Qi(e) {
|
|
2913
|
+
Zi(() => e());
|
|
2946
2914
|
}
|
|
2947
|
-
function
|
|
2915
|
+
function $i(e, t) {
|
|
2948
2916
|
let { spanType: n, startTimeUnixNano: r, name: i = location.pathname, urlOverride: a, hold: o, backdated: s } = t, c;
|
|
2917
|
+
Pi();
|
|
2949
2918
|
try {
|
|
2950
|
-
let t =
|
|
2919
|
+
let t = Ar(e.config, a);
|
|
2951
2920
|
c = e.startSpan(i, {
|
|
2952
2921
|
spanType: n,
|
|
2953
2922
|
startTimeUnixNano: r,
|
|
@@ -2956,23 +2925,23 @@ function Wi(e, t) {
|
|
|
2956
2925
|
...t,
|
|
2957
2926
|
"flare.route.source": "url"
|
|
2958
2927
|
}
|
|
2959
|
-
}),
|
|
2928
|
+
}), K = new Li({
|
|
2960
2929
|
root: c,
|
|
2961
2930
|
addSpanListener: (t) => e.tracer.addSpanListener(t),
|
|
2962
2931
|
setActiveRoot: (t) => e.tracer.setActiveRoot(t),
|
|
2963
|
-
now:
|
|
2932
|
+
now: T,
|
|
2964
2933
|
setTimeout: (e, t) => setTimeout(e, t),
|
|
2965
2934
|
clearTimeout: (e) => clearTimeout(e),
|
|
2966
2935
|
rootStartTime: r,
|
|
2967
|
-
endFloor: n === b.Pageload && s ?
|
|
2936
|
+
endFloor: n === b.Pageload && s ? Wi : () => r,
|
|
2968
2937
|
held: o,
|
|
2969
|
-
beforeEnd: n === b.Pageload ? () =>
|
|
2970
|
-
},
|
|
2938
|
+
beforeEnd: n === b.Pageload ? () => ta(c, e) : void 0
|
|
2939
|
+
}, Xi(e.config)), Ji = c, n === b.Pageload && (X = c, Yi = r, Z = {
|
|
2971
2940
|
name: i,
|
|
2972
2941
|
source: "url"
|
|
2973
|
-
},
|
|
2942
|
+
}, Q = { ...t });
|
|
2974
2943
|
} catch (t) {
|
|
2975
|
-
|
|
2944
|
+
K = null, Ji = null, n === b.Pageload && (X = null, Yi = 0, Z = null, Q = {});
|
|
2976
2945
|
try {
|
|
2977
2946
|
c?.end();
|
|
2978
2947
|
} catch {}
|
|
@@ -2982,35 +2951,35 @@ function Wi(e, t) {
|
|
|
2982
2951
|
e.config.debug && console.error("Flare: failed to start browser tracing root", t);
|
|
2983
2952
|
}
|
|
2984
2953
|
}
|
|
2985
|
-
function
|
|
2986
|
-
|
|
2954
|
+
function ea(e, t) {
|
|
2955
|
+
Zi((e) => e.endNow()), $i(e, {
|
|
2987
2956
|
spanType: b.Navigation,
|
|
2988
|
-
startTimeUnixNano:
|
|
2957
|
+
startTimeUnixNano: T(),
|
|
2989
2958
|
name: t.path,
|
|
2990
2959
|
urlOverride: t.url,
|
|
2991
2960
|
hold: t.hold
|
|
2992
2961
|
});
|
|
2993
2962
|
}
|
|
2994
|
-
function
|
|
2963
|
+
function ta(e, t) {
|
|
2995
2964
|
try {
|
|
2996
|
-
let t =
|
|
2965
|
+
let t = Oi();
|
|
2997
2966
|
if (!t) return;
|
|
2998
|
-
for (let [n, r] of Object.entries(
|
|
2967
|
+
for (let [n, r] of Object.entries(bi(t))) e.setAttribute(n, r);
|
|
2999
2968
|
} catch (e) {
|
|
3000
2969
|
t.config.debug && console.error("Flare: failed to stamp web vitals on the pageload root", e);
|
|
3001
2970
|
}
|
|
3002
2971
|
}
|
|
3003
|
-
function
|
|
3004
|
-
let t =
|
|
2972
|
+
function na(e) {
|
|
2973
|
+
let t = X, n = Z;
|
|
3005
2974
|
if (!t || !n) return;
|
|
3006
|
-
let r =
|
|
2975
|
+
let r = ki();
|
|
3007
2976
|
if (r) try {
|
|
3008
|
-
let i =
|
|
2977
|
+
let i = xi({
|
|
3009
2978
|
vitals: r,
|
|
3010
|
-
rootStartTimeUnixNano:
|
|
2979
|
+
rootStartTimeUnixNano: Yi,
|
|
3011
2980
|
routeName: n.name,
|
|
3012
2981
|
routeSource: n.source,
|
|
3013
|
-
contextAttributes:
|
|
2982
|
+
contextAttributes: Q
|
|
3014
2983
|
});
|
|
3015
2984
|
if (!i) return;
|
|
3016
2985
|
e.startSpan(i.name, {
|
|
@@ -3021,38 +2990,38 @@ function qi(e) {
|
|
|
3021
2990
|
attributes: i.attributes
|
|
3022
2991
|
}).end(i.endTimeUnixNano);
|
|
3023
2992
|
} catch (t) {
|
|
3024
|
-
|
|
2993
|
+
Ai(r), e.config.debug && console.error("Flare: failed to emit web vitals", t);
|
|
3025
2994
|
}
|
|
3026
2995
|
}
|
|
3027
|
-
function
|
|
3028
|
-
if (typeof window > "u" || typeof history > "u" || typeof location > "u" ||
|
|
3029
|
-
|
|
3030
|
-
onUrlChanged: (t) =>
|
|
3031
|
-
onNavigationStart: (t) =>
|
|
3032
|
-
onRouteName: (e, t) =>
|
|
2996
|
+
function ra(e) {
|
|
2997
|
+
if (typeof window > "u" || typeof history > "u" || typeof location > "u" || Gi) return;
|
|
2998
|
+
q = e, Ki = fn({
|
|
2999
|
+
onUrlChanged: (t) => ea(e, { path: t }),
|
|
3000
|
+
onNavigationStart: (t) => ea(e, t),
|
|
3001
|
+
onRouteName: (e, t) => oa(e, t),
|
|
3033
3002
|
onNavigationSettle: (e, t) => {
|
|
3034
|
-
|
|
3003
|
+
oa(e, t), Zi((e) => e.releaseHold());
|
|
3035
3004
|
},
|
|
3036
3005
|
onSourceUnregistered: () => {
|
|
3037
|
-
|
|
3006
|
+
Zi((e) => e.releaseHold()), J = null, Y = null;
|
|
3038
3007
|
}
|
|
3039
3008
|
});
|
|
3040
|
-
let t =
|
|
3041
|
-
if (
|
|
3009
|
+
let t = Xi(e.config).finalTimeout * 1e6, n = Hi(), r = zi(n, T(), t, qi);
|
|
3010
|
+
if (qi = !0, $i(e, {
|
|
3042
3011
|
spanType: b.Pageload,
|
|
3043
3012
|
startTimeUnixNano: r,
|
|
3044
3013
|
backdated: r === n
|
|
3045
|
-
}),
|
|
3046
|
-
let e =
|
|
3047
|
-
|
|
3014
|
+
}), Ti(), J) {
|
|
3015
|
+
let e = J, t = Y;
|
|
3016
|
+
J = null, Y = null, mn(t) && oa(e);
|
|
3048
3017
|
}
|
|
3049
3018
|
function i() {
|
|
3050
|
-
if (
|
|
3051
|
-
|
|
3019
|
+
if (K && !K.isEnded) try {
|
|
3020
|
+
K.endNow();
|
|
3052
3021
|
} catch (t) {
|
|
3053
3022
|
e.config.debug && console.error("Flare: failed to end tracing root on page hide", t);
|
|
3054
3023
|
}
|
|
3055
|
-
|
|
3024
|
+
na(e);
|
|
3056
3025
|
try {
|
|
3057
3026
|
e.tracer.flush({ keepalive: !0 });
|
|
3058
3027
|
} catch (t) {
|
|
@@ -3062,48 +3031,48 @@ function Ji(e) {
|
|
|
3062
3031
|
let a = () => i(), o = () => {
|
|
3063
3032
|
document.visibilityState === "hidden" && i();
|
|
3064
3033
|
};
|
|
3065
|
-
window.addEventListener("pagehide", a), document.addEventListener("visibilitychange", o),
|
|
3034
|
+
window.addEventListener("pagehide", a), document.addEventListener("visibilitychange", o), Gi = () => {
|
|
3066
3035
|
window.removeEventListener("pagehide", a), document.removeEventListener("visibilitychange", o);
|
|
3067
3036
|
};
|
|
3068
3037
|
}
|
|
3069
|
-
function
|
|
3070
|
-
|
|
3038
|
+
function ia() {
|
|
3039
|
+
Zi((e) => e.endNow()), K = null, Gi &&= (Gi(), null), Ki?.(), Ki = null, q = null, Ji = null, J = null, Y = null, Di(), Pi(), X = null, Yi = 0, Z = null, Q = {};
|
|
3071
3040
|
}
|
|
3072
|
-
function
|
|
3073
|
-
if (e.url === void 0 || !
|
|
3041
|
+
function aa(e) {
|
|
3042
|
+
if (e.url === void 0 || !q) return null;
|
|
3074
3043
|
try {
|
|
3075
|
-
return
|
|
3044
|
+
return jr(q.config, e.url);
|
|
3076
3045
|
} catch {
|
|
3077
3046
|
return null;
|
|
3078
3047
|
}
|
|
3079
3048
|
}
|
|
3080
|
-
function
|
|
3081
|
-
let n =
|
|
3049
|
+
function oa(e, t) {
|
|
3050
|
+
let n = Ji;
|
|
3082
3051
|
if (!n) {
|
|
3083
|
-
|
|
3052
|
+
J = e, Y = t ?? null;
|
|
3084
3053
|
return;
|
|
3085
3054
|
}
|
|
3086
|
-
let r =
|
|
3087
|
-
|
|
3055
|
+
let r = aa(e);
|
|
3056
|
+
Qi(() => {
|
|
3088
3057
|
if (n.name = e.name, n.setAttribute("flare.entry_point.handler.identifier", e.name), n.setAttribute("http.route", e.name), n.setAttribute("flare.route.source", e.source), r) for (let [e, t] of Object.entries(r)) n.setAttribute(e, t);
|
|
3089
|
-
}), n ===
|
|
3058
|
+
}), n === X && (Z = {
|
|
3090
3059
|
name: e.name,
|
|
3091
3060
|
source: e.source
|
|
3092
|
-
}, r && (
|
|
3093
|
-
...
|
|
3061
|
+
}, r && (Q = {
|
|
3062
|
+
...Q,
|
|
3094
3063
|
...r
|
|
3095
3064
|
}));
|
|
3096
3065
|
}
|
|
3097
|
-
function
|
|
3098
|
-
return
|
|
3066
|
+
function sa() {
|
|
3067
|
+
return q;
|
|
3099
3068
|
}
|
|
3100
|
-
var
|
|
3101
|
-
function
|
|
3102
|
-
return e !== void 0 && !
|
|
3069
|
+
var ca = T;
|
|
3070
|
+
function la(e) {
|
|
3071
|
+
return e !== void 0 && !sa()?.tracer.claimSpanSlot(e) ? null : gt();
|
|
3103
3072
|
}
|
|
3104
|
-
function
|
|
3073
|
+
function ua() {
|
|
3105
3074
|
try {
|
|
3106
|
-
let e =
|
|
3075
|
+
let e = sa()?.tracer.getActiveSpan();
|
|
3107
3076
|
return !e || !e.isRecording ? null : {
|
|
3108
3077
|
traceId: e.traceId,
|
|
3109
3078
|
parentSpanId: e.spanId
|
|
@@ -3112,15 +3081,16 @@ function ta() {
|
|
|
3112
3081
|
return null;
|
|
3113
3082
|
}
|
|
3114
3083
|
}
|
|
3115
|
-
function
|
|
3084
|
+
function da(e, t) {
|
|
3116
3085
|
return e && t && e.traceId === t.traceId ? e : t;
|
|
3117
3086
|
}
|
|
3118
|
-
function
|
|
3087
|
+
function fa(e) {
|
|
3119
3088
|
try {
|
|
3120
|
-
let t =
|
|
3089
|
+
let t = sa();
|
|
3121
3090
|
if (!t) return;
|
|
3122
3091
|
let n = t.tracer.getActiveSpan();
|
|
3123
3092
|
if (!n || n.traceId !== e.parent.traceId || !n.isRecording) return;
|
|
3093
|
+
let r = Ni(e.spanId, e.startTimeUnixNano, e.endTimeUnixNano);
|
|
3124
3094
|
t.startSpan(e.name, {
|
|
3125
3095
|
spanId: e.spanId,
|
|
3126
3096
|
parent: {
|
|
@@ -3131,25 +3101,26 @@ function ra(e) {
|
|
|
3131
3101
|
startTimeUnixNano: e.startTimeUnixNano,
|
|
3132
3102
|
attributes: {
|
|
3133
3103
|
...e.attributes,
|
|
3134
|
-
"flare.component.name": e.name
|
|
3104
|
+
"flare.component.name": e.name,
|
|
3105
|
+
"flare.component.self_time_ns": r
|
|
3135
3106
|
},
|
|
3136
3107
|
claimed: !0
|
|
3137
|
-
}).end(e.endTimeUnixNano);
|
|
3108
|
+
}).end(e.endTimeUnixNano), Mi(e.parent.parentSpanId, e.startTimeUnixNano, e.endTimeUnixNano);
|
|
3138
3109
|
} catch {}
|
|
3139
3110
|
}
|
|
3140
|
-
function
|
|
3111
|
+
function pa() {
|
|
3141
3112
|
try {
|
|
3142
3113
|
return !1;
|
|
3143
3114
|
} catch {
|
|
3144
3115
|
return !1;
|
|
3145
3116
|
}
|
|
3146
3117
|
}
|
|
3147
|
-
function
|
|
3118
|
+
function ma(e) {
|
|
3148
3119
|
let { packageName: t } = e, n = e.injectInstruction ?? `Import ${t}/inject and pass the @flareapp/electron/renderer instance instead.`, r = null;
|
|
3149
3120
|
function i(e) {
|
|
3150
3121
|
if (typeof window < "u" && window.__flare) {
|
|
3151
3122
|
let e = `[flare] ${t} (web root) was imported in a renderer where the Electron bridge is present, pulling the keyed @flareapp/js singleton into the renderer. ` + n;
|
|
3152
|
-
if (
|
|
3123
|
+
if (pa()) throw Error(e);
|
|
3153
3124
|
console.warn(e);
|
|
3154
3125
|
}
|
|
3155
3126
|
r = e;
|
|
@@ -3164,23 +3135,22 @@ function aa(e) {
|
|
|
3164
3135
|
resolveFlare: a
|
|
3165
3136
|
};
|
|
3166
3137
|
}
|
|
3167
|
-
function
|
|
3168
|
-
typeof window
|
|
3138
|
+
function ha() {
|
|
3139
|
+
typeof window < "u" && (window.addEventListener("error", (e) => {
|
|
3169
3140
|
let t = window.flare;
|
|
3170
3141
|
t && e.error instanceof Error && t.reportSilently(e.error);
|
|
3171
3142
|
}), window.addEventListener("unhandledrejection", (e) => {
|
|
3172
3143
|
let t = window.flare;
|
|
3173
|
-
t &&
|
|
3144
|
+
t && xe(t, e.reason);
|
|
3174
3145
|
}));
|
|
3175
3146
|
}
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
super(e, t, n, r, new fr()), this.setSdkInfo({
|
|
3147
|
+
// node_modules/@flareapp/js/dist/index.mjs
|
|
3148
|
+
var ga = new class extends Rt {
|
|
3149
|
+
constructor(e = new Ne(), t = Cr, n = new wr(), r = new tt()) {
|
|
3150
|
+
super(e, t, n, r, new mr()), this.setSdkInfo({
|
|
3181
3151
|
name: "@flareapp/js",
|
|
3182
|
-
version:
|
|
3183
|
-
}), this.setFramework({ name:
|
|
3152
|
+
version: Tr
|
|
3153
|
+
}), this.setFramework({ name: Oe.Js });
|
|
3184
3154
|
}
|
|
3185
3155
|
removeTracingSubscription = null;
|
|
3186
3156
|
stopBreadcrumbs = null;
|
|
@@ -3188,27 +3158,25 @@ var sa = new class extends zt {
|
|
|
3188
3158
|
let t = this.config.enableTracing, n = this.config.enableBreadcrumbs;
|
|
3189
3159
|
super.configure(e);
|
|
3190
3160
|
let r = this.config.enableTracing, i = this.config.enableBreadcrumbs;
|
|
3191
|
-
return !n && i ? this.stopBreadcrumbs =
|
|
3161
|
+
return !n && i ? this.stopBreadcrumbs = pr({
|
|
3192
3162
|
config: () => this.config,
|
|
3193
3163
|
record: (e, t, n) => this.addBreadcrumb(e, t, n)
|
|
3194
|
-
}) : n && !i && (this.stopBreadcrumbs?.(), this.stopBreadcrumbs = null), !t && r ? (this.removeTracingSubscription =
|
|
3164
|
+
}) : n && !i && (this.stopBreadcrumbs?.(), this.stopBreadcrumbs = null), !t && r ? (this.removeTracingSubscription = Wn(() => dr(this, Zn())), ra(this)) : t && !r && (ia(), this.removeTracingSubscription?.(), this.removeTracingSubscription = null), this;
|
|
3195
3165
|
}
|
|
3196
3166
|
}();
|
|
3197
|
-
typeof window < "u" && window && (window.flare =
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
for (let t = 0; t < ca.length; t++) if (e.message.toLowerCase().includes(ca[t].toLowerCase())) return !1;
|
|
3167
|
+
typeof window < "u" && window && (window.flare = ga, ha());
|
|
3168
|
+
// src/plugins/flare.ts
|
|
3169
|
+
var _a = /* @__PURE__ */ "fancybox,jQuery,Modernizr,cssua,ScrollTrigger,calcSelectArrowDimensions,this.elements.$menu.smartmenus,woocommerce,elementor,avadaAddQuantityBoxes,fusion,FLBuilderAccordion,_initLayerSlider,Divi,gsap,Swiper,mailchimp,_AutofillCallbackHandler,$(...),imagesLoaded,masonry,accessing a cross-origin frame,scrollspy,No layout mode: packery,Vimeo,Network Error,Request aborted,timeout exceeded,Loading chunk,TrackerStorageType,Failed to load because no supported source was found.,The element has no supported sources.,grecaptcha,reCAPTCHA Timeout,lightbox,priceCalcElement,AwesomeMenu,breakdance,Maximum call stack size exceeded.,Cookies is not defined,getUniqId,Cannot read properties of null (reading 'classList'),n.getModal,e.target.closest is not a function,Cannot read properties of undefined (reading 'Item'),Cannot read properties of undefined (reading 'clientHeight'),refreshFsLightbox,fbq,FacebookSignal,Cannot assign to read only property 'push' of object '[object Array]',naturalWidth,Request failed with status code,Can't find variable: _,astraNavMenuTogglePro,The operation was aborted.,Failed to fetch dynamically imported module:,Importing a module script failed.,The request is not allowed by the user agent,this.Vi.close,The operation is insecure.,gformValidateFileSize,BreakdanceEntrance,Cannot read properties of undefined (reading '__'),The play() request was interrupted because video-only,Animation is interrupted by user input.,Animation is already playing.,Position \"NaN\" is not reachable.,Cannot redefine property: onbeforeunload,e.remove is not a function,Can't find variable: Cookies,Load failed,wp is not defined,Backbone,Invalid attempt to destructure non-iterable instance,Can't find variable: EmptyRanges,Cannot read properties of undefined (reading 'setLocaleData'),Function snaptr not implemented.,window.sbi_init is not a function,thehotelsnetwork,Reepay,wpcf7,et_pb_,mediaelementplayer,pys_generate_token,webkit.messageHandlers,__firefox__,window.ethereum,Blocked a frame with origin,NetworkError when attempting to fetch resource,play() failed because the user didn,Error invoking postMessage: Java exception,Failed to load CSS,Failed to load script,removeAttribute is not a function,Invalid site key,Handling is disabled".split(",");
|
|
3170
|
+
/(meta-external|facebookexternalhit|googlebot|bingbot|slurp|duckduckbot|baiduspider|yandexbot|twitterbot|linkedinbot|semrushbot|ahrefsbot|applebot|bytespider|crawler|spider|HeadlessChrome|lightpanda)/i.test(navigator.userAgent) || (ga.light("5pqzBljrmDvquWZYSrSUKldIUREtPyB3"), ga.addContext("version", "4.11.3"), ga.configure({ beforeEvaluate: (e) => {
|
|
3171
|
+
for (let t = 0; t < _a.length; t++) if (e.message.toLowerCase().includes(_a[t].toLowerCase())) return !1;
|
|
3203
3172
|
return e;
|
|
3204
3173
|
} }));
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
return pe(e, t, pa);
|
|
3174
|
+
// node_modules/@flareapp/vue/dist/FlareErrorBoundary-CCFeCLtl.mjs
|
|
3175
|
+
var { registerDefaultFlare: va, resolveFlare: ya } = ma({ packageName: "@flareapp/vue" }), ba = "2.13.0", xa = 50, Sa = /password|passwd|pwd|token|secret|authorization|\bauth\b|bearer|oauth|credentials?|cookie|api[-_]?key|private[-_]?key|session|csrf|xsrf|\bpin\b|\bssn\b|card[-_]?number|\bcvv\b/i;
|
|
3176
|
+
function Ca(e, t = !1) {
|
|
3177
|
+
return pe(e, t, Sa);
|
|
3210
3178
|
}
|
|
3211
|
-
var
|
|
3179
|
+
var wa = 1e3, Ta = 100, Ea = 100, Da = {
|
|
3212
3180
|
"setup function": "setup",
|
|
3213
3181
|
"render function": "render",
|
|
3214
3182
|
"component update": "render",
|
|
@@ -3277,92 +3245,92 @@ function $(e) {
|
|
|
3277
3245
|
let t = e.$options;
|
|
3278
3246
|
return t.__name || t.name || "AnonymousComponent";
|
|
3279
3247
|
}
|
|
3280
|
-
function
|
|
3248
|
+
function Oa(e) {
|
|
3281
3249
|
let t = [], n = e;
|
|
3282
|
-
for (; n && t.length <
|
|
3250
|
+
for (; n && t.length < xa;) t.push($(n)), n = n.$parent;
|
|
3283
3251
|
return t;
|
|
3284
3252
|
}
|
|
3285
|
-
function
|
|
3253
|
+
function ka(e, t, n = Sa) {
|
|
3286
3254
|
return oe(e, {
|
|
3287
3255
|
mode: "display",
|
|
3288
3256
|
maxDepth: t,
|
|
3289
|
-
arrayCap:
|
|
3290
|
-
objectKeyCap:
|
|
3291
|
-
stringCap:
|
|
3257
|
+
arrayCap: Ta,
|
|
3258
|
+
objectKeyCap: Ea,
|
|
3259
|
+
stringCap: wa,
|
|
3292
3260
|
denylist: n
|
|
3293
3261
|
});
|
|
3294
3262
|
}
|
|
3295
|
-
function
|
|
3263
|
+
function Aa(e, t) {
|
|
3296
3264
|
let n = [], r = e;
|
|
3297
|
-
for (; r && n.length <
|
|
3265
|
+
for (; r && n.length < xa;) {
|
|
3298
3266
|
let e = r.$options, i = {
|
|
3299
3267
|
component: $(r),
|
|
3300
3268
|
file: e.__file ?? null
|
|
3301
3269
|
};
|
|
3302
|
-
t.attachProps && r.$props && (i.props =
|
|
3270
|
+
t.attachProps && r.$props && (i.props = ka(r.$props, t.propsMaxDepth, t.propsDenylist)), n.push(i), r = r.$parent;
|
|
3303
3271
|
}
|
|
3304
3272
|
return n;
|
|
3305
3273
|
}
|
|
3306
|
-
function
|
|
3307
|
-
return
|
|
3274
|
+
function ja(e) {
|
|
3275
|
+
return Da[e] ?? "unknown";
|
|
3308
3276
|
}
|
|
3309
|
-
var
|
|
3310
|
-
function
|
|
3277
|
+
var Ma = 2;
|
|
3278
|
+
function Na(e) {
|
|
3311
3279
|
return typeof e == "string" ? e : typeof e == "symbol" ? e.toString() : null;
|
|
3312
3280
|
}
|
|
3313
|
-
function
|
|
3314
|
-
return Array.isArray(e) ? e.map((e) => !e || typeof e != "object" ? "unknown" :
|
|
3281
|
+
function Pa(e) {
|
|
3282
|
+
return Array.isArray(e) ? e.map((e) => !e || typeof e != "object" ? "unknown" : Na(e.name) ?? "unknown") : [];
|
|
3315
3283
|
}
|
|
3316
|
-
function
|
|
3284
|
+
function Fa(e) {
|
|
3317
3285
|
return !e || typeof e != "object" ? {} : e;
|
|
3318
3286
|
}
|
|
3319
|
-
function
|
|
3287
|
+
function Ia(e, t = {}) {
|
|
3320
3288
|
if (!e || typeof e != "object" || !("currentRoute" in e)) return null;
|
|
3321
3289
|
let n = e.currentRoute;
|
|
3322
3290
|
if (!n || typeof n != "object" || !("value" in n)) return null;
|
|
3323
3291
|
let r = n.value;
|
|
3324
3292
|
if (!r || typeof r != "object") return null;
|
|
3325
|
-
let i = r, a = t.denylist ??
|
|
3293
|
+
let i = r, a = t.denylist ?? Sa, o = ge(Fa(i.params), a), s = ge(Fa(i.query), a);
|
|
3326
3294
|
return {
|
|
3327
|
-
name:
|
|
3295
|
+
name: Na(i.name),
|
|
3328
3296
|
path: typeof i.path == "string" ? i.path : "",
|
|
3329
|
-
fullPath: typeof i.fullPath == "string" ?
|
|
3330
|
-
params:
|
|
3331
|
-
query:
|
|
3297
|
+
fullPath: typeof i.fullPath == "string" ? he(i.fullPath, a) : "",
|
|
3298
|
+
params: ka(o, Ma, a),
|
|
3299
|
+
query: ka(s, Ma, a),
|
|
3332
3300
|
hash: typeof i.hash == "string" ? i.hash : "",
|
|
3333
|
-
matched:
|
|
3301
|
+
matched: Pa(i.matched)
|
|
3334
3302
|
};
|
|
3335
3303
|
}
|
|
3336
|
-
var
|
|
3304
|
+
var La = ne({
|
|
3337
3305
|
sdkName: "@flareapp/vue",
|
|
3338
|
-
sdkVersion:
|
|
3339
|
-
frameworkName:
|
|
3306
|
+
sdkVersion: ba,
|
|
3307
|
+
frameworkName: Oe.Vue
|
|
3340
3308
|
});
|
|
3341
|
-
function
|
|
3342
|
-
|
|
3309
|
+
function Ra(e) {
|
|
3310
|
+
La.registerSdkIdentity(e);
|
|
3343
3311
|
}
|
|
3344
|
-
function
|
|
3345
|
-
|
|
3312
|
+
function za(e, t) {
|
|
3313
|
+
La.tagFramework(e, t);
|
|
3346
3314
|
}
|
|
3347
|
-
var
|
|
3348
|
-
function
|
|
3315
|
+
var Ba = Symbol("flareComponentProfile");
|
|
3316
|
+
function Va(e) {
|
|
3349
3317
|
for (let t = e.parent; t; t = t.parent) {
|
|
3350
|
-
let e = t[
|
|
3318
|
+
let e = t[Ba];
|
|
3351
3319
|
if (e) return e.marker;
|
|
3352
3320
|
}
|
|
3353
3321
|
return null;
|
|
3354
3322
|
}
|
|
3355
|
-
function
|
|
3323
|
+
function Ha(e) {
|
|
3356
3324
|
return {
|
|
3357
3325
|
beforeMount() {
|
|
3358
3326
|
try {
|
|
3359
|
-
let t =
|
|
3327
|
+
let t = ua();
|
|
3360
3328
|
if (!t) return;
|
|
3361
3329
|
let n = $(this);
|
|
3362
3330
|
if (!e(n)) return;
|
|
3363
|
-
let r = this.$, i =
|
|
3331
|
+
let r = this.$, i = da(Va(r), t) ?? t, a = la(i.traceId);
|
|
3364
3332
|
if (!a) return;
|
|
3365
|
-
r[
|
|
3333
|
+
r[Ba] = {
|
|
3366
3334
|
marker: {
|
|
3367
3335
|
traceId: i.traceId,
|
|
3368
3336
|
parentSpanId: a
|
|
@@ -3370,7 +3338,7 @@ function Na(e) {
|
|
|
3370
3338
|
pending: {
|
|
3371
3339
|
name: n,
|
|
3372
3340
|
spanId: a,
|
|
3373
|
-
startNano:
|
|
3341
|
+
startNano: ca(),
|
|
3374
3342
|
parent: i
|
|
3375
3343
|
}
|
|
3376
3344
|
};
|
|
@@ -3378,77 +3346,64 @@ function Na(e) {
|
|
|
3378
3346
|
},
|
|
3379
3347
|
mounted() {
|
|
3380
3348
|
try {
|
|
3381
|
-
let e = this.$[
|
|
3349
|
+
let e = this.$[Ba], t = e?.pending;
|
|
3382
3350
|
if (!e || !t) return;
|
|
3383
|
-
e.pending = null,
|
|
3351
|
+
e.pending = null, fa({
|
|
3384
3352
|
name: t.name,
|
|
3385
3353
|
spanId: t.spanId,
|
|
3386
3354
|
parent: t.parent,
|
|
3387
3355
|
startTimeUnixNano: t.startNano,
|
|
3388
|
-
endTimeUnixNano:
|
|
3356
|
+
endTimeUnixNano: ca()
|
|
3389
3357
|
});
|
|
3390
3358
|
} catch {}
|
|
3391
3359
|
}
|
|
3392
3360
|
};
|
|
3393
3361
|
}
|
|
3394
|
-
var
|
|
3395
|
-
function
|
|
3396
|
-
return
|
|
3362
|
+
var Ua = 8;
|
|
3363
|
+
function Wa(e, t = {}) {
|
|
3364
|
+
return Ga(e) ? kr(e, (n) => Ka(e, n, t)) : () => {};
|
|
3397
3365
|
}
|
|
3398
|
-
function
|
|
3366
|
+
function Ga(e) {
|
|
3399
3367
|
return typeof e != "object" || !e ? !1 : "beforeEach" in e && typeof e.beforeEach == "function" && "afterEach" in e && typeof e.afterEach == "function";
|
|
3400
3368
|
}
|
|
3401
|
-
function
|
|
3402
|
-
let
|
|
3403
|
-
t(() =>
|
|
3404
|
-
|
|
3405
|
-
|
|
3369
|
+
function Ka(e, t, n) {
|
|
3370
|
+
let r = pn();
|
|
3371
|
+
t(() => r.unregister());
|
|
3372
|
+
let i = n.includeRouterBase ? rn(e.options?.history?.base) : "";
|
|
3373
|
+
function a(e) {
|
|
3374
|
+
return nn(() => e.matched?.[e.matched.length - 1]?.path, e.path, o(e), i);
|
|
3406
3375
|
}
|
|
3407
|
-
function
|
|
3376
|
+
function o(t) {
|
|
3408
3377
|
let n = t.fullPath ?? t.path;
|
|
3409
|
-
if (n) return
|
|
3378
|
+
if (n) return sn(() => e.resolve?.(n)?.href, n);
|
|
3410
3379
|
}
|
|
3411
|
-
function
|
|
3380
|
+
function s(e) {
|
|
3412
3381
|
return !e || !e.matched || e.matched.length === 0;
|
|
3413
3382
|
}
|
|
3414
|
-
let
|
|
3383
|
+
let c = !1, l = !1;
|
|
3415
3384
|
try {
|
|
3416
3385
|
let t = e.currentRoute?.value;
|
|
3417
|
-
t && t.matched && t.matched.length > 0 && (
|
|
3386
|
+
t && t.matched && t.matched.length > 0 && (r.setActiveRouteName(a(t)), c = !0);
|
|
3418
3387
|
} catch {}
|
|
3419
|
-
t(e.beforeEach(
|
|
3420
|
-
|
|
3421
|
-
n.setActiveRouteName(r(e));
|
|
3422
|
-
return;
|
|
3423
|
-
}
|
|
3424
|
-
e.fullPath && t?.fullPath && e.fullPath === t.fullPath || (s || (s = !0, n.startNavigation({
|
|
3388
|
+
t(e.beforeEach(Er((e, t) => {
|
|
3389
|
+
!c && s(t) ? r.setActiveRouteName(a(e)) : e.fullPath && t?.fullPath && e.fullPath === t.fullPath || (l || (l = !0, r.startNavigation({
|
|
3425
3390
|
path: e.path,
|
|
3426
|
-
url:
|
|
3391
|
+
url: o(e),
|
|
3427
3392
|
hold: !0
|
|
3428
|
-
})),
|
|
3429
|
-
}))), t(e.afterEach(
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
if (s) {
|
|
3435
|
-
if (!i) {
|
|
3436
|
-
s = !1, n.settleNavigation(r(e));
|
|
3437
|
-
return;
|
|
3438
|
-
}
|
|
3439
|
-
i.type !== Pa && (s = !1, n.settleNavigation(r(t)));
|
|
3440
|
-
}
|
|
3441
|
-
}))), typeof e.onError == "function" && t(e.onError(wr(() => {
|
|
3442
|
-
if (!s) return;
|
|
3443
|
-
s = !1;
|
|
3393
|
+
})), r.setActiveRouteName(a(e)));
|
|
3394
|
+
}))), t(e.afterEach(Er((e, t, n) => {
|
|
3395
|
+
!c && s(t) ? n || (c = !0, r.setActiveRouteName(a(e))) : l && (n ? n.type !== Ua && (l = !1, r.settleNavigation(a(t))) : (l = !1, r.settleNavigation(a(e))));
|
|
3396
|
+
}))), typeof e.onError == "function" && t(e.onError(Er(() => {
|
|
3397
|
+
if (!l) return;
|
|
3398
|
+
l = !1;
|
|
3444
3399
|
let t = e.currentRoute?.value;
|
|
3445
|
-
|
|
3400
|
+
r.settleNavigation(t ? a(t) : {
|
|
3446
3401
|
name: "",
|
|
3447
3402
|
source: "url"
|
|
3448
3403
|
});
|
|
3449
3404
|
})));
|
|
3450
3405
|
}
|
|
3451
|
-
function
|
|
3406
|
+
function qa(e) {
|
|
3452
3407
|
let t = {
|
|
3453
3408
|
info: e.vue.info,
|
|
3454
3409
|
errorOrigin: e.vue.errorOrigin,
|
|
@@ -3456,22 +3411,22 @@ function Ra(e) {
|
|
|
3456
3411
|
componentHierarchy: e.vue.componentHierarchy,
|
|
3457
3412
|
componentHierarchyFrames: e.vue.componentHierarchyFrames
|
|
3458
3413
|
};
|
|
3459
|
-
return e.vue.componentProps && (t.componentProps = e.vue.componentProps), e.vue.route && (t.route = e.vue.route),
|
|
3414
|
+
return e.vue.componentProps && (t.componentProps = e.vue.componentProps), e.vue.route && (t.route = e.vue.route), Se("vue", t);
|
|
3460
3415
|
}
|
|
3461
|
-
function
|
|
3416
|
+
function Ja(e) {
|
|
3462
3417
|
let t = {
|
|
3463
3418
|
type: e.vue.type,
|
|
3464
3419
|
info: e.vue.info,
|
|
3465
3420
|
componentName: e.vue.componentName,
|
|
3466
3421
|
componentTrace: e.vue.componentTrace
|
|
3467
3422
|
};
|
|
3468
|
-
return e.vue.route && (t.route = e.vue.route),
|
|
3423
|
+
return e.vue.route && (t.route = e.vue.route), Se("vue", t);
|
|
3469
3424
|
}
|
|
3470
|
-
var
|
|
3471
|
-
if (
|
|
3472
|
-
let n =
|
|
3473
|
-
|
|
3474
|
-
let r = t?.attachProps ?? !1, i = t?.propsMaxDepth ?? 2, a =
|
|
3425
|
+
var Ya = /* @__PURE__ */ new WeakSet(), Xa = (e, t) => {
|
|
3426
|
+
if (Ya.has(e)) return;
|
|
3427
|
+
let n = ya(t?.flare);
|
|
3428
|
+
Ya.add(e), t?.flare || Ra(n), za(n, e.version);
|
|
3429
|
+
let r = t?.attachProps ?? !1, i = t?.propsMaxDepth ?? 2, a = Ca(t?.propsDenylist, t?.replaceDefaultDenylist), o = e.config.errorHandler;
|
|
3475
3430
|
if (e.config.errorHandler = (s, c, l) => {
|
|
3476
3431
|
let u = te(s);
|
|
3477
3432
|
t?.beforeEvaluate?.({
|
|
@@ -3479,58 +3434,53 @@ var Ba = /* @__PURE__ */ new WeakSet(), Va = (e, t) => {
|
|
|
3479
3434
|
instance: c,
|
|
3480
3435
|
info: l
|
|
3481
3436
|
});
|
|
3482
|
-
let d =
|
|
3437
|
+
let d = ja(l), f = $(c), ee = r && c?.$props ? ka(c.$props, i, a) : void 0, ne = Oa(c), p = Aa(c, {
|
|
3483
3438
|
attachProps: r,
|
|
3484
3439
|
propsMaxDepth: i,
|
|
3485
3440
|
propsDenylist: a
|
|
3486
|
-
}),
|
|
3441
|
+
}), re = Ia(e.config.globalProperties.$router, { denylist: a }), m = { vue: {
|
|
3487
3442
|
info: l,
|
|
3488
3443
|
errorOrigin: d,
|
|
3489
3444
|
componentName: f,
|
|
3490
3445
|
...ee && { componentProps: ee },
|
|
3491
3446
|
componentHierarchy: ne,
|
|
3492
|
-
componentHierarchyFrames:
|
|
3493
|
-
...
|
|
3494
|
-
} },
|
|
3447
|
+
componentHierarchyFrames: p,
|
|
3448
|
+
...re && { route: re }
|
|
3449
|
+
} }, h = t?.beforeSubmit?.({
|
|
3495
3450
|
error: u,
|
|
3496
3451
|
instance: c,
|
|
3497
3452
|
info: l,
|
|
3498
|
-
context:
|
|
3499
|
-
}) ??
|
|
3500
|
-
|
|
3453
|
+
context: m
|
|
3454
|
+
}) ?? m;
|
|
3455
|
+
n.reportSilently(u, qa(h)), t?.afterSubmit?.({
|
|
3501
3456
|
error: u,
|
|
3502
3457
|
instance: c,
|
|
3503
3458
|
info: l,
|
|
3504
|
-
context:
|
|
3505
|
-
}), typeof o == "function")
|
|
3506
|
-
o(s, c, l);
|
|
3507
|
-
return;
|
|
3508
|
-
}
|
|
3509
|
-
console.error(s);
|
|
3459
|
+
context: h
|
|
3460
|
+
}), typeof o == "function" ? o(s, c, l) : console.error(s);
|
|
3510
3461
|
}, t?.captureWarnings) {
|
|
3511
3462
|
let t = e.config.warnHandler;
|
|
3512
3463
|
e.config.warnHandler = (r, i, o) => {
|
|
3513
|
-
let s = $(i), c =
|
|
3464
|
+
let s = $(i), c = Ia(e.config.globalProperties.$router, { denylist: a }), l = { vue: {
|
|
3514
3465
|
type: "warning",
|
|
3515
3466
|
info: r,
|
|
3516
3467
|
componentName: s,
|
|
3517
3468
|
componentTrace: o,
|
|
3518
3469
|
...c && { route: c }
|
|
3519
3470
|
} };
|
|
3520
|
-
Promise.resolve(n.reportMessage(r, "warning",
|
|
3471
|
+
Promise.resolve(n.reportMessage(r, "warning", Ja(l))).catch(() => {}), typeof t == "function" && t(r, i, o);
|
|
3521
3472
|
};
|
|
3522
3473
|
}
|
|
3523
3474
|
if (t?.router) try {
|
|
3524
|
-
let n =
|
|
3475
|
+
let n = Wa(t.router, { includeRouterBase: t.includeRouterBase });
|
|
3525
3476
|
typeof e.onUnmount == "function" && e.onUnmount(n);
|
|
3526
3477
|
} catch {}
|
|
3527
3478
|
let s = t?.profileComponents;
|
|
3528
3479
|
if (s === !0 || Array.isArray(s) && s.length > 0) try {
|
|
3529
|
-
e.mixin(
|
|
3480
|
+
e.mixin(Ha(ee(s)));
|
|
3530
3481
|
} catch {}
|
|
3531
3482
|
};
|
|
3532
|
-
|
|
3533
|
-
//#region node_modules/@flareapp/vue/dist/index.mjs
|
|
3483
|
+
// node_modules/@flareapp/vue/dist/index.mjs
|
|
3534
3484
|
o({
|
|
3535
3485
|
name: "FlareErrorBoundary",
|
|
3536
3486
|
props: {
|
|
@@ -3576,8 +3526,8 @@ o({
|
|
|
3576
3526
|
}
|
|
3577
3527
|
},
|
|
3578
3528
|
setup(e, { slots: t }) {
|
|
3579
|
-
let o =
|
|
3580
|
-
|
|
3529
|
+
let o = ya(e.flare);
|
|
3530
|
+
za(o, n()?.appContext.app.version);
|
|
3581
3531
|
let s = n(), c = a(null), l = a(void 0), u = a([]), d = a([]), f = () => {
|
|
3582
3532
|
e.onReset?.(c.value), c.value = null, l.value = void 0, u.value = [], d.value = [];
|
|
3583
3533
|
};
|
|
@@ -3592,31 +3542,31 @@ o({
|
|
|
3592
3542
|
instance: n,
|
|
3593
3543
|
info: r
|
|
3594
3544
|
});
|
|
3595
|
-
let a =
|
|
3545
|
+
let a = Ca(e.propsDenylist, e.replaceDefaultDenylist), f = Oa(n), ee = Aa(n, {
|
|
3596
3546
|
attachProps: e.attachProps,
|
|
3597
3547
|
propsMaxDepth: e.propsMaxDepth,
|
|
3598
3548
|
propsDenylist: a
|
|
3599
3549
|
}), ne = $(n);
|
|
3600
3550
|
c.value = i;
|
|
3601
|
-
let
|
|
3551
|
+
let p = e.attachProps && n?.$props ? ka(n.$props, e.propsMaxDepth, a) : void 0, re = ja(r), m = Ia(s?.appContext.config.globalProperties.$router, { denylist: a }), h = { vue: {
|
|
3602
3552
|
info: r,
|
|
3603
|
-
errorOrigin:
|
|
3604
|
-
...
|
|
3553
|
+
errorOrigin: re,
|
|
3554
|
+
...m && { route: m },
|
|
3605
3555
|
componentName: ne,
|
|
3606
|
-
...
|
|
3556
|
+
...p && { componentProps: p },
|
|
3607
3557
|
componentHierarchy: f,
|
|
3608
3558
|
componentHierarchyFrames: ee
|
|
3609
|
-
} },
|
|
3559
|
+
} }, g = e.beforeSubmit?.({
|
|
3610
3560
|
error: i,
|
|
3611
3561
|
instance: n,
|
|
3612
3562
|
info: r,
|
|
3613
|
-
context:
|
|
3614
|
-
}) ??
|
|
3615
|
-
return l.value =
|
|
3563
|
+
context: h
|
|
3564
|
+
}) ?? h;
|
|
3565
|
+
return l.value = g.vue.componentProps, u.value = g.vue.componentHierarchy, d.value = g.vue.componentHierarchyFrames, o.reportSilently(i, qa(g)), e.afterSubmit?.({
|
|
3616
3566
|
error: i,
|
|
3617
3567
|
instance: n,
|
|
3618
3568
|
info: r,
|
|
3619
|
-
context:
|
|
3569
|
+
context: g
|
|
3620
3570
|
}), !1;
|
|
3621
3571
|
}), () => c.value === null ? t.default?.() : t.fallback ? t.fallback({
|
|
3622
3572
|
error: c.value,
|
|
@@ -3626,6 +3576,5 @@ o({
|
|
|
3626
3576
|
resetErrorBoundary: f
|
|
3627
3577
|
}) : null;
|
|
3628
3578
|
}
|
|
3629
|
-
}),
|
|
3630
|
-
|
|
3631
|
-
export { Va as t };
|
|
3579
|
+
}), va(() => ga);
|
|
3580
|
+
export { Xa as t };
|