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