@sapia-ai/chatbot-v3 1.0.0 → 1.0.2

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.
Files changed (44) hide show
  1. package/dist/{EmbeddedVideoPlayer-SaMMfDIW.js → EmbeddedVideoPlayer-CNcds-dW.js} +283 -282
  2. package/dist/Preview-Dmns6UWL.js +84 -0
  3. package/dist/api.js +1 -1
  4. package/dist/{dist-DGBYKC8c.js → dist-B9SbMqZU.js} +2693 -2693
  5. package/dist/embed/createChatbot.d.ts +2 -0
  6. package/dist/{fix-webm-duration-BW9Fbdzt.js → fix-webm-duration-BWL-ZRDX.js} +2 -2
  7. package/dist/index.d.ts +0 -1
  8. package/dist/index.js +15479 -2067
  9. package/dist/jsx-runtime-8QqjHL5t.js +24 -0
  10. package/dist/messages-Czlp86gl.js +1963 -0
  11. package/dist/react-B0K-sClg.js +295 -0
  12. package/dist/{react-Bujo1aK5.js → react-ChCcxVnw.js} +90 -89
  13. package/dist/{react-GXf8sbzf.js → react-DJysvNxz.js} +72 -71
  14. package/dist/{react-BVzcquey.js → react-Dbs-sPBo.js} +93 -92
  15. package/dist/{react-lp7yfM94.js → react-NauLB_WU.js} +91 -90
  16. package/dist/{react-BGJ7Szvq.js → react-QrtEtv1G.js} +76 -74
  17. package/dist/{react-BrCGR7Ca.js → react-be7q6yw_.js} +312 -310
  18. package/dist/{react-CRTg4gz8.js → react-czRIxT0g.js} +85 -84
  19. package/dist/{react-BMxM8TWJ.js → react-dE7BdGuR.js} +49 -48
  20. package/dist-umd/sapia-chatbot.umd.js +1 -1
  21. package/package.json +14 -25
  22. package/dist/EmbeddedVideoPlayer-SaMMfDIW.js.map +0 -1
  23. package/dist/Preview-Db-hgkTh.js +0 -83
  24. package/dist/Preview-Db-hgkTh.js.map +0 -1
  25. package/dist/dash.all.min-DZ1yEcJk.js.map +0 -1
  26. package/dist/dist-BSi28_cP.js.map +0 -1
  27. package/dist/dist-DGBYKC8c.js.map +0 -1
  28. package/dist/dist-FvHBWiRa.js.map +0 -1
  29. package/dist/fix-webm-duration-BW9Fbdzt.js.map +0 -1
  30. package/dist/hls-mBncGwsE.js.map +0 -1
  31. package/dist/index.js.map +0 -1
  32. package/dist/max-Btet1snX.js.map +0 -1
  33. package/dist/messages-C4jqrtSG.js +0 -187
  34. package/dist/messages-C4jqrtSG.js.map +0 -1
  35. package/dist/react-BGJ7Szvq.js.map +0 -1
  36. package/dist/react-BMxM8TWJ.js.map +0 -1
  37. package/dist/react-BVzcquey.js.map +0 -1
  38. package/dist/react-BrCGR7Ca.js.map +0 -1
  39. package/dist/react-Bujo1aK5.js.map +0 -1
  40. package/dist/react-CRTg4gz8.js.map +0 -1
  41. package/dist/react-GXf8sbzf.js.map +0 -1
  42. package/dist/react-lp7yfM94.js.map +0 -1
  43. package/dist/sapia-chatbot.css +0 -3
  44. package/dist-umd/sapia-chatbot.umd.js.map +0 -1
