@regulaforensics/facesdk-webclient 8.2.598-nightly → 8.2.600-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.js CHANGED
@@ -1,26 +1,26 @@
1
- function lt(e, t) {
1
+ function dt(e, t) {
2
2
  return function() {
3
3
  return e.apply(t, arguments);
4
4
  };
5
5
  }
6
- const { toString: Nt } = Object.prototype, { getPrototypeOf: Ue } = Object, { iterator: Oe, toStringTag: ct } = Symbol, _e = /* @__PURE__ */ ((e) => (t) => {
7
- const r = Nt.call(t);
6
+ const { toString: Dt } = Object.prototype, { getPrototypeOf: xe } = Object, { iterator: Oe, toStringTag: ut } = Symbol, _e = /* @__PURE__ */ ((e) => (t) => {
7
+ const r = Dt.call(t);
8
8
  return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
9
- })(/* @__PURE__ */ Object.create(null)), G = (e) => (e = e.toLowerCase(), (t) => _e(t) === e), me = (e) => (t) => typeof t === e, { isArray: K } = Array, Z = me("undefined");
9
+ })(/* @__PURE__ */ Object.create(null)), G = (e) => (e = e.toLowerCase(), (t) => _e(t) === e), Re = (e) => (t) => typeof t === e, { isArray: K } = Array, Z = Re("undefined");
10
10
  function re(e) {
11
11
  return e !== null && !Z(e) && e.constructor !== null && !Z(e.constructor) && N(e.constructor.isBuffer) && e.constructor.isBuffer(e);
12
12
  }
13
- const dt = G("ArrayBuffer");
14
- function Ut(e) {
13
+ const pt = G("ArrayBuffer");
14
+ function Bt(e) {
15
15
  let t;
16
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && dt(e.buffer), t;
16
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && pt(e.buffer), t;
17
17
  }
18
- const xt = me("string"), N = me("function"), ut = me("number"), se = (e) => e !== null && typeof e == "object", Dt = (e) => e === !0 || e === !1, pe = (e) => {
18
+ const Ht = Re("string"), N = Re("function"), ht = Re("number"), se = (e) => e !== null && typeof e == "object", Gt = (e) => e === !0 || e === !1, pe = (e) => {
19
19
  if (_e(e) !== "object")
20
20
  return !1;
21
- const t = Ue(e);
22
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ct in e) && !(Oe in e);
23
- }, Bt = (e) => {
21
+ const t = xe(e);
22
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ut in e) && !(Oe in e);
23
+ }, Mt = (e) => {
24
24
  if (!se(e) || re(e))
25
25
  return !1;
26
26
  try {
@@ -28,16 +28,20 @@ const xt = me("string"), N = me("function"), ut = me("number"), se = (e) => e !=
28
28
  } catch {
29
29
  return !1;
30
30
  }
31
- }, Ht = G("Date"), Gt = G("File"), Mt = G("Blob"), vt = G("FileList"), jt = (e) => se(e) && N(e.pipe), kt = (e) => {
31
+ }, vt = G("Date"), jt = G("File"), kt = (e) => !!(e && typeof e.uri < "u"), Ft = (e) => e && typeof e.getParts < "u", qt = G("Blob"), $t = G("FileList"), zt = (e) => se(e) && N(e.pipe);
32
+ function Wt() {
33
+ return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
34
+ }
35
+ const $e = Wt(), ze = typeof $e.FormData < "u" ? $e.FormData : void 0, Yt = (e) => {
32
36
  let t;
33
- return e && (typeof FormData == "function" && e instanceof FormData || N(e.append) && ((t = _e(e)) === "formdata" || // detect form-data instance
37
+ return e && (ze && e instanceof ze || N(e.append) && ((t = _e(e)) === "formdata" || // detect form-data instance
34
38
  t === "object" && N(e.toString) && e.toString() === "[object FormData]"));
35
- }, Ft = G("URLSearchParams"), [qt, $t, zt, Wt] = [
39
+ }, Xt = G("URLSearchParams"), [Jt, Zt, Kt, Qt] = [
36
40
  "ReadableStream",
37
41
  "Request",
38
42
  "Response",
39
43
  "Headers"
40
- ].map(G), Yt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
44
+ ].map(G), er = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
41
45
  function ne(e, t, { allOwnKeys: r = !1 } = {}) {
42
46
  if (e === null || typeof e > "u")
43
47
  return;
@@ -54,7 +58,7 @@ function ne(e, t, { allOwnKeys: r = !1 } = {}) {
54
58
  i = o[s], t.call(null, e[i], i, e);
55
59
  }
56
60
  }
57
- function pt(e, t) {
61
+ function ft(e, t) {
58
62
  if (re(e))
59
63
  return null;
60
64
  t = t.toLowerCase();
@@ -65,23 +69,23 @@ function pt(e, t) {
65
69
  return n;
66
70
  return null;
67
71
  }
68
- const z = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ht = (e) => !Z(e) && e !== z;
69
- function Ce() {
70
- const { caseless: e, skipUndefined: t } = ht(this) && this || {}, r = {}, s = (n, o) => {
72
+ const z = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Et = (e) => !Z(e) && e !== z;
73
+ function Le() {
74
+ const { caseless: e, skipUndefined: t } = Et(this) && this || {}, r = {}, s = (n, o) => {
71
75
  if (o === "__proto__" || o === "constructor" || o === "prototype")
72
76
  return;
73
- const a = e && pt(r, o) || o;
74
- pe(r[a]) && pe(n) ? r[a] = Ce(r[a], n) : pe(n) ? r[a] = Ce({}, n) : K(n) ? r[a] = n.slice() : (!t || !Z(n)) && (r[a] = n);
77
+ const a = e && ft(r, o) || o;
78
+ pe(r[a]) && pe(n) ? r[a] = Le(r[a], n) : pe(n) ? r[a] = Le({}, n) : K(n) ? r[a] = n.slice() : (!t || !Z(n)) && (r[a] = n);
75
79
  };
76
80
  for (let n = 0, o = arguments.length; n < o; n++)
77
81
  arguments[n] && ne(arguments[n], s);
78
82
  return r;
79
83
  }
80
- const Xt = (e, t, r, { allOwnKeys: s } = {}) => (ne(
84
+ const tr = (e, t, r, { allOwnKeys: s } = {}) => (ne(
81
85
  t,
82
86
  (n, o) => {
83
87
  r && N(n) ? Object.defineProperty(e, o, {
84
- value: lt(n, r),
88
+ value: dt(n, r),
85
89
  writable: !0,
86
90
  enumerable: !0,
87
91
  configurable: !0
@@ -93,11 +97,8 @@ const Xt = (e, t, r, { allOwnKeys: s } = {}) => (ne(
93
97
  });
94
98
  },
95
99
  { allOwnKeys: s }
96
- ), e), Jt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Zt = (e, t, r, s) => {
97
- e.prototype = Object.create(
98
- t.prototype,
99
- s
100
- ), Object.defineProperty(e.prototype, "constructor", {
100
+ ), e), rr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), sr = (e, t, r, s) => {
101
+ e.prototype = Object.create(t.prototype, s), Object.defineProperty(e.prototype, "constructor", {
101
102
  value: e,
102
103
  writable: !0,
103
104
  enumerable: !1,
@@ -105,52 +106,52 @@ const Xt = (e, t, r, { allOwnKeys: s } = {}) => (ne(
105
106
  }), Object.defineProperty(e, "super", {
106
107
  value: t.prototype
107
108
  }), r && Object.assign(e.prototype, r);
108
- }, Kt = (e, t, r, s) => {
109
+ }, nr = (e, t, r, s) => {
109
110
  let n, o, a;
110
111
  const i = {};
111
112
  if (t = t || {}, e == null) return t;
112
113
  do {
113
114
  for (n = Object.getOwnPropertyNames(e), o = n.length; o-- > 0; )
114
115
  a = n[o], (!s || s(a, e, t)) && !i[a] && (t[a] = e[a], i[a] = !0);
115
- e = r !== !1 && Ue(e);
116
+ e = r !== !1 && xe(e);
116
117
  } while (e && (!r || r(e, t)) && e !== Object.prototype);
117
118
  return t;
118
- }, Qt = (e, t, r) => {
119
+ }, or = (e, t, r) => {
119
120
  e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
120
121
  const s = e.indexOf(t, r);
121
122
  return s !== -1 && s === r;
122
- }, er = (e) => {
123
+ }, ar = (e) => {
123
124
  if (!e) return null;
124
125
  if (K(e)) return e;
125
126
  let t = e.length;
126
- if (!ut(t)) return null;
127
+ if (!ht(t)) return null;
127
128
  const r = new Array(t);
128
129
  for (; t-- > 0; )
129
130
  r[t] = e[t];
130
131
  return r;
131
- }, tr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ue(Uint8Array)), rr = (e, t) => {
132
+ }, ir = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && xe(Uint8Array)), lr = (e, t) => {
132
133
  const s = (e && e[Oe]).call(e);
133
134
  let n;
134
135
  for (; (n = s.next()) && !n.done; ) {
135
136
  const o = n.value;
136
137
  t.call(e, o[0], o[1]);
137
138
  }
138
- }, sr = (e, t) => {
139
+ }, cr = (e, t) => {
139
140
  let r;
140
141
  const s = [];
141
142
  for (; (r = e.exec(t)) !== null; )
142
143
  s.push(r);
143
144
  return s;
144
- }, nr = G("HTMLFormElement"), or = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(r, s, n) {
145
+ }, dr = G("HTMLFormElement"), ur = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(r, s, n) {
145
146
  return s.toUpperCase() + n;
146
- }), qe = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), ar = G("RegExp"), ft = (e, t) => {
147
+ }), We = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), pr = G("RegExp"), At = (e, t) => {
147
148
  const r = Object.getOwnPropertyDescriptors(e), s = {};
148
149
  ne(r, (n, o) => {
149
150
  let a;
150
151
  (a = t(n, o, e)) !== !1 && (s[o] = a || n);
151
152
  }), Object.defineProperties(e, s);
152
- }, ir = (e) => {
153
- ft(e, (t, r) => {
153
+ }, hr = (e) => {
154
+ At(e, (t, r) => {
154
155
  if (N(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
155
156
  return !1;
156
157
  const s = e[r];
@@ -164,19 +165,19 @@ const Xt = (e, t, r, { allOwnKeys: s } = {}) => (ne(
164
165
  });
165
166
  }
166
167
  });
167
- }, lr = (e, t) => {
168
+ }, fr = (e, t) => {
168
169
  const r = {}, s = (n) => {
169
170
  n.forEach((o) => {
170
171
  r[o] = !0;
171
172
  });
172
173
  };
173
174
  return K(e) ? s(e) : s(String(e).split(t)), r;
174
- }, cr = () => {
175
- }, dr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
176
- function ur(e) {
177
- return !!(e && N(e.append) && e[ct] === "FormData" && e[Oe]);
175
+ }, Er = () => {
176
+ }, Ar = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
177
+ function Or(e) {
178
+ return !!(e && N(e.append) && e[ut] === "FormData" && e[Oe]);
178
179
  }
179
- const pr = (e) => {
180
+ const _r = (e) => {
180
181
  const t = new Array(10), r = (s, n) => {
181
182
  if (se(s)) {
182
183
  if (t.indexOf(s) >= 0)
@@ -195,7 +196,7 @@ const pr = (e) => {
195
196
  return s;
196
197
  };
197
198
  return r(e, 0);
198
- }, hr = G("AsyncFunction"), fr = (e) => e && (se(e) || N(e)) && N(e.then) && N(e.catch), Et = ((e, t) => e ? setImmediate : t ? ((r, s) => (z.addEventListener(
199
+ }, Rr = G("AsyncFunction"), mr = (e) => e && (se(e) || N(e)) && N(e.then) && N(e.catch), Ot = ((e, t) => e ? setImmediate : t ? ((r, s) => (z.addEventListener(
199
200
  "message",
200
201
  ({ source: n, data: o }) => {
201
202
  n === z && o === r && s.length && s.shift()();
@@ -203,70 +204,72 @@ const pr = (e) => {
203
204
  !1
204
205
  ), (n) => {
205
206
  s.push(n), z.postMessage(r, "*");
206
- }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", N(z.postMessage)), Er = typeof queueMicrotask < "u" ? queueMicrotask.bind(z) : typeof process < "u" && process.nextTick || Et, Ar = (e) => e != null && N(e[Oe]), u = {
207
+ }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", N(z.postMessage)), Tr = typeof queueMicrotask < "u" ? queueMicrotask.bind(z) : typeof process < "u" && process.nextTick || Ot, Pr = (e) => e != null && N(e[Oe]), u = {
207
208
  isArray: K,
208
- isArrayBuffer: dt,
209
+ isArrayBuffer: pt,
209
210
  isBuffer: re,
210
- isFormData: kt,
211
- isArrayBufferView: Ut,
212
- isString: xt,
213
- isNumber: ut,
214
- isBoolean: Dt,
211
+ isFormData: Yt,
212
+ isArrayBufferView: Bt,
213
+ isString: Ht,
214
+ isNumber: ht,
215
+ isBoolean: Gt,
215
216
  isObject: se,
216
217
  isPlainObject: pe,
217
- isEmptyObject: Bt,
218
- isReadableStream: qt,
219
- isRequest: $t,
220
- isResponse: zt,
221
- isHeaders: Wt,
218
+ isEmptyObject: Mt,
219
+ isReadableStream: Jt,
220
+ isRequest: Zt,
221
+ isResponse: Kt,
222
+ isHeaders: Qt,
222
223
  isUndefined: Z,
223
- isDate: Ht,
224
- isFile: Gt,
225
- isBlob: Mt,
226
- isRegExp: ar,
224
+ isDate: vt,
225
+ isFile: jt,
226
+ isReactNativeBlob: kt,
227
+ isReactNative: Ft,
228
+ isBlob: qt,
229
+ isRegExp: pr,
227
230
  isFunction: N,
228
- isStream: jt,
229
- isURLSearchParams: Ft,
230
- isTypedArray: tr,
231
- isFileList: vt,
231
+ isStream: zt,
232
+ isURLSearchParams: Xt,
233
+ isTypedArray: ir,
234
+ isFileList: $t,
232
235
  forEach: ne,
233
- merge: Ce,
234
- extend: Xt,
235
- trim: Yt,
236
- stripBOM: Jt,
237
- inherits: Zt,
238
- toFlatObject: Kt,
236
+ merge: Le,
237
+ extend: tr,
238
+ trim: er,
239
+ stripBOM: rr,
240
+ inherits: sr,
241
+ toFlatObject: nr,
239
242
  kindOf: _e,
240
243
  kindOfTest: G,
241
- endsWith: Qt,
242
- toArray: er,
243
- forEachEntry: rr,
244
- matchAll: sr,
245
- isHTMLForm: nr,
246
- hasOwnProperty: qe,
247
- hasOwnProp: qe,
244
+ endsWith: or,
245
+ toArray: ar,
246
+ forEachEntry: lr,
247
+ matchAll: cr,
248
+ isHTMLForm: dr,
249
+ hasOwnProperty: We,
250
+ hasOwnProp: We,
248
251
  // an alias to avoid ESLint no-prototype-builtins detection
249
- reduceDescriptors: ft,
250
- freezeMethods: ir,
251
- toObjectSet: lr,
252
- toCamelCase: or,
253
- noop: cr,
254
- toFiniteNumber: dr,
255
- findKey: pt,
252
+ reduceDescriptors: At,
253
+ freezeMethods: hr,
254
+ toObjectSet: fr,
255
+ toCamelCase: ur,
256
+ noop: Er,
257
+ toFiniteNumber: Ar,
258
+ findKey: ft,
256
259
  global: z,
257
- isContextDefined: ht,
258
- isSpecCompliantForm: ur,
259
- toJSONObject: pr,
260
- isAsyncFn: hr,
261
- isThenable: fr,
262
- setImmediate: Et,
263
- asap: Er,
264
- isIterable: Ar
260
+ isContextDefined: Et,
261
+ isSpecCompliantForm: Or,
262
+ toJSONObject: _r,
263
+ isAsyncFn: Rr,
264
+ isThenable: mr,
265
+ setImmediate: Ot,
266
+ asap: Tr,
267
+ isIterable: Pr
265
268
  };
266
- let A = class At extends Error {
269
+ let A = class _t extends Error {
267
270
  static from(t, r, s, n, o, a) {
268
- const i = new At(t.message, r || t.code, s, n, o);
269
- return i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
271
+ const i = new _t(t.message, r || t.code, s, n, o);
272
+ return i.cause = t, i.name = t.name, t.status != null && i.status == null && (i.status = t.status), a && Object.assign(i, a), i;
270
273
  }
271
274
  /**
272
275
  * Create an Error with the specified message, config, error code, request and response.
@@ -280,7 +283,12 @@ let A = class At extends Error {
280
283
  * @returns {Error} The created error.
281
284
  */
282
285
  constructor(t, r, s, n, o) {
283
- super(t), this.name = "AxiosError", this.isAxiosError = !0, r && (this.code = r), s && (this.config = s), n && (this.request = n), o && (this.response = o, this.status = o.status);
286
+ super(t), Object.defineProperty(this, "message", {
287
+ value: t,
288
+ enumerable: !0,
289
+ writable: !0,
290
+ configurable: !0
291
+ }), this.name = "AxiosError", this.isAxiosError = !0, r && (this.code = r), s && (this.config = s), n && (this.request = n), o && (this.response = o, this.status = o.status);
284
292
  }
285
293
  toJSON() {
286
294
  return {
@@ -314,34 +322,39 @@ A.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
314
322
  A.ERR_CANCELED = "ERR_CANCELED";
315
323
  A.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
316
324
  A.ERR_INVALID_URL = "ERR_INVALID_URL";
317
- const Or = null;
318
- function Le(e) {
325
+ const Ir = null;
326
+ function ge(e) {
319
327
  return u.isPlainObject(e) || u.isArray(e);
320
328
  }
321
- function Ot(e) {
329
+ function Rt(e) {
322
330
  return u.endsWith(e, "[]") ? e.slice(0, -2) : e;
323
331
  }
324
- function $e(e, t, r) {
332
+ function Se(e, t, r) {
325
333
  return e ? e.concat(t).map(function(n, o) {
326
- return n = Ot(n), !r && o ? "[" + n + "]" : n;
334
+ return n = Rt(n), !r && o ? "[" + n + "]" : n;
327
335
  }).join(r ? "." : "") : t;
328
336
  }
329
- function _r(e) {
330
- return u.isArray(e) && !e.some(Le);
337
+ function Sr(e) {
338
+ return u.isArray(e) && !e.some(ge);
331
339
  }
332
- const mr = u.toFlatObject(u, {}, null, function(t) {
340
+ const br = u.toFlatObject(u, {}, null, function(t) {
333
341
  return /^is[A-Z]/.test(t);
334
342
  });
335
- function Re(e, t, r) {
343
+ function me(e, t, r) {
336
344
  if (!u.isObject(e))
337
345
  throw new TypeError("target must be an object");
338
- t = t || new FormData(), r = u.toFlatObject(r, {
339
- metaTokens: !0,
340
- dots: !1,
341
- indexes: !1
342
- }, !1, function(E, f) {
343
- return !u.isUndefined(f[E]);
344
- });
346
+ t = t || new FormData(), r = u.toFlatObject(
347
+ r,
348
+ {
349
+ metaTokens: !0,
350
+ dots: !1,
351
+ indexes: !1
352
+ },
353
+ !1,
354
+ function(E, f) {
355
+ return !u.isUndefined(f[E]);
356
+ }
357
+ );
345
358
  const s = r.metaTokens, n = r.visitor || d, o = r.dots, a = r.indexes, l = (r.Blob || typeof Blob < "u" && Blob) && u.isSpecCompliantForm(t);
346
359
  if (!u.isFunction(n))
347
360
  throw new TypeError("visitor must be a function");
@@ -357,37 +370,33 @@ function Re(e, t, r) {
357
370
  }
358
371
  function d(h, E, f) {
359
372
  let w = h;
373
+ if (u.isReactNative(t) && u.isReactNativeBlob(h))
374
+ return t.append(Se(f, E, o), c(h)), !1;
360
375
  if (h && !f && typeof h == "object") {
361
376
  if (u.endsWith(E, "{}"))
362
377
  E = s ? E : E.slice(0, -2), h = JSON.stringify(h);
363
- else if (u.isArray(h) && _r(h) || (u.isFileList(h) || u.endsWith(E, "[]")) && (w = u.toArray(h)))
364
- return E = Ot(E), w.forEach(function(y, V) {
378
+ else if (u.isArray(h) && Sr(h) || (u.isFileList(h) || u.endsWith(E, "[]")) && (w = u.toArray(h)))
379
+ return E = Rt(E), w.forEach(function(y, g) {
365
380
  !(u.isUndefined(y) || y === null) && t.append(
366
381
  // eslint-disable-next-line no-nested-ternary
367
- a === !0 ? $e([E], V, o) : a === null ? E : E + "[]",
382
+ a === !0 ? Se([E], g, o) : a === null ? E : E + "[]",
368
383
  c(y)
369
384
  );
370
385
  }), !1;
371
386
  }
372
- return Le(h) ? !0 : (t.append($e(f, E, o), c(h)), !1);
387
+ return ge(h) ? !0 : (t.append(Se(f, E, o), c(h)), !1);
373
388
  }
374
- const p = [], _ = Object.assign(mr, {
389
+ const p = [], _ = Object.assign(br, {
375
390
  defaultVisitor: d,
376
391
  convertValue: c,
377
- isVisitable: Le
392
+ isVisitable: ge
378
393
  });
379
394
  function C(h, E) {
380
395
  if (!u.isUndefined(h)) {
381
396
  if (p.indexOf(h) !== -1)
382
397
  throw Error("Circular reference detected in " + E.join("."));
383
398
  p.push(h), u.forEach(h, function(w, x) {
384
- (!(u.isUndefined(w) || w === null) && n.call(
385
- t,
386
- w,
387
- u.isString(x) ? x.trim() : x,
388
- E,
389
- _
390
- )) === !0 && C(w, E ? E.concat(x) : [x]);
399
+ (!(u.isUndefined(w) || w === null) && n.call(t, w, u.isString(x) ? x.trim() : x, E, _)) === !0 && C(w, E ? E.concat(x) : [x]);
391
400
  }), p.pop();
392
401
  }
393
402
  }
@@ -395,7 +404,7 @@ function Re(e, t, r) {
395
404
  throw new TypeError("data must be an object");
396
405
  return C(e), t;
397
406
  }
398
- function ze(e) {
407
+ function Ye(e) {
399
408
  const t = {
400
409
  "!": "%21",
401
410
  "'": "%27",
@@ -409,38 +418,38 @@ function ze(e) {
409
418
  return t[s];
410
419
  });
411
420
  }
412
- function xe(e, t) {
413
- this._pairs = [], e && Re(e, this, t);
421
+ function De(e, t) {
422
+ this._pairs = [], e && me(e, this, t);
414
423
  }
415
- const _t = xe.prototype;
416
- _t.append = function(t, r) {
424
+ const mt = De.prototype;
425
+ mt.append = function(t, r) {
417
426
  this._pairs.push([t, r]);
418
427
  };
419
- _t.toString = function(t) {
428
+ mt.toString = function(t) {
420
429
  const r = t ? function(s) {
421
- return t.call(this, s, ze);
422
- } : ze;
430
+ return t.call(this, s, Ye);
431
+ } : Ye;
423
432
  return this._pairs.map(function(n) {
424
433
  return r(n[0]) + "=" + r(n[1]);
425
434
  }, "").join("&");
426
435
  };
427
- function Rr(e) {
436
+ function wr(e) {
428
437
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
429
438
  }
430
- function mt(e, t, r) {
439
+ function Tt(e, t, r) {
431
440
  if (!t)
432
441
  return e;
433
- const s = r && r.encode || Rr, n = u.isFunction(r) ? {
442
+ const s = r && r.encode || wr, n = u.isFunction(r) ? {
434
443
  serialize: r
435
444
  } : r, o = n && n.serialize;
436
445
  let a;
437
- if (o ? a = o(t, n) : a = u.isURLSearchParams(t) ? t.toString() : new xe(t, n).toString(s), a) {
446
+ if (o ? a = o(t, n) : a = u.isURLSearchParams(t) ? t.toString() : new De(t, n).toString(s), a) {
438
447
  const i = e.indexOf("#");
439
448
  i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + a;
440
449
  }
441
450
  return e;
442
451
  }
443
- class We {
452
+ class Xe {
444
453
  constructor() {
445
454
  this.handlers = [];
446
455
  }
@@ -495,43 +504,43 @@ class We {
495
504
  });
496
505
  }
497
506
  }
498
- const De = {
507
+ const Be = {
499
508
  silentJSONParsing: !0,
500
509
  forcedJSONParsing: !0,
501
510
  clarifyTimeoutError: !1,
502
511
  legacyInterceptorReqResOrdering: !0
503
- }, Tr = typeof URLSearchParams < "u" ? URLSearchParams : xe, Pr = typeof FormData < "u" ? FormData : null, Ir = typeof Blob < "u" ? Blob : null, Sr = {
512
+ }, yr = typeof URLSearchParams < "u" ? URLSearchParams : De, Cr = typeof FormData < "u" ? FormData : null, Lr = typeof Blob < "u" ? Blob : null, gr = {
504
513
  isBrowser: !0,
505
514
  classes: {
506
- URLSearchParams: Tr,
507
- FormData: Pr,
508
- Blob: Ir
515
+ URLSearchParams: yr,
516
+ FormData: Cr,
517
+ Blob: Lr
509
518
  },
510
519
  protocols: ["http", "https", "file", "blob", "url", "data"]
511
- }, Be = typeof window < "u" && typeof document < "u", Ve = typeof navigator == "object" && navigator || void 0, br = Be && (!Ve || ["ReactNative", "NativeScript", "NS"].indexOf(Ve.product) < 0), wr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
512
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", yr = Be && window.location.href || "http://localhost", Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
520
+ }, He = typeof window < "u" && typeof document < "u", Ve = typeof navigator == "object" && navigator || void 0, Vr = He && (!Ve || ["ReactNative", "NativeScript", "NS"].indexOf(Ve.product) < 0), Nr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
521
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ur = He && window.location.href || "http://localhost", xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
513
522
  __proto__: null,
514
- hasBrowserEnv: Be,
515
- hasStandardBrowserEnv: br,
516
- hasStandardBrowserWebWorkerEnv: wr,
523
+ hasBrowserEnv: He,
524
+ hasStandardBrowserEnv: Vr,
525
+ hasStandardBrowserWebWorkerEnv: Nr,
517
526
  navigator: Ve,
518
- origin: yr
527
+ origin: Ur
519
528
  }, Symbol.toStringTag, { value: "Module" })), L = {
520
- ...Cr,
521
- ...Sr
529
+ ...xr,
530
+ ...gr
522
531
  };
523
- function Lr(e, t) {
524
- return Re(e, new L.classes.URLSearchParams(), {
532
+ function Dr(e, t) {
533
+ return me(e, new L.classes.URLSearchParams(), {
525
534
  visitor: function(r, s, n, o) {
526
535
  return L.isNode && u.isBuffer(r) ? (this.append(s, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
527
536
  },
528
537
  ...t
529
538
  });
530
539
  }
531
- function Vr(e) {
540
+ function Br(e) {
532
541
  return u.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
533
542
  }
534
- function gr(e) {
543
+ function Hr(e) {
535
544
  const t = {}, r = Object.keys(e);
536
545
  let s;
537
546
  const n = r.length;
@@ -540,22 +549,22 @@ function gr(e) {
540
549
  o = r[s], t[o] = e[o];
541
550
  return t;
542
551
  }
543
- function Rt(e) {
552
+ function Pt(e) {
544
553
  function t(r, s, n, o) {
545
554
  let a = r[o++];
546
555
  if (a === "__proto__") return !0;
547
556
  const i = Number.isFinite(+a), l = o >= r.length;
548
- return a = !a && u.isArray(n) ? n.length : a, l ? (u.hasOwnProp(n, a) ? n[a] = [n[a], s] : n[a] = s, !i) : ((!n[a] || !u.isObject(n[a])) && (n[a] = []), t(r, s, n[a], o) && u.isArray(n[a]) && (n[a] = gr(n[a])), !i);
557
+ return a = !a && u.isArray(n) ? n.length : a, l ? (u.hasOwnProp(n, a) ? n[a] = [n[a], s] : n[a] = s, !i) : ((!n[a] || !u.isObject(n[a])) && (n[a] = []), t(r, s, n[a], o) && u.isArray(n[a]) && (n[a] = Hr(n[a])), !i);
549
558
  }
550
559
  if (u.isFormData(e) && u.isFunction(e.entries)) {
551
560
  const r = {};
552
561
  return u.forEachEntry(e, (s, n) => {
553
- t(Vr(s), n, r, 0);
562
+ t(Br(s), n, r, 0);
554
563
  }), r;
555
564
  }
556
565
  return null;
557
566
  }
558
- function Nr(e, t, r) {
567
+ function Gr(e, t, r) {
559
568
  if (u.isString(e))
560
569
  try {
561
570
  return (t || JSON.parse)(e), u.trim(e);
@@ -566,48 +575,52 @@ function Nr(e, t, r) {
566
575
  return (r || JSON.stringify)(e);
567
576
  }
568
577
  const oe = {
569
- transitional: De,
578
+ transitional: Be,
570
579
  adapter: ["xhr", "http", "fetch"],
571
- transformRequest: [function(t, r) {
572
- const s = r.getContentType() || "", n = s.indexOf("application/json") > -1, o = u.isObject(t);
573
- if (o && u.isHTMLForm(t) && (t = new FormData(t)), u.isFormData(t))
574
- return n ? JSON.stringify(Rt(t)) : t;
575
- if (u.isArrayBuffer(t) || u.isBuffer(t) || u.isStream(t) || u.isFile(t) || u.isBlob(t) || u.isReadableStream(t))
576
- return t;
577
- if (u.isArrayBufferView(t))
578
- return t.buffer;
579
- if (u.isURLSearchParams(t))
580
- return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
581
- let i;
582
- if (o) {
583
- if (s.indexOf("application/x-www-form-urlencoded") > -1)
584
- return Lr(t, this.formSerializer).toString();
585
- if ((i = u.isFileList(t)) || s.indexOf("multipart/form-data") > -1) {
586
- const l = this.env && this.env.FormData;
587
- return Re(
588
- i ? { "files[]": t } : t,
589
- l && new l(),
590
- this.formSerializer
591
- );
580
+ transformRequest: [
581
+ function(t, r) {
582
+ const s = r.getContentType() || "", n = s.indexOf("application/json") > -1, o = u.isObject(t);
583
+ if (o && u.isHTMLForm(t) && (t = new FormData(t)), u.isFormData(t))
584
+ return n ? JSON.stringify(Pt(t)) : t;
585
+ if (u.isArrayBuffer(t) || u.isBuffer(t) || u.isStream(t) || u.isFile(t) || u.isBlob(t) || u.isReadableStream(t))
586
+ return t;
587
+ if (u.isArrayBufferView(t))
588
+ return t.buffer;
589
+ if (u.isURLSearchParams(t))
590
+ return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
591
+ let i;
592
+ if (o) {
593
+ if (s.indexOf("application/x-www-form-urlencoded") > -1)
594
+ return Dr(t, this.formSerializer).toString();
595
+ if ((i = u.isFileList(t)) || s.indexOf("multipart/form-data") > -1) {
596
+ const l = this.env && this.env.FormData;
597
+ return me(
598
+ i ? { "files[]": t } : t,
599
+ l && new l(),
600
+ this.formSerializer
601
+ );
602
+ }
592
603
  }
604
+ return o || n ? (r.setContentType("application/json", !1), Gr(t)) : t;
593
605
  }
594
- return o || n ? (r.setContentType("application/json", !1), Nr(t)) : t;
595
- }],
596
- transformResponse: [function(t) {
597
- const r = this.transitional || oe.transitional, s = r && r.forcedJSONParsing, n = this.responseType === "json";
598
- if (u.isResponse(t) || u.isReadableStream(t))
599
- return t;
600
- if (t && u.isString(t) && (s && !this.responseType || n)) {
601
- const a = !(r && r.silentJSONParsing) && n;
602
- try {
603
- return JSON.parse(t, this.parseReviver);
604
- } catch (i) {
605
- if (a)
606
- throw i.name === "SyntaxError" ? A.from(i, A.ERR_BAD_RESPONSE, this, null, this.response) : i;
606
+ ],
607
+ transformResponse: [
608
+ function(t) {
609
+ const r = this.transitional || oe.transitional, s = r && r.forcedJSONParsing, n = this.responseType === "json";
610
+ if (u.isResponse(t) || u.isReadableStream(t))
611
+ return t;
612
+ if (t && u.isString(t) && (s && !this.responseType || n)) {
613
+ const a = !(r && r.silentJSONParsing) && n;
614
+ try {
615
+ return JSON.parse(t, this.parseReviver);
616
+ } catch (i) {
617
+ if (a)
618
+ throw i.name === "SyntaxError" ? A.from(i, A.ERR_BAD_RESPONSE, this, null, this.response) : i;
619
+ }
607
620
  }
621
+ return t;
608
622
  }
609
- return t;
610
- }],
623
+ ],
611
624
  /**
612
625
  * A timeout in milliseconds to abort a request. If set to 0 (default) a
613
626
  * timeout is not created.
@@ -634,7 +647,7 @@ const oe = {
634
647
  u.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
635
648
  oe.headers[e] = {};
636
649
  });
637
- const Ur = u.toObjectSet([
650
+ const Mr = u.toObjectSet([
638
651
  "age",
639
652
  "authorization",
640
653
  "content-length",
@@ -652,29 +665,49 @@ const Ur = u.toObjectSet([
652
665
  "referer",
653
666
  "retry-after",
654
667
  "user-agent"
655
- ]), xr = (e) => {
668
+ ]), vr = (e) => {
656
669
  const t = {};
657
670
  let r, s, n;
658
671
  return e && e.split(`
659
672
  `).forEach(function(a) {
660
- n = a.indexOf(":"), r = a.substring(0, n).trim().toLowerCase(), s = a.substring(n + 1).trim(), !(!r || t[r] && Ur[r]) && (r === "set-cookie" ? t[r] ? t[r].push(s) : t[r] = [s] : t[r] = t[r] ? t[r] + ", " + s : s);
673
+ n = a.indexOf(":"), r = a.substring(0, n).trim().toLowerCase(), s = a.substring(n + 1).trim(), !(!r || t[r] && Mr[r]) && (r === "set-cookie" ? t[r] ? t[r].push(s) : t[r] = [s] : t[r] = t[r] ? t[r] + ", " + s : s);
661
674
  }), t;
662
- }, Ye = /* @__PURE__ */ Symbol("internals");
675
+ }, Je = /* @__PURE__ */ Symbol("internals"), jr = (e) => !/[\r\n]/.test(e);
676
+ function It(e, t) {
677
+ if (!(e === !1 || e == null)) {
678
+ if (u.isArray(e)) {
679
+ e.forEach((r) => It(r, t));
680
+ return;
681
+ }
682
+ if (!jr(String(e)))
683
+ throw new Error(`Invalid character in header content ["${t}"]`);
684
+ }
685
+ }
663
686
  function te(e) {
664
687
  return e && String(e).trim().toLowerCase();
665
688
  }
689
+ function kr(e) {
690
+ let t = e.length;
691
+ for (; t > 0; ) {
692
+ const r = e.charCodeAt(t - 1);
693
+ if (r !== 10 && r !== 13)
694
+ break;
695
+ t -= 1;
696
+ }
697
+ return t === e.length ? e : e.slice(0, t);
698
+ }
666
699
  function he(e) {
667
- return e === !1 || e == null ? e : u.isArray(e) ? e.map(he) : String(e);
700
+ return e === !1 || e == null ? e : u.isArray(e) ? e.map(he) : kr(String(e));
668
701
  }
669
- function Dr(e) {
702
+ function Fr(e) {
670
703
  const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
671
704
  let s;
672
705
  for (; s = r.exec(e); )
673
706
  t[s[1]] = s[2];
674
707
  return t;
675
708
  }
676
- const Br = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
677
- function Se(e, t, r, s, n) {
709
+ const qr = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
710
+ function be(e, t, r, s, n) {
678
711
  if (u.isFunction(s))
679
712
  return s.call(this, t, r);
680
713
  if (n && (t = r), !!u.isString(t)) {
@@ -684,10 +717,10 @@ function Se(e, t, r, s, n) {
684
717
  return s.test(t);
685
718
  }
686
719
  }
687
- function Hr(e) {
720
+ function $r(e) {
688
721
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, s) => r.toUpperCase() + s);
689
722
  }
690
- function Gr(e, t) {
723
+ function zr(e, t) {
691
724
  const r = u.toCamelCase(" " + t);
692
725
  ["get", "set", "has"].forEach((s) => {
693
726
  Object.defineProperty(e, s + r, {
@@ -709,13 +742,13 @@ let U = class {
709
742
  if (!d)
710
743
  throw new Error("header name must be a non-empty string");
711
744
  const p = u.findKey(n, d);
712
- (!p || n[p] === void 0 || c === !0 || c === void 0 && n[p] !== !1) && (n[p || l] = he(i));
745
+ (!p || n[p] === void 0 || c === !0 || c === void 0 && n[p] !== !1) && (It(i, l), n[p || l] = he(i));
713
746
  }
714
747
  const a = (i, l) => u.forEach(i, (c, d) => o(c, d, l));
715
748
  if (u.isPlainObject(t) || t instanceof this.constructor)
716
749
  a(t, r);
717
- else if (u.isString(t) && (t = t.trim()) && !Br(t))
718
- a(xr(t), r);
750
+ else if (u.isString(t) && (t = t.trim()) && !qr(t))
751
+ a(vr(t), r);
719
752
  else if (u.isObject(t) && u.isIterable(t)) {
720
753
  let i = {}, l, c;
721
754
  for (const d of t) {
@@ -736,7 +769,7 @@ let U = class {
736
769
  if (!r)
737
770
  return n;
738
771
  if (r === !0)
739
- return Dr(n);
772
+ return Fr(n);
740
773
  if (u.isFunction(r))
741
774
  return r.call(this, n, s);
742
775
  if (u.isRegExp(r))
@@ -748,7 +781,7 @@ let U = class {
748
781
  has(t, r) {
749
782
  if (t = te(t), t) {
750
783
  const s = u.findKey(this, t);
751
- return !!(s && this[s] !== void 0 && (!r || Se(this, this[s], s, r)));
784
+ return !!(s && this[s] !== void 0 && (!r || be(this, this[s], s, r)));
752
785
  }
753
786
  return !1;
754
787
  }
@@ -758,7 +791,7 @@ let U = class {
758
791
  function o(a) {
759
792
  if (a = te(a), a) {
760
793
  const i = u.findKey(s, a);
761
- i && (!r || Se(s, s[i], i, r)) && (delete s[i], n = !0);
794
+ i && (!r || be(s, s[i], i, r)) && (delete s[i], n = !0);
762
795
  }
763
796
  }
764
797
  return u.isArray(t) ? t.forEach(o) : o(t), n;
@@ -768,7 +801,7 @@ let U = class {
768
801
  let s = r.length, n = !1;
769
802
  for (; s--; ) {
770
803
  const o = r[s];
771
- (!t || Se(this, this[o], o, t, !0)) && (delete this[o], n = !0);
804
+ (!t || be(this, this[o], o, t, !0)) && (delete this[o], n = !0);
772
805
  }
773
806
  return n;
774
807
  }
@@ -780,7 +813,7 @@ let U = class {
780
813
  r[a] = he(n), delete r[o];
781
814
  return;
782
815
  }
783
- const i = t ? Hr(o) : String(o).trim();
816
+ const i = t ? $r(o) : String(o).trim();
784
817
  i !== o && delete r[o], r[i] = he(n), s[i] = !0;
785
818
  }), this;
786
819
  }
@@ -814,17 +847,24 @@ let U = class {
814
847
  return r.forEach((n) => s.set(n)), s;
815
848
  }
816
849
  static accessor(t) {
817
- const s = (this[Ye] = this[Ye] = {
850
+ const s = (this[Je] = this[Je] = {
818
851
  accessors: {}
819
852
  }).accessors, n = this.prototype;
820
853
  function o(a) {
821
854
  const i = te(a);
822
- s[i] || (Gr(n, a), s[i] = !0);
855
+ s[i] || (zr(n, a), s[i] = !0);
823
856
  }
824
857
  return u.isArray(t) ? t.forEach(o) : o(t), this;
825
858
  }
826
859
  };
827
- U.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
860
+ U.accessor([
861
+ "Content-Type",
862
+ "Content-Length",
863
+ "Accept",
864
+ "Accept-Encoding",
865
+ "User-Agent",
866
+ "Authorization"
867
+ ]);
828
868
  u.reduceDescriptors(U.prototype, ({ value: e }, t) => {
829
869
  let r = t[0].toUpperCase() + t.slice(1);
830
870
  return {
@@ -835,14 +875,14 @@ u.reduceDescriptors(U.prototype, ({ value: e }, t) => {
835
875
  };
836
876
  });
837
877
  u.freezeMethods(U);
838
- function be(e, t) {
878
+ function we(e, t) {
839
879
  const r = this || oe, s = t || r, n = U.from(s.headers);
840
880
  let o = s.data;
841
881
  return u.forEach(e, function(i) {
842
882
  o = i.call(r, o, n.normalize(), t ? t.status : void 0);
843
883
  }), n.normalize(), o;
844
884
  }
845
- function Tt(e) {
885
+ function St(e) {
846
886
  return !!(e && e.__CANCEL__);
847
887
  }
848
888
  let ae = class extends A {
@@ -859,21 +899,23 @@ let ae = class extends A {
859
899
  super(t ?? "canceled", A.ERR_CANCELED, r, s), this.name = "CanceledError", this.__CANCEL__ = !0;
860
900
  }
861
901
  };
862
- function Pt(e, t, r) {
902
+ function bt(e, t, r) {
863
903
  const s = r.config.validateStatus;
864
- !r.status || !s || s(r.status) ? e(r) : t(new A(
865
- "Request failed with status code " + r.status,
866
- [A.ERR_BAD_REQUEST, A.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
867
- r.config,
868
- r.request,
869
- r
870
- ));
904
+ !r.status || !s || s(r.status) ? e(r) : t(
905
+ new A(
906
+ "Request failed with status code " + r.status,
907
+ [A.ERR_BAD_REQUEST, A.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
908
+ r.config,
909
+ r.request,
910
+ r
911
+ )
912
+ );
871
913
  }
872
- function Mr(e) {
914
+ function Wr(e) {
873
915
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
874
916
  return t && t[1] || "";
875
917
  }
876
- function vr(e, t) {
918
+ function Yr(e, t) {
877
919
  e = e || 10;
878
920
  const r = new Array(e), s = new Array(e);
879
921
  let n = 0, o = 0, a;
@@ -889,7 +931,7 @@ function vr(e, t) {
889
931
  return C ? Math.round(_ * 1e3 / C) : void 0;
890
932
  };
891
933
  }
892
- function jr(e, t) {
934
+ function Xr(e, t) {
893
935
  let r = 0, s = 1e3 / t, n, o;
894
936
  const a = (c, d = Date.now()) => {
895
937
  r = d, n = null, o && (clearTimeout(o), o = null), e(...c);
@@ -903,8 +945,8 @@ function jr(e, t) {
903
945
  }
904
946
  const Ee = (e, t, r = 3) => {
905
947
  let s = 0;
906
- const n = vr(50, 250);
907
- return jr((o) => {
948
+ const n = Yr(50, 250);
949
+ return Xr((o) => {
908
950
  const a = o.loaded, i = o.lengthComputable ? o.total : void 0, l = a - s, c = n(l), d = a <= i;
909
951
  s = a;
910
952
  const p = {
@@ -920,17 +962,20 @@ const Ee = (e, t, r = 3) => {
920
962
  };
921
963
  e(p);
922
964
  }, r);
923
- }, Xe = (e, t) => {
965
+ }, Ze = (e, t) => {
924
966
  const r = e != null;
925
- return [(s) => t[0]({
926
- lengthComputable: r,
927
- total: e,
928
- loaded: s
929
- }), t[1]];
930
- }, Je = (e) => (...t) => u.asap(() => e(...t)), kr = L.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, L.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
967
+ return [
968
+ (s) => t[0]({
969
+ lengthComputable: r,
970
+ total: e,
971
+ loaded: s
972
+ }),
973
+ t[1]
974
+ ];
975
+ }, Ke = (e) => (...t) => u.asap(() => e(...t)), Jr = L.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, L.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
931
976
  new URL(L.origin),
932
977
  L.navigator && /(msie|trident)/i.test(L.navigator.userAgent)
933
- ) : () => !0, Fr = L.hasStandardBrowserEnv ? (
978
+ ) : () => !0, Zr = L.hasStandardBrowserEnv ? (
934
979
  // Standard browser envs support document.cookie
935
980
  {
936
981
  write(e, t, r, s, n, o, a) {
@@ -959,17 +1004,17 @@ const Ee = (e, t, r = 3) => {
959
1004
  }
960
1005
  }
961
1006
  );
962
- function qr(e) {
1007
+ function Kr(e) {
963
1008
  return typeof e != "string" ? !1 : /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
964
1009
  }
965
- function $r(e, t) {
1010
+ function Qr(e, t) {
966
1011
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
967
1012
  }
968
- function It(e, t, r) {
969
- let s = !qr(t);
970
- return e && (s || r == !1) ? $r(e, t) : t;
1013
+ function wt(e, t, r) {
1014
+ let s = !Kr(t);
1015
+ return e && (s || r == !1) ? Qr(e, t) : t;
971
1016
  }
972
- const Ze = (e) => e instanceof U ? { ...e } : e;
1017
+ const Qe = (e) => e instanceof U ? { ...e } : e;
973
1018
  function Y(e, t) {
974
1019
  t = t || {};
975
1020
  const r = {};
@@ -1027,24 +1072,26 @@ function Y(e, t) {
1027
1072
  socketPath: a,
1028
1073
  responseEncoding: a,
1029
1074
  validateStatus: i,
1030
- headers: (c, d, p) => n(Ze(c), Ze(d), p, !0)
1075
+ headers: (c, d, p) => n(Qe(c), Qe(d), p, !0)
1031
1076
  };
1032
- return u.forEach(
1033
- Object.keys({ ...e, ...t }),
1034
- function(d) {
1035
- if (d === "__proto__" || d === "constructor" || d === "prototype")
1036
- return;
1037
- const p = u.hasOwnProp(l, d) ? l[d] : n, _ = p(e[d], t[d], d);
1038
- u.isUndefined(_) && p !== i || (r[d] = _);
1039
- }
1040
- ), r;
1077
+ return u.forEach(Object.keys({ ...e, ...t }), function(d) {
1078
+ if (d === "__proto__" || d === "constructor" || d === "prototype") return;
1079
+ const p = u.hasOwnProp(l, d) ? l[d] : n, _ = p(e[d], t[d], d);
1080
+ u.isUndefined(_) && p !== i || (r[d] = _);
1081
+ }), r;
1041
1082
  }
1042
- const St = (e) => {
1083
+ const yt = (e) => {
1043
1084
  const t = Y({}, e);
1044
1085
  let { data: r, withXSRFToken: s, xsrfHeaderName: n, xsrfCookieName: o, headers: a, auth: i } = t;
1045
- if (t.headers = a = U.from(a), t.url = mt(It(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), i && a.set(
1086
+ if (t.headers = a = U.from(a), t.url = Tt(
1087
+ wt(t.baseURL, t.url, t.allowAbsoluteUrls),
1088
+ e.params,
1089
+ e.paramsSerializer
1090
+ ), i && a.set(
1046
1091
  "Authorization",
1047
- "Basic " + btoa((i.username || "") + ":" + (i.password ? unescape(encodeURIComponent(i.password)) : ""))
1092
+ "Basic " + btoa(
1093
+ (i.username || "") + ":" + (i.password ? unescape(encodeURIComponent(i.password)) : "")
1094
+ )
1048
1095
  ), u.isFormData(r)) {
1049
1096
  if (L.hasStandardBrowserEnv || L.hasStandardBrowserWebWorkerEnv)
1050
1097
  a.setContentType(void 0);
@@ -1055,14 +1102,14 @@ const St = (e) => {
1055
1102
  });
1056
1103
  }
1057
1104
  }
1058
- if (L.hasStandardBrowserEnv && (s && u.isFunction(s) && (s = s(t)), s || s !== !1 && kr(t.url))) {
1059
- const l = n && o && Fr.read(o);
1105
+ if (L.hasStandardBrowserEnv && (s && u.isFunction(s) && (s = s(t)), s || s !== !1 && Jr(t.url))) {
1106
+ const l = n && o && Zr.read(o);
1060
1107
  l && a.set(n, l);
1061
1108
  }
1062
1109
  return t;
1063
- }, zr = typeof XMLHttpRequest < "u", Wr = zr && function(e) {
1110
+ }, es = typeof XMLHttpRequest < "u", ts = es && function(e) {
1064
1111
  return new Promise(function(r, s) {
1065
- const n = St(e);
1112
+ const n = yt(e);
1066
1113
  let o = n.data;
1067
1114
  const a = U.from(n.headers).normalize();
1068
1115
  let { responseType: i, onUploadProgress: l, onDownloadProgress: c } = n, d, p, _, C, h;
@@ -1084,41 +1131,53 @@ const St = (e) => {
1084
1131
  config: e,
1085
1132
  request: f
1086
1133
  };
1087
- Pt(function(D) {
1088
- r(D), E();
1089
- }, function(D) {
1090
- s(D), E();
1091
- }, H), f = null;
1134
+ bt(
1135
+ function(D) {
1136
+ r(D), E();
1137
+ },
1138
+ function(D) {
1139
+ s(D), E();
1140
+ },
1141
+ H
1142
+ ), f = null;
1092
1143
  }
1093
1144
  "onloadend" in f ? f.onloadend = w : f.onreadystatechange = function() {
1094
1145
  !f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.indexOf("file:") === 0) || setTimeout(w);
1095
1146
  }, f.onabort = function() {
1096
1147
  f && (s(new A("Request aborted", A.ECONNABORTED, e, f)), f = null);
1097
- }, f.onerror = function(V) {
1098
- const H = V && V.message ? V.message : "Network Error", F = new A(H, A.ERR_NETWORK, e, f);
1099
- F.event = V || null, s(F), f = null;
1148
+ }, f.onerror = function(g) {
1149
+ const H = g && g.message ? g.message : "Network Error", F = new A(H, A.ERR_NETWORK, e, f);
1150
+ F.event = g || null, s(F), f = null;
1100
1151
  }, f.ontimeout = function() {
1101
- let V = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
1102
- const H = n.transitional || De;
1103
- n.timeoutErrorMessage && (V = n.timeoutErrorMessage), s(new A(
1104
- V,
1105
- H.clarifyTimeoutError ? A.ETIMEDOUT : A.ECONNABORTED,
1106
- e,
1107
- f
1108
- )), f = null;
1109
- }, o === void 0 && a.setContentType(null), "setRequestHeader" in f && u.forEach(a.toJSON(), function(V, H) {
1110
- f.setRequestHeader(H, V);
1152
+ let g = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
1153
+ const H = n.transitional || Be;
1154
+ n.timeoutErrorMessage && (g = n.timeoutErrorMessage), s(
1155
+ new A(
1156
+ g,
1157
+ H.clarifyTimeoutError ? A.ETIMEDOUT : A.ECONNABORTED,
1158
+ e,
1159
+ f
1160
+ )
1161
+ ), f = null;
1162
+ }, o === void 0 && a.setContentType(null), "setRequestHeader" in f && u.forEach(a.toJSON(), function(g, H) {
1163
+ f.setRequestHeader(H, g);
1111
1164
  }), u.isUndefined(n.withCredentials) || (f.withCredentials = !!n.withCredentials), i && i !== "json" && (f.responseType = n.responseType), c && ([_, h] = Ee(c, !0), f.addEventListener("progress", _)), l && f.upload && ([p, C] = Ee(l), f.upload.addEventListener("progress", p), f.upload.addEventListener("loadend", C)), (n.cancelToken || n.signal) && (d = (y) => {
1112
1165
  f && (s(!y || y.type ? new ae(null, e, f) : y), f.abort(), f = null);
1113
1166
  }, n.cancelToken && n.cancelToken.subscribe(d), n.signal && (n.signal.aborted ? d() : n.signal.addEventListener("abort", d)));
1114
- const x = Mr(n.url);
1167
+ const x = Wr(n.url);
1115
1168
  if (x && L.protocols.indexOf(x) === -1) {
1116
- s(new A("Unsupported protocol " + x + ":", A.ERR_BAD_REQUEST, e));
1169
+ s(
1170
+ new A(
1171
+ "Unsupported protocol " + x + ":",
1172
+ A.ERR_BAD_REQUEST,
1173
+ e
1174
+ )
1175
+ );
1117
1176
  return;
1118
1177
  }
1119
1178
  f.send(o || null);
1120
1179
  });
1121
- }, Yr = (e, t) => {
1180
+ }, rs = (e, t) => {
1122
1181
  const { length: r } = e = e ? e.filter(Boolean) : [];
1123
1182
  if (t || r) {
1124
1183
  let s = new AbortController(), n;
@@ -1126,7 +1185,9 @@ const St = (e) => {
1126
1185
  if (!n) {
1127
1186
  n = !0, i();
1128
1187
  const d = c instanceof Error ? c : this.reason;
1129
- s.abort(d instanceof A ? d : new ae(d instanceof Error ? d.message : d));
1188
+ s.abort(
1189
+ d instanceof A ? d : new ae(d instanceof Error ? d.message : d)
1190
+ );
1130
1191
  }
1131
1192
  };
1132
1193
  let a = t && setTimeout(() => {
@@ -1141,7 +1202,7 @@ const St = (e) => {
1141
1202
  const { signal: l } = s;
1142
1203
  return l.unsubscribe = () => u.asap(i), l;
1143
1204
  }
1144
- }, Xr = function* (e, t) {
1205
+ }, ss = function* (e, t) {
1145
1206
  let r = e.byteLength;
1146
1207
  if (r < t) {
1147
1208
  yield e;
@@ -1150,10 +1211,10 @@ const St = (e) => {
1150
1211
  let s = 0, n;
1151
1212
  for (; s < r; )
1152
1213
  n = s + t, yield e.slice(s, n), s = n;
1153
- }, Jr = async function* (e, t) {
1154
- for await (const r of Zr(e))
1155
- yield* Xr(r, t);
1156
- }, Zr = async function* (e) {
1214
+ }, ns = async function* (e, t) {
1215
+ for await (const r of os(e))
1216
+ yield* ss(r, t);
1217
+ }, os = async function* (e) {
1157
1218
  if (e[Symbol.asyncIterator]) {
1158
1219
  yield* e;
1159
1220
  return;
@@ -1169,65 +1230,69 @@ const St = (e) => {
1169
1230
  } finally {
1170
1231
  await t.cancel();
1171
1232
  }
1172
- }, Ke = (e, t, r, s) => {
1173
- const n = Jr(e, t);
1233
+ }, et = (e, t, r, s) => {
1234
+ const n = ns(e, t);
1174
1235
  let o = 0, a, i = (l) => {
1175
1236
  a || (a = !0, s && s(l));
1176
1237
  };
1177
- return new ReadableStream({
1178
- async pull(l) {
1179
- try {
1180
- const { done: c, value: d } = await n.next();
1181
- if (c) {
1182
- i(), l.close();
1183
- return;
1184
- }
1185
- let p = d.byteLength;
1186
- if (r) {
1187
- let _ = o += p;
1188
- r(_);
1238
+ return new ReadableStream(
1239
+ {
1240
+ async pull(l) {
1241
+ try {
1242
+ const { done: c, value: d } = await n.next();
1243
+ if (c) {
1244
+ i(), l.close();
1245
+ return;
1246
+ }
1247
+ let p = d.byteLength;
1248
+ if (r) {
1249
+ let _ = o += p;
1250
+ r(_);
1251
+ }
1252
+ l.enqueue(new Uint8Array(d));
1253
+ } catch (c) {
1254
+ throw i(c), c;
1189
1255
  }
1190
- l.enqueue(new Uint8Array(d));
1191
- } catch (c) {
1192
- throw i(c), c;
1256
+ },
1257
+ cancel(l) {
1258
+ return i(l), n.return();
1193
1259
  }
1194
1260
  },
1195
- cancel(l) {
1196
- return i(l), n.return();
1261
+ {
1262
+ highWaterMark: 2
1197
1263
  }
1198
- }, {
1199
- highWaterMark: 2
1200
- });
1201
- }, Qe = 64 * 1024, { isFunction: de } = u, Kr = (({ Request: e, Response: t }) => ({
1264
+ );
1265
+ }, tt = 64 * 1024, { isFunction: de } = u, as = (({ Request: e, Response: t }) => ({
1202
1266
  Request: e,
1203
1267
  Response: t
1204
- }))(u.global), {
1205
- ReadableStream: et,
1206
- TextEncoder: tt
1207
- } = u.global, rt = (e, ...t) => {
1268
+ }))(u.global), { ReadableStream: rt, TextEncoder: st } = u.global, nt = (e, ...t) => {
1208
1269
  try {
1209
1270
  return !!e(...t);
1210
1271
  } catch {
1211
1272
  return !1;
1212
1273
  }
1213
- }, Qr = (e) => {
1214
- e = u.merge.call({
1215
- skipUndefined: !0
1216
- }, Kr, e);
1274
+ }, is = (e) => {
1275
+ e = u.merge.call(
1276
+ {
1277
+ skipUndefined: !0
1278
+ },
1279
+ as,
1280
+ e
1281
+ );
1217
1282
  const { fetch: t, Request: r, Response: s } = e, n = t ? de(t) : typeof fetch == "function", o = de(r), a = de(s);
1218
1283
  if (!n)
1219
1284
  return !1;
1220
- const i = n && de(et), l = n && (typeof tt == "function" ? /* @__PURE__ */ ((h) => (E) => h.encode(E))(new tt()) : async (h) => new Uint8Array(await new r(h).arrayBuffer())), c = o && i && rt(() => {
1285
+ const i = n && de(rt), l = n && (typeof st == "function" ? /* @__PURE__ */ ((h) => (E) => h.encode(E))(new st()) : async (h) => new Uint8Array(await new r(h).arrayBuffer())), c = o && i && nt(() => {
1221
1286
  let h = !1;
1222
- const E = new r(L.origin, {
1223
- body: new et(),
1287
+ const E = new rt(), f = new r(L.origin, {
1288
+ body: E,
1224
1289
  method: "POST",
1225
1290
  get duplex() {
1226
1291
  return h = !0, "half";
1227
1292
  }
1228
1293
  }).headers.has("Content-Type");
1229
- return h && !E;
1230
- }), d = a && i && rt(() => u.isReadableStream(new s("").body)), p = {
1294
+ return E.cancel(), h && !f;
1295
+ }), d = a && i && nt(() => u.isReadableStream(new s("").body)), p = {
1231
1296
  stream: d && ((h) => h.body)
1232
1297
  };
1233
1298
  n && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((h) => {
@@ -1235,7 +1300,11 @@ const St = (e) => {
1235
1300
  let w = E && E[h];
1236
1301
  if (w)
1237
1302
  return w.call(E);
1238
- throw new A(`Response type '${h}' is not supported`, A.ERR_NOT_SUPPORT, f);
1303
+ throw new A(
1304
+ `Response type '${h}' is not supported`,
1305
+ A.ERR_NOT_SUPPORT,
1306
+ f
1307
+ );
1239
1308
  });
1240
1309
  });
1241
1310
  const _ = async (h) => {
@@ -1263,69 +1332,75 @@ const St = (e) => {
1263
1332
  data: w,
1264
1333
  signal: x,
1265
1334
  cancelToken: y,
1266
- timeout: V,
1335
+ timeout: g,
1267
1336
  onDownloadProgress: H,
1268
1337
  onUploadProgress: F,
1269
1338
  responseType: D,
1270
1339
  headers: Pe,
1271
1340
  withCredentials: ie = "same-origin",
1272
- fetchOptions: Ge
1273
- } = St(h), Me = t || fetch;
1341
+ fetchOptions: Me
1342
+ } = yt(h), ve = t || fetch;
1274
1343
  D = D ? (D + "").toLowerCase() : "text";
1275
- let le = Yr([x, y && y.toAbortSignal()], V), ee = null;
1344
+ let le = rs(
1345
+ [x, y && y.toAbortSignal()],
1346
+ g
1347
+ ), ee = null;
1276
1348
  const q = le && le.unsubscribe && (() => {
1277
1349
  le.unsubscribe();
1278
1350
  });
1279
- let ve;
1351
+ let je;
1280
1352
  try {
1281
- if (F && c && f !== "get" && f !== "head" && (ve = await C(Pe, w)) !== 0) {
1353
+ if (F && c && f !== "get" && f !== "head" && (je = await C(Pe, w)) !== 0) {
1282
1354
  let k = new r(E, {
1283
1355
  method: "POST",
1284
1356
  body: w,
1285
1357
  duplex: "half"
1286
1358
  }), X;
1287
1359
  if (u.isFormData(w) && (X = k.headers.get("content-type")) && Pe.setContentType(X), k.body) {
1288
- const [Ie, ce] = Xe(
1289
- ve,
1290
- Ee(Je(F))
1360
+ const [Ie, ce] = Ze(
1361
+ je,
1362
+ Ee(Ke(F))
1291
1363
  );
1292
- w = Ke(k.body, Qe, Ie, ce);
1364
+ w = et(k.body, tt, Ie, ce);
1293
1365
  }
1294
1366
  }
1295
1367
  u.isString(ie) || (ie = ie ? "include" : "omit");
1296
- const g = o && "credentials" in r.prototype, je = {
1297
- ...Ge,
1368
+ const V = o && "credentials" in r.prototype, ke = {
1369
+ ...Me,
1298
1370
  signal: le,
1299
1371
  method: f.toUpperCase(),
1300
1372
  headers: Pe.normalize().toJSON(),
1301
1373
  body: w,
1302
1374
  duplex: "half",
1303
- credentials: g ? ie : void 0
1375
+ credentials: V ? ie : void 0
1304
1376
  };
1305
- ee = o && new r(E, je);
1306
- let j = await (o ? Me(ee, Ge) : Me(E, je));
1307
- const ke = d && (D === "stream" || D === "response");
1308
- if (d && (H || ke && q)) {
1377
+ ee = o && new r(E, ke);
1378
+ let j = await (o ? ve(ee, Me) : ve(E, ke));
1379
+ const Fe = d && (D === "stream" || D === "response");
1380
+ if (d && (H || Fe && q)) {
1309
1381
  const k = {};
1310
- ["status", "statusText", "headers"].forEach((Fe) => {
1311
- k[Fe] = j[Fe];
1382
+ ["status", "statusText", "headers"].forEach((qe) => {
1383
+ k[qe] = j[qe];
1312
1384
  });
1313
- const X = u.toFiniteNumber(j.headers.get("content-length")), [Ie, ce] = H && Xe(
1385
+ const X = u.toFiniteNumber(j.headers.get("content-length")), [Ie, ce] = H && Ze(
1314
1386
  X,
1315
- Ee(Je(H), !0)
1387
+ Ee(Ke(H), !0)
1316
1388
  ) || [];
1317
1389
  j = new s(
1318
- Ke(j.body, Qe, Ie, () => {
1390
+ et(j.body, tt, Ie, () => {
1319
1391
  ce && ce(), q && q();
1320
1392
  }),
1321
1393
  k
1322
1394
  );
1323
1395
  }
1324
1396
  D = D || "text";
1325
- let gt = await p[u.findKey(p, D) || "text"](j, h);
1326
- return !ke && q && q(), await new Promise((k, X) => {
1327
- Pt(k, X, {
1328
- data: gt,
1397
+ let xt = await p[u.findKey(p, D) || "text"](
1398
+ j,
1399
+ h
1400
+ );
1401
+ return !Fe && q && q(), await new Promise((k, X) => {
1402
+ bt(k, X, {
1403
+ data: xt,
1329
1404
  headers: U.from(j.headers),
1330
1405
  status: j.status,
1331
1406
  statusText: j.statusText,
@@ -1333,36 +1408,38 @@ const St = (e) => {
1333
1408
  request: ee
1334
1409
  });
1335
1410
  });
1336
- } catch (g) {
1337
- throw q && q(), g && g.name === "TypeError" && /Load failed|fetch/i.test(g.message) ? Object.assign(
1338
- new A("Network Error", A.ERR_NETWORK, h, ee, g && g.response),
1411
+ } catch (V) {
1412
+ throw q && q(), V && V.name === "TypeError" && /Load failed|fetch/i.test(V.message) ? Object.assign(
1413
+ new A(
1414
+ "Network Error",
1415
+ A.ERR_NETWORK,
1416
+ h,
1417
+ ee,
1418
+ V && V.response
1419
+ ),
1339
1420
  {
1340
- cause: g.cause || g
1421
+ cause: V.cause || V
1341
1422
  }
1342
- ) : A.from(g, g && g.code, h, ee, g && g.response);
1423
+ ) : A.from(V, V && V.code, h, ee, V && V.response);
1343
1424
  }
1344
1425
  };
1345
- }, es = /* @__PURE__ */ new Map(), bt = (e) => {
1426
+ }, ls = /* @__PURE__ */ new Map(), Ct = (e) => {
1346
1427
  let t = e && e.env || {};
1347
- const { fetch: r, Request: s, Response: n } = t, o = [
1348
- s,
1349
- n,
1350
- r
1351
- ];
1352
- let a = o.length, i = a, l, c, d = es;
1428
+ const { fetch: r, Request: s, Response: n } = t, o = [s, n, r];
1429
+ let a = o.length, i = a, l, c, d = ls;
1353
1430
  for (; i--; )
1354
- l = o[i], c = d.get(l), c === void 0 && d.set(l, c = i ? /* @__PURE__ */ new Map() : Qr(t)), d = c;
1431
+ l = o[i], c = d.get(l), c === void 0 && d.set(l, c = i ? /* @__PURE__ */ new Map() : is(t)), d = c;
1355
1432
  return c;
1356
1433
  };
1357
- bt();
1358
- const He = {
1359
- http: Or,
1360
- xhr: Wr,
1434
+ Ct();
1435
+ const Ge = {
1436
+ http: Ir,
1437
+ xhr: ts,
1361
1438
  fetch: {
1362
- get: bt
1439
+ get: Ct
1363
1440
  }
1364
1441
  };
1365
- u.forEach(He, (e, t) => {
1442
+ u.forEach(Ge, (e, t) => {
1366
1443
  if (e) {
1367
1444
  try {
1368
1445
  Object.defineProperty(e, "name", { value: t });
@@ -1371,8 +1448,8 @@ u.forEach(He, (e, t) => {
1371
1448
  Object.defineProperty(e, "adapterName", { value: t });
1372
1449
  }
1373
1450
  });
1374
- const st = (e) => `- ${e}`, ts = (e) => u.isFunction(e) || e === null || e === !1;
1375
- function rs(e, t) {
1451
+ const ot = (e) => `- ${e}`, cs = (e) => u.isFunction(e) || e === null || e === !1;
1452
+ function ds(e, t) {
1376
1453
  e = u.isArray(e) ? e : [e];
1377
1454
  const { length: r } = e;
1378
1455
  let s, n;
@@ -1380,7 +1457,7 @@ function rs(e, t) {
1380
1457
  for (let a = 0; a < r; a++) {
1381
1458
  s = e[a];
1382
1459
  let i;
1383
- if (n = s, !ts(s) && (n = He[(i = String(s)).toLowerCase()], n === void 0))
1460
+ if (n = s, !cs(s) && (n = Ge[(i = String(s)).toLowerCase()], n === void 0))
1384
1461
  throw new A(`Unknown adapter '${i}'`);
1385
1462
  if (n && (u.isFunction(n) || (n = n.get(t))))
1386
1463
  break;
@@ -1391,8 +1468,8 @@ function rs(e, t) {
1391
1468
  ([l, c]) => `adapter ${l} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
1392
1469
  );
1393
1470
  let i = r ? a.length > 1 ? `since :
1394
- ` + a.map(st).join(`
1395
- `) : " " + st(a[0]) : "as no adapter specified";
1471
+ ` + a.map(ot).join(`
1472
+ `) : " " + ot(a[0]) : "as no adapter specified";
1396
1473
  throw new A(
1397
1474
  "There is no suitable adapter to dispatch the request " + i,
1398
1475
  "ERR_NOT_SUPPORT"
@@ -1400,50 +1477,46 @@ function rs(e, t) {
1400
1477
  }
1401
1478
  return n;
1402
1479
  }
1403
- const wt = {
1480
+ const Lt = {
1404
1481
  /**
1405
1482
  * Resolve an adapter from a list of adapter names or functions.
1406
1483
  * @type {Function}
1407
1484
  */
1408
- getAdapter: rs,
1485
+ getAdapter: ds,
1409
1486
  /**
1410
1487
  * Exposes all known adapters
1411
1488
  * @type {Object<string, Function|Object>}
1412
1489
  */
1413
- adapters: He
1490
+ adapters: Ge
1414
1491
  };
1415
- function we(e) {
1492
+ function ye(e) {
1416
1493
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1417
1494
  throw new ae(null, e);
1418
1495
  }
1419
- function nt(e) {
1420
- return we(e), e.headers = U.from(e.headers), e.data = be.call(
1421
- e,
1422
- e.transformRequest
1423
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), wt.getAdapter(e.adapter || oe.adapter, e)(e).then(function(s) {
1424
- return we(e), s.data = be.call(
1425
- e,
1426
- e.transformResponse,
1427
- s
1428
- ), s.headers = U.from(s.headers), s;
1429
- }, function(s) {
1430
- return Tt(s) || (we(e), s && s.response && (s.response.data = be.call(
1431
- e,
1432
- e.transformResponse,
1433
- s.response
1434
- ), s.response.headers = U.from(s.response.headers))), Promise.reject(s);
1435
- });
1496
+ function at(e) {
1497
+ return ye(e), e.headers = U.from(e.headers), e.data = we.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Lt.getAdapter(e.adapter || oe.adapter, e)(e).then(
1498
+ function(s) {
1499
+ return ye(e), s.data = we.call(e, e.transformResponse, s), s.headers = U.from(s.headers), s;
1500
+ },
1501
+ function(s) {
1502
+ return St(s) || (ye(e), s && s.response && (s.response.data = we.call(
1503
+ e,
1504
+ e.transformResponse,
1505
+ s.response
1506
+ ), s.response.headers = U.from(s.response.headers))), Promise.reject(s);
1507
+ }
1508
+ );
1436
1509
  }
1437
- const yt = "1.13.5", Te = {};
1510
+ const gt = "1.15.0", Te = {};
1438
1511
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1439
1512
  Te[e] = function(s) {
1440
1513
  return typeof s === e || "a" + (t < 1 ? "n " : " ") + e;
1441
1514
  };
1442
1515
  });
1443
- const ot = {};
1516
+ const it = {};
1444
1517
  Te.transitional = function(t, r, s) {
1445
1518
  function n(o, a) {
1446
- return "[Axios v" + yt + "] Transitional option '" + o + "'" + a + (s ? ". " + s : "");
1519
+ return "[Axios v" + gt + "] Transitional option '" + o + "'" + a + (s ? ". " + s : "");
1447
1520
  }
1448
1521
  return (o, a, i) => {
1449
1522
  if (t === !1)
@@ -1451,7 +1524,7 @@ Te.transitional = function(t, r, s) {
1451
1524
  n(a, " has been removed" + (r ? " in " + r : "")),
1452
1525
  A.ERR_DEPRECATED
1453
1526
  );
1454
- return r && !ot[a] && (ot[a] = !0, console.warn(
1527
+ return r && !it[a] && (it[a] = !0, console.warn(
1455
1528
  n(
1456
1529
  a,
1457
1530
  " has been deprecated since v" + r + " and will be removed in the near future"
@@ -1462,7 +1535,7 @@ Te.transitional = function(t, r, s) {
1462
1535
  Te.spelling = function(t) {
1463
1536
  return (r, s) => (console.warn(`${s} is likely a misspelling of ${t}`), !0);
1464
1537
  };
1465
- function ss(e, t, r) {
1538
+ function us(e, t, r) {
1466
1539
  if (typeof e != "object")
1467
1540
  throw new A("options must be an object", A.ERR_BAD_OPTION_VALUE);
1468
1541
  const s = Object.keys(e);
@@ -1472,7 +1545,10 @@ function ss(e, t, r) {
1472
1545
  if (a) {
1473
1546
  const i = e[o], l = i === void 0 || a(i, o, e);
1474
1547
  if (l !== !0)
1475
- throw new A("option " + o + " must be " + l, A.ERR_BAD_OPTION_VALUE);
1548
+ throw new A(
1549
+ "option " + o + " must be " + l,
1550
+ A.ERR_BAD_OPTION_VALUE
1551
+ );
1476
1552
  continue;
1477
1553
  }
1478
1554
  if (r !== !0)
@@ -1480,14 +1556,14 @@ function ss(e, t, r) {
1480
1556
  }
1481
1557
  }
1482
1558
  const fe = {
1483
- assertOptions: ss,
1559
+ assertOptions: us,
1484
1560
  validators: Te
1485
1561
  }, B = fe.validators;
1486
1562
  let W = class {
1487
1563
  constructor(t) {
1488
1564
  this.defaults = t || {}, this.interceptors = {
1489
- request: new We(),
1490
- response: new We()
1565
+ request: new Xe(),
1566
+ response: new Xe()
1491
1567
  };
1492
1568
  }
1493
1569
  /**
@@ -1505,10 +1581,23 @@ let W = class {
1505
1581
  if (s instanceof Error) {
1506
1582
  let n = {};
1507
1583
  Error.captureStackTrace ? Error.captureStackTrace(n) : n = new Error();
1508
- const o = n.stack ? n.stack.replace(/^.+\n/, "") : "";
1584
+ const o = (() => {
1585
+ if (!n.stack)
1586
+ return "";
1587
+ const a = n.stack.indexOf(`
1588
+ `);
1589
+ return a === -1 ? "" : n.stack.slice(a + 1);
1590
+ })();
1509
1591
  try {
1510
- s.stack ? o && !String(s.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (s.stack += `
1511
- ` + o) : s.stack = o;
1592
+ if (!s.stack)
1593
+ s.stack = o;
1594
+ else if (o) {
1595
+ const a = o.indexOf(`
1596
+ `), i = a === -1 ? -1 : o.indexOf(`
1597
+ `, a + 1), l = i === -1 ? "" : o.slice(i + 1);
1598
+ String(s.stack).endsWith(l) || (s.stack += `
1599
+ ` + o);
1600
+ }
1512
1601
  } catch {
1513
1602
  }
1514
1603
  }
@@ -1518,37 +1607,43 @@ let W = class {
1518
1607
  _request(t, r) {
1519
1608
  typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = Y(this.defaults, r);
1520
1609
  const { transitional: s, paramsSerializer: n, headers: o } = r;
1521
- s !== void 0 && fe.assertOptions(s, {
1522
- silentJSONParsing: B.transitional(B.boolean),
1523
- forcedJSONParsing: B.transitional(B.boolean),
1524
- clarifyTimeoutError: B.transitional(B.boolean),
1525
- legacyInterceptorReqResOrdering: B.transitional(B.boolean)
1526
- }, !1), n != null && (u.isFunction(n) ? r.paramsSerializer = {
1610
+ s !== void 0 && fe.assertOptions(
1611
+ s,
1612
+ {
1613
+ silentJSONParsing: B.transitional(B.boolean),
1614
+ forcedJSONParsing: B.transitional(B.boolean),
1615
+ clarifyTimeoutError: B.transitional(B.boolean),
1616
+ legacyInterceptorReqResOrdering: B.transitional(B.boolean)
1617
+ },
1618
+ !1
1619
+ ), n != null && (u.isFunction(n) ? r.paramsSerializer = {
1527
1620
  serialize: n
1528
- } : fe.assertOptions(n, {
1529
- encode: B.function,
1530
- serialize: B.function
1531
- }, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), fe.assertOptions(r, {
1532
- baseUrl: B.spelling("baseURL"),
1533
- withXsrfToken: B.spelling("withXSRFToken")
1534
- }, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
1535
- let a = o && u.merge(
1536
- o.common,
1537
- o[r.method]
1538
- );
1539
- o && u.forEach(
1540
- ["delete", "get", "head", "post", "put", "patch", "common"],
1541
- (h) => {
1542
- delete o[h];
1543
- }
1544
- ), r.headers = U.concat(a, o);
1621
+ } : fe.assertOptions(
1622
+ n,
1623
+ {
1624
+ encode: B.function,
1625
+ serialize: B.function
1626
+ },
1627
+ !0
1628
+ )), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), fe.assertOptions(
1629
+ r,
1630
+ {
1631
+ baseUrl: B.spelling("baseURL"),
1632
+ withXsrfToken: B.spelling("withXSRFToken")
1633
+ },
1634
+ !0
1635
+ ), r.method = (r.method || this.defaults.method || "get").toLowerCase();
1636
+ let a = o && u.merge(o.common, o[r.method]);
1637
+ o && u.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (h) => {
1638
+ delete o[h];
1639
+ }), r.headers = U.concat(a, o);
1545
1640
  const i = [];
1546
1641
  let l = !0;
1547
1642
  this.interceptors.request.forEach(function(E) {
1548
1643
  if (typeof E.runWhen == "function" && E.runWhen(r) === !1)
1549
1644
  return;
1550
1645
  l = l && E.synchronous;
1551
- const f = r.transitional || De;
1646
+ const f = r.transitional || Be;
1552
1647
  f && f.legacyInterceptorReqResOrdering ? i.unshift(E.fulfilled, E.rejected) : i.push(E.fulfilled, E.rejected);
1553
1648
  });
1554
1649
  const c = [];
@@ -1557,7 +1652,7 @@ let W = class {
1557
1652
  });
1558
1653
  let d, p = 0, _;
1559
1654
  if (!l) {
1560
- const h = [nt.bind(this), void 0];
1655
+ const h = [at.bind(this), void 0];
1561
1656
  for (h.unshift(...i), h.push(...c), _ = h.length, d = Promise.resolve(r); p < _; )
1562
1657
  d = d.then(h[p++], h[p++]);
1563
1658
  return d;
@@ -1574,7 +1669,7 @@ let W = class {
1574
1669
  }
1575
1670
  }
1576
1671
  try {
1577
- d = nt.call(this, C);
1672
+ d = at.call(this, C);
1578
1673
  } catch (h) {
1579
1674
  return Promise.reject(h);
1580
1675
  }
@@ -1584,35 +1679,39 @@ let W = class {
1584
1679
  }
1585
1680
  getUri(t) {
1586
1681
  t = Y(this.defaults, t);
1587
- const r = It(t.baseURL, t.url, t.allowAbsoluteUrls);
1588
- return mt(r, t.params, t.paramsSerializer);
1682
+ const r = wt(t.baseURL, t.url, t.allowAbsoluteUrls);
1683
+ return Tt(r, t.params, t.paramsSerializer);
1589
1684
  }
1590
1685
  };
1591
1686
  u.forEach(["delete", "get", "head", "options"], function(t) {
1592
1687
  W.prototype[t] = function(r, s) {
1593
- return this.request(Y(s || {}, {
1594
- method: t,
1595
- url: r,
1596
- data: (s || {}).data
1597
- }));
1688
+ return this.request(
1689
+ Y(s || {}, {
1690
+ method: t,
1691
+ url: r,
1692
+ data: (s || {}).data
1693
+ })
1694
+ );
1598
1695
  };
1599
1696
  });
1600
1697
  u.forEach(["post", "put", "patch"], function(t) {
1601
1698
  function r(s) {
1602
1699
  return function(o, a, i) {
1603
- return this.request(Y(i || {}, {
1604
- method: t,
1605
- headers: s ? {
1606
- "Content-Type": "multipart/form-data"
1607
- } : {},
1608
- url: o,
1609
- data: a
1610
- }));
1700
+ return this.request(
1701
+ Y(i || {}, {
1702
+ method: t,
1703
+ headers: s ? {
1704
+ "Content-Type": "multipart/form-data"
1705
+ } : {},
1706
+ url: o,
1707
+ data: a
1708
+ })
1709
+ );
1611
1710
  };
1612
1711
  }
1613
1712
  W.prototype[t] = r(), W.prototype[t + "Form"] = r(!0);
1614
1713
  });
1615
- let ns = class Ct {
1714
+ let ps = class Vt {
1616
1715
  constructor(t) {
1617
1716
  if (typeof t != "function")
1618
1717
  throw new TypeError("executor must be a function.");
@@ -1678,22 +1777,22 @@ let ns = class Ct {
1678
1777
  static source() {
1679
1778
  let t;
1680
1779
  return {
1681
- token: new Ct(function(n) {
1780
+ token: new Vt(function(n) {
1682
1781
  t = n;
1683
1782
  }),
1684
1783
  cancel: t
1685
1784
  };
1686
1785
  }
1687
1786
  };
1688
- function os(e) {
1787
+ function hs(e) {
1689
1788
  return function(r) {
1690
1789
  return e.apply(null, r);
1691
1790
  };
1692
1791
  }
1693
- function as(e) {
1792
+ function fs(e) {
1694
1793
  return u.isObject(e) && e.isAxiosError === !0;
1695
1794
  }
1696
- const ge = {
1795
+ const Ne = {
1697
1796
  Continue: 100,
1698
1797
  SwitchingProtocols: 101,
1699
1798
  Processing: 102,
@@ -1764,75 +1863,75 @@ const ge = {
1764
1863
  SslHandshakeFailed: 525,
1765
1864
  InvalidSslCertificate: 526
1766
1865
  };
1767
- Object.entries(ge).forEach(([e, t]) => {
1768
- ge[t] = e;
1866
+ Object.entries(Ne).forEach(([e, t]) => {
1867
+ Ne[t] = e;
1769
1868
  });
1770
- function Lt(e) {
1771
- const t = new W(e), r = lt(W.prototype.request, t);
1869
+ function Nt(e) {
1870
+ const t = new W(e), r = dt(W.prototype.request, t);
1772
1871
  return u.extend(r, W.prototype, t, { allOwnKeys: !0 }), u.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(n) {
1773
- return Lt(Y(e, n));
1872
+ return Nt(Y(e, n));
1774
1873
  }, r;
1775
1874
  }
1776
- const O = Lt(oe);
1875
+ const O = Nt(oe);
1777
1876
  O.Axios = W;
1778
1877
  O.CanceledError = ae;
1779
- O.CancelToken = ns;
1780
- O.isCancel = Tt;
1781
- O.VERSION = yt;
1782
- O.toFormData = Re;
1878
+ O.CancelToken = ps;
1879
+ O.isCancel = St;
1880
+ O.VERSION = gt;
1881
+ O.toFormData = me;
1783
1882
  O.AxiosError = A;
1784
1883
  O.Cancel = O.CanceledError;
1785
1884
  O.all = function(t) {
1786
1885
  return Promise.all(t);
1787
1886
  };
1788
- O.spread = os;
1789
- O.isAxiosError = as;
1887
+ O.spread = hs;
1888
+ O.isAxiosError = fs;
1790
1889
  O.mergeConfig = Y;
1791
1890
  O.AxiosHeaders = U;
1792
- O.formToJSON = (e) => Rt(u.isHTMLForm(e) ? new FormData(e) : e);
1793
- O.getAdapter = wt.getAdapter;
1794
- O.HttpStatusCode = ge;
1891
+ O.formToJSON = (e) => Pt(u.isHTMLForm(e) ? new FormData(e) : e);
1892
+ O.getAdapter = Lt.getAdapter;
1893
+ O.HttpStatusCode = Ne;
1795
1894
  O.default = O;
1796
1895
  const {
1797
- Axios: js,
1798
- AxiosError: ks,
1799
- CanceledError: Fs,
1800
- isCancel: qs,
1801
- CancelToken: $s,
1802
- VERSION: zs,
1803
- all: Ws,
1804
- Cancel: Ys,
1805
- isAxiosError: Xs,
1806
- spread: Js,
1807
- toFormData: Zs,
1808
- AxiosHeaders: Ks,
1809
- HttpStatusCode: Qs,
1810
- formToJSON: en,
1811
- getAdapter: tn,
1812
- mergeConfig: rn
1813
- } = O, R = "https://faceapi.regulaforensics.com".replace(/\/+$/, "");
1896
+ Axios: Xs,
1897
+ AxiosError: Js,
1898
+ CanceledError: Zs,
1899
+ isCancel: Ks,
1900
+ CancelToken: Qs,
1901
+ VERSION: en,
1902
+ all: tn,
1903
+ Cancel: rn,
1904
+ isAxiosError: sn,
1905
+ spread: nn,
1906
+ toFormData: on,
1907
+ AxiosHeaders: an,
1908
+ HttpStatusCode: ln,
1909
+ formToJSON: cn,
1910
+ getAdapter: dn,
1911
+ mergeConfig: un
1912
+ } = O, m = "https://faceapi.regulaforensics.com".replace(/\/+$/, "");
1814
1913
  class Q {
1815
- constructor(t, r = R, s = O) {
1914
+ constructor(t, r = m, s = O) {
1816
1915
  this.basePath = r, this.axios = s, t && (this.configuration = t, this.basePath = t.basePath ?? r);
1817
1916
  }
1818
1917
  }
1819
- class is extends Error {
1918
+ class Es extends Error {
1820
1919
  constructor(t, r) {
1821
1920
  super(r), this.field = t, this.name = "RequiredError";
1822
1921
  }
1823
1922
  }
1824
- const T = {}, P = "https://example.com", m = function(e, t, r) {
1923
+ const T = {}, P = "https://example.com", R = function(e, t, r) {
1825
1924
  if (r == null)
1826
- throw new is(t, `Required parameter ${t} was null or undefined when calling ${e}.`);
1925
+ throw new Es(t, `Required parameter ${t} was null or undefined when calling ${e}.`);
1827
1926
  };
1828
- function Ne(e, t, r = "") {
1829
- t != null && (typeof t == "object" ? Array.isArray(t) ? t.forEach((s) => Ne(e, s, r)) : Object.keys(t).forEach(
1830
- (s) => Ne(e, t[s], `${r}${r !== "" ? "." : ""}${s}`)
1927
+ function Ue(e, t, r = "") {
1928
+ t != null && (typeof t == "object" ? Array.isArray(t) ? t.forEach((s) => Ue(e, s, r)) : Object.keys(t).forEach(
1929
+ (s) => Ue(e, t[s], `${r}${r !== "" ? "." : ""}${s}`)
1831
1930
  ) : e.has(r) ? e.append(r, t) : e.set(r, t));
1832
1931
  }
1833
1932
  const I = function(e, ...t) {
1834
1933
  const r = new URLSearchParams(e.search);
1835
- Ne(r, t), e.search = r.toString();
1934
+ Ue(r, t), e.search = r.toString();
1836
1935
  }, M = function(e, t, r) {
1837
1936
  const s = typeof e != "string";
1838
1937
  return (s && r && r.isJsonMime ? r.isJsonMime(t.headers["Content-Type"]) : s) ? JSON.stringify(e !== void 0 ? e : {}) : e || "";
@@ -1843,7 +1942,7 @@ const I = function(e, ...t) {
1843
1942
  const a = { ...e.options, url: (n.defaults.baseURL ? "" : s?.basePath ?? o) + e.url };
1844
1943
  return n.request(a);
1845
1944
  };
1846
- }, ls = function(e) {
1945
+ }, As = function(e) {
1847
1946
  return {
1848
1947
  /**
1849
1948
  * 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 additionally: - **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. For the list of assessed characteristics, see the [Face Image Quality Characteristics page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/face-image-quality-check/). - **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. For the list of assessed attributes, see the [Attributes List page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/attributes-detection/). You can perform Face Detection in two ways: - By adding parameters manually. In this case, the configuration is not saved and you will need to add all the necessary parameters to each request. - By a processing `scenario` that includes certain parameters. You can use predefined scenarios or add custom ones. For detailed information about scenarios, refer to the [Scenarios page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/scenarios/).
@@ -1854,7 +1953,7 @@ const I = function(e, ...t) {
1854
1953
  * @throws {RequiredError}
1855
1954
  */
1856
1955
  detect: async (t, r, s = {}) => {
1857
- m("detect", "detectRequest", t);
1956
+ R("detect", "detectRequest", t);
1858
1957
  const n = "/api/detect", o = new URL(n, P);
1859
1958
  let a;
1860
1959
  e && (a = e.baseOptions);
@@ -1875,7 +1974,7 @@ const I = function(e, ...t) {
1875
1974
  * @throws {RequiredError}
1876
1975
  */
1877
1976
  match: async (t, r, s = {}) => {
1878
- m("match", "matchRequest", t);
1977
+ R("match", "matchRequest", t);
1879
1978
  const n = "/api/match", o = new URL(n, P);
1880
1979
  let a;
1881
1980
  e && (a = e.baseOptions);
@@ -1896,7 +1995,7 @@ const I = function(e, ...t) {
1896
1995
  * @throws {RequiredError}
1897
1996
  */
1898
1997
  matchAndSearch: async (t, r, s = {}) => {
1899
- m("matchAndSearch", "matchAndSearchRequest", t);
1998
+ R("matchAndSearch", "matchAndSearchRequest", t);
1900
1999
  const n = "/api/match_and_search", o = new URL(n, P);
1901
2000
  let a;
1902
2001
  e && (a = e.baseOptions);
@@ -1909,8 +2008,8 @@ const I = function(e, ...t) {
1909
2008
  };
1910
2009
  }
1911
2010
  };
1912
- }, ye = function(e) {
1913
- const t = ls(e);
2011
+ }, Ce = function(e) {
2012
+ const t = As(e);
1914
2013
  return {
1915
2014
  /**
1916
2015
  * 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 additionally: - **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. For the list of assessed characteristics, see the [Face Image Quality Characteristics page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/face-image-quality-check/). - **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. For the list of assessed attributes, see the [Attributes List page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/attributes-detection/). You can perform Face Detection in two ways: - By adding parameters manually. In this case, the configuration is not saved and you will need to add all the necessary parameters to each request. - By a processing `scenario` that includes certain parameters. You can use predefined scenarios or add custom ones. For detailed information about scenarios, refer to the [Scenarios page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/scenarios/).
@@ -1922,7 +2021,7 @@ const I = function(e, ...t) {
1922
2021
  */
1923
2022
  async detect(r, s, n) {
1924
2023
  const o = await t.detect(r, s, n), a = e?.serverIndex ?? 0, i = T["MatchApi.detect"]?.[a]?.url;
1925
- return (l, c) => b(o, O, R, e)(l, i || c);
2024
+ return (l, c) => b(o, O, m, e)(l, i || c);
1926
2025
  },
1927
2026
  /**
1928
2027
  * 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`
@@ -1934,7 +2033,7 @@ const I = function(e, ...t) {
1934
2033
  */
1935
2034
  async match(r, s, n) {
1936
2035
  const o = await t.match(r, s, n), a = e?.serverIndex ?? 0, i = T["MatchApi.match"]?.[a]?.url;
1937
- return (l, c) => b(o, O, R, e)(l, i || c);
2036
+ return (l, c) => b(o, O, m, e)(l, i || c);
1938
2037
  },
1939
2038
  /**
1940
2039
  * 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. At least two photos are required. If, after processing two or more photos, only one face is detected across them, the match step is skipped, and only the search is carried out.
@@ -1946,11 +2045,11 @@ const I = function(e, ...t) {
1946
2045
  */
1947
2046
  async matchAndSearch(r, s, n) {
1948
2047
  const o = await t.matchAndSearch(r, s, n), a = e?.serverIndex ?? 0, i = T["MatchApi.matchAndSearch"]?.[a]?.url;
1949
- return (l, c) => b(o, O, R, e)(l, i || c);
2048
+ return (l, c) => b(o, O, m, e)(l, i || c);
1950
2049
  }
1951
2050
  };
1952
2051
  };
1953
- let cs = class extends Q {
2052
+ let Os = class extends Q {
1954
2053
  /**
1955
2054
  * 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 additionally: - **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. For the list of assessed characteristics, see the [Face Image Quality Characteristics page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/face-image-quality-check/). - **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. For the list of assessed attributes, see the [Attributes List page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/attributes-detection/). You can perform Face Detection in two ways: - By adding parameters manually. In this case, the configuration is not saved and you will need to add all the necessary parameters to each request. - By a processing `scenario` that includes certain parameters. You can use predefined scenarios or add custom ones. For detailed information about scenarios, refer to the [Scenarios page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/scenarios/).
1956
2055
  * @summary detect and check quality
@@ -1960,7 +2059,7 @@ let cs = class extends Q {
1960
2059
  * @throws {RequiredError}
1961
2060
  */
1962
2061
  detect(t, r, s) {
1963
- return ye(this.configuration).detect(t, r, s).then((n) => n(this.axios, this.basePath));
2062
+ return Ce(this.configuration).detect(t, r, s).then((n) => n(this.axios, this.basePath));
1964
2063
  }
1965
2064
  /**
1966
2065
  * 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`
@@ -1971,7 +2070,7 @@ let cs = class extends Q {
1971
2070
  * @throws {RequiredError}
1972
2071
  */
1973
2072
  match(t, r, s) {
1974
- return ye(this.configuration).match(t, r, s).then((n) => n(this.axios, this.basePath));
2073
+ return Ce(this.configuration).match(t, r, s).then((n) => n(this.axios, this.basePath));
1975
2074
  }
1976
2075
  /**
1977
2076
  * 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. At least two photos are required. If, after processing two or more photos, only one face is detected across them, the match step is skipped, and only the search is carried out.
@@ -1982,32 +2081,32 @@ let cs = class extends Q {
1982
2081
  * @throws {RequiredError}
1983
2082
  */
1984
2083
  matchAndSearch(t, r, s) {
1985
- return ye(this.configuration).matchAndSearch(t, r, s).then((n) => n(this.axios, this.basePath));
2084
+ return Ce(this.configuration).matchAndSearch(t, r, s).then((n) => n(this.axios, this.basePath));
1986
2085
  }
1987
2086
  };
1988
- var ds = /* @__PURE__ */ ((e) => (e.AGE = "Age", e.EMOTION = "Emotion", e.EYE_LEFT = "EyeLeft", e.EYE_RIGHT = "EyeRight", e.SMILE = "Smile", e.GLASSES = "Glasses", e.HEAD_COVERING = "HeadCovering", e.FOREHEAD_COVERING = "ForeheadCovering", e.MOUTH = "Mouth", e.MEDICAL_MASK = "MedicalMask", e.OCCLUSION = "Occlusion", e.STRONG_MAKEUP = "StrongMakeup", e.HEADPHONES = "Headphones", e))(ds || {}), us = /* @__PURE__ */ ((e) => (e[e.ALIGN_3x4 = 0] = "ALIGN_3x4", e[e.ALIGN_4x5 = 1] = "ALIGN_4x5", e[e.ALIGN_2x3 = 2] = "ALIGN_2x3", e[e.ALIGN_1x1 = 3] = "ALIGN_1x1", e[e.ALIGN_7x9 = 4] = "ALIGN_7x9", e))(us || {}), ps = /* @__PURE__ */ ((e) => (e[e.IMAGE_CHARACTERISTICS = 1] = "IMAGE_CHARACTERISTICS", e[e.HEAD_SIZE_AND_POSITIONS = 2] = "HEAD_SIZE_AND_POSITIONS", e[e.FACE_QUALITY = 3] = "FACE_QUALITY", e[e.EYES_CHARACTERISTICS = 4] = "EYES_CHARACTERISTICS", e[e.SHADOWS_AND_LIGHTNING = 5] = "SHADOWS_AND_LIGHTNING", e[e.POSE_AND_EXPRESSION = 6] = "POSE_AND_EXPRESSION", e[e.HEAD_OCCLUSION = 7] = "HEAD_OCCLUSION", e[e.BACKGROUND = 8] = "BACKGROUND", e))(ps || {}), hs = /* @__PURE__ */ ((e) => (e.IMAGE_CHARACTERISTICS = "ImageCharacteristics", e.HEAD_SIZE_AND_POSITIONS = "HeadSizeAndPosition", e.FACE_QUALITY = "FaceQuality", e.EYES_CHARACTERISTICS = "EyesCharacteristics", e.SHADOWS_AND_LIGHTNING = "ShadowsAndLightning", e.POSE_AND_EXPRESSION = "PoseAndExpression", e.HEAD_OCCLUSION = "HeadOcclusion", e.BACKGROUND = "Background", e))(hs || {}), fs = /* @__PURE__ */ ((e) => (e[e.QUALITY_STATUS_FALSE = 0] = "QUALITY_STATUS_FALSE", e[e.QUALITY_STATUS_TRUE = 1] = "QUALITY_STATUS_TRUE", e[e.QUALITY_STATUS_UNDETERMINED = 2] = "QUALITY_STATUS_UNDETERMINED", e))(fs || {}), Es = /* @__PURE__ */ ((e) => (e.IMAGE_WIDTH = "ImageWidth", e.IMAGE_HEIGHT = "ImageHeight", e.IMAGE_WIDTH_TO_HEIGHT = "ImageWidthToHeight", e.IMAGE_CHANNELS_NUMBER = "ImageChannelsNumber", e.PADDING_RATIO = "PaddingRatio", e.FACE_MID_POINT_HORIZONTAL_POSITION = "FaceMidPointHorizontalPosition", e.FACE_MID_POINT_VERTICAL_POSITION = "FaceMidPointVerticalPosition", e.HEAD_WIDTH_RATIO = "HeadWidthRatio", e.HEAD_HEIGHT_RATIO = "HeadHeightRatio", e.EYES_DISTANCE = "EyesDistance", e.YAW = "Yaw", e.PITCH = "Pitch", e.ROLL = "Roll", e.BLUR_LEVEL = "BlurLevel", e.NOISE_LEVEL = "NoiseLevel", e.EYE_RIGHT_CLOSED = "EyeRightClosed", e.EYE_LEFT_CLOSED = "EyeLeftClosed", e.EYE_RIGHT_OCCLUDED = "EyeRightOccluded", e.EYE_LEFT_OCCLUDED = "EyeLeftOccluded", e.EYES_RED = "EyesRed", e.EYE_RIGHT_COVERED_WITH_HAIR = "EyeRightCoveredWithHair", e.EYE_LEFT_COVERED_WITH_HAIR = "EyeLeftCoveredWithHair", e.OFF_GAZE = "OffGaze", e.FACE_DYNAMIC_RANGE = "FaceDynamicRange", e.UNNATURAL_SKIN_TONE = "UnnaturalSkinTone", e.TOO_DARK = "TooDark", e.TOO_LIGHT = "TooLight", e.FACE_GLARE = "FaceGlare", e.SHADOWS_ON_FACE = "ShadowsOnFace", e.DARK_GLASSES = "DarkGlasses", e.REFLECTION_ON_GLASSES = "ReflectionOnGlasses", e.FRAMES_TOO_HEAVY = "FramesTooHeavy", e.FACE_OCCLUDED = "FaceOccluded", e.HEAD_COVERING = "HeadCovering", e.BACKGROUND_UNIFORMITY = "BackgroundUniformity", e.SHADOWS_ON_BACKGROUND = "ShadowsOnBackground", e.OTHER_FACES = "OtherFaces", e.SHOULDERS_POSE = "ShouldersPose", e.EXPRESSION_LEVEL = "ExpressionLevel", e.MOUTH_OPEN = "MouthOpen", e.FOREHEAD_COVERING = "ForeheadCovering", e.SMILE = "Smile", e.STRONG_MAKEUP = "StrongMakeup", e.HEADPHONES = "Headphones", e.MEDICAL_MASK = "MedicalMask", e.BACKGROUND_COLOR_MATCH = "BackgroundColorMatch", e.ART_FACE = "ArtFace", e.CONTACT_LENSES = "ContactLenses", e))(Es || {}), As = /* @__PURE__ */ ((e) => (e.OLD_MODE = "OldMode", e.QUALITY_FULL = "QualityFull", e.QUALITY_ICAO = "QualityICAO", e.QUALITY_VISA_SCHENGEN = "QualityVisaSchengen", e.QUALITY_VISA_USA = "QualityVisaUSA", e.CROP_CENTRAL_FACE = "CropCentralFace", e.CROP_ALL_FACES = "CropAllFaces", e.THUMBNAIL = "Thumbnail", e.ATTRIBUTES_ALL = "AttributesAll", e.EMPTY = "", e))(As || {}), Os = /* @__PURE__ */ ((e) => (e[e.FACER_OK = 0] = "FACER_OK", e[e.FR_IMAGE_EMPTY = 1] = "FR_IMAGE_EMPTY", e[e.FR_FACE_NOT_DETECTED = 2] = "FR_FACE_NOT_DETECTED", e[e.FR_LANDMARKS_NOT_DETECTED = 3] = "FR_LANDMARKS_NOT_DETECTED", e[e.FR_FACE_ALIGHNER_FAILED = 4] = "FR_FACE_ALIGHNER_FAILED", e[e.FR_DESCRIPTOR_EXTRACTOR_ERROR = 5] = "FR_DESCRIPTOR_EXTRACTOR_ERROR", e[e.FR_IMAGE_DECODE_ERROR = 6] = "FR_IMAGE_DECODE_ERROR", e[e.FR_INTERNAL_ERROR = 7] = "FR_INTERNAL_ERROR", e[e.FACER_CONFIG_ERROR = 199] = "FACER_CONFIG_ERROR", e[e.FACER_NO_LICENSE = 200] = "FACER_NO_LICENSE", e[e.FACER_IS_NOT_INITIALIZED = 201] = "FACER_IS_NOT_INITIALIZED", e[e.FACER_COMMAND_IS_NOT_SUPPORTED = 202] = "FACER_COMMAND_IS_NOT_SUPPORTED", e[e.FACER_COMMAND_PARAMS_READ_ERROR = 203] = "FACER_COMMAND_PARAMS_READ_ERROR", e[e.FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST = 224] = "FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST", e[e.FACER_VIDEO_DECODE_ERROR = 227] = "FACER_VIDEO_DECODE_ERROR", e[e.FACER_NOT_ENOUGH_FRAMES = 228] = "FACER_NOT_ENOUGH_FRAMES", e[e.FACER_OUTPUT_IS_NOT_DEFINED = 229] = "FACER_OUTPUT_IS_NOT_DEFINED", e[e.FACER_CLOSED_EYES_DETECTED = 230] = "FACER_CLOSED_EYES_DETECTED", e[e.FACER_LOW_QUALITY = 231] = "FACER_LOW_QUALITY", e[e.FACER_HIGH_ASYMMETRY = 232] = "FACER_HIGH_ASYMMETRY", e[e.FACER_FACE_OVER_EMOTIONAL = 233] = "FACER_FACE_OVER_EMOTIONAL", e[e.FACER_SUNGLASSES_DETECTED = 234] = "FACER_SUNGLASSES_DETECTED", e[e.FACER_SMALL_AGE = 235] = "FACER_SMALL_AGE", e[e.FACER_HEADDRESS_DETECTED = 236] = "FACER_HEADDRESS_DETECTED", e[e.FACER_FACES_NOT_MATCHED = 237] = "FACER_FACES_NOT_MATCHED", e[e.FACER_IMAGES_COUNT_LIMIT_EXCEEDED = 238] = "FACER_IMAGES_COUNT_LIMIT_EXCEEDED", e[e.FACER_MEDICINE_MASK_DETECTED = 239] = "FACER_MEDICINE_MASK_DETECTED", e[e.FACER_OCCLUSION_DETECTED = 240] = "FACER_OCCLUSION_DETECTED", e[e.FACER_FOREHEAD_GLASSES_DETECTED = 242] = "FACER_FOREHEAD_GLASSES_DETECTED", e[e.FACER_MOUTH_OPENED = 243] = "FACER_MOUTH_OPENED", e[e.FACER_ART_MASK_DETECTED = 244] = "FACER_ART_MASK_DETECTED", e[e.FACER_ELECTRONIC_DEVICE_DETECTED = 245] = "FACER_ELECTRONIC_DEVICE_DETECTED", e[e.FACER_TRACK_BREAK = 246] = "FACER_TRACK_BREAK", e[e.FACER_WRONG_GEO = 247] = "FACER_WRONG_GEO", e[e.FACER_WRONG_OF = 248] = "FACER_WRONG_OF", e[e.FACER_WRONG_VIEW = 249] = "FACER_WRONG_VIEW", e[e.FACER_TIMEOUT_LIVENESS_TRANSACTION = 250] = "FACER_TIMEOUT_LIVENESS_TRANSACTION", e[e.FACER_FAILED_LIVENESS_TRANSACTION = 251] = "FACER_FAILED_LIVENESS_TRANSACTION", e[e.FACER_ABORTED_LIVENESS_TRANSACTION = 252] = "FACER_ABORTED_LIVENESS_TRANSACTION", e[e.FACER_GENERAL_ERROR = 253] = "FACER_GENERAL_ERROR", e[e.FACER_PASSIVE_LIVENESS_FAIL = 254] = "FACER_PASSIVE_LIVENESS_FAIL", e))(Os || {}), _s = /* @__PURE__ */ ((e) => (e.IN = "in", e.NOT_IN = "nin", e))(_s || {}), Vt = /* @__PURE__ */ ((e) => (e[e.DOCUMENT_PRINTED = 1] = "DOCUMENT_PRINTED", e[e.DOCUMENT_RFID = 2] = "DOCUMENT_RFID", e[e.LIVE = 3] = "LIVE", e[e.DOCUMENT_WITH_LIVE = 4] = "DOCUMENT_WITH_LIVE", e[e.EXTERNAL = 5] = "EXTERNAL", e[e.GHOST = 6] = "GHOST", e[e.BARCODE = 7] = "BARCODE", e))(Vt || {}), ms = /* @__PURE__ */ ((e) => (e[e.ACTIVE = 0] = "ACTIVE", e[e.PASSIVE = 1] = "PASSIVE", e))(ms || {}), J = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Rs = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
2087
+ var _s = /* @__PURE__ */ ((e) => (e.AGE = "Age", e.EMOTION = "Emotion", e.EYE_LEFT = "EyeLeft", e.EYE_RIGHT = "EyeRight", e.SMILE = "Smile", e.GLASSES = "Glasses", e.HEAD_COVERING = "HeadCovering", e.FOREHEAD_COVERING = "ForeheadCovering", e.MOUTH = "Mouth", e.MEDICAL_MASK = "MedicalMask", e.OCCLUSION = "Occlusion", e.STRONG_MAKEUP = "StrongMakeup", e.HEADPHONES = "Headphones", e))(_s || {}), Rs = /* @__PURE__ */ ((e) => (e[e.ALIGN_3x4 = 0] = "ALIGN_3x4", e[e.ALIGN_4x5 = 1] = "ALIGN_4x5", e[e.ALIGN_2x3 = 2] = "ALIGN_2x3", e[e.ALIGN_1x1 = 3] = "ALIGN_1x1", e[e.ALIGN_7x9 = 4] = "ALIGN_7x9", e))(Rs || {}), ms = /* @__PURE__ */ ((e) => (e[e.IMAGE_CHARACTERISTICS = 1] = "IMAGE_CHARACTERISTICS", e[e.HEAD_SIZE_AND_POSITIONS = 2] = "HEAD_SIZE_AND_POSITIONS", e[e.FACE_QUALITY = 3] = "FACE_QUALITY", e[e.EYES_CHARACTERISTICS = 4] = "EYES_CHARACTERISTICS", e[e.SHADOWS_AND_LIGHTNING = 5] = "SHADOWS_AND_LIGHTNING", e[e.POSE_AND_EXPRESSION = 6] = "POSE_AND_EXPRESSION", e[e.HEAD_OCCLUSION = 7] = "HEAD_OCCLUSION", e[e.BACKGROUND = 8] = "BACKGROUND", e))(ms || {}), Ts = /* @__PURE__ */ ((e) => (e.IMAGE_CHARACTERISTICS = "ImageCharacteristics", e.HEAD_SIZE_AND_POSITIONS = "HeadSizeAndPosition", e.FACE_QUALITY = "FaceQuality", e.EYES_CHARACTERISTICS = "EyesCharacteristics", e.SHADOWS_AND_LIGHTNING = "ShadowsAndLightning", e.POSE_AND_EXPRESSION = "PoseAndExpression", e.HEAD_OCCLUSION = "HeadOcclusion", e.BACKGROUND = "Background", e))(Ts || {}), Ps = /* @__PURE__ */ ((e) => (e[e.QUALITY_STATUS_FALSE = 0] = "QUALITY_STATUS_FALSE", e[e.QUALITY_STATUS_TRUE = 1] = "QUALITY_STATUS_TRUE", e[e.QUALITY_STATUS_UNDETERMINED = 2] = "QUALITY_STATUS_UNDETERMINED", e))(Ps || {}), Is = /* @__PURE__ */ ((e) => (e.IMAGE_WIDTH = "ImageWidth", e.IMAGE_HEIGHT = "ImageHeight", e.IMAGE_WIDTH_TO_HEIGHT = "ImageWidthToHeight", e.IMAGE_CHANNELS_NUMBER = "ImageChannelsNumber", e.PADDING_RATIO = "PaddingRatio", e.FACE_MID_POINT_HORIZONTAL_POSITION = "FaceMidPointHorizontalPosition", e.FACE_MID_POINT_VERTICAL_POSITION = "FaceMidPointVerticalPosition", e.HEAD_WIDTH_RATIO = "HeadWidthRatio", e.HEAD_HEIGHT_RATIO = "HeadHeightRatio", e.EYES_DISTANCE = "EyesDistance", e.YAW = "Yaw", e.PITCH = "Pitch", e.ROLL = "Roll", e.BLUR_LEVEL = "BlurLevel", e.NOISE_LEVEL = "NoiseLevel", e.EYE_RIGHT_CLOSED = "EyeRightClosed", e.EYE_LEFT_CLOSED = "EyeLeftClosed", e.EYE_RIGHT_OCCLUDED = "EyeRightOccluded", e.EYE_LEFT_OCCLUDED = "EyeLeftOccluded", e.EYES_RED = "EyesRed", e.EYE_RIGHT_COVERED_WITH_HAIR = "EyeRightCoveredWithHair", e.EYE_LEFT_COVERED_WITH_HAIR = "EyeLeftCoveredWithHair", e.OFF_GAZE = "OffGaze", e.FACE_DYNAMIC_RANGE = "FaceDynamicRange", e.UNNATURAL_SKIN_TONE = "UnnaturalSkinTone", e.TOO_DARK = "TooDark", e.TOO_LIGHT = "TooLight", e.FACE_GLARE = "FaceGlare", e.SHADOWS_ON_FACE = "ShadowsOnFace", e.DARK_GLASSES = "DarkGlasses", e.REFLECTION_ON_GLASSES = "ReflectionOnGlasses", e.FRAMES_TOO_HEAVY = "FramesTooHeavy", e.FACE_OCCLUDED = "FaceOccluded", e.HEAD_COVERING = "HeadCovering", e.BACKGROUND_UNIFORMITY = "BackgroundUniformity", e.SHADOWS_ON_BACKGROUND = "ShadowsOnBackground", e.OTHER_FACES = "OtherFaces", e.SHOULDERS_POSE = "ShouldersPose", e.EXPRESSION_LEVEL = "ExpressionLevel", e.MOUTH_OPEN = "MouthOpen", e.FOREHEAD_COVERING = "ForeheadCovering", e.SMILE = "Smile", e.STRONG_MAKEUP = "StrongMakeup", e.HEADPHONES = "Headphones", e.MEDICAL_MASK = "MedicalMask", e.BACKGROUND_COLOR_MATCH = "BackgroundColorMatch", e.ART_FACE = "ArtFace", e.CONTACT_LENSES = "ContactLenses", e))(Is || {}), Ss = /* @__PURE__ */ ((e) => (e.OLD_MODE = "OldMode", e.QUALITY_FULL = "QualityFull", e.QUALITY_ICAO = "QualityICAO", e.QUALITY_VISA_SCHENGEN = "QualityVisaSchengen", e.QUALITY_VISA_USA = "QualityVisaUSA", e.CROP_CENTRAL_FACE = "CropCentralFace", e.CROP_ALL_FACES = "CropAllFaces", e.THUMBNAIL = "Thumbnail", e.ATTRIBUTES_ALL = "AttributesAll", e.EMPTY = "", e))(Ss || {}), bs = /* @__PURE__ */ ((e) => (e[e.FACER_OK = 0] = "FACER_OK", e[e.FR_IMAGE_EMPTY = 1] = "FR_IMAGE_EMPTY", e[e.FR_FACE_NOT_DETECTED = 2] = "FR_FACE_NOT_DETECTED", e[e.FR_LANDMARKS_NOT_DETECTED = 3] = "FR_LANDMARKS_NOT_DETECTED", e[e.FR_FACE_ALIGHNER_FAILED = 4] = "FR_FACE_ALIGHNER_FAILED", e[e.FR_DESCRIPTOR_EXTRACTOR_ERROR = 5] = "FR_DESCRIPTOR_EXTRACTOR_ERROR", e[e.FR_IMAGE_DECODE_ERROR = 6] = "FR_IMAGE_DECODE_ERROR", e[e.FR_INTERNAL_ERROR = 7] = "FR_INTERNAL_ERROR", e[e.FACER_CONFIG_ERROR = 199] = "FACER_CONFIG_ERROR", e[e.FACER_NO_LICENSE = 200] = "FACER_NO_LICENSE", e[e.FACER_IS_NOT_INITIALIZED = 201] = "FACER_IS_NOT_INITIALIZED", e[e.FACER_COMMAND_IS_NOT_SUPPORTED = 202] = "FACER_COMMAND_IS_NOT_SUPPORTED", e[e.FACER_COMMAND_PARAMS_READ_ERROR = 203] = "FACER_COMMAND_PARAMS_READ_ERROR", e[e.FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST = 224] = "FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST", e[e.FACER_VIDEO_DECODE_ERROR = 227] = "FACER_VIDEO_DECODE_ERROR", e[e.FACER_NOT_ENOUGH_FRAMES = 228] = "FACER_NOT_ENOUGH_FRAMES", e[e.FACER_OUTPUT_IS_NOT_DEFINED = 229] = "FACER_OUTPUT_IS_NOT_DEFINED", e[e.FACER_CLOSED_EYES_DETECTED = 230] = "FACER_CLOSED_EYES_DETECTED", e[e.FACER_LOW_QUALITY = 231] = "FACER_LOW_QUALITY", e[e.FACER_HIGH_ASYMMETRY = 232] = "FACER_HIGH_ASYMMETRY", e[e.FACER_FACE_OVER_EMOTIONAL = 233] = "FACER_FACE_OVER_EMOTIONAL", e[e.FACER_SUNGLASSES_DETECTED = 234] = "FACER_SUNGLASSES_DETECTED", e[e.FACER_SMALL_AGE = 235] = "FACER_SMALL_AGE", e[e.FACER_HEADDRESS_DETECTED = 236] = "FACER_HEADDRESS_DETECTED", e[e.FACER_FACES_NOT_MATCHED = 237] = "FACER_FACES_NOT_MATCHED", e[e.FACER_IMAGES_COUNT_LIMIT_EXCEEDED = 238] = "FACER_IMAGES_COUNT_LIMIT_EXCEEDED", e[e.FACER_MEDICINE_MASK_DETECTED = 239] = "FACER_MEDICINE_MASK_DETECTED", e[e.FACER_OCCLUSION_DETECTED = 240] = "FACER_OCCLUSION_DETECTED", e[e.FACER_FOREHEAD_GLASSES_DETECTED = 242] = "FACER_FOREHEAD_GLASSES_DETECTED", e[e.FACER_MOUTH_OPENED = 243] = "FACER_MOUTH_OPENED", e[e.FACER_ART_MASK_DETECTED = 244] = "FACER_ART_MASK_DETECTED", e[e.FACER_ELECTRONIC_DEVICE_DETECTED = 245] = "FACER_ELECTRONIC_DEVICE_DETECTED", e[e.FACER_TRACK_BREAK = 246] = "FACER_TRACK_BREAK", e[e.FACER_WRONG_GEO = 247] = "FACER_WRONG_GEO", e[e.FACER_WRONG_OF = 248] = "FACER_WRONG_OF", e[e.FACER_WRONG_VIEW = 249] = "FACER_WRONG_VIEW", e[e.FACER_TIMEOUT_LIVENESS_TRANSACTION = 250] = "FACER_TIMEOUT_LIVENESS_TRANSACTION", e[e.FACER_FAILED_LIVENESS_TRANSACTION = 251] = "FACER_FAILED_LIVENESS_TRANSACTION", e[e.FACER_ABORTED_LIVENESS_TRANSACTION = 252] = "FACER_ABORTED_LIVENESS_TRANSACTION", e[e.FACER_GENERAL_ERROR = 253] = "FACER_GENERAL_ERROR", e[e.FACER_PASSIVE_LIVENESS_FAIL = 254] = "FACER_PASSIVE_LIVENESS_FAIL", e))(bs || {}), ws = /* @__PURE__ */ ((e) => (e.IN = "in", e.NOT_IN = "nin", e))(ws || {}), Ut = /* @__PURE__ */ ((e) => (e[e.DOCUMENT_PRINTED = 1] = "DOCUMENT_PRINTED", e[e.DOCUMENT_RFID = 2] = "DOCUMENT_RFID", e[e.LIVE = 3] = "LIVE", e[e.DOCUMENT_WITH_LIVE = 4] = "DOCUMENT_WITH_LIVE", e[e.EXTERNAL = 5] = "EXTERNAL", e[e.GHOST = 6] = "GHOST", e[e.BARCODE = 7] = "BARCODE", e))(Ut || {}), ys = /* @__PURE__ */ ((e) => (e[e.ACTIVE = 0] = "ACTIVE", e[e.PASSIVE = 1] = "PASSIVE", e))(ys || {}), J = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Cs = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
1989
2088
  for (var ue = 0; ue < J.length; ue++)
1990
- Rs[J.charCodeAt(ue)] = ue;
2089
+ Cs[J.charCodeAt(ue)] = ue;
1991
2090
  var Ae = function(e) {
1992
2091
  var t = new Uint8Array(e), r, s = t.length, n = "";
1993
2092
  for (r = 0; r < s; r += 3)
1994
2093
  n += J[t[r] >> 2], n += J[(t[r] & 3) << 4 | t[r + 1] >> 4], n += J[(t[r + 1] & 15) << 2 | t[r + 2] >> 6], n += J[t[r + 2] & 63];
1995
2094
  return s % 3 === 2 ? n = n.substring(0, n.length - 1) + "=" : s % 3 === 1 && (n = n.substring(0, n.length - 2) + "=="), n;
1996
2095
  };
1997
- class Ts {
2096
+ class Ls {
1998
2097
  constructor(t, r, s) {
1999
- this.superClass = new cs(t, r, s);
2098
+ this.superClass = new Os(t, r, s);
2000
2099
  }
2001
2100
  async match(t, r, s) {
2002
2101
  for (const o of t.images)
2003
- o.type || (o.type = Vt.LIVE), typeof o.data != "string" && (o.data = Ae(o.data));
2102
+ o.type || (o.type = Ut.LIVE), typeof o.data != "string" && (o.data = Ae(o.data));
2004
2103
  return (await this.superClass.match(t, r, s)).data;
2005
2104
  }
2006
2105
  async detect(t, r, s) {
2007
2106
  return t.image && typeof t.image != "string" && (t.image = Ae(t.image)), (await this.superClass.detect(t, r, s)).data;
2008
2107
  }
2009
2108
  }
2010
- const Ps = function(e) {
2109
+ const gs = function(e) {
2011
2110
  return {
2012
2111
  /**
2013
2112
  *
@@ -2018,7 +2117,7 @@ const Ps = function(e) {
2018
2117
  * @throws {RequiredError}
2019
2118
  */
2020
2119
  createGroup: async (t, r, s = {}) => {
2021
- m("createGroup", "groupToCreate", t);
2120
+ R("createGroup", "groupToCreate", t);
2022
2121
  const n = "/api/groups", o = new URL(n, P);
2023
2122
  let a;
2024
2123
  e && (a = e.baseOptions);
@@ -2039,7 +2138,7 @@ const Ps = function(e) {
2039
2138
  * @throws {RequiredError}
2040
2139
  */
2041
2140
  deleteGroup: async (t, r, s = {}) => {
2042
- m("deleteGroup", "groupId", t);
2141
+ R("deleteGroup", "groupId", t);
2043
2142
  const n = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(t))), o = new URL(n, P);
2044
2143
  let a;
2045
2144
  e && (a = e.baseOptions);
@@ -2083,7 +2182,7 @@ const Ps = function(e) {
2083
2182
  * @throws {RequiredError}
2084
2183
  */
2085
2184
  getAllPersonsByGroupId: async (t, r, s, n, o = {}) => {
2086
- m("getAllPersonsByGroupId", "groupId", t);
2185
+ R("getAllPersonsByGroupId", "groupId", t);
2087
2186
  const a = "/api/groups/{groupId}/persons".replace("{groupId}", encodeURIComponent(String(t))), i = new URL(a, P);
2088
2187
  let l;
2089
2188
  e && (l = e.baseOptions);
@@ -2104,7 +2203,7 @@ const Ps = function(e) {
2104
2203
  * @throws {RequiredError}
2105
2204
  */
2106
2205
  getGroup: async (t, r, s = {}) => {
2107
- m("getGroup", "groupId", t);
2206
+ R("getGroup", "groupId", t);
2108
2207
  const n = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(t))), o = new URL(n, P);
2109
2208
  let a;
2110
2209
  e && (a = e.baseOptions);
@@ -2126,7 +2225,7 @@ const Ps = function(e) {
2126
2225
  * @throws {RequiredError}
2127
2226
  */
2128
2227
  updateGroup: async (t, r, s, n = {}) => {
2129
- m("updateGroup", "groupId", t), m("updateGroup", "groupToCreate", r);
2228
+ R("updateGroup", "groupId", t), R("updateGroup", "groupToCreate", r);
2130
2229
  const o = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(t))), a = new URL(o, P);
2131
2230
  let i;
2132
2231
  e && (i = e.baseOptions);
@@ -2148,7 +2247,7 @@ const Ps = function(e) {
2148
2247
  * @throws {RequiredError}
2149
2248
  */
2150
2249
  updatePersonsInGroup: async (t, r, s, n = {}) => {
2151
- m("updatePersonsInGroup", "groupId", t), m("updatePersonsInGroup", "updateGroup", r);
2250
+ R("updatePersonsInGroup", "groupId", t), R("updatePersonsInGroup", "updateGroup", r);
2152
2251
  const o = "/api/groups/{groupId}/persons".replace("{groupId}", encodeURIComponent(String(t))), a = new URL(o, P);
2153
2252
  let i;
2154
2253
  e && (i = e.baseOptions);
@@ -2162,7 +2261,7 @@ const Ps = function(e) {
2162
2261
  }
2163
2262
  };
2164
2263
  }, $ = function(e) {
2165
- const t = Ps(e);
2264
+ const t = gs(e);
2166
2265
  return {
2167
2266
  /**
2168
2267
  *
@@ -2174,7 +2273,7 @@ const Ps = function(e) {
2174
2273
  */
2175
2274
  async createGroup(r, s, n) {
2176
2275
  const o = await t.createGroup(r, s, n), a = e?.serverIndex ?? 0, i = T["GroupApi.createGroup"]?.[a]?.url;
2177
- return (l, c) => b(o, O, R, e)(l, i || c);
2276
+ return (l, c) => b(o, O, m, e)(l, i || c);
2178
2277
  },
2179
2278
  /**
2180
2279
  *
@@ -2186,7 +2285,7 @@ const Ps = function(e) {
2186
2285
  */
2187
2286
  async deleteGroup(r, s, n) {
2188
2287
  const o = await t.deleteGroup(r, s, n), a = e?.serverIndex ?? 0, i = T["GroupApi.deleteGroup"]?.[a]?.url;
2189
- return (l, c) => b(o, O, R, e)(l, i || c);
2288
+ return (l, c) => b(o, O, m, e)(l, i || c);
2190
2289
  },
2191
2290
  /**
2192
2291
  *
@@ -2199,7 +2298,7 @@ const Ps = function(e) {
2199
2298
  */
2200
2299
  async getAllGroups(r, s, n, o) {
2201
2300
  const a = await t.getAllGroups(r, s, n, o), i = e?.serverIndex ?? 0, l = T["GroupApi.getAllGroups"]?.[i]?.url;
2202
- return (c, d) => b(a, O, R, e)(c, l || d);
2301
+ return (c, d) => b(a, O, m, e)(c, l || d);
2203
2302
  },
2204
2303
  /**
2205
2304
  *
@@ -2213,7 +2312,7 @@ const Ps = function(e) {
2213
2312
  */
2214
2313
  async getAllPersonsByGroupId(r, s, n, o, a) {
2215
2314
  const i = await t.getAllPersonsByGroupId(r, s, n, o, a), l = e?.serverIndex ?? 0, c = T["GroupApi.getAllPersonsByGroupId"]?.[l]?.url;
2216
- return (d, p) => b(i, O, R, e)(d, c || p);
2315
+ return (d, p) => b(i, O, m, e)(d, c || p);
2217
2316
  },
2218
2317
  /**
2219
2318
  *
@@ -2225,7 +2324,7 @@ const Ps = function(e) {
2225
2324
  */
2226
2325
  async getGroup(r, s, n) {
2227
2326
  const o = await t.getGroup(r, s, n), a = e?.serverIndex ?? 0, i = T["GroupApi.getGroup"]?.[a]?.url;
2228
- return (l, c) => b(o, O, R, e)(l, i || c);
2327
+ return (l, c) => b(o, O, m, e)(l, i || c);
2229
2328
  },
2230
2329
  /**
2231
2330
  *
@@ -2238,7 +2337,7 @@ const Ps = function(e) {
2238
2337
  */
2239
2338
  async updateGroup(r, s, n, o) {
2240
2339
  const a = await t.updateGroup(r, s, n, o), i = e?.serverIndex ?? 0, l = T["GroupApi.updateGroup"]?.[i]?.url;
2241
- return (c, d) => b(a, O, R, e)(c, l || d);
2340
+ return (c, d) => b(a, O, m, e)(c, l || d);
2242
2341
  },
2243
2342
  /**
2244
2343
  *
@@ -2251,11 +2350,11 @@ const Ps = function(e) {
2251
2350
  */
2252
2351
  async updatePersonsInGroup(r, s, n, o) {
2253
2352
  const a = await t.updatePersonsInGroup(r, s, n, o), i = e?.serverIndex ?? 0, l = T["GroupApi.updatePersonsInGroup"]?.[i]?.url;
2254
- return (c, d) => b(a, O, R, e)(c, l || d);
2353
+ return (c, d) => b(a, O, m, e)(c, l || d);
2255
2354
  }
2256
2355
  };
2257
2356
  };
2258
- let Is = class extends Q {
2357
+ let Vs = class extends Q {
2259
2358
  /**
2260
2359
  *
2261
2360
  * @summary Create group
@@ -2339,9 +2438,9 @@ let Is = class extends Q {
2339
2438
  return $(this.configuration).updatePersonsInGroup(t, r, s, n).then((o) => o(this.axios, this.basePath));
2340
2439
  }
2341
2440
  };
2342
- class Ss {
2441
+ class Ns {
2343
2442
  constructor(t, r, s) {
2344
- this.superClass = new Is(t, r, s);
2443
+ this.superClass = new Vs(t, r, s);
2345
2444
  }
2346
2445
  async createGroup(t, r, s) {
2347
2446
  const n = {
@@ -2369,7 +2468,7 @@ class Ss {
2369
2468
  await this.superClass.updatePersonsInGroup(t, r, s, n);
2370
2469
  }
2371
2470
  }
2372
- const bs = function(e) {
2471
+ const Us = function(e) {
2373
2472
  return {
2374
2473
  /**
2375
2474
  *
@@ -2381,7 +2480,7 @@ const bs = function(e) {
2381
2480
  * @throws {RequiredError}
2382
2481
  */
2383
2482
  addImageToPerson: async (t, r, s, n = {}) => {
2384
- m("addImageToPerson", "personId", t), m("addImageToPerson", "addImageToPersonRequest", r);
2483
+ R("addImageToPerson", "personId", t), R("addImageToPerson", "addImageToPersonRequest", r);
2385
2484
  const o = "/api/persons/{personId}/images".replace("{personId}", encodeURIComponent(String(t))), a = new URL(o, P);
2386
2485
  let i;
2387
2486
  e && (i = e.baseOptions);
@@ -2402,7 +2501,7 @@ const bs = function(e) {
2402
2501
  * @throws {RequiredError}
2403
2502
  */
2404
2503
  createPerson: async (t, r, s = {}) => {
2405
- m("createPerson", "personFields", t);
2504
+ R("createPerson", "personFields", t);
2406
2505
  const n = "/api/persons", o = new URL(n, P);
2407
2506
  let a;
2408
2507
  e && (a = e.baseOptions);
@@ -2424,7 +2523,7 @@ const bs = function(e) {
2424
2523
  * @throws {RequiredError}
2425
2524
  */
2426
2525
  deleteImageOfPerson: async (t, r, s, n = {}) => {
2427
- m("deleteImageOfPerson", "personId", t), m("deleteImageOfPerson", "imageId", r);
2526
+ R("deleteImageOfPerson", "personId", t), R("deleteImageOfPerson", "imageId", r);
2428
2527
  const o = "/api/persons/{personId}/images/{imageId}".replace("{personId}", encodeURIComponent(String(t))).replace("{imageId}", encodeURIComponent(String(r))), a = new URL(o, P);
2429
2528
  let i;
2430
2529
  e && (i = e.baseOptions);
@@ -2445,7 +2544,7 @@ const bs = function(e) {
2445
2544
  * @throws {RequiredError}
2446
2545
  */
2447
2546
  deletePerson: async (t, r, s = {}) => {
2448
- m("deletePerson", "personId", t);
2547
+ R("deletePerson", "personId", t);
2449
2548
  const n = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(t))), o = new URL(n, P);
2450
2549
  let a;
2451
2550
  e && (a = e.baseOptions);
@@ -2468,7 +2567,7 @@ const bs = function(e) {
2468
2567
  * @throws {RequiredError}
2469
2568
  */
2470
2569
  getAllGroupsByPersonId: async (t, r, s, n, o = {}) => {
2471
- m("getAllGroupsByPersonId", "personId", t);
2570
+ R("getAllGroupsByPersonId", "personId", t);
2472
2571
  const a = "/api/persons/{personId}/groups".replace("{personId}", encodeURIComponent(String(t))), i = new URL(a, P);
2473
2572
  let l;
2474
2573
  e && (l = e.baseOptions);
@@ -2491,7 +2590,7 @@ const bs = function(e) {
2491
2590
  * @throws {RequiredError}
2492
2591
  */
2493
2592
  getAllImagesByPersonId: async (t, r, s, n, o = {}) => {
2494
- m("getAllImagesByPersonId", "personId", t);
2593
+ R("getAllImagesByPersonId", "personId", t);
2495
2594
  const a = "/api/persons/{personId}/images".replace("{personId}", encodeURIComponent(String(t))), i = new URL(a, P);
2496
2595
  let l;
2497
2596
  e && (l = e.baseOptions);
@@ -2513,7 +2612,7 @@ const bs = function(e) {
2513
2612
  * @throws {RequiredError}
2514
2613
  */
2515
2614
  getImageOfPerson: async (t, r, s, n = {}) => {
2516
- m("getImageOfPerson", "personId", t), m("getImageOfPerson", "imageId", r);
2615
+ R("getImageOfPerson", "personId", t), R("getImageOfPerson", "imageId", r);
2517
2616
  const o = "/api/persons/{personId}/images/{imageId}".replace("{personId}", encodeURIComponent(String(t))).replace("{imageId}", encodeURIComponent(String(r))), a = new URL(o, P);
2518
2617
  let i;
2519
2618
  e && (i = e.baseOptions);
@@ -2534,7 +2633,7 @@ const bs = function(e) {
2534
2633
  * @throws {RequiredError}
2535
2634
  */
2536
2635
  getPerson: async (t, r, s = {}) => {
2537
- m("getPerson", "personId", t);
2636
+ R("getPerson", "personId", t);
2538
2637
  const n = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(t))), o = new URL(n, P);
2539
2638
  let a;
2540
2639
  e && (a = e.baseOptions);
@@ -2556,7 +2655,7 @@ const bs = function(e) {
2556
2655
  * @throws {RequiredError}
2557
2656
  */
2558
2657
  updatePerson: async (t, r, s, n = {}) => {
2559
- m("updatePerson", "personId", t), m("updatePerson", "personToUpdateFields", r);
2658
+ R("updatePerson", "personId", t), R("updatePerson", "personToUpdateFields", r);
2560
2659
  const o = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(t))), a = new URL(o, P);
2561
2660
  let i;
2562
2661
  e && (i = e.baseOptions);
@@ -2570,7 +2669,7 @@ const bs = function(e) {
2570
2669
  }
2571
2670
  };
2572
2671
  }, v = function(e) {
2573
- const t = bs(e);
2672
+ const t = Us(e);
2574
2673
  return {
2575
2674
  /**
2576
2675
  *
@@ -2583,7 +2682,7 @@ const bs = function(e) {
2583
2682
  */
2584
2683
  async addImageToPerson(r, s, n, o) {
2585
2684
  const a = await t.addImageToPerson(r, s, n, o), i = e?.serverIndex ?? 0, l = T["PersonApi.addImageToPerson"]?.[i]?.url;
2586
- return (c, d) => b(a, O, R, e)(c, l || d);
2685
+ return (c, d) => b(a, O, m, e)(c, l || d);
2587
2686
  },
2588
2687
  /**
2589
2688
  *
@@ -2595,7 +2694,7 @@ const bs = function(e) {
2595
2694
  */
2596
2695
  async createPerson(r, s, n) {
2597
2696
  const o = await t.createPerson(r, s, n), a = e?.serverIndex ?? 0, i = T["PersonApi.createPerson"]?.[a]?.url;
2598
- return (l, c) => b(o, O, R, e)(l, i || c);
2697
+ return (l, c) => b(o, O, m, e)(l, i || c);
2599
2698
  },
2600
2699
  /**
2601
2700
  *
@@ -2608,7 +2707,7 @@ const bs = function(e) {
2608
2707
  */
2609
2708
  async deleteImageOfPerson(r, s, n, o) {
2610
2709
  const a = await t.deleteImageOfPerson(r, s, n, o), i = e?.serverIndex ?? 0, l = T["PersonApi.deleteImageOfPerson"]?.[i]?.url;
2611
- return (c, d) => b(a, O, R, e)(c, l || d);
2710
+ return (c, d) => b(a, O, m, e)(c, l || d);
2612
2711
  },
2613
2712
  /**
2614
2713
  *
@@ -2620,7 +2719,7 @@ const bs = function(e) {
2620
2719
  */
2621
2720
  async deletePerson(r, s, n) {
2622
2721
  const o = await t.deletePerson(r, s, n), a = e?.serverIndex ?? 0, i = T["PersonApi.deletePerson"]?.[a]?.url;
2623
- return (l, c) => b(o, O, R, e)(l, i || c);
2722
+ return (l, c) => b(o, O, m, e)(l, i || c);
2624
2723
  },
2625
2724
  /**
2626
2725
  *
@@ -2634,7 +2733,7 @@ const bs = function(e) {
2634
2733
  */
2635
2734
  async getAllGroupsByPersonId(r, s, n, o, a) {
2636
2735
  const i = await t.getAllGroupsByPersonId(r, s, n, o, a), l = e?.serverIndex ?? 0, c = T["PersonApi.getAllGroupsByPersonId"]?.[l]?.url;
2637
- return (d, p) => b(i, O, R, e)(d, c || p);
2736
+ return (d, p) => b(i, O, m, e)(d, c || p);
2638
2737
  },
2639
2738
  /**
2640
2739
  *
@@ -2648,7 +2747,7 @@ const bs = function(e) {
2648
2747
  */
2649
2748
  async getAllImagesByPersonId(r, s, n, o, a) {
2650
2749
  const i = await t.getAllImagesByPersonId(r, s, n, o, a), l = e?.serverIndex ?? 0, c = T["PersonApi.getAllImagesByPersonId"]?.[l]?.url;
2651
- return (d, p) => b(i, O, R, e)(d, c || p);
2750
+ return (d, p) => b(i, O, m, e)(d, c || p);
2652
2751
  },
2653
2752
  /**
2654
2753
  *
@@ -2661,7 +2760,7 @@ const bs = function(e) {
2661
2760
  */
2662
2761
  async getImageOfPerson(r, s, n, o) {
2663
2762
  const a = await t.getImageOfPerson(r, s, n, o), i = e?.serverIndex ?? 0, l = T["PersonApi.getImageOfPerson"]?.[i]?.url;
2664
- return (c, d) => b(a, O, R, e)(c, l || d);
2763
+ return (c, d) => b(a, O, m, e)(c, l || d);
2665
2764
  },
2666
2765
  /**
2667
2766
  *
@@ -2673,7 +2772,7 @@ const bs = function(e) {
2673
2772
  */
2674
2773
  async getPerson(r, s, n) {
2675
2774
  const o = await t.getPerson(r, s, n), a = e?.serverIndex ?? 0, i = T["PersonApi.getPerson"]?.[a]?.url;
2676
- return (l, c) => b(o, O, R, e)(l, i || c);
2775
+ return (l, c) => b(o, O, m, e)(l, i || c);
2677
2776
  },
2678
2777
  /**
2679
2778
  *
@@ -2686,11 +2785,11 @@ const bs = function(e) {
2686
2785
  */
2687
2786
  async updatePerson(r, s, n, o) {
2688
2787
  const a = await t.updatePerson(r, s, n, o), i = e?.serverIndex ?? 0, l = T["PersonApi.updatePerson"]?.[i]?.url;
2689
- return (c, d) => b(a, O, R, e)(c, l || d);
2788
+ return (c, d) => b(a, O, m, e)(c, l || d);
2690
2789
  }
2691
2790
  };
2692
2791
  };
2693
- let ws = class extends Q {
2792
+ let xs = class extends Q {
2694
2793
  /**
2695
2794
  *
2696
2795
  * @summary Add person image
@@ -2799,9 +2898,9 @@ let ws = class extends Q {
2799
2898
  return v(this.configuration).updatePerson(t, r, s, n).then((o) => o(this.axios, this.basePath));
2800
2899
  }
2801
2900
  };
2802
- class ys {
2901
+ class Ds {
2803
2902
  constructor(t, r, s) {
2804
- this.superClass = new ws(t, r, s);
2903
+ this.superClass = new xs(t, r, s);
2805
2904
  }
2806
2905
  async createPerson(t, r, s) {
2807
2906
  const n = {
@@ -2835,7 +2934,7 @@ class ys {
2835
2934
  await this.superClass.updatePerson(t, r, s, n);
2836
2935
  }
2837
2936
  }
2838
- const Cs = function(e) {
2937
+ const Bs = function(e) {
2839
2938
  return {
2840
2939
  /**
2841
2940
  *
@@ -2847,7 +2946,7 @@ const Cs = function(e) {
2847
2946
  * @throws {RequiredError}
2848
2947
  */
2849
2948
  search: async (t, r, s, n = {}) => {
2850
- m("search", "searchRequest", t);
2949
+ R("search", "searchRequest", t);
2851
2950
  const o = "/api/search", a = new URL(o, P);
2852
2951
  let i;
2853
2952
  e && (i = e.baseOptions);
@@ -2860,8 +2959,8 @@ const Cs = function(e) {
2860
2959
  };
2861
2960
  }
2862
2961
  };
2863
- }, Ls = function(e) {
2864
- const t = Cs(e);
2962
+ }, Hs = function(e) {
2963
+ const t = Bs(e);
2865
2964
  return {
2866
2965
  /**
2867
2966
  *
@@ -2874,11 +2973,11 @@ const Cs = function(e) {
2874
2973
  */
2875
2974
  async search(r, s, n, o) {
2876
2975
  const a = await t.search(r, s, n, o), i = e?.serverIndex ?? 0, l = T["SearchApi.search"]?.[i]?.url;
2877
- return (c, d) => b(a, O, R, e)(c, l || d);
2976
+ return (c, d) => b(a, O, m, e)(c, l || d);
2878
2977
  }
2879
2978
  };
2880
2979
  };
2881
- let Vs = class extends Q {
2980
+ let Gs = class extends Q {
2882
2981
  /**
2883
2982
  *
2884
2983
  * @summary Find person by image in groups
@@ -2889,18 +2988,18 @@ let Vs = class extends Q {
2889
2988
  * @throws {RequiredError}
2890
2989
  */
2891
2990
  search(t, r, s, n) {
2892
- return Ls(this.configuration).search(t, r, s, n).then((o) => o(this.axios, this.basePath));
2991
+ return Hs(this.configuration).search(t, r, s, n).then((o) => o(this.axios, this.basePath));
2893
2992
  }
2894
2993
  };
2895
- class gs {
2994
+ class Ms {
2896
2995
  constructor(t, r, s) {
2897
- this.superClass = new Vs(t, r, s);
2996
+ this.superClass = new Gs(t, r, s);
2898
2997
  }
2899
2998
  async search(t, r, s, n) {
2900
2999
  return t?.image?.content && typeof t.image.content != "string" && (t.image.content = Ae(t.image.content)), (await this.superClass.search(t, r, s, n)).data;
2901
3000
  }
2902
3001
  }
2903
- const Ns = function(e) {
3002
+ const vs = function(e) {
2904
3003
  return {
2905
3004
  /**
2906
3005
  * This endpoint deletes a liveness transaction based on either the specified `tag` or `transactionId`. At least one of the parameters must be provided for the operation to be valid.
@@ -2911,7 +3010,7 @@ const Ns = function(e) {
2911
3010
  * @throws {RequiredError}
2912
3011
  */
2913
3012
  deleteLivenessTransaction: async (t, r, s = {}) => {
2914
- m("deleteLivenessTransaction", "transactionId", t), m("deleteLivenessTransaction", "tag", r);
3013
+ R("deleteLivenessTransaction", "transactionId", t), R("deleteLivenessTransaction", "tag", r);
2915
3014
  const n = "/api/v2/liveness", o = new URL(n, P);
2916
3015
  let a;
2917
3016
  e && (a = e.baseOptions);
@@ -2931,7 +3030,7 @@ const Ns = function(e) {
2931
3030
  * @throws {RequiredError}
2932
3031
  */
2933
3032
  getLivenessTransactionInfo: async (t, r = {}) => {
2934
- m("getLivenessTransactionInfo", "transactionId", t);
3033
+ R("getLivenessTransactionInfo", "transactionId", t);
2935
3034
  const s = "/api/v2/liveness", n = new URL(s, P);
2936
3035
  let o;
2937
3036
  e && (o = e.baseOptions);
@@ -2944,8 +3043,8 @@ const Ns = function(e) {
2944
3043
  };
2945
3044
  }
2946
3045
  };
2947
- }, at = function(e) {
2948
- const t = Ns(e);
3046
+ }, lt = function(e) {
3047
+ const t = vs(e);
2949
3048
  return {
2950
3049
  /**
2951
3050
  * This endpoint deletes a liveness transaction based on either the specified `tag` or `transactionId`. At least one of the parameters must be provided for the operation to be valid.
@@ -2957,7 +3056,7 @@ const Ns = function(e) {
2957
3056
  */
2958
3057
  async deleteLivenessTransaction(r, s, n) {
2959
3058
  const o = await t.deleteLivenessTransaction(r, s, n), a = e?.serverIndex ?? 0, i = T["Liveness20Api.deleteLivenessTransaction"]?.[a]?.url;
2960
- return (l, c) => b(o, O, R, e)(l, i || c);
3059
+ return (l, c) => b(o, O, m, e)(l, i || c);
2961
3060
  },
2962
3061
  /**
2963
3062
  * 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}`.
@@ -2968,11 +3067,11 @@ const Ns = function(e) {
2968
3067
  */
2969
3068
  async getLivenessTransactionInfo(r, s) {
2970
3069
  const n = await t.getLivenessTransactionInfo(r, s), o = e?.serverIndex ?? 0, a = T["Liveness20Api.getLivenessTransactionInfo"]?.[o]?.url;
2971
- return (i, l) => b(n, O, R, e)(i, a || l);
3070
+ return (i, l) => b(n, O, m, e)(i, a || l);
2972
3071
  }
2973
3072
  };
2974
3073
  };
2975
- let Us = class extends Q {
3074
+ let js = class extends Q {
2976
3075
  /**
2977
3076
  * This endpoint deletes a liveness transaction based on either the specified `tag` or `transactionId`. At least one of the parameters must be provided for the operation to be valid.
2978
3077
  * @summary delete liveness transaction
@@ -2982,7 +3081,7 @@ let Us = class extends Q {
2982
3081
  * @throws {RequiredError}
2983
3082
  */
2984
3083
  deleteLivenessTransaction(t, r, s) {
2985
- return at(this.configuration).deleteLivenessTransaction(t, r, s).then((n) => n(this.axios, this.basePath));
3084
+ return lt(this.configuration).deleteLivenessTransaction(t, r, s).then((n) => n(this.axios, this.basePath));
2986
3085
  }
2987
3086
  /**
2988
3087
  * 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}`.
@@ -2992,18 +3091,18 @@ let Us = class extends Q {
2992
3091
  * @throws {RequiredError}
2993
3092
  */
2994
3093
  getLivenessTransactionInfo(t, r) {
2995
- return at(this.configuration).getLivenessTransactionInfo(t, r).then((s) => s(this.axios, this.basePath));
3094
+ return lt(this.configuration).getLivenessTransactionInfo(t, r).then((s) => s(this.axios, this.basePath));
2996
3095
  }
2997
3096
  };
2998
- class xs {
3097
+ class ks {
2999
3098
  constructor(t, r, s) {
3000
- this.superClass = new Us(t, r, s);
3099
+ this.superClass = new js(t, r, s);
3001
3100
  }
3002
3101
  async getLivenessTransactionInfo(t, r) {
3003
3102
  return (await this.superClass.getLivenessTransactionInfo(t, r)).data;
3004
3103
  }
3005
3104
  }
3006
- const Ds = function(e) {
3105
+ const Fs = function(e) {
3007
3106
  return {
3008
3107
  /**
3009
3108
  * The `/api/healthz` endpoint performs a server health check, providing details such as the application name, license ID, serial number, validity, and product version. <br><br>Comprehensive information about service diagnostics is available on the [Monitoring page](https://docs.regulaforensics.com/develop/face-sdk/web-service/administration/monitoring/).
@@ -3044,8 +3143,8 @@ const Ds = function(e) {
3044
3143
  };
3045
3144
  }
3046
3145
  };
3047
- }, it = function(e) {
3048
- const t = Ds(e);
3146
+ }, ct = function(e) {
3147
+ const t = Fs(e);
3049
3148
  return {
3050
3149
  /**
3051
3150
  * The `/api/healthz` endpoint performs a server health check, providing details such as the application name, license ID, serial number, validity, and product version. <br><br>Comprehensive information about service diagnostics is available on the [Monitoring page](https://docs.regulaforensics.com/develop/face-sdk/web-service/administration/monitoring/).
@@ -3056,7 +3155,7 @@ const Ds = function(e) {
3056
3155
  */
3057
3156
  async healthz(r, s) {
3058
3157
  const n = await t.healthz(r, s), o = e?.serverIndex ?? 0, a = T["HealthcheckApi.healthz"]?.[o]?.url;
3059
- return (i, l) => b(n, O, R, e)(i, a || l);
3158
+ return (i, l) => b(n, O, m, e)(i, a || l);
3060
3159
  },
3061
3160
  /**
3062
3161
  * The `/api/readyz` endpoint checks the license\'s health to determine if the application is ready for operation. It validates the license and returns a response indicating whether the license is valid (`200`) or invalid (`400`).
@@ -3067,11 +3166,11 @@ const Ds = function(e) {
3067
3166
  */
3068
3167
  async readyz(r, s) {
3069
3168
  const n = await t.readyz(r, s), o = e?.serverIndex ?? 0, a = T["HealthcheckApi.readyz"]?.[o]?.url;
3070
- return (i, l) => b(n, O, R, e)(i, a || l);
3169
+ return (i, l) => b(n, O, m, e)(i, a || l);
3071
3170
  }
3072
3171
  };
3073
3172
  };
3074
- let Bs = class extends Q {
3173
+ let qs = class extends Q {
3075
3174
  /**
3076
3175
  * The `/api/healthz` endpoint performs a server health check, providing details such as the application name, license ID, serial number, validity, and product version. <br><br>Comprehensive information about service diagnostics is available on the [Monitoring page](https://docs.regulaforensics.com/develop/face-sdk/web-service/administration/monitoring/).
3077
3176
  * @summary Server healthcheck
@@ -3080,7 +3179,7 @@ let Bs = class extends Q {
3080
3179
  * @throws {RequiredError}
3081
3180
  */
3082
3181
  healthz(t, r) {
3083
- return it(this.configuration).healthz(t, r).then((s) => s(this.axios, this.basePath));
3182
+ return ct(this.configuration).healthz(t, r).then((s) => s(this.axios, this.basePath));
3084
3183
  }
3085
3184
  /**
3086
3185
  * The `/api/readyz` endpoint checks the license\'s health to determine if the application is ready for operation. It validates the license and returns a response indicating whether the license is valid (`200`) or invalid (`400`).
@@ -3090,12 +3189,12 @@ let Bs = class extends Q {
3090
3189
  * @throws {RequiredError}
3091
3190
  */
3092
3191
  readyz(t, r) {
3093
- return it(this.configuration).readyz(t, r).then((s) => s(this.axios, this.basePath));
3192
+ return ct(this.configuration).readyz(t, r).then((s) => s(this.axios, this.basePath));
3094
3193
  }
3095
3194
  };
3096
- class Hs {
3195
+ class $s {
3097
3196
  constructor(t, r, s) {
3098
- this.superClass = new Bs(t, r, s);
3197
+ this.superClass = new qs(t, r, s);
3099
3198
  }
3100
3199
  async healthz(t, r) {
3101
3200
  return (await this.superClass.healthz(t, r)).data;
@@ -3104,12 +3203,12 @@ class Hs {
3104
3203
  return (await this.superClass.readyz(t, r)).data;
3105
3204
  }
3106
3205
  }
3107
- class dn {
3108
- constructor(t, r = R, s = O) {
3109
- this.basePath = r, this.axios = s, this.matchApi = new Ts(t, r, s), this.groupApi = new Ss(t, r, s), this.personApi = new ys(t, r, s), this.searchApi = new gs(t, r, s), this.livenessApi = new xs(t, r, s), this.healthcheckApi = new Hs(t, r, s);
3206
+ class _n {
3207
+ constructor(t, r = m, s = O) {
3208
+ this.basePath = r, this.axios = s, this.matchApi = new Ls(t, r, s), this.groupApi = new Ns(t, r, s), this.personApi = new Ds(t, r, s), this.searchApi = new Ms(t, r, s), this.livenessApi = new ks(t, r, s), this.healthcheckApi = new $s(t, r, s);
3110
3209
  }
3111
3210
  }
3112
- class un {
3211
+ class Rn {
3113
3212
  constructor(t = {}) {
3114
3213
  this.apiKey = t.apiKey, this.username = t.username, this.password = t.password, this.accessToken = t.accessToken, this.basePath = t.basePath, this.serverIndex = t.serverIndex, this.baseOptions = {
3115
3214
  ...t.baseOptions,
@@ -3134,23 +3233,23 @@ class un {
3134
3233
  }
3135
3234
  }
3136
3235
  export {
3137
- un as Configuration,
3138
- ds as FaceAttribute,
3139
- us as FaceImageQualityAlignType,
3140
- ps as FaceImageQualityGroups,
3141
- hs as FaceImageQualityGroupsStrings,
3142
- fs as FaceImageQualityStatus,
3143
- Es as FaceQualityConfigName,
3144
- As as FaceQualityScenarios,
3145
- Os as FaceSDKResultCode,
3146
- dn as FaceSdk,
3147
- _s as FilterOp,
3148
- Ss as GroupApi,
3149
- Hs as HealthcheckApi,
3150
- Vt as ImageSource,
3151
- xs as Liveness20Api,
3152
- ms as LivenessType,
3153
- Ts as MatchApi,
3154
- ys as PersonApi,
3155
- gs as SearchApi
3236
+ Rn as Configuration,
3237
+ _s as FaceAttribute,
3238
+ Rs as FaceImageQualityAlignType,
3239
+ ms as FaceImageQualityGroups,
3240
+ Ts as FaceImageQualityGroupsStrings,
3241
+ Ps as FaceImageQualityStatus,
3242
+ Is as FaceQualityConfigName,
3243
+ Ss as FaceQualityScenarios,
3244
+ bs as FaceSDKResultCode,
3245
+ _n as FaceSdk,
3246
+ ws as FilterOp,
3247
+ Ns as GroupApi,
3248
+ $s as HealthcheckApi,
3249
+ Ut as ImageSource,
3250
+ ks as Liveness20Api,
3251
+ ys as LivenessType,
3252
+ Ls as MatchApi,
3253
+ Ds as PersonApi,
3254
+ Ms as SearchApi
3156
3255
  };