@ryuzaki13/react-foundation-lib 2.12.0 → 2.13.0
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/chunks/{formatters-BJ6VySIq.js → formatters-hHUJpZqD.js} +5 -5
- package/dist/chunks/{formatters-BJ6VySIq.js.map → formatters-hHUJpZqD.js.map} +1 -1
- 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 +684 -404
- 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/dist/formatters/index.js +1 -1
- package/package.json +1 -1
- package/src/error-report/README.mdx +32 -13
- package/src/formatters/valueState/README.mdx +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Vt as e } from "../chunks/formatters-
|
|
1
|
+
import { Vt as e } from "../chunks/formatters-hHUJpZqD.js";
|
|
2
2
|
import { _ as t } from "../chunks/array-D-_yMMUK.js";
|
|
3
3
|
import { stableStringify as n } from "../utils/index.js";
|
|
4
4
|
import { hashString128 as r, uuidv4 as i } from "../crypto/index.js";
|
|
@@ -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,331 @@ 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) {
|
|
321
498
|
return {
|
|
322
499
|
...e,
|
|
323
|
-
reportId:
|
|
324
|
-
sessionId:
|
|
325
|
-
createdUtc:
|
|
326
|
-
application:
|
|
327
|
-
source:
|
|
328
|
-
error:
|
|
500
|
+
reportId: h(e.reportId, 128),
|
|
501
|
+
sessionId: h(e.sessionId, 128),
|
|
502
|
+
createdUtc: h(e.createdUtc, 64),
|
|
503
|
+
application: h(e.application, qe),
|
|
504
|
+
source: h(e.source, Ke),
|
|
505
|
+
error: M(e.error, e.source),
|
|
329
506
|
environment: {
|
|
330
507
|
...e.environment,
|
|
331
|
-
buildId: e.environment.buildId ?
|
|
508
|
+
buildId: e.environment.buildId ? h(e.environment.buildId, 128) : void 0
|
|
332
509
|
},
|
|
333
510
|
client: e.client ? {
|
|
334
|
-
userAgent: e.client.userAgent ?
|
|
335
|
-
language: e.client.language ?
|
|
336
|
-
timeZone: e.client.timeZone ?
|
|
511
|
+
userAgent: e.client.userAgent ? h(e.client.userAgent) : void 0,
|
|
512
|
+
language: e.client.language ? h(e.client.language, 128) : void 0,
|
|
513
|
+
timeZone: e.client.timeZone ? h(e.client.timeZone, 128) : void 0
|
|
337
514
|
} : void 0,
|
|
338
515
|
location: e.location ? {
|
|
339
|
-
pathname:
|
|
340
|
-
origin: e.location.origin ?
|
|
516
|
+
pathname: Ye(e.location.pathname),
|
|
517
|
+
origin: e.location.origin ? h(e.location.origin.split(/[?#]/, 1)[0] ?? e.location.origin, k) : void 0,
|
|
518
|
+
search: d().valuePolicy === "verbatim" && e.location.search ? h(e.location.search, k) : void 0,
|
|
519
|
+
hash: d().valuePolicy === "verbatim" && e.location.hash ? h(e.location.hash, k) : void 0
|
|
341
520
|
} : void 0,
|
|
342
|
-
react: e.react?.componentStack ? { componentStack:
|
|
521
|
+
react: e.react?.componentStack ? { componentStack: j(e.react.componentStack, {
|
|
343
522
|
scope: "stack-trace",
|
|
344
523
|
source: "react-component-stack"
|
|
345
|
-
},
|
|
346
|
-
query: e.query ?
|
|
347
|
-
mutation: e.mutation ?
|
|
524
|
+
}, Ge, "bytes") } : void 0,
|
|
525
|
+
query: e.query ? Xe(e.query) : void 0,
|
|
526
|
+
mutation: e.mutation ? Ze(e.mutation) : void 0,
|
|
348
527
|
queryClient: e.queryClient ? {
|
|
349
|
-
queries: e.queryClient.queries.slice(-40).map(
|
|
350
|
-
mutations: e.queryClient.mutations.slice(-40).map(
|
|
528
|
+
queries: e.queryClient.queries.slice(-40).map(Xe),
|
|
529
|
+
mutations: e.queryClient.mutations.slice(-40).map(Ze),
|
|
530
|
+
omittedQueries: (e.queryClient.omittedQueries ?? 0) + Math.max(0, e.queryClient.queries.length - 40) || void 0,
|
|
531
|
+
omittedMutations: (e.queryClient.omittedMutations ?? 0) + Math.max(0, e.queryClient.mutations.length - 40) || void 0
|
|
351
532
|
} : void 0,
|
|
352
|
-
persistedQueries: e.persistedQueries?.slice(-40).map(
|
|
533
|
+
persistedQueries: e.persistedQueries?.slice(-40).map(Qe),
|
|
353
534
|
breadcrumbs: e.breadcrumbs.slice(-80).map((e) => ({
|
|
354
535
|
...e,
|
|
355
|
-
utc:
|
|
356
|
-
routeId: e.routeId ?
|
|
357
|
-
appId: e.appId ?
|
|
358
|
-
viewId: e.viewId ?
|
|
359
|
-
target: e.target ?
|
|
360
|
-
detail:
|
|
536
|
+
utc: h(e.utc, 64),
|
|
537
|
+
routeId: e.routeId ? h(e.routeId, 512) : void 0,
|
|
538
|
+
appId: e.appId ? h(e.appId, 128) : void 0,
|
|
539
|
+
viewId: e.viewId ? h(e.viewId, 128) : void 0,
|
|
540
|
+
target: e.target ? h(e.target, 2048) : void 0,
|
|
541
|
+
detail: x(e.detail, {
|
|
361
542
|
scope: "breadcrumb-detail",
|
|
362
543
|
source: e.type
|
|
363
544
|
})
|
|
364
545
|
})),
|
|
365
|
-
context:
|
|
546
|
+
context: x(e.context, {
|
|
366
547
|
scope: "context",
|
|
367
548
|
source: e.source
|
|
368
549
|
})
|
|
369
550
|
};
|
|
370
551
|
}
|
|
371
|
-
function
|
|
372
|
-
|
|
552
|
+
function P(e, t) {
|
|
553
|
+
if (!e || g(e.json) <= t) return e;
|
|
554
|
+
try {
|
|
555
|
+
return {
|
|
556
|
+
...E(JSON.parse(e.json), t),
|
|
557
|
+
truncated: !0
|
|
558
|
+
};
|
|
559
|
+
} catch {
|
|
560
|
+
return {
|
|
561
|
+
json: "null",
|
|
562
|
+
truncated: !0
|
|
563
|
+
};
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
function et(e, t, n) {
|
|
567
|
+
return n ? {
|
|
568
|
+
...e,
|
|
569
|
+
queryClient: e.queryClient ? {
|
|
570
|
+
...e.queryClient,
|
|
571
|
+
queries: e.queryClient.queries.map((e) => ({
|
|
572
|
+
...e,
|
|
573
|
+
dataPreview: P(e.dataPreview, t)
|
|
574
|
+
})),
|
|
575
|
+
mutations: e.queryClient.mutations.map((e) => ({
|
|
576
|
+
...e,
|
|
577
|
+
variablesPreview: P(e.variablesPreview, t)
|
|
578
|
+
}))
|
|
579
|
+
} : void 0,
|
|
580
|
+
persistedQueries: e.persistedQueries?.map((e) => ({
|
|
581
|
+
...e,
|
|
582
|
+
dataPreview: P(e.dataPreview, t)
|
|
583
|
+
}))
|
|
584
|
+
} : {
|
|
585
|
+
...e,
|
|
586
|
+
query: e.query ? {
|
|
587
|
+
...e.query,
|
|
588
|
+
dataPreview: P(e.query.dataPreview, t)
|
|
589
|
+
} : void 0,
|
|
590
|
+
mutation: e.mutation ? {
|
|
591
|
+
...e.mutation,
|
|
592
|
+
variablesPreview: P(e.mutation.variablesPreview, t)
|
|
593
|
+
} : void 0
|
|
594
|
+
};
|
|
595
|
+
}
|
|
596
|
+
function tt(e) {
|
|
597
|
+
let t = $e(e), n = N(t);
|
|
373
598
|
if (n <= 262144) return t;
|
|
374
599
|
let r = [], i = {
|
|
375
600
|
...t,
|
|
376
601
|
truncation: {
|
|
377
602
|
reason: "payload-size",
|
|
378
|
-
limitBytes:
|
|
603
|
+
limitBytes: D,
|
|
379
604
|
originalBytes: n,
|
|
380
605
|
droppedSections: r
|
|
381
606
|
}
|
|
382
|
-
}, a = (e, t, n) => {
|
|
383
|
-
!t(i) || D(i) <= 262144 || (r.push(e), i = n(i));
|
|
384
607
|
};
|
|
385
|
-
|
|
608
|
+
for (let e of [
|
|
609
|
+
512,
|
|
610
|
+
128,
|
|
611
|
+
4
|
|
612
|
+
]) {
|
|
613
|
+
if (N(i) <= 262144 || (i = et(i, e, !0), N(i) <= 262144)) break;
|
|
614
|
+
i = et(i, e, !1);
|
|
615
|
+
}
|
|
616
|
+
let a = (e, t, n) => {
|
|
617
|
+
!t(i) || N(i) <= 262144 || (r.push(e), i = n(i));
|
|
618
|
+
};
|
|
619
|
+
return a("queryClient.queries:oldest", (e) => (e.queryClient?.queries.length ?? 0) > 10, (e) => ({
|
|
620
|
+
...e,
|
|
621
|
+
queryClient: e.queryClient ? {
|
|
622
|
+
...e.queryClient,
|
|
623
|
+
queries: e.queryClient.queries.slice(-10),
|
|
624
|
+
omittedQueries: (e.queryClient.omittedQueries ?? 0) + e.queryClient.queries.length - 10
|
|
625
|
+
} : void 0
|
|
626
|
+
})), a("queryClient.mutations:oldest", (e) => (e.queryClient?.mutations.length ?? 0) > 10, (e) => ({
|
|
627
|
+
...e,
|
|
628
|
+
queryClient: e.queryClient ? {
|
|
629
|
+
...e.queryClient,
|
|
630
|
+
mutations: e.queryClient.mutations.slice(-10),
|
|
631
|
+
omittedMutations: (e.queryClient.omittedMutations ?? 0) + e.queryClient.mutations.length - 10
|
|
632
|
+
} : void 0
|
|
633
|
+
})), a("persistedQueries:oldest", (e) => (e.persistedQueries?.length ?? 0) > 10, (e) => ({
|
|
634
|
+
...e,
|
|
635
|
+
persistedQueries: e.persistedQueries?.slice(-10)
|
|
636
|
+
})), a("queryClient", (e) => e.queryClient !== void 0, (e) => ({
|
|
386
637
|
...e,
|
|
387
638
|
queryClient: void 0
|
|
388
639
|
})), a("persistedQueries", (e) => e.persistedQueries !== void 0, (e) => ({
|
|
@@ -434,61 +685,62 @@ function He(e) {
|
|
|
434
685
|
}
|
|
435
686
|
//#endregion
|
|
436
687
|
//#region src/error-report/errorInfo.ts
|
|
437
|
-
var
|
|
438
|
-
function
|
|
439
|
-
return t(e) ? d(e) :
|
|
688
|
+
var nt = "Неизвестная ошибка";
|
|
689
|
+
function F(e) {
|
|
690
|
+
return t(e) ? d().valuePolicy === "verbatim" ? _(e, We) : h(e) : nt;
|
|
440
691
|
}
|
|
441
|
-
function
|
|
692
|
+
function rt(e) {
|
|
442
693
|
let t = e.status ?? e.statusCode ?? e.httpStatus;
|
|
443
694
|
return typeof t == "number" && Number.isFinite(t) ? t : void 0;
|
|
444
695
|
}
|
|
445
|
-
function
|
|
696
|
+
function it(e) {
|
|
446
697
|
if (!e || typeof e != "object") return null;
|
|
447
698
|
let n = e.appError;
|
|
448
699
|
if (!n || typeof n != "object") return null;
|
|
449
700
|
let r = n, i = t(r.message);
|
|
450
701
|
return i ? {
|
|
451
702
|
name: "AppError",
|
|
452
|
-
message:
|
|
453
|
-
code: t(r.code) ?
|
|
454
|
-
httpStatus:
|
|
703
|
+
message: F(i),
|
|
704
|
+
code: t(r.code) ? h(String(r.code), 128) : void 0,
|
|
705
|
+
httpStatus: rt(r)
|
|
455
706
|
} : null;
|
|
456
707
|
}
|
|
457
|
-
function
|
|
458
|
-
let t =
|
|
708
|
+
function I(e) {
|
|
709
|
+
let t = it(e);
|
|
459
710
|
if (t) return t;
|
|
460
711
|
if (e instanceof Error) return {
|
|
461
|
-
name:
|
|
462
|
-
message:
|
|
463
|
-
stackTrace: e.stack ?
|
|
712
|
+
name: h(e.name || "Error", 256),
|
|
713
|
+
message: F(e.message),
|
|
714
|
+
stackTrace: e.stack ? _(e.stack, O) : void 0
|
|
464
715
|
};
|
|
465
716
|
if (e && typeof e == "object") {
|
|
466
717
|
let t = e;
|
|
467
718
|
return {
|
|
468
|
-
name:
|
|
469
|
-
message:
|
|
470
|
-
stackTrace: typeof t.stack == "string" ?
|
|
471
|
-
httpStatus:
|
|
719
|
+
name: h(typeof t.name == "string" ? t.name : "Error", 256),
|
|
720
|
+
message: F(typeof t.message == "string" ? t.message : String(e)),
|
|
721
|
+
stackTrace: typeof t.stack == "string" ? _(t.stack, O) : void 0,
|
|
722
|
+
httpStatus: rt(t)
|
|
472
723
|
};
|
|
473
724
|
}
|
|
474
725
|
return {
|
|
475
726
|
name: "Error",
|
|
476
|
-
message:
|
|
727
|
+
message: F(typeof e == "string" ? e : String(e ?? nt))
|
|
477
728
|
};
|
|
478
729
|
}
|
|
479
730
|
//#endregion
|
|
480
731
|
//#region src/error-report/diagnostics.ts
|
|
481
|
-
|
|
482
|
-
|
|
732
|
+
var at = 40, ot = 40;
|
|
733
|
+
function st(e, t, n) {
|
|
734
|
+
return x(e, {
|
|
483
735
|
scope: t,
|
|
484
736
|
source: n
|
|
485
737
|
});
|
|
486
738
|
}
|
|
487
|
-
function
|
|
488
|
-
let t =
|
|
739
|
+
function L(e) {
|
|
740
|
+
let t = d(), i = b(e.queryKey, { scope: "query-key" }) ?? { type: "redacted" }, a = t.valuePolicy === "verbatim" ? r(e.queryHash) : r(n(i));
|
|
489
741
|
return {
|
|
490
|
-
queryHash:
|
|
491
|
-
queryKey:
|
|
742
|
+
queryHash: a,
|
|
743
|
+
queryKey: i,
|
|
492
744
|
status: e.state.status,
|
|
493
745
|
fetchStatus: e.state.fetchStatus,
|
|
494
746
|
dataUpdatedAt: e.state.dataUpdatedAt,
|
|
@@ -496,66 +748,73 @@ function A(e) {
|
|
|
496
748
|
failureCount: e.state.fetchFailureCount,
|
|
497
749
|
isInvalidated: e.state.isInvalidated,
|
|
498
750
|
observersCount: e.getObserversCount(),
|
|
499
|
-
meta:
|
|
500
|
-
dataShape:
|
|
751
|
+
meta: st(e.meta, "query-meta", a),
|
|
752
|
+
dataShape: b(y(e.state.data), {
|
|
501
753
|
scope: "query-data-shape",
|
|
502
|
-
source:
|
|
754
|
+
source: a
|
|
503
755
|
}),
|
|
504
|
-
|
|
756
|
+
dataPreview: t.valuePolicy === "verbatim" && t.dataPreviewBytes.query > 0 && e.state.data !== void 0 ? E(e.state.data, t.dataPreviewBytes.query) : void 0,
|
|
757
|
+
error: e.state.error ? I(e.state.error) : void 0
|
|
505
758
|
};
|
|
506
759
|
}
|
|
507
|
-
function
|
|
760
|
+
function R(e) {
|
|
761
|
+
let t = d();
|
|
508
762
|
return {
|
|
509
|
-
mutationKey: e.options.mutationKey ?
|
|
763
|
+
mutationKey: e.options.mutationKey ? b(e.options.mutationKey, { scope: "mutation-key" }) : void 0,
|
|
510
764
|
status: e.state.status,
|
|
511
765
|
failureCount: e.state.failureCount,
|
|
512
766
|
submittedAt: e.state.submittedAt,
|
|
513
|
-
meta:
|
|
514
|
-
|
|
767
|
+
meta: st(e.meta, "mutation-meta"),
|
|
768
|
+
variablesPreview: t.valuePolicy === "verbatim" && t.dataPreviewBytes.mutation > 0 && e.state.variables !== void 0 ? E(e.state.variables, t.dataPreviewBytes.mutation) : void 0,
|
|
769
|
+
error: e.state.error ? I(e.state.error) : void 0
|
|
515
770
|
};
|
|
516
771
|
}
|
|
517
|
-
function
|
|
772
|
+
function z(e) {
|
|
773
|
+
let t = e.getQueryCache().getAll(), n = e.getMutationCache().getAll();
|
|
518
774
|
return {
|
|
519
|
-
queries:
|
|
520
|
-
mutations:
|
|
775
|
+
queries: t.slice(-40).map(L),
|
|
776
|
+
mutations: n.slice(-40).map(R),
|
|
777
|
+
omittedQueries: Math.max(0, t.length - at) || void 0,
|
|
778
|
+
omittedMutations: Math.max(0, n.length - ot) || void 0
|
|
521
779
|
};
|
|
522
780
|
}
|
|
523
|
-
function
|
|
524
|
-
let t = e.state,
|
|
781
|
+
function ct(e) {
|
|
782
|
+
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
783
|
return {
|
|
526
|
-
buster: e.buster ?
|
|
527
|
-
queryHash:
|
|
528
|
-
queryKey:
|
|
529
|
-
status:
|
|
530
|
-
fetchStatus:
|
|
531
|
-
dataUpdatedAt:
|
|
532
|
-
errorUpdatedAt:
|
|
533
|
-
failureCount:
|
|
534
|
-
|
|
784
|
+
buster: e.buster ? h(e.buster, 512) : void 0,
|
|
785
|
+
queryHash: o,
|
|
786
|
+
queryKey: a,
|
|
787
|
+
status: i.status,
|
|
788
|
+
fetchStatus: i.fetchStatus,
|
|
789
|
+
dataUpdatedAt: i.dataUpdatedAt,
|
|
790
|
+
errorUpdatedAt: i.errorUpdatedAt,
|
|
791
|
+
failureCount: i.fetchFailureCount,
|
|
792
|
+
dataPreview: t.valuePolicy === "verbatim" && t.dataPreviewBytes.persistedQuery > 0 && i.data !== void 0 ? E(i.data, t.dataPreviewBytes.persistedQuery) : void 0,
|
|
793
|
+
error: i.error ? I(i.error) : void 0
|
|
535
794
|
};
|
|
536
795
|
}
|
|
537
|
-
async function
|
|
796
|
+
async function B() {
|
|
538
797
|
let e = s();
|
|
539
798
|
if (!e?.entries) return [];
|
|
540
799
|
try {
|
|
541
|
-
return (await e.entries()).slice(-40).map(([, e]) =>
|
|
800
|
+
return (await e.entries()).slice(-40).map(([, e]) => ct(e));
|
|
542
801
|
} catch {
|
|
543
802
|
return [];
|
|
544
803
|
}
|
|
545
804
|
}
|
|
546
805
|
//#endregion
|
|
547
806
|
//#region src/error-report/environment.ts
|
|
548
|
-
function
|
|
807
|
+
function lt(e = {}) {
|
|
549
808
|
let t = e.isDev ?? __DEV__;
|
|
550
809
|
return typeof window < "u" && !t;
|
|
551
810
|
}
|
|
552
|
-
function
|
|
811
|
+
function ut() {
|
|
553
812
|
return {
|
|
554
813
|
mode: __DEV__ ? "development" : "production",
|
|
555
814
|
buildId: typeof __APP_BUILD_ID__ == "string" ? __APP_BUILD_ID__ : void 0
|
|
556
815
|
};
|
|
557
816
|
}
|
|
558
|
-
function
|
|
817
|
+
function dt() {
|
|
559
818
|
if (!(typeof window > "u")) return {
|
|
560
819
|
userAgent: window.navigator.userAgent,
|
|
561
820
|
language: window.navigator.language,
|
|
@@ -564,20 +823,30 @@ function Xe() {
|
|
|
564
823
|
}
|
|
565
824
|
//#endregion
|
|
566
825
|
//#region src/error-report/schema.ts
|
|
567
|
-
var
|
|
568
|
-
c.string().max(
|
|
826
|
+
var V = c.lazy(() => c.union([
|
|
827
|
+
c.string().max(8192),
|
|
569
828
|
c.number().finite(),
|
|
570
829
|
c.boolean(),
|
|
571
830
|
c.null(),
|
|
572
|
-
c.array(
|
|
573
|
-
c.record(c.string(),
|
|
574
|
-
])),
|
|
831
|
+
c.array(V).max(20),
|
|
832
|
+
c.record(c.string(), V).refine((e) => Object.keys(e).length <= 40)
|
|
833
|
+
])), H = c.record(c.string(), V).refine((e) => Object.keys(e).length <= 40), ft = c.object({
|
|
834
|
+
json: c.string().refine((e) => {
|
|
835
|
+
if (g(e) > 16384) return !1;
|
|
836
|
+
try {
|
|
837
|
+
return JSON.parse(e), !0;
|
|
838
|
+
} catch {
|
|
839
|
+
return !1;
|
|
840
|
+
}
|
|
841
|
+
}),
|
|
842
|
+
truncated: c.boolean()
|
|
843
|
+
}).strict(), U = c.object({
|
|
575
844
|
name: c.string().min(1).max(256),
|
|
576
|
-
message: c.string().min(1).max(
|
|
845
|
+
message: c.string().min(1).max(131072).refine((e) => g(e) <= 131072),
|
|
577
846
|
code: c.string().max(128).optional(),
|
|
578
|
-
stackTrace: c.string().refine((e) =>
|
|
847
|
+
stackTrace: c.string().refine((e) => g(e) <= 65536).optional(),
|
|
579
848
|
httpStatus: c.number().finite().optional()
|
|
580
|
-
}).strict(),
|
|
849
|
+
}).strict(), pt = c.object({
|
|
581
850
|
utc: c.string().min(1).max(64),
|
|
582
851
|
type: c.enum([
|
|
583
852
|
"route",
|
|
@@ -591,10 +860,10 @@ var P = c.lazy(() => c.union([
|
|
|
591
860
|
appId: c.string().max(128).optional(),
|
|
592
861
|
viewId: c.string().max(128).optional(),
|
|
593
862
|
target: c.string().max(2048).optional(),
|
|
594
|
-
detail:
|
|
595
|
-
}).strict(),
|
|
863
|
+
detail: H.optional()
|
|
864
|
+
}).strict(), mt = c.object({
|
|
596
865
|
queryHash: c.string().max(512),
|
|
597
|
-
queryKey:
|
|
866
|
+
queryKey: V,
|
|
598
867
|
status: c.string().max(64).optional(),
|
|
599
868
|
fetchStatus: c.string().max(64).optional(),
|
|
600
869
|
dataUpdatedAt: c.number().finite().optional(),
|
|
@@ -602,27 +871,30 @@ var P = c.lazy(() => c.union([
|
|
|
602
871
|
failureCount: c.number().finite().optional(),
|
|
603
872
|
isInvalidated: c.boolean().optional(),
|
|
604
873
|
observersCount: c.number().finite().optional(),
|
|
605
|
-
meta:
|
|
606
|
-
dataShape:
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
874
|
+
meta: H.optional(),
|
|
875
|
+
dataShape: V.optional(),
|
|
876
|
+
dataPreview: ft.optional(),
|
|
877
|
+
error: U.optional()
|
|
878
|
+
}).strict(), ht = c.object({
|
|
879
|
+
mutationKey: V.optional(),
|
|
610
880
|
status: c.string().max(64).optional(),
|
|
611
881
|
failureCount: c.number().finite().optional(),
|
|
612
882
|
submittedAt: c.number().finite().optional(),
|
|
613
|
-
meta:
|
|
614
|
-
|
|
615
|
-
|
|
883
|
+
meta: H.optional(),
|
|
884
|
+
variablesPreview: ft.optional(),
|
|
885
|
+
error: U.optional()
|
|
886
|
+
}).strict(), gt = c.object({
|
|
616
887
|
buster: c.string().max(512).optional(),
|
|
617
888
|
queryHash: c.string().max(512).optional(),
|
|
618
|
-
queryKey:
|
|
889
|
+
queryKey: V.optional(),
|
|
619
890
|
status: c.string().max(64).optional(),
|
|
620
891
|
fetchStatus: c.string().max(64).optional(),
|
|
621
892
|
dataUpdatedAt: c.number().finite().optional(),
|
|
622
893
|
errorUpdatedAt: c.number().finite().optional(),
|
|
623
894
|
failureCount: c.number().finite().optional(),
|
|
624
|
-
|
|
625
|
-
|
|
895
|
+
dataPreview: ft.optional(),
|
|
896
|
+
error: U.optional()
|
|
897
|
+
}).strict(), _t = c.object({
|
|
626
898
|
payloadVersion: c.literal(1),
|
|
627
899
|
application: c.string().min(1).max(128),
|
|
628
900
|
reportId: c.string().uuid(),
|
|
@@ -635,7 +907,7 @@ var P = c.lazy(() => c.union([
|
|
|
635
907
|
"react"
|
|
636
908
|
]),
|
|
637
909
|
source: c.string().min(1).max(256),
|
|
638
|
-
error:
|
|
910
|
+
error: U,
|
|
639
911
|
environment: c.object({
|
|
640
912
|
mode: c.enum(["development", "production"]),
|
|
641
913
|
buildId: c.string().max(128).optional()
|
|
@@ -647,30 +919,34 @@ var P = c.lazy(() => c.union([
|
|
|
647
919
|
}).strict().optional(),
|
|
648
920
|
location: c.object({
|
|
649
921
|
pathname: c.string().max(2048),
|
|
650
|
-
origin: c.string().max(2048).optional()
|
|
922
|
+
origin: c.string().max(2048).optional(),
|
|
923
|
+
search: c.string().max(2048).optional(),
|
|
924
|
+
hash: c.string().max(2048).optional()
|
|
651
925
|
}).strict().optional(),
|
|
652
926
|
viewport: c.object({
|
|
653
927
|
width: c.number().finite(),
|
|
654
928
|
height: c.number().finite(),
|
|
655
929
|
devicePixelRatio: c.number().finite().optional()
|
|
656
930
|
}).strict().optional(),
|
|
657
|
-
react: c.object({ componentStack: c.string().refine((e) =>
|
|
658
|
-
query:
|
|
659
|
-
mutation:
|
|
931
|
+
react: c.object({ componentStack: c.string().refine((e) => g(e) <= 32768).optional() }).strict().optional(),
|
|
932
|
+
query: mt.optional(),
|
|
933
|
+
mutation: ht.optional(),
|
|
660
934
|
queryClient: c.object({
|
|
661
|
-
queries: c.array(
|
|
662
|
-
mutations: c.array(
|
|
935
|
+
queries: c.array(mt).max(40),
|
|
936
|
+
mutations: c.array(ht).max(40),
|
|
937
|
+
omittedQueries: c.number().int().nonnegative().optional(),
|
|
938
|
+
omittedMutations: c.number().int().nonnegative().optional()
|
|
663
939
|
}).strict().optional(),
|
|
664
|
-
persistedQueries: c.array(
|
|
665
|
-
breadcrumbs: c.array(
|
|
666
|
-
context:
|
|
940
|
+
persistedQueries: c.array(gt).max(40).optional(),
|
|
941
|
+
breadcrumbs: c.array(pt).max(80),
|
|
942
|
+
context: H.optional(),
|
|
667
943
|
truncation: c.object({
|
|
668
944
|
reason: c.literal("payload-size"),
|
|
669
|
-
limitBytes: c.literal(
|
|
945
|
+
limitBytes: c.literal(D),
|
|
670
946
|
originalBytes: c.number().int().positive(),
|
|
671
947
|
droppedSections: c.array(c.string().max(128)).max(32)
|
|
672
948
|
}).strict().optional()
|
|
673
|
-
}).strict().refine((e) =>
|
|
949
|
+
}).strict().refine((e) => N(e) <= D), vt = c.object({
|
|
674
950
|
reportId: c.string().uuid(),
|
|
675
951
|
sessionId: c.string().uuid(),
|
|
676
952
|
createdUtc: c.string().min(1).max(64),
|
|
@@ -688,126 +964,130 @@ var P = c.lazy(() => c.union([
|
|
|
688
964
|
]),
|
|
689
965
|
sentUtc: c.string().min(1).max(64).optional(),
|
|
690
966
|
failedReason: c.string().max(4096).optional(),
|
|
691
|
-
payload:
|
|
967
|
+
payload: _t
|
|
692
968
|
}).strict().superRefine((e, t) => {
|
|
693
969
|
(e.reportId !== e.payload.reportId || e.sessionId !== e.payload.sessionId || e.createdUtc !== e.payload.createdUtc || e.category !== e.payload.category) && t.addIssue({
|
|
694
970
|
code: "custom",
|
|
695
971
|
message: "Draft identity должна совпадать с payload identity."
|
|
696
972
|
});
|
|
697
973
|
});
|
|
698
|
-
function
|
|
974
|
+
function yt(e, t) {
|
|
699
975
|
try {
|
|
700
976
|
return new TextEncoder().encode(JSON.stringify(e)).byteLength <= t;
|
|
701
977
|
} catch {
|
|
702
978
|
return !1;
|
|
703
979
|
}
|
|
704
980
|
}
|
|
705
|
-
function
|
|
706
|
-
if (
|
|
707
|
-
let t =
|
|
981
|
+
function bt(e) {
|
|
982
|
+
if (yt(e, 262144)) try {
|
|
983
|
+
let t = _t.safeParse(e);
|
|
708
984
|
return t.success ? t.data : void 0;
|
|
709
985
|
} catch {
|
|
710
986
|
return;
|
|
711
987
|
}
|
|
712
988
|
}
|
|
713
|
-
function
|
|
714
|
-
if (
|
|
715
|
-
let t =
|
|
989
|
+
function W(e) {
|
|
990
|
+
if (yt(e, 278528)) try {
|
|
991
|
+
let t = vt.safeParse(e);
|
|
716
992
|
return t.success ? t.data : void 0;
|
|
717
993
|
} catch {
|
|
718
994
|
return;
|
|
719
995
|
}
|
|
720
996
|
}
|
|
721
|
-
function
|
|
997
|
+
function xt(e) {
|
|
722
998
|
return Array.isArray(e) ? e.flatMap((e) => {
|
|
723
|
-
let t =
|
|
999
|
+
let t = W(e);
|
|
724
1000
|
return t ? [t] : [];
|
|
725
1001
|
}) : [];
|
|
726
1002
|
}
|
|
727
1003
|
//#endregion
|
|
728
1004
|
//#region src/error-report/drafts.ts
|
|
729
|
-
var
|
|
730
|
-
function
|
|
1005
|
+
var St = `${__APP_ID__}.errorReport.drafts.v2`, Ct = `${__APP_ID__}.errorReport.sessionId.v1`, G = Tt();
|
|
1006
|
+
function wt() {
|
|
731
1007
|
return o(/* @__PURE__ */ new Date());
|
|
732
1008
|
}
|
|
733
|
-
function
|
|
1009
|
+
function Tt() {
|
|
734
1010
|
if (typeof sessionStorage > "u") return [];
|
|
735
1011
|
try {
|
|
736
|
-
let e = sessionStorage.getItem(
|
|
737
|
-
return
|
|
1012
|
+
let e = sessionStorage.getItem(St);
|
|
1013
|
+
return xt(e ? JSON.parse(e) : []);
|
|
738
1014
|
} catch {
|
|
739
1015
|
return [];
|
|
740
1016
|
}
|
|
741
1017
|
}
|
|
742
|
-
function
|
|
743
|
-
if (
|
|
744
|
-
sessionStorage.setItem(
|
|
1018
|
+
function Et(e) {
|
|
1019
|
+
if (G = e.slice(-10), !(typeof sessionStorage > "u")) try {
|
|
1020
|
+
sessionStorage.setItem(St, JSON.stringify(G));
|
|
745
1021
|
} catch {}
|
|
746
1022
|
}
|
|
747
|
-
function
|
|
748
|
-
if (
|
|
1023
|
+
function Dt() {
|
|
1024
|
+
if (typeof window > "u") return;
|
|
1025
|
+
let e = d().valuePolicy === "verbatim";
|
|
1026
|
+
return {
|
|
749
1027
|
pathname: window.location.pathname,
|
|
750
|
-
origin: window.location.origin
|
|
1028
|
+
origin: window.location.origin,
|
|
1029
|
+
search: e ? window.location.search : void 0,
|
|
1030
|
+
hash: e ? window.location.hash : void 0
|
|
751
1031
|
};
|
|
752
1032
|
}
|
|
753
|
-
function
|
|
1033
|
+
function Ot() {
|
|
754
1034
|
if (!(typeof window > "u")) return {
|
|
755
1035
|
width: window.innerWidth,
|
|
756
1036
|
height: window.innerHeight,
|
|
757
1037
|
devicePixelRatio: window.devicePixelRatio
|
|
758
1038
|
};
|
|
759
1039
|
}
|
|
760
|
-
function
|
|
1040
|
+
function kt(e) {
|
|
761
1041
|
if (!e) return;
|
|
762
|
-
let t =
|
|
1042
|
+
let t = b(e, {
|
|
763
1043
|
scope: "draft-failed-reason",
|
|
764
1044
|
source: "delivery"
|
|
765
1045
|
});
|
|
766
1046
|
return typeof t == "string" ? t : void 0;
|
|
767
1047
|
}
|
|
768
|
-
function
|
|
769
|
-
return
|
|
1048
|
+
function At(e) {
|
|
1049
|
+
return G.find((t) => t.reportId === e);
|
|
770
1050
|
}
|
|
771
|
-
function
|
|
772
|
-
let n =
|
|
1051
|
+
function jt(e, t) {
|
|
1052
|
+
let n = At(e);
|
|
773
1053
|
if (!n) return;
|
|
774
|
-
let r =
|
|
1054
|
+
let r = W({
|
|
775
1055
|
...n,
|
|
776
1056
|
...t,
|
|
777
|
-
sentUtc: "sentUtc" in t ? t.sentUtc ?
|
|
778
|
-
failedReason: "failedReason" in t ?
|
|
1057
|
+
sentUtc: "sentUtc" in t ? t.sentUtc ? h(t.sentUtc, 64) : void 0 : n.sentUtc,
|
|
1058
|
+
failedReason: "failedReason" in t ? kt(t.failedReason) : n.failedReason
|
|
779
1059
|
});
|
|
780
|
-
if (r) return
|
|
1060
|
+
if (r) return Et(G.map((t) => t.reportId === e ? r : t)), r;
|
|
781
1061
|
}
|
|
782
|
-
function
|
|
783
|
-
return
|
|
1062
|
+
function Mt() {
|
|
1063
|
+
return G;
|
|
784
1064
|
}
|
|
785
|
-
function
|
|
786
|
-
if (!
|
|
787
|
-
let t = i(), n = ee(
|
|
1065
|
+
function K(e) {
|
|
1066
|
+
if (!lt()) return;
|
|
1067
|
+
let t = i(), n = ee(Ct), r = wt(), a = tt({
|
|
788
1068
|
payloadVersion: 1,
|
|
789
1069
|
application: __APP_ID__,
|
|
790
1070
|
reportId: t,
|
|
791
1071
|
sessionId: n,
|
|
792
1072
|
createdUtc: r,
|
|
793
1073
|
category: e.category,
|
|
794
|
-
source:
|
|
1074
|
+
source: h(e.source, 256),
|
|
795
1075
|
error: e.error,
|
|
796
|
-
environment:
|
|
797
|
-
client:
|
|
798
|
-
location:
|
|
799
|
-
viewport:
|
|
1076
|
+
environment: ut(),
|
|
1077
|
+
client: dt(),
|
|
1078
|
+
location: Dt(),
|
|
1079
|
+
viewport: Ot(),
|
|
800
1080
|
react: e.react,
|
|
801
1081
|
query: e.query,
|
|
802
1082
|
mutation: e.mutation,
|
|
803
1083
|
queryClient: e.queryClient,
|
|
804
1084
|
persistedQueries: e.persistedQueries,
|
|
805
|
-
breadcrumbs:
|
|
806
|
-
context:
|
|
1085
|
+
breadcrumbs: Se(),
|
|
1086
|
+
context: x(e.context, {
|
|
807
1087
|
scope: "context",
|
|
808
1088
|
source: e.source
|
|
809
1089
|
})
|
|
810
|
-
}), o =
|
|
1090
|
+
}), o = W({
|
|
811
1091
|
reportId: t,
|
|
812
1092
|
sessionId: n,
|
|
813
1093
|
createdUtc: r,
|
|
@@ -815,60 +1095,60 @@ function B(e) {
|
|
|
815
1095
|
status: "pending",
|
|
816
1096
|
payload: a
|
|
817
1097
|
});
|
|
818
|
-
if (o) return
|
|
1098
|
+
if (o) return Et([...G, o]), o;
|
|
819
1099
|
}
|
|
820
1100
|
//#endregion
|
|
821
1101
|
//#region src/error-report/runtimeDeduplication.ts
|
|
822
|
-
var
|
|
823
|
-
function
|
|
1102
|
+
var Nt = 6e4, Pt = 100, q = /* @__PURE__ */ new Map();
|
|
1103
|
+
function Ft(e) {
|
|
824
1104
|
if (e) return e.split("\n").map((e) => e.trim()).filter(Boolean);
|
|
825
1105
|
}
|
|
826
|
-
function
|
|
1106
|
+
function It(e) {
|
|
827
1107
|
return r(n({
|
|
828
1108
|
category: e.category,
|
|
829
1109
|
source: e.source,
|
|
830
1110
|
error: {
|
|
831
1111
|
...e.error,
|
|
832
|
-
stackTrace:
|
|
1112
|
+
stackTrace: Ft(e.error.stackTrace)
|
|
833
1113
|
},
|
|
834
1114
|
pathname: e.pathname,
|
|
835
1115
|
scope: e.scope
|
|
836
1116
|
}));
|
|
837
1117
|
}
|
|
838
|
-
function
|
|
839
|
-
let n =
|
|
840
|
-
!n || t && n.capture !== t || (clearTimeout(n.expirationTimer),
|
|
1118
|
+
function J(e, t) {
|
|
1119
|
+
let n = q.get(e);
|
|
1120
|
+
!n || t && n.capture !== t || (clearTimeout(n.expirationTimer), q.delete(e));
|
|
841
1121
|
}
|
|
842
|
-
function
|
|
843
|
-
for (let [t, n] of
|
|
1122
|
+
function Lt(e) {
|
|
1123
|
+
for (let [t, n] of q) e - n.capturedAt >= 6e4 && J(t, n.capture);
|
|
844
1124
|
}
|
|
845
|
-
function
|
|
846
|
-
let e =
|
|
847
|
-
e &&
|
|
1125
|
+
function Rt() {
|
|
1126
|
+
let e = q.keys().next().value;
|
|
1127
|
+
e && J(e);
|
|
848
1128
|
}
|
|
849
|
-
function
|
|
850
|
-
let n = Date.now(), r =
|
|
1129
|
+
function zt(e, t) {
|
|
1130
|
+
let n = Date.now(), r = It(e), i = q.get(r);
|
|
851
1131
|
if (i && n - i.capturedAt < 6e4) return i.capture;
|
|
852
|
-
for (
|
|
1132
|
+
for (Lt(n); q.size >= Pt;) Rt();
|
|
853
1133
|
let a = t(), o = setTimeout(() => {
|
|
854
|
-
|
|
855
|
-
},
|
|
856
|
-
return
|
|
1134
|
+
J(r, a);
|
|
1135
|
+
}, Nt);
|
|
1136
|
+
return q.set(r, {
|
|
857
1137
|
capturedAt: n,
|
|
858
1138
|
capture: a,
|
|
859
1139
|
expirationTimer: o
|
|
860
1140
|
}), a.catch(() => {
|
|
861
|
-
|
|
1141
|
+
J(r, a);
|
|
862
1142
|
}), a;
|
|
863
1143
|
}
|
|
864
|
-
function
|
|
865
|
-
for (let e of
|
|
866
|
-
|
|
1144
|
+
function Bt() {
|
|
1145
|
+
for (let e of q.values()) clearTimeout(e.expirationTimer);
|
|
1146
|
+
q.clear();
|
|
867
1147
|
}
|
|
868
1148
|
//#endregion
|
|
869
1149
|
//#region src/error-report/transport.ts
|
|
870
|
-
var
|
|
871
|
-
function
|
|
1150
|
+
var Vt = 6e4, Ht = 100, Ut = 250, Wt, Gt = /* @__PURE__ */ new WeakSet(), Kt = /* @__PURE__ */ new WeakSet(), Y = /* @__PURE__ */ new Map();
|
|
1151
|
+
function qt(e) {
|
|
872
1152
|
return [
|
|
873
1153
|
e.source,
|
|
874
1154
|
e.method,
|
|
@@ -877,37 +1157,37 @@ function kt(e) {
|
|
|
877
1157
|
e.responseUrl
|
|
878
1158
|
].filter(Boolean).join("|");
|
|
879
1159
|
}
|
|
880
|
-
function
|
|
881
|
-
let t = Date.now(), n =
|
|
882
|
-
for (let [e, n] of
|
|
883
|
-
let r =
|
|
884
|
-
return r && t - r <
|
|
1160
|
+
function Jt(e) {
|
|
1161
|
+
let t = Date.now(), n = qt(e);
|
|
1162
|
+
for (let [e, n] of Y) (t - n > Vt || Y.size > Ht) && Y.delete(e);
|
|
1163
|
+
let r = Y.get(n);
|
|
1164
|
+
return r && t - r < Vt ? !0 : (Y.set(n, t), !1);
|
|
885
1165
|
}
|
|
886
|
-
function
|
|
887
|
-
|
|
1166
|
+
function Yt(e) {
|
|
1167
|
+
Wt = e, Y.clear();
|
|
888
1168
|
}
|
|
889
|
-
function
|
|
890
|
-
return e instanceof Error &&
|
|
1169
|
+
function Xt(e) {
|
|
1170
|
+
return e instanceof Error && Gt.has(e);
|
|
891
1171
|
}
|
|
892
|
-
function
|
|
893
|
-
e instanceof Error &&
|
|
1172
|
+
function Zt(e) {
|
|
1173
|
+
e instanceof Error && Kt.add(e);
|
|
894
1174
|
}
|
|
895
|
-
function
|
|
896
|
-
|
|
897
|
-
if (!
|
|
898
|
-
let n =
|
|
1175
|
+
function Qt(e, t) {
|
|
1176
|
+
Gt.add(e), setTimeout(() => {
|
|
1177
|
+
if (!Kt.has(e) && Wt && !Jt(t)) try {
|
|
1178
|
+
let n = Wt(e, t);
|
|
899
1179
|
Promise.resolve(n).catch(() => void 0);
|
|
900
1180
|
} catch {}
|
|
901
|
-
},
|
|
1181
|
+
}, Ut);
|
|
902
1182
|
}
|
|
903
1183
|
//#endregion
|
|
904
1184
|
//#region src/error-report/capture.ts
|
|
905
|
-
async function
|
|
906
|
-
|
|
1185
|
+
async function $t(e, t, n, r) {
|
|
1186
|
+
Zt(e);
|
|
907
1187
|
let i = r?.source ?? "query";
|
|
908
|
-
|
|
1188
|
+
C({
|
|
909
1189
|
type: "query-error",
|
|
910
|
-
detail:
|
|
1190
|
+
detail: x({
|
|
911
1191
|
queryKey: r?.queryKey ?? t.queryKey,
|
|
912
1192
|
...r?.detail
|
|
913
1193
|
}, {
|
|
@@ -915,26 +1195,26 @@ async function Pt(e, t, n, r) {
|
|
|
915
1195
|
source: i
|
|
916
1196
|
})
|
|
917
1197
|
});
|
|
918
|
-
let [a, o] = await Promise.all([
|
|
919
|
-
return
|
|
1198
|
+
let [a, o] = await Promise.all([B(), Promise.resolve(z(n))]);
|
|
1199
|
+
return K({
|
|
920
1200
|
category: "query",
|
|
921
1201
|
source: i,
|
|
922
|
-
error: r?.errorInfo ??
|
|
923
|
-
query:
|
|
1202
|
+
error: r?.errorInfo ?? I(e),
|
|
1203
|
+
query: L(t),
|
|
924
1204
|
queryClient: o,
|
|
925
1205
|
persistedQueries: a,
|
|
926
|
-
context:
|
|
1206
|
+
context: x(r?.detail, {
|
|
927
1207
|
scope: "context",
|
|
928
1208
|
source: i
|
|
929
1209
|
})
|
|
930
1210
|
});
|
|
931
1211
|
}
|
|
932
|
-
async function
|
|
933
|
-
|
|
1212
|
+
async function en(e, t, n, r = {}) {
|
|
1213
|
+
Zt(e);
|
|
934
1214
|
let i = r.source ?? "mutation";
|
|
935
|
-
|
|
1215
|
+
C({
|
|
936
1216
|
type: "mutation-error",
|
|
937
|
-
detail:
|
|
1217
|
+
detail: x({
|
|
938
1218
|
mutationKey: t.options.mutationKey,
|
|
939
1219
|
...r.detail
|
|
940
1220
|
}, {
|
|
@@ -942,28 +1222,28 @@ async function Ft(e, t, n, r = {}) {
|
|
|
942
1222
|
source: i
|
|
943
1223
|
})
|
|
944
1224
|
});
|
|
945
|
-
let [a, o] = await Promise.all([
|
|
946
|
-
return
|
|
1225
|
+
let [a, o] = await Promise.all([B(), Promise.resolve(z(n))]);
|
|
1226
|
+
return K({
|
|
947
1227
|
category: "mutation",
|
|
948
1228
|
source: i,
|
|
949
|
-
error: r.errorInfo ??
|
|
950
|
-
mutation:
|
|
1229
|
+
error: r.errorInfo ?? I(e),
|
|
1230
|
+
mutation: R(t),
|
|
951
1231
|
queryClient: o,
|
|
952
1232
|
persistedQueries: a,
|
|
953
|
-
context:
|
|
1233
|
+
context: x(r.detail, {
|
|
954
1234
|
scope: "context",
|
|
955
1235
|
source: i
|
|
956
1236
|
})
|
|
957
1237
|
});
|
|
958
1238
|
}
|
|
959
|
-
function
|
|
960
|
-
let r = t.category ?? "runtime", i = t.source ?? t.category ?? "runtime", a = t.errorInfo ??
|
|
1239
|
+
function tn(e, t = {}, n) {
|
|
1240
|
+
let r = t.category ?? "runtime", i = t.source ?? t.category ?? "runtime", a = t.errorInfo ?? I(e), o = x(t.detail, {
|
|
961
1241
|
scope: "context",
|
|
962
1242
|
source: i
|
|
963
1243
|
}), s = async () => {
|
|
964
|
-
|
|
1244
|
+
C({
|
|
965
1245
|
type: "runtime-error",
|
|
966
|
-
detail:
|
|
1246
|
+
detail: x({
|
|
967
1247
|
category: r,
|
|
968
1248
|
source: i,
|
|
969
1249
|
...t.detail
|
|
@@ -972,8 +1252,8 @@ function It(e, t = {}, n) {
|
|
|
972
1252
|
source: i
|
|
973
1253
|
})
|
|
974
1254
|
});
|
|
975
|
-
let [e, s] = n ? await Promise.all([
|
|
976
|
-
return
|
|
1255
|
+
let [e, s] = n ? await Promise.all([B(), Promise.resolve(z(n))]) : [void 0, void 0];
|
|
1256
|
+
return K({
|
|
977
1257
|
category: r,
|
|
978
1258
|
source: i,
|
|
979
1259
|
error: a,
|
|
@@ -983,7 +1263,7 @@ function It(e, t = {}, n) {
|
|
|
983
1263
|
context: o
|
|
984
1264
|
});
|
|
985
1265
|
};
|
|
986
|
-
return typeof window > "u" ? s() :
|
|
1266
|
+
return typeof window > "u" ? s() : zt({
|
|
987
1267
|
category: r,
|
|
988
1268
|
source: i,
|
|
989
1269
|
error: a,
|
|
@@ -996,41 +1276,41 @@ function It(e, t = {}, n) {
|
|
|
996
1276
|
}
|
|
997
1277
|
//#endregion
|
|
998
1278
|
//#region src/error-report/queueContract.ts
|
|
999
|
-
var
|
|
1279
|
+
var nn = 1, rn = 50, an = 6048e5, on = 3e4, sn = /* @__PURE__ */ new Set([
|
|
1000
1280
|
"http",
|
|
1001
1281
|
"network",
|
|
1002
1282
|
"timeout",
|
|
1003
1283
|
"unknown"
|
|
1004
1284
|
]);
|
|
1005
|
-
function
|
|
1285
|
+
function cn(e) {
|
|
1006
1286
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
1007
1287
|
}
|
|
1008
|
-
function
|
|
1288
|
+
function X(e) {
|
|
1009
1289
|
return typeof e == "string" && e.length <= 64 && Number.isFinite(Date.parse(e));
|
|
1010
1290
|
}
|
|
1011
|
-
function
|
|
1291
|
+
function ln(e) {
|
|
1012
1292
|
return typeof e == "number" && Number.isSafeInteger(e) && e >= 0;
|
|
1013
1293
|
}
|
|
1014
|
-
function
|
|
1015
|
-
if (e !== void 0 && !(!
|
|
1294
|
+
function un(e) {
|
|
1295
|
+
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
1296
|
utc: e.utc,
|
|
1017
1297
|
kind: e.kind,
|
|
1018
1298
|
httpStatus: e.httpStatus
|
|
1019
1299
|
};
|
|
1020
1300
|
}
|
|
1021
|
-
function
|
|
1022
|
-
if (e !== void 0 && !(!
|
|
1301
|
+
function dn(e) {
|
|
1302
|
+
if (e !== void 0 && !(!cn(e) || typeof e.ownerId != "string" || e.ownerId.length === 0 || e.ownerId.length > 128) && X(e.expiresUtc)) return {
|
|
1023
1303
|
ownerId: e.ownerId,
|
|
1024
1304
|
expiresUtc: e.expiresUtc
|
|
1025
1305
|
};
|
|
1026
1306
|
}
|
|
1027
|
-
function
|
|
1028
|
-
if (!
|
|
1029
|
-
let t =
|
|
1307
|
+
function fn(e) {
|
|
1308
|
+
if (!cn(e) || e.queueVersion !== 1 || typeof e.reportId != "string" || !X(e.enqueuedUtc) || !X(e.expiresUtc) || !X(e.nextAttemptUtc) || !ln(e.attemptCount)) return;
|
|
1309
|
+
let t = bt(e.payload);
|
|
1030
1310
|
if (!t || t.reportId !== e.reportId) return;
|
|
1031
|
-
let n =
|
|
1311
|
+
let n = dn(e.lease);
|
|
1032
1312
|
if (e.lease !== void 0 && !n) return;
|
|
1033
|
-
let r =
|
|
1313
|
+
let r = un(e.lastFailure);
|
|
1034
1314
|
if (!(e.lastFailure !== void 0 && !r)) return {
|
|
1035
1315
|
queueVersion: 1,
|
|
1036
1316
|
reportId: e.reportId,
|
|
@@ -1043,30 +1323,30 @@ function Gt(e) {
|
|
|
1043
1323
|
lastFailure: r
|
|
1044
1324
|
};
|
|
1045
1325
|
}
|
|
1046
|
-
function
|
|
1326
|
+
function Z(e, t) {
|
|
1047
1327
|
if (!Array.isArray(e)) return [];
|
|
1048
1328
|
let n = /* @__PURE__ */ new Set(), r = [];
|
|
1049
1329
|
for (let i of e) {
|
|
1050
|
-
let e =
|
|
1330
|
+
let e = fn(i);
|
|
1051
1331
|
if (!(!e || Date.parse(e.expiresUtc) <= t || n.has(e.reportId)) && (n.add(e.reportId), r.push(e), r.length === 50)) break;
|
|
1052
1332
|
}
|
|
1053
1333
|
return r;
|
|
1054
1334
|
}
|
|
1055
1335
|
//#endregion
|
|
1056
1336
|
//#region src/error-report/queue.ts
|
|
1057
|
-
var
|
|
1058
|
-
function
|
|
1337
|
+
var pn = "queue.v1", mn = "records";
|
|
1338
|
+
function Q(e) {
|
|
1059
1339
|
return new Date(e).toISOString();
|
|
1060
1340
|
}
|
|
1061
|
-
function
|
|
1341
|
+
function $(e) {
|
|
1062
1342
|
let t = e.trim();
|
|
1063
1343
|
if (t.length === 0 || t.length > 128) throw Error("Error report lease owner должен содержать от 1 до 128 символов");
|
|
1064
1344
|
return t;
|
|
1065
1345
|
}
|
|
1066
|
-
function
|
|
1346
|
+
function hn(e, t) {
|
|
1067
1347
|
return Date.parse(e.nextAttemptUtc) - Date.parse(t.nextAttemptUtc) || Date.parse(e.enqueuedUtc) - Date.parse(t.enqueuedUtc);
|
|
1068
1348
|
}
|
|
1069
|
-
function
|
|
1349
|
+
function gn(e, t, n) {
|
|
1070
1350
|
let r = e.findIndex((e) => e.reportId === t);
|
|
1071
1351
|
return r < 0 ? {
|
|
1072
1352
|
index: r,
|
|
@@ -1079,17 +1359,17 @@ function Q(e, t, n) {
|
|
|
1079
1359
|
result: "lease-mismatch"
|
|
1080
1360
|
};
|
|
1081
1361
|
}
|
|
1082
|
-
function
|
|
1362
|
+
function _n(e = {}) {
|
|
1083
1363
|
let t = e.storage ?? s({
|
|
1084
1364
|
dbName: e.dbName ?? `${__APP_ID__}.error-report.queue.v1`,
|
|
1085
|
-
storeName:
|
|
1365
|
+
storeName: mn,
|
|
1086
1366
|
indexedDB: e.indexedDB
|
|
1087
1367
|
});
|
|
1088
1368
|
if (!t) return;
|
|
1089
1369
|
let n = t;
|
|
1090
1370
|
function r(e, t) {
|
|
1091
|
-
return n.updateItem(
|
|
1092
|
-
let r = t(
|
|
1371
|
+
return n.updateItem(pn, (n) => {
|
|
1372
|
+
let r = t(Z(n, e));
|
|
1093
1373
|
return {
|
|
1094
1374
|
action: "set",
|
|
1095
1375
|
value: r.records,
|
|
@@ -1099,7 +1379,7 @@ function Jt(e = {}) {
|
|
|
1099
1379
|
}
|
|
1100
1380
|
return {
|
|
1101
1381
|
enqueue: async (e, t = /* @__PURE__ */ new Date()) => {
|
|
1102
|
-
let n =
|
|
1382
|
+
let n = bt(e);
|
|
1103
1383
|
if (!n) return { status: "invalid-payload" };
|
|
1104
1384
|
let i = t.getTime();
|
|
1105
1385
|
return Number.isFinite(i) ? r(i, (e) => {
|
|
@@ -1119,12 +1399,12 @@ function Jt(e = {}) {
|
|
|
1119
1399
|
};
|
|
1120
1400
|
t = e[n]?.reportId, e.splice(n, 1);
|
|
1121
1401
|
}
|
|
1122
|
-
let r =
|
|
1402
|
+
let r = Q(i);
|
|
1123
1403
|
return e.push({
|
|
1124
1404
|
queueVersion: 1,
|
|
1125
1405
|
reportId: n.reportId,
|
|
1126
1406
|
enqueuedUtc: r,
|
|
1127
|
-
expiresUtc:
|
|
1407
|
+
expiresUtc: Q(i + an),
|
|
1128
1408
|
nextAttemptUtc: r,
|
|
1129
1409
|
attemptCount: 0,
|
|
1130
1410
|
payload: n
|
|
@@ -1137,11 +1417,11 @@ function Jt(e = {}) {
|
|
|
1137
1417
|
};
|
|
1138
1418
|
}) : { status: "invalid-payload" };
|
|
1139
1419
|
},
|
|
1140
|
-
leaseNext: async ({ ownerId: e, now: t = /* @__PURE__ */ new Date(), leaseDurationMs: n =
|
|
1141
|
-
let i =
|
|
1420
|
+
leaseNext: async ({ ownerId: e, now: t = /* @__PURE__ */ new Date(), leaseDurationMs: n = on }) => {
|
|
1421
|
+
let i = $(e), a = t.getTime();
|
|
1142
1422
|
if (!Number.isFinite(a) || !Number.isFinite(n) || n <= 0) throw Error("Error report lease требует валидное время и положительную длительность");
|
|
1143
1423
|
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(
|
|
1424
|
+
let t = e.filter((e) => Date.parse(e.nextAttemptUtc) <= a && (e.lease === void 0 || Date.parse(e.lease.expiresUtc) <= a)).sort(hn)[0];
|
|
1145
1425
|
if (!t) return {
|
|
1146
1426
|
records: e,
|
|
1147
1427
|
result: void 0
|
|
@@ -1151,7 +1431,7 @@ function Jt(e = {}) {
|
|
|
1151
1431
|
attemptCount: t.attemptCount + 1,
|
|
1152
1432
|
lease: {
|
|
1153
1433
|
ownerId: i,
|
|
1154
|
-
expiresUtc:
|
|
1434
|
+
expiresUtc: Q(a + n)
|
|
1155
1435
|
}
|
|
1156
1436
|
};
|
|
1157
1437
|
return {
|
|
@@ -1161,9 +1441,9 @@ function Jt(e = {}) {
|
|
|
1161
1441
|
});
|
|
1162
1442
|
},
|
|
1163
1443
|
acknowledge: async (e, t) => {
|
|
1164
|
-
let n =
|
|
1444
|
+
let n = $(t);
|
|
1165
1445
|
return r(Date.now(), (t) => {
|
|
1166
|
-
let r =
|
|
1446
|
+
let r = gn(t, e, n);
|
|
1167
1447
|
return r.result === "updated" ? (t.splice(r.index, 1), {
|
|
1168
1448
|
records: t,
|
|
1169
1449
|
result: "updated"
|
|
@@ -1174,10 +1454,10 @@ function Jt(e = {}) {
|
|
|
1174
1454
|
});
|
|
1175
1455
|
},
|
|
1176
1456
|
reschedule: async (e, t, n) => {
|
|
1177
|
-
let i =
|
|
1457
|
+
let i = $(t), a = Date.parse(n.nextAttemptUtc), o = Date.parse(n.failure.utc);
|
|
1178
1458
|
if (!Number.isFinite(a) || !Number.isFinite(o)) throw Error("Error report retry требует валидные UTC timestamps");
|
|
1179
1459
|
return r(o, (t) => {
|
|
1180
|
-
let r =
|
|
1460
|
+
let r = gn(t, e, i);
|
|
1181
1461
|
if (r.result !== "updated") return {
|
|
1182
1462
|
records: t,
|
|
1183
1463
|
result: r.result
|
|
@@ -1198,9 +1478,9 @@ function Jt(e = {}) {
|
|
|
1198
1478
|
});
|
|
1199
1479
|
},
|
|
1200
1480
|
discard: async (e, t) => {
|
|
1201
|
-
let n =
|
|
1481
|
+
let n = $(t);
|
|
1202
1482
|
return r(Date.now(), (t) => {
|
|
1203
|
-
let r =
|
|
1483
|
+
let r = gn(t, e, n);
|
|
1204
1484
|
return r.result === "updated" ? (t.splice(r.index, 1), {
|
|
1205
1485
|
records: t,
|
|
1206
1486
|
result: "updated"
|
|
@@ -1212,31 +1492,31 @@ function Jt(e = {}) {
|
|
|
1212
1492
|
},
|
|
1213
1493
|
getRecords: async (e = /* @__PURE__ */ new Date()) => {
|
|
1214
1494
|
let t = e.getTime();
|
|
1215
|
-
return Number.isFinite(t) ?
|
|
1495
|
+
return Number.isFinite(t) ? Z(await n.getItem(pn), t).sort(hn) : [];
|
|
1216
1496
|
},
|
|
1217
1497
|
getNextWakeUtc: async (e = /* @__PURE__ */ new Date()) => {
|
|
1218
1498
|
let t = e.getTime();
|
|
1219
1499
|
if (!Number.isFinite(t)) return;
|
|
1220
|
-
let r =
|
|
1500
|
+
let r = Z(await n.getItem(pn), t).reduce((e, t) => {
|
|
1221
1501
|
let n = Math.max(Date.parse(t.nextAttemptUtc), t.lease ? Date.parse(t.lease.expiresUtc) : 0);
|
|
1222
1502
|
return e === void 0 || n < e ? n : e;
|
|
1223
1503
|
}, void 0);
|
|
1224
|
-
return r === void 0 ? void 0 :
|
|
1504
|
+
return r === void 0 ? void 0 : Q(r);
|
|
1225
1505
|
}
|
|
1226
1506
|
};
|
|
1227
1507
|
}
|
|
1228
1508
|
//#endregion
|
|
1229
1509
|
//#region src/error-report/runtime.ts
|
|
1230
|
-
var
|
|
1231
|
-
function
|
|
1232
|
-
|
|
1510
|
+
var vn;
|
|
1511
|
+
function yn(e) {
|
|
1512
|
+
vn = e, Bt();
|
|
1233
1513
|
}
|
|
1234
|
-
async function
|
|
1235
|
-
if (
|
|
1236
|
-
await
|
|
1514
|
+
async function bn(e, t = {}) {
|
|
1515
|
+
if (vn) try {
|
|
1516
|
+
await vn(e, t);
|
|
1237
1517
|
} catch {}
|
|
1238
1518
|
}
|
|
1239
1519
|
//#endregion
|
|
1240
|
-
export { a as ERROR_REPORT_BUILD_ID_PATTERN,
|
|
1520
|
+
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
1521
|
|
|
1242
1522
|
//# sourceMappingURL=index.js.map
|