@@ -0,0 +1,1963 @@
1
+ //#region \0rolldown/runtime.js
2
+ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, n) => {
3
+ let r = {};
4
+ for (var i in e) t(r, i, {
5
+ get: e[i],
6
+ enumerable: !0
7
+ });
8
+ return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
9
+ }, c = (e, i, o, s) => {
10
+ if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
11
+ get: ((e) => i[e]).bind(null, d),
12
+ enumerable: !(s = n(i, d)) || s.enumerable
13
+ });
14
+ return e;
15
+ }, l = (n, r, a) => (a = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule ? t(a, "default", {
16
+ value: n,
17
+ enumerable: !0
18
+ }) : a, n));
19
+ //#endregion
20
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/helpers/bind.js
21
+ function u(e, t) {
22
+ return function() {
23
+ return e.apply(t, arguments);
24
+ };
25
+ }
26
+ //#endregion
27
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/utils.js
28
+ var { toString: d } = Object.prototype, { getPrototypeOf: f } = Object, { iterator: p, toStringTag: m } = Symbol, h = ((e) => (t) => {
29
+ let n = d.call(t);
30
+ return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
31
+ })(Object.create(null)), g = (e) => (e = e.toLowerCase(), (t) => h(t) === e), _ = (e) => (t) => typeof t === e, { isArray: v } = Array, y = _("undefined");
32
+ function b(e) {
33
+ return e !== null && !y(e) && e.constructor !== null && !y(e.constructor) && w(e.constructor.isBuffer) && e.constructor.isBuffer(e);
34
+ }
35
+ var x = g("ArrayBuffer");
36
+ function S(e) {
37
+ let t;
38
+ return t = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && x(e.buffer), t;
39
+ }
40
+ var C = _("string"), w = _("function"), ee = _("number"), T = (e) => typeof e == "object" && !!e, te = (e) => e === !0 || e === !1, E = (e) => {
41
+ if (h(e) !== "object") return !1;
42
+ let t = f(e);
43
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(m in e) && !(p in e);
44
+ }, D = (e) => {
45
+ if (!T(e) || b(e)) return !1;
46
+ try {
47
+ return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
48
+ } catch {
49
+ return !1;
50
+ }
51
+ }, O = g("Date"), ne = g("File"), k = (e) => !!(e && e.uri !== void 0), A = (e) => e && e.getParts !== void 0, j = g("Blob"), re = g("FileList"), ie = (e) => T(e) && w(e.pipe);
52
+ function ae() {
53
+ return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
54
+ }
55
+ var oe = ae(), se = oe.FormData === void 0 ? void 0 : oe.FormData, ce = (e) => {
56
+ if (!e) return !1;
57
+ if (se && e instanceof se) return !0;
58
+ let t = f(e);
59
+ if (!t || t === Object.prototype || !w(e.append)) return !1;
60
+ let n = h(e);
61
+ return n === "formdata" || n === "object" && w(e.toString) && e.toString() === "[object FormData]";
62
+ }, le = g("URLSearchParams"), [ue, de, fe, pe] = [
63
+ "ReadableStream",
64
+ "Request",
65
+ "Response",
66
+ "Headers"
67
+ ].map(g), me = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
68
+ function M(e, t, { allOwnKeys: n = !1 } = {}) {
69
+ if (e == null) return;
70
+ let r, i;
71
+ if (typeof e != "object" && (e = [e]), v(e)) for (r = 0, i = e.length; r < i; r++) t.call(null, e[r], r, e);
72
+ else {
73
+ if (b(e)) return;
74
+ let i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = i.length, o;
75
+ for (r = 0; r < a; r++) o = i[r], t.call(null, e[o], o, e);
76
+ }
77
+ }
78
+ function he(e, t) {
79
+ if (b(e)) return null;
80
+ t = t.toLowerCase();
81
+ let n = Object.keys(e), r = n.length, i;
82
+ for (; r-- > 0;) if (i = n[r], t === i.toLowerCase()) return i;
83
+ return null;
84
+ }
85
+ var N = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ge = (e) => !y(e) && e !== N;
86
+ function _e(...e) {
87
+ let { caseless: t, skipUndefined: n } = ge(this) && this || {}, r = {}, i = (e, i) => {
88
+ if (i === "__proto__" || i === "constructor" || i === "prototype") return;
89
+ let a = t && typeof i == "string" && he(r, i) || i, o = ke(r, a) ? r[a] : void 0;
90
+ E(o) && E(e) ? r[a] = _e(o, e) : E(e) ? r[a] = _e({}, e) : v(e) ? r[a] = e.slice() : (!n || !y(e)) && (r[a] = e);
91
+ };
92
+ for (let t = 0, n = e.length; t < n; t++) {
93
+ let n = e[t];
94
+ if (!n || b(n) || (M(n, i), typeof n != "object" || v(n))) continue;
95
+ let r = Object.getOwnPropertySymbols(n);
96
+ for (let e = 0; e < r.length; e++) {
97
+ let t = r[e];
98
+ Ae.call(n, t) && i(n[t], t);
99
+ }
100
+ }
101
+ return r;
102
+ }
103
+ var ve = (e, t, n, { allOwnKeys: r } = {}) => (M(t, (t, r) => {
104
+ n && w(t) ? Object.defineProperty(e, r, {
105
+ __proto__: null,
106
+ value: u(t, n),
107
+ writable: !0,
108
+ enumerable: !0,
109
+ configurable: !0
110
+ }) : Object.defineProperty(e, r, {
111
+ __proto__: null,
112
+ value: t,
113
+ writable: !0,
114
+ enumerable: !0,
115
+ configurable: !0
116
+ });
117
+ }, { allOwnKeys: r }), e), ye = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), be = (e, t, n, r) => {
118
+ e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
119
+ __proto__: null,
120
+ value: e,
121
+ writable: !0,
122
+ enumerable: !1,
123
+ configurable: !0
124
+ }), Object.defineProperty(e, "super", {
125
+ __proto__: null,
126
+ value: t.prototype
127
+ }), n && Object.assign(e.prototype, n);
128
+ }, xe = (e, t, n, r) => {
129
+ let i, a, o, s = {};
130
+ if (t = t || {}, e == null) return t;
131
+ do {
132
+ for (i = Object.getOwnPropertyNames(e), a = i.length; a-- > 0;) o = i[a], (!r || r(o, e, t)) && !s[o] && (t[o] = e[o], s[o] = !0);
133
+ e = n !== !1 && f(e);
134
+ } while (e && (!n || n(e, t)) && e !== Object.prototype);
135
+ return t;
136
+ }, Se = (e, t, n) => {
137
+ e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
138
+ let r = e.indexOf(t, n);
139
+ return r !== -1 && r === n;
140
+ }, Ce = (e) => {
141
+ if (!e) return null;
142
+ if (v(e)) return e;
143
+ let t = e.length;
144
+ if (!ee(t)) return null;
145
+ let n = Array(t);
146
+ for (; t-- > 0;) n[t] = e[t];
147
+ return n;
148
+ }, we = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && f(Uint8Array)), Te = (e, t) => {
149
+ let n = (e && e[p]).call(e), r;
150
+ for (; (r = n.next()) && !r.done;) {
151
+ let n = r.value;
152
+ t.call(e, n[0], n[1]);
153
+ }
154
+ }, Ee = (e, t) => {
155
+ let n, r = [];
156
+ for (; (n = e.exec(t)) !== null;) r.push(n);
157
+ return r;
158
+ }, De = g("HTMLFormElement"), Oe = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(e, t, n) {
159
+ return t.toUpperCase() + n;
160
+ }), ke = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), { propertyIsEnumerable: Ae } = Object.prototype, je = g("RegExp"), Me = (e, t) => {
161
+ let n = Object.getOwnPropertyDescriptors(e), r = {};
162
+ M(n, (n, i) => {
163
+ let a;
164
+ (a = t(n, i, e)) !== !1 && (r[i] = a || n);
165
+ }), Object.defineProperties(e, r);
166
+ }, Ne = (e) => {
167
+ Me(e, (t, n) => {
168
+ if (w(e) && [
169
+ "arguments",
170
+ "caller",
171
+ "callee"
172
+ ].includes(n)) return !1;
173
+ let r = e[n];
174
+ if (w(r)) {
175
+ if (t.enumerable = !1, "writable" in t) {
176
+ t.writable = !1;
177
+ return;
178
+ }
179
+ t.set || (t.set = () => {
180
+ throw Error("Can not rewrite read-only method '" + n + "'");
181
+ });
182
+ }
183
+ });
184
+ }, Pe = (e, t) => {
185
+ let n = {}, r = (e) => {
186
+ e.forEach((e) => {
187
+ n[e] = !0;
188
+ });
189
+ };
190
+ return v(e) ? r(e) : r(String(e).split(t)), n;
191
+ }, Fe = () => {}, Ie = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
192
+ function Le(e) {
193
+ return !!(e && w(e.append) && e[m] === "FormData" && e[p]);
194
+ }
195
+ var Re = (e) => {
196
+ let t = /* @__PURE__ */ new WeakSet(), n = (e) => {
197
+ if (T(e)) {
198
+ if (t.has(e)) return;
199
+ if (b(e)) return e;
200
+ if (!("toJSON" in e)) {
201
+ t.add(e);
202
+ let r = v(e) ? [] : {};
203
+ return M(e, (e, t) => {
204
+ let i = n(e);
205
+ !y(i) && (r[t] = i);
206
+ }), t.delete(e), r;
207
+ }
208
+ }
209
+ return e;
210
+ };
211
+ return n(e);
212
+ }, ze = g("AsyncFunction"), Be = (e) => e && (T(e) || w(e)) && w(e.then) && w(e.catch), Ve = ((e, t) => e ? setImmediate : t ? ((e, t) => (N.addEventListener("message", ({ source: n, data: r }) => {
213
+ n === N && r === e && t.length && t.shift()();
214
+ }, !1), (n) => {
215
+ t.push(n), N.postMessage(e, "*");
216
+ }))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(typeof setImmediate == "function", w(N.postMessage)), P = {
217
+ isArray: v,
218
+ isArrayBuffer: x,
219
+ isBuffer: b,
220
+ isFormData: ce,
221
+ isArrayBufferView: S,
222
+ isString: C,
223
+ isNumber: ee,
224
+ isBoolean: te,
225
+ isObject: T,
226
+ isPlainObject: E,
227
+ isEmptyObject: D,
228
+ isReadableStream: ue,
229
+ isRequest: de,
230
+ isResponse: fe,
231
+ isHeaders: pe,
232
+ isUndefined: y,
233
+ isDate: O,
234
+ isFile: ne,
235
+ isReactNativeBlob: k,
236
+ isReactNative: A,
237
+ isBlob: j,
238
+ isRegExp: je,
239
+ isFunction: w,
240
+ isStream: ie,
241
+ isURLSearchParams: le,
242
+ isTypedArray: we,
243
+ isFileList: re,
244
+ forEach: M,
245
+ merge: _e,
246
+ extend: ve,
247
+ trim: me,
248
+ stripBOM: ye,
249
+ inherits: be,
250
+ toFlatObject: xe,
251
+ kindOf: h,
252
+ kindOfTest: g,
253
+ endsWith: Se,
254
+ toArray: Ce,
255
+ forEachEntry: Te,
256
+ matchAll: Ee,
257
+ isHTMLForm: De,
258
+ hasOwnProperty: ke,
259
+ hasOwnProp: ke,
260
+ reduceDescriptors: Me,
261
+ freezeMethods: Ne,
262
+ toObjectSet: Pe,
263
+ toCamelCase: Oe,
264
+ noop: Fe,
265
+ toFiniteNumber: Ie,
266
+ findKey: he,
267
+ global: N,
268
+ isContextDefined: ge,
269
+ isSpecCompliantForm: Le,
270
+ toJSONObject: Re,
271
+ isAsyncFn: ze,
272
+ isThenable: Be,
273
+ setImmediate: Ve,
274
+ asap: typeof queueMicrotask < "u" ? queueMicrotask.bind(N) : typeof process < "u" && process.nextTick || Ve,
275
+ isIterable: (e) => e != null && w(e[p])
276
+ }, He = P.toObjectSet([
277
+ "age",
278
+ "authorization",
279
+ "content-length",
280
+ "content-type",
281
+ "etag",
282
+ "expires",
283
+ "from",
284
+ "host",
285
+ "if-modified-since",
286
+ "if-unmodified-since",
287
+ "last-modified",
288
+ "location",
289
+ "max-forwards",
290
+ "proxy-authorization",
291
+ "referer",
292
+ "retry-after",
293
+ "user-agent"
294
+ ]), Ue = (e) => {
295
+ let t = {}, n, r, i;
296
+ return e && e.split("\n").forEach(function(e) {
297
+ i = e.indexOf(":"), n = e.substring(0, i).trim().toLowerCase(), r = e.substring(i + 1).trim(), !(!n || t[n] && He[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
298
+ }), t;
299
+ };
300
+ //#endregion
301
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
302
+ function We(e) {
303
+ let t = 0, n = e.length;
304
+ for (; t < n;) {
305
+ let n = e.charCodeAt(t);
306
+ if (n !== 9 && n !== 32) break;
307
+ t += 1;
308
+ }
309
+ for (; n > t;) {
310
+ let t = e.charCodeAt(n - 1);
311
+ if (t !== 9 && t !== 32) break;
312
+ --n;
313
+ }
314
+ return t === 0 && n === e.length ? e : e.slice(t, n);
315
+ }
316
+ var Ge = /* @__PURE__ */ RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g"), Ke = /* @__PURE__ */ RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
317
+ function qe(e, t) {
318
+ return P.isArray(e) ? e.map((e) => qe(e, t)) : We(String(e).replace(t, ""));
319
+ }
320
+ var Je = (e) => qe(e, Ge), Ye = (e) => qe(e, Ke);
321
+ function Xe(e) {
322
+ let t = Object.create(null);
323
+ return P.forEach(e.toJSON(), (e, n) => {
324
+ t[n] = Ye(e);
325
+ }), t;
326
+ }
327
+ //#endregion
328
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/core/AxiosHeaders.js
329
+ var Ze = Symbol("internals");
330
+ function F(e) {
331
+ return e && String(e).trim().toLowerCase();
332
+ }
333
+ function I(e) {
334
+ return e === !1 || e == null ? e : P.isArray(e) ? e.map(I) : Je(String(e));
335
+ }
336
+ function Qe(e) {
337
+ let t = Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g, r;
338
+ for (; r = n.exec(e);) t[r[1]] = r[2];
339
+ return t;
340
+ }
341
+ var $e = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
342
+ function et(e, t, n, r, i) {
343
+ if (P.isFunction(r)) return r.call(this, t, n);
344
+ if (i && (t = n), P.isString(t)) {
345
+ if (P.isString(r)) return t.indexOf(r) !== -1;
346
+ if (P.isRegExp(r)) return r.test(t);
347
+ }
348
+ }
349
+ function tt(e) {
350
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, t, n) => t.toUpperCase() + n);
351
+ }
352
+ function nt(e, t) {
353
+ let n = P.toCamelCase(" " + t);
354
+ [
355
+ "get",
356
+ "set",
357
+ "has"
358
+ ].forEach((r) => {
359
+ Object.defineProperty(e, r + n, {
360
+ __proto__: null,
361
+ value: function(e, n, i) {
362
+ return this[r].call(this, t, e, n, i);
363
+ },
364
+ configurable: !0
365
+ });
366
+ });
367
+ }
368
+ var L = class {
369
+ constructor(e) {
370
+ e && this.set(e);
371
+ }
372
+ set(e, t, n) {
373
+ let r = this;
374
+ function i(e, t, n) {
375
+ let i = F(t);
376
+ if (!i) return;
377
+ let a = P.findKey(r, i);
378
+ (!a || r[a] === void 0 || n === !0 || n === void 0 && r[a] !== !1) && (r[a || t] = I(e));
379
+ }
380
+ let a = (e, t) => P.forEach(e, (e, n) => i(e, n, t));
381
+ if (P.isPlainObject(e) || e instanceof this.constructor) a(e, t);
382
+ else if (P.isString(e) && (e = e.trim()) && !$e(e)) a(Ue(e), t);
383
+ else if (P.isObject(e) && P.isIterable(e)) {
384
+ let n = {}, r, i;
385
+ for (let t of e) {
386
+ if (!P.isArray(t)) throw TypeError("Object iterator must return a key-value pair");
387
+ n[i = t[0]] = (r = n[i]) ? P.isArray(r) ? [...r, t[1]] : [r, t[1]] : t[1];
388
+ }
389
+ a(n, t);
390
+ } else e != null && i(t, e, n);
391
+ return this;
392
+ }
393
+ get(e, t) {
394
+ if (e = F(e), e) {
395
+ let n = P.findKey(this, e);
396
+ if (n) {
397
+ let e = this[n];
398
+ if (!t) return e;
399
+ if (t === !0) return Qe(e);
400
+ if (P.isFunction(t)) return t.call(this, e, n);
401
+ if (P.isRegExp(t)) return t.exec(e);
402
+ throw TypeError("parser must be boolean|regexp|function");
403
+ }
404
+ }
405
+ }
406
+ has(e, t) {
407
+ if (e = F(e), e) {
408
+ let n = P.findKey(this, e);
409
+ return !!(n && this[n] !== void 0 && (!t || et(this, this[n], n, t)));
410
+ }
411
+ return !1;
412
+ }
413
+ delete(e, t) {
414
+ let n = this, r = !1;
415
+ function i(e) {
416
+ if (e = F(e), e) {
417
+ let i = P.findKey(n, e);
418
+ i && (!t || et(n, n[i], i, t)) && (delete n[i], r = !0);
419
+ }
420
+ }
421
+ return P.isArray(e) ? e.forEach(i) : i(e), r;
422
+ }
423
+ clear(e) {
424
+ let t = Object.keys(this), n = t.length, r = !1;
425
+ for (; n--;) {
426
+ let i = t[n];
427
+ (!e || et(this, this[i], i, e, !0)) && (delete this[i], r = !0);
428
+ }
429
+ return r;
430
+ }
431
+ normalize(e) {
432
+ let t = this, n = {};
433
+ return P.forEach(this, (r, i) => {
434
+ let a = P.findKey(n, i);
435
+ if (a) {
436
+ t[a] = I(r), delete t[i];
437
+ return;
438
+ }
439
+ let o = e ? tt(i) : String(i).trim();
440
+ o !== i && delete t[i], t[o] = I(r), n[o] = !0;
441
+ }), this;
442
+ }
443
+ concat(...e) {
444
+ return this.constructor.concat(this, ...e);
445
+ }
446
+ toJSON(e) {
447
+ let t = Object.create(null);
448
+ return P.forEach(this, (n, r) => {
449
+ n != null && n !== !1 && (t[r] = e && P.isArray(n) ? n.join(", ") : n);
450
+ }), t;
451
+ }
452
+ [Symbol.iterator]() {
453
+ return Object.entries(this.toJSON())[Symbol.iterator]();
454
+ }
455
+ toString() {
456
+ return Object.entries(this.toJSON()).map(([e, t]) => e + ": " + t).join("\n");
457
+ }
458
+ getSetCookie() {
459
+ return this.get("set-cookie") || [];
460
+ }
461
+ get [Symbol.toStringTag]() {
462
+ return "AxiosHeaders";
463
+ }
464
+ static from(e) {
465
+ return e instanceof this ? e : new this(e);
466
+ }
467
+ static concat(e, ...t) {
468
+ let n = new this(e);
469
+ return t.forEach((e) => n.set(e)), n;
470
+ }
471
+ static accessor(e) {
472
+ let t = (this[Ze] = this[Ze] = { accessors: {} }).accessors, n = this.prototype;
473
+ function r(e) {
474
+ let r = F(e);
475
+ t[r] || (nt(n, e), t[r] = !0);
476
+ }
477
+ return P.isArray(e) ? e.forEach(r) : r(e), this;
478
+ }
479
+ };
480
+ L.accessor([
481
+ "Content-Type",
482
+ "Content-Length",
483
+ "Accept",
484
+ "Accept-Encoding",
485
+ "User-Agent",
486
+ "Authorization"
487
+ ]), P.reduceDescriptors(L.prototype, ({ value: e }, t) => {
488
+ let n = t[0].toUpperCase() + t.slice(1);
489
+ return {
490
+ get: () => e,
491
+ set(e) {
492
+ this[n] = e;
493
+ }
494
+ };
495
+ }), P.freezeMethods(L);
496
+ //#endregion
497
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/core/AxiosError.js
498
+ var rt = "[REDACTED ****]";
499
+ function it(e) {
500
+ if (P.hasOwnProp(e, "toJSON")) return !0;
501
+ let t = Object.getPrototypeOf(e);
502
+ for (; t && t !== Object.prototype;) {
503
+ if (P.hasOwnProp(t, "toJSON")) return !0;
504
+ t = Object.getPrototypeOf(t);
505
+ }
506
+ return !1;
507
+ }
508
+ function at(e, t) {
509
+ let n = new Set(t.map((e) => String(e).toLowerCase())), r = [], i = (e) => {
510
+ if (typeof e != "object" || !e || P.isBuffer(e)) return e;
511
+ if (r.indexOf(e) !== -1) return;
512
+ e instanceof L && (e = e.toJSON()), r.push(e);
513
+ let t;
514
+ if (P.isArray(e)) t = [], e.forEach((e, n) => {
515
+ let r = i(e);
516
+ P.isUndefined(r) || (t[n] = r);
517
+ });
518
+ else {
519
+ if (!P.isPlainObject(e) && it(e)) return r.pop(), e;
520
+ t = Object.create(null);
521
+ for (let [r, a] of Object.entries(e)) {
522
+ let e = n.has(r.toLowerCase()) ? rt : i(a);
523
+ P.isUndefined(e) || (t[r] = e);
524
+ }
525
+ }
526
+ return r.pop(), t;
527
+ };
528
+ return i(e);
529
+ }
530
+ var R = class e extends Error {
531
+ static from(t, n, r, i, a, o) {
532
+ let s = new e(t.message, n || t.code, r, i, a);
533
+ return s.cause = t, s.name = t.name, t.status != null && s.status == null && (s.status = t.status), o && Object.assign(s, o), s;
534
+ }
535
+ constructor(e, t, n, r, i) {
536
+ super(e), Object.defineProperty(this, "message", {
537
+ __proto__: null,
538
+ value: e,
539
+ enumerable: !0,
540
+ writable: !0,
541
+ configurable: !0
542
+ }), this.name = "AxiosError", this.isAxiosError = !0, t && (this.code = t), n && (this.config = n), r && (this.request = r), i && (this.response = i, this.status = i.status);
543
+ }
544
+ toJSON() {
545
+ let e = this.config, t = e && P.hasOwnProp(e, "redact") ? e.redact : void 0, n = P.isArray(t) && t.length > 0 ? at(e, t) : P.toJSONObject(e);
546
+ return {
547
+ message: this.message,
548
+ name: this.name,
549
+ description: this.description,
550
+ number: this.number,
551
+ fileName: this.fileName,
552
+ lineNumber: this.lineNumber,
553
+ columnNumber: this.columnNumber,
554
+ stack: this.stack,
555
+ config: n,
556
+ code: this.code,
557
+ status: this.status
558
+ };
559
+ }
560
+ };
561
+ R.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE", R.ERR_BAD_OPTION = "ERR_BAD_OPTION", R.ECONNABORTED = "ECONNABORTED", R.ETIMEDOUT = "ETIMEDOUT", R.ECONNREFUSED = "ECONNREFUSED", R.ERR_NETWORK = "ERR_NETWORK", R.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS", R.ERR_DEPRECATED = "ERR_DEPRECATED", R.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE", R.ERR_BAD_REQUEST = "ERR_BAD_REQUEST", R.ERR_CANCELED = "ERR_CANCELED", R.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT", R.ERR_INVALID_URL = "ERR_INVALID_URL", R.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
562
+ //#endregion
563
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/helpers/toFormData.js
564
+ function z(e) {
565
+ return P.isPlainObject(e) || P.isArray(e);
566
+ }
567
+ function ot(e) {
568
+ return P.endsWith(e, "[]") ? e.slice(0, -2) : e;
569
+ }
570
+ function B(e, t, n) {
571
+ return e ? e.concat(t).map(function(e, t) {
572
+ return e = ot(e), !n && t ? "[" + e + "]" : e;
573
+ }).join(n ? "." : "") : t;
574
+ }
575
+ function st(e) {
576
+ return P.isArray(e) && !e.some(z);
577
+ }
578
+ var ct = P.toFlatObject(P, {}, null, function(e) {
579
+ return /^is[A-Z]/.test(e);
580
+ });
581
+ function V(e, t, n) {
582
+ if (!P.isObject(e)) throw TypeError("target must be an object");
583
+ t = t || new FormData(), n = P.toFlatObject(n, {
584
+ metaTokens: !0,
585
+ dots: !1,
586
+ indexes: !1
587
+ }, !1, function(e, t) {
588
+ return !P.isUndefined(t[e]);
589
+ });
590
+ let r = n.metaTokens, i = n.visitor || d, a = n.dots, o = n.indexes, s = n.Blob || typeof Blob < "u" && Blob, c = n.maxDepth === void 0 ? 100 : n.maxDepth, l = s && P.isSpecCompliantForm(t);
591
+ if (!P.isFunction(i)) throw TypeError("visitor must be a function");
592
+ function u(e) {
593
+ if (e === null) return "";
594
+ if (P.isDate(e)) return e.toISOString();
595
+ if (P.isBoolean(e)) return e.toString();
596
+ if (!l && P.isBlob(e)) throw new R("Blob is not supported. Use a Buffer instead.");
597
+ return P.isArrayBuffer(e) || P.isTypedArray(e) ? l && typeof Blob == "function" ? new Blob([e]) : Buffer.from(e) : e;
598
+ }
599
+ function d(e, n, i) {
600
+ let s = e;
601
+ if (P.isReactNative(t) && P.isReactNativeBlob(e)) return t.append(B(i, n, a), u(e)), !1;
602
+ if (e && !i && typeof e == "object") {
603
+ if (P.endsWith(n, "{}")) n = r ? n : n.slice(0, -2), e = JSON.stringify(e);
604
+ else if (P.isArray(e) && st(e) || (P.isFileList(e) || P.endsWith(n, "[]")) && (s = P.toArray(e))) return n = ot(n), s.forEach(function(e, r) {
605
+ !(P.isUndefined(e) || e === null) && t.append(o === !0 ? B([n], r, a) : o === null ? n : n + "[]", u(e));
606
+ }), !1;
607
+ }
608
+ return z(e) ? !0 : (t.append(B(i, n, a), u(e)), !1);
609
+ }
610
+ let f = [], p = Object.assign(ct, {
611
+ defaultVisitor: d,
612
+ convertValue: u,
613
+ isVisitable: z
614
+ });
615
+ function m(e, n, r = 0) {
616
+ if (!P.isUndefined(e)) {
617
+ if (r > c) throw new R("Object is too deeply nested (" + r + " levels). Max depth: " + c, R.ERR_FORM_DATA_DEPTH_EXCEEDED);
618
+ if (f.indexOf(e) !== -1) throw Error("Circular reference detected in " + n.join("."));
619
+ f.push(e), P.forEach(e, function(e, a) {
620
+ (!(P.isUndefined(e) || e === null) && i.call(t, e, P.isString(a) ? a.trim() : a, n, p)) === !0 && m(e, n ? n.concat(a) : [a], r + 1);
621
+ }), f.pop();
622
+ }
623
+ }
624
+ if (!P.isObject(e)) throw TypeError("data must be an object");
625
+ return m(e), t;
626
+ }
627
+ //#endregion
628
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
629
+ function lt(e) {
630
+ let t = {
631
+ "!": "%21",
632
+ "'": "%27",
633
+ "(": "%28",
634
+ ")": "%29",
635
+ "~": "%7E",
636
+ "%20": "+"
637
+ };
638
+ return encodeURIComponent(e).replace(/[!'()~]|%20/g, function(e) {
639
+ return t[e];
640
+ });
641
+ }
642
+ function ut(e, t) {
643
+ this._pairs = [], e && V(e, this, t);
644
+ }
645
+ var dt = ut.prototype;
646
+ dt.append = function(e, t) {
647
+ this._pairs.push([e, t]);
648
+ }, dt.toString = function(e) {
649
+ let t = e ? function(t) {
650
+ return e.call(this, t, lt);
651
+ } : lt;
652
+ return this._pairs.map(function(e) {
653
+ return t(e[0]) + "=" + t(e[1]);
654
+ }, "").join("&");
655
+ };
656
+ //#endregion
657
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/helpers/buildURL.js
658
+ function ft(e) {
659
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
660
+ }
661
+ function pt(e, t, n) {
662
+ if (!t) return e;
663
+ let r = n && n.encode || ft, i = P.isFunction(n) ? { serialize: n } : n, a = i && i.serialize, o;
664
+ if (o = a ? a(t, i) : P.isURLSearchParams(t) ? t.toString() : new ut(t, i).toString(r), o) {
665
+ let t = e.indexOf("#");
666
+ t !== -1 && (e = e.slice(0, t)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
667
+ }
668
+ return e;
669
+ }
670
+ //#endregion
671
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/core/InterceptorManager.js
672
+ var mt = class {
673
+ constructor() {
674
+ this.handlers = [];
675
+ }
676
+ use(e, t, n) {
677
+ return this.handlers.push({
678
+ fulfilled: e,
679
+ rejected: t,
680
+ synchronous: n ? n.synchronous : !1,
681
+ runWhen: n ? n.runWhen : null
682
+ }), this.handlers.length - 1;
683
+ }
684
+ eject(e) {
685
+ this.handlers[e] && (this.handlers[e] = null);
686
+ }
687
+ clear() {
688
+ this.handlers && (this.handlers = []);
689
+ }
690
+ forEach(e) {
691
+ P.forEach(this.handlers, function(t) {
692
+ t !== null && e(t);
693
+ });
694
+ }
695
+ }, ht = {
696
+ silentJSONParsing: !0,
697
+ forcedJSONParsing: !0,
698
+ clarifyTimeoutError: !1,
699
+ legacyInterceptorReqResOrdering: !0,
700
+ advertiseZstdAcceptEncoding: !1
701
+ }, gt = {
702
+ isBrowser: !0,
703
+ classes: {
704
+ URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams : ut,
705
+ FormData: typeof FormData < "u" ? FormData : null,
706
+ Blob: typeof Blob < "u" ? Blob : null
707
+ },
708
+ protocols: [
709
+ "http",
710
+ "https",
711
+ "file",
712
+ "blob",
713
+ "url",
714
+ "data"
715
+ ]
716
+ }, _t = /* @__PURE__ */ s({
717
+ hasBrowserEnv: () => vt,
718
+ hasStandardBrowserEnv: () => bt,
719
+ hasStandardBrowserWebWorkerEnv: () => xt,
720
+ navigator: () => yt,
721
+ origin: () => St
722
+ }), vt = typeof window < "u" && typeof document < "u", yt = typeof navigator == "object" && navigator || void 0, bt = vt && (!yt || [
723
+ "ReactNative",
724
+ "NativeScript",
725
+ "NS"
726
+ ].indexOf(yt.product) < 0), xt = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", St = vt && window.location.href || "http://localhost", H = {
727
+ ..._t,
728
+ ...gt
729
+ };
730
+ //#endregion
731
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/helpers/toURLEncodedForm.js
732
+ function Ct(e, t) {
733
+ return V(e, new H.classes.URLSearchParams(), {
734
+ visitor: function(e, t, n, r) {
735
+ return H.isNode && P.isBuffer(e) ? (this.append(t, e.toString("base64")), !1) : r.defaultVisitor.apply(this, arguments);
736
+ },
737
+ ...t
738
+ });
739
+ }
740
+ //#endregion
741
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/helpers/formDataToJSON.js
742
+ function wt(e) {
743
+ return P.matchAll(/\w+|\[(\w*)]/g, e).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
744
+ }
745
+ function Tt(e) {
746
+ let t = {}, n = Object.keys(e), r, i = n.length, a;
747
+ for (r = 0; r < i; r++) a = n[r], t[a] = e[a];
748
+ return t;
749
+ }
750
+ function Et(e) {
751
+ function t(e, n, r, i) {
752
+ let a = e[i++];
753
+ if (a === "__proto__") return !0;
754
+ let o = Number.isFinite(+a), s = i >= e.length;
755
+ return a = !a && P.isArray(r) ? r.length : a, s ? (P.hasOwnProp(r, a) ? r[a] = P.isArray(r[a]) ? r[a].concat(n) : [r[a], n] : r[a] = n, !o) : ((!P.hasOwnProp(r, a) || !P.isObject(r[a])) && (r[a] = []), t(e, n, r[a], i) && P.isArray(r[a]) && (r[a] = Tt(r[a])), !o);
756
+ }
757
+ if (P.isFormData(e) && P.isFunction(e.entries)) {
758
+ let n = {};
759
+ return P.forEachEntry(e, (e, r) => {
760
+ t(wt(e), r, n, 0);
761
+ }), n;
762
+ }
763
+ return null;
764
+ }
765
+ //#endregion
766
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/defaults/index.js
767
+ var U = (e, t) => e != null && P.hasOwnProp(e, t) ? e[t] : void 0;
768
+ function Dt(e, t, n) {
769
+ if (P.isString(e)) try {
770
+ return (t || JSON.parse)(e), P.trim(e);
771
+ } catch (e) {
772
+ if (e.name !== "SyntaxError") throw e;
773
+ }
774
+ return (n || JSON.stringify)(e);
775
+ }
776
+ var W = {
777
+ transitional: ht,
778
+ adapter: [
779
+ "xhr",
780
+ "http",
781
+ "fetch"
782
+ ],
783
+ transformRequest: [function(e, t) {
784
+ let n = t.getContentType() || "", r = n.indexOf("application/json") > -1, i = P.isObject(e);
785
+ if (i && P.isHTMLForm(e) && (e = new FormData(e)), P.isFormData(e)) return r ? JSON.stringify(Et(e)) : e;
786
+ if (P.isArrayBuffer(e) || P.isBuffer(e) || P.isStream(e) || P.isFile(e) || P.isBlob(e) || P.isReadableStream(e)) return e;
787
+ if (P.isArrayBufferView(e)) return e.buffer;
788
+ if (P.isURLSearchParams(e)) return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
789
+ let a;
790
+ if (i) {
791
+ let t = U(this, "formSerializer");
792
+ if (n.indexOf("application/x-www-form-urlencoded") > -1) return Ct(e, t).toString();
793
+ if ((a = P.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
794
+ let n = U(this, "env"), r = n && n.FormData;
795
+ return V(a ? { "files[]": e } : e, r && new r(), t);
796
+ }
797
+ }
798
+ return i || r ? (t.setContentType("application/json", !1), Dt(e)) : e;
799
+ }],
800
+ transformResponse: [function(e) {
801
+ let t = U(this, "transitional") || W.transitional, n = t && t.forcedJSONParsing, r = U(this, "responseType"), i = r === "json";
802
+ if (P.isResponse(e) || P.isReadableStream(e)) return e;
803
+ if (e && P.isString(e) && (n && !r || i)) {
804
+ let n = !(t && t.silentJSONParsing) && i;
805
+ try {
806
+ return JSON.parse(e, U(this, "parseReviver"));
807
+ } catch (e) {
808
+ if (n) throw e.name === "SyntaxError" ? R.from(e, R.ERR_BAD_RESPONSE, this, null, U(this, "response")) : e;
809
+ }
810
+ }
811
+ return e;
812
+ }],
813
+ timeout: 0,
814
+ xsrfCookieName: "XSRF-TOKEN",
815
+ xsrfHeaderName: "X-XSRF-TOKEN",
816
+ maxContentLength: -1,
817
+ maxBodyLength: -1,
818
+ env: {
819
+ FormData: H.classes.FormData,
820
+ Blob: H.classes.Blob
821
+ },
822
+ validateStatus: function(e) {
823
+ return e >= 200 && e < 300;
824
+ },
825
+ headers: { common: {
826
+ Accept: "application/json, text/plain, */*",
827
+ "Content-Type": void 0
828
+ } }
829
+ };
830
+ P.forEach([
831
+ "delete",
832
+ "get",
833
+ "head",
834
+ "post",
835
+ "put",
836
+ "patch",
837
+ "query"
838
+ ], (e) => {
839
+ W.headers[e] = {};
840
+ });
841
+ //#endregion
842
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/core/transformData.js
843
+ function Ot(e, t) {
844
+ let n = this || W, r = t || n, i = L.from(r.headers), a = r.data;
845
+ return P.forEach(e, function(e) {
846
+ a = e.call(n, a, i.normalize(), t ? t.status : void 0);
847
+ }), i.normalize(), a;
848
+ }
849
+ //#endregion
850
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/cancel/isCancel.js
851
+ function kt(e) {
852
+ return !!(e && e.__CANCEL__);
853
+ }
854
+ //#endregion
855
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/cancel/CanceledError.js
856
+ var G = class extends R {
857
+ constructor(e, t, n) {
858
+ super(e == null ? "canceled" : e, R.ERR_CANCELED, t, n), this.name = "CanceledError", this.__CANCEL__ = !0;
859
+ }
860
+ };
861
+ //#endregion
862
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/core/settle.js
863
+ function At(e, t, n) {
864
+ let r = n.config.validateStatus;
865
+ !n.status || !r || r(n.status) ? e(n) : t(new R("Request failed with status code " + n.status, n.status >= 400 && n.status < 500 ? R.ERR_BAD_REQUEST : R.ERR_BAD_RESPONSE, n.config, n.request, n));
866
+ }
867
+ //#endregion
868
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/helpers/parseProtocol.js
869
+ function jt(e) {
870
+ let t = /^([-+\w]{1,25}):(?:\/\/)?/.exec(e);
871
+ return t && t[1] || "";
872
+ }
873
+ //#endregion
874
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/helpers/speedometer.js
875
+ function Mt(e, t) {
876
+ e = e || 10;
877
+ let n = Array(e), r = Array(e), i = 0, a = 0, o;
878
+ return t = t === void 0 ? 1e3 : t, function(s) {
879
+ let c = Date.now(), l = r[a];
880
+ o || (o = c), n[i] = s, r[i] = c;
881
+ let u = a, d = 0;
882
+ for (; u !== i;) d += n[u++], u %= e;
883
+ if (i = (i + 1) % e, i === a && (a = (a + 1) % e), c - o < t) return;
884
+ let f = l && c - l;
885
+ return f ? Math.round(d * 1e3 / f) : void 0;
886
+ };
887
+ }
888
+ //#endregion
889
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/helpers/throttle.js
890
+ function Nt(e, t) {
891
+ let n = 0, r = 1e3 / t, i, a, o = (t, r = Date.now()) => {
892
+ n = r, i = null, a && (clearTimeout(a), a = null), e(...t);
893
+ };
894
+ return [(...e) => {
895
+ let t = Date.now(), s = t - n;
896
+ s >= r ? o(e, t) : (i = e, a || (a = setTimeout(() => {
897
+ a = null, o(i);
898
+ }, r - s)));
899
+ }, () => i && o(i)];
900
+ }
901
+ //#endregion
902
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/helpers/progressEventReducer.js
903
+ var K = (e, t, n = 3) => {
904
+ let r = 0, i = Mt(50, 250);
905
+ return Nt((n) => {
906
+ if (!n || typeof n.loaded != "number") return;
907
+ let a = n.loaded, o = n.lengthComputable ? n.total : void 0, s = o == null ? a : Math.min(a, o), c = Math.max(0, s - r), l = i(c);
908
+ r = Math.max(r, s), e({
909
+ loaded: s,
910
+ total: o,
911
+ progress: o ? s / o : void 0,
912
+ bytes: c,
913
+ rate: l || void 0,
914
+ estimated: l && o ? (o - s) / l : void 0,
915
+ event: n,
916
+ lengthComputable: o != null,
917
+ [t ? "download" : "upload"]: !0
918
+ });
919
+ }, n);
920
+ }, Pt = (e, t) => {
921
+ let n = e != null;
922
+ return [(r) => t[0]({
923
+ lengthComputable: n,
924
+ total: e,
925
+ loaded: r
926
+ }), t[1]];
927
+ }, Ft = (e) => (...t) => P.asap(() => e(...t)), It = H.hasStandardBrowserEnv ? ((e, t) => (n) => (n = new URL(n, H.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(new URL(H.origin), H.navigator && /(msie|trident)/i.test(H.navigator.userAgent)) : () => !0, Lt = H.hasStandardBrowserEnv ? {
928
+ write(e, t, n, r, i, a, o) {
929
+ if (typeof document > "u") return;
930
+ let s = [`${e}=${encodeURIComponent(t)}`];
931
+ P.isNumber(n) && s.push(`expires=${new Date(n).toUTCString()}`), P.isString(r) && s.push(`path=${r}`), P.isString(i) && s.push(`domain=${i}`), a === !0 && s.push("secure"), P.isString(o) && s.push(`SameSite=${o}`), document.cookie = s.join("; ");
932
+ },
933
+ read(e) {
934
+ if (typeof document > "u") return null;
935
+ let t = document.cookie.split(";");
936
+ for (let n = 0; n < t.length; n++) {
937
+ let r = t[n].replace(/^\s+/, ""), i = r.indexOf("=");
938
+ if (i !== -1 && r.slice(0, i) === e) return decodeURIComponent(r.slice(i + 1));
939
+ }
940
+ return null;
941
+ },
942
+ remove(e) {
943
+ this.write(e, "", Date.now() - 864e5, "/");
944
+ }
945
+ } : {
946
+ write() {},
947
+ read() {
948
+ return null;
949
+ },
950
+ remove() {}
951
+ };
952
+ //#endregion
953
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/helpers/isAbsoluteURL.js
954
+ function Rt(e) {
955
+ return typeof e == "string" ? /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e) : !1;
956
+ }
957
+ //#endregion
958
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/helpers/combineURLs.js
959
+ function zt(e, t) {
960
+ return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
961
+ }
962
+ //#endregion
963
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/core/buildFullPath.js
964
+ function Bt(e, t, n) {
965
+ let r = !Rt(t);
966
+ return e && (r || n === !1) ? zt(e, t) : t;
967
+ }
968
+ //#endregion
969
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/core/mergeConfig.js
970
+ var Vt = (e) => e instanceof L ? { ...e } : e;
971
+ function q(e, t) {
972
+ t = t || {};
973
+ let n = Object.create(null);
974
+ Object.defineProperty(n, "hasOwnProperty", {
975
+ __proto__: null,
976
+ value: Object.prototype.hasOwnProperty,
977
+ enumerable: !1,
978
+ writable: !0,
979
+ configurable: !0
980
+ });
981
+ function r(e, t, n, r) {
982
+ return P.isPlainObject(e) && P.isPlainObject(t) ? P.merge.call({ caseless: r }, e, t) : P.isPlainObject(t) ? P.merge({}, t) : P.isArray(t) ? t.slice() : t;
983
+ }
984
+ function i(e, t, n, i) {
985
+ if (!P.isUndefined(t)) return r(e, t, n, i);
986
+ if (!P.isUndefined(e)) return r(void 0, e, n, i);
987
+ }
988
+ function a(e, t) {
989
+ if (!P.isUndefined(t)) return r(void 0, t);
990
+ }
991
+ function o(e, t) {
992
+ if (!P.isUndefined(t)) return r(void 0, t);
993
+ if (!P.isUndefined(e)) return r(void 0, e);
994
+ }
995
+ function s(n, i, a) {
996
+ if (P.hasOwnProp(t, a)) return r(n, i);
997
+ if (P.hasOwnProp(e, a)) return r(void 0, n);
998
+ }
999
+ let c = {
1000
+ url: a,
1001
+ method: a,
1002
+ data: a,
1003
+ baseURL: o,
1004
+ transformRequest: o,
1005
+ transformResponse: o,
1006
+ paramsSerializer: o,
1007
+ timeout: o,
1008
+ timeoutMessage: o,
1009
+ withCredentials: o,
1010
+ withXSRFToken: o,
1011
+ adapter: o,
1012
+ responseType: o,
1013
+ xsrfCookieName: o,
1014
+ xsrfHeaderName: o,
1015
+ onUploadProgress: o,
1016
+ onDownloadProgress: o,
1017
+ decompress: o,
1018
+ maxContentLength: o,
1019
+ maxBodyLength: o,
1020
+ beforeRedirect: o,
1021
+ transport: o,
1022
+ httpAgent: o,
1023
+ httpsAgent: o,
1024
+ cancelToken: o,
1025
+ socketPath: o,
1026
+ allowedSocketPaths: o,
1027
+ responseEncoding: o,
1028
+ validateStatus: s,
1029
+ headers: (e, t, n) => i(Vt(e), Vt(t), n, !0)
1030
+ };
1031
+ return P.forEach(Object.keys({
1032
+ ...e,
1033
+ ...t
1034
+ }), function(r) {
1035
+ if (r === "__proto__" || r === "constructor" || r === "prototype") return;
1036
+ let a = P.hasOwnProp(c, r) ? c[r] : i, o = a(P.hasOwnProp(e, r) ? e[r] : void 0, P.hasOwnProp(t, r) ? t[r] : void 0, r);
1037
+ P.isUndefined(o) && a !== s || (n[r] = o);
1038
+ }), n;
1039
+ }
1040
+ //#endregion
1041
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/helpers/resolveConfig.js
1042
+ var Ht = ["content-type", "content-length"];
1043
+ function Ut(e, t, n) {
1044
+ if (n !== "content-only") {
1045
+ e.set(t);
1046
+ return;
1047
+ }
1048
+ Object.entries(t).forEach(([t, n]) => {
1049
+ Ht.includes(t.toLowerCase()) && e.set(t, n);
1050
+ });
1051
+ }
1052
+ var Wt = (e) => encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi, (e, t) => String.fromCharCode(parseInt(t, 16)));
1053
+ function Gt(e) {
1054
+ let t = q({}, e), n = (e) => P.hasOwnProp(t, e) ? t[e] : void 0, r = n("data"), i = n("withXSRFToken"), a = n("xsrfHeaderName"), o = n("xsrfCookieName"), s = n("headers"), c = n("auth"), l = n("baseURL"), u = n("allowAbsoluteUrls"), d = n("url");
1055
+ if (t.headers = s = L.from(s), t.url = pt(Bt(l, d, u), n("params"), n("paramsSerializer")), c && s.set("Authorization", "Basic " + btoa((c.username || "") + ":" + (c.password ? Wt(c.password) : ""))), P.isFormData(r) && (H.hasStandardBrowserEnv || H.hasStandardBrowserWebWorkerEnv || P.isReactNative(r) ? s.setContentType(void 0) : P.isFunction(r.getHeaders) && Ut(s, r.getHeaders(), n("formDataHeaderPolicy"))), H.hasStandardBrowserEnv && (P.isFunction(i) && (i = i(t)), i === !0 || i == null && It(t.url))) {
1056
+ let e = a && o && Lt.read(o);
1057
+ e && s.set(a, e);
1058
+ }
1059
+ return t;
1060
+ }
1061
+ var Kt = typeof XMLHttpRequest < "u" && function(e) {
1062
+ return new Promise(function(t, n) {
1063
+ let r = Gt(e), i = r.data, a = L.from(r.headers).normalize(), { responseType: o, onUploadProgress: s, onDownloadProgress: c } = r, l, u, d, f, p;
1064
+ function m() {
1065
+ f && f(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(l), r.signal && r.signal.removeEventListener("abort", l);
1066
+ }
1067
+ let h = new XMLHttpRequest();
1068
+ h.open(r.method.toUpperCase(), r.url, !0), h.timeout = r.timeout;
1069
+ function g() {
1070
+ if (!h) return;
1071
+ let r = L.from("getAllResponseHeaders" in h && h.getAllResponseHeaders());
1072
+ At(function(e) {
1073
+ t(e), m();
1074
+ }, function(e) {
1075
+ n(e), m();
1076
+ }, {
1077
+ data: !o || o === "text" || o === "json" ? h.responseText : h.response,
1078
+ status: h.status,
1079
+ statusText: h.statusText,
1080
+ headers: r,
1081
+ config: e,
1082
+ request: h
1083
+ }), h = null;
1084
+ }
1085
+ "onloadend" in h ? h.onloadend = g : h.onreadystatechange = function() {
1086
+ !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.startsWith("file:")) || setTimeout(g);
1087
+ }, h.onabort = function() {
1088
+ h && (n(new R("Request aborted", R.ECONNABORTED, e, h)), m(), h = null);
1089
+ }, h.onerror = function(t) {
1090
+ let r = new R(t && t.message ? t.message : "Network Error", R.ERR_NETWORK, e, h);
1091
+ r.event = t || null, n(r), m(), h = null;
1092
+ }, h.ontimeout = function() {
1093
+ let t = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded", i = r.transitional || ht;
1094
+ r.timeoutErrorMessage && (t = r.timeoutErrorMessage), n(new R(t, i.clarifyTimeoutError ? R.ETIMEDOUT : R.ECONNABORTED, e, h)), m(), h = null;
1095
+ }, i === void 0 && a.setContentType(null), "setRequestHeader" in h && P.forEach(Xe(a), function(e, t) {
1096
+ h.setRequestHeader(t, e);
1097
+ }), P.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), o && o !== "json" && (h.responseType = r.responseType), c && ([d, p] = K(c, !0), h.addEventListener("progress", d)), s && h.upload && ([u, f] = K(s), h.upload.addEventListener("progress", u), h.upload.addEventListener("loadend", f)), (r.cancelToken || r.signal) && (l = (t) => {
1098
+ h && (n(!t || t.type ? new G(null, e, h) : t), h.abort(), m(), h = null);
1099
+ }, r.cancelToken && r.cancelToken.subscribe(l), r.signal && (r.signal.aborted ? l() : r.signal.addEventListener("abort", l)));
1100
+ let _ = jt(r.url);
1101
+ if (_ && !H.protocols.includes(_)) {
1102
+ n(new R("Unsupported protocol " + _ + ":", R.ERR_BAD_REQUEST, e));
1103
+ return;
1104
+ }
1105
+ h.send(i || null);
1106
+ });
1107
+ }, qt = (e, t) => {
1108
+ if (e = e ? e.filter(Boolean) : [], !t && !e.length) return;
1109
+ let n = new AbortController(), r = !1, i = function(e) {
1110
+ if (!r) {
1111
+ r = !0, o();
1112
+ let t = e instanceof Error ? e : this.reason;
1113
+ n.abort(t instanceof R ? t : new G(t instanceof Error ? t.message : t));
1114
+ }
1115
+ }, a = t && setTimeout(() => {
1116
+ a = null, i(new R(`timeout of ${t}ms exceeded`, R.ETIMEDOUT));
1117
+ }, t), o = () => {
1118
+ e && (a && clearTimeout(a), a = null, e.forEach((e) => {
1119
+ e.unsubscribe ? e.unsubscribe(i) : e.removeEventListener("abort", i);
1120
+ }), e = null);
1121
+ };
1122
+ e.forEach((e) => e.addEventListener("abort", i));
1123
+ let { signal: s } = n;
1124
+ return s.unsubscribe = () => P.asap(o), s;
1125
+ }, Jt = function* (e, t) {
1126
+ let n = e.byteLength;
1127
+ if (!t || n < t) {
1128
+ yield e;
1129
+ return;
1130
+ }
1131
+ let r = 0, i;
1132
+ for (; r < n;) i = r + t, yield e.slice(r, i), r = i;
1133
+ }, Yt = async function* (e, t) {
1134
+ for await (let n of Xt(e)) yield* Jt(n, t);
1135
+ }, Xt = async function* (e) {
1136
+ if (e[Symbol.asyncIterator]) {
1137
+ yield* e;
1138
+ return;
1139
+ }
1140
+ let t = e.getReader();
1141
+ try {
1142
+ for (;;) {
1143
+ let { done: e, value: n } = await t.read();
1144
+ if (e) break;
1145
+ yield n;
1146
+ }
1147
+ } finally {
1148
+ await t.cancel();
1149
+ }
1150
+ }, Zt = (e, t, n, r) => {
1151
+ let i = Yt(e, t), a = 0, o, s = (e) => {
1152
+ o || (o = !0, r && r(e));
1153
+ };
1154
+ return new ReadableStream({
1155
+ async pull(e) {
1156
+ try {
1157
+ let { done: t, value: r } = await i.next();
1158
+ if (t) {
1159
+ s(), e.close();
1160
+ return;
1161
+ }
1162
+ let o = r.byteLength;
1163
+ n && n(a += o), e.enqueue(new Uint8Array(r));
1164
+ } catch (e) {
1165
+ throw s(e), e;
1166
+ }
1167
+ },
1168
+ cancel(e) {
1169
+ return s(e), i.return();
1170
+ }
1171
+ }, { highWaterMark: 2 });
1172
+ };
1173
+ //#endregion
1174
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
1175
+ function Qt(e) {
1176
+ if (!e || typeof e != "string" || !e.startsWith("data:")) return 0;
1177
+ let t = e.indexOf(",");
1178
+ if (t < 0) return 0;
1179
+ let n = e.slice(5, t), r = e.slice(t + 1);
1180
+ if (/;base64/i.test(n)) {
1181
+ let e = r.length, t = r.length;
1182
+ for (let n = 0; n < t; n++) if (r.charCodeAt(n) === 37 && n + 2 < t) {
1183
+ let t = r.charCodeAt(n + 1), i = r.charCodeAt(n + 2);
1184
+ (t >= 48 && t <= 57 || t >= 65 && t <= 70 || t >= 97 && t <= 102) && (i >= 48 && i <= 57 || i >= 65 && i <= 70 || i >= 97 && i <= 102) && (e -= 2, n += 2);
1185
+ }
1186
+ let n = 0, i = t - 1, a = (e) => e >= 2 && r.charCodeAt(e - 2) === 37 && r.charCodeAt(e - 1) === 51 && (r.charCodeAt(e) === 68 || r.charCodeAt(e) === 100);
1187
+ i >= 0 && (r.charCodeAt(i) === 61 ? (n++, i--) : a(i) && (n++, i -= 3)), n === 1 && i >= 0 && (r.charCodeAt(i) === 61 || a(i)) && n++;
1188
+ let o = Math.floor(e / 4) * 3 - (n || 0);
1189
+ return o > 0 ? o : 0;
1190
+ }
1191
+ if (typeof Buffer < "u" && typeof Buffer.byteLength == "function") return Buffer.byteLength(r, "utf8");
1192
+ let i = 0;
1193
+ for (let e = 0, t = r.length; e < t; e++) {
1194
+ let n = r.charCodeAt(e);
1195
+ if (n < 128) i += 1;
1196
+ else if (n < 2048) i += 2;
1197
+ else if (n >= 55296 && n <= 56319 && e + 1 < t) {
1198
+ let t = r.charCodeAt(e + 1);
1199
+ t >= 56320 && t <= 57343 ? (i += 4, e++) : i += 3;
1200
+ } else i += 3;
1201
+ }
1202
+ return i;
1203
+ }
1204
+ //#endregion
1205
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/env/data.js
1206
+ var $t = "1.17.0", en = 64 * 1024, { isFunction: J } = P, tn = (e) => encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi, (e, t) => String.fromCharCode(parseInt(t, 16))), nn = (e) => {
1207
+ if (!P.isString(e)) return e;
1208
+ try {
1209
+ return decodeURIComponent(e);
1210
+ } catch {
1211
+ return e;
1212
+ }
1213
+ }, rn = (e, ...t) => {
1214
+ try {
1215
+ return !!e(...t);
1216
+ } catch {
1217
+ return !1;
1218
+ }
1219
+ }, an = (e) => {
1220
+ let t = e.indexOf("://"), n = e;
1221
+ return t !== -1 && (n = n.slice(t + 3)), n.includes("@") || n.includes(":");
1222
+ }, on = (e) => {
1223
+ let t = P.global !== void 0 && P.global !== null ? P.global : globalThis, { ReadableStream: n, TextEncoder: r } = t;
1224
+ e = P.merge.call({ skipUndefined: !0 }, {
1225
+ Request: t.Request,
1226
+ Response: t.Response
1227
+ }, e);
1228
+ let { fetch: i, Request: a, Response: o } = e, s = i ? J(i) : typeof fetch == "function", c = J(a), l = J(o);
1229
+ if (!s) return !1;
1230
+ let u = s && J(n), d = s && (typeof r == "function" ? ((e) => (t) => e.encode(t))(new r()) : async (e) => new Uint8Array(await new a(e).arrayBuffer())), f = c && u && rn(() => {
1231
+ let e = !1, t = new a(H.origin, {
1232
+ body: new n(),
1233
+ method: "POST",
1234
+ get duplex() {
1235
+ return e = !0, "half";
1236
+ }
1237
+ }), r = t.headers.has("Content-Type");
1238
+ return t.body != null && t.body.cancel(), e && !r;
1239
+ }), p = l && u && rn(() => P.isReadableStream(new o("").body)), m = { stream: p && ((e) => e.body) };
1240
+ s && [
1241
+ "text",
1242
+ "arrayBuffer",
1243
+ "blob",
1244
+ "formData",
1245
+ "stream"
1246
+ ].forEach((e) => {
1247
+ !m[e] && (m[e] = (t, n) => {
1248
+ let r = t && t[e];
1249
+ if (r) return r.call(t);
1250
+ throw new R(`Response type '${e}' is not supported`, R.ERR_NOT_SUPPORT, n);
1251
+ });
1252
+ });
1253
+ let h = async (e) => {
1254
+ if (e == null) return 0;
1255
+ if (P.isBlob(e)) return e.size;
1256
+ if (P.isSpecCompliantForm(e)) return (await new a(H.origin, {
1257
+ method: "POST",
1258
+ body: e
1259
+ }).arrayBuffer()).byteLength;
1260
+ if (P.isArrayBufferView(e) || P.isArrayBuffer(e)) return e.byteLength;
1261
+ if (P.isURLSearchParams(e) && (e += ""), P.isString(e)) return (await d(e)).byteLength;
1262
+ }, g = async (e, t) => {
1263
+ let n = P.toFiniteNumber(e.getContentLength());
1264
+ return n == null ? h(t) : n;
1265
+ };
1266
+ return async (e) => {
1267
+ let { url: t, method: n, data: s, signal: l, cancelToken: u, timeout: d, onDownloadProgress: h, onUploadProgress: _, responseType: v, headers: y, withCredentials: b = "same-origin", fetchOptions: x, maxContentLength: S, maxBodyLength: C } = Gt(e), w = P.isNumber(S) && S > -1, ee = P.isNumber(C) && C > -1, T = (t) => P.hasOwnProp(e, t) ? e[t] : void 0, te = i || fetch;
1268
+ v = v ? (v + "").toLowerCase() : "text";
1269
+ let E = qt([l, u && u.toAbortSignal()], d), D = null, O = E && E.unsubscribe && (() => {
1270
+ E.unsubscribe();
1271
+ }), ne;
1272
+ try {
1273
+ let i, l = T("auth");
1274
+ if (l && (i = {
1275
+ username: l.username || "",
1276
+ password: l.password || ""
1277
+ }), an(t)) {
1278
+ let e = new URL(t, H.origin);
1279
+ !i && (e.username || e.password) && (i = {
1280
+ username: nn(e.username),
1281
+ password: nn(e.password)
1282
+ }), (e.username || e.password) && (e.username = "", e.password = "", t = e.href);
1283
+ }
1284
+ if (i && (y.delete("authorization"), y.set("Authorization", "Basic " + btoa(tn((i.username || "") + ":" + (i.password || ""))))), w && typeof t == "string" && t.startsWith("data:") && Qt(t) > S) throw new R("maxContentLength size of " + S + " exceeded", R.ERR_BAD_RESPONSE, e, D);
1285
+ if (ee && n !== "get" && n !== "head") {
1286
+ let t = await g(y, s);
1287
+ if (typeof t == "number" && isFinite(t) && t > C) throw new R("Request body larger than maxBodyLength limit", R.ERR_BAD_REQUEST, e, D);
1288
+ }
1289
+ if (_ && f && n !== "get" && n !== "head" && (ne = await g(y, s)) !== 0) {
1290
+ let e = new a(t, {
1291
+ method: "POST",
1292
+ body: s,
1293
+ duplex: "half"
1294
+ }), n;
1295
+ if (P.isFormData(s) && (n = e.headers.get("content-type")) && y.setContentType(n), e.body) {
1296
+ let [t, n] = Pt(ne, K(Ft(_)));
1297
+ s = Zt(e.body, en, t, n);
1298
+ }
1299
+ }
1300
+ P.isString(b) || (b = b ? "include" : "omit");
1301
+ let u = c && "credentials" in a.prototype;
1302
+ if (P.isFormData(s)) {
1303
+ let e = y.getContentType();
1304
+ e && /^multipart\/form-data/i.test(e) && !/boundary=/i.test(e) && y.delete("content-type");
1305
+ }
1306
+ y.set("User-Agent", "axios/" + $t, !1);
1307
+ let d = {
1308
+ ...x,
1309
+ signal: E,
1310
+ method: n.toUpperCase(),
1311
+ headers: Xe(y.normalize()),
1312
+ body: s,
1313
+ duplex: "half",
1314
+ credentials: u ? b : void 0
1315
+ };
1316
+ D = c && new a(t, d);
1317
+ let k = await (c ? te(D, x) : te(t, d));
1318
+ if (w) {
1319
+ let t = P.toFiniteNumber(k.headers.get("content-length"));
1320
+ if (t != null && t > S) throw new R("maxContentLength size of " + S + " exceeded", R.ERR_BAD_RESPONSE, e, D);
1321
+ }
1322
+ let A = p && (v === "stream" || v === "response");
1323
+ if (p && k.body && (h || w || A && O)) {
1324
+ let t = {};
1325
+ [
1326
+ "status",
1327
+ "statusText",
1328
+ "headers"
1329
+ ].forEach((e) => {
1330
+ t[e] = k[e];
1331
+ });
1332
+ let n = P.toFiniteNumber(k.headers.get("content-length")), [r, i] = h && Pt(n, K(Ft(h), !0)) || [], a = 0;
1333
+ k = new o(Zt(k.body, en, (t) => {
1334
+ if (w && (a = t, a > S)) throw new R("maxContentLength size of " + S + " exceeded", R.ERR_BAD_RESPONSE, e, D);
1335
+ r && r(t);
1336
+ }, () => {
1337
+ i && i(), O && O();
1338
+ }), t);
1339
+ }
1340
+ v = v || "text";
1341
+ let j = await m[P.findKey(m, v) || "text"](k, e);
1342
+ if (w && !p && !A) {
1343
+ let t;
1344
+ if (j != null && (typeof j.byteLength == "number" ? t = j.byteLength : typeof j.size == "number" ? t = j.size : typeof j == "string" && (t = typeof r == "function" ? new r().encode(j).byteLength : j.length)), typeof t == "number" && t > S) throw new R("maxContentLength size of " + S + " exceeded", R.ERR_BAD_RESPONSE, e, D);
1345
+ }
1346
+ return !A && O && O(), await new Promise((t, n) => {
1347
+ At(t, n, {
1348
+ data: j,
1349
+ headers: L.from(k.headers),
1350
+ status: k.status,
1351
+ statusText: k.statusText,
1352
+ config: e,
1353
+ request: D
1354
+ });
1355
+ });
1356
+ } catch (t) {
1357
+ if (O && O(), E && E.aborted && E.reason instanceof R) {
1358
+ let n = E.reason;
1359
+ throw n.config = e, D && (n.request = D), t !== n && (n.cause = t), n;
1360
+ }
1361
+ throw t && t.name === "TypeError" && /Load failed|fetch/i.test(t.message) ? Object.assign(new R("Network Error", R.ERR_NETWORK, e, D, t && t.response), { cause: t.cause || t }) : R.from(t, t && t.code, e, D, t && t.response);
1362
+ }
1363
+ };
1364
+ }, sn = /* @__PURE__ */ new Map(), cn = (e) => {
1365
+ let t = e && e.env || {}, { fetch: n, Request: r, Response: i } = t, a = [
1366
+ r,
1367
+ i,
1368
+ n
1369
+ ], o = a.length, s, c, l = sn;
1370
+ for (; o--;) s = a[o], c = l.get(s), c === void 0 && l.set(s, c = o ? /* @__PURE__ */ new Map() : on(t)), l = c;
1371
+ return c;
1372
+ };
1373
+ cn();
1374
+ //#endregion
1375
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/adapters/adapters.js
1376
+ var ln = {
1377
+ http: null,
1378
+ xhr: Kt,
1379
+ fetch: { get: cn }
1380
+ };
1381
+ P.forEach(ln, (e, t) => {
1382
+ if (e) {
1383
+ try {
1384
+ Object.defineProperty(e, "name", {
1385
+ __proto__: null,
1386
+ value: t
1387
+ });
1388
+ } catch {}
1389
+ Object.defineProperty(e, "adapterName", {
1390
+ __proto__: null,
1391
+ value: t
1392
+ });
1393
+ }
1394
+ });
1395
+ var un = (e) => `- ${e}`, dn = (e) => P.isFunction(e) || e === null || e === !1;
1396
+ function fn(e, t) {
1397
+ e = P.isArray(e) ? e : [e];
1398
+ let { length: n } = e, r, i, a = {};
1399
+ for (let o = 0; o < n; o++) {
1400
+ r = e[o];
1401
+ let n;
1402
+ if (i = r, !dn(r) && (i = ln[(n = String(r)).toLowerCase()], i === void 0)) throw new R(`Unknown adapter '${n}'`);
1403
+ if (i && (P.isFunction(i) || (i = i.get(t)))) break;
1404
+ a[n || "#" + o] = i;
1405
+ }
1406
+ if (!i) {
1407
+ let e = Object.entries(a).map(([e, t]) => `adapter ${e} ` + (t === !1 ? "is not supported by the environment" : "is not available in the build"));
1408
+ throw new R("There is no suitable adapter to dispatch the request " + (n ? e.length > 1 ? "since :\n" + e.map(un).join("\n") : " " + un(e[0]) : "as no adapter specified"), "ERR_NOT_SUPPORT");
1409
+ }
1410
+ return i;
1411
+ }
1412
+ var pn = {
1413
+ getAdapter: fn,
1414
+ adapters: ln
1415
+ };
1416
+ //#endregion
1417
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/core/dispatchRequest.js
1418
+ function mn(e) {
1419
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new G(null, e);
1420
+ }
1421
+ function hn(e) {
1422
+ return mn(e), e.headers = L.from(e.headers), e.data = Ot.call(e, e.transformRequest), [
1423
+ "post",
1424
+ "put",
1425
+ "patch"
1426
+ ].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), pn.getAdapter(e.adapter || W.adapter, e)(e).then(function(t) {
1427
+ mn(e), e.response = t;
1428
+ try {
1429
+ t.data = Ot.call(e, e.transformResponse, t);
1430
+ } finally {
1431
+ delete e.response;
1432
+ }
1433
+ return t.headers = L.from(t.headers), t;
1434
+ }, function(t) {
1435
+ if (!kt(t) && (mn(e), t && t.response)) {
1436
+ e.response = t.response;
1437
+ try {
1438
+ t.response.data = Ot.call(e, e.transformResponse, t.response);
1439
+ } finally {
1440
+ delete e.response;
1441
+ }
1442
+ t.response.headers = L.from(t.response.headers);
1443
+ }
1444
+ return Promise.reject(t);
1445
+ });
1446
+ }
1447
+ //#endregion
1448
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/helpers/validator.js
1449
+ var Y = {};
1450
+ [
1451
+ "object",
1452
+ "boolean",
1453
+ "number",
1454
+ "function",
1455
+ "string",
1456
+ "symbol"
1457
+ ].forEach((e, t) => {
1458
+ Y[e] = function(n) {
1459
+ return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
1460
+ };
1461
+ });
1462
+ var gn = {};
1463
+ Y.transitional = function(e, t, n) {
1464
+ function r(e, t) {
1465
+ return "[Axios v" + $t + "] Transitional option '" + e + "'" + t + (n ? ". " + n : "");
1466
+ }
1467
+ return (n, i, a) => {
1468
+ if (e === !1) throw new R(r(i, " has been removed" + (t ? " in " + t : "")), R.ERR_DEPRECATED);
1469
+ return t && !gn[i] && (gn[i] = !0, console.warn(r(i, " has been deprecated since v" + t + " and will be removed in the near future"))), e ? e(n, i, a) : !0;
1470
+ };
1471
+ }, Y.spelling = function(e) {
1472
+ return (t, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
1473
+ };
1474
+ function _n(e, t, n) {
1475
+ if (typeof e != "object") throw new R("options must be an object", R.ERR_BAD_OPTION_VALUE);
1476
+ let r = Object.keys(e), i = r.length;
1477
+ for (; i-- > 0;) {
1478
+ let a = r[i], o = Object.prototype.hasOwnProperty.call(t, a) ? t[a] : void 0;
1479
+ if (o) {
1480
+ let t = e[a], n = t === void 0 || o(t, a, e);
1481
+ if (n !== !0) throw new R("option " + a + " must be " + n, R.ERR_BAD_OPTION_VALUE);
1482
+ continue;
1483
+ }
1484
+ if (n !== !0) throw new R("Unknown option " + a, R.ERR_BAD_OPTION);
1485
+ }
1486
+ }
1487
+ var X = {
1488
+ assertOptions: _n,
1489
+ validators: Y
1490
+ }, Z = X.validators, Q = class {
1491
+ constructor(e) {
1492
+ this.defaults = e || {}, this.interceptors = {
1493
+ request: new mt(),
1494
+ response: new mt()
1495
+ };
1496
+ }
1497
+ async request(e, t) {
1498
+ try {
1499
+ return await this._request(e, t);
1500
+ } catch (e) {
1501
+ if (e instanceof Error) {
1502
+ let t = {};
1503
+ Error.captureStackTrace ? Error.captureStackTrace(t) : t = /* @__PURE__ */ Error();
1504
+ let n = (() => {
1505
+ if (!t.stack) return "";
1506
+ let e = t.stack.indexOf("\n");
1507
+ return e === -1 ? "" : t.stack.slice(e + 1);
1508
+ })();
1509
+ try {
1510
+ if (!e.stack) e.stack = n;
1511
+ else if (n) {
1512
+ let t = n.indexOf("\n"), r = t === -1 ? -1 : n.indexOf("\n", t + 1), i = r === -1 ? "" : n.slice(r + 1);
1513
+ String(e.stack).endsWith(i) || (e.stack += "\n" + n);
1514
+ }
1515
+ } catch {}
1516
+ }
1517
+ throw e;
1518
+ }
1519
+ }
1520
+ _request(e, t) {
1521
+ typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = q(this.defaults, t);
1522
+ let { transitional: n, paramsSerializer: r, headers: i } = t;
1523
+ n !== void 0 && X.assertOptions(n, {
1524
+ silentJSONParsing: Z.transitional(Z.boolean),
1525
+ forcedJSONParsing: Z.transitional(Z.boolean),
1526
+ clarifyTimeoutError: Z.transitional(Z.boolean),
1527
+ legacyInterceptorReqResOrdering: Z.transitional(Z.boolean),
1528
+ advertiseZstdAcceptEncoding: Z.transitional(Z.boolean)
1529
+ }, !1), r != null && (P.isFunction(r) ? t.paramsSerializer = { serialize: r } : X.assertOptions(r, {
1530
+ encode: Z.function,
1531
+ serialize: Z.function
1532
+ }, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls === void 0 ? t.allowAbsoluteUrls = !0 : t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls), X.assertOptions(t, {
1533
+ baseUrl: Z.spelling("baseURL"),
1534
+ withXsrfToken: Z.spelling("withXSRFToken")
1535
+ }, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
1536
+ let a = i && P.merge(i.common, i[t.method]);
1537
+ i && P.forEach([
1538
+ "delete",
1539
+ "get",
1540
+ "head",
1541
+ "post",
1542
+ "put",
1543
+ "patch",
1544
+ "query",
1545
+ "common"
1546
+ ], (e) => {
1547
+ delete i[e];
1548
+ }), t.headers = L.concat(a, i);
1549
+ let o = [], s = !0;
1550
+ this.interceptors.request.forEach(function(e) {
1551
+ if (typeof e.runWhen == "function" && e.runWhen(t) === !1) return;
1552
+ s = s && e.synchronous;
1553
+ let n = t.transitional || ht;
1554
+ n && n.legacyInterceptorReqResOrdering ? o.unshift(e.fulfilled, e.rejected) : o.push(e.fulfilled, e.rejected);
1555
+ });
1556
+ let c = [];
1557
+ this.interceptors.response.forEach(function(e) {
1558
+ c.push(e.fulfilled, e.rejected);
1559
+ });
1560
+ let l, u = 0, d;
1561
+ if (!s) {
1562
+ let e = [hn.bind(this), void 0];
1563
+ for (e.unshift(...o), e.push(...c), d = e.length, l = Promise.resolve(t); u < d;) l = l.then(e[u++], e[u++]);
1564
+ return l;
1565
+ }
1566
+ d = o.length;
1567
+ let f = t;
1568
+ for (; u < d;) {
1569
+ let e = o[u++], t = o[u++];
1570
+ try {
1571
+ f = e(f);
1572
+ } catch (e) {
1573
+ t.call(this, e);
1574
+ break;
1575
+ }
1576
+ }
1577
+ try {
1578
+ l = hn.call(this, f);
1579
+ } catch (e) {
1580
+ return Promise.reject(e);
1581
+ }
1582
+ for (u = 0, d = c.length; u < d;) l = l.then(c[u++], c[u++]);
1583
+ return l;
1584
+ }
1585
+ getUri(e) {
1586
+ return e = q(this.defaults, e), pt(Bt(e.baseURL, e.url, e.allowAbsoluteUrls), e.params, e.paramsSerializer);
1587
+ }
1588
+ };
1589
+ P.forEach([
1590
+ "delete",
1591
+ "get",
1592
+ "head",
1593
+ "options"
1594
+ ], function(e) {
1595
+ Q.prototype[e] = function(t, n) {
1596
+ return this.request(q(n || {}, {
1597
+ method: e,
1598
+ url: t,
1599
+ data: (n || {}).data
1600
+ }));
1601
+ };
1602
+ }), P.forEach([
1603
+ "post",
1604
+ "put",
1605
+ "patch",
1606
+ "query"
1607
+ ], function(e) {
1608
+ function t(t) {
1609
+ return function(n, r, i) {
1610
+ return this.request(q(i || {}, {
1611
+ method: e,
1612
+ headers: t ? { "Content-Type": "multipart/form-data" } : {},
1613
+ url: n,
1614
+ data: r
1615
+ }));
1616
+ };
1617
+ }
1618
+ Q.prototype[e] = t(), e !== "query" && (Q.prototype[e + "Form"] = t(!0));
1619
+ });
1620
+ //#endregion
1621
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/cancel/CancelToken.js
1622
+ var vn = class e {
1623
+ constructor(e) {
1624
+ if (typeof e != "function") throw TypeError("executor must be a function.");
1625
+ let t;
1626
+ this.promise = new Promise(function(e) {
1627
+ t = e;
1628
+ });
1629
+ let n = this;
1630
+ this.promise.then((e) => {
1631
+ if (!n._listeners) return;
1632
+ let t = n._listeners.length;
1633
+ for (; t-- > 0;) n._listeners[t](e);
1634
+ n._listeners = null;
1635
+ }), this.promise.then = (e) => {
1636
+ let t, r = new Promise((e) => {
1637
+ n.subscribe(e), t = e;
1638
+ }).then(e);
1639
+ return r.cancel = function() {
1640
+ n.unsubscribe(t);
1641
+ }, r;
1642
+ }, e(function(e, r, i) {
1643
+ n.reason || (n.reason = new G(e, r, i), t(n.reason));
1644
+ });
1645
+ }
1646
+ throwIfRequested() {
1647
+ if (this.reason) throw this.reason;
1648
+ }
1649
+ subscribe(e) {
1650
+ if (this.reason) {
1651
+ e(this.reason);
1652
+ return;
1653
+ }
1654
+ this._listeners ? this._listeners.push(e) : this._listeners = [e];
1655
+ }
1656
+ unsubscribe(e) {
1657
+ if (!this._listeners) return;
1658
+ let t = this._listeners.indexOf(e);
1659
+ t !== -1 && this._listeners.splice(t, 1);
1660
+ }
1661
+ toAbortSignal() {
1662
+ let e = new AbortController(), t = (t) => {
1663
+ e.abort(t);
1664
+ };
1665
+ return this.subscribe(t), e.signal.unsubscribe = () => this.unsubscribe(t), e.signal;
1666
+ }
1667
+ static source() {
1668
+ let t;
1669
+ return {
1670
+ token: new e(function(e) {
1671
+ t = e;
1672
+ }),
1673
+ cancel: t
1674
+ };
1675
+ }
1676
+ };
1677
+ //#endregion
1678
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/helpers/spread.js
1679
+ function yn(e) {
1680
+ return function(t) {
1681
+ return e.apply(null, t);
1682
+ };
1683
+ }
1684
+ //#endregion
1685
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/helpers/isAxiosError.js
1686
+ function bn(e) {
1687
+ return P.isObject(e) && e.isAxiosError === !0;
1688
+ }
1689
+ //#endregion
1690
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/helpers/HttpStatusCode.js
1691
+ var xn = {
1692
+ Continue: 100,
1693
+ SwitchingProtocols: 101,
1694
+ Processing: 102,
1695
+ EarlyHints: 103,
1696
+ Ok: 200,
1697
+ Created: 201,
1698
+ Accepted: 202,
1699
+ NonAuthoritativeInformation: 203,
1700
+ NoContent: 204,
1701
+ ResetContent: 205,
1702
+ PartialContent: 206,
1703
+ MultiStatus: 207,
1704
+ AlreadyReported: 208,
1705
+ ImUsed: 226,
1706
+ MultipleChoices: 300,
1707
+ MovedPermanently: 301,
1708
+ Found: 302,
1709
+ SeeOther: 303,
1710
+ NotModified: 304,
1711
+ UseProxy: 305,
1712
+ Unused: 306,
1713
+ TemporaryRedirect: 307,
1714
+ PermanentRedirect: 308,
1715
+ BadRequest: 400,
1716
+ Unauthorized: 401,
1717
+ PaymentRequired: 402,
1718
+ Forbidden: 403,
1719
+ NotFound: 404,
1720
+ MethodNotAllowed: 405,
1721
+ NotAcceptable: 406,
1722
+ ProxyAuthenticationRequired: 407,
1723
+ RequestTimeout: 408,
1724
+ Conflict: 409,
1725
+ Gone: 410,
1726
+ LengthRequired: 411,
1727
+ PreconditionFailed: 412,
1728
+ PayloadTooLarge: 413,
1729
+ UriTooLong: 414,
1730
+ UnsupportedMediaType: 415,
1731
+ RangeNotSatisfiable: 416,
1732
+ ExpectationFailed: 417,
1733
+ ImATeapot: 418,
1734
+ MisdirectedRequest: 421,
1735
+ UnprocessableEntity: 422,
1736
+ Locked: 423,
1737
+ FailedDependency: 424,
1738
+ TooEarly: 425,
1739
+ UpgradeRequired: 426,
1740
+ PreconditionRequired: 428,
1741
+ TooManyRequests: 429,
1742
+ RequestHeaderFieldsTooLarge: 431,
1743
+ UnavailableForLegalReasons: 451,
1744
+ InternalServerError: 500,
1745
+ NotImplemented: 501,
1746
+ BadGateway: 502,
1747
+ ServiceUnavailable: 503,
1748
+ GatewayTimeout: 504,
1749
+ HttpVersionNotSupported: 505,
1750
+ VariantAlsoNegotiates: 506,
1751
+ InsufficientStorage: 507,
1752
+ LoopDetected: 508,
1753
+ NotExtended: 510,
1754
+ NetworkAuthenticationRequired: 511,
1755
+ WebServerIsDown: 521,
1756
+ ConnectionTimedOut: 522,
1757
+ OriginIsUnreachable: 523,
1758
+ TimeoutOccurred: 524,
1759
+ SslHandshakeFailed: 525,
1760
+ InvalidSslCertificate: 526
1761
+ };
1762
+ Object.entries(xn).forEach(([e, t]) => {
1763
+ xn[t] = e;
1764
+ });
1765
+ //#endregion
1766
+ //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/axios.js
1767
+ function Sn(e) {
1768
+ let t = new Q(e), n = u(Q.prototype.request, t);
1769
+ return P.extend(n, Q.prototype, t, { allOwnKeys: !0 }), P.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(t) {
1770
+ return Sn(q(e, t));
1771
+ }, n;
1772
+ }
1773
+ var $ = Sn(W);
1774
+ $.Axios = Q, $.CanceledError = G, $.CancelToken = vn, $.isCancel = kt, $.VERSION = $t, $.toFormData = V, $.AxiosError = R, $.Cancel = $.CanceledError, $.all = function(e) {
1775
+ return Promise.all(e);
1776
+ }, $.spread = yn, $.isAxiosError = bn, $.mergeConfig = q, $.AxiosHeaders = L, $.formToJSON = (e) => Et(P.isHTMLForm(e) ? new FormData(e) : e), $.getAdapter = pn.getAdapter, $.HttpStatusCode = xn, $.default = $;
1777
+ //#endregion
1778
+ //#region src/api/constants.ts
1779
+ var Cn = "ph-app-id", wn = "apollographql-client-name", Tn = "fi-sapia", En = "apollographql-client-version", Dn = [
1780
+ "local",
1781
+ "dev",
1782
+ "qa",
1783
+ "sandbox",
1784
+ "product"
1785
+ ], On = [
1786
+ "ap-southeast-2",
1787
+ "eu-west-1",
1788
+ "us-east-1"
1789
+ ], kn = "chatbot", An = {
1790
+ dev: "https://fi-api.dev.predictivehire.com",
1791
+ qa: "https://fi-api.qa.predictivehire.com",
1792
+ sandbox: "https://fi-api.sandbox.predictivehire.com",
1793
+ product: "https://fi-api.product.predictivehire.com"
1794
+ }, jn = "http://fi.localhost.com:5004", Mn = ({ env: e, apiOrigin: t }) => t ? t.replace(/\/$/, "") : e === "local" ? jn : An[e], Nn = (e) => `${Mn(e)}/api/${e.region}/${kn}`, Pn = (e) => {
1795
+ let t, n = [];
1796
+ for (let r of e.split("\n")) {
1797
+ if (r === "" || r.startsWith(":")) continue;
1798
+ let e = r.indexOf(":"), i = e === -1 ? r : r.slice(0, e), a = e === -1 ? "" : r.slice(e + 1);
1799
+ a.startsWith(" ") && (a = a.slice(1)), i === "event" ? t = a : i === "data" && n.push(a);
1800
+ }
1801
+ return {
1802
+ event: t,
1803
+ data: n.join("\n")
1804
+ };
1805
+ };
1806
+ async function* Fn(e) {
1807
+ let t = e.getReader(), n = new TextDecoder(), r = "";
1808
+ try {
1809
+ for (;;) {
1810
+ let { value: e, done: i } = await t.read();
1811
+ if (i) break;
1812
+ r += n.decode(e, { stream: !0 }).replace(/\r\n/g, "\n");
1813
+ let a;
1814
+ for (; (a = r.indexOf("\n\n")) !== -1;) {
1815
+ let e = r.slice(0, a);
1816
+ r = r.slice(a + 2);
1817
+ let t = Pn(e);
1818
+ (t.event !== void 0 || t.data !== "") && (yield t);
1819
+ }
1820
+ }
1821
+ } finally {
1822
+ t.cancel().catch(() => {});
1823
+ }
1824
+ }
1825
+ //#endregion
1826
+ //#region src/api/client.ts
1827
+ var In = (...e) => globalThis.fetch(...e), Ln = class {
1828
+ constructor(e) {
1829
+ var t, n, r;
1830
+ this.baseUrl = Nn(e), this.baseHeaders = {
1831
+ [Cn]: e.appId,
1832
+ [wn]: Tn,
1833
+ [En]: "1.0"
1834
+ }, this.http = (t = e.httpClient) == null ? $.create({ headers: this.baseHeaders }) : t, this.putImpl = (n = e.putImpl) == null ? $.put : n, this.fetchImpl = (r = e.fetchImpl) == null ? In : r;
1835
+ }
1836
+ fiTokenHeaders() {
1837
+ return this.fiToken ? { [this.fiToken.name]: this.fiToken.value } : {};
1838
+ }
1839
+ getFiToken() {
1840
+ return this.fiToken;
1841
+ }
1842
+ async startAts(e) {
1843
+ let t = await this.http.post(`${this.baseUrl}/${e}/start/ats`);
1844
+ return this.fiToken = t.data.fiToken, t.data;
1845
+ }
1846
+ async nextStream(e, t, n) {
1847
+ let r = await this.fetchImpl(`${this.baseUrl}/${e}/next/stream`, {
1848
+ method: "POST",
1849
+ headers: {
1850
+ ...this.baseHeaders,
1851
+ ...this.fiTokenHeaders(),
1852
+ "Content-Type": "application/json",
1853
+ Accept: "text/event-stream"
1854
+ },
1855
+ body: JSON.stringify({ candidateResponse: t }),
1856
+ signal: n.signal
1857
+ });
1858
+ if (!r.ok || !r.body) throw Error(`next/stream failed: ${r.status}`);
1859
+ let i;
1860
+ for await (let e of Fn(r.body)) {
1861
+ let t = JSON.parse(e.data);
1862
+ switch (t.type) {
1863
+ case "RUN_ERROR":
1864
+ var a;
1865
+ throw Error((a = t.message) == null ? "next/stream error" : a);
1866
+ case "STATE_SNAPSHOT":
1867
+ var o, s;
1868
+ (o = t.snapshot) != null && o.question && ((s = n.onMeta) == null || s.call(n, Rn(t.snapshot.question)));
1869
+ break;
1870
+ case "TEXT_MESSAGE_CONTENT":
1871
+ var c;
1872
+ t.delta && n.onDelta(t.delta, (c = t.messageId) == null ? "" : c);
1873
+ break;
1874
+ case "RUN_FINISHED":
1875
+ i = t.result;
1876
+ break;
1877
+ }
1878
+ if (i) break;
1879
+ }
1880
+ if (!i) throw Error("next/stream ended without a RUN_FINISHED frame");
1881
+ return i.fiToken && (this.fiToken = i.fiToken), i;
1882
+ }
1883
+ async editAnswer(e, t) {
1884
+ return (await this.http.post(`${this.baseUrl}/${e}/edit-answer`, { editAnswerInput: t }, { headers: this.fiTokenHeaders() })).data;
1885
+ }
1886
+ async extractHumanName(e, t) {
1887
+ return (await this.http.post(`${this.baseUrl}/${e}/extract-human-name`, {
1888
+ userText: t.userText,
1889
+ extractTypes: [t.extractType]
1890
+ })).data;
1891
+ }
1892
+ async getVideoUploadUrl(e, t, n) {
1893
+ return (await this.http.get(`${this.baseUrl}/${e}/questions/${t}/video-upload-signed-url`, {
1894
+ params: { extension: n },
1895
+ headers: this.fiTokenHeaders()
1896
+ })).data;
1897
+ }
1898
+ async uploadVideo(e, t, n, r) {
1899
+ await this.putImpl(e, t, {
1900
+ headers: { "Content-Type": `video/${n}` },
1901
+ onUploadProgress: (e) => {
1902
+ r && e.total && r(e.loaded / e.total);
1903
+ }
1904
+ });
1905
+ }
1906
+ async getVideoAccessUrl(e, t, n) {
1907
+ return (await this.http.get(`${this.baseUrl}/${e}/questions/${t}/video-access-signed-url`, {
1908
+ params: { extension: n },
1909
+ headers: this.fiTokenHeaders()
1910
+ })).data;
1911
+ }
1912
+ async detectAgc(e) {
1913
+ return (await this.http.post(`${this.baseUrl}/${e}/detect-agc`, {}, { headers: this.fiTokenHeaders() })).data;
1914
+ }
1915
+ async getAccessManagement(e) {
1916
+ return (await this.http.get(`${this.baseUrl}/${e}/access-management`)).data;
1917
+ }
1918
+ async verifyAccess(e, t) {
1919
+ return (await this.http.post(`${this.baseUrl}/${e}/verify-access`, { candidateEmail: t })).data;
1920
+ }
1921
+ async getTranslation(e) {
1922
+ return (await this.http.get(`${this.baseUrl}/translation/${e}`)).data;
1923
+ }
1924
+ }, Rn = (e) => {
1925
+ var t;
1926
+ return {
1927
+ _id: e._id,
1928
+ masterId: e.masterId,
1929
+ types: e.questionTypes,
1930
+ rules: e.rules,
1931
+ options: e.options,
1932
+ tags: e.tags,
1933
+ usageWhitelist: e.usageWhitelist,
1934
+ kind: e.kind,
1935
+ contents: ((t = e.contents) == null ? [] : t).map((e) => ({
1936
+ value: "",
1937
+ types: e.types,
1938
+ component: e.component
1939
+ }))
1940
+ };
1941
+ }, zn = /* @__PURE__ */ function(e) {
1942
+ return e.MAX_TEXT_LENGTH = "maxTextLength", e.MIN_TEXT_LENGTH = "minTextLength", e.RECOMMENDED_TEXT_LENGTH = "recommendedTextLength", e.MAX_VOICE_SECONDS = "maxVoiceSeconds", e.MIN_VOICE_SECONDS = "minVoiceSeconds", e.RECOMMENDED_VOICE_SECONDS = "recommendedVoiceSeconds", e;
1943
+ }({}), Bn = /* @__PURE__ */ function(e) {
1944
+ return e.AGENT = "AGENT", e.CANDIDATE = "CANDIDATE", e;
1945
+ }({}), Vn = /* @__PURE__ */ function(e) {
1946
+ return e.HINT = "HINT", e.FTQ = "FTQ", e.MCQ = "MCQ", e.VOICE = "VOICE", e.VIDEO = "VIDEO", e.SLIDER = "SLIDER", e.DROPDOWN = "DROPDOWN", e.BGQ = "BUTTON_GROUP_QUESTION", e;
1947
+ }({}), Hn = /* @__PURE__ */ function(e) {
1948
+ return e.TEXT = "TEXT", e.VOICE = "VOICE", e.VIDEO = "VIDEO", e.SLIDER = "SLIDER", e;
1949
+ }({}), Un = /* @__PURE__ */ function(e) {
1950
+ return e.GENERAL_PY = "GENERAL_PY", e.CUSTOMER_SATISFACTION = "CUSTOMER_SATISFACTION", e.PII = "PII", e.SENSITIVE = "SENSITIVE", e.DISPLAY_IN_TI = "DISPLAY_IN_TI", e.HEXACO_PERSONALITY_TEST = "HEXACO_PERSONALITY_TEST", e;
1951
+ }({}), Wn = /* @__PURE__ */ function(e) {
1952
+ return e.FULL_NAME = "fullName", e.FIRST_NAME = "first_name", e.LAST_NAME = "last_name", e.EMAIL = "email", e.PHONE_NUMBER = "phoneNumber", e.LOCATION = "location", e;
1953
+ }({}), Gn = /* @__PURE__ */ function(e) {
1954
+ return e.TEST_CAMERA = "test_camera", e;
1955
+ }({}), Kn = /* @__PURE__ */ function(e) {
1956
+ return e.PRIMARY = "PRIMARY", e.SECONDARY = "SECONDARY", e.DEFAULT = "DEFAULT", e;
1957
+ }({}), qn = /* @__PURE__ */ function(e) {
1958
+ return e.FI_ATS_ASSESSMENT_ORDER_COMPLETED = "FI_ATS_ASSESSMENT_ORDER_COMPLETED", e.FI_ASSESSMENT_STARTED = "FI_ASSESSMENT_STARTED", e.FI_ASSESSMENT_PII_SAVED = "FI_ASSESSMENT_PII_SAVED", e.FI_ASSESSMENT_PII_COMPLETED = "FI_ASSESSMENT_PII_COMPLETED", e.FI_ASSESSMENT_INPROGRESS = "FI_ASSESSMENT_INPROGRESS", e.FI_ASSESSMENT_COMPLETED = "FI_ASSESSMENT_COMPLETED", e.FI_ASSESSMENT_ENDED = "FI_ASSESSMENT_ENDED", e.FI_ASSESSMENT_DROPPED_OUT = "FI_ASSESSMENT_DROPPED_OUT", e.FI_PREDICTION_STARTED = "FI_PREDICTION_STARTED", e.FI_PREDICTION_COMPLETED = "FI_PREDICTION_COMPLETED", e.FI_ASSESSMENT_DUPLICATED = "FI_ASSESSMENT_DUPLICATED", e;
1959
+ }({});
1960
+ //#endregion
1961
+ export { Mn as _, Un as a, l as b, zn as c, An as d, kn as f, Nn as g, On as h, Bn as i, Gn as l, Dn as m, Kn as n, Wn as o, jn as p, Hn as r, Vn as s, qn as t, Ln as u, o as v, s as y };
1962
+
1963
+ //# sourceMappingURL=messages-Czlp86gl.js.map