mhz-helpers 1.0.39 → 1.0.40
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 +242 -242
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -80,7 +80,7 @@ function Hn(...t) {
|
|
|
80
80
|
return typeof e == "function" ? we(In(() => ({ get: e, set: Bn }))) : B(e);
|
|
81
81
|
}
|
|
82
82
|
function Ie(t, e = !1) {
|
|
83
|
-
function n(c, { flush:
|
|
83
|
+
function n(c, { flush: p = "sync", deep: b = !1, timeout: m, throwOnTimeout: l } = {}) {
|
|
84
84
|
let g = null;
|
|
85
85
|
const O = [new Promise((v) => {
|
|
86
86
|
g = N(
|
|
@@ -89,7 +89,7 @@ function Ie(t, e = !1) {
|
|
|
89
89
|
c(w) !== e && (g?.(), v(w));
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
|
-
flush:
|
|
92
|
+
flush: p,
|
|
93
93
|
deep: b,
|
|
94
94
|
immediate: !0
|
|
95
95
|
}
|
|
@@ -99,10 +99,10 @@ function Ie(t, e = !1) {
|
|
|
99
99
|
lt(m, l).then(() => Y(t)).finally(() => g?.())
|
|
100
100
|
), Promise.race(O);
|
|
101
101
|
}
|
|
102
|
-
function r(c,
|
|
102
|
+
function r(c, p) {
|
|
103
103
|
if (!et(c))
|
|
104
|
-
return n((w) => w === c,
|
|
105
|
-
const { flush: b = "sync", deep: m = !1, timeout: l, throwOnTimeout: g } =
|
|
104
|
+
return n((w) => w === c, p);
|
|
105
|
+
const { flush: b = "sync", deep: m = !1, timeout: l, throwOnTimeout: g } = p ?? {};
|
|
106
106
|
let y = null;
|
|
107
107
|
const v = [new Promise((w) => {
|
|
108
108
|
y = N(
|
|
@@ -122,7 +122,7 @@ function Ie(t, e = !1) {
|
|
|
122
122
|
), Promise.race(v);
|
|
123
123
|
}
|
|
124
124
|
function s(c) {
|
|
125
|
-
return n((
|
|
125
|
+
return n((p) => !!p, c);
|
|
126
126
|
}
|
|
127
127
|
function i(c) {
|
|
128
128
|
return r(null, c);
|
|
@@ -133,24 +133,24 @@ function Ie(t, e = !1) {
|
|
|
133
133
|
function a(c) {
|
|
134
134
|
return n(Number.isNaN, c);
|
|
135
135
|
}
|
|
136
|
-
function u(c,
|
|
136
|
+
function u(c, p) {
|
|
137
137
|
return n((b) => {
|
|
138
138
|
const m = Array.from(b);
|
|
139
139
|
return m.includes(c) || m.includes(Y(c));
|
|
140
|
-
},
|
|
140
|
+
}, p);
|
|
141
141
|
}
|
|
142
142
|
function f(c) {
|
|
143
|
-
return
|
|
143
|
+
return h(1, c);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function h(c = 1, p) {
|
|
146
146
|
let b = -1;
|
|
147
|
-
return n(() => (b += 1, b >= c),
|
|
147
|
+
return n(() => (b += 1, b >= c), p);
|
|
148
148
|
}
|
|
149
149
|
return Array.isArray(Y(t)) ? {
|
|
150
150
|
toMatch: n,
|
|
151
151
|
toContains: u,
|
|
152
152
|
changed: f,
|
|
153
|
-
changedTimes:
|
|
153
|
+
changedTimes: h,
|
|
154
154
|
get not() {
|
|
155
155
|
return Ie(t, !e);
|
|
156
156
|
}
|
|
@@ -162,7 +162,7 @@ function Ie(t, e = !1) {
|
|
|
162
162
|
toBeNaN: a,
|
|
163
163
|
toBeUndefined: o,
|
|
164
164
|
changed: f,
|
|
165
|
-
changedTimes:
|
|
165
|
+
changedTimes: h,
|
|
166
166
|
get not() {
|
|
167
167
|
return Ie(t, !e);
|
|
168
168
|
}
|
|
@@ -333,28 +333,28 @@ var dt = /* @__PURE__ */ function(t) {
|
|
|
333
333
|
}(/* @__PURE__ */ Qe(Error));
|
|
334
334
|
function Yn(t, e, n, r, s) {
|
|
335
335
|
if (e.first) {
|
|
336
|
-
var i = new Promise(function(
|
|
336
|
+
var i = new Promise(function(p, b) {
|
|
337
337
|
var m = function(y) {
|
|
338
|
-
return r(y), y.length ? b(new dt(y, je(y))) :
|
|
338
|
+
return r(y), y.length ? b(new dt(y, je(y))) : p(s);
|
|
339
339
|
}, l = Xn(t);
|
|
340
340
|
ht(l, n, m);
|
|
341
341
|
});
|
|
342
|
-
return i.catch(function(
|
|
343
|
-
return
|
|
342
|
+
return i.catch(function(p) {
|
|
343
|
+
return p;
|
|
344
344
|
}), i;
|
|
345
345
|
}
|
|
346
|
-
var o = e.firstFields === !0 ? Object.keys(t) : e.firstFields || [], a = Object.keys(t), u = a.length, f = 0,
|
|
346
|
+
var o = e.firstFields === !0 ? Object.keys(t) : e.firstFields || [], a = Object.keys(t), u = a.length, f = 0, h = [], c = new Promise(function(p, b) {
|
|
347
347
|
var m = function(g) {
|
|
348
|
-
if (
|
|
349
|
-
return r(
|
|
348
|
+
if (h.push.apply(h, g), f++, f === u)
|
|
349
|
+
return r(h), h.length ? b(new dt(h, je(h))) : p(s);
|
|
350
350
|
};
|
|
351
|
-
a.length || (r(
|
|
351
|
+
a.length || (r(h), p(s)), a.forEach(function(l) {
|
|
352
352
|
var g = t[l];
|
|
353
353
|
o.indexOf(l) !== -1 ? ht(g, n, m) : Jn(g, n, m);
|
|
354
354
|
});
|
|
355
355
|
});
|
|
356
|
-
return c.catch(function(
|
|
357
|
-
return
|
|
356
|
+
return c.catch(function(p) {
|
|
357
|
+
return p;
|
|
358
358
|
}), c;
|
|
359
359
|
}
|
|
360
360
|
function Zn(t) {
|
|
@@ -416,7 +416,7 @@ var zt = function(e, n, r, s, i, o) {
|
|
|
416
416
|
}, u.v6 = function(v) {
|
|
417
417
|
return v && v.exact ? a : new RegExp("" + e(v) + s + e(v), "g");
|
|
418
418
|
};
|
|
419
|
-
var f = "(?:(?:[a-z]+:)?//)",
|
|
419
|
+
var f = "(?:(?:[a-z]+:)?//)", h = "(?:\\S+(?::\\S*)?@)?", c = u.v4().source, p = u.v6().source, b = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", m = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", l = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", g = "(?::\\d{2,5})?", y = '(?:[/?#][^\\s"]*)?', O = "(?:" + f + "|www\\.)" + h + "(?:localhost|" + c + "|" + p + "|" + b + m + l + ")" + g + y;
|
|
420
420
|
return de = new RegExp("(?:^" + O + "$)", "i"), de;
|
|
421
421
|
}, mt = {
|
|
422
422
|
// http://emailregex.com/
|
|
@@ -474,10 +474,10 @@ var zt = function(e, n, r, s, i, o) {
|
|
|
474
474
|
var o = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], a = e.type;
|
|
475
475
|
o.indexOf(a) > -1 ? oe[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));
|
|
476
476
|
}, sr = function(e, n, r, s, i) {
|
|
477
|
-
var o = typeof e.len == "number", a = typeof e.min == "number", u = typeof e.max == "number", f = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g,
|
|
478
|
-
if (
|
|
477
|
+
var o = typeof e.len == "number", a = typeof e.min == "number", u = typeof e.max == "number", f = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, h = n, c = null, p = typeof n == "number", b = typeof n == "string", m = Array.isArray(n);
|
|
478
|
+
if (p ? c = "number" : b ? c = "string" : m && (c = "array"), !c)
|
|
479
479
|
return !1;
|
|
480
|
-
m && (
|
|
480
|
+
m && (h = n.length), b && (h = n.replace(f, "_").length), o ? h !== e.len && s.push(q(i.messages[c].len, e.fullField, e.len)) : a && !u && h < e.min ? s.push(q(i.messages[c].min, e.fullField, e.min)) : u && !a && h > e.max ? s.push(q(i.messages[c].max, e.fullField, e.max)) : a && u && (h < e.min || h > e.max) && s.push(q(i.messages[c].range, e.fullField, e.min, e.max));
|
|
481
481
|
}, J = "enum", ir = function(e, n, r, s, i) {
|
|
482
482
|
e[J] = Array.isArray(e[J]) ? e[J] : [], e[J].indexOf(n) === -1 && s.push(q(i.messages[J], e.fullField, e[J].join(", ")));
|
|
483
483
|
}, or = function(e, n, r, s, i) {
|
|
@@ -710,7 +710,7 @@ var ke = Le(), Z = /* @__PURE__ */ function() {
|
|
|
710
710
|
var a = r, u = s, f = i;
|
|
711
711
|
if (typeof u == "function" && (f = u, u = {}), !this.rules || Object.keys(this.rules).length === 0)
|
|
712
712
|
return f && f(null, a), Promise.resolve(a);
|
|
713
|
-
function
|
|
713
|
+
function h(l) {
|
|
714
714
|
var g = [], y = {};
|
|
715
715
|
function O(w) {
|
|
716
716
|
if (Array.isArray(w)) {
|
|
@@ -728,14 +728,14 @@ var ke = Le(), Z = /* @__PURE__ */ function() {
|
|
|
728
728
|
c === ke && (c = Le()), yt(c, u.messages), u.messages = c;
|
|
729
729
|
} else
|
|
730
730
|
u.messages = this.messages();
|
|
731
|
-
var
|
|
731
|
+
var p = {}, b = u.keys || Object.keys(this.rules);
|
|
732
732
|
b.forEach(function(l) {
|
|
733
733
|
var g = o.rules[l], y = a[l];
|
|
734
734
|
g.forEach(function(O) {
|
|
735
735
|
var v = O;
|
|
736
736
|
typeof v.transform == "function" && (a === r && (a = K({}, a)), y = a[l] = v.transform(y)), typeof v == "function" ? v = {
|
|
737
737
|
validator: v
|
|
738
|
-
} : v = K({}, v), v.validator = o.getValidationMethod(v), v.validator && (v.field = l, v.fullField = v.fullField || l, v.type = o.getType(v),
|
|
738
|
+
} : v = K({}, v), v.validator = o.getValidationMethod(v), v.validator && (v.field = l, v.fullField = v.fullField || l, v.type = o.getType(v), p[l] = p[l] || [], p[l].push({
|
|
739
739
|
rule: v,
|
|
740
740
|
value: y,
|
|
741
741
|
source: a,
|
|
@@ -744,7 +744,7 @@ var ke = Le(), Z = /* @__PURE__ */ function() {
|
|
|
744
744
|
});
|
|
745
745
|
});
|
|
746
746
|
var m = {};
|
|
747
|
-
return Yn(
|
|
747
|
+
return Yn(p, u, function(l, g) {
|
|
748
748
|
var y = l.rule, O = (y.type === "object" || y.type === "array") && (typeof y.fields == "object" || typeof y.defaultField == "object");
|
|
749
749
|
O = O && (y.required || !y.required && l.value), y.field = l.field;
|
|
750
750
|
function v(C, Q) {
|
|
@@ -800,7 +800,7 @@ var ke = Le(), Z = /* @__PURE__ */ function() {
|
|
|
800
800
|
return w(C);
|
|
801
801
|
});
|
|
802
802
|
}, function(l) {
|
|
803
|
-
|
|
803
|
+
h(l);
|
|
804
804
|
}, a);
|
|
805
805
|
}, e.getType = function(r) {
|
|
806
806
|
if (r.type === void 0 && r.pattern instanceof RegExp && (r.type = "pattern"), typeof r.validator != "function" && r.type && !ae.hasOwnProperty(r.type))
|
|
@@ -827,16 +827,16 @@ function Ar(t, e, n = {}) {
|
|
|
827
827
|
validateOption: r = {},
|
|
828
828
|
immediate: s = !0,
|
|
829
829
|
manual: i = !1
|
|
830
|
-
} = n, o = Hn(t), a = Mn(null), u = B(!0), f = B(!s || i),
|
|
830
|
+
} = n, o = Hn(t), a = Mn(null), u = B(!0), f = B(!s || i), h = $(() => {
|
|
831
831
|
var g;
|
|
832
832
|
return ((g = a.value) == null ? void 0 : g.errors) || [];
|
|
833
833
|
}), c = $(() => {
|
|
834
834
|
var g;
|
|
835
835
|
return ((g = a.value) == null ? void 0 : g.fields) || {};
|
|
836
|
-
}),
|
|
836
|
+
}), p = $(() => new Er(Y(e))), b = async () => {
|
|
837
837
|
u.value = !1, f.value = !1;
|
|
838
838
|
try {
|
|
839
|
-
await
|
|
839
|
+
await p.value.validate(o.value, r), f.value = !0, a.value = null;
|
|
840
840
|
} catch (g) {
|
|
841
841
|
a.value = g;
|
|
842
842
|
} finally {
|
|
@@ -845,19 +845,19 @@ function Ar(t, e, n = {}) {
|
|
|
845
845
|
return {
|
|
846
846
|
pass: f.value,
|
|
847
847
|
errorInfo: a.value,
|
|
848
|
-
errors:
|
|
848
|
+
errors: h.value,
|
|
849
849
|
errorFields: c.value
|
|
850
850
|
};
|
|
851
851
|
};
|
|
852
852
|
i || N(
|
|
853
|
-
[o,
|
|
853
|
+
[o, p],
|
|
854
854
|
() => b(),
|
|
855
855
|
{ immediate: s, deep: !0 }
|
|
856
856
|
);
|
|
857
857
|
const m = {
|
|
858
858
|
isFinished: u,
|
|
859
859
|
pass: f,
|
|
860
|
-
errors:
|
|
860
|
+
errors: h,
|
|
861
861
|
errorInfo: a,
|
|
862
862
|
errorFields: c,
|
|
863
863
|
execute: b
|
|
@@ -1123,7 +1123,7 @@ const os = (t) => {
|
|
|
1123
1123
|
return r;
|
|
1124
1124
|
};
|
|
1125
1125
|
return n(t, 0);
|
|
1126
|
-
}, as = M("AsyncFunction"), us = (t) => t && (Se(t) || _(t)) && _(t.then) && _(t.catch),
|
|
1126
|
+
}, as = M("AsyncFunction"), us = (t) => t && (Se(t) || _(t)) && _(t.then) && _(t.catch), d = {
|
|
1127
1127
|
isArray: ne,
|
|
1128
1128
|
isArrayBuffer: Jt,
|
|
1129
1129
|
isBuffer: xr,
|
|
@@ -1180,7 +1180,7 @@ const os = (t) => {
|
|
|
1180
1180
|
function S(t, e, n, r, s) {
|
|
1181
1181
|
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);
|
|
1182
1182
|
}
|
|
1183
|
-
|
|
1183
|
+
d.inherits(S, Error, {
|
|
1184
1184
|
toJSON: function() {
|
|
1185
1185
|
return {
|
|
1186
1186
|
// Standard
|
|
@@ -1195,7 +1195,7 @@ h.inherits(S, Error, {
|
|
|
1195
1195
|
columnNumber: this.columnNumber,
|
|
1196
1196
|
stack: this.stack,
|
|
1197
1197
|
// Axios
|
|
1198
|
-
config:
|
|
1198
|
+
config: d.toJSONObject(this.config),
|
|
1199
1199
|
code: this.code,
|
|
1200
1200
|
status: this.response && this.response.status ? this.response.status : null
|
|
1201
1201
|
};
|
|
@@ -1223,16 +1223,16 @@ Object.defineProperties(S, sn);
|
|
|
1223
1223
|
Object.defineProperty(rn, "isAxiosError", { value: !0 });
|
|
1224
1224
|
S.from = (t, e, n, r, s, i) => {
|
|
1225
1225
|
const o = Object.create(rn);
|
|
1226
|
-
return
|
|
1226
|
+
return d.toFlatObject(t, o, function(u) {
|
|
1227
1227
|
return u !== Error.prototype;
|
|
1228
1228
|
}, (a) => a !== "isAxiosError"), S.call(o, t.message, e, n, r, s), o.cause = t, o.name = t.name, i && Object.assign(o, i), o;
|
|
1229
1229
|
};
|
|
1230
1230
|
const cs = null;
|
|
1231
1231
|
function He(t) {
|
|
1232
|
-
return
|
|
1232
|
+
return d.isPlainObject(t) || d.isArray(t);
|
|
1233
1233
|
}
|
|
1234
1234
|
function on(t) {
|
|
1235
|
-
return
|
|
1235
|
+
return d.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
1236
1236
|
}
|
|
1237
1237
|
function vt(t, e, n) {
|
|
1238
1238
|
return t ? t.concat(e).map(function(s, i) {
|
|
@@ -1240,41 +1240,41 @@ function vt(t, e, n) {
|
|
|
1240
1240
|
}).join(n ? "." : "") : e;
|
|
1241
1241
|
}
|
|
1242
1242
|
function fs(t) {
|
|
1243
|
-
return
|
|
1243
|
+
return d.isArray(t) && !t.some(He);
|
|
1244
1244
|
}
|
|
1245
|
-
const ls =
|
|
1245
|
+
const ls = d.toFlatObject(d, {}, null, function(e) {
|
|
1246
1246
|
return /^is[A-Z]/.test(e);
|
|
1247
1247
|
});
|
|
1248
1248
|
function Re(t, e, n) {
|
|
1249
|
-
if (!
|
|
1249
|
+
if (!d.isObject(t))
|
|
1250
1250
|
throw new TypeError("target must be an object");
|
|
1251
|
-
e = e || new FormData(), n =
|
|
1251
|
+
e = e || new FormData(), n = d.toFlatObject(n, {
|
|
1252
1252
|
metaTokens: !0,
|
|
1253
1253
|
dots: !1,
|
|
1254
1254
|
indexes: !1
|
|
1255
1255
|
}, !1, function(l, g) {
|
|
1256
|
-
return !
|
|
1256
|
+
return !d.isUndefined(g[l]);
|
|
1257
1257
|
});
|
|
1258
|
-
const r = n.metaTokens, s = n.visitor ||
|
|
1259
|
-
if (!
|
|
1258
|
+
const r = n.metaTokens, s = n.visitor || h, i = n.dots, o = n.indexes, u = (n.Blob || typeof Blob < "u" && Blob) && d.isSpecCompliantForm(e);
|
|
1259
|
+
if (!d.isFunction(s))
|
|
1260
1260
|
throw new TypeError("visitor must be a function");
|
|
1261
1261
|
function f(m) {
|
|
1262
1262
|
if (m === null)
|
|
1263
1263
|
return "";
|
|
1264
|
-
if (
|
|
1264
|
+
if (d.isDate(m))
|
|
1265
1265
|
return m.toISOString();
|
|
1266
|
-
if (!u &&
|
|
1266
|
+
if (!u && d.isBlob(m))
|
|
1267
1267
|
throw new S("Blob is not supported. Use a Buffer instead.");
|
|
1268
|
-
return
|
|
1268
|
+
return d.isArrayBuffer(m) || d.isTypedArray(m) ? u && typeof Blob == "function" ? new Blob([m]) : Buffer.from(m) : m;
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1270
|
+
function h(m, l, g) {
|
|
1271
1271
|
let y = m;
|
|
1272
1272
|
if (m && !g && typeof m == "object") {
|
|
1273
|
-
if (
|
|
1273
|
+
if (d.endsWith(l, "{}"))
|
|
1274
1274
|
l = r ? l : l.slice(0, -2), m = JSON.stringify(m);
|
|
1275
|
-
else if (
|
|
1275
|
+
else if (d.isArray(m) && fs(m) || (d.isFileList(m) || d.endsWith(l, "[]")) && (y = d.toArray(m)))
|
|
1276
1276
|
return l = on(l), y.forEach(function(v, w) {
|
|
1277
|
-
!(
|
|
1277
|
+
!(d.isUndefined(v) || v === null) && e.append(
|
|
1278
1278
|
// eslint-disable-next-line no-nested-ternary
|
|
1279
1279
|
o === !0 ? vt([l], w, i) : o === null ? l : l + "[]",
|
|
1280
1280
|
f(v)
|
|
@@ -1283,27 +1283,27 @@ function Re(t, e, n) {
|
|
|
1283
1283
|
}
|
|
1284
1284
|
return He(m) ? !0 : (e.append(vt(g, l, i), f(m)), !1);
|
|
1285
1285
|
}
|
|
1286
|
-
const c = [],
|
|
1287
|
-
defaultVisitor:
|
|
1286
|
+
const c = [], p = Object.assign(ls, {
|
|
1287
|
+
defaultVisitor: h,
|
|
1288
1288
|
convertValue: f,
|
|
1289
1289
|
isVisitable: He
|
|
1290
1290
|
});
|
|
1291
1291
|
function b(m, l) {
|
|
1292
|
-
if (!
|
|
1292
|
+
if (!d.isUndefined(m)) {
|
|
1293
1293
|
if (c.indexOf(m) !== -1)
|
|
1294
1294
|
throw Error("Circular reference detected in " + l.join("."));
|
|
1295
|
-
c.push(m),
|
|
1296
|
-
(!(
|
|
1295
|
+
c.push(m), d.forEach(m, function(y, O) {
|
|
1296
|
+
(!(d.isUndefined(y) || y === null) && s.call(
|
|
1297
1297
|
e,
|
|
1298
1298
|
y,
|
|
1299
|
-
|
|
1299
|
+
d.isString(O) ? O.trim() : O,
|
|
1300
1300
|
l,
|
|
1301
|
-
|
|
1301
|
+
p
|
|
1302
1302
|
)) === !0 && b(y, l ? l.concat(O) : [O]);
|
|
1303
1303
|
}), c.pop();
|
|
1304
1304
|
}
|
|
1305
1305
|
}
|
|
1306
|
-
if (!
|
|
1306
|
+
if (!d.isObject(t))
|
|
1307
1307
|
throw new TypeError("data must be an object");
|
|
1308
1308
|
return b(t), e;
|
|
1309
1309
|
}
|
|
@@ -1344,7 +1344,7 @@ function un(t, e, n) {
|
|
|
1344
1344
|
return t;
|
|
1345
1345
|
const r = n && n.encode || hs, s = n && n.serialize;
|
|
1346
1346
|
let i;
|
|
1347
|
-
if (s ? i = s(e, n) : i =
|
|
1347
|
+
if (s ? i = s(e, n) : i = d.isURLSearchParams(e) ? e.toString() : new nt(e, n).toString(r), i) {
|
|
1348
1348
|
const o = t.indexOf("#");
|
|
1349
1349
|
o !== -1 && (t = t.slice(0, o)), t += (t.indexOf("?") === -1 ? "?" : "&") + i;
|
|
1350
1350
|
}
|
|
@@ -1399,7 +1399,7 @@ class wt {
|
|
|
1399
1399
|
* @returns {void}
|
|
1400
1400
|
*/
|
|
1401
1401
|
forEach(e) {
|
|
1402
|
-
|
|
1402
|
+
d.forEach(this.handlers, function(r) {
|
|
1403
1403
|
r !== null && e(r);
|
|
1404
1404
|
});
|
|
1405
1405
|
}
|
|
@@ -1429,12 +1429,12 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", vs
|
|
|
1429
1429
|
function Os(t, e) {
|
|
1430
1430
|
return Re(t, new I.classes.URLSearchParams(), Object.assign({
|
|
1431
1431
|
visitor: function(n, r, s, i) {
|
|
1432
|
-
return I.isNode &&
|
|
1432
|
+
return I.isNode && d.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
1433
1433
|
}
|
|
1434
1434
|
}, e));
|
|
1435
1435
|
}
|
|
1436
1436
|
function ws(t) {
|
|
1437
|
-
return
|
|
1437
|
+
return d.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
1438
1438
|
}
|
|
1439
1439
|
function Es(t) {
|
|
1440
1440
|
const e = {}, n = Object.keys(t);
|
|
@@ -1451,20 +1451,20 @@ function ln(t) {
|
|
|
1451
1451
|
if (o === "__proto__")
|
|
1452
1452
|
return !0;
|
|
1453
1453
|
const a = Number.isFinite(+o), u = i >= n.length;
|
|
1454
|
-
return o = !o &&
|
|
1454
|
+
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] = Es(s[o])), !a);
|
|
1455
1455
|
}
|
|
1456
|
-
if (
|
|
1456
|
+
if (d.isFormData(t) && d.isFunction(t.entries)) {
|
|
1457
1457
|
const n = {};
|
|
1458
|
-
return
|
|
1458
|
+
return d.forEachEntry(t, (r, s) => {
|
|
1459
1459
|
e(ws(r), s, n, 0);
|
|
1460
1460
|
}), n;
|
|
1461
1461
|
}
|
|
1462
1462
|
return null;
|
|
1463
1463
|
}
|
|
1464
1464
|
function As(t, e, n) {
|
|
1465
|
-
if (
|
|
1465
|
+
if (d.isString(t))
|
|
1466
1466
|
try {
|
|
1467
|
-
return (e || JSON.parse)(t),
|
|
1467
|
+
return (e || JSON.parse)(t), d.trim(t);
|
|
1468
1468
|
} catch (r) {
|
|
1469
1469
|
if (r.name !== "SyntaxError")
|
|
1470
1470
|
throw r;
|
|
@@ -1475,20 +1475,20 @@ const rt = {
|
|
|
1475
1475
|
transitional: cn,
|
|
1476
1476
|
adapter: ["xhr", "http"],
|
|
1477
1477
|
transformRequest: [function(e, n) {
|
|
1478
|
-
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i =
|
|
1479
|
-
if (i &&
|
|
1478
|
+
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = d.isObject(e);
|
|
1479
|
+
if (i && d.isHTMLForm(e) && (e = new FormData(e)), d.isFormData(e))
|
|
1480
1480
|
return s && s ? JSON.stringify(ln(e)) : e;
|
|
1481
|
-
if (
|
|
1481
|
+
if (d.isArrayBuffer(e) || d.isBuffer(e) || d.isStream(e) || d.isFile(e) || d.isBlob(e))
|
|
1482
1482
|
return e;
|
|
1483
|
-
if (
|
|
1483
|
+
if (d.isArrayBufferView(e))
|
|
1484
1484
|
return e.buffer;
|
|
1485
|
-
if (
|
|
1485
|
+
if (d.isURLSearchParams(e))
|
|
1486
1486
|
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
1487
1487
|
let a;
|
|
1488
1488
|
if (i) {
|
|
1489
1489
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
1490
1490
|
return Os(e, this.formSerializer).toString();
|
|
1491
|
-
if ((a =
|
|
1491
|
+
if ((a = d.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
|
|
1492
1492
|
const u = this.env && this.env.FormData;
|
|
1493
1493
|
return Re(
|
|
1494
1494
|
a ? { "files[]": e } : e,
|
|
@@ -1501,7 +1501,7 @@ const rt = {
|
|
|
1501
1501
|
}],
|
|
1502
1502
|
transformResponse: [function(e) {
|
|
1503
1503
|
const n = this.transitional || rt.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
1504
|
-
if (e &&
|
|
1504
|
+
if (e && d.isString(e) && (r && !this.responseType || s)) {
|
|
1505
1505
|
const o = !(n && n.silentJSONParsing) && s;
|
|
1506
1506
|
try {
|
|
1507
1507
|
return JSON.parse(e);
|
|
@@ -1535,10 +1535,10 @@ const rt = {
|
|
|
1535
1535
|
}
|
|
1536
1536
|
}
|
|
1537
1537
|
};
|
|
1538
|
-
|
|
1538
|
+
d.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
1539
1539
|
rt.headers[t] = {};
|
|
1540
1540
|
});
|
|
1541
|
-
const st = rt, Ss =
|
|
1541
|
+
const st = rt, Ss = d.toObjectSet([
|
|
1542
1542
|
"age",
|
|
1543
1543
|
"authorization",
|
|
1544
1544
|
"content-length",
|
|
@@ -1568,7 +1568,7 @@ function ie(t) {
|
|
|
1568
1568
|
return t && String(t).trim().toLowerCase();
|
|
1569
1569
|
}
|
|
1570
1570
|
function me(t) {
|
|
1571
|
-
return t === !1 || t == null ? t :
|
|
1571
|
+
return t === !1 || t == null ? t : d.isArray(t) ? t.map(me) : String(t);
|
|
1572
1572
|
}
|
|
1573
1573
|
function Fs(t) {
|
|
1574
1574
|
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -1579,12 +1579,12 @@ function Fs(t) {
|
|
|
1579
1579
|
}
|
|
1580
1580
|
const Cs = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
1581
1581
|
function xe(t, e, n, r, s) {
|
|
1582
|
-
if (
|
|
1582
|
+
if (d.isFunction(r))
|
|
1583
1583
|
return r.call(this, e, n);
|
|
1584
|
-
if (s && (e = n), !!
|
|
1585
|
-
if (
|
|
1584
|
+
if (s && (e = n), !!d.isString(e)) {
|
|
1585
|
+
if (d.isString(r))
|
|
1586
1586
|
return e.indexOf(r) !== -1;
|
|
1587
|
-
if (
|
|
1587
|
+
if (d.isRegExp(r))
|
|
1588
1588
|
return r.test(e);
|
|
1589
1589
|
}
|
|
1590
1590
|
}
|
|
@@ -1592,7 +1592,7 @@ function Ps(t) {
|
|
|
1592
1592
|
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
|
|
1593
1593
|
}
|
|
1594
1594
|
function Ts(t, e) {
|
|
1595
|
-
const n =
|
|
1595
|
+
const n = d.toCamelCase(" " + e);
|
|
1596
1596
|
["get", "set", "has"].forEach((r) => {
|
|
1597
1597
|
Object.defineProperty(t, r + n, {
|
|
1598
1598
|
value: function(s, i, o) {
|
|
@@ -1609,27 +1609,27 @@ class Fe {
|
|
|
1609
1609
|
set(e, n, r) {
|
|
1610
1610
|
const s = this;
|
|
1611
1611
|
function i(a, u, f) {
|
|
1612
|
-
const
|
|
1613
|
-
if (!
|
|
1612
|
+
const h = ie(u);
|
|
1613
|
+
if (!h)
|
|
1614
1614
|
throw new Error("header name must be a non-empty string");
|
|
1615
|
-
const c =
|
|
1615
|
+
const c = d.findKey(s, h);
|
|
1616
1616
|
(!c || s[c] === void 0 || f === !0 || f === void 0 && s[c] !== !1) && (s[c || u] = me(a));
|
|
1617
1617
|
}
|
|
1618
|
-
const o = (a, u) =>
|
|
1619
|
-
return
|
|
1618
|
+
const o = (a, u) => d.forEach(a, (f, h) => i(f, h, u));
|
|
1619
|
+
return d.isPlainObject(e) || e instanceof this.constructor ? o(e, n) : d.isString(e) && (e = e.trim()) && !Cs(e) ? o(Rs(e), n) : e != null && i(n, e, r), this;
|
|
1620
1620
|
}
|
|
1621
1621
|
get(e, n) {
|
|
1622
1622
|
if (e = ie(e), e) {
|
|
1623
|
-
const r =
|
|
1623
|
+
const r = d.findKey(this, e);
|
|
1624
1624
|
if (r) {
|
|
1625
1625
|
const s = this[r];
|
|
1626
1626
|
if (!n)
|
|
1627
1627
|
return s;
|
|
1628
1628
|
if (n === !0)
|
|
1629
1629
|
return Fs(s);
|
|
1630
|
-
if (
|
|
1630
|
+
if (d.isFunction(n))
|
|
1631
1631
|
return n.call(this, s, r);
|
|
1632
|
-
if (
|
|
1632
|
+
if (d.isRegExp(n))
|
|
1633
1633
|
return n.exec(s);
|
|
1634
1634
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
1635
1635
|
}
|
|
@@ -1637,7 +1637,7 @@ class Fe {
|
|
|
1637
1637
|
}
|
|
1638
1638
|
has(e, n) {
|
|
1639
1639
|
if (e = ie(e), e) {
|
|
1640
|
-
const r =
|
|
1640
|
+
const r = d.findKey(this, e);
|
|
1641
1641
|
return !!(r && this[r] !== void 0 && (!n || xe(this, this[r], r, n)));
|
|
1642
1642
|
}
|
|
1643
1643
|
return !1;
|
|
@@ -1647,11 +1647,11 @@ class Fe {
|
|
|
1647
1647
|
let s = !1;
|
|
1648
1648
|
function i(o) {
|
|
1649
1649
|
if (o = ie(o), o) {
|
|
1650
|
-
const a =
|
|
1650
|
+
const a = d.findKey(r, o);
|
|
1651
1651
|
a && (!n || xe(r, r[a], a, n)) && (delete r[a], s = !0);
|
|
1652
1652
|
}
|
|
1653
1653
|
}
|
|
1654
|
-
return
|
|
1654
|
+
return d.isArray(e) ? e.forEach(i) : i(e), s;
|
|
1655
1655
|
}
|
|
1656
1656
|
clear(e) {
|
|
1657
1657
|
const n = Object.keys(this);
|
|
@@ -1664,8 +1664,8 @@ class Fe {
|
|
|
1664
1664
|
}
|
|
1665
1665
|
normalize(e) {
|
|
1666
1666
|
const n = this, r = {};
|
|
1667
|
-
return
|
|
1668
|
-
const o =
|
|
1667
|
+
return d.forEach(this, (s, i) => {
|
|
1668
|
+
const o = d.findKey(r, i);
|
|
1669
1669
|
if (o) {
|
|
1670
1670
|
n[o] = me(s), delete n[i];
|
|
1671
1671
|
return;
|
|
@@ -1679,8 +1679,8 @@ class Fe {
|
|
|
1679
1679
|
}
|
|
1680
1680
|
toJSON(e) {
|
|
1681
1681
|
const n = /* @__PURE__ */ Object.create(null);
|
|
1682
|
-
return
|
|
1683
|
-
r != null && r !== !1 && (n[s] = e &&
|
|
1682
|
+
return d.forEach(this, (r, s) => {
|
|
1683
|
+
r != null && r !== !1 && (n[s] = e && d.isArray(r) ? r.join(", ") : r);
|
|
1684
1684
|
}), n;
|
|
1685
1685
|
}
|
|
1686
1686
|
[Symbol.iterator]() {
|
|
@@ -1708,11 +1708,11 @@ class Fe {
|
|
|
1708
1708
|
const a = ie(o);
|
|
1709
1709
|
r[a] || (Ts(s, o), r[a] = !0);
|
|
1710
1710
|
}
|
|
1711
|
-
return
|
|
1711
|
+
return d.isArray(e) ? e.forEach(i) : i(e), this;
|
|
1712
1712
|
}
|
|
1713
1713
|
}
|
|
1714
1714
|
Fe.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
1715
|
-
|
|
1715
|
+
d.reduceDescriptors(Fe.prototype, ({ value: t }, e) => {
|
|
1716
1716
|
let n = e[0].toUpperCase() + e.slice(1);
|
|
1717
1717
|
return {
|
|
1718
1718
|
get: () => t,
|
|
@@ -1721,12 +1721,12 @@ h.reduceDescriptors(Fe.prototype, ({ value: t }, e) => {
|
|
|
1721
1721
|
}
|
|
1722
1722
|
};
|
|
1723
1723
|
});
|
|
1724
|
-
|
|
1724
|
+
d.freezeMethods(Fe);
|
|
1725
1725
|
const k = Fe;
|
|
1726
1726
|
function qe(t, e) {
|
|
1727
1727
|
const n = this || st, r = e || n, s = k.from(r.headers);
|
|
1728
1728
|
let i = r.data;
|
|
1729
|
-
return
|
|
1729
|
+
return d.forEach(t, function(a) {
|
|
1730
1730
|
i = a.call(n, i, s.normalize(), e ? e.status : void 0);
|
|
1731
1731
|
}), s.normalize(), i;
|
|
1732
1732
|
}
|
|
@@ -1736,7 +1736,7 @@ function hn(t) {
|
|
|
1736
1736
|
function he(t, e, n) {
|
|
1737
1737
|
S.call(this, t ?? "canceled", S.ERR_CANCELED, e, n), this.name = "CanceledError";
|
|
1738
1738
|
}
|
|
1739
|
-
|
|
1739
|
+
d.inherits(he, S, {
|
|
1740
1740
|
__CANCEL__: !0
|
|
1741
1741
|
});
|
|
1742
1742
|
function xs(t, e, n) {
|
|
@@ -1754,7 +1754,7 @@ const qs = I.hasStandardBrowserEnv ? (
|
|
|
1754
1754
|
{
|
|
1755
1755
|
write(t, e, n, r, s, i) {
|
|
1756
1756
|
const o = [t + "=" + encodeURIComponent(e)];
|
|
1757
|
-
|
|
1757
|
+
d.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), d.isString(r) && o.push("path=" + r), d.isString(s) && o.push("domain=" + s), i === !0 && o.push("secure"), document.cookie = o.join("; ");
|
|
1758
1758
|
},
|
|
1759
1759
|
read(t) {
|
|
1760
1760
|
const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
|
|
@@ -1805,7 +1805,7 @@ const Us = I.hasStandardBrowserEnv ? (
|
|
|
1805
1805
|
};
|
|
1806
1806
|
}
|
|
1807
1807
|
return r = s(window.location.href), function(o) {
|
|
1808
|
-
const a =
|
|
1808
|
+
const a = d.isString(o) ? s(o) : o;
|
|
1809
1809
|
return a.protocol === r.protocol && a.host === r.host;
|
|
1810
1810
|
};
|
|
1811
1811
|
}()
|
|
@@ -1826,15 +1826,15 @@ function Is(t, e) {
|
|
|
1826
1826
|
const n = new Array(t), r = new Array(t);
|
|
1827
1827
|
let s = 0, i = 0, o;
|
|
1828
1828
|
return e = e !== void 0 ? e : 1e3, function(u) {
|
|
1829
|
-
const f = Date.now(),
|
|
1829
|
+
const f = Date.now(), h = r[i];
|
|
1830
1830
|
o || (o = f), n[s] = u, r[s] = f;
|
|
1831
|
-
let c = i,
|
|
1831
|
+
let c = i, p = 0;
|
|
1832
1832
|
for (; c !== s; )
|
|
1833
|
-
|
|
1833
|
+
p += n[c++], c = c % t;
|
|
1834
1834
|
if (s = (s + 1) % t, s === i && (i = (i + 1) % t), f - o < e)
|
|
1835
1835
|
return;
|
|
1836
|
-
const b =
|
|
1837
|
-
return b ? Math.round(
|
|
1836
|
+
const b = h && f - h;
|
|
1837
|
+
return b ? Math.round(p * 1e3 / b) : void 0;
|
|
1838
1838
|
};
|
|
1839
1839
|
}
|
|
1840
1840
|
function At(t, e) {
|
|
@@ -1843,7 +1843,7 @@ function At(t, e) {
|
|
|
1843
1843
|
return (s) => {
|
|
1844
1844
|
const i = s.loaded, o = s.lengthComputable ? s.total : void 0, a = i - n, u = r(a), f = i <= o;
|
|
1845
1845
|
n = i;
|
|
1846
|
-
const
|
|
1846
|
+
const h = {
|
|
1847
1847
|
loaded: i,
|
|
1848
1848
|
total: o,
|
|
1849
1849
|
progress: o ? i / o : void 0,
|
|
@@ -1852,7 +1852,7 @@ function At(t, e) {
|
|
|
1852
1852
|
estimated: u && o && f ? (o - i) / u : void 0,
|
|
1853
1853
|
event: s
|
|
1854
1854
|
};
|
|
1855
|
-
|
|
1855
|
+
h[e ? "download" : "upload"] = !0, t(h);
|
|
1856
1856
|
};
|
|
1857
1857
|
}
|
|
1858
1858
|
const Ms = typeof XMLHttpRequest < "u", Qs = Ms && function(t) {
|
|
@@ -1863,12 +1863,12 @@ const Ms = typeof XMLHttpRequest < "u", Qs = Ms && function(t) {
|
|
|
1863
1863
|
function f() {
|
|
1864
1864
|
t.cancelToken && t.cancelToken.unsubscribe(u), t.signal && t.signal.removeEventListener("abort", u);
|
|
1865
1865
|
}
|
|
1866
|
-
let
|
|
1867
|
-
if (
|
|
1866
|
+
let h;
|
|
1867
|
+
if (d.isFormData(s)) {
|
|
1868
1868
|
if (I.hasStandardBrowserEnv || I.hasStandardBrowserWebWorkerEnv)
|
|
1869
1869
|
i.setContentType(!1);
|
|
1870
|
-
else if ((
|
|
1871
|
-
const [l, ...g] =
|
|
1870
|
+
else if ((h = i.getContentType()) !== !1) {
|
|
1871
|
+
const [l, ...g] = h ? h.split(";").map((y) => y.trim()).filter(Boolean) : [];
|
|
1872
1872
|
i.setContentType([l || "multipart/form-data", ...g].join("; "));
|
|
1873
1873
|
}
|
|
1874
1874
|
}
|
|
@@ -1877,8 +1877,8 @@ const Ms = typeof XMLHttpRequest < "u", Qs = Ms && function(t) {
|
|
|
1877
1877
|
const l = t.auth.username || "", g = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
|
|
1878
1878
|
i.set("Authorization", "Basic " + btoa(l + ":" + g));
|
|
1879
1879
|
}
|
|
1880
|
-
const
|
|
1881
|
-
c.open(t.method.toUpperCase(), un(
|
|
1880
|
+
const p = dn(t.baseURL, t.url);
|
|
1881
|
+
c.open(t.method.toUpperCase(), un(p, t.params, t.paramsSerializer), !0), c.timeout = t.timeout;
|
|
1882
1882
|
function b() {
|
|
1883
1883
|
if (!c)
|
|
1884
1884
|
return;
|
|
@@ -1913,16 +1913,16 @@ const Ms = typeof XMLHttpRequest < "u", Qs = Ms && function(t) {
|
|
|
1913
1913
|
t,
|
|
1914
1914
|
c
|
|
1915
1915
|
)), c = null;
|
|
1916
|
-
}, I.hasStandardBrowserEnv && (a &&
|
|
1916
|
+
}, I.hasStandardBrowserEnv && (a && d.isFunction(a) && (a = a(t)), a || a !== !1 && Us(p))) {
|
|
1917
1917
|
const l = t.xsrfHeaderName && t.xsrfCookieName && qs.read(t.xsrfCookieName);
|
|
1918
1918
|
l && i.set(t.xsrfHeaderName, l);
|
|
1919
1919
|
}
|
|
1920
|
-
s === void 0 && i.setContentType(null), "setRequestHeader" in c &&
|
|
1920
|
+
s === void 0 && i.setContentType(null), "setRequestHeader" in c && d.forEach(i.toJSON(), function(g, y) {
|
|
1921
1921
|
c.setRequestHeader(y, g);
|
|
1922
|
-
}),
|
|
1922
|
+
}), d.isUndefined(t.withCredentials) || (c.withCredentials = !!t.withCredentials), o && o !== "json" && (c.responseType = t.responseType), typeof t.onDownloadProgress == "function" && c.addEventListener("progress", At(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", At(t.onUploadProgress)), (t.cancelToken || t.signal) && (u = (l) => {
|
|
1923
1923
|
c && (r(!l || l.type ? new he(null, t, c) : l), c.abort(), c = null);
|
|
1924
1924
|
}, t.cancelToken && t.cancelToken.subscribe(u), t.signal && (t.signal.aborted ? u() : t.signal.addEventListener("abort", u)));
|
|
1925
|
-
const m = Ns(
|
|
1925
|
+
const m = Ns(p);
|
|
1926
1926
|
if (m && I.protocols.indexOf(m) === -1) {
|
|
1927
1927
|
r(new S("Unsupported protocol " + m + ":", S.ERR_BAD_REQUEST, t));
|
|
1928
1928
|
return;
|
|
@@ -1933,7 +1933,7 @@ const Ms = typeof XMLHttpRequest < "u", Qs = Ms && function(t) {
|
|
|
1933
1933
|
http: cs,
|
|
1934
1934
|
xhr: Qs
|
|
1935
1935
|
};
|
|
1936
|
-
|
|
1936
|
+
d.forEach(Ve, (t, e) => {
|
|
1937
1937
|
if (t) {
|
|
1938
1938
|
try {
|
|
1939
1939
|
Object.defineProperty(t, "name", { value: e });
|
|
@@ -1942,9 +1942,9 @@ h.forEach(Ve, (t, e) => {
|
|
|
1942
1942
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
1943
1943
|
}
|
|
1944
1944
|
});
|
|
1945
|
-
const St = (t) => `- ${t}`, js = (t) =>
|
|
1945
|
+
const St = (t) => `- ${t}`, js = (t) => d.isFunction(t) || t === null || t === !1, pn = {
|
|
1946
1946
|
getAdapter: (t) => {
|
|
1947
|
-
t =
|
|
1947
|
+
t = d.isArray(t) ? t : [t];
|
|
1948
1948
|
const { length: e } = t;
|
|
1949
1949
|
let n, r;
|
|
1950
1950
|
const s = {};
|
|
@@ -1999,30 +1999,30 @@ const Ft = (t) => t instanceof k ? t.toJSON() : t;
|
|
|
1999
1999
|
function ee(t, e) {
|
|
2000
2000
|
e = e || {};
|
|
2001
2001
|
const n = {};
|
|
2002
|
-
function r(f,
|
|
2003
|
-
return
|
|
2002
|
+
function r(f, h, c) {
|
|
2003
|
+
return d.isPlainObject(f) && d.isPlainObject(h) ? d.merge.call({ caseless: c }, f, h) : d.isPlainObject(h) ? d.merge({}, h) : d.isArray(h) ? h.slice() : h;
|
|
2004
2004
|
}
|
|
2005
|
-
function s(f,
|
|
2006
|
-
if (
|
|
2007
|
-
if (!
|
|
2005
|
+
function s(f, h, c) {
|
|
2006
|
+
if (d.isUndefined(h)) {
|
|
2007
|
+
if (!d.isUndefined(f))
|
|
2008
2008
|
return r(void 0, f, c);
|
|
2009
2009
|
} else
|
|
2010
|
-
return r(f,
|
|
2010
|
+
return r(f, h, c);
|
|
2011
2011
|
}
|
|
2012
|
-
function i(f,
|
|
2013
|
-
if (!
|
|
2014
|
-
return r(void 0,
|
|
2012
|
+
function i(f, h) {
|
|
2013
|
+
if (!d.isUndefined(h))
|
|
2014
|
+
return r(void 0, h);
|
|
2015
2015
|
}
|
|
2016
|
-
function o(f,
|
|
2017
|
-
if (
|
|
2018
|
-
if (!
|
|
2016
|
+
function o(f, h) {
|
|
2017
|
+
if (d.isUndefined(h)) {
|
|
2018
|
+
if (!d.isUndefined(f))
|
|
2019
2019
|
return r(void 0, f);
|
|
2020
2020
|
} else
|
|
2021
|
-
return r(void 0,
|
|
2021
|
+
return r(void 0, h);
|
|
2022
2022
|
}
|
|
2023
|
-
function a(f,
|
|
2023
|
+
function a(f, h, c) {
|
|
2024
2024
|
if (c in e)
|
|
2025
|
-
return r(f,
|
|
2025
|
+
return r(f, h);
|
|
2026
2026
|
if (c in t)
|
|
2027
2027
|
return r(void 0, f);
|
|
2028
2028
|
}
|
|
@@ -2055,11 +2055,11 @@ function ee(t, e) {
|
|
|
2055
2055
|
socketPath: o,
|
|
2056
2056
|
responseEncoding: o,
|
|
2057
2057
|
validateStatus: a,
|
|
2058
|
-
headers: (f,
|
|
2058
|
+
headers: (f, h) => s(Ft(f), Ft(h), !0)
|
|
2059
2059
|
};
|
|
2060
|
-
return
|
|
2061
|
-
const c = u[
|
|
2062
|
-
|
|
2060
|
+
return d.forEach(Object.keys(Object.assign({}, t, e)), function(h) {
|
|
2061
|
+
const c = u[h] || s, p = c(t[h], e[h], h);
|
|
2062
|
+
d.isUndefined(p) && c !== a || (n[h] = p);
|
|
2063
2063
|
}), n;
|
|
2064
2064
|
}
|
|
2065
2065
|
const yn = "1.6.5", it = {};
|
|
@@ -2130,17 +2130,17 @@ class be {
|
|
|
2130
2130
|
silentJSONParsing: H.transitional(H.boolean),
|
|
2131
2131
|
forcedJSONParsing: H.transitional(H.boolean),
|
|
2132
2132
|
clarifyTimeoutError: H.transitional(H.boolean)
|
|
2133
|
-
}, !1), s != null && (
|
|
2133
|
+
}, !1), s != null && (d.isFunction(s) ? n.paramsSerializer = {
|
|
2134
2134
|
serialize: s
|
|
2135
2135
|
} : $e.assertOptions(s, {
|
|
2136
2136
|
encode: H.function,
|
|
2137
2137
|
serialize: H.function
|
|
2138
2138
|
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
2139
|
-
let o = i &&
|
|
2139
|
+
let o = i && d.merge(
|
|
2140
2140
|
i.common,
|
|
2141
2141
|
i[n.method]
|
|
2142
2142
|
);
|
|
2143
|
-
i &&
|
|
2143
|
+
i && d.forEach(
|
|
2144
2144
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
2145
2145
|
(m) => {
|
|
2146
2146
|
delete i[m];
|
|
@@ -2155,16 +2155,16 @@ class be {
|
|
|
2155
2155
|
this.interceptors.response.forEach(function(l) {
|
|
2156
2156
|
f.push(l.fulfilled, l.rejected);
|
|
2157
2157
|
});
|
|
2158
|
-
let
|
|
2158
|
+
let h, c = 0, p;
|
|
2159
2159
|
if (!u) {
|
|
2160
2160
|
const m = [Rt.bind(this), void 0];
|
|
2161
|
-
for (m.unshift.apply(m, a), m.push.apply(m, f),
|
|
2162
|
-
|
|
2163
|
-
return
|
|
2161
|
+
for (m.unshift.apply(m, a), m.push.apply(m, f), p = m.length, h = Promise.resolve(n); c < p; )
|
|
2162
|
+
h = h.then(m[c++], m[c++]);
|
|
2163
|
+
return h;
|
|
2164
2164
|
}
|
|
2165
|
-
|
|
2165
|
+
p = a.length;
|
|
2166
2166
|
let b = n;
|
|
2167
|
-
for (c = 0; c <
|
|
2167
|
+
for (c = 0; c < p; ) {
|
|
2168
2168
|
const m = a[c++], l = a[c++];
|
|
2169
2169
|
try {
|
|
2170
2170
|
b = m(b);
|
|
@@ -2174,13 +2174,13 @@ class be {
|
|
|
2174
2174
|
}
|
|
2175
2175
|
}
|
|
2176
2176
|
try {
|
|
2177
|
-
|
|
2177
|
+
h = Rt.call(this, b);
|
|
2178
2178
|
} catch (m) {
|
|
2179
2179
|
return Promise.reject(m);
|
|
2180
2180
|
}
|
|
2181
|
-
for (c = 0,
|
|
2182
|
-
|
|
2183
|
-
return
|
|
2181
|
+
for (c = 0, p = f.length; c < p; )
|
|
2182
|
+
h = h.then(f[c++], f[c++]);
|
|
2183
|
+
return h;
|
|
2184
2184
|
}
|
|
2185
2185
|
getUri(e) {
|
|
2186
2186
|
e = ee(this.defaults, e);
|
|
@@ -2188,7 +2188,7 @@ class be {
|
|
|
2188
2188
|
return un(n, e.params, e.paramsSerializer);
|
|
2189
2189
|
}
|
|
2190
2190
|
}
|
|
2191
|
-
|
|
2191
|
+
d.forEach(["delete", "get", "head", "options"], function(e) {
|
|
2192
2192
|
be.prototype[e] = function(n, r) {
|
|
2193
2193
|
return this.request(ee(r || {}, {
|
|
2194
2194
|
method: e,
|
|
@@ -2197,7 +2197,7 @@ h.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
2197
2197
|
}));
|
|
2198
2198
|
};
|
|
2199
2199
|
});
|
|
2200
|
-
|
|
2200
|
+
d.forEach(["post", "put", "patch"], function(e) {
|
|
2201
2201
|
function n(r) {
|
|
2202
2202
|
return function(i, o, a) {
|
|
2203
2203
|
return this.request(ee(a || {}, {
|
|
@@ -2288,7 +2288,7 @@ function Bs(t) {
|
|
|
2288
2288
|
};
|
|
2289
2289
|
}
|
|
2290
2290
|
function Hs(t) {
|
|
2291
|
-
return
|
|
2291
|
+
return d.isObject(t) && t.isAxiosError === !0;
|
|
2292
2292
|
}
|
|
2293
2293
|
const Ke = {
|
|
2294
2294
|
Continue: 100,
|
|
@@ -2361,7 +2361,7 @@ Object.entries(Ke).forEach(([t, e]) => {
|
|
|
2361
2361
|
const Vs = Ke;
|
|
2362
2362
|
function mn(t) {
|
|
2363
2363
|
const e = new ge(t), n = Gt(ge.prototype.request, e);
|
|
2364
|
-
return
|
|
2364
|
+
return d.extend(n, ge.prototype, e, { allOwnKeys: !0 }), d.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
2365
2365
|
return mn(ee(t, s));
|
|
2366
2366
|
}, n;
|
|
2367
2367
|
}
|
|
@@ -2381,7 +2381,7 @@ F.spread = Bs;
|
|
|
2381
2381
|
F.isAxiosError = Hs;
|
|
2382
2382
|
F.mergeConfig = ee;
|
|
2383
2383
|
F.AxiosHeaders = k;
|
|
2384
|
-
F.formToJSON = (t) => ln(
|
|
2384
|
+
F.formToJSON = (t) => ln(d.isHTMLForm(t) ? new FormData(t) : t);
|
|
2385
2385
|
F.getAdapter = pn.getAdapter;
|
|
2386
2386
|
F.HttpStatusCode = Vs;
|
|
2387
2387
|
F.default = F;
|
|
@@ -2479,13 +2479,13 @@ function vn(t, e) {
|
|
|
2479
2479
|
return t;
|
|
2480
2480
|
const n = qt(t) && qt(e);
|
|
2481
2481
|
if (n || We(t) && We(e)) {
|
|
2482
|
-
const r = n ? t
|
|
2483
|
-
let
|
|
2484
|
-
for (let
|
|
2485
|
-
const
|
|
2486
|
-
|
|
2482
|
+
const r = n ? t : Object.keys(t), s = r.length, i = n ? e : Object.keys(e), o = i.length, a = n ? [] : {};
|
|
2483
|
+
let u = 0;
|
|
2484
|
+
for (let f = 0; f < o; f++) {
|
|
2485
|
+
const h = n ? f : i[f];
|
|
2486
|
+
!n && t[h] === void 0 && e[h] === void 0 && r.includes(h) ? (a[h] = void 0, u++) : (a[h] = vn(t[h], e[h]), a[h] === t[h] && t[h] !== void 0 && u++);
|
|
2487
2487
|
}
|
|
2488
|
-
return
|
|
2488
|
+
return s === o && u === s ? t : a;
|
|
2489
2489
|
}
|
|
2490
2490
|
return e;
|
|
2491
2491
|
}
|
|
@@ -2618,9 +2618,9 @@ function wn(t) {
|
|
|
2618
2618
|
r || (b(new On(g)), t.abort?.());
|
|
2619
2619
|
}, f = () => {
|
|
2620
2620
|
e = !0;
|
|
2621
|
-
},
|
|
2621
|
+
}, h = () => {
|
|
2622
2622
|
e = !1;
|
|
2623
|
-
}, c = () => !Oe.isFocused() || t.networkMode !== "always" && !te.isOnline(),
|
|
2623
|
+
}, c = () => !Oe.isFocused() || t.networkMode !== "always" && !te.isOnline(), p = (g) => {
|
|
2624
2624
|
r || (r = !0, t.onSuccess?.(g), s?.(), i(g));
|
|
2625
2625
|
}, b = (g) => {
|
|
2626
2626
|
r || (r = !0, t.onError?.(g), s?.(), o(g));
|
|
@@ -2640,7 +2640,7 @@ function wn(t) {
|
|
|
2640
2640
|
} catch (y) {
|
|
2641
2641
|
g = Promise.reject(y);
|
|
2642
2642
|
}
|
|
2643
|
-
Promise.resolve(g).then(
|
|
2643
|
+
Promise.resolve(g).then(p).catch((y) => {
|
|
2644
2644
|
if (r)
|
|
2645
2645
|
return;
|
|
2646
2646
|
const O = t.retry ?? (W ? 0 : 3), v = t.retryDelay ?? Ys, w = typeof v == "function" ? v(n, y) : v, R = O === !0 || typeof O == "number" && n < O || typeof O == "function" && O(n, y);
|
|
@@ -2661,39 +2661,39 @@ function wn(t) {
|
|
|
2661
2661
|
cancel: u,
|
|
2662
2662
|
continue: () => s?.() ? a : Promise.resolve(),
|
|
2663
2663
|
cancelRetry: f,
|
|
2664
|
-
continueRetry:
|
|
2664
|
+
continueRetry: h
|
|
2665
2665
|
};
|
|
2666
2666
|
}
|
|
2667
2667
|
function Zs() {
|
|
2668
|
-
let t = [], e = 0, n = (
|
|
2669
|
-
|
|
2670
|
-
}, r = (
|
|
2671
|
-
|
|
2672
|
-
}, s = (
|
|
2673
|
-
const i = (
|
|
2674
|
-
s =
|
|
2675
|
-
}, o = (
|
|
2668
|
+
let t = [], e = 0, n = (p) => {
|
|
2669
|
+
p();
|
|
2670
|
+
}, r = (p) => {
|
|
2671
|
+
p();
|
|
2672
|
+
}, s = (p) => setTimeout(p, 0);
|
|
2673
|
+
const i = (p) => {
|
|
2674
|
+
s = p;
|
|
2675
|
+
}, o = (p) => {
|
|
2676
2676
|
let b;
|
|
2677
2677
|
e++;
|
|
2678
2678
|
try {
|
|
2679
|
-
b =
|
|
2679
|
+
b = p();
|
|
2680
2680
|
} finally {
|
|
2681
2681
|
e--, e || f();
|
|
2682
2682
|
}
|
|
2683
2683
|
return b;
|
|
2684
|
-
}, a = (
|
|
2685
|
-
e ? t.push(
|
|
2686
|
-
n(
|
|
2684
|
+
}, a = (p) => {
|
|
2685
|
+
e ? t.push(p) : s(() => {
|
|
2686
|
+
n(p);
|
|
2687
2687
|
});
|
|
2688
|
-
}, u = (
|
|
2688
|
+
}, u = (p) => (...b) => {
|
|
2689
2689
|
a(() => {
|
|
2690
|
-
|
|
2690
|
+
p(...b);
|
|
2691
2691
|
});
|
|
2692
2692
|
}, f = () => {
|
|
2693
|
-
const
|
|
2694
|
-
t = [],
|
|
2693
|
+
const p = t;
|
|
2694
|
+
t = [], p.length && s(() => {
|
|
2695
2695
|
r(() => {
|
|
2696
|
-
|
|
2696
|
+
p.forEach((b) => {
|
|
2697
2697
|
n(b);
|
|
2698
2698
|
});
|
|
2699
2699
|
});
|
|
@@ -2703,11 +2703,11 @@ function Zs() {
|
|
|
2703
2703
|
batch: o,
|
|
2704
2704
|
batchCalls: u,
|
|
2705
2705
|
schedule: a,
|
|
2706
|
-
setNotifyFunction: (
|
|
2707
|
-
n =
|
|
2706
|
+
setNotifyFunction: (p) => {
|
|
2707
|
+
n = p;
|
|
2708
2708
|
},
|
|
2709
|
-
setBatchNotifyFunction: (
|
|
2710
|
-
r =
|
|
2709
|
+
setBatchNotifyFunction: (p) => {
|
|
2710
|
+
r = p;
|
|
2711
2711
|
},
|
|
2712
2712
|
setScheduler: i
|
|
2713
2713
|
};
|
|
@@ -3311,7 +3311,7 @@ function ri(t) {
|
|
|
3311
3311
|
const r = async () => {
|
|
3312
3312
|
const s = e.options, i = e.fetchOptions?.meta?.fetchMore?.direction, o = e.state.data?.pages || [], a = e.state.data?.pageParams || [], u = { pages: [], pageParams: [] };
|
|
3313
3313
|
let f = !1;
|
|
3314
|
-
const
|
|
3314
|
+
const h = (m) => {
|
|
3315
3315
|
Object.defineProperty(m, "signal", {
|
|
3316
3316
|
enumerable: !0,
|
|
3317
3317
|
get: () => (e.signal.aborted ? f = !0 : e.signal.addEventListener("abort", () => {
|
|
@@ -3320,7 +3320,7 @@ function ri(t) {
|
|
|
3320
3320
|
});
|
|
3321
3321
|
}, c = e.options.queryFn || (() => Promise.reject(
|
|
3322
3322
|
new Error(`Missing queryFn: '${e.options.queryHash}'`)
|
|
3323
|
-
)),
|
|
3323
|
+
)), p = async (m, l, g) => {
|
|
3324
3324
|
if (f)
|
|
3325
3325
|
return Promise.reject();
|
|
3326
3326
|
if (l == null && m.pages.length)
|
|
@@ -3331,7 +3331,7 @@ function ri(t) {
|
|
|
3331
3331
|
direction: g ? "backward" : "forward",
|
|
3332
3332
|
meta: e.options.meta
|
|
3333
3333
|
};
|
|
3334
|
-
|
|
3334
|
+
h(y);
|
|
3335
3335
|
const O = await c(
|
|
3336
3336
|
y
|
|
3337
3337
|
), { maxPages: v } = e.options, w = g ? Gs : Ws;
|
|
@@ -3346,16 +3346,16 @@ function ri(t) {
|
|
|
3346
3346
|
pages: o,
|
|
3347
3347
|
pageParams: a
|
|
3348
3348
|
}, y = l(s, g);
|
|
3349
|
-
b = await
|
|
3349
|
+
b = await p(g, y, m);
|
|
3350
3350
|
} else {
|
|
3351
|
-
b = await
|
|
3351
|
+
b = await p(
|
|
3352
3352
|
u,
|
|
3353
3353
|
a[0] ?? s.initialPageParam
|
|
3354
3354
|
);
|
|
3355
3355
|
const m = t ?? o.length;
|
|
3356
3356
|
for (let l = 1; l < m; l++) {
|
|
3357
3357
|
const g = _t(s, b);
|
|
3358
|
-
b = await
|
|
3358
|
+
b = await p(b, g);
|
|
3359
3359
|
}
|
|
3360
3360
|
}
|
|
3361
3361
|
return b;
|
|
@@ -3715,10 +3715,10 @@ var ii = class {
|
|
|
3715
3715
|
}
|
|
3716
3716
|
createResult(t, e) {
|
|
3717
3717
|
const n = this.#t, r = this.options, s = this.#r, i = this.#s, o = this.#i, u = t !== n ? t.state : this.#n, { state: f } = t;
|
|
3718
|
-
let { error:
|
|
3718
|
+
let { error: h, errorUpdatedAt: c, fetchStatus: p, status: b } = f, m = !1, l;
|
|
3719
3719
|
if (e._optimisticResults) {
|
|
3720
3720
|
const R = this.hasListeners(), C = !R && Ut(t, e), Q = R && Nt(t, n, e, r);
|
|
3721
|
-
(C || Q) && (
|
|
3721
|
+
(C || Q) && (p = Ce(t.options.networkMode) ? "fetching" : "paused", f.dataUpdatedAt || (b = "pending")), e._optimisticResults === "isRestoring" && (p = "idle");
|
|
3722
3722
|
}
|
|
3723
3723
|
if (e.select && typeof f.data < "u")
|
|
3724
3724
|
if (s && f.data === i?.data && e.select === this.#u)
|
|
@@ -3750,11 +3750,11 @@ var ii = class {
|
|
|
3750
3750
|
e
|
|
3751
3751
|
), m = !0);
|
|
3752
3752
|
}
|
|
3753
|
-
this.#o && (
|
|
3754
|
-
const g =
|
|
3753
|
+
this.#o && (h = this.#o, l = this.#c, c = Date.now(), b = "error");
|
|
3754
|
+
const g = p === "fetching", y = b === "pending", O = b === "error", v = y && g;
|
|
3755
3755
|
return {
|
|
3756
3756
|
status: b,
|
|
3757
|
-
fetchStatus:
|
|
3757
|
+
fetchStatus: p,
|
|
3758
3758
|
isPending: y,
|
|
3759
3759
|
isSuccess: b === "success",
|
|
3760
3760
|
isError: O,
|
|
@@ -3762,7 +3762,7 @@ var ii = class {
|
|
|
3762
3762
|
isLoading: v,
|
|
3763
3763
|
data: l,
|
|
3764
3764
|
dataUpdatedAt: f.dataUpdatedAt,
|
|
3765
|
-
error:
|
|
3765
|
+
error: h,
|
|
3766
3766
|
errorUpdatedAt: c,
|
|
3767
3767
|
failureCount: f.fetchFailureCount,
|
|
3768
3768
|
failureReason: f.fetchFailureReason,
|
|
@@ -3772,7 +3772,7 @@ var ii = class {
|
|
|
3772
3772
|
isFetching: g,
|
|
3773
3773
|
isRefetching: g && !y,
|
|
3774
3774
|
isLoadingError: O && f.dataUpdatedAt === 0,
|
|
3775
|
-
isPaused:
|
|
3775
|
+
isPaused: p === "paused",
|
|
3776
3776
|
isPlaceholderData: m,
|
|
3777
3777
|
isRefetchError: O && f.dataUpdatedAt !== 0,
|
|
3778
3778
|
isStale: ut(t, e),
|
|
@@ -4615,10 +4615,10 @@ function Si(t, e, n) {
|
|
|
4615
4615
|
let u = It(a.itemValue, e, n);
|
|
4616
4616
|
const {
|
|
4617
4617
|
minRanking: f,
|
|
4618
|
-
maxRanking:
|
|
4618
|
+
maxRanking: h,
|
|
4619
4619
|
threshold: c = n.threshold
|
|
4620
4620
|
} = a.attributes;
|
|
4621
|
-
u < f && u >= x.MATCHES ? u = f : u >
|
|
4621
|
+
u < f && u >= x.MATCHES ? u = f : u > h && (u = h), u = Math.min(u, h), u >= c && u > i.rank && (i.rank = u, i.passed = !0, i.accessorIndex = o, i.accessorThreshold = c, i.rankedValue = a.itemValue);
|
|
4622
4622
|
}
|
|
4623
4623
|
return i;
|
|
4624
4624
|
}
|
|
@@ -4635,23 +4635,23 @@ function Ri(t) {
|
|
|
4635
4635
|
}
|
|
4636
4636
|
function Fi(t, e) {
|
|
4637
4637
|
let n = 0, r = 0;
|
|
4638
|
-
function s(u, f,
|
|
4639
|
-
for (let c =
|
|
4638
|
+
function s(u, f, h) {
|
|
4639
|
+
for (let c = h, p = f.length; c < p; c++)
|
|
4640
4640
|
if (f[c] === u)
|
|
4641
4641
|
return n += 1, c + 1;
|
|
4642
4642
|
return -1;
|
|
4643
4643
|
}
|
|
4644
4644
|
function i(u) {
|
|
4645
|
-
const f = 1 / u,
|
|
4646
|
-
return x.MATCHES +
|
|
4645
|
+
const f = 1 / u, h = n / e.length;
|
|
4646
|
+
return x.MATCHES + h * f;
|
|
4647
4647
|
}
|
|
4648
4648
|
const o = s(e[0], t, 0);
|
|
4649
4649
|
if (o < 0)
|
|
4650
4650
|
return x.NO_MATCH;
|
|
4651
4651
|
r = o;
|
|
4652
4652
|
for (let u = 1, f = e.length; u < f; u++) {
|
|
4653
|
-
const
|
|
4654
|
-
if (r = s(
|
|
4653
|
+
const h = e[u];
|
|
4654
|
+
if (r = s(h, t, r), !(r > -1))
|
|
4655
4655
|
return x.NO_MATCH;
|
|
4656
4656
|
}
|
|
4657
4657
|
const a = r - o;
|
|
@@ -4849,25 +4849,25 @@ function Ui(t, e) {
|
|
|
4849
4849
|
i.key === "onlineMode" && te.setOnline(!!i.newValue);
|
|
4850
4850
|
}), n.on.getInspectorTree((i) => {
|
|
4851
4851
|
if (i.inspectorId === V) {
|
|
4852
|
-
const o = s.getAll(), a = n.getSettings(),
|
|
4852
|
+
const o = s.getAll(), a = n.getSettings(), h = (i.filter ? o.filter(
|
|
4853
4853
|
(c) => Si(c.queryHash, i.filter).passed
|
|
4854
4854
|
) : [...o]).sort(
|
|
4855
|
-
(c,
|
|
4855
|
+
(c, p) => Ue[a.sortFn](c, p) * a.baseSort
|
|
4856
4856
|
).map((c) => {
|
|
4857
|
-
const
|
|
4857
|
+
const p = jt(c);
|
|
4858
4858
|
return {
|
|
4859
4859
|
id: c.queryHash,
|
|
4860
4860
|
label: c.queryHash,
|
|
4861
4861
|
tags: [
|
|
4862
4862
|
{
|
|
4863
|
-
label: `${
|
|
4863
|
+
label: `${p} [${c.getObserversCount()}]`,
|
|
4864
4864
|
textColor: xi(c),
|
|
4865
4865
|
backgroundColor: qi(c)
|
|
4866
4866
|
}
|
|
4867
4867
|
]
|
|
4868
4868
|
};
|
|
4869
4869
|
});
|
|
4870
|
-
i.rootNodes =
|
|
4870
|
+
i.rootNodes = h;
|
|
4871
4871
|
}
|
|
4872
4872
|
}), n.on.getInspectorState((i) => {
|
|
4873
4873
|
if (i.inspectorId === V) {
|
|
@@ -4950,17 +4950,17 @@ function Ni(t, e, n) {
|
|
|
4950
4950
|
'vue-query composables like "useQuery()" should only be used inside a "setup()" function or a running effect scope. They might otherwise lead to memory leaks.'
|
|
4951
4951
|
));
|
|
4952
4952
|
const r = n || Pn(), s = $(() => {
|
|
4953
|
-
const
|
|
4954
|
-
typeof
|
|
4955
|
-
const b = r.defaultQueryOptions(
|
|
4953
|
+
const p = E(e);
|
|
4954
|
+
typeof p.enabled == "function" && (p.enabled = p.enabled());
|
|
4955
|
+
const b = r.defaultQueryOptions(p);
|
|
4956
4956
|
return b._optimisticResults = r.isRestoring.value ? "isRestoring" : "optimistic", b;
|
|
4957
4957
|
}), i = new t(r, s.value), o = Bt(i.getCurrentResult());
|
|
4958
4958
|
let a = () => {
|
|
4959
4959
|
};
|
|
4960
4960
|
N(
|
|
4961
4961
|
r.isRestoring,
|
|
4962
|
-
(
|
|
4963
|
-
|
|
4962
|
+
(p) => {
|
|
4963
|
+
p || (a(), a = i.subscribe((b) => {
|
|
4964
4964
|
Xe(o, b);
|
|
4965
4965
|
}));
|
|
4966
4966
|
},
|
|
@@ -4972,8 +4972,8 @@ function Ni(t, e, n) {
|
|
|
4972
4972
|
N(s, u), Ht(() => {
|
|
4973
4973
|
a();
|
|
4974
4974
|
});
|
|
4975
|
-
const f = (...
|
|
4976
|
-
(
|
|
4975
|
+
const f = (...p) => (u(), o.refetch(...p)), h = () => new Promise(
|
|
4976
|
+
(p, b) => {
|
|
4977
4977
|
let m = () => {
|
|
4978
4978
|
};
|
|
4979
4979
|
const l = () => {
|
|
@@ -4982,7 +4982,7 @@ function Ni(t, e, n) {
|
|
|
4982
4982
|
const g = i.getOptimisticResult(
|
|
4983
4983
|
s.value
|
|
4984
4984
|
);
|
|
4985
|
-
g.isStale ? (m(), i.fetchOptimistic(s.value).then(
|
|
4985
|
+
g.isStale ? (m(), i.fetchOptimistic(s.value).then(p, b)) : (m(), p(g));
|
|
4986
4986
|
}
|
|
4987
4987
|
};
|
|
4988
4988
|
l(), m = N(s, l);
|
|
@@ -4990,18 +4990,18 @@ function Ni(t, e, n) {
|
|
|
4990
4990
|
);
|
|
4991
4991
|
N(
|
|
4992
4992
|
() => o.error,
|
|
4993
|
-
(
|
|
4993
|
+
(p) => {
|
|
4994
4994
|
if (o.isError && !o.isFetching && Cn(s.value.throwOnError, [
|
|
4995
|
-
|
|
4995
|
+
p,
|
|
4996
4996
|
i.getCurrentQuery()
|
|
4997
4997
|
]))
|
|
4998
|
-
throw
|
|
4998
|
+
throw p;
|
|
4999
4999
|
}
|
|
5000
5000
|
);
|
|
5001
5001
|
const c = Vt(we(o));
|
|
5002
|
-
for (const
|
|
5003
|
-
typeof o[
|
|
5004
|
-
return c.suspense =
|
|
5002
|
+
for (const p in o)
|
|
5003
|
+
typeof o[p] == "function" && (c[p] = o[p]);
|
|
5004
|
+
return c.suspense = h, c.refetch = f, c;
|
|
5005
5005
|
}
|
|
5006
5006
|
function io(t, e) {
|
|
5007
5007
|
return Ni(oi, t, e);
|
|
@@ -5012,8 +5012,8 @@ function oo(t, e) {
|
|
|
5012
5012
|
));
|
|
5013
5013
|
const n = e || Pn(), r = $(() => n.defaultMutationOptions(E(t))), s = new ci(n, r.value), i = Bt(s.getCurrentResult()), o = s.subscribe((f) => {
|
|
5014
5014
|
Xe(i, f);
|
|
5015
|
-
}), a = (f,
|
|
5016
|
-
s.mutate(f,
|
|
5015
|
+
}), a = (f, h) => {
|
|
5016
|
+
s.mutate(f, h).catch(() => {
|
|
5017
5017
|
});
|
|
5018
5018
|
};
|
|
5019
5019
|
N(r, () => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mhz-helpers",
|
|
3
3
|
"description": "9000 Mhz frontend helpers and composables",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.40",
|
|
5
5
|
"author": "Alexandr Dergunov <dergunovs@mail.ru> (https://github.com/dergunovs)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
"ts": "vue-tsc --noEmit"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@tanstack/vue-query": "5.17.
|
|
26
|
-
"@vueuse/core": "10.7.
|
|
27
|
-
"@vueuse/integrations": "10.7.
|
|
25
|
+
"@tanstack/vue-query": "5.17.15",
|
|
26
|
+
"@vueuse/core": "10.7.2",
|
|
27
|
+
"@vueuse/integrations": "10.7.2",
|
|
28
28
|
"async-validator": "4.2.5",
|
|
29
29
|
"axios": "1.6.5",
|
|
30
|
-
"vue": "3.4.
|
|
30
|
+
"vue": "3.4.15",
|
|
31
31
|
"vue-router": "4.2.5"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@types/node": "20.11.
|
|
35
|
-
"@typescript-eslint/eslint-plugin": "6.
|
|
36
|
-
"@typescript-eslint/parser": "6.
|
|
34
|
+
"@types/node": "20.11.5",
|
|
35
|
+
"@typescript-eslint/eslint-plugin": "6.19.0",
|
|
36
|
+
"@typescript-eslint/parser": "6.19.0",
|
|
37
37
|
"@vitejs/plugin-vue": "5.0.3",
|
|
38
38
|
"eslint": "8.56.0",
|
|
39
39
|
"eslint-config-prettier": "9.1.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"eslint-plugin-prettier": "5.1.3",
|
|
43
43
|
"eslint-plugin-vue": "9.20.1",
|
|
44
44
|
"postcss-html": "1.6.0",
|
|
45
|
-
"prettier": "3.2.
|
|
45
|
+
"prettier": "3.2.4",
|
|
46
46
|
"stylelint": "16.1.0",
|
|
47
47
|
"stylelint-config-recess-order": "4.4.0",
|
|
48
48
|
"stylelint-config-recommended-scss": "14.0.0",
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"stylelint-prettier": "5.0.0",
|
|
51
51
|
"typescript": "5.3.3",
|
|
52
52
|
"vite": "5.0.11",
|
|
53
|
-
"vite-plugin-dts": "3.7.
|
|
53
|
+
"vite-plugin-dts": "3.7.1",
|
|
54
54
|
"vue-linters-config": "0.1.13",
|
|
55
55
|
"vue-tsc": "1.8.27"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"vue": "3.4.
|
|
58
|
+
"vue": "3.4.15",
|
|
59
59
|
"vue-router": "4.2.5"
|
|
60
60
|
},
|
|
61
61
|
"engines": {
|