@akad/sdk 1.0.11 → 1.0.12
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/authAkad/index.d.ts +8 -0
- package/authAkad/index.test.d.ts +1 -0
- package/authAkad/types.d.ts +34 -0
- package/main.d.ts +7 -0
- package/package.json +1 -1
- package/quotation/index.d.ts +3 -1
- package/quotation/quotationType.d.ts +35 -0
- package/ts-lib.js +360 -320
- package/ts-lib.umd.cjs +5 -5
package/ts-lib.js
CHANGED
|
@@ -3,10 +3,10 @@ function xe(e, t) {
|
|
|
3
3
|
return e.apply(t, arguments);
|
|
4
4
|
};
|
|
5
5
|
}
|
|
6
|
-
const { toString: Ye } = Object.prototype, { getPrototypeOf: ue } = Object,
|
|
6
|
+
const { toString: Ye } = Object.prototype, { getPrototypeOf: ue } = Object, G = /* @__PURE__ */ ((e) => (t) => {
|
|
7
7
|
const n = Ye.call(t);
|
|
8
8
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
9
|
-
})(/* @__PURE__ */ Object.create(null)), A = (e) => (e = e.toLowerCase(), (t) =>
|
|
9
|
+
})(/* @__PURE__ */ Object.create(null)), A = (e) => (e = e.toLowerCase(), (t) => G(t) === e), K = (e) => (t) => typeof t === e, { isArray: k } = Array, j = K("undefined");
|
|
10
10
|
function et(e) {
|
|
11
11
|
return e !== null && !j(e) && e.constructor !== null && !j(e.constructor) && T(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
12
12
|
}
|
|
@@ -15,14 +15,14 @@ function tt(e) {
|
|
|
15
15
|
let t;
|
|
16
16
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Be(e.buffer), t;
|
|
17
17
|
}
|
|
18
|
-
const nt =
|
|
19
|
-
if (
|
|
18
|
+
const nt = K("string"), T = K("function"), Fe = K("number"), W = (e) => e !== null && typeof e == "object", rt = (e) => e === !0 || e === !1, J = (e) => {
|
|
19
|
+
if (G(e) !== "object")
|
|
20
20
|
return !1;
|
|
21
21
|
const t = ue(e);
|
|
22
22
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
23
23
|
}, st = A("Date"), ot = A("File"), it = A("Blob"), at = A("FileList"), ct = (e) => W(e) && T(e.pipe), ut = (e) => {
|
|
24
24
|
let t;
|
|
25
|
-
return e && (typeof FormData == "function" && e instanceof FormData || T(e.append) && ((t =
|
|
25
|
+
return e && (typeof FormData == "function" && e instanceof FormData || T(e.append) && ((t = G(e)) === "formdata" || // detect form-data instance
|
|
26
26
|
t === "object" && T(e.toString) && e.toString() === "[object FormData]"));
|
|
27
27
|
}, lt = A("URLSearchParams"), [ft, dt, pt, ht] = ["ReadableStream", "Request", "Response", "Headers"].map(A), mt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
28
28
|
function I(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
@@ -34,9 +34,9 @@ function I(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
34
34
|
t.call(null, e[r], r, e);
|
|
35
35
|
else {
|
|
36
36
|
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
|
|
37
|
-
let
|
|
37
|
+
let u;
|
|
38
38
|
for (r = 0; r < i; r++)
|
|
39
|
-
|
|
39
|
+
u = o[r], t.call(null, e[u], u, e);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
function Le(e, t) {
|
|
@@ -48,11 +48,11 @@ function Le(e, t) {
|
|
|
48
48
|
return s;
|
|
49
49
|
return null;
|
|
50
50
|
}
|
|
51
|
-
const
|
|
51
|
+
const qe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ke = (e) => !j(e) && e !== qe;
|
|
52
52
|
function ne() {
|
|
53
53
|
const { caseless: e } = ke(this) && this || {}, t = {}, n = (r, s) => {
|
|
54
54
|
const o = e && Le(t, s) || s;
|
|
55
|
-
|
|
55
|
+
J(t[o]) && J(r) ? t[o] = ne(t[o], r) : J(r) ? t[o] = ne({}, r) : k(r) ? t[o] = r.slice() : t[o] = r;
|
|
56
56
|
};
|
|
57
57
|
for (let r = 0, s = arguments.length; r < s; r++)
|
|
58
58
|
arguments[r] && I(arguments[r], n);
|
|
@@ -64,22 +64,22 @@ const yt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
|
|
|
64
64
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
65
65
|
value: t.prototype
|
|
66
66
|
}), n && Object.assign(e.prototype, n);
|
|
67
|
-
},
|
|
67
|
+
}, gt = (e, t, n, r) => {
|
|
68
68
|
let s, o, i;
|
|
69
|
-
const
|
|
69
|
+
const u = {};
|
|
70
70
|
if (t = t || {}, e == null)
|
|
71
71
|
return t;
|
|
72
72
|
do {
|
|
73
73
|
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
74
|
-
i = s[o], (!r || r(i, e, t)) && !
|
|
74
|
+
i = s[o], (!r || r(i, e, t)) && !u[i] && (t[i] = e[i], u[i] = !0);
|
|
75
75
|
e = n !== !1 && ue(e);
|
|
76
76
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
77
77
|
return t;
|
|
78
|
-
},
|
|
78
|
+
}, St = (e, t, n) => {
|
|
79
79
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
80
80
|
const r = e.indexOf(t, n);
|
|
81
81
|
return r !== -1 && r === n;
|
|
82
|
-
},
|
|
82
|
+
}, Et = (e) => {
|
|
83
83
|
if (!e)
|
|
84
84
|
return null;
|
|
85
85
|
if (k(e))
|
|
@@ -109,14 +109,14 @@ const yt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
|
|
|
109
109
|
function(n, r, s) {
|
|
110
110
|
return r.toUpperCase() + s;
|
|
111
111
|
}
|
|
112
|
-
), me = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Pt = A("RegExp"),
|
|
112
|
+
), me = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Pt = A("RegExp"), _e = (e, t) => {
|
|
113
113
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
114
114
|
I(n, (s, o) => {
|
|
115
115
|
let i;
|
|
116
116
|
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
117
117
|
}), Object.defineProperties(e, r);
|
|
118
118
|
}, Ct = (e) => {
|
|
119
|
-
|
|
119
|
+
_e(e, (t, n) => {
|
|
120
120
|
if (T(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
121
121
|
return !1;
|
|
122
122
|
const r = e[n];
|
|
@@ -138,18 +138,18 @@ const yt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
|
|
|
138
138
|
};
|
|
139
139
|
return k(e) ? r(e) : r(String(e).split(t)), n;
|
|
140
140
|
}, Bt = () => {
|
|
141
|
-
}, Ft = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, X = "abcdefghijklmnopqrstuvwxyz", ye = "0123456789",
|
|
141
|
+
}, Ft = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, X = "abcdefghijklmnopqrstuvwxyz", ye = "0123456789", De = {
|
|
142
142
|
DIGIT: ye,
|
|
143
143
|
ALPHA: X,
|
|
144
144
|
ALPHA_DIGIT: X + X.toUpperCase() + ye
|
|
145
|
-
}, Lt = (e = 16, t =
|
|
145
|
+
}, Lt = (e = 16, t = De.ALPHA_DIGIT) => {
|
|
146
146
|
let n = "";
|
|
147
147
|
const { length: r } = t;
|
|
148
148
|
for (; e--; )
|
|
149
149
|
n += t[Math.random() * r | 0];
|
|
150
150
|
return n;
|
|
151
151
|
};
|
|
152
|
-
function
|
|
152
|
+
function qt(e) {
|
|
153
153
|
return !!(e && T(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
154
154
|
}
|
|
155
155
|
const kt = (e) => {
|
|
@@ -160,16 +160,16 @@ const kt = (e) => {
|
|
|
160
160
|
if (!("toJSON" in r)) {
|
|
161
161
|
t[s] = r;
|
|
162
162
|
const o = k(r) ? [] : {};
|
|
163
|
-
return I(r, (i,
|
|
163
|
+
return I(r, (i, u) => {
|
|
164
164
|
const f = n(i, s + 1);
|
|
165
|
-
!j(f) && (o[
|
|
165
|
+
!j(f) && (o[u] = f);
|
|
166
166
|
}), t[s] = void 0, o;
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
return r;
|
|
170
170
|
};
|
|
171
171
|
return n(e, 0);
|
|
172
|
-
},
|
|
172
|
+
}, _t = A("AsyncFunction"), Dt = (e) => e && (W(e) || T(e)) && T(e.then) && T(e.catch), a = {
|
|
173
173
|
isArray: k,
|
|
174
174
|
isArrayBuffer: Be,
|
|
175
175
|
isBuffer: et,
|
|
@@ -179,7 +179,7 @@ const kt = (e) => {
|
|
|
179
179
|
isNumber: Fe,
|
|
180
180
|
isBoolean: rt,
|
|
181
181
|
isObject: W,
|
|
182
|
-
isPlainObject:
|
|
182
|
+
isPlainObject: J,
|
|
183
183
|
isReadableStream: ft,
|
|
184
184
|
isRequest: dt,
|
|
185
185
|
isResponse: pt,
|
|
@@ -200,32 +200,32 @@ const kt = (e) => {
|
|
|
200
200
|
trim: mt,
|
|
201
201
|
stripBOM: bt,
|
|
202
202
|
inherits: wt,
|
|
203
|
-
toFlatObject:
|
|
204
|
-
kindOf:
|
|
203
|
+
toFlatObject: gt,
|
|
204
|
+
kindOf: G,
|
|
205
205
|
kindOfTest: A,
|
|
206
|
-
endsWith:
|
|
207
|
-
toArray:
|
|
206
|
+
endsWith: St,
|
|
207
|
+
toArray: Et,
|
|
208
208
|
forEachEntry: Tt,
|
|
209
209
|
matchAll: Ot,
|
|
210
210
|
isHTMLForm: At,
|
|
211
211
|
hasOwnProperty: me,
|
|
212
212
|
hasOwnProp: me,
|
|
213
213
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
214
|
-
reduceDescriptors:
|
|
214
|
+
reduceDescriptors: _e,
|
|
215
215
|
freezeMethods: Ct,
|
|
216
216
|
toObjectSet: xt,
|
|
217
217
|
toCamelCase: Nt,
|
|
218
218
|
noop: Bt,
|
|
219
219
|
toFiniteNumber: Ft,
|
|
220
220
|
findKey: Le,
|
|
221
|
-
global:
|
|
221
|
+
global: qe,
|
|
222
222
|
isContextDefined: ke,
|
|
223
|
-
ALPHABET:
|
|
223
|
+
ALPHABET: De,
|
|
224
224
|
generateString: Lt,
|
|
225
|
-
isSpecCompliantForm:
|
|
225
|
+
isSpecCompliantForm: qt,
|
|
226
226
|
toJSONObject: kt,
|
|
227
|
-
isAsyncFn:
|
|
228
|
-
isThenable:
|
|
227
|
+
isAsyncFn: _t,
|
|
228
|
+
isThenable: Dt
|
|
229
229
|
};
|
|
230
230
|
function h(e, t, n, r, s) {
|
|
231
231
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s);
|
|
@@ -275,7 +275,7 @@ h.from = (e, t, n, r, s, o) => {
|
|
|
275
275
|
const i = Object.create(Ue);
|
|
276
276
|
return a.toFlatObject(e, i, function(f) {
|
|
277
277
|
return f !== Error.prototype;
|
|
278
|
-
}, (
|
|
278
|
+
}, (u) => u !== "isAxiosError"), h.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
|
|
279
279
|
};
|
|
280
280
|
const Ut = null;
|
|
281
281
|
function re(e) {
|
|
@@ -295,17 +295,17 @@ function jt(e) {
|
|
|
295
295
|
const It = a.toFlatObject(a, {}, null, function(t) {
|
|
296
296
|
return /^is[A-Z]/.test(t);
|
|
297
297
|
});
|
|
298
|
-
function
|
|
298
|
+
function Q(e, t, n) {
|
|
299
299
|
if (!a.isObject(e))
|
|
300
300
|
throw new TypeError("target must be an object");
|
|
301
301
|
t = t || new FormData(), n = a.toFlatObject(n, {
|
|
302
302
|
metaTokens: !0,
|
|
303
303
|
dots: !1,
|
|
304
304
|
indexes: !1
|
|
305
|
-
}, !1, function(m,
|
|
306
|
-
return !a.isUndefined(
|
|
305
|
+
}, !1, function(m, S) {
|
|
306
|
+
return !a.isUndefined(S[m]);
|
|
307
307
|
});
|
|
308
|
-
const r = n.metaTokens, s = n.visitor ||
|
|
308
|
+
const r = n.metaTokens, s = n.visitor || c, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
|
|
309
309
|
if (!a.isFunction(s))
|
|
310
310
|
throw new TypeError("visitor must be a function");
|
|
311
311
|
function l(p) {
|
|
@@ -317,24 +317,24 @@ function v(e, t, n) {
|
|
|
317
317
|
throw new h("Blob is not supported. Use a Buffer instead.");
|
|
318
318
|
return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
321
|
-
let
|
|
322
|
-
if (p && !
|
|
320
|
+
function c(p, m, S) {
|
|
321
|
+
let E = p;
|
|
322
|
+
if (p && !S && typeof p == "object") {
|
|
323
323
|
if (a.endsWith(m, "{}"))
|
|
324
324
|
m = r ? m : m.slice(0, -2), p = JSON.stringify(p);
|
|
325
|
-
else if (a.isArray(p) && jt(p) || (a.isFileList(p) || a.endsWith(m, "[]")) && (
|
|
326
|
-
return m = Ie(m),
|
|
325
|
+
else if (a.isArray(p) && jt(p) || (a.isFileList(p) || a.endsWith(m, "[]")) && (E = a.toArray(p)))
|
|
326
|
+
return m = Ie(m), E.forEach(function(w, D) {
|
|
327
327
|
!(a.isUndefined(w) || w === null) && t.append(
|
|
328
328
|
// eslint-disable-next-line no-nested-ternary
|
|
329
|
-
i === !0 ? be([m],
|
|
329
|
+
i === !0 ? be([m], D, o) : i === null ? m : m + "[]",
|
|
330
330
|
l(w)
|
|
331
331
|
);
|
|
332
332
|
}), !1;
|
|
333
333
|
}
|
|
334
|
-
return re(p) ? !0 : (t.append(be(
|
|
334
|
+
return re(p) ? !0 : (t.append(be(S, m, o), l(p)), !1);
|
|
335
335
|
}
|
|
336
336
|
const d = [], b = Object.assign(It, {
|
|
337
|
-
defaultVisitor:
|
|
337
|
+
defaultVisitor: c,
|
|
338
338
|
convertValue: l,
|
|
339
339
|
isVisitable: re
|
|
340
340
|
});
|
|
@@ -342,14 +342,14 @@ function v(e, t, n) {
|
|
|
342
342
|
if (!a.isUndefined(p)) {
|
|
343
343
|
if (d.indexOf(p) !== -1)
|
|
344
344
|
throw Error("Circular reference detected in " + m.join("."));
|
|
345
|
-
d.push(p), a.forEach(p, function(
|
|
346
|
-
(!(a.isUndefined(
|
|
345
|
+
d.push(p), a.forEach(p, function(E, P) {
|
|
346
|
+
(!(a.isUndefined(E) || E === null) && s.call(
|
|
347
347
|
t,
|
|
348
|
-
|
|
349
|
-
a.isString(
|
|
348
|
+
E,
|
|
349
|
+
a.isString(P) ? P.trim() : P,
|
|
350
350
|
m,
|
|
351
351
|
b
|
|
352
|
-
)) === !0 && y(
|
|
352
|
+
)) === !0 && y(E, m ? m.concat(P) : [P]);
|
|
353
353
|
}), d.pop();
|
|
354
354
|
}
|
|
355
355
|
}
|
|
@@ -372,7 +372,7 @@ function we(e) {
|
|
|
372
372
|
});
|
|
373
373
|
}
|
|
374
374
|
function le(e, t) {
|
|
375
|
-
this._pairs = [], e &&
|
|
375
|
+
this._pairs = [], e && Q(e, this, t);
|
|
376
376
|
}
|
|
377
377
|
const $e = le.prototype;
|
|
378
378
|
$e.append = function(t, n) {
|
|
@@ -400,7 +400,7 @@ function He(e, t, n) {
|
|
|
400
400
|
}
|
|
401
401
|
return e;
|
|
402
402
|
}
|
|
403
|
-
class
|
|
403
|
+
class ge {
|
|
404
404
|
constructor() {
|
|
405
405
|
this.handlers = [];
|
|
406
406
|
}
|
|
@@ -454,37 +454,37 @@ class Se {
|
|
|
454
454
|
});
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
|
-
const
|
|
457
|
+
const Je = {
|
|
458
458
|
silentJSONParsing: !0,
|
|
459
459
|
forcedJSONParsing: !0,
|
|
460
460
|
clarifyTimeoutError: !1
|
|
461
|
-
}, Ht = typeof URLSearchParams < "u" ? URLSearchParams : le,
|
|
461
|
+
}, Ht = typeof URLSearchParams < "u" ? URLSearchParams : le, Jt = typeof FormData < "u" ? FormData : null, Mt = typeof Blob < "u" ? Blob : null, zt = {
|
|
462
462
|
isBrowser: !0,
|
|
463
463
|
classes: {
|
|
464
464
|
URLSearchParams: Ht,
|
|
465
|
-
FormData:
|
|
466
|
-
Blob:
|
|
465
|
+
FormData: Jt,
|
|
466
|
+
Blob: Mt
|
|
467
467
|
},
|
|
468
468
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
469
|
-
}, fe = typeof window < "u" && typeof document < "u", Vt = ((e) => fe && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product),
|
|
470
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
469
|
+
}, fe = typeof window < "u" && typeof document < "u", Vt = ((e) => fe && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), Gt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
470
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Kt = fe && window.location.href || "http://localhost", Wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
471
471
|
__proto__: null,
|
|
472
472
|
hasBrowserEnv: fe,
|
|
473
473
|
hasStandardBrowserEnv: Vt,
|
|
474
|
-
hasStandardBrowserWebWorkerEnv:
|
|
475
|
-
origin:
|
|
474
|
+
hasStandardBrowserWebWorkerEnv: Gt,
|
|
475
|
+
origin: Kt
|
|
476
476
|
}, Symbol.toStringTag, { value: "Module" })), O = {
|
|
477
477
|
...Wt,
|
|
478
478
|
...zt
|
|
479
479
|
};
|
|
480
|
-
function
|
|
481
|
-
return
|
|
480
|
+
function Qt(e, t) {
|
|
481
|
+
return Q(e, new O.classes.URLSearchParams(), Object.assign({
|
|
482
482
|
visitor: function(n, r, s, o) {
|
|
483
483
|
return O.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
484
484
|
}
|
|
485
485
|
}, t));
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function vt(e) {
|
|
488
488
|
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
489
489
|
}
|
|
490
490
|
function Xt(e) {
|
|
@@ -496,18 +496,18 @@ function Xt(e) {
|
|
|
496
496
|
o = n[r], t[o] = e[o];
|
|
497
497
|
return t;
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function Me(e) {
|
|
500
500
|
function t(n, r, s, o) {
|
|
501
501
|
let i = n[o++];
|
|
502
502
|
if (i === "__proto__")
|
|
503
503
|
return !0;
|
|
504
|
-
const
|
|
505
|
-
return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !
|
|
504
|
+
const u = Number.isFinite(+i), f = o >= n.length;
|
|
505
|
+
return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !u) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = Xt(s[i])), !u);
|
|
506
506
|
}
|
|
507
507
|
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
508
508
|
const n = {};
|
|
509
509
|
return a.forEachEntry(e, (r, s) => {
|
|
510
|
-
t(
|
|
510
|
+
t(vt(r), s, n, 0);
|
|
511
511
|
}), n;
|
|
512
512
|
}
|
|
513
513
|
return null;
|
|
@@ -523,26 +523,26 @@ function Zt(e, t, n) {
|
|
|
523
523
|
return (n || JSON.stringify)(e);
|
|
524
524
|
}
|
|
525
525
|
const $ = {
|
|
526
|
-
transitional:
|
|
526
|
+
transitional: Je,
|
|
527
527
|
adapter: ["xhr", "http", "fetch"],
|
|
528
528
|
transformRequest: [function(t, n) {
|
|
529
529
|
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
|
|
530
530
|
if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
531
|
-
return s ? JSON.stringify(
|
|
531
|
+
return s ? JSON.stringify(Me(t)) : t;
|
|
532
532
|
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
|
|
533
533
|
return t;
|
|
534
534
|
if (a.isArrayBufferView(t))
|
|
535
535
|
return t.buffer;
|
|
536
536
|
if (a.isURLSearchParams(t))
|
|
537
537
|
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
538
|
-
let
|
|
538
|
+
let u;
|
|
539
539
|
if (o) {
|
|
540
540
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
541
|
-
return
|
|
542
|
-
if ((
|
|
541
|
+
return Qt(t, this.formSerializer).toString();
|
|
542
|
+
if ((u = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
543
543
|
const f = this.env && this.env.FormData;
|
|
544
|
-
return
|
|
545
|
-
|
|
544
|
+
return Q(
|
|
545
|
+
u ? { "files[]": t } : t,
|
|
546
546
|
f && new f(),
|
|
547
547
|
this.formSerializer
|
|
548
548
|
);
|
|
@@ -558,9 +558,9 @@ const $ = {
|
|
|
558
558
|
const i = !(n && n.silentJSONParsing) && s;
|
|
559
559
|
try {
|
|
560
560
|
return JSON.parse(t);
|
|
561
|
-
} catch (
|
|
561
|
+
} catch (u) {
|
|
562
562
|
if (i)
|
|
563
|
-
throw
|
|
563
|
+
throw u.name === "SyntaxError" ? h.from(u, h.ERR_BAD_RESPONSE, this, null, this.response) : u;
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
566
|
return t;
|
|
@@ -616,12 +616,12 @@ const Yt = a.toObjectSet([
|
|
|
616
616
|
`).forEach(function(i) {
|
|
617
617
|
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Yt[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
618
618
|
}), t;
|
|
619
|
-
},
|
|
619
|
+
}, Se = Symbol("internals");
|
|
620
620
|
function U(e) {
|
|
621
621
|
return e && String(e).trim().toLowerCase();
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
return e === !1 || e == null ? e : a.isArray(e) ? e.map(
|
|
623
|
+
function M(e) {
|
|
624
|
+
return e === !1 || e == null ? e : a.isArray(e) ? e.map(M) : String(e);
|
|
625
625
|
}
|
|
626
626
|
function tn(e) {
|
|
627
627
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -661,21 +661,21 @@ class R {
|
|
|
661
661
|
}
|
|
662
662
|
set(t, n, r) {
|
|
663
663
|
const s = this;
|
|
664
|
-
function o(
|
|
665
|
-
const
|
|
666
|
-
if (!
|
|
664
|
+
function o(u, f, l) {
|
|
665
|
+
const c = U(f);
|
|
666
|
+
if (!c)
|
|
667
667
|
throw new Error("header name must be a non-empty string");
|
|
668
|
-
const d = a.findKey(s,
|
|
669
|
-
(!d || s[d] === void 0 || l === !0 || l === void 0 && s[d] !== !1) && (s[d || f] =
|
|
668
|
+
const d = a.findKey(s, c);
|
|
669
|
+
(!d || s[d] === void 0 || l === !0 || l === void 0 && s[d] !== !1) && (s[d || f] = M(u));
|
|
670
670
|
}
|
|
671
|
-
const i = (
|
|
671
|
+
const i = (u, f) => a.forEach(u, (l, c) => o(l, c, f));
|
|
672
672
|
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
673
673
|
i(t, n);
|
|
674
674
|
else if (a.isString(t) && (t = t.trim()) && !nn(t))
|
|
675
675
|
i(en(t), n);
|
|
676
676
|
else if (a.isHeaders(t))
|
|
677
|
-
for (const [
|
|
678
|
-
o(f,
|
|
677
|
+
for (const [u, f] of t.entries())
|
|
678
|
+
o(f, u, r);
|
|
679
679
|
else
|
|
680
680
|
t != null && o(n, t, r);
|
|
681
681
|
return this;
|
|
@@ -709,8 +709,8 @@ class R {
|
|
|
709
709
|
let s = !1;
|
|
710
710
|
function o(i) {
|
|
711
711
|
if (i = U(i), i) {
|
|
712
|
-
const
|
|
713
|
-
|
|
712
|
+
const u = a.findKey(r, i);
|
|
713
|
+
u && (!n || Z(r, r[u], u, n)) && (delete r[u], s = !0);
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
716
|
return a.isArray(t) ? t.forEach(o) : o(t), s;
|
|
@@ -729,11 +729,11 @@ class R {
|
|
|
729
729
|
return a.forEach(this, (s, o) => {
|
|
730
730
|
const i = a.findKey(r, o);
|
|
731
731
|
if (i) {
|
|
732
|
-
n[i] =
|
|
732
|
+
n[i] = M(s), delete n[o];
|
|
733
733
|
return;
|
|
734
734
|
}
|
|
735
|
-
const
|
|
736
|
-
|
|
735
|
+
const u = t ? rn(o) : String(o).trim();
|
|
736
|
+
u !== o && delete n[o], n[u] = M(s), r[u] = !0;
|
|
737
737
|
}), this;
|
|
738
738
|
}
|
|
739
739
|
concat(...t) {
|
|
@@ -763,12 +763,12 @@ class R {
|
|
|
763
763
|
return n.forEach((s) => r.set(s)), r;
|
|
764
764
|
}
|
|
765
765
|
static accessor(t) {
|
|
766
|
-
const r = (this[
|
|
766
|
+
const r = (this[Se] = this[Se] = {
|
|
767
767
|
accessors: {}
|
|
768
768
|
}).accessors, s = this.prototype;
|
|
769
769
|
function o(i) {
|
|
770
|
-
const
|
|
771
|
-
r[
|
|
770
|
+
const u = U(i);
|
|
771
|
+
r[u] || (sn(s, i), r[u] = !0);
|
|
772
772
|
}
|
|
773
773
|
return a.isArray(t) ? t.forEach(o) : o(t), this;
|
|
774
774
|
}
|
|
@@ -787,17 +787,17 @@ a.freezeMethods(R);
|
|
|
787
787
|
function Y(e, t) {
|
|
788
788
|
const n = this || $, r = t || n, s = R.from(r.headers);
|
|
789
789
|
let o = r.data;
|
|
790
|
-
return a.forEach(e, function(
|
|
791
|
-
o =
|
|
790
|
+
return a.forEach(e, function(u) {
|
|
791
|
+
o = u.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
792
792
|
}), s.normalize(), o;
|
|
793
793
|
}
|
|
794
794
|
function ze(e) {
|
|
795
795
|
return !!(e && e.__CANCEL__);
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function _(e, t, n) {
|
|
798
798
|
h.call(this, e ?? "canceled", h.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
799
799
|
}
|
|
800
|
-
a.inherits(
|
|
800
|
+
a.inherits(_, h, {
|
|
801
801
|
__CANCEL__: !0
|
|
802
802
|
});
|
|
803
803
|
function Ve(e, t, n) {
|
|
@@ -819,14 +819,14 @@ function an(e, t) {
|
|
|
819
819
|
const n = new Array(e), r = new Array(e);
|
|
820
820
|
let s = 0, o = 0, i;
|
|
821
821
|
return t = t !== void 0 ? t : 1e3, function(f) {
|
|
822
|
-
const l = Date.now(),
|
|
822
|
+
const l = Date.now(), c = r[o];
|
|
823
823
|
i || (i = l), n[s] = f, r[s] = l;
|
|
824
824
|
let d = o, b = 0;
|
|
825
825
|
for (; d !== s; )
|
|
826
826
|
b += n[d++], d = d % e;
|
|
827
827
|
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), l - i < t)
|
|
828
828
|
return;
|
|
829
|
-
const y =
|
|
829
|
+
const y = c && l - c;
|
|
830
830
|
return y ? Math.round(b * 1e3 / y) : void 0;
|
|
831
831
|
};
|
|
832
832
|
}
|
|
@@ -835,27 +835,27 @@ function cn(e, t) {
|
|
|
835
835
|
const r = 1e3 / t;
|
|
836
836
|
let s = null;
|
|
837
837
|
return function() {
|
|
838
|
-
const i = this === !0,
|
|
839
|
-
if (i ||
|
|
840
|
-
return s && (clearTimeout(s), s = null), n =
|
|
841
|
-
s || (s = setTimeout(() => (s = null, n = Date.now(), e.apply(null, arguments)), r - (
|
|
838
|
+
const i = this === !0, u = Date.now();
|
|
839
|
+
if (i || u - n > r)
|
|
840
|
+
return s && (clearTimeout(s), s = null), n = u, e.apply(null, arguments);
|
|
841
|
+
s || (s = setTimeout(() => (s = null, n = Date.now(), e.apply(null, arguments)), r - (u - n)));
|
|
842
842
|
};
|
|
843
843
|
}
|
|
844
844
|
const z = (e, t, n = 3) => {
|
|
845
845
|
let r = 0;
|
|
846
846
|
const s = an(50, 250);
|
|
847
847
|
return cn((o) => {
|
|
848
|
-
const i = o.loaded,
|
|
848
|
+
const i = o.loaded, u = o.lengthComputable ? o.total : void 0, f = i - r, l = s(f), c = i <= u;
|
|
849
849
|
r = i;
|
|
850
850
|
const d = {
|
|
851
851
|
loaded: i,
|
|
852
|
-
total:
|
|
853
|
-
progress:
|
|
852
|
+
total: u,
|
|
853
|
+
progress: u ? i / u : void 0,
|
|
854
854
|
bytes: f,
|
|
855
855
|
rate: l || void 0,
|
|
856
|
-
estimated: l &&
|
|
856
|
+
estimated: l && u && c ? (u - i) / l : void 0,
|
|
857
857
|
event: o,
|
|
858
|
-
lengthComputable:
|
|
858
|
+
lengthComputable: u != null
|
|
859
859
|
};
|
|
860
860
|
d[t ? "download" : "upload"] = !0, e(d);
|
|
861
861
|
}, n);
|
|
@@ -879,8 +879,8 @@ const z = (e, t, n = 3) => {
|
|
|
879
879
|
};
|
|
880
880
|
}
|
|
881
881
|
return r = s(window.location.href), function(i) {
|
|
882
|
-
const
|
|
883
|
-
return
|
|
882
|
+
const u = a.isString(i) ? s(i) : i;
|
|
883
|
+
return u.protocol === r.protocol && u.host === r.host;
|
|
884
884
|
};
|
|
885
885
|
}()
|
|
886
886
|
) : (
|
|
@@ -923,37 +923,37 @@ function fn(e) {
|
|
|
923
923
|
function dn(e, t) {
|
|
924
924
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
925
925
|
}
|
|
926
|
-
function
|
|
926
|
+
function Ge(e, t) {
|
|
927
927
|
return e && !fn(t) ? dn(e, t) : t;
|
|
928
928
|
}
|
|
929
|
-
const
|
|
930
|
-
function
|
|
929
|
+
const Ee = (e) => e instanceof R ? { ...e } : e;
|
|
930
|
+
function L(e, t) {
|
|
931
931
|
t = t || {};
|
|
932
932
|
const n = {};
|
|
933
|
-
function r(l,
|
|
934
|
-
return a.isPlainObject(l) && a.isPlainObject(
|
|
933
|
+
function r(l, c, d) {
|
|
934
|
+
return a.isPlainObject(l) && a.isPlainObject(c) ? a.merge.call({ caseless: d }, l, c) : a.isPlainObject(c) ? a.merge({}, c) : a.isArray(c) ? c.slice() : c;
|
|
935
935
|
}
|
|
936
|
-
function s(l,
|
|
937
|
-
if (a.isUndefined(
|
|
936
|
+
function s(l, c, d) {
|
|
937
|
+
if (a.isUndefined(c)) {
|
|
938
938
|
if (!a.isUndefined(l))
|
|
939
939
|
return r(void 0, l, d);
|
|
940
940
|
} else
|
|
941
|
-
return r(l,
|
|
941
|
+
return r(l, c, d);
|
|
942
942
|
}
|
|
943
|
-
function o(l,
|
|
944
|
-
if (!a.isUndefined(
|
|
945
|
-
return r(void 0,
|
|
943
|
+
function o(l, c) {
|
|
944
|
+
if (!a.isUndefined(c))
|
|
945
|
+
return r(void 0, c);
|
|
946
946
|
}
|
|
947
|
-
function i(l,
|
|
948
|
-
if (a.isUndefined(
|
|
947
|
+
function i(l, c) {
|
|
948
|
+
if (a.isUndefined(c)) {
|
|
949
949
|
if (!a.isUndefined(l))
|
|
950
950
|
return r(void 0, l);
|
|
951
951
|
} else
|
|
952
|
-
return r(void 0,
|
|
952
|
+
return r(void 0, c);
|
|
953
953
|
}
|
|
954
|
-
function
|
|
954
|
+
function u(l, c, d) {
|
|
955
955
|
if (d in t)
|
|
956
|
-
return r(l,
|
|
956
|
+
return r(l, c);
|
|
957
957
|
if (d in e)
|
|
958
958
|
return r(void 0, l);
|
|
959
959
|
}
|
|
@@ -985,28 +985,28 @@ function F(e, t) {
|
|
|
985
985
|
cancelToken: i,
|
|
986
986
|
socketPath: i,
|
|
987
987
|
responseEncoding: i,
|
|
988
|
-
validateStatus:
|
|
989
|
-
headers: (l,
|
|
988
|
+
validateStatus: u,
|
|
989
|
+
headers: (l, c) => s(Ee(l), Ee(c), !0)
|
|
990
990
|
};
|
|
991
|
-
return a.forEach(Object.keys(Object.assign({}, e, t)), function(
|
|
992
|
-
const d = f[
|
|
993
|
-
a.isUndefined(b) && d !==
|
|
991
|
+
return a.forEach(Object.keys(Object.assign({}, e, t)), function(c) {
|
|
992
|
+
const d = f[c] || s, b = d(e[c], t[c], c);
|
|
993
|
+
a.isUndefined(b) && d !== u || (n[c] = b);
|
|
994
994
|
}), n;
|
|
995
995
|
}
|
|
996
|
-
const
|
|
997
|
-
const t =
|
|
998
|
-
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth:
|
|
999
|
-
t.headers = i = R.from(i), t.url = He(
|
|
996
|
+
const Ke = (e) => {
|
|
997
|
+
const t = L({}, e);
|
|
998
|
+
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: u } = t;
|
|
999
|
+
t.headers = i = R.from(i), t.url = He(Ge(t.baseURL, t.url), e.params, e.paramsSerializer), u && i.set(
|
|
1000
1000
|
"Authorization",
|
|
1001
|
-
"Basic " + btoa((
|
|
1001
|
+
"Basic " + btoa((u.username || "") + ":" + (u.password ? unescape(encodeURIComponent(u.password)) : ""))
|
|
1002
1002
|
);
|
|
1003
1003
|
let f;
|
|
1004
1004
|
if (a.isFormData(n)) {
|
|
1005
1005
|
if (O.hasStandardBrowserEnv || O.hasStandardBrowserWebWorkerEnv)
|
|
1006
1006
|
i.setContentType(void 0);
|
|
1007
1007
|
else if ((f = i.getContentType()) !== !1) {
|
|
1008
|
-
const [l, ...
|
|
1009
|
-
i.setContentType([l || "multipart/form-data", ...
|
|
1008
|
+
const [l, ...c] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
|
|
1009
|
+
i.setContentType([l || "multipart/form-data", ...c].join("; "));
|
|
1010
1010
|
}
|
|
1011
1011
|
}
|
|
1012
1012
|
if (O.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && un(t.url))) {
|
|
@@ -1016,60 +1016,60 @@ const Ge = (e) => {
|
|
|
1016
1016
|
return t;
|
|
1017
1017
|
}, pn = typeof XMLHttpRequest < "u", hn = pn && function(e) {
|
|
1018
1018
|
return new Promise(function(n, r) {
|
|
1019
|
-
const s =
|
|
1019
|
+
const s = Ke(e);
|
|
1020
1020
|
let o = s.data;
|
|
1021
1021
|
const i = R.from(s.headers).normalize();
|
|
1022
|
-
let { responseType:
|
|
1022
|
+
let { responseType: u } = s, f;
|
|
1023
1023
|
function l() {
|
|
1024
1024
|
s.cancelToken && s.cancelToken.unsubscribe(f), s.signal && s.signal.removeEventListener("abort", f);
|
|
1025
1025
|
}
|
|
1026
|
-
let
|
|
1027
|
-
|
|
1026
|
+
let c = new XMLHttpRequest();
|
|
1027
|
+
c.open(s.method.toUpperCase(), s.url, !0), c.timeout = s.timeout;
|
|
1028
1028
|
function d() {
|
|
1029
|
-
if (!
|
|
1029
|
+
if (!c)
|
|
1030
1030
|
return;
|
|
1031
1031
|
const y = R.from(
|
|
1032
|
-
"getAllResponseHeaders" in
|
|
1032
|
+
"getAllResponseHeaders" in c && c.getAllResponseHeaders()
|
|
1033
1033
|
), m = {
|
|
1034
|
-
data: !
|
|
1035
|
-
status:
|
|
1036
|
-
statusText:
|
|
1034
|
+
data: !u || u === "text" || u === "json" ? c.responseText : c.response,
|
|
1035
|
+
status: c.status,
|
|
1036
|
+
statusText: c.statusText,
|
|
1037
1037
|
headers: y,
|
|
1038
1038
|
config: e,
|
|
1039
|
-
request:
|
|
1039
|
+
request: c
|
|
1040
1040
|
};
|
|
1041
|
-
Ve(function(
|
|
1042
|
-
n(
|
|
1043
|
-
}, function(
|
|
1044
|
-
r(
|
|
1045
|
-
}, m),
|
|
1041
|
+
Ve(function(E) {
|
|
1042
|
+
n(E), l();
|
|
1043
|
+
}, function(E) {
|
|
1044
|
+
r(E), l();
|
|
1045
|
+
}, m), c = null;
|
|
1046
1046
|
}
|
|
1047
|
-
"onloadend" in
|
|
1048
|
-
!
|
|
1049
|
-
},
|
|
1050
|
-
|
|
1051
|
-
},
|
|
1052
|
-
r(new h("Network Error", h.ERR_NETWORK, s,
|
|
1053
|
-
},
|
|
1047
|
+
"onloadend" in c ? c.onloadend = d : c.onreadystatechange = function() {
|
|
1048
|
+
!c || c.readyState !== 4 || c.status === 0 && !(c.responseURL && c.responseURL.indexOf("file:") === 0) || setTimeout(d);
|
|
1049
|
+
}, c.onabort = function() {
|
|
1050
|
+
c && (r(new h("Request aborted", h.ECONNABORTED, s, c)), c = null);
|
|
1051
|
+
}, c.onerror = function() {
|
|
1052
|
+
r(new h("Network Error", h.ERR_NETWORK, s, c)), c = null;
|
|
1053
|
+
}, c.ontimeout = function() {
|
|
1054
1054
|
let p = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1055
|
-
const m = s.transitional ||
|
|
1055
|
+
const m = s.transitional || Je;
|
|
1056
1056
|
s.timeoutErrorMessage && (p = s.timeoutErrorMessage), r(new h(
|
|
1057
1057
|
p,
|
|
1058
1058
|
m.clarifyTimeoutError ? h.ETIMEDOUT : h.ECONNABORTED,
|
|
1059
1059
|
s,
|
|
1060
|
-
|
|
1061
|
-
)),
|
|
1062
|
-
}, o === void 0 && i.setContentType(null), "setRequestHeader" in
|
|
1063
|
-
|
|
1064
|
-
}), a.isUndefined(s.withCredentials) || (
|
|
1065
|
-
|
|
1060
|
+
c
|
|
1061
|
+
)), c = null;
|
|
1062
|
+
}, o === void 0 && i.setContentType(null), "setRequestHeader" in c && a.forEach(i.toJSON(), function(p, m) {
|
|
1063
|
+
c.setRequestHeader(m, p);
|
|
1064
|
+
}), a.isUndefined(s.withCredentials) || (c.withCredentials = !!s.withCredentials), u && u !== "json" && (c.responseType = s.responseType), typeof s.onDownloadProgress == "function" && c.addEventListener("progress", z(s.onDownloadProgress, !0)), typeof s.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", z(s.onUploadProgress)), (s.cancelToken || s.signal) && (f = (y) => {
|
|
1065
|
+
c && (r(!y || y.type ? new _(null, e, c) : y), c.abort(), c = null);
|
|
1066
1066
|
}, s.cancelToken && s.cancelToken.subscribe(f), s.signal && (s.signal.aborted ? f() : s.signal.addEventListener("abort", f)));
|
|
1067
1067
|
const b = on(s.url);
|
|
1068
1068
|
if (b && O.protocols.indexOf(b) === -1) {
|
|
1069
1069
|
r(new h("Unsupported protocol " + b + ":", h.ERR_BAD_REQUEST, e));
|
|
1070
1070
|
return;
|
|
1071
1071
|
}
|
|
1072
|
-
|
|
1072
|
+
c.send(o || null);
|
|
1073
1073
|
});
|
|
1074
1074
|
}, mn = (e, t) => {
|
|
1075
1075
|
let n = new AbortController(), r;
|
|
@@ -1077,7 +1077,7 @@ const Ge = (e) => {
|
|
|
1077
1077
|
if (!r) {
|
|
1078
1078
|
r = !0, i();
|
|
1079
1079
|
const l = f instanceof Error ? f : this.reason;
|
|
1080
|
-
n.abort(l instanceof h ? l : new
|
|
1080
|
+
n.abort(l instanceof h ? l : new _(l instanceof Error ? l.message : l));
|
|
1081
1081
|
}
|
|
1082
1082
|
};
|
|
1083
1083
|
let o = t && setTimeout(() => {
|
|
@@ -1089,8 +1089,8 @@ const Ge = (e) => {
|
|
|
1089
1089
|
}), e = null);
|
|
1090
1090
|
};
|
|
1091
1091
|
e.forEach((f) => f && f.addEventListener && f.addEventListener("abort", s));
|
|
1092
|
-
const { signal:
|
|
1093
|
-
return
|
|
1092
|
+
const { signal: u } = n;
|
|
1093
|
+
return u.unsubscribe = i, [u, () => {
|
|
1094
1094
|
o && clearTimeout(o), o = null;
|
|
1095
1095
|
}];
|
|
1096
1096
|
}, yn = function* (e, t) {
|
|
@@ -1110,17 +1110,17 @@ const Ge = (e) => {
|
|
|
1110
1110
|
let i = 0;
|
|
1111
1111
|
return new ReadableStream({
|
|
1112
1112
|
type: "bytes",
|
|
1113
|
-
async pull(
|
|
1113
|
+
async pull(u) {
|
|
1114
1114
|
const { done: f, value: l } = await o.next();
|
|
1115
1115
|
if (f) {
|
|
1116
|
-
|
|
1116
|
+
u.close(), r();
|
|
1117
1117
|
return;
|
|
1118
1118
|
}
|
|
1119
|
-
let
|
|
1120
|
-
n && n(i +=
|
|
1119
|
+
let c = l.byteLength;
|
|
1120
|
+
n && n(i += c), u.enqueue(new Uint8Array(l));
|
|
1121
1121
|
},
|
|
1122
|
-
cancel(
|
|
1123
|
-
return r(
|
|
1122
|
+
cancel(u) {
|
|
1123
|
+
return r(u), o.return();
|
|
1124
1124
|
}
|
|
1125
1125
|
}, {
|
|
1126
1126
|
highWaterMark: 2
|
|
@@ -1132,7 +1132,7 @@ const Ge = (e) => {
|
|
|
1132
1132
|
total: e,
|
|
1133
1133
|
loaded: r
|
|
1134
1134
|
}));
|
|
1135
|
-
},
|
|
1135
|
+
}, v = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", We = v && typeof ReadableStream == "function", se = v && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), wn = We && (() => {
|
|
1136
1136
|
let e = !1;
|
|
1137
1137
|
const t = new Request(O.origin, {
|
|
1138
1138
|
body: new ReadableStream(),
|
|
@@ -1150,14 +1150,14 @@ const Ge = (e) => {
|
|
|
1150
1150
|
})(), V = {
|
|
1151
1151
|
stream: oe && ((e) => e.body)
|
|
1152
1152
|
};
|
|
1153
|
-
|
|
1153
|
+
v && ((e) => {
|
|
1154
1154
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1155
1155
|
!V[t] && (V[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
|
|
1156
1156
|
throw new h(`Response type '${t}' is not supported`, h.ERR_NOT_SUPPORT, r);
|
|
1157
1157
|
});
|
|
1158
1158
|
});
|
|
1159
1159
|
})(new Response());
|
|
1160
|
-
const
|
|
1160
|
+
const gn = async (e) => {
|
|
1161
1161
|
if (e == null)
|
|
1162
1162
|
return 0;
|
|
1163
1163
|
if (a.isBlob(e))
|
|
@@ -1168,10 +1168,10 @@ const Sn = async (e) => {
|
|
|
1168
1168
|
return e.byteLength;
|
|
1169
1169
|
if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
|
|
1170
1170
|
return (await se(e)).byteLength;
|
|
1171
|
-
},
|
|
1171
|
+
}, Sn = async (e, t) => {
|
|
1172
1172
|
const n = a.toFiniteNumber(e.getContentLength());
|
|
1173
|
-
return n ??
|
|
1174
|
-
},
|
|
1173
|
+
return n ?? gn(t);
|
|
1174
|
+
}, En = v && (async (e) => {
|
|
1175
1175
|
let {
|
|
1176
1176
|
url: t,
|
|
1177
1177
|
method: n,
|
|
@@ -1179,82 +1179,82 @@ const Sn = async (e) => {
|
|
|
1179
1179
|
signal: s,
|
|
1180
1180
|
cancelToken: o,
|
|
1181
1181
|
timeout: i,
|
|
1182
|
-
onDownloadProgress:
|
|
1182
|
+
onDownloadProgress: u,
|
|
1183
1183
|
onUploadProgress: f,
|
|
1184
1184
|
responseType: l,
|
|
1185
|
-
headers:
|
|
1185
|
+
headers: c,
|
|
1186
1186
|
withCredentials: d = "same-origin",
|
|
1187
1187
|
fetchOptions: b
|
|
1188
|
-
} =
|
|
1188
|
+
} = Ke(e);
|
|
1189
1189
|
l = l ? (l + "").toLowerCase() : "text";
|
|
1190
|
-
let [y, p] = s || o || i ? mn([s, o], i) : [], m,
|
|
1191
|
-
const
|
|
1190
|
+
let [y, p] = s || o || i ? mn([s, o], i) : [], m, S;
|
|
1191
|
+
const E = () => {
|
|
1192
1192
|
!m && setTimeout(() => {
|
|
1193
1193
|
y && y.unsubscribe();
|
|
1194
1194
|
}), m = !0;
|
|
1195
1195
|
};
|
|
1196
|
-
let
|
|
1196
|
+
let P;
|
|
1197
1197
|
try {
|
|
1198
|
-
if (f && wn && n !== "get" && n !== "head" && (
|
|
1198
|
+
if (f && wn && n !== "get" && n !== "head" && (P = await Sn(c, r)) !== 0) {
|
|
1199
1199
|
let C = new Request(t, {
|
|
1200
1200
|
method: "POST",
|
|
1201
1201
|
body: r,
|
|
1202
1202
|
duplex: "half"
|
|
1203
|
-
}),
|
|
1204
|
-
a.isFormData(r) && (
|
|
1205
|
-
|
|
1203
|
+
}), q;
|
|
1204
|
+
a.isFormData(r) && (q = C.headers.get("content-type")) && c.setContentType(q), C.body && (r = Re(C.body, Oe, Te(
|
|
1205
|
+
P,
|
|
1206
1206
|
z(f)
|
|
1207
1207
|
), null, se));
|
|
1208
1208
|
}
|
|
1209
|
-
a.isString(d) || (d = d ? "cors" : "omit"),
|
|
1209
|
+
a.isString(d) || (d = d ? "cors" : "omit"), S = new Request(t, {
|
|
1210
1210
|
...b,
|
|
1211
1211
|
signal: y,
|
|
1212
1212
|
method: n.toUpperCase(),
|
|
1213
|
-
headers:
|
|
1213
|
+
headers: c.normalize().toJSON(),
|
|
1214
1214
|
body: r,
|
|
1215
1215
|
duplex: "half",
|
|
1216
1216
|
withCredentials: d
|
|
1217
1217
|
});
|
|
1218
|
-
let w = await fetch(
|
|
1219
|
-
const
|
|
1220
|
-
if (oe && (
|
|
1218
|
+
let w = await fetch(S);
|
|
1219
|
+
const D = oe && (l === "stream" || l === "response");
|
|
1220
|
+
if (oe && (u || D)) {
|
|
1221
1221
|
const C = {};
|
|
1222
1222
|
["status", "statusText", "headers"].forEach((he) => {
|
|
1223
1223
|
C[he] = w[he];
|
|
1224
1224
|
});
|
|
1225
|
-
const
|
|
1225
|
+
const q = a.toFiniteNumber(w.headers.get("content-length"));
|
|
1226
1226
|
w = new Response(
|
|
1227
|
-
Re(w.body, Oe,
|
|
1228
|
-
|
|
1229
|
-
z(
|
|
1230
|
-
),
|
|
1227
|
+
Re(w.body, Oe, u && Te(
|
|
1228
|
+
q,
|
|
1229
|
+
z(u, !0)
|
|
1230
|
+
), D && E, se),
|
|
1231
1231
|
C
|
|
1232
1232
|
);
|
|
1233
1233
|
}
|
|
1234
1234
|
l = l || "text";
|
|
1235
1235
|
let Ze = await V[a.findKey(V, l) || "text"](w, e);
|
|
1236
|
-
return !
|
|
1237
|
-
Ve(C,
|
|
1236
|
+
return !D && E(), p && p(), await new Promise((C, q) => {
|
|
1237
|
+
Ve(C, q, {
|
|
1238
1238
|
data: Ze,
|
|
1239
1239
|
headers: R.from(w.headers),
|
|
1240
1240
|
status: w.status,
|
|
1241
1241
|
statusText: w.statusText,
|
|
1242
1242
|
config: e,
|
|
1243
|
-
request:
|
|
1243
|
+
request: S
|
|
1244
1244
|
});
|
|
1245
1245
|
});
|
|
1246
1246
|
} catch (w) {
|
|
1247
|
-
throw
|
|
1248
|
-
new h("Network Error", h.ERR_NETWORK, e,
|
|
1247
|
+
throw E(), w && w.name === "TypeError" && /fetch/i.test(w.message) ? Object.assign(
|
|
1248
|
+
new h("Network Error", h.ERR_NETWORK, e, S),
|
|
1249
1249
|
{
|
|
1250
1250
|
cause: w.cause || w
|
|
1251
1251
|
}
|
|
1252
|
-
) : h.from(w, w && w.code, e,
|
|
1252
|
+
) : h.from(w, w && w.code, e, S);
|
|
1253
1253
|
}
|
|
1254
1254
|
}), ie = {
|
|
1255
1255
|
http: Ut,
|
|
1256
1256
|
xhr: hn,
|
|
1257
|
-
fetch:
|
|
1257
|
+
fetch: En
|
|
1258
1258
|
};
|
|
1259
1259
|
a.forEach(ie, (e, t) => {
|
|
1260
1260
|
if (e) {
|
|
@@ -1265,7 +1265,7 @@ a.forEach(ie, (e, t) => {
|
|
|
1265
1265
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1266
1266
|
}
|
|
1267
1267
|
});
|
|
1268
|
-
const Ae = (e) => `- ${e}`, Rn = (e) => a.isFunction(e) || e === null || e === !1,
|
|
1268
|
+
const Ae = (e) => `- ${e}`, Rn = (e) => a.isFunction(e) || e === null || e === !1, Qe = {
|
|
1269
1269
|
getAdapter: (e) => {
|
|
1270
1270
|
e = a.isArray(e) ? e : [e];
|
|
1271
1271
|
const { length: t } = e;
|
|
@@ -1282,7 +1282,7 @@ const Ae = (e) => `- ${e}`, Rn = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1282
1282
|
}
|
|
1283
1283
|
if (!r) {
|
|
1284
1284
|
const o = Object.entries(s).map(
|
|
1285
|
-
([
|
|
1285
|
+
([u, f]) => `adapter ${u} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1286
1286
|
);
|
|
1287
1287
|
let i = t ? o.length > 1 ? `since :
|
|
1288
1288
|
` + o.map(Ae).join(`
|
|
@@ -1298,13 +1298,13 @@ const Ae = (e) => `- ${e}`, Rn = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1298
1298
|
};
|
|
1299
1299
|
function ee(e) {
|
|
1300
1300
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1301
|
-
throw new
|
|
1301
|
+
throw new _(null, e);
|
|
1302
1302
|
}
|
|
1303
1303
|
function Ne(e) {
|
|
1304
1304
|
return ee(e), e.headers = R.from(e.headers), e.data = Y.call(
|
|
1305
1305
|
e,
|
|
1306
1306
|
e.transformRequest
|
|
1307
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1307
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Qe.getAdapter(e.adapter || $.adapter)(e).then(function(r) {
|
|
1308
1308
|
return ee(e), r.data = Y.call(
|
|
1309
1309
|
e,
|
|
1310
1310
|
e.transformResponse,
|
|
@@ -1318,7 +1318,7 @@ function Ne(e) {
|
|
|
1318
1318
|
), r.response.headers = R.from(r.response.headers))), Promise.reject(r);
|
|
1319
1319
|
});
|
|
1320
1320
|
}
|
|
1321
|
-
const
|
|
1321
|
+
const ve = "1.7.2", de = {};
|
|
1322
1322
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1323
1323
|
de[e] = function(r) {
|
|
1324
1324
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
@@ -1327,9 +1327,9 @@ const Qe = "1.7.2", de = {};
|
|
|
1327
1327
|
const Pe = {};
|
|
1328
1328
|
de.transitional = function(t, n, r) {
|
|
1329
1329
|
function s(o, i) {
|
|
1330
|
-
return "[Axios v" +
|
|
1330
|
+
return "[Axios v" + ve + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
1331
1331
|
}
|
|
1332
|
-
return (o, i,
|
|
1332
|
+
return (o, i, u) => {
|
|
1333
1333
|
if (t === !1)
|
|
1334
1334
|
throw new h(
|
|
1335
1335
|
s(i, " has been removed" + (n ? " in " + n : "")),
|
|
@@ -1340,7 +1340,7 @@ de.transitional = function(t, n, r) {
|
|
|
1340
1340
|
i,
|
|
1341
1341
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1342
1342
|
)
|
|
1343
|
-
)), t ? t(o, i,
|
|
1343
|
+
)), t ? t(o, i, u) : !0;
|
|
1344
1344
|
};
|
|
1345
1345
|
};
|
|
1346
1346
|
function Tn(e, t, n) {
|
|
@@ -1351,7 +1351,7 @@ function Tn(e, t, n) {
|
|
|
1351
1351
|
for (; s-- > 0; ) {
|
|
1352
1352
|
const o = r[s], i = t[o];
|
|
1353
1353
|
if (i) {
|
|
1354
|
-
const
|
|
1354
|
+
const u = e[o], f = u === void 0 || i(u, o, e);
|
|
1355
1355
|
if (f !== !0)
|
|
1356
1356
|
throw new h("option " + o + " must be " + f, h.ERR_BAD_OPTION_VALUE);
|
|
1357
1357
|
continue;
|
|
@@ -1364,11 +1364,11 @@ const ae = {
|
|
|
1364
1364
|
assertOptions: Tn,
|
|
1365
1365
|
validators: de
|
|
1366
1366
|
}, x = ae.validators;
|
|
1367
|
-
class
|
|
1367
|
+
class F {
|
|
1368
1368
|
constructor(t) {
|
|
1369
1369
|
this.defaults = t, this.interceptors = {
|
|
1370
|
-
request: new
|
|
1371
|
-
response: new
|
|
1370
|
+
request: new ge(),
|
|
1371
|
+
response: new ge()
|
|
1372
1372
|
};
|
|
1373
1373
|
}
|
|
1374
1374
|
/**
|
|
@@ -1397,7 +1397,7 @@ class B {
|
|
|
1397
1397
|
}
|
|
1398
1398
|
}
|
|
1399
1399
|
_request(t, n) {
|
|
1400
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n =
|
|
1400
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = L(this.defaults, n);
|
|
1401
1401
|
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
1402
1402
|
r !== void 0 && ae.assertOptions(r, {
|
|
1403
1403
|
silentJSONParsing: x.transitional(x.boolean),
|
|
@@ -1419,51 +1419,51 @@ class B {
|
|
|
1419
1419
|
delete o[p];
|
|
1420
1420
|
}
|
|
1421
1421
|
), n.headers = R.concat(i, o);
|
|
1422
|
-
const
|
|
1422
|
+
const u = [];
|
|
1423
1423
|
let f = !0;
|
|
1424
1424
|
this.interceptors.request.forEach(function(m) {
|
|
1425
|
-
typeof m.runWhen == "function" && m.runWhen(n) === !1 || (f = f && m.synchronous,
|
|
1425
|
+
typeof m.runWhen == "function" && m.runWhen(n) === !1 || (f = f && m.synchronous, u.unshift(m.fulfilled, m.rejected));
|
|
1426
1426
|
});
|
|
1427
1427
|
const l = [];
|
|
1428
1428
|
this.interceptors.response.forEach(function(m) {
|
|
1429
1429
|
l.push(m.fulfilled, m.rejected);
|
|
1430
1430
|
});
|
|
1431
|
-
let
|
|
1431
|
+
let c, d = 0, b;
|
|
1432
1432
|
if (!f) {
|
|
1433
1433
|
const p = [Ne.bind(this), void 0];
|
|
1434
|
-
for (p.unshift.apply(p,
|
|
1435
|
-
|
|
1436
|
-
return
|
|
1434
|
+
for (p.unshift.apply(p, u), p.push.apply(p, l), b = p.length, c = Promise.resolve(n); d < b; )
|
|
1435
|
+
c = c.then(p[d++], p[d++]);
|
|
1436
|
+
return c;
|
|
1437
1437
|
}
|
|
1438
|
-
b =
|
|
1438
|
+
b = u.length;
|
|
1439
1439
|
let y = n;
|
|
1440
1440
|
for (d = 0; d < b; ) {
|
|
1441
|
-
const p =
|
|
1441
|
+
const p = u[d++], m = u[d++];
|
|
1442
1442
|
try {
|
|
1443
1443
|
y = p(y);
|
|
1444
|
-
} catch (
|
|
1445
|
-
m.call(this,
|
|
1444
|
+
} catch (S) {
|
|
1445
|
+
m.call(this, S);
|
|
1446
1446
|
break;
|
|
1447
1447
|
}
|
|
1448
1448
|
}
|
|
1449
1449
|
try {
|
|
1450
|
-
|
|
1450
|
+
c = Ne.call(this, y);
|
|
1451
1451
|
} catch (p) {
|
|
1452
1452
|
return Promise.reject(p);
|
|
1453
1453
|
}
|
|
1454
1454
|
for (d = 0, b = l.length; d < b; )
|
|
1455
|
-
|
|
1456
|
-
return
|
|
1455
|
+
c = c.then(l[d++], l[d++]);
|
|
1456
|
+
return c;
|
|
1457
1457
|
}
|
|
1458
1458
|
getUri(t) {
|
|
1459
|
-
t =
|
|
1460
|
-
const n =
|
|
1459
|
+
t = L(this.defaults, t);
|
|
1460
|
+
const n = Ge(t.baseURL, t.url);
|
|
1461
1461
|
return He(n, t.params, t.paramsSerializer);
|
|
1462
1462
|
}
|
|
1463
1463
|
}
|
|
1464
1464
|
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1465
|
-
|
|
1466
|
-
return this.request(
|
|
1465
|
+
F.prototype[t] = function(n, r) {
|
|
1466
|
+
return this.request(L(r || {}, {
|
|
1467
1467
|
method: t,
|
|
1468
1468
|
url: n,
|
|
1469
1469
|
data: (r || {}).data
|
|
@@ -1472,8 +1472,8 @@ a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
1472
1472
|
});
|
|
1473
1473
|
a.forEach(["post", "put", "patch"], function(t) {
|
|
1474
1474
|
function n(r) {
|
|
1475
|
-
return function(o, i,
|
|
1476
|
-
return this.request(
|
|
1475
|
+
return function(o, i, u) {
|
|
1476
|
+
return this.request(L(u || {}, {
|
|
1477
1477
|
method: t,
|
|
1478
1478
|
headers: r ? {
|
|
1479
1479
|
"Content-Type": "multipart/form-data"
|
|
@@ -1483,7 +1483,7 @@ a.forEach(["post", "put", "patch"], function(t) {
|
|
|
1483
1483
|
}));
|
|
1484
1484
|
};
|
|
1485
1485
|
}
|
|
1486
|
-
|
|
1486
|
+
F.prototype[t] = n(), F.prototype[t + "Form"] = n(!0);
|
|
1487
1487
|
});
|
|
1488
1488
|
class pe {
|
|
1489
1489
|
constructor(t) {
|
|
@@ -1503,14 +1503,14 @@ class pe {
|
|
|
1503
1503
|
r._listeners = null;
|
|
1504
1504
|
}), this.promise.then = (s) => {
|
|
1505
1505
|
let o;
|
|
1506
|
-
const i = new Promise((
|
|
1507
|
-
r.subscribe(
|
|
1506
|
+
const i = new Promise((u) => {
|
|
1507
|
+
r.subscribe(u), o = u;
|
|
1508
1508
|
}).then(s);
|
|
1509
1509
|
return i.cancel = function() {
|
|
1510
1510
|
r.unsubscribe(o);
|
|
1511
1511
|
}, i;
|
|
1512
|
-
}, t(function(o, i,
|
|
1513
|
-
r.reason || (r.reason = new
|
|
1512
|
+
}, t(function(o, i, u) {
|
|
1513
|
+
r.reason || (r.reason = new _(o, i, u), n(r.reason));
|
|
1514
1514
|
});
|
|
1515
1515
|
}
|
|
1516
1516
|
/**
|
|
@@ -1630,40 +1630,40 @@ Object.entries(ce).forEach(([e, t]) => {
|
|
|
1630
1630
|
ce[t] = e;
|
|
1631
1631
|
});
|
|
1632
1632
|
function Xe(e) {
|
|
1633
|
-
const t = new
|
|
1634
|
-
return a.extend(n,
|
|
1635
|
-
return Xe(
|
|
1633
|
+
const t = new F(e), n = xe(F.prototype.request, t);
|
|
1634
|
+
return a.extend(n, F.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1635
|
+
return Xe(L(e, s));
|
|
1636
1636
|
}, n;
|
|
1637
1637
|
}
|
|
1638
|
-
const
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1638
|
+
const g = Xe($);
|
|
1639
|
+
g.Axios = F;
|
|
1640
|
+
g.CanceledError = _;
|
|
1641
|
+
g.CancelToken = pe;
|
|
1642
|
+
g.isCancel = ze;
|
|
1643
|
+
g.VERSION = ve;
|
|
1644
|
+
g.toFormData = Q;
|
|
1645
|
+
g.AxiosError = h;
|
|
1646
|
+
g.Cancel = g.CanceledError;
|
|
1647
|
+
g.all = function(t) {
|
|
1648
1648
|
return Promise.all(t);
|
|
1649
1649
|
};
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
const
|
|
1659
|
-
var i,
|
|
1660
|
-
const t =
|
|
1650
|
+
g.spread = On;
|
|
1651
|
+
g.isAxiosError = An;
|
|
1652
|
+
g.mergeConfig = L;
|
|
1653
|
+
g.AxiosHeaders = R;
|
|
1654
|
+
g.formToJSON = (e) => Me(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1655
|
+
g.getAdapter = Qe.getAdapter;
|
|
1656
|
+
g.HttpStatusCode = ce;
|
|
1657
|
+
g.default = g;
|
|
1658
|
+
const N = (e) => {
|
|
1659
|
+
var i, u;
|
|
1660
|
+
const t = g.create(), n = e.apiVersion, r = e.productCode, s = e.baseUrl;
|
|
1661
1661
|
return e.responseInterceptor && t.interceptors.response.use(
|
|
1662
1662
|
(i = e.responseInterceptor) == null ? void 0 : i.onFulfilled,
|
|
1663
|
-
(
|
|
1663
|
+
(u = e.responseInterceptor) == null ? void 0 : u.onReject
|
|
1664
1664
|
), {
|
|
1665
1665
|
request: async (f, l) => {
|
|
1666
|
-
const
|
|
1666
|
+
const c = `${s}/${r}/${n}${f}`, d = {
|
|
1667
1667
|
"Content-Type": (l == null ? void 0 : l.contentType) || "application/json",
|
|
1668
1668
|
apiVersion: n,
|
|
1669
1669
|
Authorization: ""
|
|
@@ -1672,7 +1672,7 @@ const P = (e) => {
|
|
|
1672
1672
|
const b = {
|
|
1673
1673
|
method: (l == null ? void 0 : l.method) || "GET",
|
|
1674
1674
|
headers: d,
|
|
1675
|
-
url:
|
|
1675
|
+
url: c,
|
|
1676
1676
|
data: l == null ? void 0 : l.data,
|
|
1677
1677
|
responseType: l == null ? void 0 : l.responseType
|
|
1678
1678
|
};
|
|
@@ -1681,7 +1681,7 @@ const P = (e) => {
|
|
|
1681
1681
|
};
|
|
1682
1682
|
}, Nn = "cep";
|
|
1683
1683
|
function Pn(e) {
|
|
1684
|
-
const t =
|
|
1684
|
+
const t = N(e);
|
|
1685
1685
|
function n(r) {
|
|
1686
1686
|
return t.request(`/${Nn}`, {
|
|
1687
1687
|
method: "POST",
|
|
@@ -1693,7 +1693,7 @@ function Pn(e) {
|
|
|
1693
1693
|
};
|
|
1694
1694
|
}
|
|
1695
1695
|
const Ce = "auth", Cn = (e) => {
|
|
1696
|
-
const t =
|
|
1696
|
+
const t = N(e);
|
|
1697
1697
|
return {
|
|
1698
1698
|
postLogin: async (s) => {
|
|
1699
1699
|
var i;
|
|
@@ -1708,24 +1708,43 @@ const Ce = "auth", Cn = (e) => {
|
|
|
1708
1708
|
data: ""
|
|
1709
1709
|
})
|
|
1710
1710
|
};
|
|
1711
|
-
}, xn =
|
|
1712
|
-
const t =
|
|
1711
|
+
}, xn = (e) => {
|
|
1712
|
+
const t = N(e);
|
|
1713
1713
|
return {
|
|
1714
|
-
|
|
1714
|
+
signUp: async (o) => await t.request("/sign-up", {
|
|
1715
|
+
method: "POST",
|
|
1716
|
+
data: JSON.stringify(o)
|
|
1717
|
+
}),
|
|
1718
|
+
signIn: async (o) => {
|
|
1719
|
+
const i = await t.request("/sign-in", {
|
|
1720
|
+
method: "POST",
|
|
1721
|
+
data: JSON.stringify(o)
|
|
1722
|
+
});
|
|
1723
|
+
return i.data.accessToken && localStorage.setItem("accessToken", i.data.accessToken), i;
|
|
1724
|
+
},
|
|
1725
|
+
getProfile: async () => await t.request("/me", {
|
|
1715
1726
|
method: "GET",
|
|
1716
1727
|
data: ""
|
|
1717
1728
|
})
|
|
1718
1729
|
};
|
|
1719
|
-
},
|
|
1720
|
-
const t =
|
|
1730
|
+
}, Bn = "digital", Fn = (e) => {
|
|
1731
|
+
const t = N(e);
|
|
1721
1732
|
return {
|
|
1722
|
-
|
|
1733
|
+
getBroker: () => t.request(`/${Bn}/getBroker`, {
|
|
1734
|
+
method: "GET",
|
|
1735
|
+
data: ""
|
|
1736
|
+
})
|
|
1737
|
+
};
|
|
1738
|
+
}, Ln = "data", qn = (e) => {
|
|
1739
|
+
const t = N(e);
|
|
1740
|
+
return {
|
|
1741
|
+
postData: async (r) => await t.request(`/${Ln}`, {
|
|
1723
1742
|
method: "POST",
|
|
1724
1743
|
data: JSON.stringify(r)
|
|
1725
1744
|
})
|
|
1726
1745
|
};
|
|
1727
|
-
}, te = "payment",
|
|
1728
|
-
const t =
|
|
1746
|
+
}, te = "payment", kn = (e) => {
|
|
1747
|
+
const t = N(e);
|
|
1729
1748
|
return {
|
|
1730
1749
|
postPayment: (o) => t.request(`/${te}`, {
|
|
1731
1750
|
method: "POST",
|
|
@@ -1746,8 +1765,8 @@ const Ce = "auth", Cn = (e) => {
|
|
|
1746
1765
|
}
|
|
1747
1766
|
)
|
|
1748
1767
|
};
|
|
1749
|
-
}, H = "product/action",
|
|
1750
|
-
const t =
|
|
1768
|
+
}, H = "product/action", _n = (e) => {
|
|
1769
|
+
const t = N(e);
|
|
1751
1770
|
return {
|
|
1752
1771
|
getCnpjStatus: (i) => t.request(`/${H}/Custom/CnpjCheck?cnpj=${i}`, {
|
|
1753
1772
|
method: "GET",
|
|
@@ -1772,42 +1791,62 @@ const Ce = "auth", Cn = (e) => {
|
|
|
1772
1791
|
}
|
|
1773
1792
|
)
|
|
1774
1793
|
};
|
|
1775
|
-
},
|
|
1776
|
-
const t =
|
|
1794
|
+
}, B = "quotation", Dn = (e) => {
|
|
1795
|
+
const t = N(e);
|
|
1777
1796
|
return {
|
|
1778
|
-
|
|
1797
|
+
getQuotations: (c) => {
|
|
1798
|
+
const d = new URLSearchParams({ ...c });
|
|
1799
|
+
return t.request(
|
|
1800
|
+
`/${B}/query?${d.toString()}`,
|
|
1801
|
+
{
|
|
1802
|
+
method: "GET",
|
|
1803
|
+
data: ""
|
|
1804
|
+
}
|
|
1805
|
+
);
|
|
1806
|
+
},
|
|
1807
|
+
getQuotationDetail: (c) => {
|
|
1808
|
+
const d = new URLSearchParams({ id: c.policyId });
|
|
1809
|
+
return t.request(
|
|
1810
|
+
`/${B}?${d.toString()}`,
|
|
1811
|
+
{
|
|
1812
|
+
method: "GET",
|
|
1813
|
+
data: ""
|
|
1814
|
+
}
|
|
1815
|
+
);
|
|
1816
|
+
},
|
|
1817
|
+
postQuickQuote: (c) => t.request(`/${B}/QuickQuote`, {
|
|
1779
1818
|
method: "POST",
|
|
1780
|
-
data: JSON.stringify(
|
|
1819
|
+
data: JSON.stringify(c)
|
|
1781
1820
|
}),
|
|
1782
|
-
postFullQuote: (
|
|
1821
|
+
postFullQuote: (c) => t.request(`/${B}/FullQuote`, {
|
|
1783
1822
|
method: "POST",
|
|
1784
|
-
data: JSON.stringify(
|
|
1823
|
+
data: JSON.stringify(c)
|
|
1785
1824
|
}),
|
|
1786
|
-
postBind: (
|
|
1825
|
+
postBind: (c) => t.request(`/${B}/Bind`, {
|
|
1787
1826
|
method: "POST",
|
|
1788
|
-
data: JSON.stringify(
|
|
1827
|
+
data: JSON.stringify(c)
|
|
1789
1828
|
}),
|
|
1790
|
-
getQuotation: (
|
|
1829
|
+
getQuotation: (c) => t.request(`/${B}?id=${c.policyId}`, {
|
|
1791
1830
|
method: "GET",
|
|
1792
1831
|
data: ""
|
|
1793
1832
|
}),
|
|
1794
|
-
getVersions: (
|
|
1795
|
-
`/${
|
|
1833
|
+
getVersions: (c) => t.request(
|
|
1834
|
+
`/${B}/versions?policyId=${c.policyId}`,
|
|
1796
1835
|
{
|
|
1797
1836
|
method: "GET",
|
|
1798
1837
|
data: ""
|
|
1799
1838
|
}
|
|
1800
1839
|
),
|
|
1801
|
-
switchSelectedVersion: (
|
|
1802
|
-
`/${
|
|
1840
|
+
switchSelectedVersion: (c) => t.request(
|
|
1841
|
+
`/${B}/switchSelectedVersion?policyId=${c.policyId}"ationVersionId=${c.quotationVersionId}`,
|
|
1803
1842
|
{
|
|
1804
1843
|
method: "POST",
|
|
1805
|
-
data: JSON.stringify(
|
|
1844
|
+
data: JSON.stringify(c)
|
|
1806
1845
|
}
|
|
1807
1846
|
)
|
|
1808
1847
|
};
|
|
1809
|
-
},
|
|
1810
|
-
const t =
|
|
1848
|
+
}, Un = "report", jn = (e) => {
|
|
1849
|
+
const t = N(e);
|
|
1811
1850
|
return {
|
|
1812
1851
|
getReportStream: (r) => {
|
|
1813
1852
|
const s = new URLSearchParams({
|
|
@@ -1816,7 +1855,7 @@ const Ce = "auth", Cn = (e) => {
|
|
|
1816
1855
|
...r.additionalParams
|
|
1817
1856
|
});
|
|
1818
1857
|
return t.request(
|
|
1819
|
-
`/${
|
|
1858
|
+
`/${Un}/generate-stream?${s.toString()}`,
|
|
1820
1859
|
{
|
|
1821
1860
|
method: "GET",
|
|
1822
1861
|
data: "",
|
|
@@ -1825,11 +1864,11 @@ const Ce = "auth", Cn = (e) => {
|
|
|
1825
1864
|
);
|
|
1826
1865
|
}
|
|
1827
1866
|
};
|
|
1828
|
-
},
|
|
1829
|
-
const t =
|
|
1867
|
+
}, In = "SubscriberData", $n = (e) => {
|
|
1868
|
+
const t = N(e);
|
|
1830
1869
|
return {
|
|
1831
1870
|
getSubscriber: (r) => t.request(
|
|
1832
|
-
`/${
|
|
1871
|
+
`/${In}/get-subscriber-data?cnpj=${r}`,
|
|
1833
1872
|
{
|
|
1834
1873
|
method: "GET",
|
|
1835
1874
|
data: ""
|
|
@@ -1837,20 +1876,21 @@ const Ce = "auth", Cn = (e) => {
|
|
|
1837
1876
|
)
|
|
1838
1877
|
};
|
|
1839
1878
|
};
|
|
1840
|
-
function
|
|
1841
|
-
const t = Cn(e), n =
|
|
1879
|
+
function Hn(e) {
|
|
1880
|
+
const t = Cn(e), n = xn(e), r = qn(e), s = Dn(e), o = kn(e), i = Pn(e), u = Fn(e), f = _n(e), l = jn(e), c = $n(e);
|
|
1842
1881
|
return {
|
|
1843
1882
|
auth: t,
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1883
|
+
authAkad: n,
|
|
1884
|
+
data: r,
|
|
1885
|
+
quotation: s,
|
|
1886
|
+
payment: o,
|
|
1887
|
+
address: i,
|
|
1888
|
+
broker: u,
|
|
1889
|
+
plugin: f,
|
|
1890
|
+
report: l,
|
|
1891
|
+
subscriber: c
|
|
1852
1892
|
};
|
|
1853
1893
|
}
|
|
1854
1894
|
export {
|
|
1855
|
-
|
|
1895
|
+
Hn as default
|
|
1856
1896
|
};
|