@ryuzaki13/react-foundation-lib 2.12.1 → 2.13.1
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/error-report/breadcrumbs.d.ts.map +1 -1
- package/dist/error-report/captureOptions.d.ts +26 -0
- package/dist/error-report/captureOptions.d.ts.map +1 -0
- package/dist/error-report/dataPreview.d.ts +7 -0
- package/dist/error-report/dataPreview.d.ts.map +1 -0
- package/dist/error-report/diagnostics.d.ts +4 -2
- package/dist/error-report/diagnostics.d.ts.map +1 -1
- package/dist/error-report/drafts.d.ts.map +1 -1
- package/dist/error-report/errorInfo.d.ts +2 -1
- package/dist/error-report/errorInfo.d.ts.map +1 -1
- package/dist/error-report/index.d.ts +1 -0
- package/dist/error-report/index.d.ts.map +1 -1
- package/dist/error-report/index.js +688 -403
- package/dist/error-report/index.js.map +1 -1
- package/dist/error-report/payload.d.ts +1 -0
- package/dist/error-report/payload.d.ts.map +1 -1
- package/dist/error-report/safeValue.d.ts.map +1 -1
- package/dist/error-report/schema.d.ts.map +1 -1
- package/dist/error-report/transport.d.ts +2 -0
- package/dist/error-report/transport.d.ts.map +1 -1
- package/dist/error-report/types.d.ts +12 -0
- package/dist/error-report/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/error-report/README.mdx +32 -13
|
@@ -7,8 +7,34 @@ import { an as o } from "../chunks/odata-service-CWkHASdw.js";
|
|
|
7
7
|
import { g as s } from "../chunks/query-client-BsiuEoJD.js";
|
|
8
8
|
import { getSessionStorageId as ee } from "../session-storage/index.js";
|
|
9
9
|
import { z as c } from "zod";
|
|
10
|
+
//#region src/error-report/captureOptions.ts
|
|
11
|
+
var te = 16384, l = {
|
|
12
|
+
valuePolicy: "redacted",
|
|
13
|
+
dataPreviewBytes: {
|
|
14
|
+
query: 0,
|
|
15
|
+
persistedQuery: 0,
|
|
16
|
+
mutation: 0
|
|
17
|
+
}
|
|
18
|
+
}, ne = l;
|
|
19
|
+
function u(e) {
|
|
20
|
+
return e === void 0 || !Number.isFinite(e) ? 0 : Math.max(0, Math.min(te, Math.trunc(e)));
|
|
21
|
+
}
|
|
22
|
+
function re(e) {
|
|
23
|
+
ne = e ? {
|
|
24
|
+
valuePolicy: e.valuePolicy ?? l.valuePolicy,
|
|
25
|
+
dataPreviewBytes: {
|
|
26
|
+
query: u(e.dataPreviewBytes?.query),
|
|
27
|
+
persistedQuery: u(e.dataPreviewBytes?.persistedQuery),
|
|
28
|
+
mutation: u(e.dataPreviewBytes?.mutation)
|
|
29
|
+
}
|
|
30
|
+
} : l;
|
|
31
|
+
}
|
|
32
|
+
function d() {
|
|
33
|
+
return ne;
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
10
36
|
//#region src/error-report/safeValue.ts
|
|
11
|
-
var
|
|
37
|
+
var ie = 4, ae = 20, f = 40, p = 4096, oe = 8192, se = "[REDACTED]", ce = [
|
|
12
38
|
"apikey",
|
|
13
39
|
"authorization",
|
|
14
40
|
"cookie",
|
|
@@ -19,21 +45,21 @@ var te = 4, ne = 20, re = 40, l = 4096, ie = "[REDACTED]", ae = [
|
|
|
19
45
|
"secret",
|
|
20
46
|
"sessiontoken",
|
|
21
47
|
"token"
|
|
22
|
-
],
|
|
23
|
-
function
|
|
48
|
+
], le = "url", m;
|
|
49
|
+
function ue(e) {
|
|
24
50
|
return e.toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
25
51
|
}
|
|
26
|
-
function
|
|
27
|
-
let t =
|
|
28
|
-
return
|
|
52
|
+
function de(e) {
|
|
53
|
+
let t = ue(e);
|
|
54
|
+
return ce.some((e) => t.includes(e));
|
|
29
55
|
}
|
|
30
|
-
function
|
|
31
|
-
return
|
|
56
|
+
function fe(e) {
|
|
57
|
+
return ue(e).endsWith(le);
|
|
32
58
|
}
|
|
33
|
-
function
|
|
59
|
+
function pe(e) {
|
|
34
60
|
return /^(?:https?:\/\/|\/)[^\s]*[?#]/i.test(e);
|
|
35
61
|
}
|
|
36
|
-
function
|
|
62
|
+
function me(e) {
|
|
37
63
|
try {
|
|
38
64
|
let t = new URL(e, "https://error-report.invalid"), n = t.pathname;
|
|
39
65
|
return t.origin === "https://error-report.invalid" ? n : `${t.origin}${n}`;
|
|
@@ -41,203 +67,238 @@ function de(e) {
|
|
|
41
67
|
return e.split(/[?#]/, 1)[0] ?? e;
|
|
42
68
|
}
|
|
43
69
|
}
|
|
44
|
-
function
|
|
70
|
+
function h(e, t = p) {
|
|
71
|
+
if (d().valuePolicy === "verbatim") {
|
|
72
|
+
if (e.length <= t) return e;
|
|
73
|
+
let n = `… [TRUNCATED: ${e.length} characters total]`;
|
|
74
|
+
if (n.length > t) return "[TRUNCATED]".slice(0, Math.max(0, t));
|
|
75
|
+
let r = e.slice(0, Math.max(0, t - n.length)), i = r.charCodeAt(r.length - 1);
|
|
76
|
+
return `${i >= 55296 && i <= 56319 ? r.slice(0, -1) : r}${n}`;
|
|
77
|
+
}
|
|
45
78
|
let n = e.slice(0, t);
|
|
46
79
|
return /\bbearer\s/i.test(n) && (n = n.replace(/\bBearer\s+[A-Za-z0-9._~+/=-]{8,}/gi, "Bearer [REDACTED]")), n.includes("@") && (n = n.replace(/[A-Z0-9._%+-]{1,254}@[A-Z0-9.-]{1,253}\.[A-Z]{2,63}/gi, "[REDACTED_EMAIL]")), n;
|
|
47
80
|
}
|
|
48
|
-
function
|
|
81
|
+
function g(e) {
|
|
49
82
|
return new TextEncoder().encode(e).byteLength;
|
|
50
83
|
}
|
|
51
|
-
function
|
|
52
|
-
|
|
53
|
-
|
|
84
|
+
function _(e, t) {
|
|
85
|
+
if (d().valuePolicy === "verbatim") {
|
|
86
|
+
let n = g(e);
|
|
87
|
+
if (n <= t) return e;
|
|
88
|
+
let r = `… [TRUNCATED: ${n} UTF-8 bytes total]`;
|
|
89
|
+
if (g(r) > t) return "[TRUNCATED]".slice(0, Math.max(0, t));
|
|
90
|
+
let i = Math.max(0, t - g(r)), a = 0, o = e.length;
|
|
91
|
+
for (; a < o;) {
|
|
92
|
+
let t = Math.ceil((a + o) / 2);
|
|
93
|
+
g(e.slice(0, t)) <= i ? a = t : o = t - 1;
|
|
94
|
+
}
|
|
95
|
+
let s = e.charCodeAt(a - 1), ee = s >= 55296 && s <= 56319 ? a - 1 : a;
|
|
96
|
+
return `${e.slice(0, ee)}${r}`;
|
|
97
|
+
}
|
|
98
|
+
let n = h(e, t);
|
|
99
|
+
if (g(n) <= t) return n;
|
|
54
100
|
let r = 0, i = n.length;
|
|
55
101
|
for (; r < i;) {
|
|
56
102
|
let e = Math.ceil((r + i) / 2);
|
|
57
|
-
|
|
103
|
+
g(n.slice(0, e)) <= t ? r = e : i = e - 1;
|
|
58
104
|
}
|
|
59
105
|
let a = n.charCodeAt(r - 1), o = a >= 55296 && a <= 56319 ? r - 1 : r;
|
|
60
106
|
return n.slice(0, o);
|
|
61
107
|
}
|
|
62
|
-
function
|
|
63
|
-
|
|
64
|
-
if (
|
|
108
|
+
function v(e, t, n, r) {
|
|
109
|
+
let i = d().valuePolicy === "verbatim";
|
|
110
|
+
if (!i && r && de(r)) return se;
|
|
111
|
+
if (t >= ie) return { type: "truncated" };
|
|
65
112
|
if (e === null || typeof e == "boolean") return e;
|
|
66
113
|
if (typeof e == "number") return Number.isFinite(e) ? e : { type: "non-finite-number" };
|
|
67
|
-
if (typeof e == "string") return
|
|
114
|
+
if (typeof e == "string") return h(!i && (r && fe(r) || pe(e)) ? me(e) : e, n.maxStringLength);
|
|
68
115
|
if (e === void 0) return { type: "undefined" };
|
|
69
116
|
if (e instanceof Date) return Number.isNaN(e.getTime()) ? { type: "invalid-date" } : e.toISOString();
|
|
70
117
|
if (typeof e == "object") {
|
|
71
118
|
if (n.seen.has(e)) return { type: "circular" };
|
|
72
119
|
n.seen.add(e);
|
|
73
120
|
}
|
|
74
|
-
if (Array.isArray(e))
|
|
121
|
+
if (Array.isArray(e)) {
|
|
122
|
+
let r = i && e.length > ae ? 19 : ae, a = e.slice(0, r).map((e) => v(e, t + 1, n));
|
|
123
|
+
return i && e.length > r && a.push({
|
|
124
|
+
type: "truncated",
|
|
125
|
+
omittedItems: e.length - r
|
|
126
|
+
}), a;
|
|
127
|
+
}
|
|
75
128
|
if (typeof e == "object") try {
|
|
76
|
-
let r = Object.entries(e).sort(([e], [t]) => e.localeCompare(t)).slice(0,
|
|
77
|
-
|
|
129
|
+
let r = Object.entries(e).sort(([e], [t]) => e.localeCompare(t)), a = i && r.length > f ? 39 : f, o = Object.fromEntries(r.slice(0, a).map(([e, r]) => [e, v(r, t + 1, n, e)]));
|
|
130
|
+
if (i && r.length > a) {
|
|
131
|
+
let t = "$truncated";
|
|
132
|
+
for (; Object.hasOwn(e, t);) t += "_";
|
|
133
|
+
o[t] = {
|
|
134
|
+
type: "truncated",
|
|
135
|
+
omittedKeys: r.length - a
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
return o;
|
|
78
139
|
} catch {
|
|
79
140
|
return { type: "unreadable" };
|
|
80
141
|
}
|
|
81
142
|
return typeof e == "function" ? { type: "function" } : typeof e == "symbol" ? { type: "symbol" } : typeof e == "bigint" ? e.toString() : { type: "unknown" };
|
|
82
143
|
}
|
|
83
|
-
function
|
|
84
|
-
return
|
|
144
|
+
function he(e, t = 0) {
|
|
145
|
+
return v(e, t, {
|
|
85
146
|
seen: /* @__PURE__ */ new WeakSet(),
|
|
86
|
-
maxStringLength:
|
|
147
|
+
maxStringLength: p
|
|
87
148
|
});
|
|
88
149
|
}
|
|
89
|
-
function
|
|
90
|
-
if (t >=
|
|
150
|
+
function y(e, t = 0) {
|
|
151
|
+
if (t >= ie) return { type: "truncated" };
|
|
91
152
|
if (e === null) return { type: "null" };
|
|
92
153
|
if (e === void 0) return { type: "undefined" };
|
|
93
154
|
if (Array.isArray(e)) return {
|
|
94
155
|
type: "array",
|
|
95
156
|
length: e.length,
|
|
96
|
-
firstItemsShape: e.slice(0, 3).map((e) =>
|
|
157
|
+
firstItemsShape: e.slice(0, 3).map((e) => y(e, t + 1))
|
|
97
158
|
};
|
|
98
159
|
if (typeof e == "object") {
|
|
99
|
-
let n = Object.entries(e).slice(0,
|
|
160
|
+
let n = Object.entries(e).slice(0, f);
|
|
100
161
|
return {
|
|
101
162
|
type: "object",
|
|
102
163
|
keys: n.map(([e]) => e),
|
|
103
|
-
shape: Object.fromEntries(n.map(([e, n]) => [e,
|
|
164
|
+
shape: Object.fromEntries(n.map(([e, n]) => [e, y(n, t + 1)]))
|
|
104
165
|
};
|
|
105
166
|
}
|
|
106
167
|
return { type: typeof e };
|
|
107
168
|
}
|
|
108
|
-
function
|
|
109
|
-
|
|
169
|
+
function ge(e) {
|
|
170
|
+
m = e;
|
|
110
171
|
}
|
|
111
|
-
function
|
|
112
|
-
let r = (e) =>
|
|
172
|
+
function b(e, t, n = p) {
|
|
173
|
+
let r = t.scope === "query-key" || t.scope === "mutation-key" || t.scope === "persisted-query-key", i = d().valuePolicy === "verbatim" && r ? Math.max(n, oe) : n, a = (e) => v(e, 0, {
|
|
113
174
|
seen: /* @__PURE__ */ new WeakSet(),
|
|
114
|
-
maxStringLength:
|
|
115
|
-
}),
|
|
116
|
-
if (!
|
|
175
|
+
maxStringLength: i
|
|
176
|
+
}), o = a(e);
|
|
177
|
+
if (!m) return o;
|
|
117
178
|
try {
|
|
118
|
-
let e =
|
|
119
|
-
return e === void 0 ? void 0 :
|
|
179
|
+
let e = m(o, t);
|
|
180
|
+
return e === void 0 ? void 0 : a(e);
|
|
120
181
|
} catch {
|
|
121
182
|
return;
|
|
122
183
|
}
|
|
123
184
|
}
|
|
124
|
-
function
|
|
185
|
+
function x(e, t = { scope: "context" }) {
|
|
125
186
|
if (!e) return;
|
|
126
|
-
let n =
|
|
187
|
+
let n = b(e, t);
|
|
127
188
|
if (!(!n || Array.isArray(n) || typeof n != "object")) return Object.keys(n).length ? n : void 0;
|
|
128
189
|
}
|
|
129
190
|
//#endregion
|
|
130
191
|
//#region src/error-report/breadcrumbs.ts
|
|
131
|
-
var
|
|
192
|
+
var _e = 20, ve = 120, ye = [
|
|
132
193
|
"button",
|
|
133
194
|
"a",
|
|
134
195
|
"input",
|
|
135
196
|
"select",
|
|
136
197
|
"textarea",
|
|
137
198
|
"[role]"
|
|
138
|
-
].join(","),
|
|
139
|
-
function
|
|
199
|
+
].join(","), be = /^[a-z0-9][a-z0-9._:/-]*$/i, S = [];
|
|
200
|
+
function xe() {
|
|
140
201
|
return (/* @__PURE__ */ new Date()).toISOString();
|
|
141
202
|
}
|
|
142
|
-
function
|
|
143
|
-
|
|
203
|
+
function C(e) {
|
|
204
|
+
S = [...S, {
|
|
144
205
|
...e,
|
|
145
|
-
utc:
|
|
146
|
-
routeId: e.routeId ? d(e.routeId.split(/[?#]/, 1)[0] ?? e.routeId, 512) : void 0,
|
|
147
|
-
appId: e.appId ?
|
|
148
|
-
viewId: e.viewId ?
|
|
149
|
-
target: e.target ?
|
|
150
|
-
detail:
|
|
206
|
+
utc: h(e.utc ?? xe(), 64),
|
|
207
|
+
routeId: e.routeId ? h(d().valuePolicy === "verbatim" ? e.routeId : e.routeId.split(/[?#]/, 1)[0] ?? e.routeId, 512) : void 0,
|
|
208
|
+
appId: e.appId ? h(e.appId, 128) : void 0,
|
|
209
|
+
viewId: e.viewId ? h(e.viewId, 128) : void 0,
|
|
210
|
+
target: e.target ? h(e.target, 2048) : void 0,
|
|
211
|
+
detail: x(e.detail, {
|
|
151
212
|
scope: "breadcrumb-detail",
|
|
152
213
|
source: e.type
|
|
153
214
|
})
|
|
154
215
|
}].slice(-80);
|
|
155
216
|
}
|
|
156
|
-
function
|
|
157
|
-
return
|
|
217
|
+
function Se() {
|
|
218
|
+
return S.slice();
|
|
158
219
|
}
|
|
159
|
-
function
|
|
160
|
-
|
|
220
|
+
function Ce() {
|
|
221
|
+
S = [];
|
|
161
222
|
}
|
|
162
|
-
function
|
|
163
|
-
return e(t,
|
|
223
|
+
function we(t) {
|
|
224
|
+
return e(t, ve);
|
|
164
225
|
}
|
|
165
|
-
function
|
|
166
|
-
let t =
|
|
167
|
-
return t &&
|
|
226
|
+
function Te(e) {
|
|
227
|
+
let t = we(e.getAttribute("data-error-report-target"));
|
|
228
|
+
return t && be.test(t) ? t : void 0;
|
|
168
229
|
}
|
|
169
|
-
function
|
|
170
|
-
let n =
|
|
171
|
-
return n &&
|
|
230
|
+
function w(e, t) {
|
|
231
|
+
let n = we(e.getAttribute(t));
|
|
232
|
+
return n && be.test(n) ? n : void 0;
|
|
172
233
|
}
|
|
173
|
-
function
|
|
174
|
-
let t =
|
|
234
|
+
function Ee(e) {
|
|
235
|
+
let t = Te(e);
|
|
175
236
|
return {
|
|
176
|
-
role:
|
|
177
|
-
type:
|
|
237
|
+
role: w(e, "role"),
|
|
238
|
+
type: w(e, "type"),
|
|
178
239
|
errorReportTarget: t,
|
|
179
|
-
dataUi: t ? void 0 :
|
|
180
|
-
dataAction: t ? void 0 :
|
|
240
|
+
dataUi: t ? void 0 : w(e, "data-ui"),
|
|
241
|
+
dataAction: t ? void 0 : w(e, "data-action")
|
|
181
242
|
};
|
|
182
243
|
}
|
|
183
|
-
function
|
|
244
|
+
function T(e) {
|
|
184
245
|
return typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : e.replace(/["\\#.[\]>~+:]/g, "\\$&");
|
|
185
246
|
}
|
|
186
|
-
function
|
|
187
|
-
let t =
|
|
188
|
-
return t.role && n.push(`[role="${t.role}"]`), t.type && n.push(`[type="${t.type}"]`), t.errorReportTarget ? n.push(`[data-error-report-target="${
|
|
247
|
+
function De(e) {
|
|
248
|
+
let t = Ee(e), n = [e.tagName.toLowerCase()];
|
|
249
|
+
return t.role && n.push(`[role="${t.role}"]`), t.type && n.push(`[type="${t.type}"]`), t.errorReportTarget ? n.push(`[data-error-report-target="${T(t.errorReportTarget)}"]`) : (t.dataUi && n.push(`[data-ui="${T(t.dataUi)}"]`), t.dataAction && n.push(`[data-action="${T(t.dataAction)}"]`)), n.join("");
|
|
189
250
|
}
|
|
190
|
-
function
|
|
191
|
-
let t =
|
|
251
|
+
function Oe(e) {
|
|
252
|
+
let t = Ee(e);
|
|
192
253
|
return {
|
|
193
254
|
tag: e.tagName.toLowerCase(),
|
|
194
|
-
selector:
|
|
255
|
+
selector: De(e),
|
|
195
256
|
...t
|
|
196
257
|
};
|
|
197
258
|
}
|
|
198
|
-
function
|
|
259
|
+
function ke(e) {
|
|
199
260
|
return Object.fromEntries(Object.entries(e).filter(([, e]) => e !== void 0 && (!Array.isArray(e) || e.length > 0)));
|
|
200
261
|
}
|
|
201
|
-
function
|
|
262
|
+
function Ae(e) {
|
|
202
263
|
let t = [], n = e;
|
|
203
|
-
for (; n && n !== document.documentElement && t.length <
|
|
264
|
+
for (; n && n !== document.documentElement && t.length < _e && (t.push(n), n !== document.body);) n = n.parentElement;
|
|
204
265
|
return t;
|
|
205
266
|
}
|
|
206
|
-
function
|
|
207
|
-
let t =
|
|
208
|
-
return t.find((e) =>
|
|
267
|
+
function je(e) {
|
|
268
|
+
let t = Ae(e);
|
|
269
|
+
return t.find((e) => Te(e)) || (t.find((e) => e.matches(ye) || w(e, "data-action") !== void 0 || w(e, "data-ui") !== void 0) ?? e);
|
|
209
270
|
}
|
|
210
|
-
function
|
|
211
|
-
if (e instanceof Element) return
|
|
271
|
+
function Me(e) {
|
|
272
|
+
if (e instanceof Element) return Ae(je(e)).map((e) => De(e)).join(" > ");
|
|
212
273
|
}
|
|
213
|
-
function
|
|
214
|
-
let t = e.target instanceof Element ? e.target : void 0, n = t ?
|
|
215
|
-
return
|
|
274
|
+
function Ne(e) {
|
|
275
|
+
let t = e.target instanceof Element ? e.target : void 0, n = t ? je(t) : void 0, r = n ? Ae(n).map((e) => ke(Oe(e))) : [];
|
|
276
|
+
return x({
|
|
216
277
|
button: e.button,
|
|
217
278
|
ctrlKey: e.ctrlKey,
|
|
218
279
|
shiftKey: e.shiftKey,
|
|
219
280
|
altKey: e.altKey,
|
|
220
281
|
clientX: e.clientX,
|
|
221
282
|
clientY: e.clientY,
|
|
222
|
-
target: n ?
|
|
283
|
+
target: n ? ke(Oe(n)) : void 0,
|
|
223
284
|
chain: r
|
|
224
285
|
}, {
|
|
225
286
|
scope: "breadcrumb-detail",
|
|
226
287
|
source: "click"
|
|
227
288
|
});
|
|
228
289
|
}
|
|
229
|
-
function
|
|
290
|
+
function Pe() {
|
|
230
291
|
if (typeof window > "u") return () => void 0;
|
|
231
292
|
let e = (e) => {
|
|
232
|
-
|
|
293
|
+
C({
|
|
233
294
|
type: "click",
|
|
234
|
-
target:
|
|
235
|
-
detail:
|
|
295
|
+
target: Me(e.target),
|
|
296
|
+
detail: Ne(e)
|
|
236
297
|
});
|
|
237
298
|
}, t = () => {
|
|
238
|
-
|
|
299
|
+
C({
|
|
239
300
|
type: "visibility",
|
|
240
|
-
detail:
|
|
301
|
+
detail: x({ visibilityState: document.visibilityState }, {
|
|
241
302
|
scope: "breadcrumb-detail",
|
|
242
303
|
source: "visibility"
|
|
243
304
|
})
|
|
@@ -248,141 +309,334 @@ function Ae() {
|
|
|
248
309
|
};
|
|
249
310
|
}
|
|
250
311
|
//#endregion
|
|
312
|
+
//#region src/error-report/dataPreview.ts
|
|
313
|
+
var Fe = 6, Ie = 12, Le = 24, Re = 1024, ze = 128;
|
|
314
|
+
function Be(e, t, n) {
|
|
315
|
+
if (t >= Fe || n.nodesLeft-- <= 0) return n.truncated = !0, { type: "truncated" };
|
|
316
|
+
if (e === null || typeof e == "boolean") return e;
|
|
317
|
+
if (typeof e == "number") return Number.isFinite(e) ? e : { type: "non-finite-number" };
|
|
318
|
+
if (typeof e == "string") {
|
|
319
|
+
e.length > Re && (n.truncated = !0);
|
|
320
|
+
let t = e.slice(0, Re), r = t.charCodeAt(t.length - 1);
|
|
321
|
+
return r >= 55296 && r <= 56319 ? t.slice(0, -1) : t;
|
|
322
|
+
}
|
|
323
|
+
if (typeof e == "bigint") return e.toString();
|
|
324
|
+
if (e === void 0) return { type: "undefined" };
|
|
325
|
+
if (typeof e == "function") return { type: "function" };
|
|
326
|
+
if (typeof e == "symbol") return { type: "symbol" };
|
|
327
|
+
if (e instanceof Date) return Number.isNaN(e.getTime()) ? { type: "invalid-date" } : e.toISOString();
|
|
328
|
+
if (typeof e != "object") return { type: "unknown" };
|
|
329
|
+
if (n.seen.has(e)) return { type: "circular" };
|
|
330
|
+
if (n.seen.add(e), Array.isArray(e)) return e.length > Ie && (n.truncated = !0), e.slice(0, Ie).map((e) => Be(e, t + 1, n));
|
|
331
|
+
try {
|
|
332
|
+
let r = Object.entries(e);
|
|
333
|
+
return r.length > Le && (n.truncated = !0), Object.fromEntries(r.slice(0, Le).map(([e, r]) => [e, Be(r, t + 1, n)]));
|
|
334
|
+
} catch {
|
|
335
|
+
return { type: "unreadable" };
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
function Ve(e) {
|
|
339
|
+
let t = Array.from(e);
|
|
340
|
+
return t.slice(0, Math.floor(t.length / 2)).join("");
|
|
341
|
+
}
|
|
342
|
+
function He(e) {
|
|
343
|
+
if (typeof e == "string") return e ? {
|
|
344
|
+
value: Ve(e),
|
|
345
|
+
changed: !0
|
|
346
|
+
} : {
|
|
347
|
+
value: e,
|
|
348
|
+
changed: !1
|
|
349
|
+
};
|
|
350
|
+
if (Array.isArray(e)) {
|
|
351
|
+
if (e.length > 1) return e.pop(), {
|
|
352
|
+
value: e,
|
|
353
|
+
changed: !0
|
|
354
|
+
};
|
|
355
|
+
if (e.length === 1) {
|
|
356
|
+
let t = He(e[0]);
|
|
357
|
+
return t.changed ? (e[0] = t.value, {
|
|
358
|
+
value: e,
|
|
359
|
+
changed: !0
|
|
360
|
+
}) : (e.pop(), {
|
|
361
|
+
value: e,
|
|
362
|
+
changed: !0
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
return {
|
|
366
|
+
value: e,
|
|
367
|
+
changed: !1
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
if (typeof e == "object" && e) {
|
|
371
|
+
let t = Object.keys(e), n = t.at(-1);
|
|
372
|
+
if (n === void 0) return {
|
|
373
|
+
value: e,
|
|
374
|
+
changed: !1
|
|
375
|
+
};
|
|
376
|
+
if (t.length === 1) {
|
|
377
|
+
let t = He(e[n]);
|
|
378
|
+
if (t.changed) return e[n] = t.value, {
|
|
379
|
+
value: e,
|
|
380
|
+
changed: !0
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
return Reflect.deleteProperty(e, n), {
|
|
384
|
+
value: e,
|
|
385
|
+
changed: !0
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
return {
|
|
389
|
+
value: e,
|
|
390
|
+
changed: !1
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
function E(e, t) {
|
|
394
|
+
let n = {
|
|
395
|
+
seen: /* @__PURE__ */ new WeakSet(),
|
|
396
|
+
nodesLeft: ze,
|
|
397
|
+
truncated: !1
|
|
398
|
+
}, r = Be(e, 0, n), i = JSON.stringify(r), a = Math.max(4, t);
|
|
399
|
+
for (; g(i) > a;) {
|
|
400
|
+
n.truncated = !0;
|
|
401
|
+
let e = He(r);
|
|
402
|
+
r = e.changed ? e.value : null, i = JSON.stringify(r);
|
|
403
|
+
}
|
|
404
|
+
return {
|
|
405
|
+
json: i,
|
|
406
|
+
truncated: n.truncated
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
//#endregion
|
|
251
410
|
//#region src/error-report/payload.ts
|
|
252
|
-
var
|
|
253
|
-
function
|
|
411
|
+
var Ue = 1, D = 262144, We = 131072, O = 65536, Ge = 32768, Ke = 256, qe = 128, k = 2048;
|
|
412
|
+
function Je(e) {
|
|
254
413
|
return new TextEncoder().encode(JSON.stringify(e)).byteLength;
|
|
255
414
|
}
|
|
256
|
-
function
|
|
257
|
-
return d(e.split(/[?#]/, 1)[0] ?? e,
|
|
415
|
+
function Ye(e) {
|
|
416
|
+
return h(d().valuePolicy === "verbatim" ? e : e.split(/[?#]/, 1)[0] ?? e, k);
|
|
417
|
+
}
|
|
418
|
+
function A(e, t) {
|
|
419
|
+
if (!(!e || t <= 0 || d().valuePolicy !== "verbatim")) try {
|
|
420
|
+
let n = JSON.parse(e.json);
|
|
421
|
+
return g(e.json) <= t ? e : {
|
|
422
|
+
...E(n, t),
|
|
423
|
+
truncated: !0
|
|
424
|
+
};
|
|
425
|
+
} catch {
|
|
426
|
+
return;
|
|
427
|
+
}
|
|
258
428
|
}
|
|
259
|
-
function
|
|
260
|
-
let i =
|
|
261
|
-
if (typeof i == "string") return r === "bytes" ?
|
|
429
|
+
function j(e, t, n, r = "characters") {
|
|
430
|
+
let i = b(r === "bytes" ? _(e, n) : h(e, n), t, n);
|
|
431
|
+
if (typeof i == "string") return r === "bytes" ? _(i, n) : h(i, n);
|
|
262
432
|
}
|
|
263
|
-
function
|
|
433
|
+
function M(e, t) {
|
|
434
|
+
let n = d().valuePolicy === "verbatim";
|
|
264
435
|
return {
|
|
265
|
-
name:
|
|
266
|
-
message:
|
|
436
|
+
name: h(e.name, 256),
|
|
437
|
+
message: j(e.message, {
|
|
267
438
|
scope: "error-message",
|
|
268
439
|
source: t
|
|
269
|
-
}, 4096) ?? "[REDACTED]",
|
|
270
|
-
code: e.code ?
|
|
271
|
-
stackTrace: e.stackTrace ?
|
|
440
|
+
}, n ? 131072 : 4096, n ? "bytes" : "characters") ?? (n ? _(e.message, 131072) : "[REDACTED]"),
|
|
441
|
+
code: e.code ? h(e.code, 128) : void 0,
|
|
442
|
+
stackTrace: e.stackTrace ? j(e.stackTrace, {
|
|
272
443
|
scope: "stack-trace",
|
|
273
444
|
source: t
|
|
274
|
-
},
|
|
445
|
+
}, O, "bytes") : void 0,
|
|
275
446
|
httpStatus: e.httpStatus
|
|
276
447
|
};
|
|
277
448
|
}
|
|
278
|
-
function
|
|
449
|
+
function Xe(e) {
|
|
450
|
+
let t = d();
|
|
279
451
|
return {
|
|
280
452
|
...e,
|
|
281
|
-
queryHash:
|
|
282
|
-
queryKey:
|
|
453
|
+
queryHash: h(e.queryHash, 512),
|
|
454
|
+
queryKey: b(e.queryKey, {
|
|
283
455
|
scope: "query-key",
|
|
284
456
|
source: e.queryHash
|
|
285
457
|
}) ?? { type: "redacted" },
|
|
286
|
-
meta:
|
|
458
|
+
meta: x(e.meta, {
|
|
287
459
|
scope: "query-meta",
|
|
288
460
|
source: e.queryHash
|
|
289
461
|
}),
|
|
290
|
-
dataShape: e.dataShape ?
|
|
462
|
+
dataShape: e.dataShape ? b(e.dataShape, {
|
|
291
463
|
scope: "query-data-shape",
|
|
292
464
|
source: e.queryHash
|
|
293
465
|
}) : void 0,
|
|
294
|
-
|
|
466
|
+
dataPreview: A(e.dataPreview, t.dataPreviewBytes.query),
|
|
467
|
+
error: e.error ? M(e.error, e.queryHash) : void 0
|
|
295
468
|
};
|
|
296
469
|
}
|
|
297
|
-
function
|
|
470
|
+
function Ze(e) {
|
|
471
|
+
let t = d();
|
|
298
472
|
return {
|
|
299
473
|
...e,
|
|
300
|
-
mutationKey: e.mutationKey ?
|
|
301
|
-
meta:
|
|
302
|
-
|
|
474
|
+
mutationKey: e.mutationKey ? b(e.mutationKey, { scope: "mutation-key" }) : void 0,
|
|
475
|
+
meta: x(e.meta, { scope: "mutation-meta" }),
|
|
476
|
+
variablesPreview: A(e.variablesPreview, t.dataPreviewBytes.mutation),
|
|
477
|
+
error: e.error ? M(e.error, "mutation") : void 0
|
|
303
478
|
};
|
|
304
479
|
}
|
|
305
|
-
function
|
|
480
|
+
function Qe(e) {
|
|
481
|
+
let t = d();
|
|
306
482
|
return {
|
|
307
483
|
...e,
|
|
308
|
-
buster: e.buster ?
|
|
309
|
-
queryHash: e.queryHash ?
|
|
310
|
-
queryKey: e.queryKey ?
|
|
484
|
+
buster: e.buster ? h(e.buster, 512) : void 0,
|
|
485
|
+
queryHash: e.queryHash ? h(e.queryHash, 512) : void 0,
|
|
486
|
+
queryKey: e.queryKey ? b(e.queryKey, {
|
|
311
487
|
scope: "persisted-query-key",
|
|
312
488
|
source: e.queryHash
|
|
313
489
|
}) : void 0,
|
|
314
|
-
|
|
490
|
+
dataPreview: A(e.dataPreview, t.dataPreviewBytes.persistedQuery),
|
|
491
|
+
error: e.error ? M(e.error, e.queryHash) : void 0
|
|
315
492
|
};
|
|
316
493
|
}
|
|
317
|
-
function
|
|
318
|
-
return
|
|
494
|
+
function N(e) {
|
|
495
|
+
return Je(e);
|
|
319
496
|
}
|
|
320
|
-
function
|
|
497
|
+
function $e(e) {
|
|
498
|
+
let t = d().valuePolicy === "verbatim";
|
|
321
499
|
return {
|
|
322
500
|
...e,
|
|
323
|
-
reportId:
|
|
324
|
-
sessionId:
|
|
325
|
-
createdUtc:
|
|
326
|
-
application:
|
|
327
|
-
source:
|
|
328
|
-
error:
|
|
501
|
+
reportId: h(e.reportId, 128),
|
|
502
|
+
sessionId: h(e.sessionId, 128),
|
|
503
|
+
createdUtc: h(e.createdUtc, 64),
|
|
504
|
+
application: h(e.application, qe),
|
|
505
|
+
source: h(e.source, Ke),
|
|
506
|
+
error: M(e.error, e.source),
|
|
329
507
|
environment: {
|
|
330
508
|
...e.environment,
|
|
331
|
-
buildId: e.environment.buildId ?
|
|
509
|
+
buildId: e.environment.buildId ? h(e.environment.buildId, 128) : void 0
|
|
332
510
|
},
|
|
333
511
|
client: e.client ? {
|
|
334
|
-
userAgent: e.client.userAgent ?
|
|
335
|
-
language: e.client.language ?
|
|
336
|
-
timeZone: e.client.timeZone ?
|
|
512
|
+
userAgent: e.client.userAgent ? h(e.client.userAgent) : void 0,
|
|
513
|
+
language: e.client.language ? h(e.client.language, 128) : void 0,
|
|
514
|
+
timeZone: e.client.timeZone ? h(e.client.timeZone, 128) : void 0
|
|
337
515
|
} : void 0,
|
|
338
516
|
location: e.location ? {
|
|
339
|
-
pathname:
|
|
340
|
-
origin: e.location.origin ?
|
|
517
|
+
pathname: Ye(e.location.pathname),
|
|
518
|
+
origin: e.location.origin ? h(e.location.origin.split(/[?#]/, 1)[0] ?? e.location.origin, k) : void 0,
|
|
519
|
+
search: d().valuePolicy === "verbatim" && e.location.search ? h(e.location.search, k) : void 0,
|
|
520
|
+
hash: d().valuePolicy === "verbatim" && e.location.hash ? h(e.location.hash, k) : void 0
|
|
341
521
|
} : void 0,
|
|
342
|
-
react: e.react?.componentStack ? { componentStack:
|
|
522
|
+
react: e.react?.componentStack ? { componentStack: j(e.react.componentStack, {
|
|
343
523
|
scope: "stack-trace",
|
|
344
524
|
source: "react-component-stack"
|
|
345
|
-
},
|
|
346
|
-
query: e.query ?
|
|
347
|
-
mutation: e.mutation ?
|
|
525
|
+
}, Ge, "bytes") } : void 0,
|
|
526
|
+
query: e.query ? Xe(e.query) : void 0,
|
|
527
|
+
mutation: e.mutation ? Ze(e.mutation) : void 0,
|
|
348
528
|
queryClient: e.queryClient ? {
|
|
349
|
-
queries: e.queryClient.queries.slice(-40).map(
|
|
350
|
-
mutations: e.queryClient.mutations.slice(-40).map(
|
|
529
|
+
queries: e.queryClient.queries.slice(-40).map(Xe),
|
|
530
|
+
mutations: e.queryClient.mutations.slice(-40).map(Ze),
|
|
531
|
+
...t ? {
|
|
532
|
+
omittedQueries: (e.queryClient.omittedQueries ?? 0) + Math.max(0, e.queryClient.queries.length - 40) || void 0,
|
|
533
|
+
omittedMutations: (e.queryClient.omittedMutations ?? 0) + Math.max(0, e.queryClient.mutations.length - 40) || void 0
|
|
534
|
+
} : {}
|
|
351
535
|
} : void 0,
|
|
352
|
-
persistedQueries: e.persistedQueries?.slice(-40).map(
|
|
536
|
+
persistedQueries: e.persistedQueries?.slice(-40).map(Qe),
|
|
353
537
|
breadcrumbs: e.breadcrumbs.slice(-80).map((e) => ({
|
|
354
538
|
...e,
|
|
355
|
-
utc:
|
|
356
|
-
routeId: e.routeId ?
|
|
357
|
-
appId: e.appId ?
|
|
358
|
-
viewId: e.viewId ?
|
|
359
|
-
target: e.target ?
|
|
360
|
-
detail:
|
|
539
|
+
utc: h(e.utc, 64),
|
|
540
|
+
routeId: e.routeId ? h(e.routeId, 512) : void 0,
|
|
541
|
+
appId: e.appId ? h(e.appId, 128) : void 0,
|
|
542
|
+
viewId: e.viewId ? h(e.viewId, 128) : void 0,
|
|
543
|
+
target: e.target ? h(e.target, 2048) : void 0,
|
|
544
|
+
detail: x(e.detail, {
|
|
361
545
|
scope: "breadcrumb-detail",
|
|
362
546
|
source: e.type
|
|
363
547
|
})
|
|
364
548
|
})),
|
|
365
|
-
context:
|
|
549
|
+
context: x(e.context, {
|
|
366
550
|
scope: "context",
|
|
367
551
|
source: e.source
|
|
368
552
|
})
|
|
369
553
|
};
|
|
370
554
|
}
|
|
371
|
-
function
|
|
372
|
-
|
|
555
|
+
function P(e, t) {
|
|
556
|
+
if (!e || g(e.json) <= t) return e;
|
|
557
|
+
try {
|
|
558
|
+
return {
|
|
559
|
+
...E(JSON.parse(e.json), t),
|
|
560
|
+
truncated: !0
|
|
561
|
+
};
|
|
562
|
+
} catch {
|
|
563
|
+
return {
|
|
564
|
+
json: "null",
|
|
565
|
+
truncated: !0
|
|
566
|
+
};
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
function et(e, t, n) {
|
|
570
|
+
return n ? {
|
|
571
|
+
...e,
|
|
572
|
+
queryClient: e.queryClient ? {
|
|
573
|
+
...e.queryClient,
|
|
574
|
+
queries: e.queryClient.queries.map((e) => ({
|
|
575
|
+
...e,
|
|
576
|
+
dataPreview: P(e.dataPreview, t)
|
|
577
|
+
})),
|
|
578
|
+
mutations: e.queryClient.mutations.map((e) => ({
|
|
579
|
+
...e,
|
|
580
|
+
variablesPreview: P(e.variablesPreview, t)
|
|
581
|
+
}))
|
|
582
|
+
} : void 0,
|
|
583
|
+
persistedQueries: e.persistedQueries?.map((e) => ({
|
|
584
|
+
...e,
|
|
585
|
+
dataPreview: P(e.dataPreview, t)
|
|
586
|
+
}))
|
|
587
|
+
} : {
|
|
588
|
+
...e,
|
|
589
|
+
query: e.query ? {
|
|
590
|
+
...e.query,
|
|
591
|
+
dataPreview: P(e.query.dataPreview, t)
|
|
592
|
+
} : void 0,
|
|
593
|
+
mutation: e.mutation ? {
|
|
594
|
+
...e.mutation,
|
|
595
|
+
variablesPreview: P(e.mutation.variablesPreview, t)
|
|
596
|
+
} : void 0
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
function tt(e) {
|
|
600
|
+
let t = $e(e), n = N(t);
|
|
373
601
|
if (n <= 262144) return t;
|
|
374
602
|
let r = [], i = {
|
|
375
603
|
...t,
|
|
376
604
|
truncation: {
|
|
377
605
|
reason: "payload-size",
|
|
378
|
-
limitBytes:
|
|
606
|
+
limitBytes: D,
|
|
379
607
|
originalBytes: n,
|
|
380
608
|
droppedSections: r
|
|
381
609
|
}
|
|
382
|
-
}, a = (e, t, n) => {
|
|
383
|
-
!t(i) || D(i) <= 262144 || (r.push(e), i = n(i));
|
|
384
610
|
};
|
|
385
|
-
|
|
611
|
+
if (d().valuePolicy === "verbatim") for (let e of [
|
|
612
|
+
512,
|
|
613
|
+
128,
|
|
614
|
+
4
|
|
615
|
+
]) {
|
|
616
|
+
if (N(i) <= 262144 || (i = et(i, e, !0), N(i) <= 262144)) break;
|
|
617
|
+
i = et(i, e, !1);
|
|
618
|
+
}
|
|
619
|
+
let a = (e, t, n) => {
|
|
620
|
+
!t(i) || N(i) <= 262144 || (r.push(e), i = n(i));
|
|
621
|
+
};
|
|
622
|
+
return d().valuePolicy === "verbatim" && (a("queryClient.queries:oldest", (e) => (e.queryClient?.queries.length ?? 0) > 10, (e) => ({
|
|
623
|
+
...e,
|
|
624
|
+
queryClient: e.queryClient ? {
|
|
625
|
+
...e.queryClient,
|
|
626
|
+
queries: e.queryClient.queries.slice(-10),
|
|
627
|
+
omittedQueries: (e.queryClient.omittedQueries ?? 0) + e.queryClient.queries.length - 10
|
|
628
|
+
} : void 0
|
|
629
|
+
})), a("queryClient.mutations:oldest", (e) => (e.queryClient?.mutations.length ?? 0) > 10, (e) => ({
|
|
630
|
+
...e,
|
|
631
|
+
queryClient: e.queryClient ? {
|
|
632
|
+
...e.queryClient,
|
|
633
|
+
mutations: e.queryClient.mutations.slice(-10),
|
|
634
|
+
omittedMutations: (e.queryClient.omittedMutations ?? 0) + e.queryClient.mutations.length - 10
|
|
635
|
+
} : void 0
|
|
636
|
+
})), a("persistedQueries:oldest", (e) => (e.persistedQueries?.length ?? 0) > 10, (e) => ({
|
|
637
|
+
...e,
|
|
638
|
+
persistedQueries: e.persistedQueries?.slice(-10)
|
|
639
|
+
}))), a("queryClient", (e) => e.queryClient !== void 0, (e) => ({
|
|
386
640
|
...e,
|
|
387
641
|
queryClient: void 0
|
|
388
642
|
})), a("persistedQueries", (e) => e.persistedQueries !== void 0, (e) => ({
|
|
@@ -434,61 +688,62 @@ function He(e) {
|
|
|
434
688
|
}
|
|
435
689
|
//#endregion
|
|
436
690
|
//#region src/error-report/errorInfo.ts
|
|
437
|
-
var
|
|
438
|
-
function
|
|
439
|
-
return t(e) ? d(e) :
|
|
691
|
+
var nt = "Неизвестная ошибка";
|
|
692
|
+
function F(e) {
|
|
693
|
+
return t(e) ? d().valuePolicy === "verbatim" ? _(e, We) : h(e) : nt;
|
|
440
694
|
}
|
|
441
|
-
function
|
|
695
|
+
function rt(e) {
|
|
442
696
|
let t = e.status ?? e.statusCode ?? e.httpStatus;
|
|
443
697
|
return typeof t == "number" && Number.isFinite(t) ? t : void 0;
|
|
444
698
|
}
|
|
445
|
-
function
|
|
699
|
+
function it(e) {
|
|
446
700
|
if (!e || typeof e != "object") return null;
|
|
447
701
|
let n = e.appError;
|
|
448
702
|
if (!n || typeof n != "object") return null;
|
|
449
703
|
let r = n, i = t(r.message);
|
|
450
704
|
return i ? {
|
|
451
705
|
name: "AppError",
|
|
452
|
-
message:
|
|
453
|
-
code: t(r.code) ?
|
|
454
|
-
httpStatus:
|
|
706
|
+
message: F(i),
|
|
707
|
+
code: t(r.code) ? h(String(r.code), 128) : void 0,
|
|
708
|
+
httpStatus: rt(r)
|
|
455
709
|
} : null;
|
|
456
710
|
}
|
|
457
|
-
function
|
|
458
|
-
let t =
|
|
711
|
+
function I(e) {
|
|
712
|
+
let t = it(e);
|
|
459
713
|
if (t) return t;
|
|
460
714
|
if (e instanceof Error) return {
|
|
461
|
-
name:
|
|
462
|
-
message:
|
|
463
|
-
stackTrace: e.stack ?
|
|
715
|
+
name: h(e.name || "Error", 256),
|
|
716
|
+
message: F(e.message),
|
|
717
|
+
stackTrace: e.stack ? _(e.stack, O) : void 0
|
|
464
718
|
};
|
|
465
719
|
if (e && typeof e == "object") {
|
|
466
720
|
let t = e;
|
|
467
721
|
return {
|
|
468
|
-
name:
|
|
469
|
-
message:
|
|
470
|
-
stackTrace: typeof t.stack == "string" ?
|
|
471
|
-
httpStatus:
|
|
722
|
+
name: h(typeof t.name == "string" ? t.name : "Error", 256),
|
|
723
|
+
message: F(typeof t.message == "string" ? t.message : String(e)),
|
|
724
|
+
stackTrace: typeof t.stack == "string" ? _(t.stack, O) : void 0,
|
|
725
|
+
httpStatus: rt(t)
|
|
472
726
|
};
|
|
473
727
|
}
|
|
474
728
|
return {
|
|
475
729
|
name: "Error",
|
|
476
|
-
message:
|
|
730
|
+
message: F(typeof e == "string" ? e : String(e ?? nt))
|
|
477
731
|
};
|
|
478
732
|
}
|
|
479
733
|
//#endregion
|
|
480
734
|
//#region src/error-report/diagnostics.ts
|
|
481
|
-
|
|
482
|
-
|
|
735
|
+
var at = 40, ot = 40;
|
|
736
|
+
function st(e, t, n) {
|
|
737
|
+
return x(e, {
|
|
483
738
|
scope: t,
|
|
484
739
|
source: n
|
|
485
740
|
});
|
|
486
741
|
}
|
|
487
|
-
function
|
|
488
|
-
let t =
|
|
742
|
+
function L(e) {
|
|
743
|
+
let t = d(), i = b(e.queryKey, { scope: "query-key" }) ?? { type: "redacted" }, a = t.valuePolicy === "verbatim" ? r(e.queryHash) : r(n(i));
|
|
489
744
|
return {
|
|
490
|
-
queryHash:
|
|
491
|
-
queryKey:
|
|
745
|
+
queryHash: a,
|
|
746
|
+
queryKey: i,
|
|
492
747
|
status: e.state.status,
|
|
493
748
|
fetchStatus: e.state.fetchStatus,
|
|
494
749
|
dataUpdatedAt: e.state.dataUpdatedAt,
|
|
@@ -496,66 +751,75 @@ function A(e) {
|
|
|
496
751
|
failureCount: e.state.fetchFailureCount,
|
|
497
752
|
isInvalidated: e.state.isInvalidated,
|
|
498
753
|
observersCount: e.getObserversCount(),
|
|
499
|
-
meta:
|
|
500
|
-
dataShape:
|
|
754
|
+
meta: st(e.meta, "query-meta", a),
|
|
755
|
+
dataShape: b(y(e.state.data), {
|
|
501
756
|
scope: "query-data-shape",
|
|
502
|
-
source:
|
|
757
|
+
source: a
|
|
503
758
|
}),
|
|
504
|
-
|
|
759
|
+
dataPreview: t.valuePolicy === "verbatim" && t.dataPreviewBytes.query > 0 && e.state.data !== void 0 ? E(e.state.data, t.dataPreviewBytes.query) : void 0,
|
|
760
|
+
error: e.state.error ? I(e.state.error) : void 0
|
|
505
761
|
};
|
|
506
762
|
}
|
|
507
|
-
function
|
|
763
|
+
function R(e) {
|
|
764
|
+
let t = d();
|
|
508
765
|
return {
|
|
509
|
-
mutationKey: e.options.mutationKey ?
|
|
766
|
+
mutationKey: e.options.mutationKey ? b(e.options.mutationKey, { scope: "mutation-key" }) : void 0,
|
|
510
767
|
status: e.state.status,
|
|
511
768
|
failureCount: e.state.failureCount,
|
|
512
769
|
submittedAt: e.state.submittedAt,
|
|
513
|
-
meta:
|
|
514
|
-
|
|
770
|
+
meta: st(e.meta, "mutation-meta"),
|
|
771
|
+
variablesPreview: t.valuePolicy === "verbatim" && t.dataPreviewBytes.mutation > 0 && e.state.variables !== void 0 ? E(e.state.variables, t.dataPreviewBytes.mutation) : void 0,
|
|
772
|
+
error: e.state.error ? I(e.state.error) : void 0
|
|
515
773
|
};
|
|
516
774
|
}
|
|
517
|
-
function
|
|
775
|
+
function z(e) {
|
|
776
|
+
let t = e.getQueryCache().getAll(), n = e.getMutationCache().getAll();
|
|
518
777
|
return {
|
|
519
|
-
queries:
|
|
520
|
-
mutations:
|
|
778
|
+
queries: t.slice(-40).map(L),
|
|
779
|
+
mutations: n.slice(-40).map(R),
|
|
780
|
+
...d().valuePolicy === "verbatim" ? {
|
|
781
|
+
omittedQueries: Math.max(0, t.length - at) || void 0,
|
|
782
|
+
omittedMutations: Math.max(0, n.length - ot) || void 0
|
|
783
|
+
} : {}
|
|
521
784
|
};
|
|
522
785
|
}
|
|
523
|
-
function
|
|
524
|
-
let t = e.state,
|
|
786
|
+
function ct(e) {
|
|
787
|
+
let t = d(), i = e.state, a = b(e.queryKey, { scope: "persisted-query-key" }), o = t.valuePolicy === "verbatim" ? r(e.queryHash) : a ? r(n(a)) : void 0;
|
|
525
788
|
return {
|
|
526
|
-
buster: e.buster ?
|
|
527
|
-
queryHash:
|
|
528
|
-
queryKey:
|
|
529
|
-
status:
|
|
530
|
-
fetchStatus:
|
|
531
|
-
dataUpdatedAt:
|
|
532
|
-
errorUpdatedAt:
|
|
533
|
-
failureCount:
|
|
534
|
-
|
|
789
|
+
buster: e.buster ? h(e.buster, 512) : void 0,
|
|
790
|
+
queryHash: o,
|
|
791
|
+
queryKey: a,
|
|
792
|
+
status: i.status,
|
|
793
|
+
fetchStatus: i.fetchStatus,
|
|
794
|
+
dataUpdatedAt: i.dataUpdatedAt,
|
|
795
|
+
errorUpdatedAt: i.errorUpdatedAt,
|
|
796
|
+
failureCount: i.fetchFailureCount,
|
|
797
|
+
dataPreview: t.valuePolicy === "verbatim" && t.dataPreviewBytes.persistedQuery > 0 && i.data !== void 0 ? E(i.data, t.dataPreviewBytes.persistedQuery) : void 0,
|
|
798
|
+
error: i.error ? I(i.error) : void 0
|
|
535
799
|
};
|
|
536
800
|
}
|
|
537
|
-
async function
|
|
801
|
+
async function B() {
|
|
538
802
|
let e = s();
|
|
539
803
|
if (!e?.entries) return [];
|
|
540
804
|
try {
|
|
541
|
-
return (await e.entries()).slice(-40).map(([, e]) =>
|
|
805
|
+
return (await e.entries()).slice(-40).map(([, e]) => ct(e));
|
|
542
806
|
} catch {
|
|
543
807
|
return [];
|
|
544
808
|
}
|
|
545
809
|
}
|
|
546
810
|
//#endregion
|
|
547
811
|
//#region src/error-report/environment.ts
|
|
548
|
-
function
|
|
812
|
+
function lt(e = {}) {
|
|
549
813
|
let t = e.isDev ?? __DEV__;
|
|
550
814
|
return typeof window < "u" && !t;
|
|
551
815
|
}
|
|
552
|
-
function
|
|
816
|
+
function ut() {
|
|
553
817
|
return {
|
|
554
818
|
mode: __DEV__ ? "development" : "production",
|
|
555
819
|
buildId: typeof __APP_BUILD_ID__ == "string" ? __APP_BUILD_ID__ : void 0
|
|
556
820
|
};
|
|
557
821
|
}
|
|
558
|
-
function
|
|
822
|
+
function dt() {
|
|
559
823
|
if (!(typeof window > "u")) return {
|
|
560
824
|
userAgent: window.navigator.userAgent,
|
|
561
825
|
language: window.navigator.language,
|
|
@@ -564,20 +828,30 @@ function Xe() {
|
|
|
564
828
|
}
|
|
565
829
|
//#endregion
|
|
566
830
|
//#region src/error-report/schema.ts
|
|
567
|
-
var
|
|
568
|
-
c.string().max(
|
|
831
|
+
var V = c.lazy(() => c.union([
|
|
832
|
+
c.string().max(8192),
|
|
569
833
|
c.number().finite(),
|
|
570
834
|
c.boolean(),
|
|
571
835
|
c.null(),
|
|
572
|
-
c.array(
|
|
573
|
-
c.record(c.string(),
|
|
574
|
-
])),
|
|
836
|
+
c.array(V).max(20),
|
|
837
|
+
c.record(c.string(), V).refine((e) => Object.keys(e).length <= 40)
|
|
838
|
+
])), H = c.record(c.string(), V).refine((e) => Object.keys(e).length <= 40), ft = c.object({
|
|
839
|
+
json: c.string().refine((e) => {
|
|
840
|
+
if (g(e) > 16384) return !1;
|
|
841
|
+
try {
|
|
842
|
+
return JSON.parse(e), !0;
|
|
843
|
+
} catch {
|
|
844
|
+
return !1;
|
|
845
|
+
}
|
|
846
|
+
}),
|
|
847
|
+
truncated: c.boolean()
|
|
848
|
+
}).strict(), U = c.object({
|
|
575
849
|
name: c.string().min(1).max(256),
|
|
576
|
-
message: c.string().min(1).max(
|
|
850
|
+
message: c.string().min(1).max(131072).refine((e) => g(e) <= 131072),
|
|
577
851
|
code: c.string().max(128).optional(),
|
|
578
|
-
stackTrace: c.string().refine((e) =>
|
|
852
|
+
stackTrace: c.string().refine((e) => g(e) <= 65536).optional(),
|
|
579
853
|
httpStatus: c.number().finite().optional()
|
|
580
|
-
}).strict(),
|
|
854
|
+
}).strict(), pt = c.object({
|
|
581
855
|
utc: c.string().min(1).max(64),
|
|
582
856
|
type: c.enum([
|
|
583
857
|
"route",
|
|
@@ -591,10 +865,10 @@ var P = c.lazy(() => c.union([
|
|
|
591
865
|
appId: c.string().max(128).optional(),
|
|
592
866
|
viewId: c.string().max(128).optional(),
|
|
593
867
|
target: c.string().max(2048).optional(),
|
|
594
|
-
detail:
|
|
595
|
-
}).strict(),
|
|
868
|
+
detail: H.optional()
|
|
869
|
+
}).strict(), mt = c.object({
|
|
596
870
|
queryHash: c.string().max(512),
|
|
597
|
-
queryKey:
|
|
871
|
+
queryKey: V,
|
|
598
872
|
status: c.string().max(64).optional(),
|
|
599
873
|
fetchStatus: c.string().max(64).optional(),
|
|
600
874
|
dataUpdatedAt: c.number().finite().optional(),
|
|
@@ -602,27 +876,30 @@ var P = c.lazy(() => c.union([
|
|
|
602
876
|
failureCount: c.number().finite().optional(),
|
|
603
877
|
isInvalidated: c.boolean().optional(),
|
|
604
878
|
observersCount: c.number().finite().optional(),
|
|
605
|
-
meta:
|
|
606
|
-
dataShape:
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
879
|
+
meta: H.optional(),
|
|
880
|
+
dataShape: V.optional(),
|
|
881
|
+
dataPreview: ft.optional(),
|
|
882
|
+
error: U.optional()
|
|
883
|
+
}).strict(), ht = c.object({
|
|
884
|
+
mutationKey: V.optional(),
|
|
610
885
|
status: c.string().max(64).optional(),
|
|
611
886
|
failureCount: c.number().finite().optional(),
|
|
612
887
|
submittedAt: c.number().finite().optional(),
|
|
613
|
-
meta:
|
|
614
|
-
|
|
615
|
-
|
|
888
|
+
meta: H.optional(),
|
|
889
|
+
variablesPreview: ft.optional(),
|
|
890
|
+
error: U.optional()
|
|
891
|
+
}).strict(), gt = c.object({
|
|
616
892
|
buster: c.string().max(512).optional(),
|
|
617
893
|
queryHash: c.string().max(512).optional(),
|
|
618
|
-
queryKey:
|
|
894
|
+
queryKey: V.optional(),
|
|
619
895
|
status: c.string().max(64).optional(),
|
|
620
896
|
fetchStatus: c.string().max(64).optional(),
|
|
621
897
|
dataUpdatedAt: c.number().finite().optional(),
|
|
622
898
|
errorUpdatedAt: c.number().finite().optional(),
|
|
623
899
|
failureCount: c.number().finite().optional(),
|
|
624
|
-
|
|
625
|
-
|
|
900
|
+
dataPreview: ft.optional(),
|
|
901
|
+
error: U.optional()
|
|
902
|
+
}).strict(), _t = c.object({
|
|
626
903
|
payloadVersion: c.literal(1),
|
|
627
904
|
application: c.string().min(1).max(128),
|
|
628
905
|
reportId: c.string().uuid(),
|
|
@@ -635,7 +912,7 @@ var P = c.lazy(() => c.union([
|
|
|
635
912
|
"react"
|
|
636
913
|
]),
|
|
637
914
|
source: c.string().min(1).max(256),
|
|
638
|
-
error:
|
|
915
|
+
error: U,
|
|
639
916
|
environment: c.object({
|
|
640
917
|
mode: c.enum(["development", "production"]),
|
|
641
918
|
buildId: c.string().max(128).optional()
|
|
@@ -647,30 +924,34 @@ var P = c.lazy(() => c.union([
|
|
|
647
924
|
}).strict().optional(),
|
|
648
925
|
location: c.object({
|
|
649
926
|
pathname: c.string().max(2048),
|
|
650
|
-
origin: c.string().max(2048).optional()
|
|
927
|
+
origin: c.string().max(2048).optional(),
|
|
928
|
+
search: c.string().max(2048).optional(),
|
|
929
|
+
hash: c.string().max(2048).optional()
|
|
651
930
|
}).strict().optional(),
|
|
652
931
|
viewport: c.object({
|
|
653
932
|
width: c.number().finite(),
|
|
654
933
|
height: c.number().finite(),
|
|
655
934
|
devicePixelRatio: c.number().finite().optional()
|
|
656
935
|
}).strict().optional(),
|
|
657
|
-
react: c.object({ componentStack: c.string().refine((e) =>
|
|
658
|
-
query:
|
|
659
|
-
mutation:
|
|
936
|
+
react: c.object({ componentStack: c.string().refine((e) => g(e) <= 32768).optional() }).strict().optional(),
|
|
937
|
+
query: mt.optional(),
|
|
938
|
+
mutation: ht.optional(),
|
|
660
939
|
queryClient: c.object({
|
|
661
|
-
queries: c.array(
|
|
662
|
-
mutations: c.array(
|
|
940
|
+
queries: c.array(mt).max(40),
|
|
941
|
+
mutations: c.array(ht).max(40),
|
|
942
|
+
omittedQueries: c.number().int().nonnegative().optional(),
|
|
943
|
+
omittedMutations: c.number().int().nonnegative().optional()
|
|
663
944
|
}).strict().optional(),
|
|
664
|
-
persistedQueries: c.array(
|
|
665
|
-
breadcrumbs: c.array(
|
|
666
|
-
context:
|
|
945
|
+
persistedQueries: c.array(gt).max(40).optional(),
|
|
946
|
+
breadcrumbs: c.array(pt).max(80),
|
|
947
|
+
context: H.optional(),
|
|
667
948
|
truncation: c.object({
|
|
668
949
|
reason: c.literal("payload-size"),
|
|
669
|
-
limitBytes: c.literal(
|
|
950
|
+
limitBytes: c.literal(D),
|
|
670
951
|
originalBytes: c.number().int().positive(),
|
|
671
952
|
droppedSections: c.array(c.string().max(128)).max(32)
|
|
672
953
|
}).strict().optional()
|
|
673
|
-
}).strict().refine((e) =>
|
|
954
|
+
}).strict().refine((e) => N(e) <= D), vt = c.object({
|
|
674
955
|
reportId: c.string().uuid(),
|
|
675
956
|
sessionId: c.string().uuid(),
|
|
676
957
|
createdUtc: c.string().min(1).max(64),
|
|
@@ -688,126 +969,130 @@ var P = c.lazy(() => c.union([
|
|
|
688
969
|
]),
|
|
689
970
|
sentUtc: c.string().min(1).max(64).optional(),
|
|
690
971
|
failedReason: c.string().max(4096).optional(),
|
|
691
|
-
payload:
|
|
972
|
+
payload: _t
|
|
692
973
|
}).strict().superRefine((e, t) => {
|
|
693
974
|
(e.reportId !== e.payload.reportId || e.sessionId !== e.payload.sessionId || e.createdUtc !== e.payload.createdUtc || e.category !== e.payload.category) && t.addIssue({
|
|
694
975
|
code: "custom",
|
|
695
976
|
message: "Draft identity должна совпадать с payload identity."
|
|
696
977
|
});
|
|
697
978
|
});
|
|
698
|
-
function
|
|
979
|
+
function yt(e, t) {
|
|
699
980
|
try {
|
|
700
981
|
return new TextEncoder().encode(JSON.stringify(e)).byteLength <= t;
|
|
701
982
|
} catch {
|
|
702
983
|
return !1;
|
|
703
984
|
}
|
|
704
985
|
}
|
|
705
|
-
function
|
|
706
|
-
if (
|
|
707
|
-
let t =
|
|
986
|
+
function bt(e) {
|
|
987
|
+
if (yt(e, 262144)) try {
|
|
988
|
+
let t = _t.safeParse(e);
|
|
708
989
|
return t.success ? t.data : void 0;
|
|
709
990
|
} catch {
|
|
710
991
|
return;
|
|
711
992
|
}
|
|
712
993
|
}
|
|
713
|
-
function
|
|
714
|
-
if (
|
|
715
|
-
let t =
|
|
994
|
+
function W(e) {
|
|
995
|
+
if (yt(e, 278528)) try {
|
|
996
|
+
let t = vt.safeParse(e);
|
|
716
997
|
return t.success ? t.data : void 0;
|
|
717
998
|
} catch {
|
|
718
999
|
return;
|
|
719
1000
|
}
|
|
720
1001
|
}
|
|
721
|
-
function
|
|
1002
|
+
function xt(e) {
|
|
722
1003
|
return Array.isArray(e) ? e.flatMap((e) => {
|
|
723
|
-
let t =
|
|
1004
|
+
let t = W(e);
|
|
724
1005
|
return t ? [t] : [];
|
|
725
1006
|
}) : [];
|
|
726
1007
|
}
|
|
727
1008
|
//#endregion
|
|
728
1009
|
//#region src/error-report/drafts.ts
|
|
729
|
-
var
|
|
730
|
-
function
|
|
1010
|
+
var St = `${__APP_ID__}.errorReport.drafts.v2`, Ct = `${__APP_ID__}.errorReport.sessionId.v1`, G = Tt();
|
|
1011
|
+
function wt() {
|
|
731
1012
|
return o(/* @__PURE__ */ new Date());
|
|
732
1013
|
}
|
|
733
|
-
function
|
|
1014
|
+
function Tt() {
|
|
734
1015
|
if (typeof sessionStorage > "u") return [];
|
|
735
1016
|
try {
|
|
736
|
-
let e = sessionStorage.getItem(
|
|
737
|
-
return
|
|
1017
|
+
let e = sessionStorage.getItem(St);
|
|
1018
|
+
return xt(e ? JSON.parse(e) : []);
|
|
738
1019
|
} catch {
|
|
739
1020
|
return [];
|
|
740
1021
|
}
|
|
741
1022
|
}
|
|
742
|
-
function
|
|
743
|
-
if (
|
|
744
|
-
sessionStorage.setItem(
|
|
1023
|
+
function Et(e) {
|
|
1024
|
+
if (G = e.slice(-10), !(typeof sessionStorage > "u")) try {
|
|
1025
|
+
sessionStorage.setItem(St, JSON.stringify(G));
|
|
745
1026
|
} catch {}
|
|
746
1027
|
}
|
|
747
|
-
function
|
|
748
|
-
if (
|
|
1028
|
+
function Dt() {
|
|
1029
|
+
if (typeof window > "u") return;
|
|
1030
|
+
let e = d().valuePolicy === "verbatim";
|
|
1031
|
+
return {
|
|
749
1032
|
pathname: window.location.pathname,
|
|
750
|
-
origin: window.location.origin
|
|
1033
|
+
origin: window.location.origin,
|
|
1034
|
+
search: e ? window.location.search : void 0,
|
|
1035
|
+
hash: e ? window.location.hash : void 0
|
|
751
1036
|
};
|
|
752
1037
|
}
|
|
753
|
-
function
|
|
1038
|
+
function Ot() {
|
|
754
1039
|
if (!(typeof window > "u")) return {
|
|
755
1040
|
width: window.innerWidth,
|
|
756
1041
|
height: window.innerHeight,
|
|
757
1042
|
devicePixelRatio: window.devicePixelRatio
|
|
758
1043
|
};
|
|
759
1044
|
}
|
|
760
|
-
function
|
|
1045
|
+
function kt(e) {
|
|
761
1046
|
if (!e) return;
|
|
762
|
-
let t =
|
|
1047
|
+
let t = b(e, {
|
|
763
1048
|
scope: "draft-failed-reason",
|
|
764
1049
|
source: "delivery"
|
|
765
1050
|
});
|
|
766
1051
|
return typeof t == "string" ? t : void 0;
|
|
767
1052
|
}
|
|
768
|
-
function
|
|
769
|
-
return
|
|
1053
|
+
function At(e) {
|
|
1054
|
+
return G.find((t) => t.reportId === e);
|
|
770
1055
|
}
|
|
771
|
-
function
|
|
772
|
-
let n =
|
|
1056
|
+
function jt(e, t) {
|
|
1057
|
+
let n = At(e);
|
|
773
1058
|
if (!n) return;
|
|
774
|
-
let r =
|
|
1059
|
+
let r = W({
|
|
775
1060
|
...n,
|
|
776
1061
|
...t,
|
|
777
|
-
sentUtc: "sentUtc" in t ? t.sentUtc ?
|
|
778
|
-
failedReason: "failedReason" in t ?
|
|
1062
|
+
sentUtc: "sentUtc" in t ? t.sentUtc ? h(t.sentUtc, 64) : void 0 : n.sentUtc,
|
|
1063
|
+
failedReason: "failedReason" in t ? kt(t.failedReason) : n.failedReason
|
|
779
1064
|
});
|
|
780
|
-
if (r) return
|
|
1065
|
+
if (r) return Et(G.map((t) => t.reportId === e ? r : t)), r;
|
|
781
1066
|
}
|
|
782
|
-
function
|
|
783
|
-
return
|
|
1067
|
+
function Mt() {
|
|
1068
|
+
return G;
|
|
784
1069
|
}
|
|
785
|
-
function
|
|
786
|
-
if (!
|
|
787
|
-
let t = i(), n = ee(
|
|
1070
|
+
function K(e) {
|
|
1071
|
+
if (!lt()) return;
|
|
1072
|
+
let t = i(), n = ee(Ct), r = wt(), a = tt({
|
|
788
1073
|
payloadVersion: 1,
|
|
789
1074
|
application: __APP_ID__,
|
|
790
1075
|
reportId: t,
|
|
791
1076
|
sessionId: n,
|
|
792
1077
|
createdUtc: r,
|
|
793
1078
|
category: e.category,
|
|
794
|
-
source:
|
|
1079
|
+
source: h(e.source, 256),
|
|
795
1080
|
error: e.error,
|
|
796
|
-
environment:
|
|
797
|
-
client:
|
|
798
|
-
location:
|
|
799
|
-
viewport:
|
|
1081
|
+
environment: ut(),
|
|
1082
|
+
client: dt(),
|
|
1083
|
+
location: Dt(),
|
|
1084
|
+
viewport: Ot(),
|
|
800
1085
|
react: e.react,
|
|
801
1086
|
query: e.query,
|
|
802
1087
|
mutation: e.mutation,
|
|
803
1088
|
queryClient: e.queryClient,
|
|
804
1089
|
persistedQueries: e.persistedQueries,
|
|
805
|
-
breadcrumbs:
|
|
806
|
-
context:
|
|
1090
|
+
breadcrumbs: Se(),
|
|
1091
|
+
context: x(e.context, {
|
|
807
1092
|
scope: "context",
|
|
808
1093
|
source: e.source
|
|
809
1094
|
})
|
|
810
|
-
}), o =
|
|
1095
|
+
}), o = W({
|
|
811
1096
|
reportId: t,
|
|
812
1097
|
sessionId: n,
|
|
813
1098
|
createdUtc: r,
|
|
@@ -815,60 +1100,60 @@ function B(e) {
|
|
|
815
1100
|
status: "pending",
|
|
816
1101
|
payload: a
|
|
817
1102
|
});
|
|
818
|
-
if (o) return
|
|
1103
|
+
if (o) return Et([...G, o]), o;
|
|
819
1104
|
}
|
|
820
1105
|
//#endregion
|
|
821
1106
|
//#region src/error-report/runtimeDeduplication.ts
|
|
822
|
-
var
|
|
823
|
-
function
|
|
1107
|
+
var Nt = 6e4, Pt = 100, q = /* @__PURE__ */ new Map();
|
|
1108
|
+
function Ft(e) {
|
|
824
1109
|
if (e) return e.split("\n").map((e) => e.trim()).filter(Boolean);
|
|
825
1110
|
}
|
|
826
|
-
function
|
|
1111
|
+
function It(e) {
|
|
827
1112
|
return r(n({
|
|
828
1113
|
category: e.category,
|
|
829
1114
|
source: e.source,
|
|
830
1115
|
error: {
|
|
831
1116
|
...e.error,
|
|
832
|
-
stackTrace:
|
|
1117
|
+
stackTrace: Ft(e.error.stackTrace)
|
|
833
1118
|
},
|
|
834
1119
|
pathname: e.pathname,
|
|
835
1120
|
scope: e.scope
|
|
836
1121
|
}));
|
|
837
1122
|
}
|
|
838
|
-
function
|
|
839
|
-
let n =
|
|
840
|
-
!n || t && n.capture !== t || (clearTimeout(n.expirationTimer),
|
|
1123
|
+
function J(e, t) {
|
|
1124
|
+
let n = q.get(e);
|
|
1125
|
+
!n || t && n.capture !== t || (clearTimeout(n.expirationTimer), q.delete(e));
|
|
841
1126
|
}
|
|
842
|
-
function
|
|
843
|
-
for (let [t, n] of
|
|
1127
|
+
function Lt(e) {
|
|
1128
|
+
for (let [t, n] of q) e - n.capturedAt >= 6e4 && J(t, n.capture);
|
|
844
1129
|
}
|
|
845
|
-
function
|
|
846
|
-
let e =
|
|
847
|
-
e &&
|
|
1130
|
+
function Rt() {
|
|
1131
|
+
let e = q.keys().next().value;
|
|
1132
|
+
e && J(e);
|
|
848
1133
|
}
|
|
849
|
-
function
|
|
850
|
-
let n = Date.now(), r =
|
|
1134
|
+
function zt(e, t) {
|
|
1135
|
+
let n = Date.now(), r = It(e), i = q.get(r);
|
|
851
1136
|
if (i && n - i.capturedAt < 6e4) return i.capture;
|
|
852
|
-
for (
|
|
1137
|
+
for (Lt(n); q.size >= Pt;) Rt();
|
|
853
1138
|
let a = t(), o = setTimeout(() => {
|
|
854
|
-
|
|
855
|
-
},
|
|
856
|
-
return
|
|
1139
|
+
J(r, a);
|
|
1140
|
+
}, Nt);
|
|
1141
|
+
return q.set(r, {
|
|
857
1142
|
capturedAt: n,
|
|
858
1143
|
capture: a,
|
|
859
1144
|
expirationTimer: o
|
|
860
1145
|
}), a.catch(() => {
|
|
861
|
-
|
|
1146
|
+
J(r, a);
|
|
862
1147
|
}), a;
|
|
863
1148
|
}
|
|
864
|
-
function
|
|
865
|
-
for (let e of
|
|
866
|
-
|
|
1149
|
+
function Bt() {
|
|
1150
|
+
for (let e of q.values()) clearTimeout(e.expirationTimer);
|
|
1151
|
+
q.clear();
|
|
867
1152
|
}
|
|
868
1153
|
//#endregion
|
|
869
1154
|
//#region src/error-report/transport.ts
|
|
870
|
-
var
|
|
871
|
-
function
|
|
1155
|
+
var Vt = 6e4, Ht = 100, Ut = 250, Wt, Gt = /* @__PURE__ */ new WeakSet(), Kt = /* @__PURE__ */ new WeakSet(), Y = /* @__PURE__ */ new Map();
|
|
1156
|
+
function qt(e) {
|
|
872
1157
|
return [
|
|
873
1158
|
e.source,
|
|
874
1159
|
e.method,
|
|
@@ -877,37 +1162,37 @@ function kt(e) {
|
|
|
877
1162
|
e.responseUrl
|
|
878
1163
|
].filter(Boolean).join("|");
|
|
879
1164
|
}
|
|
880
|
-
function
|
|
881
|
-
let t = Date.now(), n =
|
|
882
|
-
for (let [e, n] of
|
|
883
|
-
let r =
|
|
884
|
-
return r && t - r <
|
|
1165
|
+
function Jt(e) {
|
|
1166
|
+
let t = Date.now(), n = qt(e);
|
|
1167
|
+
for (let [e, n] of Y) (t - n > Vt || Y.size > Ht) && Y.delete(e);
|
|
1168
|
+
let r = Y.get(n);
|
|
1169
|
+
return r && t - r < Vt ? !0 : (Y.set(n, t), !1);
|
|
885
1170
|
}
|
|
886
|
-
function
|
|
887
|
-
|
|
1171
|
+
function Yt(e) {
|
|
1172
|
+
Wt = e, Y.clear();
|
|
888
1173
|
}
|
|
889
|
-
function
|
|
890
|
-
return e instanceof Error &&
|
|
1174
|
+
function Xt(e) {
|
|
1175
|
+
return e instanceof Error && Gt.has(e);
|
|
891
1176
|
}
|
|
892
|
-
function
|
|
893
|
-
e instanceof Error &&
|
|
1177
|
+
function Zt(e) {
|
|
1178
|
+
e instanceof Error && Kt.add(e);
|
|
894
1179
|
}
|
|
895
|
-
function
|
|
896
|
-
|
|
897
|
-
if (!
|
|
898
|
-
let n =
|
|
1180
|
+
function Qt(e, t) {
|
|
1181
|
+
Gt.add(e), setTimeout(() => {
|
|
1182
|
+
if (!Kt.has(e) && Wt && !Jt(t)) try {
|
|
1183
|
+
let n = Wt(e, t);
|
|
899
1184
|
Promise.resolve(n).catch(() => void 0);
|
|
900
1185
|
} catch {}
|
|
901
|
-
},
|
|
1186
|
+
}, Ut);
|
|
902
1187
|
}
|
|
903
1188
|
//#endregion
|
|
904
1189
|
//#region src/error-report/capture.ts
|
|
905
|
-
async function
|
|
906
|
-
|
|
1190
|
+
async function $t(e, t, n, r) {
|
|
1191
|
+
Zt(e);
|
|
907
1192
|
let i = r?.source ?? "query";
|
|
908
|
-
|
|
1193
|
+
C({
|
|
909
1194
|
type: "query-error",
|
|
910
|
-
detail:
|
|
1195
|
+
detail: x({
|
|
911
1196
|
queryKey: r?.queryKey ?? t.queryKey,
|
|
912
1197
|
...r?.detail
|
|
913
1198
|
}, {
|
|
@@ -915,26 +1200,26 @@ async function Pt(e, t, n, r) {
|
|
|
915
1200
|
source: i
|
|
916
1201
|
})
|
|
917
1202
|
});
|
|
918
|
-
let [a, o] = await Promise.all([
|
|
919
|
-
return
|
|
1203
|
+
let [a, o] = await Promise.all([B(), Promise.resolve(z(n))]);
|
|
1204
|
+
return K({
|
|
920
1205
|
category: "query",
|
|
921
1206
|
source: i,
|
|
922
|
-
error: r?.errorInfo ??
|
|
923
|
-
query:
|
|
1207
|
+
error: r?.errorInfo ?? I(e),
|
|
1208
|
+
query: L(t),
|
|
924
1209
|
queryClient: o,
|
|
925
1210
|
persistedQueries: a,
|
|
926
|
-
context:
|
|
1211
|
+
context: x(r?.detail, {
|
|
927
1212
|
scope: "context",
|
|
928
1213
|
source: i
|
|
929
1214
|
})
|
|
930
1215
|
});
|
|
931
1216
|
}
|
|
932
|
-
async function
|
|
933
|
-
|
|
1217
|
+
async function en(e, t, n, r = {}) {
|
|
1218
|
+
Zt(e);
|
|
934
1219
|
let i = r.source ?? "mutation";
|
|
935
|
-
|
|
1220
|
+
C({
|
|
936
1221
|
type: "mutation-error",
|
|
937
|
-
detail:
|
|
1222
|
+
detail: x({
|
|
938
1223
|
mutationKey: t.options.mutationKey,
|
|
939
1224
|
...r.detail
|
|
940
1225
|
}, {
|
|
@@ -942,28 +1227,28 @@ async function Ft(e, t, n, r = {}) {
|
|
|
942
1227
|
source: i
|
|
943
1228
|
})
|
|
944
1229
|
});
|
|
945
|
-
let [a, o] = await Promise.all([
|
|
946
|
-
return
|
|
1230
|
+
let [a, o] = await Promise.all([B(), Promise.resolve(z(n))]);
|
|
1231
|
+
return K({
|
|
947
1232
|
category: "mutation",
|
|
948
1233
|
source: i,
|
|
949
|
-
error: r.errorInfo ??
|
|
950
|
-
mutation:
|
|
1234
|
+
error: r.errorInfo ?? I(e),
|
|
1235
|
+
mutation: R(t),
|
|
951
1236
|
queryClient: o,
|
|
952
1237
|
persistedQueries: a,
|
|
953
|
-
context:
|
|
1238
|
+
context: x(r.detail, {
|
|
954
1239
|
scope: "context",
|
|
955
1240
|
source: i
|
|
956
1241
|
})
|
|
957
1242
|
});
|
|
958
1243
|
}
|
|
959
|
-
function
|
|
960
|
-
let r = t.category ?? "runtime", i = t.source ?? t.category ?? "runtime", a = t.errorInfo ??
|
|
1244
|
+
function tn(e, t = {}, n) {
|
|
1245
|
+
let r = t.category ?? "runtime", i = t.source ?? t.category ?? "runtime", a = t.errorInfo ?? I(e), o = x(t.detail, {
|
|
961
1246
|
scope: "context",
|
|
962
1247
|
source: i
|
|
963
1248
|
}), s = async () => {
|
|
964
|
-
|
|
1249
|
+
C({
|
|
965
1250
|
type: "runtime-error",
|
|
966
|
-
detail:
|
|
1251
|
+
detail: x({
|
|
967
1252
|
category: r,
|
|
968
1253
|
source: i,
|
|
969
1254
|
...t.detail
|
|
@@ -972,8 +1257,8 @@ function It(e, t = {}, n) {
|
|
|
972
1257
|
source: i
|
|
973
1258
|
})
|
|
974
1259
|
});
|
|
975
|
-
let [e, s] = n ? await Promise.all([
|
|
976
|
-
return
|
|
1260
|
+
let [e, s] = n ? await Promise.all([B(), Promise.resolve(z(n))]) : [void 0, void 0];
|
|
1261
|
+
return K({
|
|
977
1262
|
category: r,
|
|
978
1263
|
source: i,
|
|
979
1264
|
error: a,
|
|
@@ -983,7 +1268,7 @@ function It(e, t = {}, n) {
|
|
|
983
1268
|
context: o
|
|
984
1269
|
});
|
|
985
1270
|
};
|
|
986
|
-
return typeof window > "u" ? s() :
|
|
1271
|
+
return typeof window > "u" ? s() : zt({
|
|
987
1272
|
category: r,
|
|
988
1273
|
source: i,
|
|
989
1274
|
error: a,
|
|
@@ -996,41 +1281,41 @@ function It(e, t = {}, n) {
|
|
|
996
1281
|
}
|
|
997
1282
|
//#endregion
|
|
998
1283
|
//#region src/error-report/queueContract.ts
|
|
999
|
-
var
|
|
1284
|
+
var nn = 1, rn = 50, an = 6048e5, on = 3e4, sn = /* @__PURE__ */ new Set([
|
|
1000
1285
|
"http",
|
|
1001
1286
|
"network",
|
|
1002
1287
|
"timeout",
|
|
1003
1288
|
"unknown"
|
|
1004
1289
|
]);
|
|
1005
|
-
function
|
|
1290
|
+
function cn(e) {
|
|
1006
1291
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
1007
1292
|
}
|
|
1008
|
-
function
|
|
1293
|
+
function X(e) {
|
|
1009
1294
|
return typeof e == "string" && e.length <= 64 && Number.isFinite(Date.parse(e));
|
|
1010
1295
|
}
|
|
1011
|
-
function
|
|
1296
|
+
function ln(e) {
|
|
1012
1297
|
return typeof e == "number" && Number.isSafeInteger(e) && e >= 0;
|
|
1013
1298
|
}
|
|
1014
|
-
function
|
|
1015
|
-
if (e !== void 0 && !(!
|
|
1299
|
+
function un(e) {
|
|
1300
|
+
if (e !== void 0 && !(!cn(e) || !X(e.utc) || typeof e.kind != "string") && sn.has(e.kind) && !(e.httpStatus !== void 0 && (typeof e.httpStatus != "number" || !Number.isInteger(e.httpStatus) || e.httpStatus < 100 || e.httpStatus > 599))) return {
|
|
1016
1301
|
utc: e.utc,
|
|
1017
1302
|
kind: e.kind,
|
|
1018
1303
|
httpStatus: e.httpStatus
|
|
1019
1304
|
};
|
|
1020
1305
|
}
|
|
1021
|
-
function
|
|
1022
|
-
if (e !== void 0 && !(!
|
|
1306
|
+
function dn(e) {
|
|
1307
|
+
if (e !== void 0 && !(!cn(e) || typeof e.ownerId != "string" || e.ownerId.length === 0 || e.ownerId.length > 128) && X(e.expiresUtc)) return {
|
|
1023
1308
|
ownerId: e.ownerId,
|
|
1024
1309
|
expiresUtc: e.expiresUtc
|
|
1025
1310
|
};
|
|
1026
1311
|
}
|
|
1027
|
-
function
|
|
1028
|
-
if (!
|
|
1029
|
-
let t =
|
|
1312
|
+
function fn(e) {
|
|
1313
|
+
if (!cn(e) || e.queueVersion !== 1 || typeof e.reportId != "string" || !X(e.enqueuedUtc) || !X(e.expiresUtc) || !X(e.nextAttemptUtc) || !ln(e.attemptCount)) return;
|
|
1314
|
+
let t = bt(e.payload);
|
|
1030
1315
|
if (!t || t.reportId !== e.reportId) return;
|
|
1031
|
-
let n =
|
|
1316
|
+
let n = dn(e.lease);
|
|
1032
1317
|
if (e.lease !== void 0 && !n) return;
|
|
1033
|
-
let r =
|
|
1318
|
+
let r = un(e.lastFailure);
|
|
1034
1319
|
if (!(e.lastFailure !== void 0 && !r)) return {
|
|
1035
1320
|
queueVersion: 1,
|
|
1036
1321
|
reportId: e.reportId,
|
|
@@ -1043,30 +1328,30 @@ function Gt(e) {
|
|
|
1043
1328
|
lastFailure: r
|
|
1044
1329
|
};
|
|
1045
1330
|
}
|
|
1046
|
-
function
|
|
1331
|
+
function Z(e, t) {
|
|
1047
1332
|
if (!Array.isArray(e)) return [];
|
|
1048
1333
|
let n = /* @__PURE__ */ new Set(), r = [];
|
|
1049
1334
|
for (let i of e) {
|
|
1050
|
-
let e =
|
|
1335
|
+
let e = fn(i);
|
|
1051
1336
|
if (!(!e || Date.parse(e.expiresUtc) <= t || n.has(e.reportId)) && (n.add(e.reportId), r.push(e), r.length === 50)) break;
|
|
1052
1337
|
}
|
|
1053
1338
|
return r;
|
|
1054
1339
|
}
|
|
1055
1340
|
//#endregion
|
|
1056
1341
|
//#region src/error-report/queue.ts
|
|
1057
|
-
var
|
|
1058
|
-
function
|
|
1342
|
+
var pn = "queue.v1", mn = "records";
|
|
1343
|
+
function Q(e) {
|
|
1059
1344
|
return new Date(e).toISOString();
|
|
1060
1345
|
}
|
|
1061
|
-
function
|
|
1346
|
+
function $(e) {
|
|
1062
1347
|
let t = e.trim();
|
|
1063
1348
|
if (t.length === 0 || t.length > 128) throw Error("Error report lease owner должен содержать от 1 до 128 символов");
|
|
1064
1349
|
return t;
|
|
1065
1350
|
}
|
|
1066
|
-
function
|
|
1351
|
+
function hn(e, t) {
|
|
1067
1352
|
return Date.parse(e.nextAttemptUtc) - Date.parse(t.nextAttemptUtc) || Date.parse(e.enqueuedUtc) - Date.parse(t.enqueuedUtc);
|
|
1068
1353
|
}
|
|
1069
|
-
function
|
|
1354
|
+
function gn(e, t, n) {
|
|
1070
1355
|
let r = e.findIndex((e) => e.reportId === t);
|
|
1071
1356
|
return r < 0 ? {
|
|
1072
1357
|
index: r,
|
|
@@ -1079,17 +1364,17 @@ function Q(e, t, n) {
|
|
|
1079
1364
|
result: "lease-mismatch"
|
|
1080
1365
|
};
|
|
1081
1366
|
}
|
|
1082
|
-
function
|
|
1367
|
+
function _n(e = {}) {
|
|
1083
1368
|
let t = e.storage ?? s({
|
|
1084
1369
|
dbName: e.dbName ?? `${__APP_ID__}.error-report.queue.v1`,
|
|
1085
|
-
storeName:
|
|
1370
|
+
storeName: mn,
|
|
1086
1371
|
indexedDB: e.indexedDB
|
|
1087
1372
|
});
|
|
1088
1373
|
if (!t) return;
|
|
1089
1374
|
let n = t;
|
|
1090
1375
|
function r(e, t) {
|
|
1091
|
-
return n.updateItem(
|
|
1092
|
-
let r = t(
|
|
1376
|
+
return n.updateItem(pn, (n) => {
|
|
1377
|
+
let r = t(Z(n, e));
|
|
1093
1378
|
return {
|
|
1094
1379
|
action: "set",
|
|
1095
1380
|
value: r.records,
|
|
@@ -1099,7 +1384,7 @@ function Jt(e = {}) {
|
|
|
1099
1384
|
}
|
|
1100
1385
|
return {
|
|
1101
1386
|
enqueue: async (e, t = /* @__PURE__ */ new Date()) => {
|
|
1102
|
-
let n =
|
|
1387
|
+
let n = bt(e);
|
|
1103
1388
|
if (!n) return { status: "invalid-payload" };
|
|
1104
1389
|
let i = t.getTime();
|
|
1105
1390
|
return Number.isFinite(i) ? r(i, (e) => {
|
|
@@ -1119,12 +1404,12 @@ function Jt(e = {}) {
|
|
|
1119
1404
|
};
|
|
1120
1405
|
t = e[n]?.reportId, e.splice(n, 1);
|
|
1121
1406
|
}
|
|
1122
|
-
let r =
|
|
1407
|
+
let r = Q(i);
|
|
1123
1408
|
return e.push({
|
|
1124
1409
|
queueVersion: 1,
|
|
1125
1410
|
reportId: n.reportId,
|
|
1126
1411
|
enqueuedUtc: r,
|
|
1127
|
-
expiresUtc:
|
|
1412
|
+
expiresUtc: Q(i + an),
|
|
1128
1413
|
nextAttemptUtc: r,
|
|
1129
1414
|
attemptCount: 0,
|
|
1130
1415
|
payload: n
|
|
@@ -1137,11 +1422,11 @@ function Jt(e = {}) {
|
|
|
1137
1422
|
};
|
|
1138
1423
|
}) : { status: "invalid-payload" };
|
|
1139
1424
|
},
|
|
1140
|
-
leaseNext: async ({ ownerId: e, now: t = /* @__PURE__ */ new Date(), leaseDurationMs: n =
|
|
1141
|
-
let i =
|
|
1425
|
+
leaseNext: async ({ ownerId: e, now: t = /* @__PURE__ */ new Date(), leaseDurationMs: n = on }) => {
|
|
1426
|
+
let i = $(e), a = t.getTime();
|
|
1142
1427
|
if (!Number.isFinite(a) || !Number.isFinite(n) || n <= 0) throw Error("Error report lease требует валидное время и положительную длительность");
|
|
1143
1428
|
return r(a, (e) => {
|
|
1144
|
-
let t = e.filter((e) => Date.parse(e.nextAttemptUtc) <= a && (e.lease === void 0 || Date.parse(e.lease.expiresUtc) <= a)).sort(
|
|
1429
|
+
let t = e.filter((e) => Date.parse(e.nextAttemptUtc) <= a && (e.lease === void 0 || Date.parse(e.lease.expiresUtc) <= a)).sort(hn)[0];
|
|
1145
1430
|
if (!t) return {
|
|
1146
1431
|
records: e,
|
|
1147
1432
|
result: void 0
|
|
@@ -1151,7 +1436,7 @@ function Jt(e = {}) {
|
|
|
1151
1436
|
attemptCount: t.attemptCount + 1,
|
|
1152
1437
|
lease: {
|
|
1153
1438
|
ownerId: i,
|
|
1154
|
-
expiresUtc:
|
|
1439
|
+
expiresUtc: Q(a + n)
|
|
1155
1440
|
}
|
|
1156
1441
|
};
|
|
1157
1442
|
return {
|
|
@@ -1161,9 +1446,9 @@ function Jt(e = {}) {
|
|
|
1161
1446
|
});
|
|
1162
1447
|
},
|
|
1163
1448
|
acknowledge: async (e, t) => {
|
|
1164
|
-
let n =
|
|
1449
|
+
let n = $(t);
|
|
1165
1450
|
return r(Date.now(), (t) => {
|
|
1166
|
-
let r =
|
|
1451
|
+
let r = gn(t, e, n);
|
|
1167
1452
|
return r.result === "updated" ? (t.splice(r.index, 1), {
|
|
1168
1453
|
records: t,
|
|
1169
1454
|
result: "updated"
|
|
@@ -1174,10 +1459,10 @@ function Jt(e = {}) {
|
|
|
1174
1459
|
});
|
|
1175
1460
|
},
|
|
1176
1461
|
reschedule: async (e, t, n) => {
|
|
1177
|
-
let i =
|
|
1462
|
+
let i = $(t), a = Date.parse(n.nextAttemptUtc), o = Date.parse(n.failure.utc);
|
|
1178
1463
|
if (!Number.isFinite(a) || !Number.isFinite(o)) throw Error("Error report retry требует валидные UTC timestamps");
|
|
1179
1464
|
return r(o, (t) => {
|
|
1180
|
-
let r =
|
|
1465
|
+
let r = gn(t, e, i);
|
|
1181
1466
|
if (r.result !== "updated") return {
|
|
1182
1467
|
records: t,
|
|
1183
1468
|
result: r.result
|
|
@@ -1198,9 +1483,9 @@ function Jt(e = {}) {
|
|
|
1198
1483
|
});
|
|
1199
1484
|
},
|
|
1200
1485
|
discard: async (e, t) => {
|
|
1201
|
-
let n =
|
|
1486
|
+
let n = $(t);
|
|
1202
1487
|
return r(Date.now(), (t) => {
|
|
1203
|
-
let r =
|
|
1488
|
+
let r = gn(t, e, n);
|
|
1204
1489
|
return r.result === "updated" ? (t.splice(r.index, 1), {
|
|
1205
1490
|
records: t,
|
|
1206
1491
|
result: "updated"
|
|
@@ -1212,31 +1497,31 @@ function Jt(e = {}) {
|
|
|
1212
1497
|
},
|
|
1213
1498
|
getRecords: async (e = /* @__PURE__ */ new Date()) => {
|
|
1214
1499
|
let t = e.getTime();
|
|
1215
|
-
return Number.isFinite(t) ?
|
|
1500
|
+
return Number.isFinite(t) ? Z(await n.getItem(pn), t).sort(hn) : [];
|
|
1216
1501
|
},
|
|
1217
1502
|
getNextWakeUtc: async (e = /* @__PURE__ */ new Date()) => {
|
|
1218
1503
|
let t = e.getTime();
|
|
1219
1504
|
if (!Number.isFinite(t)) return;
|
|
1220
|
-
let r =
|
|
1505
|
+
let r = Z(await n.getItem(pn), t).reduce((e, t) => {
|
|
1221
1506
|
let n = Math.max(Date.parse(t.nextAttemptUtc), t.lease ? Date.parse(t.lease.expiresUtc) : 0);
|
|
1222
1507
|
return e === void 0 || n < e ? n : e;
|
|
1223
1508
|
}, void 0);
|
|
1224
|
-
return r === void 0 ? void 0 :
|
|
1509
|
+
return r === void 0 ? void 0 : Q(r);
|
|
1225
1510
|
}
|
|
1226
1511
|
};
|
|
1227
1512
|
}
|
|
1228
1513
|
//#endregion
|
|
1229
1514
|
//#region src/error-report/runtime.ts
|
|
1230
|
-
var
|
|
1231
|
-
function
|
|
1232
|
-
|
|
1515
|
+
var vn;
|
|
1516
|
+
function yn(e) {
|
|
1517
|
+
vn = e, Bt();
|
|
1233
1518
|
}
|
|
1234
|
-
async function
|
|
1235
|
-
if (
|
|
1236
|
-
await
|
|
1519
|
+
async function bn(e, t = {}) {
|
|
1520
|
+
if (vn) try {
|
|
1521
|
+
await vn(e, t);
|
|
1237
1522
|
} catch {}
|
|
1238
1523
|
}
|
|
1239
1524
|
//#endregion
|
|
1240
|
-
export { a as ERROR_REPORT_BUILD_ID_PATTERN,
|
|
1525
|
+
export { a as ERROR_REPORT_BUILD_ID_PATTERN, D as ERROR_REPORT_PAYLOAD_MAX_BYTES, Ue as ERROR_REPORT_PAYLOAD_VERSION, on as ERROR_REPORT_QUEUE_LEASE_MS, rn as ERROR_REPORT_QUEUE_MAX_ITEMS, an as ERROR_REPORT_QUEUE_TTL_MS, nn as ERROR_REPORT_QUEUE_VERSION, O as ERROR_REPORT_STACK_TRACE_MAX_BYTES, We as ERROR_REPORT_VERBATIM_MESSAGE_MAX_BYTES, C as addErrorReportBreadcrumb, K as captureErrorReportDraft, en as captureMutationErrorReport, $t as captureQueryErrorReport, tn as captureRuntimeErrorReport, Ce as clearErrorReportBreadcrumbs, R as collectMutationDiagnostics, B as collectPersistedQueryDiagnostics, z as collectQueryClientDiagnostics, L as collectQueryDiagnostics, y as createDataShape, he as createDiagnosticValue, I as createErrorInfo, _n as createErrorReportQueue, Se as getErrorReportBreadcrumbs, dt as getErrorReportClientEnvironment, At as getErrorReportDraft, Mt as getErrorReportDrafts, ut as getErrorReportEnvironment, N as getErrorReportPayloadSize, g as getUtf8TextSize, Pe as installErrorReportBrowserBreadcrumbs, lt as isErrorReportingEnabled, Xt as isTransportErrorReportScheduled, tt as limitErrorReportPayload, Z as normalizeErrorReportQueueRecords, W as parseErrorReportDraft, xt as parseErrorReportDrafts, bt as parseErrorReportPayload, fn as parseErrorReportQueueRecord, bn as reportRuntimeError, Qt as reportTransportError, x as sanitizeDetail, h as sanitizeDiagnosticText, _ as sanitizeDiagnosticTextBytes, b as sanitizeErrorReportValue, re as setErrorReportCaptureOptions, yn as setErrorReportRuntimeErrorReporter, ge as setErrorReportSanitizer, Yt as setErrorReportTransportErrorReporter, Zt as suppressTransportErrorReport, jt as updateErrorReportDraft };
|
|
1241
1526
|
|
|
1242
1527
|
//# sourceMappingURL=index.js.map
|