@akad/sdk 1.0.6 → 1.0.8
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/main.d.ts +4 -0
- package/package.json +1 -1
- package/plugin/index.d.ts +3 -1
- package/plugin/types.d.ts +5 -0
- package/quotation/index.d.ts +4 -0
- package/quotation/switchSelectedVersionType.d.ts +4 -0
- package/quotation/versionsType.d.ts +3 -0
- package/ts-lib.js +474 -449
- package/ts-lib.umd.cjs +6 -6
package/ts-lib.js
CHANGED
|
@@ -3,33 +3,33 @@ function xe(e, t) {
|
|
|
3
3
|
return e.apply(t, arguments);
|
|
4
4
|
};
|
|
5
5
|
}
|
|
6
|
-
const { toString:
|
|
7
|
-
const n =
|
|
6
|
+
const { toString: Ye } = Object.prototype, { getPrototypeOf: ue } = Object, V = /* @__PURE__ */ ((e) => (t) => {
|
|
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) => V(t) === e),
|
|
10
|
-
function Ye(e) {
|
|
11
|
-
return e !== null && !q(e) && e.constructor !== null && !q(e.constructor) && T(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
12
|
-
}
|
|
13
|
-
const Ce = A("ArrayBuffer");
|
|
9
|
+
})(/* @__PURE__ */ Object.create(null)), A = (e) => (e = e.toLowerCase(), (t) => V(t) === e), K = (e) => (t) => typeof t === e, { isArray: k } = Array, j = K("undefined");
|
|
14
10
|
function et(e) {
|
|
11
|
+
return e !== null && !j(e) && e.constructor !== null && !j(e.constructor) && T(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
12
|
+
}
|
|
13
|
+
const Be = A("ArrayBuffer");
|
|
14
|
+
function tt(e) {
|
|
15
15
|
let t;
|
|
16
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
16
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Be(e.buffer), t;
|
|
17
17
|
}
|
|
18
|
-
const
|
|
18
|
+
const nt = K("string"), T = K("function"), Fe = K("number"), G = (e) => e !== null && typeof e == "object", rt = (e) => e === !0 || e === !1, H = (e) => {
|
|
19
19
|
if (V(e) !== "object")
|
|
20
20
|
return !1;
|
|
21
|
-
const t =
|
|
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) => G(e) && T(e.pipe), ut = (e) => {
|
|
24
24
|
let t;
|
|
25
25
|
return e && (typeof FormData == "function" && e instanceof FormData || T(e.append) && ((t = V(e)) === "formdata" || // detect form-data instance
|
|
26
26
|
t === "object" && T(e.toString) && e.toString() === "[object FormData]"));
|
|
27
|
-
},
|
|
28
|
-
function
|
|
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
|
+
function I(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
29
29
|
if (e === null || typeof e > "u")
|
|
30
30
|
return;
|
|
31
31
|
let r, s;
|
|
32
|
-
if (typeof e != "object" && (e = [e]),
|
|
32
|
+
if (typeof e != "object" && (e = [e]), k(e))
|
|
33
33
|
for (r = 0, s = e.length; r < s; r++)
|
|
34
34
|
t.call(null, e[r], r, e);
|
|
35
35
|
else {
|
|
@@ -39,7 +39,7 @@ function j(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
39
39
|
c = o[r], t.call(null, e[c], c, e);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Le(e, t) {
|
|
43
43
|
t = t.toLowerCase();
|
|
44
44
|
const n = Object.keys(e);
|
|
45
45
|
let r = n.length, s;
|
|
@@ -48,23 +48,23 @@ function Be(e, t) {
|
|
|
48
48
|
return s;
|
|
49
49
|
return null;
|
|
50
50
|
}
|
|
51
|
-
const
|
|
52
|
-
function
|
|
53
|
-
const { caseless: e } =
|
|
54
|
-
const o = e &&
|
|
55
|
-
H(t[o]) && H(r) ? t[o] =
|
|
51
|
+
const _e = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ke = (e) => !j(e) && e !== _e;
|
|
52
|
+
function ne() {
|
|
53
|
+
const { caseless: e } = ke(this) && this || {}, t = {}, n = (r, s) => {
|
|
54
|
+
const o = e && Le(t, s) || s;
|
|
55
|
+
H(t[o]) && H(r) ? t[o] = ne(t[o], r) : H(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
|
-
arguments[r] &&
|
|
58
|
+
arguments[r] && I(arguments[r], n);
|
|
59
59
|
return t;
|
|
60
60
|
}
|
|
61
|
-
const
|
|
61
|
+
const yt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
|
|
62
62
|
n && T(s) ? e[o] = xe(s, n) : e[o] = s;
|
|
63
|
-
}, { allOwnKeys: r }), e),
|
|
63
|
+
}, { allOwnKeys: r }), e), bt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), wt = (e, t, n, r) => {
|
|
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
|
+
}, Et = (e, t, n, r) => {
|
|
68
68
|
let s, o, i;
|
|
69
69
|
const c = {};
|
|
70
70
|
if (t = t || {}, e == null)
|
|
@@ -72,17 +72,17 @@ const mt = (e, t, n, { allOwnKeys: r } = {}) => (j(t, (s, o) => {
|
|
|
72
72
|
do {
|
|
73
73
|
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
74
74
|
i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
|
|
75
|
-
e = n !== !1 &&
|
|
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
|
+
}, gt = (e) => {
|
|
83
83
|
if (!e)
|
|
84
84
|
return null;
|
|
85
|
-
if (
|
|
85
|
+
if (k(e))
|
|
86
86
|
return e;
|
|
87
87
|
let t = e.length;
|
|
88
88
|
if (!Fe(t))
|
|
@@ -91,32 +91,32 @@ const mt = (e, t, n, { allOwnKeys: r } = {}) => (j(t, (s, o) => {
|
|
|
91
91
|
for (; t-- > 0; )
|
|
92
92
|
n[t] = e[t];
|
|
93
93
|
return n;
|
|
94
|
-
},
|
|
94
|
+
}, Rt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ue(Uint8Array)), Tt = (e, t) => {
|
|
95
95
|
const r = (e && e[Symbol.iterator]).call(e);
|
|
96
96
|
let s;
|
|
97
97
|
for (; (s = r.next()) && !s.done; ) {
|
|
98
98
|
const o = s.value;
|
|
99
99
|
t.call(e, o[0], o[1]);
|
|
100
100
|
}
|
|
101
|
-
},
|
|
101
|
+
}, Ot = (e, t) => {
|
|
102
102
|
let n;
|
|
103
103
|
const r = [];
|
|
104
104
|
for (; (n = e.exec(t)) !== null; )
|
|
105
105
|
r.push(n);
|
|
106
106
|
return r;
|
|
107
|
-
},
|
|
107
|
+
}, At = A("HTMLFormElement"), Nt = (e) => e.toLowerCase().replace(
|
|
108
108
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
109
109
|
function(n, r, s) {
|
|
110
110
|
return r.toUpperCase() + s;
|
|
111
111
|
}
|
|
112
|
-
),
|
|
112
|
+
), me = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Pt = A("RegExp"), De = (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
|
-
},
|
|
119
|
-
|
|
118
|
+
}, Ct = (e) => {
|
|
119
|
+
De(e, (t, n) => {
|
|
120
120
|
if (T(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
121
121
|
return !1;
|
|
122
122
|
const r = e[n];
|
|
@@ -136,96 +136,96 @@ const mt = (e, t, n, { allOwnKeys: r } = {}) => (j(t, (s, o) => {
|
|
|
136
136
|
n[o] = !0;
|
|
137
137
|
});
|
|
138
138
|
};
|
|
139
|
-
return
|
|
140
|
-
},
|
|
141
|
-
}, Ft = (e, t) => e != null && Number.isFinite(e = +e) ? e : t,
|
|
142
|
-
DIGIT:
|
|
143
|
-
ALPHA:
|
|
144
|
-
ALPHA_DIGIT:
|
|
145
|
-
},
|
|
139
|
+
return k(e) ? r(e) : r(String(e).split(t)), n;
|
|
140
|
+
}, Bt = () => {
|
|
141
|
+
}, Ft = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Q = "abcdefghijklmnopqrstuvwxyz", ye = "0123456789", Ue = {
|
|
142
|
+
DIGIT: ye,
|
|
143
|
+
ALPHA: Q,
|
|
144
|
+
ALPHA_DIGIT: Q + Q.toUpperCase() + ye
|
|
145
|
+
}, Lt = (e = 16, t = Ue.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 _t(e) {
|
|
153
153
|
return !!(e && T(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
154
154
|
}
|
|
155
|
-
const
|
|
155
|
+
const kt = (e) => {
|
|
156
156
|
const t = new Array(10), n = (r, s) => {
|
|
157
|
-
if (
|
|
157
|
+
if (G(r)) {
|
|
158
158
|
if (t.indexOf(r) >= 0)
|
|
159
159
|
return;
|
|
160
160
|
if (!("toJSON" in r)) {
|
|
161
161
|
t[s] = r;
|
|
162
|
-
const o =
|
|
163
|
-
return
|
|
164
|
-
const
|
|
165
|
-
!
|
|
162
|
+
const o = k(r) ? [] : {};
|
|
163
|
+
return I(r, (i, c) => {
|
|
164
|
+
const l = n(i, s + 1);
|
|
165
|
+
!j(l) && (o[c] = l);
|
|
166
166
|
}), t[s] = void 0, o;
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
return r;
|
|
170
170
|
};
|
|
171
171
|
return n(e, 0);
|
|
172
|
-
},
|
|
173
|
-
isArray:
|
|
174
|
-
isArrayBuffer:
|
|
175
|
-
isBuffer:
|
|
176
|
-
isFormData:
|
|
177
|
-
isArrayBufferView:
|
|
178
|
-
isString:
|
|
172
|
+
}, Dt = A("AsyncFunction"), Ut = (e) => e && (G(e) || T(e)) && T(e.then) && T(e.catch), a = {
|
|
173
|
+
isArray: k,
|
|
174
|
+
isArrayBuffer: Be,
|
|
175
|
+
isBuffer: et,
|
|
176
|
+
isFormData: ut,
|
|
177
|
+
isArrayBufferView: tt,
|
|
178
|
+
isString: nt,
|
|
179
179
|
isNumber: Fe,
|
|
180
|
-
isBoolean:
|
|
181
|
-
isObject:
|
|
180
|
+
isBoolean: rt,
|
|
181
|
+
isObject: G,
|
|
182
182
|
isPlainObject: H,
|
|
183
|
-
isReadableStream:
|
|
184
|
-
isRequest:
|
|
185
|
-
isResponse:
|
|
186
|
-
isHeaders:
|
|
187
|
-
isUndefined:
|
|
188
|
-
isDate:
|
|
189
|
-
isFile:
|
|
190
|
-
isBlob:
|
|
183
|
+
isReadableStream: ft,
|
|
184
|
+
isRequest: dt,
|
|
185
|
+
isResponse: pt,
|
|
186
|
+
isHeaders: ht,
|
|
187
|
+
isUndefined: j,
|
|
188
|
+
isDate: st,
|
|
189
|
+
isFile: ot,
|
|
190
|
+
isBlob: it,
|
|
191
191
|
isRegExp: Pt,
|
|
192
192
|
isFunction: T,
|
|
193
|
-
isStream:
|
|
194
|
-
isURLSearchParams:
|
|
195
|
-
isTypedArray:
|
|
196
|
-
isFileList:
|
|
197
|
-
forEach:
|
|
198
|
-
merge:
|
|
199
|
-
extend:
|
|
200
|
-
trim:
|
|
201
|
-
stripBOM:
|
|
193
|
+
isStream: ct,
|
|
194
|
+
isURLSearchParams: lt,
|
|
195
|
+
isTypedArray: Rt,
|
|
196
|
+
isFileList: at,
|
|
197
|
+
forEach: I,
|
|
198
|
+
merge: ne,
|
|
199
|
+
extend: yt,
|
|
200
|
+
trim: mt,
|
|
201
|
+
stripBOM: bt,
|
|
202
202
|
inherits: wt,
|
|
203
|
-
toFlatObject:
|
|
203
|
+
toFlatObject: Et,
|
|
204
204
|
kindOf: V,
|
|
205
205
|
kindOfTest: A,
|
|
206
|
-
endsWith:
|
|
207
|
-
toArray:
|
|
208
|
-
forEachEntry:
|
|
209
|
-
matchAll:
|
|
210
|
-
isHTMLForm:
|
|
211
|
-
hasOwnProperty:
|
|
212
|
-
hasOwnProp:
|
|
206
|
+
endsWith: St,
|
|
207
|
+
toArray: gt,
|
|
208
|
+
forEachEntry: Tt,
|
|
209
|
+
matchAll: Ot,
|
|
210
|
+
isHTMLForm: At,
|
|
211
|
+
hasOwnProperty: me,
|
|
212
|
+
hasOwnProp: me,
|
|
213
213
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
214
|
-
reduceDescriptors:
|
|
215
|
-
freezeMethods:
|
|
214
|
+
reduceDescriptors: De,
|
|
215
|
+
freezeMethods: Ct,
|
|
216
216
|
toObjectSet: xt,
|
|
217
|
-
toCamelCase:
|
|
218
|
-
noop:
|
|
217
|
+
toCamelCase: Nt,
|
|
218
|
+
noop: Bt,
|
|
219
219
|
toFiniteNumber: Ft,
|
|
220
|
-
findKey:
|
|
221
|
-
global:
|
|
222
|
-
isContextDefined:
|
|
223
|
-
ALPHABET:
|
|
224
|
-
generateString:
|
|
225
|
-
isSpecCompliantForm:
|
|
226
|
-
toJSONObject:
|
|
227
|
-
isAsyncFn:
|
|
228
|
-
isThenable:
|
|
220
|
+
findKey: Le,
|
|
221
|
+
global: _e,
|
|
222
|
+
isContextDefined: ke,
|
|
223
|
+
ALPHABET: Ue,
|
|
224
|
+
generateString: Lt,
|
|
225
|
+
isSpecCompliantForm: _t,
|
|
226
|
+
toJSONObject: kt,
|
|
227
|
+
isAsyncFn: Dt,
|
|
228
|
+
isThenable: Ut
|
|
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);
|
|
@@ -251,7 +251,7 @@ a.inherits(h, Error, {
|
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
253
|
});
|
|
254
|
-
const
|
|
254
|
+
const qe = h.prototype, je = {};
|
|
255
255
|
[
|
|
256
256
|
"ERR_BAD_OPTION_VALUE",
|
|
257
257
|
"ERR_BAD_OPTION",
|
|
@@ -267,35 +267,35 @@ const Ue = h.prototype, qe = {};
|
|
|
267
267
|
"ERR_INVALID_URL"
|
|
268
268
|
// eslint-disable-next-line func-names
|
|
269
269
|
].forEach((e) => {
|
|
270
|
-
|
|
270
|
+
je[e] = { value: e };
|
|
271
271
|
});
|
|
272
|
-
Object.defineProperties(h,
|
|
273
|
-
Object.defineProperty(
|
|
272
|
+
Object.defineProperties(h, je);
|
|
273
|
+
Object.defineProperty(qe, "isAxiosError", { value: !0 });
|
|
274
274
|
h.from = (e, t, n, r, s, o) => {
|
|
275
|
-
const i = Object.create(
|
|
276
|
-
return a.toFlatObject(e, i, function(
|
|
277
|
-
return
|
|
275
|
+
const i = Object.create(qe);
|
|
276
|
+
return a.toFlatObject(e, i, function(l) {
|
|
277
|
+
return l !== Error.prototype;
|
|
278
278
|
}, (c) => c !== "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
|
-
const
|
|
281
|
-
function
|
|
280
|
+
const qt = null;
|
|
281
|
+
function re(e) {
|
|
282
282
|
return a.isPlainObject(e) || a.isArray(e);
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function Ie(e) {
|
|
285
285
|
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function be(e, t, n) {
|
|
288
288
|
return e ? e.concat(t).map(function(s, o) {
|
|
289
|
-
return s =
|
|
289
|
+
return s = Ie(s), !n && o ? "[" + s + "]" : s;
|
|
290
290
|
}).join(n ? "." : "") : t;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
293
|
-
return a.isArray(e) && !e.some(
|
|
292
|
+
function jt(e) {
|
|
293
|
+
return a.isArray(e) && !e.some(re);
|
|
294
294
|
}
|
|
295
|
-
const
|
|
295
|
+
const It = a.toFlatObject(a, {}, null, function(t) {
|
|
296
296
|
return /^is[A-Z]/.test(t);
|
|
297
297
|
});
|
|
298
|
-
function
|
|
298
|
+
function W(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, {
|
|
@@ -305,51 +305,51 @@ function G(e, t, n) {
|
|
|
305
305
|
}, !1, function(m, S) {
|
|
306
306
|
return !a.isUndefined(S[m]);
|
|
307
307
|
});
|
|
308
|
-
const r = n.metaTokens, s = n.visitor || u, o = n.dots, i = n.indexes,
|
|
308
|
+
const r = n.metaTokens, s = n.visitor || u, o = n.dots, i = n.indexes, l = (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
|
-
function
|
|
311
|
+
function f(p) {
|
|
312
312
|
if (p === null)
|
|
313
313
|
return "";
|
|
314
314
|
if (a.isDate(p))
|
|
315
315
|
return p.toISOString();
|
|
316
|
-
if (!
|
|
316
|
+
if (!l && a.isBlob(p))
|
|
317
317
|
throw new h("Blob is not supported. Use a Buffer instead.");
|
|
318
|
-
return a.isArrayBuffer(p) || a.isTypedArray(p) ?
|
|
318
|
+
return a.isArrayBuffer(p) || a.isTypedArray(p) ? l && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
319
319
|
}
|
|
320
320
|
function u(p, m, S) {
|
|
321
321
|
let g = p;
|
|
322
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) &&
|
|
326
|
-
return m =
|
|
327
|
-
!(a.isUndefined(
|
|
325
|
+
else if (a.isArray(p) && jt(p) || (a.isFileList(p) || a.endsWith(m, "[]")) && (g = a.toArray(p)))
|
|
326
|
+
return m = Ie(m), g.forEach(function(w, U) {
|
|
327
|
+
!(a.isUndefined(w) || w === null) && t.append(
|
|
328
328
|
// eslint-disable-next-line no-nested-ternary
|
|
329
|
-
i === !0 ?
|
|
330
|
-
|
|
329
|
+
i === !0 ? be([m], U, o) : i === null ? m : m + "[]",
|
|
330
|
+
f(w)
|
|
331
331
|
);
|
|
332
332
|
}), !1;
|
|
333
333
|
}
|
|
334
|
-
return
|
|
334
|
+
return re(p) ? !0 : (t.append(be(S, m, o), f(p)), !1);
|
|
335
335
|
}
|
|
336
|
-
const d = [],
|
|
336
|
+
const d = [], b = Object.assign(It, {
|
|
337
337
|
defaultVisitor: u,
|
|
338
|
-
convertValue:
|
|
339
|
-
isVisitable:
|
|
338
|
+
convertValue: f,
|
|
339
|
+
isVisitable: re
|
|
340
340
|
});
|
|
341
341
|
function y(p, m) {
|
|
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(g,
|
|
345
|
+
d.push(p), a.forEach(p, function(g, N) {
|
|
346
346
|
(!(a.isUndefined(g) || g === null) && s.call(
|
|
347
347
|
t,
|
|
348
348
|
g,
|
|
349
|
-
a.isString(
|
|
349
|
+
a.isString(N) ? N.trim() : N,
|
|
350
350
|
m,
|
|
351
|
-
|
|
352
|
-
)) === !0 && y(g, m ? m.concat(
|
|
351
|
+
b
|
|
352
|
+
)) === !0 && y(g, m ? m.concat(N) : [N]);
|
|
353
353
|
}), d.pop();
|
|
354
354
|
}
|
|
355
355
|
}
|
|
@@ -371,14 +371,14 @@ function we(e) {
|
|
|
371
371
|
return t[r];
|
|
372
372
|
});
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
this._pairs = [], e &&
|
|
374
|
+
function le(e, t) {
|
|
375
|
+
this._pairs = [], e && W(e, this, t);
|
|
376
376
|
}
|
|
377
|
-
const
|
|
378
|
-
|
|
377
|
+
const $e = le.prototype;
|
|
378
|
+
$e.append = function(t, n) {
|
|
379
379
|
this._pairs.push([t, n]);
|
|
380
380
|
};
|
|
381
|
-
|
|
381
|
+
$e.toString = function(t) {
|
|
382
382
|
const n = t ? function(r) {
|
|
383
383
|
return t.call(this, r, we);
|
|
384
384
|
} : we;
|
|
@@ -386,21 +386,21 @@ Ie.toString = function(t) {
|
|
|
386
386
|
return n(s[0]) + "=" + n(s[1]);
|
|
387
387
|
}, "").join("&");
|
|
388
388
|
};
|
|
389
|
-
function
|
|
389
|
+
function $t(e) {
|
|
390
390
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function He(e, t, n) {
|
|
393
393
|
if (!t)
|
|
394
394
|
return e;
|
|
395
|
-
const r = n && n.encode ||
|
|
395
|
+
const r = n && n.encode || $t, s = n && n.serialize;
|
|
396
396
|
let o;
|
|
397
|
-
if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new
|
|
397
|
+
if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new le(t, n).toString(r), o) {
|
|
398
398
|
const i = e.indexOf("#");
|
|
399
399
|
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
400
400
|
}
|
|
401
401
|
return e;
|
|
402
402
|
}
|
|
403
|
-
class
|
|
403
|
+
class Ee {
|
|
404
404
|
constructor() {
|
|
405
405
|
this.handlers = [];
|
|
406
406
|
}
|
|
@@ -454,31 +454,31 @@ class be {
|
|
|
454
454
|
});
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
|
-
const
|
|
457
|
+
const Me = {
|
|
458
458
|
silentJSONParsing: !0,
|
|
459
459
|
forcedJSONParsing: !0,
|
|
460
460
|
clarifyTimeoutError: !1
|
|
461
|
-
},
|
|
461
|
+
}, Ht = typeof URLSearchParams < "u" ? URLSearchParams : le, Mt = typeof FormData < "u" ? FormData : null, Jt = typeof Blob < "u" ? Blob : null, zt = {
|
|
462
462
|
isBrowser: !0,
|
|
463
463
|
classes: {
|
|
464
|
-
URLSearchParams:
|
|
465
|
-
FormData:
|
|
466
|
-
Blob:
|
|
464
|
+
URLSearchParams: Ht,
|
|
465
|
+
FormData: Mt,
|
|
466
|
+
Blob: Jt
|
|
467
467
|
},
|
|
468
468
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
469
|
-
},
|
|
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), Kt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
470
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Gt = fe && window.location.href || "http://localhost", Wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
471
471
|
__proto__: null,
|
|
472
|
-
hasBrowserEnv:
|
|
473
|
-
hasStandardBrowserEnv:
|
|
474
|
-
hasStandardBrowserWebWorkerEnv:
|
|
475
|
-
origin:
|
|
472
|
+
hasBrowserEnv: fe,
|
|
473
|
+
hasStandardBrowserEnv: Vt,
|
|
474
|
+
hasStandardBrowserWebWorkerEnv: Kt,
|
|
475
|
+
origin: Gt
|
|
476
476
|
}, Symbol.toStringTag, { value: "Module" })), O = {
|
|
477
|
-
...
|
|
477
|
+
...Wt,
|
|
478
478
|
...zt
|
|
479
479
|
};
|
|
480
|
-
function
|
|
481
|
-
return
|
|
480
|
+
function vt(e, t) {
|
|
481
|
+
return W(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
|
}
|
|
@@ -487,7 +487,7 @@ function Gt(e, t) {
|
|
|
487
487
|
function Qt(e) {
|
|
488
488
|
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function Xt(e) {
|
|
491
491
|
const t = {}, n = Object.keys(e);
|
|
492
492
|
let r;
|
|
493
493
|
const s = n.length;
|
|
@@ -496,13 +496,13 @@ function vt(e) {
|
|
|
496
496
|
o = n[r], t[o] = e[o];
|
|
497
497
|
return t;
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function Je(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 c = Number.isFinite(+i),
|
|
505
|
-
return i = !i && a.isArray(s) ? s.length : i,
|
|
504
|
+
const c = Number.isFinite(+i), l = o >= n.length;
|
|
505
|
+
return i = !i && a.isArray(s) ? s.length : i, l ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = Xt(s[i])), !c);
|
|
506
506
|
}
|
|
507
507
|
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
508
508
|
const n = {};
|
|
@@ -512,7 +512,7 @@ function Me(e) {
|
|
|
512
512
|
}
|
|
513
513
|
return null;
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Zt(e, t, n) {
|
|
516
516
|
if (a.isString(e))
|
|
517
517
|
try {
|
|
518
518
|
return (t || JSON.parse)(e), a.trim(e);
|
|
@@ -522,13 +522,13 @@ function Xt(e, t, n) {
|
|
|
522
522
|
}
|
|
523
523
|
return (n || JSON.stringify)(e);
|
|
524
524
|
}
|
|
525
|
-
const
|
|
526
|
-
transitional:
|
|
525
|
+
const $ = {
|
|
526
|
+
transitional: Me,
|
|
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(Je(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))
|
|
@@ -538,20 +538,20 @@ const I = {
|
|
|
538
538
|
let c;
|
|
539
539
|
if (o) {
|
|
540
540
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
541
|
-
return
|
|
541
|
+
return vt(t, this.formSerializer).toString();
|
|
542
542
|
if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
543
|
-
const
|
|
544
|
-
return
|
|
543
|
+
const l = this.env && this.env.FormData;
|
|
544
|
+
return W(
|
|
545
545
|
c ? { "files[]": t } : t,
|
|
546
|
-
|
|
546
|
+
l && new l(),
|
|
547
547
|
this.formSerializer
|
|
548
548
|
);
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
return o || s ? (n.setContentType("application/json", !1),
|
|
551
|
+
return o || s ? (n.setContentType("application/json", !1), Zt(t)) : t;
|
|
552
552
|
}],
|
|
553
553
|
transformResponse: [function(t) {
|
|
554
|
-
const n = this.transitional ||
|
|
554
|
+
const n = this.transitional || $.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
555
555
|
if (a.isResponse(t) || a.isReadableStream(t))
|
|
556
556
|
return t;
|
|
557
557
|
if (t && a.isString(t) && (r && !this.responseType || s)) {
|
|
@@ -589,9 +589,9 @@ const I = {
|
|
|
589
589
|
}
|
|
590
590
|
};
|
|
591
591
|
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
592
|
-
|
|
592
|
+
$.headers[e] = {};
|
|
593
593
|
});
|
|
594
|
-
const
|
|
594
|
+
const Yt = a.toObjectSet([
|
|
595
595
|
"age",
|
|
596
596
|
"authorization",
|
|
597
597
|
"content-length",
|
|
@@ -609,28 +609,28 @@ const Zt = a.toObjectSet([
|
|
|
609
609
|
"referer",
|
|
610
610
|
"retry-after",
|
|
611
611
|
"user-agent"
|
|
612
|
-
]),
|
|
612
|
+
]), en = (e) => {
|
|
613
613
|
const t = {};
|
|
614
614
|
let n, r, s;
|
|
615
615
|
return e && e.split(`
|
|
616
616
|
`).forEach(function(i) {
|
|
617
|
-
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] &&
|
|
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
|
-
},
|
|
620
|
-
function
|
|
619
|
+
}, Se = Symbol("internals");
|
|
620
|
+
function q(e) {
|
|
621
621
|
return e && String(e).trim().toLowerCase();
|
|
622
622
|
}
|
|
623
623
|
function M(e) {
|
|
624
624
|
return e === !1 || e == null ? e : a.isArray(e) ? e.map(M) : String(e);
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function tn(e) {
|
|
627
627
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
628
628
|
let r;
|
|
629
629
|
for (; r = n.exec(e); )
|
|
630
630
|
t[r[1]] = r[2];
|
|
631
631
|
return t;
|
|
632
632
|
}
|
|
633
|
-
const
|
|
633
|
+
const nn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
634
634
|
function X(e, t, n, r, s) {
|
|
635
635
|
if (a.isFunction(r))
|
|
636
636
|
return r.call(this, t, n);
|
|
@@ -641,10 +641,10 @@ function X(e, t, n, r, s) {
|
|
|
641
641
|
return r.test(t);
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function rn(e) {
|
|
645
645
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
646
646
|
}
|
|
647
|
-
function
|
|
647
|
+
function sn(e, t) {
|
|
648
648
|
const n = a.toCamelCase(" " + t);
|
|
649
649
|
["get", "set", "has"].forEach((r) => {
|
|
650
650
|
Object.defineProperty(e, r + n, {
|
|
@@ -661,34 +661,34 @@ class R {
|
|
|
661
661
|
}
|
|
662
662
|
set(t, n, r) {
|
|
663
663
|
const s = this;
|
|
664
|
-
function o(c,
|
|
665
|
-
const u =
|
|
664
|
+
function o(c, l, f) {
|
|
665
|
+
const u = q(l);
|
|
666
666
|
if (!u)
|
|
667
667
|
throw new Error("header name must be a non-empty string");
|
|
668
668
|
const d = a.findKey(s, u);
|
|
669
|
-
(!d || s[d] === void 0 ||
|
|
669
|
+
(!d || s[d] === void 0 || f === !0 || f === void 0 && s[d] !== !1) && (s[d || l] = M(c));
|
|
670
670
|
}
|
|
671
|
-
const i = (c,
|
|
671
|
+
const i = (c, l) => a.forEach(c, (f, u) => o(f, u, l));
|
|
672
672
|
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
673
673
|
i(t, n);
|
|
674
|
-
else if (a.isString(t) && (t = t.trim()) && !
|
|
675
|
-
i(
|
|
674
|
+
else if (a.isString(t) && (t = t.trim()) && !nn(t))
|
|
675
|
+
i(en(t), n);
|
|
676
676
|
else if (a.isHeaders(t))
|
|
677
|
-
for (const [c,
|
|
678
|
-
o(
|
|
677
|
+
for (const [c, l] of t.entries())
|
|
678
|
+
o(l, c, r);
|
|
679
679
|
else
|
|
680
680
|
t != null && o(n, t, r);
|
|
681
681
|
return this;
|
|
682
682
|
}
|
|
683
683
|
get(t, n) {
|
|
684
|
-
if (t =
|
|
684
|
+
if (t = q(t), t) {
|
|
685
685
|
const r = a.findKey(this, t);
|
|
686
686
|
if (r) {
|
|
687
687
|
const s = this[r];
|
|
688
688
|
if (!n)
|
|
689
689
|
return s;
|
|
690
690
|
if (n === !0)
|
|
691
|
-
return
|
|
691
|
+
return tn(s);
|
|
692
692
|
if (a.isFunction(n))
|
|
693
693
|
return n.call(this, s, r);
|
|
694
694
|
if (a.isRegExp(n))
|
|
@@ -698,7 +698,7 @@ class R {
|
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
700
|
has(t, n) {
|
|
701
|
-
if (t =
|
|
701
|
+
if (t = q(t), t) {
|
|
702
702
|
const r = a.findKey(this, t);
|
|
703
703
|
return !!(r && this[r] !== void 0 && (!n || X(this, this[r], r, n)));
|
|
704
704
|
}
|
|
@@ -708,7 +708,7 @@ class R {
|
|
|
708
708
|
const r = this;
|
|
709
709
|
let s = !1;
|
|
710
710
|
function o(i) {
|
|
711
|
-
if (i =
|
|
711
|
+
if (i = q(i), i) {
|
|
712
712
|
const c = a.findKey(r, i);
|
|
713
713
|
c && (!n || X(r, r[c], c, n)) && (delete r[c], s = !0);
|
|
714
714
|
}
|
|
@@ -732,7 +732,7 @@ class R {
|
|
|
732
732
|
n[i] = M(s), delete n[o];
|
|
733
733
|
return;
|
|
734
734
|
}
|
|
735
|
-
const c = t ?
|
|
735
|
+
const c = t ? rn(o) : String(o).trim();
|
|
736
736
|
c !== o && delete n[o], n[c] = M(s), r[c] = !0;
|
|
737
737
|
}), this;
|
|
738
738
|
}
|
|
@@ -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 c =
|
|
771
|
-
r[c] || (
|
|
770
|
+
const c = q(i);
|
|
771
|
+
r[c] || (sn(s, i), r[c] = !0);
|
|
772
772
|
}
|
|
773
773
|
return a.isArray(t) ? t.forEach(o) : o(t), this;
|
|
774
774
|
}
|
|
@@ -785,7 +785,7 @@ a.reduceDescriptors(R.prototype, ({ value: e }, t) => {
|
|
|
785
785
|
});
|
|
786
786
|
a.freezeMethods(R);
|
|
787
787
|
function Z(e, t) {
|
|
788
|
-
const n = this ||
|
|
788
|
+
const n = this || $, r = t || n, s = R.from(r.headers);
|
|
789
789
|
let o = r.data;
|
|
790
790
|
return a.forEach(e, function(c) {
|
|
791
791
|
o = c.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
@@ -794,13 +794,13 @@ function Z(e, t) {
|
|
|
794
794
|
function ze(e) {
|
|
795
795
|
return !!(e && e.__CANCEL__);
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function D(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(D, h, {
|
|
801
801
|
__CANCEL__: !0
|
|
802
802
|
});
|
|
803
|
-
function
|
|
803
|
+
function Ve(e, t, n) {
|
|
804
804
|
const r = n.config.validateStatus;
|
|
805
805
|
!n.status || !r || r(n.status) ? e(n) : t(new h(
|
|
806
806
|
"Request failed with status code " + n.status,
|
|
@@ -810,27 +810,27 @@ function Je(e, t, n) {
|
|
|
810
810
|
n
|
|
811
811
|
));
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function on(e) {
|
|
814
814
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
815
815
|
return t && t[1] || "";
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function an(e, t) {
|
|
818
818
|
e = e || 10;
|
|
819
819
|
const n = new Array(e), r = new Array(e);
|
|
820
820
|
let s = 0, o = 0, i;
|
|
821
|
-
return t = t !== void 0 ? t : 1e3, function(
|
|
822
|
-
const
|
|
823
|
-
i || (i =
|
|
824
|
-
let d = o,
|
|
821
|
+
return t = t !== void 0 ? t : 1e3, function(l) {
|
|
822
|
+
const f = Date.now(), u = r[o];
|
|
823
|
+
i || (i = f), n[s] = l, r[s] = f;
|
|
824
|
+
let d = o, b = 0;
|
|
825
825
|
for (; d !== s; )
|
|
826
|
-
|
|
827
|
-
if (s = (s + 1) % e, s === o && (o = (o + 1) % e),
|
|
826
|
+
b += n[d++], d = d % e;
|
|
827
|
+
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), f - i < t)
|
|
828
828
|
return;
|
|
829
|
-
const y = u &&
|
|
830
|
-
return y ? Math.round(
|
|
829
|
+
const y = u && f - u;
|
|
830
|
+
return y ? Math.round(b * 1e3 / y) : void 0;
|
|
831
831
|
};
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function cn(e, t) {
|
|
834
834
|
let n = 0;
|
|
835
835
|
const r = 1e3 / t;
|
|
836
836
|
let s = null;
|
|
@@ -841,25 +841,25 @@ function an(e, t) {
|
|
|
841
841
|
s || (s = setTimeout(() => (s = null, n = Date.now(), e.apply(null, arguments)), r - (c - n)));
|
|
842
842
|
};
|
|
843
843
|
}
|
|
844
|
-
const
|
|
844
|
+
const J = (e, t, n = 3) => {
|
|
845
845
|
let r = 0;
|
|
846
|
-
const s =
|
|
847
|
-
return
|
|
848
|
-
const i = o.loaded, c = o.lengthComputable ? o.total : void 0,
|
|
846
|
+
const s = an(50, 250);
|
|
847
|
+
return cn((o) => {
|
|
848
|
+
const i = o.loaded, c = o.lengthComputable ? o.total : void 0, l = i - r, f = s(l), u = i <= c;
|
|
849
849
|
r = i;
|
|
850
850
|
const d = {
|
|
851
851
|
loaded: i,
|
|
852
852
|
total: c,
|
|
853
853
|
progress: c ? i / c : void 0,
|
|
854
|
-
bytes:
|
|
855
|
-
rate:
|
|
856
|
-
estimated:
|
|
854
|
+
bytes: l,
|
|
855
|
+
rate: f || void 0,
|
|
856
|
+
estimated: f && c && u ? (c - i) / f : void 0,
|
|
857
857
|
event: o,
|
|
858
858
|
lengthComputable: c != null
|
|
859
859
|
};
|
|
860
860
|
d[t ? "download" : "upload"] = !0, e(d);
|
|
861
861
|
}, n);
|
|
862
|
-
},
|
|
862
|
+
}, un = O.hasStandardBrowserEnv ? (
|
|
863
863
|
// Standard browser envs have full support of the APIs needed to test
|
|
864
864
|
// whether the request URL is of the same origin as current location.
|
|
865
865
|
function() {
|
|
@@ -890,7 +890,7 @@ const z = (e, t, n = 3) => {
|
|
|
890
890
|
return !0;
|
|
891
891
|
};
|
|
892
892
|
}()
|
|
893
|
-
),
|
|
893
|
+
), ln = O.hasStandardBrowserEnv ? (
|
|
894
894
|
// Standard browser envs support document.cookie
|
|
895
895
|
{
|
|
896
896
|
write(e, t, n, r, s, o) {
|
|
@@ -917,47 +917,47 @@ const z = (e, t, n = 3) => {
|
|
|
917
917
|
}
|
|
918
918
|
}
|
|
919
919
|
);
|
|
920
|
-
function
|
|
920
|
+
function fn(e) {
|
|
921
921
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
922
922
|
}
|
|
923
|
-
function
|
|
923
|
+
function dn(e, t) {
|
|
924
924
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
925
925
|
}
|
|
926
|
-
function
|
|
927
|
-
return e && !
|
|
926
|
+
function Ke(e, t) {
|
|
927
|
+
return e && !fn(t) ? dn(e, t) : t;
|
|
928
928
|
}
|
|
929
|
-
const
|
|
930
|
-
function
|
|
929
|
+
const ge = (e) => e instanceof R ? { ...e } : e;
|
|
930
|
+
function F(e, t) {
|
|
931
931
|
t = t || {};
|
|
932
932
|
const n = {};
|
|
933
|
-
function r(
|
|
934
|
-
return a.isPlainObject(
|
|
933
|
+
function r(f, u, d) {
|
|
934
|
+
return a.isPlainObject(f) && a.isPlainObject(u) ? a.merge.call({ caseless: d }, f, u) : a.isPlainObject(u) ? a.merge({}, u) : a.isArray(u) ? u.slice() : u;
|
|
935
935
|
}
|
|
936
|
-
function s(
|
|
936
|
+
function s(f, u, d) {
|
|
937
937
|
if (a.isUndefined(u)) {
|
|
938
|
-
if (!a.isUndefined(
|
|
939
|
-
return r(void 0,
|
|
938
|
+
if (!a.isUndefined(f))
|
|
939
|
+
return r(void 0, f, d);
|
|
940
940
|
} else
|
|
941
|
-
return r(
|
|
941
|
+
return r(f, u, d);
|
|
942
942
|
}
|
|
943
|
-
function o(
|
|
943
|
+
function o(f, u) {
|
|
944
944
|
if (!a.isUndefined(u))
|
|
945
945
|
return r(void 0, u);
|
|
946
946
|
}
|
|
947
|
-
function i(
|
|
947
|
+
function i(f, u) {
|
|
948
948
|
if (a.isUndefined(u)) {
|
|
949
|
-
if (!a.isUndefined(
|
|
950
|
-
return r(void 0,
|
|
949
|
+
if (!a.isUndefined(f))
|
|
950
|
+
return r(void 0, f);
|
|
951
951
|
} else
|
|
952
952
|
return r(void 0, u);
|
|
953
953
|
}
|
|
954
|
-
function c(
|
|
954
|
+
function c(f, u, d) {
|
|
955
955
|
if (d in t)
|
|
956
|
-
return r(
|
|
956
|
+
return r(f, u);
|
|
957
957
|
if (d in e)
|
|
958
|
-
return r(void 0,
|
|
958
|
+
return r(void 0, f);
|
|
959
959
|
}
|
|
960
|
-
const
|
|
960
|
+
const l = {
|
|
961
961
|
url: o,
|
|
962
962
|
method: o,
|
|
963
963
|
data: o,
|
|
@@ -986,42 +986,42 @@ function B(e, t) {
|
|
|
986
986
|
socketPath: i,
|
|
987
987
|
responseEncoding: i,
|
|
988
988
|
validateStatus: c,
|
|
989
|
-
headers: (
|
|
989
|
+
headers: (f, u) => s(ge(f), ge(u), !0)
|
|
990
990
|
};
|
|
991
991
|
return a.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
|
|
992
|
-
const d =
|
|
993
|
-
a.isUndefined(
|
|
992
|
+
const d = l[u] || s, b = d(e[u], t[u], u);
|
|
993
|
+
a.isUndefined(b) && d !== c || (n[u] = b);
|
|
994
994
|
}), n;
|
|
995
995
|
}
|
|
996
|
-
const
|
|
997
|
-
const t =
|
|
996
|
+
const Ge = (e) => {
|
|
997
|
+
const t = F({}, e);
|
|
998
998
|
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
|
|
999
|
-
t.headers = i = R.from(i), t.url =
|
|
999
|
+
t.headers = i = R.from(i), t.url = He(Ke(t.baseURL, t.url), e.params, e.paramsSerializer), c && i.set(
|
|
1000
1000
|
"Authorization",
|
|
1001
1001
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1002
1002
|
);
|
|
1003
|
-
let
|
|
1003
|
+
let l;
|
|
1004
1004
|
if (a.isFormData(n)) {
|
|
1005
1005
|
if (O.hasStandardBrowserEnv || O.hasStandardBrowserWebWorkerEnv)
|
|
1006
1006
|
i.setContentType(void 0);
|
|
1007
|
-
else if ((
|
|
1008
|
-
const [
|
|
1009
|
-
i.setContentType([
|
|
1007
|
+
else if ((l = i.getContentType()) !== !1) {
|
|
1008
|
+
const [f, ...u] = l ? l.split(";").map((d) => d.trim()).filter(Boolean) : [];
|
|
1009
|
+
i.setContentType([f || "multipart/form-data", ...u].join("; "));
|
|
1010
1010
|
}
|
|
1011
1011
|
}
|
|
1012
|
-
if (O.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 &&
|
|
1013
|
-
const
|
|
1014
|
-
|
|
1012
|
+
if (O.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && un(t.url))) {
|
|
1013
|
+
const f = s && o && ln.read(o);
|
|
1014
|
+
f && i.set(s, f);
|
|
1015
1015
|
}
|
|
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 = Ge(e);
|
|
1020
1020
|
let o = s.data;
|
|
1021
1021
|
const i = R.from(s.headers).normalize();
|
|
1022
|
-
let { responseType: c } = s,
|
|
1023
|
-
function
|
|
1024
|
-
s.cancelToken && s.cancelToken.unsubscribe(
|
|
1022
|
+
let { responseType: c } = s, l;
|
|
1023
|
+
function f() {
|
|
1024
|
+
s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
|
|
1025
1025
|
}
|
|
1026
1026
|
let u = new XMLHttpRequest();
|
|
1027
1027
|
u.open(s.method.toUpperCase(), s.url, !0), u.timeout = s.timeout;
|
|
@@ -1038,10 +1038,10 @@ const We = (e) => {
|
|
|
1038
1038
|
config: e,
|
|
1039
1039
|
request: u
|
|
1040
1040
|
};
|
|
1041
|
-
|
|
1042
|
-
n(g),
|
|
1041
|
+
Ve(function(g) {
|
|
1042
|
+
n(g), f();
|
|
1043
1043
|
}, function(g) {
|
|
1044
|
-
r(g),
|
|
1044
|
+
r(g), f();
|
|
1045
1045
|
}, m), u = null;
|
|
1046
1046
|
}
|
|
1047
1047
|
"onloadend" in u ? u.onloadend = d : u.onreadystatechange = function() {
|
|
@@ -1052,7 +1052,7 @@ const We = (e) => {
|
|
|
1052
1052
|
r(new h("Network Error", h.ERR_NETWORK, s, u)), u = null;
|
|
1053
1053
|
}, u.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 || Me;
|
|
1056
1056
|
s.timeoutErrorMessage && (p = s.timeoutErrorMessage), r(new h(
|
|
1057
1057
|
p,
|
|
1058
1058
|
m.clarifyTimeoutError ? h.ETIMEDOUT : h.ECONNABORTED,
|
|
@@ -1061,39 +1061,39 @@ const We = (e) => {
|
|
|
1061
1061
|
)), u = null;
|
|
1062
1062
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in u && a.forEach(i.toJSON(), function(p, m) {
|
|
1063
1063
|
u.setRequestHeader(m, p);
|
|
1064
|
-
}), a.isUndefined(s.withCredentials) || (u.withCredentials = !!s.withCredentials), c && c !== "json" && (u.responseType = s.responseType), typeof s.onDownloadProgress == "function" && u.addEventListener("progress",
|
|
1065
|
-
u && (r(!y || y.type ? new
|
|
1066
|
-
}, s.cancelToken && s.cancelToken.subscribe(
|
|
1067
|
-
const
|
|
1068
|
-
if (
|
|
1069
|
-
r(new h("Unsupported protocol " +
|
|
1064
|
+
}), a.isUndefined(s.withCredentials) || (u.withCredentials = !!s.withCredentials), c && c !== "json" && (u.responseType = s.responseType), typeof s.onDownloadProgress == "function" && u.addEventListener("progress", J(s.onDownloadProgress, !0)), typeof s.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", J(s.onUploadProgress)), (s.cancelToken || s.signal) && (l = (y) => {
|
|
1065
|
+
u && (r(!y || y.type ? new D(null, e, u) : y), u.abort(), u = null);
|
|
1066
|
+
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1067
|
+
const b = on(s.url);
|
|
1068
|
+
if (b && O.protocols.indexOf(b) === -1) {
|
|
1069
|
+
r(new h("Unsupported protocol " + b + ":", h.ERR_BAD_REQUEST, e));
|
|
1070
1070
|
return;
|
|
1071
1071
|
}
|
|
1072
1072
|
u.send(o || null);
|
|
1073
1073
|
});
|
|
1074
|
-
},
|
|
1074
|
+
}, mn = (e, t) => {
|
|
1075
1075
|
let n = new AbortController(), r;
|
|
1076
|
-
const s = function(
|
|
1076
|
+
const s = function(l) {
|
|
1077
1077
|
if (!r) {
|
|
1078
1078
|
r = !0, i();
|
|
1079
|
-
const
|
|
1080
|
-
n.abort(
|
|
1079
|
+
const f = l instanceof Error ? l : this.reason;
|
|
1080
|
+
n.abort(f instanceof h ? f : new D(f instanceof Error ? f.message : f));
|
|
1081
1081
|
}
|
|
1082
1082
|
};
|
|
1083
1083
|
let o = t && setTimeout(() => {
|
|
1084
1084
|
s(new h(`timeout ${t} of ms exceeded`, h.ETIMEDOUT));
|
|
1085
1085
|
}, t);
|
|
1086
1086
|
const i = () => {
|
|
1087
|
-
e && (o && clearTimeout(o), o = null, e.forEach((
|
|
1088
|
-
|
|
1087
|
+
e && (o && clearTimeout(o), o = null, e.forEach((l) => {
|
|
1088
|
+
l && (l.removeEventListener ? l.removeEventListener("abort", s) : l.unsubscribe(s));
|
|
1089
1089
|
}), e = null);
|
|
1090
1090
|
};
|
|
1091
|
-
e.forEach((
|
|
1091
|
+
e.forEach((l) => l && l.addEventListener && l.addEventListener("abort", s));
|
|
1092
1092
|
const { signal: c } = n;
|
|
1093
1093
|
return c.unsubscribe = i, [c, () => {
|
|
1094
1094
|
o && clearTimeout(o), o = null;
|
|
1095
1095
|
}];
|
|
1096
|
-
},
|
|
1096
|
+
}, yn = function* (e, t) {
|
|
1097
1097
|
let n = e.byteLength;
|
|
1098
1098
|
if (!t || n < t) {
|
|
1099
1099
|
yield e;
|
|
@@ -1102,22 +1102,22 @@ const We = (e) => {
|
|
|
1102
1102
|
let r = 0, s;
|
|
1103
1103
|
for (; r < n; )
|
|
1104
1104
|
s = r + t, yield e.slice(r, s), r = s;
|
|
1105
|
-
},
|
|
1105
|
+
}, bn = async function* (e, t, n) {
|
|
1106
1106
|
for await (const r of e)
|
|
1107
|
-
yield*
|
|
1108
|
-
},
|
|
1109
|
-
const o =
|
|
1107
|
+
yield* yn(ArrayBuffer.isView(r) ? r : await n(String(r)), t);
|
|
1108
|
+
}, Re = (e, t, n, r, s) => {
|
|
1109
|
+
const o = bn(e, t, s);
|
|
1110
1110
|
let i = 0;
|
|
1111
1111
|
return new ReadableStream({
|
|
1112
1112
|
type: "bytes",
|
|
1113
1113
|
async pull(c) {
|
|
1114
|
-
const { done:
|
|
1115
|
-
if (
|
|
1114
|
+
const { done: l, value: f } = await o.next();
|
|
1115
|
+
if (l) {
|
|
1116
1116
|
c.close(), r();
|
|
1117
1117
|
return;
|
|
1118
1118
|
}
|
|
1119
|
-
let u =
|
|
1120
|
-
n && n(i += u), c.enqueue(new Uint8Array(
|
|
1119
|
+
let u = f.byteLength;
|
|
1120
|
+
n && n(i += u), c.enqueue(new Uint8Array(f));
|
|
1121
1121
|
},
|
|
1122
1122
|
cancel(c) {
|
|
1123
1123
|
return r(c), o.return();
|
|
@@ -1125,14 +1125,14 @@ const We = (e) => {
|
|
|
1125
1125
|
}, {
|
|
1126
1126
|
highWaterMark: 2
|
|
1127
1127
|
});
|
|
1128
|
-
},
|
|
1128
|
+
}, Te = (e, t) => {
|
|
1129
1129
|
const n = e != null;
|
|
1130
1130
|
return (r) => setTimeout(() => t({
|
|
1131
1131
|
lengthComputable: n,
|
|
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(),
|
|
@@ -1142,22 +1142,22 @@ const We = (e) => {
|
|
|
1142
1142
|
}
|
|
1143
1143
|
}).headers.has("Content-Type");
|
|
1144
1144
|
return e && !t;
|
|
1145
|
-
})(),
|
|
1145
|
+
})(), Oe = 64 * 1024, oe = We && !!(() => {
|
|
1146
1146
|
try {
|
|
1147
1147
|
return a.isReadableStream(new Response("").body);
|
|
1148
1148
|
} catch {
|
|
1149
1149
|
}
|
|
1150
|
-
})(),
|
|
1151
|
-
stream:
|
|
1150
|
+
})(), z = {
|
|
1151
|
+
stream: oe && ((e) => e.body)
|
|
1152
1152
|
};
|
|
1153
|
-
|
|
1153
|
+
v && ((e) => {
|
|
1154
1154
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1155
|
-
!
|
|
1155
|
+
!z[t] && (z[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 En = async (e) => {
|
|
1161
1161
|
if (e == null)
|
|
1162
1162
|
return 0;
|
|
1163
1163
|
if (a.isBlob(e))
|
|
@@ -1167,11 +1167,11 @@ const bn = async (e) => {
|
|
|
1167
1167
|
if (a.isArrayBufferView(e))
|
|
1168
1168
|
return e.byteLength;
|
|
1169
1169
|
if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
|
|
1170
|
-
return (await
|
|
1171
|
-
},
|
|
1170
|
+
return (await se(e)).byteLength;
|
|
1171
|
+
}, Sn = async (e, t) => {
|
|
1172
1172
|
const n = a.toFiniteNumber(e.getContentLength());
|
|
1173
|
-
return n ??
|
|
1174
|
-
},
|
|
1173
|
+
return n ?? En(t);
|
|
1174
|
+
}, gn = v && (async (e) => {
|
|
1175
1175
|
let {
|
|
1176
1176
|
url: t,
|
|
1177
1177
|
method: n,
|
|
@@ -1180,34 +1180,34 @@ const bn = async (e) => {
|
|
|
1180
1180
|
cancelToken: o,
|
|
1181
1181
|
timeout: i,
|
|
1182
1182
|
onDownloadProgress: c,
|
|
1183
|
-
onUploadProgress:
|
|
1184
|
-
responseType:
|
|
1183
|
+
onUploadProgress: l,
|
|
1184
|
+
responseType: f,
|
|
1185
1185
|
headers: u,
|
|
1186
1186
|
withCredentials: d = "same-origin",
|
|
1187
|
-
fetchOptions:
|
|
1188
|
-
} =
|
|
1189
|
-
|
|
1190
|
-
let [y, p] = s || o || i ?
|
|
1187
|
+
fetchOptions: b
|
|
1188
|
+
} = Ge(e);
|
|
1189
|
+
f = f ? (f + "").toLowerCase() : "text";
|
|
1190
|
+
let [y, p] = s || o || i ? mn([s, o], i) : [], m, S;
|
|
1191
1191
|
const g = () => {
|
|
1192
1192
|
!m && setTimeout(() => {
|
|
1193
1193
|
y && y.unsubscribe();
|
|
1194
1194
|
}), m = !0;
|
|
1195
1195
|
};
|
|
1196
|
-
let
|
|
1196
|
+
let N;
|
|
1197
1197
|
try {
|
|
1198
|
-
if (
|
|
1199
|
-
let
|
|
1198
|
+
if (l && wn && n !== "get" && n !== "head" && (N = await Sn(u, r)) !== 0) {
|
|
1199
|
+
let P = new Request(t, {
|
|
1200
1200
|
method: "POST",
|
|
1201
1201
|
body: r,
|
|
1202
1202
|
duplex: "half"
|
|
1203
1203
|
}), L;
|
|
1204
|
-
a.isFormData(r) && (L =
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
), null,
|
|
1204
|
+
a.isFormData(r) && (L = P.headers.get("content-type")) && u.setContentType(L), P.body && (r = Re(P.body, Oe, Te(
|
|
1205
|
+
N,
|
|
1206
|
+
J(l)
|
|
1207
|
+
), null, se));
|
|
1208
1208
|
}
|
|
1209
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
1213
|
headers: u.normalize().toJSON(),
|
|
@@ -1215,48 +1215,48 @@ const bn = async (e) => {
|
|
|
1215
1215
|
duplex: "half",
|
|
1216
1216
|
withCredentials: d
|
|
1217
1217
|
});
|
|
1218
|
-
let
|
|
1219
|
-
const
|
|
1220
|
-
if (
|
|
1221
|
-
const
|
|
1222
|
-
["status", "statusText", "headers"].forEach((
|
|
1223
|
-
|
|
1218
|
+
let w = await fetch(S);
|
|
1219
|
+
const U = oe && (f === "stream" || f === "response");
|
|
1220
|
+
if (oe && (c || U)) {
|
|
1221
|
+
const P = {};
|
|
1222
|
+
["status", "statusText", "headers"].forEach((he) => {
|
|
1223
|
+
P[he] = w[he];
|
|
1224
1224
|
});
|
|
1225
|
-
const L = a.toFiniteNumber(
|
|
1226
|
-
|
|
1227
|
-
|
|
1225
|
+
const L = a.toFiniteNumber(w.headers.get("content-length"));
|
|
1226
|
+
w = new Response(
|
|
1227
|
+
Re(w.body, Oe, c && Te(
|
|
1228
1228
|
L,
|
|
1229
|
-
|
|
1230
|
-
),
|
|
1231
|
-
|
|
1229
|
+
J(c, !0)
|
|
1230
|
+
), U && g, se),
|
|
1231
|
+
P
|
|
1232
1232
|
);
|
|
1233
1233
|
}
|
|
1234
|
-
|
|
1235
|
-
let
|
|
1236
|
-
return !
|
|
1237
|
-
|
|
1238
|
-
data:
|
|
1239
|
-
headers: R.from(
|
|
1240
|
-
status:
|
|
1241
|
-
statusText:
|
|
1234
|
+
f = f || "text";
|
|
1235
|
+
let Ze = await z[a.findKey(z, f) || "text"](w, e);
|
|
1236
|
+
return !U && g(), p && p(), await new Promise((P, L) => {
|
|
1237
|
+
Ve(P, L, {
|
|
1238
|
+
data: Ze,
|
|
1239
|
+
headers: R.from(w.headers),
|
|
1240
|
+
status: w.status,
|
|
1241
|
+
statusText: w.statusText,
|
|
1242
1242
|
config: e,
|
|
1243
1243
|
request: S
|
|
1244
1244
|
});
|
|
1245
1245
|
});
|
|
1246
|
-
} catch (
|
|
1247
|
-
throw g(),
|
|
1246
|
+
} catch (w) {
|
|
1247
|
+
throw g(), w && w.name === "TypeError" && /fetch/i.test(w.message) ? Object.assign(
|
|
1248
1248
|
new h("Network Error", h.ERR_NETWORK, e, S),
|
|
1249
1249
|
{
|
|
1250
|
-
cause:
|
|
1250
|
+
cause: w.cause || w
|
|
1251
1251
|
}
|
|
1252
|
-
) : h.from(
|
|
1252
|
+
) : h.from(w, w && w.code, e, S);
|
|
1253
1253
|
}
|
|
1254
|
-
}),
|
|
1255
|
-
http:
|
|
1256
|
-
xhr:
|
|
1257
|
-
fetch:
|
|
1254
|
+
}), ie = {
|
|
1255
|
+
http: qt,
|
|
1256
|
+
xhr: hn,
|
|
1257
|
+
fetch: gn
|
|
1258
1258
|
};
|
|
1259
|
-
a.forEach(
|
|
1259
|
+
a.forEach(ie, (e, t) => {
|
|
1260
1260
|
if (e) {
|
|
1261
1261
|
try {
|
|
1262
1262
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -1265,7 +1265,7 @@ a.forEach(oe, (e, t) => {
|
|
|
1265
1265
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1266
1266
|
}
|
|
1267
1267
|
});
|
|
1268
|
-
const
|
|
1268
|
+
const Ae = (e) => `- ${e}`, Rn = (e) => a.isFunction(e) || e === null || e === !1, ve = {
|
|
1269
1269
|
getAdapter: (e) => {
|
|
1270
1270
|
e = a.isArray(e) ? e : [e];
|
|
1271
1271
|
const { length: t } = e;
|
|
@@ -1274,7 +1274,7 @@ const Oe = (e) => `- ${e}`, gn = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1274
1274
|
for (let o = 0; o < t; o++) {
|
|
1275
1275
|
n = e[o];
|
|
1276
1276
|
let i;
|
|
1277
|
-
if (r = n, !
|
|
1277
|
+
if (r = n, !Rn(n) && (r = ie[(i = String(n)).toLowerCase()], r === void 0))
|
|
1278
1278
|
throw new h(`Unknown adapter '${i}'`);
|
|
1279
1279
|
if (r)
|
|
1280
1280
|
break;
|
|
@@ -1282,11 +1282,11 @@ const Oe = (e) => `- ${e}`, gn = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1282
1282
|
}
|
|
1283
1283
|
if (!r) {
|
|
1284
1284
|
const o = Object.entries(s).map(
|
|
1285
|
-
([c,
|
|
1285
|
+
([c, l]) => `adapter ${c} ` + (l === !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
|
-
` + o.map(
|
|
1289
|
-
`) : " " +
|
|
1288
|
+
` + o.map(Ae).join(`
|
|
1289
|
+
`) : " " + Ae(o[0]) : "as no adapter specified";
|
|
1290
1290
|
throw new h(
|
|
1291
1291
|
"There is no suitable adapter to dispatch the request " + i,
|
|
1292
1292
|
"ERR_NOT_SUPPORT"
|
|
@@ -1294,17 +1294,17 @@ const Oe = (e) => `- ${e}`, gn = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1294
1294
|
}
|
|
1295
1295
|
return r;
|
|
1296
1296
|
},
|
|
1297
|
-
adapters:
|
|
1297
|
+
adapters: ie
|
|
1298
1298
|
};
|
|
1299
1299
|
function Y(e) {
|
|
1300
1300
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1301
|
-
throw new
|
|
1301
|
+
throw new D(null, e);
|
|
1302
1302
|
}
|
|
1303
|
-
function
|
|
1303
|
+
function Ne(e) {
|
|
1304
1304
|
return Y(e), e.headers = R.from(e.headers), e.data = Z.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), ve.getAdapter(e.adapter || $.adapter)(e).then(function(r) {
|
|
1308
1308
|
return Y(e), r.data = Z.call(
|
|
1309
1309
|
e,
|
|
1310
1310
|
e.transformResponse,
|
|
@@ -1318,14 +1318,14 @@ function Ae(e) {
|
|
|
1318
1318
|
), r.response.headers = R.from(r.response.headers))), Promise.reject(r);
|
|
1319
1319
|
});
|
|
1320
1320
|
}
|
|
1321
|
-
const Qe = "1.7.2",
|
|
1321
|
+
const Qe = "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;
|
|
1325
1325
|
};
|
|
1326
1326
|
});
|
|
1327
1327
|
const Pe = {};
|
|
1328
|
-
|
|
1328
|
+
de.transitional = function(t, n, r) {
|
|
1329
1329
|
function s(o, i) {
|
|
1330
1330
|
return "[Axios v" + Qe + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
1331
1331
|
}
|
|
@@ -1343,7 +1343,7 @@ fe.transitional = function(t, n, r) {
|
|
|
1343
1343
|
)), t ? t(o, i, c) : !0;
|
|
1344
1344
|
};
|
|
1345
1345
|
};
|
|
1346
|
-
function
|
|
1346
|
+
function Tn(e, t, n) {
|
|
1347
1347
|
if (typeof e != "object")
|
|
1348
1348
|
throw new h("options must be an object", h.ERR_BAD_OPTION_VALUE);
|
|
1349
1349
|
const r = Object.keys(e);
|
|
@@ -1351,24 +1351,24 @@ function Rn(e, t, n) {
|
|
|
1351
1351
|
for (; s-- > 0; ) {
|
|
1352
1352
|
const o = r[s], i = t[o];
|
|
1353
1353
|
if (i) {
|
|
1354
|
-
const c = e[o],
|
|
1355
|
-
if (
|
|
1356
|
-
throw new h("option " + o + " must be " +
|
|
1354
|
+
const c = e[o], l = c === void 0 || i(c, o, e);
|
|
1355
|
+
if (l !== !0)
|
|
1356
|
+
throw new h("option " + o + " must be " + l, h.ERR_BAD_OPTION_VALUE);
|
|
1357
1357
|
continue;
|
|
1358
1358
|
}
|
|
1359
1359
|
if (n !== !0)
|
|
1360
1360
|
throw new h("Unknown option " + o, h.ERR_BAD_OPTION);
|
|
1361
1361
|
}
|
|
1362
1362
|
}
|
|
1363
|
-
const
|
|
1364
|
-
assertOptions:
|
|
1365
|
-
validators:
|
|
1366
|
-
},
|
|
1367
|
-
class
|
|
1363
|
+
const ae = {
|
|
1364
|
+
assertOptions: Tn,
|
|
1365
|
+
validators: de
|
|
1366
|
+
}, C = ae.validators;
|
|
1367
|
+
class B {
|
|
1368
1368
|
constructor(t) {
|
|
1369
1369
|
this.defaults = t, this.interceptors = {
|
|
1370
|
-
request: new
|
|
1371
|
-
response: new
|
|
1370
|
+
request: new Ee(),
|
|
1371
|
+
response: new Ee()
|
|
1372
1372
|
};
|
|
1373
1373
|
}
|
|
1374
1374
|
/**
|
|
@@ -1397,17 +1397,17 @@ class F {
|
|
|
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 = F(this.defaults, n);
|
|
1401
1401
|
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
1402
|
-
r !== void 0 &&
|
|
1403
|
-
silentJSONParsing:
|
|
1404
|
-
forcedJSONParsing:
|
|
1405
|
-
clarifyTimeoutError:
|
|
1402
|
+
r !== void 0 && ae.assertOptions(r, {
|
|
1403
|
+
silentJSONParsing: C.transitional(C.boolean),
|
|
1404
|
+
forcedJSONParsing: C.transitional(C.boolean),
|
|
1405
|
+
clarifyTimeoutError: C.transitional(C.boolean)
|
|
1406
1406
|
}, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
|
|
1407
1407
|
serialize: s
|
|
1408
|
-
} :
|
|
1409
|
-
encode:
|
|
1410
|
-
serialize:
|
|
1408
|
+
} : ae.assertOptions(s, {
|
|
1409
|
+
encode: C.function,
|
|
1410
|
+
serialize: C.function
|
|
1411
1411
|
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1412
1412
|
let i = o && a.merge(
|
|
1413
1413
|
o.common,
|
|
@@ -1420,24 +1420,24 @@ class F {
|
|
|
1420
1420
|
}
|
|
1421
1421
|
), n.headers = R.concat(i, o);
|
|
1422
1422
|
const c = [];
|
|
1423
|
-
let
|
|
1423
|
+
let l = !0;
|
|
1424
1424
|
this.interceptors.request.forEach(function(m) {
|
|
1425
|
-
typeof m.runWhen == "function" && m.runWhen(n) === !1 || (
|
|
1425
|
+
typeof m.runWhen == "function" && m.runWhen(n) === !1 || (l = l && m.synchronous, c.unshift(m.fulfilled, m.rejected));
|
|
1426
1426
|
});
|
|
1427
|
-
const
|
|
1427
|
+
const f = [];
|
|
1428
1428
|
this.interceptors.response.forEach(function(m) {
|
|
1429
|
-
|
|
1429
|
+
f.push(m.fulfilled, m.rejected);
|
|
1430
1430
|
});
|
|
1431
|
-
let u, d = 0,
|
|
1432
|
-
if (!
|
|
1433
|
-
const p = [
|
|
1434
|
-
for (p.unshift.apply(p, c), p.push.apply(p,
|
|
1431
|
+
let u, d = 0, b;
|
|
1432
|
+
if (!l) {
|
|
1433
|
+
const p = [Ne.bind(this), void 0];
|
|
1434
|
+
for (p.unshift.apply(p, c), p.push.apply(p, f), b = p.length, u = Promise.resolve(n); d < b; )
|
|
1435
1435
|
u = u.then(p[d++], p[d++]);
|
|
1436
1436
|
return u;
|
|
1437
1437
|
}
|
|
1438
|
-
|
|
1438
|
+
b = c.length;
|
|
1439
1439
|
let y = n;
|
|
1440
|
-
for (d = 0; d <
|
|
1440
|
+
for (d = 0; d < b; ) {
|
|
1441
1441
|
const p = c[d++], m = c[d++];
|
|
1442
1442
|
try {
|
|
1443
1443
|
y = p(y);
|
|
@@ -1447,23 +1447,23 @@ class F {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
}
|
|
1449
1449
|
try {
|
|
1450
|
-
u =
|
|
1450
|
+
u = Ne.call(this, y);
|
|
1451
1451
|
} catch (p) {
|
|
1452
1452
|
return Promise.reject(p);
|
|
1453
1453
|
}
|
|
1454
|
-
for (d = 0,
|
|
1455
|
-
u = u.then(
|
|
1454
|
+
for (d = 0, b = f.length; d < b; )
|
|
1455
|
+
u = u.then(f[d++], f[d++]);
|
|
1456
1456
|
return u;
|
|
1457
1457
|
}
|
|
1458
1458
|
getUri(t) {
|
|
1459
|
-
t =
|
|
1460
|
-
const n =
|
|
1461
|
-
return
|
|
1459
|
+
t = F(this.defaults, t);
|
|
1460
|
+
const n = Ke(t.baseURL, t.url);
|
|
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
|
+
B.prototype[t] = function(n, r) {
|
|
1466
|
+
return this.request(F(r || {}, {
|
|
1467
1467
|
method: t,
|
|
1468
1468
|
url: n,
|
|
1469
1469
|
data: (r || {}).data
|
|
@@ -1473,7 +1473,7 @@ a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
1473
1473
|
a.forEach(["post", "put", "patch"], function(t) {
|
|
1474
1474
|
function n(r) {
|
|
1475
1475
|
return function(o, i, c) {
|
|
1476
|
-
return this.request(
|
|
1476
|
+
return this.request(F(c || {}, {
|
|
1477
1477
|
method: t,
|
|
1478
1478
|
headers: r ? {
|
|
1479
1479
|
"Content-Type": "multipart/form-data"
|
|
@@ -1483,9 +1483,9 @@ a.forEach(["post", "put", "patch"], function(t) {
|
|
|
1483
1483
|
}));
|
|
1484
1484
|
};
|
|
1485
1485
|
}
|
|
1486
|
-
|
|
1486
|
+
B.prototype[t] = n(), B.prototype[t + "Form"] = n(!0);
|
|
1487
1487
|
});
|
|
1488
|
-
class
|
|
1488
|
+
class pe {
|
|
1489
1489
|
constructor(t) {
|
|
1490
1490
|
if (typeof t != "function")
|
|
1491
1491
|
throw new TypeError("executor must be a function.");
|
|
@@ -1510,7 +1510,7 @@ class de {
|
|
|
1510
1510
|
r.unsubscribe(o);
|
|
1511
1511
|
}, i;
|
|
1512
1512
|
}, t(function(o, i, c) {
|
|
1513
|
-
r.reason || (r.reason = new
|
|
1513
|
+
r.reason || (r.reason = new D(o, i, c), n(r.reason));
|
|
1514
1514
|
});
|
|
1515
1515
|
}
|
|
1516
1516
|
/**
|
|
@@ -1546,22 +1546,22 @@ class de {
|
|
|
1546
1546
|
static source() {
|
|
1547
1547
|
let t;
|
|
1548
1548
|
return {
|
|
1549
|
-
token: new
|
|
1549
|
+
token: new pe(function(s) {
|
|
1550
1550
|
t = s;
|
|
1551
1551
|
}),
|
|
1552
1552
|
cancel: t
|
|
1553
1553
|
};
|
|
1554
1554
|
}
|
|
1555
1555
|
}
|
|
1556
|
-
function
|
|
1556
|
+
function On(e) {
|
|
1557
1557
|
return function(n) {
|
|
1558
1558
|
return e.apply(null, n);
|
|
1559
1559
|
};
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1561
|
+
function An(e) {
|
|
1562
1562
|
return a.isObject(e) && e.isAxiosError === !0;
|
|
1563
1563
|
}
|
|
1564
|
-
const
|
|
1564
|
+
const ce = {
|
|
1565
1565
|
Continue: 100,
|
|
1566
1566
|
SwitchingProtocols: 101,
|
|
1567
1567
|
Processing: 102,
|
|
@@ -1626,64 +1626,64 @@ const ae = {
|
|
|
1626
1626
|
NotExtended: 510,
|
|
1627
1627
|
NetworkAuthenticationRequired: 511
|
|
1628
1628
|
};
|
|
1629
|
-
Object.entries(
|
|
1630
|
-
|
|
1629
|
+
Object.entries(ce).forEach(([e, t]) => {
|
|
1630
|
+
ce[t] = e;
|
|
1631
1631
|
});
|
|
1632
|
-
function
|
|
1633
|
-
const t = new
|
|
1634
|
-
return a.extend(n,
|
|
1635
|
-
return
|
|
1632
|
+
function Xe(e) {
|
|
1633
|
+
const t = new B(e), n = xe(B.prototype.request, t);
|
|
1634
|
+
return a.extend(n, B.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1635
|
+
return Xe(F(e, s));
|
|
1636
1636
|
}, n;
|
|
1637
1637
|
}
|
|
1638
|
-
const E =
|
|
1639
|
-
E.Axios =
|
|
1640
|
-
E.CanceledError =
|
|
1641
|
-
E.CancelToken =
|
|
1638
|
+
const E = Xe($);
|
|
1639
|
+
E.Axios = B;
|
|
1640
|
+
E.CanceledError = D;
|
|
1641
|
+
E.CancelToken = pe;
|
|
1642
1642
|
E.isCancel = ze;
|
|
1643
1643
|
E.VERSION = Qe;
|
|
1644
|
-
E.toFormData =
|
|
1644
|
+
E.toFormData = W;
|
|
1645
1645
|
E.AxiosError = h;
|
|
1646
1646
|
E.Cancel = E.CanceledError;
|
|
1647
1647
|
E.all = function(t) {
|
|
1648
1648
|
return Promise.all(t);
|
|
1649
1649
|
};
|
|
1650
|
-
E.spread =
|
|
1651
|
-
E.isAxiosError =
|
|
1652
|
-
E.mergeConfig =
|
|
1650
|
+
E.spread = On;
|
|
1651
|
+
E.isAxiosError = An;
|
|
1652
|
+
E.mergeConfig = F;
|
|
1653
1653
|
E.AxiosHeaders = R;
|
|
1654
|
-
E.formToJSON = (e) =>
|
|
1655
|
-
E.getAdapter =
|
|
1656
|
-
E.HttpStatusCode =
|
|
1654
|
+
E.formToJSON = (e) => Je(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1655
|
+
E.getAdapter = ve.getAdapter;
|
|
1656
|
+
E.HttpStatusCode = ce;
|
|
1657
1657
|
E.default = E;
|
|
1658
|
-
const
|
|
1658
|
+
const x = (e) => {
|
|
1659
1659
|
var i, c;
|
|
1660
1660
|
const t = E.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
|
(c = e.responseInterceptor) == null ? void 0 : c.onReject
|
|
1664
1664
|
), {
|
|
1665
|
-
request: async (
|
|
1666
|
-
const u = `${s}/${r}/${n}${
|
|
1667
|
-
"Content-Type": (
|
|
1665
|
+
request: async (l, f) => {
|
|
1666
|
+
const u = `${s}/${r}/${n}${l}`, d = {
|
|
1667
|
+
"Content-Type": (f == null ? void 0 : f.contentType) || "application/json",
|
|
1668
1668
|
apiVersion: n,
|
|
1669
1669
|
Authorization: ""
|
|
1670
1670
|
};
|
|
1671
1671
|
localStorage.getItem("accessToken") && (d.Authorization = "Bearer " + localStorage.getItem("accessToken"));
|
|
1672
|
-
const
|
|
1673
|
-
method: (
|
|
1672
|
+
const b = {
|
|
1673
|
+
method: (f == null ? void 0 : f.method) || "GET",
|
|
1674
1674
|
headers: d,
|
|
1675
1675
|
url: u,
|
|
1676
|
-
data:
|
|
1677
|
-
responseType:
|
|
1676
|
+
data: f == null ? void 0 : f.data,
|
|
1677
|
+
responseType: f == null ? void 0 : f.responseType
|
|
1678
1678
|
};
|
|
1679
|
-
return await t.request(
|
|
1679
|
+
return await t.request(b);
|
|
1680
1680
|
}
|
|
1681
1681
|
};
|
|
1682
|
-
},
|
|
1682
|
+
}, Nn = "cep";
|
|
1683
1683
|
function Pn(e) {
|
|
1684
|
-
const t =
|
|
1684
|
+
const t = x(e);
|
|
1685
1685
|
function n(r) {
|
|
1686
|
-
return t.request(`/${
|
|
1686
|
+
return t.request(`/${Nn}`, {
|
|
1687
1687
|
method: "POST",
|
|
1688
1688
|
data: JSON.stringify(r)
|
|
1689
1689
|
});
|
|
@@ -1692,40 +1692,40 @@ function Pn(e) {
|
|
|
1692
1692
|
getAddress: n
|
|
1693
1693
|
};
|
|
1694
1694
|
}
|
|
1695
|
-
const
|
|
1696
|
-
const t =
|
|
1695
|
+
const Ce = "auth", Cn = (e) => {
|
|
1696
|
+
const t = x(e);
|
|
1697
1697
|
return {
|
|
1698
1698
|
postLogin: async (s) => {
|
|
1699
1699
|
var i;
|
|
1700
|
-
const o = await t.request(`/${
|
|
1700
|
+
const o = await t.request(`/${Ce}/login`, {
|
|
1701
1701
|
method: "POST",
|
|
1702
1702
|
data: JSON.stringify(s)
|
|
1703
1703
|
});
|
|
1704
1704
|
return o.status === 200 && ((i = o.data) != null && i.accessToken) && localStorage.setItem("accessToken", o.data.accessToken), o;
|
|
1705
1705
|
},
|
|
1706
|
-
getToken: async (s) => await t.request(`/${
|
|
1706
|
+
getToken: async (s) => await t.request(`/${Ce}?code=${s}`, {
|
|
1707
1707
|
method: "GET",
|
|
1708
1708
|
data: ""
|
|
1709
1709
|
})
|
|
1710
1710
|
};
|
|
1711
|
-
}, xn = "digital",
|
|
1712
|
-
const t =
|
|
1711
|
+
}, xn = "digital", Bn = (e) => {
|
|
1712
|
+
const t = x(e);
|
|
1713
1713
|
return {
|
|
1714
1714
|
getBroker: () => t.request(`/${xn}/getBroker`, {
|
|
1715
1715
|
method: "GET",
|
|
1716
1716
|
data: ""
|
|
1717
1717
|
})
|
|
1718
1718
|
};
|
|
1719
|
-
}, Fn = "data",
|
|
1720
|
-
const t =
|
|
1719
|
+
}, Fn = "data", Ln = (e) => {
|
|
1720
|
+
const t = x(e);
|
|
1721
1721
|
return {
|
|
1722
1722
|
postData: async (r) => await t.request(`/${Fn}`, {
|
|
1723
1723
|
method: "POST",
|
|
1724
1724
|
data: JSON.stringify(r)
|
|
1725
1725
|
})
|
|
1726
1726
|
};
|
|
1727
|
-
}, ee = "payment",
|
|
1728
|
-
const t =
|
|
1727
|
+
}, ee = "payment", _n = (e) => {
|
|
1728
|
+
const t = x(e);
|
|
1729
1729
|
return {
|
|
1730
1730
|
postPayment: (o) => t.request(`/${ee}`, {
|
|
1731
1731
|
method: "POST",
|
|
@@ -1746,36 +1746,61 @@ const Ne = "auth", Nn = (e) => {
|
|
|
1746
1746
|
}
|
|
1747
1747
|
)
|
|
1748
1748
|
};
|
|
1749
|
-
},
|
|
1750
|
-
const t =
|
|
1749
|
+
}, te = "product/action", kn = (e) => {
|
|
1750
|
+
const t = x(e);
|
|
1751
1751
|
return {
|
|
1752
|
-
getCnpjStatus: (
|
|
1752
|
+
getCnpjStatus: (o) => t.request(`/${te}/Custom/CnpjCheck?cnpj=${o}`, {
|
|
1753
1753
|
method: "GET",
|
|
1754
1754
|
data: ""
|
|
1755
|
-
})
|
|
1755
|
+
}),
|
|
1756
|
+
getKeyNumber: () => t.request(`/${te}/Custom/GetKeyNumber`, {
|
|
1757
|
+
method: "GET",
|
|
1758
|
+
data: ""
|
|
1759
|
+
}),
|
|
1760
|
+
getProposalNumberByKeyNumber: (o) => t.request(
|
|
1761
|
+
`/${te}/Custom/GetProposalNoByKeyNumber?keyNumber=${o.keyNumber}`,
|
|
1762
|
+
{
|
|
1763
|
+
method: "GET",
|
|
1764
|
+
data: ""
|
|
1765
|
+
}
|
|
1766
|
+
)
|
|
1756
1767
|
};
|
|
1757
|
-
},
|
|
1758
|
-
const t =
|
|
1768
|
+
}, _ = "quotation", Dn = (e) => {
|
|
1769
|
+
const t = x(e);
|
|
1759
1770
|
return {
|
|
1760
|
-
postQuickQuote: (
|
|
1771
|
+
postQuickQuote: (l) => t.request(`/${_}/QuickQuote`, {
|
|
1761
1772
|
method: "POST",
|
|
1762
|
-
data: JSON.stringify(
|
|
1773
|
+
data: JSON.stringify(l)
|
|
1763
1774
|
}),
|
|
1764
|
-
postFullQuote: (
|
|
1775
|
+
postFullQuote: (l) => t.request(`/${_}/FullQuote`, {
|
|
1765
1776
|
method: "POST",
|
|
1766
|
-
data: JSON.stringify(
|
|
1777
|
+
data: JSON.stringify(l)
|
|
1767
1778
|
}),
|
|
1768
|
-
postBind: (
|
|
1779
|
+
postBind: (l) => t.request(`/${_}/Bind`, {
|
|
1769
1780
|
method: "POST",
|
|
1770
|
-
data: JSON.stringify(
|
|
1781
|
+
data: JSON.stringify(l)
|
|
1771
1782
|
}),
|
|
1772
|
-
getQuotation: (
|
|
1783
|
+
getQuotation: (l) => t.request(`/${_}?id=${l.policyId}`, {
|
|
1773
1784
|
method: "GET",
|
|
1774
1785
|
data: ""
|
|
1775
|
-
})
|
|
1786
|
+
}),
|
|
1787
|
+
getVersions: (l) => t.request(
|
|
1788
|
+
`/${_}/versions?policyId=${l.policyId}`,
|
|
1789
|
+
{
|
|
1790
|
+
method: "GET",
|
|
1791
|
+
data: ""
|
|
1792
|
+
}
|
|
1793
|
+
),
|
|
1794
|
+
switchSelectedVersion: (l) => t.request(
|
|
1795
|
+
`/${_}/switchSelectedVersion?policyId=${l.policyId}"ationVersionId=${l.quotationVersionId}`,
|
|
1796
|
+
{
|
|
1797
|
+
method: "POST",
|
|
1798
|
+
data: JSON.stringify(l)
|
|
1799
|
+
}
|
|
1800
|
+
)
|
|
1776
1801
|
};
|
|
1777
1802
|
}, Un = "report", qn = (e) => {
|
|
1778
|
-
const t =
|
|
1803
|
+
const t = x(e);
|
|
1779
1804
|
return {
|
|
1780
1805
|
getReportStream: (r) => {
|
|
1781
1806
|
const s = new URLSearchParams({
|
|
@@ -1795,7 +1820,7 @@ const Ne = "auth", Nn = (e) => {
|
|
|
1795
1820
|
};
|
|
1796
1821
|
};
|
|
1797
1822
|
function jn(e) {
|
|
1798
|
-
const t =
|
|
1823
|
+
const t = Cn(e), n = Ln(e), r = Dn(e), s = _n(e), o = Pn(e), i = Bn(e), c = kn(e), l = qn(e);
|
|
1799
1824
|
return {
|
|
1800
1825
|
auth: t,
|
|
1801
1826
|
data: n,
|
|
@@ -1804,7 +1829,7 @@ function jn(e) {
|
|
|
1804
1829
|
address: o,
|
|
1805
1830
|
broker: i,
|
|
1806
1831
|
plugin: c,
|
|
1807
|
-
report:
|
|
1832
|
+
report: l
|
|
1808
1833
|
};
|
|
1809
1834
|
}
|
|
1810
1835
|
export {
|