mhz-helpers 1.2.15 → 1.2.16
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/index.js +1114 -1076
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { toRaw as
|
|
2
|
-
import { createRouter as
|
|
3
|
-
function
|
|
1
|
+
import { toRaw as Or, isRef as Ct, unref as Er, hasInjectionContext as Sr, inject as Rr, ref as D, nextTick as rt, getCurrentScope as Sn, computed as $, shallowReactive as Rn, reactive as An, watch as V, onScopeDispose as Tn, shallowReadonly as Cn, readonly as Te, toRefs as Pn, defineComponent as Ar, createApp as Tr, onMounted as Fn, onBeforeUnmount as xn, toRef as Cr, customRef as Pr, toValue as pe, shallowRef as Je, onBeforeMount as Fr } from "vue";
|
|
2
|
+
import { createRouter as xr, createWebHistory as Dr, useRouter as Pt, useRoute as Ft } from "vue-router";
|
|
3
|
+
function Dn(t, e) {
|
|
4
4
|
return function() {
|
|
5
5
|
return t.apply(e, arguments);
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
|
-
const { toString:
|
|
9
|
-
const n =
|
|
8
|
+
const { toString: qr } = Object.prototype, { getPrototypeOf: xt } = Object, { iterator: Be, toStringTag: qn } = Symbol, He = /* @__PURE__ */ ((t) => (e) => {
|
|
9
|
+
const n = qr.call(e);
|
|
10
10
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
11
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
12
|
-
function
|
|
13
|
-
return t !== null && !
|
|
11
|
+
})(/* @__PURE__ */ Object.create(null)), K = (t) => (t = t.toLowerCase(), (e) => He(e) === t), $e = (t) => (e) => typeof e === t, { isArray: be } = Array, ye = $e("undefined");
|
|
12
|
+
function Ce(t) {
|
|
13
|
+
return t !== null && !ye(t) && t.constructor !== null && !ye(t.constructor) && k(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
14
14
|
}
|
|
15
|
-
const
|
|
16
|
-
function
|
|
15
|
+
const Nn = K("ArrayBuffer");
|
|
16
|
+
function Nr(t) {
|
|
17
17
|
let e;
|
|
18
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer &&
|
|
18
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Nn(t.buffer), e;
|
|
19
19
|
}
|
|
20
|
-
const
|
|
21
|
-
if (
|
|
20
|
+
const _r = $e("string"), k = $e("function"), _n = $e("number"), Pe = (t) => t !== null && typeof t == "object", Ir = (t) => t === !0 || t === !1, Ie = (t) => {
|
|
21
|
+
if (He(t) !== "object")
|
|
22
22
|
return !1;
|
|
23
|
-
const e =
|
|
24
|
-
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(
|
|
25
|
-
},
|
|
26
|
-
if (!
|
|
23
|
+
const e = xt(t);
|
|
24
|
+
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(qn in t) && !(Be in t);
|
|
25
|
+
}, Ur = (t) => {
|
|
26
|
+
if (!Pe(t) || Ce(t))
|
|
27
27
|
return !1;
|
|
28
28
|
try {
|
|
29
29
|
return Object.keys(t).length === 0 && Object.getPrototypeOf(t) === Object.prototype;
|
|
30
30
|
} catch {
|
|
31
31
|
return !1;
|
|
32
32
|
}
|
|
33
|
-
},
|
|
33
|
+
}, Mr = K("Date"), kr = K("File"), Lr = K("Blob"), Qr = K("FileList"), jr = (t) => Pe(t) && k(t.pipe), Br = (t) => {
|
|
34
34
|
let e;
|
|
35
|
-
return t && (typeof FormData == "function" && t instanceof FormData || k(t.append) && ((e =
|
|
35
|
+
return t && (typeof FormData == "function" && t instanceof FormData || k(t.append) && ((e = He(t)) === "formdata" || // detect form-data instance
|
|
36
36
|
e === "object" && k(t.toString) && t.toString() === "[object FormData]"));
|
|
37
|
-
},
|
|
38
|
-
function
|
|
37
|
+
}, Hr = K("URLSearchParams"), [$r, Vr, Kr, Wr] = ["ReadableStream", "Request", "Response", "Headers"].map(K), zr = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
38
|
+
function Fe(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
39
39
|
if (t === null || typeof t > "u")
|
|
40
40
|
return;
|
|
41
41
|
let r, s;
|
|
42
|
-
if (typeof t != "object" && (t = [t]),
|
|
42
|
+
if (typeof t != "object" && (t = [t]), be(t))
|
|
43
43
|
for (r = 0, s = t.length; r < s; r++)
|
|
44
44
|
e.call(null, t[r], r, t);
|
|
45
45
|
else {
|
|
46
|
-
if (
|
|
46
|
+
if (Ce(t))
|
|
47
47
|
return;
|
|
48
48
|
const i = n ? Object.getOwnPropertyNames(t) : Object.keys(t), o = i.length;
|
|
49
49
|
let a;
|
|
@@ -51,8 +51,8 @@ function Ce(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
|
51
51
|
a = i[r], e.call(null, t[a], a, t);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
if (
|
|
54
|
+
function In(t, e) {
|
|
55
|
+
if (Ce(t))
|
|
56
56
|
return null;
|
|
57
57
|
e = e.toLowerCase();
|
|
58
58
|
const n = Object.keys(t);
|
|
@@ -62,71 +62,71 @@ function Nn(t, e) {
|
|
|
62
62
|
return s;
|
|
63
63
|
return null;
|
|
64
64
|
}
|
|
65
|
-
const
|
|
66
|
-
function
|
|
67
|
-
const { caseless: t, skipUndefined: e } =
|
|
68
|
-
const o = t &&
|
|
69
|
-
|
|
65
|
+
const re = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Un = (t) => !ye(t) && t !== re;
|
|
66
|
+
function st() {
|
|
67
|
+
const { caseless: t, skipUndefined: e } = Un(this) && this || {}, n = {}, r = (s, i) => {
|
|
68
|
+
const o = t && In(n, i) || i;
|
|
69
|
+
Ie(n[o]) && Ie(s) ? n[o] = st(n[o], s) : Ie(s) ? n[o] = st({}, s) : be(s) ? n[o] = s.slice() : (!e || !ye(s)) && (n[o] = s);
|
|
70
70
|
};
|
|
71
71
|
for (let s = 0, i = arguments.length; s < i; s++)
|
|
72
|
-
arguments[s] &&
|
|
72
|
+
arguments[s] && Fe(arguments[s], r);
|
|
73
73
|
return n;
|
|
74
74
|
}
|
|
75
|
-
const
|
|
76
|
-
n && k(s) ? t[i] =
|
|
77
|
-
}, { allOwnKeys: r }), t),
|
|
75
|
+
const Jr = (t, e, n, { allOwnKeys: r } = {}) => (Fe(e, (s, i) => {
|
|
76
|
+
n && k(s) ? t[i] = Dn(s, n) : t[i] = s;
|
|
77
|
+
}, { allOwnKeys: r }), t), Gr = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Xr = (t, e, n, r) => {
|
|
78
78
|
t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
79
79
|
value: e.prototype
|
|
80
80
|
}), n && Object.assign(t.prototype, n);
|
|
81
|
-
},
|
|
81
|
+
}, Yr = (t, e, n, r) => {
|
|
82
82
|
let s, i, o;
|
|
83
83
|
const a = {};
|
|
84
84
|
if (e = e || {}, t == null) return e;
|
|
85
85
|
do {
|
|
86
86
|
for (s = Object.getOwnPropertyNames(t), i = s.length; i-- > 0; )
|
|
87
87
|
o = s[i], (!r || r(o, t, e)) && !a[o] && (e[o] = t[o], a[o] = !0);
|
|
88
|
-
t = n !== !1 &&
|
|
88
|
+
t = n !== !1 && xt(t);
|
|
89
89
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
90
90
|
return e;
|
|
91
|
-
},
|
|
91
|
+
}, Zr = (t, e, n) => {
|
|
92
92
|
t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
|
|
93
93
|
const r = t.indexOf(e, n);
|
|
94
94
|
return r !== -1 && r === n;
|
|
95
|
-
},
|
|
95
|
+
}, es = (t) => {
|
|
96
96
|
if (!t) return null;
|
|
97
|
-
if (
|
|
97
|
+
if (be(t)) return t;
|
|
98
98
|
let e = t.length;
|
|
99
|
-
if (!
|
|
99
|
+
if (!_n(e)) return null;
|
|
100
100
|
const n = new Array(e);
|
|
101
101
|
for (; e-- > 0; )
|
|
102
102
|
n[e] = t[e];
|
|
103
103
|
return n;
|
|
104
|
-
},
|
|
105
|
-
const r = (t && t[
|
|
104
|
+
}, ts = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && xt(Uint8Array)), ns = (t, e) => {
|
|
105
|
+
const r = (t && t[Be]).call(t);
|
|
106
106
|
let s;
|
|
107
107
|
for (; (s = r.next()) && !s.done; ) {
|
|
108
108
|
const i = s.value;
|
|
109
109
|
e.call(t, i[0], i[1]);
|
|
110
110
|
}
|
|
111
|
-
},
|
|
111
|
+
}, rs = (t, e) => {
|
|
112
112
|
let n;
|
|
113
113
|
const r = [];
|
|
114
114
|
for (; (n = t.exec(e)) !== null; )
|
|
115
115
|
r.push(n);
|
|
116
116
|
return r;
|
|
117
|
-
},
|
|
117
|
+
}, ss = K("HTMLFormElement"), is = (t) => t.toLowerCase().replace(
|
|
118
118
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
119
119
|
function(n, r, s) {
|
|
120
120
|
return r.toUpperCase() + s;
|
|
121
121
|
}
|
|
122
|
-
),
|
|
122
|
+
), Qt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), os = K("RegExp"), Mn = (t, e) => {
|
|
123
123
|
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
124
|
-
|
|
124
|
+
Fe(n, (s, i) => {
|
|
125
125
|
let o;
|
|
126
126
|
(o = e(s, i, t)) !== !1 && (r[i] = o || s);
|
|
127
127
|
}), Object.defineProperties(t, r);
|
|
128
|
-
},
|
|
129
|
-
|
|
128
|
+
}, as = (t) => {
|
|
129
|
+
Mn(t, (e, n) => {
|
|
130
130
|
if (k(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
131
131
|
return !1;
|
|
132
132
|
const r = t[n];
|
|
@@ -140,103 +140,103 @@ const zr = (t, e, n, { allOwnKeys: r } = {}) => (Ce(e, (s, i) => {
|
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
});
|
|
143
|
-
},
|
|
143
|
+
}, us = (t, e) => {
|
|
144
144
|
const n = {}, r = (s) => {
|
|
145
145
|
s.forEach((i) => {
|
|
146
146
|
n[i] = !0;
|
|
147
147
|
});
|
|
148
148
|
};
|
|
149
|
-
return
|
|
150
|
-
},
|
|
151
|
-
},
|
|
152
|
-
function
|
|
153
|
-
return !!(t && k(t.append) && t[
|
|
149
|
+
return be(t) ? r(t) : r(String(t).split(e)), n;
|
|
150
|
+
}, cs = () => {
|
|
151
|
+
}, ls = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
152
|
+
function fs(t) {
|
|
153
|
+
return !!(t && k(t.append) && t[qn] === "FormData" && t[Be]);
|
|
154
154
|
}
|
|
155
|
-
const
|
|
155
|
+
const ds = (t) => {
|
|
156
156
|
const e = new Array(10), n = (r, s) => {
|
|
157
|
-
if (
|
|
157
|
+
if (Pe(r)) {
|
|
158
158
|
if (e.indexOf(r) >= 0)
|
|
159
159
|
return;
|
|
160
|
-
if (
|
|
160
|
+
if (Ce(r))
|
|
161
161
|
return r;
|
|
162
162
|
if (!("toJSON" in r)) {
|
|
163
163
|
e[s] = r;
|
|
164
|
-
const i =
|
|
165
|
-
return
|
|
164
|
+
const i = be(r) ? [] : {};
|
|
165
|
+
return Fe(r, (o, a) => {
|
|
166
166
|
const u = n(o, s + 1);
|
|
167
|
-
!
|
|
167
|
+
!ye(u) && (i[a] = u);
|
|
168
168
|
}), e[s] = void 0, i;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
return r;
|
|
172
172
|
};
|
|
173
173
|
return n(t, 0);
|
|
174
|
-
},
|
|
175
|
-
s ===
|
|
174
|
+
}, hs = K("AsyncFunction"), ps = (t) => t && (Pe(t) || k(t)) && k(t.then) && k(t.catch), kn = ((t, e) => t ? setImmediate : e ? ((n, r) => (re.addEventListener("message", ({ source: s, data: i }) => {
|
|
175
|
+
s === re && i === n && r.length && r.shift()();
|
|
176
176
|
}, !1), (s) => {
|
|
177
|
-
r.push(s),
|
|
177
|
+
r.push(s), re.postMessage(n, "*");
|
|
178
178
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
179
179
|
typeof setImmediate == "function",
|
|
180
|
-
k(
|
|
181
|
-
),
|
|
182
|
-
isArray:
|
|
183
|
-
isArrayBuffer:
|
|
184
|
-
isBuffer:
|
|
185
|
-
isFormData:
|
|
186
|
-
isArrayBufferView:
|
|
187
|
-
isString:
|
|
188
|
-
isNumber:
|
|
189
|
-
isBoolean:
|
|
190
|
-
isObject:
|
|
191
|
-
isPlainObject:
|
|
192
|
-
isEmptyObject:
|
|
193
|
-
isReadableStream:
|
|
194
|
-
isRequest:
|
|
195
|
-
isResponse:
|
|
196
|
-
isHeaders:
|
|
197
|
-
isUndefined:
|
|
198
|
-
isDate:
|
|
199
|
-
isFile:
|
|
200
|
-
isBlob:
|
|
201
|
-
isRegExp:
|
|
180
|
+
k(re.postMessage)
|
|
181
|
+
), ys = typeof queueMicrotask < "u" ? queueMicrotask.bind(re) : typeof process < "u" && process.nextTick || kn, ms = (t) => t != null && k(t[Be]), d = {
|
|
182
|
+
isArray: be,
|
|
183
|
+
isArrayBuffer: Nn,
|
|
184
|
+
isBuffer: Ce,
|
|
185
|
+
isFormData: Br,
|
|
186
|
+
isArrayBufferView: Nr,
|
|
187
|
+
isString: _r,
|
|
188
|
+
isNumber: _n,
|
|
189
|
+
isBoolean: Ir,
|
|
190
|
+
isObject: Pe,
|
|
191
|
+
isPlainObject: Ie,
|
|
192
|
+
isEmptyObject: Ur,
|
|
193
|
+
isReadableStream: $r,
|
|
194
|
+
isRequest: Vr,
|
|
195
|
+
isResponse: Kr,
|
|
196
|
+
isHeaders: Wr,
|
|
197
|
+
isUndefined: ye,
|
|
198
|
+
isDate: Mr,
|
|
199
|
+
isFile: kr,
|
|
200
|
+
isBlob: Lr,
|
|
201
|
+
isRegExp: os,
|
|
202
202
|
isFunction: k,
|
|
203
203
|
isStream: jr,
|
|
204
|
-
isURLSearchParams:
|
|
205
|
-
isTypedArray:
|
|
206
|
-
isFileList:
|
|
207
|
-
forEach:
|
|
208
|
-
merge:
|
|
209
|
-
extend:
|
|
210
|
-
trim:
|
|
211
|
-
stripBOM:
|
|
212
|
-
inherits:
|
|
213
|
-
toFlatObject:
|
|
214
|
-
kindOf:
|
|
215
|
-
kindOfTest:
|
|
216
|
-
endsWith:
|
|
217
|
-
toArray:
|
|
218
|
-
forEachEntry:
|
|
219
|
-
matchAll:
|
|
220
|
-
isHTMLForm:
|
|
221
|
-
hasOwnProperty:
|
|
222
|
-
hasOwnProp:
|
|
204
|
+
isURLSearchParams: Hr,
|
|
205
|
+
isTypedArray: ts,
|
|
206
|
+
isFileList: Qr,
|
|
207
|
+
forEach: Fe,
|
|
208
|
+
merge: st,
|
|
209
|
+
extend: Jr,
|
|
210
|
+
trim: zr,
|
|
211
|
+
stripBOM: Gr,
|
|
212
|
+
inherits: Xr,
|
|
213
|
+
toFlatObject: Yr,
|
|
214
|
+
kindOf: He,
|
|
215
|
+
kindOfTest: K,
|
|
216
|
+
endsWith: Zr,
|
|
217
|
+
toArray: es,
|
|
218
|
+
forEachEntry: ns,
|
|
219
|
+
matchAll: rs,
|
|
220
|
+
isHTMLForm: ss,
|
|
221
|
+
hasOwnProperty: Qt,
|
|
222
|
+
hasOwnProp: Qt,
|
|
223
223
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
224
|
-
reduceDescriptors:
|
|
225
|
-
freezeMethods:
|
|
226
|
-
toObjectSet:
|
|
227
|
-
toCamelCase:
|
|
228
|
-
noop:
|
|
229
|
-
toFiniteNumber:
|
|
230
|
-
findKey:
|
|
231
|
-
global:
|
|
232
|
-
isContextDefined:
|
|
233
|
-
isSpecCompliantForm:
|
|
234
|
-
toJSONObject:
|
|
235
|
-
isAsyncFn:
|
|
236
|
-
isThenable:
|
|
237
|
-
setImmediate:
|
|
238
|
-
asap:
|
|
239
|
-
isIterable:
|
|
224
|
+
reduceDescriptors: Mn,
|
|
225
|
+
freezeMethods: as,
|
|
226
|
+
toObjectSet: us,
|
|
227
|
+
toCamelCase: is,
|
|
228
|
+
noop: cs,
|
|
229
|
+
toFiniteNumber: ls,
|
|
230
|
+
findKey: In,
|
|
231
|
+
global: re,
|
|
232
|
+
isContextDefined: Un,
|
|
233
|
+
isSpecCompliantForm: fs,
|
|
234
|
+
toJSONObject: ds,
|
|
235
|
+
isAsyncFn: hs,
|
|
236
|
+
isThenable: ps,
|
|
237
|
+
setImmediate: kn,
|
|
238
|
+
asap: ys,
|
|
239
|
+
isIterable: ms
|
|
240
240
|
};
|
|
241
241
|
function E(t, e, n, r, s) {
|
|
242
242
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
|
|
@@ -262,7 +262,7 @@ d.inherits(E, Error, {
|
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
264
|
});
|
|
265
|
-
const
|
|
265
|
+
const Ln = E.prototype, Qn = {};
|
|
266
266
|
[
|
|
267
267
|
"ERR_BAD_OPTION_VALUE",
|
|
268
268
|
"ERR_BAD_OPTION",
|
|
@@ -278,37 +278,37 @@ const Mn = E.prototype, kn = {};
|
|
|
278
278
|
"ERR_INVALID_URL"
|
|
279
279
|
// eslint-disable-next-line func-names
|
|
280
280
|
].forEach((t) => {
|
|
281
|
-
|
|
281
|
+
Qn[t] = { value: t };
|
|
282
282
|
});
|
|
283
|
-
Object.defineProperties(E,
|
|
284
|
-
Object.defineProperty(
|
|
283
|
+
Object.defineProperties(E, Qn);
|
|
284
|
+
Object.defineProperty(Ln, "isAxiosError", { value: !0 });
|
|
285
285
|
E.from = (t, e, n, r, s, i) => {
|
|
286
|
-
const o = Object.create(
|
|
286
|
+
const o = Object.create(Ln);
|
|
287
287
|
d.toFlatObject(t, o, function(c) {
|
|
288
288
|
return c !== Error.prototype;
|
|
289
289
|
}, (l) => l !== "isAxiosError");
|
|
290
290
|
const a = t && t.message ? t.message : "Error", u = e == null && t ? t.code : e;
|
|
291
291
|
return E.call(o, a, u, n, r, s), t && o.cause == null && Object.defineProperty(o, "cause", { value: t, configurable: !0 }), o.name = t && t.name || "Error", i && Object.assign(o, i), o;
|
|
292
292
|
};
|
|
293
|
-
const
|
|
294
|
-
function
|
|
293
|
+
const gs = null;
|
|
294
|
+
function it(t) {
|
|
295
295
|
return d.isPlainObject(t) || d.isArray(t);
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function jn(t) {
|
|
298
298
|
return d.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function jt(t, e, n) {
|
|
301
301
|
return t ? t.concat(e).map(function(s, i) {
|
|
302
|
-
return s =
|
|
302
|
+
return s = jn(s), !n && i ? "[" + s + "]" : s;
|
|
303
303
|
}).join(n ? "." : "") : e;
|
|
304
304
|
}
|
|
305
|
-
function
|
|
306
|
-
return d.isArray(t) && !t.some(
|
|
305
|
+
function bs(t) {
|
|
306
|
+
return d.isArray(t) && !t.some(it);
|
|
307
307
|
}
|
|
308
|
-
const
|
|
308
|
+
const vs = d.toFlatObject(d, {}, null, function(e) {
|
|
309
309
|
return /^is[A-Z]/.test(e);
|
|
310
310
|
});
|
|
311
|
-
function
|
|
311
|
+
function Ve(t, e, n) {
|
|
312
312
|
if (!d.isObject(t))
|
|
313
313
|
throw new TypeError("target must be an object");
|
|
314
314
|
e = e || new FormData(), n = d.toFlatObject(n, {
|
|
@@ -336,21 +336,21 @@ function $e(t, e, n) {
|
|
|
336
336
|
if (h && !y && typeof h == "object") {
|
|
337
337
|
if (d.endsWith(p, "{}"))
|
|
338
338
|
p = r ? p : p.slice(0, -2), h = JSON.stringify(h);
|
|
339
|
-
else if (d.isArray(h) &&
|
|
340
|
-
return p =
|
|
339
|
+
else if (d.isArray(h) && bs(h) || (d.isFileList(h) || d.endsWith(p, "[]")) && (m = d.toArray(h)))
|
|
340
|
+
return p = jn(p), m.forEach(function(v, w) {
|
|
341
341
|
!(d.isUndefined(v) || v === null) && e.append(
|
|
342
342
|
// eslint-disable-next-line no-nested-ternary
|
|
343
|
-
o === !0 ?
|
|
343
|
+
o === !0 ? jt([p], w, i) : o === null ? p : p + "[]",
|
|
344
344
|
l(v)
|
|
345
345
|
);
|
|
346
346
|
}), !1;
|
|
347
347
|
}
|
|
348
|
-
return
|
|
348
|
+
return it(h) ? !0 : (e.append(jt(y, p, i), l(h)), !1);
|
|
349
349
|
}
|
|
350
|
-
const f = [], g = Object.assign(
|
|
350
|
+
const f = [], g = Object.assign(vs, {
|
|
351
351
|
defaultVisitor: c,
|
|
352
352
|
convertValue: l,
|
|
353
|
-
isVisitable:
|
|
353
|
+
isVisitable: it
|
|
354
354
|
});
|
|
355
355
|
function b(h, p) {
|
|
356
356
|
if (!d.isUndefined(h)) {
|
|
@@ -371,7 +371,7 @@ function $e(t, e, n) {
|
|
|
371
371
|
throw new TypeError("data must be an object");
|
|
372
372
|
return b(t), e;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function Bt(t) {
|
|
375
375
|
const e = {
|
|
376
376
|
"!": "%21",
|
|
377
377
|
"'": "%27",
|
|
@@ -385,40 +385,40 @@ function jt(t) {
|
|
|
385
385
|
return e[r];
|
|
386
386
|
});
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
this._pairs = [], t &&
|
|
388
|
+
function Dt(t, e) {
|
|
389
|
+
this._pairs = [], t && Ve(t, this, e);
|
|
390
390
|
}
|
|
391
|
-
const
|
|
392
|
-
|
|
391
|
+
const Bn = Dt.prototype;
|
|
392
|
+
Bn.append = function(e, n) {
|
|
393
393
|
this._pairs.push([e, n]);
|
|
394
394
|
};
|
|
395
|
-
|
|
395
|
+
Bn.toString = function(e) {
|
|
396
396
|
const n = e ? function(r) {
|
|
397
|
-
return e.call(this, r,
|
|
398
|
-
} :
|
|
397
|
+
return e.call(this, r, Bt);
|
|
398
|
+
} : Bt;
|
|
399
399
|
return this._pairs.map(function(s) {
|
|
400
400
|
return n(s[0]) + "=" + n(s[1]);
|
|
401
401
|
}, "").join("&");
|
|
402
402
|
};
|
|
403
|
-
function
|
|
403
|
+
function ws(t) {
|
|
404
404
|
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function Hn(t, e, n) {
|
|
407
407
|
if (!e)
|
|
408
408
|
return t;
|
|
409
|
-
const r = n && n.encode ||
|
|
409
|
+
const r = n && n.encode || ws;
|
|
410
410
|
d.isFunction(n) && (n = {
|
|
411
411
|
serialize: n
|
|
412
412
|
});
|
|
413
413
|
const s = n && n.serialize;
|
|
414
414
|
let i;
|
|
415
|
-
if (s ? i = s(e, n) : i = d.isURLSearchParams(e) ? e.toString() : new
|
|
415
|
+
if (s ? i = s(e, n) : i = d.isURLSearchParams(e) ? e.toString() : new Dt(e, n).toString(r), i) {
|
|
416
416
|
const o = t.indexOf("#");
|
|
417
417
|
o !== -1 && (t = t.slice(0, o)), t += (t.indexOf("?") === -1 ? "?" : "&") + i;
|
|
418
418
|
}
|
|
419
419
|
return t;
|
|
420
420
|
}
|
|
421
|
-
class
|
|
421
|
+
class Ht {
|
|
422
422
|
constructor() {
|
|
423
423
|
this.handlers = [];
|
|
424
424
|
}
|
|
@@ -472,42 +472,42 @@ class Qt {
|
|
|
472
472
|
});
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
const
|
|
475
|
+
const $n = {
|
|
476
476
|
silentJSONParsing: !0,
|
|
477
477
|
forcedJSONParsing: !0,
|
|
478
478
|
clarifyTimeoutError: !1
|
|
479
|
-
},
|
|
479
|
+
}, Os = typeof URLSearchParams < "u" ? URLSearchParams : Dt, Es = typeof FormData < "u" ? FormData : null, Ss = typeof Blob < "u" ? Blob : null, Rs = {
|
|
480
480
|
isBrowser: !0,
|
|
481
481
|
classes: {
|
|
482
|
-
URLSearchParams:
|
|
483
|
-
FormData:
|
|
484
|
-
Blob:
|
|
482
|
+
URLSearchParams: Os,
|
|
483
|
+
FormData: Es,
|
|
484
|
+
Blob: Ss
|
|
485
485
|
},
|
|
486
486
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
487
|
-
},
|
|
488
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
487
|
+
}, qt = typeof window < "u" && typeof document < "u", ot = typeof navigator == "object" && navigator || void 0, As = qt && (!ot || ["ReactNative", "NativeScript", "NS"].indexOf(ot.product) < 0), Ts = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
488
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Cs = qt && window.location.href || "http://localhost", Ps = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
489
489
|
__proto__: null,
|
|
490
|
-
hasBrowserEnv:
|
|
491
|
-
hasStandardBrowserEnv:
|
|
492
|
-
hasStandardBrowserWebWorkerEnv:
|
|
493
|
-
navigator:
|
|
494
|
-
origin:
|
|
490
|
+
hasBrowserEnv: qt,
|
|
491
|
+
hasStandardBrowserEnv: As,
|
|
492
|
+
hasStandardBrowserWebWorkerEnv: Ts,
|
|
493
|
+
navigator: ot,
|
|
494
|
+
origin: Cs
|
|
495
495
|
}, Symbol.toStringTag, { value: "Module" })), _ = {
|
|
496
|
-
...
|
|
497
|
-
...
|
|
496
|
+
...Ps,
|
|
497
|
+
...Rs
|
|
498
498
|
};
|
|
499
499
|
function Fs(t, e) {
|
|
500
|
-
return
|
|
500
|
+
return Ve(t, new _.classes.URLSearchParams(), {
|
|
501
501
|
visitor: function(n, r, s, i) {
|
|
502
502
|
return _.isNode && d.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
503
503
|
},
|
|
504
504
|
...e
|
|
505
505
|
});
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function xs(t) {
|
|
508
508
|
return d.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function Ds(t) {
|
|
511
511
|
const e = {}, n = Object.keys(t);
|
|
512
512
|
let r;
|
|
513
513
|
const s = n.length;
|
|
@@ -516,22 +516,22 @@ function xs(t) {
|
|
|
516
516
|
i = n[r], e[i] = t[i];
|
|
517
517
|
return e;
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function Vn(t) {
|
|
520
520
|
function e(n, r, s, i) {
|
|
521
521
|
let o = n[i++];
|
|
522
522
|
if (o === "__proto__") return !0;
|
|
523
523
|
const a = Number.isFinite(+o), u = i >= n.length;
|
|
524
|
-
return o = !o && d.isArray(s) ? s.length : o, u ? (d.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !a) : ((!s[o] || !d.isObject(s[o])) && (s[o] = []), e(n, r, s[o], i) && d.isArray(s[o]) && (s[o] =
|
|
524
|
+
return o = !o && d.isArray(s) ? s.length : o, u ? (d.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !a) : ((!s[o] || !d.isObject(s[o])) && (s[o] = []), e(n, r, s[o], i) && d.isArray(s[o]) && (s[o] = Ds(s[o])), !a);
|
|
525
525
|
}
|
|
526
526
|
if (d.isFormData(t) && d.isFunction(t.entries)) {
|
|
527
527
|
const n = {};
|
|
528
528
|
return d.forEachEntry(t, (r, s) => {
|
|
529
|
-
e(
|
|
529
|
+
e(xs(r), s, n, 0);
|
|
530
530
|
}), n;
|
|
531
531
|
}
|
|
532
532
|
return null;
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function qs(t, e, n) {
|
|
535
535
|
if (d.isString(t))
|
|
536
536
|
try {
|
|
537
537
|
return (e || JSON.parse)(t), d.trim(t);
|
|
@@ -541,13 +541,13 @@ function Ds(t, e, n) {
|
|
|
541
541
|
}
|
|
542
542
|
return (n || JSON.stringify)(t);
|
|
543
543
|
}
|
|
544
|
-
const
|
|
545
|
-
transitional:
|
|
544
|
+
const xe = {
|
|
545
|
+
transitional: $n,
|
|
546
546
|
adapter: ["xhr", "http", "fetch"],
|
|
547
547
|
transformRequest: [function(e, n) {
|
|
548
548
|
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = d.isObject(e);
|
|
549
549
|
if (i && d.isHTMLForm(e) && (e = new FormData(e)), d.isFormData(e))
|
|
550
|
-
return s ? JSON.stringify(
|
|
550
|
+
return s ? JSON.stringify(Vn(e)) : e;
|
|
551
551
|
if (d.isArrayBuffer(e) || d.isBuffer(e) || d.isStream(e) || d.isFile(e) || d.isBlob(e) || d.isReadableStream(e))
|
|
552
552
|
return e;
|
|
553
553
|
if (d.isArrayBufferView(e))
|
|
@@ -560,17 +560,17 @@ const Fe = {
|
|
|
560
560
|
return Fs(e, this.formSerializer).toString();
|
|
561
561
|
if ((a = d.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
|
|
562
562
|
const u = this.env && this.env.FormData;
|
|
563
|
-
return
|
|
563
|
+
return Ve(
|
|
564
564
|
a ? { "files[]": e } : e,
|
|
565
565
|
u && new u(),
|
|
566
566
|
this.formSerializer
|
|
567
567
|
);
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
|
-
return i || s ? (n.setContentType("application/json", !1),
|
|
570
|
+
return i || s ? (n.setContentType("application/json", !1), qs(e)) : e;
|
|
571
571
|
}],
|
|
572
572
|
transformResponse: [function(e) {
|
|
573
|
-
const n = this.transitional ||
|
|
573
|
+
const n = this.transitional || xe.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
574
574
|
if (d.isResponse(e) || d.isReadableStream(e))
|
|
575
575
|
return e;
|
|
576
576
|
if (e && d.isString(e) && (r && !this.responseType || s)) {
|
|
@@ -608,9 +608,9 @@ const Fe = {
|
|
|
608
608
|
}
|
|
609
609
|
};
|
|
610
610
|
d.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
611
|
-
|
|
611
|
+
xe.headers[t] = {};
|
|
612
612
|
});
|
|
613
|
-
const
|
|
613
|
+
const Ns = d.toObjectSet([
|
|
614
614
|
"age",
|
|
615
615
|
"authorization",
|
|
616
616
|
"content-length",
|
|
@@ -628,29 +628,29 @@ const qs = d.toObjectSet([
|
|
|
628
628
|
"referer",
|
|
629
629
|
"retry-after",
|
|
630
630
|
"user-agent"
|
|
631
|
-
]),
|
|
631
|
+
]), _s = (t) => {
|
|
632
632
|
const e = {};
|
|
633
633
|
let n, r, s;
|
|
634
634
|
return t && t.split(`
|
|
635
635
|
`).forEach(function(o) {
|
|
636
|
-
s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || e[n] &&
|
|
636
|
+
s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || e[n] && Ns[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
|
|
637
637
|
}), e;
|
|
638
|
-
},
|
|
639
|
-
function
|
|
638
|
+
}, $t = Symbol("internals");
|
|
639
|
+
function Oe(t) {
|
|
640
640
|
return t && String(t).trim().toLowerCase();
|
|
641
641
|
}
|
|
642
|
-
function
|
|
643
|
-
return t === !1 || t == null ? t : d.isArray(t) ? t.map(
|
|
642
|
+
function Ue(t) {
|
|
643
|
+
return t === !1 || t == null ? t : d.isArray(t) ? t.map(Ue) : String(t);
|
|
644
644
|
}
|
|
645
|
-
function
|
|
645
|
+
function Is(t) {
|
|
646
646
|
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
647
647
|
let r;
|
|
648
648
|
for (; r = n.exec(t); )
|
|
649
649
|
e[r[1]] = r[2];
|
|
650
650
|
return e;
|
|
651
651
|
}
|
|
652
|
-
const
|
|
653
|
-
function
|
|
652
|
+
const Us = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
653
|
+
function Ge(t, e, n, r, s) {
|
|
654
654
|
if (d.isFunction(r))
|
|
655
655
|
return r.call(this, e, n);
|
|
656
656
|
if (s && (e = n), !!d.isString(e)) {
|
|
@@ -660,10 +660,10 @@ function Je(t, e, n, r, s) {
|
|
|
660
660
|
return r.test(e);
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function Ms(t) {
|
|
664
664
|
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function ks(t, e) {
|
|
667
667
|
const n = d.toCamelCase(" " + e);
|
|
668
668
|
["get", "set", "has"].forEach((r) => {
|
|
669
669
|
Object.defineProperty(t, r + n, {
|
|
@@ -681,17 +681,17 @@ let L = class {
|
|
|
681
681
|
set(e, n, r) {
|
|
682
682
|
const s = this;
|
|
683
683
|
function i(a, u, l) {
|
|
684
|
-
const c =
|
|
684
|
+
const c = Oe(u);
|
|
685
685
|
if (!c)
|
|
686
686
|
throw new Error("header name must be a non-empty string");
|
|
687
687
|
const f = d.findKey(s, c);
|
|
688
|
-
(!f || s[f] === void 0 || l === !0 || l === void 0 && s[f] !== !1) && (s[f || u] =
|
|
688
|
+
(!f || s[f] === void 0 || l === !0 || l === void 0 && s[f] !== !1) && (s[f || u] = Ue(a));
|
|
689
689
|
}
|
|
690
690
|
const o = (a, u) => d.forEach(a, (l, c) => i(l, c, u));
|
|
691
691
|
if (d.isPlainObject(e) || e instanceof this.constructor)
|
|
692
692
|
o(e, n);
|
|
693
|
-
else if (d.isString(e) && (e = e.trim()) && !
|
|
694
|
-
o(
|
|
693
|
+
else if (d.isString(e) && (e = e.trim()) && !Us(e))
|
|
694
|
+
o(_s(e), n);
|
|
695
695
|
else if (d.isObject(e) && d.isIterable(e)) {
|
|
696
696
|
let a = {}, u, l;
|
|
697
697
|
for (const c of e) {
|
|
@@ -705,14 +705,14 @@ let L = class {
|
|
|
705
705
|
return this;
|
|
706
706
|
}
|
|
707
707
|
get(e, n) {
|
|
708
|
-
if (e =
|
|
708
|
+
if (e = Oe(e), e) {
|
|
709
709
|
const r = d.findKey(this, e);
|
|
710
710
|
if (r) {
|
|
711
711
|
const s = this[r];
|
|
712
712
|
if (!n)
|
|
713
713
|
return s;
|
|
714
714
|
if (n === !0)
|
|
715
|
-
return
|
|
715
|
+
return Is(s);
|
|
716
716
|
if (d.isFunction(n))
|
|
717
717
|
return n.call(this, s, r);
|
|
718
718
|
if (d.isRegExp(n))
|
|
@@ -722,9 +722,9 @@ let L = class {
|
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
724
|
has(e, n) {
|
|
725
|
-
if (e =
|
|
725
|
+
if (e = Oe(e), e) {
|
|
726
726
|
const r = d.findKey(this, e);
|
|
727
|
-
return !!(r && this[r] !== void 0 && (!n ||
|
|
727
|
+
return !!(r && this[r] !== void 0 && (!n || Ge(this, this[r], r, n)));
|
|
728
728
|
}
|
|
729
729
|
return !1;
|
|
730
730
|
}
|
|
@@ -732,9 +732,9 @@ let L = class {
|
|
|
732
732
|
const r = this;
|
|
733
733
|
let s = !1;
|
|
734
734
|
function i(o) {
|
|
735
|
-
if (o =
|
|
735
|
+
if (o = Oe(o), o) {
|
|
736
736
|
const a = d.findKey(r, o);
|
|
737
|
-
a && (!n ||
|
|
737
|
+
a && (!n || Ge(r, r[a], a, n)) && (delete r[a], s = !0);
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
740
|
return d.isArray(e) ? e.forEach(i) : i(e), s;
|
|
@@ -744,7 +744,7 @@ let L = class {
|
|
|
744
744
|
let r = n.length, s = !1;
|
|
745
745
|
for (; r--; ) {
|
|
746
746
|
const i = n[r];
|
|
747
|
-
(!e ||
|
|
747
|
+
(!e || Ge(this, this[i], i, e, !0)) && (delete this[i], s = !0);
|
|
748
748
|
}
|
|
749
749
|
return s;
|
|
750
750
|
}
|
|
@@ -753,11 +753,11 @@ let L = class {
|
|
|
753
753
|
return d.forEach(this, (s, i) => {
|
|
754
754
|
const o = d.findKey(r, i);
|
|
755
755
|
if (o) {
|
|
756
|
-
n[o] =
|
|
756
|
+
n[o] = Ue(s), delete n[i];
|
|
757
757
|
return;
|
|
758
758
|
}
|
|
759
|
-
const a = e ?
|
|
760
|
-
a !== i && delete n[i], n[a] =
|
|
759
|
+
const a = e ? Ms(i) : String(i).trim();
|
|
760
|
+
a !== i && delete n[i], n[a] = Ue(s), r[a] = !0;
|
|
761
761
|
}), this;
|
|
762
762
|
}
|
|
763
763
|
concat(...e) {
|
|
@@ -790,12 +790,12 @@ let L = class {
|
|
|
790
790
|
return n.forEach((s) => r.set(s)), r;
|
|
791
791
|
}
|
|
792
792
|
static accessor(e) {
|
|
793
|
-
const r = (this[
|
|
793
|
+
const r = (this[$t] = this[$t] = {
|
|
794
794
|
accessors: {}
|
|
795
795
|
}).accessors, s = this.prototype;
|
|
796
796
|
function i(o) {
|
|
797
|
-
const a =
|
|
798
|
-
r[a] || (
|
|
797
|
+
const a = Oe(o);
|
|
798
|
+
r[a] || (ks(s, o), r[a] = !0);
|
|
799
799
|
}
|
|
800
800
|
return d.isArray(e) ? e.forEach(i) : i(e), this;
|
|
801
801
|
}
|
|
@@ -811,23 +811,23 @@ d.reduceDescriptors(L.prototype, ({ value: t }, e) => {
|
|
|
811
811
|
};
|
|
812
812
|
});
|
|
813
813
|
d.freezeMethods(L);
|
|
814
|
-
function
|
|
815
|
-
const n = this ||
|
|
814
|
+
function Xe(t, e) {
|
|
815
|
+
const n = this || xe, r = e || n, s = L.from(r.headers);
|
|
816
816
|
let i = r.data;
|
|
817
817
|
return d.forEach(t, function(a) {
|
|
818
818
|
i = a.call(n, i, s.normalize(), e ? e.status : void 0);
|
|
819
819
|
}), s.normalize(), i;
|
|
820
820
|
}
|
|
821
|
-
function
|
|
821
|
+
function Kn(t) {
|
|
822
822
|
return !!(t && t.__CANCEL__);
|
|
823
823
|
}
|
|
824
|
-
function
|
|
824
|
+
function ve(t, e, n) {
|
|
825
825
|
E.call(this, t ?? "canceled", E.ERR_CANCELED, e, n), this.name = "CanceledError";
|
|
826
826
|
}
|
|
827
|
-
d.inherits(
|
|
827
|
+
d.inherits(ve, E, {
|
|
828
828
|
__CANCEL__: !0
|
|
829
829
|
});
|
|
830
|
-
function
|
|
830
|
+
function Wn(t, e, n) {
|
|
831
831
|
const r = n.config.validateStatus;
|
|
832
832
|
!n.status || !r || r(n.status) ? t(n) : e(new E(
|
|
833
833
|
"Request failed with status code " + n.status,
|
|
@@ -837,11 +837,11 @@ function Vn(t, e, n) {
|
|
|
837
837
|
n
|
|
838
838
|
));
|
|
839
839
|
}
|
|
840
|
-
function
|
|
840
|
+
function Ls(t) {
|
|
841
841
|
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
|
842
842
|
return e && e[1] || "";
|
|
843
843
|
}
|
|
844
|
-
function
|
|
844
|
+
function Qs(t, e) {
|
|
845
845
|
t = t || 10;
|
|
846
846
|
const n = new Array(t), r = new Array(t);
|
|
847
847
|
let s = 0, i = 0, o;
|
|
@@ -869,9 +869,9 @@ function js(t, e) {
|
|
|
869
869
|
}, r - f)));
|
|
870
870
|
}, () => s && o(s)];
|
|
871
871
|
}
|
|
872
|
-
const
|
|
872
|
+
const Le = (t, e, n = 3) => {
|
|
873
873
|
let r = 0;
|
|
874
|
-
const s =
|
|
874
|
+
const s = Qs(50, 250);
|
|
875
875
|
return js((i) => {
|
|
876
876
|
const o = i.loaded, a = i.lengthComputable ? i.total : void 0, u = o - r, l = s(u), c = o <= a;
|
|
877
877
|
r = o;
|
|
@@ -888,17 +888,17 @@ const ke = (t, e, n = 3) => {
|
|
|
888
888
|
};
|
|
889
889
|
t(f);
|
|
890
890
|
}, n);
|
|
891
|
-
},
|
|
891
|
+
}, Vt = (t, e) => {
|
|
892
892
|
const n = t != null;
|
|
893
893
|
return [(r) => e[0]({
|
|
894
894
|
lengthComputable: n,
|
|
895
895
|
total: t,
|
|
896
896
|
loaded: r
|
|
897
897
|
}), e[1]];
|
|
898
|
-
},
|
|
898
|
+
}, Kt = (t) => (...e) => d.asap(() => t(...e)), Bs = _.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, _.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
|
|
899
899
|
new URL(_.origin),
|
|
900
900
|
_.navigator && /(msie|trident)/i.test(_.navigator.userAgent)
|
|
901
|
-
) : () => !0,
|
|
901
|
+
) : () => !0, Hs = _.hasStandardBrowserEnv ? (
|
|
902
902
|
// Standard browser envs support document.cookie
|
|
903
903
|
{
|
|
904
904
|
write(t, e, n, r, s, i) {
|
|
@@ -925,18 +925,18 @@ const ke = (t, e, n = 3) => {
|
|
|
925
925
|
}
|
|
926
926
|
}
|
|
927
927
|
);
|
|
928
|
-
function
|
|
928
|
+
function $s(t) {
|
|
929
929
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function Vs(t, e) {
|
|
932
932
|
return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
|
933
933
|
}
|
|
934
|
-
function
|
|
935
|
-
let r =
|
|
936
|
-
return t && (r || n == !1) ?
|
|
934
|
+
function zn(t, e, n) {
|
|
935
|
+
let r = !$s(e);
|
|
936
|
+
return t && (r || n == !1) ? Vs(t, e) : e;
|
|
937
937
|
}
|
|
938
|
-
const
|
|
939
|
-
function
|
|
938
|
+
const Wt = (t) => t instanceof L ? { ...t } : t;
|
|
939
|
+
function ue(t, e) {
|
|
940
940
|
e = e || {};
|
|
941
941
|
const n = {};
|
|
942
942
|
function r(l, c, f, g) {
|
|
@@ -993,17 +993,17 @@ function oe(t, e) {
|
|
|
993
993
|
socketPath: o,
|
|
994
994
|
responseEncoding: o,
|
|
995
995
|
validateStatus: a,
|
|
996
|
-
headers: (l, c, f) => s(
|
|
996
|
+
headers: (l, c, f) => s(Wt(l), Wt(c), f, !0)
|
|
997
997
|
};
|
|
998
998
|
return d.forEach(Object.keys({ ...t, ...e }), function(c) {
|
|
999
999
|
const f = u[c] || s, g = f(t[c], e[c], c);
|
|
1000
1000
|
d.isUndefined(g) && f !== a || (n[c] = g);
|
|
1001
1001
|
}), n;
|
|
1002
1002
|
}
|
|
1003
|
-
const
|
|
1004
|
-
const e =
|
|
1003
|
+
const Jn = (t) => {
|
|
1004
|
+
const e = ue({}, t);
|
|
1005
1005
|
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: a } = e;
|
|
1006
|
-
if (e.headers = o = L.from(o), e.url =
|
|
1006
|
+
if (e.headers = o = L.from(o), e.url = Hn(zn(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), a && o.set(
|
|
1007
1007
|
"Authorization",
|
|
1008
1008
|
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
|
1009
1009
|
), d.isFormData(n)) {
|
|
@@ -1016,14 +1016,14 @@ const Wn = (t) => {
|
|
|
1016
1016
|
});
|
|
1017
1017
|
}
|
|
1018
1018
|
}
|
|
1019
|
-
if (_.hasStandardBrowserEnv && (r && d.isFunction(r) && (r = r(e)), r || r !== !1 &&
|
|
1020
|
-
const u = s && i &&
|
|
1019
|
+
if (_.hasStandardBrowserEnv && (r && d.isFunction(r) && (r = r(e)), r || r !== !1 && Bs(e.url))) {
|
|
1020
|
+
const u = s && i && Hs.read(i);
|
|
1021
1021
|
u && o.set(s, u);
|
|
1022
1022
|
}
|
|
1023
1023
|
return e;
|
|
1024
|
-
},
|
|
1024
|
+
}, Ks = typeof XMLHttpRequest < "u", Ws = Ks && function(t) {
|
|
1025
1025
|
return new Promise(function(n, r) {
|
|
1026
|
-
const s =
|
|
1026
|
+
const s = Jn(t);
|
|
1027
1027
|
let i = s.data;
|
|
1028
1028
|
const o = L.from(s.headers).normalize();
|
|
1029
1029
|
let { responseType: a, onUploadProgress: u, onDownloadProgress: l } = s, c, f, g, b, h;
|
|
@@ -1045,7 +1045,7 @@ const Wn = (t) => {
|
|
|
1045
1045
|
config: t,
|
|
1046
1046
|
request: y
|
|
1047
1047
|
};
|
|
1048
|
-
|
|
1048
|
+
Wn(function(T) {
|
|
1049
1049
|
n(T), p();
|
|
1050
1050
|
}, function(T) {
|
|
1051
1051
|
r(T), p();
|
|
@@ -1060,7 +1060,7 @@ const Wn = (t) => {
|
|
|
1060
1060
|
C.event = w || null, r(C), y = null;
|
|
1061
1061
|
}, y.ontimeout = function() {
|
|
1062
1062
|
let w = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1063
|
-
const R = s.transitional ||
|
|
1063
|
+
const R = s.transitional || $n;
|
|
1064
1064
|
s.timeoutErrorMessage && (w = s.timeoutErrorMessage), r(new E(
|
|
1065
1065
|
w,
|
|
1066
1066
|
R.clarifyTimeoutError ? E.ETIMEDOUT : E.ECONNABORTED,
|
|
@@ -1069,17 +1069,17 @@ const Wn = (t) => {
|
|
|
1069
1069
|
)), y = null;
|
|
1070
1070
|
}, i === void 0 && o.setContentType(null), "setRequestHeader" in y && d.forEach(o.toJSON(), function(w, R) {
|
|
1071
1071
|
y.setRequestHeader(R, w);
|
|
1072
|
-
}), d.isUndefined(s.withCredentials) || (y.withCredentials = !!s.withCredentials), a && a !== "json" && (y.responseType = s.responseType), l && ([g, h] =
|
|
1073
|
-
y && (r(!v || v.type ? new
|
|
1072
|
+
}), d.isUndefined(s.withCredentials) || (y.withCredentials = !!s.withCredentials), a && a !== "json" && (y.responseType = s.responseType), l && ([g, h] = Le(l, !0), y.addEventListener("progress", g)), u && y.upload && ([f, b] = Le(u), y.upload.addEventListener("progress", f), y.upload.addEventListener("loadend", b)), (s.cancelToken || s.signal) && (c = (v) => {
|
|
1073
|
+
y && (r(!v || v.type ? new ve(null, t, y) : v), y.abort(), y = null);
|
|
1074
1074
|
}, s.cancelToken && s.cancelToken.subscribe(c), s.signal && (s.signal.aborted ? c() : s.signal.addEventListener("abort", c)));
|
|
1075
|
-
const O =
|
|
1075
|
+
const O = Ls(s.url);
|
|
1076
1076
|
if (O && _.protocols.indexOf(O) === -1) {
|
|
1077
1077
|
r(new E("Unsupported protocol " + O + ":", E.ERR_BAD_REQUEST, t));
|
|
1078
1078
|
return;
|
|
1079
1079
|
}
|
|
1080
1080
|
y.send(i || null);
|
|
1081
1081
|
});
|
|
1082
|
-
},
|
|
1082
|
+
}, zs = (t, e) => {
|
|
1083
1083
|
const { length: n } = t = t ? t.filter(Boolean) : [];
|
|
1084
1084
|
if (e || n) {
|
|
1085
1085
|
let r = new AbortController(), s;
|
|
@@ -1087,7 +1087,7 @@ const Wn = (t) => {
|
|
|
1087
1087
|
if (!s) {
|
|
1088
1088
|
s = !0, a();
|
|
1089
1089
|
const c = l instanceof Error ? l : this.reason;
|
|
1090
|
-
r.abort(c instanceof E ? c : new
|
|
1090
|
+
r.abort(c instanceof E ? c : new ve(c instanceof Error ? c.message : c));
|
|
1091
1091
|
}
|
|
1092
1092
|
};
|
|
1093
1093
|
let o = e && setTimeout(() => {
|
|
@@ -1102,7 +1102,7 @@ const Wn = (t) => {
|
|
|
1102
1102
|
const { signal: u } = r;
|
|
1103
1103
|
return u.unsubscribe = () => d.asap(a), u;
|
|
1104
1104
|
}
|
|
1105
|
-
},
|
|
1105
|
+
}, Js = function* (t, e) {
|
|
1106
1106
|
let n = t.byteLength;
|
|
1107
1107
|
if (n < e) {
|
|
1108
1108
|
yield t;
|
|
@@ -1111,10 +1111,10 @@ const Wn = (t) => {
|
|
|
1111
1111
|
let r = 0, s;
|
|
1112
1112
|
for (; r < n; )
|
|
1113
1113
|
s = r + e, yield t.slice(r, s), r = s;
|
|
1114
|
-
},
|
|
1115
|
-
for await (const n of
|
|
1116
|
-
yield*
|
|
1117
|
-
},
|
|
1114
|
+
}, Gs = async function* (t, e) {
|
|
1115
|
+
for await (const n of Xs(t))
|
|
1116
|
+
yield* Js(n, e);
|
|
1117
|
+
}, Xs = async function* (t) {
|
|
1118
1118
|
if (t[Symbol.asyncIterator]) {
|
|
1119
1119
|
yield* t;
|
|
1120
1120
|
return;
|
|
@@ -1130,8 +1130,8 @@ const Wn = (t) => {
|
|
|
1130
1130
|
} finally {
|
|
1131
1131
|
await e.cancel();
|
|
1132
1132
|
}
|
|
1133
|
-
},
|
|
1134
|
-
const s =
|
|
1133
|
+
}, zt = (t, e, n, r) => {
|
|
1134
|
+
const s = Gs(t, e);
|
|
1135
1135
|
let i = 0, o, a = (u) => {
|
|
1136
1136
|
o || (o = !0, r && r(u));
|
|
1137
1137
|
};
|
|
@@ -1159,34 +1159,36 @@ const Wn = (t) => {
|
|
|
1159
1159
|
}, {
|
|
1160
1160
|
highWaterMark: 2
|
|
1161
1161
|
});
|
|
1162
|
-
},
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
Response: n
|
|
1162
|
+
}, Jt = 64 * 1024, { isFunction: qe } = d, Ys = (({ Request: t, Response: e }) => ({
|
|
1163
|
+
Request: t,
|
|
1164
|
+
Response: e
|
|
1166
1165
|
}))(d.global), {
|
|
1167
|
-
ReadableStream:
|
|
1168
|
-
TextEncoder:
|
|
1169
|
-
} = d.global,
|
|
1166
|
+
ReadableStream: Gt,
|
|
1167
|
+
TextEncoder: Xt
|
|
1168
|
+
} = d.global, Yt = (t, ...e) => {
|
|
1170
1169
|
try {
|
|
1171
1170
|
return !!t(...e);
|
|
1172
1171
|
} catch {
|
|
1173
1172
|
return !1;
|
|
1174
1173
|
}
|
|
1175
|
-
},
|
|
1176
|
-
|
|
1174
|
+
}, Zs = (t) => {
|
|
1175
|
+
t = d.merge.call({
|
|
1176
|
+
skipUndefined: !0
|
|
1177
|
+
}, Ys, t);
|
|
1178
|
+
const { fetch: e, Request: n, Response: r } = t, s = e ? qe(e) : typeof fetch == "function", i = qe(n), o = qe(r);
|
|
1177
1179
|
if (!s)
|
|
1178
1180
|
return !1;
|
|
1179
|
-
const a = s &&
|
|
1181
|
+
const a = s && qe(Gt), u = s && (typeof Xt == "function" ? /* @__PURE__ */ ((h) => (p) => h.encode(p))(new Xt()) : async (h) => new Uint8Array(await new n(h).arrayBuffer())), l = i && a && Yt(() => {
|
|
1180
1182
|
let h = !1;
|
|
1181
1183
|
const p = new n(_.origin, {
|
|
1182
|
-
body: new
|
|
1184
|
+
body: new Gt(),
|
|
1183
1185
|
method: "POST",
|
|
1184
1186
|
get duplex() {
|
|
1185
1187
|
return h = !0, "half";
|
|
1186
1188
|
}
|
|
1187
1189
|
}).headers.has("Content-Type");
|
|
1188
1190
|
return h && !p;
|
|
1189
|
-
}), c = o && a &&
|
|
1191
|
+
}), c = o && a && Yt(() => d.isReadableStream(new r("").body)), f = {
|
|
1190
1192
|
stream: c && ((h) => h.body)
|
|
1191
1193
|
};
|
|
1192
1194
|
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((h) => {
|
|
@@ -1226,104 +1228,102 @@ const Wn = (t) => {
|
|
|
1226
1228
|
onDownloadProgress: R,
|
|
1227
1229
|
onUploadProgress: C,
|
|
1228
1230
|
responseType: T,
|
|
1229
|
-
headers:
|
|
1231
|
+
headers: P,
|
|
1230
1232
|
withCredentials: I = "same-origin",
|
|
1231
|
-
fetchOptions:
|
|
1232
|
-
} =
|
|
1233
|
+
fetchOptions: j
|
|
1234
|
+
} = Jn(h), W = e || fetch;
|
|
1233
1235
|
T = T ? (T + "").toLowerCase() : "text";
|
|
1234
|
-
let
|
|
1235
|
-
const
|
|
1236
|
-
|
|
1236
|
+
let U = zs([O, v && v.toAbortSignal()], w), N = null;
|
|
1237
|
+
const G = U && U.unsubscribe && (() => {
|
|
1238
|
+
U.unsubscribe();
|
|
1237
1239
|
});
|
|
1238
|
-
let
|
|
1240
|
+
let Ut;
|
|
1239
1241
|
try {
|
|
1240
|
-
if (C && l && y !== "get" && y !== "head" && (
|
|
1241
|
-
let
|
|
1242
|
+
if (C && l && y !== "get" && y !== "head" && (Ut = await b(P, m)) !== 0) {
|
|
1243
|
+
let Z = new n(p, {
|
|
1242
1244
|
method: "POST",
|
|
1243
1245
|
body: m,
|
|
1244
1246
|
duplex: "half"
|
|
1245
|
-
}),
|
|
1246
|
-
if (d.isFormData(m) && (
|
|
1247
|
-
const [
|
|
1248
|
-
|
|
1249
|
-
|
|
1247
|
+
}), fe;
|
|
1248
|
+
if (d.isFormData(m) && (fe = Z.headers.get("content-type")) && P.setContentType(fe), Z.body) {
|
|
1249
|
+
const [ze, De] = Vt(
|
|
1250
|
+
Ut,
|
|
1251
|
+
Le(Kt(C))
|
|
1250
1252
|
);
|
|
1251
|
-
m =
|
|
1253
|
+
m = zt(Z.body, Jt, ze, De);
|
|
1252
1254
|
}
|
|
1253
1255
|
}
|
|
1254
1256
|
d.isString(I) || (I = I ? "include" : "omit");
|
|
1255
|
-
const z = i && "credentials" in n.prototype,
|
|
1256
|
-
...
|
|
1257
|
-
signal:
|
|
1257
|
+
const z = i && "credentials" in n.prototype, Mt = {
|
|
1258
|
+
...j,
|
|
1259
|
+
signal: U,
|
|
1258
1260
|
method: y.toUpperCase(),
|
|
1259
|
-
headers:
|
|
1261
|
+
headers: P.normalize().toJSON(),
|
|
1260
1262
|
body: m,
|
|
1261
1263
|
duplex: "half",
|
|
1262
1264
|
credentials: z ? I : void 0
|
|
1263
1265
|
};
|
|
1264
|
-
|
|
1265
|
-
let
|
|
1266
|
-
const
|
|
1267
|
-
if (c && (R ||
|
|
1268
|
-
const
|
|
1269
|
-
["status", "statusText", "headers"].forEach((
|
|
1270
|
-
|
|
1266
|
+
N = i && new n(p, Mt);
|
|
1267
|
+
let Y = await (i ? W(N, j) : W(p, Mt));
|
|
1268
|
+
const kt = c && (T === "stream" || T === "response");
|
|
1269
|
+
if (c && (R || kt && G)) {
|
|
1270
|
+
const Z = {};
|
|
1271
|
+
["status", "statusText", "headers"].forEach((Lt) => {
|
|
1272
|
+
Z[Lt] = Y[Lt];
|
|
1271
1273
|
});
|
|
1272
|
-
const
|
|
1273
|
-
|
|
1274
|
-
|
|
1274
|
+
const fe = d.toFiniteNumber(Y.headers.get("content-length")), [ze, De] = R && Vt(
|
|
1275
|
+
fe,
|
|
1276
|
+
Le(Kt(R), !0)
|
|
1275
1277
|
) || [];
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1278
|
+
Y = new r(
|
|
1279
|
+
zt(Y.body, Jt, ze, () => {
|
|
1280
|
+
De && De(), G && G();
|
|
1279
1281
|
}),
|
|
1280
|
-
|
|
1282
|
+
Z
|
|
1281
1283
|
);
|
|
1282
1284
|
}
|
|
1283
1285
|
T = T || "text";
|
|
1284
|
-
let
|
|
1285
|
-
return !
|
|
1286
|
-
|
|
1287
|
-
data:
|
|
1288
|
-
headers: L.from(
|
|
1289
|
-
status:
|
|
1290
|
-
statusText:
|
|
1286
|
+
let wr = await f[d.findKey(f, T) || "text"](Y, h);
|
|
1287
|
+
return !kt && G && G(), await new Promise((Z, fe) => {
|
|
1288
|
+
Wn(Z, fe, {
|
|
1289
|
+
data: wr,
|
|
1290
|
+
headers: L.from(Y.headers),
|
|
1291
|
+
status: Y.status,
|
|
1292
|
+
statusText: Y.statusText,
|
|
1291
1293
|
config: h,
|
|
1292
|
-
request:
|
|
1294
|
+
request: N
|
|
1293
1295
|
});
|
|
1294
1296
|
});
|
|
1295
1297
|
} catch (z) {
|
|
1296
|
-
throw
|
|
1297
|
-
new E("Network Error", E.ERR_NETWORK, h,
|
|
1298
|
+
throw G && G(), z && z.name === "TypeError" && /Load failed|fetch/i.test(z.message) ? Object.assign(
|
|
1299
|
+
new E("Network Error", E.ERR_NETWORK, h, N),
|
|
1298
1300
|
{
|
|
1299
1301
|
cause: z.cause || z
|
|
1300
1302
|
}
|
|
1301
|
-
) : E.from(z, z && z.code, h,
|
|
1303
|
+
) : E.from(z, z && z.code, h, N);
|
|
1302
1304
|
}
|
|
1303
1305
|
};
|
|
1304
|
-
},
|
|
1305
|
-
let e =
|
|
1306
|
-
skipUndefined: !0
|
|
1307
|
-
}, zn, t ? t.env : null);
|
|
1306
|
+
}, ei = /* @__PURE__ */ new Map(), Gn = (t) => {
|
|
1307
|
+
let e = t ? t.env : {};
|
|
1308
1308
|
const { fetch: n, Request: r, Response: s } = e, i = [
|
|
1309
1309
|
r,
|
|
1310
1310
|
s,
|
|
1311
1311
|
n
|
|
1312
1312
|
];
|
|
1313
|
-
let o = i.length, a = o, u, l, c =
|
|
1313
|
+
let o = i.length, a = o, u, l, c = ei;
|
|
1314
1314
|
for (; a--; )
|
|
1315
|
-
u = i[a], l = c.get(u), l === void 0 && c.set(u, l = a ? /* @__PURE__ */ new Map() :
|
|
1315
|
+
u = i[a], l = c.get(u), l === void 0 && c.set(u, l = a ? /* @__PURE__ */ new Map() : Zs(e)), c = l;
|
|
1316
1316
|
return l;
|
|
1317
1317
|
};
|
|
1318
|
-
|
|
1319
|
-
const
|
|
1320
|
-
http:
|
|
1321
|
-
xhr:
|
|
1318
|
+
Gn();
|
|
1319
|
+
const at = {
|
|
1320
|
+
http: gs,
|
|
1321
|
+
xhr: Ws,
|
|
1322
1322
|
fetch: {
|
|
1323
|
-
get:
|
|
1323
|
+
get: Gn
|
|
1324
1324
|
}
|
|
1325
1325
|
};
|
|
1326
|
-
d.forEach(
|
|
1326
|
+
d.forEach(at, (t, e) => {
|
|
1327
1327
|
if (t) {
|
|
1328
1328
|
try {
|
|
1329
1329
|
Object.defineProperty(t, "name", { value: e });
|
|
@@ -1332,7 +1332,7 @@ d.forEach(ot, (t, e) => {
|
|
|
1332
1332
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
1333
1333
|
}
|
|
1334
1334
|
});
|
|
1335
|
-
const
|
|
1335
|
+
const Zt = (t) => `- ${t}`, ti = (t) => d.isFunction(t) || t === null || t === !1, Xn = {
|
|
1336
1336
|
getAdapter: (t, e) => {
|
|
1337
1337
|
t = d.isArray(t) ? t : [t];
|
|
1338
1338
|
const { length: n } = t;
|
|
@@ -1341,7 +1341,7 @@ const Xt = (t) => `- ${t}`, Zs = (t) => d.isFunction(t) || t === null || t === !
|
|
|
1341
1341
|
for (let o = 0; o < n; o++) {
|
|
1342
1342
|
r = t[o];
|
|
1343
1343
|
let a;
|
|
1344
|
-
if (s = r, !
|
|
1344
|
+
if (s = r, !ti(r) && (s = at[(a = String(r)).toLowerCase()], s === void 0))
|
|
1345
1345
|
throw new E(`Unknown adapter '${a}'`);
|
|
1346
1346
|
if (s && (d.isFunction(s) || (s = s.get(e))))
|
|
1347
1347
|
break;
|
|
@@ -1352,8 +1352,8 @@ const Xt = (t) => `- ${t}`, Zs = (t) => d.isFunction(t) || t === null || t === !
|
|
|
1352
1352
|
([u, l]) => `adapter ${u} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1353
1353
|
);
|
|
1354
1354
|
let a = n ? o.length > 1 ? `since :
|
|
1355
|
-
` + o.map(
|
|
1356
|
-
`) : " " +
|
|
1355
|
+
` + o.map(Zt).join(`
|
|
1356
|
+
`) : " " + Zt(o[0]) : "as no adapter specified";
|
|
1357
1357
|
throw new E(
|
|
1358
1358
|
"There is no suitable adapter to dispatch the request " + a,
|
|
1359
1359
|
"ERR_NOT_SUPPORT"
|
|
@@ -1361,40 +1361,40 @@ const Xt = (t) => `- ${t}`, Zs = (t) => d.isFunction(t) || t === null || t === !
|
|
|
1361
1361
|
}
|
|
1362
1362
|
return s;
|
|
1363
1363
|
},
|
|
1364
|
-
adapters:
|
|
1364
|
+
adapters: at
|
|
1365
1365
|
};
|
|
1366
|
-
function
|
|
1366
|
+
function Ye(t) {
|
|
1367
1367
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
1368
|
-
throw new
|
|
1368
|
+
throw new ve(null, t);
|
|
1369
1369
|
}
|
|
1370
|
-
function
|
|
1371
|
-
return
|
|
1370
|
+
function en(t) {
|
|
1371
|
+
return Ye(t), t.headers = L.from(t.headers), t.data = Xe.call(
|
|
1372
1372
|
t,
|
|
1373
1373
|
t.transformRequest
|
|
1374
|
-
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1375
|
-
return
|
|
1374
|
+
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Xn.getAdapter(t.adapter || xe.adapter, t)(t).then(function(r) {
|
|
1375
|
+
return Ye(t), r.data = Xe.call(
|
|
1376
1376
|
t,
|
|
1377
1377
|
t.transformResponse,
|
|
1378
1378
|
r
|
|
1379
1379
|
), r.headers = L.from(r.headers), r;
|
|
1380
1380
|
}, function(r) {
|
|
1381
|
-
return
|
|
1381
|
+
return Kn(r) || (Ye(t), r && r.response && (r.response.data = Xe.call(
|
|
1382
1382
|
t,
|
|
1383
1383
|
t.transformResponse,
|
|
1384
1384
|
r.response
|
|
1385
1385
|
), r.response.headers = L.from(r.response.headers))), Promise.reject(r);
|
|
1386
1386
|
});
|
|
1387
1387
|
}
|
|
1388
|
-
const
|
|
1388
|
+
const Yn = "1.12.2", Ke = {};
|
|
1389
1389
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
1390
|
-
|
|
1390
|
+
Ke[t] = function(r) {
|
|
1391
1391
|
return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
1392
1392
|
};
|
|
1393
1393
|
});
|
|
1394
|
-
const
|
|
1395
|
-
|
|
1394
|
+
const tn = {};
|
|
1395
|
+
Ke.transitional = function(e, n, r) {
|
|
1396
1396
|
function s(i, o) {
|
|
1397
|
-
return "[Axios v" +
|
|
1397
|
+
return "[Axios v" + Yn + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
|
|
1398
1398
|
}
|
|
1399
1399
|
return (i, o, a) => {
|
|
1400
1400
|
if (e === !1)
|
|
@@ -1402,7 +1402,7 @@ Ve.transitional = function(e, n, r) {
|
|
|
1402
1402
|
s(o, " has been removed" + (n ? " in " + n : "")),
|
|
1403
1403
|
E.ERR_DEPRECATED
|
|
1404
1404
|
);
|
|
1405
|
-
return n && !
|
|
1405
|
+
return n && !tn[o] && (tn[o] = !0, console.warn(
|
|
1406
1406
|
s(
|
|
1407
1407
|
o,
|
|
1408
1408
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
@@ -1410,10 +1410,10 @@ Ve.transitional = function(e, n, r) {
|
|
|
1410
1410
|
)), e ? e(i, o, a) : !0;
|
|
1411
1411
|
};
|
|
1412
1412
|
};
|
|
1413
|
-
|
|
1413
|
+
Ke.spelling = function(e) {
|
|
1414
1414
|
return (n, r) => (console.warn(`${r} is likely a misspelling of ${e}`), !0);
|
|
1415
1415
|
};
|
|
1416
|
-
function
|
|
1416
|
+
function ni(t, e, n) {
|
|
1417
1417
|
if (typeof t != "object")
|
|
1418
1418
|
throw new E("options must be an object", E.ERR_BAD_OPTION_VALUE);
|
|
1419
1419
|
const r = Object.keys(t);
|
|
@@ -1430,15 +1430,15 @@ function ei(t, e, n) {
|
|
|
1430
1430
|
throw new E("Unknown option " + i, E.ERR_BAD_OPTION);
|
|
1431
1431
|
}
|
|
1432
1432
|
}
|
|
1433
|
-
const
|
|
1434
|
-
assertOptions:
|
|
1435
|
-
validators:
|
|
1436
|
-
}, J =
|
|
1437
|
-
let
|
|
1433
|
+
const Me = {
|
|
1434
|
+
assertOptions: ni,
|
|
1435
|
+
validators: Ke
|
|
1436
|
+
}, J = Me.validators;
|
|
1437
|
+
let ae = class {
|
|
1438
1438
|
constructor(e) {
|
|
1439
1439
|
this.defaults = e || {}, this.interceptors = {
|
|
1440
|
-
request: new
|
|
1441
|
-
response: new
|
|
1440
|
+
request: new Ht(),
|
|
1441
|
+
response: new Ht()
|
|
1442
1442
|
};
|
|
1443
1443
|
}
|
|
1444
1444
|
/**
|
|
@@ -1467,18 +1467,18 @@ let ie = class {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
1469
1469
|
_request(e, n) {
|
|
1470
|
-
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n =
|
|
1470
|
+
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = ue(this.defaults, n);
|
|
1471
1471
|
const { transitional: r, paramsSerializer: s, headers: i } = n;
|
|
1472
|
-
r !== void 0 &&
|
|
1472
|
+
r !== void 0 && Me.assertOptions(r, {
|
|
1473
1473
|
silentJSONParsing: J.transitional(J.boolean),
|
|
1474
1474
|
forcedJSONParsing: J.transitional(J.boolean),
|
|
1475
1475
|
clarifyTimeoutError: J.transitional(J.boolean)
|
|
1476
1476
|
}, !1), s != null && (d.isFunction(s) ? n.paramsSerializer = {
|
|
1477
1477
|
serialize: s
|
|
1478
|
-
} :
|
|
1478
|
+
} : Me.assertOptions(s, {
|
|
1479
1479
|
encode: J.function,
|
|
1480
1480
|
serialize: J.function
|
|
1481
|
-
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0),
|
|
1481
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Me.assertOptions(n, {
|
|
1482
1482
|
baseUrl: J.spelling("baseURL"),
|
|
1483
1483
|
withXsrfToken: J.spelling("withXSRFToken")
|
|
1484
1484
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -1503,14 +1503,14 @@ let ie = class {
|
|
|
1503
1503
|
});
|
|
1504
1504
|
let c, f = 0, g;
|
|
1505
1505
|
if (!u) {
|
|
1506
|
-
const h = [
|
|
1506
|
+
const h = [en.bind(this), void 0];
|
|
1507
1507
|
for (h.unshift(...a), h.push(...l), g = h.length, c = Promise.resolve(n); f < g; )
|
|
1508
1508
|
c = c.then(h[f++], h[f++]);
|
|
1509
1509
|
return c;
|
|
1510
1510
|
}
|
|
1511
1511
|
g = a.length;
|
|
1512
1512
|
let b = n;
|
|
1513
|
-
for (
|
|
1513
|
+
for (; f < g; ) {
|
|
1514
1514
|
const h = a[f++], p = a[f++];
|
|
1515
1515
|
try {
|
|
1516
1516
|
b = h(b);
|
|
@@ -1520,7 +1520,7 @@ let ie = class {
|
|
|
1520
1520
|
}
|
|
1521
1521
|
}
|
|
1522
1522
|
try {
|
|
1523
|
-
c =
|
|
1523
|
+
c = en.call(this, b);
|
|
1524
1524
|
} catch (h) {
|
|
1525
1525
|
return Promise.reject(h);
|
|
1526
1526
|
}
|
|
@@ -1529,14 +1529,14 @@ let ie = class {
|
|
|
1529
1529
|
return c;
|
|
1530
1530
|
}
|
|
1531
1531
|
getUri(e) {
|
|
1532
|
-
e =
|
|
1533
|
-
const n =
|
|
1534
|
-
return
|
|
1532
|
+
e = ue(this.defaults, e);
|
|
1533
|
+
const n = zn(e.baseURL, e.url, e.allowAbsoluteUrls);
|
|
1534
|
+
return Hn(n, e.params, e.paramsSerializer);
|
|
1535
1535
|
}
|
|
1536
1536
|
};
|
|
1537
1537
|
d.forEach(["delete", "get", "head", "options"], function(e) {
|
|
1538
|
-
|
|
1539
|
-
return this.request(
|
|
1538
|
+
ae.prototype[e] = function(n, r) {
|
|
1539
|
+
return this.request(ue(r || {}, {
|
|
1540
1540
|
method: e,
|
|
1541
1541
|
url: n,
|
|
1542
1542
|
data: (r || {}).data
|
|
@@ -1546,7 +1546,7 @@ d.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
1546
1546
|
d.forEach(["post", "put", "patch"], function(e) {
|
|
1547
1547
|
function n(r) {
|
|
1548
1548
|
return function(i, o, a) {
|
|
1549
|
-
return this.request(
|
|
1549
|
+
return this.request(ue(a || {}, {
|
|
1550
1550
|
method: e,
|
|
1551
1551
|
headers: r ? {
|
|
1552
1552
|
"Content-Type": "multipart/form-data"
|
|
@@ -1556,9 +1556,9 @@ d.forEach(["post", "put", "patch"], function(e) {
|
|
|
1556
1556
|
}));
|
|
1557
1557
|
};
|
|
1558
1558
|
}
|
|
1559
|
-
|
|
1559
|
+
ae.prototype[e] = n(), ae.prototype[e + "Form"] = n(!0);
|
|
1560
1560
|
});
|
|
1561
|
-
let
|
|
1561
|
+
let ri = class Zn {
|
|
1562
1562
|
constructor(e) {
|
|
1563
1563
|
if (typeof e != "function")
|
|
1564
1564
|
throw new TypeError("executor must be a function.");
|
|
@@ -1582,7 +1582,7 @@ let ti = class Yn {
|
|
|
1582
1582
|
r.unsubscribe(i);
|
|
1583
1583
|
}, o;
|
|
1584
1584
|
}, e(function(i, o, a) {
|
|
1585
|
-
r.reason || (r.reason = new
|
|
1585
|
+
r.reason || (r.reason = new ve(i, o, a), n(r.reason));
|
|
1586
1586
|
});
|
|
1587
1587
|
}
|
|
1588
1588
|
/**
|
|
@@ -1624,22 +1624,22 @@ let ti = class Yn {
|
|
|
1624
1624
|
static source() {
|
|
1625
1625
|
let e;
|
|
1626
1626
|
return {
|
|
1627
|
-
token: new
|
|
1627
|
+
token: new Zn(function(s) {
|
|
1628
1628
|
e = s;
|
|
1629
1629
|
}),
|
|
1630
1630
|
cancel: e
|
|
1631
1631
|
};
|
|
1632
1632
|
}
|
|
1633
1633
|
};
|
|
1634
|
-
function
|
|
1634
|
+
function si(t) {
|
|
1635
1635
|
return function(n) {
|
|
1636
1636
|
return t.apply(null, n);
|
|
1637
1637
|
};
|
|
1638
1638
|
}
|
|
1639
|
-
function
|
|
1639
|
+
function ii(t) {
|
|
1640
1640
|
return d.isObject(t) && t.isAxiosError === !0;
|
|
1641
1641
|
}
|
|
1642
|
-
const
|
|
1642
|
+
const ut = {
|
|
1643
1643
|
Continue: 100,
|
|
1644
1644
|
SwitchingProtocols: 101,
|
|
1645
1645
|
Processing: 102,
|
|
@@ -1704,69 +1704,107 @@ const at = {
|
|
|
1704
1704
|
NotExtended: 510,
|
|
1705
1705
|
NetworkAuthenticationRequired: 511
|
|
1706
1706
|
};
|
|
1707
|
-
Object.entries(
|
|
1708
|
-
|
|
1707
|
+
Object.entries(ut).forEach(([t, e]) => {
|
|
1708
|
+
ut[e] = t;
|
|
1709
1709
|
});
|
|
1710
|
-
function
|
|
1711
|
-
const e = new
|
|
1712
|
-
return d.extend(n,
|
|
1713
|
-
return
|
|
1710
|
+
function er(t) {
|
|
1711
|
+
const e = new ae(t), n = Dn(ae.prototype.request, e);
|
|
1712
|
+
return d.extend(n, ae.prototype, e, { allOwnKeys: !0 }), d.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1713
|
+
return er(ue(t, s));
|
|
1714
1714
|
}, n;
|
|
1715
1715
|
}
|
|
1716
|
-
const
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1716
|
+
const F = er(xe);
|
|
1717
|
+
F.Axios = ae;
|
|
1718
|
+
F.CanceledError = ve;
|
|
1719
|
+
F.CancelToken = ri;
|
|
1720
|
+
F.isCancel = Kn;
|
|
1721
|
+
F.VERSION = Yn;
|
|
1722
|
+
F.toFormData = Ve;
|
|
1723
|
+
F.AxiosError = E;
|
|
1724
|
+
F.Cancel = F.CanceledError;
|
|
1725
|
+
F.all = function(e) {
|
|
1726
1726
|
return Promise.all(e);
|
|
1727
1727
|
};
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1728
|
+
F.spread = si;
|
|
1729
|
+
F.isAxiosError = ii;
|
|
1730
|
+
F.mergeConfig = ue;
|
|
1731
|
+
F.AxiosHeaders = L;
|
|
1732
|
+
F.formToJSON = (t) => Vn(d.isHTMLForm(t) ? new FormData(t) : t);
|
|
1733
|
+
F.getAdapter = Xn.getAdapter;
|
|
1734
|
+
F.HttpStatusCode = ut;
|
|
1735
|
+
F.default = F;
|
|
1736
1736
|
const {
|
|
1737
|
-
Axios:
|
|
1738
|
-
AxiosError:
|
|
1739
|
-
CanceledError:
|
|
1740
|
-
isCancel:
|
|
1741
|
-
CancelToken:
|
|
1742
|
-
VERSION:
|
|
1743
|
-
all:
|
|
1744
|
-
Cancel:
|
|
1745
|
-
isAxiosError:
|
|
1746
|
-
spread:
|
|
1747
|
-
toFormData:
|
|
1748
|
-
AxiosHeaders:
|
|
1749
|
-
HttpStatusCode:
|
|
1750
|
-
formToJSON:
|
|
1751
|
-
getAdapter:
|
|
1752
|
-
mergeConfig:
|
|
1753
|
-
} =
|
|
1754
|
-
function
|
|
1755
|
-
|
|
1756
|
-
}
|
|
1757
|
-
function fa(t) {
|
|
1758
|
-
Ke.defaults.headers.common.Authorization = `Bearer ${t}`;
|
|
1759
|
-
}
|
|
1760
|
-
function si() {
|
|
1761
|
-
Ke.defaults.headers.common.Authorization = void 0;
|
|
1737
|
+
Axios: Go,
|
|
1738
|
+
AxiosError: Xo,
|
|
1739
|
+
CanceledError: Yo,
|
|
1740
|
+
isCancel: Zo,
|
|
1741
|
+
CancelToken: ea,
|
|
1742
|
+
VERSION: ta,
|
|
1743
|
+
all: na,
|
|
1744
|
+
Cancel: ra,
|
|
1745
|
+
isAxiosError: sa,
|
|
1746
|
+
spread: ia,
|
|
1747
|
+
toFormData: oa,
|
|
1748
|
+
AxiosHeaders: aa,
|
|
1749
|
+
HttpStatusCode: ua,
|
|
1750
|
+
formToJSON: ca,
|
|
1751
|
+
getAdapter: la,
|
|
1752
|
+
mergeConfig: fa
|
|
1753
|
+
} = F, We = F;
|
|
1754
|
+
function da(t) {
|
|
1755
|
+
We.defaults.baseURL = t;
|
|
1762
1756
|
}
|
|
1763
|
-
function
|
|
1764
|
-
|
|
1757
|
+
function ha(t) {
|
|
1758
|
+
We.defaults.headers.common.Authorization = `Bearer ${t}`;
|
|
1765
1759
|
}
|
|
1766
|
-
function
|
|
1767
|
-
|
|
1760
|
+
function oi() {
|
|
1761
|
+
We.defaults.headers.common.Authorization = void 0;
|
|
1762
|
+
}
|
|
1763
|
+
function nn(t) {
|
|
1764
|
+
return We.isAxiosError(t) ? t.response?.data.message : "Ошибка";
|
|
1765
|
+
}
|
|
1766
|
+
function ne(t) {
|
|
1767
|
+
if (t === null || typeof t != "object")
|
|
1768
|
+
return t;
|
|
1769
|
+
if (t instanceof Date)
|
|
1770
|
+
return new Date(t);
|
|
1771
|
+
if (t instanceof RegExp)
|
|
1772
|
+
return new RegExp(t.source, t.flags);
|
|
1773
|
+
if (Array.isArray(t))
|
|
1774
|
+
return t.map((e) => ne(e));
|
|
1775
|
+
if (t instanceof Set) {
|
|
1776
|
+
const e = /* @__PURE__ */ new Set();
|
|
1777
|
+
return t.forEach((n) => {
|
|
1778
|
+
e.add(ne(n));
|
|
1779
|
+
}), e;
|
|
1780
|
+
}
|
|
1781
|
+
if (t instanceof Map) {
|
|
1782
|
+
const e = /* @__PURE__ */ new Map();
|
|
1783
|
+
return t.forEach((n, r) => {
|
|
1784
|
+
e.set(ne(r), ne(n));
|
|
1785
|
+
}), e;
|
|
1786
|
+
}
|
|
1787
|
+
if (typeof t == "object") {
|
|
1788
|
+
const e = {};
|
|
1789
|
+
Object.getOwnPropertySymbols(t).forEach((n) => {
|
|
1790
|
+
Object.getOwnPropertyDescriptor(t, n)?.enumerable && Object.defineProperty(e, n, {
|
|
1791
|
+
enumerable: !0,
|
|
1792
|
+
configurable: !0,
|
|
1793
|
+
writable: !0,
|
|
1794
|
+
value: ne(t[n])
|
|
1795
|
+
});
|
|
1796
|
+
});
|
|
1797
|
+
for (const n in t)
|
|
1798
|
+
Object.hasOwn(t, n) && (e[n] = ne(t[n]));
|
|
1799
|
+
return e;
|
|
1800
|
+
}
|
|
1801
|
+
return t;
|
|
1802
|
+
}
|
|
1803
|
+
function pa(t) {
|
|
1804
|
+
const e = Or(t);
|
|
1805
|
+
return ne(e);
|
|
1768
1806
|
}
|
|
1769
|
-
const
|
|
1807
|
+
const X = {
|
|
1770
1808
|
en: {
|
|
1771
1809
|
locale: "en-EN",
|
|
1772
1810
|
min: "min",
|
|
@@ -1788,21 +1826,21 @@ const G = {
|
|
|
1788
1826
|
maxSymbols: "Максимальное количество символов"
|
|
1789
1827
|
}
|
|
1790
1828
|
};
|
|
1791
|
-
function
|
|
1829
|
+
function ct(t) {
|
|
1792
1830
|
return t < 10 ? `0${t}` : `${t}`;
|
|
1793
1831
|
}
|
|
1794
|
-
function
|
|
1832
|
+
function ai(t, e = "ru") {
|
|
1795
1833
|
if (!t || t < 0) return "0";
|
|
1796
1834
|
const n = Math.floor(t / 60), r = t % 60;
|
|
1797
|
-
return `${n ? `${n} ${
|
|
1835
|
+
return `${n ? `${n} ${X[e].min}. ` : ""}${ct(r)} ${X[e].sec}.`;
|
|
1798
1836
|
}
|
|
1799
|
-
function
|
|
1800
|
-
return !t || Number.isNaN(new Date(t).getTime()) ? "0" : new Intl.DateTimeFormat(
|
|
1837
|
+
function ya(t, e = "ru") {
|
|
1838
|
+
return !t || Number.isNaN(new Date(t).getTime()) ? "0" : new Intl.DateTimeFormat(X[e].locale, { year: "numeric", month: "short", day: "numeric" }).format(
|
|
1801
1839
|
new Date(t)
|
|
1802
1840
|
) || "0";
|
|
1803
1841
|
}
|
|
1804
|
-
function
|
|
1805
|
-
return !t || Number.isNaN(new Date(t).getTime()) ? "0" : new Intl.DateTimeFormat(
|
|
1842
|
+
function ma(t, e = "ru") {
|
|
1843
|
+
return !t || Number.isNaN(new Date(t).getTime()) ? "0" : new Intl.DateTimeFormat(X[e].locale, {
|
|
1806
1844
|
year: "numeric",
|
|
1807
1845
|
month: "short",
|
|
1808
1846
|
day: "numeric",
|
|
@@ -1810,18 +1848,18 @@ function pa(t, e = "ru") {
|
|
|
1810
1848
|
minute: "numeric"
|
|
1811
1849
|
}).format(new Date(t));
|
|
1812
1850
|
}
|
|
1813
|
-
function
|
|
1851
|
+
function ga(t, e, n, r) {
|
|
1814
1852
|
if (!t || !e) return "0";
|
|
1815
1853
|
const s = new Date(t), i = new Date(e);
|
|
1816
1854
|
if (Number.isNaN(s.getTime()) || Number.isNaN(i.getTime())) return "0";
|
|
1817
1855
|
const o = Math.floor((s.getTime() - i.getTime()) / 1e3);
|
|
1818
|
-
return r ? o :
|
|
1856
|
+
return r ? o : ai(o, n);
|
|
1819
1857
|
}
|
|
1820
|
-
function
|
|
1858
|
+
function ba(t) {
|
|
1821
1859
|
const n = /* @__PURE__ */ new Date(), r = new Date(n.getTime() - t * 864e5), s = new Date(r.getTime() - 1), i = new Date(s.getTime() - t * 864e5);
|
|
1822
1860
|
return { dateFrom: r, dateTo: n, dateFromPrev: i, dateToPrev: s };
|
|
1823
1861
|
}
|
|
1824
|
-
function
|
|
1862
|
+
function va(t, e) {
|
|
1825
1863
|
const n = [];
|
|
1826
1864
|
for (let r = 0; r < t; r++) {
|
|
1827
1865
|
const s = /* @__PURE__ */ new Date(), i = s.getDay() === 0 ? -6 : 1, o = new Date(s.setDate(e ? 1 : s.getDate() - s.getDay() + i - r * 7));
|
|
@@ -1835,30 +1873,30 @@ function ga(t, e) {
|
|
|
1835
1873
|
}
|
|
1836
1874
|
return n.reverse();
|
|
1837
1875
|
}
|
|
1838
|
-
function
|
|
1876
|
+
function ui() {
|
|
1839
1877
|
const t = /* @__PURE__ */ new Date();
|
|
1840
1878
|
return t.setFullYear(t.getFullYear() + 1), t.toUTCString();
|
|
1841
1879
|
}
|
|
1842
|
-
function
|
|
1880
|
+
function wa() {
|
|
1843
1881
|
return `temp-${crypto.randomUUID()}`;
|
|
1844
1882
|
}
|
|
1845
|
-
function
|
|
1883
|
+
function Oa(t, e) {
|
|
1846
1884
|
return !t || t.length === 0 ? [] : t.map((n) => ((e || n._id?.includes("temp-")) && delete n._id, n));
|
|
1847
1885
|
}
|
|
1848
|
-
function
|
|
1886
|
+
function Ea(t, e) {
|
|
1849
1887
|
return t === "/" ? t === e : t.includes(e) && e !== "/";
|
|
1850
1888
|
}
|
|
1851
|
-
function
|
|
1889
|
+
function Sa(t, e) {
|
|
1852
1890
|
const n = e === "ru" ? "" : `_${e}`;
|
|
1853
1891
|
return `${t}${n}`;
|
|
1854
1892
|
}
|
|
1855
|
-
function
|
|
1893
|
+
function Ra(t) {
|
|
1856
1894
|
return t === null || Number.isNaN(t) ? "" : `${t > 0 ? "+" : ""}${t}%`;
|
|
1857
1895
|
}
|
|
1858
|
-
function
|
|
1896
|
+
function Aa(t, e) {
|
|
1859
1897
|
return e === 0 || Number.isNaN(e) || Number.isNaN(t) ? 0 : Math.round((t - e) / e * 100);
|
|
1860
1898
|
}
|
|
1861
|
-
var
|
|
1899
|
+
var we = class {
|
|
1862
1900
|
constructor() {
|
|
1863
1901
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
1864
1902
|
}
|
|
@@ -1874,7 +1912,7 @@ var be = class {
|
|
|
1874
1912
|
}
|
|
1875
1913
|
onUnsubscribe() {
|
|
1876
1914
|
}
|
|
1877
|
-
},
|
|
1915
|
+
}, ci = {
|
|
1878
1916
|
// We need the wrapper function syntax below instead of direct references to
|
|
1879
1917
|
// global setTimeout etc.
|
|
1880
1918
|
//
|
|
@@ -1889,14 +1927,14 @@ var be = class {
|
|
|
1889
1927
|
clearTimeout: (t) => clearTimeout(t),
|
|
1890
1928
|
setInterval: (t, e) => setInterval(t, e),
|
|
1891
1929
|
clearInterval: (t) => clearInterval(t)
|
|
1892
|
-
},
|
|
1930
|
+
}, li = class {
|
|
1893
1931
|
// We cannot have TimeoutManager<T> as we must instantiate it with a concrete
|
|
1894
1932
|
// type at app boot; and if we leave that type, then any new timer provider
|
|
1895
1933
|
// would need to support ReturnType<typeof setTimeout>, which is infeasible.
|
|
1896
1934
|
//
|
|
1897
1935
|
// We settle for type safety for the TimeoutProvider type, and accept that
|
|
1898
1936
|
// this class is unsafe internally to allow for extension.
|
|
1899
|
-
#e =
|
|
1937
|
+
#e = ci;
|
|
1900
1938
|
#t = !1;
|
|
1901
1939
|
setTimeoutProvider(t) {
|
|
1902
1940
|
process.env.NODE_ENV !== "production" && this.#t && t !== this.#e && console.error(
|
|
@@ -1916,29 +1954,29 @@ var be = class {
|
|
|
1916
1954
|
clearInterval(t) {
|
|
1917
1955
|
this.#e.clearInterval(t);
|
|
1918
1956
|
}
|
|
1919
|
-
},
|
|
1920
|
-
function
|
|
1957
|
+
}, se = new li();
|
|
1958
|
+
function fi(t) {
|
|
1921
1959
|
setTimeout(t, 0);
|
|
1922
1960
|
}
|
|
1923
|
-
var
|
|
1924
|
-
function
|
|
1961
|
+
var ce = typeof window > "u" || "Deno" in globalThis;
|
|
1962
|
+
function B() {
|
|
1925
1963
|
}
|
|
1926
|
-
function
|
|
1964
|
+
function di(t, e) {
|
|
1927
1965
|
return typeof t == "function" ? t(e) : t;
|
|
1928
1966
|
}
|
|
1929
|
-
function
|
|
1967
|
+
function lt(t) {
|
|
1930
1968
|
return typeof t == "number" && t >= 0 && t !== 1 / 0;
|
|
1931
1969
|
}
|
|
1932
|
-
function
|
|
1970
|
+
function tr(t, e) {
|
|
1933
1971
|
return Math.max(t + (e || 0) - Date.now(), 0);
|
|
1934
1972
|
}
|
|
1935
|
-
function
|
|
1973
|
+
function te(t, e) {
|
|
1936
1974
|
return typeof t == "function" ? t(e) : t;
|
|
1937
1975
|
}
|
|
1938
|
-
function
|
|
1976
|
+
function H(t, e) {
|
|
1939
1977
|
return typeof t == "function" ? t(e) : t;
|
|
1940
1978
|
}
|
|
1941
|
-
function
|
|
1979
|
+
function rn(t, e) {
|
|
1942
1980
|
const {
|
|
1943
1981
|
type: n = "all",
|
|
1944
1982
|
exact: r,
|
|
@@ -1949,9 +1987,9 @@ function tn(t, e) {
|
|
|
1949
1987
|
} = t;
|
|
1950
1988
|
if (o) {
|
|
1951
1989
|
if (r) {
|
|
1952
|
-
if (e.queryHash !==
|
|
1990
|
+
if (e.queryHash !== Nt(o, e.options))
|
|
1953
1991
|
return !1;
|
|
1954
|
-
} else if (!
|
|
1992
|
+
} else if (!Re(e.queryKey, o))
|
|
1955
1993
|
return !1;
|
|
1956
1994
|
}
|
|
1957
1995
|
if (n !== "all") {
|
|
@@ -1961,55 +1999,55 @@ function tn(t, e) {
|
|
|
1961
1999
|
}
|
|
1962
2000
|
return !(typeof a == "boolean" && e.isStale() !== a || s && s !== e.state.fetchStatus || i && !i(e));
|
|
1963
2001
|
}
|
|
1964
|
-
function
|
|
2002
|
+
function sn(t, e) {
|
|
1965
2003
|
const { exact: n, status: r, predicate: s, mutationKey: i } = t;
|
|
1966
2004
|
if (i) {
|
|
1967
2005
|
if (!e.options.mutationKey)
|
|
1968
2006
|
return !1;
|
|
1969
2007
|
if (n) {
|
|
1970
|
-
if (
|
|
2008
|
+
if (le(e.options.mutationKey) !== le(i))
|
|
1971
2009
|
return !1;
|
|
1972
|
-
} else if (!
|
|
2010
|
+
} else if (!Re(e.options.mutationKey, i))
|
|
1973
2011
|
return !1;
|
|
1974
2012
|
}
|
|
1975
2013
|
return !(r && e.state.status !== r || s && !s(e));
|
|
1976
2014
|
}
|
|
1977
|
-
function
|
|
1978
|
-
return (e?.queryKeyHashFn ||
|
|
2015
|
+
function Nt(t, e) {
|
|
2016
|
+
return (e?.queryKeyHashFn || le)(t);
|
|
1979
2017
|
}
|
|
1980
|
-
function
|
|
2018
|
+
function le(t) {
|
|
1981
2019
|
return JSON.stringify(
|
|
1982
2020
|
t,
|
|
1983
|
-
(e, n) =>
|
|
2021
|
+
(e, n) => dt(n) ? Object.keys(n).sort().reduce((r, s) => (r[s] = n[s], r), {}) : n
|
|
1984
2022
|
);
|
|
1985
2023
|
}
|
|
1986
|
-
function
|
|
1987
|
-
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((n) =>
|
|
2024
|
+
function Re(t, e) {
|
|
2025
|
+
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((n) => Re(t[n], e[n])) : !1;
|
|
1988
2026
|
}
|
|
1989
|
-
var
|
|
1990
|
-
function
|
|
2027
|
+
var hi = Object.prototype.hasOwnProperty;
|
|
2028
|
+
function ft(t, e) {
|
|
1991
2029
|
if (t === e)
|
|
1992
2030
|
return t;
|
|
1993
|
-
const n =
|
|
1994
|
-
if (!n && !(
|
|
2031
|
+
const n = on(t) && on(e);
|
|
2032
|
+
if (!n && !(dt(t) && dt(e))) return e;
|
|
1995
2033
|
const s = (n ? t : Object.keys(t)).length, i = n ? e : Object.keys(e), o = i.length, a = n ? new Array(o) : {};
|
|
1996
2034
|
let u = 0;
|
|
1997
2035
|
for (let l = 0; l < o; l++) {
|
|
1998
2036
|
const c = n ? l : i[l], f = t[c], g = e[c];
|
|
1999
2037
|
if (f === g) {
|
|
2000
|
-
a[c] = f, (n ? l < s :
|
|
2038
|
+
a[c] = f, (n ? l < s : hi.call(t, c)) && u++;
|
|
2001
2039
|
continue;
|
|
2002
2040
|
}
|
|
2003
2041
|
if (f === null || g === null || typeof f != "object" || typeof g != "object") {
|
|
2004
2042
|
a[c] = g;
|
|
2005
2043
|
continue;
|
|
2006
2044
|
}
|
|
2007
|
-
const b =
|
|
2045
|
+
const b = ft(f, g);
|
|
2008
2046
|
a[c] = b, b === f && u++;
|
|
2009
2047
|
}
|
|
2010
2048
|
return s === o && u === s ? t : a;
|
|
2011
2049
|
}
|
|
2012
|
-
function
|
|
2050
|
+
function Qe(t, e) {
|
|
2013
2051
|
if (!e || Object.keys(t).length !== Object.keys(e).length)
|
|
2014
2052
|
return !1;
|
|
2015
2053
|
for (const n in t)
|
|
@@ -2017,66 +2055,66 @@ function Le(t, e) {
|
|
|
2017
2055
|
return !1;
|
|
2018
2056
|
return !0;
|
|
2019
2057
|
}
|
|
2020
|
-
function
|
|
2058
|
+
function on(t) {
|
|
2021
2059
|
return Array.isArray(t) && t.length === Object.keys(t).length;
|
|
2022
2060
|
}
|
|
2023
|
-
function
|
|
2024
|
-
if (!
|
|
2061
|
+
function dt(t) {
|
|
2062
|
+
if (!an(t))
|
|
2025
2063
|
return !1;
|
|
2026
2064
|
const e = t.constructor;
|
|
2027
2065
|
if (e === void 0)
|
|
2028
2066
|
return !0;
|
|
2029
2067
|
const n = e.prototype;
|
|
2030
|
-
return !(!
|
|
2068
|
+
return !(!an(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(t) !== Object.prototype);
|
|
2031
2069
|
}
|
|
2032
|
-
function
|
|
2070
|
+
function an(t) {
|
|
2033
2071
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
2034
2072
|
}
|
|
2035
|
-
function
|
|
2073
|
+
function pi(t) {
|
|
2036
2074
|
return new Promise((e) => {
|
|
2037
|
-
|
|
2075
|
+
se.setTimeout(e, t);
|
|
2038
2076
|
});
|
|
2039
2077
|
}
|
|
2040
|
-
function
|
|
2078
|
+
function ht(t, e, n) {
|
|
2041
2079
|
if (typeof n.structuralSharing == "function")
|
|
2042
2080
|
return n.structuralSharing(t, e);
|
|
2043
2081
|
if (n.structuralSharing !== !1) {
|
|
2044
2082
|
if (process.env.NODE_ENV !== "production")
|
|
2045
2083
|
try {
|
|
2046
|
-
return
|
|
2084
|
+
return ft(t, e);
|
|
2047
2085
|
} catch (r) {
|
|
2048
2086
|
throw console.error(
|
|
2049
2087
|
`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`
|
|
2050
2088
|
), r;
|
|
2051
2089
|
}
|
|
2052
|
-
return
|
|
2090
|
+
return ft(t, e);
|
|
2053
2091
|
}
|
|
2054
2092
|
return e;
|
|
2055
2093
|
}
|
|
2056
|
-
function
|
|
2094
|
+
function yi(t, e, n = 0) {
|
|
2057
2095
|
const r = [...t, e];
|
|
2058
2096
|
return n && r.length > n ? r.slice(1) : r;
|
|
2059
2097
|
}
|
|
2060
|
-
function
|
|
2098
|
+
function mi(t, e, n = 0) {
|
|
2061
2099
|
const r = [e, ...t];
|
|
2062
2100
|
return n && r.length > n ? r.slice(0, -1) : r;
|
|
2063
2101
|
}
|
|
2064
2102
|
var je = Symbol();
|
|
2065
|
-
function
|
|
2103
|
+
function nr(t, e) {
|
|
2066
2104
|
return process.env.NODE_ENV !== "production" && t.queryFn === je && console.error(
|
|
2067
2105
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
|
|
2068
2106
|
), !t.queryFn && e?.initialPromise ? () => e.initialPromise : !t.queryFn || t.queryFn === je ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
|
|
2069
2107
|
}
|
|
2070
|
-
function
|
|
2108
|
+
function pt(t, e) {
|
|
2071
2109
|
return typeof t == "function" ? t(...e) : !!t;
|
|
2072
2110
|
}
|
|
2073
|
-
var
|
|
2111
|
+
var gi = class extends we {
|
|
2074
2112
|
#e;
|
|
2075
2113
|
#t;
|
|
2076
2114
|
#n;
|
|
2077
2115
|
constructor() {
|
|
2078
2116
|
super(), this.#n = (t) => {
|
|
2079
|
-
if (!
|
|
2117
|
+
if (!ce && window.addEventListener) {
|
|
2080
2118
|
const e = () => t();
|
|
2081
2119
|
return window.addEventListener("visibilitychange", e, !1), () => {
|
|
2082
2120
|
window.removeEventListener("visibilitychange", e);
|
|
@@ -2107,8 +2145,8 @@ var yi = class extends be {
|
|
|
2107
2145
|
isFocused() {
|
|
2108
2146
|
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
|
|
2109
2147
|
}
|
|
2110
|
-
},
|
|
2111
|
-
function
|
|
2148
|
+
}, _t = new gi();
|
|
2149
|
+
function yt() {
|
|
2112
2150
|
let t, e;
|
|
2113
2151
|
const n = new Promise((s, i) => {
|
|
2114
2152
|
t = s, e = i;
|
|
@@ -2130,13 +2168,13 @@ function pt() {
|
|
|
2130
2168
|
}), e(s);
|
|
2131
2169
|
}, n;
|
|
2132
2170
|
}
|
|
2133
|
-
var
|
|
2134
|
-
function
|
|
2171
|
+
var bi = fi;
|
|
2172
|
+
function vi() {
|
|
2135
2173
|
let t = [], e = 0, n = (a) => {
|
|
2136
2174
|
a();
|
|
2137
2175
|
}, r = (a) => {
|
|
2138
2176
|
a();
|
|
2139
|
-
}, s =
|
|
2177
|
+
}, s = bi;
|
|
2140
2178
|
const i = (a) => {
|
|
2141
2179
|
e ? t.push(a) : s(() => {
|
|
2142
2180
|
n(a);
|
|
@@ -2190,13 +2228,13 @@ function gi() {
|
|
|
2190
2228
|
}
|
|
2191
2229
|
};
|
|
2192
2230
|
}
|
|
2193
|
-
var
|
|
2231
|
+
var q = vi(), wi = class extends we {
|
|
2194
2232
|
#e = !0;
|
|
2195
2233
|
#t;
|
|
2196
2234
|
#n;
|
|
2197
2235
|
constructor() {
|
|
2198
2236
|
super(), this.#n = (t) => {
|
|
2199
|
-
if (!
|
|
2237
|
+
if (!ce && window.addEventListener) {
|
|
2200
2238
|
const e = () => t(!0), n = () => t(!1);
|
|
2201
2239
|
return window.addEventListener("online", e, !1), window.addEventListener("offline", n, !1), () => {
|
|
2202
2240
|
window.removeEventListener("online", e), window.removeEventListener("offline", n);
|
|
@@ -2221,30 +2259,30 @@ var N = gi(), bi = class extends be {
|
|
|
2221
2259
|
isOnline() {
|
|
2222
2260
|
return this.#e;
|
|
2223
2261
|
}
|
|
2224
|
-
},
|
|
2225
|
-
function
|
|
2262
|
+
}, me = new wi();
|
|
2263
|
+
function Oi(t) {
|
|
2226
2264
|
return Math.min(1e3 * 2 ** t, 3e4);
|
|
2227
2265
|
}
|
|
2228
|
-
function
|
|
2229
|
-
return (t ?? "online") === "online" ?
|
|
2266
|
+
function rr(t) {
|
|
2267
|
+
return (t ?? "online") === "online" ? me.isOnline() : !0;
|
|
2230
2268
|
}
|
|
2231
|
-
var
|
|
2269
|
+
var mt = class extends Error {
|
|
2232
2270
|
constructor(t) {
|
|
2233
2271
|
super("CancelledError"), this.revert = t?.revert, this.silent = t?.silent;
|
|
2234
2272
|
}
|
|
2235
2273
|
};
|
|
2236
|
-
function
|
|
2274
|
+
function sr(t) {
|
|
2237
2275
|
let e = !1, n = 0, r;
|
|
2238
|
-
const s =
|
|
2276
|
+
const s = yt(), i = () => s.status !== "pending", o = (p) => {
|
|
2239
2277
|
if (!i()) {
|
|
2240
|
-
const y = new
|
|
2278
|
+
const y = new mt(p);
|
|
2241
2279
|
g(y), t.onCancel?.(y);
|
|
2242
2280
|
}
|
|
2243
2281
|
}, a = () => {
|
|
2244
2282
|
e = !0;
|
|
2245
2283
|
}, u = () => {
|
|
2246
2284
|
e = !1;
|
|
2247
|
-
}, l = () =>
|
|
2285
|
+
}, l = () => _t.isFocused() && (t.networkMode === "always" || me.isOnline()) && t.canRun(), c = () => rr(t.networkMode) && t.canRun(), f = (p) => {
|
|
2248
2286
|
i() || (r?.(), s.resolve(p));
|
|
2249
2287
|
}, g = (p) => {
|
|
2250
2288
|
i() || (r?.(), s.reject(p));
|
|
@@ -2267,12 +2305,12 @@ function rr(t) {
|
|
|
2267
2305
|
Promise.resolve(p).then(f).catch((m) => {
|
|
2268
2306
|
if (i())
|
|
2269
2307
|
return;
|
|
2270
|
-
const O = t.retry ?? (
|
|
2308
|
+
const O = t.retry ?? (ce ? 0 : 3), v = t.retryDelay ?? Oi, w = typeof v == "function" ? v(n, m) : v, R = O === !0 || typeof O == "number" && n < O || typeof O == "function" && O(n, m);
|
|
2271
2309
|
if (e || !R) {
|
|
2272
2310
|
g(m);
|
|
2273
2311
|
return;
|
|
2274
2312
|
}
|
|
2275
|
-
n++, t.onFail?.(n, m),
|
|
2313
|
+
n++, t.onFail?.(n, m), pi(w).then(() => l() ? void 0 : b()).then(() => {
|
|
2276
2314
|
e ? g(m) : h();
|
|
2277
2315
|
});
|
|
2278
2316
|
});
|
|
@@ -2288,26 +2326,26 @@ function rr(t) {
|
|
|
2288
2326
|
start: () => (c() ? h() : b().then(h), s)
|
|
2289
2327
|
};
|
|
2290
2328
|
}
|
|
2291
|
-
var
|
|
2329
|
+
var ir = class {
|
|
2292
2330
|
#e;
|
|
2293
2331
|
destroy() {
|
|
2294
2332
|
this.clearGcTimeout();
|
|
2295
2333
|
}
|
|
2296
2334
|
scheduleGc() {
|
|
2297
|
-
this.clearGcTimeout(),
|
|
2335
|
+
this.clearGcTimeout(), lt(this.gcTime) && (this.#e = se.setTimeout(() => {
|
|
2298
2336
|
this.optionalRemove();
|
|
2299
2337
|
}, this.gcTime));
|
|
2300
2338
|
}
|
|
2301
2339
|
updateGcTime(t) {
|
|
2302
2340
|
this.gcTime = Math.max(
|
|
2303
2341
|
this.gcTime || 0,
|
|
2304
|
-
t ?? (
|
|
2342
|
+
t ?? (ce ? 1 / 0 : 300 * 1e3)
|
|
2305
2343
|
);
|
|
2306
2344
|
}
|
|
2307
2345
|
clearGcTimeout() {
|
|
2308
|
-
this.#e && (
|
|
2346
|
+
this.#e && (se.clearTimeout(this.#e), this.#e = void 0);
|
|
2309
2347
|
}
|
|
2310
|
-
},
|
|
2348
|
+
}, Ei = class extends ir {
|
|
2311
2349
|
#e;
|
|
2312
2350
|
#t;
|
|
2313
2351
|
#n;
|
|
@@ -2316,7 +2354,7 @@ var sr = class {
|
|
|
2316
2354
|
#o;
|
|
2317
2355
|
#a;
|
|
2318
2356
|
constructor(t) {
|
|
2319
|
-
super(), this.#a = !1, this.#o = t.defaultOptions, this.setOptions(t.options), this.observers = [], this.#r = t.client, this.#n = this.#r.getQueryCache(), this.queryKey = t.queryKey, this.queryHash = t.queryHash, this.#e =
|
|
2357
|
+
super(), this.#a = !1, this.#o = t.defaultOptions, this.setOptions(t.options), this.observers = [], this.#r = t.client, this.#n = this.#r.getQueryCache(), this.queryKey = t.queryKey, this.queryHash = t.queryHash, this.#e = un(this.options), this.state = t.state ?? this.#e, this.scheduleGc();
|
|
2320
2358
|
}
|
|
2321
2359
|
get meta() {
|
|
2322
2360
|
return this.options.meta;
|
|
@@ -2326,7 +2364,7 @@ var sr = class {
|
|
|
2326
2364
|
}
|
|
2327
2365
|
setOptions(t) {
|
|
2328
2366
|
if (this.options = { ...this.#o, ...t }, this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
2329
|
-
const e =
|
|
2367
|
+
const e = un(this.options);
|
|
2330
2368
|
e.data !== void 0 && (this.setData(e.data, {
|
|
2331
2369
|
updatedAt: e.dataUpdatedAt,
|
|
2332
2370
|
manual: !0
|
|
@@ -2337,7 +2375,7 @@ var sr = class {
|
|
|
2337
2375
|
!this.observers.length && this.state.fetchStatus === "idle" && this.#n.remove(this);
|
|
2338
2376
|
}
|
|
2339
2377
|
setData(t, e) {
|
|
2340
|
-
const n =
|
|
2378
|
+
const n = ht(this.state.data, t, this.options);
|
|
2341
2379
|
return this.#i({
|
|
2342
2380
|
data: n,
|
|
2343
2381
|
type: "success",
|
|
@@ -2350,7 +2388,7 @@ var sr = class {
|
|
|
2350
2388
|
}
|
|
2351
2389
|
cancel(t) {
|
|
2352
2390
|
const e = this.#s?.promise;
|
|
2353
|
-
return this.#s?.cancel(t), e ? e.then(
|
|
2391
|
+
return this.#s?.cancel(t), e ? e.then(B).catch(B) : Promise.resolve();
|
|
2354
2392
|
}
|
|
2355
2393
|
destroy() {
|
|
2356
2394
|
super.destroy(), this.cancel({ silent: !0 });
|
|
@@ -2360,7 +2398,7 @@ var sr = class {
|
|
|
2360
2398
|
}
|
|
2361
2399
|
isActive() {
|
|
2362
2400
|
return this.observers.some(
|
|
2363
|
-
(t) =>
|
|
2401
|
+
(t) => H(t.options.enabled, this) !== !1
|
|
2364
2402
|
);
|
|
2365
2403
|
}
|
|
2366
2404
|
isDisabled() {
|
|
@@ -2368,7 +2406,7 @@ var sr = class {
|
|
|
2368
2406
|
}
|
|
2369
2407
|
isStatic() {
|
|
2370
2408
|
return this.getObserversCount() > 0 ? this.observers.some(
|
|
2371
|
-
(t) =>
|
|
2409
|
+
(t) => te(t.options.staleTime, this) === "static"
|
|
2372
2410
|
) : !1;
|
|
2373
2411
|
}
|
|
2374
2412
|
isStale() {
|
|
@@ -2377,7 +2415,7 @@ var sr = class {
|
|
|
2377
2415
|
) : this.state.data === void 0 || this.state.isInvalidated;
|
|
2378
2416
|
}
|
|
2379
2417
|
isStaleByTime(t = 0) {
|
|
2380
|
-
return this.state.data === void 0 ? !0 : t === "static" ? !1 : this.state.isInvalidated ? !0 : !
|
|
2418
|
+
return this.state.data === void 0 ? !0 : t === "static" ? !1 : this.state.isInvalidated ? !0 : !tr(this.state.dataUpdatedAt, t);
|
|
2381
2419
|
}
|
|
2382
2420
|
onFocus() {
|
|
2383
2421
|
this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#s?.continue();
|
|
@@ -2420,7 +2458,7 @@ var sr = class {
|
|
|
2420
2458
|
get: () => (this.#a = !0, n.signal)
|
|
2421
2459
|
});
|
|
2422
2460
|
}, s = () => {
|
|
2423
|
-
const a =
|
|
2461
|
+
const a = nr(this.options, e), l = (() => {
|
|
2424
2462
|
const c = {
|
|
2425
2463
|
client: this.#r,
|
|
2426
2464
|
queryKey: this.queryKey,
|
|
@@ -2444,11 +2482,11 @@ var sr = class {
|
|
|
2444
2482
|
};
|
|
2445
2483
|
return r(a), a;
|
|
2446
2484
|
})();
|
|
2447
|
-
this.options.behavior?.onFetch(o, this), this.#t = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== o.fetchOptions?.meta) && this.#i({ type: "fetch", meta: o.fetchOptions?.meta }), this.#s =
|
|
2485
|
+
this.options.behavior?.onFetch(o, this), this.#t = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== o.fetchOptions?.meta) && this.#i({ type: "fetch", meta: o.fetchOptions?.meta }), this.#s = sr({
|
|
2448
2486
|
initialPromise: e?.initialPromise,
|
|
2449
2487
|
fn: o.fetchFn,
|
|
2450
2488
|
onCancel: (a) => {
|
|
2451
|
-
a instanceof
|
|
2489
|
+
a instanceof mt && a.revert && this.setState({
|
|
2452
2490
|
...this.#t,
|
|
2453
2491
|
fetchStatus: "idle"
|
|
2454
2492
|
}), n.abort();
|
|
@@ -2479,7 +2517,7 @@ var sr = class {
|
|
|
2479
2517
|
this
|
|
2480
2518
|
), a;
|
|
2481
2519
|
} catch (a) {
|
|
2482
|
-
if (a instanceof
|
|
2520
|
+
if (a instanceof mt) {
|
|
2483
2521
|
if (a.silent)
|
|
2484
2522
|
return this.#s.promise;
|
|
2485
2523
|
if (a.revert) {
|
|
@@ -2525,7 +2563,7 @@ var sr = class {
|
|
|
2525
2563
|
case "fetch":
|
|
2526
2564
|
return {
|
|
2527
2565
|
...n,
|
|
2528
|
-
...
|
|
2566
|
+
...or(n.data, this.options),
|
|
2529
2567
|
fetchMeta: t.meta ?? null
|
|
2530
2568
|
};
|
|
2531
2569
|
case "success":
|
|
@@ -2568,25 +2606,25 @@ var sr = class {
|
|
|
2568
2606
|
};
|
|
2569
2607
|
}
|
|
2570
2608
|
};
|
|
2571
|
-
this.state = e(this.state),
|
|
2609
|
+
this.state = e(this.state), q.batch(() => {
|
|
2572
2610
|
this.observers.forEach((n) => {
|
|
2573
2611
|
n.onQueryUpdate();
|
|
2574
2612
|
}), this.#n.notify({ query: this, type: "updated", action: t });
|
|
2575
2613
|
});
|
|
2576
2614
|
}
|
|
2577
2615
|
};
|
|
2578
|
-
function
|
|
2616
|
+
function or(t, e) {
|
|
2579
2617
|
return {
|
|
2580
2618
|
fetchFailureCount: 0,
|
|
2581
2619
|
fetchFailureReason: null,
|
|
2582
|
-
fetchStatus:
|
|
2620
|
+
fetchStatus: rr(e.networkMode) ? "fetching" : "paused",
|
|
2583
2621
|
...t === void 0 && {
|
|
2584
2622
|
error: null,
|
|
2585
2623
|
status: "pending"
|
|
2586
2624
|
}
|
|
2587
2625
|
};
|
|
2588
2626
|
}
|
|
2589
|
-
function
|
|
2627
|
+
function un(t) {
|
|
2590
2628
|
const e = typeof t.initialData == "function" ? t.initialData() : t.initialData, n = e !== void 0, r = n ? typeof t.initialDataUpdatedAt == "function" ? t.initialDataUpdatedAt() : t.initialDataUpdatedAt : 0;
|
|
2591
2629
|
return {
|
|
2592
2630
|
data: e,
|
|
@@ -2603,9 +2641,9 @@ function on(t) {
|
|
|
2603
2641
|
fetchStatus: "idle"
|
|
2604
2642
|
};
|
|
2605
2643
|
}
|
|
2606
|
-
var
|
|
2644
|
+
var Si = class extends we {
|
|
2607
2645
|
constructor(t, e) {
|
|
2608
|
-
super(), this.options = e, this.#e = t, this.#i = null, this.#a =
|
|
2646
|
+
super(), this.options = e, this.#e = t, this.#i = null, this.#a = yt(), this.bindMethods(), this.setOptions(e);
|
|
2609
2647
|
}
|
|
2610
2648
|
#e;
|
|
2611
2649
|
#t = void 0;
|
|
@@ -2628,20 +2666,20 @@ var Oi = class extends be {
|
|
|
2628
2666
|
this.refetch = this.refetch.bind(this);
|
|
2629
2667
|
}
|
|
2630
2668
|
onSubscribe() {
|
|
2631
|
-
this.listeners.size === 1 && (this.#t.addObserver(this),
|
|
2669
|
+
this.listeners.size === 1 && (this.#t.addObserver(this), cn(this.#t, this.options) ? this.#f() : this.updateResult(), this.#v());
|
|
2632
2670
|
}
|
|
2633
2671
|
onUnsubscribe() {
|
|
2634
2672
|
this.hasListeners() || this.destroy();
|
|
2635
2673
|
}
|
|
2636
2674
|
shouldFetchOnReconnect() {
|
|
2637
|
-
return
|
|
2675
|
+
return gt(
|
|
2638
2676
|
this.#t,
|
|
2639
2677
|
this.options,
|
|
2640
2678
|
this.options.refetchOnReconnect
|
|
2641
2679
|
);
|
|
2642
2680
|
}
|
|
2643
2681
|
shouldFetchOnWindowFocus() {
|
|
2644
|
-
return
|
|
2682
|
+
return gt(
|
|
2645
2683
|
this.#t,
|
|
2646
2684
|
this.options,
|
|
2647
2685
|
this.options.refetchOnWindowFocus
|
|
@@ -2652,28 +2690,28 @@ var Oi = class extends be {
|
|
|
2652
2690
|
}
|
|
2653
2691
|
setOptions(t) {
|
|
2654
2692
|
const e = this.options, n = this.#t;
|
|
2655
|
-
if (this.options = this.#e.defaultQueryOptions(t), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof
|
|
2693
|
+
if (this.options = this.#e.defaultQueryOptions(t), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof H(this.options.enabled, this.#t) != "boolean")
|
|
2656
2694
|
throw new Error(
|
|
2657
2695
|
"Expected enabled to be a boolean or a callback that returns a boolean"
|
|
2658
2696
|
);
|
|
2659
|
-
this.#E(), this.#t.setOptions(this.options), e._defaulted && !
|
|
2697
|
+
this.#E(), this.#t.setOptions(this.options), e._defaulted && !Qe(this.options, e) && this.#e.getQueryCache().notify({
|
|
2660
2698
|
type: "observerOptionsUpdated",
|
|
2661
2699
|
query: this.#t,
|
|
2662
2700
|
observer: this
|
|
2663
2701
|
});
|
|
2664
2702
|
const r = this.hasListeners();
|
|
2665
|
-
r &&
|
|
2703
|
+
r && ln(
|
|
2666
2704
|
this.#t,
|
|
2667
2705
|
n,
|
|
2668
2706
|
this.options,
|
|
2669
2707
|
e
|
|
2670
|
-
) && this.#f(), this.updateResult(), r && (this.#t !== n ||
|
|
2708
|
+
) && this.#f(), this.updateResult(), r && (this.#t !== n || H(this.options.enabled, this.#t) !== H(e.enabled, this.#t) || te(this.options.staleTime, this.#t) !== te(e.staleTime, this.#t)) && this.#m();
|
|
2671
2709
|
const s = this.#g();
|
|
2672
|
-
r && (this.#t !== n ||
|
|
2710
|
+
r && (this.#t !== n || H(this.options.enabled, this.#t) !== H(e.enabled, this.#t) || s !== this.#u) && this.#b(s);
|
|
2673
2711
|
}
|
|
2674
2712
|
getOptimisticResult(t) {
|
|
2675
2713
|
const e = this.#e.getQueryCache().build(this.#e, t), n = this.createResult(e, t);
|
|
2676
|
-
return
|
|
2714
|
+
return Ai(this, n) && (this.#r = n, this.#o = this.options, this.#s = this.#t.state), n;
|
|
2677
2715
|
}
|
|
2678
2716
|
getCurrentResult() {
|
|
2679
2717
|
return this.#r;
|
|
@@ -2714,18 +2752,18 @@ var Oi = class extends be {
|
|
|
2714
2752
|
this.options,
|
|
2715
2753
|
t
|
|
2716
2754
|
);
|
|
2717
|
-
return t?.throwOnError || (e = e.catch(
|
|
2755
|
+
return t?.throwOnError || (e = e.catch(B)), e;
|
|
2718
2756
|
}
|
|
2719
2757
|
#m() {
|
|
2720
2758
|
this.#w();
|
|
2721
|
-
const t =
|
|
2759
|
+
const t = te(
|
|
2722
2760
|
this.options.staleTime,
|
|
2723
2761
|
this.#t
|
|
2724
2762
|
);
|
|
2725
|
-
if (
|
|
2763
|
+
if (ce || this.#r.isStale || !lt(t))
|
|
2726
2764
|
return;
|
|
2727
|
-
const n =
|
|
2728
|
-
this.#c =
|
|
2765
|
+
const n = tr(this.#r.dataUpdatedAt, t) + 1;
|
|
2766
|
+
this.#c = se.setTimeout(() => {
|
|
2729
2767
|
this.#r.isStale || this.updateResult();
|
|
2730
2768
|
}, n);
|
|
2731
2769
|
}
|
|
@@ -2733,40 +2771,40 @@ var Oi = class extends be {
|
|
|
2733
2771
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? !1;
|
|
2734
2772
|
}
|
|
2735
2773
|
#b(t) {
|
|
2736
|
-
this.#O(), this.#u = t, !(
|
|
2737
|
-
(this.options.refetchIntervalInBackground ||
|
|
2774
|
+
this.#O(), this.#u = t, !(ce || H(this.options.enabled, this.#t) === !1 || !lt(this.#u) || this.#u === 0) && (this.#l = se.setInterval(() => {
|
|
2775
|
+
(this.options.refetchIntervalInBackground || _t.isFocused()) && this.#f();
|
|
2738
2776
|
}, this.#u));
|
|
2739
2777
|
}
|
|
2740
2778
|
#v() {
|
|
2741
2779
|
this.#m(), this.#b(this.#g());
|
|
2742
2780
|
}
|
|
2743
2781
|
#w() {
|
|
2744
|
-
this.#c && (
|
|
2782
|
+
this.#c && (se.clearTimeout(this.#c), this.#c = void 0);
|
|
2745
2783
|
}
|
|
2746
2784
|
#O() {
|
|
2747
|
-
this.#l && (
|
|
2785
|
+
this.#l && (se.clearInterval(this.#l), this.#l = void 0);
|
|
2748
2786
|
}
|
|
2749
2787
|
createResult(t, e) {
|
|
2750
2788
|
const n = this.#t, r = this.options, s = this.#r, i = this.#s, o = this.#o, u = t !== n ? t.state : this.#n, { state: l } = t;
|
|
2751
2789
|
let c = { ...l }, f = !1, g;
|
|
2752
2790
|
if (e._optimisticResults) {
|
|
2753
|
-
const
|
|
2754
|
-
(I ||
|
|
2791
|
+
const P = this.hasListeners(), I = !P && cn(t, e), j = P && ln(t, n, e, r);
|
|
2792
|
+
(I || j) && (c = {
|
|
2755
2793
|
...c,
|
|
2756
|
-
...
|
|
2794
|
+
...or(l.data, t.options)
|
|
2757
2795
|
}), e._optimisticResults === "isRestoring" && (c.fetchStatus = "idle");
|
|
2758
2796
|
}
|
|
2759
2797
|
let { error: b, errorUpdatedAt: h, status: p } = c;
|
|
2760
2798
|
g = c.data;
|
|
2761
2799
|
let y = !1;
|
|
2762
2800
|
if (e.placeholderData !== void 0 && g === void 0 && p === "pending") {
|
|
2763
|
-
let
|
|
2764
|
-
s?.isPlaceholderData && e.placeholderData === o?.placeholderData ? (
|
|
2801
|
+
let P;
|
|
2802
|
+
s?.isPlaceholderData && e.placeholderData === o?.placeholderData ? (P = s.data, y = !0) : P = typeof e.placeholderData == "function" ? e.placeholderData(
|
|
2765
2803
|
this.#h?.state.data,
|
|
2766
2804
|
this.#h
|
|
2767
|
-
) : e.placeholderData,
|
|
2805
|
+
) : e.placeholderData, P !== void 0 && (p = "success", g = ht(
|
|
2768
2806
|
s?.data,
|
|
2769
|
-
|
|
2807
|
+
P,
|
|
2770
2808
|
e
|
|
2771
2809
|
), f = !0);
|
|
2772
2810
|
}
|
|
@@ -2775,9 +2813,9 @@ var Oi = class extends be {
|
|
|
2775
2813
|
g = this.#d;
|
|
2776
2814
|
else
|
|
2777
2815
|
try {
|
|
2778
|
-
this.#y = e.select, g = e.select(g), g =
|
|
2779
|
-
} catch (
|
|
2780
|
-
this.#i =
|
|
2816
|
+
this.#y = e.select, g = e.select(g), g = ht(s?.data, g, e), this.#d = g, this.#i = null;
|
|
2817
|
+
} catch (P) {
|
|
2818
|
+
this.#i = P;
|
|
2781
2819
|
}
|
|
2782
2820
|
this.#i && (b = this.#i, g = this.#d, h = Date.now(), p = "error");
|
|
2783
2821
|
const m = c.fetchStatus === "fetching", O = p === "pending", v = p === "error", w = O && m, R = g !== void 0, T = {
|
|
@@ -2803,27 +2841,27 @@ var Oi = class extends be {
|
|
|
2803
2841
|
isPaused: c.fetchStatus === "paused",
|
|
2804
2842
|
isPlaceholderData: f,
|
|
2805
2843
|
isRefetchError: v && R,
|
|
2806
|
-
isStale:
|
|
2844
|
+
isStale: It(t, e),
|
|
2807
2845
|
refetch: this.refetch,
|
|
2808
2846
|
promise: this.#a,
|
|
2809
|
-
isEnabled:
|
|
2847
|
+
isEnabled: H(e.enabled, t) !== !1
|
|
2810
2848
|
};
|
|
2811
2849
|
if (this.options.experimental_prefetchInRender) {
|
|
2812
|
-
const
|
|
2813
|
-
T.status === "error" ?
|
|
2850
|
+
const P = (W) => {
|
|
2851
|
+
T.status === "error" ? W.reject(T.error) : T.data !== void 0 && W.resolve(T.data);
|
|
2814
2852
|
}, I = () => {
|
|
2815
|
-
const
|
|
2816
|
-
|
|
2817
|
-
},
|
|
2818
|
-
switch (
|
|
2853
|
+
const W = this.#a = T.promise = yt();
|
|
2854
|
+
P(W);
|
|
2855
|
+
}, j = this.#a;
|
|
2856
|
+
switch (j.status) {
|
|
2819
2857
|
case "pending":
|
|
2820
|
-
t.queryHash === n.queryHash &&
|
|
2858
|
+
t.queryHash === n.queryHash && P(j);
|
|
2821
2859
|
break;
|
|
2822
2860
|
case "fulfilled":
|
|
2823
|
-
(T.status === "error" || T.data !==
|
|
2861
|
+
(T.status === "error" || T.data !== j.value) && I();
|
|
2824
2862
|
break;
|
|
2825
2863
|
case "rejected":
|
|
2826
|
-
(T.status !== "error" || T.error !==
|
|
2864
|
+
(T.status !== "error" || T.error !== j.reason) && I();
|
|
2827
2865
|
break;
|
|
2828
2866
|
}
|
|
2829
2867
|
}
|
|
@@ -2831,7 +2869,7 @@ var Oi = class extends be {
|
|
|
2831
2869
|
}
|
|
2832
2870
|
updateResult() {
|
|
2833
2871
|
const t = this.#r, e = this.createResult(this.#t, this.options);
|
|
2834
|
-
if (this.#s = this.#t.state, this.#o = this.options, this.#s.data !== void 0 && (this.#h = this.#t),
|
|
2872
|
+
if (this.#s = this.#t.state, this.#o = this.options, this.#s.data !== void 0 && (this.#h = this.#t), Qe(e, t))
|
|
2835
2873
|
return;
|
|
2836
2874
|
this.#r = e;
|
|
2837
2875
|
const n = () => {
|
|
@@ -2861,7 +2899,7 @@ var Oi = class extends be {
|
|
|
2861
2899
|
this.updateResult(), this.hasListeners() && this.#v();
|
|
2862
2900
|
}
|
|
2863
2901
|
#S(t) {
|
|
2864
|
-
|
|
2902
|
+
q.batch(() => {
|
|
2865
2903
|
t.listeners && this.listeners.forEach((e) => {
|
|
2866
2904
|
e(this.#r);
|
|
2867
2905
|
}), this.#e.getQueryCache().notify({
|
|
@@ -2871,29 +2909,29 @@ var Oi = class extends be {
|
|
|
2871
2909
|
});
|
|
2872
2910
|
}
|
|
2873
2911
|
};
|
|
2874
|
-
function
|
|
2875
|
-
return
|
|
2912
|
+
function Ri(t, e) {
|
|
2913
|
+
return H(e.enabled, t) !== !1 && t.state.data === void 0 && !(t.state.status === "error" && e.retryOnMount === !1);
|
|
2876
2914
|
}
|
|
2877
|
-
function
|
|
2878
|
-
return
|
|
2915
|
+
function cn(t, e) {
|
|
2916
|
+
return Ri(t, e) || t.state.data !== void 0 && gt(t, e, e.refetchOnMount);
|
|
2879
2917
|
}
|
|
2880
|
-
function
|
|
2881
|
-
if (
|
|
2918
|
+
function gt(t, e, n) {
|
|
2919
|
+
if (H(e.enabled, t) !== !1 && te(e.staleTime, t) !== "static") {
|
|
2882
2920
|
const r = typeof n == "function" ? n(t) : n;
|
|
2883
|
-
return r === "always" || r !== !1 &&
|
|
2921
|
+
return r === "always" || r !== !1 && It(t, e);
|
|
2884
2922
|
}
|
|
2885
2923
|
return !1;
|
|
2886
2924
|
}
|
|
2887
|
-
function
|
|
2888
|
-
return (t !== e ||
|
|
2925
|
+
function ln(t, e, n, r) {
|
|
2926
|
+
return (t !== e || H(r.enabled, t) === !1) && (!n.suspense || t.state.status !== "error") && It(t, n);
|
|
2889
2927
|
}
|
|
2890
|
-
function
|
|
2891
|
-
return
|
|
2928
|
+
function It(t, e) {
|
|
2929
|
+
return H(e.enabled, t) !== !1 && t.isStaleByTime(te(e.staleTime, t));
|
|
2892
2930
|
}
|
|
2893
|
-
function
|
|
2894
|
-
return !
|
|
2931
|
+
function Ai(t, e) {
|
|
2932
|
+
return !Qe(t.getCurrentResult(), e);
|
|
2895
2933
|
}
|
|
2896
|
-
function
|
|
2934
|
+
function fn(t) {
|
|
2897
2935
|
return {
|
|
2898
2936
|
onFetch: (e, n) => {
|
|
2899
2937
|
const r = e.options, s = e.fetchOptions?.meta?.fetchMore?.direction, i = e.state.data?.pages || [], o = e.state.data?.pageParams || [];
|
|
@@ -2907,7 +2945,7 @@ function cn(t) {
|
|
|
2907
2945
|
c = !0;
|
|
2908
2946
|
}), e.signal)
|
|
2909
2947
|
});
|
|
2910
|
-
}, g =
|
|
2948
|
+
}, g = nr(e.options, e.fetchOptions), b = async (h, p, y) => {
|
|
2911
2949
|
if (c)
|
|
2912
2950
|
return Promise.reject();
|
|
2913
2951
|
if (p == null && h.pages.length)
|
|
@@ -2921,14 +2959,14 @@ function cn(t) {
|
|
|
2921
2959
|
meta: e.options.meta
|
|
2922
2960
|
};
|
|
2923
2961
|
return f(C), C;
|
|
2924
|
-
})(), v = await g(O), { maxPages: w } = e.options, R = y ?
|
|
2962
|
+
})(), v = await g(O), { maxPages: w } = e.options, R = y ? mi : yi;
|
|
2925
2963
|
return {
|
|
2926
2964
|
pages: R(h.pages, v, w),
|
|
2927
2965
|
pageParams: R(h.pageParams, p, w)
|
|
2928
2966
|
};
|
|
2929
2967
|
};
|
|
2930
2968
|
if (s && i.length) {
|
|
2931
|
-
const h = s === "backward", p = h ?
|
|
2969
|
+
const h = s === "backward", p = h ? Ti : dn, y = {
|
|
2932
2970
|
pages: i,
|
|
2933
2971
|
pageParams: o
|
|
2934
2972
|
}, m = p(r, y);
|
|
@@ -2936,7 +2974,7 @@ function cn(t) {
|
|
|
2936
2974
|
} else {
|
|
2937
2975
|
const h = t ?? i.length;
|
|
2938
2976
|
do {
|
|
2939
|
-
const p = u === 0 ? o[0] ?? r.initialPageParam :
|
|
2977
|
+
const p = u === 0 ? o[0] ?? r.initialPageParam : dn(r, a);
|
|
2940
2978
|
if (u > 0 && p == null)
|
|
2941
2979
|
break;
|
|
2942
2980
|
a = await b(a, p), u++;
|
|
@@ -2957,7 +2995,7 @@ function cn(t) {
|
|
|
2957
2995
|
}
|
|
2958
2996
|
};
|
|
2959
2997
|
}
|
|
2960
|
-
function
|
|
2998
|
+
function dn(t, { pages: e, pageParams: n }) {
|
|
2961
2999
|
const r = e.length - 1;
|
|
2962
3000
|
return e.length > 0 ? t.getNextPageParam(
|
|
2963
3001
|
e[r],
|
|
@@ -2966,15 +3004,15 @@ function ln(t, { pages: e, pageParams: n }) {
|
|
|
2966
3004
|
n
|
|
2967
3005
|
) : void 0;
|
|
2968
3006
|
}
|
|
2969
|
-
function
|
|
3007
|
+
function Ti(t, { pages: e, pageParams: n }) {
|
|
2970
3008
|
return e.length > 0 ? t.getPreviousPageParam?.(e[0], e, n[0], n) : void 0;
|
|
2971
3009
|
}
|
|
2972
|
-
var
|
|
3010
|
+
var Ci = class extends ir {
|
|
2973
3011
|
#e;
|
|
2974
3012
|
#t;
|
|
2975
3013
|
#n;
|
|
2976
3014
|
constructor(t) {
|
|
2977
|
-
super(), this.mutationId = t.mutationId, this.#t = t.mutationCache, this.#e = [], this.state = t.state ||
|
|
3015
|
+
super(), this.mutationId = t.mutationId, this.#t = t.mutationCache, this.#e = [], this.state = t.state || ar(), this.setOptions(t.options), this.scheduleGc();
|
|
2978
3016
|
}
|
|
2979
3017
|
setOptions(t) {
|
|
2980
3018
|
this.options = t, this.updateGcTime(this.options.gcTime);
|
|
@@ -3007,7 +3045,7 @@ var Ai = class extends sr {
|
|
|
3007
3045
|
const e = () => {
|
|
3008
3046
|
this.#r({ type: "continue" });
|
|
3009
3047
|
};
|
|
3010
|
-
this.#n =
|
|
3048
|
+
this.#n = sr({
|
|
3011
3049
|
fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
|
|
3012
3050
|
onFail: (s, i) => {
|
|
3013
3051
|
this.#r({ type: "failed", failureCount: s, error: i });
|
|
@@ -3135,7 +3173,7 @@ var Ai = class extends sr {
|
|
|
3135
3173
|
};
|
|
3136
3174
|
}
|
|
3137
3175
|
};
|
|
3138
|
-
this.state = e(this.state),
|
|
3176
|
+
this.state = e(this.state), q.batch(() => {
|
|
3139
3177
|
this.#e.forEach((n) => {
|
|
3140
3178
|
n.onMutationUpdate(t);
|
|
3141
3179
|
}), this.#t.notify({
|
|
@@ -3146,7 +3184,7 @@ var Ai = class extends sr {
|
|
|
3146
3184
|
});
|
|
3147
3185
|
}
|
|
3148
3186
|
};
|
|
3149
|
-
function
|
|
3187
|
+
function ar() {
|
|
3150
3188
|
return {
|
|
3151
3189
|
context: void 0,
|
|
3152
3190
|
data: void 0,
|
|
@@ -3159,7 +3197,7 @@ function or() {
|
|
|
3159
3197
|
submittedAt: 0
|
|
3160
3198
|
};
|
|
3161
3199
|
}
|
|
3162
|
-
var
|
|
3200
|
+
var ur = class extends we {
|
|
3163
3201
|
constructor(e = {}) {
|
|
3164
3202
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
3165
3203
|
}
|
|
@@ -3167,7 +3205,7 @@ var ar = class extends be {
|
|
|
3167
3205
|
#t;
|
|
3168
3206
|
#n;
|
|
3169
3207
|
build(e, n, r) {
|
|
3170
|
-
const s = new
|
|
3208
|
+
const s = new Ci({
|
|
3171
3209
|
mutationCache: this,
|
|
3172
3210
|
mutationId: ++this.#n,
|
|
3173
3211
|
options: e.defaultMutationOptions(n),
|
|
@@ -3177,7 +3215,7 @@ var ar = class extends be {
|
|
|
3177
3215
|
}
|
|
3178
3216
|
add(e) {
|
|
3179
3217
|
this.#e.add(e);
|
|
3180
|
-
const n =
|
|
3218
|
+
const n = Ne(e);
|
|
3181
3219
|
if (typeof n == "string") {
|
|
3182
3220
|
const r = this.#t.get(n);
|
|
3183
3221
|
r ? r.push(e) : this.#t.set(n, [e]);
|
|
@@ -3186,7 +3224,7 @@ var ar = class extends be {
|
|
|
3186
3224
|
}
|
|
3187
3225
|
remove(e) {
|
|
3188
3226
|
if (this.#e.delete(e)) {
|
|
3189
|
-
const n =
|
|
3227
|
+
const n = Ne(e);
|
|
3190
3228
|
if (typeof n == "string") {
|
|
3191
3229
|
const r = this.#t.get(n);
|
|
3192
3230
|
if (r)
|
|
@@ -3199,7 +3237,7 @@ var ar = class extends be {
|
|
|
3199
3237
|
this.notify({ type: "removed", mutation: e });
|
|
3200
3238
|
}
|
|
3201
3239
|
canRun(e) {
|
|
3202
|
-
const n =
|
|
3240
|
+
const n = Ne(e);
|
|
3203
3241
|
if (typeof n == "string") {
|
|
3204
3242
|
const s = this.#t.get(n)?.find(
|
|
3205
3243
|
(i) => i.state.status === "pending"
|
|
@@ -3209,11 +3247,11 @@ var ar = class extends be {
|
|
|
3209
3247
|
return !0;
|
|
3210
3248
|
}
|
|
3211
3249
|
runNext(e) {
|
|
3212
|
-
const n =
|
|
3250
|
+
const n = Ne(e);
|
|
3213
3251
|
return typeof n == "string" ? this.#t.get(n)?.find((s) => s !== e && s.state.isPaused)?.continue() ?? Promise.resolve() : Promise.resolve();
|
|
3214
3252
|
}
|
|
3215
3253
|
clear() {
|
|
3216
|
-
|
|
3254
|
+
q.batch(() => {
|
|
3217
3255
|
this.#e.forEach((e) => {
|
|
3218
3256
|
this.notify({ type: "removed", mutation: e });
|
|
3219
3257
|
}), this.#e.clear(), this.#t.clear();
|
|
@@ -3225,14 +3263,14 @@ var ar = class extends be {
|
|
|
3225
3263
|
find(e) {
|
|
3226
3264
|
const n = { exact: !0, ...e };
|
|
3227
3265
|
return this.getAll().find(
|
|
3228
|
-
(r) =>
|
|
3266
|
+
(r) => sn(n, r)
|
|
3229
3267
|
);
|
|
3230
3268
|
}
|
|
3231
3269
|
findAll(e = {}) {
|
|
3232
|
-
return this.getAll().filter((n) =>
|
|
3270
|
+
return this.getAll().filter((n) => sn(e, n));
|
|
3233
3271
|
}
|
|
3234
3272
|
notify(e) {
|
|
3235
|
-
|
|
3273
|
+
q.batch(() => {
|
|
3236
3274
|
this.listeners.forEach((n) => {
|
|
3237
3275
|
n(e);
|
|
3238
3276
|
});
|
|
@@ -3240,17 +3278,17 @@ var ar = class extends be {
|
|
|
3240
3278
|
}
|
|
3241
3279
|
resumePausedMutations() {
|
|
3242
3280
|
const e = this.getAll().filter((n) => n.state.isPaused);
|
|
3243
|
-
return
|
|
3281
|
+
return q.batch(
|
|
3244
3282
|
() => Promise.all(
|
|
3245
|
-
e.map((n) => n.continue().catch(
|
|
3283
|
+
e.map((n) => n.continue().catch(B))
|
|
3246
3284
|
)
|
|
3247
3285
|
);
|
|
3248
3286
|
}
|
|
3249
3287
|
};
|
|
3250
|
-
function
|
|
3288
|
+
function Ne(t) {
|
|
3251
3289
|
return t.options.scope?.id;
|
|
3252
3290
|
}
|
|
3253
|
-
var
|
|
3291
|
+
var Pi = class extends we {
|
|
3254
3292
|
#e;
|
|
3255
3293
|
#t = void 0;
|
|
3256
3294
|
#n;
|
|
@@ -3263,11 +3301,11 @@ var Ti = class extends be {
|
|
|
3263
3301
|
}
|
|
3264
3302
|
setOptions(t) {
|
|
3265
3303
|
const e = this.options;
|
|
3266
|
-
this.options = this.#e.defaultMutationOptions(t),
|
|
3304
|
+
this.options = this.#e.defaultMutationOptions(t), Qe(this.options, e) || this.#e.getMutationCache().notify({
|
|
3267
3305
|
type: "observerOptionsUpdated",
|
|
3268
3306
|
mutation: this.#n,
|
|
3269
3307
|
observer: this
|
|
3270
|
-
}), e?.mutationKey && this.options.mutationKey &&
|
|
3308
|
+
}), e?.mutationKey && this.options.mutationKey && le(e.mutationKey) !== le(this.options.mutationKey) ? this.reset() : this.#n?.state.status === "pending" && this.#n.setOptions(this.options);
|
|
3271
3309
|
}
|
|
3272
3310
|
onUnsubscribe() {
|
|
3273
3311
|
this.hasListeners() || this.#n?.removeObserver(this);
|
|
@@ -3285,7 +3323,7 @@ var Ti = class extends be {
|
|
|
3285
3323
|
return this.#r = e, this.#n?.removeObserver(this), this.#n = this.#e.getMutationCache().build(this.#e, this.options), this.#n.addObserver(this), this.#n.execute(t);
|
|
3286
3324
|
}
|
|
3287
3325
|
#s() {
|
|
3288
|
-
const t = this.#n?.state ??
|
|
3326
|
+
const t = this.#n?.state ?? ar();
|
|
3289
3327
|
this.#t = {
|
|
3290
3328
|
...t,
|
|
3291
3329
|
isPending: t.status === "pending",
|
|
@@ -3297,7 +3335,7 @@ var Ti = class extends be {
|
|
|
3297
3335
|
};
|
|
3298
3336
|
}
|
|
3299
3337
|
#o(t) {
|
|
3300
|
-
|
|
3338
|
+
q.batch(() => {
|
|
3301
3339
|
if (this.#r && this.hasListeners()) {
|
|
3302
3340
|
const e = this.#t.variables, n = this.#t.context;
|
|
3303
3341
|
t?.type === "success" ? (this.#r.onSuccess?.(t.data, e, n), this.#r.onSettled?.(t.data, null, e, n)) : t?.type === "error" && (this.#r.onError?.(t.error, e, n), this.#r.onSettled?.(
|
|
@@ -3312,15 +3350,15 @@ var Ti = class extends be {
|
|
|
3312
3350
|
});
|
|
3313
3351
|
});
|
|
3314
3352
|
}
|
|
3315
|
-
},
|
|
3353
|
+
}, cr = class extends we {
|
|
3316
3354
|
constructor(e = {}) {
|
|
3317
3355
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
|
3318
3356
|
}
|
|
3319
3357
|
#e;
|
|
3320
3358
|
build(e, n, r) {
|
|
3321
|
-
const s = n.queryKey, i = n.queryHash ??
|
|
3359
|
+
const s = n.queryKey, i = n.queryHash ?? Nt(s, n);
|
|
3322
3360
|
let o = this.get(i);
|
|
3323
|
-
return o || (o = new
|
|
3361
|
+
return o || (o = new Ei({
|
|
3324
3362
|
client: e,
|
|
3325
3363
|
queryKey: s,
|
|
3326
3364
|
queryHash: i,
|
|
@@ -3340,7 +3378,7 @@ var Ti = class extends be {
|
|
|
3340
3378
|
n && (e.destroy(), n === e && this.#e.delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
3341
3379
|
}
|
|
3342
3380
|
clear() {
|
|
3343
|
-
|
|
3381
|
+
q.batch(() => {
|
|
3344
3382
|
this.getAll().forEach((e) => {
|
|
3345
3383
|
this.remove(e);
|
|
3346
3384
|
});
|
|
@@ -3355,35 +3393,35 @@ var Ti = class extends be {
|
|
|
3355
3393
|
find(e) {
|
|
3356
3394
|
const n = { exact: !0, ...e };
|
|
3357
3395
|
return this.getAll().find(
|
|
3358
|
-
(r) =>
|
|
3396
|
+
(r) => rn(n, r)
|
|
3359
3397
|
);
|
|
3360
3398
|
}
|
|
3361
3399
|
findAll(e = {}) {
|
|
3362
3400
|
const n = this.getAll();
|
|
3363
|
-
return Object.keys(e).length > 0 ? n.filter((r) =>
|
|
3401
|
+
return Object.keys(e).length > 0 ? n.filter((r) => rn(e, r)) : n;
|
|
3364
3402
|
}
|
|
3365
3403
|
notify(e) {
|
|
3366
|
-
|
|
3404
|
+
q.batch(() => {
|
|
3367
3405
|
this.listeners.forEach((n) => {
|
|
3368
3406
|
n(e);
|
|
3369
3407
|
});
|
|
3370
3408
|
});
|
|
3371
3409
|
}
|
|
3372
3410
|
onFocus() {
|
|
3373
|
-
|
|
3411
|
+
q.batch(() => {
|
|
3374
3412
|
this.getAll().forEach((e) => {
|
|
3375
3413
|
e.onFocus();
|
|
3376
3414
|
});
|
|
3377
3415
|
});
|
|
3378
3416
|
}
|
|
3379
3417
|
onOnline() {
|
|
3380
|
-
|
|
3418
|
+
q.batch(() => {
|
|
3381
3419
|
this.getAll().forEach((e) => {
|
|
3382
3420
|
e.onOnline();
|
|
3383
3421
|
});
|
|
3384
3422
|
});
|
|
3385
3423
|
}
|
|
3386
|
-
},
|
|
3424
|
+
}, Fi = class {
|
|
3387
3425
|
#e;
|
|
3388
3426
|
#t;
|
|
3389
3427
|
#n;
|
|
@@ -3393,12 +3431,12 @@ var Ti = class extends be {
|
|
|
3393
3431
|
#a;
|
|
3394
3432
|
#i;
|
|
3395
3433
|
constructor(e = {}) {
|
|
3396
|
-
this.#e = e.queryCache || new
|
|
3434
|
+
this.#e = e.queryCache || new cr(), this.#t = e.mutationCache || new ur(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#o = 0;
|
|
3397
3435
|
}
|
|
3398
3436
|
mount() {
|
|
3399
|
-
this.#o++, this.#o === 1 && (this.#a =
|
|
3437
|
+
this.#o++, this.#o === 1 && (this.#a = _t.subscribe(async (e) => {
|
|
3400
3438
|
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
3401
|
-
}), this.#i =
|
|
3439
|
+
}), this.#i = me.subscribe(async (e) => {
|
|
3402
3440
|
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
3403
3441
|
}));
|
|
3404
3442
|
}
|
|
@@ -3424,7 +3462,7 @@ var Ti = class extends be {
|
|
|
3424
3462
|
}
|
|
3425
3463
|
ensureQueryData(e) {
|
|
3426
3464
|
const n = this.defaultQueryOptions(e), r = this.#e.build(this, n), s = r.state.data;
|
|
3427
|
-
return s === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(
|
|
3465
|
+
return s === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(te(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(s));
|
|
3428
3466
|
}
|
|
3429
3467
|
getQueriesData(e) {
|
|
3430
3468
|
return this.#e.findAll(e).map(({ queryKey: n, state: r }) => {
|
|
@@ -3435,12 +3473,12 @@ var Ti = class extends be {
|
|
|
3435
3473
|
setQueryData(e, n, r) {
|
|
3436
3474
|
const s = this.defaultQueryOptions({ queryKey: e }), o = this.#e.get(
|
|
3437
3475
|
s.queryHash
|
|
3438
|
-
)?.state.data, a =
|
|
3476
|
+
)?.state.data, a = di(n, o);
|
|
3439
3477
|
if (a !== void 0)
|
|
3440
3478
|
return this.#e.build(this, s).setData(a, { ...r, manual: !0 });
|
|
3441
3479
|
}
|
|
3442
3480
|
setQueriesData(e, n, r) {
|
|
3443
|
-
return
|
|
3481
|
+
return q.batch(
|
|
3444
3482
|
() => this.#e.findAll(e).map(({ queryKey: s }) => [
|
|
3445
3483
|
s,
|
|
3446
3484
|
this.setQueryData(s, n, r)
|
|
@@ -3455,7 +3493,7 @@ var Ti = class extends be {
|
|
|
3455
3493
|
}
|
|
3456
3494
|
removeQueries(e) {
|
|
3457
3495
|
const n = this.#e;
|
|
3458
|
-
|
|
3496
|
+
q.batch(() => {
|
|
3459
3497
|
n.findAll(e).forEach((r) => {
|
|
3460
3498
|
n.remove(r);
|
|
3461
3499
|
});
|
|
@@ -3463,7 +3501,7 @@ var Ti = class extends be {
|
|
|
3463
3501
|
}
|
|
3464
3502
|
resetQueries(e, n) {
|
|
3465
3503
|
const r = this.#e;
|
|
3466
|
-
return
|
|
3504
|
+
return q.batch(() => (r.findAll(e).forEach((s) => {
|
|
3467
3505
|
s.reset();
|
|
3468
3506
|
}), this.refetchQueries(
|
|
3469
3507
|
{
|
|
@@ -3474,13 +3512,13 @@ var Ti = class extends be {
|
|
|
3474
3512
|
)));
|
|
3475
3513
|
}
|
|
3476
3514
|
cancelQueries(e, n = {}) {
|
|
3477
|
-
const r = { revert: !0, ...n }, s =
|
|
3515
|
+
const r = { revert: !0, ...n }, s = q.batch(
|
|
3478
3516
|
() => this.#e.findAll(e).map((i) => i.cancel(r))
|
|
3479
3517
|
);
|
|
3480
|
-
return Promise.all(s).then(
|
|
3518
|
+
return Promise.all(s).then(B).catch(B);
|
|
3481
3519
|
}
|
|
3482
3520
|
invalidateQueries(e, n = {}) {
|
|
3483
|
-
return
|
|
3521
|
+
return q.batch(() => (this.#e.findAll(e).forEach((r) => {
|
|
3484
3522
|
r.invalidate();
|
|
3485
3523
|
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries(
|
|
3486
3524
|
{
|
|
@@ -3494,36 +3532,36 @@ var Ti = class extends be {
|
|
|
3494
3532
|
const r = {
|
|
3495
3533
|
...n,
|
|
3496
3534
|
cancelRefetch: n.cancelRefetch ?? !0
|
|
3497
|
-
}, s =
|
|
3535
|
+
}, s = q.batch(
|
|
3498
3536
|
() => this.#e.findAll(e).filter((i) => !i.isDisabled() && !i.isStatic()).map((i) => {
|
|
3499
3537
|
let o = i.fetch(void 0, r);
|
|
3500
|
-
return r.throwOnError || (o = o.catch(
|
|
3538
|
+
return r.throwOnError || (o = o.catch(B)), i.state.fetchStatus === "paused" ? Promise.resolve() : o;
|
|
3501
3539
|
})
|
|
3502
3540
|
);
|
|
3503
|
-
return Promise.all(s).then(
|
|
3541
|
+
return Promise.all(s).then(B);
|
|
3504
3542
|
}
|
|
3505
3543
|
fetchQuery(e) {
|
|
3506
3544
|
const n = this.defaultQueryOptions(e);
|
|
3507
3545
|
n.retry === void 0 && (n.retry = !1);
|
|
3508
3546
|
const r = this.#e.build(this, n);
|
|
3509
3547
|
return r.isStaleByTime(
|
|
3510
|
-
|
|
3548
|
+
te(n.staleTime, r)
|
|
3511
3549
|
) ? r.fetch(n) : Promise.resolve(r.state.data);
|
|
3512
3550
|
}
|
|
3513
3551
|
prefetchQuery(e) {
|
|
3514
|
-
return this.fetchQuery(e).then(
|
|
3552
|
+
return this.fetchQuery(e).then(B).catch(B);
|
|
3515
3553
|
}
|
|
3516
3554
|
fetchInfiniteQuery(e) {
|
|
3517
|
-
return e.behavior =
|
|
3555
|
+
return e.behavior = fn(e.pages), this.fetchQuery(e);
|
|
3518
3556
|
}
|
|
3519
3557
|
prefetchInfiniteQuery(e) {
|
|
3520
|
-
return this.fetchInfiniteQuery(e).then(
|
|
3558
|
+
return this.fetchInfiniteQuery(e).then(B).catch(B);
|
|
3521
3559
|
}
|
|
3522
3560
|
ensureInfiniteQueryData(e) {
|
|
3523
|
-
return e.behavior =
|
|
3561
|
+
return e.behavior = fn(e.pages), this.ensureQueryData(e);
|
|
3524
3562
|
}
|
|
3525
3563
|
resumePausedMutations() {
|
|
3526
|
-
return
|
|
3564
|
+
return me.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
|
3527
3565
|
}
|
|
3528
3566
|
getQueryCache() {
|
|
3529
3567
|
return this.#e;
|
|
@@ -3538,7 +3576,7 @@ var Ti = class extends be {
|
|
|
3538
3576
|
this.#n = e;
|
|
3539
3577
|
}
|
|
3540
3578
|
setQueryDefaults(e, n) {
|
|
3541
|
-
this.#r.set(
|
|
3579
|
+
this.#r.set(le(e), {
|
|
3542
3580
|
queryKey: e,
|
|
3543
3581
|
defaultOptions: n
|
|
3544
3582
|
});
|
|
@@ -3546,11 +3584,11 @@ var Ti = class extends be {
|
|
|
3546
3584
|
getQueryDefaults(e) {
|
|
3547
3585
|
const n = [...this.#r.values()], r = {};
|
|
3548
3586
|
return n.forEach((s) => {
|
|
3549
|
-
|
|
3587
|
+
Re(e, s.queryKey) && Object.assign(r, s.defaultOptions);
|
|
3550
3588
|
}), r;
|
|
3551
3589
|
}
|
|
3552
3590
|
setMutationDefaults(e, n) {
|
|
3553
|
-
this.#s.set(
|
|
3591
|
+
this.#s.set(le(e), {
|
|
3554
3592
|
mutationKey: e,
|
|
3555
3593
|
defaultOptions: n
|
|
3556
3594
|
});
|
|
@@ -3558,7 +3596,7 @@ var Ti = class extends be {
|
|
|
3558
3596
|
getMutationDefaults(e) {
|
|
3559
3597
|
const n = [...this.#s.values()], r = {};
|
|
3560
3598
|
return n.forEach((s) => {
|
|
3561
|
-
|
|
3599
|
+
Re(e, s.mutationKey) && Object.assign(r, s.defaultOptions);
|
|
3562
3600
|
}), r;
|
|
3563
3601
|
}
|
|
3564
3602
|
defaultQueryOptions(e) {
|
|
@@ -3570,7 +3608,7 @@ var Ti = class extends be {
|
|
|
3570
3608
|
...e,
|
|
3571
3609
|
_defaulted: !0
|
|
3572
3610
|
};
|
|
3573
|
-
return n.queryHash || (n.queryHash =
|
|
3611
|
+
return n.queryHash || (n.queryHash = Nt(
|
|
3574
3612
|
n.queryKey,
|
|
3575
3613
|
n
|
|
3576
3614
|
)), n.refetchOnReconnect === void 0 && (n.refetchOnReconnect = n.networkMode !== "always"), n.throwOnError === void 0 && (n.throwOnError = !!n.suspense), !n.networkMode && n.persister && (n.networkMode = "offlineFirst"), n.queryFn === je && (n.enabled = !1), n;
|
|
@@ -3586,91 +3624,91 @@ var Ti = class extends be {
|
|
|
3586
3624
|
clear() {
|
|
3587
3625
|
this.#e.clear(), this.#t.clear();
|
|
3588
3626
|
}
|
|
3589
|
-
},
|
|
3590
|
-
function
|
|
3627
|
+
}, xi = "VUE_QUERY_CLIENT";
|
|
3628
|
+
function lr(t) {
|
|
3591
3629
|
const e = t ? `:${t}` : "";
|
|
3592
|
-
return `${
|
|
3630
|
+
return `${xi}${e}`;
|
|
3593
3631
|
}
|
|
3594
|
-
function
|
|
3632
|
+
function bt(t, e) {
|
|
3595
3633
|
Object.keys(t).forEach((n) => {
|
|
3596
3634
|
t[n] = e[n];
|
|
3597
3635
|
});
|
|
3598
3636
|
}
|
|
3599
|
-
function
|
|
3637
|
+
function vt(t, e, n = "", r = 0) {
|
|
3600
3638
|
if (e) {
|
|
3601
3639
|
const s = e(t, n, r);
|
|
3602
|
-
if (s === void 0 &&
|
|
3640
|
+
if (s === void 0 && Ct(t) || s !== void 0)
|
|
3603
3641
|
return s;
|
|
3604
3642
|
}
|
|
3605
3643
|
if (Array.isArray(t))
|
|
3606
3644
|
return t.map(
|
|
3607
|
-
(s, i) =>
|
|
3645
|
+
(s, i) => vt(s, e, String(i), r + 1)
|
|
3608
3646
|
);
|
|
3609
|
-
if (typeof t == "object" &&
|
|
3647
|
+
if (typeof t == "object" && qi(t)) {
|
|
3610
3648
|
const s = Object.entries(t).map(([i, o]) => [
|
|
3611
3649
|
i,
|
|
3612
|
-
|
|
3650
|
+
vt(o, e, i, r + 1)
|
|
3613
3651
|
]);
|
|
3614
3652
|
return Object.fromEntries(s);
|
|
3615
3653
|
}
|
|
3616
3654
|
return t;
|
|
3617
3655
|
}
|
|
3618
|
-
function
|
|
3619
|
-
return
|
|
3656
|
+
function Di(t, e) {
|
|
3657
|
+
return vt(t, e);
|
|
3620
3658
|
}
|
|
3621
3659
|
function S(t, e = !1) {
|
|
3622
|
-
return
|
|
3660
|
+
return Di(t, (n, r, s) => {
|
|
3623
3661
|
if (s === 1 && r === "queryKey")
|
|
3624
3662
|
return S(n, !0);
|
|
3625
|
-
if (e &&
|
|
3663
|
+
if (e && Ni(n))
|
|
3626
3664
|
return S(n(), e);
|
|
3627
|
-
if (
|
|
3628
|
-
return S(
|
|
3665
|
+
if (Ct(n))
|
|
3666
|
+
return S(Er(n), e);
|
|
3629
3667
|
});
|
|
3630
3668
|
}
|
|
3631
|
-
function
|
|
3669
|
+
function qi(t) {
|
|
3632
3670
|
if (Object.prototype.toString.call(t) !== "[object Object]")
|
|
3633
3671
|
return !1;
|
|
3634
3672
|
const e = Object.getPrototypeOf(t);
|
|
3635
3673
|
return e === null || e === Object.prototype;
|
|
3636
3674
|
}
|
|
3637
|
-
function
|
|
3675
|
+
function Ni(t) {
|
|
3638
3676
|
return typeof t == "function";
|
|
3639
3677
|
}
|
|
3640
|
-
function
|
|
3641
|
-
if (!
|
|
3678
|
+
function fr(t = "") {
|
|
3679
|
+
if (!Sr())
|
|
3642
3680
|
throw new Error(
|
|
3643
3681
|
"vue-query hooks can only be used inside setup() function or functions that support injection context."
|
|
3644
3682
|
);
|
|
3645
|
-
const e =
|
|
3683
|
+
const e = lr(t), n = Rr(e);
|
|
3646
3684
|
if (!n)
|
|
3647
3685
|
throw new Error(
|
|
3648
3686
|
"No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library."
|
|
3649
3687
|
);
|
|
3650
3688
|
return n;
|
|
3651
3689
|
}
|
|
3652
|
-
var
|
|
3690
|
+
var dr = class extends cr {
|
|
3653
3691
|
find(t) {
|
|
3654
3692
|
return super.find(S(t));
|
|
3655
3693
|
}
|
|
3656
3694
|
findAll(t = {}) {
|
|
3657
3695
|
return super.findAll(S(t));
|
|
3658
3696
|
}
|
|
3659
|
-
},
|
|
3697
|
+
}, _i = class extends ur {
|
|
3660
3698
|
find(t) {
|
|
3661
3699
|
return super.find(S(t));
|
|
3662
3700
|
}
|
|
3663
3701
|
findAll(t = {}) {
|
|
3664
3702
|
return super.findAll(S(t));
|
|
3665
3703
|
}
|
|
3666
|
-
},
|
|
3704
|
+
}, hr = class extends Fi {
|
|
3667
3705
|
constructor(t = {}) {
|
|
3668
3706
|
const e = {
|
|
3669
3707
|
defaultOptions: t.defaultOptions,
|
|
3670
|
-
queryCache: t.queryCache || new
|
|
3671
|
-
mutationCache: t.mutationCache || new
|
|
3708
|
+
queryCache: t.queryCache || new dr(),
|
|
3709
|
+
mutationCache: t.mutationCache || new _i()
|
|
3672
3710
|
};
|
|
3673
|
-
super(e), this.isRestoring =
|
|
3711
|
+
super(e), this.isRestoring = D(!1);
|
|
3674
3712
|
}
|
|
3675
3713
|
isFetching(t = {}) {
|
|
3676
3714
|
return super.isFetching(S(t));
|
|
@@ -3724,7 +3762,7 @@ var fr = class extends ur {
|
|
|
3724
3762
|
...n,
|
|
3725
3763
|
type: n.refetchType ?? n.type ?? "active"
|
|
3726
3764
|
};
|
|
3727
|
-
return
|
|
3765
|
+
return rt().then(() => super.refetchQueries(s, r));
|
|
3728
3766
|
}
|
|
3729
3767
|
refetchQueries(t = {}, e = {}) {
|
|
3730
3768
|
return super.refetchQueries(
|
|
@@ -3763,22 +3801,22 @@ var fr = class extends ur {
|
|
|
3763
3801
|
return super.getMutationDefaults(S(t));
|
|
3764
3802
|
}
|
|
3765
3803
|
};
|
|
3766
|
-
function
|
|
3767
|
-
return
|
|
3804
|
+
function Ii() {
|
|
3805
|
+
return pr().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
3768
3806
|
}
|
|
3769
|
-
function
|
|
3807
|
+
function pr() {
|
|
3770
3808
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
3771
3809
|
}
|
|
3772
|
-
const
|
|
3773
|
-
let
|
|
3774
|
-
function
|
|
3810
|
+
const Ui = typeof Proxy == "function", Mi = "devtools-plugin:setup", ki = "plugin:settings:set";
|
|
3811
|
+
let de, wt;
|
|
3812
|
+
function Li() {
|
|
3775
3813
|
var t;
|
|
3776
|
-
return
|
|
3814
|
+
return de !== void 0 || (typeof window < "u" && window.performance ? (de = !0, wt = window.performance) : typeof globalThis < "u" && (!((t = globalThis.perf_hooks) === null || t === void 0) && t.performance) ? (de = !0, wt = globalThis.perf_hooks.performance) : de = !1), de;
|
|
3777
3815
|
}
|
|
3778
|
-
function
|
|
3779
|
-
return
|
|
3816
|
+
function Qi() {
|
|
3817
|
+
return Li() ? wt.now() : Date.now();
|
|
3780
3818
|
}
|
|
3781
|
-
class
|
|
3819
|
+
class ji {
|
|
3782
3820
|
constructor(e, n) {
|
|
3783
3821
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = e, this.hook = n;
|
|
3784
3822
|
const r = {};
|
|
@@ -3806,9 +3844,9 @@ class Li {
|
|
|
3806
3844
|
i = o;
|
|
3807
3845
|
},
|
|
3808
3846
|
now() {
|
|
3809
|
-
return
|
|
3847
|
+
return Qi();
|
|
3810
3848
|
}
|
|
3811
|
-
}, n && n.on(
|
|
3849
|
+
}, n && n.on(ki, (o, a) => {
|
|
3812
3850
|
o === this.plugin.id && this.fallbacks.setSettings(a);
|
|
3813
3851
|
}), this.proxiedOn = new Proxy({}, {
|
|
3814
3852
|
get: (o, a) => this.target ? this.target.on[a] : (...u) => {
|
|
@@ -3840,12 +3878,12 @@ class Li {
|
|
|
3840
3878
|
n.resolve(await this.target[n.method](...n.args));
|
|
3841
3879
|
}
|
|
3842
3880
|
}
|
|
3843
|
-
function
|
|
3844
|
-
const n = t, r =
|
|
3881
|
+
function Bi(t, e) {
|
|
3882
|
+
const n = t, r = pr(), s = Ii(), i = Ui && n.enableEarlyProxy;
|
|
3845
3883
|
if (s && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !i))
|
|
3846
|
-
s.emit(
|
|
3884
|
+
s.emit(Mi, t, e);
|
|
3847
3885
|
else {
|
|
3848
|
-
const o = i ? new
|
|
3886
|
+
const o = i ? new ji(n, s) : null;
|
|
3849
3887
|
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
3850
3888
|
pluginDescriptor: n,
|
|
3851
3889
|
setupFn: e,
|
|
@@ -3863,7 +3901,7 @@ function ji(t, e) {
|
|
|
3863
3901
|
*
|
|
3864
3902
|
* @license MIT
|
|
3865
3903
|
*/
|
|
3866
|
-
const
|
|
3904
|
+
const yr = {
|
|
3867
3905
|
À: "A",
|
|
3868
3906
|
Á: "A",
|
|
3869
3907
|
Â: "A",
|
|
@@ -4263,9 +4301,9 @@ const pr = {
|
|
|
4263
4301
|
x̧: "x",
|
|
4264
4302
|
Z̧: "Z",
|
|
4265
4303
|
z̧: "z"
|
|
4266
|
-
},
|
|
4267
|
-
function
|
|
4268
|
-
return t.replace(
|
|
4304
|
+
}, Hi = Object.keys(yr).join("|"), $i = new RegExp(Hi, "g");
|
|
4305
|
+
function Vi(t) {
|
|
4306
|
+
return t.replace($i, (e) => yr[e]);
|
|
4269
4307
|
}
|
|
4270
4308
|
/**
|
|
4271
4309
|
* @name match-sorter
|
|
@@ -4283,10 +4321,10 @@ const M = {
|
|
|
4283
4321
|
MATCHES: 1,
|
|
4284
4322
|
NO_MATCH: 0
|
|
4285
4323
|
};
|
|
4286
|
-
function
|
|
4324
|
+
function Ki(t, e, n) {
|
|
4287
4325
|
var r;
|
|
4288
4326
|
if (n = n || {}, n.threshold = (r = n.threshold) != null ? r : M.MATCHES, !n.accessors) {
|
|
4289
|
-
const o =
|
|
4327
|
+
const o = hn(t, e, n);
|
|
4290
4328
|
return {
|
|
4291
4329
|
// ends up being duplicate of 'item' in matches but consistent
|
|
4292
4330
|
rankedValue: t,
|
|
@@ -4296,7 +4334,7 @@ function $i(t, e, n) {
|
|
|
4296
4334
|
passed: o >= n.threshold
|
|
4297
4335
|
};
|
|
4298
4336
|
}
|
|
4299
|
-
const s =
|
|
4337
|
+
const s = Gi(t, n.accessors), i = {
|
|
4300
4338
|
rankedValue: t,
|
|
4301
4339
|
rank: M.NO_MATCH,
|
|
4302
4340
|
accessorIndex: -1,
|
|
@@ -4305,7 +4343,7 @@ function $i(t, e, n) {
|
|
|
4305
4343
|
};
|
|
4306
4344
|
for (let o = 0; o < s.length; o++) {
|
|
4307
4345
|
const a = s[o];
|
|
4308
|
-
let u =
|
|
4346
|
+
let u = hn(a.itemValue, e, n);
|
|
4309
4347
|
const {
|
|
4310
4348
|
minRanking: l,
|
|
4311
4349
|
maxRanking: c,
|
|
@@ -4315,10 +4353,10 @@ function $i(t, e, n) {
|
|
|
4315
4353
|
}
|
|
4316
4354
|
return i;
|
|
4317
4355
|
}
|
|
4318
|
-
function
|
|
4319
|
-
return t =
|
|
4356
|
+
function hn(t, e, n) {
|
|
4357
|
+
return t = pn(t, n), e = pn(e, n), e.length > t.length ? M.NO_MATCH : t === e ? M.CASE_SENSITIVE_EQUAL : (t = t.toLowerCase(), e = e.toLowerCase(), t === e ? M.EQUAL : t.startsWith(e) ? M.STARTS_WITH : t.includes(` ${e}`) ? M.WORD_STARTS_WITH : t.includes(e) ? M.CONTAINS : e.length === 1 ? M.NO_MATCH : Wi(t).includes(e) ? M.ACRONYM : zi(t, e));
|
|
4320
4358
|
}
|
|
4321
|
-
function
|
|
4359
|
+
function Wi(t) {
|
|
4322
4360
|
let e = "";
|
|
4323
4361
|
return t.split(" ").forEach((r) => {
|
|
4324
4362
|
r.split("-").forEach((i) => {
|
|
@@ -4326,7 +4364,7 @@ function Vi(t) {
|
|
|
4326
4364
|
});
|
|
4327
4365
|
}), e;
|
|
4328
4366
|
}
|
|
4329
|
-
function
|
|
4367
|
+
function zi(t, e) {
|
|
4330
4368
|
let n = 0, r = 0;
|
|
4331
4369
|
function s(u, l, c) {
|
|
4332
4370
|
for (let f = c, g = l.length; f < g; f++)
|
|
@@ -4350,22 +4388,22 @@ function Ki(t, e) {
|
|
|
4350
4388
|
const a = r - o;
|
|
4351
4389
|
return i(a);
|
|
4352
4390
|
}
|
|
4353
|
-
function
|
|
4391
|
+
function pn(t, e) {
|
|
4354
4392
|
let {
|
|
4355
4393
|
keepDiacritics: n
|
|
4356
4394
|
} = e;
|
|
4357
|
-
return t = `${t}`, n || (t =
|
|
4395
|
+
return t = `${t}`, n || (t = Vi(t)), t;
|
|
4358
4396
|
}
|
|
4359
|
-
function
|
|
4397
|
+
function Ji(t, e) {
|
|
4360
4398
|
let n = e;
|
|
4361
4399
|
typeof e == "object" && (n = e.accessor);
|
|
4362
4400
|
const r = n(t);
|
|
4363
4401
|
return r == null ? [] : Array.isArray(r) ? r : [String(r)];
|
|
4364
4402
|
}
|
|
4365
|
-
function
|
|
4403
|
+
function Gi(t, e) {
|
|
4366
4404
|
const n = [];
|
|
4367
4405
|
for (let r = 0, s = e.length; r < s; r++) {
|
|
4368
|
-
const i = e[r], o =
|
|
4406
|
+
const i = e[r], o = Xi(i), a = Ji(t, i);
|
|
4369
4407
|
for (let u = 0, l = a.length; u < l; u++)
|
|
4370
4408
|
n.push({
|
|
4371
4409
|
itemValue: a[u],
|
|
@@ -4374,40 +4412,40 @@ function zi(t, e) {
|
|
|
4374
4412
|
}
|
|
4375
4413
|
return n;
|
|
4376
4414
|
}
|
|
4377
|
-
const
|
|
4415
|
+
const yn = {
|
|
4378
4416
|
maxRanking: 1 / 0,
|
|
4379
4417
|
minRanking: -1 / 0
|
|
4380
4418
|
};
|
|
4381
|
-
function
|
|
4382
|
-
return typeof t == "function" ?
|
|
4383
|
-
...
|
|
4419
|
+
function Xi(t) {
|
|
4420
|
+
return typeof t == "function" ? yn : {
|
|
4421
|
+
...yn,
|
|
4384
4422
|
...t
|
|
4385
4423
|
};
|
|
4386
4424
|
}
|
|
4387
|
-
function
|
|
4425
|
+
function ie(t) {
|
|
4388
4426
|
return t.state.fetchStatus === "fetching" ? 0 : t.state.fetchStatus === "paused" ? 4 : t.getObserversCount() ? t.isStale() ? 2 : 1 : 3;
|
|
4389
4427
|
}
|
|
4390
|
-
function
|
|
4391
|
-
const e =
|
|
4428
|
+
function mn(t) {
|
|
4429
|
+
const e = ie(t);
|
|
4392
4430
|
return e === 0 ? "fetching" : e === 4 ? "paused" : e === 2 ? "stale" : e === 3 ? "inactive" : "fresh";
|
|
4393
4431
|
}
|
|
4394
|
-
function
|
|
4395
|
-
return
|
|
4432
|
+
function Yi(t) {
|
|
4433
|
+
return ie(t) === 2 ? 0 : 16777215;
|
|
4396
4434
|
}
|
|
4397
|
-
function
|
|
4398
|
-
const e =
|
|
4435
|
+
function Zi(t) {
|
|
4436
|
+
const e = ie(t);
|
|
4399
4437
|
return e === 0 ? 27647 : e === 4 ? 9193963 : e === 2 ? 16757248 : e === 3 ? 4148832 : 33575;
|
|
4400
4438
|
}
|
|
4401
|
-
var
|
|
4402
|
-
"Status > Last Updated":
|
|
4403
|
-
"Query Hash":
|
|
4404
|
-
"Last Updated":
|
|
4405
|
-
},
|
|
4406
|
-
function
|
|
4407
|
-
|
|
4439
|
+
var eo = (t, e) => t.queryHash.localeCompare(e.queryHash), mr = (t, e) => t.state.dataUpdatedAt < e.state.dataUpdatedAt ? 1 : -1, to = (t, e) => ie(t) === ie(e) ? mr(t, e) : ie(t) > ie(e) ? 1 : -1, Ze = {
|
|
4440
|
+
"Status > Last Updated": to,
|
|
4441
|
+
"Query Hash": eo,
|
|
4442
|
+
"Last Updated": mr
|
|
4443
|
+
}, ee = "vue-query", et = "Vue Query";
|
|
4444
|
+
function no(t, e) {
|
|
4445
|
+
Bi(
|
|
4408
4446
|
{
|
|
4409
|
-
id:
|
|
4410
|
-
label:
|
|
4447
|
+
id: ee,
|
|
4448
|
+
label: et,
|
|
4411
4449
|
packageName: "vue-query",
|
|
4412
4450
|
homepage: "https://tanstack.com/query/latest",
|
|
4413
4451
|
logo: "https://raw.githubusercontent.com/TanStack/query/main/packages/vue-query/media/vue-query.svg",
|
|
@@ -4432,11 +4470,11 @@ function eo(t, e) {
|
|
|
4432
4470
|
sortFn: {
|
|
4433
4471
|
type: "choice",
|
|
4434
4472
|
label: "Sort Function",
|
|
4435
|
-
options: Object.keys(
|
|
4473
|
+
options: Object.keys(Ze).map((n) => ({
|
|
4436
4474
|
label: n,
|
|
4437
4475
|
value: n
|
|
4438
4476
|
})),
|
|
4439
|
-
defaultValue: Object.keys(
|
|
4477
|
+
defaultValue: Object.keys(Ze)[0]
|
|
4440
4478
|
},
|
|
4441
4479
|
onlineMode: {
|
|
4442
4480
|
type: "choice",
|
|
@@ -4458,11 +4496,11 @@ function eo(t, e) {
|
|
|
4458
4496
|
},
|
|
4459
4497
|
(n) => {
|
|
4460
4498
|
const r = n.getSettings();
|
|
4461
|
-
|
|
4499
|
+
me.setOnline(!!r.onlineMode.valueOf());
|
|
4462
4500
|
const s = e.getQueryCache();
|
|
4463
4501
|
n.addInspector({
|
|
4464
|
-
id:
|
|
4465
|
-
label:
|
|
4502
|
+
id: ee,
|
|
4503
|
+
label: et,
|
|
4466
4504
|
icon: "api",
|
|
4467
4505
|
nodeActions: [
|
|
4468
4506
|
{
|
|
@@ -4518,16 +4556,16 @@ function eo(t, e) {
|
|
|
4518
4556
|
}
|
|
4519
4557
|
]
|
|
4520
4558
|
}), n.addTimelineLayer({
|
|
4521
|
-
id:
|
|
4522
|
-
label:
|
|
4559
|
+
id: ee,
|
|
4560
|
+
label: et,
|
|
4523
4561
|
color: 16767308
|
|
4524
4562
|
}), s.subscribe((i) => {
|
|
4525
|
-
n.sendInspectorTree(
|
|
4563
|
+
n.sendInspectorTree(ee), n.sendInspectorState(ee), [
|
|
4526
4564
|
"added",
|
|
4527
4565
|
"removed",
|
|
4528
4566
|
"updated"
|
|
4529
4567
|
].includes(i.type) && n.addTimelineEvent({
|
|
4530
|
-
layerId:
|
|
4568
|
+
layerId: ee,
|
|
4531
4569
|
event: {
|
|
4532
4570
|
title: i.type,
|
|
4533
4571
|
subtitle: i.query.queryHash,
|
|
@@ -4539,23 +4577,23 @@ function eo(t, e) {
|
|
|
4539
4577
|
}
|
|
4540
4578
|
});
|
|
4541
4579
|
}), n.on.setPluginSettings((i) => {
|
|
4542
|
-
i.key === "onlineMode" &&
|
|
4580
|
+
i.key === "onlineMode" && me.setOnline(!!i.newValue);
|
|
4543
4581
|
}), n.on.getInspectorTree((i) => {
|
|
4544
|
-
if (i.inspectorId ===
|
|
4582
|
+
if (i.inspectorId === ee) {
|
|
4545
4583
|
const o = s.getAll(), a = n.getSettings(), c = (i.filter ? o.filter(
|
|
4546
|
-
(f) =>
|
|
4584
|
+
(f) => Ki(f.queryHash, i.filter).passed
|
|
4547
4585
|
) : [...o]).sort(
|
|
4548
|
-
(f, g) =>
|
|
4586
|
+
(f, g) => Ze[a.sortFn](f, g) * a.baseSort
|
|
4549
4587
|
).map((f) => {
|
|
4550
|
-
const g =
|
|
4588
|
+
const g = mn(f);
|
|
4551
4589
|
return {
|
|
4552
4590
|
id: f.queryHash,
|
|
4553
4591
|
label: f.queryHash,
|
|
4554
4592
|
tags: [
|
|
4555
4593
|
{
|
|
4556
4594
|
label: `${g} [${f.getObserversCount()}]`,
|
|
4557
|
-
textColor:
|
|
4558
|
-
backgroundColor:
|
|
4595
|
+
textColor: Yi(f),
|
|
4596
|
+
backgroundColor: Zi(f)
|
|
4559
4597
|
}
|
|
4560
4598
|
]
|
|
4561
4599
|
};
|
|
@@ -4563,7 +4601,7 @@ function eo(t, e) {
|
|
|
4563
4601
|
i.rootNodes = c;
|
|
4564
4602
|
}
|
|
4565
4603
|
}), n.on.getInspectorState((i) => {
|
|
4566
|
-
if (i.inspectorId ===
|
|
4604
|
+
if (i.inspectorId === ee) {
|
|
4567
4605
|
const o = s.get(i.nodeId);
|
|
4568
4606
|
if (!o)
|
|
4569
4607
|
return;
|
|
@@ -4575,7 +4613,7 @@ function eo(t, e) {
|
|
|
4575
4613
|
},
|
|
4576
4614
|
{
|
|
4577
4615
|
key: "Query status",
|
|
4578
|
-
value:
|
|
4616
|
+
value: mn(o)
|
|
4579
4617
|
},
|
|
4580
4618
|
{
|
|
4581
4619
|
key: "Observers",
|
|
@@ -4604,17 +4642,17 @@ function eo(t, e) {
|
|
|
4604
4642
|
}
|
|
4605
4643
|
);
|
|
4606
4644
|
}
|
|
4607
|
-
var
|
|
4645
|
+
var Fa = {
|
|
4608
4646
|
install: (t, e = {}) => {
|
|
4609
|
-
const n =
|
|
4647
|
+
const n = lr(e.queryClientKey);
|
|
4610
4648
|
let r;
|
|
4611
4649
|
if ("queryClient" in e && e.queryClient)
|
|
4612
4650
|
r = e.queryClient;
|
|
4613
4651
|
else {
|
|
4614
4652
|
const o = "queryClientConfig" in e ? e.queryClientConfig : void 0;
|
|
4615
|
-
r = new
|
|
4653
|
+
r = new hr(o);
|
|
4616
4654
|
}
|
|
4617
|
-
|
|
4655
|
+
ce || r.mount();
|
|
4618
4656
|
let s = () => {
|
|
4619
4657
|
};
|
|
4620
4658
|
if (e.clientPersister) {
|
|
@@ -4635,34 +4673,34 @@ var Ca = {
|
|
|
4635
4673
|
i(), o();
|
|
4636
4674
|
};
|
|
4637
4675
|
}
|
|
4638
|
-
t.provide(n, r), process.env.NODE_ENV === "development" && e.enableDevtoolsV6Plugin &&
|
|
4676
|
+
t.provide(n, r), process.env.NODE_ENV === "development" && e.enableDevtoolsV6Plugin && no(t, r);
|
|
4639
4677
|
}
|
|
4640
4678
|
};
|
|
4641
|
-
function
|
|
4642
|
-
process.env.NODE_ENV === "development" && (
|
|
4679
|
+
function ro(t, e, n) {
|
|
4680
|
+
process.env.NODE_ENV === "development" && (Sn() || console.warn(
|
|
4643
4681
|
'vue-query composable like "useQuery()" should only be used inside a "setup()" function or a running effect scope. They might otherwise lead to memory leaks.'
|
|
4644
4682
|
));
|
|
4645
|
-
const r = n ||
|
|
4683
|
+
const r = n || fr(), s = $(() => {
|
|
4646
4684
|
const b = S(e);
|
|
4647
4685
|
typeof b.enabled == "function" && (b.enabled = b.enabled());
|
|
4648
4686
|
const h = r.defaultQueryOptions(b);
|
|
4649
4687
|
return h._optimisticResults = r.isRestoring?.value ? "isRestoring" : "optimistic", h;
|
|
4650
|
-
}), i = new t(r, s.value), o = s.value.shallow ?
|
|
4688
|
+
}), i = new t(r, s.value), o = s.value.shallow ? Rn(i.getCurrentResult()) : An(i.getCurrentResult());
|
|
4651
4689
|
let a = () => {
|
|
4652
4690
|
};
|
|
4653
|
-
r.isRestoring &&
|
|
4691
|
+
r.isRestoring && V(
|
|
4654
4692
|
r.isRestoring,
|
|
4655
4693
|
(b) => {
|
|
4656
4694
|
b || (a(), a = i.subscribe((h) => {
|
|
4657
|
-
|
|
4695
|
+
bt(o, h);
|
|
4658
4696
|
}));
|
|
4659
4697
|
},
|
|
4660
4698
|
{ immediate: !0 }
|
|
4661
4699
|
);
|
|
4662
4700
|
const u = () => {
|
|
4663
|
-
i.setOptions(s.value),
|
|
4701
|
+
i.setOptions(s.value), bt(o, i.getCurrentResult());
|
|
4664
4702
|
};
|
|
4665
|
-
|
|
4703
|
+
V(s, u), Tn(() => {
|
|
4666
4704
|
a();
|
|
4667
4705
|
});
|
|
4668
4706
|
const l = (...b) => (u(), o.refetch(...b)), c = () => new Promise(
|
|
@@ -4676,54 +4714,54 @@ function to(t, e, n) {
|
|
|
4676
4714
|
s.value
|
|
4677
4715
|
);
|
|
4678
4716
|
m.isStale ? (p(), i.fetchOptimistic(s.value).then(b, (O) => {
|
|
4679
|
-
|
|
4717
|
+
pt(s.value.throwOnError, [
|
|
4680
4718
|
O,
|
|
4681
4719
|
i.getCurrentQuery()
|
|
4682
4720
|
]) ? h(O) : b(i.getCurrentResult());
|
|
4683
4721
|
})) : (p(), b(m));
|
|
4684
4722
|
}
|
|
4685
4723
|
};
|
|
4686
|
-
y(), p =
|
|
4724
|
+
y(), p = V(s, y);
|
|
4687
4725
|
}
|
|
4688
4726
|
);
|
|
4689
|
-
|
|
4727
|
+
V(
|
|
4690
4728
|
() => o.error,
|
|
4691
4729
|
(b) => {
|
|
4692
|
-
if (o.isError && !o.isFetching &&
|
|
4730
|
+
if (o.isError && !o.isFetching && pt(s.value.throwOnError, [
|
|
4693
4731
|
b,
|
|
4694
4732
|
i.getCurrentQuery()
|
|
4695
4733
|
]))
|
|
4696
4734
|
throw b;
|
|
4697
4735
|
}
|
|
4698
4736
|
);
|
|
4699
|
-
const f = s.value.shallow ?
|
|
4737
|
+
const f = s.value.shallow ? Cn(o) : Te(o), g = Pn(f);
|
|
4700
4738
|
for (const b in o)
|
|
4701
4739
|
typeof o[b] == "function" && (g[b] = o[b]);
|
|
4702
4740
|
return g.suspense = c, g.refetch = l, g;
|
|
4703
4741
|
}
|
|
4704
|
-
function
|
|
4705
|
-
return
|
|
4742
|
+
function xa(t, e) {
|
|
4743
|
+
return ro(Si, t, e);
|
|
4706
4744
|
}
|
|
4707
|
-
function
|
|
4708
|
-
process.env.NODE_ENV === "development" && (
|
|
4745
|
+
function Da(t, e) {
|
|
4746
|
+
process.env.NODE_ENV === "development" && (Sn() || console.warn(
|
|
4709
4747
|
'vue-query composable like "useQuery()" should only be used inside a "setup()" function or a running effect scope. They might otherwise lead to memory leaks.'
|
|
4710
4748
|
));
|
|
4711
|
-
const n = e ||
|
|
4712
|
-
|
|
4749
|
+
const n = e || fr(), r = $(() => n.defaultMutationOptions(S(t))), s = new Pi(n, r.value), i = r.value.shallow ? Rn(s.getCurrentResult()) : An(s.getCurrentResult()), o = s.subscribe((c) => {
|
|
4750
|
+
bt(i, c);
|
|
4713
4751
|
}), a = (c, f) => {
|
|
4714
4752
|
s.mutate(c, f).catch(() => {
|
|
4715
4753
|
});
|
|
4716
4754
|
};
|
|
4717
|
-
|
|
4755
|
+
V(r, () => {
|
|
4718
4756
|
s.setOptions(r.value);
|
|
4719
|
-
}),
|
|
4757
|
+
}), Tn(() => {
|
|
4720
4758
|
o();
|
|
4721
4759
|
});
|
|
4722
|
-
const u = r.value.shallow ?
|
|
4723
|
-
return
|
|
4760
|
+
const u = r.value.shallow ? Cn(i) : Te(i), l = Pn(u);
|
|
4761
|
+
return V(
|
|
4724
4762
|
() => i.error,
|
|
4725
4763
|
(c) => {
|
|
4726
|
-
if (c &&
|
|
4764
|
+
if (c && pt(r.value.throwOnError, [c]))
|
|
4727
4765
|
throw c;
|
|
4728
4766
|
}
|
|
4729
4767
|
), {
|
|
@@ -4733,104 +4771,104 @@ function Pa(t, e) {
|
|
|
4733
4771
|
reset: i.reset
|
|
4734
4772
|
};
|
|
4735
4773
|
}
|
|
4736
|
-
const
|
|
4737
|
-
function
|
|
4774
|
+
const qa = new hr();
|
|
4775
|
+
function Na(t, e, n) {
|
|
4738
4776
|
return {
|
|
4739
4777
|
queryClientConfig: {
|
|
4740
|
-
queryCache: new
|
|
4778
|
+
queryCache: new dr({
|
|
4741
4779
|
onError: (r) => {
|
|
4742
4780
|
const s = r.code === "ERR_NETWORK", i = [403, 401].includes(r.response?.status);
|
|
4743
|
-
s ? t.error("Ошибка подключения к сети") : i ?
|
|
4781
|
+
s ? t.error("Ошибка подключения к сети") : i ? oo(e, oi, n) : t.error(nn(r));
|
|
4744
4782
|
}
|
|
4745
4783
|
}),
|
|
4746
4784
|
defaultOptions: {
|
|
4747
4785
|
queries: { refetchOnMount: !1, refetchOnWindowFocus: !1, retry: !1 },
|
|
4748
4786
|
mutations: {
|
|
4749
4787
|
onError: (r) => {
|
|
4750
|
-
t.error(
|
|
4788
|
+
t.error(nn(r));
|
|
4751
4789
|
}
|
|
4752
4790
|
}
|
|
4753
4791
|
}
|
|
4754
4792
|
}
|
|
4755
4793
|
};
|
|
4756
4794
|
}
|
|
4757
|
-
function
|
|
4795
|
+
function _a() {
|
|
4758
4796
|
const t = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
|
4759
4797
|
let e = "";
|
|
4760
4798
|
for (let n = 0; n < 9; n++)
|
|
4761
4799
|
e += t.charAt(Math.floor(Math.random() * t.length));
|
|
4762
4800
|
return e;
|
|
4763
4801
|
}
|
|
4764
|
-
function
|
|
4802
|
+
function Ia(t) {
|
|
4765
4803
|
document.querySelector(t)?.scrollTo(0, 0);
|
|
4766
4804
|
}
|
|
4767
|
-
function
|
|
4805
|
+
function Ua(t, ...e) {
|
|
4768
4806
|
const n = [];
|
|
4769
4807
|
for (const [r, s] of t.entries())
|
|
4770
4808
|
n.push(s), r < e.length && n.push(String(e[r]));
|
|
4771
4809
|
return n.join("");
|
|
4772
4810
|
}
|
|
4773
|
-
const
|
|
4774
|
-
function
|
|
4811
|
+
const tt = "<template><div></div></template>";
|
|
4812
|
+
function Ma(t) {
|
|
4775
4813
|
return `[data-test="${t}"]`;
|
|
4776
4814
|
}
|
|
4777
|
-
function
|
|
4815
|
+
function ka(t) {
|
|
4778
4816
|
t.type === 1 && (t.props = t.props.filter((e) => e.type === 6 ? e.name !== "data-test" : !0));
|
|
4779
4817
|
}
|
|
4780
|
-
async function
|
|
4818
|
+
async function La(t) {
|
|
4781
4819
|
await new Promise((e) => {
|
|
4782
4820
|
setTimeout(e, t || 10);
|
|
4783
4821
|
});
|
|
4784
4822
|
}
|
|
4785
|
-
async function
|
|
4786
|
-
const e =
|
|
4787
|
-
history:
|
|
4823
|
+
async function Qa(t) {
|
|
4824
|
+
const e = xr({
|
|
4825
|
+
history: Dr(),
|
|
4788
4826
|
routes: [
|
|
4789
|
-
{ path: "/", name: "Home", component: { template:
|
|
4790
|
-
{ path: "/login", name: "Login", component: { template:
|
|
4827
|
+
{ path: "/", name: "Home", component: { template: tt } },
|
|
4828
|
+
{ path: "/login", name: "Login", component: { template: tt } }
|
|
4791
4829
|
]
|
|
4792
4830
|
});
|
|
4793
4831
|
let n;
|
|
4794
|
-
const r =
|
|
4795
|
-
template:
|
|
4832
|
+
const r = Ar({
|
|
4833
|
+
template: tt,
|
|
4796
4834
|
setup() {
|
|
4797
4835
|
n = t();
|
|
4798
4836
|
}
|
|
4799
|
-
}), s =
|
|
4837
|
+
}), s = Tr(r);
|
|
4800
4838
|
s.use(e);
|
|
4801
4839
|
const i = document.createElement("div");
|
|
4802
4840
|
document.body.append(i), s.mount(i), await n;
|
|
4803
4841
|
}
|
|
4804
|
-
const
|
|
4805
|
-
function
|
|
4806
|
-
|
|
4842
|
+
const gr = D(!1), so = Te(gr);
|
|
4843
|
+
function io(t) {
|
|
4844
|
+
gr.value = t;
|
|
4807
4845
|
}
|
|
4808
|
-
function
|
|
4809
|
-
|
|
4846
|
+
function oo(t, e, n) {
|
|
4847
|
+
uo(n), e(), globalThis.location.href = t;
|
|
4810
4848
|
}
|
|
4811
|
-
function
|
|
4849
|
+
function ja(t) {
|
|
4812
4850
|
if (!document.cookie) return;
|
|
4813
4851
|
const { [t]: e } = Object.fromEntries(document.cookie.split("; ").map((n) => n.split("=")));
|
|
4814
4852
|
return e;
|
|
4815
4853
|
}
|
|
4816
|
-
function
|
|
4817
|
-
document.cookie = `${e}=${t};Secure;SameSite=strict;expires=${
|
|
4854
|
+
function ao(t, e) {
|
|
4855
|
+
document.cookie = `${e}=${t};Secure;SameSite=strict;expires=${ui()}`;
|
|
4818
4856
|
}
|
|
4819
|
-
function
|
|
4857
|
+
function uo(t) {
|
|
4820
4858
|
document.cookie = `${t}=;expires=${(/* @__PURE__ */ new Date(0)).toUTCString()}`;
|
|
4821
4859
|
}
|
|
4822
|
-
function
|
|
4823
|
-
const t =
|
|
4860
|
+
function Ba() {
|
|
4861
|
+
const t = Pt();
|
|
4824
4862
|
function e(r, s, i) {
|
|
4825
|
-
|
|
4863
|
+
ao(r, i), s(r), io(!0);
|
|
4826
4864
|
}
|
|
4827
4865
|
function n(r) {
|
|
4828
|
-
|
|
4866
|
+
so.value && t.push(r);
|
|
4829
4867
|
}
|
|
4830
4868
|
return { auth: e, redirectIfAuth: n };
|
|
4831
4869
|
}
|
|
4832
|
-
function
|
|
4833
|
-
const t =
|
|
4870
|
+
function Ha() {
|
|
4871
|
+
const t = D(1), e = D([]);
|
|
4834
4872
|
function n(s) {
|
|
4835
4873
|
e.value = [...e.value, ...s];
|
|
4836
4874
|
}
|
|
@@ -4839,7 +4877,7 @@ function Qa() {
|
|
|
4839
4877
|
}
|
|
4840
4878
|
return { page: t, allData: e, addData: n, handleScroll: r };
|
|
4841
4879
|
}
|
|
4842
|
-
function
|
|
4880
|
+
function $a(t, e) {
|
|
4843
4881
|
if (typeof t.value == "number")
|
|
4844
4882
|
return { page: t.value };
|
|
4845
4883
|
const { page: n, sort: r, filter: s } = t.value;
|
|
@@ -4851,8 +4889,8 @@ function Ba(t, e) {
|
|
|
4851
4889
|
...s
|
|
4852
4890
|
};
|
|
4853
4891
|
}
|
|
4854
|
-
function
|
|
4855
|
-
const e =
|
|
4892
|
+
function Va(t) {
|
|
4893
|
+
const e = Pt(), n = Ft(), r = D({
|
|
4856
4894
|
page: n.query.page && +(n.query.page > 0) ? Number(n.query.page) : 1,
|
|
4857
4895
|
sort: { value: n.query.sort?.toString(), isAsc: n.query.dir !== "desc" },
|
|
4858
4896
|
filter: { ...t }
|
|
@@ -4870,7 +4908,7 @@ function Ha(t) {
|
|
|
4870
4908
|
filter: { ...a }
|
|
4871
4909
|
};
|
|
4872
4910
|
}
|
|
4873
|
-
return
|
|
4911
|
+
return V(
|
|
4874
4912
|
() => [r.value.page, r.value.sort.value, r.value.sort.isAsc],
|
|
4875
4913
|
() => {
|
|
4876
4914
|
e.push({
|
|
@@ -4884,30 +4922,30 @@ function Ha(t) {
|
|
|
4884
4922
|
}
|
|
4885
4923
|
), { query: r, resetQuery: s, setQueryPage: i, setQueryFilter: o };
|
|
4886
4924
|
}
|
|
4887
|
-
function
|
|
4888
|
-
const t =
|
|
4925
|
+
function Ka() {
|
|
4926
|
+
const t = Pt(), e = Ft(), n = D(Number(e.query.page || 1));
|
|
4889
4927
|
function r() {
|
|
4890
4928
|
n.value = 1;
|
|
4891
4929
|
}
|
|
4892
4930
|
function s(i) {
|
|
4893
4931
|
n.value = i;
|
|
4894
4932
|
}
|
|
4895
|
-
return
|
|
4933
|
+
return V(
|
|
4896
4934
|
() => n.value,
|
|
4897
4935
|
() => {
|
|
4898
4936
|
t.push({ path: e.path, query: { page: n.value } });
|
|
4899
4937
|
}
|
|
4900
4938
|
), { page: n, resetPage: r, setPage: s };
|
|
4901
4939
|
}
|
|
4902
|
-
function
|
|
4903
|
-
const e =
|
|
4940
|
+
function Wa(t) {
|
|
4941
|
+
const e = $(() => t.value?.data || []), n = $(() => t.value?.total || 0);
|
|
4904
4942
|
function r(s, i) {
|
|
4905
4943
|
return !n.value || s < 1 || s > n.value ? i : s;
|
|
4906
4944
|
}
|
|
4907
4945
|
return { data: e, total: n, setPaginationPage: r };
|
|
4908
4946
|
}
|
|
4909
|
-
function
|
|
4910
|
-
const t =
|
|
4947
|
+
function za() {
|
|
4948
|
+
const t = D(!1), e = D(!1), n = D();
|
|
4911
4949
|
async function r() {
|
|
4912
4950
|
n.value && (await n.value.prompt(), setTimeout(() => {
|
|
4913
4951
|
t.value = !1, n.value = void 0;
|
|
@@ -4919,9 +4957,9 @@ function Ka() {
|
|
|
4919
4957
|
function i(o) {
|
|
4920
4958
|
s(o) && (e.value = !0, t.value = !0, n.value = o);
|
|
4921
4959
|
}
|
|
4922
|
-
return
|
|
4960
|
+
return Fn(() => {
|
|
4923
4961
|
globalThis.addEventListener("beforeinstallprompt", i);
|
|
4924
|
-
}),
|
|
4962
|
+
}), xn(() => {
|
|
4925
4963
|
globalThis.removeEventListener("beforeinstallprompt", i);
|
|
4926
4964
|
}), {
|
|
4927
4965
|
installPWA: r,
|
|
@@ -4929,32 +4967,32 @@ function Ka() {
|
|
|
4929
4967
|
isPWACanBeInstalled: e
|
|
4930
4968
|
};
|
|
4931
4969
|
}
|
|
4932
|
-
function
|
|
4970
|
+
function Ja(t, e) {
|
|
4933
4971
|
const n = Ft();
|
|
4934
|
-
return { id:
|
|
4972
|
+
return { id: $(() => (e ? n.query[t]?.toString() : n.params[t]?.toString()) || "") };
|
|
4935
4973
|
}
|
|
4936
4974
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
4937
|
-
const
|
|
4975
|
+
const co = () => {
|
|
4938
4976
|
};
|
|
4939
|
-
function
|
|
4977
|
+
function lo(...t) {
|
|
4940
4978
|
if (t.length !== 1)
|
|
4941
|
-
return
|
|
4979
|
+
return Cr(...t);
|
|
4942
4980
|
const e = t[0];
|
|
4943
|
-
return typeof e == "function" ?
|
|
4981
|
+
return typeof e == "function" ? Te(Pr(() => ({ get: e, set: co }))) : D(e);
|
|
4944
4982
|
}
|
|
4945
|
-
function
|
|
4983
|
+
function gn(t, e = !1, n = "Timeout") {
|
|
4946
4984
|
return new Promise((r, s) => {
|
|
4947
4985
|
setTimeout(e ? () => s(n) : r, t);
|
|
4948
4986
|
});
|
|
4949
4987
|
}
|
|
4950
|
-
function
|
|
4988
|
+
function Ot(t, e = !1) {
|
|
4951
4989
|
function n(f, { flush: g = "sync", deep: b = !1, timeout: h, throwOnTimeout: p } = {}) {
|
|
4952
4990
|
let y = null;
|
|
4953
4991
|
const O = [new Promise((v) => {
|
|
4954
|
-
y =
|
|
4992
|
+
y = V(
|
|
4955
4993
|
t,
|
|
4956
4994
|
(w) => {
|
|
4957
|
-
f(w) !== e && (y ? y() :
|
|
4995
|
+
f(w) !== e && (y ? y() : rt(() => y?.()), v(w));
|
|
4958
4996
|
},
|
|
4959
4997
|
{
|
|
4960
4998
|
flush: g,
|
|
@@ -4964,19 +5002,19 @@ function wt(t, e = !1) {
|
|
|
4964
5002
|
);
|
|
4965
5003
|
})];
|
|
4966
5004
|
return h != null && O.push(
|
|
4967
|
-
|
|
5005
|
+
gn(h, p).then(() => pe(t)).finally(() => y?.())
|
|
4968
5006
|
), Promise.race(O);
|
|
4969
5007
|
}
|
|
4970
5008
|
function r(f, g) {
|
|
4971
|
-
if (!
|
|
5009
|
+
if (!Ct(f))
|
|
4972
5010
|
return n((w) => w === f, g);
|
|
4973
5011
|
const { flush: b = "sync", deep: h = !1, timeout: p, throwOnTimeout: y } = g ?? {};
|
|
4974
5012
|
let m = null;
|
|
4975
5013
|
const v = [new Promise((w) => {
|
|
4976
|
-
m =
|
|
5014
|
+
m = V(
|
|
4977
5015
|
[t, f],
|
|
4978
5016
|
([R, C]) => {
|
|
4979
|
-
e !== (R === C) && (m ? m() :
|
|
5017
|
+
e !== (R === C) && (m ? m() : rt(() => m?.()), w(R));
|
|
4980
5018
|
},
|
|
4981
5019
|
{
|
|
4982
5020
|
flush: b,
|
|
@@ -4986,7 +5024,7 @@ function wt(t, e = !1) {
|
|
|
4986
5024
|
);
|
|
4987
5025
|
})];
|
|
4988
5026
|
return p != null && v.push(
|
|
4989
|
-
|
|
5027
|
+
gn(p, y).then(() => pe(t)).finally(() => (m?.(), pe(t)))
|
|
4990
5028
|
), Promise.race(v);
|
|
4991
5029
|
}
|
|
4992
5030
|
function s(f) {
|
|
@@ -5004,7 +5042,7 @@ function wt(t, e = !1) {
|
|
|
5004
5042
|
function u(f, g) {
|
|
5005
5043
|
return n((b) => {
|
|
5006
5044
|
const h = Array.from(b);
|
|
5007
|
-
return h.includes(f) || h.includes(
|
|
5045
|
+
return h.includes(f) || h.includes(pe(f));
|
|
5008
5046
|
}, g);
|
|
5009
5047
|
}
|
|
5010
5048
|
function l(f) {
|
|
@@ -5014,13 +5052,13 @@ function wt(t, e = !1) {
|
|
|
5014
5052
|
let b = -1;
|
|
5015
5053
|
return n(() => (b += 1, b >= f), g);
|
|
5016
5054
|
}
|
|
5017
|
-
return Array.isArray(
|
|
5055
|
+
return Array.isArray(pe(t)) ? {
|
|
5018
5056
|
toMatch: n,
|
|
5019
5057
|
toContains: u,
|
|
5020
5058
|
changed: l,
|
|
5021
5059
|
changedTimes: c,
|
|
5022
5060
|
get not() {
|
|
5023
|
-
return
|
|
5061
|
+
return Ot(t, !e);
|
|
5024
5062
|
}
|
|
5025
5063
|
} : {
|
|
5026
5064
|
toMatch: n,
|
|
@@ -5032,37 +5070,37 @@ function wt(t, e = !1) {
|
|
|
5032
5070
|
changed: l,
|
|
5033
5071
|
changedTimes: c,
|
|
5034
5072
|
get not() {
|
|
5035
|
-
return
|
|
5073
|
+
return Ot(t, !e);
|
|
5036
5074
|
}
|
|
5037
5075
|
};
|
|
5038
5076
|
}
|
|
5039
|
-
function
|
|
5040
|
-
return
|
|
5077
|
+
function fo(t) {
|
|
5078
|
+
return Ot(t);
|
|
5041
5079
|
}
|
|
5042
|
-
function
|
|
5043
|
-
return
|
|
5080
|
+
function oe() {
|
|
5081
|
+
return oe = Object.assign ? Object.assign.bind() : function(t) {
|
|
5044
5082
|
for (var e = 1; e < arguments.length; e++) {
|
|
5045
5083
|
var n = arguments[e];
|
|
5046
5084
|
for (var r in n)
|
|
5047
5085
|
Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
|
|
5048
5086
|
}
|
|
5049
5087
|
return t;
|
|
5050
|
-
},
|
|
5088
|
+
}, oe.apply(this, arguments);
|
|
5051
5089
|
}
|
|
5052
|
-
function
|
|
5053
|
-
t.prototype = Object.create(e.prototype), t.prototype.constructor = t,
|
|
5090
|
+
function ho(t, e) {
|
|
5091
|
+
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Ae(t, e);
|
|
5054
5092
|
}
|
|
5055
|
-
function
|
|
5056
|
-
return
|
|
5093
|
+
function Et(t) {
|
|
5094
|
+
return Et = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
|
|
5057
5095
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
5058
|
-
},
|
|
5096
|
+
}, Et(t);
|
|
5059
5097
|
}
|
|
5060
|
-
function
|
|
5061
|
-
return
|
|
5098
|
+
function Ae(t, e) {
|
|
5099
|
+
return Ae = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, s) {
|
|
5062
5100
|
return r.__proto__ = s, r;
|
|
5063
|
-
},
|
|
5101
|
+
}, Ae(t, e);
|
|
5064
5102
|
}
|
|
5065
|
-
function
|
|
5103
|
+
function po() {
|
|
5066
5104
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
5067
5105
|
if (typeof Proxy == "function") return !0;
|
|
5068
5106
|
try {
|
|
@@ -5072,21 +5110,21 @@ function fo() {
|
|
|
5072
5110
|
return !1;
|
|
5073
5111
|
}
|
|
5074
5112
|
}
|
|
5075
|
-
function
|
|
5076
|
-
return
|
|
5113
|
+
function ke(t, e, n) {
|
|
5114
|
+
return po() ? ke = Reflect.construct.bind() : ke = function(s, i, o) {
|
|
5077
5115
|
var a = [null];
|
|
5078
5116
|
a.push.apply(a, i);
|
|
5079
5117
|
var u = Function.bind.apply(s, a), l = new u();
|
|
5080
|
-
return o &&
|
|
5081
|
-
},
|
|
5118
|
+
return o && Ae(l, o.prototype), l;
|
|
5119
|
+
}, ke.apply(null, arguments);
|
|
5082
5120
|
}
|
|
5083
|
-
function
|
|
5121
|
+
function yo(t) {
|
|
5084
5122
|
return Function.toString.call(t).indexOf("[native code]") !== -1;
|
|
5085
5123
|
}
|
|
5086
|
-
function
|
|
5124
|
+
function St(t) {
|
|
5087
5125
|
var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
5088
|
-
return
|
|
5089
|
-
if (r === null || !
|
|
5126
|
+
return St = function(r) {
|
|
5127
|
+
if (r === null || !yo(r)) return r;
|
|
5090
5128
|
if (typeof r != "function")
|
|
5091
5129
|
throw new TypeError("Super expression must either be null or a function");
|
|
5092
5130
|
if (typeof e < "u") {
|
|
@@ -5094,7 +5132,7 @@ function Et(t) {
|
|
|
5094
5132
|
e.set(r, s);
|
|
5095
5133
|
}
|
|
5096
5134
|
function s() {
|
|
5097
|
-
return
|
|
5135
|
+
return ke(r, arguments, Et(this).constructor);
|
|
5098
5136
|
}
|
|
5099
5137
|
return s.prototype = Object.create(r.prototype, {
|
|
5100
5138
|
constructor: {
|
|
@@ -5103,17 +5141,17 @@ function Et(t) {
|
|
|
5103
5141
|
writable: !0,
|
|
5104
5142
|
configurable: !0
|
|
5105
5143
|
}
|
|
5106
|
-
}),
|
|
5107
|
-
},
|
|
5144
|
+
}), Ae(s, r);
|
|
5145
|
+
}, St(t);
|
|
5108
5146
|
}
|
|
5109
|
-
var
|
|
5147
|
+
var mo = /%[sdj%]/g, br = function() {
|
|
5110
5148
|
};
|
|
5111
|
-
typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (
|
|
5149
|
+
typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (br = function(e, n) {
|
|
5112
5150
|
typeof console < "u" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING > "u" && n.every(function(r) {
|
|
5113
5151
|
return typeof r == "string";
|
|
5114
5152
|
}) && console.warn(e, n);
|
|
5115
5153
|
});
|
|
5116
|
-
function
|
|
5154
|
+
function Rt(t) {
|
|
5117
5155
|
if (!t || !t.length) return null;
|
|
5118
5156
|
var e = {};
|
|
5119
5157
|
return t.forEach(function(n) {
|
|
@@ -5121,14 +5159,14 @@ function St(t) {
|
|
|
5121
5159
|
e[r] = e[r] || [], e[r].push(n);
|
|
5122
5160
|
}), e;
|
|
5123
5161
|
}
|
|
5124
|
-
function
|
|
5162
|
+
function Q(t) {
|
|
5125
5163
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++)
|
|
5126
5164
|
n[r - 1] = arguments[r];
|
|
5127
5165
|
var s = 0, i = n.length;
|
|
5128
5166
|
if (typeof t == "function")
|
|
5129
5167
|
return t.apply(null, n);
|
|
5130
5168
|
if (typeof t == "string") {
|
|
5131
|
-
var o = t.replace(
|
|
5169
|
+
var o = t.replace(mo, function(a) {
|
|
5132
5170
|
if (a === "%%")
|
|
5133
5171
|
return "%";
|
|
5134
5172
|
if (s >= i)
|
|
@@ -5153,13 +5191,13 @@ function j(t) {
|
|
|
5153
5191
|
}
|
|
5154
5192
|
return t;
|
|
5155
5193
|
}
|
|
5156
|
-
function
|
|
5194
|
+
function go(t) {
|
|
5157
5195
|
return t === "string" || t === "url" || t === "hex" || t === "email" || t === "date" || t === "pattern";
|
|
5158
5196
|
}
|
|
5159
5197
|
function x(t, e) {
|
|
5160
|
-
return !!(t == null || e === "array" && Array.isArray(t) && !t.length ||
|
|
5198
|
+
return !!(t == null || e === "array" && Array.isArray(t) && !t.length || go(e) && typeof t == "string" && !t);
|
|
5161
5199
|
}
|
|
5162
|
-
function
|
|
5200
|
+
function bo(t, e, n) {
|
|
5163
5201
|
var r = [], s = 0, i = t.length;
|
|
5164
5202
|
function o(a) {
|
|
5165
5203
|
r.push.apply(r, a || []), s++, s === i && n(r);
|
|
@@ -5168,7 +5206,7 @@ function mo(t, e, n) {
|
|
|
5168
5206
|
e(a, o);
|
|
5169
5207
|
});
|
|
5170
5208
|
}
|
|
5171
|
-
function
|
|
5209
|
+
function bn(t, e, n) {
|
|
5172
5210
|
var r = 0, s = t.length;
|
|
5173
5211
|
function i(o) {
|
|
5174
5212
|
if (o && o.length) {
|
|
@@ -5180,27 +5218,27 @@ function mn(t, e, n) {
|
|
|
5180
5218
|
}
|
|
5181
5219
|
i([]);
|
|
5182
5220
|
}
|
|
5183
|
-
function
|
|
5221
|
+
function vo(t) {
|
|
5184
5222
|
var e = [];
|
|
5185
5223
|
return Object.keys(t).forEach(function(n) {
|
|
5186
5224
|
e.push.apply(e, t[n] || []);
|
|
5187
5225
|
}), e;
|
|
5188
5226
|
}
|
|
5189
|
-
var
|
|
5190
|
-
|
|
5227
|
+
var vn = /* @__PURE__ */ (function(t) {
|
|
5228
|
+
ho(e, t);
|
|
5191
5229
|
function e(n, r) {
|
|
5192
5230
|
var s;
|
|
5193
5231
|
return s = t.call(this, "Async Validation Error") || this, s.errors = n, s.fields = r, s;
|
|
5194
5232
|
}
|
|
5195
5233
|
return e;
|
|
5196
|
-
})(/* @__PURE__ */
|
|
5197
|
-
function
|
|
5234
|
+
})(/* @__PURE__ */ St(Error));
|
|
5235
|
+
function wo(t, e, n, r, s) {
|
|
5198
5236
|
if (e.first) {
|
|
5199
5237
|
var i = new Promise(function(g, b) {
|
|
5200
5238
|
var h = function(m) {
|
|
5201
|
-
return r(m), m.length ? b(new
|
|
5202
|
-
}, p =
|
|
5203
|
-
|
|
5239
|
+
return r(m), m.length ? b(new vn(m, Rt(m))) : g(s);
|
|
5240
|
+
}, p = vo(t);
|
|
5241
|
+
bn(p, n, h);
|
|
5204
5242
|
});
|
|
5205
5243
|
return i.catch(function(g) {
|
|
5206
5244
|
return g;
|
|
@@ -5209,21 +5247,21 @@ function bo(t, e, n, r, s) {
|
|
|
5209
5247
|
var o = e.firstFields === !0 ? Object.keys(t) : e.firstFields || [], a = Object.keys(t), u = a.length, l = 0, c = [], f = new Promise(function(g, b) {
|
|
5210
5248
|
var h = function(y) {
|
|
5211
5249
|
if (c.push.apply(c, y), l++, l === u)
|
|
5212
|
-
return r(c), c.length ? b(new
|
|
5250
|
+
return r(c), c.length ? b(new vn(c, Rt(c))) : g(s);
|
|
5213
5251
|
};
|
|
5214
5252
|
a.length || (r(c), g(s)), a.forEach(function(p) {
|
|
5215
5253
|
var y = t[p];
|
|
5216
|
-
o.indexOf(p) !== -1 ?
|
|
5254
|
+
o.indexOf(p) !== -1 ? bn(y, n, h) : bo(y, n, h);
|
|
5217
5255
|
});
|
|
5218
5256
|
});
|
|
5219
5257
|
return f.catch(function(g) {
|
|
5220
5258
|
return g;
|
|
5221
5259
|
}), f;
|
|
5222
5260
|
}
|
|
5223
|
-
function
|
|
5261
|
+
function Oo(t) {
|
|
5224
5262
|
return !!(t && t.message !== void 0);
|
|
5225
5263
|
}
|
|
5226
|
-
function
|
|
5264
|
+
function Eo(t, e) {
|
|
5227
5265
|
for (var n = t, r = 0; r < e.length; r++) {
|
|
5228
5266
|
if (n == null)
|
|
5229
5267
|
return n;
|
|
@@ -5231,33 +5269,33 @@ function wo(t, e) {
|
|
|
5231
5269
|
}
|
|
5232
5270
|
return n;
|
|
5233
5271
|
}
|
|
5234
|
-
function
|
|
5272
|
+
function wn(t, e) {
|
|
5235
5273
|
return function(n) {
|
|
5236
5274
|
var r;
|
|
5237
|
-
return t.fullFields ? r =
|
|
5275
|
+
return t.fullFields ? r = Eo(e, t.fullFields) : r = e[n.field || t.fullField], Oo(n) ? (n.field = n.field || t.fullField, n.fieldValue = r, n) : {
|
|
5238
5276
|
message: typeof n == "function" ? n() : n,
|
|
5239
5277
|
fieldValue: r,
|
|
5240
5278
|
field: n.field || t.fullField
|
|
5241
5279
|
};
|
|
5242
5280
|
};
|
|
5243
5281
|
}
|
|
5244
|
-
function
|
|
5282
|
+
function On(t, e) {
|
|
5245
5283
|
if (e) {
|
|
5246
5284
|
for (var n in e)
|
|
5247
5285
|
if (e.hasOwnProperty(n)) {
|
|
5248
5286
|
var r = e[n];
|
|
5249
|
-
typeof r == "object" && typeof t[n] == "object" ? t[n] =
|
|
5287
|
+
typeof r == "object" && typeof t[n] == "object" ? t[n] = oe({}, t[n], r) : t[n] = r;
|
|
5250
5288
|
}
|
|
5251
5289
|
}
|
|
5252
5290
|
return t;
|
|
5253
5291
|
}
|
|
5254
|
-
var
|
|
5255
|
-
e.required && (!r.hasOwnProperty(e.field) || x(n, o || e.type)) && s.push(
|
|
5256
|
-
},
|
|
5257
|
-
(/^\s+$/.test(n) || n === "") && s.push(
|
|
5258
|
-
},
|
|
5259
|
-
if (
|
|
5260
|
-
return
|
|
5292
|
+
var vr = function(e, n, r, s, i, o) {
|
|
5293
|
+
e.required && (!r.hasOwnProperty(e.field) || x(n, o || e.type)) && s.push(Q(i.messages.required, e.fullField));
|
|
5294
|
+
}, So = function(e, n, r, s, i) {
|
|
5295
|
+
(/^\s+$/.test(n) || n === "") && s.push(Q(i.messages.whitespace, e.fullField));
|
|
5296
|
+
}, _e, Ro = (function() {
|
|
5297
|
+
if (_e)
|
|
5298
|
+
return _e;
|
|
5261
5299
|
var t = "[a-fA-F\\d:]", e = function(w) {
|
|
5262
5300
|
return w && w.includeBoundaries ? "(?:(?<=\\s|^)(?=" + t + ")|(?<=" + t + ")(?=\\s|$))" : "";
|
|
5263
5301
|
}, n = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}", r = "[a-fA-F\\d]{1,4}", s = (`
|
|
@@ -5280,8 +5318,8 @@ var br = function(e, n, r, s, i, o) {
|
|
|
5280
5318
|
return v && v.exact ? a : new RegExp("" + e(v) + s + e(v), "g");
|
|
5281
5319
|
};
|
|
5282
5320
|
var l = "(?:(?:[a-z]+:)?//)", c = "(?:\\S+(?::\\S*)?@)?", f = u.v4().source, g = u.v6().source, b = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", h = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", p = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", y = "(?::\\d{2,5})?", m = '(?:[/?#][^\\s"]*)?', O = "(?:" + l + "|www\\.)" + c + "(?:localhost|" + f + "|" + g + "|" + b + h + p + ")" + y + m;
|
|
5283
|
-
return
|
|
5284
|
-
}),
|
|
5321
|
+
return _e = new RegExp("(?:^" + O + "$)", "i"), _e;
|
|
5322
|
+
}), En = {
|
|
5285
5323
|
// http://emailregex.com/
|
|
5286
5324
|
email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
|
|
5287
5325
|
// url: new RegExp(
|
|
@@ -5289,12 +5327,12 @@ var br = function(e, n, r, s, i, o) {
|
|
|
5289
5327
|
// 'i',
|
|
5290
5328
|
// ),
|
|
5291
5329
|
hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
|
|
5292
|
-
},
|
|
5330
|
+
}, Ee = {
|
|
5293
5331
|
integer: function(e) {
|
|
5294
|
-
return
|
|
5332
|
+
return Ee.number(e) && parseInt(e, 10) === e;
|
|
5295
5333
|
},
|
|
5296
5334
|
float: function(e) {
|
|
5297
|
-
return
|
|
5335
|
+
return Ee.number(e) && !Ee.integer(e);
|
|
5298
5336
|
},
|
|
5299
5337
|
array: function(e) {
|
|
5300
5338
|
return Array.isArray(e);
|
|
@@ -5315,51 +5353,51 @@ var br = function(e, n, r, s, i, o) {
|
|
|
5315
5353
|
return isNaN(e) ? !1 : typeof e == "number";
|
|
5316
5354
|
},
|
|
5317
5355
|
object: function(e) {
|
|
5318
|
-
return typeof e == "object" && !
|
|
5356
|
+
return typeof e == "object" && !Ee.array(e);
|
|
5319
5357
|
},
|
|
5320
5358
|
method: function(e) {
|
|
5321
5359
|
return typeof e == "function";
|
|
5322
5360
|
},
|
|
5323
5361
|
email: function(e) {
|
|
5324
|
-
return typeof e == "string" && e.length <= 320 && !!e.match(
|
|
5362
|
+
return typeof e == "string" && e.length <= 320 && !!e.match(En.email);
|
|
5325
5363
|
},
|
|
5326
5364
|
url: function(e) {
|
|
5327
|
-
return typeof e == "string" && e.length <= 2048 && !!e.match(
|
|
5365
|
+
return typeof e == "string" && e.length <= 2048 && !!e.match(Ro());
|
|
5328
5366
|
},
|
|
5329
5367
|
hex: function(e) {
|
|
5330
|
-
return typeof e == "string" && !!e.match(
|
|
5368
|
+
return typeof e == "string" && !!e.match(En.hex);
|
|
5331
5369
|
}
|
|
5332
|
-
},
|
|
5370
|
+
}, Ao = function(e, n, r, s, i) {
|
|
5333
5371
|
if (e.required && n === void 0) {
|
|
5334
|
-
|
|
5372
|
+
vr(e, n, r, s, i);
|
|
5335
5373
|
return;
|
|
5336
5374
|
}
|
|
5337
5375
|
var o = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], a = e.type;
|
|
5338
|
-
o.indexOf(a) > -1 ?
|
|
5339
|
-
},
|
|
5376
|
+
o.indexOf(a) > -1 ? Ee[a](n) || s.push(Q(i.messages.types[a], e.fullField, e.type)) : a && typeof n !== e.type && s.push(Q(i.messages.types[a], e.fullField, e.type));
|
|
5377
|
+
}, To = function(e, n, r, s, i) {
|
|
5340
5378
|
var o = typeof e.len == "number", a = typeof e.min == "number", u = typeof e.max == "number", l = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, c = n, f = null, g = typeof n == "number", b = typeof n == "string", h = Array.isArray(n);
|
|
5341
5379
|
if (g ? f = "number" : b ? f = "string" : h && (f = "array"), !f)
|
|
5342
5380
|
return !1;
|
|
5343
|
-
h && (c = n.length), b && (c = n.replace(l, "_").length), o ? c !== e.len && s.push(
|
|
5344
|
-
},
|
|
5345
|
-
e[
|
|
5346
|
-
},
|
|
5381
|
+
h && (c = n.length), b && (c = n.replace(l, "_").length), o ? c !== e.len && s.push(Q(i.messages[f].len, e.fullField, e.len)) : a && !u && c < e.min ? s.push(Q(i.messages[f].min, e.fullField, e.min)) : u && !a && c > e.max ? s.push(Q(i.messages[f].max, e.fullField, e.max)) : a && u && (c < e.min || c > e.max) && s.push(Q(i.messages[f].range, e.fullField, e.min, e.max));
|
|
5382
|
+
}, he = "enum", Co = function(e, n, r, s, i) {
|
|
5383
|
+
e[he] = Array.isArray(e[he]) ? e[he] : [], e[he].indexOf(n) === -1 && s.push(Q(i.messages[he], e.fullField, e[he].join(", ")));
|
|
5384
|
+
}, Po = function(e, n, r, s, i) {
|
|
5347
5385
|
if (e.pattern) {
|
|
5348
5386
|
if (e.pattern instanceof RegExp)
|
|
5349
|
-
e.pattern.lastIndex = 0, e.pattern.test(n) || s.push(
|
|
5387
|
+
e.pattern.lastIndex = 0, e.pattern.test(n) || s.push(Q(i.messages.pattern.mismatch, e.fullField, n, e.pattern));
|
|
5350
5388
|
else if (typeof e.pattern == "string") {
|
|
5351
5389
|
var o = new RegExp(e.pattern);
|
|
5352
|
-
o.test(n) || s.push(
|
|
5390
|
+
o.test(n) || s.push(Q(i.messages.pattern.mismatch, e.fullField, n, e.pattern));
|
|
5353
5391
|
}
|
|
5354
5392
|
}
|
|
5355
5393
|
}, A = {
|
|
5356
|
-
required:
|
|
5357
|
-
whitespace:
|
|
5358
|
-
type:
|
|
5359
|
-
range:
|
|
5360
|
-
enum:
|
|
5361
|
-
pattern:
|
|
5362
|
-
},
|
|
5394
|
+
required: vr,
|
|
5395
|
+
whitespace: So,
|
|
5396
|
+
type: Ao,
|
|
5397
|
+
range: To,
|
|
5398
|
+
enum: Co,
|
|
5399
|
+
pattern: Po
|
|
5400
|
+
}, Fo = function(e, n, r, s, i) {
|
|
5363
5401
|
var o = [], a = e.required || !e.required && s.hasOwnProperty(e.field);
|
|
5364
5402
|
if (a) {
|
|
5365
5403
|
if (x(n, "string") && !e.required)
|
|
@@ -5367,7 +5405,7 @@ var br = function(e, n, r, s, i, o) {
|
|
|
5367
5405
|
A.required(e, n, s, o, i, "string"), x(n, "string") || (A.type(e, n, s, o, i), A.range(e, n, s, o, i), A.pattern(e, n, s, o, i), e.whitespace === !0 && A.whitespace(e, n, s, o, i));
|
|
5368
5406
|
}
|
|
5369
5407
|
r(o);
|
|
5370
|
-
},
|
|
5408
|
+
}, xo = function(e, n, r, s, i) {
|
|
5371
5409
|
var o = [], a = e.required || !e.required && s.hasOwnProperty(e.field);
|
|
5372
5410
|
if (a) {
|
|
5373
5411
|
if (x(n) && !e.required)
|
|
@@ -5375,7 +5413,7 @@ var br = function(e, n, r, s, i, o) {
|
|
|
5375
5413
|
A.required(e, n, s, o, i), n !== void 0 && A.type(e, n, s, o, i);
|
|
5376
5414
|
}
|
|
5377
5415
|
r(o);
|
|
5378
|
-
},
|
|
5416
|
+
}, Do = function(e, n, r, s, i) {
|
|
5379
5417
|
var o = [], a = e.required || !e.required && s.hasOwnProperty(e.field);
|
|
5380
5418
|
if (a) {
|
|
5381
5419
|
if (n === "" && (n = void 0), x(n) && !e.required)
|
|
@@ -5383,7 +5421,7 @@ var br = function(e, n, r, s, i, o) {
|
|
|
5383
5421
|
A.required(e, n, s, o, i), n !== void 0 && (A.type(e, n, s, o, i), A.range(e, n, s, o, i));
|
|
5384
5422
|
}
|
|
5385
5423
|
r(o);
|
|
5386
|
-
},
|
|
5424
|
+
}, qo = function(e, n, r, s, i) {
|
|
5387
5425
|
var o = [], a = e.required || !e.required && s.hasOwnProperty(e.field);
|
|
5388
5426
|
if (a) {
|
|
5389
5427
|
if (x(n) && !e.required)
|
|
@@ -5391,7 +5429,7 @@ var br = function(e, n, r, s, i, o) {
|
|
|
5391
5429
|
A.required(e, n, s, o, i), n !== void 0 && A.type(e, n, s, o, i);
|
|
5392
5430
|
}
|
|
5393
5431
|
r(o);
|
|
5394
|
-
},
|
|
5432
|
+
}, No = function(e, n, r, s, i) {
|
|
5395
5433
|
var o = [], a = e.required || !e.required && s.hasOwnProperty(e.field);
|
|
5396
5434
|
if (a) {
|
|
5397
5435
|
if (x(n) && !e.required)
|
|
@@ -5399,7 +5437,7 @@ var br = function(e, n, r, s, i, o) {
|
|
|
5399
5437
|
A.required(e, n, s, o, i), x(n) || A.type(e, n, s, o, i);
|
|
5400
5438
|
}
|
|
5401
5439
|
r(o);
|
|
5402
|
-
},
|
|
5440
|
+
}, _o = function(e, n, r, s, i) {
|
|
5403
5441
|
var o = [], a = e.required || !e.required && s.hasOwnProperty(e.field);
|
|
5404
5442
|
if (a) {
|
|
5405
5443
|
if (x(n) && !e.required)
|
|
@@ -5407,7 +5445,7 @@ var br = function(e, n, r, s, i, o) {
|
|
|
5407
5445
|
A.required(e, n, s, o, i), n !== void 0 && (A.type(e, n, s, o, i), A.range(e, n, s, o, i));
|
|
5408
5446
|
}
|
|
5409
5447
|
r(o);
|
|
5410
|
-
},
|
|
5448
|
+
}, Io = function(e, n, r, s, i) {
|
|
5411
5449
|
var o = [], a = e.required || !e.required && s.hasOwnProperty(e.field);
|
|
5412
5450
|
if (a) {
|
|
5413
5451
|
if (x(n) && !e.required)
|
|
@@ -5415,7 +5453,7 @@ var br = function(e, n, r, s, i, o) {
|
|
|
5415
5453
|
A.required(e, n, s, o, i), n !== void 0 && (A.type(e, n, s, o, i), A.range(e, n, s, o, i));
|
|
5416
5454
|
}
|
|
5417
5455
|
r(o);
|
|
5418
|
-
},
|
|
5456
|
+
}, Uo = function(e, n, r, s, i) {
|
|
5419
5457
|
var o = [], a = e.required || !e.required && s.hasOwnProperty(e.field);
|
|
5420
5458
|
if (a) {
|
|
5421
5459
|
if (n == null && !e.required)
|
|
@@ -5423,7 +5461,7 @@ var br = function(e, n, r, s, i, o) {
|
|
|
5423
5461
|
A.required(e, n, s, o, i, "array"), n != null && (A.type(e, n, s, o, i), A.range(e, n, s, o, i));
|
|
5424
5462
|
}
|
|
5425
5463
|
r(o);
|
|
5426
|
-
},
|
|
5464
|
+
}, Mo = function(e, n, r, s, i) {
|
|
5427
5465
|
var o = [], a = e.required || !e.required && s.hasOwnProperty(e.field);
|
|
5428
5466
|
if (a) {
|
|
5429
5467
|
if (x(n) && !e.required)
|
|
@@ -5431,15 +5469,15 @@ var br = function(e, n, r, s, i, o) {
|
|
|
5431
5469
|
A.required(e, n, s, o, i), n !== void 0 && A.type(e, n, s, o, i);
|
|
5432
5470
|
}
|
|
5433
5471
|
r(o);
|
|
5434
|
-
},
|
|
5472
|
+
}, ko = "enum", Lo = function(e, n, r, s, i) {
|
|
5435
5473
|
var o = [], a = e.required || !e.required && s.hasOwnProperty(e.field);
|
|
5436
5474
|
if (a) {
|
|
5437
5475
|
if (x(n) && !e.required)
|
|
5438
5476
|
return r();
|
|
5439
|
-
A.required(e, n, s, o, i), n !== void 0 && A[
|
|
5477
|
+
A.required(e, n, s, o, i), n !== void 0 && A[ko](e, n, s, o, i);
|
|
5440
5478
|
}
|
|
5441
5479
|
r(o);
|
|
5442
|
-
},
|
|
5480
|
+
}, Qo = function(e, n, r, s, i) {
|
|
5443
5481
|
var o = [], a = e.required || !e.required && s.hasOwnProperty(e.field);
|
|
5444
5482
|
if (a) {
|
|
5445
5483
|
if (x(n, "string") && !e.required)
|
|
@@ -5447,7 +5485,7 @@ var br = function(e, n, r, s, i, o) {
|
|
|
5447
5485
|
A.required(e, n, s, o, i), x(n, "string") || A.pattern(e, n, s, o, i);
|
|
5448
5486
|
}
|
|
5449
5487
|
r(o);
|
|
5450
|
-
},
|
|
5488
|
+
}, jo = function(e, n, r, s, i) {
|
|
5451
5489
|
var o = [], a = e.required || !e.required && s.hasOwnProperty(e.field);
|
|
5452
5490
|
if (a) {
|
|
5453
5491
|
if (x(n, "date") && !e.required)
|
|
@@ -5458,10 +5496,10 @@ var br = function(e, n, r, s, i, o) {
|
|
|
5458
5496
|
}
|
|
5459
5497
|
}
|
|
5460
5498
|
r(o);
|
|
5461
|
-
},
|
|
5499
|
+
}, Bo = function(e, n, r, s, i) {
|
|
5462
5500
|
var o = [], a = Array.isArray(n) ? "array" : typeof n;
|
|
5463
5501
|
A.required(e, n, s, o, i, a), r(o);
|
|
5464
|
-
},
|
|
5502
|
+
}, nt = function(e, n, r, s, i) {
|
|
5465
5503
|
var o = e.type, a = [], u = e.required || !e.required && s.hasOwnProperty(e.field);
|
|
5466
5504
|
if (u) {
|
|
5467
5505
|
if (x(n, o) && !e.required)
|
|
@@ -5469,7 +5507,7 @@ var br = function(e, n, r, s, i, o) {
|
|
|
5469
5507
|
A.required(e, n, s, a, i, o), x(n, o) || A.type(e, n, s, a, i);
|
|
5470
5508
|
}
|
|
5471
5509
|
r(a);
|
|
5472
|
-
},
|
|
5510
|
+
}, Ho = function(e, n, r, s, i) {
|
|
5473
5511
|
var o = [], a = e.required || !e.required && s.hasOwnProperty(e.field);
|
|
5474
5512
|
if (a) {
|
|
5475
5513
|
if (x(n) && !e.required)
|
|
@@ -5477,26 +5515,26 @@ var br = function(e, n, r, s, i, o) {
|
|
|
5477
5515
|
A.required(e, n, s, o, i);
|
|
5478
5516
|
}
|
|
5479
5517
|
r(o);
|
|
5480
|
-
},
|
|
5481
|
-
string:
|
|
5482
|
-
method:
|
|
5483
|
-
number:
|
|
5484
|
-
boolean:
|
|
5485
|
-
regexp:
|
|
5486
|
-
integer:
|
|
5487
|
-
float:
|
|
5488
|
-
array:
|
|
5489
|
-
object:
|
|
5490
|
-
enum:
|
|
5491
|
-
pattern:
|
|
5492
|
-
date:
|
|
5493
|
-
url:
|
|
5494
|
-
hex:
|
|
5495
|
-
email:
|
|
5496
|
-
required:
|
|
5497
|
-
any:
|
|
5518
|
+
}, Se = {
|
|
5519
|
+
string: Fo,
|
|
5520
|
+
method: xo,
|
|
5521
|
+
number: Do,
|
|
5522
|
+
boolean: qo,
|
|
5523
|
+
regexp: No,
|
|
5524
|
+
integer: _o,
|
|
5525
|
+
float: Io,
|
|
5526
|
+
array: Uo,
|
|
5527
|
+
object: Mo,
|
|
5528
|
+
enum: Lo,
|
|
5529
|
+
pattern: Qo,
|
|
5530
|
+
date: jo,
|
|
5531
|
+
url: nt,
|
|
5532
|
+
hex: nt,
|
|
5533
|
+
email: nt,
|
|
5534
|
+
required: Bo,
|
|
5535
|
+
any: Ho
|
|
5498
5536
|
};
|
|
5499
|
-
function
|
|
5537
|
+
function At() {
|
|
5500
5538
|
return {
|
|
5501
5539
|
default: "Validation error on field %s",
|
|
5502
5540
|
required: "%s is required",
|
|
@@ -5549,9 +5587,9 @@ function Rt() {
|
|
|
5549
5587
|
}
|
|
5550
5588
|
};
|
|
5551
5589
|
}
|
|
5552
|
-
var
|
|
5590
|
+
var Tt = At(), ge = /* @__PURE__ */ (function() {
|
|
5553
5591
|
function t(n) {
|
|
5554
|
-
this.rules = null, this._messages =
|
|
5592
|
+
this.rules = null, this._messages = Tt, this.define(n);
|
|
5555
5593
|
}
|
|
5556
5594
|
var e = t.prototype;
|
|
5557
5595
|
return e.define = function(r) {
|
|
@@ -5565,7 +5603,7 @@ var At = Rt(), ye = /* @__PURE__ */ (function() {
|
|
|
5565
5603
|
s.rules[i] = Array.isArray(o) ? o : [o];
|
|
5566
5604
|
});
|
|
5567
5605
|
}, e.messages = function(r) {
|
|
5568
|
-
return r && (this._messages =
|
|
5606
|
+
return r && (this._messages = On(At(), r)), this._messages;
|
|
5569
5607
|
}, e.validate = function(r, s, i) {
|
|
5570
5608
|
var o = this;
|
|
5571
5609
|
s === void 0 && (s = {}), i === void 0 && (i = function() {
|
|
@@ -5584,11 +5622,11 @@ var At = Rt(), ye = /* @__PURE__ */ (function() {
|
|
|
5584
5622
|
}
|
|
5585
5623
|
for (var v = 0; v < p.length; v++)
|
|
5586
5624
|
O(p[v]);
|
|
5587
|
-
y.length ? (m =
|
|
5625
|
+
y.length ? (m = Rt(y), l(y, m)) : l(null, a);
|
|
5588
5626
|
}
|
|
5589
5627
|
if (u.messages) {
|
|
5590
5628
|
var f = this.messages();
|
|
5591
|
-
f ===
|
|
5629
|
+
f === Tt && (f = At()), On(f, u.messages), u.messages = f;
|
|
5592
5630
|
} else
|
|
5593
5631
|
u.messages = this.messages();
|
|
5594
5632
|
var g = {}, b = u.keys || Object.keys(this.rules);
|
|
@@ -5596,9 +5634,9 @@ var At = Rt(), ye = /* @__PURE__ */ (function() {
|
|
|
5596
5634
|
var y = o.rules[p], m = a[p];
|
|
5597
5635
|
y.forEach(function(O) {
|
|
5598
5636
|
var v = O;
|
|
5599
|
-
typeof v.transform == "function" && (a === r && (a =
|
|
5637
|
+
typeof v.transform == "function" && (a === r && (a = oe({}, a)), m = a[p] = v.transform(m)), typeof v == "function" ? v = {
|
|
5600
5638
|
validator: v
|
|
5601
|
-
} : v =
|
|
5639
|
+
} : v = oe({}, v), v.validator = o.getValidationMethod(v), v.validator && (v.field = p, v.fullField = v.fullField || p, v.type = o.getType(v), g[p] = g[p] || [], g[p].push({
|
|
5602
5640
|
rule: v,
|
|
5603
5641
|
value: m,
|
|
5604
5642
|
source: a,
|
|
@@ -5607,11 +5645,11 @@ var At = Rt(), ye = /* @__PURE__ */ (function() {
|
|
|
5607
5645
|
});
|
|
5608
5646
|
});
|
|
5609
5647
|
var h = {};
|
|
5610
|
-
return
|
|
5648
|
+
return wo(g, u, function(p, y) {
|
|
5611
5649
|
var m = p.rule, O = (m.type === "object" || m.type === "array") && (typeof m.fields == "object" || typeof m.defaultField == "object");
|
|
5612
5650
|
O = O && (m.required || !m.required && p.value), m.field = p.field;
|
|
5613
5651
|
function v(C, T) {
|
|
5614
|
-
return
|
|
5652
|
+
return oe({}, T, {
|
|
5615
5653
|
fullField: m.fullField + "." + C,
|
|
5616
5654
|
fullFields: m.fullFields ? [].concat(m.fullFields, [C]) : [C]
|
|
5617
5655
|
});
|
|
@@ -5620,27 +5658,27 @@ var At = Rt(), ye = /* @__PURE__ */ (function() {
|
|
|
5620
5658
|
C === void 0 && (C = []);
|
|
5621
5659
|
var T = Array.isArray(C) ? C : [C];
|
|
5622
5660
|
!u.suppressWarning && T.length && t.warning("async-validator:", T), T.length && m.message !== void 0 && (T = [].concat(m.message));
|
|
5623
|
-
var
|
|
5624
|
-
if (u.first &&
|
|
5625
|
-
return h[m.field] = 1, y(
|
|
5661
|
+
var P = T.map(wn(m, a));
|
|
5662
|
+
if (u.first && P.length)
|
|
5663
|
+
return h[m.field] = 1, y(P);
|
|
5626
5664
|
if (!O)
|
|
5627
|
-
y(
|
|
5665
|
+
y(P);
|
|
5628
5666
|
else {
|
|
5629
5667
|
if (m.required && !p.value)
|
|
5630
|
-
return m.message !== void 0 ?
|
|
5668
|
+
return m.message !== void 0 ? P = [].concat(m.message).map(wn(m, a)) : u.error && (P = [u.error(m, Q(u.messages.required, m.field))]), y(P);
|
|
5631
5669
|
var I = {};
|
|
5632
5670
|
m.defaultField && Object.keys(p.value).map(function(U) {
|
|
5633
5671
|
I[U] = m.defaultField;
|
|
5634
|
-
}), I =
|
|
5635
|
-
var
|
|
5672
|
+
}), I = oe({}, I, p.rule.fields);
|
|
5673
|
+
var j = {};
|
|
5636
5674
|
Object.keys(I).forEach(function(U) {
|
|
5637
|
-
var
|
|
5638
|
-
|
|
5675
|
+
var N = I[U], G = Array.isArray(N) ? N : [N];
|
|
5676
|
+
j[U] = G.map(v.bind(null, U));
|
|
5639
5677
|
});
|
|
5640
|
-
var
|
|
5641
|
-
|
|
5642
|
-
var
|
|
5643
|
-
|
|
5678
|
+
var W = new t(j);
|
|
5679
|
+
W.messages(u.messages), p.rule.options && (p.rule.options.messages = u.messages, p.rule.options.error = u.error), W.validate(p.value, p.rule.options || u, function(U) {
|
|
5680
|
+
var N = [];
|
|
5681
|
+
P && P.length && N.push.apply(N, P), U && U.length && N.push.apply(N, U), y(N.length ? N : null);
|
|
5644
5682
|
});
|
|
5645
5683
|
}
|
|
5646
5684
|
}
|
|
@@ -5666,37 +5704,37 @@ var At = Rt(), ye = /* @__PURE__ */ (function() {
|
|
|
5666
5704
|
c(p);
|
|
5667
5705
|
}, a);
|
|
5668
5706
|
}, e.getType = function(r) {
|
|
5669
|
-
if (r.type === void 0 && r.pattern instanceof RegExp && (r.type = "pattern"), typeof r.validator != "function" && r.type && !
|
|
5670
|
-
throw new Error(
|
|
5707
|
+
if (r.type === void 0 && r.pattern instanceof RegExp && (r.type = "pattern"), typeof r.validator != "function" && r.type && !Se.hasOwnProperty(r.type))
|
|
5708
|
+
throw new Error(Q("Unknown rule type %s", r.type));
|
|
5671
5709
|
return r.type || "string";
|
|
5672
5710
|
}, e.getValidationMethod = function(r) {
|
|
5673
5711
|
if (typeof r.validator == "function")
|
|
5674
5712
|
return r.validator;
|
|
5675
5713
|
var s = Object.keys(r), i = s.indexOf("message");
|
|
5676
|
-
return i !== -1 && s.splice(i, 1), s.length === 1 && s[0] === "required" ?
|
|
5714
|
+
return i !== -1 && s.splice(i, 1), s.length === 1 && s[0] === "required" ? Se.required : Se[this.getType(r)] || void 0;
|
|
5677
5715
|
}, t;
|
|
5678
5716
|
})();
|
|
5679
|
-
|
|
5717
|
+
ge.register = function(e, n) {
|
|
5680
5718
|
if (typeof n != "function")
|
|
5681
5719
|
throw new Error("Cannot register a validator by type, validator is not a function");
|
|
5682
|
-
|
|
5720
|
+
Se[e] = n;
|
|
5683
5721
|
};
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
const
|
|
5688
|
-
function
|
|
5722
|
+
ge.warning = br;
|
|
5723
|
+
ge.messages = Tt;
|
|
5724
|
+
ge.validators = Se;
|
|
5725
|
+
const $o = ge.default || ge;
|
|
5726
|
+
function Vo(t, e, n = {}) {
|
|
5689
5727
|
const {
|
|
5690
5728
|
validateOption: r = {},
|
|
5691
5729
|
immediate: s = !0,
|
|
5692
5730
|
manual: i = !1
|
|
5693
|
-
} = n, o =
|
|
5731
|
+
} = n, o = lo(t), a = Je(null), u = Je(!0), l = Je(!s || i), c = $(() => {
|
|
5694
5732
|
var y;
|
|
5695
5733
|
return ((y = a.value) == null ? void 0 : y.errors) || [];
|
|
5696
|
-
}), f =
|
|
5734
|
+
}), f = $(() => {
|
|
5697
5735
|
var y;
|
|
5698
5736
|
return ((y = a.value) == null ? void 0 : y.fields) || {};
|
|
5699
|
-
}), g =
|
|
5737
|
+
}), g = $(() => new $o(pe(e))), b = async () => {
|
|
5700
5738
|
u.value = !1, l.value = !1;
|
|
5701
5739
|
try {
|
|
5702
5740
|
await g.value.validate(o.value, r), l.value = !0, a.value = null;
|
|
@@ -5712,7 +5750,7 @@ function Ho(t, e, n = {}) {
|
|
|
5712
5750
|
errorFields: f.value
|
|
5713
5751
|
};
|
|
5714
5752
|
};
|
|
5715
|
-
i ||
|
|
5753
|
+
i || V(
|
|
5716
5754
|
[o, g],
|
|
5717
5755
|
() => b(),
|
|
5718
5756
|
{ immediate: s, deep: !0 }
|
|
@@ -5727,7 +5765,7 @@ function Ho(t, e, n = {}) {
|
|
|
5727
5765
|
};
|
|
5728
5766
|
function p() {
|
|
5729
5767
|
return new Promise((y, m) => {
|
|
5730
|
-
|
|
5768
|
+
fo(u).toBe(!0).then(() => y(h)).catch((O) => m(O));
|
|
5731
5769
|
});
|
|
5732
5770
|
}
|
|
5733
5771
|
return {
|
|
@@ -5737,60 +5775,60 @@ function Ho(t, e, n = {}) {
|
|
|
5737
5775
|
}
|
|
5738
5776
|
};
|
|
5739
5777
|
}
|
|
5740
|
-
function
|
|
5741
|
-
const r =
|
|
5778
|
+
function Ga(t, e, n = "ru") {
|
|
5779
|
+
const r = $(() => Object.entries(e).reduce((f, [g, b]) => (f[g] = Array.isArray(b) ? b.map((h) => typeof h == "function" ? h(n) : h) : [], f), {})), { errorFields: s, isFinished: i, pass: o } = Vo(t, r, {
|
|
5742
5780
|
validateOption: { suppressWarning: !0 }
|
|
5743
|
-
}), a =
|
|
5781
|
+
}), a = D(0);
|
|
5744
5782
|
function u() {
|
|
5745
5783
|
return a.value++, o.value && i.value;
|
|
5746
5784
|
}
|
|
5747
|
-
const l =
|
|
5785
|
+
const l = $(() => a.value ? s.value : void 0);
|
|
5748
5786
|
function c(f) {
|
|
5749
5787
|
return l.value?.[f]?.[0]?.message;
|
|
5750
5788
|
}
|
|
5751
5789
|
return { error: c, errors: l, isValid: u };
|
|
5752
5790
|
}
|
|
5753
|
-
function
|
|
5791
|
+
function Xa(t = "ru") {
|
|
5754
5792
|
return {
|
|
5755
5793
|
required: !0,
|
|
5756
5794
|
whitespace: !0,
|
|
5757
|
-
message:
|
|
5795
|
+
message: X[t].fieldIsRequired
|
|
5758
5796
|
};
|
|
5759
5797
|
}
|
|
5760
|
-
function
|
|
5798
|
+
function Ya(t = "ru") {
|
|
5761
5799
|
return {
|
|
5762
5800
|
type: "email",
|
|
5763
|
-
message:
|
|
5801
|
+
message: X[t].enterCorrectEmail
|
|
5764
5802
|
};
|
|
5765
5803
|
}
|
|
5766
|
-
function
|
|
5804
|
+
function Za(t = "ru") {
|
|
5767
5805
|
return {
|
|
5768
5806
|
validator: (e, n) => /^[a-zA-Zа-яА-ЯёЁ\s-]+$/.test(n) || n.length === 0,
|
|
5769
5807
|
type: "string",
|
|
5770
|
-
message:
|
|
5808
|
+
message: X[t].onlyLetters
|
|
5771
5809
|
};
|
|
5772
5810
|
}
|
|
5773
|
-
function
|
|
5811
|
+
function eu(t, e = "ru") {
|
|
5774
5812
|
return {
|
|
5775
5813
|
min: t,
|
|
5776
|
-
message: `${
|
|
5814
|
+
message: `${X[e].minSymbols}: ${t}`
|
|
5777
5815
|
};
|
|
5778
5816
|
}
|
|
5779
|
-
function
|
|
5817
|
+
function tu(t, e = "ru") {
|
|
5780
5818
|
return {
|
|
5781
5819
|
max: t,
|
|
5782
|
-
message: `${
|
|
5820
|
+
message: `${X[e].maxSymbols}: ${t}`
|
|
5783
5821
|
};
|
|
5784
5822
|
}
|
|
5785
|
-
function
|
|
5786
|
-
const t =
|
|
5823
|
+
function nu() {
|
|
5824
|
+
const t = D(""), e = D(""), n = D(!1);
|
|
5787
5825
|
function r(s) {
|
|
5788
5826
|
n.value = !0, t.value = s.dateFrom, e.value = s.dateTo;
|
|
5789
5827
|
}
|
|
5790
5828
|
return { dateFrom: t, dateTo: e, isDatesReady: n, updateDates: r };
|
|
5791
5829
|
}
|
|
5792
|
-
function
|
|
5793
|
-
const t =
|
|
5830
|
+
function ru() {
|
|
5831
|
+
const t = D();
|
|
5794
5832
|
async function e() {
|
|
5795
5833
|
t.value = await navigator.wakeLock?.request();
|
|
5796
5834
|
}
|
|
@@ -5800,14 +5838,14 @@ function tu() {
|
|
|
5800
5838
|
async function r() {
|
|
5801
5839
|
document.visibilityState === "visible" ? await e() : n();
|
|
5802
5840
|
}
|
|
5803
|
-
|
|
5841
|
+
Fn(async () => {
|
|
5804
5842
|
await e(), document.addEventListener("visibilitychange", r);
|
|
5805
|
-
}),
|
|
5843
|
+
}), xn(() => {
|
|
5806
5844
|
n(), document.removeEventListener("visibilitychange", r);
|
|
5807
5845
|
});
|
|
5808
5846
|
}
|
|
5809
|
-
function
|
|
5810
|
-
const t =
|
|
5847
|
+
function su() {
|
|
5848
|
+
const t = D(0), e = D(0), n = $(() => `${ct(e.value)}:${ct(t.value)}`), r = $(() => e.value * 60 + t.value);
|
|
5811
5849
|
let s = null;
|
|
5812
5850
|
function i() {
|
|
5813
5851
|
t.value++, t.value === 60 && (e.value++, t.value = 0);
|
|
@@ -5820,8 +5858,8 @@ function nu() {
|
|
|
5820
5858
|
}
|
|
5821
5859
|
return { timer: n, duration: r, startTimer: o, stopTimer: a };
|
|
5822
5860
|
}
|
|
5823
|
-
function
|
|
5824
|
-
const t =
|
|
5861
|
+
function iu() {
|
|
5862
|
+
const t = D(!1), e = Te(t);
|
|
5825
5863
|
Fr(() => {
|
|
5826
5864
|
const r = localStorage.getItem("dark");
|
|
5827
5865
|
if (r === null)
|
|
@@ -5837,61 +5875,61 @@ function ru() {
|
|
|
5837
5875
|
return { isDarkMode: e, toggleDarkMode: n };
|
|
5838
5876
|
}
|
|
5839
5877
|
export {
|
|
5840
|
-
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5878
|
+
Fa as VueQueryPlugin,
|
|
5879
|
+
ct as addZero,
|
|
5880
|
+
We as api,
|
|
5881
|
+
pa as clone,
|
|
5882
|
+
$a as convertParams,
|
|
5883
|
+
wa as createTempId,
|
|
5884
|
+
Ma as dataTest,
|
|
5885
|
+
oi as deleteAuthHeader,
|
|
5886
|
+
uo as deleteCookieToken,
|
|
5887
|
+
Oa as deleteTempId,
|
|
5888
|
+
Ya as email,
|
|
5889
|
+
ya as formatDate,
|
|
5890
|
+
ma as formatDateTime,
|
|
5891
|
+
ai as formatDuration,
|
|
5892
|
+
Ra as formatPercent,
|
|
5893
|
+
_a as generatePassword,
|
|
5894
|
+
ja as getCookieToken,
|
|
5895
|
+
ba as getDatesByDayGap,
|
|
5896
|
+
va as getFirstAndLastDays,
|
|
5897
|
+
ui as getOneYearFromNow,
|
|
5898
|
+
Aa as getPercentDiff,
|
|
5899
|
+
nn as handleError,
|
|
5900
|
+
Ua as html,
|
|
5901
|
+
so as isAuth,
|
|
5902
|
+
Ea as isLinkActive,
|
|
5903
|
+
Za as letters,
|
|
5904
|
+
Sa as localeField,
|
|
5905
|
+
oo as logout,
|
|
5906
|
+
tu as max,
|
|
5907
|
+
eu as min,
|
|
5908
|
+
qa as queryClient,
|
|
5909
|
+
ka as removeDataTest,
|
|
5910
|
+
Xa as required,
|
|
5911
|
+
Ia as scrollToTop,
|
|
5912
|
+
io as setAuth,
|
|
5913
|
+
ha as setAuthHeader,
|
|
5914
|
+
da as setBaseURL,
|
|
5915
|
+
ao as setCookieToken,
|
|
5916
|
+
ga as subtractDates,
|
|
5917
|
+
Ba as useAuth,
|
|
5918
|
+
nu as useCalendar,
|
|
5919
|
+
iu as useDarkMode,
|
|
5920
|
+
Ha as useInfiniteScroll,
|
|
5921
|
+
Da as useMutation,
|
|
5922
|
+
Va as usePage,
|
|
5923
|
+
ru as usePageLock,
|
|
5924
|
+
Ka as usePageNumber,
|
|
5925
|
+
Wa as usePagination,
|
|
5926
|
+
za as usePwa,
|
|
5927
|
+
xa as useQuery,
|
|
5928
|
+
fr as useQueryClient,
|
|
5929
|
+
Ja as useRouteId,
|
|
5930
|
+
su as useTimer,
|
|
5931
|
+
Ga as useValidator,
|
|
5932
|
+
Na as vueQueryOptions,
|
|
5933
|
+
La as wait,
|
|
5934
|
+
Qa as withSetup
|
|
5897
5935
|
};
|