tybotflow-widget 0.3.7 → 0.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +402 -396
- package/dist/index.umd.js +23 -23
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -94,11 +94,11 @@ function rM() {
|
|
|
94
94
|
if (X !== J) {
|
|
95
95
|
j[0] = X;
|
|
96
96
|
e: for (var se = 0, S = j.length, H = S >>> 1; se < H; ) {
|
|
97
|
-
var ee = 2 * (se + 1) - 1, D = j[ee], le = ee + 1,
|
|
97
|
+
var ee = 2 * (se + 1) - 1, D = j[ee], le = ee + 1, be = j[le];
|
|
98
98
|
if (0 > o(D, X))
|
|
99
|
-
le < S && 0 > o(
|
|
100
|
-
else if (le < S && 0 > o(
|
|
101
|
-
j[se] =
|
|
99
|
+
le < S && 0 > o(be, D) ? (j[se] = be, j[le] = X, se = le) : (j[se] = D, j[ee] = X, se = ee);
|
|
100
|
+
else if (le < S && 0 > o(be, X))
|
|
101
|
+
j[se] = be, j[le] = X, se = le;
|
|
102
102
|
else break e;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
@@ -346,13 +346,13 @@ function iM() {
|
|
|
346
346
|
var C = N.prototype = new x();
|
|
347
347
|
C.constructor = N, v(C, w.prototype), C.isPureReactComponent = !0;
|
|
348
348
|
var M = Array.isArray, O = { H: null, A: null, T: null, S: null, V: null }, R = Object.prototype.hasOwnProperty;
|
|
349
|
-
function F(S, H, ee, D, le,
|
|
350
|
-
return ee =
|
|
349
|
+
function F(S, H, ee, D, le, be) {
|
|
350
|
+
return ee = be.ref, {
|
|
351
351
|
$$typeof: e,
|
|
352
352
|
type: S,
|
|
353
353
|
key: H,
|
|
354
354
|
ref: ee !== void 0 ? ee : null,
|
|
355
|
-
props:
|
|
355
|
+
props: be
|
|
356
356
|
};
|
|
357
357
|
}
|
|
358
358
|
function U(S, H) {
|
|
@@ -404,12 +404,12 @@ function iM() {
|
|
|
404
404
|
throw S;
|
|
405
405
|
}
|
|
406
406
|
function Z(S, H, ee, D, le) {
|
|
407
|
-
var
|
|
408
|
-
(
|
|
407
|
+
var be = typeof S;
|
|
408
|
+
(be === "undefined" || be === "boolean") && (S = null);
|
|
409
409
|
var de = !1;
|
|
410
410
|
if (S === null) de = !0;
|
|
411
411
|
else
|
|
412
|
-
switch (
|
|
412
|
+
switch (be) {
|
|
413
413
|
case "bigint":
|
|
414
414
|
case "string":
|
|
415
415
|
case "number":
|
|
@@ -444,24 +444,24 @@ function iM() {
|
|
|
444
444
|
de = 0;
|
|
445
445
|
var Te = D === "" ? "." : D + ":";
|
|
446
446
|
if (M(S))
|
|
447
|
-
for (var
|
|
448
|
-
D = S[
|
|
447
|
+
for (var we = 0; we < S.length; we++)
|
|
448
|
+
D = S[we], be = Te + W(D, we), de += Z(
|
|
449
449
|
D,
|
|
450
450
|
H,
|
|
451
451
|
ee,
|
|
452
|
-
|
|
452
|
+
be,
|
|
453
453
|
le
|
|
454
454
|
);
|
|
455
|
-
else if (
|
|
456
|
-
for (S =
|
|
457
|
-
D = D.value,
|
|
455
|
+
else if (we = y(S), typeof we == "function")
|
|
456
|
+
for (S = we.call(S), we = 0; !(D = S.next()).done; )
|
|
457
|
+
D = D.value, be = Te + W(D, we++), de += Z(
|
|
458
458
|
D,
|
|
459
459
|
H,
|
|
460
460
|
ee,
|
|
461
|
-
|
|
461
|
+
be,
|
|
462
462
|
le
|
|
463
463
|
);
|
|
464
|
-
else if (
|
|
464
|
+
else if (be === "object") {
|
|
465
465
|
if (typeof S.then == "function")
|
|
466
466
|
return Z(
|
|
467
467
|
Y(S),
|
|
@@ -479,8 +479,8 @@ function iM() {
|
|
|
479
479
|
function j(S, H, ee) {
|
|
480
480
|
if (S == null) return S;
|
|
481
481
|
var D = [], le = 0;
|
|
482
|
-
return Z(S, D, "", "", function(
|
|
483
|
-
return H.call(ee,
|
|
482
|
+
return Z(S, D, "", "", function(be) {
|
|
483
|
+
return H.call(ee, be, le++);
|
|
484
484
|
}), D;
|
|
485
485
|
}
|
|
486
486
|
function J(S) {
|
|
@@ -558,18 +558,18 @@ function iM() {
|
|
|
558
558
|
throw Error(
|
|
559
559
|
"The argument must be a React element, but you passed " + S + "."
|
|
560
560
|
);
|
|
561
|
-
var D = v({}, S.props), le = S.key,
|
|
561
|
+
var D = v({}, S.props), le = S.key, be = void 0;
|
|
562
562
|
if (H != null)
|
|
563
|
-
for (de in H.ref !== void 0 && (
|
|
563
|
+
for (de in H.ref !== void 0 && (be = void 0), H.key !== void 0 && (le = "" + H.key), H)
|
|
564
564
|
!R.call(H, de) || de === "key" || de === "__self" || de === "__source" || de === "ref" && H.ref === void 0 || (D[de] = H[de]);
|
|
565
565
|
var de = arguments.length - 2;
|
|
566
566
|
if (de === 1) D.children = ee;
|
|
567
567
|
else if (1 < de) {
|
|
568
|
-
for (var Te = Array(de),
|
|
569
|
-
Te[
|
|
568
|
+
for (var Te = Array(de), we = 0; we < de; we++)
|
|
569
|
+
Te[we] = arguments[we + 2];
|
|
570
570
|
D.children = Te;
|
|
571
571
|
}
|
|
572
|
-
return F(S.type, le, void 0, void 0,
|
|
572
|
+
return F(S.type, le, void 0, void 0, be, D);
|
|
573
573
|
}, Fe.createContext = function(S) {
|
|
574
574
|
return S = {
|
|
575
575
|
$$typeof: u,
|
|
@@ -583,21 +583,21 @@ function iM() {
|
|
|
583
583
|
_context: S
|
|
584
584
|
}, S;
|
|
585
585
|
}, Fe.createElement = function(S, H, ee) {
|
|
586
|
-
var D, le = {},
|
|
586
|
+
var D, le = {}, be = null;
|
|
587
587
|
if (H != null)
|
|
588
|
-
for (D in H.key !== void 0 && (
|
|
588
|
+
for (D in H.key !== void 0 && (be = "" + H.key), H)
|
|
589
589
|
R.call(H, D) && D !== "key" && D !== "__self" && D !== "__source" && (le[D] = H[D]);
|
|
590
590
|
var de = arguments.length - 2;
|
|
591
591
|
if (de === 1) le.children = ee;
|
|
592
592
|
else if (1 < de) {
|
|
593
|
-
for (var Te = Array(de),
|
|
594
|
-
Te[
|
|
593
|
+
for (var Te = Array(de), we = 0; we < de; we++)
|
|
594
|
+
Te[we] = arguments[we + 2];
|
|
595
595
|
le.children = Te;
|
|
596
596
|
}
|
|
597
597
|
if (S && S.defaultProps)
|
|
598
598
|
for (D in de = S.defaultProps, de)
|
|
599
599
|
le[D] === void 0 && (le[D] = de[D]);
|
|
600
|
-
return F(S,
|
|
600
|
+
return F(S, be, void 0, void 0, null, le);
|
|
601
601
|
}, Fe.createRef = function() {
|
|
602
602
|
return { current: null };
|
|
603
603
|
}, Fe.forwardRef = function(S) {
|
|
@@ -620,8 +620,8 @@ function iM() {
|
|
|
620
620
|
try {
|
|
621
621
|
var D = S(), le = O.S;
|
|
622
622
|
le !== null && le(ee, D), typeof D == "object" && D !== null && typeof D.then == "function" && D.then(se, X);
|
|
623
|
-
} catch (
|
|
624
|
-
X(
|
|
623
|
+
} catch (be) {
|
|
624
|
+
X(be);
|
|
625
625
|
} finally {
|
|
626
626
|
O.T = H;
|
|
627
627
|
}
|
|
@@ -1010,9 +1010,9 @@ function lM() {
|
|
|
1010
1010
|
function D(r, i) {
|
|
1011
1011
|
S++, se[S] = r.current, r.current = i;
|
|
1012
1012
|
}
|
|
1013
|
-
var le = H(null),
|
|
1014
|
-
function
|
|
1015
|
-
switch (D(de, i), D(
|
|
1013
|
+
var le = H(null), be = H(null), de = H(null), Te = H(null);
|
|
1014
|
+
function we(r, i) {
|
|
1015
|
+
switch (D(de, i), D(be, r), D(le, null), i.nodeType) {
|
|
1016
1016
|
case 9:
|
|
1017
1017
|
case 11:
|
|
1018
1018
|
r = (r = i.documentElement) && (r = r.namespaceURI) ? Gw(r) : 0;
|
|
@@ -1035,15 +1035,15 @@ function lM() {
|
|
|
1035
1035
|
ee(le), D(le, r);
|
|
1036
1036
|
}
|
|
1037
1037
|
function Qe() {
|
|
1038
|
-
ee(le), ee(
|
|
1038
|
+
ee(le), ee(be), ee(de);
|
|
1039
1039
|
}
|
|
1040
1040
|
function $e(r) {
|
|
1041
1041
|
r.memoizedState !== null && D(Te, r);
|
|
1042
1042
|
var i = le.current, s = _w(i, r.type);
|
|
1043
|
-
i !== s && (D(
|
|
1043
|
+
i !== s && (D(be, r), D(le, s));
|
|
1044
1044
|
}
|
|
1045
1045
|
function ft(r) {
|
|
1046
|
-
|
|
1046
|
+
be.current === r && (ee(le), ee(be)), Te.current === r && (ee(Te), Qo._currentValue = X);
|
|
1047
1047
|
}
|
|
1048
1048
|
var Gt = Object.prototype.hasOwnProperty, Mt = e.unstable_scheduleCallback, Je = e.unstable_cancelCallback, ge = e.unstable_shouldYield, Ee = e.unstable_requestPaint, Le = e.unstable_now, Ue = e.unstable_getCurrentPriorityLevel, Oe = e.unstable_ImmediatePriority, Ie = e.unstable_UserBlockingPriority, et = e.unstable_NormalPriority, Ye = e.unstable_LowPriority, ze = e.unstable_IdlePriority, De = e.log, Pe = e.unstable_setDisableYieldValue, ne = null, ie = null;
|
|
1049
1049
|
function he(r) {
|
|
@@ -1208,7 +1208,7 @@ function lM() {
|
|
|
1208
1208
|
g & i | r[c] & i && (r[c] |= i), s &= ~g;
|
|
1209
1209
|
}
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1211
|
+
function Pr(r) {
|
|
1212
1212
|
switch (r) {
|
|
1213
1213
|
case 2:
|
|
1214
1214
|
r = 1;
|
|
@@ -1247,7 +1247,7 @@ function lM() {
|
|
|
1247
1247
|
}
|
|
1248
1248
|
return r;
|
|
1249
1249
|
}
|
|
1250
|
-
function
|
|
1250
|
+
function zr(r) {
|
|
1251
1251
|
return r &= -r, 2 < r ? 8 < r ? (r & 134217727) !== 0 ? 32 : 268435456 : 8 : 2;
|
|
1252
1252
|
}
|
|
1253
1253
|
function sr() {
|
|
@@ -1262,7 +1262,7 @@ function lM() {
|
|
|
1262
1262
|
J.p = s;
|
|
1263
1263
|
}
|
|
1264
1264
|
}
|
|
1265
|
-
var Wn = Math.random().toString(36).slice(2), Pt = "__reactFiber$" + Wn, Zt = "__reactProps$" + Wn, gt = "__reactContainer$" + Wn, Ra = "__reactEvents$" + Wn, ui = "__reactListeners$" + Wn, Na = "__reactHandles$" + Wn,
|
|
1265
|
+
var Wn = Math.random().toString(36).slice(2), Pt = "__reactFiber$" + Wn, Zt = "__reactProps$" + Wn, gt = "__reactContainer$" + Wn, Ra = "__reactEvents$" + Wn, ui = "__reactListeners$" + Wn, Na = "__reactHandles$" + Wn, jr = "__reactResources$" + Wn, Er = "__reactMarker$" + Wn;
|
|
1266
1266
|
function Fn(r) {
|
|
1267
1267
|
delete r[Pt], delete r[Zt], delete r[Ra], delete r[ui], delete r[Na];
|
|
1268
1268
|
}
|
|
@@ -1296,11 +1296,11 @@ function lM() {
|
|
|
1296
1296
|
throw Error(a(33));
|
|
1297
1297
|
}
|
|
1298
1298
|
function Xn(r) {
|
|
1299
|
-
var i = r[
|
|
1300
|
-
return i || (i = r[
|
|
1299
|
+
var i = r[jr];
|
|
1300
|
+
return i || (i = r[jr] = { hoistableStyles: /* @__PURE__ */ new Map(), hoistableScripts: /* @__PURE__ */ new Map() }), i;
|
|
1301
1301
|
}
|
|
1302
1302
|
function Ot(r) {
|
|
1303
|
-
r[
|
|
1303
|
+
r[Er] = !0;
|
|
1304
1304
|
}
|
|
1305
1305
|
var ka = /* @__PURE__ */ new Set(), Ps = {};
|
|
1306
1306
|
function Vt(r, i) {
|
|
@@ -1582,7 +1582,7 @@ Error generating stack: ` + s.message + `
|
|
|
1582
1582
|
);
|
|
1583
1583
|
}
|
|
1584
1584
|
function rn(r, i, s, c, g, b, T, I) {
|
|
1585
|
-
r.name = "", T != null && typeof T != "function" && typeof T != "symbol" && typeof T != "boolean" ? r.type = T : r.removeAttribute("type"), i != null ? T === "number" ? (i === 0 && r.value === "" || r.value != i) && (r.value = "" + un(i)) : r.value !== "" + un(i) && (r.value = "" + un(i)) : T !== "submit" && T !== "reset" || r.removeAttribute("value"), i != null ?
|
|
1585
|
+
r.name = "", T != null && typeof T != "function" && typeof T != "symbol" && typeof T != "boolean" ? r.type = T : r.removeAttribute("type"), i != null ? T === "number" ? (i === 0 && r.value === "" || r.value != i) && (r.value = "" + un(i)) : r.value !== "" + un(i) && (r.value = "" + un(i)) : T !== "submit" && T !== "reset" || r.removeAttribute("value"), i != null ? vr(r, T, un(i)) : s != null ? vr(r, T, un(s)) : c != null && r.removeAttribute("value"), g == null && b != null && (r.defaultChecked = !!b), g != null && (r.checked = g && typeof g != "function" && typeof g != "symbol"), I != null && typeof I != "function" && typeof I != "symbol" && typeof I != "boolean" ? r.name = "" + un(I) : r.removeAttribute("name");
|
|
1586
1586
|
}
|
|
1587
1587
|
function Vr(r, i, s, c, g, b, T, I) {
|
|
1588
1588
|
if (b != null && typeof b != "function" && typeof b != "symbol" && typeof b != "boolean" && (r.type = b), i != null || s != null) {
|
|
@@ -1592,7 +1592,7 @@ Error generating stack: ` + s.message + `
|
|
|
1592
1592
|
}
|
|
1593
1593
|
c = c ?? g, c = typeof c != "function" && typeof c != "symbol" && !!c, r.checked = I ? r.checked : !!c, r.defaultChecked = !!c, T != null && typeof T != "function" && typeof T != "symbol" && typeof T != "boolean" && (r.name = T);
|
|
1594
1594
|
}
|
|
1595
|
-
function
|
|
1595
|
+
function vr(r, i, s) {
|
|
1596
1596
|
i === "number" && Ia(r.ownerDocument) === r || r.defaultValue === "" + s || (r.defaultValue = "" + s);
|
|
1597
1597
|
}
|
|
1598
1598
|
function Yr(r, i, s, c) {
|
|
@@ -1765,10 +1765,10 @@ Error generating stack: ` + s.message + `
|
|
|
1765
1765
|
return ic.test("" + r) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : r;
|
|
1766
1766
|
}
|
|
1767
1767
|
var ae = null;
|
|
1768
|
-
function
|
|
1768
|
+
function me(r) {
|
|
1769
1769
|
return r = r.target || r.srcElement || window, r.correspondingUseElement && (r = r.correspondingUseElement), r.nodeType === 3 ? r.parentNode : r;
|
|
1770
1770
|
}
|
|
1771
|
-
var
|
|
1771
|
+
var Se = null, Ce = null;
|
|
1772
1772
|
function Et(r) {
|
|
1773
1773
|
var i = xn(r);
|
|
1774
1774
|
if (i && (r = i.stateNode)) {
|
|
@@ -1827,7 +1827,7 @@ Error generating stack: ` + s.message + `
|
|
|
1827
1827
|
var c = r(i);
|
|
1828
1828
|
return c;
|
|
1829
1829
|
} finally {
|
|
1830
|
-
if (bt = !1, (
|
|
1830
|
+
if (bt = !1, (Se !== null || Ce !== null) && (kl(), Se && (i = Se, r = Ce, Ce = Se = null, Et(i), r)))
|
|
1831
1831
|
for (i = 0; i < r.length; i++) Et(r[i]);
|
|
1832
1832
|
}
|
|
1833
1833
|
}
|
|
@@ -1864,12 +1864,12 @@ Error generating stack: ` + s.message + `
|
|
|
1864
1864
|
var pn = !(typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u"), Kr = !1;
|
|
1865
1865
|
if (pn)
|
|
1866
1866
|
try {
|
|
1867
|
-
var
|
|
1868
|
-
Object.defineProperty(
|
|
1867
|
+
var Sr = {};
|
|
1868
|
+
Object.defineProperty(Sr, "passive", {
|
|
1869
1869
|
get: function() {
|
|
1870
1870
|
Kr = !0;
|
|
1871
1871
|
}
|
|
1872
|
-
}), window.addEventListener("test",
|
|
1872
|
+
}), window.addEventListener("test", Sr, Sr), window.removeEventListener("test", Sr, Sr);
|
|
1873
1873
|
} catch {
|
|
1874
1874
|
Kr = !1;
|
|
1875
1875
|
}
|
|
@@ -2153,7 +2153,7 @@ Error generating stack: ` + s.message + `
|
|
|
2153
2153
|
return i === "input" ? !!kD[r.type] : i === "textarea";
|
|
2154
2154
|
}
|
|
2155
2155
|
function av(r, i, s, c) {
|
|
2156
|
-
|
|
2156
|
+
Se ? Ce ? Ce.push(c) : Ce = [c] : Se = c, i = Fl(i, "onChange"), 0 < i.length && (s = new Xs(
|
|
2157
2157
|
"onChange",
|
|
2158
2158
|
"change",
|
|
2159
2159
|
null,
|
|
@@ -2195,7 +2195,7 @@ Error generating stack: ` + s.message + `
|
|
|
2195
2195
|
i,
|
|
2196
2196
|
go,
|
|
2197
2197
|
r,
|
|
2198
|
-
|
|
2198
|
+
me(r)
|
|
2199
2199
|
), dn(OD, i);
|
|
2200
2200
|
}
|
|
2201
2201
|
}
|
|
@@ -2390,7 +2390,7 @@ Error generating stack: ` + s.message + `
|
|
|
2390
2390
|
function vc(r) {
|
|
2391
2391
|
return r = r.prototype, !(!r || !r.isReactComponent);
|
|
2392
2392
|
}
|
|
2393
|
-
function
|
|
2393
|
+
function wr(r, i) {
|
|
2394
2394
|
var s = r.alternate;
|
|
2395
2395
|
return s === null ? (s = Nn(
|
|
2396
2396
|
r.tag,
|
|
@@ -2475,22 +2475,22 @@ Error generating stack: ` + s.message + `
|
|
|
2475
2475
|
implementation: r.implementation
|
|
2476
2476
|
}, i;
|
|
2477
2477
|
}
|
|
2478
|
-
var Ei = [], vi = 0, tl = null, nl = 0, zn = [], jn = 0, Ba = null,
|
|
2478
|
+
var Ei = [], vi = 0, tl = null, nl = 0, zn = [], jn = 0, Ba = null, Ar = 1, Tr = "";
|
|
2479
2479
|
function Ua(r, i) {
|
|
2480
2480
|
Ei[vi++] = nl, Ei[vi++] = tl, tl = r, nl = i;
|
|
2481
2481
|
}
|
|
2482
2482
|
function Tv(r, i, s) {
|
|
2483
|
-
zn[jn++] =
|
|
2484
|
-
var c =
|
|
2485
|
-
r =
|
|
2483
|
+
zn[jn++] = Ar, zn[jn++] = Tr, zn[jn++] = Ba, Ba = r;
|
|
2484
|
+
var c = Ar;
|
|
2485
|
+
r = Tr;
|
|
2486
2486
|
var g = 32 - ye(c) - 1;
|
|
2487
2487
|
c &= ~(1 << g), s += 1;
|
|
2488
2488
|
var b = 32 - ye(i) + g;
|
|
2489
2489
|
if (30 < b) {
|
|
2490
2490
|
var T = g - g % 5;
|
|
2491
|
-
b = (c & (1 << T) - 1).toString(32), c >>= T, g -= T,
|
|
2491
|
+
b = (c & (1 << T) - 1).toString(32), c >>= T, g -= T, Ar = 1 << 32 - ye(i) + g | s << g | c, Tr = b + r;
|
|
2492
2492
|
} else
|
|
2493
|
-
|
|
2493
|
+
Ar = 1 << b | s << g | c, Tr = r;
|
|
2494
2494
|
}
|
|
2495
2495
|
function Ac(r) {
|
|
2496
2496
|
r.return !== null && (Ua(r, 1), Tv(r, 1, 0));
|
|
@@ -2499,7 +2499,7 @@ Error generating stack: ` + s.message + `
|
|
|
2499
2499
|
for (; r === tl; )
|
|
2500
2500
|
tl = Ei[--vi], Ei[vi] = null, nl = Ei[--vi], Ei[vi] = null;
|
|
2501
2501
|
for (; r === Ba; )
|
|
2502
|
-
Ba = zn[--jn], zn[jn] = null,
|
|
2502
|
+
Ba = zn[--jn], zn[jn] = null, Tr = zn[--jn], zn[jn] = null, Ar = zn[--jn], zn[jn] = null;
|
|
2503
2503
|
}
|
|
2504
2504
|
var an = null, Rt = null, Ze = !1, Pa = null, lr = !1, xc = Error(a(519));
|
|
2505
2505
|
function za(r) {
|
|
@@ -2606,11 +2606,11 @@ Error generating stack: ` + s.message + `
|
|
|
2606
2606
|
function vo(r) {
|
|
2607
2607
|
Pa === null ? Pa = [r] : Pa.push(r);
|
|
2608
2608
|
}
|
|
2609
|
-
var Rc = H(null), ja = null,
|
|
2609
|
+
var Rc = H(null), ja = null, xr = null;
|
|
2610
2610
|
function Qr(r, i, s) {
|
|
2611
2611
|
D(Rc, i._currentValue), i._currentValue = s;
|
|
2612
2612
|
}
|
|
2613
|
-
function
|
|
2613
|
+
function Rr(r) {
|
|
2614
2614
|
r._currentValue = Rc.current, ee(Rc);
|
|
2615
2615
|
}
|
|
2616
2616
|
function Nc(r, i, s) {
|
|
@@ -2700,7 +2700,7 @@ Error generating stack: ` + s.message + `
|
|
|
2700
2700
|
return !1;
|
|
2701
2701
|
}
|
|
2702
2702
|
function qa(r) {
|
|
2703
|
-
ja = r,
|
|
2703
|
+
ja = r, xr = null, r = r.dependencies, r !== null && (r.firstContext = null);
|
|
2704
2704
|
}
|
|
2705
2705
|
function Jt(r) {
|
|
2706
2706
|
return Cv(ja, r);
|
|
@@ -2710,10 +2710,10 @@ Error generating stack: ` + s.message + `
|
|
|
2710
2710
|
}
|
|
2711
2711
|
function Cv(r, i) {
|
|
2712
2712
|
var s = i._currentValue;
|
|
2713
|
-
if (i = { context: i, memoizedValue: s, next: null },
|
|
2713
|
+
if (i = { context: i, memoizedValue: s, next: null }, xr === null) {
|
|
2714
2714
|
if (r === null) throw Error(a(308));
|
|
2715
|
-
|
|
2716
|
-
} else
|
|
2715
|
+
xr = i, r.dependencies = { lanes: 0, firstContext: i }, r.flags |= 524288;
|
|
2716
|
+
} else xr = xr.next = i;
|
|
2717
2717
|
return s;
|
|
2718
2718
|
}
|
|
2719
2719
|
var qD = typeof AbortController < "u" ? AbortController : function() {
|
|
@@ -3008,13 +3008,13 @@ Error generating stack: ` + s.message + `
|
|
|
3008
3008
|
}
|
|
3009
3009
|
var Ai = H(null), ll = H(0);
|
|
3010
3010
|
function zv(r, i) {
|
|
3011
|
-
r =
|
|
3011
|
+
r = Lr, D(ll, r), D(Ai, i), Lr = r | i.baseLanes;
|
|
3012
3012
|
}
|
|
3013
3013
|
function Uc() {
|
|
3014
|
-
D(ll,
|
|
3014
|
+
D(ll, Lr), D(Ai, Ai.current);
|
|
3015
3015
|
}
|
|
3016
3016
|
function Pc() {
|
|
3017
|
-
|
|
3017
|
+
Lr = ll.current, ee(Ai), ee(ll);
|
|
3018
3018
|
}
|
|
3019
3019
|
var ea = 0, qe = null, at = null, It = null, ul = !1, Ti = !1, Ga = !1, cl = 0, ko = 0, xi = null, YD = 0;
|
|
3020
3020
|
function Ct() {
|
|
@@ -3135,7 +3135,7 @@ Error generating stack: ` + s.message + `
|
|
|
3135
3135
|
s[c] = B;
|
|
3136
3136
|
return i.index++, s;
|
|
3137
3137
|
}
|
|
3138
|
-
function
|
|
3138
|
+
function Nr(r, i) {
|
|
3139
3139
|
return typeof i == "function" ? i(r) : i;
|
|
3140
3140
|
}
|
|
3141
3141
|
function pl(r) {
|
|
@@ -3287,7 +3287,7 @@ Error generating stack: ` + s.message + `
|
|
|
3287
3287
|
pending: null,
|
|
3288
3288
|
lanes: 0,
|
|
3289
3289
|
dispatch: null,
|
|
3290
|
-
lastRenderedReducer:
|
|
3290
|
+
lastRenderedReducer: Nr,
|
|
3291
3291
|
lastRenderedState: r
|
|
3292
3292
|
}, i;
|
|
3293
3293
|
}
|
|
@@ -3295,7 +3295,7 @@ Error generating stack: ` + s.message + `
|
|
|
3295
3295
|
return r.baseState = s, Yc(
|
|
3296
3296
|
r,
|
|
3297
3297
|
at,
|
|
3298
|
-
typeof c == "function" ? c :
|
|
3298
|
+
typeof c == "function" ? c : Nr
|
|
3299
3299
|
);
|
|
3300
3300
|
}
|
|
3301
3301
|
function XD(r, i, s, c, g) {
|
|
@@ -3441,7 +3441,7 @@ Error generating stack: ` + s.message + `
|
|
|
3441
3441
|
r,
|
|
3442
3442
|
i,
|
|
3443
3443
|
$v
|
|
3444
|
-
)[0], r = pl(
|
|
3444
|
+
)[0], r = pl(Nr)[0], typeof i == "object" && i !== null && typeof i.then == "function")
|
|
3445
3445
|
try {
|
|
3446
3446
|
var c = Oo(i);
|
|
3447
3447
|
} catch (T) {
|
|
@@ -3618,7 +3618,7 @@ Error generating stack: ` + s.message + `
|
|
|
3618
3618
|
pending: null,
|
|
3619
3619
|
lanes: 0,
|
|
3620
3620
|
dispatch: null,
|
|
3621
|
-
lastRenderedReducer:
|
|
3621
|
+
lastRenderedReducer: Nr,
|
|
3622
3622
|
lastRenderedState: X
|
|
3623
3623
|
},
|
|
3624
3624
|
next: null
|
|
@@ -3632,7 +3632,7 @@ Error generating stack: ` + s.message + `
|
|
|
3632
3632
|
pending: null,
|
|
3633
3633
|
lanes: 0,
|
|
3634
3634
|
dispatch: null,
|
|
3635
|
-
lastRenderedReducer:
|
|
3635
|
+
lastRenderedReducer: Nr,
|
|
3636
3636
|
lastRenderedState: s
|
|
3637
3637
|
},
|
|
3638
3638
|
next: null
|
|
@@ -3881,7 +3881,7 @@ Error generating stack: ` + s.message + `
|
|
|
3881
3881
|
useId: function() {
|
|
3882
3882
|
var r = hn(), i = ct.identifierPrefix;
|
|
3883
3883
|
if (Ze) {
|
|
3884
|
-
var s =
|
|
3884
|
+
var s = Tr, c = Ar;
|
|
3885
3885
|
s = (c & ~(1 << 32 - ye(c) - 1)).toString(32) + s, i = "«" + i + "R" + s, s = cl++, 0 < s && (i += "H" + s.toString(32)), i += "»";
|
|
3886
3886
|
} else
|
|
3887
3887
|
s = YD++, i = "«" + i + "r" + s.toString(32) + "»";
|
|
@@ -3927,7 +3927,7 @@ Error generating stack: ` + s.message + `
|
|
|
3927
3927
|
useReducer: pl,
|
|
3928
3928
|
useRef: aS,
|
|
3929
3929
|
useState: function() {
|
|
3930
|
-
return pl(
|
|
3930
|
+
return pl(Nr);
|
|
3931
3931
|
},
|
|
3932
3932
|
useDebugValue: Qc,
|
|
3933
3933
|
useDeferredValue: function(r, i) {
|
|
@@ -3940,7 +3940,7 @@ Error generating stack: ` + s.message + `
|
|
|
3940
3940
|
);
|
|
3941
3941
|
},
|
|
3942
3942
|
useTransition: function() {
|
|
3943
|
-
var r = pl(
|
|
3943
|
+
var r = pl(Nr)[0], i = Dt().memoizedState;
|
|
3944
3944
|
return [
|
|
3945
3945
|
typeof r == "boolean" ? r : Oo(r),
|
|
3946
3946
|
i
|
|
@@ -3970,7 +3970,7 @@ Error generating stack: ` + s.message + `
|
|
|
3970
3970
|
useReducer: Wc,
|
|
3971
3971
|
useRef: aS,
|
|
3972
3972
|
useState: function() {
|
|
3973
|
-
return Wc(
|
|
3973
|
+
return Wc(Nr);
|
|
3974
3974
|
},
|
|
3975
3975
|
useDebugValue: Qc,
|
|
3976
3976
|
useDeferredValue: function(r, i) {
|
|
@@ -3983,7 +3983,7 @@ Error generating stack: ` + s.message + `
|
|
|
3983
3983
|
);
|
|
3984
3984
|
},
|
|
3985
3985
|
useTransition: function() {
|
|
3986
|
-
var r = Wc(
|
|
3986
|
+
var r = Wc(Nr)[0], i = Dt().memoizedState;
|
|
3987
3987
|
return [
|
|
3988
3988
|
typeof r == "boolean" ? r : Oo(r),
|
|
3989
3989
|
i
|
|
@@ -4039,7 +4039,7 @@ Error generating stack: ` + s.message + `
|
|
|
4039
4039
|
return G;
|
|
4040
4040
|
}
|
|
4041
4041
|
function g(V, G) {
|
|
4042
|
-
return V =
|
|
4042
|
+
return V = wr(V, G), V.index = 0, V.sibling = null, V;
|
|
4043
4043
|
}
|
|
4044
4044
|
function b(V, G, K) {
|
|
4045
4045
|
return V.index = K, r ? (K = V.alternate, K !== null ? (K = K.index, K < G ? (V.flags |= 67108866, G) : K) : (V.flags |= 67108866, G)) : (V.flags |= 1048576, G);
|
|
@@ -4204,70 +4204,70 @@ Error generating stack: ` + s.message + `
|
|
|
4204
4204
|
return null;
|
|
4205
4205
|
}
|
|
4206
4206
|
function ke(V, G, K, ue) {
|
|
4207
|
-
for (var ve = null, He = null,
|
|
4208
|
-
|
|
4207
|
+
for (var ve = null, He = null, Ae = G, Ne = G = 0, qt = null; Ae !== null && Ne < K.length; Ne++) {
|
|
4208
|
+
Ae.index > Ne ? (qt = Ae, Ae = null) : qt = Ae.sibling;
|
|
4209
4209
|
var Ke = $(
|
|
4210
4210
|
V,
|
|
4211
|
-
|
|
4211
|
+
Ae,
|
|
4212
4212
|
K[Ne],
|
|
4213
4213
|
ue
|
|
4214
4214
|
);
|
|
4215
4215
|
if (Ke === null) {
|
|
4216
|
-
|
|
4216
|
+
Ae === null && (Ae = qt);
|
|
4217
4217
|
break;
|
|
4218
4218
|
}
|
|
4219
|
-
r &&
|
|
4219
|
+
r && Ae && Ke.alternate === null && i(V, Ae), G = b(Ke, G, Ne), He === null ? ve = Ke : He.sibling = Ke, He = Ke, Ae = qt;
|
|
4220
4220
|
}
|
|
4221
4221
|
if (Ne === K.length)
|
|
4222
|
-
return s(V,
|
|
4223
|
-
if (
|
|
4222
|
+
return s(V, Ae), Ze && Ua(V, Ne), ve;
|
|
4223
|
+
if (Ae === null) {
|
|
4224
4224
|
for (; Ne < K.length; Ne++)
|
|
4225
|
-
|
|
4226
|
-
|
|
4225
|
+
Ae = ce(V, K[Ne], ue), Ae !== null && (G = b(
|
|
4226
|
+
Ae,
|
|
4227
4227
|
G,
|
|
4228
4228
|
Ne
|
|
4229
|
-
), He === null ? ve =
|
|
4229
|
+
), He === null ? ve = Ae : He.sibling = Ae, He = Ae);
|
|
4230
4230
|
return Ze && Ua(V, Ne), ve;
|
|
4231
4231
|
}
|
|
4232
|
-
for (
|
|
4232
|
+
for (Ae = c(Ae); Ne < K.length; Ne++)
|
|
4233
4233
|
qt = te(
|
|
4234
|
-
|
|
4234
|
+
Ae,
|
|
4235
4235
|
V,
|
|
4236
4236
|
Ne,
|
|
4237
4237
|
K[Ne],
|
|
4238
4238
|
ue
|
|
4239
|
-
), qt !== null && (r && qt.alternate !== null &&
|
|
4239
|
+
), qt !== null && (r && qt.alternate !== null && Ae.delete(
|
|
4240
4240
|
qt.key === null ? Ne : qt.key
|
|
4241
4241
|
), G = b(
|
|
4242
4242
|
qt,
|
|
4243
4243
|
G,
|
|
4244
4244
|
Ne
|
|
4245
4245
|
), He === null ? ve = qt : He.sibling = qt, He = qt);
|
|
4246
|
-
return r &&
|
|
4246
|
+
return r && Ae.forEach(function(ma) {
|
|
4247
4247
|
return i(V, ma);
|
|
4248
4248
|
}), Ze && Ua(V, Ne), ve;
|
|
4249
4249
|
}
|
|
4250
4250
|
function Re(V, G, K, ue) {
|
|
4251
4251
|
if (K == null) throw Error(a(151));
|
|
4252
|
-
for (var ve = null, He = null,
|
|
4253
|
-
|
|
4254
|
-
var ma = $(V,
|
|
4252
|
+
for (var ve = null, He = null, Ae = G, Ne = G = 0, qt = null, Ke = K.next(); Ae !== null && !Ke.done; Ne++, Ke = K.next()) {
|
|
4253
|
+
Ae.index > Ne ? (qt = Ae, Ae = null) : qt = Ae.sibling;
|
|
4254
|
+
var ma = $(V, Ae, Ke.value, ue);
|
|
4255
4255
|
if (ma === null) {
|
|
4256
|
-
|
|
4256
|
+
Ae === null && (Ae = qt);
|
|
4257
4257
|
break;
|
|
4258
4258
|
}
|
|
4259
|
-
r &&
|
|
4259
|
+
r && Ae && ma.alternate === null && i(V, Ae), G = b(ma, G, Ne), He === null ? ve = ma : He.sibling = ma, He = ma, Ae = qt;
|
|
4260
4260
|
}
|
|
4261
4261
|
if (Ke.done)
|
|
4262
|
-
return s(V,
|
|
4263
|
-
if (
|
|
4262
|
+
return s(V, Ae), Ze && Ua(V, Ne), ve;
|
|
4263
|
+
if (Ae === null) {
|
|
4264
4264
|
for (; !Ke.done; Ne++, Ke = K.next())
|
|
4265
4265
|
Ke = ce(V, Ke.value, ue), Ke !== null && (G = b(Ke, G, Ne), He === null ? ve = Ke : He.sibling = Ke, He = Ke);
|
|
4266
4266
|
return Ze && Ua(V, Ne), ve;
|
|
4267
4267
|
}
|
|
4268
|
-
for (
|
|
4269
|
-
Ke = te(
|
|
4270
|
-
return r &&
|
|
4268
|
+
for (Ae = c(Ae); !Ke.done; Ne++, Ke = K.next())
|
|
4269
|
+
Ke = te(Ae, V, Ne, Ke.value, ue), Ke !== null && (r && Ke.alternate !== null && Ae.delete(Ke.key === null ? Ne : Ke.key), G = b(Ke, G, Ne), He === null ? ve = Ke : He.sibling = Ke, He = Ke);
|
|
4270
|
+
return r && Ae.forEach(function(eM) {
|
|
4271
4271
|
return i(V, eM);
|
|
4272
4272
|
}), Ze && Ua(V, Ne), ve;
|
|
4273
4273
|
}
|
|
@@ -4388,9 +4388,9 @@ Error generating stack: ` + s.message + `
|
|
|
4388
4388
|
ue
|
|
4389
4389
|
);
|
|
4390
4390
|
return Ni = null, ve;
|
|
4391
|
-
} catch (
|
|
4392
|
-
if (
|
|
4393
|
-
var He = Nn(29,
|
|
4391
|
+
} catch (Ae) {
|
|
4392
|
+
if (Ae === To || Ae === ol) throw Ae;
|
|
4393
|
+
var He = Nn(29, Ae, null, V.mode);
|
|
4394
4394
|
return He.lanes = ue, He.return = V, He;
|
|
4395
4395
|
} finally {
|
|
4396
4396
|
}
|
|
@@ -4412,7 +4412,7 @@ Error generating stack: ` + s.message + `
|
|
|
4412
4412
|
function na() {
|
|
4413
4413
|
D(Ut, Ut.current), D(qn, qn.current);
|
|
4414
4414
|
}
|
|
4415
|
-
function
|
|
4415
|
+
function Cr(r) {
|
|
4416
4416
|
ee(qn), ur === r && (ur = null), ee(Ut);
|
|
4417
4417
|
}
|
|
4418
4418
|
var Ut = H(0);
|
|
@@ -4627,7 +4627,7 @@ Error generating stack: ` + s.message + `
|
|
|
4627
4627
|
T,
|
|
4628
4628
|
b,
|
|
4629
4629
|
g
|
|
4630
|
-
), I = qc(), r !== null && !zt ? (Hc(r, i, g),
|
|
4630
|
+
), I = qc(), r !== null && !zt ? (Hc(r, i, g), kr(r, i, g)) : (Ze && I && Ac(i), i.flags |= 1, Yt(r, i, c, g), i.child);
|
|
4631
4631
|
}
|
|
4632
4632
|
function PS(r, i, s, c, g) {
|
|
4633
4633
|
if (r === null) {
|
|
@@ -4650,9 +4650,9 @@ Error generating stack: ` + s.message + `
|
|
|
4650
4650
|
if (b = r.child, !dd(r, g)) {
|
|
4651
4651
|
var T = b.memoizedProps;
|
|
4652
4652
|
if (s = s.compare, s = s !== null ? s : mo, s(T, c) && r.ref === i.ref)
|
|
4653
|
-
return
|
|
4653
|
+
return kr(r, i, g);
|
|
4654
4654
|
}
|
|
4655
|
-
return i.flags |= 1, r =
|
|
4655
|
+
return i.flags |= 1, r = wr(b, c), r.ref = i.ref, r.return = i, i.child = r;
|
|
4656
4656
|
}
|
|
4657
4657
|
function zS(r, i, s, c, g) {
|
|
4658
4658
|
if (r !== null) {
|
|
@@ -4661,7 +4661,7 @@ Error generating stack: ` + s.message + `
|
|
|
4661
4661
|
if (zt = !1, i.pendingProps = c = b, dd(r, g))
|
|
4662
4662
|
(r.flags & 131072) !== 0 && (zt = !0);
|
|
4663
4663
|
else
|
|
4664
|
-
return i.lanes = r.lanes,
|
|
4664
|
+
return i.lanes = r.lanes, kr(r, i, g);
|
|
4665
4665
|
}
|
|
4666
4666
|
return ad(
|
|
4667
4667
|
r,
|
|
@@ -4728,7 +4728,7 @@ Error generating stack: ` + s.message + `
|
|
|
4728
4728
|
c,
|
|
4729
4729
|
void 0,
|
|
4730
4730
|
g
|
|
4731
|
-
), c = qc(), r !== null && !zt ? (Hc(r, i, g),
|
|
4731
|
+
), c = qc(), r !== null && !zt ? (Hc(r, i, g), kr(r, i, g)) : (Ze && c && Ac(i), i.flags |= 1, Yt(r, i, s, g), i.child);
|
|
4732
4732
|
}
|
|
4733
4733
|
function HS(r, i, s, c, g, b) {
|
|
4734
4734
|
return qa(i), i.updateQueue = null, s = qv(
|
|
@@ -4736,7 +4736,7 @@ Error generating stack: ` + s.message + `
|
|
|
4736
4736
|
c,
|
|
4737
4737
|
s,
|
|
4738
4738
|
g
|
|
4739
|
-
), jv(r), c = qc(), r !== null && !zt ? (Hc(r, i, b),
|
|
4739
|
+
), jv(r), c = qc(), r !== null && !zt ? (Hc(r, i, b), kr(r, i, b)) : (Ze && c && Ac(i), i.flags |= 1, Yt(r, i, s, b), i.child);
|
|
4740
4740
|
}
|
|
4741
4741
|
function GS(r, i, s, c, g) {
|
|
4742
4742
|
if (qa(i), i.stateNode === null) {
|
|
@@ -4812,7 +4812,7 @@ Error generating stack: ` + s.message + `
|
|
|
4812
4812
|
null,
|
|
4813
4813
|
s,
|
|
4814
4814
|
g
|
|
4815
|
-
)) : Yt(r, i, s, g), i.memoizedState = b.state, r = i.child) : r =
|
|
4815
|
+
)) : Yt(r, i, s, g), i.memoizedState = b.state, r = i.child) : r = kr(
|
|
4816
4816
|
r,
|
|
4817
4817
|
i,
|
|
4818
4818
|
g
|
|
@@ -4857,7 +4857,7 @@ Error generating stack: ` + s.message + `
|
|
|
4857
4857
|
}
|
|
4858
4858
|
I !== null ? (i.memoizedState = {
|
|
4859
4859
|
dehydrated: I,
|
|
4860
|
-
treeContext: Ba !== null ? { id:
|
|
4860
|
+
treeContext: Ba !== null ? { id: Ar, overflow: Tr } : null,
|
|
4861
4861
|
retryLane: 536870912,
|
|
4862
4862
|
hydrationErrors: null
|
|
4863
4863
|
}, z = Nn(
|
|
@@ -4871,7 +4871,7 @@ Error generating stack: ` + s.message + `
|
|
|
4871
4871
|
}
|
|
4872
4872
|
if (I = i.memoizedState, I !== null && (I = I.dehydrated, I !== null))
|
|
4873
4873
|
return _d(I) ? i.lanes = 32 : i.lanes = 536870912, null;
|
|
4874
|
-
|
|
4874
|
+
Cr(i);
|
|
4875
4875
|
}
|
|
4876
4876
|
return I = c.children, c = c.fallback, g ? (na(), g = i.mode, I = Al(
|
|
4877
4877
|
{ mode: "hidden", children: I },
|
|
@@ -4919,7 +4919,7 @@ Error generating stack: ` + s.message + `
|
|
|
4919
4919
|
s
|
|
4920
4920
|
);
|
|
4921
4921
|
} else if (zt || So(r, i, s, !1), T = (s & r.childLanes) !== 0, zt || T) {
|
|
4922
|
-
if (T = ct, T !== null && (c = s & -s, c = (c & 42) !== 0 ? 1 :
|
|
4922
|
+
if (T = ct, T !== null && (c = s & -s, c = (c & 42) !== 0 ? 1 : Pr(c), c = (c & (T.suspendedLanes | s)) !== 0 ? 0 : c, c !== 0 && c !== z.retryLane))
|
|
4923
4923
|
throw z.retryLane = c, bi(r, c), Dn(T, r, c), BS;
|
|
4924
4924
|
I.data === "$?" || Nd(), i = ud(
|
|
4925
4925
|
r,
|
|
@@ -4929,16 +4929,16 @@ Error generating stack: ` + s.message + `
|
|
|
4929
4929
|
} else
|
|
4930
4930
|
I.data === "$?" ? (i.flags |= 192, i.child = r.child, i = null) : (r = z.treeContext, Rt = tr(
|
|
4931
4931
|
I.nextSibling
|
|
4932
|
-
), an = i, Ze = !0, Pa = null, lr = !1, r !== null && (zn[jn++] =
|
|
4932
|
+
), an = i, Ze = !0, Pa = null, lr = !1, r !== null && (zn[jn++] = Ar, zn[jn++] = Tr, zn[jn++] = Ba, Ar = r.id, Tr = r.overflow, Ba = i), i = ld(
|
|
4933
4933
|
i,
|
|
4934
4934
|
c.children
|
|
4935
4935
|
), i.flags |= 4096);
|
|
4936
4936
|
return i;
|
|
4937
4937
|
}
|
|
4938
|
-
return g ? (na(), g = c.fallback, I = i.mode, z = r.child, Q = z.sibling, c =
|
|
4938
|
+
return g ? (na(), g = c.fallback, I = i.mode, z = r.child, Q = z.sibling, c = wr(z, {
|
|
4939
4939
|
mode: "hidden",
|
|
4940
4940
|
children: c.children
|
|
4941
|
-
}), c.subtreeFlags = z.subtreeFlags & 65011712, Q !== null ? g =
|
|
4941
|
+
}), c.subtreeFlags = z.subtreeFlags & 65011712, Q !== null ? g = wr(Q, g) : (g = Fa(
|
|
4942
4942
|
g,
|
|
4943
4943
|
I,
|
|
4944
4944
|
s,
|
|
@@ -4950,7 +4950,7 @@ Error generating stack: ` + s.message + `
|
|
|
4950
4950
|
r,
|
|
4951
4951
|
T,
|
|
4952
4952
|
s
|
|
4953
|
-
), i.memoizedState = id, c) : (ta(i), s = r.child, r = s.sibling, s =
|
|
4953
|
+
), i.memoizedState = id, c) : (ta(i), s = r.child, r = s.sibling, s = wr(s, {
|
|
4954
4954
|
mode: "visible",
|
|
4955
4955
|
children: c.children
|
|
4956
4956
|
}), s.return = i, s.sibling = null, r !== null && (T = i.deletions, T === null ? (i.deletions = [r], i.flags |= 16) : T.push(r)), i.child = s, i.memoizedState = null, s);
|
|
@@ -5052,7 +5052,7 @@ Error generating stack: ` + s.message + `
|
|
|
5052
5052
|
}
|
|
5053
5053
|
return i.child;
|
|
5054
5054
|
}
|
|
5055
|
-
function
|
|
5055
|
+
function kr(r, i, s) {
|
|
5056
5056
|
if (r !== null && (i.dependencies = r.dependencies), sa |= i.lanes, (s & i.childLanes) === 0)
|
|
5057
5057
|
if (r !== null) {
|
|
5058
5058
|
if (So(
|
|
@@ -5066,8 +5066,8 @@ Error generating stack: ` + s.message + `
|
|
|
5066
5066
|
if (r !== null && i.child !== r.child)
|
|
5067
5067
|
throw Error(a(153));
|
|
5068
5068
|
if (i.child !== null) {
|
|
5069
|
-
for (r = i.child, s =
|
|
5070
|
-
r = r.sibling, s = s.sibling =
|
|
5069
|
+
for (r = i.child, s = wr(r, r.pendingProps), i.child = s, s.return = i; r.sibling !== null; )
|
|
5070
|
+
r = r.sibling, s = s.sibling = wr(r, r.pendingProps), s.return = i;
|
|
5071
5071
|
s.sibling = null;
|
|
5072
5072
|
}
|
|
5073
5073
|
return i.child;
|
|
@@ -5078,14 +5078,14 @@ Error generating stack: ` + s.message + `
|
|
|
5078
5078
|
function tL(r, i, s) {
|
|
5079
5079
|
switch (i.tag) {
|
|
5080
5080
|
case 3:
|
|
5081
|
-
|
|
5081
|
+
we(i, i.stateNode.containerInfo), Qr(i, Bt, r.memoizedState.cache), Eo();
|
|
5082
5082
|
break;
|
|
5083
5083
|
case 27:
|
|
5084
5084
|
case 5:
|
|
5085
5085
|
$e(i);
|
|
5086
5086
|
break;
|
|
5087
5087
|
case 4:
|
|
5088
|
-
|
|
5088
|
+
we(i, i.stateNode.containerInfo);
|
|
5089
5089
|
break;
|
|
5090
5090
|
case 10:
|
|
5091
5091
|
Qr(
|
|
@@ -5097,7 +5097,7 @@ Error generating stack: ` + s.message + `
|
|
|
5097
5097
|
case 13:
|
|
5098
5098
|
var c = i.memoizedState;
|
|
5099
5099
|
if (c !== null)
|
|
5100
|
-
return c.dehydrated !== null ? (ta(i), i.flags |= 128, null) : (s & i.child.childLanes) !== 0 ? VS(r, i, s) : (ta(i), r =
|
|
5100
|
+
return c.dehydrated !== null ? (ta(i), i.flags |= 128, null) : (s & i.child.childLanes) !== 0 ? VS(r, i, s) : (ta(i), r = kr(
|
|
5101
5101
|
r,
|
|
5102
5102
|
i,
|
|
5103
5103
|
s
|
|
@@ -5128,7 +5128,7 @@ Error generating stack: ` + s.message + `
|
|
|
5128
5128
|
case 24:
|
|
5129
5129
|
Qr(i, Bt, r.memoizedState.cache);
|
|
5130
5130
|
}
|
|
5131
|
-
return
|
|
5131
|
+
return kr(r, i, s);
|
|
5132
5132
|
}
|
|
5133
5133
|
function XS(r, i, s) {
|
|
5134
5134
|
if (r !== null)
|
|
@@ -5211,7 +5211,7 @@ Error generating stack: ` + s.message + `
|
|
|
5211
5211
|
);
|
|
5212
5212
|
case 3:
|
|
5213
5213
|
e: {
|
|
5214
|
-
if (
|
|
5214
|
+
if (we(
|
|
5215
5215
|
i,
|
|
5216
5216
|
i.stateNode.containerInfo
|
|
5217
5217
|
), r === null) throw Error(a(387));
|
|
@@ -5266,7 +5266,7 @@ Error generating stack: ` + s.message + `
|
|
|
5266
5266
|
}
|
|
5267
5267
|
else {
|
|
5268
5268
|
if (Eo(), c === g) {
|
|
5269
|
-
i =
|
|
5269
|
+
i = kr(
|
|
5270
5270
|
r,
|
|
5271
5271
|
i,
|
|
5272
5272
|
s
|
|
@@ -5335,7 +5335,7 @@ Error generating stack: ` + s.message + `
|
|
|
5335
5335
|
case 13:
|
|
5336
5336
|
return VS(r, i, s);
|
|
5337
5337
|
case 4:
|
|
5338
|
-
return
|
|
5338
|
+
return we(
|
|
5339
5339
|
i,
|
|
5340
5340
|
i.stateNode.containerInfo
|
|
5341
5341
|
), c = i.pendingProps, r === null ? i.child = Ci(
|
|
@@ -5412,7 +5412,7 @@ Error generating stack: ` + s.message + `
|
|
|
5412
5412
|
}, r === null ? (s = Al(
|
|
5413
5413
|
c,
|
|
5414
5414
|
s
|
|
5415
|
-
), s.ref = i.ref, i.child = s, s.return = i, i = s) : (s =
|
|
5415
|
+
), s.ref = i.ref, i.child = s, s.return = i, i = s) : (s = wr(r.child, c), s.ref = i.ref, i.child = s, s.return = i, i = s), i;
|
|
5416
5416
|
case 22:
|
|
5417
5417
|
return jS(r, i, s);
|
|
5418
5418
|
case 24:
|
|
@@ -5435,7 +5435,7 @@ Error generating stack: ` + s.message + `
|
|
|
5435
5435
|
}
|
|
5436
5436
|
throw Error(a(156, i.tag));
|
|
5437
5437
|
}
|
|
5438
|
-
function
|
|
5438
|
+
function Or(r) {
|
|
5439
5439
|
r.flags |= 4;
|
|
5440
5440
|
}
|
|
5441
5441
|
function KS(r, i) {
|
|
@@ -5493,26 +5493,26 @@ Error generating stack: ` + s.message + `
|
|
|
5493
5493
|
case 1:
|
|
5494
5494
|
return vt(i), null;
|
|
5495
5495
|
case 3:
|
|
5496
|
-
return s = i.stateNode, c = null, r !== null && (c = r.memoizedState.cache), i.memoizedState.cache !== c && (i.flags |= 2048),
|
|
5496
|
+
return s = i.stateNode, c = null, r !== null && (c = r.memoizedState.cache), i.memoizedState.cache !== c && (i.flags |= 2048), Rr(Bt), Qe(), s.pendingContext && (s.context = s.pendingContext, s.pendingContext = null), (r === null || r.child === null) && (yo(i) ? Or(i) : r === null || r.memoizedState.isDehydrated && (i.flags & 256) === 0 || (i.flags |= 1024, Nv())), vt(i), null;
|
|
5497
5497
|
case 26:
|
|
5498
|
-
return s = i.memoizedState, r === null ? (
|
|
5498
|
+
return s = i.memoizedState, r === null ? (Or(i), s !== null ? (vt(i), KS(i, s)) : (vt(i), i.flags &= -16777217)) : s ? s !== r.memoizedState ? (Or(i), vt(i), KS(i, s)) : (vt(i), i.flags &= -16777217) : (r.memoizedProps !== c && Or(i), vt(i), i.flags &= -16777217), null;
|
|
5499
5499
|
case 27:
|
|
5500
5500
|
ft(i), s = de.current;
|
|
5501
5501
|
var g = i.type;
|
|
5502
5502
|
if (r !== null && i.stateNode != null)
|
|
5503
|
-
r.memoizedProps !== c &&
|
|
5503
|
+
r.memoizedProps !== c && Or(i);
|
|
5504
5504
|
else {
|
|
5505
5505
|
if (!c) {
|
|
5506
5506
|
if (i.stateNode === null)
|
|
5507
5507
|
throw Error(a(166));
|
|
5508
5508
|
return vt(i), null;
|
|
5509
5509
|
}
|
|
5510
|
-
r = le.current, yo(i) ? xv(i) : (r = Kw(g, c, s), i.stateNode = r,
|
|
5510
|
+
r = le.current, yo(i) ? xv(i) : (r = Kw(g, c, s), i.stateNode = r, Or(i));
|
|
5511
5511
|
}
|
|
5512
5512
|
return vt(i), null;
|
|
5513
5513
|
case 5:
|
|
5514
5514
|
if (ft(i), s = i.type, r !== null && i.stateNode != null)
|
|
5515
|
-
r.memoizedProps !== c &&
|
|
5515
|
+
r.memoizedProps !== c && Or(i);
|
|
5516
5516
|
else {
|
|
5517
5517
|
if (!c) {
|
|
5518
5518
|
if (i.stateNode === null)
|
|
@@ -5591,13 +5591,13 @@ Error generating stack: ` + s.message + `
|
|
|
5591
5591
|
default:
|
|
5592
5592
|
r = !1;
|
|
5593
5593
|
}
|
|
5594
|
-
r &&
|
|
5594
|
+
r && Or(i);
|
|
5595
5595
|
}
|
|
5596
5596
|
}
|
|
5597
5597
|
return vt(i), i.flags &= -16777217, null;
|
|
5598
5598
|
case 6:
|
|
5599
5599
|
if (r && i.stateNode != null)
|
|
5600
|
-
r.memoizedProps !== c &&
|
|
5600
|
+
r.memoizedProps !== c && Or(i);
|
|
5601
5601
|
else {
|
|
5602
5602
|
if (typeof c != "string" && i.stateNode === null)
|
|
5603
5603
|
throw Error(a(166));
|
|
@@ -5628,9 +5628,9 @@ Error generating stack: ` + s.message + `
|
|
|
5628
5628
|
} else
|
|
5629
5629
|
g = Nv(), r !== null && r.memoizedState !== null && (r.memoizedState.hydrationErrors = g), g = !0;
|
|
5630
5630
|
if (!g)
|
|
5631
|
-
return i.flags & 256 ? (
|
|
5631
|
+
return i.flags & 256 ? (Cr(i), i) : (Cr(i), null);
|
|
5632
5632
|
}
|
|
5633
|
-
if (
|
|
5633
|
+
if (Cr(i), (i.flags & 128) !== 0)
|
|
5634
5634
|
return i.lanes = s, i;
|
|
5635
5635
|
if (s = c !== null, r = r !== null && r.memoizedState !== null, s) {
|
|
5636
5636
|
c = i.child, g = null, c.alternate !== null && c.alternate.memoizedState !== null && c.alternate.memoizedState.cachePool !== null && (g = c.alternate.memoizedState.cachePool.pool);
|
|
@@ -5641,7 +5641,7 @@ Error generating stack: ` + s.message + `
|
|
|
5641
5641
|
case 4:
|
|
5642
5642
|
return Qe(), r === null && Bd(i.stateNode.containerInfo), vt(i), null;
|
|
5643
5643
|
case 10:
|
|
5644
|
-
return
|
|
5644
|
+
return Rr(i.type), vt(i), null;
|
|
5645
5645
|
case 19:
|
|
5646
5646
|
if (ee(Ut), g = i.memoizedState, g === null) return vt(i), null;
|
|
5647
5647
|
if (c = (i.flags & 128) !== 0, b = g.rendering, b === null)
|
|
@@ -5673,9 +5673,9 @@ Error generating stack: ` + s.message + `
|
|
|
5673
5673
|
return g.tail !== null ? (i = g.tail, g.rendering = i, g.tail = i.sibling, g.renderingStartTime = Le(), i.sibling = null, r = Ut.current, D(Ut, c ? r & 1 | 2 : r & 1), i) : (vt(i), null);
|
|
5674
5674
|
case 22:
|
|
5675
5675
|
case 23:
|
|
5676
|
-
return
|
|
5676
|
+
return Cr(i), Pc(), c = i.memoizedState !== null, r !== null ? r.memoizedState !== null !== c && (i.flags |= 8192) : c && (i.flags |= 8192), c ? (s & 536870912) !== 0 && (i.flags & 128) === 0 && (vt(i), i.subtreeFlags & 6 && (i.flags |= 8192)) : vt(i), s = i.updateQueue, s !== null && Tl(i, s.retryQueue), s = null, r !== null && r.memoizedState !== null && r.memoizedState.cachePool !== null && (s = r.memoizedState.cachePool.pool), c = null, i.memoizedState !== null && i.memoizedState.cachePool !== null && (c = i.memoizedState.cachePool.pool), c !== s && (i.flags |= 2048), r !== null && ee(Ha), null;
|
|
5677
5677
|
case 24:
|
|
5678
|
-
return s = null, r !== null && (s = r.memoizedState.cache), i.memoizedState.cache !== s && (i.flags |= 2048),
|
|
5678
|
+
return s = null, r !== null && (s = r.memoizedState.cache), i.memoizedState.cache !== s && (i.flags |= 2048), Rr(Bt), vt(i), null;
|
|
5679
5679
|
case 25:
|
|
5680
5680
|
return null;
|
|
5681
5681
|
case 30:
|
|
@@ -5688,13 +5688,13 @@ Error generating stack: ` + s.message + `
|
|
|
5688
5688
|
case 1:
|
|
5689
5689
|
return r = i.flags, r & 65536 ? (i.flags = r & -65537 | 128, i) : null;
|
|
5690
5690
|
case 3:
|
|
5691
|
-
return
|
|
5691
|
+
return Rr(Bt), Qe(), r = i.flags, (r & 65536) !== 0 && (r & 128) === 0 ? (i.flags = r & -65537 | 128, i) : null;
|
|
5692
5692
|
case 26:
|
|
5693
5693
|
case 27:
|
|
5694
5694
|
case 5:
|
|
5695
5695
|
return ft(i), null;
|
|
5696
5696
|
case 13:
|
|
5697
|
-
if (
|
|
5697
|
+
if (Cr(i), r = i.memoizedState, r !== null && r.dehydrated !== null) {
|
|
5698
5698
|
if (i.alternate === null)
|
|
5699
5699
|
throw Error(a(340));
|
|
5700
5700
|
Eo();
|
|
@@ -5705,12 +5705,12 @@ Error generating stack: ` + s.message + `
|
|
|
5705
5705
|
case 4:
|
|
5706
5706
|
return Qe(), null;
|
|
5707
5707
|
case 10:
|
|
5708
|
-
return
|
|
5708
|
+
return Rr(i.type), null;
|
|
5709
5709
|
case 22:
|
|
5710
5710
|
case 23:
|
|
5711
|
-
return
|
|
5711
|
+
return Cr(i), Pc(), r !== null && ee(Ha), r = i.flags, r & 65536 ? (i.flags = r & -65537 | 128, i) : null;
|
|
5712
5712
|
case 24:
|
|
5713
|
-
return
|
|
5713
|
+
return Rr(Bt), null;
|
|
5714
5714
|
case 25:
|
|
5715
5715
|
return null;
|
|
5716
5716
|
default:
|
|
@@ -5720,7 +5720,7 @@ Error generating stack: ` + s.message + `
|
|
|
5720
5720
|
function QS(r, i) {
|
|
5721
5721
|
switch (Tc(i), i.tag) {
|
|
5722
5722
|
case 3:
|
|
5723
|
-
|
|
5723
|
+
Rr(Bt), Qe();
|
|
5724
5724
|
break;
|
|
5725
5725
|
case 26:
|
|
5726
5726
|
case 27:
|
|
@@ -5731,20 +5731,20 @@ Error generating stack: ` + s.message + `
|
|
|
5731
5731
|
Qe();
|
|
5732
5732
|
break;
|
|
5733
5733
|
case 13:
|
|
5734
|
-
|
|
5734
|
+
Cr(i);
|
|
5735
5735
|
break;
|
|
5736
5736
|
case 19:
|
|
5737
5737
|
ee(Ut);
|
|
5738
5738
|
break;
|
|
5739
5739
|
case 10:
|
|
5740
|
-
|
|
5740
|
+
Rr(i.type);
|
|
5741
5741
|
break;
|
|
5742
5742
|
case 22:
|
|
5743
5743
|
case 23:
|
|
5744
|
-
|
|
5744
|
+
Cr(i), Pc(), r !== null && ee(Ha);
|
|
5745
5745
|
break;
|
|
5746
5746
|
case 24:
|
|
5747
|
-
|
|
5747
|
+
Rr(Bt);
|
|
5748
5748
|
}
|
|
5749
5749
|
}
|
|
5750
5750
|
function Bo(r, i) {
|
|
@@ -5926,7 +5926,7 @@ Error generating stack: ` + s.message + `
|
|
|
5926
5926
|
st(r, r.return, b);
|
|
5927
5927
|
}
|
|
5928
5928
|
}
|
|
5929
|
-
var
|
|
5929
|
+
var Ir = !1, kt = !1, gd = !1, nw = typeof WeakSet == "function" ? WeakSet : Set, jt = null;
|
|
5930
5930
|
function aL(r, i) {
|
|
5931
5931
|
if (r = r.containerInfo, zd = Gl, r = fv(r), fc(r)) {
|
|
5932
5932
|
if ("selectionStart" in r)
|
|
@@ -6102,14 +6102,14 @@ Error generating stack: ` + s.message + `
|
|
|
6102
6102
|
), IL(r, s))));
|
|
6103
6103
|
break;
|
|
6104
6104
|
case 22:
|
|
6105
|
-
if (c = s.memoizedState !== null ||
|
|
6106
|
-
i = i !== null && i.memoizedState !== null || kt, g =
|
|
6105
|
+
if (c = s.memoizedState !== null || Ir, !c) {
|
|
6106
|
+
i = i !== null && i.memoizedState !== null || kt, g = Ir;
|
|
6107
6107
|
var b = kt;
|
|
6108
|
-
|
|
6108
|
+
Ir = c, (kt = i) && !b ? ia(
|
|
6109
6109
|
r,
|
|
6110
6110
|
s,
|
|
6111
6111
|
(s.subtreeFlags & 8772) !== 0
|
|
6112
|
-
) : aa(r, s),
|
|
6112
|
+
) : aa(r, s), Ir = g, kt = b;
|
|
6113
6113
|
}
|
|
6114
6114
|
break;
|
|
6115
6115
|
case 30:
|
|
@@ -6123,7 +6123,7 @@ Error generating stack: ` + s.message + `
|
|
|
6123
6123
|
i !== null && (r.alternate = null, aw(i)), r.child = null, r.deletions = null, r.sibling = null, r.tag === 5 && (i = r.stateNode, i !== null && Fn(i)), r.stateNode = null, r.return = null, r.dependencies = null, r.memoizedProps = null, r.memoizedState = null, r.pendingProps = null, r.stateNode = null, r.updateQueue = null;
|
|
6124
6124
|
}
|
|
6125
6125
|
var yt = null, gn = !1;
|
|
6126
|
-
function
|
|
6126
|
+
function Dr(r, i, s) {
|
|
6127
6127
|
for (s = s.child; s !== null; )
|
|
6128
6128
|
iw(r, i, s), s = s.sibling;
|
|
6129
6129
|
}
|
|
@@ -6135,7 +6135,7 @@ Error generating stack: ` + s.message + `
|
|
|
6135
6135
|
}
|
|
6136
6136
|
switch (s.tag) {
|
|
6137
6137
|
case 26:
|
|
6138
|
-
kt || cr(s, i),
|
|
6138
|
+
kt || cr(s, i), Dr(
|
|
6139
6139
|
r,
|
|
6140
6140
|
i,
|
|
6141
6141
|
s
|
|
@@ -6144,7 +6144,7 @@ Error generating stack: ` + s.message + `
|
|
|
6144
6144
|
case 27:
|
|
6145
6145
|
kt || cr(s, i);
|
|
6146
6146
|
var c = yt, g = gn;
|
|
6147
|
-
da(s.type) && (yt = s.stateNode, gn = !1),
|
|
6147
|
+
da(s.type) && (yt = s.stateNode, gn = !1), Dr(
|
|
6148
6148
|
r,
|
|
6149
6149
|
i,
|
|
6150
6150
|
s
|
|
@@ -6153,7 +6153,7 @@ Error generating stack: ` + s.message + `
|
|
|
6153
6153
|
case 5:
|
|
6154
6154
|
kt || cr(s, i);
|
|
6155
6155
|
case 6:
|
|
6156
|
-
if (c = yt, g = gn, yt = null,
|
|
6156
|
+
if (c = yt, g = gn, yt = null, Dr(
|
|
6157
6157
|
r,
|
|
6158
6158
|
i,
|
|
6159
6159
|
s
|
|
@@ -6186,7 +6186,7 @@ Error generating stack: ` + s.message + `
|
|
|
6186
6186
|
), es(r)) : Ww(yt, s.stateNode));
|
|
6187
6187
|
break;
|
|
6188
6188
|
case 4:
|
|
6189
|
-
c = yt, g = gn, yt = s.stateNode.containerInfo, gn = !0,
|
|
6189
|
+
c = yt, g = gn, yt = s.stateNode.containerInfo, gn = !0, Dr(
|
|
6190
6190
|
r,
|
|
6191
6191
|
i,
|
|
6192
6192
|
s
|
|
@@ -6196,7 +6196,7 @@ Error generating stack: ` + s.message + `
|
|
|
6196
6196
|
case 11:
|
|
6197
6197
|
case 14:
|
|
6198
6198
|
case 15:
|
|
6199
|
-
kt || ra(2, s, i), kt || ra(4, s, i),
|
|
6199
|
+
kt || ra(2, s, i), kt || ra(4, s, i), Dr(
|
|
6200
6200
|
r,
|
|
6201
6201
|
i,
|
|
6202
6202
|
s
|
|
@@ -6207,28 +6207,28 @@ Error generating stack: ` + s.message + `
|
|
|
6207
6207
|
s,
|
|
6208
6208
|
i,
|
|
6209
6209
|
c
|
|
6210
|
-
)),
|
|
6210
|
+
)), Dr(
|
|
6211
6211
|
r,
|
|
6212
6212
|
i,
|
|
6213
6213
|
s
|
|
6214
6214
|
);
|
|
6215
6215
|
break;
|
|
6216
6216
|
case 21:
|
|
6217
|
-
|
|
6217
|
+
Dr(
|
|
6218
6218
|
r,
|
|
6219
6219
|
i,
|
|
6220
6220
|
s
|
|
6221
6221
|
);
|
|
6222
6222
|
break;
|
|
6223
6223
|
case 22:
|
|
6224
|
-
kt = (c = kt) || s.memoizedState !== null,
|
|
6224
|
+
kt = (c = kt) || s.memoizedState !== null, Dr(
|
|
6225
6225
|
r,
|
|
6226
6226
|
i,
|
|
6227
6227
|
s
|
|
6228
6228
|
), kt = c;
|
|
6229
6229
|
break;
|
|
6230
6230
|
default:
|
|
6231
|
-
|
|
6231
|
+
Dr(
|
|
6232
6232
|
r,
|
|
6233
6233
|
i,
|
|
6234
6234
|
s
|
|
@@ -6303,7 +6303,7 @@ Error generating stack: ` + s.message + `
|
|
|
6303
6303
|
Cn(i, r), kn(r), c & 4 && (ra(3, r, r.return), Bo(3, r), ra(5, r, r.return));
|
|
6304
6304
|
break;
|
|
6305
6305
|
case 1:
|
|
6306
|
-
Cn(i, r), kn(r), c & 512 && (kt || s === null || cr(s, s.return)), c & 64 &&
|
|
6306
|
+
Cn(i, r), kn(r), c & 512 && (kt || s === null || cr(s, s.return)), c & 64 && Ir && (r = r.updateQueue, r !== null && (c = r.callbacks, c !== null && (s = r.shared.hiddenCallbacks, r.shared.hiddenCallbacks = s === null ? c : s.concat(c))));
|
|
6307
6307
|
break;
|
|
6308
6308
|
case 26:
|
|
6309
6309
|
var g = er;
|
|
@@ -6316,7 +6316,7 @@ Error generating stack: ` + s.message + `
|
|
|
6316
6316
|
c = r.type, s = r.memoizedProps, g = g.ownerDocument || g;
|
|
6317
6317
|
t: switch (c) {
|
|
6318
6318
|
case "title":
|
|
6319
|
-
b = g.getElementsByTagName("title")[0], (!b || b[
|
|
6319
|
+
b = g.getElementsByTagName("title")[0], (!b || b[Er] || b[Pt] || b.namespaceURI === "http://www.w3.org/2000/svg" || b.hasAttribute("itemprop")) && (b = g.createElement(c), g.head.insertBefore(
|
|
6320
6320
|
b,
|
|
6321
6321
|
g.querySelector("head > title")
|
|
6322
6322
|
)), Xt(b, c, s), b[Pt] = r, Ot(b), c = b;
|
|
@@ -6440,9 +6440,9 @@ Error generating stack: ` + s.message + `
|
|
|
6440
6440
|
break;
|
|
6441
6441
|
case 22:
|
|
6442
6442
|
g = r.memoizedState !== null;
|
|
6443
|
-
var z = s !== null && s.memoizedState !== null, Q =
|
|
6444
|
-
if (
|
|
6445
|
-
e: for (i = r.stateNode, i._visibility = g ? i._visibility & -2 : i._visibility | 1, g && (s === null || z ||
|
|
6443
|
+
var z = s !== null && s.memoizedState !== null, Q = Ir, oe = kt;
|
|
6444
|
+
if (Ir = Q || g, kt = oe || z, Cn(i, r), kt = oe, Ir = Q, kn(r), c & 8192)
|
|
6445
|
+
e: for (i = r.stateNode, i._visibility = g ? i._visibility & -2 : i._visibility | 1, g && (s === null || z || Ir || kt || Va(r)), s = null, i = r; ; ) {
|
|
6446
6446
|
if (i.tag === 5 || i.tag === 26) {
|
|
6447
6447
|
if (s === null) {
|
|
6448
6448
|
z = s = i;
|
|
@@ -7008,7 +7008,7 @@ Error generating stack: ` + s.message + `
|
|
|
7008
7008
|
var i = Jt(Bt), s = i.data.get(r);
|
|
7009
7009
|
return s === void 0 && (s = r(), i.data.set(r, s)), s;
|
|
7010
7010
|
}
|
|
7011
|
-
}, sL = typeof WeakMap == "function" ? WeakMap : Map, tt = 0, ct = null, Ge = null, We = 0, nt = 0, On = null, oa = !1, Ii = !1, Ed = !1,
|
|
7011
|
+
}, sL = typeof WeakMap == "function" ? WeakMap : Map, tt = 0, ct = null, Ge = null, We = 0, nt = 0, On = null, oa = !1, Ii = !1, Ed = !1, Lr = 0, Nt = 0, sa = 0, Ya = 0, vd = 0, Hn = 0, Di = 0, qo = null, mn = null, Sd = !1, wd = 0, Nl = 1 / 0, Cl = null, la = null, Wt = 0, ua = null, Li = null, Mi = 0, Ad = 0, Td = null, hw = null, Ho = 0, xd = null;
|
|
7012
7012
|
function In() {
|
|
7013
7013
|
if ((tt & 2) !== 0 && We !== 0)
|
|
7014
7014
|
return We & -We;
|
|
@@ -7233,7 +7233,7 @@ Error generating stack: ` + s.message + `
|
|
|
7233
7233
|
if (nt === 0)
|
|
7234
7234
|
var r = Ge.return;
|
|
7235
7235
|
else
|
|
7236
|
-
r = Ge,
|
|
7236
|
+
r = Ge, xr = ja = null, Gc(r), Ni = null, Lo = 0, r = Ge;
|
|
7237
7237
|
for (; r !== null; )
|
|
7238
7238
|
QS(r.alternate, r), r = r.return;
|
|
7239
7239
|
Ge = null;
|
|
@@ -7241,14 +7241,14 @@ Error generating stack: ` + s.message + `
|
|
|
7241
7241
|
}
|
|
7242
7242
|
function Fi(r, i) {
|
|
7243
7243
|
var s = r.timeoutHandle;
|
|
7244
|
-
s !== -1 && (r.timeoutHandle = -1, RL(s)), s = r.cancelPendingCommit, s !== null && (r.cancelPendingCommit = null, s()), Rd(), ct = r, Ge = s =
|
|
7244
|
+
s !== -1 && (r.timeoutHandle = -1, RL(s)), s = r.cancelPendingCommit, s !== null && (r.cancelPendingCommit = null, s()), Rd(), ct = r, Ge = s = wr(r.current, null), We = i, nt = 0, On = null, oa = !1, Ii = xt(r, i), Ed = !1, Di = Hn = vd = Ya = sa = Nt = 0, mn = qo = null, Sd = !1, (i & 8) !== 0 && (i |= i & 32);
|
|
7245
7245
|
var c = r.entangledLanes;
|
|
7246
7246
|
if (c !== 0)
|
|
7247
7247
|
for (r = r.entanglements, c &= i; 0 < c; ) {
|
|
7248
7248
|
var g = 31 - ye(c), b = 1 << g;
|
|
7249
7249
|
i |= r[g], c &= ~b;
|
|
7250
7250
|
}
|
|
7251
|
-
return
|
|
7251
|
+
return Lr = i, Zs(), s;
|
|
7252
7252
|
}
|
|
7253
7253
|
function yw(r, i) {
|
|
7254
7254
|
qe = null, j.H = ml, i === To || i === ol ? (i = Fv(), nt = 3) : i === Dv ? (i = Fv(), nt = 4) : nt = i === BS ? 8 : i !== null && typeof i == "object" && typeof i.then == "function" ? 6 : 1, On = i, Ge === null && (Nt = 1, Sl(
|
|
@@ -7307,7 +7307,7 @@ Error generating stack: ` + s.message + `
|
|
|
7307
7307
|
yw(r, oe);
|
|
7308
7308
|
}
|
|
7309
7309
|
while (!0);
|
|
7310
|
-
return i && r.shellSuspendCounter++,
|
|
7310
|
+
return i && r.shellSuspendCounter++, xr = ja = null, tt = c, j.H = g, j.A = b, Ge === null && (ct = null, We = 0, Zs()), T;
|
|
7311
7311
|
}
|
|
7312
7312
|
function uL() {
|
|
7313
7313
|
for (; Ge !== null; ) Sw(Ge);
|
|
@@ -7385,14 +7385,14 @@ Error generating stack: ` + s.message + `
|
|
|
7385
7385
|
yw(r, oe);
|
|
7386
7386
|
}
|
|
7387
7387
|
while (!0);
|
|
7388
|
-
return
|
|
7388
|
+
return xr = ja = null, j.H = c, j.A = g, tt = s, Ge !== null ? 0 : (ct = null, We = 0, Zs(), Nt);
|
|
7389
7389
|
}
|
|
7390
7390
|
function dL() {
|
|
7391
7391
|
for (; Ge !== null && !ge(); )
|
|
7392
7392
|
Sw(Ge);
|
|
7393
7393
|
}
|
|
7394
7394
|
function Sw(r) {
|
|
7395
|
-
var i = XS(r.alternate, r,
|
|
7395
|
+
var i = XS(r.alternate, r, Lr);
|
|
7396
7396
|
r.memoizedProps = r.pendingProps, i === null ? Ol(r) : Ge = i;
|
|
7397
7397
|
}
|
|
7398
7398
|
function ww(r) {
|
|
@@ -7422,12 +7422,12 @@ Error generating stack: ` + s.message + `
|
|
|
7422
7422
|
case 5:
|
|
7423
7423
|
Gc(i);
|
|
7424
7424
|
default:
|
|
7425
|
-
QS(s, i), i = Ge = Av(i,
|
|
7425
|
+
QS(s, i), i = Ge = Av(i, Lr), i = XS(s, i, Lr);
|
|
7426
7426
|
}
|
|
7427
7427
|
r.memoizedProps = r.pendingProps, i === null ? Ol(r) : Ge = i;
|
|
7428
7428
|
}
|
|
7429
7429
|
function Bi(r, i, s, c) {
|
|
7430
|
-
|
|
7430
|
+
xr = ja = null, Gc(i), Ni = null, Lo = 0;
|
|
7431
7431
|
var g = i.return;
|
|
7432
7432
|
try {
|
|
7433
7433
|
if (eL(
|
|
@@ -7467,7 +7467,7 @@ Error generating stack: ` + s.message + `
|
|
|
7467
7467
|
var s = nL(
|
|
7468
7468
|
i.alternate,
|
|
7469
7469
|
i,
|
|
7470
|
-
|
|
7470
|
+
Lr
|
|
7471
7471
|
);
|
|
7472
7472
|
if (s !== null) {
|
|
7473
7473
|
Ge = s;
|
|
@@ -7611,7 +7611,7 @@ Error generating stack: ` + s.message + `
|
|
|
7611
7611
|
var r = ua, i = Li, s = Mi, c = hw;
|
|
7612
7612
|
(i.subtreeFlags & 10256) !== 0 || (i.flags & 10256) !== 0 ? Wt = 5 : (Wt = 0, Li = ua = null, Cw(r, r.pendingLanes));
|
|
7613
7613
|
var g = r.pendingLanes;
|
|
7614
|
-
if (g === 0 && (la = null),
|
|
7614
|
+
if (g === 0 && (la = null), zr(s), i = i.stateNode, ie && typeof ie.onCommitFiberRoot == "function")
|
|
7615
7615
|
try {
|
|
7616
7616
|
ie.onCommitFiberRoot(
|
|
7617
7617
|
ne,
|
|
@@ -7647,7 +7647,7 @@ Error generating stack: ` + s.message + `
|
|
|
7647
7647
|
if (Wt !== 5) return !1;
|
|
7648
7648
|
var r = ua, i = Ad;
|
|
7649
7649
|
Ad = 0;
|
|
7650
|
-
var s =
|
|
7650
|
+
var s = zr(Mi), c = j.T, g = J.p;
|
|
7651
7651
|
try {
|
|
7652
7652
|
J.p = 32 > s ? 32 : s, j.T = null, s = Td, Td = null;
|
|
7653
7653
|
var b = ua, T = Mi;
|
|
@@ -7795,7 +7795,7 @@ Error generating stack: ` + s.message + `
|
|
|
7795
7795
|
return c !== null && c !== null && Je(c), r.callbackNode = null, r.callbackPriority = 0;
|
|
7796
7796
|
if ((s & 3) === 0 || xt(r, s)) {
|
|
7797
7797
|
if (i = s & -s, i === r.callbackPriority) return i;
|
|
7798
|
-
switch (c !== null && Je(c),
|
|
7798
|
+
switch (c !== null && Je(c), zr(s)) {
|
|
7799
7799
|
case 2:
|
|
7800
7800
|
case 8:
|
|
7801
7801
|
s = Ie;
|
|
@@ -8047,7 +8047,7 @@ Error generating stack: ` + s.message + `
|
|
|
8047
8047
|
c = c.return;
|
|
8048
8048
|
}
|
|
8049
8049
|
dn(function() {
|
|
8050
|
-
var Q = b, oe =
|
|
8050
|
+
var Q = b, oe = me(s), ce = [];
|
|
8051
8051
|
e: {
|
|
8052
8052
|
var $ = vv.get(r);
|
|
8053
8053
|
if ($ !== void 0) {
|
|
@@ -8220,7 +8220,7 @@ Error generating stack: ` + s.message + `
|
|
|
8220
8220
|
);
|
|
8221
8221
|
break e;
|
|
8222
8222
|
}
|
|
8223
|
-
He && He(r, $, Q), r === "focusout" && Q && $.type === "number" && Q.memoizedProps.value != null &&
|
|
8223
|
+
He && He(r, $, Q), r === "focusout" && Q && $.type === "number" && Q.memoizedProps.value != null && vr($, "number", $.value);
|
|
8224
8224
|
}
|
|
8225
8225
|
switch (He = Q ? Ca(Q) : window, r) {
|
|
8226
8226
|
case "focusin":
|
|
@@ -8243,7 +8243,7 @@ Error generating stack: ` + s.message + `
|
|
|
8243
8243
|
case "keyup":
|
|
8244
8244
|
hv(ce, s, oe);
|
|
8245
8245
|
}
|
|
8246
|
-
var
|
|
8246
|
+
var Ae;
|
|
8247
8247
|
if (cc)
|
|
8248
8248
|
e: {
|
|
8249
8249
|
switch (r) {
|
|
@@ -8261,13 +8261,13 @@ Error generating stack: ` + s.message + `
|
|
|
8261
8261
|
}
|
|
8262
8262
|
else
|
|
8263
8263
|
fi ? tv(r, s) && (Ne = "onCompositionEnd") : r === "keydown" && s.keyCode === 229 && (Ne = "onCompositionStart");
|
|
8264
|
-
Ne && (JE && s.locale !== "ko" && (fi || Ne !== "onCompositionStart" ? Ne === "onCompositionEnd" && fi && (
|
|
8264
|
+
Ne && (JE && s.locale !== "ko" && (fi || Ne !== "onCompositionStart" ? Ne === "onCompositionEnd" && fi && (Ae = WE()) : (Bn = oe, uo = "value" in Bn ? Bn.value : Bn.textContent, fi = !0)), He = Fl(Q, Ne), 0 < He.length && (Ne = new QE(
|
|
8265
8265
|
Ne,
|
|
8266
8266
|
r,
|
|
8267
8267
|
null,
|
|
8268
8268
|
s,
|
|
8269
8269
|
oe
|
|
8270
|
-
), ce.push({ event: Ne, listeners: He }),
|
|
8270
|
+
), ce.push({ event: Ne, listeners: He }), Ae ? Ne.data = Ae : (Ae = nv(s), Ae !== null && (Ne.data = Ae)))), (Ae = RD ? ND(r, s) : CD(r, s)) && (Ne = Fl(Q, "onBeforeInput"), 0 < Ne.length && (He = new QE(
|
|
8271
8271
|
"onBeforeInput",
|
|
8272
8272
|
"beforeinput",
|
|
8273
8273
|
null,
|
|
@@ -8276,7 +8276,7 @@ Error generating stack: ` + s.message + `
|
|
|
8276
8276
|
), ce.push({
|
|
8277
8277
|
event: He,
|
|
8278
8278
|
listeners: Ne
|
|
8279
|
-
}), He.data =
|
|
8279
|
+
}), He.data = Ae)), yL(
|
|
8280
8280
|
ce,
|
|
8281
8281
|
r,
|
|
8282
8282
|
Q,
|
|
@@ -9130,7 +9130,7 @@ Error generating stack: ` + s.message + `
|
|
|
9130
9130
|
if (s & 1 && Yo(T.documentElement), s & 2 && Yo(T.body), s & 4)
|
|
9131
9131
|
for (s = T.head, Yo(s), T = s.firstChild; T; ) {
|
|
9132
9132
|
var I = T.nextSibling, z = T.nodeName;
|
|
9133
|
-
T[
|
|
9133
|
+
T[Er] || z === "SCRIPT" || z === "STYLE" || z === "LINK" && T.rel.toLowerCase() === "stylesheet" || s.removeChild(T), T = I;
|
|
9134
9134
|
}
|
|
9135
9135
|
}
|
|
9136
9136
|
if (g === 0) {
|
|
@@ -9171,7 +9171,7 @@ Error generating stack: ` + s.message + `
|
|
|
9171
9171
|
if (!c && (r.nodeName !== "INPUT" || r.type !== "hidden"))
|
|
9172
9172
|
break;
|
|
9173
9173
|
} else if (c) {
|
|
9174
|
-
if (!r[
|
|
9174
|
+
if (!r[Er])
|
|
9175
9175
|
switch (i) {
|
|
9176
9176
|
case "meta":
|
|
9177
9177
|
if (!r.hasAttribute("itemprop")) break;
|
|
@@ -9272,7 +9272,7 @@ Error generating stack: ` + s.message + `
|
|
|
9272
9272
|
function Pl(r) {
|
|
9273
9273
|
return typeof r.getRootNode == "function" ? r.getRootNode() : r.nodeType === 9 ? r : r.ownerDocument;
|
|
9274
9274
|
}
|
|
9275
|
-
var
|
|
9275
|
+
var Mr = J.d;
|
|
9276
9276
|
J.d = {
|
|
9277
9277
|
f: DL,
|
|
9278
9278
|
r: LL,
|
|
@@ -9285,12 +9285,12 @@ Error generating stack: ` + s.message + `
|
|
|
9285
9285
|
M: jL
|
|
9286
9286
|
};
|
|
9287
9287
|
function DL() {
|
|
9288
|
-
var r =
|
|
9288
|
+
var r = Mr.f(), i = kl();
|
|
9289
9289
|
return r || i;
|
|
9290
9290
|
}
|
|
9291
9291
|
function LL(r) {
|
|
9292
9292
|
var i = xn(r);
|
|
9293
|
-
i !== null && i.tag === 5 && i.type === "form" ? mS(i) :
|
|
9293
|
+
i !== null && i.tag === 5 && i.type === "form" ? mS(i) : Mr.r(r);
|
|
9294
9294
|
}
|
|
9295
9295
|
var zi = typeof document > "u" ? null : document;
|
|
9296
9296
|
function Zw(r, i, s) {
|
|
@@ -9301,13 +9301,13 @@ Error generating stack: ` + s.message + `
|
|
|
9301
9301
|
}
|
|
9302
9302
|
}
|
|
9303
9303
|
function ML(r) {
|
|
9304
|
-
|
|
9304
|
+
Mr.D(r), Zw("dns-prefetch", r, null);
|
|
9305
9305
|
}
|
|
9306
9306
|
function FL(r, i) {
|
|
9307
|
-
|
|
9307
|
+
Mr.C(r, i), Zw("preconnect", r, i);
|
|
9308
9308
|
}
|
|
9309
9309
|
function BL(r, i, s) {
|
|
9310
|
-
|
|
9310
|
+
Mr.L(r, i, s);
|
|
9311
9311
|
var c = zi;
|
|
9312
9312
|
if (c && r && i) {
|
|
9313
9313
|
var g = 'link[rel="preload"][as="' + cn(i) + '"]';
|
|
@@ -9335,7 +9335,7 @@ Error generating stack: ` + s.message + `
|
|
|
9335
9335
|
}
|
|
9336
9336
|
}
|
|
9337
9337
|
function UL(r, i) {
|
|
9338
|
-
|
|
9338
|
+
Mr.m(r, i);
|
|
9339
9339
|
var s = zi;
|
|
9340
9340
|
if (s && r) {
|
|
9341
9341
|
var c = i && typeof i.as == "string" ? i.as : "script", g = 'link[rel="modulepreload"][as="' + cn(c) + '"][href="' + cn(r) + '"]', b = g;
|
|
@@ -9364,7 +9364,7 @@ Error generating stack: ` + s.message + `
|
|
|
9364
9364
|
}
|
|
9365
9365
|
}
|
|
9366
9366
|
function PL(r, i, s) {
|
|
9367
|
-
|
|
9367
|
+
Mr.S(r, i, s);
|
|
9368
9368
|
var c = zi;
|
|
9369
9369
|
if (c && r) {
|
|
9370
9370
|
var g = Xn(c).hoistableStyles, b = ji(r);
|
|
@@ -9400,7 +9400,7 @@ Error generating stack: ` + s.message + `
|
|
|
9400
9400
|
}
|
|
9401
9401
|
}
|
|
9402
9402
|
function zL(r, i) {
|
|
9403
|
-
|
|
9403
|
+
Mr.X(r, i);
|
|
9404
9404
|
var s = zi;
|
|
9405
9405
|
if (s && r) {
|
|
9406
9406
|
var c = Xn(s).hoistableScripts, g = qi(r), b = c.get(g);
|
|
@@ -9413,7 +9413,7 @@ Error generating stack: ` + s.message + `
|
|
|
9413
9413
|
}
|
|
9414
9414
|
}
|
|
9415
9415
|
function jL(r, i) {
|
|
9416
|
-
|
|
9416
|
+
Mr.M(r, i);
|
|
9417
9417
|
var s = zi;
|
|
9418
9418
|
if (s && r) {
|
|
9419
9419
|
var c = Xn(s).hoistableScripts, g = qi(r), b = c.get(g);
|
|
@@ -9582,7 +9582,7 @@ Error generating stack: ` + s.message + `
|
|
|
9582
9582
|
if (c.has(r)) return c;
|
|
9583
9583
|
for (c.set(r, null), s = s.getElementsByTagName(r), g = 0; g < s.length; g++) {
|
|
9584
9584
|
var b = s[g];
|
|
9585
|
-
if (!(b[
|
|
9585
|
+
if (!(b[Er] || b[Pt] || r === "link" && b.getAttribute("rel") === "stylesheet") && b.namespaceURI !== "http://www.w3.org/2000/svg") {
|
|
9586
9586
|
var T = b.getAttribute(i) || "";
|
|
9587
9587
|
T = r + T;
|
|
9588
9588
|
var I = c.get(T);
|
|
@@ -9824,7 +9824,7 @@ Error generating stack: ` + s.message + `
|
|
|
9824
9824
|
}
|
|
9825
9825
|
}
|
|
9826
9826
|
function Zd(r) {
|
|
9827
|
-
return r =
|
|
9827
|
+
return r = me(r), Jd(r);
|
|
9828
9828
|
}
|
|
9829
9829
|
var _l = null;
|
|
9830
9830
|
function Jd(r) {
|
|
@@ -10040,7 +10040,7 @@ Error generating stack: ` + s.message + `
|
|
|
10040
10040
|
r.blockedOn = i, tc(r.priority, function() {
|
|
10041
10041
|
if (s.tag === 13) {
|
|
10042
10042
|
var c = In();
|
|
10043
|
-
c =
|
|
10043
|
+
c = Pr(c);
|
|
10044
10044
|
var g = bi(s, c);
|
|
10045
10045
|
g !== null && Dn(g, s, c), Kd(s, c);
|
|
10046
10046
|
}
|
|
@@ -10232,7 +10232,7 @@ Error generating stack: ` + s.message + `
|
|
|
10232
10232
|
I,
|
|
10233
10233
|
z,
|
|
10234
10234
|
Q
|
|
10235
|
-
), i.context = iA(null), s = i.current, c = In(), c =
|
|
10235
|
+
), i.context = iA(null), s = i.current, c = In(), c = Pr(c), g = Jr(c), g.callback = null, $r(s, g, c), s = c, i.current.lanes = s, An(i, s), pr(i), r[gt] = i.current, Bd(r), new Xl(i);
|
|
10236
10236
|
}, ns.version = "19.1.1", ns;
|
|
10237
10237
|
}
|
|
10238
10238
|
var TA;
|
|
@@ -14991,8 +14991,8 @@ function IB(e, t, n) {
|
|
|
14991
14991
|
}
|
|
14992
14992
|
function w(D) {
|
|
14993
14993
|
if (D === null || D === 47 || D === 62 || lt(D)) {
|
|
14994
|
-
const le = D === 47,
|
|
14995
|
-
return !le && !l && tT.includes(
|
|
14994
|
+
const le = D === 47, be = u.toLowerCase();
|
|
14995
|
+
return !le && !l && tT.includes(be) ? (o = 1, a.interrupt ? t(D) : W(D)) : RB.includes(u.toLowerCase()) ? (o = 6, le ? (e.consume(D), x) : a.interrupt ? t(D) : W(D)) : (o = 7, a.interrupt && !a.parser.lazy[a.now().line] ? n(D) : l ? N(D) : C(D));
|
|
14996
14996
|
}
|
|
14997
14997
|
return D === 45 || tn(D) ? (e.consume(D), u += String.fromCharCode(D), w) : n(D);
|
|
14998
14998
|
}
|
|
@@ -15811,14 +15811,14 @@ function wU(e, t, n) {
|
|
|
15811
15811
|
) : H(Y);
|
|
15812
15812
|
function H(de) {
|
|
15813
15813
|
return Te;
|
|
15814
|
-
function Te(
|
|
15815
|
-
const Qe =
|
|
15814
|
+
function Te(we) {
|
|
15815
|
+
const Qe = we !== null && de[we], $e = we !== null && de.null, ft = [
|
|
15816
15816
|
// To do: add more extension tests.
|
|
15817
15817
|
/* c8 ignore next 2 */
|
|
15818
15818
|
...Array.isArray(Qe) ? Qe : Qe ? [Qe] : [],
|
|
15819
15819
|
...Array.isArray($e) ? $e : $e ? [$e] : []
|
|
15820
15820
|
];
|
|
15821
|
-
return ee(ft)(
|
|
15821
|
+
return ee(ft)(we);
|
|
15822
15822
|
}
|
|
15823
15823
|
}
|
|
15824
15824
|
function ee(de) {
|
|
@@ -15826,22 +15826,22 @@ function wU(e, t, n) {
|
|
|
15826
15826
|
}
|
|
15827
15827
|
function D(de) {
|
|
15828
15828
|
return Te;
|
|
15829
|
-
function Te(
|
|
15830
|
-
return S = P(), se = de, de.partial || (p.currentConstruct = de), de.name && p.parser.constructs.disable.null.includes(de.name) ?
|
|
15829
|
+
function Te(we) {
|
|
15830
|
+
return S = P(), se = de, de.partial || (p.currentConstruct = de), de.name && p.parser.constructs.disable.null.includes(de.name) ? be() : de.tokenize.call(
|
|
15831
15831
|
// If we do have fields, create an object w/ `context` as its
|
|
15832
15832
|
// prototype.
|
|
15833
15833
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
15834
15834
|
W ? Object.assign(Object.create(p), W) : p,
|
|
15835
15835
|
f,
|
|
15836
15836
|
le,
|
|
15837
|
-
|
|
15838
|
-
)(
|
|
15837
|
+
be
|
|
15838
|
+
)(we);
|
|
15839
15839
|
}
|
|
15840
15840
|
}
|
|
15841
15841
|
function le(de) {
|
|
15842
15842
|
return q(se, S), Z;
|
|
15843
15843
|
}
|
|
15844
|
-
function
|
|
15844
|
+
function be(de) {
|
|
15845
15845
|
return S.restore(), ++X < J.length ? D(J[X]) : j;
|
|
15846
15846
|
}
|
|
15847
15847
|
}
|
|
@@ -16049,11 +16049,11 @@ function DU(e) {
|
|
|
16049
16049
|
atxHeadingSequence: O,
|
|
16050
16050
|
autolink: f(),
|
|
16051
16051
|
autolinkEmail: Qe,
|
|
16052
|
-
autolinkProtocol:
|
|
16052
|
+
autolinkProtocol: we,
|
|
16053
16053
|
blockQuote: f(),
|
|
16054
16054
|
characterEscapeValue: B,
|
|
16055
|
-
characterReferenceMarkerHexadecimal:
|
|
16056
|
-
characterReferenceMarkerNumeric:
|
|
16055
|
+
characterReferenceMarkerHexadecimal: be,
|
|
16056
|
+
characterReferenceMarkerNumeric: be,
|
|
16057
16057
|
characterReferenceValue: de,
|
|
16058
16058
|
characterReference: Te,
|
|
16059
16059
|
codeFenced: f(w),
|
|
@@ -16378,7 +16378,7 @@ function DU(e) {
|
|
|
16378
16378
|
const ie = this.resume(), he = this.stack[this.stack.length - 1];
|
|
16379
16379
|
he.label = ie, he.identifier = rr(this.sliceSerialize(ne)).toLowerCase(), this.data.referenceType = "full";
|
|
16380
16380
|
}
|
|
16381
|
-
function
|
|
16381
|
+
function be(ne) {
|
|
16382
16382
|
this.data.characterReferenceType = ne.type;
|
|
16383
16383
|
}
|
|
16384
16384
|
function de(ne) {
|
|
@@ -16392,7 +16392,7 @@ function DU(e) {
|
|
|
16392
16392
|
const ie = this.stack.pop();
|
|
16393
16393
|
ie.position.end = ba(ne.end);
|
|
16394
16394
|
}
|
|
16395
|
-
function
|
|
16395
|
+
function we(ne) {
|
|
16396
16396
|
B.call(this, ne);
|
|
16397
16397
|
const ie = this.stack[this.stack.length - 1];
|
|
16398
16398
|
ie.url = this.sliceSerialize(ne);
|
|
@@ -19935,7 +19935,7 @@ const D3 = {
|
|
|
19935
19935
|
name: "protocolAutolink",
|
|
19936
19936
|
tokenize: U3,
|
|
19937
19937
|
previous: NO
|
|
19938
|
-
},
|
|
19938
|
+
}, Ur = {
|
|
19939
19939
|
name: "emailAutolink",
|
|
19940
19940
|
tokenize: F3,
|
|
19941
19941
|
previous: CO
|
|
@@ -19947,15 +19947,15 @@ function M3() {
|
|
|
19947
19947
|
}
|
|
19948
19948
|
let Xa = 48;
|
|
19949
19949
|
for (; Xa < 123; )
|
|
19950
|
-
yr[Xa] =
|
|
19951
|
-
yr[43] =
|
|
19952
|
-
yr[45] =
|
|
19953
|
-
yr[46] =
|
|
19954
|
-
yr[95] =
|
|
19955
|
-
yr[72] = [
|
|
19956
|
-
yr[104] = [
|
|
19957
|
-
yr[87] = [
|
|
19958
|
-
yr[119] = [
|
|
19950
|
+
yr[Xa] = Ur, Xa++, Xa === 58 ? Xa = 65 : Xa === 91 && (Xa = 97);
|
|
19951
|
+
yr[43] = Ur;
|
|
19952
|
+
yr[45] = Ur;
|
|
19953
|
+
yr[46] = Ur;
|
|
19954
|
+
yr[95] = Ur;
|
|
19955
|
+
yr[72] = [Ur, xO];
|
|
19956
|
+
yr[104] = [Ur, xO];
|
|
19957
|
+
yr[87] = [Ur, TO];
|
|
19958
|
+
yr[119] = [Ur, TO];
|
|
19959
19959
|
function F3(e, t, n) {
|
|
19960
19960
|
const a = this;
|
|
19961
19961
|
let o, l;
|
|
@@ -21606,10 +21606,10 @@ const Xq = (e, t, n) => async (a) => {
|
|
|
21606
21606
|
}, Jq = (e, t) => {
|
|
21607
21607
|
if (!e.includes(t))
|
|
21608
21608
|
throw new Error(`Expected the state to be ${e.map((n) => `"${n}"`).join(" or ")} but it was "${t}".`);
|
|
21609
|
-
}, $q = '(()=>{"use strict";class e extends AudioWorkletProcessor{constructor(){super(),this._encoderPort=null,this._state="inactive",this.port.onmessage=e=>{let{data:t}=e;"pause"===t.method?"active"===this._state||"recording"===this._state?(this._state="paused",this._sendAcknowledgement(t.id)):this._sendUnexpectedStateError(t.id):"record"===t.method?"inactive"===this._state?(this._encoderPort=t.params.encoderPort,this._state="active",this._sendAcknowledgement(t.id)):this._sendUnexpectedStateError(t.id):"resume"===t.method?"paused"===this._state?(this._state="active",this._sendAcknowledgement(t.id)):this._sendUnexpectedStateError(t.id):"stop"===t.method?"active"!==this._state&&"paused"!==this._state&&"recording"!==this._state||null===this._encoderPort?this._sendUnexpectedStateError(t.id):(this._stop(this._encoderPort),this._sendAcknowledgement(t.id)):"number"==typeof t.id&&this.port.postMessage({error:{code:-32601,message:"The requested method is not supported."},id:t.id})}}process(e){let[t]=e;if("inactive"===this._state||"paused"===this._state)return!0;if("active"===this._state){if(void 0===t)throw new Error("No channelData was received for the first input.");if(0===t.length)return!0;this._state="recording"}if("recording"===this._state&&null!==this._encoderPort){if(void 0===t)throw new Error("No channelData was received for the first input.");if(0!==t.length)return this._encoderPort.postMessage(t,t.map((e=>{let{buffer:t}=e;return t}))),!0;this._stop(this._encoderPort)}return!1}_sendAcknowledgement(e){this.port.postMessage({id:e,result:null})}_sendUnexpectedStateError(e){this.port.postMessage({error:{code:-32603,message:"The internal state does not allow to process the given message."},id:e})}_stop(e){e.postMessage([]),e.close(),this._encoderPort=null,this._state="stopped"}}e.parameterDescriptors=[],registerProcessor("recorder-audio-worklet-processor",e)})();', e4 = Xq(Blob, URL, $q), t4 = Zq(Kq, Qq(Fq), qO, Jq), qT = (e, t, n) => ({ endTime: t, insertTime: n, type: "exponentialRampToValue", value: e }), HT = (e, t, n) => ({ endTime: t, insertTime: n, type: "linearRampToValue", value: e }), By = (e, t) => ({ startTime: t, type: "setValue", value: e }), HO = (e, t, n) => ({ duration: n, startTime: t, type: "setValueCurve", values: e }), GO = (e, t, { startTime: n, target: a, timeConstant: o }) => a + (t - a) * Math.exp((n - e) / o), Vi = (e) => e.type === "exponentialRampToValue", vu = (e) => e.type === "linearRampToValue", Ea = (e) => Vi(e) || vu(e), TE = (e) => e.type === "setValue",
|
|
21609
|
+
}, $q = '(()=>{"use strict";class e extends AudioWorkletProcessor{constructor(){super(),this._encoderPort=null,this._state="inactive",this.port.onmessage=e=>{let{data:t}=e;"pause"===t.method?"active"===this._state||"recording"===this._state?(this._state="paused",this._sendAcknowledgement(t.id)):this._sendUnexpectedStateError(t.id):"record"===t.method?"inactive"===this._state?(this._encoderPort=t.params.encoderPort,this._state="active",this._sendAcknowledgement(t.id)):this._sendUnexpectedStateError(t.id):"resume"===t.method?"paused"===this._state?(this._state="active",this._sendAcknowledgement(t.id)):this._sendUnexpectedStateError(t.id):"stop"===t.method?"active"!==this._state&&"paused"!==this._state&&"recording"!==this._state||null===this._encoderPort?this._sendUnexpectedStateError(t.id):(this._stop(this._encoderPort),this._sendAcknowledgement(t.id)):"number"==typeof t.id&&this.port.postMessage({error:{code:-32601,message:"The requested method is not supported."},id:t.id})}}process(e){let[t]=e;if("inactive"===this._state||"paused"===this._state)return!0;if("active"===this._state){if(void 0===t)throw new Error("No channelData was received for the first input.");if(0===t.length)return!0;this._state="recording"}if("recording"===this._state&&null!==this._encoderPort){if(void 0===t)throw new Error("No channelData was received for the first input.");if(0!==t.length)return this._encoderPort.postMessage(t,t.map((e=>{let{buffer:t}=e;return t}))),!0;this._stop(this._encoderPort)}return!1}_sendAcknowledgement(e){this.port.postMessage({id:e,result:null})}_sendUnexpectedStateError(e){this.port.postMessage({error:{code:-32603,message:"The internal state does not allow to process the given message."},id:e})}_stop(e){e.postMessage([]),e.close(),this._encoderPort=null,this._state="stopped"}}e.parameterDescriptors=[],registerProcessor("recorder-audio-worklet-processor",e)})();', e4 = Xq(Blob, URL, $q), t4 = Zq(Kq, Qq(Fq), qO, Jq), qT = (e, t, n) => ({ endTime: t, insertTime: n, type: "exponentialRampToValue", value: e }), HT = (e, t, n) => ({ endTime: t, insertTime: n, type: "linearRampToValue", value: e }), By = (e, t) => ({ startTime: t, type: "setValue", value: e }), HO = (e, t, n) => ({ duration: n, startTime: t, type: "setValueCurve", values: e }), GO = (e, t, { startTime: n, target: a, timeConstant: o }) => a + (t - a) * Math.exp((n - e) / o), Vi = (e) => e.type === "exponentialRampToValue", vu = (e) => e.type === "linearRampToValue", Ea = (e) => Vi(e) || vu(e), TE = (e) => e.type === "setValue", Br = (e) => e.type === "setValueCurve", Su = (e, t, n, a) => {
|
|
21610
21610
|
const o = e[t];
|
|
21611
|
-
return o === void 0 ? a : Ea(o) || TE(o) ? o.value :
|
|
21612
|
-
}, GT = (e, t, n, a, o) => n === void 0 ? [a.insertTime, o] : Ea(n) ? [n.endTime, n.value] : TE(n) ? [n.startTime, n.value] :
|
|
21611
|
+
return o === void 0 ? a : Ea(o) || TE(o) ? o.value : Br(o) ? o.values[o.values.length - 1] : GO(n, Su(e, t - 1, o.startTime, a), o);
|
|
21612
|
+
}, GT = (e, t, n, a, o) => n === void 0 ? [a.insertTime, o] : Ea(n) ? [n.endTime, n.value] : TE(n) ? [n.startTime, n.value] : Br(n) ? [
|
|
21613
21613
|
n.startTime + n.duration,
|
|
21614
21614
|
n.values[n.values.length - 1]
|
|
21615
21615
|
] : [
|
|
@@ -21632,16 +21632,16 @@ class a4 {
|
|
|
21632
21632
|
add(t) {
|
|
21633
21633
|
const n = ya(t);
|
|
21634
21634
|
if (Uy(t) || Py(t)) {
|
|
21635
|
-
const a = this._automationEvents.findIndex((l) => Py(t) &&
|
|
21635
|
+
const a = this._automationEvents.findIndex((l) => Py(t) && Br(l) ? l.startTime + l.duration >= n : ya(l) >= n), o = this._automationEvents[a];
|
|
21636
21636
|
if (a !== -1 && (this._automationEvents = this._automationEvents.slice(0, a)), Uy(t)) {
|
|
21637
21637
|
const l = this._automationEvents[this._automationEvents.length - 1];
|
|
21638
21638
|
if (o !== void 0 && Ea(o)) {
|
|
21639
21639
|
if (l !== void 0 && tu(l))
|
|
21640
21640
|
throw new Error("The internal list is malformed.");
|
|
21641
|
-
const u = l === void 0 ? o.insertTime :
|
|
21641
|
+
const u = l === void 0 ? o.insertTime : Br(l) ? l.startTime + l.duration : ya(l), d = l === void 0 ? this._defaultValue : Br(l) ? l.values[l.values.length - 1] : l.value, f = Vi(o) ? _T(n, u, d, o) : VT(n, u, d, o), p = Vi(o) ? qT(f, n, this._currenTime) : HT(f, n, this._currenTime);
|
|
21642
21642
|
this._automationEvents.push(p);
|
|
21643
21643
|
}
|
|
21644
|
-
if (l !== void 0 && tu(l) && this._automationEvents.push(By(this.getValue(n), n)), l !== void 0 &&
|
|
21644
|
+
if (l !== void 0 && tu(l) && this._automationEvents.push(By(this.getValue(n), n)), l !== void 0 && Br(l) && l.startTime + l.duration > n) {
|
|
21645
21645
|
const u = n - l.startTime, d = (l.values.length - 1) / l.duration, f = Math.max(2, 1 + Math.ceil(u * d)), p = u / (f - 1) * d, h = l.values.slice(0, f);
|
|
21646
21646
|
if (p < 1)
|
|
21647
21647
|
for (let m = 1; m < f; m += 1) {
|
|
@@ -21653,13 +21653,13 @@ class a4 {
|
|
|
21653
21653
|
}
|
|
21654
21654
|
} else {
|
|
21655
21655
|
const a = this._automationEvents.findIndex((u) => ya(u) > n), o = a === -1 ? this._automationEvents[this._automationEvents.length - 1] : this._automationEvents[a - 1];
|
|
21656
|
-
if (o !== void 0 &&
|
|
21656
|
+
if (o !== void 0 && Br(o) && ya(o) + o.duration > n)
|
|
21657
21657
|
return !1;
|
|
21658
21658
|
const l = Vi(t) ? qT(t.value, t.endTime, this._currenTime) : vu(t) ? HT(t.value, n, this._currenTime) : t;
|
|
21659
21659
|
if (a === -1)
|
|
21660
21660
|
this._automationEvents.push(l);
|
|
21661
21661
|
else {
|
|
21662
|
-
if (
|
|
21662
|
+
if (Br(t) && n + t.duration > ya(this._automationEvents[a]))
|
|
21663
21663
|
return !1;
|
|
21664
21664
|
this._automationEvents.splice(a, 0, l);
|
|
21665
21665
|
}
|
|
@@ -21681,7 +21681,7 @@ class a4 {
|
|
|
21681
21681
|
return GO(t, Su(this._automationEvents, o - 1, l.startTime, this._defaultValue), l);
|
|
21682
21682
|
if (l !== void 0 && TE(l) && (a === void 0 || !Ea(a)))
|
|
21683
21683
|
return l.value;
|
|
21684
|
-
if (l !== void 0 &&
|
|
21684
|
+
if (l !== void 0 && Br(l) && (a === void 0 || !Ea(a) || l.startTime + l.duration > t))
|
|
21685
21685
|
return t < l.startTime + l.duration ? r4(t, l) : l.values[l.values.length - 1];
|
|
21686
21686
|
if (l !== void 0 && Ea(l) && (a === void 0 || !Ea(a)))
|
|
21687
21687
|
return l.value;
|
|
@@ -22678,7 +22678,7 @@ const iI = (e, t, n, a, o) => {
|
|
|
22678
22678
|
offset: de.value
|
|
22679
22679
|
});
|
|
22680
22680
|
return await E(H, de, Te.offset), Te;
|
|
22681
|
-
})),
|
|
22681
|
+
})), be = a(H, {
|
|
22682
22682
|
channelCount: 1,
|
|
22683
22683
|
channelCountMode: "explicit",
|
|
22684
22684
|
channelInterpretation: "speakers",
|
|
@@ -22687,11 +22687,11 @@ const iI = (e, t, n, a, o) => {
|
|
|
22687
22687
|
for (let de = 0; de < x.numberOfInputs; de += 1) {
|
|
22688
22688
|
ee[de].connect(D[de]);
|
|
22689
22689
|
for (let Te = 0; Te < x.channelCount; Te += 1)
|
|
22690
|
-
D[de].connect(
|
|
22690
|
+
D[de].connect(be, Te, de * x.channelCount + Te);
|
|
22691
22691
|
}
|
|
22692
22692
|
for (const [de, Te] of le.entries())
|
|
22693
|
-
Te.connect(
|
|
22694
|
-
return
|
|
22693
|
+
Te.connect(be, 0, J + de), Te.start(0);
|
|
22694
|
+
return be.connect(H.destination), await Promise.all(ee.map((de) => v(R, H, de))), A(H);
|
|
22695
22695
|
})(), F, x, q, N, p);
|
|
22696
22696
|
}
|
|
22697
22697
|
const W = await M, _ = n(F, {
|
|
@@ -23419,7 +23419,7 @@ const iI = (e, t, n, a, o) => {
|
|
|
23419
23419
|
}), A.prototype.port = O.port1;
|
|
23420
23420
|
let H = null;
|
|
23421
23421
|
YH(E, X, A, w).then((ge) => H = ge);
|
|
23422
|
-
const D = xu(w.numberOfInputs, w.channelCount), le = xu(w.numberOfOutputs, x),
|
|
23422
|
+
const D = xu(w.numberOfInputs, w.channelCount), le = xu(w.numberOfOutputs, x), be = A.parameterDescriptors === void 0 ? [] : A.parameterDescriptors.reduce((ge, { name: Ee }) => ({ ...ge, [Ee]: new Float32Array(128) }), {});
|
|
23423
23423
|
let de = !0;
|
|
23424
23424
|
const Te = () => {
|
|
23425
23425
|
w.numberOfOutputs > 0 && q.disconnect(W);
|
|
@@ -23429,7 +23429,7 @@ const iI = (e, t, n, a, o) => {
|
|
|
23429
23429
|
W.disconnect(Le, Ee + Ue, Ue);
|
|
23430
23430
|
Ee += x[ge];
|
|
23431
23431
|
}
|
|
23432
|
-
},
|
|
23432
|
+
}, we = /* @__PURE__ */ new Map();
|
|
23433
23433
|
q.onaudioprocess = ({ inputBuffer: ge, outputBuffer: Ee }) => {
|
|
23434
23434
|
if (H !== null) {
|
|
23435
23435
|
const Le = m(X);
|
|
@@ -23438,7 +23438,7 @@ const iI = (e, t, n, a, o) => {
|
|
|
23438
23438
|
for (let Ie = 0; Ie < w.channelCount; Ie += 1)
|
|
23439
23439
|
Tu(ge, D[Oe], Ie, Ie, Ue);
|
|
23440
23440
|
A.parameterDescriptors !== void 0 && A.parameterDescriptors.forEach(({ name: Oe }, Ie) => {
|
|
23441
|
-
Tu(ge,
|
|
23441
|
+
Tu(ge, be, Oe, N + Ie, Ue);
|
|
23442
23442
|
});
|
|
23443
23443
|
for (let Oe = 0; Oe < w.numberOfInputs; Oe += 1)
|
|
23444
23444
|
for (let Ie = 0; Ie < x[Oe]; Ie += 1)
|
|
@@ -23446,11 +23446,11 @@ const iI = (e, t, n, a, o) => {
|
|
|
23446
23446
|
try {
|
|
23447
23447
|
const Oe = D.map((et, Ye) => {
|
|
23448
23448
|
if (Le[Ye].size > 0)
|
|
23449
|
-
return
|
|
23450
|
-
const De =
|
|
23451
|
-
return De === void 0 ? [] : (et.every((Pe) => Pe.every((ne) => ne === 0)) && (De === 1 ?
|
|
23449
|
+
return we.set(Ye, B / 128), et;
|
|
23450
|
+
const De = we.get(Ye);
|
|
23451
|
+
return De === void 0 ? [] : (et.every((Pe) => Pe.every((ne) => ne === 0)) && (De === 1 ? we.delete(Ye) : we.set(Ye, De - 1)), et);
|
|
23452
23452
|
});
|
|
23453
|
-
de = h(E.currentTime + Ue / E.sampleRate, E.sampleRate, () => H.process(Oe, le,
|
|
23453
|
+
de = h(E.currentTime + Ue / E.sampleRate, E.sampleRate, () => H.process(Oe, le, be));
|
|
23454
23454
|
for (let et = 0, Ye = 0; et < w.numberOfOutputs; et += 1) {
|
|
23455
23455
|
for (let ze = 0; ze < x[et]; ze += 1)
|
|
23456
23456
|
iI(Ee, le[et], ze, Ye + ze, Ue);
|
|
@@ -24255,7 +24255,7 @@ function D_() {
|
|
|
24255
24255
|
return null;
|
|
24256
24256
|
} : x, C = p.onStart, M = C === void 0 ? function() {
|
|
24257
24257
|
return null;
|
|
24258
|
-
} : C, O = p.blobPropertyBag, R = p.screen, F = R === void 0 ? !1 : R, U = p.mediaRecorderOptions, P = U === void 0 ? void 0 : U, B = p.customMediaStream, q = B === void 0 ? null : B, W = p.stopStreamsOnStop, _ = W === void 0 ? !0 : W, Y = p.askPermissionOnMount, Z = Y === void 0 ? !1 : Y, j = (0, o.useRef)(null), J = (0, o.useRef)([]), X = (0, o.useRef)(null), se = (0, o.useState)("idle"), S = se[0], H = se[1], ee = (0, o.useState)(!1), D = ee[0], le = ee[1],
|
|
24258
|
+
} : C, O = p.blobPropertyBag, R = p.screen, F = R === void 0 ? !1 : R, U = p.mediaRecorderOptions, P = U === void 0 ? void 0 : U, B = p.customMediaStream, q = B === void 0 ? null : B, W = p.stopStreamsOnStop, _ = W === void 0 ? !0 : W, Y = p.askPermissionOnMount, Z = Y === void 0 ? !1 : Y, j = (0, o.useRef)(null), J = (0, o.useRef)([]), X = (0, o.useRef)(null), se = (0, o.useState)("idle"), S = se[0], H = se[1], ee = (0, o.useState)(!1), D = ee[0], le = ee[1], be = (0, o.useState)(void 0), de = be[0], Te = be[1], we = (0, o.useState)("NONE"), Qe = we[0], $e = we[1], ft = (0, o.useState)(!1), Gt = ft[0], Mt = ft[1];
|
|
24259
24259
|
(0, o.useEffect)(function() {
|
|
24260
24260
|
if (!Gt) {
|
|
24261
24261
|
var ze = function() {
|
|
@@ -24831,20 +24831,20 @@ function rV(e, t) {
|
|
|
24831
24831
|
}, m.style), !se)
|
|
24832
24832
|
return /* @__PURE__ */ yn.createElement(Y, le, H, /* @__PURE__ */ yn.createElement(j, m, X));
|
|
24833
24833
|
(F === void 0 && W || P) && (F = !0), W = W || tV;
|
|
24834
|
-
var
|
|
24834
|
+
var be = [{
|
|
24835
24835
|
type: "text",
|
|
24836
24836
|
value: X
|
|
24837
24837
|
}], de = nV({
|
|
24838
24838
|
astGenerator: se,
|
|
24839
24839
|
language: o,
|
|
24840
24840
|
code: X,
|
|
24841
|
-
defaultCodeValue:
|
|
24841
|
+
defaultCodeValue: be
|
|
24842
24842
|
});
|
|
24843
|
-
de.language === null && (de.value =
|
|
24843
|
+
de.language === null && (de.value = be);
|
|
24844
24844
|
var Te = de.value.length;
|
|
24845
24845
|
Te === 1 && de.value[0].type === "text" && (Te = de.value[0].value.split(`
|
|
24846
24846
|
`).length);
|
|
24847
|
-
var
|
|
24847
|
+
var we = Te + C, Qe = eV(de, F, q, A, x, C, we, R, P);
|
|
24848
24848
|
return /* @__PURE__ */ yn.createElement(Y, le, /* @__PURE__ */ yn.createElement(j, m, !x && H, W({
|
|
24849
24849
|
rows: Qe,
|
|
24850
24850
|
stylesheet: d,
|
|
@@ -24916,16 +24916,16 @@ function PI() {
|
|
|
24916
24916
|
}
|
|
24917
24917
|
return Pp;
|
|
24918
24918
|
}
|
|
24919
|
-
var
|
|
24919
|
+
var Fr = {}, hx;
|
|
24920
24920
|
function PE() {
|
|
24921
|
-
if (hx) return
|
|
24921
|
+
if (hx) return Fr;
|
|
24922
24922
|
hx = 1;
|
|
24923
24923
|
var e = 0;
|
|
24924
|
-
|
|
24924
|
+
Fr.boolean = t(), Fr.booleanish = t(), Fr.overloadedBoolean = t(), Fr.number = t(), Fr.spaceSeparated = t(), Fr.commaSeparated = t(), Fr.commaOrSpaceSeparated = t();
|
|
24925
24925
|
function t() {
|
|
24926
24926
|
return Math.pow(2, ++e);
|
|
24927
24927
|
}
|
|
24928
|
-
return
|
|
24928
|
+
return Fr;
|
|
24929
24929
|
}
|
|
24930
24930
|
var zp, gx;
|
|
24931
24931
|
function zI() {
|
|
@@ -25837,23 +25837,23 @@ function xY() {
|
|
|
25837
25837
|
var q = 1, W = 2, _ = 3, Y = 4, Z = 5, j = 6, J = 7, X = {};
|
|
25838
25838
|
X[q] = "Named character references must be terminated by a semicolon", X[W] = "Numeric character references must be terminated by a semicolon", X[_] = "Named character references cannot be empty", X[Y] = "Numeric character references cannot be empty", X[Z] = "Named character references must be known", X[j] = "Numeric character references cannot be disallowed", X[J] = "Numeric character references cannot be outside the permissible Unicode range";
|
|
25839
25839
|
function se(D, le) {
|
|
25840
|
-
var
|
|
25840
|
+
var be = {}, de, Te;
|
|
25841
25841
|
le || (le = {});
|
|
25842
25842
|
for (Te in p)
|
|
25843
|
-
de = le[Te],
|
|
25844
|
-
return (
|
|
25843
|
+
de = le[Te], be[Te] = de ?? p[Te];
|
|
25844
|
+
return (be.position.indent || be.position.start) && (be.indent = be.position.indent || [], be.position = be.position.start), S(D, be);
|
|
25845
25845
|
}
|
|
25846
25846
|
function S(D, le) {
|
|
25847
|
-
var
|
|
25848
|
-
for (typeof
|
|
25847
|
+
var be = le.additional, de = le.nonTerminated, Te = le.text, we = le.reference, Qe = le.warning, $e = le.textContext, ft = le.referenceContext, Gt = le.warningContext, Mt = le.position, Je = le.indent || [], ge = D.length, Ee = 0, Le = -1, Ue = Mt.column || 1, Oe = Mt.line || 1, Ie = "", et = [], Ye, ze, De, Pe, ne, ie, he, ye, je, mt, wt, At, Tt, rt, ut, xt, Ft, _t, ht;
|
|
25848
|
+
for (typeof be == "string" && (be = be.charCodeAt(0)), xt = Yn(), ye = Qe ? An : f, Ee--, ge++; ++Ee < ge; )
|
|
25849
25849
|
if (ne === m && (Ue = Je[Le] || 1), ne = D.charCodeAt(Ee), ne === v) {
|
|
25850
|
-
if (he = D.charCodeAt(Ee + 1), he === h || he === m || he === y || he === E || he === v || he === w || he !== he ||
|
|
25850
|
+
if (he = D.charCodeAt(Ee + 1), he === h || he === m || he === y || he === E || he === v || he === w || he !== he || be && he === be) {
|
|
25851
25851
|
Ie += d(ne), Ue++;
|
|
25852
25852
|
continue;
|
|
25853
25853
|
}
|
|
25854
25854
|
for (Tt = Ee + 1, At = Tt, ht = Tt, he === N ? (ht = ++At, he = D.charCodeAt(ht), he === C || he === M ? (rt = F, ht = ++At) : rt = U) : rt = R, Ye = "", wt = "", Pe = "", ut = B[rt], ht--; ++ht < ge && (he = D.charCodeAt(ht), !!ut(he)); )
|
|
25855
25855
|
Pe += d(he), rt === R && u.call(e, Pe) && (Ye = Pe, wt = e[Pe]);
|
|
25856
|
-
De = D.charCodeAt(ht) === A, De && (ht++, ze = rt === R ? l(Pe) : !1, ze && (Ye = Pe, wt = ze)), _t = 1 + ht - Tt, !De && !de || (Pe ? rt === R ? (De && !wt ? ye(Z, 1) : (Ye !== Pe && (ht = At + Ye.length, _t = 1 + ht - At, De = !1), De || (je = Ye ? q : _, le.attribute ? (he = D.charCodeAt(ht), he === x ? (ye(je, _t), wt = null) : o(he) ? wt = null : ye(je, _t)) : ye(je, _t))), ie = wt) : (De || ye(W, _t), ie = parseInt(Pe, P[rt]), H(ie) ? (ye(J, _t), ie = d(O)) : ie in t ? (ye(j, _t), ie = t[ie]) : (mt = "", ee(ie) && ye(j, _t), ie > 65535 && (ie -= 65536, mt += d(ie >>> 10 | 55296), ie = 56320 | ie & 1023), ie = mt + d(ie))) : rt !== R && ye(Y, _t)), ie ? (Qt(), xt = Yn(), Ee = ht - 1, Ue += ht - Tt + 1, et.push(ie), Ft = Yn(), Ft.offset++,
|
|
25856
|
+
De = D.charCodeAt(ht) === A, De && (ht++, ze = rt === R ? l(Pe) : !1, ze && (Ye = Pe, wt = ze)), _t = 1 + ht - Tt, !De && !de || (Pe ? rt === R ? (De && !wt ? ye(Z, 1) : (Ye !== Pe && (ht = At + Ye.length, _t = 1 + ht - At, De = !1), De || (je = Ye ? q : _, le.attribute ? (he = D.charCodeAt(ht), he === x ? (ye(je, _t), wt = null) : o(he) ? wt = null : ye(je, _t)) : ye(je, _t))), ie = wt) : (De || ye(W, _t), ie = parseInt(Pe, P[rt]), H(ie) ? (ye(J, _t), ie = d(O)) : ie in t ? (ye(j, _t), ie = t[ie]) : (mt = "", ee(ie) && ye(j, _t), ie > 65535 && (ie -= 65536, mt += d(ie >>> 10 | 55296), ie = 56320 | ie & 1023), ie = mt + d(ie))) : rt !== R && ye(Y, _t)), ie ? (Qt(), xt = Yn(), Ee = ht - 1, Ue += ht - Tt + 1, et.push(ie), Ft = Yn(), Ft.offset++, we && we.call(
|
|
25857
25857
|
ft,
|
|
25858
25858
|
ie,
|
|
25859
25859
|
{ start: xt, end: Ft },
|
|
@@ -25870,8 +25870,8 @@ function xY() {
|
|
|
25870
25870
|
};
|
|
25871
25871
|
}
|
|
25872
25872
|
function An(Tn, li) {
|
|
25873
|
-
var
|
|
25874
|
-
|
|
25873
|
+
var Pr = Yn();
|
|
25874
|
+
Pr.column += li, Pr.offset += li, Qe.call(Gt, X[Tn], Pr, Tn);
|
|
25875
25875
|
}
|
|
25876
25876
|
function Qt() {
|
|
25877
25877
|
Ie && (et.push(Ie), Te && Te.call($e, Ie, { start: xt, end: Yn() }), Ie = "");
|
|
@@ -26529,15 +26529,15 @@ function RY() {
|
|
|
26529
26529
|
X = X.next, le += X.value.length;
|
|
26530
26530
|
if (le -= X.value.length, se = le, X.value instanceof f)
|
|
26531
26531
|
continue;
|
|
26532
|
-
for (var
|
|
26533
|
-
H++, le +=
|
|
26532
|
+
for (var be = X; be !== C.tail && (le < D || typeof be.value == "string"); be = be.next)
|
|
26533
|
+
H++, le += be.value.length;
|
|
26534
26534
|
H--, S = N.slice(se, le), ee.index -= se;
|
|
26535
26535
|
} else if (ee = p(J, 0, S, _), !ee)
|
|
26536
26536
|
continue;
|
|
26537
|
-
var de = ee.index, Te = ee[0],
|
|
26537
|
+
var de = ee.index, Te = ee[0], we = S.slice(0, de), Qe = S.slice(de + Te.length), $e = se + S.length;
|
|
26538
26538
|
F && $e > F.reach && (F.reach = $e);
|
|
26539
26539
|
var ft = X.prev;
|
|
26540
|
-
|
|
26540
|
+
we && (ft = y(C, ft, we), se += we.length), E(C, ft, H);
|
|
26541
26541
|
var Gt = new f(U, W ? d.tokenize(Te, W) : Te, Z, Te);
|
|
26542
26542
|
if (X = y(C, ft, Gt), Qe && y(C, X, Qe), H > 1) {
|
|
26543
26543
|
var Mt = {
|
|
@@ -48393,23 +48393,23 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
48393
48393
|
});
|
|
48394
48394
|
})();
|
|
48395
48395
|
}, [e.bot?.botId, e?.token]);
|
|
48396
|
-
const h = u?.mainColor || "#59168b", m = u?.secondaryColor || "#6366f1", y = u?.thirdColor || "#0f172b", E = u?.headerFirstColor || "#6e11b0", v = u?.headerSecondColor || "#372aac", A = u?.inputBackgroundColor || "#1f2937", w = u?.inputTextColor || "#fff", x = u?.roundness || 24, N = u?.chatRoundness || 16, C = (u?.minPanelWidth || 434) > window.innerWidth ? window.innerWidth : u?.minPanelWidth || 434, M = (u?.maxPanelWidth || window.innerWidth) > window.innerWidth ? window.innerWidth : u?.maxPanelWidth || window.innerWidth, O = u?.chatMaxWidth || 88, R = u?.toggleBtnBorderTopLeftRadius || 12, F = u?.toggleBtnBorderTopRightRadius || 0, U = u?.toggleBtnBorderBottomLeftRadius || 12, P = u?.toggleBtnBorderBottomRightRadius || 0, B = u?.menuBackgroundColor || "#1f2937", q = u?.menuTextColor || "#e5e7eb", W = u?.menuHoverBackgroundColor || "#374151", _ = u?.agentChatResponseColor || "#e5e7eb", Y = u?.agentChatResponseBgColor || "#1f2937", Z = u?.agentIconBgColor || "#59168b", j = u?.agentIconColor || "#fff", J = u?.userChatMessagesColor || "#fff", X = u?.userChatMessagesBgColor || "#7a1ebe", se = u?.userIconBgColor || "#7a1ebe", S = u?.userIconColor || "#fff", H = u?.ButtonColor || "#fff", ee = u?.ButtonsBgColor || "#59168b", D = u?.fontSize || 13, le = u?.toggleBtnPosition || "bottom-right",
|
|
48396
|
+
const h = u?.mainColor || "#59168b", m = u?.secondaryColor || "#6366f1", y = u?.thirdColor || "#0f172b", E = u?.headerFirstColor || "#6e11b0", v = u?.headerSecondColor || "#372aac", A = u?.inputBackgroundColor || "#1f2937", w = u?.inputTextColor || "#fff", x = u?.roundness || 24, N = u?.chatRoundness || 16, C = (u?.minPanelWidth || 434) > window.innerWidth ? window.innerWidth : u?.minPanelWidth || 434, M = (u?.maxPanelWidth || window.innerWidth) > window.innerWidth ? window.innerWidth : u?.maxPanelWidth || window.innerWidth, O = u?.chatMaxWidth || 88, R = u?.toggleBtnBorderTopLeftRadius || 12, F = u?.toggleBtnBorderTopRightRadius || 0, U = u?.toggleBtnBorderBottomLeftRadius || 12, P = u?.toggleBtnBorderBottomRightRadius || 0, B = u?.menuBackgroundColor || "#1f2937", q = u?.menuTextColor || "#e5e7eb", W = u?.menuHoverBackgroundColor || "#374151", _ = u?.agentChatResponseColor || "#e5e7eb", Y = u?.agentChatResponseBgColor || "#1f2937", Z = u?.agentIconBgColor || "#59168b", j = u?.agentIconColor || "#fff", J = u?.userChatMessagesColor || "#fff", X = u?.userChatMessagesBgColor || "#7a1ebe", se = u?.userIconBgColor || "#7a1ebe", S = u?.userIconColor || "#fff", H = u?.ButtonColor || "#fff", ee = u?.ButtonsBgColor || "#59168b", D = u?.fontSize || 13, le = u?.toggleBtnPosition || "bottom-right", be = u?.autoOpenPanel ?? !0, Te = (() => {
|
|
48397
48397
|
const L = u?.firstMessageKeyword;
|
|
48398
48398
|
if (Array.isArray(L)) {
|
|
48399
|
-
const ae = window.location.href,
|
|
48400
|
-
if (
|
|
48401
|
-
const
|
|
48402
|
-
return
|
|
48399
|
+
const ae = window.location.href, me = L.find((Ce) => Ce.url && Ce.url === ae);
|
|
48400
|
+
if (me) return me.message;
|
|
48401
|
+
const Se = L.find((Ce) => !Ce.url || Ce.url === "");
|
|
48402
|
+
return Se ? Se.message : L[0]?.message || "hi";
|
|
48403
48403
|
}
|
|
48404
48404
|
return L || "hi";
|
|
48405
|
-
})(), [
|
|
48406
|
-
$e.current = !0, ft.current = L.clientX, Gt.current =
|
|
48405
|
+
})(), [we, Qe] = pe.useState(C), $e = pe.useRef(!1), ft = pe.useRef(0), Gt = pe.useRef(C), Mt = (L) => {
|
|
48406
|
+
$e.current = !0, ft.current = L.clientX, Gt.current = we, document.body.style.cursor = "ew-resize";
|
|
48407
48407
|
};
|
|
48408
48408
|
pe.useEffect(() => {
|
|
48409
|
-
const L = (
|
|
48409
|
+
const L = (me) => {
|
|
48410
48410
|
if (!$e.current) return;
|
|
48411
|
-
const
|
|
48412
|
-
let Ce = Gt.current +
|
|
48411
|
+
const Se = ft.current - me.clientX;
|
|
48412
|
+
let Ce = Gt.current + Se;
|
|
48413
48413
|
Ce = Math.max(C, Math.min(M, Ce)), Qe(Ce);
|
|
48414
48414
|
}, ae = () => {
|
|
48415
48415
|
$e.current && ($e.current = !1, document.body.style.cursor = "");
|
|
@@ -48417,16 +48417,16 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
48417
48417
|
return window.addEventListener("mousemove", L), window.addEventListener("mouseup", ae), () => {
|
|
48418
48418
|
window.removeEventListener("mousemove", L), window.removeEventListener("mouseup", ae);
|
|
48419
48419
|
};
|
|
48420
|
-
}, [
|
|
48421
|
-
const [Je, ge] = pe.useState(!1), [Ee, Le] = pe.useState(!1), [Ue, Oe] = pe.useState(!1), [Ie, et] = pe.useState(() => le === "bottom-left" ? { x: 48, y: window.innerHeight - 120 } : le === "middle-right" ? { x: window.innerWidth - 80, y: window.innerHeight / 2 - 35 } : { x: window.innerWidth - 123, y: window.innerHeight - 100 }), [Ye, ze] = pe.useState(!1), [De, Pe] = pe.useState({ x: 0, y: 0 }), ne = pe.useRef(null), [ie, he] = pe.useState(""), [ye, je] = pe.useState(!1), [mt, wt] = pe.useState([]), [At, Tt] = pe.useState(!1), rt = pe.useRef(0), [ut, xt] = pe.useState(!1), [Ft, _t] = pe.useState(!1), ht = pe.useRef(!1), [Yn, An] = pe.useState("00:00"), Qt = pe.useRef(null), Tn = pe.useRef(0), [li,
|
|
48420
|
+
}, [we, C, M]);
|
|
48421
|
+
const [Je, ge] = pe.useState(!1), [Ee, Le] = pe.useState(!1), [Ue, Oe] = pe.useState(!1), [Ie, et] = pe.useState(() => le === "bottom-left" ? { x: 48, y: window.innerHeight - 120 } : le === "middle-right" ? { x: window.innerWidth - 80, y: window.innerHeight / 2 - 35 } : { x: window.innerWidth - 123, y: window.innerHeight - 100 }), [Ye, ze] = pe.useState(!1), [De, Pe] = pe.useState({ x: 0, y: 0 }), ne = pe.useRef(null), [ie, he] = pe.useState(""), [ye, je] = pe.useState(!1), [mt, wt] = pe.useState([]), [At, Tt] = pe.useState(!1), rt = pe.useRef(0), [ut, xt] = pe.useState(!1), [Ft, _t] = pe.useState(!1), ht = pe.useRef(!1), [Yn, An] = pe.useState("00:00"), Qt = pe.useRef(null), Tn = pe.useRef(0), [li, Pr] = pe.useState([]), [zr, sr] = pe.useState([]), { startRecording: tc, stopRecording: Wn, pauseRecording: Pt, resumeRecording: Zt, status: gt, error: Ra } = M_.useReactMediaRecorder({
|
|
48422
48422
|
video: !1,
|
|
48423
48423
|
onStop(L, ae) {
|
|
48424
48424
|
if (ht.current) {
|
|
48425
48425
|
ht.current = !1, An("00:00"), Tn.current = 0;
|
|
48426
48426
|
return;
|
|
48427
48427
|
}
|
|
48428
|
-
wt((
|
|
48429
|
-
...
|
|
48428
|
+
wt((me) => [
|
|
48429
|
+
...me,
|
|
48430
48430
|
{
|
|
48431
48431
|
id: Date.now().toString() + Math.random().toString(36).substring(2, 9),
|
|
48432
48432
|
file: ae,
|
|
@@ -48437,21 +48437,24 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
48437
48437
|
}
|
|
48438
48438
|
]), An("00:00"), Tn.current = 0;
|
|
48439
48439
|
}
|
|
48440
|
-
}), ui = u?.icon || e?.bot.avatar_url || EW, Na = u?.title || e?.bot.name || "Tybot webchat", [
|
|
48440
|
+
}), ui = u?.icon || e?.bot.avatar_url || EW, Na = u?.title || e?.bot.name || "Tybot webchat", [jr, Er] = pe.useState(() => {
|
|
48441
|
+
const L = localStorage.getItem("phone_client");
|
|
48442
|
+
if (e.bot?.botId === "rockskin" && L)
|
|
48443
|
+
return L;
|
|
48441
48444
|
if (!u?.botNeedsAuth) {
|
|
48442
|
-
let
|
|
48443
|
-
if (!
|
|
48444
|
-
const
|
|
48445
|
-
window.crypto.getRandomValues(
|
|
48445
|
+
let ae = localStorage.getItem("conversationId");
|
|
48446
|
+
if (!ae) {
|
|
48447
|
+
const me = new Uint8Array(16);
|
|
48448
|
+
window.crypto.getRandomValues(me), ae = Array.from(me).map((Se) => Se.toString(16).padStart(2, "0")).join("");
|
|
48446
48449
|
}
|
|
48447
|
-
return localStorage.setItem("conversationId",
|
|
48450
|
+
return localStorage.setItem("conversationId", ae), ae;
|
|
48448
48451
|
}
|
|
48449
|
-
}), [Fn, qr] = pe.useState(() => u?.botNeedsAuth ? !!localStorage.getItem("conversationId") : !0), [xn, Ca] = pe.useState(""), [Xn, Ot] = pe.useState(""), [ka, Ps] = pe.useState(""), Vt = pe.useRef(!1), ln =
|
|
48452
|
+
}), [Fn, qr] = pe.useState(() => u?.botNeedsAuth ? !!localStorage.getItem("conversationId") : !0), [xn, Ca] = pe.useState(""), [Xn, Ot] = pe.useState(""), [ka, Ps] = pe.useState(""), Vt = pe.useRef(!1), ln = zr.reduce((L, ae) => ae.seen ? L : L + (ae.sender === "agent" ? ae.nMessage || 1 : 0), 0), ro = () => {
|
|
48450
48453
|
sr((L) => L.map((ae) => ({ ...ae, seen: !0 })));
|
|
48451
48454
|
};
|
|
48452
48455
|
pe.useEffect(() => {
|
|
48453
48456
|
let L;
|
|
48454
|
-
return !localStorage.getItem("webChatOpen") && u &&
|
|
48457
|
+
return !localStorage.getItem("webChatOpen") && u && be && (L = setTimeout(() => {
|
|
48455
48458
|
ge(!0), Vt.current = !0, ro(), localStorage.setItem("webChatOpen", "true");
|
|
48456
48459
|
}, 3200)), () => clearTimeout(L);
|
|
48457
48460
|
}, [u]), pe.useEffect(() => {
|
|
@@ -48459,33 +48462,33 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
48459
48462
|
if (!L || !(() => {
|
|
48460
48463
|
if (!L.urls || L.urls.length === 0)
|
|
48461
48464
|
return !0;
|
|
48462
|
-
const
|
|
48465
|
+
const Se = window.location.origin, Ce = window.location.href;
|
|
48463
48466
|
return L.urls.some((Et) => {
|
|
48464
48467
|
if (!Et || Et.trim() === "") return !0;
|
|
48465
48468
|
try {
|
|
48466
|
-
return
|
|
48469
|
+
return Se.includes(Et) || Ce.includes(Et) || Et.includes(Se);
|
|
48467
48470
|
} catch {
|
|
48468
48471
|
return console.warn("Invalid URL in widgetLoadBehavior:", Et), !1;
|
|
48469
48472
|
}
|
|
48470
48473
|
});
|
|
48471
48474
|
})())
|
|
48472
48475
|
return;
|
|
48473
|
-
let
|
|
48476
|
+
let me;
|
|
48474
48477
|
if (L.behavior === "after seconds")
|
|
48475
|
-
|
|
48478
|
+
me = setTimeout(() => {
|
|
48476
48479
|
Oe(!0);
|
|
48477
48480
|
}, L.value * 1e3);
|
|
48478
48481
|
else if (L.behavior === "after scroll") {
|
|
48479
|
-
const
|
|
48482
|
+
const Se = () => {
|
|
48480
48483
|
const Ce = window.pageYOffset || document.documentElement.scrollTop, Et = document.documentElement.scrollHeight - document.documentElement.clientHeight;
|
|
48481
|
-
Ce / Et * 100 >= L.value && (Oe(!0), window.removeEventListener("scroll",
|
|
48484
|
+
Ce / Et * 100 >= L.value && (Oe(!0), window.removeEventListener("scroll", Se));
|
|
48482
48485
|
};
|
|
48483
|
-
return window.addEventListener("scroll",
|
|
48484
|
-
window.removeEventListener("scroll",
|
|
48486
|
+
return window.addEventListener("scroll", Se), () => {
|
|
48487
|
+
window.removeEventListener("scroll", Se);
|
|
48485
48488
|
};
|
|
48486
48489
|
}
|
|
48487
48490
|
return () => {
|
|
48488
|
-
|
|
48491
|
+
me && clearTimeout(me);
|
|
48489
48492
|
};
|
|
48490
48493
|
}, [u?.widgetLoadBehavior]), pe.useEffect(() => {
|
|
48491
48494
|
Je && Oe(!1);
|
|
@@ -48494,7 +48497,7 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
48494
48497
|
if (e.bot) {
|
|
48495
48498
|
je(!0);
|
|
48496
48499
|
try {
|
|
48497
|
-
const ae = await so(Te, e.bot?.botId, [], null, L),
|
|
48500
|
+
const ae = await so(Te, e.bot?.botId, [], null, L), me = {
|
|
48498
48501
|
id: Date.now().toString() + Math.random().toString(36).substring(2, 9),
|
|
48499
48502
|
sender: "agent",
|
|
48500
48503
|
content: ae,
|
|
@@ -48502,7 +48505,7 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
48502
48505
|
seen: Vt.current,
|
|
48503
48506
|
nMessage: 1
|
|
48504
48507
|
};
|
|
48505
|
-
sr([
|
|
48508
|
+
sr([me]);
|
|
48506
48509
|
} catch (ae) {
|
|
48507
48510
|
console.error("Error sending message:", ae);
|
|
48508
48511
|
} finally {
|
|
@@ -48511,10 +48514,10 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
48511
48514
|
}
|
|
48512
48515
|
};
|
|
48513
48516
|
pe.useEffect(() => {
|
|
48514
|
-
Fn && e?.bot &&
|
|
48515
|
-
Hs(
|
|
48517
|
+
Fn && e?.bot && zr.length === 0 && u && be && (ao(), localStorage.getItem("webChatAuth") && JSON.parse(localStorage.getItem("webChatAuth")) && u?.botNeedsAuth && jr && (xn || ka || Xn) && (setTimeout(() => {
|
|
48518
|
+
Hs(jr);
|
|
48516
48519
|
}, 2e3), localStorage.setItem("webChatAuth", "true")));
|
|
48517
|
-
}, [Fn, e?.bot,
|
|
48520
|
+
}, [Fn, e?.bot, jr, u]), pe.useEffect(() => (gt === "recording" ? Qt.current || (Qt.current = setInterval(() => {
|
|
48518
48521
|
Tn.current += 1;
|
|
48519
48522
|
const L = Math.floor(Tn.current / 60).toString().padStart(2, "0"), ae = (Tn.current % 60).toString().padStart(2, "0");
|
|
48520
48523
|
An(`${L}:${ae}`);
|
|
@@ -48535,27 +48538,27 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
48535
48538
|
}
|
|
48536
48539
|
}, [ie]), pe.useEffect(() => {
|
|
48537
48540
|
(Je || ye) && t.current && (t.current.scrollTop = t.current.scrollHeight);
|
|
48538
|
-
}, [
|
|
48541
|
+
}, [zr, ye, Je]);
|
|
48539
48542
|
const nc = (L) => {
|
|
48540
48543
|
const ae = L.type.toLowerCase();
|
|
48541
48544
|
return ae.startsWith("image/") ? "image" : ae.startsWith("video/") ? "video" : ae.startsWith("audio/") ? "audio" : "document";
|
|
48542
48545
|
}, Kn = pe.useCallback((L, ae) => {
|
|
48543
|
-
const
|
|
48544
|
-
Array.from(L).forEach((
|
|
48545
|
-
if (
|
|
48546
|
-
alert(`File ${
|
|
48546
|
+
const me = [];
|
|
48547
|
+
Array.from(L).forEach((Se) => {
|
|
48548
|
+
if (Se.size > 10 * 1024 * 1024) {
|
|
48549
|
+
alert(`File ${Se.name} is too large. Maximum size is 10MB.`);
|
|
48547
48550
|
return;
|
|
48548
48551
|
}
|
|
48549
48552
|
const Ce = {
|
|
48550
48553
|
id: Date.now().toString() + Math.random().toString(36).substring(2, 9),
|
|
48551
|
-
file:
|
|
48552
|
-
type: nc(
|
|
48553
|
-
url: URL.createObjectURL(
|
|
48554
|
-
name:
|
|
48555
|
-
size:
|
|
48554
|
+
file: Se,
|
|
48555
|
+
type: nc(Se),
|
|
48556
|
+
url: URL.createObjectURL(Se),
|
|
48557
|
+
name: Se.name,
|
|
48558
|
+
size: Se.size
|
|
48556
48559
|
};
|
|
48557
|
-
|
|
48558
|
-
}), wt((
|
|
48560
|
+
me.push(Ce);
|
|
48561
|
+
}), wt((Se) => [...Se, ...me]), ae && ae.current && (ae.current.value = "");
|
|
48559
48562
|
}, []), ci = pe.useCallback(
|
|
48560
48563
|
(L) => {
|
|
48561
48564
|
L.preventDefault(), rt.current = 0, Tt(!1);
|
|
@@ -48571,23 +48574,23 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
48571
48574
|
L.preventDefault(), rt.current -= 1, rt.current <= 0 && Tt(!1);
|
|
48572
48575
|
}, []), Hr = pe.useCallback((L) => {
|
|
48573
48576
|
wt((ae) => {
|
|
48574
|
-
const
|
|
48575
|
-
return
|
|
48577
|
+
const me = ae.find((Se) => Se.id === L);
|
|
48578
|
+
return me && URL.revokeObjectURL(me.url), ae.filter((Se) => Se.id !== L);
|
|
48576
48579
|
});
|
|
48577
48580
|
}, []), oo = (L) => {
|
|
48578
48581
|
if (L === 0) return "0 Bytes";
|
|
48579
|
-
const ae = 1024,
|
|
48580
|
-
return Number.parseFloat((L / Math.pow(ae,
|
|
48582
|
+
const ae = 1024, me = ["Bytes", "KB", "MB", "GB"], Se = Math.floor(Math.log(L) / Math.log(ae));
|
|
48583
|
+
return Number.parseFloat((L / Math.pow(ae, Se)).toFixed(2)) + " " + me[Se];
|
|
48581
48584
|
}, Zn = async (L = ie, ae) => {
|
|
48582
48585
|
if (L.trim() || mt.length !== 0) {
|
|
48583
|
-
const
|
|
48586
|
+
const Se = {
|
|
48584
48587
|
id: Date.now().toString() + Math.random().toString(36).substring(2, 9),
|
|
48585
48588
|
sender: "user",
|
|
48586
48589
|
content: L,
|
|
48587
48590
|
attachments: [...mt],
|
|
48588
48591
|
timestamp: /* @__PURE__ */ new Date()
|
|
48589
48592
|
};
|
|
48590
|
-
if (sr((Ce) => [...Ce,
|
|
48593
|
+
if (sr((Ce) => [...Ce, Se]), he(""), wt([]), je(!0), e?.bot)
|
|
48591
48594
|
try {
|
|
48592
48595
|
try {
|
|
48593
48596
|
const Ce = await so(L, e?.bot.botId, mt, ae || void 0), Et = {
|
|
@@ -48651,10 +48654,10 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
48651
48654
|
l.current?.click();
|
|
48652
48655
|
break;
|
|
48653
48656
|
}
|
|
48654
|
-
}, so = async (L, ae,
|
|
48655
|
-
if (
|
|
48657
|
+
}, so = async (L, ae, me = [], Se, Ce) => {
|
|
48658
|
+
if (me.length > 0) {
|
|
48656
48659
|
const bt = new FormData();
|
|
48657
|
-
bt.append("type", "image"), bt.append("file",
|
|
48660
|
+
bt.append("type", "image"), bt.append("file", me[0].file), bt.append("botId", ae), bt.append("conversation_id", jr ?? ""), bt.append("host", window.location.origin);
|
|
48658
48661
|
const { data: dn } = await St.post(e?.API_URL || Z1, bt, {
|
|
48659
48662
|
headers: {
|
|
48660
48663
|
Authorization: `Bearer ${e?.token}`,
|
|
@@ -48668,10 +48671,10 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
48668
48671
|
type: "text",
|
|
48669
48672
|
messageText: L,
|
|
48670
48673
|
botId: ae,
|
|
48671
|
-
conversation_id:
|
|
48674
|
+
conversation_id: jr,
|
|
48672
48675
|
isintern: !!e.token,
|
|
48673
48676
|
host: window.location.origin
|
|
48674
|
-
},
|
|
48677
|
+
}, Se && (bt = { ...bt, payload: Se, messageText: L });
|
|
48675
48678
|
const { data: dn } = await St.post(e?.API_URL || Z1, bt, {
|
|
48676
48679
|
headers: {
|
|
48677
48680
|
Authorization: `Bearer ${e?.token}`,
|
|
@@ -48697,41 +48700,41 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
48697
48700
|
Gr(!1);
|
|
48698
48701
|
return;
|
|
48699
48702
|
}
|
|
48700
|
-
ge((ae) => !ae), Vt.current = !Je, Je || ro(),
|
|
48703
|
+
ge((ae) => !ae), Vt.current = !Je, Je || ro(), be || ao();
|
|
48701
48704
|
};
|
|
48702
48705
|
pe.useEffect(() => {
|
|
48703
48706
|
const L = (Ce) => {
|
|
48704
48707
|
if (!Ye) return;
|
|
48705
48708
|
const Et = Math.abs(Ce.clientX - _r.current.x), bt = Math.abs(Ce.clientY - _r.current.y);
|
|
48706
48709
|
(Et > 5 || bt > 5) && Gr(!0);
|
|
48707
|
-
const dn = Ce.clientX - De.x, Jn = Ce.clientY - De.y, pn = 67, Kr = window.innerWidth - document.body.clientWidth,
|
|
48708
|
-
et({ x:
|
|
48710
|
+
const dn = Ce.clientX - De.x, Jn = Ce.clientY - De.y, pn = 67, Kr = window.innerWidth - document.body.clientWidth, Sr = Math.max(0, Math.min(window.innerWidth - pn - Kr, dn)), Bn = Math.max(0, Math.min(window.innerHeight - pn, Jn));
|
|
48711
|
+
et({ x: Sr, y: Bn });
|
|
48709
48712
|
}, ae = (Ce) => {
|
|
48710
48713
|
if (!Ye) return;
|
|
48711
48714
|
Ce.preventDefault();
|
|
48712
48715
|
const Et = Ce.touches[0], bt = Math.abs(Et.clientX - _r.current.x), dn = Math.abs(Et.clientY - _r.current.y);
|
|
48713
48716
|
(bt > 5 || dn > 5) && Gr(!0);
|
|
48714
|
-
const Jn = Et.clientX - De.x, pn = Et.clientY - De.y, Kr = 67,
|
|
48717
|
+
const Jn = Et.clientX - De.x, pn = Et.clientY - De.y, Kr = 67, Sr = window.innerWidth - document.body.clientWidth, Bn = Math.max(0, Math.min(window.innerWidth - Kr - Sr, Jn)), uo = Math.max(0, Math.min(window.innerHeight - Kr, pn));
|
|
48715
48718
|
et({ x: Bn, y: uo });
|
|
48716
|
-
},
|
|
48719
|
+
}, me = () => {
|
|
48717
48720
|
Ye && (ze(!1), document.body.style.cursor = "", document.body.style.userSelect = "");
|
|
48718
|
-
},
|
|
48721
|
+
}, Se = () => {
|
|
48719
48722
|
Ye && ze(!1);
|
|
48720
48723
|
};
|
|
48721
|
-
return Ye && (document.addEventListener("mousemove", L), document.addEventListener("touchmove", ae, { passive: !1 }), document.addEventListener("mouseup",
|
|
48722
|
-
document.removeEventListener("mousemove", L), document.removeEventListener("touchmove", ae), document.removeEventListener("mouseup",
|
|
48724
|
+
return Ye && (document.addEventListener("mousemove", L), document.addEventListener("touchmove", ae, { passive: !1 }), document.addEventListener("mouseup", me), document.addEventListener("touchend", Se)), () => {
|
|
48725
|
+
document.removeEventListener("mousemove", L), document.removeEventListener("touchmove", ae), document.removeEventListener("mouseup", me), document.removeEventListener("touchend", Se);
|
|
48723
48726
|
};
|
|
48724
48727
|
}, [Ye, De, Ie]), pe.useEffect(() => {
|
|
48725
48728
|
const L = () => {
|
|
48726
|
-
const
|
|
48729
|
+
const me = window.innerWidth - 67, Se = window.innerHeight - 67;
|
|
48727
48730
|
et((Ce) => ({
|
|
48728
|
-
x: Math.max(0, Math.min(
|
|
48729
|
-
y: Math.max(0, Math.min(
|
|
48731
|
+
x: Math.max(0, Math.min(me, Ce.x)),
|
|
48732
|
+
y: Math.max(0, Math.min(Se, Ce.y))
|
|
48730
48733
|
}));
|
|
48731
48734
|
};
|
|
48732
48735
|
return window.addEventListener("resize", L), () => window.removeEventListener("resize", L);
|
|
48733
48736
|
}, []);
|
|
48734
|
-
const rc = /^[\u0600-\u06FF\u0750-\u077F\s\d\p{P}]+$/u, cn = /[\u0600-\u06FF\u0750-\u077F]/, rn = (L) => rc.test(L), Vr = (L) => cn.test(L),
|
|
48737
|
+
const rc = /^[\u0600-\u06FF\u0750-\u077F\s\d\p{P}]+$/u, cn = /[\u0600-\u06FF\u0750-\u077F]/, rn = (L) => rc.test(L), Vr = (L) => cn.test(L), vr = pe.useMemo(
|
|
48735
48738
|
() => ({
|
|
48736
48739
|
h1: ({ children: L }) => /* @__PURE__ */ k.jsx("h1", { className: "sm:text-2xl text-xl font-bold my-2", dir: rn(L) ? "rtl" : "ltr", children: /* @__PURE__ */ k.jsx(
|
|
48737
48740
|
Ht,
|
|
@@ -48819,12 +48822,12 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
48819
48822
|
) }),
|
|
48820
48823
|
p: ({ children: L }) => {
|
|
48821
48824
|
let ae;
|
|
48822
|
-
return typeof L == "string" && Vr(L) || typeof L == "object" && !Array.isArray(L) && L?.props?.children && rn(L?.props?.children) || typeof L == "object" && Array.isArray(L) && L.some((
|
|
48823
|
-
(
|
|
48825
|
+
return typeof L == "string" && Vr(L) || typeof L == "object" && !Array.isArray(L) && L?.props?.children && rn(L?.props?.children) || typeof L == "object" && Array.isArray(L) && L.some((me) => Vr(me)) ? ae = "rtl" : ae = "ltr", /* @__PURE__ */ k.jsx("div", { className: "leading-relaxed", dir: typeof L == "string" || !Array.isArray(L) ? ae : "", children: Array.isArray(L) ? L.map(
|
|
48826
|
+
(me, Se) => typeof me == "string" && !new RegExp("^(?:\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F|\\s)+$", "u").test(me) ? /* @__PURE__ */ k.jsx("p", { dir: Vr(me) ? "rtl" : "ltr", children: /* @__PURE__ */ k.jsx(
|
|
48824
48827
|
Ht,
|
|
48825
48828
|
{
|
|
48826
48829
|
sequence: [
|
|
48827
|
-
|
|
48830
|
+
me,
|
|
48828
48831
|
0,
|
|
48829
48832
|
() => {
|
|
48830
48833
|
t.current && (t.current.scrollTop = t.current.scrollHeight);
|
|
@@ -48833,13 +48836,13 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
48833
48836
|
cursor: !1,
|
|
48834
48837
|
speed: 90
|
|
48835
48838
|
}
|
|
48836
|
-
) },
|
|
48839
|
+
) }, Se) : me.type !== "br" ? me : null
|
|
48837
48840
|
) : /* @__PURE__ */ k.jsx(k.Fragment, { children: L }) });
|
|
48838
48841
|
},
|
|
48839
48842
|
ul: ({ children: L }) => /* @__PURE__ */ k.jsx("ul", { className: "list-disc list-inside ml-4 my-2", style: { color: _ }, dir: Vr(L) ? "rtl" : "ltr", children: L }),
|
|
48840
48843
|
ol: ({ children: L }) => {
|
|
48841
48844
|
let ae = !1;
|
|
48842
|
-
return L.filter((
|
|
48845
|
+
return L.filter((me) => typeof me != "string").every((me) => Vr(me?.props?.children)) ? ae = !0 : ae = !1, /* @__PURE__ */ k.jsx("ol", { className: "list-decimal list-inside ml-4 my-2", style: { color: _ }, dir: ae ? "rtl" : "ltr", children: typeof L == "string" ? /* @__PURE__ */ k.jsx(
|
|
48843
48846
|
Ht,
|
|
48844
48847
|
{
|
|
48845
48848
|
sequence: [
|
|
@@ -48896,13 +48899,13 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
48896
48899
|
speed: 92
|
|
48897
48900
|
}
|
|
48898
48901
|
) : L }),
|
|
48899
|
-
code({ node: L, className: ae, children:
|
|
48902
|
+
code({ node: L, className: ae, children: me, ...Se }) {
|
|
48900
48903
|
const Ce = /language-(\w+)/.exec(ae || "");
|
|
48901
|
-
return Ce ? /* @__PURE__ */ k.jsx(KI, { ...
|
|
48904
|
+
return Ce ? /* @__PURE__ */ k.jsx(KI, { ...Se, PreTag: "div", children: String(me).replace(/\n$/, ""), language: Ce[1], style: yW, customStyle: { scrollbarWidth: "thin" } }) : /* @__PURE__ */ k.jsx("code", { className: "px-1 rounded font-mono inline", style: { backgroundColor: A, color: _ }, ...Se, children: typeof me == "string" ? /* @__PURE__ */ k.jsx(
|
|
48902
48905
|
Ht,
|
|
48903
48906
|
{
|
|
48904
48907
|
sequence: [
|
|
48905
|
-
|
|
48908
|
+
me,
|
|
48906
48909
|
0,
|
|
48907
48910
|
() => {
|
|
48908
48911
|
t.current && (t.current.scrollTop = t.current.scrollHeight);
|
|
@@ -48911,7 +48914,7 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
48911
48914
|
cursor: !1,
|
|
48912
48915
|
speed: 92
|
|
48913
48916
|
}
|
|
48914
|
-
) :
|
|
48917
|
+
) : me });
|
|
48915
48918
|
},
|
|
48916
48919
|
table: ({ children: L }) => /* @__PURE__ */ k.jsx("table", { className: "min-w-full my-2", style: { border: `1px solid ${_}`, color: Y, backgroundColor: _ }, children: L }),
|
|
48917
48920
|
thead: ({ children: L }) => /* @__PURE__ */ k.jsx("thead", { children: L }),
|
|
@@ -48966,7 +48969,7 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
48966
48969
|
);
|
|
48967
48970
|
pe.useEffect(() => {
|
|
48968
48971
|
const L = (ae) => {
|
|
48969
|
-
ut && ae.target instanceof Element && !ae.composedPath().some((
|
|
48972
|
+
ut && ae.target instanceof Element && !ae.composedPath().some((me) => me?.id === "upload-button-toggle" || me?.id === "document-button" || me?.id === "image-button" || me?.id === "video-button" || me?.id === "audio-button") && xt(!1);
|
|
48970
48973
|
};
|
|
48971
48974
|
return document.addEventListener("mousedown", L), () => {
|
|
48972
48975
|
document.removeEventListener("mousedown", L);
|
|
@@ -48987,15 +48990,15 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
48987
48990
|
buttonsBgColor: ee,
|
|
48988
48991
|
buttonColor: H,
|
|
48989
48992
|
chatRoundness: N,
|
|
48990
|
-
panelWidth:
|
|
48993
|
+
panelWidth: we
|
|
48991
48994
|
}
|
|
48992
|
-
) : /* @__PURE__ */ k.jsx(ls, { remarkPlugins: [us], components:
|
|
48995
|
+
) : /* @__PURE__ */ k.jsx(ls, { remarkPlugins: [us], components: vr, children: L.text?.replace(/\n/g, `
|
|
48993
48996
|
`) });
|
|
48994
48997
|
case "single-choice":
|
|
48995
48998
|
return /* @__PURE__ */ k.jsxs(k.Fragment, { children: [
|
|
48996
|
-
/* @__PURE__ */ k.jsx(ls, { remarkPlugins: [us], components:
|
|
48999
|
+
/* @__PURE__ */ k.jsx(ls, { remarkPlugins: [us], components: vr, children: L.text?.replace(/\n/g, `
|
|
48997
49000
|
`) || "" }),
|
|
48998
|
-
/* @__PURE__ */ k.jsx("div", { className: "flex flex-wrap", dir: rn(L.text || "") ? "rtl" : "ltr", children: L.choices?.map((ae,
|
|
49001
|
+
/* @__PURE__ */ k.jsx("div", { className: "flex flex-wrap", dir: rn(L.text || "") ? "rtl" : "ltr", children: L.choices?.map((ae, me) => /* @__PURE__ */ k.jsx(
|
|
48999
49002
|
"button",
|
|
49000
49003
|
{
|
|
49001
49004
|
className: "mb-1 mr-1 px-4 py-1 hover:scale-105 transition-all duration-100",
|
|
@@ -49024,7 +49027,7 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
49024
49027
|
}
|
|
49025
49028
|
)
|
|
49026
49029
|
},
|
|
49027
|
-
|
|
49030
|
+
me
|
|
49028
49031
|
)) })
|
|
49029
49032
|
] });
|
|
49030
49033
|
case "image":
|
|
@@ -49038,7 +49041,7 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
49038
49041
|
) }) });
|
|
49039
49042
|
case "dropdown":
|
|
49040
49043
|
return /* @__PURE__ */ k.jsxs(k.Fragment, { children: [
|
|
49041
|
-
/* @__PURE__ */ k.jsx(ls, { remarkPlugins: [us], components:
|
|
49044
|
+
/* @__PURE__ */ k.jsx(ls, { remarkPlugins: [us], components: vr, children: L.message?.replace(/\n/g, `
|
|
49042
49045
|
`) }),
|
|
49043
49046
|
/* @__PURE__ */ k.jsx(
|
|
49044
49047
|
FW,
|
|
@@ -49094,15 +49097,15 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
49094
49097
|
{
|
|
49095
49098
|
products: L.products || [],
|
|
49096
49099
|
onValidate: (ae) => {
|
|
49097
|
-
const
|
|
49098
|
-
Zn("Vente ",
|
|
49100
|
+
const me = JSON.stringify(ae);
|
|
49101
|
+
Zn("Vente ", me);
|
|
49099
49102
|
},
|
|
49100
49103
|
agentChatResponseColor: _,
|
|
49101
49104
|
agentChatResponseBgColor: Y,
|
|
49102
49105
|
buttonsBgColor: ee,
|
|
49103
49106
|
buttonColor: H,
|
|
49104
49107
|
chatRoundness: N,
|
|
49105
|
-
panelWidth:
|
|
49108
|
+
panelWidth: we,
|
|
49106
49109
|
inputBackgroundColor: A
|
|
49107
49110
|
}
|
|
49108
49111
|
);
|
|
@@ -49123,40 +49126,43 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
49123
49126
|
}, Hs = async (L) => {
|
|
49124
49127
|
if (!Fn) return;
|
|
49125
49128
|
const ae = await qs(L);
|
|
49126
|
-
let
|
|
49127
|
-
xn && (
|
|
49129
|
+
let me;
|
|
49130
|
+
xn && (me = {
|
|
49128
49131
|
last_name: xn.split(" ")[1] || xn.split(" ")[0] || `web_user_${L}`,
|
|
49129
49132
|
first_name: xn.split(" ")[0] || `web_user_${L}`
|
|
49130
|
-
}), Xn && (
|
|
49131
|
-
...
|
|
49133
|
+
}), Xn && (me = {
|
|
49134
|
+
...me,
|
|
49132
49135
|
phone: Xn
|
|
49133
|
-
}), ka && (
|
|
49134
|
-
...
|
|
49136
|
+
}), ka && (me = {
|
|
49137
|
+
...me,
|
|
49135
49138
|
email: ka
|
|
49136
49139
|
});
|
|
49137
|
-
const
|
|
49140
|
+
const Se = await fetch(`${Q1}/endusers/${ae}`, {
|
|
49138
49141
|
headers: {
|
|
49139
49142
|
Authorization: `Bearer ${e?.token}`,
|
|
49140
49143
|
"Content-Type": "application/json"
|
|
49141
49144
|
},
|
|
49142
49145
|
method: "PUT",
|
|
49143
|
-
body: JSON.stringify(
|
|
49146
|
+
body: JSON.stringify(me)
|
|
49144
49147
|
});
|
|
49145
|
-
if (!
|
|
49146
|
-
throw new Error(`HTTP error! status: ${
|
|
49147
|
-
return await
|
|
49148
|
+
if (!Se.ok)
|
|
49149
|
+
throw new Error(`HTTP error! status: ${Se.status}`);
|
|
49150
|
+
return await Se.json();
|
|
49148
49151
|
}, Wr = async (L) => {
|
|
49149
49152
|
L.preventDefault();
|
|
49150
49153
|
const ae = new Uint8Array(16);
|
|
49151
49154
|
window.crypto.getRandomValues(ae);
|
|
49152
|
-
const
|
|
49153
|
-
|
|
49155
|
+
const me = Array.from(ae).map((Se) => Se.toString(16).padStart(2, "0")).join("");
|
|
49156
|
+
Er(me), localStorage.setItem("conversationId", me), localStorage.setItem("webChatAuth", "true"), qr(!0);
|
|
49154
49157
|
}, [ac, Xr] = pe.useState(!1), Gs = async () => {
|
|
49155
49158
|
sr([]);
|
|
49156
|
-
const L =
|
|
49157
|
-
|
|
49158
|
-
|
|
49159
|
-
|
|
49159
|
+
const L = localStorage.getItem("phone_client");
|
|
49160
|
+
if (e.bot?.botId === "rockskin" && L)
|
|
49161
|
+
return console.log("tele", L), Er(L), localStorage.setItem("conversationId", L), L;
|
|
49162
|
+
const ae = new Uint8Array(16);
|
|
49163
|
+
window.crypto.getRandomValues(ae);
|
|
49164
|
+
const me = Array.from(ae).map((Se) => Se.toString(16).padStart(2, "0")).join("");
|
|
49165
|
+
return Er(me), localStorage.setItem("conversationId", me), me;
|
|
49160
49166
|
}, lo = `linear-gradient(to bottom right, ${y}, ${h}, ${y})`, _s = `linear-gradient(to right, ${h}, ${m})`, ic = `linear-gradient(to right, ${E}, ${v})`;
|
|
49161
49167
|
return f || !u ? null : /* @__PURE__ */ k.jsxs(k.Fragment, { children: [
|
|
49162
49168
|
/* @__PURE__ */ k.jsx("style", { children: `
|
|
@@ -49219,9 +49225,9 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
49219
49225
|
{
|
|
49220
49226
|
className: "fixed top-0 right-0 h-full shadow-2xl !z-[100000000]",
|
|
49221
49227
|
style: {
|
|
49222
|
-
width:
|
|
49228
|
+
width: we + "px",
|
|
49223
49229
|
transition: "transform 0.3s cubic-bezier(0.4,0,0.2,1)",
|
|
49224
|
-
transform: Je ? "translateX(0)" : `translateX(${
|
|
49230
|
+
transform: Je ? "translateX(0)" : `translateX(${we}px)`,
|
|
49225
49231
|
background: lo
|
|
49226
49232
|
},
|
|
49227
49233
|
onDrop: ci,
|
|
@@ -49341,7 +49347,7 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
49341
49347
|
fontSize: D + "px"
|
|
49342
49348
|
},
|
|
49343
49349
|
children: [
|
|
49344
|
-
|
|
49350
|
+
zr.map((L) => /* @__PURE__ */ k.jsxs("div", { className: `flex ${L.sender === "agent" ? "flex-col sm:flex-row" : ""} items-start gap-3 ${L.sender === "user" ? "flex-row-reverse" : ""}`, children: [
|
|
49345
49351
|
/* @__PURE__ */ k.jsx(
|
|
49346
49352
|
"div",
|
|
49347
49353
|
{
|
|
@@ -49376,10 +49382,10 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
49376
49382
|
background: X,
|
|
49377
49383
|
color: J
|
|
49378
49384
|
},
|
|
49379
|
-
children: /* @__PURE__ */ k.jsx(ls, { remarkPlugins: [us], components:
|
|
49385
|
+
children: /* @__PURE__ */ k.jsx(ls, { remarkPlugins: [us], components: vr, children: typeof L.content == "string" ? L.content.replace(/\n/g, `
|
|
49380
49386
|
`) : "" })
|
|
49381
49387
|
}
|
|
49382
|
-
) : typeof L.content == "object" ? L.content.map((ae,
|
|
49388
|
+
) : typeof L.content == "object" ? L.content.map((ae, me) => /* @__PURE__ */ k.jsx(
|
|
49383
49389
|
"div",
|
|
49384
49390
|
{
|
|
49385
49391
|
className: "mb-1 px-4 py-2 backdrop-blur-sm break-words w-fit",
|
|
@@ -49393,7 +49399,7 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
49393
49399
|
},
|
|
49394
49400
|
children: Yr(ae)
|
|
49395
49401
|
},
|
|
49396
|
-
|
|
49402
|
+
me
|
|
49397
49403
|
)) : typeof L.content == "string" && L.content ? /* @__PURE__ */ k.jsx(
|
|
49398
49404
|
"div",
|
|
49399
49405
|
{
|
|
@@ -49406,7 +49412,7 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
49406
49412
|
background: Y,
|
|
49407
49413
|
color: _
|
|
49408
49414
|
},
|
|
49409
|
-
children: /* @__PURE__ */ k.jsx(ls, { remarkPlugins: [us], components:
|
|
49415
|
+
children: /* @__PURE__ */ k.jsx(ls, { remarkPlugins: [us], components: vr, children: L.content.replace(/\n/g, `
|
|
49410
49416
|
`) })
|
|
49411
49417
|
}
|
|
49412
49418
|
) : null,
|
|
@@ -49896,7 +49902,7 @@ const BW = ({ attachment: e, formatFileSize: t, mainColor: n, secondaryColor: a,
|
|
|
49896
49902
|
className: "fixed top-1/2 -translate-y-1/2",
|
|
49897
49903
|
style: {
|
|
49898
49904
|
right: "0",
|
|
49899
|
-
transform: Je ? `translateX(-${
|
|
49905
|
+
transform: Je ? `translateX(-${we}px)` : "translateX(0)",
|
|
49900
49906
|
transition: "transform 0.3s cubic-bezier(0.4,0,0.2,1)",
|
|
49901
49907
|
zIndex: 1e3
|
|
49902
49908
|
},
|