react-aichatbot-widget 1.4.5 → 1.4.7
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/README.md +1 -2
- package/dist/index.cjs +6 -6
- package/dist/index.js +362 -370
- package/package.json +2 -3
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as L, useRef as
|
|
3
|
-
import { Minus as Ct, MessageCircle as
|
|
4
|
-
import
|
|
5
|
-
const
|
|
1
|
+
import { jsxs as T, jsx as y, Fragment as Ee } from "react/jsx-runtime";
|
|
2
|
+
import { useState as L, useRef as Et, useEffect as Rt } from "react";
|
|
3
|
+
import { Minus as Ct, MessageCircle as Ke, Send as Xe, Bot as Pe, Minimize2 as Tt, Maximize2 as Ot, X as At } from "lucide-react";
|
|
4
|
+
import "uuid";
|
|
5
|
+
const kt = ({ onMinimise: e, isOpen: t, theme: n, chatBotData: r }) => {
|
|
6
6
|
const o = r.position === "left", l = {
|
|
7
7
|
position: "fixed",
|
|
8
8
|
bottom: "32px",
|
|
@@ -26,7 +26,7 @@ const Ft = ({ onMinimise: e, isOpen: t, theme: n, chatBotData: r }) => {
|
|
|
26
26
|
transform: "scale(1.10)",
|
|
27
27
|
boxShadow: "0 25px 35px -5px rgba(0,0,0,0.2)"
|
|
28
28
|
};
|
|
29
|
-
return /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ T(
|
|
30
30
|
"button",
|
|
31
31
|
{
|
|
32
32
|
onClick: e,
|
|
@@ -36,7 +36,7 @@ const Ft = ({ onMinimise: e, isOpen: t, theme: n, chatBotData: r }) => {
|
|
|
36
36
|
onFocus: (c) => Object.assign(c.currentTarget.style, p),
|
|
37
37
|
onBlur: (c) => Object.keys(p).forEach((u) => c.currentTarget.style[u] = l[u] || ""),
|
|
38
38
|
children: [
|
|
39
|
-
t ? /* @__PURE__ */ y(Ct, { size: 20, strokeWidth: 2.5 }) : /* @__PURE__ */ y(
|
|
39
|
+
t ? /* @__PURE__ */ y(Ct, { size: 20, strokeWidth: 2.5 }) : /* @__PURE__ */ y(Ke, { size: 20, strokeWidth: 2.5 }),
|
|
40
40
|
!t && /* @__PURE__ */ y("span", { style: {
|
|
41
41
|
position: "absolute",
|
|
42
42
|
top: "-4px",
|
|
@@ -64,7 +64,7 @@ const Ft = ({ onMinimise: e, isOpen: t, theme: n, chatBotData: r }) => {
|
|
|
64
64
|
]
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
|
-
},
|
|
67
|
+
}, Ft = ({ onSendMessage: e, isLoading: t, theme: n }) => {
|
|
68
68
|
const [r, o] = L(""), i = () => {
|
|
69
69
|
!r.trim() || t || (e(r.trim()), o(""));
|
|
70
70
|
}, s = (u) => {
|
|
@@ -109,7 +109,7 @@ const Ft = ({ onMinimise: e, isOpen: t, theme: n, chatBotData: r }) => {
|
|
|
109
109
|
transition: "all 0.2s ease",
|
|
110
110
|
minWidth: "48px"
|
|
111
111
|
};
|
|
112
|
-
return /* @__PURE__ */ y("div", { style: l, children: /* @__PURE__ */
|
|
112
|
+
return /* @__PURE__ */ y("div", { style: l, children: /* @__PURE__ */ T("div", { style: p, children: [
|
|
113
113
|
/* @__PURE__ */ y(
|
|
114
114
|
"input",
|
|
115
115
|
{
|
|
@@ -141,12 +141,12 @@ const Ft = ({ onMinimise: e, isOpen: t, theme: n, chatBotData: r }) => {
|
|
|
141
141
|
onMouseLeave: (u) => {
|
|
142
142
|
u.currentTarget.style.transform = "translateY(0)", u.currentTarget.style.boxShadow = "none";
|
|
143
143
|
},
|
|
144
|
-
children: /* @__PURE__ */ y(
|
|
144
|
+
children: /* @__PURE__ */ y(Xe, { size: 18 })
|
|
145
145
|
}
|
|
146
146
|
)
|
|
147
147
|
] }) });
|
|
148
|
-
},
|
|
149
|
-
const r =
|
|
148
|
+
}, Nt = ({ messages: e, isLoading: t, theme: n }) => {
|
|
149
|
+
const r = Et(null), o = () => {
|
|
150
150
|
r.current?.scrollIntoView({ behavior: "smooth" });
|
|
151
151
|
};
|
|
152
152
|
function i(u) {
|
|
@@ -158,7 +158,7 @@ const Ft = ({ onMinimise: e, isOpen: t, theme: n, chatBotData: r }) => {
|
|
|
158
158
|
minute: "2-digit"
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
|
-
|
|
161
|
+
Rt(() => {
|
|
162
162
|
o();
|
|
163
163
|
}, [e, t]);
|
|
164
164
|
const s = {
|
|
@@ -194,9 +194,9 @@ const Ft = ({ onMinimise: e, isOpen: t, theme: n, chatBotData: r }) => {
|
|
|
194
194
|
animation: "fadeIn 0.3s ease-in-out, pulse 1.5s ease-in-out infinite",
|
|
195
195
|
animationDelay: "0s, 0.3s"
|
|
196
196
|
};
|
|
197
|
-
return /* @__PURE__ */
|
|
198
|
-
e.map((u, g) => /* @__PURE__ */ y("div", { style: l(u.type), children: /* @__PURE__ */
|
|
199
|
-
u.type === "bot" && /* @__PURE__ */
|
|
197
|
+
return /* @__PURE__ */ T("div", { style: s, children: [
|
|
198
|
+
e.map((u, g) => /* @__PURE__ */ y("div", { style: l(u.type), children: /* @__PURE__ */ T("div", { style: p, children: [
|
|
199
|
+
u.type === "bot" && /* @__PURE__ */ T("div", { style: { display: "flex", alignItems: "center", gap: "4px", justifyContent: "flex-start", marginLeft: "4px", marginBottom: "2px" }, children: [
|
|
200
200
|
/* @__PURE__ */ y(Pe, { size: 14, color: n.fontColor }),
|
|
201
201
|
/* @__PURE__ */ y(
|
|
202
202
|
"span",
|
|
@@ -223,7 +223,7 @@ const Ft = ({ onMinimise: e, isOpen: t, theme: n, chatBotData: r }) => {
|
|
|
223
223
|
) }),
|
|
224
224
|
/* @__PURE__ */ y("div", { style: d(u.type), children: u.text })
|
|
225
225
|
] }) }, g)),
|
|
226
|
-
t && /* @__PURE__ */ y("div", { style: l("bot"), children: /* @__PURE__ */
|
|
226
|
+
t && /* @__PURE__ */ y("div", { style: l("bot"), children: /* @__PURE__ */ T("div", { style: {
|
|
227
227
|
typingBubbleStyle: c,
|
|
228
228
|
display: "flex",
|
|
229
229
|
alignItems: "center",
|
|
@@ -235,29 +235,29 @@ const Ft = ({ onMinimise: e, isOpen: t, theme: n, chatBotData: r }) => {
|
|
|
235
235
|
/* @__PURE__ */ y("div", { ref: r })
|
|
236
236
|
] });
|
|
237
237
|
};
|
|
238
|
-
function
|
|
238
|
+
function Ye(e, t) {
|
|
239
239
|
return function() {
|
|
240
240
|
return e.apply(t, arguments);
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
|
-
const { toString:
|
|
244
|
-
const n =
|
|
243
|
+
const { toString: Pt } = Object.prototype, { getPrototypeOf: Re } = Object, { iterator: ce, toStringTag: Ge } = Symbol, ue = /* @__PURE__ */ ((e) => (t) => {
|
|
244
|
+
const n = Pt.call(t);
|
|
245
245
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
246
246
|
})(/* @__PURE__ */ Object.create(null)), B = (e) => (e = e.toLowerCase(), (t) => ue(t) === e), de = (e) => (t) => typeof t === e, { isArray: K } = Array, V = de("undefined");
|
|
247
247
|
function Z(e) {
|
|
248
248
|
return e !== null && !V(e) && e.constructor !== null && !V(e.constructor) && P(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
249
249
|
}
|
|
250
|
-
const
|
|
251
|
-
function
|
|
250
|
+
const Qe = B("ArrayBuffer");
|
|
251
|
+
function _t(e) {
|
|
252
252
|
let t;
|
|
253
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
253
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Qe(e.buffer), t;
|
|
254
254
|
}
|
|
255
|
-
const
|
|
255
|
+
const Ut = de("string"), P = de("function"), Ze = de("number"), ee = (e) => e !== null && typeof e == "object", Lt = (e) => e === !0 || e === !1, se = (e) => {
|
|
256
256
|
if (ue(e) !== "object")
|
|
257
257
|
return !1;
|
|
258
258
|
const t = Re(e);
|
|
259
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
260
|
-
},
|
|
259
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ge in e) && !(ce in e);
|
|
260
|
+
}, Bt = (e) => {
|
|
261
261
|
if (!ee(e) || Z(e))
|
|
262
262
|
return !1;
|
|
263
263
|
try {
|
|
@@ -265,11 +265,11 @@ const Lt = de("string"), P = de("function"), et = de("number"), ee = (e) => e !=
|
|
|
265
265
|
} catch {
|
|
266
266
|
return !1;
|
|
267
267
|
}
|
|
268
|
-
},
|
|
268
|
+
}, Dt = B("Date"), jt = B("File"), It = B("Blob"), vt = B("FileList"), Mt = (e) => ee(e) && P(e.pipe), zt = (e) => {
|
|
269
269
|
let t;
|
|
270
270
|
return e && (typeof FormData == "function" && e instanceof FormData || P(e.append) && ((t = ue(e)) === "formdata" || // detect form-data instance
|
|
271
271
|
t === "object" && P(e.toString) && e.toString() === "[object FormData]"));
|
|
272
|
-
},
|
|
272
|
+
}, qt = B("URLSearchParams"), [Ht, $t, Wt, Jt] = ["ReadableStream", "Request", "Response", "Headers"].map(B), Vt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
273
273
|
function te(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
274
274
|
if (e === null || typeof e > "u")
|
|
275
275
|
return;
|
|
@@ -286,7 +286,7 @@ function te(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
286
286
|
l = i[r], t.call(null, e[l], l, e);
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function et(e, t) {
|
|
290
290
|
if (Z(e))
|
|
291
291
|
return null;
|
|
292
292
|
t = t.toLowerCase();
|
|
@@ -297,23 +297,23 @@ function tt(e, t) {
|
|
|
297
297
|
return o;
|
|
298
298
|
return null;
|
|
299
299
|
}
|
|
300
|
-
const q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
300
|
+
const q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, tt = (e) => !V(e) && e !== q;
|
|
301
301
|
function ge() {
|
|
302
|
-
const { caseless: e, skipUndefined: t } =
|
|
303
|
-
const s = e &&
|
|
302
|
+
const { caseless: e, skipUndefined: t } = tt(this) && this || {}, n = {}, r = (o, i) => {
|
|
303
|
+
const s = e && et(n, i) || i;
|
|
304
304
|
se(n[s]) && se(o) ? n[s] = ge(n[s], o) : se(o) ? n[s] = ge({}, o) : K(o) ? n[s] = o.slice() : (!t || !V(o)) && (n[s] = o);
|
|
305
305
|
};
|
|
306
306
|
for (let o = 0, i = arguments.length; o < i; o++)
|
|
307
307
|
arguments[o] && te(arguments[o], r);
|
|
308
308
|
return n;
|
|
309
309
|
}
|
|
310
|
-
const
|
|
311
|
-
n && P(o) ? e[i] =
|
|
312
|
-
}, { allOwnKeys: r }), e),
|
|
310
|
+
const Kt = (e, t, n, { allOwnKeys: r } = {}) => (te(t, (o, i) => {
|
|
311
|
+
n && P(o) ? e[i] = Ye(o, n) : e[i] = o;
|
|
312
|
+
}, { allOwnKeys: r }), e), Xt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Yt = (e, t, n, r) => {
|
|
313
313
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
314
314
|
value: t.prototype
|
|
315
315
|
}), n && Object.assign(e.prototype, n);
|
|
316
|
-
},
|
|
316
|
+
}, Gt = (e, t, n, r) => {
|
|
317
317
|
let o, i, s;
|
|
318
318
|
const l = {};
|
|
319
319
|
if (t = t || {}, e == null) return t;
|
|
@@ -323,45 +323,45 @@ const Xt = (e, t, n, { allOwnKeys: r } = {}) => (te(t, (o, i) => {
|
|
|
323
323
|
e = n !== !1 && Re(e);
|
|
324
324
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
325
325
|
return t;
|
|
326
|
-
},
|
|
326
|
+
}, Qt = (e, t, n) => {
|
|
327
327
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
328
328
|
const r = e.indexOf(t, n);
|
|
329
329
|
return r !== -1 && r === n;
|
|
330
|
-
},
|
|
330
|
+
}, Zt = (e) => {
|
|
331
331
|
if (!e) return null;
|
|
332
332
|
if (K(e)) return e;
|
|
333
333
|
let t = e.length;
|
|
334
|
-
if (!
|
|
334
|
+
if (!Ze(t)) return null;
|
|
335
335
|
const n = new Array(t);
|
|
336
336
|
for (; t-- > 0; )
|
|
337
337
|
n[t] = e[t];
|
|
338
338
|
return n;
|
|
339
|
-
},
|
|
339
|
+
}, en = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Re(Uint8Array)), tn = (e, t) => {
|
|
340
340
|
const r = (e && e[ce]).call(e);
|
|
341
341
|
let o;
|
|
342
342
|
for (; (o = r.next()) && !o.done; ) {
|
|
343
343
|
const i = o.value;
|
|
344
344
|
t.call(e, i[0], i[1]);
|
|
345
345
|
}
|
|
346
|
-
},
|
|
346
|
+
}, nn = (e, t) => {
|
|
347
347
|
let n;
|
|
348
348
|
const r = [];
|
|
349
349
|
for (; (n = e.exec(t)) !== null; )
|
|
350
350
|
r.push(n);
|
|
351
351
|
return r;
|
|
352
|
-
},
|
|
352
|
+
}, rn = B("HTMLFormElement"), on = (e) => e.toLowerCase().replace(
|
|
353
353
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
354
354
|
function(n, r, o) {
|
|
355
355
|
return r.toUpperCase() + o;
|
|
356
356
|
}
|
|
357
|
-
), _e = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype),
|
|
357
|
+
), _e = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), sn = B("RegExp"), nt = (e, t) => {
|
|
358
358
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
359
359
|
te(n, (o, i) => {
|
|
360
360
|
let s;
|
|
361
361
|
(s = t(o, i, e)) !== !1 && (r[i] = s || o);
|
|
362
362
|
}), Object.defineProperties(e, r);
|
|
363
|
-
},
|
|
364
|
-
|
|
363
|
+
}, an = (e) => {
|
|
364
|
+
nt(e, (t, n) => {
|
|
365
365
|
if (P(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
366
366
|
return !1;
|
|
367
367
|
const r = e[n];
|
|
@@ -375,19 +375,19 @@ const Xt = (e, t, n, { allOwnKeys: r } = {}) => (te(t, (o, i) => {
|
|
|
375
375
|
});
|
|
376
376
|
}
|
|
377
377
|
});
|
|
378
|
-
},
|
|
378
|
+
}, ln = (e, t) => {
|
|
379
379
|
const n = {}, r = (o) => {
|
|
380
380
|
o.forEach((i) => {
|
|
381
381
|
n[i] = !0;
|
|
382
382
|
});
|
|
383
383
|
};
|
|
384
384
|
return K(e) ? r(e) : r(String(e).split(t)), n;
|
|
385
|
-
},
|
|
386
|
-
},
|
|
387
|
-
function
|
|
388
|
-
return !!(e && P(e.append) && e[
|
|
385
|
+
}, cn = () => {
|
|
386
|
+
}, un = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
387
|
+
function dn(e) {
|
|
388
|
+
return !!(e && P(e.append) && e[Ge] === "FormData" && e[ce]);
|
|
389
389
|
}
|
|
390
|
-
const
|
|
390
|
+
const fn = (e) => {
|
|
391
391
|
const t = new Array(10), n = (r, o) => {
|
|
392
392
|
if (ee(r)) {
|
|
393
393
|
if (t.indexOf(r) >= 0)
|
|
@@ -406,72 +406,72 @@ const pn = (e) => {
|
|
|
406
406
|
return r;
|
|
407
407
|
};
|
|
408
408
|
return n(e, 0);
|
|
409
|
-
},
|
|
409
|
+
}, pn = B("AsyncFunction"), hn = (e) => e && (ee(e) || P(e)) && P(e.then) && P(e.catch), rt = ((e, t) => e ? setImmediate : t ? ((n, r) => (q.addEventListener("message", ({ source: o, data: i }) => {
|
|
410
410
|
o === q && i === n && r.length && r.shift()();
|
|
411
411
|
}, !1), (o) => {
|
|
412
412
|
r.push(o), q.postMessage(n, "*");
|
|
413
413
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
414
414
|
typeof setImmediate == "function",
|
|
415
415
|
P(q.postMessage)
|
|
416
|
-
),
|
|
416
|
+
), mn = typeof queueMicrotask < "u" ? queueMicrotask.bind(q) : typeof process < "u" && process.nextTick || rt, yn = (e) => e != null && P(e[ce]), a = {
|
|
417
417
|
isArray: K,
|
|
418
|
-
isArrayBuffer:
|
|
418
|
+
isArrayBuffer: Qe,
|
|
419
419
|
isBuffer: Z,
|
|
420
|
-
isFormData:
|
|
421
|
-
isArrayBufferView:
|
|
422
|
-
isString:
|
|
423
|
-
isNumber:
|
|
424
|
-
isBoolean:
|
|
420
|
+
isFormData: zt,
|
|
421
|
+
isArrayBufferView: _t,
|
|
422
|
+
isString: Ut,
|
|
423
|
+
isNumber: Ze,
|
|
424
|
+
isBoolean: Lt,
|
|
425
425
|
isObject: ee,
|
|
426
426
|
isPlainObject: se,
|
|
427
|
-
isEmptyObject:
|
|
428
|
-
isReadableStream:
|
|
429
|
-
isRequest:
|
|
430
|
-
isResponse:
|
|
431
|
-
isHeaders:
|
|
427
|
+
isEmptyObject: Bt,
|
|
428
|
+
isReadableStream: Ht,
|
|
429
|
+
isRequest: $t,
|
|
430
|
+
isResponse: Wt,
|
|
431
|
+
isHeaders: Jt,
|
|
432
432
|
isUndefined: V,
|
|
433
|
-
isDate:
|
|
434
|
-
isFile:
|
|
435
|
-
isBlob:
|
|
436
|
-
isRegExp:
|
|
433
|
+
isDate: Dt,
|
|
434
|
+
isFile: jt,
|
|
435
|
+
isBlob: It,
|
|
436
|
+
isRegExp: sn,
|
|
437
437
|
isFunction: P,
|
|
438
|
-
isStream:
|
|
439
|
-
isURLSearchParams:
|
|
440
|
-
isTypedArray:
|
|
441
|
-
isFileList:
|
|
438
|
+
isStream: Mt,
|
|
439
|
+
isURLSearchParams: qt,
|
|
440
|
+
isTypedArray: en,
|
|
441
|
+
isFileList: vt,
|
|
442
442
|
forEach: te,
|
|
443
443
|
merge: ge,
|
|
444
|
-
extend:
|
|
445
|
-
trim:
|
|
446
|
-
stripBOM:
|
|
447
|
-
inherits:
|
|
448
|
-
toFlatObject:
|
|
444
|
+
extend: Kt,
|
|
445
|
+
trim: Vt,
|
|
446
|
+
stripBOM: Xt,
|
|
447
|
+
inherits: Yt,
|
|
448
|
+
toFlatObject: Gt,
|
|
449
449
|
kindOf: ue,
|
|
450
450
|
kindOfTest: B,
|
|
451
|
-
endsWith:
|
|
452
|
-
toArray:
|
|
453
|
-
forEachEntry:
|
|
454
|
-
matchAll:
|
|
455
|
-
isHTMLForm:
|
|
451
|
+
endsWith: Qt,
|
|
452
|
+
toArray: Zt,
|
|
453
|
+
forEachEntry: tn,
|
|
454
|
+
matchAll: nn,
|
|
455
|
+
isHTMLForm: rn,
|
|
456
456
|
hasOwnProperty: _e,
|
|
457
457
|
hasOwnProp: _e,
|
|
458
458
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
459
|
-
reduceDescriptors:
|
|
460
|
-
freezeMethods:
|
|
461
|
-
toObjectSet:
|
|
462
|
-
toCamelCase:
|
|
463
|
-
noop:
|
|
464
|
-
toFiniteNumber:
|
|
465
|
-
findKey:
|
|
459
|
+
reduceDescriptors: nt,
|
|
460
|
+
freezeMethods: an,
|
|
461
|
+
toObjectSet: ln,
|
|
462
|
+
toCamelCase: on,
|
|
463
|
+
noop: cn,
|
|
464
|
+
toFiniteNumber: un,
|
|
465
|
+
findKey: et,
|
|
466
466
|
global: q,
|
|
467
|
-
isContextDefined:
|
|
468
|
-
isSpecCompliantForm:
|
|
469
|
-
toJSONObject:
|
|
470
|
-
isAsyncFn:
|
|
471
|
-
isThenable:
|
|
472
|
-
setImmediate:
|
|
473
|
-
asap:
|
|
474
|
-
isIterable:
|
|
467
|
+
isContextDefined: tt,
|
|
468
|
+
isSpecCompliantForm: dn,
|
|
469
|
+
toJSONObject: fn,
|
|
470
|
+
isAsyncFn: pn,
|
|
471
|
+
isThenable: hn,
|
|
472
|
+
setImmediate: rt,
|
|
473
|
+
asap: mn,
|
|
474
|
+
isIterable: yn
|
|
475
475
|
};
|
|
476
476
|
function b(e, t, n, r, o) {
|
|
477
477
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
@@ -497,7 +497,7 @@ a.inherits(b, Error, {
|
|
|
497
497
|
};
|
|
498
498
|
}
|
|
499
499
|
});
|
|
500
|
-
const
|
|
500
|
+
const ot = b.prototype, st = {};
|
|
501
501
|
[
|
|
502
502
|
"ERR_BAD_OPTION_VALUE",
|
|
503
503
|
"ERR_BAD_OPTION",
|
|
@@ -513,34 +513,34 @@ const st = b.prototype, it = {};
|
|
|
513
513
|
"ERR_INVALID_URL"
|
|
514
514
|
// eslint-disable-next-line func-names
|
|
515
515
|
].forEach((e) => {
|
|
516
|
-
|
|
516
|
+
st[e] = { value: e };
|
|
517
517
|
});
|
|
518
|
-
Object.defineProperties(b,
|
|
519
|
-
Object.defineProperty(
|
|
518
|
+
Object.defineProperties(b, st);
|
|
519
|
+
Object.defineProperty(ot, "isAxiosError", { value: !0 });
|
|
520
520
|
b.from = (e, t, n, r, o, i) => {
|
|
521
|
-
const s = Object.create(
|
|
521
|
+
const s = Object.create(ot);
|
|
522
522
|
a.toFlatObject(e, s, function(c) {
|
|
523
523
|
return c !== Error.prototype;
|
|
524
524
|
}, (d) => d !== "isAxiosError");
|
|
525
525
|
const l = e && e.message ? e.message : "Error", p = t == null && e ? e.code : t;
|
|
526
526
|
return b.call(s, l, p, n, r, o), e && s.cause == null && Object.defineProperty(s, "cause", { value: e, configurable: !0 }), s.name = e && e.name || "Error", i && Object.assign(s, i), s;
|
|
527
527
|
};
|
|
528
|
-
const
|
|
528
|
+
const bn = null;
|
|
529
529
|
function xe(e) {
|
|
530
530
|
return a.isPlainObject(e) || a.isArray(e);
|
|
531
531
|
}
|
|
532
|
-
function
|
|
532
|
+
function it(e) {
|
|
533
533
|
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
534
534
|
}
|
|
535
535
|
function Ue(e, t, n) {
|
|
536
536
|
return e ? e.concat(t).map(function(o, i) {
|
|
537
|
-
return o =
|
|
537
|
+
return o = it(o), !n && i ? "[" + o + "]" : o;
|
|
538
538
|
}).join(n ? "." : "") : t;
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function gn(e) {
|
|
541
541
|
return a.isArray(e) && !e.some(xe);
|
|
542
542
|
}
|
|
543
|
-
const
|
|
543
|
+
const xn = a.toFlatObject(a, {}, null, function(t) {
|
|
544
544
|
return /^is[A-Z]/.test(t);
|
|
545
545
|
});
|
|
546
546
|
function fe(e, t, n) {
|
|
@@ -571,23 +571,23 @@ function fe(e, t, n) {
|
|
|
571
571
|
if (f && !h && typeof f == "object") {
|
|
572
572
|
if (a.endsWith(m, "{}"))
|
|
573
573
|
m = r ? m : m.slice(0, -2), f = JSON.stringify(f);
|
|
574
|
-
else if (a.isArray(f) &&
|
|
575
|
-
return m =
|
|
574
|
+
else if (a.isArray(f) && gn(f) || (a.isFileList(f) || a.endsWith(m, "[]")) && (w = a.toArray(f)))
|
|
575
|
+
return m = it(m), w.forEach(function(x, A) {
|
|
576
576
|
!(a.isUndefined(x) || x === null) && t.append(
|
|
577
577
|
// eslint-disable-next-line no-nested-ternary
|
|
578
|
-
s === !0 ? Ue([m],
|
|
578
|
+
s === !0 ? Ue([m], A, i) : s === null ? m : m + "[]",
|
|
579
579
|
d(x)
|
|
580
580
|
);
|
|
581
581
|
}), !1;
|
|
582
582
|
}
|
|
583
583
|
return xe(f) ? !0 : (t.append(Ue(h, m, i), d(f)), !1);
|
|
584
584
|
}
|
|
585
|
-
const u = [], g = Object.assign(
|
|
585
|
+
const u = [], g = Object.assign(xn, {
|
|
586
586
|
defaultVisitor: c,
|
|
587
587
|
convertValue: d,
|
|
588
588
|
isVisitable: xe
|
|
589
589
|
});
|
|
590
|
-
function
|
|
590
|
+
function E(f, m) {
|
|
591
591
|
if (!a.isUndefined(f)) {
|
|
592
592
|
if (u.indexOf(f) !== -1)
|
|
593
593
|
throw Error("Circular reference detected in " + m.join("."));
|
|
@@ -598,13 +598,13 @@ function fe(e, t, n) {
|
|
|
598
598
|
a.isString(C) ? C.trim() : C,
|
|
599
599
|
m,
|
|
600
600
|
g
|
|
601
|
-
)) === !0 &&
|
|
601
|
+
)) === !0 && E(w, m ? m.concat(C) : [C]);
|
|
602
602
|
}), u.pop();
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
if (!a.isObject(e))
|
|
606
606
|
throw new TypeError("data must be an object");
|
|
607
|
-
return
|
|
607
|
+
return E(e), t;
|
|
608
608
|
}
|
|
609
609
|
function Le(e) {
|
|
610
610
|
const t = {
|
|
@@ -623,11 +623,11 @@ function Le(e) {
|
|
|
623
623
|
function Ce(e, t) {
|
|
624
624
|
this._pairs = [], e && fe(e, this, t);
|
|
625
625
|
}
|
|
626
|
-
const
|
|
627
|
-
|
|
626
|
+
const at = Ce.prototype;
|
|
627
|
+
at.append = function(t, n) {
|
|
628
628
|
this._pairs.push([t, n]);
|
|
629
629
|
};
|
|
630
|
-
|
|
630
|
+
at.toString = function(t) {
|
|
631
631
|
const n = t ? function(r) {
|
|
632
632
|
return t.call(this, r, Le);
|
|
633
633
|
} : Le;
|
|
@@ -635,13 +635,13 @@ lt.toString = function(t) {
|
|
|
635
635
|
return n(o[0]) + "=" + n(o[1]);
|
|
636
636
|
}, "").join("&");
|
|
637
637
|
};
|
|
638
|
-
function
|
|
638
|
+
function wn(e) {
|
|
639
639
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function lt(e, t, n) {
|
|
642
642
|
if (!t)
|
|
643
643
|
return e;
|
|
644
|
-
const r = n && n.encode ||
|
|
644
|
+
const r = n && n.encode || wn;
|
|
645
645
|
a.isFunction(n) && (n = {
|
|
646
646
|
serialize: n
|
|
647
647
|
});
|
|
@@ -707,31 +707,31 @@ class Be {
|
|
|
707
707
|
});
|
|
708
708
|
}
|
|
709
709
|
}
|
|
710
|
-
const
|
|
710
|
+
const ct = {
|
|
711
711
|
silentJSONParsing: !0,
|
|
712
712
|
forcedJSONParsing: !0,
|
|
713
713
|
clarifyTimeoutError: !1
|
|
714
|
-
},
|
|
714
|
+
}, Sn = typeof URLSearchParams < "u" ? URLSearchParams : Ce, En = typeof FormData < "u" ? FormData : null, Rn = typeof Blob < "u" ? Blob : null, Cn = {
|
|
715
715
|
isBrowser: !0,
|
|
716
716
|
classes: {
|
|
717
|
-
URLSearchParams:
|
|
718
|
-
FormData:
|
|
719
|
-
Blob:
|
|
717
|
+
URLSearchParams: Sn,
|
|
718
|
+
FormData: En,
|
|
719
|
+
Blob: Rn
|
|
720
720
|
},
|
|
721
721
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
722
|
-
}, Te = typeof window < "u" && typeof document < "u", we = typeof navigator == "object" && navigator || void 0,
|
|
723
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
722
|
+
}, Te = typeof window < "u" && typeof document < "u", we = typeof navigator == "object" && navigator || void 0, Tn = Te && (!we || ["ReactNative", "NativeScript", "NS"].indexOf(we.product) < 0), On = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
723
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", An = Te && window.location.href || "http://localhost", kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
724
724
|
__proto__: null,
|
|
725
725
|
hasBrowserEnv: Te,
|
|
726
|
-
hasStandardBrowserEnv:
|
|
727
|
-
hasStandardBrowserWebWorkerEnv:
|
|
726
|
+
hasStandardBrowserEnv: Tn,
|
|
727
|
+
hasStandardBrowserWebWorkerEnv: On,
|
|
728
728
|
navigator: we,
|
|
729
|
-
origin:
|
|
729
|
+
origin: An
|
|
730
730
|
}, Symbol.toStringTag, { value: "Module" })), N = {
|
|
731
|
-
...
|
|
732
|
-
...
|
|
731
|
+
...kn,
|
|
732
|
+
...Cn
|
|
733
733
|
};
|
|
734
|
-
function
|
|
734
|
+
function Fn(e, t) {
|
|
735
735
|
return fe(e, new N.classes.URLSearchParams(), {
|
|
736
736
|
visitor: function(n, r, o, i) {
|
|
737
737
|
return N.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
@@ -739,10 +739,10 @@ function Nn(e, t) {
|
|
|
739
739
|
...t
|
|
740
740
|
});
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function Nn(e) {
|
|
743
743
|
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
744
744
|
}
|
|
745
|
-
function
|
|
745
|
+
function Pn(e) {
|
|
746
746
|
const t = {}, n = Object.keys(e);
|
|
747
747
|
let r;
|
|
748
748
|
const o = n.length;
|
|
@@ -751,22 +751,22 @@ function _n(e) {
|
|
|
751
751
|
i = n[r], t[i] = e[i];
|
|
752
752
|
return t;
|
|
753
753
|
}
|
|
754
|
-
function
|
|
754
|
+
function ut(e) {
|
|
755
755
|
function t(n, r, o, i) {
|
|
756
756
|
let s = n[i++];
|
|
757
757
|
if (s === "__proto__") return !0;
|
|
758
758
|
const l = Number.isFinite(+s), p = i >= n.length;
|
|
759
|
-
return s = !s && a.isArray(o) ? o.length : s, p ? (a.hasOwnProp(o, s) ? o[s] = [o[s], r] : o[s] = r, !l) : ((!o[s] || !a.isObject(o[s])) && (o[s] = []), t(n, r, o[s], i) && a.isArray(o[s]) && (o[s] =
|
|
759
|
+
return s = !s && a.isArray(o) ? o.length : s, p ? (a.hasOwnProp(o, s) ? o[s] = [o[s], r] : o[s] = r, !l) : ((!o[s] || !a.isObject(o[s])) && (o[s] = []), t(n, r, o[s], i) && a.isArray(o[s]) && (o[s] = Pn(o[s])), !l);
|
|
760
760
|
}
|
|
761
761
|
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
762
762
|
const n = {};
|
|
763
763
|
return a.forEachEntry(e, (r, o) => {
|
|
764
|
-
t(
|
|
764
|
+
t(Nn(r), o, n, 0);
|
|
765
765
|
}), n;
|
|
766
766
|
}
|
|
767
767
|
return null;
|
|
768
768
|
}
|
|
769
|
-
function
|
|
769
|
+
function _n(e, t, n) {
|
|
770
770
|
if (a.isString(e))
|
|
771
771
|
try {
|
|
772
772
|
return (t || JSON.parse)(e), a.trim(e);
|
|
@@ -777,12 +777,12 @@ function Un(e, t, n) {
|
|
|
777
777
|
return (n || JSON.stringify)(e);
|
|
778
778
|
}
|
|
779
779
|
const ne = {
|
|
780
|
-
transitional:
|
|
780
|
+
transitional: ct,
|
|
781
781
|
adapter: ["xhr", "http", "fetch"],
|
|
782
782
|
transformRequest: [function(t, n) {
|
|
783
783
|
const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, i = a.isObject(t);
|
|
784
784
|
if (i && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
785
|
-
return o ? JSON.stringify(
|
|
785
|
+
return o ? JSON.stringify(ut(t)) : t;
|
|
786
786
|
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
|
|
787
787
|
return t;
|
|
788
788
|
if (a.isArrayBufferView(t))
|
|
@@ -792,7 +792,7 @@ const ne = {
|
|
|
792
792
|
let l;
|
|
793
793
|
if (i) {
|
|
794
794
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
795
|
-
return
|
|
795
|
+
return Fn(t, this.formSerializer).toString();
|
|
796
796
|
if ((l = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
797
797
|
const p = this.env && this.env.FormData;
|
|
798
798
|
return fe(
|
|
@@ -802,7 +802,7 @@ const ne = {
|
|
|
802
802
|
);
|
|
803
803
|
}
|
|
804
804
|
}
|
|
805
|
-
return i || o ? (n.setContentType("application/json", !1),
|
|
805
|
+
return i || o ? (n.setContentType("application/json", !1), _n(t)) : t;
|
|
806
806
|
}],
|
|
807
807
|
transformResponse: [function(t) {
|
|
808
808
|
const n = this.transitional || ne.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
@@ -845,7 +845,7 @@ const ne = {
|
|
|
845
845
|
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
846
846
|
ne.headers[e] = {};
|
|
847
847
|
});
|
|
848
|
-
const
|
|
848
|
+
const Un = a.toObjectSet([
|
|
849
849
|
"age",
|
|
850
850
|
"authorization",
|
|
851
851
|
"content-length",
|
|
@@ -863,12 +863,12 @@ const Ln = a.toObjectSet([
|
|
|
863
863
|
"referer",
|
|
864
864
|
"retry-after",
|
|
865
865
|
"user-agent"
|
|
866
|
-
]),
|
|
866
|
+
]), Ln = (e) => {
|
|
867
867
|
const t = {};
|
|
868
868
|
let n, r, o;
|
|
869
869
|
return e && e.split(`
|
|
870
870
|
`).forEach(function(s) {
|
|
871
|
-
o = s.indexOf(":"), n = s.substring(0, o).trim().toLowerCase(), r = s.substring(o + 1).trim(), !(!n || t[n] &&
|
|
871
|
+
o = s.indexOf(":"), n = s.substring(0, o).trim().toLowerCase(), r = s.substring(o + 1).trim(), !(!n || t[n] && Un[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
872
872
|
}), t;
|
|
873
873
|
}, De = Symbol("internals");
|
|
874
874
|
function Q(e) {
|
|
@@ -877,14 +877,14 @@ function Q(e) {
|
|
|
877
877
|
function ie(e) {
|
|
878
878
|
return e === !1 || e == null ? e : a.isArray(e) ? e.map(ie) : String(e);
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function Bn(e) {
|
|
881
881
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
882
882
|
let r;
|
|
883
883
|
for (; r = n.exec(e); )
|
|
884
884
|
t[r[1]] = r[2];
|
|
885
885
|
return t;
|
|
886
886
|
}
|
|
887
|
-
const
|
|
887
|
+
const Dn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
888
888
|
function me(e, t, n, r, o) {
|
|
889
889
|
if (a.isFunction(r))
|
|
890
890
|
return r.call(this, t, n);
|
|
@@ -895,10 +895,10 @@ function me(e, t, n, r, o) {
|
|
|
895
895
|
return r.test(t);
|
|
896
896
|
}
|
|
897
897
|
}
|
|
898
|
-
function
|
|
898
|
+
function jn(e) {
|
|
899
899
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function In(e, t) {
|
|
902
902
|
const n = a.toCamelCase(" " + t);
|
|
903
903
|
["get", "set", "has"].forEach((r) => {
|
|
904
904
|
Object.defineProperty(e, r + n, {
|
|
@@ -925,8 +925,8 @@ let _ = class {
|
|
|
925
925
|
const s = (l, p) => a.forEach(l, (d, c) => i(d, c, p));
|
|
926
926
|
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
927
927
|
s(t, n);
|
|
928
|
-
else if (a.isString(t) && (t = t.trim()) && !
|
|
929
|
-
s(
|
|
928
|
+
else if (a.isString(t) && (t = t.trim()) && !Dn(t))
|
|
929
|
+
s(Ln(t), n);
|
|
930
930
|
else if (a.isObject(t) && a.isIterable(t)) {
|
|
931
931
|
let l = {}, p, d;
|
|
932
932
|
for (const c of t) {
|
|
@@ -947,7 +947,7 @@ let _ = class {
|
|
|
947
947
|
if (!n)
|
|
948
948
|
return o;
|
|
949
949
|
if (n === !0)
|
|
950
|
-
return
|
|
950
|
+
return Bn(o);
|
|
951
951
|
if (a.isFunction(n))
|
|
952
952
|
return n.call(this, o, r);
|
|
953
953
|
if (a.isRegExp(n))
|
|
@@ -991,7 +991,7 @@ let _ = class {
|
|
|
991
991
|
n[s] = ie(o), delete n[i];
|
|
992
992
|
return;
|
|
993
993
|
}
|
|
994
|
-
const l = t ?
|
|
994
|
+
const l = t ? jn(i) : String(i).trim();
|
|
995
995
|
l !== i && delete n[i], n[l] = ie(o), r[l] = !0;
|
|
996
996
|
}), this;
|
|
997
997
|
}
|
|
@@ -1030,7 +1030,7 @@ let _ = class {
|
|
|
1030
1030
|
}).accessors, o = this.prototype;
|
|
1031
1031
|
function i(s) {
|
|
1032
1032
|
const l = Q(s);
|
|
1033
|
-
r[l] || (
|
|
1033
|
+
r[l] || (In(o, s), r[l] = !0);
|
|
1034
1034
|
}
|
|
1035
1035
|
return a.isArray(t) ? t.forEach(i) : i(t), this;
|
|
1036
1036
|
}
|
|
@@ -1053,7 +1053,7 @@ function ye(e, t) {
|
|
|
1053
1053
|
i = l.call(n, i, o.normalize(), t ? t.status : void 0);
|
|
1054
1054
|
}), o.normalize(), i;
|
|
1055
1055
|
}
|
|
1056
|
-
function
|
|
1056
|
+
function dt(e) {
|
|
1057
1057
|
return !!(e && e.__CANCEL__);
|
|
1058
1058
|
}
|
|
1059
1059
|
function X(e, t, n) {
|
|
@@ -1062,7 +1062,7 @@ function X(e, t, n) {
|
|
|
1062
1062
|
a.inherits(X, b, {
|
|
1063
1063
|
__CANCEL__: !0
|
|
1064
1064
|
});
|
|
1065
|
-
function
|
|
1065
|
+
function ft(e, t, n) {
|
|
1066
1066
|
const r = n.config.validateStatus;
|
|
1067
1067
|
!n.status || !r || r(n.status) ? e(n) : t(new b(
|
|
1068
1068
|
"Request failed with status code " + n.status,
|
|
@@ -1072,11 +1072,11 @@ function pt(e, t, n) {
|
|
|
1072
1072
|
n
|
|
1073
1073
|
));
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1075
|
+
function vn(e) {
|
|
1076
1076
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
1077
1077
|
return t && t[1] || "";
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1079
|
+
function Mn(e, t) {
|
|
1080
1080
|
e = e || 10;
|
|
1081
1081
|
const n = new Array(e), r = new Array(e);
|
|
1082
1082
|
let o = 0, i = 0, s;
|
|
@@ -1088,11 +1088,11 @@ function zn(e, t) {
|
|
|
1088
1088
|
g += n[u++], u = u % e;
|
|
1089
1089
|
if (o = (o + 1) % e, o === i && (i = (i + 1) % e), d - s < t)
|
|
1090
1090
|
return;
|
|
1091
|
-
const
|
|
1092
|
-
return
|
|
1091
|
+
const E = c && d - c;
|
|
1092
|
+
return E ? Math.round(g * 1e3 / E) : void 0;
|
|
1093
1093
|
};
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1095
|
+
function zn(e, t) {
|
|
1096
1096
|
let n = 0, r = 1e3 / t, o, i;
|
|
1097
1097
|
const s = (d, c = Date.now()) => {
|
|
1098
1098
|
n = c, o = null, i && (clearTimeout(i), i = null), e(...d);
|
|
@@ -1106,8 +1106,8 @@ function qn(e, t) {
|
|
|
1106
1106
|
}
|
|
1107
1107
|
const le = (e, t, n = 3) => {
|
|
1108
1108
|
let r = 0;
|
|
1109
|
-
const o =
|
|
1110
|
-
return
|
|
1109
|
+
const o = Mn(50, 250);
|
|
1110
|
+
return zn((i) => {
|
|
1111
1111
|
const s = i.loaded, l = i.lengthComputable ? i.total : void 0, p = s - r, d = o(p), c = s <= l;
|
|
1112
1112
|
r = s;
|
|
1113
1113
|
const u = {
|
|
@@ -1130,10 +1130,10 @@ const le = (e, t, n = 3) => {
|
|
|
1130
1130
|
total: e,
|
|
1131
1131
|
loaded: r
|
|
1132
1132
|
}), t[1]];
|
|
1133
|
-
}, Ie = (e) => (...t) => a.asap(() => e(...t)),
|
|
1133
|
+
}, Ie = (e) => (...t) => a.asap(() => e(...t)), qn = N.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, N.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
1134
1134
|
new URL(N.origin),
|
|
1135
1135
|
N.navigator && /(msie|trident)/i.test(N.navigator.userAgent)
|
|
1136
|
-
) : () => !0,
|
|
1136
|
+
) : () => !0, Hn = N.hasStandardBrowserEnv ? (
|
|
1137
1137
|
// Standard browser envs support document.cookie
|
|
1138
1138
|
{
|
|
1139
1139
|
write(e, t, n, r, o, i, s) {
|
|
@@ -1162,15 +1162,15 @@ const le = (e, t, n = 3) => {
|
|
|
1162
1162
|
}
|
|
1163
1163
|
}
|
|
1164
1164
|
);
|
|
1165
|
-
function
|
|
1165
|
+
function $n(e) {
|
|
1166
1166
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
1167
1167
|
}
|
|
1168
|
-
function
|
|
1168
|
+
function Wn(e, t) {
|
|
1169
1169
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
1170
1170
|
}
|
|
1171
|
-
function
|
|
1172
|
-
let r =
|
|
1173
|
-
return e && (r || n == !1) ?
|
|
1171
|
+
function pt(e, t, n) {
|
|
1172
|
+
let r = !$n(t);
|
|
1173
|
+
return e && (r || n == !1) ? Wn(e, t) : t;
|
|
1174
1174
|
}
|
|
1175
1175
|
const ve = (e) => e instanceof _ ? { ...e } : e;
|
|
1176
1176
|
function $(e, t) {
|
|
@@ -1237,10 +1237,10 @@ function $(e, t) {
|
|
|
1237
1237
|
a.isUndefined(g) && u !== l || (n[c] = g);
|
|
1238
1238
|
}), n;
|
|
1239
1239
|
}
|
|
1240
|
-
const
|
|
1240
|
+
const ht = (e) => {
|
|
1241
1241
|
const t = $({}, e);
|
|
1242
1242
|
let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: i, headers: s, auth: l } = t;
|
|
1243
|
-
if (t.headers = s = _.from(s), t.url =
|
|
1243
|
+
if (t.headers = s = _.from(s), t.url = lt(pt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), l && s.set(
|
|
1244
1244
|
"Authorization",
|
|
1245
1245
|
"Basic " + btoa((l.username || "") + ":" + (l.password ? unescape(encodeURIComponent(l.password)) : ""))
|
|
1246
1246
|
), a.isFormData(n)) {
|
|
@@ -1253,19 +1253,19 @@ const mt = (e) => {
|
|
|
1253
1253
|
});
|
|
1254
1254
|
}
|
|
1255
1255
|
}
|
|
1256
|
-
if (N.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 &&
|
|
1257
|
-
const p = o && i &&
|
|
1256
|
+
if (N.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && qn(t.url))) {
|
|
1257
|
+
const p = o && i && Hn.read(i);
|
|
1258
1258
|
p && s.set(o, p);
|
|
1259
1259
|
}
|
|
1260
1260
|
return t;
|
|
1261
|
-
},
|
|
1261
|
+
}, Jn = typeof XMLHttpRequest < "u", Vn = Jn && function(e) {
|
|
1262
1262
|
return new Promise(function(n, r) {
|
|
1263
|
-
const o =
|
|
1263
|
+
const o = ht(e);
|
|
1264
1264
|
let i = o.data;
|
|
1265
1265
|
const s = _.from(o.headers).normalize();
|
|
1266
|
-
let { responseType: l, onUploadProgress: p, onDownloadProgress: d } = o, c, u, g,
|
|
1266
|
+
let { responseType: l, onUploadProgress: p, onDownloadProgress: d } = o, c, u, g, E, f;
|
|
1267
1267
|
function m() {
|
|
1268
|
-
|
|
1268
|
+
E && E(), f && f(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
|
|
1269
1269
|
}
|
|
1270
1270
|
let h = new XMLHttpRequest();
|
|
1271
1271
|
h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
|
|
@@ -1282,41 +1282,41 @@ const mt = (e) => {
|
|
|
1282
1282
|
config: e,
|
|
1283
1283
|
request: h
|
|
1284
1284
|
};
|
|
1285
|
-
|
|
1286
|
-
n(
|
|
1287
|
-
}, function(
|
|
1288
|
-
r(
|
|
1285
|
+
ft(function(R) {
|
|
1286
|
+
n(R), m();
|
|
1287
|
+
}, function(R) {
|
|
1288
|
+
r(R), m();
|
|
1289
1289
|
}, F), h = null;
|
|
1290
1290
|
}
|
|
1291
1291
|
"onloadend" in h ? h.onloadend = w : h.onreadystatechange = function() {
|
|
1292
1292
|
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(w);
|
|
1293
1293
|
}, h.onabort = function() {
|
|
1294
1294
|
h && (r(new b("Request aborted", b.ECONNABORTED, e, h)), h = null);
|
|
1295
|
-
}, h.onerror = function(
|
|
1296
|
-
const F =
|
|
1297
|
-
|
|
1295
|
+
}, h.onerror = function(A) {
|
|
1296
|
+
const F = A && A.message ? A.message : "Network Error", S = new b(F, b.ERR_NETWORK, e, h);
|
|
1297
|
+
S.event = A || null, r(S), h = null;
|
|
1298
1298
|
}, h.ontimeout = function() {
|
|
1299
|
-
let
|
|
1300
|
-
const F = o.transitional ||
|
|
1301
|
-
o.timeoutErrorMessage && (
|
|
1302
|
-
|
|
1299
|
+
let A = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
1300
|
+
const F = o.transitional || ct;
|
|
1301
|
+
o.timeoutErrorMessage && (A = o.timeoutErrorMessage), r(new b(
|
|
1302
|
+
A,
|
|
1303
1303
|
F.clarifyTimeoutError ? b.ETIMEDOUT : b.ECONNABORTED,
|
|
1304
1304
|
e,
|
|
1305
1305
|
h
|
|
1306
1306
|
)), h = null;
|
|
1307
|
-
}, i === void 0 && s.setContentType(null), "setRequestHeader" in h && a.forEach(s.toJSON(), function(
|
|
1308
|
-
h.setRequestHeader(F,
|
|
1309
|
-
}), a.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), l && l !== "json" && (h.responseType = o.responseType), d && ([g, f] = le(d, !0), h.addEventListener("progress", g)), p && h.upload && ([u,
|
|
1307
|
+
}, i === void 0 && s.setContentType(null), "setRequestHeader" in h && a.forEach(s.toJSON(), function(A, F) {
|
|
1308
|
+
h.setRequestHeader(F, A);
|
|
1309
|
+
}), a.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), l && l !== "json" && (h.responseType = o.responseType), d && ([g, f] = le(d, !0), h.addEventListener("progress", g)), p && h.upload && ([u, E] = le(p), h.upload.addEventListener("progress", u), h.upload.addEventListener("loadend", E)), (o.cancelToken || o.signal) && (c = (x) => {
|
|
1310
1310
|
h && (r(!x || x.type ? new X(null, e, h) : x), h.abort(), h = null);
|
|
1311
1311
|
}, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
|
|
1312
|
-
const C =
|
|
1312
|
+
const C = vn(o.url);
|
|
1313
1313
|
if (C && N.protocols.indexOf(C) === -1) {
|
|
1314
1314
|
r(new b("Unsupported protocol " + C + ":", b.ERR_BAD_REQUEST, e));
|
|
1315
1315
|
return;
|
|
1316
1316
|
}
|
|
1317
1317
|
h.send(i || null);
|
|
1318
1318
|
});
|
|
1319
|
-
},
|
|
1319
|
+
}, Kn = (e, t) => {
|
|
1320
1320
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1321
1321
|
if (t || n) {
|
|
1322
1322
|
let r = new AbortController(), o;
|
|
@@ -1339,7 +1339,7 @@ const mt = (e) => {
|
|
|
1339
1339
|
const { signal: p } = r;
|
|
1340
1340
|
return p.unsubscribe = () => a.asap(l), p;
|
|
1341
1341
|
}
|
|
1342
|
-
},
|
|
1342
|
+
}, Xn = function* (e, t) {
|
|
1343
1343
|
let n = e.byteLength;
|
|
1344
1344
|
if (n < t) {
|
|
1345
1345
|
yield e;
|
|
@@ -1348,10 +1348,10 @@ const mt = (e) => {
|
|
|
1348
1348
|
let r = 0, o;
|
|
1349
1349
|
for (; r < n; )
|
|
1350
1350
|
o = r + t, yield e.slice(r, o), r = o;
|
|
1351
|
-
},
|
|
1352
|
-
for await (const n of
|
|
1353
|
-
yield*
|
|
1354
|
-
},
|
|
1351
|
+
}, Yn = async function* (e, t) {
|
|
1352
|
+
for await (const n of Gn(e))
|
|
1353
|
+
yield* Xn(n, t);
|
|
1354
|
+
}, Gn = async function* (e) {
|
|
1355
1355
|
if (e[Symbol.asyncIterator]) {
|
|
1356
1356
|
yield* e;
|
|
1357
1357
|
return;
|
|
@@ -1368,7 +1368,7 @@ const mt = (e) => {
|
|
|
1368
1368
|
await t.cancel();
|
|
1369
1369
|
}
|
|
1370
1370
|
}, Me = (e, t, n, r) => {
|
|
1371
|
-
const o =
|
|
1371
|
+
const o = Yn(e, t);
|
|
1372
1372
|
let i = 0, s, l = (p) => {
|
|
1373
1373
|
s || (s = !0, r && r(p));
|
|
1374
1374
|
};
|
|
@@ -1396,7 +1396,7 @@ const mt = (e) => {
|
|
|
1396
1396
|
}, {
|
|
1397
1397
|
highWaterMark: 2
|
|
1398
1398
|
});
|
|
1399
|
-
}, ze = 64 * 1024, { isFunction: oe } = a,
|
|
1399
|
+
}, ze = 64 * 1024, { isFunction: oe } = a, Qn = (({ Request: e, Response: t }) => ({
|
|
1400
1400
|
Request: e,
|
|
1401
1401
|
Response: t
|
|
1402
1402
|
}))(a.global), {
|
|
@@ -1408,10 +1408,10 @@ const mt = (e) => {
|
|
|
1408
1408
|
} catch {
|
|
1409
1409
|
return !1;
|
|
1410
1410
|
}
|
|
1411
|
-
},
|
|
1411
|
+
}, Zn = (e) => {
|
|
1412
1412
|
e = a.merge.call({
|
|
1413
1413
|
skipUndefined: !0
|
|
1414
|
-
},
|
|
1414
|
+
}, Qn, e);
|
|
1415
1415
|
const { fetch: t, Request: n, Response: r } = e, o = t ? oe(t) : typeof fetch == "function", i = oe(n), s = oe(r);
|
|
1416
1416
|
if (!o)
|
|
1417
1417
|
return !1;
|
|
@@ -1450,7 +1450,7 @@ const mt = (e) => {
|
|
|
1450
1450
|
return f.byteLength;
|
|
1451
1451
|
if (a.isURLSearchParams(f) && (f = f + ""), a.isString(f))
|
|
1452
1452
|
return (await p(f)).byteLength;
|
|
1453
|
-
},
|
|
1453
|
+
}, E = async (f, m) => {
|
|
1454
1454
|
const h = a.toFiniteNumber(f.getContentLength());
|
|
1455
1455
|
return h ?? g(m);
|
|
1456
1456
|
};
|
|
@@ -1461,22 +1461,22 @@ const mt = (e) => {
|
|
|
1461
1461
|
data: w,
|
|
1462
1462
|
signal: C,
|
|
1463
1463
|
cancelToken: x,
|
|
1464
|
-
timeout:
|
|
1464
|
+
timeout: A,
|
|
1465
1465
|
onDownloadProgress: F,
|
|
1466
|
-
onUploadProgress:
|
|
1467
|
-
responseType:
|
|
1466
|
+
onUploadProgress: S,
|
|
1467
|
+
responseType: R,
|
|
1468
1468
|
headers: Y,
|
|
1469
1469
|
withCredentials: W = "same-origin",
|
|
1470
1470
|
fetchOptions: k
|
|
1471
|
-
} =
|
|
1472
|
-
|
|
1473
|
-
let I =
|
|
1471
|
+
} = ht(f), U = t || fetch;
|
|
1472
|
+
R = R ? (R + "").toLowerCase() : "text";
|
|
1473
|
+
let I = Kn([C, x && x.toAbortSignal()], A), G = null;
|
|
1474
1474
|
const z = I && I.unsubscribe && (() => {
|
|
1475
1475
|
I.unsubscribe();
|
|
1476
1476
|
});
|
|
1477
1477
|
let Ae;
|
|
1478
1478
|
try {
|
|
1479
|
-
if (
|
|
1479
|
+
if (S && d && h !== "get" && h !== "head" && (Ae = await E(Y, w)) !== 0) {
|
|
1480
1480
|
let M = new n(m, {
|
|
1481
1481
|
method: "POST",
|
|
1482
1482
|
body: w,
|
|
@@ -1485,7 +1485,7 @@ const mt = (e) => {
|
|
|
1485
1485
|
if (a.isFormData(w) && (J = M.headers.get("content-type")) && Y.setContentType(J), M.body) {
|
|
1486
1486
|
const [he, re] = je(
|
|
1487
1487
|
Ae,
|
|
1488
|
-
le(Ie(
|
|
1488
|
+
le(Ie(S))
|
|
1489
1489
|
);
|
|
1490
1490
|
w = Me(M.body, ze, he, re);
|
|
1491
1491
|
}
|
|
@@ -1502,7 +1502,7 @@ const mt = (e) => {
|
|
|
1502
1502
|
};
|
|
1503
1503
|
G = i && new n(m, ke);
|
|
1504
1504
|
let v = await (i ? U(G, k) : U(m, ke));
|
|
1505
|
-
const Fe = c && (
|
|
1505
|
+
const Fe = c && (R === "stream" || R === "response");
|
|
1506
1506
|
if (c && (F || Fe && z)) {
|
|
1507
1507
|
const M = {};
|
|
1508
1508
|
["status", "statusText", "headers"].forEach((Ne) => {
|
|
@@ -1519,11 +1519,11 @@ const mt = (e) => {
|
|
|
1519
1519
|
M
|
|
1520
1520
|
);
|
|
1521
1521
|
}
|
|
1522
|
-
|
|
1523
|
-
let
|
|
1522
|
+
R = R || "text";
|
|
1523
|
+
let St = await u[a.findKey(u, R) || "text"](v, f);
|
|
1524
1524
|
return !Fe && z && z(), await new Promise((M, J) => {
|
|
1525
|
-
|
|
1526
|
-
data:
|
|
1525
|
+
ft(M, J, {
|
|
1526
|
+
data: St,
|
|
1527
1527
|
headers: _.from(v.headers),
|
|
1528
1528
|
status: v.status,
|
|
1529
1529
|
statusText: v.statusText,
|
|
@@ -1540,24 +1540,24 @@ const mt = (e) => {
|
|
|
1540
1540
|
) : b.from(D, D && D.code, f, G);
|
|
1541
1541
|
}
|
|
1542
1542
|
};
|
|
1543
|
-
},
|
|
1543
|
+
}, er = /* @__PURE__ */ new Map(), mt = (e) => {
|
|
1544
1544
|
let t = e && e.env || {};
|
|
1545
1545
|
const { fetch: n, Request: r, Response: o } = t, i = [
|
|
1546
1546
|
r,
|
|
1547
1547
|
o,
|
|
1548
1548
|
n
|
|
1549
1549
|
];
|
|
1550
|
-
let s = i.length, l = s, p, d, c =
|
|
1550
|
+
let s = i.length, l = s, p, d, c = er;
|
|
1551
1551
|
for (; l--; )
|
|
1552
|
-
p = i[l], d = c.get(p), d === void 0 && c.set(p, d = l ? /* @__PURE__ */ new Map() :
|
|
1552
|
+
p = i[l], d = c.get(p), d === void 0 && c.set(p, d = l ? /* @__PURE__ */ new Map() : Zn(t)), c = d;
|
|
1553
1553
|
return d;
|
|
1554
1554
|
};
|
|
1555
|
-
|
|
1555
|
+
mt();
|
|
1556
1556
|
const Oe = {
|
|
1557
|
-
http:
|
|
1558
|
-
xhr:
|
|
1557
|
+
http: bn,
|
|
1558
|
+
xhr: Vn,
|
|
1559
1559
|
fetch: {
|
|
1560
|
-
get:
|
|
1560
|
+
get: mt
|
|
1561
1561
|
}
|
|
1562
1562
|
};
|
|
1563
1563
|
a.forEach(Oe, (e, t) => {
|
|
@@ -1569,8 +1569,8 @@ a.forEach(Oe, (e, t) => {
|
|
|
1569
1569
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1570
1570
|
}
|
|
1571
1571
|
});
|
|
1572
|
-
const We = (e) => `- ${e}`,
|
|
1573
|
-
function
|
|
1572
|
+
const We = (e) => `- ${e}`, tr = (e) => a.isFunction(e) || e === null || e === !1;
|
|
1573
|
+
function nr(e, t) {
|
|
1574
1574
|
e = a.isArray(e) ? e : [e];
|
|
1575
1575
|
const { length: n } = e;
|
|
1576
1576
|
let r, o;
|
|
@@ -1578,7 +1578,7 @@ function rr(e, t) {
|
|
|
1578
1578
|
for (let s = 0; s < n; s++) {
|
|
1579
1579
|
r = e[s];
|
|
1580
1580
|
let l;
|
|
1581
|
-
if (o = r, !
|
|
1581
|
+
if (o = r, !tr(r) && (o = Oe[(l = String(r)).toLowerCase()], o === void 0))
|
|
1582
1582
|
throw new b(`Unknown adapter '${l}'`);
|
|
1583
1583
|
if (o && (a.isFunction(o) || (o = o.get(t))))
|
|
1584
1584
|
break;
|
|
@@ -1598,12 +1598,12 @@ function rr(e, t) {
|
|
|
1598
1598
|
}
|
|
1599
1599
|
return o;
|
|
1600
1600
|
}
|
|
1601
|
-
const
|
|
1601
|
+
const yt = {
|
|
1602
1602
|
/**
|
|
1603
1603
|
* Resolve an adapter from a list of adapter names or functions.
|
|
1604
1604
|
* @type {Function}
|
|
1605
1605
|
*/
|
|
1606
|
-
getAdapter:
|
|
1606
|
+
getAdapter: nr,
|
|
1607
1607
|
/**
|
|
1608
1608
|
* Exposes all known adapters
|
|
1609
1609
|
* @type {Object<string, Function|Object>}
|
|
@@ -1618,21 +1618,21 @@ function Je(e) {
|
|
|
1618
1618
|
return be(e), e.headers = _.from(e.headers), e.data = ye.call(
|
|
1619
1619
|
e,
|
|
1620
1620
|
e.transformRequest
|
|
1621
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1621
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), yt.getAdapter(e.adapter || ne.adapter, e)(e).then(function(r) {
|
|
1622
1622
|
return be(e), r.data = ye.call(
|
|
1623
1623
|
e,
|
|
1624
1624
|
e.transformResponse,
|
|
1625
1625
|
r
|
|
1626
1626
|
), r.headers = _.from(r.headers), r;
|
|
1627
1627
|
}, function(r) {
|
|
1628
|
-
return
|
|
1628
|
+
return dt(r) || (be(e), r && r.response && (r.response.data = ye.call(
|
|
1629
1629
|
e,
|
|
1630
1630
|
e.transformResponse,
|
|
1631
1631
|
r.response
|
|
1632
1632
|
), r.response.headers = _.from(r.response.headers))), Promise.reject(r);
|
|
1633
1633
|
});
|
|
1634
1634
|
}
|
|
1635
|
-
const
|
|
1635
|
+
const bt = "1.13.2", pe = {};
|
|
1636
1636
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1637
1637
|
pe[e] = function(r) {
|
|
1638
1638
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
@@ -1641,7 +1641,7 @@ const gt = "1.13.2", pe = {};
|
|
|
1641
1641
|
const Ve = {};
|
|
1642
1642
|
pe.transitional = function(t, n, r) {
|
|
1643
1643
|
function o(i, s) {
|
|
1644
|
-
return "[Axios v" +
|
|
1644
|
+
return "[Axios v" + bt + "] Transitional option '" + i + "'" + s + (r ? ". " + r : "");
|
|
1645
1645
|
}
|
|
1646
1646
|
return (i, s, l) => {
|
|
1647
1647
|
if (t === !1)
|
|
@@ -1660,7 +1660,7 @@ pe.transitional = function(t, n, r) {
|
|
|
1660
1660
|
pe.spelling = function(t) {
|
|
1661
1661
|
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
1662
1662
|
};
|
|
1663
|
-
function
|
|
1663
|
+
function rr(e, t, n) {
|
|
1664
1664
|
if (typeof e != "object")
|
|
1665
1665
|
throw new b("options must be an object", b.ERR_BAD_OPTION_VALUE);
|
|
1666
1666
|
const r = Object.keys(e);
|
|
@@ -1678,7 +1678,7 @@ function or(e, t, n) {
|
|
|
1678
1678
|
}
|
|
1679
1679
|
}
|
|
1680
1680
|
const ae = {
|
|
1681
|
-
assertOptions:
|
|
1681
|
+
assertOptions: rr,
|
|
1682
1682
|
validators: pe
|
|
1683
1683
|
}, j = ae.validators;
|
|
1684
1684
|
let H = class {
|
|
@@ -1756,18 +1756,18 @@ let H = class {
|
|
|
1756
1756
|
return c;
|
|
1757
1757
|
}
|
|
1758
1758
|
g = l.length;
|
|
1759
|
-
let
|
|
1759
|
+
let E = n;
|
|
1760
1760
|
for (; u < g; ) {
|
|
1761
1761
|
const f = l[u++], m = l[u++];
|
|
1762
1762
|
try {
|
|
1763
|
-
|
|
1763
|
+
E = f(E);
|
|
1764
1764
|
} catch (h) {
|
|
1765
1765
|
m.call(this, h);
|
|
1766
1766
|
break;
|
|
1767
1767
|
}
|
|
1768
1768
|
}
|
|
1769
1769
|
try {
|
|
1770
|
-
c = Je.call(this,
|
|
1770
|
+
c = Je.call(this, E);
|
|
1771
1771
|
} catch (f) {
|
|
1772
1772
|
return Promise.reject(f);
|
|
1773
1773
|
}
|
|
@@ -1777,8 +1777,8 @@ let H = class {
|
|
|
1777
1777
|
}
|
|
1778
1778
|
getUri(t) {
|
|
1779
1779
|
t = $(this.defaults, t);
|
|
1780
|
-
const n =
|
|
1781
|
-
return
|
|
1780
|
+
const n = pt(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1781
|
+
return lt(n, t.params, t.paramsSerializer);
|
|
1782
1782
|
}
|
|
1783
1783
|
};
|
|
1784
1784
|
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
@@ -1805,7 +1805,7 @@ a.forEach(["post", "put", "patch"], function(t) {
|
|
|
1805
1805
|
}
|
|
1806
1806
|
H.prototype[t] = n(), H.prototype[t + "Form"] = n(!0);
|
|
1807
1807
|
});
|
|
1808
|
-
let
|
|
1808
|
+
let or = class gt {
|
|
1809
1809
|
constructor(t) {
|
|
1810
1810
|
if (typeof t != "function")
|
|
1811
1811
|
throw new TypeError("executor must be a function.");
|
|
@@ -1871,19 +1871,19 @@ let sr = class xt {
|
|
|
1871
1871
|
static source() {
|
|
1872
1872
|
let t;
|
|
1873
1873
|
return {
|
|
1874
|
-
token: new
|
|
1874
|
+
token: new gt(function(o) {
|
|
1875
1875
|
t = o;
|
|
1876
1876
|
}),
|
|
1877
1877
|
cancel: t
|
|
1878
1878
|
};
|
|
1879
1879
|
}
|
|
1880
1880
|
};
|
|
1881
|
-
function
|
|
1881
|
+
function sr(e) {
|
|
1882
1882
|
return function(n) {
|
|
1883
1883
|
return e.apply(null, n);
|
|
1884
1884
|
};
|
|
1885
1885
|
}
|
|
1886
|
-
function
|
|
1886
|
+
function ir(e) {
|
|
1887
1887
|
return a.isObject(e) && e.isAxiosError === !0;
|
|
1888
1888
|
}
|
|
1889
1889
|
const Se = {
|
|
@@ -1960,82 +1960,80 @@ const Se = {
|
|
|
1960
1960
|
Object.entries(Se).forEach(([e, t]) => {
|
|
1961
1961
|
Se[t] = e;
|
|
1962
1962
|
});
|
|
1963
|
-
function
|
|
1964
|
-
const t = new H(e), n =
|
|
1963
|
+
function xt(e) {
|
|
1964
|
+
const t = new H(e), n = Ye(H.prototype.request, t);
|
|
1965
1965
|
return a.extend(n, H.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
1966
|
-
return
|
|
1966
|
+
return xt($(e, o));
|
|
1967
1967
|
}, n;
|
|
1968
1968
|
}
|
|
1969
|
-
const
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1969
|
+
const O = xt(ne);
|
|
1970
|
+
O.Axios = H;
|
|
1971
|
+
O.CanceledError = X;
|
|
1972
|
+
O.CancelToken = or;
|
|
1973
|
+
O.isCancel = dt;
|
|
1974
|
+
O.VERSION = bt;
|
|
1975
|
+
O.toFormData = fe;
|
|
1976
|
+
O.AxiosError = b;
|
|
1977
|
+
O.Cancel = O.CanceledError;
|
|
1978
|
+
O.all = function(t) {
|
|
1979
1979
|
return Promise.all(t);
|
|
1980
1980
|
};
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1981
|
+
O.spread = sr;
|
|
1982
|
+
O.isAxiosError = ir;
|
|
1983
|
+
O.mergeConfig = $;
|
|
1984
|
+
O.AxiosHeaders = _;
|
|
1985
|
+
O.formToJSON = (e) => ut(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1986
|
+
O.getAdapter = yt.getAdapter;
|
|
1987
|
+
O.HttpStatusCode = Se;
|
|
1988
|
+
O.default = O;
|
|
1989
1989
|
const {
|
|
1990
|
-
Axios:
|
|
1991
|
-
AxiosError:
|
|
1992
|
-
CanceledError:
|
|
1993
|
-
isCancel:
|
|
1994
|
-
CancelToken:
|
|
1995
|
-
VERSION:
|
|
1996
|
-
all:
|
|
1997
|
-
Cancel:
|
|
1998
|
-
isAxiosError:
|
|
1999
|
-
spread:
|
|
2000
|
-
toFormData:
|
|
2001
|
-
AxiosHeaders:
|
|
2002
|
-
HttpStatusCode:
|
|
2003
|
-
formToJSON:
|
|
2004
|
-
getAdapter:
|
|
2005
|
-
mergeConfig:
|
|
2006
|
-
} =
|
|
2007
|
-
const
|
|
1990
|
+
Axios: mr,
|
|
1991
|
+
AxiosError: yr,
|
|
1992
|
+
CanceledError: br,
|
|
1993
|
+
isCancel: gr,
|
|
1994
|
+
CancelToken: xr,
|
|
1995
|
+
VERSION: wr,
|
|
1996
|
+
all: Sr,
|
|
1997
|
+
Cancel: Er,
|
|
1998
|
+
isAxiosError: Rr,
|
|
1999
|
+
spread: Cr,
|
|
2000
|
+
toFormData: Tr,
|
|
2001
|
+
AxiosHeaders: Or,
|
|
2002
|
+
HttpStatusCode: Ar,
|
|
2003
|
+
formToJSON: kr,
|
|
2004
|
+
getAdapter: Fr,
|
|
2005
|
+
mergeConfig: Nr
|
|
2006
|
+
} = O, wt = async (e, t, n, r, o) => {
|
|
2007
|
+
const i = {
|
|
2008
2008
|
chatInput: e,
|
|
2009
|
-
sessionId: t,
|
|
2010
2009
|
metadata: {
|
|
2011
|
-
pinecone_namespace:
|
|
2012
|
-
name:
|
|
2013
|
-
email:
|
|
2010
|
+
pinecone_namespace: t,
|
|
2011
|
+
name: r,
|
|
2012
|
+
email: o
|
|
2014
2013
|
}
|
|
2015
2014
|
};
|
|
2016
2015
|
try {
|
|
2017
|
-
return (await
|
|
2018
|
-
|
|
2019
|
-
|
|
2016
|
+
return (await O.post(
|
|
2017
|
+
n,
|
|
2018
|
+
i,
|
|
2020
2019
|
{
|
|
2021
2020
|
headers: {
|
|
2022
2021
|
"Content-Type": "application/json"
|
|
2023
2022
|
}
|
|
2024
2023
|
}
|
|
2025
2024
|
)).data;
|
|
2026
|
-
} catch (
|
|
2027
|
-
throw console.error("Error communicating with chat API:",
|
|
2025
|
+
} catch (s) {
|
|
2026
|
+
throw console.error("Error communicating with chat API:", s), s;
|
|
2028
2027
|
}
|
|
2029
|
-
},
|
|
2030
|
-
const [r, o] = L(""), [i, s] = L(""), [l, p] = L(""), [d, c] = L(""), [u, g] = L(!1),
|
|
2031
|
-
if (
|
|
2028
|
+
}, ar = ({ handleMessageFromForm: e, theme: t, chatBotData: n }) => {
|
|
2029
|
+
const [r, o] = L(""), [i, s] = L(""), [l, p] = L(""), [d, c] = L(""), [u, g] = L(!1), E = async (S) => {
|
|
2030
|
+
if (S.preventDefault(), g(!0), c(""), !r.trim() || !i.trim()) {
|
|
2032
2031
|
c("Name and email are required"), g(!1);
|
|
2033
2032
|
return;
|
|
2034
2033
|
}
|
|
2035
2034
|
try {
|
|
2036
|
-
const
|
|
2035
|
+
const R = await wt(
|
|
2037
2036
|
l,
|
|
2038
|
-
n.sessionId,
|
|
2039
2037
|
n.pineconeNamespace,
|
|
2040
2038
|
n.url,
|
|
2041
2039
|
r,
|
|
@@ -2043,10 +2041,10 @@ const {
|
|
|
2043
2041
|
);
|
|
2044
2042
|
e([
|
|
2045
2043
|
{ type: "user", text: l },
|
|
2046
|
-
{ type: "bot", text:
|
|
2044
|
+
{ type: "bot", text: R.n8n.response, response_timestamp: R.n8n.response_timestamp }
|
|
2047
2045
|
]);
|
|
2048
|
-
} catch (
|
|
2049
|
-
console.log("error sending user details",
|
|
2046
|
+
} catch (R) {
|
|
2047
|
+
console.log("error sending user details", R), c("Failed to submit. Please try again.");
|
|
2050
2048
|
} finally {
|
|
2051
2049
|
g(!1);
|
|
2052
2050
|
}
|
|
@@ -2084,7 +2082,7 @@ const {
|
|
|
2084
2082
|
fontSize: "15px",
|
|
2085
2083
|
outline: "none",
|
|
2086
2084
|
boxSizing: "border-box"
|
|
2087
|
-
},
|
|
2085
|
+
}, A = {
|
|
2088
2086
|
padding: "12px 20px",
|
|
2089
2087
|
borderRadius: "12px",
|
|
2090
2088
|
fontWeight: "600",
|
|
@@ -2100,7 +2098,7 @@ const {
|
|
|
2100
2098
|
gap: "8px",
|
|
2101
2099
|
transition: "all 0.2s ease"
|
|
2102
2100
|
};
|
|
2103
|
-
return /* @__PURE__ */ y("div", { style: f, children: /* @__PURE__ */
|
|
2101
|
+
return /* @__PURE__ */ y("div", { style: f, children: /* @__PURE__ */ T("form", { onSubmit: E, style: m, children: [
|
|
2104
2102
|
d && /* @__PURE__ */ y("div", { style: {
|
|
2105
2103
|
backgroundColor: "#fee2e2",
|
|
2106
2104
|
color: "#713f12",
|
|
@@ -2111,8 +2109,8 @@ const {
|
|
|
2111
2109
|
fontWeight: "500"
|
|
2112
2110
|
}, role: "alert", children: d }),
|
|
2113
2111
|
/* @__PURE__ */ y("p", { style: h, children: n.welcomeText }),
|
|
2114
|
-
/* @__PURE__ */
|
|
2115
|
-
/* @__PURE__ */
|
|
2112
|
+
/* @__PURE__ */ T("div", { style: w, children: [
|
|
2113
|
+
/* @__PURE__ */ T("div", { style: { display: "flex", flexDirection: "column", gap: "4px" }, children: [
|
|
2116
2114
|
/* @__PURE__ */ y("label", { style: C, children: "Full Name" }),
|
|
2117
2115
|
/* @__PURE__ */ y(
|
|
2118
2116
|
"input",
|
|
@@ -2120,15 +2118,15 @@ const {
|
|
|
2120
2118
|
type: "text",
|
|
2121
2119
|
placeholder: "Enter your full name",
|
|
2122
2120
|
value: r,
|
|
2123
|
-
onChange: (
|
|
2124
|
-
o(
|
|
2121
|
+
onChange: (S) => {
|
|
2122
|
+
o(S.target.value), c("");
|
|
2125
2123
|
},
|
|
2126
2124
|
style: x,
|
|
2127
2125
|
required: !0
|
|
2128
2126
|
}
|
|
2129
2127
|
)
|
|
2130
2128
|
] }),
|
|
2131
|
-
/* @__PURE__ */
|
|
2129
|
+
/* @__PURE__ */ T("div", { style: { display: "flex", flexDirection: "column", gap: "4px" }, children: [
|
|
2132
2130
|
/* @__PURE__ */ y("label", { style: C, children: "Email Address" }),
|
|
2133
2131
|
/* @__PURE__ */ y(
|
|
2134
2132
|
"input",
|
|
@@ -2136,23 +2134,23 @@ const {
|
|
|
2136
2134
|
type: "email",
|
|
2137
2135
|
placeholder: "Enter your email",
|
|
2138
2136
|
value: i,
|
|
2139
|
-
onChange: (
|
|
2140
|
-
s(
|
|
2137
|
+
onChange: (S) => {
|
|
2138
|
+
s(S.target.value), c("");
|
|
2141
2139
|
},
|
|
2142
2140
|
style: x,
|
|
2143
2141
|
required: !0
|
|
2144
2142
|
}
|
|
2145
2143
|
)
|
|
2146
2144
|
] }),
|
|
2147
|
-
/* @__PURE__ */
|
|
2145
|
+
/* @__PURE__ */ T("div", { style: { display: "flex", flexDirection: "column", gap: "4px" }, children: [
|
|
2148
2146
|
/* @__PURE__ */ y("label", { style: C, children: "Message" }),
|
|
2149
2147
|
/* @__PURE__ */ y(
|
|
2150
2148
|
"textarea",
|
|
2151
2149
|
{
|
|
2152
2150
|
placeholder: "Enter your message",
|
|
2153
2151
|
value: l,
|
|
2154
|
-
onChange: (
|
|
2155
|
-
p(
|
|
2152
|
+
onChange: (S) => {
|
|
2153
|
+
p(S.target.value), c("");
|
|
2156
2154
|
},
|
|
2157
2155
|
style: {
|
|
2158
2156
|
...x,
|
|
@@ -2169,21 +2167,21 @@ const {
|
|
|
2169
2167
|
{
|
|
2170
2168
|
type: "submit",
|
|
2171
2169
|
disabled: !r.trim() || !i.trim() || u,
|
|
2172
|
-
style:
|
|
2173
|
-
onMouseEnter: (
|
|
2174
|
-
r.trim() && i.trim() && !u && (
|
|
2170
|
+
style: A,
|
|
2171
|
+
onMouseEnter: (S) => {
|
|
2172
|
+
r.trim() && i.trim() && !u && (S.currentTarget.style.transform = "translateY(-2px)", S.currentTarget.style.boxShadow = "0 10px 20px rgba(0,0,0,0.15)");
|
|
2175
2173
|
},
|
|
2176
|
-
onMouseLeave: (
|
|
2177
|
-
|
|
2174
|
+
onMouseLeave: (S) => {
|
|
2175
|
+
S.currentTarget.style.transform = "translateY(0)", S.currentTarget.style.boxShadow = "none";
|
|
2178
2176
|
},
|
|
2179
|
-
children: u ? "Submitting..." : /* @__PURE__ */
|
|
2180
|
-
/* @__PURE__ */ y(
|
|
2177
|
+
children: u ? "Submitting..." : /* @__PURE__ */ T(Ee, { children: [
|
|
2178
|
+
/* @__PURE__ */ y(Xe, { size: 18 }),
|
|
2181
2179
|
"Submit"
|
|
2182
2180
|
] })
|
|
2183
2181
|
}
|
|
2184
2182
|
)
|
|
2185
2183
|
] }) });
|
|
2186
|
-
},
|
|
2184
|
+
}, lr = ({ onClose: e, theme: t, chatBotData: n }) => {
|
|
2187
2185
|
const [r, o] = L([]), [i, s] = L(!1), [l, p] = L(!1), [d, c] = L(!1), g = {
|
|
2188
2186
|
position: "fixed",
|
|
2189
2187
|
bottom: "112px",
|
|
@@ -2201,7 +2199,7 @@ const {
|
|
|
2201
2199
|
flexDirection: "column",
|
|
2202
2200
|
overflow: "hidden",
|
|
2203
2201
|
fontFamily: "system-ui, -apple-system, sans-serif"
|
|
2204
|
-
},
|
|
2202
|
+
}, E = {
|
|
2205
2203
|
padding: "16px 20px",
|
|
2206
2204
|
background: `linear-gradient(135deg, ${t.primaryColor}, ${t.secondaryColor})`,
|
|
2207
2205
|
color: t.fontColor,
|
|
@@ -2246,7 +2244,7 @@ const {
|
|
|
2246
2244
|
border: "none",
|
|
2247
2245
|
cursor: "pointer",
|
|
2248
2246
|
transition: "background 0.2s"
|
|
2249
|
-
},
|
|
2247
|
+
}, A = {
|
|
2250
2248
|
padding: "12px 20px",
|
|
2251
2249
|
borderTop: "1px solid rgba(255,255,255,0.2)",
|
|
2252
2250
|
background: t.backgroundColor,
|
|
@@ -2255,22 +2253,21 @@ const {
|
|
|
2255
2253
|
fontSize: "11px",
|
|
2256
2254
|
color: t.fontColor,
|
|
2257
2255
|
letterSpacing: "0.5px"
|
|
2258
|
-
},
|
|
2256
|
+
}, S = {
|
|
2259
2257
|
fontWeight: "600"
|
|
2260
|
-
},
|
|
2258
|
+
}, R = (k, U) => {
|
|
2261
2259
|
k.currentTarget.style.background = U ? "rgba(255,255,255,0.2)" : "transparent";
|
|
2262
2260
|
}, Y = (k) => {
|
|
2263
2261
|
o(k), p(!0);
|
|
2264
2262
|
}, W = async (k) => {
|
|
2265
2263
|
s(!0), o((U) => [...U, { type: "user", text: k }]);
|
|
2266
2264
|
try {
|
|
2267
|
-
const U = await
|
|
2265
|
+
const U = await wt(
|
|
2268
2266
|
k,
|
|
2269
|
-
n.sessionId,
|
|
2270
2267
|
n.pineconeNamespace,
|
|
2271
2268
|
n.url
|
|
2272
2269
|
);
|
|
2273
|
-
o((I) => [...I, { type: "bot", text: U.response, response_timestamp: U.response_timestamp, suggested_prompts: U.suggested_prompt }]);
|
|
2270
|
+
o((I) => [...I, { type: "bot", text: U.n8n.response, response_timestamp: U.n8n.response_timestamp, suggested_prompts: U.n8n.suggested_prompt }]);
|
|
2274
2271
|
} catch (U) {
|
|
2275
2272
|
console.error("Chat error:", U), o((I) => [
|
|
2276
2273
|
...I,
|
|
@@ -2280,27 +2277,27 @@ const {
|
|
|
2280
2277
|
s(!1);
|
|
2281
2278
|
}
|
|
2282
2279
|
};
|
|
2283
|
-
return /* @__PURE__ */
|
|
2284
|
-
/* @__PURE__ */
|
|
2285
|
-
/* @__PURE__ */
|
|
2286
|
-
/* @__PURE__ */
|
|
2287
|
-
/* @__PURE__ */ y("div", { style: m, children: /* @__PURE__ */ y(
|
|
2280
|
+
return /* @__PURE__ */ T("div", { style: g, children: [
|
|
2281
|
+
/* @__PURE__ */ T("div", { style: E, children: [
|
|
2282
|
+
/* @__PURE__ */ T("div", { style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
|
|
2283
|
+
/* @__PURE__ */ T("div", { style: f, children: [
|
|
2284
|
+
/* @__PURE__ */ y("div", { style: m, children: /* @__PURE__ */ y(Ke, { size: 22 }) }),
|
|
2288
2285
|
/* @__PURE__ */ y("span", { style: h })
|
|
2289
2286
|
] }),
|
|
2290
|
-
/* @__PURE__ */
|
|
2287
|
+
/* @__PURE__ */ T("div", { children: [
|
|
2291
2288
|
/* @__PURE__ */ y("h3", { style: w, children: n.name }),
|
|
2292
2289
|
/* @__PURE__ */ y("p", { style: C, children: n.subTitle })
|
|
2293
2290
|
] })
|
|
2294
2291
|
] }),
|
|
2295
|
-
/* @__PURE__ */
|
|
2292
|
+
/* @__PURE__ */ T("div", { style: { display: "flex", alignItems: "left" }, children: [
|
|
2296
2293
|
/* @__PURE__ */ y(
|
|
2297
2294
|
"button",
|
|
2298
2295
|
{
|
|
2299
2296
|
onClick: () => c((k) => !k),
|
|
2300
2297
|
"aria-label": "expand chat",
|
|
2301
2298
|
style: x,
|
|
2302
|
-
onMouseEnter: (k) =>
|
|
2303
|
-
onMouseLeave: (k) =>
|
|
2299
|
+
onMouseEnter: (k) => R(k, !0),
|
|
2300
|
+
onMouseLeave: (k) => R(k, !1),
|
|
2304
2301
|
children: d ? /* @__PURE__ */ y(Tt, { size: 20 }) : /* @__PURE__ */ y(Ot, { size: 20 })
|
|
2305
2302
|
}
|
|
2306
2303
|
),
|
|
@@ -2310,31 +2307,31 @@ const {
|
|
|
2310
2307
|
onClick: e,
|
|
2311
2308
|
"aria-label": "close chat",
|
|
2312
2309
|
style: x,
|
|
2313
|
-
onMouseEnter: (k) =>
|
|
2314
|
-
onMouseLeave: (k) =>
|
|
2310
|
+
onMouseEnter: (k) => R(k, !0),
|
|
2311
|
+
onMouseLeave: (k) => R(k, !1),
|
|
2315
2312
|
children: /* @__PURE__ */ y(At, { size: 20 })
|
|
2316
2313
|
}
|
|
2317
2314
|
)
|
|
2318
2315
|
] })
|
|
2319
2316
|
] }),
|
|
2320
|
-
l ? /* @__PURE__ */
|
|
2321
|
-
/* @__PURE__ */ y(
|
|
2322
|
-
/* @__PURE__ */ y(
|
|
2317
|
+
l ? /* @__PURE__ */ T(Ee, { children: [
|
|
2318
|
+
/* @__PURE__ */ y(Nt, { messages: r, isLoading: i, theme: t }),
|
|
2319
|
+
/* @__PURE__ */ y(Ft, { onSendMessage: W, isLoading: i, theme: t, messages: r })
|
|
2323
2320
|
] }) : /* @__PURE__ */ y(
|
|
2324
|
-
|
|
2321
|
+
ar,
|
|
2325
2322
|
{
|
|
2326
2323
|
handleMessageFromForm: Y,
|
|
2327
2324
|
theme: t,
|
|
2328
2325
|
chatBotData: n
|
|
2329
2326
|
}
|
|
2330
2327
|
),
|
|
2331
|
-
/* @__PURE__ */ y("div", { style:
|
|
2328
|
+
/* @__PURE__ */ y("div", { style: A, children: /* @__PURE__ */ T("p", { style: F, children: [
|
|
2332
2329
|
"powered by",
|
|
2333
2330
|
" ",
|
|
2334
|
-
/* @__PURE__ */ y("span", { style:
|
|
2331
|
+
/* @__PURE__ */ y("span", { style: S, children: "clone67.com" })
|
|
2335
2332
|
] }) })
|
|
2336
2333
|
] });
|
|
2337
|
-
},
|
|
2334
|
+
}, Pr = ({
|
|
2338
2335
|
pineconeNamespace: e,
|
|
2339
2336
|
url: t,
|
|
2340
2337
|
primaryColor: n = "#3b82f6",
|
|
@@ -2347,11 +2344,7 @@ const {
|
|
|
2347
2344
|
subTitle: d = "Typically replies instantly",
|
|
2348
2345
|
welcomeText: c = "Hi! How can I help you today?"
|
|
2349
2346
|
}) => {
|
|
2350
|
-
const [u, g] = L(!1),
|
|
2351
|
-
Ke(() => {
|
|
2352
|
-
f(kt());
|
|
2353
|
-
}, []);
|
|
2354
|
-
const m = () => g((S) => !S), h = () => g((S) => !S), w = {
|
|
2347
|
+
const [u, g] = L(!1), E = () => g((F) => !F), f = () => g((F) => !F), m = {
|
|
2355
2348
|
primaryColor: n,
|
|
2356
2349
|
secondaryColor: r,
|
|
2357
2350
|
backgroundColor: o,
|
|
@@ -2359,48 +2352,47 @@ const {
|
|
|
2359
2352
|
placeholderColor: s,
|
|
2360
2353
|
inputBackgroundColor: o
|
|
2361
2354
|
// fallback if not provided
|
|
2362
|
-
},
|
|
2355
|
+
}, h = {
|
|
2363
2356
|
name: p,
|
|
2364
2357
|
subTitle: d,
|
|
2365
2358
|
welcomeText: c,
|
|
2366
2359
|
url: t,
|
|
2367
2360
|
pineconeNamespace: e,
|
|
2368
|
-
position: l
|
|
2369
|
-
|
|
2370
|
-
}, x = l === "left", T = "32px", F = {
|
|
2361
|
+
position: l
|
|
2362
|
+
}, w = l === "left", C = "32px", x = {
|
|
2371
2363
|
position: "fixed",
|
|
2372
2364
|
bottom: "104px",
|
|
2373
2365
|
// 8 + 64 + some margin
|
|
2374
|
-
[
|
|
2366
|
+
[w ? "left" : "right"]: C,
|
|
2375
2367
|
zIndex: 9999,
|
|
2376
2368
|
pointerEvents: "auto"
|
|
2377
|
-
},
|
|
2369
|
+
}, A = {
|
|
2378
2370
|
position: "fixed",
|
|
2379
2371
|
bottom: "32px",
|
|
2380
|
-
[
|
|
2372
|
+
[w ? "left" : "right"]: C,
|
|
2381
2373
|
zIndex: 1e4,
|
|
2382
2374
|
pointerEvents: "auto"
|
|
2383
2375
|
};
|
|
2384
|
-
return /* @__PURE__ */
|
|
2385
|
-
u && /* @__PURE__ */ y("div", { style:
|
|
2386
|
-
|
|
2376
|
+
return /* @__PURE__ */ T(Ee, { children: [
|
|
2377
|
+
u && /* @__PURE__ */ y("div", { style: x, children: /* @__PURE__ */ y(
|
|
2378
|
+
lr,
|
|
2387
2379
|
{
|
|
2388
|
-
onClose:
|
|
2389
|
-
theme:
|
|
2390
|
-
chatBotData:
|
|
2380
|
+
onClose: E,
|
|
2381
|
+
theme: m,
|
|
2382
|
+
chatBotData: h
|
|
2391
2383
|
}
|
|
2392
2384
|
) }),
|
|
2393
|
-
/* @__PURE__ */ y("div", { style:
|
|
2394
|
-
|
|
2385
|
+
/* @__PURE__ */ y("div", { style: A, children: /* @__PURE__ */ y(
|
|
2386
|
+
kt,
|
|
2395
2387
|
{
|
|
2396
|
-
onMinimise:
|
|
2388
|
+
onMinimise: f,
|
|
2397
2389
|
isOpen: u,
|
|
2398
|
-
theme:
|
|
2399
|
-
chatBotData:
|
|
2390
|
+
theme: m,
|
|
2391
|
+
chatBotData: h
|
|
2400
2392
|
}
|
|
2401
2393
|
) })
|
|
2402
2394
|
] });
|
|
2403
2395
|
};
|
|
2404
2396
|
export {
|
|
2405
|
-
|
|
2397
|
+
Pr as default
|
|
2406
2398
|
};
|