@regulaforensics/facesdk-webclient 7.2.308-rc → 7.2.309-nightly
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +6 -0
- package/{lib → dist}/index.d.ts +2501 -2499
- package/dist/index.js +3253 -0
- package/package.json +25 -44
- package/dist/main/index.cjs +0 -1
- package/dist/module/index.js +0 -1
package/dist/index.js
ADDED
|
@@ -0,0 +1,3253 @@
|
|
|
1
|
+
function ke(t, e) {
|
|
2
|
+
return function() {
|
|
3
|
+
return t.apply(e, arguments);
|
|
4
|
+
};
|
|
5
|
+
}
|
|
6
|
+
const { toString: ht } = Object.prototype, { getPrototypeOf: Te } = Object, { iterator: ce, toStringTag: ve } = Symbol, le = /* @__PURE__ */ ((t) => (e) => {
|
|
7
|
+
const r = ht.call(e);
|
|
8
|
+
return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
|
|
9
|
+
})(/* @__PURE__ */ Object.create(null)), U = (t) => (t = t.toLowerCase(), (e) => le(e) === t), ue = (t) => (e) => typeof e === t, { isArray: q } = Array, K = ue("undefined");
|
|
10
|
+
function X(t) {
|
|
11
|
+
return t !== null && !K(t) && t.constructor !== null && !K(t.constructor) && N(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
12
|
+
}
|
|
13
|
+
const ze = U("ArrayBuffer");
|
|
14
|
+
function ft(t) {
|
|
15
|
+
let e;
|
|
16
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && ze(t.buffer), e;
|
|
17
|
+
}
|
|
18
|
+
const mt = ue("string"), N = ue("function"), $e = ue("number"), J = (t) => t !== null && typeof t == "object", Et = (t) => t === !0 || t === !1, re = (t) => {
|
|
19
|
+
if (le(t) !== "object")
|
|
20
|
+
return !1;
|
|
21
|
+
const e = Te(t);
|
|
22
|
+
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(ve in t) && !(ce in t);
|
|
23
|
+
}, At = (t) => {
|
|
24
|
+
if (!J(t) || X(t))
|
|
25
|
+
return !1;
|
|
26
|
+
try {
|
|
27
|
+
return Object.keys(t).length === 0 && Object.getPrototypeOf(t) === Object.prototype;
|
|
28
|
+
} catch {
|
|
29
|
+
return !1;
|
|
30
|
+
}
|
|
31
|
+
}, Ot = U("Date"), yt = U("File"), St = U("Blob"), Rt = U("FileList"), Pt = (t) => J(t) && N(t.pipe), gt = (t) => {
|
|
32
|
+
let e;
|
|
33
|
+
return t && (typeof FormData == "function" && t instanceof FormData || N(t.append) && ((e = le(t)) === "formdata" || // detect form-data instance
|
|
34
|
+
e === "object" && N(t.toString) && t.toString() === "[object FormData]"));
|
|
35
|
+
}, Tt = U("URLSearchParams"), [Ct, bt, _t, wt] = ["ReadableStream", "Request", "Response", "Headers"].map(U), It = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
36
|
+
function Y(t, e, { allOwnKeys: r = !1 } = {}) {
|
|
37
|
+
if (t === null || typeof t > "u")
|
|
38
|
+
return;
|
|
39
|
+
let s, n;
|
|
40
|
+
if (typeof t != "object" && (t = [t]), q(t))
|
|
41
|
+
for (s = 0, n = t.length; s < n; s++)
|
|
42
|
+
e.call(null, t[s], s, t);
|
|
43
|
+
else {
|
|
44
|
+
if (X(t))
|
|
45
|
+
return;
|
|
46
|
+
const o = r ? Object.getOwnPropertyNames(t) : Object.keys(t), a = o.length;
|
|
47
|
+
let i;
|
|
48
|
+
for (s = 0; s < a; s++)
|
|
49
|
+
i = o[s], e.call(null, t[i], i, t);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function qe(t, e) {
|
|
53
|
+
if (X(t))
|
|
54
|
+
return null;
|
|
55
|
+
e = e.toLowerCase();
|
|
56
|
+
const r = Object.keys(t);
|
|
57
|
+
let s = r.length, n;
|
|
58
|
+
for (; s-- > 0; )
|
|
59
|
+
if (n = r[s], e === n.toLowerCase())
|
|
60
|
+
return n;
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
const j = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Qe = (t) => !K(t) && t !== j;
|
|
64
|
+
function Oe() {
|
|
65
|
+
const { caseless: t } = Qe(this) && this || {}, e = {}, r = (s, n) => {
|
|
66
|
+
const o = t && qe(e, n) || n;
|
|
67
|
+
re(e[o]) && re(s) ? e[o] = Oe(e[o], s) : re(s) ? e[o] = Oe({}, s) : q(s) ? e[o] = s.slice() : e[o] = s;
|
|
68
|
+
};
|
|
69
|
+
for (let s = 0, n = arguments.length; s < n; s++)
|
|
70
|
+
arguments[s] && Y(arguments[s], r);
|
|
71
|
+
return e;
|
|
72
|
+
}
|
|
73
|
+
const Lt = (t, e, r, { allOwnKeys: s } = {}) => (Y(e, (n, o) => {
|
|
74
|
+
r && N(n) ? t[o] = ke(n, r) : t[o] = n;
|
|
75
|
+
}, { allOwnKeys: s }), t), Nt = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Ft = (t, e, r, s) => {
|
|
76
|
+
t.prototype = Object.create(e.prototype, s), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
77
|
+
value: e.prototype
|
|
78
|
+
}), r && Object.assign(t.prototype, r);
|
|
79
|
+
}, Ut = (t, e, r, s) => {
|
|
80
|
+
let n, o, a;
|
|
81
|
+
const i = {};
|
|
82
|
+
if (e = e || {}, t == null) return e;
|
|
83
|
+
do {
|
|
84
|
+
for (n = Object.getOwnPropertyNames(t), o = n.length; o-- > 0; )
|
|
85
|
+
a = n[o], (!s || s(a, t, e)) && !i[a] && (e[a] = t[a], i[a] = !0);
|
|
86
|
+
t = r !== !1 && Te(t);
|
|
87
|
+
} while (t && (!r || r(t, e)) && t !== Object.prototype);
|
|
88
|
+
return e;
|
|
89
|
+
}, Vt = (t, e, r) => {
|
|
90
|
+
t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length;
|
|
91
|
+
const s = t.indexOf(e, r);
|
|
92
|
+
return s !== -1 && s === r;
|
|
93
|
+
}, Dt = (t) => {
|
|
94
|
+
if (!t) return null;
|
|
95
|
+
if (q(t)) return t;
|
|
96
|
+
let e = t.length;
|
|
97
|
+
if (!$e(e)) return null;
|
|
98
|
+
const r = new Array(e);
|
|
99
|
+
for (; e-- > 0; )
|
|
100
|
+
r[e] = t[e];
|
|
101
|
+
return r;
|
|
102
|
+
}, Gt = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Te(Uint8Array)), Ht = (t, e) => {
|
|
103
|
+
const s = (t && t[ce]).call(t);
|
|
104
|
+
let n;
|
|
105
|
+
for (; (n = s.next()) && !n.done; ) {
|
|
106
|
+
const o = n.value;
|
|
107
|
+
e.call(t, o[0], o[1]);
|
|
108
|
+
}
|
|
109
|
+
}, xt = (t, e) => {
|
|
110
|
+
let r;
|
|
111
|
+
const s = [];
|
|
112
|
+
for (; (r = t.exec(e)) !== null; )
|
|
113
|
+
s.push(r);
|
|
114
|
+
return s;
|
|
115
|
+
}, Bt = U("HTMLFormElement"), Mt = (t) => t.toLowerCase().replace(
|
|
116
|
+
/[-_\s]([a-z\d])(\w*)/g,
|
|
117
|
+
function(r, s, n) {
|
|
118
|
+
return s.toUpperCase() + n;
|
|
119
|
+
}
|
|
120
|
+
), we = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), jt = U("RegExp"), We = (t, e) => {
|
|
121
|
+
const r = Object.getOwnPropertyDescriptors(t), s = {};
|
|
122
|
+
Y(r, (n, o) => {
|
|
123
|
+
let a;
|
|
124
|
+
(a = e(n, o, t)) !== !1 && (s[o] = a || n);
|
|
125
|
+
}), Object.defineProperties(t, s);
|
|
126
|
+
}, kt = (t) => {
|
|
127
|
+
We(t, (e, r) => {
|
|
128
|
+
if (N(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
129
|
+
return !1;
|
|
130
|
+
const s = t[r];
|
|
131
|
+
if (N(s)) {
|
|
132
|
+
if (e.enumerable = !1, "writable" in e) {
|
|
133
|
+
e.writable = !1;
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
e.set || (e.set = () => {
|
|
137
|
+
throw Error("Can not rewrite read-only method '" + r + "'");
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
}, vt = (t, e) => {
|
|
142
|
+
const r = {}, s = (n) => {
|
|
143
|
+
n.forEach((o) => {
|
|
144
|
+
r[o] = !0;
|
|
145
|
+
});
|
|
146
|
+
};
|
|
147
|
+
return q(t) ? s(t) : s(String(t).split(e)), r;
|
|
148
|
+
}, zt = () => {
|
|
149
|
+
}, $t = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
150
|
+
function qt(t) {
|
|
151
|
+
return !!(t && N(t.append) && t[ve] === "FormData" && t[ce]);
|
|
152
|
+
}
|
|
153
|
+
const Qt = (t) => {
|
|
154
|
+
const e = new Array(10), r = (s, n) => {
|
|
155
|
+
if (J(s)) {
|
|
156
|
+
if (e.indexOf(s) >= 0)
|
|
157
|
+
return;
|
|
158
|
+
if (X(s))
|
|
159
|
+
return s;
|
|
160
|
+
if (!("toJSON" in s)) {
|
|
161
|
+
e[n] = s;
|
|
162
|
+
const o = q(s) ? [] : {};
|
|
163
|
+
return Y(s, (a, i) => {
|
|
164
|
+
const c = r(a, n + 1);
|
|
165
|
+
!K(c) && (o[i] = c);
|
|
166
|
+
}), e[n] = void 0, o;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
return s;
|
|
170
|
+
};
|
|
171
|
+
return r(t, 0);
|
|
172
|
+
}, Wt = U("AsyncFunction"), Kt = (t) => t && (J(t) || N(t)) && N(t.then) && N(t.catch), Ke = ((t, e) => t ? setImmediate : e ? ((r, s) => (j.addEventListener("message", ({ source: n, data: o }) => {
|
|
173
|
+
n === j && o === r && s.length && s.shift()();
|
|
174
|
+
}, !1), (n) => {
|
|
175
|
+
s.push(n), j.postMessage(r, "*");
|
|
176
|
+
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
|
|
177
|
+
typeof setImmediate == "function",
|
|
178
|
+
N(j.postMessage)
|
|
179
|
+
), Xt = typeof queueMicrotask < "u" ? queueMicrotask.bind(j) : typeof process < "u" && process.nextTick || Ke, Jt = (t) => t != null && N(t[ce]), u = {
|
|
180
|
+
isArray: q,
|
|
181
|
+
isArrayBuffer: ze,
|
|
182
|
+
isBuffer: X,
|
|
183
|
+
isFormData: gt,
|
|
184
|
+
isArrayBufferView: ft,
|
|
185
|
+
isString: mt,
|
|
186
|
+
isNumber: $e,
|
|
187
|
+
isBoolean: Et,
|
|
188
|
+
isObject: J,
|
|
189
|
+
isPlainObject: re,
|
|
190
|
+
isEmptyObject: At,
|
|
191
|
+
isReadableStream: Ct,
|
|
192
|
+
isRequest: bt,
|
|
193
|
+
isResponse: _t,
|
|
194
|
+
isHeaders: wt,
|
|
195
|
+
isUndefined: K,
|
|
196
|
+
isDate: Ot,
|
|
197
|
+
isFile: yt,
|
|
198
|
+
isBlob: St,
|
|
199
|
+
isRegExp: jt,
|
|
200
|
+
isFunction: N,
|
|
201
|
+
isStream: Pt,
|
|
202
|
+
isURLSearchParams: Tt,
|
|
203
|
+
isTypedArray: Gt,
|
|
204
|
+
isFileList: Rt,
|
|
205
|
+
forEach: Y,
|
|
206
|
+
merge: Oe,
|
|
207
|
+
extend: Lt,
|
|
208
|
+
trim: It,
|
|
209
|
+
stripBOM: Nt,
|
|
210
|
+
inherits: Ft,
|
|
211
|
+
toFlatObject: Ut,
|
|
212
|
+
kindOf: le,
|
|
213
|
+
kindOfTest: U,
|
|
214
|
+
endsWith: Vt,
|
|
215
|
+
toArray: Dt,
|
|
216
|
+
forEachEntry: Ht,
|
|
217
|
+
matchAll: xt,
|
|
218
|
+
isHTMLForm: Bt,
|
|
219
|
+
hasOwnProperty: we,
|
|
220
|
+
hasOwnProp: we,
|
|
221
|
+
// an alias to avoid ESLint no-prototype-builtins detection
|
|
222
|
+
reduceDescriptors: We,
|
|
223
|
+
freezeMethods: kt,
|
|
224
|
+
toObjectSet: vt,
|
|
225
|
+
toCamelCase: Mt,
|
|
226
|
+
noop: zt,
|
|
227
|
+
toFiniteNumber: $t,
|
|
228
|
+
findKey: qe,
|
|
229
|
+
global: j,
|
|
230
|
+
isContextDefined: Qe,
|
|
231
|
+
isSpecCompliantForm: qt,
|
|
232
|
+
toJSONObject: Qt,
|
|
233
|
+
isAsyncFn: Wt,
|
|
234
|
+
isThenable: Kt,
|
|
235
|
+
setImmediate: Ke,
|
|
236
|
+
asap: Xt,
|
|
237
|
+
isIterable: Jt
|
|
238
|
+
};
|
|
239
|
+
function E(t, e, r, s, n) {
|
|
240
|
+
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), r && (this.config = r), s && (this.request = s), n && (this.response = n, this.status = n.status ? n.status : null);
|
|
241
|
+
}
|
|
242
|
+
u.inherits(E, Error, {
|
|
243
|
+
toJSON: function() {
|
|
244
|
+
return {
|
|
245
|
+
// Standard
|
|
246
|
+
message: this.message,
|
|
247
|
+
name: this.name,
|
|
248
|
+
// Microsoft
|
|
249
|
+
description: this.description,
|
|
250
|
+
number: this.number,
|
|
251
|
+
// Mozilla
|
|
252
|
+
fileName: this.fileName,
|
|
253
|
+
lineNumber: this.lineNumber,
|
|
254
|
+
columnNumber: this.columnNumber,
|
|
255
|
+
stack: this.stack,
|
|
256
|
+
// Axios
|
|
257
|
+
config: u.toJSONObject(this.config),
|
|
258
|
+
code: this.code,
|
|
259
|
+
status: this.status
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
});
|
|
263
|
+
const Xe = E.prototype, Je = {};
|
|
264
|
+
[
|
|
265
|
+
"ERR_BAD_OPTION_VALUE",
|
|
266
|
+
"ERR_BAD_OPTION",
|
|
267
|
+
"ECONNABORTED",
|
|
268
|
+
"ETIMEDOUT",
|
|
269
|
+
"ERR_NETWORK",
|
|
270
|
+
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
271
|
+
"ERR_DEPRECATED",
|
|
272
|
+
"ERR_BAD_RESPONSE",
|
|
273
|
+
"ERR_BAD_REQUEST",
|
|
274
|
+
"ERR_CANCELED",
|
|
275
|
+
"ERR_NOT_SUPPORT",
|
|
276
|
+
"ERR_INVALID_URL"
|
|
277
|
+
// eslint-disable-next-line func-names
|
|
278
|
+
].forEach((t) => {
|
|
279
|
+
Je[t] = { value: t };
|
|
280
|
+
});
|
|
281
|
+
Object.defineProperties(E, Je);
|
|
282
|
+
Object.defineProperty(Xe, "isAxiosError", { value: !0 });
|
|
283
|
+
E.from = (t, e, r, s, n, o) => {
|
|
284
|
+
const a = Object.create(Xe);
|
|
285
|
+
return u.toFlatObject(t, a, function(c) {
|
|
286
|
+
return c !== Error.prototype;
|
|
287
|
+
}, (i) => i !== "isAxiosError"), E.call(a, t.message, e, r, s, n), a.cause = t, a.name = t.name, o && Object.assign(a, o), a;
|
|
288
|
+
};
|
|
289
|
+
const Yt = null;
|
|
290
|
+
function ye(t) {
|
|
291
|
+
return u.isPlainObject(t) || u.isArray(t);
|
|
292
|
+
}
|
|
293
|
+
function Ye(t) {
|
|
294
|
+
return u.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
295
|
+
}
|
|
296
|
+
function Ie(t, e, r) {
|
|
297
|
+
return t ? t.concat(e).map(function(n, o) {
|
|
298
|
+
return n = Ye(n), !r && o ? "[" + n + "]" : n;
|
|
299
|
+
}).join(r ? "." : "") : e;
|
|
300
|
+
}
|
|
301
|
+
function Zt(t) {
|
|
302
|
+
return u.isArray(t) && !t.some(ye);
|
|
303
|
+
}
|
|
304
|
+
const er = u.toFlatObject(u, {}, null, function(e) {
|
|
305
|
+
return /^is[A-Z]/.test(e);
|
|
306
|
+
});
|
|
307
|
+
function de(t, e, r) {
|
|
308
|
+
if (!u.isObject(t))
|
|
309
|
+
throw new TypeError("target must be an object");
|
|
310
|
+
e = e || new FormData(), r = u.toFlatObject(r, {
|
|
311
|
+
metaTokens: !0,
|
|
312
|
+
dots: !1,
|
|
313
|
+
indexes: !1
|
|
314
|
+
}, !1, function(A, f) {
|
|
315
|
+
return !u.isUndefined(f[A]);
|
|
316
|
+
});
|
|
317
|
+
const s = r.metaTokens, n = r.visitor || d, o = r.dots, a = r.indexes, c = (r.Blob || typeof Blob < "u" && Blob) && u.isSpecCompliantForm(e);
|
|
318
|
+
if (!u.isFunction(n))
|
|
319
|
+
throw new TypeError("visitor must be a function");
|
|
320
|
+
function l(h) {
|
|
321
|
+
if (h === null) return "";
|
|
322
|
+
if (u.isDate(h))
|
|
323
|
+
return h.toISOString();
|
|
324
|
+
if (u.isBoolean(h))
|
|
325
|
+
return h.toString();
|
|
326
|
+
if (!c && u.isBlob(h))
|
|
327
|
+
throw new E("Blob is not supported. Use a Buffer instead.");
|
|
328
|
+
return u.isArrayBuffer(h) || u.isTypedArray(h) ? c && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
|
|
329
|
+
}
|
|
330
|
+
function d(h, A, f) {
|
|
331
|
+
let C = h;
|
|
332
|
+
if (h && !f && typeof h == "object") {
|
|
333
|
+
if (u.endsWith(A, "{}"))
|
|
334
|
+
A = s ? A : A.slice(0, -2), h = JSON.stringify(h);
|
|
335
|
+
else if (u.isArray(h) && Zt(h) || (u.isFileList(h) || u.endsWith(A, "[]")) && (C = u.toArray(h)))
|
|
336
|
+
return A = Ye(A), C.forEach(function(w, G) {
|
|
337
|
+
!(u.isUndefined(w) || w === null) && e.append(
|
|
338
|
+
// eslint-disable-next-line no-nested-ternary
|
|
339
|
+
a === !0 ? Ie([A], G, o) : a === null ? A : A + "[]",
|
|
340
|
+
l(w)
|
|
341
|
+
);
|
|
342
|
+
}), !1;
|
|
343
|
+
}
|
|
344
|
+
return ye(h) ? !0 : (e.append(Ie(f, A, o), l(h)), !1);
|
|
345
|
+
}
|
|
346
|
+
const p = [], O = Object.assign(er, {
|
|
347
|
+
defaultVisitor: d,
|
|
348
|
+
convertValue: l,
|
|
349
|
+
isVisitable: ye
|
|
350
|
+
});
|
|
351
|
+
function b(h, A) {
|
|
352
|
+
if (!u.isUndefined(h)) {
|
|
353
|
+
if (p.indexOf(h) !== -1)
|
|
354
|
+
throw Error("Circular reference detected in " + A.join("."));
|
|
355
|
+
p.push(h), u.forEach(h, function(C, _) {
|
|
356
|
+
(!(u.isUndefined(C) || C === null) && n.call(
|
|
357
|
+
e,
|
|
358
|
+
C,
|
|
359
|
+
u.isString(_) ? _.trim() : _,
|
|
360
|
+
A,
|
|
361
|
+
O
|
|
362
|
+
)) === !0 && b(C, A ? A.concat(_) : [_]);
|
|
363
|
+
}), p.pop();
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
if (!u.isObject(t))
|
|
367
|
+
throw new TypeError("data must be an object");
|
|
368
|
+
return b(t), e;
|
|
369
|
+
}
|
|
370
|
+
function Le(t) {
|
|
371
|
+
const e = {
|
|
372
|
+
"!": "%21",
|
|
373
|
+
"'": "%27",
|
|
374
|
+
"(": "%28",
|
|
375
|
+
")": "%29",
|
|
376
|
+
"~": "%7E",
|
|
377
|
+
"%20": "+",
|
|
378
|
+
"%00": "\0"
|
|
379
|
+
};
|
|
380
|
+
return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(s) {
|
|
381
|
+
return e[s];
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
function Ce(t, e) {
|
|
385
|
+
this._pairs = [], t && de(t, this, e);
|
|
386
|
+
}
|
|
387
|
+
const Ze = Ce.prototype;
|
|
388
|
+
Ze.append = function(e, r) {
|
|
389
|
+
this._pairs.push([e, r]);
|
|
390
|
+
};
|
|
391
|
+
Ze.toString = function(e) {
|
|
392
|
+
const r = e ? function(s) {
|
|
393
|
+
return e.call(this, s, Le);
|
|
394
|
+
} : Le;
|
|
395
|
+
return this._pairs.map(function(n) {
|
|
396
|
+
return r(n[0]) + "=" + r(n[1]);
|
|
397
|
+
}, "").join("&");
|
|
398
|
+
};
|
|
399
|
+
function tr(t) {
|
|
400
|
+
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
401
|
+
}
|
|
402
|
+
function et(t, e, r) {
|
|
403
|
+
if (!e)
|
|
404
|
+
return t;
|
|
405
|
+
const s = r && r.encode || tr;
|
|
406
|
+
u.isFunction(r) && (r = {
|
|
407
|
+
serialize: r
|
|
408
|
+
});
|
|
409
|
+
const n = r && r.serialize;
|
|
410
|
+
let o;
|
|
411
|
+
if (n ? o = n(e, r) : o = u.isURLSearchParams(e) ? e.toString() : new Ce(e, r).toString(s), o) {
|
|
412
|
+
const a = t.indexOf("#");
|
|
413
|
+
a !== -1 && (t = t.slice(0, a)), t += (t.indexOf("?") === -1 ? "?" : "&") + o;
|
|
414
|
+
}
|
|
415
|
+
return t;
|
|
416
|
+
}
|
|
417
|
+
class Ne {
|
|
418
|
+
constructor() {
|
|
419
|
+
this.handlers = [];
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* Add a new interceptor to the stack
|
|
423
|
+
*
|
|
424
|
+
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
425
|
+
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
426
|
+
*
|
|
427
|
+
* @return {Number} An ID used to remove interceptor later
|
|
428
|
+
*/
|
|
429
|
+
use(e, r, s) {
|
|
430
|
+
return this.handlers.push({
|
|
431
|
+
fulfilled: e,
|
|
432
|
+
rejected: r,
|
|
433
|
+
synchronous: s ? s.synchronous : !1,
|
|
434
|
+
runWhen: s ? s.runWhen : null
|
|
435
|
+
}), this.handlers.length - 1;
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* Remove an interceptor from the stack
|
|
439
|
+
*
|
|
440
|
+
* @param {Number} id The ID that was returned by `use`
|
|
441
|
+
*
|
|
442
|
+
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
|
|
443
|
+
*/
|
|
444
|
+
eject(e) {
|
|
445
|
+
this.handlers[e] && (this.handlers[e] = null);
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* Clear all interceptors from the stack
|
|
449
|
+
*
|
|
450
|
+
* @returns {void}
|
|
451
|
+
*/
|
|
452
|
+
clear() {
|
|
453
|
+
this.handlers && (this.handlers = []);
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* Iterate over all the registered interceptors
|
|
457
|
+
*
|
|
458
|
+
* This method is particularly useful for skipping over any
|
|
459
|
+
* interceptors that may have become `null` calling `eject`.
|
|
460
|
+
*
|
|
461
|
+
* @param {Function} fn The function to call for each interceptor
|
|
462
|
+
*
|
|
463
|
+
* @returns {void}
|
|
464
|
+
*/
|
|
465
|
+
forEach(e) {
|
|
466
|
+
u.forEach(this.handlers, function(s) {
|
|
467
|
+
s !== null && e(s);
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
const tt = {
|
|
472
|
+
silentJSONParsing: !0,
|
|
473
|
+
forcedJSONParsing: !0,
|
|
474
|
+
clarifyTimeoutError: !1
|
|
475
|
+
}, rr = typeof URLSearchParams < "u" ? URLSearchParams : Ce, sr = typeof FormData < "u" ? FormData : null, nr = typeof Blob < "u" ? Blob : null, or = {
|
|
476
|
+
isBrowser: !0,
|
|
477
|
+
classes: {
|
|
478
|
+
URLSearchParams: rr,
|
|
479
|
+
FormData: sr,
|
|
480
|
+
Blob: nr
|
|
481
|
+
},
|
|
482
|
+
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
483
|
+
}, be = typeof window < "u" && typeof document < "u", Se = typeof navigator == "object" && navigator || void 0, ar = be && (!Se || ["ReactNative", "NativeScript", "NS"].indexOf(Se.product) < 0), ir = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
484
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", cr = be && window.location.href || "http://localhost", lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
485
|
+
__proto__: null,
|
|
486
|
+
hasBrowserEnv: be,
|
|
487
|
+
hasStandardBrowserEnv: ar,
|
|
488
|
+
hasStandardBrowserWebWorkerEnv: ir,
|
|
489
|
+
navigator: Se,
|
|
490
|
+
origin: cr
|
|
491
|
+
}, Symbol.toStringTag, { value: "Module" })), I = {
|
|
492
|
+
...lr,
|
|
493
|
+
...or
|
|
494
|
+
};
|
|
495
|
+
function ur(t, e) {
|
|
496
|
+
return de(t, new I.classes.URLSearchParams(), {
|
|
497
|
+
visitor: function(r, s, n, o) {
|
|
498
|
+
return I.isNode && u.isBuffer(r) ? (this.append(s, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
499
|
+
},
|
|
500
|
+
...e
|
|
501
|
+
});
|
|
502
|
+
}
|
|
503
|
+
function dr(t) {
|
|
504
|
+
return u.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
505
|
+
}
|
|
506
|
+
function pr(t) {
|
|
507
|
+
const e = {}, r = Object.keys(t);
|
|
508
|
+
let s;
|
|
509
|
+
const n = r.length;
|
|
510
|
+
let o;
|
|
511
|
+
for (s = 0; s < n; s++)
|
|
512
|
+
o = r[s], e[o] = t[o];
|
|
513
|
+
return e;
|
|
514
|
+
}
|
|
515
|
+
function rt(t) {
|
|
516
|
+
function e(r, s, n, o) {
|
|
517
|
+
let a = r[o++];
|
|
518
|
+
if (a === "__proto__") return !0;
|
|
519
|
+
const i = Number.isFinite(+a), c = o >= r.length;
|
|
520
|
+
return a = !a && u.isArray(n) ? n.length : a, c ? (u.hasOwnProp(n, a) ? n[a] = [n[a], s] : n[a] = s, !i) : ((!n[a] || !u.isObject(n[a])) && (n[a] = []), e(r, s, n[a], o) && u.isArray(n[a]) && (n[a] = pr(n[a])), !i);
|
|
521
|
+
}
|
|
522
|
+
if (u.isFormData(t) && u.isFunction(t.entries)) {
|
|
523
|
+
const r = {};
|
|
524
|
+
return u.forEachEntry(t, (s, n) => {
|
|
525
|
+
e(dr(s), n, r, 0);
|
|
526
|
+
}), r;
|
|
527
|
+
}
|
|
528
|
+
return null;
|
|
529
|
+
}
|
|
530
|
+
function hr(t, e, r) {
|
|
531
|
+
if (u.isString(t))
|
|
532
|
+
try {
|
|
533
|
+
return (e || JSON.parse)(t), u.trim(t);
|
|
534
|
+
} catch (s) {
|
|
535
|
+
if (s.name !== "SyntaxError")
|
|
536
|
+
throw s;
|
|
537
|
+
}
|
|
538
|
+
return (r || JSON.stringify)(t);
|
|
539
|
+
}
|
|
540
|
+
const Z = {
|
|
541
|
+
transitional: tt,
|
|
542
|
+
adapter: ["xhr", "http", "fetch"],
|
|
543
|
+
transformRequest: [function(e, r) {
|
|
544
|
+
const s = r.getContentType() || "", n = s.indexOf("application/json") > -1, o = u.isObject(e);
|
|
545
|
+
if (o && u.isHTMLForm(e) && (e = new FormData(e)), u.isFormData(e))
|
|
546
|
+
return n ? JSON.stringify(rt(e)) : e;
|
|
547
|
+
if (u.isArrayBuffer(e) || u.isBuffer(e) || u.isStream(e) || u.isFile(e) || u.isBlob(e) || u.isReadableStream(e))
|
|
548
|
+
return e;
|
|
549
|
+
if (u.isArrayBufferView(e))
|
|
550
|
+
return e.buffer;
|
|
551
|
+
if (u.isURLSearchParams(e))
|
|
552
|
+
return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
553
|
+
let i;
|
|
554
|
+
if (o) {
|
|
555
|
+
if (s.indexOf("application/x-www-form-urlencoded") > -1)
|
|
556
|
+
return ur(e, this.formSerializer).toString();
|
|
557
|
+
if ((i = u.isFileList(e)) || s.indexOf("multipart/form-data") > -1) {
|
|
558
|
+
const c = this.env && this.env.FormData;
|
|
559
|
+
return de(
|
|
560
|
+
i ? { "files[]": e } : e,
|
|
561
|
+
c && new c(),
|
|
562
|
+
this.formSerializer
|
|
563
|
+
);
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
return o || n ? (r.setContentType("application/json", !1), hr(e)) : e;
|
|
567
|
+
}],
|
|
568
|
+
transformResponse: [function(e) {
|
|
569
|
+
const r = this.transitional || Z.transitional, s = r && r.forcedJSONParsing, n = this.responseType === "json";
|
|
570
|
+
if (u.isResponse(e) || u.isReadableStream(e))
|
|
571
|
+
return e;
|
|
572
|
+
if (e && u.isString(e) && (s && !this.responseType || n)) {
|
|
573
|
+
const a = !(r && r.silentJSONParsing) && n;
|
|
574
|
+
try {
|
|
575
|
+
return JSON.parse(e);
|
|
576
|
+
} catch (i) {
|
|
577
|
+
if (a)
|
|
578
|
+
throw i.name === "SyntaxError" ? E.from(i, E.ERR_BAD_RESPONSE, this, null, this.response) : i;
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
return e;
|
|
582
|
+
}],
|
|
583
|
+
/**
|
|
584
|
+
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
585
|
+
* timeout is not created.
|
|
586
|
+
*/
|
|
587
|
+
timeout: 0,
|
|
588
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
589
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
590
|
+
maxContentLength: -1,
|
|
591
|
+
maxBodyLength: -1,
|
|
592
|
+
env: {
|
|
593
|
+
FormData: I.classes.FormData,
|
|
594
|
+
Blob: I.classes.Blob
|
|
595
|
+
},
|
|
596
|
+
validateStatus: function(e) {
|
|
597
|
+
return e >= 200 && e < 300;
|
|
598
|
+
},
|
|
599
|
+
headers: {
|
|
600
|
+
common: {
|
|
601
|
+
Accept: "application/json, text/plain, */*",
|
|
602
|
+
"Content-Type": void 0
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
};
|
|
606
|
+
u.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
607
|
+
Z.headers[t] = {};
|
|
608
|
+
});
|
|
609
|
+
const fr = u.toObjectSet([
|
|
610
|
+
"age",
|
|
611
|
+
"authorization",
|
|
612
|
+
"content-length",
|
|
613
|
+
"content-type",
|
|
614
|
+
"etag",
|
|
615
|
+
"expires",
|
|
616
|
+
"from",
|
|
617
|
+
"host",
|
|
618
|
+
"if-modified-since",
|
|
619
|
+
"if-unmodified-since",
|
|
620
|
+
"last-modified",
|
|
621
|
+
"location",
|
|
622
|
+
"max-forwards",
|
|
623
|
+
"proxy-authorization",
|
|
624
|
+
"referer",
|
|
625
|
+
"retry-after",
|
|
626
|
+
"user-agent"
|
|
627
|
+
]), mr = (t) => {
|
|
628
|
+
const e = {};
|
|
629
|
+
let r, s, n;
|
|
630
|
+
return t && t.split(`
|
|
631
|
+
`).forEach(function(a) {
|
|
632
|
+
n = a.indexOf(":"), r = a.substring(0, n).trim().toLowerCase(), s = a.substring(n + 1).trim(), !(!r || e[r] && fr[r]) && (r === "set-cookie" ? e[r] ? e[r].push(s) : e[r] = [s] : e[r] = e[r] ? e[r] + ", " + s : s);
|
|
633
|
+
}), e;
|
|
634
|
+
}, Fe = Symbol("internals");
|
|
635
|
+
function W(t) {
|
|
636
|
+
return t && String(t).trim().toLowerCase();
|
|
637
|
+
}
|
|
638
|
+
function se(t) {
|
|
639
|
+
return t === !1 || t == null ? t : u.isArray(t) ? t.map(se) : String(t);
|
|
640
|
+
}
|
|
641
|
+
function Er(t) {
|
|
642
|
+
const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
643
|
+
let s;
|
|
644
|
+
for (; s = r.exec(t); )
|
|
645
|
+
e[s[1]] = s[2];
|
|
646
|
+
return e;
|
|
647
|
+
}
|
|
648
|
+
const Ar = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
649
|
+
function fe(t, e, r, s, n) {
|
|
650
|
+
if (u.isFunction(s))
|
|
651
|
+
return s.call(this, e, r);
|
|
652
|
+
if (n && (e = r), !!u.isString(e)) {
|
|
653
|
+
if (u.isString(s))
|
|
654
|
+
return e.indexOf(s) !== -1;
|
|
655
|
+
if (u.isRegExp(s))
|
|
656
|
+
return s.test(e);
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
function Or(t) {
|
|
660
|
+
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, r, s) => r.toUpperCase() + s);
|
|
661
|
+
}
|
|
662
|
+
function yr(t, e) {
|
|
663
|
+
const r = u.toCamelCase(" " + e);
|
|
664
|
+
["get", "set", "has"].forEach((s) => {
|
|
665
|
+
Object.defineProperty(t, s + r, {
|
|
666
|
+
value: function(n, o, a) {
|
|
667
|
+
return this[s].call(this, e, n, o, a);
|
|
668
|
+
},
|
|
669
|
+
configurable: !0
|
|
670
|
+
});
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
let F = class {
|
|
674
|
+
constructor(e) {
|
|
675
|
+
e && this.set(e);
|
|
676
|
+
}
|
|
677
|
+
set(e, r, s) {
|
|
678
|
+
const n = this;
|
|
679
|
+
function o(i, c, l) {
|
|
680
|
+
const d = W(c);
|
|
681
|
+
if (!d)
|
|
682
|
+
throw new Error("header name must be a non-empty string");
|
|
683
|
+
const p = u.findKey(n, d);
|
|
684
|
+
(!p || n[p] === void 0 || l === !0 || l === void 0 && n[p] !== !1) && (n[p || c] = se(i));
|
|
685
|
+
}
|
|
686
|
+
const a = (i, c) => u.forEach(i, (l, d) => o(l, d, c));
|
|
687
|
+
if (u.isPlainObject(e) || e instanceof this.constructor)
|
|
688
|
+
a(e, r);
|
|
689
|
+
else if (u.isString(e) && (e = e.trim()) && !Ar(e))
|
|
690
|
+
a(mr(e), r);
|
|
691
|
+
else if (u.isObject(e) && u.isIterable(e)) {
|
|
692
|
+
let i = {}, c, l;
|
|
693
|
+
for (const d of e) {
|
|
694
|
+
if (!u.isArray(d))
|
|
695
|
+
throw TypeError("Object iterator must return a key-value pair");
|
|
696
|
+
i[l = d[0]] = (c = i[l]) ? u.isArray(c) ? [...c, d[1]] : [c, d[1]] : d[1];
|
|
697
|
+
}
|
|
698
|
+
a(i, r);
|
|
699
|
+
} else
|
|
700
|
+
e != null && o(r, e, s);
|
|
701
|
+
return this;
|
|
702
|
+
}
|
|
703
|
+
get(e, r) {
|
|
704
|
+
if (e = W(e), e) {
|
|
705
|
+
const s = u.findKey(this, e);
|
|
706
|
+
if (s) {
|
|
707
|
+
const n = this[s];
|
|
708
|
+
if (!r)
|
|
709
|
+
return n;
|
|
710
|
+
if (r === !0)
|
|
711
|
+
return Er(n);
|
|
712
|
+
if (u.isFunction(r))
|
|
713
|
+
return r.call(this, n, s);
|
|
714
|
+
if (u.isRegExp(r))
|
|
715
|
+
return r.exec(n);
|
|
716
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
has(e, r) {
|
|
721
|
+
if (e = W(e), e) {
|
|
722
|
+
const s = u.findKey(this, e);
|
|
723
|
+
return !!(s && this[s] !== void 0 && (!r || fe(this, this[s], s, r)));
|
|
724
|
+
}
|
|
725
|
+
return !1;
|
|
726
|
+
}
|
|
727
|
+
delete(e, r) {
|
|
728
|
+
const s = this;
|
|
729
|
+
let n = !1;
|
|
730
|
+
function o(a) {
|
|
731
|
+
if (a = W(a), a) {
|
|
732
|
+
const i = u.findKey(s, a);
|
|
733
|
+
i && (!r || fe(s, s[i], i, r)) && (delete s[i], n = !0);
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
return u.isArray(e) ? e.forEach(o) : o(e), n;
|
|
737
|
+
}
|
|
738
|
+
clear(e) {
|
|
739
|
+
const r = Object.keys(this);
|
|
740
|
+
let s = r.length, n = !1;
|
|
741
|
+
for (; s--; ) {
|
|
742
|
+
const o = r[s];
|
|
743
|
+
(!e || fe(this, this[o], o, e, !0)) && (delete this[o], n = !0);
|
|
744
|
+
}
|
|
745
|
+
return n;
|
|
746
|
+
}
|
|
747
|
+
normalize(e) {
|
|
748
|
+
const r = this, s = {};
|
|
749
|
+
return u.forEach(this, (n, o) => {
|
|
750
|
+
const a = u.findKey(s, o);
|
|
751
|
+
if (a) {
|
|
752
|
+
r[a] = se(n), delete r[o];
|
|
753
|
+
return;
|
|
754
|
+
}
|
|
755
|
+
const i = e ? Or(o) : String(o).trim();
|
|
756
|
+
i !== o && delete r[o], r[i] = se(n), s[i] = !0;
|
|
757
|
+
}), this;
|
|
758
|
+
}
|
|
759
|
+
concat(...e) {
|
|
760
|
+
return this.constructor.concat(this, ...e);
|
|
761
|
+
}
|
|
762
|
+
toJSON(e) {
|
|
763
|
+
const r = /* @__PURE__ */ Object.create(null);
|
|
764
|
+
return u.forEach(this, (s, n) => {
|
|
765
|
+
s != null && s !== !1 && (r[n] = e && u.isArray(s) ? s.join(", ") : s);
|
|
766
|
+
}), r;
|
|
767
|
+
}
|
|
768
|
+
[Symbol.iterator]() {
|
|
769
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
770
|
+
}
|
|
771
|
+
toString() {
|
|
772
|
+
return Object.entries(this.toJSON()).map(([e, r]) => e + ": " + r).join(`
|
|
773
|
+
`);
|
|
774
|
+
}
|
|
775
|
+
getSetCookie() {
|
|
776
|
+
return this.get("set-cookie") || [];
|
|
777
|
+
}
|
|
778
|
+
get [Symbol.toStringTag]() {
|
|
779
|
+
return "AxiosHeaders";
|
|
780
|
+
}
|
|
781
|
+
static from(e) {
|
|
782
|
+
return e instanceof this ? e : new this(e);
|
|
783
|
+
}
|
|
784
|
+
static concat(e, ...r) {
|
|
785
|
+
const s = new this(e);
|
|
786
|
+
return r.forEach((n) => s.set(n)), s;
|
|
787
|
+
}
|
|
788
|
+
static accessor(e) {
|
|
789
|
+
const s = (this[Fe] = this[Fe] = {
|
|
790
|
+
accessors: {}
|
|
791
|
+
}).accessors, n = this.prototype;
|
|
792
|
+
function o(a) {
|
|
793
|
+
const i = W(a);
|
|
794
|
+
s[i] || (yr(n, a), s[i] = !0);
|
|
795
|
+
}
|
|
796
|
+
return u.isArray(e) ? e.forEach(o) : o(e), this;
|
|
797
|
+
}
|
|
798
|
+
};
|
|
799
|
+
F.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
800
|
+
u.reduceDescriptors(F.prototype, ({ value: t }, e) => {
|
|
801
|
+
let r = e[0].toUpperCase() + e.slice(1);
|
|
802
|
+
return {
|
|
803
|
+
get: () => t,
|
|
804
|
+
set(s) {
|
|
805
|
+
this[r] = s;
|
|
806
|
+
}
|
|
807
|
+
};
|
|
808
|
+
});
|
|
809
|
+
u.freezeMethods(F);
|
|
810
|
+
function me(t, e) {
|
|
811
|
+
const r = this || Z, s = e || r, n = F.from(s.headers);
|
|
812
|
+
let o = s.data;
|
|
813
|
+
return u.forEach(t, function(i) {
|
|
814
|
+
o = i.call(r, o, n.normalize(), e ? e.status : void 0);
|
|
815
|
+
}), n.normalize(), o;
|
|
816
|
+
}
|
|
817
|
+
function st(t) {
|
|
818
|
+
return !!(t && t.__CANCEL__);
|
|
819
|
+
}
|
|
820
|
+
function Q(t, e, r) {
|
|
821
|
+
E.call(this, t ?? "canceled", E.ERR_CANCELED, e, r), this.name = "CanceledError";
|
|
822
|
+
}
|
|
823
|
+
u.inherits(Q, E, {
|
|
824
|
+
__CANCEL__: !0
|
|
825
|
+
});
|
|
826
|
+
function nt(t, e, r) {
|
|
827
|
+
const s = r.config.validateStatus;
|
|
828
|
+
!r.status || !s || s(r.status) ? t(r) : e(new E(
|
|
829
|
+
"Request failed with status code " + r.status,
|
|
830
|
+
[E.ERR_BAD_REQUEST, E.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
|
|
831
|
+
r.config,
|
|
832
|
+
r.request,
|
|
833
|
+
r
|
|
834
|
+
));
|
|
835
|
+
}
|
|
836
|
+
function Sr(t) {
|
|
837
|
+
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
|
838
|
+
return e && e[1] || "";
|
|
839
|
+
}
|
|
840
|
+
function Rr(t, e) {
|
|
841
|
+
t = t || 10;
|
|
842
|
+
const r = new Array(t), s = new Array(t);
|
|
843
|
+
let n = 0, o = 0, a;
|
|
844
|
+
return e = e !== void 0 ? e : 1e3, function(c) {
|
|
845
|
+
const l = Date.now(), d = s[o];
|
|
846
|
+
a || (a = l), r[n] = c, s[n] = l;
|
|
847
|
+
let p = o, O = 0;
|
|
848
|
+
for (; p !== n; )
|
|
849
|
+
O += r[p++], p = p % t;
|
|
850
|
+
if (n = (n + 1) % t, n === o && (o = (o + 1) % t), l - a < e)
|
|
851
|
+
return;
|
|
852
|
+
const b = d && l - d;
|
|
853
|
+
return b ? Math.round(O * 1e3 / b) : void 0;
|
|
854
|
+
};
|
|
855
|
+
}
|
|
856
|
+
function Pr(t, e) {
|
|
857
|
+
let r = 0, s = 1e3 / e, n, o;
|
|
858
|
+
const a = (l, d = Date.now()) => {
|
|
859
|
+
r = d, n = null, o && (clearTimeout(o), o = null), t(...l);
|
|
860
|
+
};
|
|
861
|
+
return [(...l) => {
|
|
862
|
+
const d = Date.now(), p = d - r;
|
|
863
|
+
p >= s ? a(l, d) : (n = l, o || (o = setTimeout(() => {
|
|
864
|
+
o = null, a(n);
|
|
865
|
+
}, s - p)));
|
|
866
|
+
}, () => n && a(n)];
|
|
867
|
+
}
|
|
868
|
+
const oe = (t, e, r = 3) => {
|
|
869
|
+
let s = 0;
|
|
870
|
+
const n = Rr(50, 250);
|
|
871
|
+
return Pr((o) => {
|
|
872
|
+
const a = o.loaded, i = o.lengthComputable ? o.total : void 0, c = a - s, l = n(c), d = a <= i;
|
|
873
|
+
s = a;
|
|
874
|
+
const p = {
|
|
875
|
+
loaded: a,
|
|
876
|
+
total: i,
|
|
877
|
+
progress: i ? a / i : void 0,
|
|
878
|
+
bytes: c,
|
|
879
|
+
rate: l || void 0,
|
|
880
|
+
estimated: l && i && d ? (i - a) / l : void 0,
|
|
881
|
+
event: o,
|
|
882
|
+
lengthComputable: i != null,
|
|
883
|
+
[e ? "download" : "upload"]: !0
|
|
884
|
+
};
|
|
885
|
+
t(p);
|
|
886
|
+
}, r);
|
|
887
|
+
}, Ue = (t, e) => {
|
|
888
|
+
const r = t != null;
|
|
889
|
+
return [(s) => e[0]({
|
|
890
|
+
lengthComputable: r,
|
|
891
|
+
total: t,
|
|
892
|
+
loaded: s
|
|
893
|
+
}), e[1]];
|
|
894
|
+
}, Ve = (t) => (...e) => u.asap(() => t(...e)), gr = I.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, I.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
|
|
895
|
+
new URL(I.origin),
|
|
896
|
+
I.navigator && /(msie|trident)/i.test(I.navigator.userAgent)
|
|
897
|
+
) : () => !0, Tr = I.hasStandardBrowserEnv ? (
|
|
898
|
+
// Standard browser envs support document.cookie
|
|
899
|
+
{
|
|
900
|
+
write(t, e, r, s, n, o) {
|
|
901
|
+
const a = [t + "=" + encodeURIComponent(e)];
|
|
902
|
+
u.isNumber(r) && a.push("expires=" + new Date(r).toGMTString()), u.isString(s) && a.push("path=" + s), u.isString(n) && a.push("domain=" + n), o === !0 && a.push("secure"), document.cookie = a.join("; ");
|
|
903
|
+
},
|
|
904
|
+
read(t) {
|
|
905
|
+
const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
|
|
906
|
+
return e ? decodeURIComponent(e[3]) : null;
|
|
907
|
+
},
|
|
908
|
+
remove(t) {
|
|
909
|
+
this.write(t, "", Date.now() - 864e5);
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
) : (
|
|
913
|
+
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
914
|
+
{
|
|
915
|
+
write() {
|
|
916
|
+
},
|
|
917
|
+
read() {
|
|
918
|
+
return null;
|
|
919
|
+
},
|
|
920
|
+
remove() {
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
);
|
|
924
|
+
function Cr(t) {
|
|
925
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
926
|
+
}
|
|
927
|
+
function br(t, e) {
|
|
928
|
+
return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
|
929
|
+
}
|
|
930
|
+
function ot(t, e, r) {
|
|
931
|
+
let s = !Cr(e);
|
|
932
|
+
return t && (s || r == !1) ? br(t, e) : e;
|
|
933
|
+
}
|
|
934
|
+
const De = (t) => t instanceof F ? { ...t } : t;
|
|
935
|
+
function v(t, e) {
|
|
936
|
+
e = e || {};
|
|
937
|
+
const r = {};
|
|
938
|
+
function s(l, d, p, O) {
|
|
939
|
+
return u.isPlainObject(l) && u.isPlainObject(d) ? u.merge.call({ caseless: O }, l, d) : u.isPlainObject(d) ? u.merge({}, d) : u.isArray(d) ? d.slice() : d;
|
|
940
|
+
}
|
|
941
|
+
function n(l, d, p, O) {
|
|
942
|
+
if (u.isUndefined(d)) {
|
|
943
|
+
if (!u.isUndefined(l))
|
|
944
|
+
return s(void 0, l, p, O);
|
|
945
|
+
} else return s(l, d, p, O);
|
|
946
|
+
}
|
|
947
|
+
function o(l, d) {
|
|
948
|
+
if (!u.isUndefined(d))
|
|
949
|
+
return s(void 0, d);
|
|
950
|
+
}
|
|
951
|
+
function a(l, d) {
|
|
952
|
+
if (u.isUndefined(d)) {
|
|
953
|
+
if (!u.isUndefined(l))
|
|
954
|
+
return s(void 0, l);
|
|
955
|
+
} else return s(void 0, d);
|
|
956
|
+
}
|
|
957
|
+
function i(l, d, p) {
|
|
958
|
+
if (p in e)
|
|
959
|
+
return s(l, d);
|
|
960
|
+
if (p in t)
|
|
961
|
+
return s(void 0, l);
|
|
962
|
+
}
|
|
963
|
+
const c = {
|
|
964
|
+
url: o,
|
|
965
|
+
method: o,
|
|
966
|
+
data: o,
|
|
967
|
+
baseURL: a,
|
|
968
|
+
transformRequest: a,
|
|
969
|
+
transformResponse: a,
|
|
970
|
+
paramsSerializer: a,
|
|
971
|
+
timeout: a,
|
|
972
|
+
timeoutMessage: a,
|
|
973
|
+
withCredentials: a,
|
|
974
|
+
withXSRFToken: a,
|
|
975
|
+
adapter: a,
|
|
976
|
+
responseType: a,
|
|
977
|
+
xsrfCookieName: a,
|
|
978
|
+
xsrfHeaderName: a,
|
|
979
|
+
onUploadProgress: a,
|
|
980
|
+
onDownloadProgress: a,
|
|
981
|
+
decompress: a,
|
|
982
|
+
maxContentLength: a,
|
|
983
|
+
maxBodyLength: a,
|
|
984
|
+
beforeRedirect: a,
|
|
985
|
+
transport: a,
|
|
986
|
+
httpAgent: a,
|
|
987
|
+
httpsAgent: a,
|
|
988
|
+
cancelToken: a,
|
|
989
|
+
socketPath: a,
|
|
990
|
+
responseEncoding: a,
|
|
991
|
+
validateStatus: i,
|
|
992
|
+
headers: (l, d, p) => n(De(l), De(d), p, !0)
|
|
993
|
+
};
|
|
994
|
+
return u.forEach(Object.keys({ ...t, ...e }), function(d) {
|
|
995
|
+
const p = c[d] || n, O = p(t[d], e[d], d);
|
|
996
|
+
u.isUndefined(O) && p !== i || (r[d] = O);
|
|
997
|
+
}), r;
|
|
998
|
+
}
|
|
999
|
+
const at = (t) => {
|
|
1000
|
+
const e = v({}, t);
|
|
1001
|
+
let { data: r, withXSRFToken: s, xsrfHeaderName: n, xsrfCookieName: o, headers: a, auth: i } = e;
|
|
1002
|
+
e.headers = a = F.from(a), e.url = et(ot(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), i && a.set(
|
|
1003
|
+
"Authorization",
|
|
1004
|
+
"Basic " + btoa((i.username || "") + ":" + (i.password ? unescape(encodeURIComponent(i.password)) : ""))
|
|
1005
|
+
);
|
|
1006
|
+
let c;
|
|
1007
|
+
if (u.isFormData(r)) {
|
|
1008
|
+
if (I.hasStandardBrowserEnv || I.hasStandardBrowserWebWorkerEnv)
|
|
1009
|
+
a.setContentType(void 0);
|
|
1010
|
+
else if ((c = a.getContentType()) !== !1) {
|
|
1011
|
+
const [l, ...d] = c ? c.split(";").map((p) => p.trim()).filter(Boolean) : [];
|
|
1012
|
+
a.setContentType([l || "multipart/form-data", ...d].join("; "));
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
if (I.hasStandardBrowserEnv && (s && u.isFunction(s) && (s = s(e)), s || s !== !1 && gr(e.url))) {
|
|
1016
|
+
const l = n && o && Tr.read(o);
|
|
1017
|
+
l && a.set(n, l);
|
|
1018
|
+
}
|
|
1019
|
+
return e;
|
|
1020
|
+
}, _r = typeof XMLHttpRequest < "u", wr = _r && function(t) {
|
|
1021
|
+
return new Promise(function(r, s) {
|
|
1022
|
+
const n = at(t);
|
|
1023
|
+
let o = n.data;
|
|
1024
|
+
const a = F.from(n.headers).normalize();
|
|
1025
|
+
let { responseType: i, onUploadProgress: c, onDownloadProgress: l } = n, d, p, O, b, h;
|
|
1026
|
+
function A() {
|
|
1027
|
+
b && b(), h && h(), n.cancelToken && n.cancelToken.unsubscribe(d), n.signal && n.signal.removeEventListener("abort", d);
|
|
1028
|
+
}
|
|
1029
|
+
let f = new XMLHttpRequest();
|
|
1030
|
+
f.open(n.method.toUpperCase(), n.url, !0), f.timeout = n.timeout;
|
|
1031
|
+
function C() {
|
|
1032
|
+
if (!f)
|
|
1033
|
+
return;
|
|
1034
|
+
const w = F.from(
|
|
1035
|
+
"getAllResponseHeaders" in f && f.getAllResponseHeaders()
|
|
1036
|
+
), L = {
|
|
1037
|
+
data: !i || i === "text" || i === "json" ? f.responseText : f.response,
|
|
1038
|
+
status: f.status,
|
|
1039
|
+
statusText: f.statusText,
|
|
1040
|
+
headers: w,
|
|
1041
|
+
config: t,
|
|
1042
|
+
request: f
|
|
1043
|
+
};
|
|
1044
|
+
nt(function(B) {
|
|
1045
|
+
r(B), A();
|
|
1046
|
+
}, function(B) {
|
|
1047
|
+
s(B), A();
|
|
1048
|
+
}, L), f = null;
|
|
1049
|
+
}
|
|
1050
|
+
"onloadend" in f ? f.onloadend = C : f.onreadystatechange = function() {
|
|
1051
|
+
!f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.indexOf("file:") === 0) || setTimeout(C);
|
|
1052
|
+
}, f.onabort = function() {
|
|
1053
|
+
f && (s(new E("Request aborted", E.ECONNABORTED, t, f)), f = null);
|
|
1054
|
+
}, f.onerror = function() {
|
|
1055
|
+
s(new E("Network Error", E.ERR_NETWORK, t, f)), f = null;
|
|
1056
|
+
}, f.ontimeout = function() {
|
|
1057
|
+
let G = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
|
|
1058
|
+
const L = n.transitional || tt;
|
|
1059
|
+
n.timeoutErrorMessage && (G = n.timeoutErrorMessage), s(new E(
|
|
1060
|
+
G,
|
|
1061
|
+
L.clarifyTimeoutError ? E.ETIMEDOUT : E.ECONNABORTED,
|
|
1062
|
+
t,
|
|
1063
|
+
f
|
|
1064
|
+
)), f = null;
|
|
1065
|
+
}, o === void 0 && a.setContentType(null), "setRequestHeader" in f && u.forEach(a.toJSON(), function(G, L) {
|
|
1066
|
+
f.setRequestHeader(L, G);
|
|
1067
|
+
}), u.isUndefined(n.withCredentials) || (f.withCredentials = !!n.withCredentials), i && i !== "json" && (f.responseType = n.responseType), l && ([O, h] = oe(l, !0), f.addEventListener("progress", O)), c && f.upload && ([p, b] = oe(c), f.upload.addEventListener("progress", p), f.upload.addEventListener("loadend", b)), (n.cancelToken || n.signal) && (d = (w) => {
|
|
1068
|
+
f && (s(!w || w.type ? new Q(null, t, f) : w), f.abort(), f = null);
|
|
1069
|
+
}, n.cancelToken && n.cancelToken.subscribe(d), n.signal && (n.signal.aborted ? d() : n.signal.addEventListener("abort", d)));
|
|
1070
|
+
const _ = Sr(n.url);
|
|
1071
|
+
if (_ && I.protocols.indexOf(_) === -1) {
|
|
1072
|
+
s(new E("Unsupported protocol " + _ + ":", E.ERR_BAD_REQUEST, t));
|
|
1073
|
+
return;
|
|
1074
|
+
}
|
|
1075
|
+
f.send(o || null);
|
|
1076
|
+
});
|
|
1077
|
+
}, Ir = (t, e) => {
|
|
1078
|
+
const { length: r } = t = t ? t.filter(Boolean) : [];
|
|
1079
|
+
if (e || r) {
|
|
1080
|
+
let s = new AbortController(), n;
|
|
1081
|
+
const o = function(l) {
|
|
1082
|
+
if (!n) {
|
|
1083
|
+
n = !0, i();
|
|
1084
|
+
const d = l instanceof Error ? l : this.reason;
|
|
1085
|
+
s.abort(d instanceof E ? d : new Q(d instanceof Error ? d.message : d));
|
|
1086
|
+
}
|
|
1087
|
+
};
|
|
1088
|
+
let a = e && setTimeout(() => {
|
|
1089
|
+
a = null, o(new E(`timeout ${e} of ms exceeded`, E.ETIMEDOUT));
|
|
1090
|
+
}, e);
|
|
1091
|
+
const i = () => {
|
|
1092
|
+
t && (a && clearTimeout(a), a = null, t.forEach((l) => {
|
|
1093
|
+
l.unsubscribe ? l.unsubscribe(o) : l.removeEventListener("abort", o);
|
|
1094
|
+
}), t = null);
|
|
1095
|
+
};
|
|
1096
|
+
t.forEach((l) => l.addEventListener("abort", o));
|
|
1097
|
+
const { signal: c } = s;
|
|
1098
|
+
return c.unsubscribe = () => u.asap(i), c;
|
|
1099
|
+
}
|
|
1100
|
+
}, Lr = function* (t, e) {
|
|
1101
|
+
let r = t.byteLength;
|
|
1102
|
+
if (r < e) {
|
|
1103
|
+
yield t;
|
|
1104
|
+
return;
|
|
1105
|
+
}
|
|
1106
|
+
let s = 0, n;
|
|
1107
|
+
for (; s < r; )
|
|
1108
|
+
n = s + e, yield t.slice(s, n), s = n;
|
|
1109
|
+
}, Nr = async function* (t, e) {
|
|
1110
|
+
for await (const r of Fr(t))
|
|
1111
|
+
yield* Lr(r, e);
|
|
1112
|
+
}, Fr = async function* (t) {
|
|
1113
|
+
if (t[Symbol.asyncIterator]) {
|
|
1114
|
+
yield* t;
|
|
1115
|
+
return;
|
|
1116
|
+
}
|
|
1117
|
+
const e = t.getReader();
|
|
1118
|
+
try {
|
|
1119
|
+
for (; ; ) {
|
|
1120
|
+
const { done: r, value: s } = await e.read();
|
|
1121
|
+
if (r)
|
|
1122
|
+
break;
|
|
1123
|
+
yield s;
|
|
1124
|
+
}
|
|
1125
|
+
} finally {
|
|
1126
|
+
await e.cancel();
|
|
1127
|
+
}
|
|
1128
|
+
}, Ge = (t, e, r, s) => {
|
|
1129
|
+
const n = Nr(t, e);
|
|
1130
|
+
let o = 0, a, i = (c) => {
|
|
1131
|
+
a || (a = !0, s && s(c));
|
|
1132
|
+
};
|
|
1133
|
+
return new ReadableStream({
|
|
1134
|
+
async pull(c) {
|
|
1135
|
+
try {
|
|
1136
|
+
const { done: l, value: d } = await n.next();
|
|
1137
|
+
if (l) {
|
|
1138
|
+
i(), c.close();
|
|
1139
|
+
return;
|
|
1140
|
+
}
|
|
1141
|
+
let p = d.byteLength;
|
|
1142
|
+
if (r) {
|
|
1143
|
+
let O = o += p;
|
|
1144
|
+
r(O);
|
|
1145
|
+
}
|
|
1146
|
+
c.enqueue(new Uint8Array(d));
|
|
1147
|
+
} catch (l) {
|
|
1148
|
+
throw i(l), l;
|
|
1149
|
+
}
|
|
1150
|
+
},
|
|
1151
|
+
cancel(c) {
|
|
1152
|
+
return i(c), n.return();
|
|
1153
|
+
}
|
|
1154
|
+
}, {
|
|
1155
|
+
highWaterMark: 2
|
|
1156
|
+
});
|
|
1157
|
+
}, pe = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", it = pe && typeof ReadableStream == "function", Ur = pe && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), ct = (t, ...e) => {
|
|
1158
|
+
try {
|
|
1159
|
+
return !!t(...e);
|
|
1160
|
+
} catch {
|
|
1161
|
+
return !1;
|
|
1162
|
+
}
|
|
1163
|
+
}, Vr = it && ct(() => {
|
|
1164
|
+
let t = !1;
|
|
1165
|
+
const e = new Request(I.origin, {
|
|
1166
|
+
body: new ReadableStream(),
|
|
1167
|
+
method: "POST",
|
|
1168
|
+
get duplex() {
|
|
1169
|
+
return t = !0, "half";
|
|
1170
|
+
}
|
|
1171
|
+
}).headers.has("Content-Type");
|
|
1172
|
+
return t && !e;
|
|
1173
|
+
}), He = 64 * 1024, Re = it && ct(() => u.isReadableStream(new Response("").body)), ae = {
|
|
1174
|
+
stream: Re && ((t) => t.body)
|
|
1175
|
+
};
|
|
1176
|
+
pe && ((t) => {
|
|
1177
|
+
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
1178
|
+
!ae[e] && (ae[e] = u.isFunction(t[e]) ? (r) => r[e]() : (r, s) => {
|
|
1179
|
+
throw new E(`Response type '${e}' is not supported`, E.ERR_NOT_SUPPORT, s);
|
|
1180
|
+
});
|
|
1181
|
+
});
|
|
1182
|
+
})(new Response());
|
|
1183
|
+
const Dr = async (t) => {
|
|
1184
|
+
if (t == null)
|
|
1185
|
+
return 0;
|
|
1186
|
+
if (u.isBlob(t))
|
|
1187
|
+
return t.size;
|
|
1188
|
+
if (u.isSpecCompliantForm(t))
|
|
1189
|
+
return (await new Request(I.origin, {
|
|
1190
|
+
method: "POST",
|
|
1191
|
+
body: t
|
|
1192
|
+
}).arrayBuffer()).byteLength;
|
|
1193
|
+
if (u.isArrayBufferView(t) || u.isArrayBuffer(t))
|
|
1194
|
+
return t.byteLength;
|
|
1195
|
+
if (u.isURLSearchParams(t) && (t = t + ""), u.isString(t))
|
|
1196
|
+
return (await Ur(t)).byteLength;
|
|
1197
|
+
}, Gr = async (t, e) => {
|
|
1198
|
+
const r = u.toFiniteNumber(t.getContentLength());
|
|
1199
|
+
return r ?? Dr(e);
|
|
1200
|
+
}, Hr = pe && (async (t) => {
|
|
1201
|
+
let {
|
|
1202
|
+
url: e,
|
|
1203
|
+
method: r,
|
|
1204
|
+
data: s,
|
|
1205
|
+
signal: n,
|
|
1206
|
+
cancelToken: o,
|
|
1207
|
+
timeout: a,
|
|
1208
|
+
onDownloadProgress: i,
|
|
1209
|
+
onUploadProgress: c,
|
|
1210
|
+
responseType: l,
|
|
1211
|
+
headers: d,
|
|
1212
|
+
withCredentials: p = "same-origin",
|
|
1213
|
+
fetchOptions: O
|
|
1214
|
+
} = at(t);
|
|
1215
|
+
l = l ? (l + "").toLowerCase() : "text";
|
|
1216
|
+
let b = Ir([n, o && o.toAbortSignal()], a), h;
|
|
1217
|
+
const A = b && b.unsubscribe && (() => {
|
|
1218
|
+
b.unsubscribe();
|
|
1219
|
+
});
|
|
1220
|
+
let f;
|
|
1221
|
+
try {
|
|
1222
|
+
if (c && Vr && r !== "get" && r !== "head" && (f = await Gr(d, s)) !== 0) {
|
|
1223
|
+
let L = new Request(e, {
|
|
1224
|
+
method: "POST",
|
|
1225
|
+
body: s,
|
|
1226
|
+
duplex: "half"
|
|
1227
|
+
}), x;
|
|
1228
|
+
if (u.isFormData(s) && (x = L.headers.get("content-type")) && d.setContentType(x), L.body) {
|
|
1229
|
+
const [B, ee] = Ue(
|
|
1230
|
+
f,
|
|
1231
|
+
oe(Ve(c))
|
|
1232
|
+
);
|
|
1233
|
+
s = Ge(L.body, He, B, ee);
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
u.isString(p) || (p = p ? "include" : "omit");
|
|
1237
|
+
const C = "credentials" in Request.prototype;
|
|
1238
|
+
h = new Request(e, {
|
|
1239
|
+
...O,
|
|
1240
|
+
signal: b,
|
|
1241
|
+
method: r.toUpperCase(),
|
|
1242
|
+
headers: d.normalize().toJSON(),
|
|
1243
|
+
body: s,
|
|
1244
|
+
duplex: "half",
|
|
1245
|
+
credentials: C ? p : void 0
|
|
1246
|
+
});
|
|
1247
|
+
let _ = await fetch(h, O);
|
|
1248
|
+
const w = Re && (l === "stream" || l === "response");
|
|
1249
|
+
if (Re && (i || w && A)) {
|
|
1250
|
+
const L = {};
|
|
1251
|
+
["status", "statusText", "headers"].forEach((_e) => {
|
|
1252
|
+
L[_e] = _[_e];
|
|
1253
|
+
});
|
|
1254
|
+
const x = u.toFiniteNumber(_.headers.get("content-length")), [B, ee] = i && Ue(
|
|
1255
|
+
x,
|
|
1256
|
+
oe(Ve(i), !0)
|
|
1257
|
+
) || [];
|
|
1258
|
+
_ = new Response(
|
|
1259
|
+
Ge(_.body, He, B, () => {
|
|
1260
|
+
ee && ee(), A && A();
|
|
1261
|
+
}),
|
|
1262
|
+
L
|
|
1263
|
+
);
|
|
1264
|
+
}
|
|
1265
|
+
l = l || "text";
|
|
1266
|
+
let G = await ae[u.findKey(ae, l) || "text"](_, t);
|
|
1267
|
+
return !w && A && A(), await new Promise((L, x) => {
|
|
1268
|
+
nt(L, x, {
|
|
1269
|
+
data: G,
|
|
1270
|
+
headers: F.from(_.headers),
|
|
1271
|
+
status: _.status,
|
|
1272
|
+
statusText: _.statusText,
|
|
1273
|
+
config: t,
|
|
1274
|
+
request: h
|
|
1275
|
+
});
|
|
1276
|
+
});
|
|
1277
|
+
} catch (C) {
|
|
1278
|
+
throw A && A(), C && C.name === "TypeError" && /Load failed|fetch/i.test(C.message) ? Object.assign(
|
|
1279
|
+
new E("Network Error", E.ERR_NETWORK, t, h),
|
|
1280
|
+
{
|
|
1281
|
+
cause: C.cause || C
|
|
1282
|
+
}
|
|
1283
|
+
) : E.from(C, C && C.code, t, h);
|
|
1284
|
+
}
|
|
1285
|
+
}), Pe = {
|
|
1286
|
+
http: Yt,
|
|
1287
|
+
xhr: wr,
|
|
1288
|
+
fetch: Hr
|
|
1289
|
+
};
|
|
1290
|
+
u.forEach(Pe, (t, e) => {
|
|
1291
|
+
if (t) {
|
|
1292
|
+
try {
|
|
1293
|
+
Object.defineProperty(t, "name", { value: e });
|
|
1294
|
+
} catch {
|
|
1295
|
+
}
|
|
1296
|
+
Object.defineProperty(t, "adapterName", { value: e });
|
|
1297
|
+
}
|
|
1298
|
+
});
|
|
1299
|
+
const xe = (t) => `- ${t}`, xr = (t) => u.isFunction(t) || t === null || t === !1, lt = {
|
|
1300
|
+
getAdapter: (t) => {
|
|
1301
|
+
t = u.isArray(t) ? t : [t];
|
|
1302
|
+
const { length: e } = t;
|
|
1303
|
+
let r, s;
|
|
1304
|
+
const n = {};
|
|
1305
|
+
for (let o = 0; o < e; o++) {
|
|
1306
|
+
r = t[o];
|
|
1307
|
+
let a;
|
|
1308
|
+
if (s = r, !xr(r) && (s = Pe[(a = String(r)).toLowerCase()], s === void 0))
|
|
1309
|
+
throw new E(`Unknown adapter '${a}'`);
|
|
1310
|
+
if (s)
|
|
1311
|
+
break;
|
|
1312
|
+
n[a || "#" + o] = s;
|
|
1313
|
+
}
|
|
1314
|
+
if (!s) {
|
|
1315
|
+
const o = Object.entries(n).map(
|
|
1316
|
+
([i, c]) => `adapter ${i} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1317
|
+
);
|
|
1318
|
+
let a = e ? o.length > 1 ? `since :
|
|
1319
|
+
` + o.map(xe).join(`
|
|
1320
|
+
`) : " " + xe(o[0]) : "as no adapter specified";
|
|
1321
|
+
throw new E(
|
|
1322
|
+
"There is no suitable adapter to dispatch the request " + a,
|
|
1323
|
+
"ERR_NOT_SUPPORT"
|
|
1324
|
+
);
|
|
1325
|
+
}
|
|
1326
|
+
return s;
|
|
1327
|
+
},
|
|
1328
|
+
adapters: Pe
|
|
1329
|
+
};
|
|
1330
|
+
function Ee(t) {
|
|
1331
|
+
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
1332
|
+
throw new Q(null, t);
|
|
1333
|
+
}
|
|
1334
|
+
function Be(t) {
|
|
1335
|
+
return Ee(t), t.headers = F.from(t.headers), t.data = me.call(
|
|
1336
|
+
t,
|
|
1337
|
+
t.transformRequest
|
|
1338
|
+
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), lt.getAdapter(t.adapter || Z.adapter)(t).then(function(s) {
|
|
1339
|
+
return Ee(t), s.data = me.call(
|
|
1340
|
+
t,
|
|
1341
|
+
t.transformResponse,
|
|
1342
|
+
s
|
|
1343
|
+
), s.headers = F.from(s.headers), s;
|
|
1344
|
+
}, function(s) {
|
|
1345
|
+
return st(s) || (Ee(t), s && s.response && (s.response.data = me.call(
|
|
1346
|
+
t,
|
|
1347
|
+
t.transformResponse,
|
|
1348
|
+
s.response
|
|
1349
|
+
), s.response.headers = F.from(s.response.headers))), Promise.reject(s);
|
|
1350
|
+
});
|
|
1351
|
+
}
|
|
1352
|
+
const ut = "1.11.0", he = {};
|
|
1353
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
1354
|
+
he[t] = function(s) {
|
|
1355
|
+
return typeof s === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
1356
|
+
};
|
|
1357
|
+
});
|
|
1358
|
+
const Me = {};
|
|
1359
|
+
he.transitional = function(e, r, s) {
|
|
1360
|
+
function n(o, a) {
|
|
1361
|
+
return "[Axios v" + ut + "] Transitional option '" + o + "'" + a + (s ? ". " + s : "");
|
|
1362
|
+
}
|
|
1363
|
+
return (o, a, i) => {
|
|
1364
|
+
if (e === !1)
|
|
1365
|
+
throw new E(
|
|
1366
|
+
n(a, " has been removed" + (r ? " in " + r : "")),
|
|
1367
|
+
E.ERR_DEPRECATED
|
|
1368
|
+
);
|
|
1369
|
+
return r && !Me[a] && (Me[a] = !0, console.warn(
|
|
1370
|
+
n(
|
|
1371
|
+
a,
|
|
1372
|
+
" has been deprecated since v" + r + " and will be removed in the near future"
|
|
1373
|
+
)
|
|
1374
|
+
)), e ? e(o, a, i) : !0;
|
|
1375
|
+
};
|
|
1376
|
+
};
|
|
1377
|
+
he.spelling = function(e) {
|
|
1378
|
+
return (r, s) => (console.warn(`${s} is likely a misspelling of ${e}`), !0);
|
|
1379
|
+
};
|
|
1380
|
+
function Br(t, e, r) {
|
|
1381
|
+
if (typeof t != "object")
|
|
1382
|
+
throw new E("options must be an object", E.ERR_BAD_OPTION_VALUE);
|
|
1383
|
+
const s = Object.keys(t);
|
|
1384
|
+
let n = s.length;
|
|
1385
|
+
for (; n-- > 0; ) {
|
|
1386
|
+
const o = s[n], a = e[o];
|
|
1387
|
+
if (a) {
|
|
1388
|
+
const i = t[o], c = i === void 0 || a(i, o, t);
|
|
1389
|
+
if (c !== !0)
|
|
1390
|
+
throw new E("option " + o + " must be " + c, E.ERR_BAD_OPTION_VALUE);
|
|
1391
|
+
continue;
|
|
1392
|
+
}
|
|
1393
|
+
if (r !== !0)
|
|
1394
|
+
throw new E("Unknown option " + o, E.ERR_BAD_OPTION);
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
const ne = {
|
|
1398
|
+
assertOptions: Br,
|
|
1399
|
+
validators: he
|
|
1400
|
+
}, V = ne.validators;
|
|
1401
|
+
let k = class {
|
|
1402
|
+
constructor(e) {
|
|
1403
|
+
this.defaults = e || {}, this.interceptors = {
|
|
1404
|
+
request: new Ne(),
|
|
1405
|
+
response: new Ne()
|
|
1406
|
+
};
|
|
1407
|
+
}
|
|
1408
|
+
/**
|
|
1409
|
+
* Dispatch a request
|
|
1410
|
+
*
|
|
1411
|
+
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
|
1412
|
+
* @param {?Object} config
|
|
1413
|
+
*
|
|
1414
|
+
* @returns {Promise} The Promise to be fulfilled
|
|
1415
|
+
*/
|
|
1416
|
+
async request(e, r) {
|
|
1417
|
+
try {
|
|
1418
|
+
return await this._request(e, r);
|
|
1419
|
+
} catch (s) {
|
|
1420
|
+
if (s instanceof Error) {
|
|
1421
|
+
let n = {};
|
|
1422
|
+
Error.captureStackTrace ? Error.captureStackTrace(n) : n = new Error();
|
|
1423
|
+
const o = n.stack ? n.stack.replace(/^.+\n/, "") : "";
|
|
1424
|
+
try {
|
|
1425
|
+
s.stack ? o && !String(s.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (s.stack += `
|
|
1426
|
+
` + o) : s.stack = o;
|
|
1427
|
+
} catch {
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
throw s;
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
_request(e, r) {
|
|
1434
|
+
typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = v(this.defaults, r);
|
|
1435
|
+
const { transitional: s, paramsSerializer: n, headers: o } = r;
|
|
1436
|
+
s !== void 0 && ne.assertOptions(s, {
|
|
1437
|
+
silentJSONParsing: V.transitional(V.boolean),
|
|
1438
|
+
forcedJSONParsing: V.transitional(V.boolean),
|
|
1439
|
+
clarifyTimeoutError: V.transitional(V.boolean)
|
|
1440
|
+
}, !1), n != null && (u.isFunction(n) ? r.paramsSerializer = {
|
|
1441
|
+
serialize: n
|
|
1442
|
+
} : ne.assertOptions(n, {
|
|
1443
|
+
encode: V.function,
|
|
1444
|
+
serialize: V.function
|
|
1445
|
+
}, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), ne.assertOptions(r, {
|
|
1446
|
+
baseUrl: V.spelling("baseURL"),
|
|
1447
|
+
withXsrfToken: V.spelling("withXSRFToken")
|
|
1448
|
+
}, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
|
|
1449
|
+
let a = o && u.merge(
|
|
1450
|
+
o.common,
|
|
1451
|
+
o[r.method]
|
|
1452
|
+
);
|
|
1453
|
+
o && u.forEach(
|
|
1454
|
+
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1455
|
+
(h) => {
|
|
1456
|
+
delete o[h];
|
|
1457
|
+
}
|
|
1458
|
+
), r.headers = F.concat(a, o);
|
|
1459
|
+
const i = [];
|
|
1460
|
+
let c = !0;
|
|
1461
|
+
this.interceptors.request.forEach(function(A) {
|
|
1462
|
+
typeof A.runWhen == "function" && A.runWhen(r) === !1 || (c = c && A.synchronous, i.unshift(A.fulfilled, A.rejected));
|
|
1463
|
+
});
|
|
1464
|
+
const l = [];
|
|
1465
|
+
this.interceptors.response.forEach(function(A) {
|
|
1466
|
+
l.push(A.fulfilled, A.rejected);
|
|
1467
|
+
});
|
|
1468
|
+
let d, p = 0, O;
|
|
1469
|
+
if (!c) {
|
|
1470
|
+
const h = [Be.bind(this), void 0];
|
|
1471
|
+
for (h.unshift(...i), h.push(...l), O = h.length, d = Promise.resolve(r); p < O; )
|
|
1472
|
+
d = d.then(h[p++], h[p++]);
|
|
1473
|
+
return d;
|
|
1474
|
+
}
|
|
1475
|
+
O = i.length;
|
|
1476
|
+
let b = r;
|
|
1477
|
+
for (p = 0; p < O; ) {
|
|
1478
|
+
const h = i[p++], A = i[p++];
|
|
1479
|
+
try {
|
|
1480
|
+
b = h(b);
|
|
1481
|
+
} catch (f) {
|
|
1482
|
+
A.call(this, f);
|
|
1483
|
+
break;
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
try {
|
|
1487
|
+
d = Be.call(this, b);
|
|
1488
|
+
} catch (h) {
|
|
1489
|
+
return Promise.reject(h);
|
|
1490
|
+
}
|
|
1491
|
+
for (p = 0, O = l.length; p < O; )
|
|
1492
|
+
d = d.then(l[p++], l[p++]);
|
|
1493
|
+
return d;
|
|
1494
|
+
}
|
|
1495
|
+
getUri(e) {
|
|
1496
|
+
e = v(this.defaults, e);
|
|
1497
|
+
const r = ot(e.baseURL, e.url, e.allowAbsoluteUrls);
|
|
1498
|
+
return et(r, e.params, e.paramsSerializer);
|
|
1499
|
+
}
|
|
1500
|
+
};
|
|
1501
|
+
u.forEach(["delete", "get", "head", "options"], function(e) {
|
|
1502
|
+
k.prototype[e] = function(r, s) {
|
|
1503
|
+
return this.request(v(s || {}, {
|
|
1504
|
+
method: e,
|
|
1505
|
+
url: r,
|
|
1506
|
+
data: (s || {}).data
|
|
1507
|
+
}));
|
|
1508
|
+
};
|
|
1509
|
+
});
|
|
1510
|
+
u.forEach(["post", "put", "patch"], function(e) {
|
|
1511
|
+
function r(s) {
|
|
1512
|
+
return function(o, a, i) {
|
|
1513
|
+
return this.request(v(i || {}, {
|
|
1514
|
+
method: e,
|
|
1515
|
+
headers: s ? {
|
|
1516
|
+
"Content-Type": "multipart/form-data"
|
|
1517
|
+
} : {},
|
|
1518
|
+
url: o,
|
|
1519
|
+
data: a
|
|
1520
|
+
}));
|
|
1521
|
+
};
|
|
1522
|
+
}
|
|
1523
|
+
k.prototype[e] = r(), k.prototype[e + "Form"] = r(!0);
|
|
1524
|
+
});
|
|
1525
|
+
let Mr = class dt {
|
|
1526
|
+
constructor(e) {
|
|
1527
|
+
if (typeof e != "function")
|
|
1528
|
+
throw new TypeError("executor must be a function.");
|
|
1529
|
+
let r;
|
|
1530
|
+
this.promise = new Promise(function(o) {
|
|
1531
|
+
r = o;
|
|
1532
|
+
});
|
|
1533
|
+
const s = this;
|
|
1534
|
+
this.promise.then((n) => {
|
|
1535
|
+
if (!s._listeners) return;
|
|
1536
|
+
let o = s._listeners.length;
|
|
1537
|
+
for (; o-- > 0; )
|
|
1538
|
+
s._listeners[o](n);
|
|
1539
|
+
s._listeners = null;
|
|
1540
|
+
}), this.promise.then = (n) => {
|
|
1541
|
+
let o;
|
|
1542
|
+
const a = new Promise((i) => {
|
|
1543
|
+
s.subscribe(i), o = i;
|
|
1544
|
+
}).then(n);
|
|
1545
|
+
return a.cancel = function() {
|
|
1546
|
+
s.unsubscribe(o);
|
|
1547
|
+
}, a;
|
|
1548
|
+
}, e(function(o, a, i) {
|
|
1549
|
+
s.reason || (s.reason = new Q(o, a, i), r(s.reason));
|
|
1550
|
+
});
|
|
1551
|
+
}
|
|
1552
|
+
/**
|
|
1553
|
+
* Throws a `CanceledError` if cancellation has been requested.
|
|
1554
|
+
*/
|
|
1555
|
+
throwIfRequested() {
|
|
1556
|
+
if (this.reason)
|
|
1557
|
+
throw this.reason;
|
|
1558
|
+
}
|
|
1559
|
+
/**
|
|
1560
|
+
* Subscribe to the cancel signal
|
|
1561
|
+
*/
|
|
1562
|
+
subscribe(e) {
|
|
1563
|
+
if (this.reason) {
|
|
1564
|
+
e(this.reason);
|
|
1565
|
+
return;
|
|
1566
|
+
}
|
|
1567
|
+
this._listeners ? this._listeners.push(e) : this._listeners = [e];
|
|
1568
|
+
}
|
|
1569
|
+
/**
|
|
1570
|
+
* Unsubscribe from the cancel signal
|
|
1571
|
+
*/
|
|
1572
|
+
unsubscribe(e) {
|
|
1573
|
+
if (!this._listeners)
|
|
1574
|
+
return;
|
|
1575
|
+
const r = this._listeners.indexOf(e);
|
|
1576
|
+
r !== -1 && this._listeners.splice(r, 1);
|
|
1577
|
+
}
|
|
1578
|
+
toAbortSignal() {
|
|
1579
|
+
const e = new AbortController(), r = (s) => {
|
|
1580
|
+
e.abort(s);
|
|
1581
|
+
};
|
|
1582
|
+
return this.subscribe(r), e.signal.unsubscribe = () => this.unsubscribe(r), e.signal;
|
|
1583
|
+
}
|
|
1584
|
+
/**
|
|
1585
|
+
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
1586
|
+
* cancels the `CancelToken`.
|
|
1587
|
+
*/
|
|
1588
|
+
static source() {
|
|
1589
|
+
let e;
|
|
1590
|
+
return {
|
|
1591
|
+
token: new dt(function(n) {
|
|
1592
|
+
e = n;
|
|
1593
|
+
}),
|
|
1594
|
+
cancel: e
|
|
1595
|
+
};
|
|
1596
|
+
}
|
|
1597
|
+
};
|
|
1598
|
+
function jr(t) {
|
|
1599
|
+
return function(r) {
|
|
1600
|
+
return t.apply(null, r);
|
|
1601
|
+
};
|
|
1602
|
+
}
|
|
1603
|
+
function kr(t) {
|
|
1604
|
+
return u.isObject(t) && t.isAxiosError === !0;
|
|
1605
|
+
}
|
|
1606
|
+
const ge = {
|
|
1607
|
+
Continue: 100,
|
|
1608
|
+
SwitchingProtocols: 101,
|
|
1609
|
+
Processing: 102,
|
|
1610
|
+
EarlyHints: 103,
|
|
1611
|
+
Ok: 200,
|
|
1612
|
+
Created: 201,
|
|
1613
|
+
Accepted: 202,
|
|
1614
|
+
NonAuthoritativeInformation: 203,
|
|
1615
|
+
NoContent: 204,
|
|
1616
|
+
ResetContent: 205,
|
|
1617
|
+
PartialContent: 206,
|
|
1618
|
+
MultiStatus: 207,
|
|
1619
|
+
AlreadyReported: 208,
|
|
1620
|
+
ImUsed: 226,
|
|
1621
|
+
MultipleChoices: 300,
|
|
1622
|
+
MovedPermanently: 301,
|
|
1623
|
+
Found: 302,
|
|
1624
|
+
SeeOther: 303,
|
|
1625
|
+
NotModified: 304,
|
|
1626
|
+
UseProxy: 305,
|
|
1627
|
+
Unused: 306,
|
|
1628
|
+
TemporaryRedirect: 307,
|
|
1629
|
+
PermanentRedirect: 308,
|
|
1630
|
+
BadRequest: 400,
|
|
1631
|
+
Unauthorized: 401,
|
|
1632
|
+
PaymentRequired: 402,
|
|
1633
|
+
Forbidden: 403,
|
|
1634
|
+
NotFound: 404,
|
|
1635
|
+
MethodNotAllowed: 405,
|
|
1636
|
+
NotAcceptable: 406,
|
|
1637
|
+
ProxyAuthenticationRequired: 407,
|
|
1638
|
+
RequestTimeout: 408,
|
|
1639
|
+
Conflict: 409,
|
|
1640
|
+
Gone: 410,
|
|
1641
|
+
LengthRequired: 411,
|
|
1642
|
+
PreconditionFailed: 412,
|
|
1643
|
+
PayloadTooLarge: 413,
|
|
1644
|
+
UriTooLong: 414,
|
|
1645
|
+
UnsupportedMediaType: 415,
|
|
1646
|
+
RangeNotSatisfiable: 416,
|
|
1647
|
+
ExpectationFailed: 417,
|
|
1648
|
+
ImATeapot: 418,
|
|
1649
|
+
MisdirectedRequest: 421,
|
|
1650
|
+
UnprocessableEntity: 422,
|
|
1651
|
+
Locked: 423,
|
|
1652
|
+
FailedDependency: 424,
|
|
1653
|
+
TooEarly: 425,
|
|
1654
|
+
UpgradeRequired: 426,
|
|
1655
|
+
PreconditionRequired: 428,
|
|
1656
|
+
TooManyRequests: 429,
|
|
1657
|
+
RequestHeaderFieldsTooLarge: 431,
|
|
1658
|
+
UnavailableForLegalReasons: 451,
|
|
1659
|
+
InternalServerError: 500,
|
|
1660
|
+
NotImplemented: 501,
|
|
1661
|
+
BadGateway: 502,
|
|
1662
|
+
ServiceUnavailable: 503,
|
|
1663
|
+
GatewayTimeout: 504,
|
|
1664
|
+
HttpVersionNotSupported: 505,
|
|
1665
|
+
VariantAlsoNegotiates: 506,
|
|
1666
|
+
InsufficientStorage: 507,
|
|
1667
|
+
LoopDetected: 508,
|
|
1668
|
+
NotExtended: 510,
|
|
1669
|
+
NetworkAuthenticationRequired: 511
|
|
1670
|
+
};
|
|
1671
|
+
Object.entries(ge).forEach(([t, e]) => {
|
|
1672
|
+
ge[e] = t;
|
|
1673
|
+
});
|
|
1674
|
+
function pt(t) {
|
|
1675
|
+
const e = new k(t), r = ke(k.prototype.request, e);
|
|
1676
|
+
return u.extend(r, k.prototype, e, { allOwnKeys: !0 }), u.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(n) {
|
|
1677
|
+
return pt(v(t, n));
|
|
1678
|
+
}, r;
|
|
1679
|
+
}
|
|
1680
|
+
const m = pt(Z);
|
|
1681
|
+
m.Axios = k;
|
|
1682
|
+
m.CanceledError = Q;
|
|
1683
|
+
m.CancelToken = Mr;
|
|
1684
|
+
m.isCancel = st;
|
|
1685
|
+
m.VERSION = ut;
|
|
1686
|
+
m.toFormData = de;
|
|
1687
|
+
m.AxiosError = E;
|
|
1688
|
+
m.Cancel = m.CanceledError;
|
|
1689
|
+
m.all = function(e) {
|
|
1690
|
+
return Promise.all(e);
|
|
1691
|
+
};
|
|
1692
|
+
m.spread = jr;
|
|
1693
|
+
m.isAxiosError = kr;
|
|
1694
|
+
m.mergeConfig = v;
|
|
1695
|
+
m.AxiosHeaders = F;
|
|
1696
|
+
m.formToJSON = (t) => rt(u.isHTMLForm(t) ? new FormData(t) : t);
|
|
1697
|
+
m.getAdapter = lt.getAdapter;
|
|
1698
|
+
m.HttpStatusCode = ge;
|
|
1699
|
+
m.default = m;
|
|
1700
|
+
const {
|
|
1701
|
+
Axios: As,
|
|
1702
|
+
AxiosError: Os,
|
|
1703
|
+
CanceledError: ys,
|
|
1704
|
+
isCancel: Ss,
|
|
1705
|
+
CancelToken: Rs,
|
|
1706
|
+
VERSION: Ps,
|
|
1707
|
+
all: gs,
|
|
1708
|
+
Cancel: Ts,
|
|
1709
|
+
isAxiosError: Cs,
|
|
1710
|
+
spread: bs,
|
|
1711
|
+
toFormData: _s,
|
|
1712
|
+
AxiosHeaders: ws,
|
|
1713
|
+
HttpStatusCode: Is,
|
|
1714
|
+
formToJSON: Ls,
|
|
1715
|
+
getAdapter: Ns,
|
|
1716
|
+
mergeConfig: Fs
|
|
1717
|
+
} = m, S = "http://localhost:41101".replace(/\/+$/, "");
|
|
1718
|
+
class z {
|
|
1719
|
+
constructor(e, r = S, s = m) {
|
|
1720
|
+
this.basePath = r, this.axios = s, e && (this.configuration = e, this.basePath = e.basePath || this.basePath);
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
class vr extends Error {
|
|
1724
|
+
constructor(e, r) {
|
|
1725
|
+
super(r), this.field = e, this.name = "RequiredError";
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
const R = "https://example.com", y = function(t, e, r) {
|
|
1729
|
+
if (r == null)
|
|
1730
|
+
throw new vr(e, `Required parameter ${e} was null or undefined when calling ${t}.`);
|
|
1731
|
+
}, P = function(t, ...e) {
|
|
1732
|
+
const r = new URLSearchParams(t.search);
|
|
1733
|
+
for (const s of e)
|
|
1734
|
+
for (const n in s)
|
|
1735
|
+
if (Array.isArray(s[n])) {
|
|
1736
|
+
r.delete(n);
|
|
1737
|
+
for (const o of s[n])
|
|
1738
|
+
r.append(n, o);
|
|
1739
|
+
} else
|
|
1740
|
+
r.set(n, s[n]);
|
|
1741
|
+
t.search = r.toString();
|
|
1742
|
+
}, D = function(t, e, r) {
|
|
1743
|
+
const s = typeof t != "string";
|
|
1744
|
+
return (s && r && r.isJsonMime ? r.isJsonMime(e.headers["Content-Type"]) : s) ? JSON.stringify(t !== void 0 ? t : {}) : t || "";
|
|
1745
|
+
}, g = function(t) {
|
|
1746
|
+
return t.pathname + t.search + t.hash;
|
|
1747
|
+
}, T = function(t, e, r, s) {
|
|
1748
|
+
return (n = e, o = r) => {
|
|
1749
|
+
const a = { ...t.options, url: ((s == null ? void 0 : s.basePath) || o) + t.url };
|
|
1750
|
+
return n.request(a);
|
|
1751
|
+
};
|
|
1752
|
+
}, zr = function(t) {
|
|
1753
|
+
return {
|
|
1754
|
+
/**
|
|
1755
|
+
* Use the POST `api/detect` endpoint to analyze images, recognize faces in them, and return cropped and aligned portraits of the detected people. The Face Detection feature lets you: - **Check face image quality**: Assess whether a portrait meets certain standards, for example, ICAO, Schengen visa, USA visa. To perform image quality check, use the `processParam.quality` field. - **Evaluate face attributes**: Estimate the age range of a person; check whether the eyes are occluded, closed, or open; detect a facial expression or smile; see if there are glasses, sunglasses, head coverage, medical mask, etc. To evaluate attributes, add the `processParam.attributes` field. You can perform Face Detection in two ways: - By adding parameters manually. In this case, the configuration is not saved and can not be automatically repeated. - By a processing `scenario` that includes certain parameters. You can use predefined scenarios or add custom ones.
|
|
1756
|
+
* @summary detect and check quality
|
|
1757
|
+
* @param {DetectRequest} detectRequest
|
|
1758
|
+
* @param {string} [xRequestID] Request header label.
|
|
1759
|
+
* @param {*} [options] Override http request option.
|
|
1760
|
+
* @throws {RequiredError}
|
|
1761
|
+
*/
|
|
1762
|
+
detect: async (e, r, s = {}) => {
|
|
1763
|
+
y("detect", "detectRequest", e);
|
|
1764
|
+
const n = "/api/detect", o = new URL(n, R);
|
|
1765
|
+
let a;
|
|
1766
|
+
t && (a = t.baseOptions);
|
|
1767
|
+
const i = { method: "POST", ...a, ...s }, c = {}, l = {};
|
|
1768
|
+
r != null && (c["X-RequestID"] = String(r)), c["Content-Type"] = "application/json", P(o, l);
|
|
1769
|
+
let d = a && a.headers ? a.headers : {};
|
|
1770
|
+
return i.headers = { ...c, ...d, ...s.headers }, i.data = D(e, i, t), {
|
|
1771
|
+
url: g(o),
|
|
1772
|
+
options: i
|
|
1773
|
+
};
|
|
1774
|
+
},
|
|
1775
|
+
/**
|
|
1776
|
+
* To perform a comparison of faces in the same image or in two different images, use POST `/api/match`. It\'s possible to compare faces in the same image or in two different images, this is defined by the `images.type` parameter. <br><br> The face detection result is displayed in the `detections` field. Each face is identified by two parameters: `faceIndex` (the index number of the face) and `imageIndex` (the index number of the image on which the face is detected). So, if there are two images each of which has two faces in them, the parameters will be the following: - First face in the first image: `faceIndex: 0`, `imageIndex: 0` - Second face in the first image: `faceIndex: 1`, `imageIndex: 0` - First face of the second image: `faceIndex: 0`, `imageIndex: 1` - Second face in the second image: `faceIndex: 1`, `imageIndex: 1`
|
|
1777
|
+
* @summary compare faces (1:1)
|
|
1778
|
+
* @param {MatchRequest} matchRequest
|
|
1779
|
+
* @param {string} [xRequestID] Request header label.
|
|
1780
|
+
* @param {*} [options] Override http request option.
|
|
1781
|
+
* @throws {RequiredError}
|
|
1782
|
+
*/
|
|
1783
|
+
match: async (e, r, s = {}) => {
|
|
1784
|
+
y("match", "matchRequest", e);
|
|
1785
|
+
const n = "/api/match", o = new URL(n, R);
|
|
1786
|
+
let a;
|
|
1787
|
+
t && (a = t.baseOptions);
|
|
1788
|
+
const i = { method: "POST", ...a, ...s }, c = {}, l = {};
|
|
1789
|
+
r != null && (c["X-RequestID"] = String(r)), c["Content-Type"] = "application/json", P(o, l);
|
|
1790
|
+
let d = a && a.headers ? a.headers : {};
|
|
1791
|
+
return i.headers = { ...c, ...d, ...s.headers }, i.data = D(e, i, t), {
|
|
1792
|
+
url: g(o),
|
|
1793
|
+
options: i
|
|
1794
|
+
};
|
|
1795
|
+
},
|
|
1796
|
+
/**
|
|
1797
|
+
* To compare several images from a document and look up a person in the database in one request, use POST `/api/match_and_search`. In this case, the calculation of the descriptor will be performed only once, as opposed to using two requests for the same operation. If only one person is identified, match is not performed and only search is carried out.
|
|
1798
|
+
* @summary match and search (1:1 + 1:N)
|
|
1799
|
+
* @param {MatchAndSearchRequest} matchAndSearchRequest
|
|
1800
|
+
* @param {string} [xRequestID] Request header label.
|
|
1801
|
+
* @param {*} [options] Override http request option.
|
|
1802
|
+
* @throws {RequiredError}
|
|
1803
|
+
*/
|
|
1804
|
+
matchAndSearch: async (e, r, s = {}) => {
|
|
1805
|
+
y("matchAndSearch", "matchAndSearchRequest", e);
|
|
1806
|
+
const n = "/api/match_and_search", o = new URL(n, R);
|
|
1807
|
+
let a;
|
|
1808
|
+
t && (a = t.baseOptions);
|
|
1809
|
+
const i = { method: "POST", ...a, ...s }, c = {}, l = {};
|
|
1810
|
+
r != null && (c["X-RequestID"] = String(r)), c["Content-Type"] = "application/json", P(o, l);
|
|
1811
|
+
let d = a && a.headers ? a.headers : {};
|
|
1812
|
+
return i.headers = { ...c, ...d, ...s.headers }, i.data = D(e, i, t), {
|
|
1813
|
+
url: g(o),
|
|
1814
|
+
options: i
|
|
1815
|
+
};
|
|
1816
|
+
}
|
|
1817
|
+
};
|
|
1818
|
+
}, Ae = function(t) {
|
|
1819
|
+
const e = zr(t);
|
|
1820
|
+
return {
|
|
1821
|
+
/**
|
|
1822
|
+
* Use the POST `api/detect` endpoint to analyze images, recognize faces in them, and return cropped and aligned portraits of the detected people. The Face Detection feature lets you: - **Check face image quality**: Assess whether a portrait meets certain standards, for example, ICAO, Schengen visa, USA visa. To perform image quality check, use the `processParam.quality` field. - **Evaluate face attributes**: Estimate the age range of a person; check whether the eyes are occluded, closed, or open; detect a facial expression or smile; see if there are glasses, sunglasses, head coverage, medical mask, etc. To evaluate attributes, add the `processParam.attributes` field. You can perform Face Detection in two ways: - By adding parameters manually. In this case, the configuration is not saved and can not be automatically repeated. - By a processing `scenario` that includes certain parameters. You can use predefined scenarios or add custom ones.
|
|
1823
|
+
* @summary detect and check quality
|
|
1824
|
+
* @param {DetectRequest} detectRequest
|
|
1825
|
+
* @param {string} [xRequestID] Request header label.
|
|
1826
|
+
* @param {*} [options] Override http request option.
|
|
1827
|
+
* @throws {RequiredError}
|
|
1828
|
+
*/
|
|
1829
|
+
async detect(r, s, n) {
|
|
1830
|
+
const o = await e.detect(r, s, n);
|
|
1831
|
+
return T(o, m, S, t);
|
|
1832
|
+
},
|
|
1833
|
+
/**
|
|
1834
|
+
* To perform a comparison of faces in the same image or in two different images, use POST `/api/match`. It\'s possible to compare faces in the same image or in two different images, this is defined by the `images.type` parameter. <br><br> The face detection result is displayed in the `detections` field. Each face is identified by two parameters: `faceIndex` (the index number of the face) and `imageIndex` (the index number of the image on which the face is detected). So, if there are two images each of which has two faces in them, the parameters will be the following: - First face in the first image: `faceIndex: 0`, `imageIndex: 0` - Second face in the first image: `faceIndex: 1`, `imageIndex: 0` - First face of the second image: `faceIndex: 0`, `imageIndex: 1` - Second face in the second image: `faceIndex: 1`, `imageIndex: 1`
|
|
1835
|
+
* @summary compare faces (1:1)
|
|
1836
|
+
* @param {MatchRequest} matchRequest
|
|
1837
|
+
* @param {string} [xRequestID] Request header label.
|
|
1838
|
+
* @param {*} [options] Override http request option.
|
|
1839
|
+
* @throws {RequiredError}
|
|
1840
|
+
*/
|
|
1841
|
+
async match(r, s, n) {
|
|
1842
|
+
const o = await e.match(r, s, n);
|
|
1843
|
+
return T(o, m, S, t);
|
|
1844
|
+
},
|
|
1845
|
+
/**
|
|
1846
|
+
* To compare several images from a document and look up a person in the database in one request, use POST `/api/match_and_search`. In this case, the calculation of the descriptor will be performed only once, as opposed to using two requests for the same operation. If only one person is identified, match is not performed and only search is carried out.
|
|
1847
|
+
* @summary match and search (1:1 + 1:N)
|
|
1848
|
+
* @param {MatchAndSearchRequest} matchAndSearchRequest
|
|
1849
|
+
* @param {string} [xRequestID] Request header label.
|
|
1850
|
+
* @param {*} [options] Override http request option.
|
|
1851
|
+
* @throws {RequiredError}
|
|
1852
|
+
*/
|
|
1853
|
+
async matchAndSearch(r, s, n) {
|
|
1854
|
+
const o = await e.matchAndSearch(r, s, n);
|
|
1855
|
+
return T(o, m, S, t);
|
|
1856
|
+
}
|
|
1857
|
+
};
|
|
1858
|
+
};
|
|
1859
|
+
let $r = class extends z {
|
|
1860
|
+
/**
|
|
1861
|
+
* Use the POST `api/detect` endpoint to analyze images, recognize faces in them, and return cropped and aligned portraits of the detected people. The Face Detection feature lets you: - **Check face image quality**: Assess whether a portrait meets certain standards, for example, ICAO, Schengen visa, USA visa. To perform image quality check, use the `processParam.quality` field. - **Evaluate face attributes**: Estimate the age range of a person; check whether the eyes are occluded, closed, or open; detect a facial expression or smile; see if there are glasses, sunglasses, head coverage, medical mask, etc. To evaluate attributes, add the `processParam.attributes` field. You can perform Face Detection in two ways: - By adding parameters manually. In this case, the configuration is not saved and can not be automatically repeated. - By a processing `scenario` that includes certain parameters. You can use predefined scenarios or add custom ones.
|
|
1862
|
+
* @summary detect and check quality
|
|
1863
|
+
* @param {DetectRequest} detectRequest
|
|
1864
|
+
* @param {string} [xRequestID] Request header label.
|
|
1865
|
+
* @param {*} [options] Override http request option.
|
|
1866
|
+
* @throws {RequiredError}
|
|
1867
|
+
* @memberof MatchApi
|
|
1868
|
+
*/
|
|
1869
|
+
detect(e, r, s) {
|
|
1870
|
+
return Ae(this.configuration).detect(e, r, s).then((n) => n(this.axios, this.basePath));
|
|
1871
|
+
}
|
|
1872
|
+
/**
|
|
1873
|
+
* To perform a comparison of faces in the same image or in two different images, use POST `/api/match`. It\'s possible to compare faces in the same image or in two different images, this is defined by the `images.type` parameter. <br><br> The face detection result is displayed in the `detections` field. Each face is identified by two parameters: `faceIndex` (the index number of the face) and `imageIndex` (the index number of the image on which the face is detected). So, if there are two images each of which has two faces in them, the parameters will be the following: - First face in the first image: `faceIndex: 0`, `imageIndex: 0` - Second face in the first image: `faceIndex: 1`, `imageIndex: 0` - First face of the second image: `faceIndex: 0`, `imageIndex: 1` - Second face in the second image: `faceIndex: 1`, `imageIndex: 1`
|
|
1874
|
+
* @summary compare faces (1:1)
|
|
1875
|
+
* @param {MatchRequest} matchRequest
|
|
1876
|
+
* @param {string} [xRequestID] Request header label.
|
|
1877
|
+
* @param {*} [options] Override http request option.
|
|
1878
|
+
* @throws {RequiredError}
|
|
1879
|
+
* @memberof MatchApi
|
|
1880
|
+
*/
|
|
1881
|
+
match(e, r, s) {
|
|
1882
|
+
return Ae(this.configuration).match(e, r, s).then((n) => n(this.axios, this.basePath));
|
|
1883
|
+
}
|
|
1884
|
+
/**
|
|
1885
|
+
* To compare several images from a document and look up a person in the database in one request, use POST `/api/match_and_search`. In this case, the calculation of the descriptor will be performed only once, as opposed to using two requests for the same operation. If only one person is identified, match is not performed and only search is carried out.
|
|
1886
|
+
* @summary match and search (1:1 + 1:N)
|
|
1887
|
+
* @param {MatchAndSearchRequest} matchAndSearchRequest
|
|
1888
|
+
* @param {string} [xRequestID] Request header label.
|
|
1889
|
+
* @param {*} [options] Override http request option.
|
|
1890
|
+
* @throws {RequiredError}
|
|
1891
|
+
* @memberof MatchApi
|
|
1892
|
+
*/
|
|
1893
|
+
matchAndSearch(e, r, s) {
|
|
1894
|
+
return Ae(this.configuration).matchAndSearch(e, r, s).then((n) => n(this.axios, this.basePath));
|
|
1895
|
+
}
|
|
1896
|
+
};
|
|
1897
|
+
const Vs = {
|
|
1898
|
+
AGE: "Age",
|
|
1899
|
+
EMOTION: "Emotion",
|
|
1900
|
+
EYE_LEFT: "EyeLeft",
|
|
1901
|
+
EYE_RIGHT: "EyeRight",
|
|
1902
|
+
SMILE: "Smile",
|
|
1903
|
+
GLASSES: "Glasses",
|
|
1904
|
+
HEAD_COVERING: "HeadCovering",
|
|
1905
|
+
FOREHEAD_COVERING: "ForeheadCovering",
|
|
1906
|
+
MOUTH: "Mouth",
|
|
1907
|
+
MEDICAL_MASK: "MedicalMask",
|
|
1908
|
+
OCCLUSION: "Occlusion",
|
|
1909
|
+
STRONG_MAKEUP: "StrongMakeup",
|
|
1910
|
+
HEADPHONES: "Headphones"
|
|
1911
|
+
}, Ds = {
|
|
1912
|
+
ALIGN_3x4: 0,
|
|
1913
|
+
ALIGN_4x5: 1,
|
|
1914
|
+
ALIGN_2x3: 2,
|
|
1915
|
+
ALIGN_1x1: 3,
|
|
1916
|
+
ALIGN_7x9: 4
|
|
1917
|
+
}, Gs = {
|
|
1918
|
+
IMAGE_CHARACTERISTICS: 1,
|
|
1919
|
+
HEAD_SIZE_AND_POSITIONS: 2,
|
|
1920
|
+
FACE_QUALITY: 3,
|
|
1921
|
+
EYES_CHARACTERISTICS: 4,
|
|
1922
|
+
SHADOWS_AND_LIGHTNING: 5,
|
|
1923
|
+
POSE_AND_EXPRESSION: 6,
|
|
1924
|
+
HEAD_OCCLUSION: 7,
|
|
1925
|
+
BACKGROUND: 8
|
|
1926
|
+
}, Hs = {
|
|
1927
|
+
IMAGE_CHARACTERISTICS: "ImageCharacteristics",
|
|
1928
|
+
HEAD_SIZE_AND_POSITIONS: "HeadSizeAndPosition",
|
|
1929
|
+
FACE_QUALITY: "FaceQuality",
|
|
1930
|
+
EYES_CHARACTERISTICS: "EyesCharacteristics",
|
|
1931
|
+
SHADOWS_AND_LIGHTNING: "ShadowsAndLightning",
|
|
1932
|
+
POSE_AND_EXPRESSION: "PoseAndExpression",
|
|
1933
|
+
HEAD_OCCLUSION: "HeadOcclusion",
|
|
1934
|
+
BACKGROUND: "Background"
|
|
1935
|
+
}, xs = {
|
|
1936
|
+
QUALITY_STATUS_FALSE: 0,
|
|
1937
|
+
QUALITY_STATUS_TRUE: 1,
|
|
1938
|
+
QUALITY_STATUS_UNDETERMINED: 2
|
|
1939
|
+
}, Bs = {
|
|
1940
|
+
IMAGE_WIDTH: "ImageWidth",
|
|
1941
|
+
IMAGE_HEIGHT: "ImageHeight",
|
|
1942
|
+
IMAGE_WIDTH_TO_HEIGHT: "ImageWidthToHeight",
|
|
1943
|
+
IMAGE_CHANNELS_NUMBER: "ImageChannelsNumber",
|
|
1944
|
+
PADDING_RATIO: "PaddingRatio",
|
|
1945
|
+
FACE_MID_POINT_HORIZONTAL_POSITION: "FaceMidPointHorizontalPosition",
|
|
1946
|
+
FACE_MID_POINT_VERTICAL_POSITION: "FaceMidPointVerticalPosition",
|
|
1947
|
+
HEAD_WIDTH_RATIO: "HeadWidthRatio",
|
|
1948
|
+
HEAD_HEIGHT_RATIO: "HeadHeightRatio",
|
|
1949
|
+
EYES_DISTANCE: "EyesDistance",
|
|
1950
|
+
YAW: "Yaw",
|
|
1951
|
+
PITCH: "Pitch",
|
|
1952
|
+
ROLL: "Roll",
|
|
1953
|
+
BLUR_LEVEL: "BlurLevel",
|
|
1954
|
+
NOISE_LEVEL: "NoiseLevel",
|
|
1955
|
+
EYE_RIGHT_CLOSED: "EyeRightClosed",
|
|
1956
|
+
EYE_LEFT_CLOSED: "EyeLeftClosed",
|
|
1957
|
+
EYE_RIGHT_OCCLUDED: "EyeRightOccluded",
|
|
1958
|
+
EYE_LEFT_OCCLUDED: "EyeLeftOccluded",
|
|
1959
|
+
EYES_RED: "EyesRed",
|
|
1960
|
+
EYE_RIGHT_COVERED_WITH_HAIR: "EyeRightCoveredWithHair",
|
|
1961
|
+
EYE_LEFT_COVERED_WITH_HAIR: "EyeLeftCoveredWithHair",
|
|
1962
|
+
OFF_GAZE: "OffGaze",
|
|
1963
|
+
FACE_DYNAMIC_RANGE: "FaceDynamicRange",
|
|
1964
|
+
UNNATURAL_SKIN_TONE: "UnnaturalSkinTone",
|
|
1965
|
+
TOO_DARK: "TooDark",
|
|
1966
|
+
TOO_LIGHT: "TooLight",
|
|
1967
|
+
FACE_GLARE: "FaceGlare",
|
|
1968
|
+
SHADOWS_ON_FACE: "ShadowsOnFace",
|
|
1969
|
+
DARK_GLASSES: "DarkGlasses",
|
|
1970
|
+
REFLECTION_ON_GLASSES: "ReflectionOnGlasses",
|
|
1971
|
+
FRAMES_TOO_HEAVY: "FramesTooHeavy",
|
|
1972
|
+
FACE_OCCLUDED: "FaceOccluded",
|
|
1973
|
+
HEAD_COVERING: "HeadCovering",
|
|
1974
|
+
BACKGROUND_UNIFORMITY: "BackgroundUniformity",
|
|
1975
|
+
SHADOWS_ON_BACKGROUND: "ShadowsOnBackground",
|
|
1976
|
+
OTHER_FACES: "OtherFaces",
|
|
1977
|
+
SHOULDERS_POSE: "ShouldersPose",
|
|
1978
|
+
EXPRESSION_LEVEL: "ExpressionLevel",
|
|
1979
|
+
MOUTH_OPEN: "MouthOpen",
|
|
1980
|
+
FOREHEAD_COVERING: "ForeheadCovering",
|
|
1981
|
+
SMILE: "Smile",
|
|
1982
|
+
STRONG_MAKEUP: "StrongMakeup",
|
|
1983
|
+
HEADPHONES: "Headphones",
|
|
1984
|
+
MEDICAL_MASK: "MedicalMask",
|
|
1985
|
+
BACKGROUND_COLOR_MATCH: "BackgroundColorMatch",
|
|
1986
|
+
ART_FACE: "ArtFace",
|
|
1987
|
+
CONTACT_LENSES: "ContactLenses"
|
|
1988
|
+
}, Ms = {
|
|
1989
|
+
OLD_MODE: "OldMode",
|
|
1990
|
+
QUALITY_FULL: "QualityFull",
|
|
1991
|
+
QUALITY_ICAO: "QualityICAO",
|
|
1992
|
+
QUALITY_VISA_SCHENGEN: "QualityVisaSchengen",
|
|
1993
|
+
QUALITY_VISA_USA: "QualityVisaUSA",
|
|
1994
|
+
CROP_CENTRAL_FACE: "CropCentralFace",
|
|
1995
|
+
CROP_ALL_FACES: "CropAllFaces",
|
|
1996
|
+
THUMBNAIL: "Thumbnail",
|
|
1997
|
+
EMPTY: ""
|
|
1998
|
+
}, js = {
|
|
1999
|
+
FACER_OK: 0,
|
|
2000
|
+
FR_IMAGE_EMPTY: 1,
|
|
2001
|
+
FR_FACE_NOT_DETECTED: 2,
|
|
2002
|
+
FR_LANDMARKS_NOT_DETECTED: 3,
|
|
2003
|
+
FR_FACE_ALIGHNER_FAILED: 4,
|
|
2004
|
+
FR_DESCRIPTOR_EXTRACTOR_ERROR: 5,
|
|
2005
|
+
FR_IMAGE_DECODE_ERROR: 6,
|
|
2006
|
+
FR_INTERNAL_ERROR: 7,
|
|
2007
|
+
FACER_CONFIG_ERROR: 199,
|
|
2008
|
+
FACER_NO_LICENSE: 200,
|
|
2009
|
+
FACER_IS_NOT_INITIALIZED: 201,
|
|
2010
|
+
FACER_COMMAND_IS_NOT_SUPPORTED: 202,
|
|
2011
|
+
FACER_COMMAND_PARAMS_READ_ERROR: 203,
|
|
2012
|
+
FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST: 224,
|
|
2013
|
+
FACER_VIDEO_DECODE_ERROR: 227,
|
|
2014
|
+
FACER_NOT_ENOUGH_FRAMES: 228,
|
|
2015
|
+
FACER_OUTPUT_IS_NOT_DEFINED: 229,
|
|
2016
|
+
FACER_CLOSED_EYES_DETECTED: 230,
|
|
2017
|
+
FACER_LOW_QUALITY: 231,
|
|
2018
|
+
FACER_HIGH_ASYMMETRY: 232,
|
|
2019
|
+
FACER_FACE_OVER_EMOTIONAL: 233,
|
|
2020
|
+
FACER_SUNGLASSES_DETECTED: 234,
|
|
2021
|
+
FACER_SMALL_AGE: 235,
|
|
2022
|
+
FACER_HEADDRESS_DETECTED: 236,
|
|
2023
|
+
FACER_FACES_NOT_MATCHED: 237,
|
|
2024
|
+
FACER_IMAGES_COUNT_LIMIT_EXCEEDED: 238,
|
|
2025
|
+
FACER_MEDICINE_MASK_DETECTED: 239,
|
|
2026
|
+
FACER_OCCLUSION_DETECTED: 240,
|
|
2027
|
+
FACER_FOREHEAD_GLASSES_DETECTED: 242,
|
|
2028
|
+
FACER_MOUTH_OPENED: 243,
|
|
2029
|
+
FACER_ART_MASK_DETECTED: 244,
|
|
2030
|
+
FACER_ELECTRONIC_DEVICE_DETECTED: 245,
|
|
2031
|
+
FACER_TRACK_BREAK: 246,
|
|
2032
|
+
FACER_WRONG_GEO: 247,
|
|
2033
|
+
FACER_WRONG_OF: 248,
|
|
2034
|
+
FACER_WRONG_VIEW: 249,
|
|
2035
|
+
FACER_TIMEOUT_LIVENESS_TRANSACTION: 250,
|
|
2036
|
+
FACER_FAILED_LIVENESS_TRANSACTION: 251,
|
|
2037
|
+
FACER_ABORTED_LIVENESS_TRANSACTION: 252,
|
|
2038
|
+
FACER_GENERAL_ERROR: 253,
|
|
2039
|
+
FACER_PASSIVE_LIVENESS_FAIL: 254
|
|
2040
|
+
}, ks = {
|
|
2041
|
+
IN: "in",
|
|
2042
|
+
NOT_IN: "nin"
|
|
2043
|
+
}, qr = {
|
|
2044
|
+
DOCUMENT_PRINTED: 1,
|
|
2045
|
+
DOCUMENT_RFID: 2,
|
|
2046
|
+
LIVE: 3,
|
|
2047
|
+
DOCUMENT_WITH_LIVE: 4,
|
|
2048
|
+
EXTERNAL: 5,
|
|
2049
|
+
GHOST: 6,
|
|
2050
|
+
BARCODE: 7
|
|
2051
|
+
}, vs = {
|
|
2052
|
+
ACTIVE: 0,
|
|
2053
|
+
PASSIVE: 1
|
|
2054
|
+
};
|
|
2055
|
+
var $ = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Qr = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
|
|
2056
|
+
for (var te = 0; te < $.length; te++)
|
|
2057
|
+
Qr[$.charCodeAt(te)] = te;
|
|
2058
|
+
var ie = function(t) {
|
|
2059
|
+
var e = new Uint8Array(t), r, s = e.length, n = "";
|
|
2060
|
+
for (r = 0; r < s; r += 3)
|
|
2061
|
+
n += $[e[r] >> 2], n += $[(e[r] & 3) << 4 | e[r + 1] >> 4], n += $[(e[r + 1] & 15) << 2 | e[r + 2] >> 6], n += $[e[r + 2] & 63];
|
|
2062
|
+
return s % 3 === 2 ? n = n.substring(0, n.length - 1) + "=" : s % 3 === 1 && (n = n.substring(0, n.length - 2) + "=="), n;
|
|
2063
|
+
};
|
|
2064
|
+
class Wr {
|
|
2065
|
+
constructor(e, r, s) {
|
|
2066
|
+
this.superClass = new $r(e, r, s);
|
|
2067
|
+
}
|
|
2068
|
+
async match(e, r, s) {
|
|
2069
|
+
for (const o of e.images)
|
|
2070
|
+
o.type || (o.type = qr.LIVE), typeof o.data != "string" && (o.data = ie(o.data));
|
|
2071
|
+
return (await this.superClass.match(e, r, s)).data;
|
|
2072
|
+
}
|
|
2073
|
+
async detect(e, r, s) {
|
|
2074
|
+
return e.image && typeof e.image != "string" && (e.image = ie(e.image)), (await this.superClass.detect(e, r, s)).data;
|
|
2075
|
+
}
|
|
2076
|
+
}
|
|
2077
|
+
const Kr = function(t) {
|
|
2078
|
+
return {
|
|
2079
|
+
/**
|
|
2080
|
+
*
|
|
2081
|
+
* @summary Create group
|
|
2082
|
+
* @param {GroupToCreate} groupToCreate Request body for the group to create.
|
|
2083
|
+
* @param {string} [xRequestID] Request header label.
|
|
2084
|
+
* @param {*} [options] Override http request option.
|
|
2085
|
+
* @throws {RequiredError}
|
|
2086
|
+
*/
|
|
2087
|
+
createGroup: async (e, r, s = {}) => {
|
|
2088
|
+
y("createGroup", "groupToCreate", e);
|
|
2089
|
+
const n = "/api/groups", o = new URL(n, R);
|
|
2090
|
+
let a;
|
|
2091
|
+
t && (a = t.baseOptions);
|
|
2092
|
+
const i = { method: "POST", ...a, ...s }, c = {}, l = {};
|
|
2093
|
+
r != null && (c["X-RequestID"] = String(r)), c["Content-Type"] = "application/json", P(o, l);
|
|
2094
|
+
let d = a && a.headers ? a.headers : {};
|
|
2095
|
+
return i.headers = { ...c, ...d, ...s.headers }, i.data = D(e, i, t), {
|
|
2096
|
+
url: g(o),
|
|
2097
|
+
options: i
|
|
2098
|
+
};
|
|
2099
|
+
},
|
|
2100
|
+
/**
|
|
2101
|
+
*
|
|
2102
|
+
* @summary Delete group
|
|
2103
|
+
* @param {string} groupId Group ID.
|
|
2104
|
+
* @param {string} [xRequestID] Request header label.
|
|
2105
|
+
* @param {*} [options] Override http request option.
|
|
2106
|
+
* @throws {RequiredError}
|
|
2107
|
+
*/
|
|
2108
|
+
deleteGroup: async (e, r, s = {}) => {
|
|
2109
|
+
y("deleteGroup", "groupId", e);
|
|
2110
|
+
const n = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(e))), o = new URL(n, R);
|
|
2111
|
+
let a;
|
|
2112
|
+
t && (a = t.baseOptions);
|
|
2113
|
+
const i = { method: "DELETE", ...a, ...s }, c = {}, l = {};
|
|
2114
|
+
r != null && (c["X-RequestID"] = String(r)), P(o, l);
|
|
2115
|
+
let d = a && a.headers ? a.headers : {};
|
|
2116
|
+
return i.headers = { ...c, ...d, ...s.headers }, {
|
|
2117
|
+
url: g(o),
|
|
2118
|
+
options: i
|
|
2119
|
+
};
|
|
2120
|
+
},
|
|
2121
|
+
/**
|
|
2122
|
+
*
|
|
2123
|
+
* @summary Get groups
|
|
2124
|
+
* @param {number} [page] The page number to get a list of persons or groups.
|
|
2125
|
+
* @param {number} [size] The page size with a list of persons or groups, items.
|
|
2126
|
+
* @param {string} [xRequestID] Request header label.
|
|
2127
|
+
* @param {*} [options] Override http request option.
|
|
2128
|
+
* @throws {RequiredError}
|
|
2129
|
+
*/
|
|
2130
|
+
getAllGroups: async (e, r, s, n = {}) => {
|
|
2131
|
+
const o = "/api/groups", a = new URL(o, R);
|
|
2132
|
+
let i;
|
|
2133
|
+
t && (i = t.baseOptions);
|
|
2134
|
+
const c = { method: "GET", ...i, ...n }, l = {}, d = {};
|
|
2135
|
+
e !== void 0 && (d.page = e), r !== void 0 && (d.size = r), s != null && (l["X-RequestID"] = String(s)), P(a, d);
|
|
2136
|
+
let p = i && i.headers ? i.headers : {};
|
|
2137
|
+
return c.headers = { ...l, ...p, ...n.headers }, {
|
|
2138
|
+
url: g(a),
|
|
2139
|
+
options: c
|
|
2140
|
+
};
|
|
2141
|
+
},
|
|
2142
|
+
/**
|
|
2143
|
+
*
|
|
2144
|
+
* @summary Get group persons
|
|
2145
|
+
* @param {string} groupId Group ID.
|
|
2146
|
+
* @param {number} [page] The page number to get a list of persons or groups.
|
|
2147
|
+
* @param {number} [size] The page size with a list of persons or groups, items.
|
|
2148
|
+
* @param {string} [xRequestID] Request header label.
|
|
2149
|
+
* @param {*} [options] Override http request option.
|
|
2150
|
+
* @throws {RequiredError}
|
|
2151
|
+
*/
|
|
2152
|
+
getAllPersonsByGroupId: async (e, r, s, n, o = {}) => {
|
|
2153
|
+
y("getAllPersonsByGroupId", "groupId", e);
|
|
2154
|
+
const a = "/api/groups/{groupId}/persons".replace("{groupId}", encodeURIComponent(String(e))), i = new URL(a, R);
|
|
2155
|
+
let c;
|
|
2156
|
+
t && (c = t.baseOptions);
|
|
2157
|
+
const l = { method: "GET", ...c, ...o }, d = {}, p = {};
|
|
2158
|
+
r !== void 0 && (p.page = r), s !== void 0 && (p.size = s), n != null && (d["X-RequestID"] = String(n)), P(i, p);
|
|
2159
|
+
let O = c && c.headers ? c.headers : {};
|
|
2160
|
+
return l.headers = { ...d, ...O, ...o.headers }, {
|
|
2161
|
+
url: g(i),
|
|
2162
|
+
options: l
|
|
2163
|
+
};
|
|
2164
|
+
},
|
|
2165
|
+
/**
|
|
2166
|
+
*
|
|
2167
|
+
* @summary Get group
|
|
2168
|
+
* @param {string} groupId Group ID.
|
|
2169
|
+
* @param {string} [xRequestID] Request header label.
|
|
2170
|
+
* @param {*} [options] Override http request option.
|
|
2171
|
+
* @throws {RequiredError}
|
|
2172
|
+
*/
|
|
2173
|
+
getGroup: async (e, r, s = {}) => {
|
|
2174
|
+
y("getGroup", "groupId", e);
|
|
2175
|
+
const n = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(e))), o = new URL(n, R);
|
|
2176
|
+
let a;
|
|
2177
|
+
t && (a = t.baseOptions);
|
|
2178
|
+
const i = { method: "GET", ...a, ...s }, c = {}, l = {};
|
|
2179
|
+
r != null && (c["X-RequestID"] = String(r)), P(o, l);
|
|
2180
|
+
let d = a && a.headers ? a.headers : {};
|
|
2181
|
+
return i.headers = { ...c, ...d, ...s.headers }, {
|
|
2182
|
+
url: g(o),
|
|
2183
|
+
options: i
|
|
2184
|
+
};
|
|
2185
|
+
},
|
|
2186
|
+
/**
|
|
2187
|
+
*
|
|
2188
|
+
* @summary Update group
|
|
2189
|
+
* @param {string} groupId Group ID.
|
|
2190
|
+
* @param {GroupToCreate} groupToCreate Request body for the group to update.
|
|
2191
|
+
* @param {string} [xRequestID] Request header label.
|
|
2192
|
+
* @param {*} [options] Override http request option.
|
|
2193
|
+
* @throws {RequiredError}
|
|
2194
|
+
*/
|
|
2195
|
+
updateGroup: async (e, r, s, n = {}) => {
|
|
2196
|
+
y("updateGroup", "groupId", e), y("updateGroup", "groupToCreate", r);
|
|
2197
|
+
const o = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(e))), a = new URL(o, R);
|
|
2198
|
+
let i;
|
|
2199
|
+
t && (i = t.baseOptions);
|
|
2200
|
+
const c = { method: "PUT", ...i, ...n }, l = {}, d = {};
|
|
2201
|
+
s != null && (l["X-RequestID"] = String(s)), l["Content-Type"] = "application/json", P(a, d);
|
|
2202
|
+
let p = i && i.headers ? i.headers : {};
|
|
2203
|
+
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(r, c, t), {
|
|
2204
|
+
url: g(a),
|
|
2205
|
+
options: c
|
|
2206
|
+
};
|
|
2207
|
+
},
|
|
2208
|
+
/**
|
|
2209
|
+
*
|
|
2210
|
+
* @summary Add/remove persons to group
|
|
2211
|
+
* @param {string} groupId Group ID.
|
|
2212
|
+
* @param {UpdateGroup} updateGroup Request body for person IDs to add or remove.
|
|
2213
|
+
* @param {string} [xRequestID] Request header label.
|
|
2214
|
+
* @param {*} [options] Override http request option.
|
|
2215
|
+
* @throws {RequiredError}
|
|
2216
|
+
*/
|
|
2217
|
+
updatePersonsInGroup: async (e, r, s, n = {}) => {
|
|
2218
|
+
y("updatePersonsInGroup", "groupId", e), y("updatePersonsInGroup", "updateGroup", r);
|
|
2219
|
+
const o = "/api/groups/{groupId}/persons".replace("{groupId}", encodeURIComponent(String(e))), a = new URL(o, R);
|
|
2220
|
+
let i;
|
|
2221
|
+
t && (i = t.baseOptions);
|
|
2222
|
+
const c = { method: "PUT", ...i, ...n }, l = {}, d = {};
|
|
2223
|
+
s != null && (l["X-RequestID"] = String(s)), l["Content-Type"] = "application/json", P(a, d);
|
|
2224
|
+
let p = i && i.headers ? i.headers : {};
|
|
2225
|
+
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(r, c, t), {
|
|
2226
|
+
url: g(a),
|
|
2227
|
+
options: c
|
|
2228
|
+
};
|
|
2229
|
+
}
|
|
2230
|
+
};
|
|
2231
|
+
}, M = function(t) {
|
|
2232
|
+
const e = Kr(t);
|
|
2233
|
+
return {
|
|
2234
|
+
/**
|
|
2235
|
+
*
|
|
2236
|
+
* @summary Create group
|
|
2237
|
+
* @param {GroupToCreate} groupToCreate Request body for the group to create.
|
|
2238
|
+
* @param {string} [xRequestID] Request header label.
|
|
2239
|
+
* @param {*} [options] Override http request option.
|
|
2240
|
+
* @throws {RequiredError}
|
|
2241
|
+
*/
|
|
2242
|
+
async createGroup(r, s, n) {
|
|
2243
|
+
const o = await e.createGroup(r, s, n);
|
|
2244
|
+
return T(o, m, S, t);
|
|
2245
|
+
},
|
|
2246
|
+
/**
|
|
2247
|
+
*
|
|
2248
|
+
* @summary Delete group
|
|
2249
|
+
* @param {string} groupId Group ID.
|
|
2250
|
+
* @param {string} [xRequestID] Request header label.
|
|
2251
|
+
* @param {*} [options] Override http request option.
|
|
2252
|
+
* @throws {RequiredError}
|
|
2253
|
+
*/
|
|
2254
|
+
async deleteGroup(r, s, n) {
|
|
2255
|
+
const o = await e.deleteGroup(r, s, n);
|
|
2256
|
+
return T(o, m, S, t);
|
|
2257
|
+
},
|
|
2258
|
+
/**
|
|
2259
|
+
*
|
|
2260
|
+
* @summary Get groups
|
|
2261
|
+
* @param {number} [page] The page number to get a list of persons or groups.
|
|
2262
|
+
* @param {number} [size] The page size with a list of persons or groups, items.
|
|
2263
|
+
* @param {string} [xRequestID] Request header label.
|
|
2264
|
+
* @param {*} [options] Override http request option.
|
|
2265
|
+
* @throws {RequiredError}
|
|
2266
|
+
*/
|
|
2267
|
+
async getAllGroups(r, s, n, o) {
|
|
2268
|
+
const a = await e.getAllGroups(r, s, n, o);
|
|
2269
|
+
return T(a, m, S, t);
|
|
2270
|
+
},
|
|
2271
|
+
/**
|
|
2272
|
+
*
|
|
2273
|
+
* @summary Get group persons
|
|
2274
|
+
* @param {string} groupId Group ID.
|
|
2275
|
+
* @param {number} [page] The page number to get a list of persons or groups.
|
|
2276
|
+
* @param {number} [size] The page size with a list of persons or groups, items.
|
|
2277
|
+
* @param {string} [xRequestID] Request header label.
|
|
2278
|
+
* @param {*} [options] Override http request option.
|
|
2279
|
+
* @throws {RequiredError}
|
|
2280
|
+
*/
|
|
2281
|
+
async getAllPersonsByGroupId(r, s, n, o, a) {
|
|
2282
|
+
const i = await e.getAllPersonsByGroupId(r, s, n, o, a);
|
|
2283
|
+
return T(i, m, S, t);
|
|
2284
|
+
},
|
|
2285
|
+
/**
|
|
2286
|
+
*
|
|
2287
|
+
* @summary Get group
|
|
2288
|
+
* @param {string} groupId Group ID.
|
|
2289
|
+
* @param {string} [xRequestID] Request header label.
|
|
2290
|
+
* @param {*} [options] Override http request option.
|
|
2291
|
+
* @throws {RequiredError}
|
|
2292
|
+
*/
|
|
2293
|
+
async getGroup(r, s, n) {
|
|
2294
|
+
const o = await e.getGroup(r, s, n);
|
|
2295
|
+
return T(o, m, S, t);
|
|
2296
|
+
},
|
|
2297
|
+
/**
|
|
2298
|
+
*
|
|
2299
|
+
* @summary Update group
|
|
2300
|
+
* @param {string} groupId Group ID.
|
|
2301
|
+
* @param {GroupToCreate} groupToCreate Request body for the group to update.
|
|
2302
|
+
* @param {string} [xRequestID] Request header label.
|
|
2303
|
+
* @param {*} [options] Override http request option.
|
|
2304
|
+
* @throws {RequiredError}
|
|
2305
|
+
*/
|
|
2306
|
+
async updateGroup(r, s, n, o) {
|
|
2307
|
+
const a = await e.updateGroup(r, s, n, o);
|
|
2308
|
+
return T(a, m, S, t);
|
|
2309
|
+
},
|
|
2310
|
+
/**
|
|
2311
|
+
*
|
|
2312
|
+
* @summary Add/remove persons to group
|
|
2313
|
+
* @param {string} groupId Group ID.
|
|
2314
|
+
* @param {UpdateGroup} updateGroup Request body for person IDs to add or remove.
|
|
2315
|
+
* @param {string} [xRequestID] Request header label.
|
|
2316
|
+
* @param {*} [options] Override http request option.
|
|
2317
|
+
* @throws {RequiredError}
|
|
2318
|
+
*/
|
|
2319
|
+
async updatePersonsInGroup(r, s, n, o) {
|
|
2320
|
+
const a = await e.updatePersonsInGroup(r, s, n, o);
|
|
2321
|
+
return T(a, m, S, t);
|
|
2322
|
+
}
|
|
2323
|
+
};
|
|
2324
|
+
};
|
|
2325
|
+
let Xr = class extends z {
|
|
2326
|
+
/**
|
|
2327
|
+
*
|
|
2328
|
+
* @summary Create group
|
|
2329
|
+
* @param {GroupToCreate} groupToCreate Request body for the group to create.
|
|
2330
|
+
* @param {string} [xRequestID] Request header label.
|
|
2331
|
+
* @param {*} [options] Override http request option.
|
|
2332
|
+
* @throws {RequiredError}
|
|
2333
|
+
* @memberof GroupApi
|
|
2334
|
+
*/
|
|
2335
|
+
createGroup(e, r, s) {
|
|
2336
|
+
return M(this.configuration).createGroup(e, r, s).then((n) => n(this.axios, this.basePath));
|
|
2337
|
+
}
|
|
2338
|
+
/**
|
|
2339
|
+
*
|
|
2340
|
+
* @summary Delete group
|
|
2341
|
+
* @param {string} groupId Group ID.
|
|
2342
|
+
* @param {string} [xRequestID] Request header label.
|
|
2343
|
+
* @param {*} [options] Override http request option.
|
|
2344
|
+
* @throws {RequiredError}
|
|
2345
|
+
* @memberof GroupApi
|
|
2346
|
+
*/
|
|
2347
|
+
deleteGroup(e, r, s) {
|
|
2348
|
+
return M(this.configuration).deleteGroup(e, r, s).then((n) => n(this.axios, this.basePath));
|
|
2349
|
+
}
|
|
2350
|
+
/**
|
|
2351
|
+
*
|
|
2352
|
+
* @summary Get groups
|
|
2353
|
+
* @param {number} [page] The page number to get a list of persons or groups.
|
|
2354
|
+
* @param {number} [size] The page size with a list of persons or groups, items.
|
|
2355
|
+
* @param {string} [xRequestID] Request header label.
|
|
2356
|
+
* @param {*} [options] Override http request option.
|
|
2357
|
+
* @throws {RequiredError}
|
|
2358
|
+
* @memberof GroupApi
|
|
2359
|
+
*/
|
|
2360
|
+
getAllGroups(e, r, s, n) {
|
|
2361
|
+
return M(this.configuration).getAllGroups(e, r, s, n).then((o) => o(this.axios, this.basePath));
|
|
2362
|
+
}
|
|
2363
|
+
/**
|
|
2364
|
+
*
|
|
2365
|
+
* @summary Get group persons
|
|
2366
|
+
* @param {string} groupId Group ID.
|
|
2367
|
+
* @param {number} [page] The page number to get a list of persons or groups.
|
|
2368
|
+
* @param {number} [size] The page size with a list of persons or groups, items.
|
|
2369
|
+
* @param {string} [xRequestID] Request header label.
|
|
2370
|
+
* @param {*} [options] Override http request option.
|
|
2371
|
+
* @throws {RequiredError}
|
|
2372
|
+
* @memberof GroupApi
|
|
2373
|
+
*/
|
|
2374
|
+
getAllPersonsByGroupId(e, r, s, n, o) {
|
|
2375
|
+
return M(this.configuration).getAllPersonsByGroupId(e, r, s, n, o).then((a) => a(this.axios, this.basePath));
|
|
2376
|
+
}
|
|
2377
|
+
/**
|
|
2378
|
+
*
|
|
2379
|
+
* @summary Get group
|
|
2380
|
+
* @param {string} groupId Group ID.
|
|
2381
|
+
* @param {string} [xRequestID] Request header label.
|
|
2382
|
+
* @param {*} [options] Override http request option.
|
|
2383
|
+
* @throws {RequiredError}
|
|
2384
|
+
* @memberof GroupApi
|
|
2385
|
+
*/
|
|
2386
|
+
getGroup(e, r, s) {
|
|
2387
|
+
return M(this.configuration).getGroup(e, r, s).then((n) => n(this.axios, this.basePath));
|
|
2388
|
+
}
|
|
2389
|
+
/**
|
|
2390
|
+
*
|
|
2391
|
+
* @summary Update group
|
|
2392
|
+
* @param {string} groupId Group ID.
|
|
2393
|
+
* @param {GroupToCreate} groupToCreate Request body for the group to update.
|
|
2394
|
+
* @param {string} [xRequestID] Request header label.
|
|
2395
|
+
* @param {*} [options] Override http request option.
|
|
2396
|
+
* @throws {RequiredError}
|
|
2397
|
+
* @memberof GroupApi
|
|
2398
|
+
*/
|
|
2399
|
+
updateGroup(e, r, s, n) {
|
|
2400
|
+
return M(this.configuration).updateGroup(e, r, s, n).then((o) => o(this.axios, this.basePath));
|
|
2401
|
+
}
|
|
2402
|
+
/**
|
|
2403
|
+
*
|
|
2404
|
+
* @summary Add/remove persons to group
|
|
2405
|
+
* @param {string} groupId Group ID.
|
|
2406
|
+
* @param {UpdateGroup} updateGroup Request body for person IDs to add or remove.
|
|
2407
|
+
* @param {string} [xRequestID] Request header label.
|
|
2408
|
+
* @param {*} [options] Override http request option.
|
|
2409
|
+
* @throws {RequiredError}
|
|
2410
|
+
* @memberof GroupApi
|
|
2411
|
+
*/
|
|
2412
|
+
updatePersonsInGroup(e, r, s, n) {
|
|
2413
|
+
return M(this.configuration).updatePersonsInGroup(e, r, s, n).then((o) => o(this.axios, this.basePath));
|
|
2414
|
+
}
|
|
2415
|
+
};
|
|
2416
|
+
class Jr {
|
|
2417
|
+
constructor(e, r, s) {
|
|
2418
|
+
this.superClass = new Xr(e, r, s);
|
|
2419
|
+
}
|
|
2420
|
+
async createGroup(e, r, s) {
|
|
2421
|
+
const n = {
|
|
2422
|
+
...e,
|
|
2423
|
+
metadata: e != null && e.metadata ? e.metadata : {}
|
|
2424
|
+
};
|
|
2425
|
+
return (await this.superClass.createGroup(n, r, s)).data;
|
|
2426
|
+
}
|
|
2427
|
+
async deleteGroup(e, r, s) {
|
|
2428
|
+
await this.superClass.deleteGroup(e, r, s);
|
|
2429
|
+
}
|
|
2430
|
+
async getAllGroups(e, r, s, n) {
|
|
2431
|
+
return (await this.superClass.getAllGroups(e, r, s, n)).data;
|
|
2432
|
+
}
|
|
2433
|
+
async getAllPersonsByGroupId(e, r, s, n, o) {
|
|
2434
|
+
return (await this.superClass.getAllPersonsByGroupId(s, e, r, n, o)).data;
|
|
2435
|
+
}
|
|
2436
|
+
async getGroup(e, r, s) {
|
|
2437
|
+
return (await this.superClass.getGroup(e, r, s)).data;
|
|
2438
|
+
}
|
|
2439
|
+
async updateGroup(e, r, s, n) {
|
|
2440
|
+
await this.superClass.updateGroup(e, r, s, n);
|
|
2441
|
+
}
|
|
2442
|
+
async updatePersonsInGroup(e, r, s, n) {
|
|
2443
|
+
await this.superClass.updatePersonsInGroup(e, r, s, n);
|
|
2444
|
+
}
|
|
2445
|
+
}
|
|
2446
|
+
const Yr = function(t) {
|
|
2447
|
+
return {
|
|
2448
|
+
/**
|
|
2449
|
+
*
|
|
2450
|
+
* @summary Add person image
|
|
2451
|
+
* @param {string} personId Person ID.
|
|
2452
|
+
* @param {AddImageToPersonRequest} addImageToPersonRequest Image to add.
|
|
2453
|
+
* @param {string} [xRequestID] Request header label.
|
|
2454
|
+
* @param {*} [options] Override http request option.
|
|
2455
|
+
* @throws {RequiredError}
|
|
2456
|
+
*/
|
|
2457
|
+
addImageToPerson: async (e, r, s, n = {}) => {
|
|
2458
|
+
y("addImageToPerson", "personId", e), y("addImageToPerson", "addImageToPersonRequest", r);
|
|
2459
|
+
const o = "/api/persons/{personId}/images".replace("{personId}", encodeURIComponent(String(e))), a = new URL(o, R);
|
|
2460
|
+
let i;
|
|
2461
|
+
t && (i = t.baseOptions);
|
|
2462
|
+
const c = { method: "POST", ...i, ...n }, l = {}, d = {};
|
|
2463
|
+
s != null && (l["X-RequestID"] = String(s)), l["Content-Type"] = "application/json", P(a, d);
|
|
2464
|
+
let p = i && i.headers ? i.headers : {};
|
|
2465
|
+
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(r, c, t), {
|
|
2466
|
+
url: g(a),
|
|
2467
|
+
options: c
|
|
2468
|
+
};
|
|
2469
|
+
},
|
|
2470
|
+
/**
|
|
2471
|
+
*
|
|
2472
|
+
* @summary Create person
|
|
2473
|
+
* @param {PersonFields} personFields
|
|
2474
|
+
* @param {string} [xRequestID] Request header label.
|
|
2475
|
+
* @param {*} [options] Override http request option.
|
|
2476
|
+
* @throws {RequiredError}
|
|
2477
|
+
*/
|
|
2478
|
+
createPerson: async (e, r, s = {}) => {
|
|
2479
|
+
y("createPerson", "personFields", e);
|
|
2480
|
+
const n = "/api/persons", o = new URL(n, R);
|
|
2481
|
+
let a;
|
|
2482
|
+
t && (a = t.baseOptions);
|
|
2483
|
+
const i = { method: "POST", ...a, ...s }, c = {}, l = {};
|
|
2484
|
+
r != null && (c["X-RequestID"] = String(r)), c["Content-Type"] = "application/json", P(o, l);
|
|
2485
|
+
let d = a && a.headers ? a.headers : {};
|
|
2486
|
+
return i.headers = { ...c, ...d, ...s.headers }, i.data = D(e, i, t), {
|
|
2487
|
+
url: g(o),
|
|
2488
|
+
options: i
|
|
2489
|
+
};
|
|
2490
|
+
},
|
|
2491
|
+
/**
|
|
2492
|
+
*
|
|
2493
|
+
* @summary Delete image of person
|
|
2494
|
+
* @param {string} imageId Image ID.
|
|
2495
|
+
* @param {string} personId Person ID.
|
|
2496
|
+
* @param {string} [xRequestID] Request header label.
|
|
2497
|
+
* @param {*} [options] Override http request option.
|
|
2498
|
+
* @throws {RequiredError}
|
|
2499
|
+
*/
|
|
2500
|
+
deleteImageOfPerson: async (e, r, s, n = {}) => {
|
|
2501
|
+
y("deleteImageOfPerson", "imageId", e), y("deleteImageOfPerson", "personId", r);
|
|
2502
|
+
const o = "/api/persons/{personId}/images/{imageId}".replace("{imageId}", encodeURIComponent(String(e))).replace("{personId}", encodeURIComponent(String(r))), a = new URL(o, R);
|
|
2503
|
+
let i;
|
|
2504
|
+
t && (i = t.baseOptions);
|
|
2505
|
+
const c = { method: "DELETE", ...i, ...n }, l = {}, d = {};
|
|
2506
|
+
s != null && (l["X-RequestID"] = String(s)), P(a, d);
|
|
2507
|
+
let p = i && i.headers ? i.headers : {};
|
|
2508
|
+
return c.headers = { ...l, ...p, ...n.headers }, {
|
|
2509
|
+
url: g(a),
|
|
2510
|
+
options: c
|
|
2511
|
+
};
|
|
2512
|
+
},
|
|
2513
|
+
/**
|
|
2514
|
+
*
|
|
2515
|
+
* @summary Delete person
|
|
2516
|
+
* @param {string} personId Person ID.
|
|
2517
|
+
* @param {string} [xRequestID] Request header label.
|
|
2518
|
+
* @param {*} [options] Override http request option.
|
|
2519
|
+
* @throws {RequiredError}
|
|
2520
|
+
*/
|
|
2521
|
+
deletePerson: async (e, r, s = {}) => {
|
|
2522
|
+
y("deletePerson", "personId", e);
|
|
2523
|
+
const n = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(e))), o = new URL(n, R);
|
|
2524
|
+
let a;
|
|
2525
|
+
t && (a = t.baseOptions);
|
|
2526
|
+
const i = { method: "DELETE", ...a, ...s }, c = {}, l = {};
|
|
2527
|
+
r != null && (c["X-RequestID"] = String(r)), P(o, l);
|
|
2528
|
+
let d = a && a.headers ? a.headers : {};
|
|
2529
|
+
return i.headers = { ...c, ...d, ...s.headers }, {
|
|
2530
|
+
url: g(o),
|
|
2531
|
+
options: i
|
|
2532
|
+
};
|
|
2533
|
+
},
|
|
2534
|
+
/**
|
|
2535
|
+
*
|
|
2536
|
+
* @summary Get person groups
|
|
2537
|
+
* @param {string} personId Person ID.
|
|
2538
|
+
* @param {number} [page] The page number to get a list of persons or groups.
|
|
2539
|
+
* @param {number} [size] The page size with a list of persons or groups, items.
|
|
2540
|
+
* @param {string} [xRequestID] Request header label.
|
|
2541
|
+
* @param {*} [options] Override http request option.
|
|
2542
|
+
* @throws {RequiredError}
|
|
2543
|
+
*/
|
|
2544
|
+
getAllGroupsByPersonId: async (e, r, s, n, o = {}) => {
|
|
2545
|
+
y("getAllGroupsByPersonId", "personId", e);
|
|
2546
|
+
const a = "/api/persons/{personId}/groups".replace("{personId}", encodeURIComponent(String(e))), i = new URL(a, R);
|
|
2547
|
+
let c;
|
|
2548
|
+
t && (c = t.baseOptions);
|
|
2549
|
+
const l = { method: "GET", ...c, ...o }, d = {}, p = {};
|
|
2550
|
+
r !== void 0 && (p.page = r), s !== void 0 && (p.size = s), n != null && (d["X-RequestID"] = String(n)), P(i, p);
|
|
2551
|
+
let O = c && c.headers ? c.headers : {};
|
|
2552
|
+
return l.headers = { ...d, ...O, ...o.headers }, {
|
|
2553
|
+
url: g(i),
|
|
2554
|
+
options: l
|
|
2555
|
+
};
|
|
2556
|
+
},
|
|
2557
|
+
/**
|
|
2558
|
+
*
|
|
2559
|
+
* @summary Get person images
|
|
2560
|
+
* @param {string} personId Person ID.
|
|
2561
|
+
* @param {number} [page] The page number to get a list of persons or groups.
|
|
2562
|
+
* @param {number} [size] The page size with a list of persons or groups, items.
|
|
2563
|
+
* @param {string} [xRequestID] Request header label.
|
|
2564
|
+
* @param {*} [options] Override http request option.
|
|
2565
|
+
* @throws {RequiredError}
|
|
2566
|
+
*/
|
|
2567
|
+
getAllImagesByPersonId: async (e, r, s, n, o = {}) => {
|
|
2568
|
+
y("getAllImagesByPersonId", "personId", e);
|
|
2569
|
+
const a = "/api/persons/{personId}/images".replace("{personId}", encodeURIComponent(String(e))), i = new URL(a, R);
|
|
2570
|
+
let c;
|
|
2571
|
+
t && (c = t.baseOptions);
|
|
2572
|
+
const l = { method: "GET", ...c, ...o }, d = {}, p = {};
|
|
2573
|
+
r !== void 0 && (p.page = r), s !== void 0 && (p.size = s), n != null && (d["X-RequestID"] = String(n)), P(i, p);
|
|
2574
|
+
let O = c && c.headers ? c.headers : {};
|
|
2575
|
+
return l.headers = { ...d, ...O, ...o.headers }, {
|
|
2576
|
+
url: g(i),
|
|
2577
|
+
options: l
|
|
2578
|
+
};
|
|
2579
|
+
},
|
|
2580
|
+
/**
|
|
2581
|
+
*
|
|
2582
|
+
* @summary Get person image by id
|
|
2583
|
+
* @param {string} imageId Image ID.
|
|
2584
|
+
* @param {string} personId Person ID.
|
|
2585
|
+
* @param {string} [xRequestID] Request header label.
|
|
2586
|
+
* @param {*} [options] Override http request option.
|
|
2587
|
+
* @throws {RequiredError}
|
|
2588
|
+
*/
|
|
2589
|
+
getImageOfPerson: async (e, r, s, n = {}) => {
|
|
2590
|
+
y("getImageOfPerson", "imageId", e), y("getImageOfPerson", "personId", r);
|
|
2591
|
+
const o = "/api/persons/{personId}/images/{imageId}".replace("{imageId}", encodeURIComponent(String(e))).replace("{personId}", encodeURIComponent(String(r))), a = new URL(o, R);
|
|
2592
|
+
let i;
|
|
2593
|
+
t && (i = t.baseOptions);
|
|
2594
|
+
const c = { method: "GET", ...i, ...n }, l = {}, d = {};
|
|
2595
|
+
s != null && (l["X-RequestID"] = String(s)), P(a, d);
|
|
2596
|
+
let p = i && i.headers ? i.headers : {};
|
|
2597
|
+
return c.headers = { ...l, ...p, ...n.headers }, {
|
|
2598
|
+
url: g(a),
|
|
2599
|
+
options: c
|
|
2600
|
+
};
|
|
2601
|
+
},
|
|
2602
|
+
/**
|
|
2603
|
+
*
|
|
2604
|
+
* @summary Get person
|
|
2605
|
+
* @param {string} personId Person ID.
|
|
2606
|
+
* @param {string} [xRequestID] Request header label.
|
|
2607
|
+
* @param {*} [options] Override http request option.
|
|
2608
|
+
* @throws {RequiredError}
|
|
2609
|
+
*/
|
|
2610
|
+
getPerson: async (e, r, s = {}) => {
|
|
2611
|
+
y("getPerson", "personId", e);
|
|
2612
|
+
const n = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(e))), o = new URL(n, R);
|
|
2613
|
+
let a;
|
|
2614
|
+
t && (a = t.baseOptions);
|
|
2615
|
+
const i = { method: "GET", ...a, ...s }, c = {}, l = {};
|
|
2616
|
+
r != null && (c["X-RequestID"] = String(r)), P(o, l);
|
|
2617
|
+
let d = a && a.headers ? a.headers : {};
|
|
2618
|
+
return i.headers = { ...c, ...d, ...s.headers }, {
|
|
2619
|
+
url: g(o),
|
|
2620
|
+
options: i
|
|
2621
|
+
};
|
|
2622
|
+
},
|
|
2623
|
+
/**
|
|
2624
|
+
*
|
|
2625
|
+
* @summary Update person
|
|
2626
|
+
* @param {string} personId Person ID.
|
|
2627
|
+
* @param {PersonToUpdateFields} personToUpdateFields Request body for the Person to update.
|
|
2628
|
+
* @param {string} [xRequestID] Request header label.
|
|
2629
|
+
* @param {*} [options] Override http request option.
|
|
2630
|
+
* @throws {RequiredError}
|
|
2631
|
+
*/
|
|
2632
|
+
updatePerson: async (e, r, s, n = {}) => {
|
|
2633
|
+
y("updatePerson", "personId", e), y("updatePerson", "personToUpdateFields", r);
|
|
2634
|
+
const o = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(e))), a = new URL(o, R);
|
|
2635
|
+
let i;
|
|
2636
|
+
t && (i = t.baseOptions);
|
|
2637
|
+
const c = { method: "PUT", ...i, ...n }, l = {}, d = {};
|
|
2638
|
+
s != null && (l["X-RequestID"] = String(s)), l["Content-Type"] = "application/json", P(a, d);
|
|
2639
|
+
let p = i && i.headers ? i.headers : {};
|
|
2640
|
+
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(r, c, t), {
|
|
2641
|
+
url: g(a),
|
|
2642
|
+
options: c
|
|
2643
|
+
};
|
|
2644
|
+
}
|
|
2645
|
+
};
|
|
2646
|
+
}, H = function(t) {
|
|
2647
|
+
const e = Yr(t);
|
|
2648
|
+
return {
|
|
2649
|
+
/**
|
|
2650
|
+
*
|
|
2651
|
+
* @summary Add person image
|
|
2652
|
+
* @param {string} personId Person ID.
|
|
2653
|
+
* @param {AddImageToPersonRequest} addImageToPersonRequest Image to add.
|
|
2654
|
+
* @param {string} [xRequestID] Request header label.
|
|
2655
|
+
* @param {*} [options] Override http request option.
|
|
2656
|
+
* @throws {RequiredError}
|
|
2657
|
+
*/
|
|
2658
|
+
async addImageToPerson(r, s, n, o) {
|
|
2659
|
+
const a = await e.addImageToPerson(r, s, n, o);
|
|
2660
|
+
return T(a, m, S, t);
|
|
2661
|
+
},
|
|
2662
|
+
/**
|
|
2663
|
+
*
|
|
2664
|
+
* @summary Create person
|
|
2665
|
+
* @param {PersonFields} personFields
|
|
2666
|
+
* @param {string} [xRequestID] Request header label.
|
|
2667
|
+
* @param {*} [options] Override http request option.
|
|
2668
|
+
* @throws {RequiredError}
|
|
2669
|
+
*/
|
|
2670
|
+
async createPerson(r, s, n) {
|
|
2671
|
+
const o = await e.createPerson(r, s, n);
|
|
2672
|
+
return T(o, m, S, t);
|
|
2673
|
+
},
|
|
2674
|
+
/**
|
|
2675
|
+
*
|
|
2676
|
+
* @summary Delete image of person
|
|
2677
|
+
* @param {string} imageId Image ID.
|
|
2678
|
+
* @param {string} personId Person ID.
|
|
2679
|
+
* @param {string} [xRequestID] Request header label.
|
|
2680
|
+
* @param {*} [options] Override http request option.
|
|
2681
|
+
* @throws {RequiredError}
|
|
2682
|
+
*/
|
|
2683
|
+
async deleteImageOfPerson(r, s, n, o) {
|
|
2684
|
+
const a = await e.deleteImageOfPerson(r, s, n, o);
|
|
2685
|
+
return T(a, m, S, t);
|
|
2686
|
+
},
|
|
2687
|
+
/**
|
|
2688
|
+
*
|
|
2689
|
+
* @summary Delete person
|
|
2690
|
+
* @param {string} personId Person ID.
|
|
2691
|
+
* @param {string} [xRequestID] Request header label.
|
|
2692
|
+
* @param {*} [options] Override http request option.
|
|
2693
|
+
* @throws {RequiredError}
|
|
2694
|
+
*/
|
|
2695
|
+
async deletePerson(r, s, n) {
|
|
2696
|
+
const o = await e.deletePerson(r, s, n);
|
|
2697
|
+
return T(o, m, S, t);
|
|
2698
|
+
},
|
|
2699
|
+
/**
|
|
2700
|
+
*
|
|
2701
|
+
* @summary Get person groups
|
|
2702
|
+
* @param {string} personId Person ID.
|
|
2703
|
+
* @param {number} [page] The page number to get a list of persons or groups.
|
|
2704
|
+
* @param {number} [size] The page size with a list of persons or groups, items.
|
|
2705
|
+
* @param {string} [xRequestID] Request header label.
|
|
2706
|
+
* @param {*} [options] Override http request option.
|
|
2707
|
+
* @throws {RequiredError}
|
|
2708
|
+
*/
|
|
2709
|
+
async getAllGroupsByPersonId(r, s, n, o, a) {
|
|
2710
|
+
const i = await e.getAllGroupsByPersonId(r, s, n, o, a);
|
|
2711
|
+
return T(i, m, S, t);
|
|
2712
|
+
},
|
|
2713
|
+
/**
|
|
2714
|
+
*
|
|
2715
|
+
* @summary Get person images
|
|
2716
|
+
* @param {string} personId Person ID.
|
|
2717
|
+
* @param {number} [page] The page number to get a list of persons or groups.
|
|
2718
|
+
* @param {number} [size] The page size with a list of persons or groups, items.
|
|
2719
|
+
* @param {string} [xRequestID] Request header label.
|
|
2720
|
+
* @param {*} [options] Override http request option.
|
|
2721
|
+
* @throws {RequiredError}
|
|
2722
|
+
*/
|
|
2723
|
+
async getAllImagesByPersonId(r, s, n, o, a) {
|
|
2724
|
+
const i = await e.getAllImagesByPersonId(r, s, n, o, a);
|
|
2725
|
+
return T(i, m, S, t);
|
|
2726
|
+
},
|
|
2727
|
+
/**
|
|
2728
|
+
*
|
|
2729
|
+
* @summary Get person image by id
|
|
2730
|
+
* @param {string} imageId Image ID.
|
|
2731
|
+
* @param {string} personId Person ID.
|
|
2732
|
+
* @param {string} [xRequestID] Request header label.
|
|
2733
|
+
* @param {*} [options] Override http request option.
|
|
2734
|
+
* @throws {RequiredError}
|
|
2735
|
+
*/
|
|
2736
|
+
async getImageOfPerson(r, s, n, o) {
|
|
2737
|
+
const a = await e.getImageOfPerson(r, s, n, o);
|
|
2738
|
+
return T(a, m, S, t);
|
|
2739
|
+
},
|
|
2740
|
+
/**
|
|
2741
|
+
*
|
|
2742
|
+
* @summary Get person
|
|
2743
|
+
* @param {string} personId Person ID.
|
|
2744
|
+
* @param {string} [xRequestID] Request header label.
|
|
2745
|
+
* @param {*} [options] Override http request option.
|
|
2746
|
+
* @throws {RequiredError}
|
|
2747
|
+
*/
|
|
2748
|
+
async getPerson(r, s, n) {
|
|
2749
|
+
const o = await e.getPerson(r, s, n);
|
|
2750
|
+
return T(o, m, S, t);
|
|
2751
|
+
},
|
|
2752
|
+
/**
|
|
2753
|
+
*
|
|
2754
|
+
* @summary Update person
|
|
2755
|
+
* @param {string} personId Person ID.
|
|
2756
|
+
* @param {PersonToUpdateFields} personToUpdateFields Request body for the Person to update.
|
|
2757
|
+
* @param {string} [xRequestID] Request header label.
|
|
2758
|
+
* @param {*} [options] Override http request option.
|
|
2759
|
+
* @throws {RequiredError}
|
|
2760
|
+
*/
|
|
2761
|
+
async updatePerson(r, s, n, o) {
|
|
2762
|
+
const a = await e.updatePerson(r, s, n, o);
|
|
2763
|
+
return T(a, m, S, t);
|
|
2764
|
+
}
|
|
2765
|
+
};
|
|
2766
|
+
};
|
|
2767
|
+
let Zr = class extends z {
|
|
2768
|
+
/**
|
|
2769
|
+
*
|
|
2770
|
+
* @summary Add person image
|
|
2771
|
+
* @param {string} personId Person ID.
|
|
2772
|
+
* @param {AddImageToPersonRequest} addImageToPersonRequest Image to add.
|
|
2773
|
+
* @param {string} [xRequestID] Request header label.
|
|
2774
|
+
* @param {*} [options] Override http request option.
|
|
2775
|
+
* @throws {RequiredError}
|
|
2776
|
+
* @memberof PersonApi
|
|
2777
|
+
*/
|
|
2778
|
+
addImageToPerson(e, r, s, n) {
|
|
2779
|
+
return H(this.configuration).addImageToPerson(e, r, s, n).then((o) => o(this.axios, this.basePath));
|
|
2780
|
+
}
|
|
2781
|
+
/**
|
|
2782
|
+
*
|
|
2783
|
+
* @summary Create person
|
|
2784
|
+
* @param {PersonFields} personFields
|
|
2785
|
+
* @param {string} [xRequestID] Request header label.
|
|
2786
|
+
* @param {*} [options] Override http request option.
|
|
2787
|
+
* @throws {RequiredError}
|
|
2788
|
+
* @memberof PersonApi
|
|
2789
|
+
*/
|
|
2790
|
+
createPerson(e, r, s) {
|
|
2791
|
+
return H(this.configuration).createPerson(e, r, s).then((n) => n(this.axios, this.basePath));
|
|
2792
|
+
}
|
|
2793
|
+
/**
|
|
2794
|
+
*
|
|
2795
|
+
* @summary Delete image of person
|
|
2796
|
+
* @param {string} imageId Image ID.
|
|
2797
|
+
* @param {string} personId Person ID.
|
|
2798
|
+
* @param {string} [xRequestID] Request header label.
|
|
2799
|
+
* @param {*} [options] Override http request option.
|
|
2800
|
+
* @throws {RequiredError}
|
|
2801
|
+
* @memberof PersonApi
|
|
2802
|
+
*/
|
|
2803
|
+
deleteImageOfPerson(e, r, s, n) {
|
|
2804
|
+
return H(this.configuration).deleteImageOfPerson(e, r, s, n).then((o) => o(this.axios, this.basePath));
|
|
2805
|
+
}
|
|
2806
|
+
/**
|
|
2807
|
+
*
|
|
2808
|
+
* @summary Delete person
|
|
2809
|
+
* @param {string} personId Person ID.
|
|
2810
|
+
* @param {string} [xRequestID] Request header label.
|
|
2811
|
+
* @param {*} [options] Override http request option.
|
|
2812
|
+
* @throws {RequiredError}
|
|
2813
|
+
* @memberof PersonApi
|
|
2814
|
+
*/
|
|
2815
|
+
deletePerson(e, r, s) {
|
|
2816
|
+
return H(this.configuration).deletePerson(e, r, s).then((n) => n(this.axios, this.basePath));
|
|
2817
|
+
}
|
|
2818
|
+
/**
|
|
2819
|
+
*
|
|
2820
|
+
* @summary Get person groups
|
|
2821
|
+
* @param {string} personId Person ID.
|
|
2822
|
+
* @param {number} [page] The page number to get a list of persons or groups.
|
|
2823
|
+
* @param {number} [size] The page size with a list of persons or groups, items.
|
|
2824
|
+
* @param {string} [xRequestID] Request header label.
|
|
2825
|
+
* @param {*} [options] Override http request option.
|
|
2826
|
+
* @throws {RequiredError}
|
|
2827
|
+
* @memberof PersonApi
|
|
2828
|
+
*/
|
|
2829
|
+
getAllGroupsByPersonId(e, r, s, n, o) {
|
|
2830
|
+
return H(this.configuration).getAllGroupsByPersonId(e, r, s, n, o).then((a) => a(this.axios, this.basePath));
|
|
2831
|
+
}
|
|
2832
|
+
/**
|
|
2833
|
+
*
|
|
2834
|
+
* @summary Get person images
|
|
2835
|
+
* @param {string} personId Person ID.
|
|
2836
|
+
* @param {number} [page] The page number to get a list of persons or groups.
|
|
2837
|
+
* @param {number} [size] The page size with a list of persons or groups, items.
|
|
2838
|
+
* @param {string} [xRequestID] Request header label.
|
|
2839
|
+
* @param {*} [options] Override http request option.
|
|
2840
|
+
* @throws {RequiredError}
|
|
2841
|
+
* @memberof PersonApi
|
|
2842
|
+
*/
|
|
2843
|
+
getAllImagesByPersonId(e, r, s, n, o) {
|
|
2844
|
+
return H(this.configuration).getAllImagesByPersonId(e, r, s, n, o).then((a) => a(this.axios, this.basePath));
|
|
2845
|
+
}
|
|
2846
|
+
/**
|
|
2847
|
+
*
|
|
2848
|
+
* @summary Get person image by id
|
|
2849
|
+
* @param {string} imageId Image ID.
|
|
2850
|
+
* @param {string} personId Person ID.
|
|
2851
|
+
* @param {string} [xRequestID] Request header label.
|
|
2852
|
+
* @param {*} [options] Override http request option.
|
|
2853
|
+
* @throws {RequiredError}
|
|
2854
|
+
* @memberof PersonApi
|
|
2855
|
+
*/
|
|
2856
|
+
getImageOfPerson(e, r, s, n) {
|
|
2857
|
+
return H(this.configuration).getImageOfPerson(e, r, s, n).then((o) => o(this.axios, this.basePath));
|
|
2858
|
+
}
|
|
2859
|
+
/**
|
|
2860
|
+
*
|
|
2861
|
+
* @summary Get person
|
|
2862
|
+
* @param {string} personId Person ID.
|
|
2863
|
+
* @param {string} [xRequestID] Request header label.
|
|
2864
|
+
* @param {*} [options] Override http request option.
|
|
2865
|
+
* @throws {RequiredError}
|
|
2866
|
+
* @memberof PersonApi
|
|
2867
|
+
*/
|
|
2868
|
+
getPerson(e, r, s) {
|
|
2869
|
+
return H(this.configuration).getPerson(e, r, s).then((n) => n(this.axios, this.basePath));
|
|
2870
|
+
}
|
|
2871
|
+
/**
|
|
2872
|
+
*
|
|
2873
|
+
* @summary Update person
|
|
2874
|
+
* @param {string} personId Person ID.
|
|
2875
|
+
* @param {PersonToUpdateFields} personToUpdateFields Request body for the Person to update.
|
|
2876
|
+
* @param {string} [xRequestID] Request header label.
|
|
2877
|
+
* @param {*} [options] Override http request option.
|
|
2878
|
+
* @throws {RequiredError}
|
|
2879
|
+
* @memberof PersonApi
|
|
2880
|
+
*/
|
|
2881
|
+
updatePerson(e, r, s, n) {
|
|
2882
|
+
return H(this.configuration).updatePerson(e, r, s, n).then((o) => o(this.axios, this.basePath));
|
|
2883
|
+
}
|
|
2884
|
+
};
|
|
2885
|
+
class es {
|
|
2886
|
+
constructor(e, r, s) {
|
|
2887
|
+
this.superClass = new Zr(e, r, s);
|
|
2888
|
+
}
|
|
2889
|
+
async createPerson(e, r, s) {
|
|
2890
|
+
const n = {
|
|
2891
|
+
...e,
|
|
2892
|
+
metadata: e != null && e.metadata ? e.metadata : {}
|
|
2893
|
+
};
|
|
2894
|
+
return (await this.superClass.createPerson(n, r, s)).data;
|
|
2895
|
+
}
|
|
2896
|
+
async addImageToPerson(e, r, s, n) {
|
|
2897
|
+
var a;
|
|
2898
|
+
return (a = r == null ? void 0 : r.image) != null && a.content && typeof r.image.content != "string" && (r.image.content = ie(r.image.content)), (await this.superClass.addImageToPerson(e, r, s, n)).data;
|
|
2899
|
+
}
|
|
2900
|
+
async deleteImageOfPerson(e, r, s, n) {
|
|
2901
|
+
await this.superClass.deleteImageOfPerson(e, r, s, n);
|
|
2902
|
+
}
|
|
2903
|
+
async deletePerson(e, r, s) {
|
|
2904
|
+
await this.superClass.deletePerson(e, r, s);
|
|
2905
|
+
}
|
|
2906
|
+
async getAllGroupsByPersonId(e, r, s, n, o) {
|
|
2907
|
+
return (await this.superClass.getAllGroupsByPersonId(s, e, r, n, o)).data;
|
|
2908
|
+
}
|
|
2909
|
+
async getAllImagesByPersonId(e, r, s, n, o) {
|
|
2910
|
+
return (await this.superClass.getAllImagesByPersonId(s, e, r, n, o)).data;
|
|
2911
|
+
}
|
|
2912
|
+
async getImageOfPerson(e, r, s, n) {
|
|
2913
|
+
return (await this.superClass.getImageOfPerson(e, r, s, n)).data;
|
|
2914
|
+
}
|
|
2915
|
+
async getPerson(e, r, s) {
|
|
2916
|
+
return (await this.superClass.getPerson(e, r, s)).data;
|
|
2917
|
+
}
|
|
2918
|
+
async updatePerson(e, r, s, n) {
|
|
2919
|
+
await this.superClass.updatePerson(e, r, s, n);
|
|
2920
|
+
}
|
|
2921
|
+
}
|
|
2922
|
+
const ts = function(t) {
|
|
2923
|
+
return {
|
|
2924
|
+
/**
|
|
2925
|
+
*
|
|
2926
|
+
* @summary Find person by image in groups
|
|
2927
|
+
* @param {SearchRequest} searchRequest
|
|
2928
|
+
* @param {string} [xRequestID] Request header label.
|
|
2929
|
+
* @param {*} [options] Override http request option.
|
|
2930
|
+
* @throws {RequiredError}
|
|
2931
|
+
*/
|
|
2932
|
+
search: async (e, r, s = {}) => {
|
|
2933
|
+
y("search", "searchRequest", e);
|
|
2934
|
+
const n = "/api/search", o = new URL(n, R);
|
|
2935
|
+
let a;
|
|
2936
|
+
t && (a = t.baseOptions);
|
|
2937
|
+
const i = { method: "POST", ...a, ...s }, c = {}, l = {};
|
|
2938
|
+
r != null && (c["X-RequestID"] = String(r)), c["Content-Type"] = "application/json", P(o, l);
|
|
2939
|
+
let d = a && a.headers ? a.headers : {};
|
|
2940
|
+
return i.headers = { ...c, ...d, ...s.headers }, i.data = D(e, i, t), {
|
|
2941
|
+
url: g(o),
|
|
2942
|
+
options: i
|
|
2943
|
+
};
|
|
2944
|
+
}
|
|
2945
|
+
};
|
|
2946
|
+
}, rs = function(t) {
|
|
2947
|
+
const e = ts(t);
|
|
2948
|
+
return {
|
|
2949
|
+
/**
|
|
2950
|
+
*
|
|
2951
|
+
* @summary Find person by image in groups
|
|
2952
|
+
* @param {SearchRequest} searchRequest
|
|
2953
|
+
* @param {string} [xRequestID] Request header label.
|
|
2954
|
+
* @param {*} [options] Override http request option.
|
|
2955
|
+
* @throws {RequiredError}
|
|
2956
|
+
*/
|
|
2957
|
+
async search(r, s, n) {
|
|
2958
|
+
const o = await e.search(r, s, n);
|
|
2959
|
+
return T(o, m, S, t);
|
|
2960
|
+
}
|
|
2961
|
+
};
|
|
2962
|
+
};
|
|
2963
|
+
let ss = class extends z {
|
|
2964
|
+
/**
|
|
2965
|
+
*
|
|
2966
|
+
* @summary Find person by image in groups
|
|
2967
|
+
* @param {SearchRequest} searchRequest
|
|
2968
|
+
* @param {string} [xRequestID] Request header label.
|
|
2969
|
+
* @param {*} [options] Override http request option.
|
|
2970
|
+
* @throws {RequiredError}
|
|
2971
|
+
* @memberof SearchApi
|
|
2972
|
+
*/
|
|
2973
|
+
search(e, r, s) {
|
|
2974
|
+
return rs(this.configuration).search(e, r, s).then((n) => n(this.axios, this.basePath));
|
|
2975
|
+
}
|
|
2976
|
+
};
|
|
2977
|
+
class ns {
|
|
2978
|
+
constructor(e, r, s) {
|
|
2979
|
+
this.superClass = new ss(e, r, s);
|
|
2980
|
+
}
|
|
2981
|
+
async search(e, r, s) {
|
|
2982
|
+
var o;
|
|
2983
|
+
return (o = e == null ? void 0 : e.image) != null && o.content && typeof e.image.content != "string" && (e.image.content = ie(e.image.content)), (await this.superClass.search(e, r, s)).data;
|
|
2984
|
+
}
|
|
2985
|
+
}
|
|
2986
|
+
const os = function(t) {
|
|
2987
|
+
return {
|
|
2988
|
+
/**
|
|
2989
|
+
*
|
|
2990
|
+
* @summary Checking the license status
|
|
2991
|
+
* @param {string} [xRequestID] Request header label.
|
|
2992
|
+
* @param {*} [options] Override http request option.
|
|
2993
|
+
* @throws {RequiredError}
|
|
2994
|
+
*/
|
|
2995
|
+
readiness: async (e, r = {}) => {
|
|
2996
|
+
const s = "/api/readiness", n = new URL(s, R);
|
|
2997
|
+
let o;
|
|
2998
|
+
t && (o = t.baseOptions);
|
|
2999
|
+
const a = { method: "GET", ...o, ...r }, i = {}, c = {};
|
|
3000
|
+
e != null && (i["X-RequestID"] = String(e)), P(n, c);
|
|
3001
|
+
let l = o && o.headers ? o.headers : {};
|
|
3002
|
+
return a.headers = { ...i, ...l, ...r.headers }, {
|
|
3003
|
+
url: g(n),
|
|
3004
|
+
options: a
|
|
3005
|
+
};
|
|
3006
|
+
}
|
|
3007
|
+
};
|
|
3008
|
+
}, as = function(t) {
|
|
3009
|
+
const e = os(t);
|
|
3010
|
+
return {
|
|
3011
|
+
/**
|
|
3012
|
+
*
|
|
3013
|
+
* @summary Checking the license status
|
|
3014
|
+
* @param {string} [xRequestID] Request header label.
|
|
3015
|
+
* @param {*} [options] Override http request option.
|
|
3016
|
+
* @throws {RequiredError}
|
|
3017
|
+
*/
|
|
3018
|
+
async readiness(r, s) {
|
|
3019
|
+
const n = await e.readiness(r, s);
|
|
3020
|
+
return T(n, m, S, t);
|
|
3021
|
+
}
|
|
3022
|
+
};
|
|
3023
|
+
};
|
|
3024
|
+
let is = class extends z {
|
|
3025
|
+
/**
|
|
3026
|
+
*
|
|
3027
|
+
* @summary Checking the license status
|
|
3028
|
+
* @param {string} [xRequestID] Request header label.
|
|
3029
|
+
* @param {*} [options] Override http request option.
|
|
3030
|
+
* @throws {RequiredError}
|
|
3031
|
+
* @memberof DiagnosticsApi
|
|
3032
|
+
*/
|
|
3033
|
+
readiness(e, r) {
|
|
3034
|
+
return as(this.configuration).readiness(e, r).then((s) => s(this.axios, this.basePath));
|
|
3035
|
+
}
|
|
3036
|
+
};
|
|
3037
|
+
class cs {
|
|
3038
|
+
constructor(e, r, s) {
|
|
3039
|
+
this.superClass = new is(e, r, s);
|
|
3040
|
+
}
|
|
3041
|
+
async readiness(e, r) {
|
|
3042
|
+
return (await this.superClass.readiness(e, r)).data;
|
|
3043
|
+
}
|
|
3044
|
+
}
|
|
3045
|
+
const ls = function(t) {
|
|
3046
|
+
return {
|
|
3047
|
+
/**
|
|
3048
|
+
* To verify the presence of a real person in front of a camera, use the GET `/api/v2/liveness` endpoint. When starting, you can specify `tag` which all attempts to read liveness will be bound to. If left unspecified, the application automatically generates one. The calling application returns `tag` and `transactionId`. One session may include many transactions, and from a transaction ID it is clear which session it belongs to. When specifying `tag`, note that only Latin uppercase and lowercase letters, digits, and symbols `-` and `_` are allowed. The maximum supported number of characters is 127. The metadata (device model, screen data, frame size, app ID and version, OS version, platform, SDK version, etc.), a person\'s selfie and video of the liveness detection session are stored on the backend at: `faceapi-session/year={year}/month={month}/day={day}/hour={hour}/minute={minute}/{tag}/transactionId` By default, liveness checks operate with eventual consistency. This means that when you submit a request and receive a response, the associated data (like the selfie and session video) may be saved after the response is sent. If this doesn\'t meet your requirements, you can switch to strong consistency; refer to the [Architecture page](https://docs.regulaforensics.com/develop/face-sdk/overview/architecture/#consistency-models) for details. To access the liveness transaction data, use GET `/api/v2/liveness?transactionId={transactionId}`.
|
|
3049
|
+
* @summary liveness check
|
|
3050
|
+
* @param {string} transactionId ID of the current liveness transaction.
|
|
3051
|
+
* @param {*} [options] Override http request option.
|
|
3052
|
+
* @throws {RequiredError}
|
|
3053
|
+
*/
|
|
3054
|
+
getLivenessTransactionInfo: async (e, r = {}) => {
|
|
3055
|
+
y("getLivenessTransactionInfo", "transactionId", e);
|
|
3056
|
+
const s = "/api/v2/liveness", n = new URL(s, R);
|
|
3057
|
+
let o;
|
|
3058
|
+
t && (o = t.baseOptions);
|
|
3059
|
+
const a = { method: "GET", ...o, ...r }, i = {}, c = {};
|
|
3060
|
+
e !== void 0 && (c.transactionId = e), P(n, c);
|
|
3061
|
+
let l = o && o.headers ? o.headers : {};
|
|
3062
|
+
return a.headers = { ...i, ...l, ...r.headers }, {
|
|
3063
|
+
url: g(n),
|
|
3064
|
+
options: a
|
|
3065
|
+
};
|
|
3066
|
+
}
|
|
3067
|
+
};
|
|
3068
|
+
}, us = function(t) {
|
|
3069
|
+
const e = ls(t);
|
|
3070
|
+
return {
|
|
3071
|
+
/**
|
|
3072
|
+
* To verify the presence of a real person in front of a camera, use the GET `/api/v2/liveness` endpoint. When starting, you can specify `tag` which all attempts to read liveness will be bound to. If left unspecified, the application automatically generates one. The calling application returns `tag` and `transactionId`. One session may include many transactions, and from a transaction ID it is clear which session it belongs to. When specifying `tag`, note that only Latin uppercase and lowercase letters, digits, and symbols `-` and `_` are allowed. The maximum supported number of characters is 127. The metadata (device model, screen data, frame size, app ID and version, OS version, platform, SDK version, etc.), a person\'s selfie and video of the liveness detection session are stored on the backend at: `faceapi-session/year={year}/month={month}/day={day}/hour={hour}/minute={minute}/{tag}/transactionId` By default, liveness checks operate with eventual consistency. This means that when you submit a request and receive a response, the associated data (like the selfie and session video) may be saved after the response is sent. If this doesn\'t meet your requirements, you can switch to strong consistency; refer to the [Architecture page](https://docs.regulaforensics.com/develop/face-sdk/overview/architecture/#consistency-models) for details. To access the liveness transaction data, use GET `/api/v2/liveness?transactionId={transactionId}`.
|
|
3073
|
+
* @summary liveness check
|
|
3074
|
+
* @param {string} transactionId ID of the current liveness transaction.
|
|
3075
|
+
* @param {*} [options] Override http request option.
|
|
3076
|
+
* @throws {RequiredError}
|
|
3077
|
+
*/
|
|
3078
|
+
async getLivenessTransactionInfo(r, s) {
|
|
3079
|
+
const n = await e.getLivenessTransactionInfo(r, s);
|
|
3080
|
+
return T(n, m, S, t);
|
|
3081
|
+
}
|
|
3082
|
+
};
|
|
3083
|
+
};
|
|
3084
|
+
let ds = class extends z {
|
|
3085
|
+
/**
|
|
3086
|
+
* To verify the presence of a real person in front of a camera, use the GET `/api/v2/liveness` endpoint. When starting, you can specify `tag` which all attempts to read liveness will be bound to. If left unspecified, the application automatically generates one. The calling application returns `tag` and `transactionId`. One session may include many transactions, and from a transaction ID it is clear which session it belongs to. When specifying `tag`, note that only Latin uppercase and lowercase letters, digits, and symbols `-` and `_` are allowed. The maximum supported number of characters is 127. The metadata (device model, screen data, frame size, app ID and version, OS version, platform, SDK version, etc.), a person\'s selfie and video of the liveness detection session are stored on the backend at: `faceapi-session/year={year}/month={month}/day={day}/hour={hour}/minute={minute}/{tag}/transactionId` By default, liveness checks operate with eventual consistency. This means that when you submit a request and receive a response, the associated data (like the selfie and session video) may be saved after the response is sent. If this doesn\'t meet your requirements, you can switch to strong consistency; refer to the [Architecture page](https://docs.regulaforensics.com/develop/face-sdk/overview/architecture/#consistency-models) for details. To access the liveness transaction data, use GET `/api/v2/liveness?transactionId={transactionId}`.
|
|
3087
|
+
* @summary liveness check
|
|
3088
|
+
* @param {string} transactionId ID of the current liveness transaction.
|
|
3089
|
+
* @param {*} [options] Override http request option.
|
|
3090
|
+
* @throws {RequiredError}
|
|
3091
|
+
* @memberof Liveness20Api
|
|
3092
|
+
*/
|
|
3093
|
+
getLivenessTransactionInfo(e, r) {
|
|
3094
|
+
return us(this.configuration).getLivenessTransactionInfo(e, r).then((s) => s(this.axios, this.basePath));
|
|
3095
|
+
}
|
|
3096
|
+
};
|
|
3097
|
+
class ps {
|
|
3098
|
+
constructor(e, r, s) {
|
|
3099
|
+
this.superClass = new ds(e, r, s);
|
|
3100
|
+
}
|
|
3101
|
+
async getLivenessTransactionInfo(e, r) {
|
|
3102
|
+
return (await this.superClass.getLivenessTransactionInfo(e, r)).data;
|
|
3103
|
+
}
|
|
3104
|
+
}
|
|
3105
|
+
class Ks {
|
|
3106
|
+
constructor(e, r = S, s = m) {
|
|
3107
|
+
this.basePath = r, this.axios = s, this.matchApi = new Wr(e, r, s), this.groupApi = new Jr(e, r, s), this.personApi = new es(e, r, s), this.searchApi = new ns(e, r, s), this.diagnosticsApi = new cs(e, r, s), this.livenessApi = new ps(e, r, s);
|
|
3108
|
+
}
|
|
3109
|
+
}
|
|
3110
|
+
const hs = function(t) {
|
|
3111
|
+
return {
|
|
3112
|
+
/**
|
|
3113
|
+
*
|
|
3114
|
+
* @summary Server healthcheck
|
|
3115
|
+
* @param {string} [xRequestID] Request header label.
|
|
3116
|
+
* @param {*} [options] Override http request option.
|
|
3117
|
+
* @throws {RequiredError}
|
|
3118
|
+
*/
|
|
3119
|
+
healthz: async (e, r = {}) => {
|
|
3120
|
+
const s = "/api/healthz", n = new URL(s, R);
|
|
3121
|
+
let o;
|
|
3122
|
+
t && (o = t.baseOptions);
|
|
3123
|
+
const a = { method: "GET", ...o, ...r }, i = {}, c = {};
|
|
3124
|
+
e != null && (i["X-RequestID"] = String(e)), P(n, c);
|
|
3125
|
+
let l = o && o.headers ? o.headers : {};
|
|
3126
|
+
return a.headers = { ...i, ...l, ...r.headers }, {
|
|
3127
|
+
url: g(n),
|
|
3128
|
+
options: a
|
|
3129
|
+
};
|
|
3130
|
+
},
|
|
3131
|
+
/**
|
|
3132
|
+
*
|
|
3133
|
+
* @summary License healthcheck
|
|
3134
|
+
* @param {string} [xRequestID] Request header label.
|
|
3135
|
+
* @param {*} [options] Override http request option.
|
|
3136
|
+
* @throws {RequiredError}
|
|
3137
|
+
*/
|
|
3138
|
+
readyz: async (e, r = {}) => {
|
|
3139
|
+
const s = "/api/readyz", n = new URL(s, R);
|
|
3140
|
+
let o;
|
|
3141
|
+
t && (o = t.baseOptions);
|
|
3142
|
+
const a = { method: "GET", ...o, ...r }, i = {}, c = {};
|
|
3143
|
+
e != null && (i["X-RequestID"] = String(e)), P(n, c);
|
|
3144
|
+
let l = o && o.headers ? o.headers : {};
|
|
3145
|
+
return a.headers = { ...i, ...l, ...r.headers }, {
|
|
3146
|
+
url: g(n),
|
|
3147
|
+
options: a
|
|
3148
|
+
};
|
|
3149
|
+
}
|
|
3150
|
+
};
|
|
3151
|
+
}, je = function(t) {
|
|
3152
|
+
const e = hs(t);
|
|
3153
|
+
return {
|
|
3154
|
+
/**
|
|
3155
|
+
*
|
|
3156
|
+
* @summary Server healthcheck
|
|
3157
|
+
* @param {string} [xRequestID] Request header label.
|
|
3158
|
+
* @param {*} [options] Override http request option.
|
|
3159
|
+
* @throws {RequiredError}
|
|
3160
|
+
*/
|
|
3161
|
+
async healthz(r, s) {
|
|
3162
|
+
const n = await e.healthz(r, s);
|
|
3163
|
+
return T(n, m, S, t);
|
|
3164
|
+
},
|
|
3165
|
+
/**
|
|
3166
|
+
*
|
|
3167
|
+
* @summary License healthcheck
|
|
3168
|
+
* @param {string} [xRequestID] Request header label.
|
|
3169
|
+
* @param {*} [options] Override http request option.
|
|
3170
|
+
* @throws {RequiredError}
|
|
3171
|
+
*/
|
|
3172
|
+
async readyz(r, s) {
|
|
3173
|
+
const n = await e.readyz(r, s);
|
|
3174
|
+
return T(n, m, S, t);
|
|
3175
|
+
}
|
|
3176
|
+
};
|
|
3177
|
+
};
|
|
3178
|
+
let fs = class extends z {
|
|
3179
|
+
/**
|
|
3180
|
+
*
|
|
3181
|
+
* @summary Server healthcheck
|
|
3182
|
+
* @param {string} [xRequestID] Request header label.
|
|
3183
|
+
* @param {*} [options] Override http request option.
|
|
3184
|
+
* @throws {RequiredError}
|
|
3185
|
+
* @memberof HealthcheckApi
|
|
3186
|
+
*/
|
|
3187
|
+
healthz(e, r) {
|
|
3188
|
+
return je(this.configuration).healthz(e, r).then((s) => s(this.axios, this.basePath));
|
|
3189
|
+
}
|
|
3190
|
+
/**
|
|
3191
|
+
*
|
|
3192
|
+
* @summary License healthcheck
|
|
3193
|
+
* @param {string} [xRequestID] Request header label.
|
|
3194
|
+
* @param {*} [options] Override http request option.
|
|
3195
|
+
* @throws {RequiredError}
|
|
3196
|
+
* @memberof HealthcheckApi
|
|
3197
|
+
*/
|
|
3198
|
+
readyz(e, r) {
|
|
3199
|
+
return je(this.configuration).readyz(e, r).then((s) => s(this.axios, this.basePath));
|
|
3200
|
+
}
|
|
3201
|
+
};
|
|
3202
|
+
class Js {
|
|
3203
|
+
constructor(e, r, s) {
|
|
3204
|
+
this.superClass = new fs(e, r, s);
|
|
3205
|
+
}
|
|
3206
|
+
async healthz(e, r) {
|
|
3207
|
+
return (await this.superClass.healthz(e, r)).data;
|
|
3208
|
+
}
|
|
3209
|
+
async readyz(e, r) {
|
|
3210
|
+
return (await this.superClass.readyz(e, r)).data;
|
|
3211
|
+
}
|
|
3212
|
+
}
|
|
3213
|
+
class Ys {
|
|
3214
|
+
constructor(e = {}) {
|
|
3215
|
+
this.apiKey = e.apiKey, this.username = e.username, this.password = e.password, this.accessToken = e.accessToken, this.basePath = e.basePath, this.baseOptions = e.baseOptions, this.formDataCtor = e.formDataCtor;
|
|
3216
|
+
}
|
|
3217
|
+
/**
|
|
3218
|
+
* Check if the given MIME is a JSON MIME.
|
|
3219
|
+
* JSON MIME examples:
|
|
3220
|
+
* application/json
|
|
3221
|
+
* application/json; charset=UTF8
|
|
3222
|
+
* APPLICATION/JSON
|
|
3223
|
+
* application/vnd.company+json
|
|
3224
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
3225
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
3226
|
+
*/
|
|
3227
|
+
isJsonMime(e) {
|
|
3228
|
+
const r = new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$", "i");
|
|
3229
|
+
return e !== null && (r.test(e) || e.toLowerCase() === "application/json-patch+json");
|
|
3230
|
+
}
|
|
3231
|
+
}
|
|
3232
|
+
export {
|
|
3233
|
+
Ys as Configuration,
|
|
3234
|
+
cs as DiagnosticsApi,
|
|
3235
|
+
Vs as FaceAttribute,
|
|
3236
|
+
Ds as FaceImageQualityAlignType,
|
|
3237
|
+
Gs as FaceImageQualityGroups,
|
|
3238
|
+
Hs as FaceImageQualityGroupsStrings,
|
|
3239
|
+
xs as FaceImageQualityStatus,
|
|
3240
|
+
Bs as FaceQualityConfigName,
|
|
3241
|
+
Ms as FaceQualityScenarios,
|
|
3242
|
+
js as FaceSDKResultCode,
|
|
3243
|
+
Ks as FaceSdk,
|
|
3244
|
+
ks as FilterOp,
|
|
3245
|
+
Jr as GroupApi,
|
|
3246
|
+
Js as HealthcheckApi,
|
|
3247
|
+
qr as ImageSource,
|
|
3248
|
+
ps as Liveness20Api,
|
|
3249
|
+
vs as LivenessType,
|
|
3250
|
+
Wr as MatchApi,
|
|
3251
|
+
es as PersonApi,
|
|
3252
|
+
ns as SearchApi
|
|
3253
|
+
};
|