@botpress/webchat 2.1.5 → 2.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,7 @@ var g5 = Object.defineProperty;
|
|
|
2
2
|
var v5 = (e, t, n) => t in e ? g5(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var I = (e, t, n) => (v5(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import * as B from "react";
|
|
5
|
-
import jn, { createContext as Ti, useMemo as hs, createElement as it, useContext as Hi, useRef as yt, useEffect as
|
|
5
|
+
import jn, { createContext as Ti, useMemo as hs, createElement as it, useContext as Hi, useRef as yt, useEffect as nt, useLayoutEffect as Ic, useCallback as Gn, forwardRef as st, Children as mu, isValidElement as nc, cloneElement as jh, Fragment as Sa, useState as ut, useDebugValue as b5, useId as w5, memo as Os, useReducer as YT } from "react";
|
|
6
6
|
import * as _5 from "react-dom";
|
|
7
7
|
import { flushSync as JT, createPortal as x5 } from "react-dom";
|
|
8
8
|
var lt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -1670,7 +1670,7 @@ var kQ = CQ, fp = { exports: {} };
|
|
|
1670
1670
|
fp.exports;
|
|
1671
1671
|
(function(e, t) {
|
|
1672
1672
|
(function() {
|
|
1673
|
-
var n, r = "4.17.21", i = 200, o = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", a = "Expected a function", s = "Invalid `variable` option passed into `_.template`", l = "__lodash_hash_undefined__", c = 500, f = "__lodash_placeholder__", p = 1, m = 2, h = 4, g = 1, v = 2, x = 1, _ = 2, w = 4, S = 8, A = 16, C = 32, T = 64, M = 128,
|
|
1673
|
+
var n, r = "4.17.21", i = 200, o = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", a = "Expected a function", s = "Invalid `variable` option passed into `_.template`", l = "__lodash_hash_undefined__", c = 500, f = "__lodash_placeholder__", p = 1, m = 2, h = 4, g = 1, v = 2, x = 1, _ = 2, w = 4, S = 8, A = 16, C = 32, T = 64, M = 128, L = 256, q = 512, D = 30, Z = "...", ne = 800, J = 16, K = 1, H = 2, F = 3, G = 1 / 0, te = 9007199254740991, ue = 17976931348623157e292, R = 0 / 0, ae = 4294967295, Ae = ae - 1, N = ae >>> 1, Pe = [
|
|
1674
1674
|
["ary", M],
|
|
1675
1675
|
["bind", x],
|
|
1676
1676
|
["bindKey", _],
|
|
@@ -1679,8 +1679,8 @@ fp.exports;
|
|
|
1679
1679
|
["flip", q],
|
|
1680
1680
|
["partial", C],
|
|
1681
1681
|
["partialRight", T],
|
|
1682
|
-
["rearg",
|
|
1683
|
-
], Fe = "[object Arguments]", Ne = "[object Array]", Ge = "[object AsyncFunction]",
|
|
1682
|
+
["rearg", L]
|
|
1683
|
+
], Fe = "[object Arguments]", Ne = "[object Array]", Ge = "[object AsyncFunction]", tt = "[object Boolean]", He = "[object Date]", Oe = "[object DOMException]", Se = "[object Error]", Le = "[object Function]", Ce = "[object GeneratorFunction]", Be = "[object Map]", ct = "[object Number]", V = "[object Null]", ce = "[object Object]", Te = "[object Promise]", _e = "[object Proxy]", Je = "[object RegExp]", je = "[object Set]", ot = "[object String]", Pt = "[object Symbol]", gt = "[object Undefined]", re = "[object WeakMap]", fe = "[object WeakSet]", we = "[object ArrayBuffer]", qe = "[object DataView]", ft = "[object Float32Array]", fn = "[object Float64Array]", nn = "[object Int8Array]", Xt = "[object Int16Array]", cn = "[object Int32Array]", En = "[object Uint8Array]", X = "[object Uint8ClampedArray]", oe = "[object Uint16Array]", pt = "[object Uint32Array]", At = /\b__p \+= '';/g, rn = /\b(__p \+=) '' \+/g, ht = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Dn = /&(?:amp|lt|gt|quot|#39);/g, ir = /[&<>"']/g, P = RegExp(Dn.source), De = RegExp(ir.source), ze = /<%-([\s\S]+?)%>/g, Ye = /<%([\s\S]+?)%>/g, Re = /<%=([\s\S]+?)%>/g, Ze = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, xt = /^\w*$/, Nt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Qt = /[\\^$.*+?()[\]{}|]/g, mn = RegExp(Qt.source), Rn = /^\s+/, cr = /\s/, _o = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Fs = /\{\n\/\* \[wrapped with (.+)\] \*/, z = /,? & /, Ee = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Ue = /[()=,{}\[\]\/\s]/, vt = /\\(\\)?/g, Kt = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, an = /\w*$/, jt = /^[-+]0x[0-9a-f]+$/i, $t = /^0b[01]+$/i, Mn = /^\[object .+?Constructor\]$/, An = /^0o[0-7]+$/i, Tn = /^(?:0|[1-9]\d*)$/, qr = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, $i = /($^)/, bd = /['\n\r\u2028\u2029\\]/g, Ur = "\\ud800-\\udfff", cM = "\\u0300-\\u036f", dM = "\\ufe20-\\ufe2f", fM = "\\u20d0-\\u20ff", y_ = cM + dM + fM, g_ = "\\u2700-\\u27bf", v_ = "a-z\\xdf-\\xf6\\xf8-\\xff", pM = "\\xac\\xb1\\xd7\\xf7", hM = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", mM = "\\u2000-\\u206f", yM = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", b_ = "A-Z\\xc0-\\xd6\\xd8-\\xde", w_ = "\\ufe0e\\ufe0f", __ = pM + hM + mM + yM, uy = "['’]", gM = "[" + Ur + "]", x_ = "[" + __ + "]", wd = "[" + y_ + "]", S_ = "\\d+", vM = "[" + g_ + "]", E_ = "[" + v_ + "]", A_ = "[^" + Ur + __ + S_ + g_ + v_ + b_ + "]", ly = "\\ud83c[\\udffb-\\udfff]", bM = "(?:" + wd + "|" + ly + ")", T_ = "[^" + Ur + "]", cy = "(?:\\ud83c[\\udde6-\\uddff]){2}", dy = "[\\ud800-\\udbff][\\udc00-\\udfff]", js = "[" + b_ + "]", C_ = "\\u200d", k_ = "(?:" + E_ + "|" + A_ + ")", wM = "(?:" + js + "|" + A_ + ")", O_ = "(?:" + uy + "(?:d|ll|m|re|s|t|ve))?", $_ = "(?:" + uy + "(?:D|LL|M|RE|S|T|VE))?", R_ = bM + "?", I_ = "[" + w_ + "]?", _M = "(?:" + C_ + "(?:" + [T_, cy, dy].join("|") + ")" + I_ + R_ + ")*", xM = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", SM = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", P_ = I_ + R_ + _M, EM = "(?:" + [vM, cy, dy].join("|") + ")" + P_, AM = "(?:" + [T_ + wd + "?", wd, cy, dy, gM].join("|") + ")", TM = RegExp(uy, "g"), CM = RegExp(wd, "g"), fy = RegExp(ly + "(?=" + ly + ")|" + AM + P_, "g"), kM = RegExp([
|
|
1684
1684
|
js + "?" + E_ + "+" + O_ + "(?=" + [x_, js, "$"].join("|") + ")",
|
|
1685
1685
|
wM + "+" + $_ + "(?=" + [x_, js + k_, "$"].join("|") + ")",
|
|
1686
1686
|
js + "?" + k_ + "+" + O_,
|
|
@@ -1721,9 +1721,9 @@ fp.exports;
|
|
|
1721
1721
|
"parseInt",
|
|
1722
1722
|
"setTimeout"
|
|
1723
1723
|
], IM = -1, Cn = {};
|
|
1724
|
-
Cn[ft] = Cn[fn] = Cn[nn] = Cn[Xt] = Cn[cn] = Cn[En] = Cn[X] = Cn[oe] = Cn[pt] = !0, Cn[Fe] = Cn[Ne] = Cn[we] = Cn[
|
|
1724
|
+
Cn[ft] = Cn[fn] = Cn[nn] = Cn[Xt] = Cn[cn] = Cn[En] = Cn[X] = Cn[oe] = Cn[pt] = !0, Cn[Fe] = Cn[Ne] = Cn[we] = Cn[tt] = Cn[qe] = Cn[He] = Cn[Se] = Cn[Le] = Cn[Be] = Cn[ct] = Cn[ce] = Cn[Je] = Cn[je] = Cn[ot] = Cn[re] = !1;
|
|
1725
1725
|
var _n = {};
|
|
1726
|
-
_n[Fe] = _n[Ne] = _n[we] = _n[qe] = _n[
|
|
1726
|
+
_n[Fe] = _n[Ne] = _n[we] = _n[qe] = _n[tt] = _n[He] = _n[ft] = _n[fn] = _n[nn] = _n[Xt] = _n[cn] = _n[Be] = _n[ct] = _n[ce] = _n[Je] = _n[je] = _n[ot] = _n[Pt] = _n[En] = _n[X] = _n[oe] = _n[pt] = !0, _n[Se] = _n[Le] = _n[re] = !1;
|
|
1727
1727
|
var PM = {
|
|
1728
1728
|
// Latin-1 Supplement block.
|
|
1729
1729
|
À: "A",
|
|
@@ -3312,7 +3312,7 @@ fp.exports;
|
|
|
3312
3312
|
for (b = j ? b : y; ++b < y; ) {
|
|
3313
3313
|
$ = d[b];
|
|
3314
3314
|
var W = Gd($), ee = W == "wrapper" ? Yy($) : n;
|
|
3315
|
-
ee && eg(ee[0]) && ee[1] == (M | S | C |
|
|
3315
|
+
ee && eg(ee[0]) && ee[1] == (M | S | C | L) && !ee[4].length && ee[9] == 1 ? j = j[Gd(ee[0])].apply(j, ee[3]) : j = $.length == 1 && eg($) ? j[W]() : j.thru($);
|
|
3316
3316
|
}
|
|
3317
3317
|
return function() {
|
|
3318
3318
|
var ve = arguments, be = ve[0];
|
|
@@ -3522,7 +3522,7 @@ fp.exports;
|
|
|
3522
3522
|
u = u.buffer, d = d.buffer;
|
|
3523
3523
|
case we:
|
|
3524
3524
|
return !(u.byteLength != d.byteLength || !$(new Od(u), new Od(d)));
|
|
3525
|
-
case
|
|
3525
|
+
case tt:
|
|
3526
3526
|
case He:
|
|
3527
3527
|
case ct:
|
|
3528
3528
|
return Pi(+u, +d);
|
|
@@ -3705,7 +3705,7 @@ fp.exports;
|
|
|
3705
3705
|
switch (d) {
|
|
3706
3706
|
case we:
|
|
3707
3707
|
return Wy(u);
|
|
3708
|
-
case
|
|
3708
|
+
case tt:
|
|
3709
3709
|
case He:
|
|
3710
3710
|
return new b(+u);
|
|
3711
3711
|
case qe:
|
|
@@ -3797,7 +3797,7 @@ fp.exports;
|
|
|
3797
3797
|
return d;
|
|
3798
3798
|
}
|
|
3799
3799
|
function ej(u, d) {
|
|
3800
|
-
var y = u[1], b = d[1], E = y | b, $ = E < (x | _ | M), j = b == M && y == S || b == M && y ==
|
|
3800
|
+
var y = u[1], b = d[1], E = y | b, $ = E < (x | _ | M), j = b == M && y == S || b == M && y == L && u[7].length <= d[8] || b == (M | L) && d[7].length <= d[8] && y == S;
|
|
3801
3801
|
if (!($ || j))
|
|
3802
3802
|
return u;
|
|
3803
3803
|
b & x && (u[2] = d[2], E |= y & x ? 0 : w);
|
|
@@ -4486,7 +4486,7 @@ fp.exports;
|
|
|
4486
4486
|
var y = ia(d, Ys(x1));
|
|
4487
4487
|
return Ao(u, T, n, d, y);
|
|
4488
4488
|
}), Zq = To(function(u, d) {
|
|
4489
|
-
return Ao(u,
|
|
4489
|
+
return Ao(u, L, n, n, n, d);
|
|
4490
4490
|
});
|
|
4491
4491
|
function Wq(u, d) {
|
|
4492
4492
|
if (typeof u != "function")
|
|
@@ -4555,7 +4555,7 @@ fp.exports;
|
|
|
4555
4555
|
return Ln(u) && zr(u);
|
|
4556
4556
|
}
|
|
4557
4557
|
function o3(u) {
|
|
4558
|
-
return u === !0 || u === !1 || Ln(u) && Rr(u) ==
|
|
4558
|
+
return u === !0 || u === !1 || Ln(u) && Rr(u) == tt;
|
|
4559
4559
|
}
|
|
4560
4560
|
var ca = bL || gg, a3 = L_ ? ni(L_) : pF;
|
|
4561
4561
|
function s3(u) {
|
|
@@ -5253,7 +5253,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
5253
5253
|
return this.reverse()[u](y).reverse();
|
|
5254
5254
|
};
|
|
5255
5255
|
}), yi(["filter", "map", "takeWhile"], function(u, d) {
|
|
5256
|
-
var y = d + 1, b = y == K || y ==
|
|
5256
|
+
var y = d + 1, b = y == K || y == F;
|
|
5257
5257
|
Gt.prototype[u] = function(E) {
|
|
5258
5258
|
var $ = this.clone();
|
|
5259
5259
|
return $.__iteratees__.push({
|
|
@@ -6665,7 +6665,7 @@ O(Rk, "hasDefinitions");
|
|
|
6665
6665
|
async function Ik(e, { cwd: t, $refOptions: n }) {
|
|
6666
6666
|
if (mr("green", "dereferencer", "Dereferencing input schema:", t, e), typeof process > "u")
|
|
6667
6667
|
throw new Error("process is not defined");
|
|
6668
|
-
const r = await import("./index-
|
|
6668
|
+
const r = await import("./index-c75fd56a.js").then((s) => s.i), i = new r.$RefParser(), o = /* @__PURE__ */ new WeakMap(), a = await i.dereference(t, e, le(U({}, n), {
|
|
6669
6669
|
dereference: le(U({}, n.dereference), {
|
|
6670
6670
|
onDereference(s, l) {
|
|
6671
6671
|
o.set(l, s);
|
|
@@ -11529,8 +11529,8 @@ var Ff = H$, KS = jn, ite = /* @__PURE__ */ O((e, t) => {
|
|
|
11529
11529
|
const { formData: f, disabled: p, hidden: m, handlePropertyChange: h, addArrayItem: g, removeArrayItem: v, formErrors: x, formValid: _ } = U$(r, i), w = (0, Nr.useMemo)(() => os(f, i), [f, i]), S = (0, Nr.useMemo)(() => ste(n, r), [r, n]), { discriminator: A, discriminatedSchema: C, discriminatorValue: T } = ite(r, i);
|
|
11530
11530
|
if (!S || m === !0)
|
|
11531
11531
|
return null;
|
|
11532
|
-
const { Component: M, type:
|
|
11533
|
-
type:
|
|
11532
|
+
const { Component: M, type: L } = S, q = {
|
|
11533
|
+
type: L,
|
|
11534
11534
|
componentID: S.id,
|
|
11535
11535
|
scope: i.join("."),
|
|
11536
11536
|
context: {
|
|
@@ -11549,15 +11549,15 @@ var Ff = H$, KS = jn, ite = /* @__PURE__ */ O((e, t) => {
|
|
|
11549
11549
|
schema: r,
|
|
11550
11550
|
zuiProps: r[gn]
|
|
11551
11551
|
};
|
|
11552
|
-
if (r.type === "array" &&
|
|
11552
|
+
if (r.type === "array" && L === "array") {
|
|
11553
11553
|
const ne = M, J = q.schema, K = Array.isArray(w) || typeof w == "object" ? w : [], H = U(le(U({}, q), {
|
|
11554
|
-
type:
|
|
11554
|
+
type: L,
|
|
11555
11555
|
schema: J,
|
|
11556
11556
|
data: K,
|
|
11557
|
-
addItem: (
|
|
11558
|
-
removeItem: (
|
|
11557
|
+
addItem: (F = void 0) => g(i, typeof F > "u" ? z0(J.items) : F),
|
|
11558
|
+
removeItem: (F) => v(i, F)
|
|
11559
11559
|
}), s);
|
|
11560
|
-
return Array.isArray(r.items) ? null : /* @__PURE__ */ Nr.default.createElement(ne, le(U({ key: q.scope }, H), { isArrayChild: H.isArrayChild }), Array.isArray(H.data) ? H.data.map((
|
|
11560
|
+
return Array.isArray(r.items) ? null : /* @__PURE__ */ Nr.default.createElement(ne, le(U({ key: q.scope }, H), { isArrayChild: H.isArrayChild }), Array.isArray(H.data) ? H.data.map((F, G) => {
|
|
11561
11561
|
const te = [...i, G.toString()];
|
|
11562
11562
|
return /* @__PURE__ */ Nr.default.createElement(
|
|
11563
11563
|
Ff,
|
|
@@ -11584,14 +11584,14 @@ var Ff = H$, KS = jn, ite = /* @__PURE__ */ O((e, t) => {
|
|
|
11584
11584
|
);
|
|
11585
11585
|
}) : []);
|
|
11586
11586
|
}
|
|
11587
|
-
if (r.type === "object" &&
|
|
11587
|
+
if (r.type === "object" && L === "object" && r.properties) {
|
|
11588
11588
|
const ne = M, J = U(le(U({}, q), {
|
|
11589
|
-
type:
|
|
11589
|
+
type: L,
|
|
11590
11590
|
schema: q.schema,
|
|
11591
11591
|
data: w || {}
|
|
11592
11592
|
}), s);
|
|
11593
11593
|
return /* @__PURE__ */ Nr.default.createElement(ne, le(U({ key: q.scope }, J), { isArrayChild: J.isArrayChild }), Object.entries(r.properties).map(([K, H]) => {
|
|
11594
|
-
var
|
|
11594
|
+
var F;
|
|
11595
11595
|
const G = [...i, K];
|
|
11596
11596
|
return /* @__PURE__ */ Nr.default.createElement(Ff, { key: G.join("."), fallback: a, fieldSchema: H, path: G }, /* @__PURE__ */ Nr.default.createElement(
|
|
11597
11597
|
jf,
|
|
@@ -11600,16 +11600,16 @@ var Ff = H$, KS = jn, ite = /* @__PURE__ */ O((e, t) => {
|
|
|
11600
11600
|
components: n,
|
|
11601
11601
|
fieldSchema: H,
|
|
11602
11602
|
path: G,
|
|
11603
|
-
required: ((
|
|
11603
|
+
required: ((F = r.required) == null ? void 0 : F.includes(K)) || !1,
|
|
11604
11604
|
isArrayChild: !1,
|
|
11605
11605
|
fallback: a
|
|
11606
11606
|
}
|
|
11607
11607
|
));
|
|
11608
11608
|
}));
|
|
11609
11609
|
}
|
|
11610
|
-
if (
|
|
11610
|
+
if (L === "discriminatedUnion") {
|
|
11611
11611
|
const ne = M, J = U(le(U({}, q), {
|
|
11612
|
-
type:
|
|
11612
|
+
type: L,
|
|
11613
11613
|
schema: q.schema,
|
|
11614
11614
|
data: w || {},
|
|
11615
11615
|
discriminatorKey: (A == null ? void 0 : A.key) || null,
|
|
@@ -11637,7 +11637,7 @@ var Ff = H$, KS = jn, ite = /* @__PURE__ */ O((e, t) => {
|
|
|
11637
11637
|
)));
|
|
11638
11638
|
}
|
|
11639
11639
|
const D = M, Z = U(le(U({}, q), {
|
|
11640
|
-
type:
|
|
11640
|
+
type: L,
|
|
11641
11641
|
schema: q.schema,
|
|
11642
11642
|
config: {},
|
|
11643
11643
|
required: o,
|
|
@@ -12881,8 +12881,8 @@ const Ine = async (e) => {
|
|
|
12881
12881
|
const A = Yv && (c === "stream" || c === "response");
|
|
12882
12882
|
if (Yv && (s || A)) {
|
|
12883
12883
|
const T = {};
|
|
12884
|
-
["status", "statusText", "headers"].forEach((
|
|
12885
|
-
T[
|
|
12884
|
+
["status", "statusText", "headers"].forEach((L) => {
|
|
12885
|
+
T[L] = S[L];
|
|
12886
12886
|
});
|
|
12887
12887
|
const M = de.toFiniteNumber(S.headers.get("content-length"));
|
|
12888
12888
|
S = new Response(
|
|
@@ -13474,38 +13474,38 @@ var dre = Object.create, bR = Object.defineProperty, fre = Object.getOwnProperty
|
|
|
13474
13474
|
x = m(m(K)), v["%Error.prototype%"] = x;
|
|
13475
13475
|
}
|
|
13476
13476
|
var x, _ = function K(H) {
|
|
13477
|
-
var
|
|
13477
|
+
var F;
|
|
13478
13478
|
if (H === "%AsyncFunction%")
|
|
13479
|
-
|
|
13479
|
+
F = a("async function () {}");
|
|
13480
13480
|
else if (H === "%GeneratorFunction%")
|
|
13481
|
-
|
|
13481
|
+
F = a("function* () {}");
|
|
13482
13482
|
else if (H === "%AsyncGeneratorFunction%")
|
|
13483
|
-
|
|
13483
|
+
F = a("async function* () {}");
|
|
13484
13484
|
else if (H === "%AsyncGenerator%") {
|
|
13485
13485
|
var G = K("%AsyncGeneratorFunction%");
|
|
13486
|
-
G && (
|
|
13486
|
+
G && (F = G.prototype);
|
|
13487
13487
|
} else if (H === "%AsyncIteratorPrototype%") {
|
|
13488
13488
|
var te = K("%AsyncGenerator%");
|
|
13489
|
-
te && m && (
|
|
13489
|
+
te && m && (F = m(te.prototype));
|
|
13490
13490
|
}
|
|
13491
|
-
return v[H] =
|
|
13492
|
-
}, w = { "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, S = X0(), A = Sre(), C = S.call(Function.call, Array.prototype.concat), T = S.call(Function.apply, Array.prototype.splice), M = S.call(Function.call, String.prototype.replace),
|
|
13493
|
-
var H =
|
|
13494
|
-
if (H === "%" &&
|
|
13491
|
+
return v[H] = F, F;
|
|
13492
|
+
}, w = { "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, S = X0(), A = Sre(), C = S.call(Function.call, Array.prototype.concat), T = S.call(Function.apply, Array.prototype.splice), M = S.call(Function.call, String.prototype.replace), L = S.call(Function.call, String.prototype.slice), q = S.call(Function.call, RegExp.prototype.exec), D = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Z = /\\(\\)?/g, ne = function(K) {
|
|
13493
|
+
var H = L(K, 0, 1), F = L(K, -1);
|
|
13494
|
+
if (H === "%" && F !== "%")
|
|
13495
13495
|
throw new r("invalid intrinsic syntax, expected closing `%`");
|
|
13496
|
-
if (
|
|
13496
|
+
if (F === "%" && H !== "%")
|
|
13497
13497
|
throw new r("invalid intrinsic syntax, expected opening `%`");
|
|
13498
13498
|
var G = [];
|
|
13499
13499
|
return M(K, D, function(te, ue, R, ae) {
|
|
13500
13500
|
G[G.length] = R ? M(ae, Z, "$1") : ue || te;
|
|
13501
13501
|
}), G;
|
|
13502
13502
|
}, J = function(K, H) {
|
|
13503
|
-
var
|
|
13504
|
-
if (A(w,
|
|
13505
|
-
var te = v[
|
|
13506
|
-
if (te === h && (te = _(
|
|
13503
|
+
var F = K, G;
|
|
13504
|
+
if (A(w, F) && (G = w[F], F = "%" + G[0] + "%"), A(v, F)) {
|
|
13505
|
+
var te = v[F];
|
|
13506
|
+
if (te === h && (te = _(F)), typeof te > "u" && !H)
|
|
13507
13507
|
throw new o("intrinsic " + K + " exists, but is not available. Please file an issue!");
|
|
13508
|
-
return { alias: G, name:
|
|
13508
|
+
return { alias: G, name: F, value: te };
|
|
13509
13509
|
}
|
|
13510
13510
|
throw new r("intrinsic " + K + " does not exist!");
|
|
13511
13511
|
};
|
|
@@ -13516,10 +13516,10 @@ var dre = Object.create, bR = Object.defineProperty, fre = Object.getOwnProperty
|
|
|
13516
13516
|
throw new o('"allowMissing" argument must be a boolean');
|
|
13517
13517
|
if (q(/^%?[^%]*%?$/, K) === null)
|
|
13518
13518
|
throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
13519
|
-
var
|
|
13520
|
-
Ae && (G = Ae[0], T(
|
|
13521
|
-
for (var N = 1, Pe = !0; N <
|
|
13522
|
-
var Fe =
|
|
13519
|
+
var F = ne(K), G = F.length > 0 ? F[0] : "", te = J("%" + G + "%", H), ue = te.name, R = te.value, ae = !1, Ae = te.alias;
|
|
13520
|
+
Ae && (G = Ae[0], T(F, C([0, 1], Ae)));
|
|
13521
|
+
for (var N = 1, Pe = !0; N < F.length; N += 1) {
|
|
13522
|
+
var Fe = F[N], Ne = L(Fe, 0, 1), Ge = L(Fe, -1);
|
|
13523
13523
|
if ((Ne === '"' || Ne === "'" || Ne === "`" || Ge === '"' || Ge === "'" || Ge === "`") && Ne !== Ge)
|
|
13524
13524
|
throw new r("property names with quotes must have matching quotes");
|
|
13525
13525
|
if ((Fe === "constructor" || !Pe) && (ae = !0), G += "." + Fe, ue = "%" + G + "%", A(v, ue))
|
|
@@ -13530,9 +13530,9 @@ var dre = Object.create, bR = Object.defineProperty, fre = Object.getOwnProperty
|
|
|
13530
13530
|
throw new o("base intrinsic for " + K + " exists, but the property is not available.");
|
|
13531
13531
|
return;
|
|
13532
13532
|
}
|
|
13533
|
-
if (s && N + 1 >=
|
|
13534
|
-
var
|
|
13535
|
-
Pe = !!
|
|
13533
|
+
if (s && N + 1 >= F.length) {
|
|
13534
|
+
var tt = s(R, Fe);
|
|
13535
|
+
Pe = !!tt, Pe && "get" in tt && !("originalValue" in tt.get) ? R = tt.get : R = R[Fe];
|
|
13536
13536
|
} else
|
|
13537
13537
|
Pe = A(R, Fe), R = R[Fe];
|
|
13538
13538
|
Pe && !ae && (v[ue] = R);
|
|
@@ -13568,11 +13568,11 @@ var dre = Object.create, bR = Object.defineProperty, fre = Object.getOwnProperty
|
|
|
13568
13568
|
};
|
|
13569
13569
|
}), Tre = rr(() => {
|
|
13570
13570
|
}), Cre = rr((e, t) => {
|
|
13571
|
-
var n = typeof Map == "function" && Map.prototype, r = Object.getOwnPropertyDescriptor && n ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, i = n && r && typeof r.get == "function" ? r.get : null, o = n && Map.prototype.forEach, a = typeof Set == "function" && Set.prototype, s = Object.getOwnPropertyDescriptor && a ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, l = a && s && typeof s.get == "function" ? s.get : null, c = a && Set.prototype.forEach, f = typeof WeakMap == "function" && WeakMap.prototype, p = f ? WeakMap.prototype.has : null, m = typeof WeakSet == "function" && WeakSet.prototype, h = m ? WeakSet.prototype.has : null, g = typeof WeakRef == "function" && WeakRef.prototype, v = g ? WeakRef.prototype.deref : null, x = Boolean.prototype.valueOf, _ = Object.prototype.toString, w = Function.prototype.toString, S = String.prototype.match, A = String.prototype.slice, C = String.prototype.replace, T = String.prototype.toUpperCase, M = String.prototype.toLowerCase,
|
|
13571
|
+
var n = typeof Map == "function" && Map.prototype, r = Object.getOwnPropertyDescriptor && n ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, i = n && r && typeof r.get == "function" ? r.get : null, o = n && Map.prototype.forEach, a = typeof Set == "function" && Set.prototype, s = Object.getOwnPropertyDescriptor && a ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, l = a && s && typeof s.get == "function" ? s.get : null, c = a && Set.prototype.forEach, f = typeof WeakMap == "function" && WeakMap.prototype, p = f ? WeakMap.prototype.has : null, m = typeof WeakSet == "function" && WeakSet.prototype, h = m ? WeakSet.prototype.has : null, g = typeof WeakRef == "function" && WeakRef.prototype, v = g ? WeakRef.prototype.deref : null, x = Boolean.prototype.valueOf, _ = Object.prototype.toString, w = Function.prototype.toString, S = String.prototype.match, A = String.prototype.slice, C = String.prototype.replace, T = String.prototype.toUpperCase, M = String.prototype.toLowerCase, L = RegExp.prototype.test, q = Array.prototype.concat, D = Array.prototype.join, Z = Array.prototype.slice, ne = Math.floor, J = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, K = Object.getOwnPropertySymbols, H = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, F = typeof Symbol == "function" && typeof Symbol.iterator == "object", G = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === F || "symbol") ? Symbol.toStringTag : null, te = Object.prototype.propertyIsEnumerable, ue = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(X) {
|
|
13572
13572
|
return X.__proto__;
|
|
13573
13573
|
} : null);
|
|
13574
13574
|
function R(X, oe) {
|
|
13575
|
-
if (X === 1 / 0 || X === -1 / 0 || X !== X || X && X > -1e3 && X < 1e3 ||
|
|
13575
|
+
if (X === 1 / 0 || X === -1 / 0 || X !== X || X && X > -1e3 && X < 1e3 || L.call(/e/, oe))
|
|
13576
13576
|
return oe;
|
|
13577
13577
|
var pt = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
13578
13578
|
if (typeof X == "number") {
|
|
@@ -13632,13 +13632,13 @@ var dre = Object.create, bR = Object.defineProperty, fre = Object.getOwnProperty
|
|
|
13632
13632
|
}
|
|
13633
13633
|
return X($t, ht, At + 1, rn);
|
|
13634
13634
|
}
|
|
13635
|
-
if (typeof oe == "function" && !
|
|
13635
|
+
if (typeof oe == "function" && !tt(oe)) {
|
|
13636
13636
|
var Ze = Te(oe), xt = En(oe, Re);
|
|
13637
13637
|
return "[Function" + (Ze ? ": " + Ze : " (anonymous)") + "]" + (xt.length > 0 ? " { " + D.call(xt, ", ") + " }" : "");
|
|
13638
13638
|
}
|
|
13639
13639
|
if (Ce(oe)) {
|
|
13640
|
-
var Nt =
|
|
13641
|
-
return typeof oe == "object" && !
|
|
13640
|
+
var Nt = F ? C.call(String(oe), /^(Symbol\(.*\))_[^)]*$/, "$1") : H.call(oe);
|
|
13641
|
+
return typeof oe == "object" && !F ? qe(Nt) : Nt;
|
|
13642
13642
|
}
|
|
13643
13643
|
if (re(oe)) {
|
|
13644
13644
|
for (var Qt = "<" + M.call(String(oe.nodeName)), mn = oe.attributes || [], Rn = 0; Rn < mn.length; Rn++)
|
|
@@ -13687,7 +13687,7 @@ var dre = Object.create, bR = Object.defineProperty, fre = Object.getOwnProperty
|
|
|
13687
13687
|
return qe(x.call(oe));
|
|
13688
13688
|
if (Oe(oe))
|
|
13689
13689
|
return qe(Re(String(oe)));
|
|
13690
|
-
if (!Ge(oe) && !
|
|
13690
|
+
if (!Ge(oe) && !tt(oe)) {
|
|
13691
13691
|
var Ee = En(oe, Re), Ue = ue ? ue(oe) === Object.prototype : oe instanceof Object || oe.constructor === Object, vt = oe instanceof Object ? "" : "null prototype", Kt = !Ue && G && Object(oe) === oe && G in oe ? A.call(ce(oe), 8, -1) : vt ? "Object" : "", an = Ue || typeof oe.constructor != "function" ? "" : oe.constructor.name ? oe.constructor.name + " " : "", jt = an + (Kt || vt ? "[" + D.call(q.call([], Kt || [], vt || []), ": ") + "] " : "");
|
|
13692
13692
|
return Ee.length === 0 ? jt + "{}" : Ye ? jt + "{" + cn(Ee, Ye) + "}" : jt + "{ " + D.call(Ee, ", ") + " }";
|
|
13693
13693
|
}
|
|
@@ -13706,7 +13706,7 @@ var dre = Object.create, bR = Object.defineProperty, fre = Object.getOwnProperty
|
|
|
13706
13706
|
function Ge(X) {
|
|
13707
13707
|
return ce(X) === "[object Date]" && (!G || !(typeof X == "object" && G in X));
|
|
13708
13708
|
}
|
|
13709
|
-
function
|
|
13709
|
+
function tt(X) {
|
|
13710
13710
|
return ce(X) === "[object RegExp]" && (!G || !(typeof X == "object" && G in X));
|
|
13711
13711
|
}
|
|
13712
13712
|
function He(X) {
|
|
@@ -13722,7 +13722,7 @@ var dre = Object.create, bR = Object.defineProperty, fre = Object.getOwnProperty
|
|
|
13722
13722
|
return ce(X) === "[object Boolean]" && (!G || !(typeof X == "object" && G in X));
|
|
13723
13723
|
}
|
|
13724
13724
|
function Ce(X) {
|
|
13725
|
-
if (
|
|
13725
|
+
if (F)
|
|
13726
13726
|
return X && typeof X == "object" && X instanceof Symbol;
|
|
13727
13727
|
if (typeof X == "symbol")
|
|
13728
13728
|
return !0;
|
|
@@ -13893,13 +13893,13 @@ var dre = Object.create, bR = Object.defineProperty, fre = Object.getOwnProperty
|
|
|
13893
13893
|
At[rn] = V(X, rn) ? oe(X[rn], X) : "";
|
|
13894
13894
|
}
|
|
13895
13895
|
var ht = typeof K == "function" ? K(X) : [], Dn;
|
|
13896
|
-
if (
|
|
13896
|
+
if (F) {
|
|
13897
13897
|
Dn = {};
|
|
13898
13898
|
for (var ir = 0; ir < ht.length; ir++)
|
|
13899
13899
|
Dn["$" + ht[ir]] = ht[ir];
|
|
13900
13900
|
}
|
|
13901
13901
|
for (var P in X)
|
|
13902
|
-
V(X, P) && (pt && String(Number(P)) === P && P < X.length ||
|
|
13902
|
+
V(X, P) && (pt && String(Number(P)) === P && P < X.length || F && Dn["$" + P] instanceof Symbol || (L.call(/[^\w$]/, P) ? At.push(oe(P, X) + ": " + oe(X[P], X)) : At.push(P + ": " + oe(X[P], X))));
|
|
13903
13903
|
if (typeof K == "function")
|
|
13904
13904
|
for (var De = 0; De < ht.length; De++)
|
|
13905
13905
|
te.call(X, ht[De]) && At.push("[" + oe(ht[De]) + "]: " + oe(X[ht[De]], X));
|
|
@@ -13989,13 +13989,13 @@ var dre = Object.create, bR = Object.defineProperty, fre = Object.getOwnProperty
|
|
|
13989
13989
|
var C = w;
|
|
13990
13990
|
return i(w) && !i(S) && (C = s(w, A)), i(w) && i(S) ? (S.forEach(function(T, M) {
|
|
13991
13991
|
if (r.call(w, M)) {
|
|
13992
|
-
var
|
|
13993
|
-
|
|
13992
|
+
var L = w[M];
|
|
13993
|
+
L && typeof L == "object" && T && typeof T == "object" ? w[M] = _(L, T, A) : w.push(T);
|
|
13994
13994
|
} else
|
|
13995
13995
|
w[M] = T;
|
|
13996
13996
|
}), w) : Object.keys(S).reduce(function(T, M) {
|
|
13997
|
-
var
|
|
13998
|
-
return r.call(T, M) ? T[M] = _(T[M],
|
|
13997
|
+
var L = S[M];
|
|
13998
|
+
return r.call(T, M) ? T[M] = _(T[M], L, A) : T[M] = L, T;
|
|
13999
13999
|
}, C);
|
|
14000
14000
|
}, c = function(_, w) {
|
|
14001
14001
|
return Object.keys(w).reduce(function(S, A) {
|
|
@@ -14018,10 +14018,10 @@ var dre = Object.create, bR = Object.defineProperty, fre = Object.getOwnProperty
|
|
|
14018
14018
|
return escape(T).replace(/%u[0-9a-f]{4}/gi, function(D) {
|
|
14019
14019
|
return "%26%23" + parseInt(D.slice(2), 16) + "%3B";
|
|
14020
14020
|
});
|
|
14021
|
-
for (var M = "",
|
|
14022
|
-
var q = T.charCodeAt(
|
|
14021
|
+
for (var M = "", L = 0; L < T.length; ++L) {
|
|
14022
|
+
var q = T.charCodeAt(L);
|
|
14023
14023
|
if (q === 45 || q === 46 || q === 95 || q === 126 || q >= 48 && q <= 57 || q >= 65 && q <= 90 || q >= 97 && q <= 122 || C === n.RFC1738 && (q === 40 || q === 41)) {
|
|
14024
|
-
M += T.charAt(
|
|
14024
|
+
M += T.charAt(L);
|
|
14025
14025
|
continue;
|
|
14026
14026
|
}
|
|
14027
14027
|
if (q < 128) {
|
|
@@ -14036,13 +14036,13 @@ var dre = Object.create, bR = Object.defineProperty, fre = Object.getOwnProperty
|
|
|
14036
14036
|
M = M + (o[224 | q >> 12] + o[128 | q >> 6 & 63] + o[128 | q & 63]);
|
|
14037
14037
|
continue;
|
|
14038
14038
|
}
|
|
14039
|
-
|
|
14039
|
+
L += 1, q = 65536 + ((q & 1023) << 10 | T.charCodeAt(L) & 1023), M += o[240 | q >> 18] + o[128 | q >> 12 & 63] + o[128 | q >> 6 & 63] + o[128 | q & 63];
|
|
14040
14040
|
}
|
|
14041
14041
|
return M;
|
|
14042
14042
|
}, m = function(_) {
|
|
14043
14043
|
for (var w = [{ obj: { o: _ }, prop: "o" }], S = [], A = 0; A < w.length; ++A)
|
|
14044
|
-
for (var C = w[A], T = C.obj[C.prop], M = Object.keys(T),
|
|
14045
|
-
var q = M[
|
|
14044
|
+
for (var C = w[A], T = C.obj[C.prop], M = Object.keys(T), L = 0; L < M.length; ++L) {
|
|
14045
|
+
var q = M[L], D = T[q];
|
|
14046
14046
|
typeof D == "object" && D !== null && S.indexOf(D) === -1 && (w.push({ obj: T, prop: q }), S.push(D));
|
|
14047
14047
|
}
|
|
14048
14048
|
return a(w), _;
|
|
@@ -14074,7 +14074,7 @@ var dre = Object.create, bR = Object.defineProperty, fre = Object.getOwnProperty
|
|
|
14074
14074
|
return p.call(w);
|
|
14075
14075
|
}, skipNulls: !1, strictNullHandling: !1 }, g = function(w) {
|
|
14076
14076
|
return typeof w == "string" || typeof w == "number" || typeof w == "boolean" || typeof w == "symbol" || typeof w == "bigint";
|
|
14077
|
-
}, v = {}, x = function w(S, A, C, T, M,
|
|
14077
|
+
}, v = {}, x = function w(S, A, C, T, M, L, q, D, Z, ne, J, K, H, F, G, te) {
|
|
14078
14078
|
for (var ue = S, R = te, ae = 0, Ae = !1; (R = R.get(v)) !== void 0 && !Ae; ) {
|
|
14079
14079
|
var N = R.get(S);
|
|
14080
14080
|
if (ae += 1, typeof N < "u") {
|
|
@@ -14088,13 +14088,13 @@ var dre = Object.create, bR = Object.defineProperty, fre = Object.getOwnProperty
|
|
|
14088
14088
|
return ce instanceof Date ? J(ce) : ce;
|
|
14089
14089
|
})), ue === null) {
|
|
14090
14090
|
if (M)
|
|
14091
|
-
return q && !
|
|
14091
|
+
return q && !F ? q(A, h.encoder, G, "key", K) : A;
|
|
14092
14092
|
ue = "";
|
|
14093
14093
|
}
|
|
14094
14094
|
if (g(ue) || r.isBuffer(ue)) {
|
|
14095
14095
|
if (q) {
|
|
14096
|
-
var Pe =
|
|
14097
|
-
if (C === "comma" &&
|
|
14096
|
+
var Pe = F ? A : q(A, h.encoder, G, "key", K);
|
|
14097
|
+
if (C === "comma" && F) {
|
|
14098
14098
|
for (var Fe = l.call(String(ue), ","), Ne = "", Ge = 0; Ge < Fe.length; ++Ge)
|
|
14099
14099
|
Ne += (Ge === 0 ? "" : ",") + H(q(Fe[Ge], h.encoder, G, "value", K));
|
|
14100
14100
|
return [H(Pe) + (T && s(ue) && Fe.length === 1 ? "[]" : "") + "=" + Ne];
|
|
@@ -14103,9 +14103,9 @@ var dre = Object.create, bR = Object.defineProperty, fre = Object.getOwnProperty
|
|
|
14103
14103
|
}
|
|
14104
14104
|
return [H(A) + "=" + H(String(ue))];
|
|
14105
14105
|
}
|
|
14106
|
-
var
|
|
14106
|
+
var tt = [];
|
|
14107
14107
|
if (typeof ue > "u")
|
|
14108
|
-
return
|
|
14108
|
+
return tt;
|
|
14109
14109
|
var He;
|
|
14110
14110
|
if (C === "comma" && s(ue))
|
|
14111
14111
|
He = [{ value: ue.length > 0 ? ue.join(",") || null : void 0 }];
|
|
@@ -14117,14 +14117,14 @@ var dre = Object.create, bR = Object.defineProperty, fre = Object.getOwnProperty
|
|
|
14117
14117
|
}
|
|
14118
14118
|
for (var Se = T && s(ue) && ue.length === 1 ? A + "[]" : A, Le = 0; Le < He.length; ++Le) {
|
|
14119
14119
|
var Ce = He[Le], Be = typeof Ce == "object" && typeof Ce.value < "u" ? Ce.value : ue[Ce];
|
|
14120
|
-
if (!(
|
|
14120
|
+
if (!(L && Be === null)) {
|
|
14121
14121
|
var ct = s(ue) ? typeof C == "function" ? C(Se, Ce) : Se : Se + (ne ? "." + Ce : "[" + Ce + "]");
|
|
14122
14122
|
te.set(S, ae);
|
|
14123
14123
|
var V = n();
|
|
14124
|
-
V.set(v, te), f(
|
|
14124
|
+
V.set(v, te), f(tt, w(Be, ct, C, T, M, L, q, D, Z, ne, J, K, H, F, G, V));
|
|
14125
14125
|
}
|
|
14126
14126
|
}
|
|
14127
|
-
return
|
|
14127
|
+
return tt;
|
|
14128
14128
|
}, _ = function(w) {
|
|
14129
14129
|
if (!w)
|
|
14130
14130
|
return h;
|
|
@@ -14145,7 +14145,7 @@ var dre = Object.create, bR = Object.defineProperty, fre = Object.getOwnProperty
|
|
|
14145
14145
|
t.exports = function(w, S) {
|
|
14146
14146
|
var A = w, C = _(S), T, M;
|
|
14147
14147
|
typeof C.filter == "function" ? (M = C.filter, A = M("", A)) : s(C.filter) && (M = C.filter, T = M);
|
|
14148
|
-
var
|
|
14148
|
+
var L = [];
|
|
14149
14149
|
if (typeof A != "object" || A === null)
|
|
14150
14150
|
return "";
|
|
14151
14151
|
var q;
|
|
@@ -14157,10 +14157,10 @@ var dre = Object.create, bR = Object.defineProperty, fre = Object.getOwnProperty
|
|
|
14157
14157
|
T || (T = Object.keys(A)), C.sort && T.sort(C.sort);
|
|
14158
14158
|
for (var ne = n(), J = 0; J < T.length; ++J) {
|
|
14159
14159
|
var K = T[J];
|
|
14160
|
-
C.skipNulls && A[K] === null || f(
|
|
14160
|
+
C.skipNulls && A[K] === null || f(L, x(A[K], K, D, Z, C.strictNullHandling, C.skipNulls, C.encode ? C.encoder : null, C.filter, C.sort, C.allowDots, C.serializeDate, C.format, C.formatter, C.encodeValuesOnly, C.charset, ne));
|
|
14161
14161
|
}
|
|
14162
|
-
var H =
|
|
14163
|
-
return C.charsetSentinel && (C.charset === "iso-8859-1" ?
|
|
14162
|
+
var H = L.join(C.delimiter), F = C.addQueryPrefix === !0 ? "?" : "";
|
|
14163
|
+
return C.charsetSentinel && (C.charset === "iso-8859-1" ? F += "utf8=%26%2310003%3B&" : F += "utf8=%E2%9C%93&"), H.length > 0 ? F + H : "";
|
|
14164
14164
|
};
|
|
14165
14165
|
}), $re = rr((e, t) => {
|
|
14166
14166
|
var n = wR(), r = Object.prototype.hasOwnProperty, i = Array.isArray, o = { allowDots: !1, allowPrototypes: !1, allowSparse: !1, arrayLimit: 20, charset: "utf-8", charsetSentinel: !1, comma: !1, decoder: n.decode, delimiter: "&", depth: 5, ignoreQueryPrefix: !1, interpretNumericEntities: !1, parameterLimit: 1e3, parseArrays: !0, plainObjects: !1, strictNullHandling: !1 }, a = function(g) {
|
|
@@ -14176,7 +14176,7 @@ var dre = Object.create, bR = Object.defineProperty, fre = Object.getOwnProperty
|
|
|
14176
14176
|
S[C].indexOf("utf8=") === 0 && (S[C] === c ? T = "utf-8" : S[C] === l && (T = "iso-8859-1"), A = C, C = S.length);
|
|
14177
14177
|
for (C = 0; C < S.length; ++C)
|
|
14178
14178
|
if (C !== A) {
|
|
14179
|
-
var M = S[C],
|
|
14179
|
+
var M = S[C], L = M.indexOf("]="), q = L === -1 ? M.indexOf("=") : L + 1, D, Z;
|
|
14180
14180
|
q === -1 ? (D = v.decoder(M, o.decoder, T, "key"), Z = v.strictNullHandling ? null : "") : (D = v.decoder(M.slice(0, q), o.decoder, T, "key"), Z = n.maybeMap(s(M.slice(q + 1), v), function(ne) {
|
|
14181
14181
|
return v.decoder(ne, o.decoder, T, "value");
|
|
14182
14182
|
})), Z && v.interpretNumericEntities && T === "iso-8859-1" && (Z = a(Z)), M.indexOf("[]=") > -1 && (Z = i(Z) ? [Z] : Z), r.call(x, D) ? x[D] = n.combine(x[D], Z) : x[D] = Z;
|
|
@@ -14203,8 +14203,8 @@ var dre = Object.create, bR = Object.defineProperty, fre = Object.getOwnProperty
|
|
|
14203
14203
|
return;
|
|
14204
14204
|
M.push(T);
|
|
14205
14205
|
}
|
|
14206
|
-
for (var
|
|
14207
|
-
if (
|
|
14206
|
+
for (var L = 0; x.depth > 0 && (C = A.exec(w)) !== null && L < x.depth; ) {
|
|
14207
|
+
if (L += 1, !x.plainObjects && r.call(Object.prototype, C[1].slice(1, -1)) && !x.allowPrototypes)
|
|
14208
14208
|
return;
|
|
14209
14209
|
M.push(C[1]);
|
|
14210
14210
|
}
|
|
@@ -15211,12 +15211,12 @@ const vae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
15211
15211
|
}, c = (P, De, ze) => (l(P, De, "default"), ze && l(ze, De, "default")), f = (P, De, ze) => (ze = P != null ? t(o(P)) : {}, l(De || !P || !P.__esModule ? n(ze, "default", { value: P, enumerable: !0 }) : ze, P)), p = (P) => l(n({}, "__esModule", { value: !0 }), P), m = {};
|
|
15212
15212
|
s(m, { Bot: () => ir, BotSpecificClient: () => cn, Integration: () => nn, IntegrationDefinition: () => V, IntegrationSpecificClient: () => Te, RuntimeError: () => Le.RuntimeError, botIdHeader: () => G, botUserIdHeader: () => te, configurationHeader: () => ae, integrationIdHeader: () => ue, isApiError: () => Le.isApiError, messages: () => h, operationHeader: () => Ae, parseBody: () => Ne, serve: () => Ge, studioComponentDefinitions: () => _, typeHeader: () => N, webhookIdHeader: () => R }), e.exports = p(m);
|
|
15213
15213
|
var h = {};
|
|
15214
|
-
s(h, { defaults: () =>
|
|
15214
|
+
s(h, { defaults: () => F });
|
|
15215
15215
|
var g = {};
|
|
15216
15216
|
s(g, { default: () => w, studioComponentDefinitions: () => _ });
|
|
15217
15217
|
var v = uf;
|
|
15218
15218
|
c(g, uf);
|
|
15219
|
-
var x = v.z.object({ allowDynamicVariable: v.z.boolean().optional(), horizontal: v.z.boolean().optional() }), _ = { string: { text: { id: "text", params: x.extend({ multiLine: v.z.boolean().optional(), growVertically: v.z.boolean().optional(), suggestions: v.z.array(v.z.string()).optional() }) }, dropdown: { id: "dropdown", params: x.extend({ filterable: v.z.boolean().optional() }) }, radiogroup: { id: "radiogroup", params: x.extend({}) }, date: { id: "date", params: x.extend({ dateFormat: v.z.string().optional(), minDate: v.z.string().optional(), maxDate: v.z.string().optional(), defaultTimezone: v.z.string().optional(), disableTimezoneSelection: v.z.boolean().optional(), highlightCurrentDay: v.z.boolean().optional(), showShortcutButtons: v.z.boolean().optional(), showOutsideDaysOfMonth: v.z.boolean().optional(), firstDayOfWeek: v.z.number().optional(), canChangeMonth: v.z.boolean().optional(), showWeekNumbers: v.z.boolean().optional() }) }, time: { id: "time", params: x.extend({ useAMPM: v.z.boolean().optional(), timeFormat: v.z.string().optional(), minTime: v.z.string().optional(), maxTime: v.z.string().optional(), showArrowButtons: v.z.boolean().optional(), precision: v.z.enum(["minute", "second", "millisecond"]).optional() }) }, richtext: { id: "richtext", params: v.z.object({ allowDynamicVariable: v.z.boolean().optional(), resizable: v.z.boolean().optional() }) }, json: { id: "json", params: x.extend({ showPreview: v.z.boolean().optional(), showValidationError: v.z.boolean().optional() }) }, file: { id: "file", params: x.extend({ fileTypes: v.z.array(v.z.enum(["image", "audio", "video"])).optional(), showUploadedFiles: v.z.boolean().optional() }) } }, number: { number: { id: "number", params: x.extend({ allowNumericCharactersOnly: v.z.boolean().optional(), stepSize: v.z.number().optional() }) }, slider: { id: "slider", params: v.z.object({ horizontal: v.z.boolean().optional(), stepSize: v.z.number().optional() }) } }, boolean: { switch: { id: "switch", params: x } }, array: { options: { id: "options", params: x }, strings: { id: "strings", params: x }, daterange: { id: "daterange", params: v.z.object({ dateFormat: v.z.string().optional(), minDate: v.z.string().optional(), maxDate: v.z.string().optional(), defaultTimezone: v.z.string().optional(), allowSingleDayRange: v.z.boolean().optional(), highlightCurrentDay: v.z.boolean().optional(), showOutsideDaysOfMonth: v.z.boolean().optional(), firstDayOfWeek: v.z.number().optional(), canChangeMonth: v.z.boolean().optional(), showWeekNumbers: v.z.boolean().optional() }) } }, object: { collapsible: { id: "collapsible", params: v.z.object({ defaultOpen: v.z.boolean().optional() }) }, modal: { id: "modal", params: v.z.object({ title: v.z.string().optional(), buttonLabel: v.z.string().optional(), closeButtonLabel: v.z.string().optional() }) }, popover: { id: "popover", params: v.z.object({ buttonLabel: v.z.string().optional() }) } }, discriminatedUnion: {} }, w = v.z, S = g.z.string().min(1), A = g.z.object({ text: S }), C = g.z.object({ markdown: S }), T = g.z.object({ imageUrl: S }), M = g.z.object({ audioUrl: S }),
|
|
15219
|
+
var x = v.z.object({ allowDynamicVariable: v.z.boolean().optional(), horizontal: v.z.boolean().optional() }), _ = { string: { text: { id: "text", params: x.extend({ multiLine: v.z.boolean().optional(), growVertically: v.z.boolean().optional(), suggestions: v.z.array(v.z.string()).optional() }) }, dropdown: { id: "dropdown", params: x.extend({ filterable: v.z.boolean().optional() }) }, radiogroup: { id: "radiogroup", params: x.extend({}) }, date: { id: "date", params: x.extend({ dateFormat: v.z.string().optional(), minDate: v.z.string().optional(), maxDate: v.z.string().optional(), defaultTimezone: v.z.string().optional(), disableTimezoneSelection: v.z.boolean().optional(), highlightCurrentDay: v.z.boolean().optional(), showShortcutButtons: v.z.boolean().optional(), showOutsideDaysOfMonth: v.z.boolean().optional(), firstDayOfWeek: v.z.number().optional(), canChangeMonth: v.z.boolean().optional(), showWeekNumbers: v.z.boolean().optional() }) }, time: { id: "time", params: x.extend({ useAMPM: v.z.boolean().optional(), timeFormat: v.z.string().optional(), minTime: v.z.string().optional(), maxTime: v.z.string().optional(), showArrowButtons: v.z.boolean().optional(), precision: v.z.enum(["minute", "second", "millisecond"]).optional() }) }, richtext: { id: "richtext", params: v.z.object({ allowDynamicVariable: v.z.boolean().optional(), resizable: v.z.boolean().optional() }) }, json: { id: "json", params: x.extend({ showPreview: v.z.boolean().optional(), showValidationError: v.z.boolean().optional() }) }, file: { id: "file", params: x.extend({ fileTypes: v.z.array(v.z.enum(["image", "audio", "video"])).optional(), showUploadedFiles: v.z.boolean().optional() }) } }, number: { number: { id: "number", params: x.extend({ allowNumericCharactersOnly: v.z.boolean().optional(), stepSize: v.z.number().optional() }) }, slider: { id: "slider", params: v.z.object({ horizontal: v.z.boolean().optional(), stepSize: v.z.number().optional() }) } }, boolean: { switch: { id: "switch", params: x } }, array: { options: { id: "options", params: x }, strings: { id: "strings", params: x }, daterange: { id: "daterange", params: v.z.object({ dateFormat: v.z.string().optional(), minDate: v.z.string().optional(), maxDate: v.z.string().optional(), defaultTimezone: v.z.string().optional(), allowSingleDayRange: v.z.boolean().optional(), highlightCurrentDay: v.z.boolean().optional(), showOutsideDaysOfMonth: v.z.boolean().optional(), firstDayOfWeek: v.z.number().optional(), canChangeMonth: v.z.boolean().optional(), showWeekNumbers: v.z.boolean().optional() }) } }, object: { collapsible: { id: "collapsible", params: v.z.object({ defaultOpen: v.z.boolean().optional() }) }, modal: { id: "modal", params: v.z.object({ title: v.z.string().optional(), buttonLabel: v.z.string().optional(), closeButtonLabel: v.z.string().optional() }) }, popover: { id: "popover", params: v.z.object({ buttonLabel: v.z.string().optional() }) } }, discriminatedUnion: {} }, w = v.z, S = g.z.string().min(1), A = g.z.object({ text: S }), C = g.z.object({ markdown: S }), T = g.z.object({ imageUrl: S }), M = g.z.object({ audioUrl: S }), L = g.z.object({ videoUrl: S }), q = g.z.object({ fileUrl: S, title: S.optional() }), D = g.z.object({ latitude: g.z.number(), longitude: g.z.number(), address: g.z.string().optional(), title: g.z.string().optional() }), Z = g.z.object({ title: S, subtitle: S.optional(), imageUrl: S.optional(), actions: g.z.array(g.z.object({ action: g.z.enum(["postback", "url", "say"]), label: S, value: S })) }), ne = g.z.object({ text: S, options: g.z.array(g.z.object({ label: S, value: S })) }), J = g.z.object({ items: g.z.array(Z) }), K = g.z.discriminatedUnion("type", [g.z.object({ type: g.z.literal("text"), payload: A }), g.z.object({ type: g.z.literal("markdown"), payload: C }), g.z.object({ type: g.z.literal("image"), payload: T }), g.z.object({ type: g.z.literal("audio"), payload: M }), g.z.object({ type: g.z.literal("video"), payload: L }), g.z.object({ type: g.z.literal("file"), payload: q }), g.z.object({ type: g.z.literal("location"), payload: D })]), H = g.z.object({ items: g.z.array(K) }), F = { text: { schema: A }, markdown: { schema: C }, image: { schema: T }, audio: { schema: M }, video: { schema: L }, file: { schema: q }, location: { schema: D }, carousel: { schema: J }, card: { schema: Z }, dropdown: { schema: ne }, choice: { schema: ne }, bloc: { schema: H } }, G = "x-bot-id", te = "x-bot-user-id", ue = "x-integration-id", R = "x-webhook-id", ae = "x-bp-configuration", Ae = "x-bp-operation", N = "x-bp-type", Pe = Hv, Fe = console;
|
|
15220
15220
|
function Ne(P) {
|
|
15221
15221
|
if (!P.body)
|
|
15222
15222
|
throw new Error("Missing body");
|
|
@@ -15225,7 +15225,7 @@ const vae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
15225
15225
|
async function Ge(P, De = 8072, ze = Se) {
|
|
15226
15226
|
let Ye = (0, Pe.createServer)(async (Re, Ze) => {
|
|
15227
15227
|
try {
|
|
15228
|
-
let xt = await
|
|
15228
|
+
let xt = await tt(Re);
|
|
15229
15229
|
if (xt.path === "/health") {
|
|
15230
15230
|
Ze.writeHead(200).end("ok");
|
|
15231
15231
|
return;
|
|
@@ -15238,7 +15238,7 @@ const vae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
15238
15238
|
});
|
|
15239
15239
|
return Ye.listen(De, () => ze(De)), Ye;
|
|
15240
15240
|
}
|
|
15241
|
-
async function
|
|
15241
|
+
async function tt(P) {
|
|
15242
15242
|
var Re;
|
|
15243
15243
|
let De = await Oe(P), ze = {};
|
|
15244
15244
|
for (let Ze = 0; Ze < P.rawHeaders.length; Ze += 2) {
|
|
@@ -16319,10 +16319,10 @@ function ese() {
|
|
|
16319
16319
|
an.unshift("Warning: " + Ee), Function.prototype.apply.call(console[z], console, an);
|
|
16320
16320
|
}
|
|
16321
16321
|
}
|
|
16322
|
-
var A = !1, C = !1, T = !1, M = !1,
|
|
16322
|
+
var A = !1, C = !1, T = !1, M = !1, L = !1, q;
|
|
16323
16323
|
q = Symbol.for("react.module.reference");
|
|
16324
16324
|
function D(z) {
|
|
16325
|
-
return !!(typeof z == "string" || typeof z == "function" || z === r || z === o ||
|
|
16325
|
+
return !!(typeof z == "string" || typeof z == "function" || z === r || z === o || L || z === i || z === c || z === f || M || z === h || A || C || T || typeof z == "object" && z !== null && (z.$$typeof === m || z.$$typeof === p || z.$$typeof === a || z.$$typeof === s || z.$$typeof === l || // This needs to include all possible module reference object
|
|
16326
16326
|
// types supported by any Flight configuration anywhere since
|
|
16327
16327
|
// we don't know which Flight build this will end up being used
|
|
16328
16328
|
// with.
|
|
@@ -16383,14 +16383,14 @@ function ese() {
|
|
|
16383
16383
|
}
|
|
16384
16384
|
return null;
|
|
16385
16385
|
}
|
|
16386
|
-
var K = Object.assign, H = 0,
|
|
16386
|
+
var K = Object.assign, H = 0, F, G, te, ue, R, ae, Ae;
|
|
16387
16387
|
function N() {
|
|
16388
16388
|
}
|
|
16389
16389
|
N.__reactDisabledLog = !0;
|
|
16390
16390
|
function Pe() {
|
|
16391
16391
|
{
|
|
16392
16392
|
if (H === 0) {
|
|
16393
|
-
|
|
16393
|
+
F = console.log, G = console.info, te = console.warn, ue = console.error, R = console.group, ae = console.groupCollapsed, Ae = console.groupEnd;
|
|
16394
16394
|
var z = {
|
|
16395
16395
|
configurable: !0,
|
|
16396
16396
|
enumerable: !0,
|
|
@@ -16420,7 +16420,7 @@ function ese() {
|
|
|
16420
16420
|
};
|
|
16421
16421
|
Object.defineProperties(console, {
|
|
16422
16422
|
log: K({}, z, {
|
|
16423
|
-
value:
|
|
16423
|
+
value: F
|
|
16424
16424
|
}),
|
|
16425
16425
|
info: K({}, z, {
|
|
16426
16426
|
value: G
|
|
@@ -16446,7 +16446,7 @@ function ese() {
|
|
|
16446
16446
|
}
|
|
16447
16447
|
}
|
|
16448
16448
|
var Ne = _.ReactCurrentDispatcher, Ge;
|
|
16449
|
-
function
|
|
16449
|
+
function tt(z, Ee, Ue) {
|
|
16450
16450
|
{
|
|
16451
16451
|
if (Ge === void 0)
|
|
16452
16452
|
try {
|
|
@@ -16532,7 +16532,7 @@ function ese() {
|
|
|
16532
16532
|
} finally {
|
|
16533
16533
|
He = !1, Ne.current = an, Fe(), Error.prepareStackTrace = Kt;
|
|
16534
16534
|
}
|
|
16535
|
-
var $i = z ? z.displayName || z.name : "", bd = $i ?
|
|
16535
|
+
var $i = z ? z.displayName || z.name : "", bd = $i ? tt($i) : "";
|
|
16536
16536
|
return typeof z == "function" && Oe.set(z, bd), bd;
|
|
16537
16537
|
}
|
|
16538
16538
|
function Ce(z, Ee, Ue) {
|
|
@@ -16548,12 +16548,12 @@ function ese() {
|
|
|
16548
16548
|
if (typeof z == "function")
|
|
16549
16549
|
return Le(z, Be(z));
|
|
16550
16550
|
if (typeof z == "string")
|
|
16551
|
-
return
|
|
16551
|
+
return tt(z);
|
|
16552
16552
|
switch (z) {
|
|
16553
16553
|
case c:
|
|
16554
|
-
return
|
|
16554
|
+
return tt("Suspense");
|
|
16555
16555
|
case f:
|
|
16556
|
-
return
|
|
16556
|
+
return tt("SuspenseList");
|
|
16557
16557
|
}
|
|
16558
16558
|
if (typeof z == "object")
|
|
16559
16559
|
switch (z.$$typeof) {
|
|
@@ -16976,7 +16976,7 @@ function tse(...e) {
|
|
|
16976
16976
|
}
|
|
16977
16977
|
function Dr(e) {
|
|
16978
16978
|
const t = yt(e);
|
|
16979
|
-
return
|
|
16979
|
+
return nt(() => {
|
|
16980
16980
|
t.current = e;
|
|
16981
16981
|
}), hs(
|
|
16982
16982
|
() => (...n) => {
|
|
@@ -17075,7 +17075,7 @@ const ase = [
|
|
|
17075
17075
|
], vr = ase.reduce((e, t) => {
|
|
17076
17076
|
const n = /* @__PURE__ */ st((r, i) => {
|
|
17077
17077
|
const { asChild: o, ...a } = r, s = o ? fw : t;
|
|
17078
|
-
return
|
|
17078
|
+
return nt(() => {
|
|
17079
17079
|
window[Symbol.for("radix-ui")] = !0;
|
|
17080
17080
|
}, []), /* @__PURE__ */ it(s, vs({}, a, {
|
|
17081
17081
|
ref: i
|
|
@@ -17116,7 +17116,7 @@ const nP = "Avatar", [use, lke] = Sm(nP), [lse, rP] = use(nP), iP = /* @__PURE__
|
|
|
17116
17116
|
})) : null;
|
|
17117
17117
|
}), dse = "AvatarFallback", aP = /* @__PURE__ */ st((e, t) => {
|
|
17118
17118
|
const { __scopeAvatar: n, delayMs: r, ...i } = e, o = rP(dse, n), [a, s] = ut(r === void 0);
|
|
17119
|
-
return
|
|
17119
|
+
return nt(() => {
|
|
17120
17120
|
if (r !== void 0) {
|
|
17121
17121
|
const l = window.setTimeout(
|
|
17122
17122
|
() => s(!0),
|
|
@@ -17132,7 +17132,7 @@ const nP = "Avatar", [use, lke] = Sm(nP), [lse, rP] = use(nP), iP = /* @__PURE__
|
|
|
17132
17132
|
});
|
|
17133
17133
|
function fse(e) {
|
|
17134
17134
|
const [t, n] = ut("idle");
|
|
17135
|
-
return
|
|
17135
|
+
return nt(() => {
|
|
17136
17136
|
if (!e) {
|
|
17137
17137
|
n("error");
|
|
17138
17138
|
return;
|
|
@@ -19173,11 +19173,11 @@ function Tue(e) {
|
|
|
19173
19173
|
)
|
|
19174
19174
|
return;
|
|
19175
19175
|
const M = t.events.length;
|
|
19176
|
-
let
|
|
19177
|
-
for (;
|
|
19178
|
-
if (t.events[
|
|
19176
|
+
let L = M, q, D;
|
|
19177
|
+
for (; L--; )
|
|
19178
|
+
if (t.events[L][0] === "exit" && t.events[L][1].type === "chunkFlow") {
|
|
19179
19179
|
if (q) {
|
|
19180
|
-
D = t.events[
|
|
19180
|
+
D = t.events[L][1].end;
|
|
19181
19181
|
break;
|
|
19182
19182
|
}
|
|
19183
19183
|
q = !0;
|
|
@@ -19186,7 +19186,7 @@ function Tue(e) {
|
|
|
19186
19186
|
t.events[T][1].end = Object.assign({}, D), T++;
|
|
19187
19187
|
di(
|
|
19188
19188
|
t.events,
|
|
19189
|
-
|
|
19189
|
+
L + 1,
|
|
19190
19190
|
0,
|
|
19191
19191
|
t.events.slice(M)
|
|
19192
19192
|
), t.events.length = T;
|
|
@@ -19503,7 +19503,7 @@ function Fue(e, t, n) {
|
|
|
19503
19503
|
function A(T) {
|
|
19504
19504
|
return e.exit("codeFenced"), t(T);
|
|
19505
19505
|
}
|
|
19506
|
-
function C(T, M,
|
|
19506
|
+
function C(T, M, L) {
|
|
19507
19507
|
let q = 0;
|
|
19508
19508
|
return D;
|
|
19509
19509
|
function D(H) {
|
|
@@ -19518,13 +19518,13 @@ function Fue(e, t, n) {
|
|
|
19518
19518
|
)(H) : ne(H);
|
|
19519
19519
|
}
|
|
19520
19520
|
function ne(H) {
|
|
19521
|
-
return H === s ? (T.enter("codeFencedFenceSequence"), J(H)) :
|
|
19521
|
+
return H === s ? (T.enter("codeFencedFenceSequence"), J(H)) : L(H);
|
|
19522
19522
|
}
|
|
19523
19523
|
function J(H) {
|
|
19524
|
-
return H === s ? (q++, T.consume(H), J) : q >= a ? (T.exit("codeFencedFenceSequence"), Ht(H) ? tn(T, K, "whitespace")(H) : K(H)) :
|
|
19524
|
+
return H === s ? (q++, T.consume(H), J) : q >= a ? (T.exit("codeFencedFenceSequence"), Ht(H) ? tn(T, K, "whitespace")(H) : K(H)) : L(H);
|
|
19525
19525
|
}
|
|
19526
19526
|
function K(H) {
|
|
19527
|
-
return H === null || bt(H) ? (T.exit("codeFencedFence"), M(H)) :
|
|
19527
|
+
return H === null || bt(H) ? (T.exit("codeFencedFence"), M(H)) : L(H);
|
|
19528
19528
|
}
|
|
19529
19529
|
}
|
|
19530
19530
|
}
|
|
@@ -20056,13 +20056,13 @@ function ple(e, t, n) {
|
|
|
20056
20056
|
return N === 61 ? (e.consume(N), T) : Ht(N) ? (e.consume(N), C) : S(N);
|
|
20057
20057
|
}
|
|
20058
20058
|
function T(N) {
|
|
20059
|
-
return N === null || N === 60 || N === 61 || N === 62 || N === 96 ? n(N) : N === 34 || N === 39 ? (e.consume(N), l = N, M) : Ht(N) ? (e.consume(N), T) :
|
|
20059
|
+
return N === null || N === 60 || N === 61 || N === 62 || N === 96 ? n(N) : N === 34 || N === 39 ? (e.consume(N), l = N, M) : Ht(N) ? (e.consume(N), T) : L(N);
|
|
20060
20060
|
}
|
|
20061
20061
|
function M(N) {
|
|
20062
20062
|
return N === l ? (e.consume(N), l = null, q) : N === null || bt(N) ? n(N) : (e.consume(N), M);
|
|
20063
20063
|
}
|
|
20064
|
-
function
|
|
20065
|
-
return N === null || N === 34 || N === 39 || N === 47 || N === 60 || N === 61 || N === 62 || N === 96 || vn(N) ? C(N) : (e.consume(N),
|
|
20064
|
+
function L(N) {
|
|
20065
|
+
return N === null || N === 34 || N === 39 || N === 47 || N === 60 || N === 61 || N === 62 || N === 96 || vn(N) ? C(N) : (e.consume(N), L);
|
|
20066
20066
|
}
|
|
20067
20067
|
function q(N) {
|
|
20068
20068
|
return N === 47 || N === 62 || Ht(N) ? S(N) : n(N);
|
|
@@ -20074,7 +20074,7 @@ function ple(e, t, n) {
|
|
|
20074
20074
|
return N === null || bt(N) ? ne(N) : Ht(N) ? (e.consume(N), Z) : n(N);
|
|
20075
20075
|
}
|
|
20076
20076
|
function ne(N) {
|
|
20077
|
-
return N === 45 && i === 2 ? (e.consume(N),
|
|
20077
|
+
return N === 45 && i === 2 ? (e.consume(N), F) : N === 60 && i === 1 ? (e.consume(N), G) : N === 62 && i === 4 ? (e.consume(N), ae) : N === 63 && i === 3 ? (e.consume(N), R) : N === 93 && i === 5 ? (e.consume(N), ue) : bt(N) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
|
|
20078
20078
|
cle,
|
|
20079
20079
|
Ae,
|
|
20080
20080
|
J
|
|
@@ -20093,7 +20093,7 @@ function ple(e, t, n) {
|
|
|
20093
20093
|
function H(N) {
|
|
20094
20094
|
return N === null || bt(N) ? J(N) : (e.enter("htmlFlowData"), ne(N));
|
|
20095
20095
|
}
|
|
20096
|
-
function
|
|
20096
|
+
function F(N) {
|
|
20097
20097
|
return N === 45 ? (e.consume(N), R) : ne(N);
|
|
20098
20098
|
}
|
|
20099
20099
|
function G(N) {
|
|
@@ -20147,7 +20147,7 @@ function gle(e, t, n) {
|
|
|
20147
20147
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(R), l;
|
|
20148
20148
|
}
|
|
20149
20149
|
function l(R) {
|
|
20150
|
-
return R === 33 ? (e.consume(R), c) : R === 47 ? (e.consume(R), C) : R === 63 ? (e.consume(R), S) : Mr(R) ? (e.consume(R),
|
|
20150
|
+
return R === 33 ? (e.consume(R), c) : R === 47 ? (e.consume(R), C) : R === 63 ? (e.consume(R), S) : Mr(R) ? (e.consume(R), L) : n(R);
|
|
20151
20151
|
}
|
|
20152
20152
|
function c(R) {
|
|
20153
20153
|
return R === 45 ? (e.consume(R), f) : R === 91 ? (e.consume(R), o = 0, g) : Mr(R) ? (e.consume(R), w) : n(R);
|
|
@@ -20162,7 +20162,7 @@ function gle(e, t, n) {
|
|
|
20162
20162
|
return R === 45 ? (e.consume(R), h) : p(R);
|
|
20163
20163
|
}
|
|
20164
20164
|
function h(R) {
|
|
20165
|
-
return R === 62 ?
|
|
20165
|
+
return R === 62 ? F(R) : R === 45 ? m(R) : p(R);
|
|
20166
20166
|
}
|
|
20167
20167
|
function g(R) {
|
|
20168
20168
|
const ae = "CDATA[";
|
|
@@ -20175,16 +20175,16 @@ function gle(e, t, n) {
|
|
|
20175
20175
|
return R === 93 ? (e.consume(R), _) : v(R);
|
|
20176
20176
|
}
|
|
20177
20177
|
function _(R) {
|
|
20178
|
-
return R === 62 ?
|
|
20178
|
+
return R === 62 ? F(R) : R === 93 ? (e.consume(R), _) : v(R);
|
|
20179
20179
|
}
|
|
20180
20180
|
function w(R) {
|
|
20181
|
-
return R === null || R === 62 ?
|
|
20181
|
+
return R === null || R === 62 ? F(R) : bt(R) ? (a = w, G(R)) : (e.consume(R), w);
|
|
20182
20182
|
}
|
|
20183
20183
|
function S(R) {
|
|
20184
20184
|
return R === null ? n(R) : R === 63 ? (e.consume(R), A) : bt(R) ? (a = S, G(R)) : (e.consume(R), S);
|
|
20185
20185
|
}
|
|
20186
20186
|
function A(R) {
|
|
20187
|
-
return R === 62 ?
|
|
20187
|
+
return R === 62 ? F(R) : S(R);
|
|
20188
20188
|
}
|
|
20189
20189
|
function C(R) {
|
|
20190
20190
|
return Mr(R) ? (e.consume(R), T) : n(R);
|
|
@@ -20193,13 +20193,13 @@ function gle(e, t, n) {
|
|
|
20193
20193
|
return R === 45 || Er(R) ? (e.consume(R), T) : M(R);
|
|
20194
20194
|
}
|
|
20195
20195
|
function M(R) {
|
|
20196
|
-
return bt(R) ? (a = M, G(R)) : Ht(R) ? (e.consume(R), M) :
|
|
20196
|
+
return bt(R) ? (a = M, G(R)) : Ht(R) ? (e.consume(R), M) : F(R);
|
|
20197
20197
|
}
|
|
20198
|
-
function
|
|
20199
|
-
return R === 45 || Er(R) ? (e.consume(R),
|
|
20198
|
+
function L(R) {
|
|
20199
|
+
return R === 45 || Er(R) ? (e.consume(R), L) : R === 47 || R === 62 || vn(R) ? q(R) : n(R);
|
|
20200
20200
|
}
|
|
20201
20201
|
function q(R) {
|
|
20202
|
-
return R === 47 ? (e.consume(R),
|
|
20202
|
+
return R === 47 ? (e.consume(R), F) : R === 58 || R === 95 || Mr(R) ? (e.consume(R), D) : bt(R) ? (a = q, G(R)) : Ht(R) ? (e.consume(R), q) : F(R);
|
|
20203
20203
|
}
|
|
20204
20204
|
function D(R) {
|
|
20205
20205
|
return R === 45 || R === 46 || R === 58 || R === 95 || Er(R) ? (e.consume(R), D) : Z(R);
|
|
@@ -20219,7 +20219,7 @@ function gle(e, t, n) {
|
|
|
20219
20219
|
function H(R) {
|
|
20220
20220
|
return R === 47 || R === 62 || vn(R) ? q(R) : n(R);
|
|
20221
20221
|
}
|
|
20222
|
-
function
|
|
20222
|
+
function F(R) {
|
|
20223
20223
|
return R === 62 ? (e.consume(R), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(R);
|
|
20224
20224
|
}
|
|
20225
20225
|
function G(R) {
|
|
@@ -20810,7 +20810,7 @@ function Kle(e, t, n) {
|
|
|
20810
20810
|
let f = t.tokenize.call(c, l);
|
|
20811
20811
|
return t.resolveAll && o.push(t), c;
|
|
20812
20812
|
function p(Z) {
|
|
20813
|
-
return a = Si(a, Z), x(), a[a.length - 1] !== null ? [] : (
|
|
20813
|
+
return a = Si(a, Z), x(), a[a.length - 1] !== null ? [] : (L(t, 0), c.events = Am(o, c.events, c), c.events);
|
|
20814
20814
|
}
|
|
20815
20815
|
function m(Z, ne) {
|
|
20816
20816
|
return Yle(h(Z), ne);
|
|
@@ -20857,14 +20857,14 @@ function Kle(e, t, n) {
|
|
|
20857
20857
|
return ne.end = g(), c.events.push(["exit", ne, c]), ne;
|
|
20858
20858
|
}
|
|
20859
20859
|
function C(Z, ne) {
|
|
20860
|
-
|
|
20860
|
+
L(Z, ne.from);
|
|
20861
20861
|
}
|
|
20862
20862
|
function T(Z, ne) {
|
|
20863
20863
|
ne.restore();
|
|
20864
20864
|
}
|
|
20865
20865
|
function M(Z, ne) {
|
|
20866
20866
|
return J;
|
|
20867
|
-
function J(K, H,
|
|
20867
|
+
function J(K, H, F) {
|
|
20868
20868
|
let G, te, ue, R;
|
|
20869
20869
|
return Array.isArray(K) ? Ae(K) : "tokenize" in K ? (
|
|
20870
20870
|
// @ts-expect-error Looks like a construct.
|
|
@@ -20872,22 +20872,22 @@ function Kle(e, t, n) {
|
|
|
20872
20872
|
) : ae(K);
|
|
20873
20873
|
function ae(Ne) {
|
|
20874
20874
|
return Ge;
|
|
20875
|
-
function Ge(
|
|
20876
|
-
const He =
|
|
20875
|
+
function Ge(tt) {
|
|
20876
|
+
const He = tt !== null && Ne[tt], Oe = tt !== null && Ne.null, Se = [
|
|
20877
20877
|
// To do: add more extension tests.
|
|
20878
20878
|
/* c8 ignore next 2 */
|
|
20879
20879
|
...Array.isArray(He) ? He : He ? [He] : [],
|
|
20880
20880
|
...Array.isArray(Oe) ? Oe : Oe ? [Oe] : []
|
|
20881
20881
|
];
|
|
20882
|
-
return Ae(Se)(
|
|
20882
|
+
return Ae(Se)(tt);
|
|
20883
20883
|
}
|
|
20884
20884
|
}
|
|
20885
20885
|
function Ae(Ne) {
|
|
20886
|
-
return G = Ne, te = 0, Ne.length === 0 ?
|
|
20886
|
+
return G = Ne, te = 0, Ne.length === 0 ? F : N(Ne[te]);
|
|
20887
20887
|
}
|
|
20888
20888
|
function N(Ne) {
|
|
20889
20889
|
return Ge;
|
|
20890
|
-
function Ge(
|
|
20890
|
+
function Ge(tt) {
|
|
20891
20891
|
return R = q(), ue = Ne, Ne.partial || (c.currentConstruct = Ne), Ne.name && c.parser.constructs.disable.null.includes(Ne.name) ? Fe() : Ne.tokenize.call(
|
|
20892
20892
|
// If we do have fields, create an object w/ `context` as its
|
|
20893
20893
|
// prototype.
|
|
@@ -20896,18 +20896,18 @@ function Kle(e, t, n) {
|
|
|
20896
20896
|
l,
|
|
20897
20897
|
Pe,
|
|
20898
20898
|
Fe
|
|
20899
|
-
)(
|
|
20899
|
+
)(tt);
|
|
20900
20900
|
}
|
|
20901
20901
|
}
|
|
20902
20902
|
function Pe(Ne) {
|
|
20903
20903
|
return Z(ue, R), H;
|
|
20904
20904
|
}
|
|
20905
20905
|
function Fe(Ne) {
|
|
20906
|
-
return R.restore(), ++te < G.length ? N(G[te]) :
|
|
20906
|
+
return R.restore(), ++te < G.length ? N(G[te]) : F;
|
|
20907
20907
|
}
|
|
20908
20908
|
}
|
|
20909
20909
|
}
|
|
20910
|
-
function
|
|
20910
|
+
function L(Z, ne) {
|
|
20911
20911
|
Z.resolveAll && !o.includes(Z) && o.push(Z), Z.resolve && di(
|
|
20912
20912
|
c.events,
|
|
20913
20913
|
ne,
|
|
@@ -20918,10 +20918,10 @@ function Kle(e, t, n) {
|
|
|
20918
20918
|
function q() {
|
|
20919
20919
|
const Z = g(), ne = c.previous, J = c.currentConstruct, K = c.events.length, H = Array.from(s);
|
|
20920
20920
|
return {
|
|
20921
|
-
restore:
|
|
20921
|
+
restore: F,
|
|
20922
20922
|
from: K
|
|
20923
20923
|
};
|
|
20924
|
-
function
|
|
20924
|
+
function F() {
|
|
20925
20925
|
r = Z, c.previous = ne, c.currentConstruct = J, c.events.length = K, s = H, D();
|
|
20926
20926
|
}
|
|
20927
20927
|
}
|
|
@@ -21185,7 +21185,7 @@ function hce(e) {
|
|
|
21185
21185
|
atxHeading: l(),
|
|
21186
21186
|
atxHeadingSequence: C,
|
|
21187
21187
|
autolink: l(),
|
|
21188
|
-
autolinkEmail:
|
|
21188
|
+
autolinkEmail: tt,
|
|
21189
21189
|
autolinkProtocol: Ge,
|
|
21190
21190
|
blockQuote: l(),
|
|
21191
21191
|
characterEscapeValue: D,
|
|
@@ -21216,7 +21216,7 @@ function hce(e) {
|
|
|
21216
21216
|
label: ue,
|
|
21217
21217
|
labelText: te,
|
|
21218
21218
|
lineEnding: Z,
|
|
21219
|
-
link: l(
|
|
21219
|
+
link: l(F),
|
|
21220
21220
|
listItem: l(),
|
|
21221
21221
|
listOrdered: l(),
|
|
21222
21222
|
listUnordered: l(),
|
|
@@ -21225,7 +21225,7 @@ function hce(e) {
|
|
|
21225
21225
|
resourceDestinationString: R,
|
|
21226
21226
|
resourceTitleString: ae,
|
|
21227
21227
|
resource: Ae,
|
|
21228
|
-
setextHeading: l(
|
|
21228
|
+
setextHeading: l(L),
|
|
21229
21229
|
setextHeadingLineSequence: M,
|
|
21230
21230
|
setextHeadingText: T,
|
|
21231
21231
|
strong: l(),
|
|
@@ -21446,7 +21446,7 @@ function hce(e) {
|
|
|
21446
21446
|
const fe = this.stack[this.stack.length - 1];
|
|
21447
21447
|
fe.depth = this.sliceSerialize(re).codePointAt(0) === 61 ? 1 : 2;
|
|
21448
21448
|
}
|
|
21449
|
-
function
|
|
21449
|
+
function L() {
|
|
21450
21450
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
21451
21451
|
}
|
|
21452
21452
|
function q(re) {
|
|
@@ -21486,7 +21486,7 @@ function hce(e) {
|
|
|
21486
21486
|
const re = this.resume(), fe = this.stack[this.stack.length - 1];
|
|
21487
21487
|
fe.value = re;
|
|
21488
21488
|
}
|
|
21489
|
-
function
|
|
21489
|
+
function F() {
|
|
21490
21490
|
const re = this.stack[this.stack.length - 1];
|
|
21491
21491
|
if (this.data.inReference) {
|
|
21492
21492
|
const fe = this.data.referenceType || "shortcut";
|
|
@@ -21554,7 +21554,7 @@ function hce(e) {
|
|
|
21554
21554
|
const fe = this.stack[this.stack.length - 1];
|
|
21555
21555
|
fe.url = this.sliceSerialize(re);
|
|
21556
21556
|
}
|
|
21557
|
-
function
|
|
21557
|
+
function tt(re) {
|
|
21558
21558
|
D.call(this, re);
|
|
21559
21559
|
const fe = this.stack[this.stack.length - 1];
|
|
21560
21560
|
fe.url = "mailto:" + this.sliceSerialize(re);
|
|
@@ -25653,13 +25653,13 @@ function jpe(e, t, n) {
|
|
|
25653
25653
|
return e.enter("tableRow"), M(D);
|
|
25654
25654
|
}
|
|
25655
25655
|
function M(D) {
|
|
25656
|
-
return D === 124 ? (e.enter("tableCellDivider"), e.consume(D), e.exit("tableCellDivider"), M) : D === null || bt(D) ? (e.exit("tableRow"), t(D)) : Ht(D) ? tn(e, M, "whitespace")(D) : (e.enter("data"),
|
|
25656
|
+
return D === 124 ? (e.enter("tableCellDivider"), e.consume(D), e.exit("tableCellDivider"), M) : D === null || bt(D) ? (e.exit("tableRow"), t(D)) : Ht(D) ? tn(e, M, "whitespace")(D) : (e.enter("data"), L(D));
|
|
25657
25657
|
}
|
|
25658
|
-
function
|
|
25659
|
-
return D === null || D === 124 || vn(D) ? (e.exit("data"), M(D)) : (e.consume(D), D === 92 ? q :
|
|
25658
|
+
function L(D) {
|
|
25659
|
+
return D === null || D === 124 || vn(D) ? (e.exit("data"), M(D)) : (e.consume(D), D === 92 ? q : L);
|
|
25660
25660
|
}
|
|
25661
25661
|
function q(D) {
|
|
25662
|
-
return D === 92 || D === 124 ? (e.consume(D),
|
|
25662
|
+
return D === 92 || D === 124 ? (e.consume(D), L) : L(D);
|
|
25663
25663
|
}
|
|
25664
25664
|
}
|
|
25665
25665
|
function qpe(e, t) {
|
|
@@ -25822,7 +25822,7 @@ const Kpe = ({ text: e, type: t, styles: n }) => {
|
|
|
25822
25822
|
};
|
|
25823
25823
|
return /* @__PURE__ */ Q.jsx(Nde, { components: i, remarkPlugins: [Vpe, Bde], children: e });
|
|
25824
25824
|
}, Gpe = (e, t, n = 120) => {
|
|
25825
|
-
|
|
25825
|
+
nt(() => {
|
|
25826
25826
|
if (e) {
|
|
25827
25827
|
e.style.height = "0px";
|
|
25828
25828
|
const r = t ? Math.min(e.scrollHeight, n) : 20;
|
|
@@ -26308,10 +26308,10 @@ function ghe(e) {
|
|
|
26308
26308
|
if (T === "%%")
|
|
26309
26309
|
return "%";
|
|
26310
26310
|
A++;
|
|
26311
|
-
const
|
|
26312
|
-
if (typeof
|
|
26311
|
+
const L = n.formatters[M];
|
|
26312
|
+
if (typeof L == "function") {
|
|
26313
26313
|
const q = x[A];
|
|
26314
|
-
T =
|
|
26314
|
+
T = L.call(_, q), x.splice(A, 1), A--;
|
|
26315
26315
|
}
|
|
26316
26316
|
return T;
|
|
26317
26317
|
}), n.formatArgs.call(_, x), (_.log || n.log).apply(_, x);
|
|
@@ -31026,10 +31026,10 @@ var Ob = Hv, WA = Ob.custom, HA = dN(WA) ? WA : null, xve = function e(t, n, r,
|
|
|
31026
31026
|
return "[Circular]";
|
|
31027
31027
|
function m(J, K, H) {
|
|
31028
31028
|
if (K && (i = _ve.call(i), i.push(K)), H) {
|
|
31029
|
-
var
|
|
31029
|
+
var F = {
|
|
31030
31030
|
depth: o.depth
|
|
31031
31031
|
};
|
|
31032
|
-
return ga(o, "quoteStyle") && (
|
|
31032
|
+
return ga(o, "quoteStyle") && (F.quoteStyle = o.quoteStyle), e(J, F, r + 1, i);
|
|
31033
31033
|
}
|
|
31034
31034
|
return e(J, o, r + 1, i);
|
|
31035
31035
|
}
|
|
@@ -31089,7 +31089,7 @@ var Ob = Hv, WA = Ob.custom, HA = dN(WA) ? WA : null, xve = function e(t, n, r,
|
|
|
31089
31089
|
if (Tve(t))
|
|
31090
31090
|
return ql(m(String(t)));
|
|
31091
31091
|
if (!Eve(t) && !VA(t)) {
|
|
31092
|
-
var M = gf(t, m),
|
|
31092
|
+
var M = gf(t, m), L = zA ? zA(t) === Object.prototype : t instanceof Object || t.constructor === Object, q = t instanceof Object ? "" : "null prototype", D = !L && Cr && Object(t) === t && Cr in t ? Hw.call(Fa(t), 8, -1) : q ? "Object" : "", Z = L || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", ne = Z + (D || q ? "[" + ro.call(UA.call([], D || [], q || []), ": ") + "] " : "");
|
|
31093
31093
|
return M.length === 0 ? ne + "{}" : p ? ne + "{" + Rb(M, p) + "}" : ne + "{ " + ro.call(M, ", ") + " }";
|
|
31094
31094
|
}
|
|
31095
31095
|
return String(t);
|
|
@@ -31537,8 +31537,8 @@ var Vw = zw, yl = fve, Uve = xve, Bve = Vw("%TypeError%"), vf = Vw("%WeakMap%",
|
|
|
31537
31537
|
}
|
|
31538
31538
|
typeof w.get(iv) > "u" && (S = 0);
|
|
31539
31539
|
}
|
|
31540
|
-
if (typeof l == "function" ? _ = l(n, _) : _ instanceof Date ? _ = p(_) : r === "comma" && Do(_) && (_ = Jf.maybeMap(_, function(
|
|
31541
|
-
return
|
|
31540
|
+
if (typeof l == "function" ? _ = l(n, _) : _ instanceof Date ? _ = p(_) : r === "comma" && Do(_) && (_ = Jf.maybeMap(_, function(F) {
|
|
31541
|
+
return F instanceof Date ? p(F) : F;
|
|
31542
31542
|
})), _ === null) {
|
|
31543
31543
|
if (o)
|
|
31544
31544
|
return s && !g ? s(n, _r.encoder, v, "key", m) : n;
|
|
@@ -31554,17 +31554,17 @@ var Vw = zw, yl = fve, Uve = xve, Bve = Vw("%TypeError%"), vf = Vw("%WeakMap%",
|
|
|
31554
31554
|
var M = [];
|
|
31555
31555
|
if (typeof _ > "u")
|
|
31556
31556
|
return M;
|
|
31557
|
-
var
|
|
31557
|
+
var L;
|
|
31558
31558
|
if (r === "comma" && Do(_))
|
|
31559
|
-
g && s && (_ = Jf.maybeMap(_, s)),
|
|
31559
|
+
g && s && (_ = Jf.maybeMap(_, s)), L = [{ value: _.length > 0 ? _.join(",") || null : void 0 }];
|
|
31560
31560
|
else if (Do(l))
|
|
31561
|
-
|
|
31561
|
+
L = l;
|
|
31562
31562
|
else {
|
|
31563
31563
|
var q = Object.keys(_);
|
|
31564
|
-
|
|
31564
|
+
L = c ? q.sort(c) : q;
|
|
31565
31565
|
}
|
|
31566
|
-
for (var D = i && Do(_) && _.length === 1 ? n + "[]" : n, Z = 0; Z <
|
|
31567
|
-
var ne =
|
|
31566
|
+
for (var D = i && Do(_) && _.length === 1 ? n + "[]" : n, Z = 0; Z < L.length; ++Z) {
|
|
31567
|
+
var ne = L[Z], J = typeof ne == "object" && typeof ne.value < "u" ? ne.value : _[ne];
|
|
31568
31568
|
if (!(a && J === null)) {
|
|
31569
31569
|
var K = Do(_) ? typeof r == "function" ? r(D, ne) : D : D + (f ? "." + ne : "[" + ne + "]");
|
|
31570
31570
|
x.set(t, S);
|
|
@@ -32393,10 +32393,10 @@ var Pb = { exports: {} };
|
|
|
32393
32393
|
Object.prototype.hasOwnProperty.call(ot, gt) && V.setRequestHeader(gt, ot[gt]);
|
|
32394
32394
|
return V.send(), V;
|
|
32395
32395
|
};
|
|
32396
|
-
function
|
|
32396
|
+
function L(V) {
|
|
32397
32397
|
this._headers = V;
|
|
32398
32398
|
}
|
|
32399
|
-
|
|
32399
|
+
L.prototype.get = function(V) {
|
|
32400
32400
|
return this._headers.get(V);
|
|
32401
32401
|
};
|
|
32402
32402
|
function q() {
|
|
@@ -32409,7 +32409,7 @@ var Pb = { exports: {} };
|
|
|
32409
32409
|
signal: re,
|
|
32410
32410
|
cache: "no-store"
|
|
32411
32411
|
}).then(function(we) {
|
|
32412
|
-
return Pt = we.body.getReader(), ce(we.status, we.statusText, we.headers.get("Content-Type"), new
|
|
32412
|
+
return Pt = we.body.getReader(), ce(we.status, we.statusText, we.headers.get("Content-Type"), new L(we.headers)), new f(function(qe, ft) {
|
|
32413
32413
|
var fn = function() {
|
|
32414
32414
|
Pt.read().then(function(nn) {
|
|
32415
32415
|
if (nn.done)
|
|
@@ -32486,7 +32486,7 @@ var Pb = { exports: {} };
|
|
|
32486
32486
|
ne.call(this, V), this.error = ce.error;
|
|
32487
32487
|
}
|
|
32488
32488
|
H.prototype = Object.create(ne.prototype);
|
|
32489
|
-
var
|
|
32489
|
+
var F = -1, G = 0, te = 1, ue = 2, R = -1, ae = 0, Ae = 1, N = 2, Pe = 3, Fe = /^text\/event\-stream(;.*)?$/i, Ne = 1e3, Ge = 18e6, tt = function(V, ce) {
|
|
32490
32490
|
var Te = V == null ? ce : parseInt(V, 10);
|
|
32491
32491
|
return Te !== Te && (Te = ce), He(Te);
|
|
32492
32492
|
}, He = function(V) {
|
|
@@ -32507,7 +32507,7 @@ var Pb = { exports: {} };
|
|
|
32507
32507
|
var Ce = p != null && m != null && "body" in m.prototype;
|
|
32508
32508
|
function Be(V, ce, Te) {
|
|
32509
32509
|
ce = String(ce);
|
|
32510
|
-
var _e = !!Te.withCredentials, Je = Te.lastEventIdQueryParameterName || "lastEventId", je = He(1e3), ot =
|
|
32510
|
+
var _e = !!Te.withCredentials, Je = Te.lastEventIdQueryParameterName || "lastEventId", je = He(1e3), ot = tt(Te.heartbeatTimeout, 45e3), Pt = "", gt = je, re = !1, fe = 0, we = Te.headers || {}, qe = Te.Transport, ft = Ce && qe == null ? void 0 : new A(qe != null ? new qe() : Le()), fn = qe != null && typeof qe != "string" ? new qe() : ft == null ? new q() : new M(), nn = void 0, Xt = 0, cn = F, En = "", X = "", oe = "", pt = "", At = ae, rn = 0, ht = 0, Dn = function(Ye, Re, Ze, xt) {
|
|
32511
32511
|
if (cn === G)
|
|
32512
32512
|
if (Ye === 200 && Ze != null && Fe.test(Ze)) {
|
|
32513
32513
|
cn = te, re = Date.now(), gt = je, V.readyState = te;
|
|
@@ -32547,7 +32547,7 @@ var Pb = { exports: {} };
|
|
|
32547
32547
|
At === Ae && (ht = Qt + 1);
|
|
32548
32548
|
var mn = Nt.slice(rn, ht - 1), Rn = Nt.slice(ht + (ht < Qt && Nt.charCodeAt(ht) === " ".charCodeAt(0) ? 1 : 0), Qt);
|
|
32549
32549
|
mn === "data" ? (En += `
|
|
32550
|
-
`, En += Rn) : mn === "id" ? X = Rn : mn === "event" ? oe = Rn : mn === "retry" ? (je =
|
|
32550
|
+
`, En += Rn) : mn === "id" ? X = Rn : mn === "event" ? oe = Rn : mn === "retry" ? (je = tt(Rn, je), gt = je) : mn === "heartbeatTimeout" && (ot = tt(Rn, ot), Xt !== 0 && (i(Xt), Xt = r(function() {
|
|
32551
32551
|
ze();
|
|
32552
32552
|
}, ot)));
|
|
32553
32553
|
}
|
|
@@ -32570,7 +32570,7 @@ var Pb = { exports: {} };
|
|
|
32570
32570
|
}
|
|
32571
32571
|
}, P = function(Ye) {
|
|
32572
32572
|
if (cn === te || cn === G) {
|
|
32573
|
-
cn =
|
|
32573
|
+
cn = F, Xt !== 0 && (i(Xt), Xt = 0), Xt = r(function() {
|
|
32574
32574
|
ze();
|
|
32575
32575
|
}, gt), gt = He(Math.min(je * 16, gt * 2)), V.readyState = G;
|
|
32576
32576
|
var Re = new H("error", { error: Ye });
|
|
@@ -32579,7 +32579,7 @@ var Pb = { exports: {} };
|
|
|
32579
32579
|
}, De = function() {
|
|
32580
32580
|
cn = ue, nn != null && (nn.abort(), nn = void 0), Xt !== 0 && (i(Xt), Xt = 0), V.readyState = ue;
|
|
32581
32581
|
}, ze = function() {
|
|
32582
|
-
if (Xt = 0, cn !==
|
|
32582
|
+
if (Xt = 0, cn !== F) {
|
|
32583
32583
|
if (!re && nn != null)
|
|
32584
32584
|
P(new Error("No activity within " + ot + " milliseconds. " + (cn === G ? "No response received." : fe + " chars received.") + " Reconnecting.")), nn != null && (nn.abort(), nn = void 0);
|
|
32585
32585
|
else {
|
|
@@ -36062,7 +36062,7 @@ var Awe = (e) => typeof e == "function", Ch = (e, t) => Awe(e) ? e(t) : e, Twe =
|
|
|
36062
36062
|
});
|
|
36063
36063
|
}, $we = { blank: 4e3, error: 4e3, success: 2e3, loading: 1 / 0, custom: 4e3 }, Rwe = (e = {}) => {
|
|
36064
36064
|
let [t, n] = ut(tp);
|
|
36065
|
-
|
|
36065
|
+
nt(() => (ep.push(n), () => {
|
|
36066
36066
|
let i = ep.indexOf(n);
|
|
36067
36067
|
i > -1 && ep.splice(i, 1);
|
|
36068
36068
|
}), [t]);
|
|
@@ -36095,7 +36095,7 @@ var Pwe = (e, t) => {
|
|
|
36095
36095
|
Ls({ type: 5, time: Date.now() });
|
|
36096
36096
|
}, Dwe = (e) => {
|
|
36097
36097
|
let { toasts: t, pausedAt: n } = Rwe(e);
|
|
36098
|
-
|
|
36098
|
+
nt(() => {
|
|
36099
36099
|
if (n)
|
|
36100
36100
|
return;
|
|
36101
36101
|
let o = Date.now(), a = t.map((s) => {
|
|
@@ -36356,7 +36356,7 @@ let c_e = class {
|
|
|
36356
36356
|
return this.handoffState === "complete";
|
|
36357
36357
|
}
|
|
36358
36358
|
}, Ql = new c_e(), Vm = (e, t) => {
|
|
36359
|
-
Ql.isServer ?
|
|
36359
|
+
Ql.isServer ? nt(e, t) : Ic(e, t);
|
|
36360
36360
|
};
|
|
36361
36361
|
function Eu(e) {
|
|
36362
36362
|
let t = yt(e);
|
|
@@ -36413,7 +36413,7 @@ function Km() {
|
|
|
36413
36413
|
}
|
|
36414
36414
|
function IN() {
|
|
36415
36415
|
let [e] = ut(Km);
|
|
36416
|
-
return
|
|
36416
|
+
return nt(() => () => e.dispose(), [e]), e;
|
|
36417
36417
|
}
|
|
36418
36418
|
let ls = function(e) {
|
|
36419
36419
|
let t = Eu(e);
|
|
@@ -36421,9 +36421,9 @@ let ls = function(e) {
|
|
|
36421
36421
|
};
|
|
36422
36422
|
function PN() {
|
|
36423
36423
|
let [e, t] = ut(Ql.isHandoffComplete);
|
|
36424
|
-
return e && Ql.isHandoffComplete === !1 && t(!1),
|
|
36424
|
+
return e && Ql.isHandoffComplete === !1 && t(!1), nt(() => {
|
|
36425
36425
|
e !== !0 && t(!0);
|
|
36426
|
-
}, [e]),
|
|
36426
|
+
}, [e]), nt(() => Ql.handoff(), []), e;
|
|
36427
36427
|
}
|
|
36428
36428
|
function ao(e, t, ...n) {
|
|
36429
36429
|
if (e in t) {
|
|
@@ -36436,7 +36436,7 @@ function ao(e, t, ...n) {
|
|
|
36436
36436
|
let f_e = Symbol();
|
|
36437
36437
|
function NN(...e) {
|
|
36438
36438
|
let t = yt(e);
|
|
36439
|
-
|
|
36439
|
+
nt(() => {
|
|
36440
36440
|
t.current = e;
|
|
36441
36441
|
}, [e]);
|
|
36442
36442
|
let n = ls((r) => {
|
|
@@ -36667,27 +36667,27 @@ function iT(e) {
|
|
|
36667
36667
|
}
|
|
36668
36668
|
function A_e(e) {
|
|
36669
36669
|
let t = yt(iT(e));
|
|
36670
|
-
return
|
|
36670
|
+
return nt(() => {
|
|
36671
36671
|
t.current = iT(e);
|
|
36672
36672
|
}, [e]), t;
|
|
36673
36673
|
}
|
|
36674
36674
|
let T_e = "div", BN = MN.RenderStrategy, zN = Yw(function(e, t) {
|
|
36675
|
-
let { beforeEnter: n, afterEnter: r, beforeLeave: i, afterLeave: o, enter: a, enterFrom: s, enterTo: l, entered: c, leave: f, leaveFrom: p, leaveTo: m, ...h } = e, g = yt(null), v = NN(g, t), x = h.unmount ? jo.Unmount : jo.Hidden, { show: _, appear: w, initial: S } = __e(), [A, C] = ut(_ ? "visible" : "hidden"), T = x_e(), { register: M, unregister:
|
|
36676
|
-
|
|
36675
|
+
let { beforeEnter: n, afterEnter: r, beforeLeave: i, afterLeave: o, enter: a, enterFrom: s, enterTo: l, entered: c, leave: f, leaveFrom: p, leaveTo: m, ...h } = e, g = yt(null), v = NN(g, t), x = h.unmount ? jo.Unmount : jo.Hidden, { show: _, appear: w, initial: S } = __e(), [A, C] = ut(_ ? "visible" : "hidden"), T = x_e(), { register: M, unregister: L } = T, q = yt(null);
|
|
36676
|
+
nt(() => M(g), [M, g]), nt(() => {
|
|
36677
36677
|
if (x === jo.Hidden && g.current) {
|
|
36678
36678
|
if (_ && A !== "visible") {
|
|
36679
36679
|
C("visible");
|
|
36680
36680
|
return;
|
|
36681
36681
|
}
|
|
36682
|
-
return ao(A, { hidden: () =>
|
|
36682
|
+
return ao(A, { hidden: () => L(g), visible: () => M(g) });
|
|
36683
36683
|
}
|
|
36684
|
-
}, [A, g, M,
|
|
36684
|
+
}, [A, g, M, L, _, x]);
|
|
36685
36685
|
let D = Eu({ enter: Qa(a), enterFrom: Qa(s), enterTo: Qa(l), entered: Qa(c), leave: Qa(f), leaveFrom: Qa(p), leaveTo: Qa(m) }), Z = A_e({ beforeEnter: n, afterEnter: r, beforeLeave: i, afterLeave: o }), ne = PN();
|
|
36686
|
-
|
|
36686
|
+
nt(() => {
|
|
36687
36687
|
if (ne && A === "visible" && g.current === null)
|
|
36688
36688
|
throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
36689
36689
|
}, [g, A, ne]);
|
|
36690
|
-
let J = S && !w, K = (() => !ne || J || q.current === _ ? "idle" : _ ? "enter" : "leave")(), H = m_e(0),
|
|
36690
|
+
let J = S && !w, K = (() => !ne || J || q.current === _ ? "idle" : _ ? "enter" : "leave")(), H = m_e(0), F = ls((ae) => ao(ae, { enter: () => {
|
|
36691
36691
|
H.addFlag(Mo.Opening), Z.current.beforeEnter();
|
|
36692
36692
|
}, leave: () => {
|
|
36693
36693
|
H.addFlag(Mo.Closing), Z.current.beforeLeave();
|
|
@@ -36698,13 +36698,13 @@ let T_e = "div", BN = MN.RenderStrategy, zN = Yw(function(e, t) {
|
|
|
36698
36698
|
H.removeFlag(Mo.Closing), Z.current.afterLeave();
|
|
36699
36699
|
}, idle: () => {
|
|
36700
36700
|
} })), te = UN(() => {
|
|
36701
|
-
C("hidden"),
|
|
36701
|
+
C("hidden"), L(g);
|
|
36702
36702
|
}, T);
|
|
36703
36703
|
b_e({ container: g, classes: D, direction: K, onStart: Eu((ae) => {
|
|
36704
|
-
te.onStart(g, ae,
|
|
36704
|
+
te.onStart(g, ae, F);
|
|
36705
36705
|
}), onStop: Eu((ae) => {
|
|
36706
|
-
te.onStop(g, ae, G), ae === "leave" && !Jm(te) && (C("hidden"),
|
|
36707
|
-
}) }),
|
|
36706
|
+
te.onStop(g, ae, G), ae === "leave" && !Jm(te) && (C("hidden"), L(g));
|
|
36707
|
+
}) }), nt(() => {
|
|
36708
36708
|
!J || (x === jo.Hidden ? q.current = null : q.current = _);
|
|
36709
36709
|
}, [_, J, A]);
|
|
36710
36710
|
let ue = h, R = { ref: v };
|
|
@@ -36722,7 +36722,7 @@ let T_e = "div", BN = MN.RenderStrategy, zN = Yw(function(e, t) {
|
|
|
36722
36722
|
m !== !1 && g.current[g.current.length - 1] !== n && (g.current.push(n), h(!1));
|
|
36723
36723
|
}, [g, n]);
|
|
36724
36724
|
let v = hs(() => ({ show: n, appear: r, initial: m }), [n, r, m]);
|
|
36725
|
-
|
|
36725
|
+
nt(() => {
|
|
36726
36726
|
if (n)
|
|
36727
36727
|
f("visible");
|
|
36728
36728
|
else if (!Jm(p))
|
|
@@ -36780,7 +36780,7 @@ function M_e() {
|
|
|
36780
36780
|
var e = yt(!1), t = Gn(function() {
|
|
36781
36781
|
return e.current;
|
|
36782
36782
|
}, []);
|
|
36783
|
-
return
|
|
36783
|
+
return nt(function() {
|
|
36784
36784
|
return e.current = !0, function() {
|
|
36785
36785
|
e.current = !1;
|
|
36786
36786
|
};
|
|
@@ -36807,7 +36807,7 @@ function zb(e, t) {
|
|
|
36807
36807
|
var n = L_e(e, t, {
|
|
36808
36808
|
loading: !0
|
|
36809
36809
|
}), r = n[0], i = n[1];
|
|
36810
|
-
return
|
|
36810
|
+
return nt(function() {
|
|
36811
36811
|
i();
|
|
36812
36812
|
}, [i]), r;
|
|
36813
36813
|
}
|
|
@@ -36822,7 +36822,7 @@ function j_e(e) {
|
|
|
36822
36822
|
e && e.removeEventListener && e.removeEventListener.apply(e, t);
|
|
36823
36823
|
}
|
|
36824
36824
|
var q_e = function(e) {
|
|
36825
|
-
|
|
36825
|
+
nt(e, []);
|
|
36826
36826
|
};
|
|
36827
36827
|
const ZN = q_e;
|
|
36828
36828
|
var U_e = function(e) {
|
|
@@ -36857,7 +36857,7 @@ var V_e = function(e) {
|
|
|
36857
36857
|
x: 0,
|
|
36858
36858
|
y: 0
|
|
36859
36859
|
}), n = t[0], r = t[1];
|
|
36860
|
-
return
|
|
36860
|
+
return nt(function() {
|
|
36861
36861
|
var i = function() {
|
|
36862
36862
|
e.current && r({
|
|
36863
36863
|
x: e.current.scrollLeft,
|
|
@@ -36970,10 +36970,10 @@ function X_e() {
|
|
|
36970
36970
|
{
|
|
36971
36971
|
var T = t.ReactDebugCurrentFrame, M = T.getStackAddendum();
|
|
36972
36972
|
M !== "" && (A += "%s", C = C.concat([M]));
|
|
36973
|
-
var
|
|
36973
|
+
var L = C.map(function(q) {
|
|
36974
36974
|
return String(q);
|
|
36975
36975
|
});
|
|
36976
|
-
|
|
36976
|
+
L.unshift("Warning: " + A), Function.prototype.apply.call(console[S], console, L);
|
|
36977
36977
|
}
|
|
36978
36978
|
}
|
|
36979
36979
|
function i(S, A) {
|
|
@@ -36987,12 +36987,12 @@ function X_e() {
|
|
|
36987
36987
|
var M = A();
|
|
36988
36988
|
o(T, M) || (n("The result of getSnapshot should be cached to avoid an infinite loop"), p = !0);
|
|
36989
36989
|
}
|
|
36990
|
-
var
|
|
36990
|
+
var L = a({
|
|
36991
36991
|
inst: {
|
|
36992
36992
|
value: T,
|
|
36993
36993
|
getSnapshot: A
|
|
36994
36994
|
}
|
|
36995
|
-
}), q =
|
|
36995
|
+
}), q = L[0].inst, D = L[1];
|
|
36996
36996
|
return l(function() {
|
|
36997
36997
|
q.value = T, q.getSnapshot = A, h(q) && D({
|
|
36998
36998
|
inst: q
|
|
@@ -37067,8 +37067,8 @@ function Q_e() {
|
|
|
37067
37067
|
}
|
|
37068
37068
|
if (M = A, r(S, T))
|
|
37069
37069
|
return M;
|
|
37070
|
-
var
|
|
37071
|
-
return h !== void 0 && h(M,
|
|
37070
|
+
var L = m(T);
|
|
37071
|
+
return h !== void 0 && h(M, L) ? M : (S = T, A = L);
|
|
37072
37072
|
}
|
|
37073
37073
|
var w = !1, S, A, C = p === void 0 ? null : p;
|
|
37074
37074
|
return [function() {
|
|
@@ -37109,7 +37109,7 @@ function exe() {
|
|
|
37109
37109
|
value: null
|
|
37110
37110
|
}, v.current = x) : x = v.current;
|
|
37111
37111
|
var _ = s(function() {
|
|
37112
|
-
var C = !1, T, M,
|
|
37112
|
+
var C = !1, T, M, L = function(ne) {
|
|
37113
37113
|
if (!C) {
|
|
37114
37114
|
C = !0, T = ne;
|
|
37115
37115
|
var J = h(ne);
|
|
@@ -37120,15 +37120,15 @@ function exe() {
|
|
|
37120
37120
|
}
|
|
37121
37121
|
return M = J, J;
|
|
37122
37122
|
}
|
|
37123
|
-
var H = T,
|
|
37123
|
+
var H = T, F = M;
|
|
37124
37124
|
if (r(H, ne))
|
|
37125
|
-
return
|
|
37125
|
+
return F;
|
|
37126
37126
|
var G = h(ne);
|
|
37127
|
-
return g !== void 0 && g(
|
|
37127
|
+
return g !== void 0 && g(F, G) ? F : (T = ne, M = G, G);
|
|
37128
37128
|
}, q = m === void 0 ? null : m, D = function() {
|
|
37129
|
-
return
|
|
37129
|
+
return L(p());
|
|
37130
37130
|
}, Z = q === null ? void 0 : function() {
|
|
37131
|
-
return
|
|
37131
|
+
return L(q());
|
|
37132
37132
|
};
|
|
37133
37133
|
return [D, Z];
|
|
37134
37134
|
}, [p, m, h, g]), w = _[0], S = _[1], A = i(f, w, S);
|
|
@@ -37608,9 +37608,10 @@ const Tc = (e) => (t) => {
|
|
|
37608
37608
|
messageContainerRef: { current: null },
|
|
37609
37609
|
isTyping: !1,
|
|
37610
37610
|
allowFileUpload: !1,
|
|
37611
|
-
conversationId: void 0
|
|
37611
|
+
conversationId: void 0,
|
|
37612
|
+
disableRestartConversation: !1
|
|
37612
37613
|
}, n = e == null ? void 0 : e.client, r = e == null ? void 0 : e.conversationId, i = qo.getState().setClientMode, o = qo.getState().setConversationId;
|
|
37613
|
-
return n && i(n.mode),
|
|
37614
|
+
return n && i(n.mode), nt(() => {
|
|
37614
37615
|
r && o(r);
|
|
37615
37616
|
}, [r]), WN()(
|
|
37616
37617
|
KN(
|
|
@@ -37624,13 +37625,13 @@ const Tc = (e) => (t) => {
|
|
|
37624
37625
|
sendFile: (p) => s().client.sendFile(p),
|
|
37625
37626
|
sendTextMessage: async (p) => {
|
|
37626
37627
|
const m = s().client;
|
|
37627
|
-
|
|
37628
|
+
l({
|
|
37628
37629
|
direction: "outgoing",
|
|
37629
37630
|
sender: { name: "You" },
|
|
37630
37631
|
timestamp: /* @__PURE__ */ new Date(),
|
|
37631
37632
|
disableInput: !1,
|
|
37632
37633
|
block: { type: "bubble", block: { type: "text", text: p } }
|
|
37633
|
-
}), m != null && m.userId && f({ message: p, userId: m.userId });
|
|
37634
|
+
}), m && await m.sendMessage(p), m != null && m.userId && f({ message: p, userId: m.userId });
|
|
37634
37635
|
},
|
|
37635
37636
|
on: (p, m) => {
|
|
37636
37637
|
const h = s().client;
|
|
@@ -37666,7 +37667,7 @@ function rt(e) {
|
|
|
37666
37667
|
}
|
|
37667
37668
|
const pxe = ({ text: e, buttonValue: t, type: n, styles: r, variant: i, groupId: o, reusable: a, ...s }) => {
|
|
37668
37669
|
const l = rt((w) => w.eventEmitter), c = rt((w) => w.sendTextMessage), f = rt((w) => w.isReadOnly), [p, m] = ut(!1), [h, g] = ut(!1), [v, x] = ut(!1);
|
|
37669
|
-
|
|
37670
|
+
nt(() => {
|
|
37670
37671
|
if (o)
|
|
37671
37672
|
return l.on(`button-group-${o}-click`, () => {
|
|
37672
37673
|
g(!0), a || x(!0);
|
|
@@ -37725,7 +37726,7 @@ const gxe = st(
|
|
|
37725
37726
|
const a = w5(), { setIsLoading: s } = yxe(), [l, c] = ut(r), [f, p] = ut(!1);
|
|
37726
37727
|
return Ic(() => {
|
|
37727
37728
|
s((g) => [...g, a]);
|
|
37728
|
-
}, []),
|
|
37729
|
+
}, []), nt(() => {
|
|
37729
37730
|
e && l === "auto" && gwe(e).then(({ width: g, height: v }) => {
|
|
37730
37731
|
c(vxe(g, v)), s((x) => x.filter((_) => _ !== a));
|
|
37731
37732
|
});
|
|
@@ -38150,14 +38151,14 @@ function Xxe(e, t, n, r, i, o, a, s, l, c, f, p, m, h, g, v, x, _, w) {
|
|
|
38150
38151
|
cross: S
|
|
38151
38152
|
} = e, A = ["INPUT", "SELECT", "TEXTAREA"], C = {
|
|
38152
38153
|
passive: !1
|
|
38153
|
-
}, T = kc(), M = kc(),
|
|
38154
|
+
}, T = kc(), M = kc(), L = Ia(50, 225).constrain(g.measure(20)), q = {
|
|
38154
38155
|
mouse: 300,
|
|
38155
38156
|
touch: 400
|
|
38156
38157
|
}, D = {
|
|
38157
38158
|
mouse: 500,
|
|
38158
38159
|
touch: 600
|
|
38159
38160
|
}, Z = v ? 43 : 25;
|
|
38160
|
-
let ne = !1, J = 0, K = 0, H = !1,
|
|
38161
|
+
let ne = !1, J = 0, K = 0, H = !1, F = !1, G = !1, te = !1;
|
|
38161
38162
|
function ue(Se, Le) {
|
|
38162
38163
|
if (!Le)
|
|
38163
38164
|
return;
|
|
@@ -38167,7 +38168,7 @@ function Xxe(e, t, n, r, i, o, a, s, l, c, f, p, m, h, g, v, x, _, w) {
|
|
|
38167
38168
|
const Be = n;
|
|
38168
38169
|
T.add(Be, "dragstart", (ct) => ct.preventDefault(), C).add(Be, "touchmove", () => {
|
|
38169
38170
|
}, C).add(Be, "touchend", () => {
|
|
38170
|
-
}).add(Be, "touchstart", Ce).add(Be, "mousedown", Ce).add(Be, "touchcancel", Ge).add(Be, "contextmenu", Ge).add(Be, "click",
|
|
38171
|
+
}).add(Be, "touchstart", Ce).add(Be, "mousedown", Ce).add(Be, "touchcancel", Ge).add(Be, "contextmenu", Ge).add(Be, "click", tt, !0);
|
|
38171
38172
|
}
|
|
38172
38173
|
function R() {
|
|
38173
38174
|
T.clear(), M.clear();
|
|
@@ -38185,7 +38186,7 @@ function Xxe(e, t, n, r, i, o, a, s, l, c, f, p, m, h, g, v, x, _, w) {
|
|
|
38185
38186
|
}
|
|
38186
38187
|
function Pe(Se, Le) {
|
|
38187
38188
|
const Ce = m.add(t_(Se) * -1), Be = p.byDistance(Se, !v).distance;
|
|
38188
|
-
return v || Fn(Se) <
|
|
38189
|
+
return v || Fn(Se) < L ? Be : _ && Le ? Be * 0.5 : p.byIndex(Ce.get(), 0).distance;
|
|
38189
38190
|
}
|
|
38190
38191
|
function Fe(Se) {
|
|
38191
38192
|
const Le = nD(Se, i);
|
|
@@ -38193,16 +38194,16 @@ function Xxe(e, t, n, r, i, o, a, s, l, c, f, p, m, h, g, v, x, _, w) {
|
|
|
38193
38194
|
}
|
|
38194
38195
|
function Ne(Se) {
|
|
38195
38196
|
const Le = a.readPoint(Se), Ce = a.readPoint(Se, S), Be = np(Le, J), ct = np(Ce, K);
|
|
38196
|
-
if (!
|
|
38197
|
+
if (!F && !te && (!Se.cancelable || (F = Be > ct, !F)))
|
|
38197
38198
|
return Ge(Se);
|
|
38198
38199
|
const V = a.pointerMove(Se);
|
|
38199
38200
|
Be > x && (G = !0), f.useFriction(0.3).useDuration(1), l.start(), o.add(t.apply(V)), Se.preventDefault();
|
|
38200
38201
|
}
|
|
38201
38202
|
function Ge(Se) {
|
|
38202
38203
|
const Ce = p.byDistance(0, !1).index !== m.get(), Be = a.pointerUp(Se) * N(), ct = Pe(t.apply(Be), Ce), V = Kxe(Be, ct), ce = Z - 10 * V, Te = w + V / 50;
|
|
38203
|
-
|
|
38204
|
+
F = !1, H = !1, M.clear(), f.useDuration(ce).useFriction(Te), c.distance(ct, !v), te = !1, h.emit("pointerUp");
|
|
38204
38205
|
}
|
|
38205
|
-
function
|
|
38206
|
+
function tt(Se) {
|
|
38206
38207
|
G && (Se.stopPropagation(), Se.preventDefault());
|
|
38207
38208
|
}
|
|
38208
38209
|
function He() {
|
|
@@ -38560,13 +38561,13 @@ function iD(e, t, n) {
|
|
|
38560
38561
|
function d1e(e, t, n, r, i, o, a, s, l) {
|
|
38561
38562
|
const c = Cc(i), f = Cc(i).reverse(), p = v().concat(x());
|
|
38562
38563
|
function m(C, T) {
|
|
38563
|
-
return C.reduce((M,
|
|
38564
|
+
return C.reduce((M, L) => M - i[L], T);
|
|
38564
38565
|
}
|
|
38565
38566
|
function h(C, T) {
|
|
38566
|
-
return C.reduce((M,
|
|
38567
|
+
return C.reduce((M, L) => m(M, T) > 0 ? M.concat([L]) : M, []);
|
|
38567
38568
|
}
|
|
38568
38569
|
function g(C, T) {
|
|
38569
|
-
const M = T === "start",
|
|
38570
|
+
const M = T === "start", L = M ? -r : r, q = a.findSlideBounds([L]);
|
|
38570
38571
|
return C.map((D) => {
|
|
38571
38572
|
const Z = M ? 0 : -r, ne = M ? r : 0, K = q.filter((H) => H.index === D)[0][M ? "end" : "start"];
|
|
38572
38573
|
return {
|
|
@@ -38598,9 +38599,9 @@ function d1e(e, t, n, r, i, o, a, s, l) {
|
|
|
38598
38599
|
const {
|
|
38599
38600
|
target: T,
|
|
38600
38601
|
translate: M,
|
|
38601
|
-
slideLocation:
|
|
38602
|
+
slideLocation: L
|
|
38602
38603
|
} = C, q = T();
|
|
38603
|
-
q !==
|
|
38604
|
+
q !== L.get() && (M.to(q), L.set(q));
|
|
38604
38605
|
});
|
|
38605
38606
|
}
|
|
38606
38607
|
function S() {
|
|
@@ -38651,10 +38652,10 @@ function p1e(e, t, n, r, i, o, a) {
|
|
|
38651
38652
|
function h(x, _) {
|
|
38652
38653
|
const w = x || f, S = m(_);
|
|
38653
38654
|
return w.reduce((A, C) => {
|
|
38654
|
-
const T = r.map((M,
|
|
38655
|
-
start: M - n[
|
|
38656
|
-
end: M + e - S[
|
|
38657
|
-
index:
|
|
38655
|
+
const T = r.map((M, L) => ({
|
|
38656
|
+
start: M - n[L] + S[L] + C,
|
|
38657
|
+
end: M + e - S[L] + C,
|
|
38658
|
+
index: L
|
|
38658
38659
|
}));
|
|
38659
38660
|
return A.concat(T);
|
|
38660
38661
|
}, []);
|
|
@@ -38665,8 +38666,8 @@ function p1e(e, t, n, r, i, o, a) {
|
|
|
38665
38666
|
const {
|
|
38666
38667
|
index: T,
|
|
38667
38668
|
start: M,
|
|
38668
|
-
end:
|
|
38669
|
-
} = C, q = A.includes(T), D = M < w &&
|
|
38669
|
+
end: L
|
|
38670
|
+
} = C, q = A.includes(T), D = M < w && L > w;
|
|
38670
38671
|
return !q && D ? A.concat([T]) : A;
|
|
38671
38672
|
}, []);
|
|
38672
38673
|
}
|
|
@@ -38736,15 +38737,15 @@ function y1e(e, t, n, r, i, o, a, s) {
|
|
|
38736
38737
|
slidesToScroll: _,
|
|
38737
38738
|
skipSnaps: w,
|
|
38738
38739
|
containScroll: S
|
|
38739
|
-
} = o, A = t.getBoundingClientRect(), C = n.map((Te) => Te.getBoundingClientRect()), T = Jxe(f), M = Yxe(c, f),
|
|
38740
|
+
} = o, A = t.getBoundingClientRect(), C = n.map((Te) => Te.getBoundingClientRect()), T = Jxe(f), M = Yxe(c, f), L = M.measureSize(A), q = e1e(L), D = Gxe(l, L), Z = !h && !!S, ne = h || !!S, {
|
|
38740
38741
|
slideSizes: J,
|
|
38741
38742
|
slideSizesWithGaps: K
|
|
38742
|
-
} = h1e(M, A, C, n, ne, i), H = m1e(
|
|
38743
|
-
snaps:
|
|
38743
|
+
} = h1e(M, A, C, n, ne, i), H = m1e(L, K, _), {
|
|
38744
|
+
snaps: F,
|
|
38744
38745
|
snapsAligned: G
|
|
38745
|
-
} = u1e(M, D, A, C, K, H, Z), te = -Zo(
|
|
38746
|
+
} = u1e(M, D, A, C, K, H, Z), te = -Zo(F) + Zo(K), {
|
|
38746
38747
|
snapsContained: ue
|
|
38747
|
-
} = i1e(
|
|
38748
|
+
} = i1e(L, te, G, S), R = Z ? ue : G, {
|
|
38748
38749
|
limit: ae
|
|
38749
38750
|
} = o1e(te, R, h), Ae = rD(Xm(R), p, h), N = Ae.clone(), Pe = Cc(n), Fe = ({
|
|
38750
38751
|
dragHandler: Te,
|
|
@@ -38778,7 +38779,7 @@ function y1e(e, t, n, r, i, o, a, s) {
|
|
|
38778
38779
|
stop: () => s.stop(ce),
|
|
38779
38780
|
update: () => Fe(ce),
|
|
38780
38781
|
render: (Te) => Ne(ce, Te)
|
|
38781
|
-
},
|
|
38782
|
+
}, tt = 0.68, He = R[Ae.get()], Oe = rp(He), Se = rp(He), Le = rp(He), Ce = n1e(Oe, Le, g, tt), Be = l1e(h, R, te, ae, Le), ct = c1e(Ge, Ae, N, Be, Ce, Le, a), V = p1e(L, te, J, F, ae, h, m), ce = {
|
|
38782
38783
|
ownerDocument: r,
|
|
38783
38784
|
ownerWindow: i,
|
|
38784
38785
|
eventHandler: a,
|
|
@@ -38787,7 +38788,7 @@ function y1e(e, t, n, r, i, o, a, s) {
|
|
|
38787
38788
|
animation: Ge,
|
|
38788
38789
|
axis: M,
|
|
38789
38790
|
direction: T,
|
|
38790
|
-
dragHandler: Xxe(M, T, e, r, i, Le, Qxe(M, i), Oe, Ge, ct, Ce, Be, Ae, a, q, v, x, w,
|
|
38791
|
+
dragHandler: Xxe(M, T, e, r, i, Le, Qxe(M, i), Oe, Ge, ct, Ce, Be, Ae, a, q, v, x, w, tt),
|
|
38791
38792
|
eventStore: kc(),
|
|
38792
38793
|
percentOfView: q,
|
|
38793
38794
|
index: Ae,
|
|
@@ -38804,7 +38805,7 @@ function y1e(e, t, n, r, i, o, a, s) {
|
|
|
38804
38805
|
scrollSnaps: R,
|
|
38805
38806
|
scrollTarget: Be,
|
|
38806
38807
|
scrollTo: ct,
|
|
38807
|
-
slideLooper: d1e(M, T,
|
|
38808
|
+
slideLooper: d1e(M, T, L, te, K, R, V, Se, n),
|
|
38808
38809
|
slidesHandler: f1e(t, a),
|
|
38809
38810
|
slidesInView: V,
|
|
38810
38811
|
slideIndexes: Pe,
|
|
@@ -38938,18 +38939,18 @@ function Vu(e, t, n) {
|
|
|
38938
38939
|
off: v,
|
|
38939
38940
|
emit: x
|
|
38940
38941
|
} = c, _ = J;
|
|
38941
|
-
let w = !1, S, A = p(b1e, Vu.globalOptions), C = p(A), T = [], M,
|
|
38942
|
+
let w = !1, S, A = p(b1e, Vu.globalOptions), C = p(A), T = [], M, L, q;
|
|
38942
38943
|
function D() {
|
|
38943
38944
|
const {
|
|
38944
38945
|
container: Ce,
|
|
38945
38946
|
slides: Be
|
|
38946
38947
|
} = C;
|
|
38947
|
-
|
|
38948
|
-
const V = hT(Be) ?
|
|
38949
|
-
q = [].slice.call(V ||
|
|
38948
|
+
L = (hT(Ce) ? e.querySelector(Ce) : Ce) || e.children[0];
|
|
38949
|
+
const V = hT(Be) ? L.querySelectorAll(Be) : Be;
|
|
38950
|
+
q = [].slice.call(V || L.children);
|
|
38950
38951
|
}
|
|
38951
38952
|
function Z(Ce, Be) {
|
|
38952
|
-
const ct = y1e(e,
|
|
38953
|
+
const ct = y1e(e, L, q, r, i, Ce, c, Be);
|
|
38953
38954
|
if (Ce.loop && !ct.slideLooper.canLoop()) {
|
|
38954
38955
|
const V = Object.assign({}, Ce, {
|
|
38955
38956
|
loop: !1
|
|
@@ -38966,7 +38967,7 @@ function Vu(e, t, n) {
|
|
|
38966
38967
|
options: ce
|
|
38967
38968
|
}) => ce)]).forEach((ce) => s.add(ce, "change", J)), C.active && (S.translate.to(S.location.get()), S.eventHandler.init(Le), S.resizeHandler.init(Le, C.watchResize), S.slidesHandler.init(Le, C.watchSlides), l.add(r, "visibilitychange", () => {
|
|
38968
38969
|
r.hidden && V.reset();
|
|
38969
|
-
}), S.options.loop && S.slideLooper.loop(),
|
|
38970
|
+
}), S.options.loop && S.slideLooper.loop(), L.offsetParent && q.length && S.dragHandler.init(Le, C.watchDrag), M = a.init(T, Le));
|
|
38970
38971
|
}
|
|
38971
38972
|
function J(Ce, Be) {
|
|
38972
38973
|
const ct = Fe();
|
|
@@ -38980,12 +38981,12 @@ function Vu(e, t, n) {
|
|
|
38980
38981
|
function H() {
|
|
38981
38982
|
w || (w = !0, s.clear(), K(), c.emit("destroy"));
|
|
38982
38983
|
}
|
|
38983
|
-
function
|
|
38984
|
+
function F(Ce) {
|
|
38984
38985
|
const Be = S[Ce ? "target" : "location"].get(), ct = C.loop ? "removeOffset" : "constrain";
|
|
38985
38986
|
return S.slidesInView.check(S.limit[ct](Be));
|
|
38986
38987
|
}
|
|
38987
38988
|
function G(Ce) {
|
|
38988
|
-
const Be =
|
|
38989
|
+
const Be = F(Ce);
|
|
38989
38990
|
return S.slideIndexes.filter((ct) => !Be.includes(ct));
|
|
38990
38991
|
}
|
|
38991
38992
|
function te(Ce, Be, ct) {
|
|
@@ -39020,14 +39021,14 @@ function Vu(e, t, n) {
|
|
|
39020
39021
|
function Ge() {
|
|
39021
39022
|
return M;
|
|
39022
39023
|
}
|
|
39023
|
-
function
|
|
39024
|
+
function tt() {
|
|
39024
39025
|
return S;
|
|
39025
39026
|
}
|
|
39026
39027
|
function He() {
|
|
39027
39028
|
return e;
|
|
39028
39029
|
}
|
|
39029
39030
|
function Oe() {
|
|
39030
|
-
return
|
|
39031
|
+
return L;
|
|
39031
39032
|
}
|
|
39032
39033
|
function Se() {
|
|
39033
39034
|
return q;
|
|
@@ -39036,7 +39037,7 @@ function Vu(e, t, n) {
|
|
|
39036
39037
|
canScrollNext: ae,
|
|
39037
39038
|
canScrollPrev: Ae,
|
|
39038
39039
|
containerNode: Oe,
|
|
39039
|
-
internalEngine:
|
|
39040
|
+
internalEngine: tt,
|
|
39040
39041
|
destroy: H,
|
|
39041
39042
|
off: v,
|
|
39042
39043
|
on: g,
|
|
@@ -39052,7 +39053,7 @@ function Vu(e, t, n) {
|
|
|
39052
39053
|
scrollTo: te,
|
|
39053
39054
|
selectedScrollSnap: Fe,
|
|
39054
39055
|
slideNodes: Se,
|
|
39055
|
-
slidesInView:
|
|
39056
|
+
slidesInView: F,
|
|
39056
39057
|
slidesNotInView: G
|
|
39057
39058
|
};
|
|
39058
39059
|
return ne(t, n), setTimeout(() => c.emit("init"), 0), Le;
|
|
@@ -39063,16 +39064,16 @@ function n_(e = {}, t = []) {
|
|
|
39063
39064
|
const n = yt(e), r = yt(t), [i, o] = ut(), [a, s] = ut(), l = Gn(() => {
|
|
39064
39065
|
i && i.reInit(n.current, r.current);
|
|
39065
39066
|
}, [i]);
|
|
39066
|
-
return
|
|
39067
|
+
return nt(() => {
|
|
39067
39068
|
if (Hxe() && a) {
|
|
39068
39069
|
Vu.globalOptions = n_.globalOptions;
|
|
39069
39070
|
const c = Vu(a, n.current, r.current);
|
|
39070
39071
|
return o(c), () => c.destroy();
|
|
39071
39072
|
} else
|
|
39072
39073
|
o(void 0);
|
|
39073
|
-
}, [a, o]),
|
|
39074
|
+
}, [a, o]), nt(() => {
|
|
39074
39075
|
Xw(n.current, e) || (n.current = e, l());
|
|
39075
|
-
}, [e, l]),
|
|
39076
|
+
}, [e, l]), nt(() => {
|
|
39076
39077
|
Vxe(r.current, t) || (r.current = t, l());
|
|
39077
39078
|
}, [t, l]), [s, i];
|
|
39078
39079
|
}
|
|
@@ -39227,7 +39228,7 @@ const U1e = B.forwardRef(q1e), B1e = U1e, z1e = st(({ type: e, styles: t, blocks
|
|
|
39227
39228
|
const [i, o] = n_({ skipSnaps: !0 }), [a, s] = ut(!0), [l, c] = ut(!0), f = Gn(() => o && o.scrollPrev(), [o]), p = Gn(() => o && o.scrollNext(), [o]), m = t == null ? void 0 : t[e], h = Gn((g) => {
|
|
39228
39229
|
s(!g.canScrollPrev()), c(!g.canScrollNext());
|
|
39229
39230
|
}, []);
|
|
39230
|
-
return
|
|
39231
|
+
return nt(() => {
|
|
39231
39232
|
o && (h(o), o.on("reInit", h), o.on("select", h));
|
|
39232
39233
|
}, [o, h]), /* @__PURE__ */ Q.jsxs("div", { ...m == null ? void 0 : m.container, "data-container": "carousel", ref: i, children: [
|
|
39233
39234
|
/* @__PURE__ */ Q.jsx("div", { ref: r, ...m == null ? void 0 : m.slidesContainer, children: n.map((g, v) => /* @__PURE__ */ Q.jsx(vd, { styles: t, block: g }, v)) }),
|
|
@@ -39756,8 +39757,8 @@ const rSe = function(e) {
|
|
|
39756
39757
|
S = f || w ? Ku(x, T) : T;
|
|
39757
39758
|
}
|
|
39758
39759
|
if (w && !f) {
|
|
39759
|
-
const T = li(l.left, 0), M = li(l.right, 0),
|
|
39760
|
-
p ? A = m - 2 * (T !== 0 || M !== 0 ? T + M : li(l.left, l.right)) : S = h - 2 * (
|
|
39760
|
+
const T = li(l.left, 0), M = li(l.right, 0), L = li(l.top, 0), q = li(l.bottom, 0);
|
|
39761
|
+
p ? A = m - 2 * (T !== 0 || M !== 0 ? T + M : li(l.left, l.right)) : S = h - 2 * (L !== 0 || q !== 0 ? L + q : li(l.top, l.bottom));
|
|
39761
39762
|
}
|
|
39762
39763
|
await a({
|
|
39763
39764
|
...t,
|
|
@@ -40111,7 +40112,7 @@ const xSe = (e, t, n) => {
|
|
|
40111
40112
|
platform: o
|
|
40112
40113
|
});
|
|
40113
40114
|
};
|
|
40114
|
-
var ip = typeof document < "u" ? Ic :
|
|
40115
|
+
var ip = typeof document < "u" ? Ic : nt;
|
|
40115
40116
|
function Ih(e, t) {
|
|
40116
40117
|
if (e === t)
|
|
40117
40118
|
return !0;
|
|
@@ -40179,31 +40180,31 @@ function SSe(e) {
|
|
|
40179
40180
|
isPositioned: !1
|
|
40180
40181
|
}), [m, h] = B.useState(r);
|
|
40181
40182
|
Ih(m, r) || h(r);
|
|
40182
|
-
const [g, v] = B.useState(null), [x, _] = B.useState(null), w = B.useCallback((
|
|
40183
|
-
|
|
40184
|
-
}, [v]), S = B.useCallback((
|
|
40185
|
-
|
|
40186
|
-
}, [_]), A = o || g, C = a || x, T = B.useRef(null), M = B.useRef(null),
|
|
40183
|
+
const [g, v] = B.useState(null), [x, _] = B.useState(null), w = B.useCallback((F) => {
|
|
40184
|
+
F != T.current && (T.current = F, v(F));
|
|
40185
|
+
}, [v]), S = B.useCallback((F) => {
|
|
40186
|
+
F !== M.current && (M.current = F, _(F));
|
|
40187
|
+
}, [_]), A = o || g, C = a || x, T = B.useRef(null), M = B.useRef(null), L = B.useRef(f), q = xT(l), D = xT(i), Z = B.useCallback(() => {
|
|
40187
40188
|
if (!T.current || !M.current)
|
|
40188
40189
|
return;
|
|
40189
|
-
const
|
|
40190
|
+
const F = {
|
|
40190
40191
|
placement: t,
|
|
40191
40192
|
strategy: n,
|
|
40192
40193
|
middleware: m
|
|
40193
40194
|
};
|
|
40194
|
-
D.current && (
|
|
40195
|
+
D.current && (F.platform = D.current), xSe(T.current, M.current, F).then((G) => {
|
|
40195
40196
|
const te = {
|
|
40196
40197
|
...G,
|
|
40197
40198
|
isPositioned: !0
|
|
40198
40199
|
};
|
|
40199
|
-
ne.current && !Ih(
|
|
40200
|
+
ne.current && !Ih(L.current, te) && (L.current = te, _5.flushSync(() => {
|
|
40200
40201
|
p(te);
|
|
40201
40202
|
}));
|
|
40202
40203
|
});
|
|
40203
40204
|
}, [m, t, n, D]);
|
|
40204
40205
|
ip(() => {
|
|
40205
|
-
c === !1 &&
|
|
40206
|
-
...
|
|
40206
|
+
c === !1 && L.current.isPositioned && (L.current.isPositioned = !1, p((F) => ({
|
|
40207
|
+
...F,
|
|
40207
40208
|
isPositioned: !1
|
|
40208
40209
|
})));
|
|
40209
40210
|
}, [c]);
|
|
@@ -40226,16 +40227,16 @@ function SSe(e) {
|
|
|
40226
40227
|
reference: A,
|
|
40227
40228
|
floating: C
|
|
40228
40229
|
}), [A, C]), H = B.useMemo(() => {
|
|
40229
|
-
const
|
|
40230
|
+
const F = {
|
|
40230
40231
|
position: n,
|
|
40231
40232
|
left: 0,
|
|
40232
40233
|
top: 0
|
|
40233
40234
|
};
|
|
40234
40235
|
if (!K.floating)
|
|
40235
|
-
return
|
|
40236
|
+
return F;
|
|
40236
40237
|
const G = _T(K.floating, f.x), te = _T(K.floating, f.y);
|
|
40237
40238
|
return s ? {
|
|
40238
|
-
...
|
|
40239
|
+
...F,
|
|
40239
40240
|
transform: "translate(" + G + "px, " + te + "px)",
|
|
40240
40241
|
...wD(K.floating) >= 1.5 && {
|
|
40241
40242
|
willChange: "transform"
|
|
@@ -40547,7 +40548,7 @@ function No(e, t) {
|
|
|
40547
40548
|
});
|
|
40548
40549
|
i ? o() : TT = requestAnimationFrame(o);
|
|
40549
40550
|
}
|
|
40550
|
-
var tr = typeof document < "u" ? Ic :
|
|
40551
|
+
var tr = typeof document < "u" ? Ic : nt;
|
|
40551
40552
|
function Dh() {
|
|
40552
40553
|
return Dh = Object.assign ? Object.assign.bind() : function(e) {
|
|
40553
40554
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -40869,7 +40870,7 @@ function aEe(e) {
|
|
|
40869
40870
|
domReference: _,
|
|
40870
40871
|
floating: w
|
|
40871
40872
|
}
|
|
40872
|
-
} = t, S = JSe() ? o : !0, A = Aa(i), C = Aa(a), T = Aa(s), M = ny(),
|
|
40873
|
+
} = t, S = JSe() ? o : !0, A = Aa(i), C = Aa(a), T = Aa(s), M = ny(), L = RD(), q = typeof a == "number" && a < 0, D = B.useRef(null), Z = B.useRef(null), ne = B.useRef(!1), J = B.useRef(null), K = B.useRef(!1), H = L != null, F = _ && _.getAttribute("role") === "combobox" && pD(_) && q, G = B.useCallback(function(ae) {
|
|
40873
40874
|
return ae === void 0 && (ae = w), ae ? s_(ae, c_()) : [];
|
|
40874
40875
|
}, [w]), te = B.useCallback((ae) => {
|
|
40875
40876
|
const Ae = G(ae);
|
|
@@ -40880,7 +40881,7 @@ function aEe(e) {
|
|
|
40880
40881
|
return;
|
|
40881
40882
|
function ae(N) {
|
|
40882
40883
|
if (N.key === "Tab") {
|
|
40883
|
-
Jr(w, wa(Li(w))) && G().length === 0 && !
|
|
40884
|
+
Jr(w, wa(Li(w))) && G().length === 0 && !F && yr(N);
|
|
40884
40885
|
const Pe = te(), Fe = fD(N);
|
|
40885
40886
|
A.current[0] === "reference" && Fe === _ && (yr(N), N.shiftKey ? No(Pe[Pe.length - 1]) : No(Pe[1])), A.current[1] === "floating" && Fe === w && N.shiftKey && (yr(N), No(Pe[0]));
|
|
40886
40887
|
}
|
|
@@ -40889,7 +40890,7 @@ function aEe(e) {
|
|
|
40889
40890
|
return Ae.addEventListener("keydown", ae), () => {
|
|
40890
40891
|
Ae.removeEventListener("keydown", ae);
|
|
40891
40892
|
};
|
|
40892
|
-
}, [r, _, w, l, A, m,
|
|
40893
|
+
}, [r, _, w, l, A, m, F, G, te]), B.useEffect(() => {
|
|
40893
40894
|
if (r || !f)
|
|
40894
40895
|
return;
|
|
40895
40896
|
function ae() {
|
|
@@ -40900,12 +40901,12 @@ function aEe(e) {
|
|
|
40900
40901
|
function Ae(N) {
|
|
40901
40902
|
const Pe = N.relatedTarget;
|
|
40902
40903
|
queueMicrotask(() => {
|
|
40903
|
-
const Fe = !(Jr(_, Pe) || Jr(w, Pe) || Jr(Pe, w) || Jr(
|
|
40904
|
-
var Ge,
|
|
40905
|
-
return Jr((Ge = Ne.context) == null ? void 0 : Ge.elements.floating, Pe) || Jr((
|
|
40904
|
+
const Fe = !(Jr(_, Pe) || Jr(w, Pe) || Jr(Pe, w) || Jr(L == null ? void 0 : L.portalNode, Pe) || Pe != null && Pe.hasAttribute($c("focus-guard")) || M && (Tu(M.nodesRef.current, h).find((Ne) => {
|
|
40905
|
+
var Ge, tt;
|
|
40906
|
+
return Jr((Ge = Ne.context) == null ? void 0 : Ge.elements.floating, Pe) || Jr((tt = Ne.context) == null ? void 0 : tt.elements.domReference, Pe);
|
|
40906
40907
|
}) || GSe(M.nodesRef.current, h).find((Ne) => {
|
|
40907
|
-
var Ge,
|
|
40908
|
-
return ((Ge = Ne.context) == null ? void 0 : Ge.elements.floating) === Pe || ((
|
|
40908
|
+
var Ge, tt;
|
|
40909
|
+
return ((Ge = Ne.context) == null ? void 0 : Ge.elements.floating) === Pe || ((tt = Ne.context) == null ? void 0 : tt.elements.domReference) === Pe;
|
|
40909
40910
|
})));
|
|
40910
40911
|
Pe && Fe && !K.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
|
|
40911
40912
|
Pe !== J.current && (ne.current = !0, g(!1, N));
|
|
@@ -40915,18 +40916,18 @@ function aEe(e) {
|
|
|
40915
40916
|
return _.addEventListener("focusout", Ae), _.addEventListener("pointerdown", ae), !l && w.addEventListener("focusout", Ae), () => {
|
|
40916
40917
|
_.removeEventListener("focusout", Ae), _.removeEventListener("pointerdown", ae), !l && w.removeEventListener("focusout", Ae);
|
|
40917
40918
|
};
|
|
40918
|
-
}, [r, _, w, l, h, M,
|
|
40919
|
+
}, [r, _, w, l, h, M, L, g, f]), B.useEffect(() => {
|
|
40919
40920
|
var ae;
|
|
40920
40921
|
if (r)
|
|
40921
40922
|
return;
|
|
40922
|
-
const Ae = Array.from((
|
|
40923
|
+
const Ae = Array.from((L == null || (ae = L.portalNode) == null ? void 0 : ae.querySelectorAll("[" + $c("portal") + "]")) || []);
|
|
40923
40924
|
if (w) {
|
|
40924
|
-
const N = [w, ...Ae, D.current, Z.current, A.current.includes("reference") ||
|
|
40925
|
+
const N = [w, ...Ae, D.current, Z.current, A.current.includes("reference") || F ? _ : null].filter((Fe) => Fe != null), Pe = l ? kT(N, S, !S) : kT(N);
|
|
40925
40926
|
return () => {
|
|
40926
40927
|
Pe();
|
|
40927
40928
|
};
|
|
40928
40929
|
}
|
|
40929
|
-
}, [r, _, w, l, A,
|
|
40930
|
+
}, [r, _, w, l, A, L, F, S]), tr(() => {
|
|
40930
40931
|
if (r || !w)
|
|
40931
40932
|
return;
|
|
40932
40933
|
const ae = Li(w), Ae = wa(ae);
|
|
@@ -40951,9 +40952,9 @@ function aEe(e) {
|
|
|
40951
40952
|
return v.on("dismiss", Fe), () => {
|
|
40952
40953
|
v.off("dismiss", Fe);
|
|
40953
40954
|
const Ne = wa(Ae);
|
|
40954
|
-
(Jr(w, Ne) || M && Tu(M.nodesRef.current, h).some((
|
|
40955
|
+
(Jr(w, Ne) || M && Tu(M.nodesRef.current, h).some((tt) => {
|
|
40955
40956
|
var He;
|
|
40956
|
-
return Jr((He =
|
|
40957
|
+
return Jr((He = tt.context) == null ? void 0 : He.elements.floating, Ne);
|
|
40957
40958
|
}) || Pe.openEvent && ["click", "mousedown"].includes(Pe.openEvent.type)) && m.domReference.current && (J.current = m.domReference.current), // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
40958
40959
|
T.current && Or(J.current) && !ne.current && No(J.current, {
|
|
40959
40960
|
// When dismissing nested floating elements, by the time the rAF has
|
|
@@ -40965,17 +40966,17 @@ function aEe(e) {
|
|
|
40965
40966
|
});
|
|
40966
40967
|
};
|
|
40967
40968
|
}, [r, w, T, x, m, v, M, h]), tr(() => {
|
|
40968
|
-
if (!(r || !
|
|
40969
|
-
return
|
|
40969
|
+
if (!(r || !L))
|
|
40970
|
+
return L.setFocusManagerState({
|
|
40970
40971
|
modal: l,
|
|
40971
40972
|
closeOnFocusOut: f,
|
|
40972
40973
|
open: p,
|
|
40973
40974
|
onOpenChange: g,
|
|
40974
40975
|
refs: m
|
|
40975
40976
|
}), () => {
|
|
40976
|
-
|
|
40977
|
+
L.setFocusManagerState(null);
|
|
40977
40978
|
};
|
|
40978
|
-
}, [r,
|
|
40979
|
+
}, [r, L, l, p, g, m, f]), tr(() => {
|
|
40979
40980
|
if (!r && w && typeof MutationObserver == "function" && !q) {
|
|
40980
40981
|
const ae = () => {
|
|
40981
40982
|
const N = w.getAttribute("tabindex");
|
|
@@ -40998,36 +40999,36 @@ function aEe(e) {
|
|
|
40998
40999
|
onClick: (Ae) => g(!1, Ae.nativeEvent)
|
|
40999
41000
|
}, typeof c == "string" ? c : "Dismiss");
|
|
41000
41001
|
}
|
|
41001
|
-
const R = !r && S && !
|
|
41002
|
+
const R = !r && S && !F && (H || l);
|
|
41002
41003
|
return /* @__PURE__ */ B.createElement(B.Fragment, null, R && /* @__PURE__ */ B.createElement(Mh, {
|
|
41003
41004
|
"data-type": "inside",
|
|
41004
|
-
ref:
|
|
41005
|
+
ref: L == null ? void 0 : L.beforeInsideRef,
|
|
41005
41006
|
onFocus: (ae) => {
|
|
41006
41007
|
if (l) {
|
|
41007
41008
|
const N = te();
|
|
41008
41009
|
No(i[0] === "reference" ? N[0] : N[N.length - 1]);
|
|
41009
|
-
} else if (
|
|
41010
|
-
if (ne.current = !1, tc(ae,
|
|
41010
|
+
} else if (L != null && L.preserveTabOrder && L.portalNode)
|
|
41011
|
+
if (ne.current = !1, tc(ae, L.portalNode)) {
|
|
41011
41012
|
const N = kD() || _;
|
|
41012
41013
|
N == null || N.focus();
|
|
41013
41014
|
} else {
|
|
41014
41015
|
var Ae;
|
|
41015
|
-
(Ae =
|
|
41016
|
+
(Ae = L.beforeOutsideRef.current) == null || Ae.focus();
|
|
41016
41017
|
}
|
|
41017
41018
|
}
|
|
41018
|
-
}), !
|
|
41019
|
+
}), !F && ue("start"), n, ue("end"), R && /* @__PURE__ */ B.createElement(Mh, {
|
|
41019
41020
|
"data-type": "inside",
|
|
41020
|
-
ref:
|
|
41021
|
+
ref: L == null ? void 0 : L.afterInsideRef,
|
|
41021
41022
|
onFocus: (ae) => {
|
|
41022
41023
|
if (l)
|
|
41023
41024
|
No(te()[0]);
|
|
41024
|
-
else if (
|
|
41025
|
-
if (f && (ne.current = !0), tc(ae,
|
|
41025
|
+
else if (L != null && L.preserveTabOrder && L.portalNode)
|
|
41026
|
+
if (f && (ne.current = !0), tc(ae, L.portalNode)) {
|
|
41026
41027
|
const N = OD() || _;
|
|
41027
41028
|
N == null || N.focus();
|
|
41028
41029
|
} else {
|
|
41029
41030
|
var Ae;
|
|
41030
|
-
(Ae =
|
|
41031
|
+
(Ae = L.afterOutsideRef.current) == null || Ae.focus();
|
|
41031
41032
|
}
|
|
41032
41033
|
}
|
|
41033
41034
|
}));
|
|
@@ -41131,7 +41132,7 @@ function pEe(e, t) {
|
|
|
41131
41132
|
bubbles: _
|
|
41132
41133
|
} = t, w = ny(), S = AD() != null, A = Ta(typeof m == "function" ? m : () => !1), C = typeof m == "function" ? A : m, T = B.useRef(!1), {
|
|
41133
41134
|
escapeKeyBubbles: M,
|
|
41134
|
-
outsidePressBubbles:
|
|
41135
|
+
outsidePressBubbles: L
|
|
41135
41136
|
} = fEe(_), q = Ta((Z) => {
|
|
41136
41137
|
if (!n || !f || !p || Z.key !== "Escape")
|
|
41137
41138
|
return;
|
|
@@ -41160,17 +41161,17 @@ function pEe(e, t) {
|
|
|
41160
41161
|
if (T.current = !1, ne || typeof C == "function" && !C(Z))
|
|
41161
41162
|
return;
|
|
41162
41163
|
const J = fD(Z), K = "[" + $c("inert") + "]", H = Li(l).querySelectorAll(K);
|
|
41163
|
-
let
|
|
41164
|
-
for (;
|
|
41165
|
-
const ue = Ts(
|
|
41164
|
+
let F = Bn(J) ? J : null;
|
|
41165
|
+
for (; F && !yd(F); ) {
|
|
41166
|
+
const ue = Ts(F);
|
|
41166
41167
|
if (ue === Li(l).body || !Bn(ue))
|
|
41167
41168
|
break;
|
|
41168
|
-
|
|
41169
|
+
F = ue;
|
|
41169
41170
|
}
|
|
41170
41171
|
if (H.length && Bn(J) && !Q1e(J) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
41171
41172
|
!Jr(J, l) && // If the target root element contains none of the markers, then the
|
|
41172
41173
|
// element was injected after the floating element rendered.
|
|
41173
|
-
Array.from(H).every((ue) => !Jr(
|
|
41174
|
+
Array.from(H).every((ue) => !Jr(F, ue)))
|
|
41174
41175
|
return;
|
|
41175
41176
|
if (Or(J) && l) {
|
|
41176
41177
|
const ue = J.clientWidth > 0 && J.scrollWidth > J.clientWidth, R = J.clientHeight > 0 && J.scrollHeight > J.clientHeight;
|
|
@@ -41208,7 +41209,7 @@ function pEe(e, t) {
|
|
|
41208
41209
|
return B.useEffect(() => {
|
|
41209
41210
|
if (!n || !f)
|
|
41210
41211
|
return;
|
|
41211
|
-
c.current.__escapeKeyBubbles = M, c.current.__outsidePressBubbles =
|
|
41212
|
+
c.current.__escapeKeyBubbles = M, c.current.__outsidePressBubbles = L;
|
|
41212
41213
|
function Z(K) {
|
|
41213
41214
|
r(!1, K);
|
|
41214
41215
|
}
|
|
@@ -41227,7 +41228,7 @@ function pEe(e, t) {
|
|
|
41227
41228
|
K.removeEventListener("scroll", Z);
|
|
41228
41229
|
});
|
|
41229
41230
|
};
|
|
41230
|
-
}, [c, l, s, a, p, C, h, n, r, x, f, M,
|
|
41231
|
+
}, [c, l, s, a, p, C, h, n, r, x, f, M, L, q, D]), B.useEffect(() => {
|
|
41231
41232
|
T.current = !1;
|
|
41232
41233
|
}, [C, h]), B.useMemo(() => f ? {
|
|
41233
41234
|
reference: {
|
|
@@ -41270,14 +41271,14 @@ function hEe(e) {
|
|
|
41270
41271
|
}
|
|
41271
41272
|
}
|
|
41272
41273
|
}
|
|
41273
|
-
const [l, c] = B.useState(null), f = ((t = e.elements) == null ? void 0 : t.reference) || l, p = SSe(e), m = ny(), h = Ta((M,
|
|
41274
|
-
M && (v.current.openEvent =
|
|
41274
|
+
const [l, c] = B.useState(null), f = ((t = e.elements) == null ? void 0 : t.reference) || l, p = SSe(e), m = ny(), h = Ta((M, L) => {
|
|
41275
|
+
M && (v.current.openEvent = L), r == null || r(M, L);
|
|
41275
41276
|
}), g = B.useRef(null), v = B.useRef({}), x = B.useState(() => HSe())[0], _ = l_(), w = B.useCallback((M) => {
|
|
41276
|
-
const
|
|
41277
|
+
const L = Bn(M) ? {
|
|
41277
41278
|
getBoundingClientRect: () => M.getBoundingClientRect(),
|
|
41278
41279
|
contextElement: M
|
|
41279
41280
|
} : M;
|
|
41280
|
-
p.refs.setReference(
|
|
41281
|
+
p.refs.setReference(L);
|
|
41281
41282
|
}, [p.refs]), S = B.useCallback((M) => {
|
|
41282
41283
|
(Bn(M) || M === null) && (g.current = M, c(M)), (Bn(p.refs.reference.current) || p.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
41283
41284
|
// `null` to support `positionReference` + an unstable `reference`
|
|
@@ -41303,7 +41304,7 @@ function hEe(e) {
|
|
|
41303
41304
|
onOpenChange: h
|
|
41304
41305
|
}), [p, i, _, x, n, h, A, C]);
|
|
41305
41306
|
return tr(() => {
|
|
41306
|
-
const M = m == null ? void 0 : m.nodesRef.current.find((
|
|
41307
|
+
const M = m == null ? void 0 : m.nodesRef.current.find((L) => L.id === i);
|
|
41307
41308
|
M && (M.context = T);
|
|
41308
41309
|
}), B.useMemo(() => ({
|
|
41309
41310
|
...p,
|
|
@@ -41411,13 +41412,13 @@ function gEe(e, t) {
|
|
|
41411
41412
|
orientation: C = "vertical",
|
|
41412
41413
|
cols: T = 1,
|
|
41413
41414
|
scrollItemIntoView: M = !0,
|
|
41414
|
-
virtualItemRef:
|
|
41415
|
+
virtualItemRef: L
|
|
41415
41416
|
} = t;
|
|
41416
41417
|
process.env.NODE_ENV !== "production" && (m && (h || console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow", "escaping."].join(" ")), x || console.warn(["Floating UI: `useListNavigation` must be virtual to allow", "escaping."].join(" "))), C === "vertical" && T > 1 && console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the", '`orientation` should be either "horizontal" or "both".'].join(" ")));
|
|
41417
|
-
const q = AD(), D = ny(), Z = Ta(c), ne = B.useRef(_), J = B.useRef(p ?? -1), K = B.useRef(null), H = B.useRef(!0),
|
|
41418
|
+
const q = AD(), D = ny(), Z = Ta(c), ne = B.useRef(_), J = B.useRef(p ?? -1), K = B.useRef(null), H = B.useRef(!0), F = B.useRef(Z), G = B.useRef(!!a), te = B.useRef(!1), ue = B.useRef(!1), R = Aa(A), ae = Aa(n), Ae = Aa(M), [N, Pe] = B.useState(), [Fe, Ne] = B.useState(), Ge = Ta(function(Oe, Se, Le) {
|
|
41418
41419
|
Le === void 0 && (Le = !1);
|
|
41419
41420
|
const Ce = Oe.current[Se.current];
|
|
41420
|
-
Ce && (x ? (Pe(Ce.id), D == null || D.events.emit("virtualfocus", Ce),
|
|
41421
|
+
Ce && (x ? (Pe(Ce.id), D == null || D.events.emit("virtualfocus", Ce), L && (L.current = Ce)) : No(Ce, {
|
|
41421
41422
|
preventScroll: !0,
|
|
41422
41423
|
// Mac Safari does not move the virtual cursor unless the focus call
|
|
41423
41424
|
// is sync. However, for the very first focus call, we need to wait
|
|
@@ -41443,7 +41444,7 @@ function gEe(e, t) {
|
|
|
41443
41444
|
}
|
|
41444
41445
|
});
|
|
41445
41446
|
}, []), tr(() => {
|
|
41446
|
-
f && (n && a ? ne.current && p != null && (ue.current = !0, Z(p)) : G.current && (J.current = -1,
|
|
41447
|
+
f && (n && a ? ne.current && p != null && (ue.current = !0, Z(p)) : G.current && (J.current = -1, F.current(null)));
|
|
41447
41448
|
}, [f, n, a, p, Z]), tr(() => {
|
|
41448
41449
|
if (f && n && a)
|
|
41449
41450
|
if (l == null) {
|
|
@@ -41470,17 +41471,17 @@ function gEe(e, t) {
|
|
|
41470
41471
|
if (!f || !D || !x || q)
|
|
41471
41472
|
return;
|
|
41472
41473
|
function Oe(Se) {
|
|
41473
|
-
Ne(Se.id),
|
|
41474
|
+
Ne(Se.id), L && (L.current = Se);
|
|
41474
41475
|
}
|
|
41475
41476
|
return D.events.on("virtualfocus", Oe), () => {
|
|
41476
41477
|
D.events.off("virtualfocus", Oe);
|
|
41477
41478
|
};
|
|
41478
|
-
}, [f, D, x, q,
|
|
41479
|
-
|
|
41479
|
+
}, [f, D, x, q, L]), tr(() => {
|
|
41480
|
+
F.current = Z, G.current = !!a;
|
|
41480
41481
|
}), tr(() => {
|
|
41481
41482
|
n || (K.current = null);
|
|
41482
41483
|
}, [n]);
|
|
41483
|
-
const
|
|
41484
|
+
const tt = l != null, He = B.useMemo(() => {
|
|
41484
41485
|
function Oe(Le) {
|
|
41485
41486
|
if (!n)
|
|
41486
41487
|
return;
|
|
@@ -41571,7 +41572,7 @@ function gEe(e, t) {
|
|
|
41571
41572
|
function Ce(V) {
|
|
41572
41573
|
ne.current = _, _ === "auto" && cD(V.nativeEvent) && (ne.current = !0);
|
|
41573
41574
|
}
|
|
41574
|
-
const Be = x && n &&
|
|
41575
|
+
const Be = x && n && tt && {
|
|
41575
41576
|
"aria-activedescendant": Fe || N
|
|
41576
41577
|
}, ct = s.current.find((V) => (V == null ? void 0 : V.id) === N);
|
|
41577
41578
|
return {
|
|
@@ -41582,7 +41583,7 @@ function gEe(e, t) {
|
|
|
41582
41583
|
const ce = V.key.indexOf("Arrow") === 0, Te = yEe(V.key, C, v), _e = NT(V.key, C, v), Je = PT(V.key, C), je = (g ? Te : Je) || V.key === "Enter" || V.key.trim() === "";
|
|
41583
41584
|
if (x && n) {
|
|
41584
41585
|
const re = D == null ? void 0 : D.nodesRef.current.find((we) => we.parentId == null), fe = D && re ? YSe(D.nodesRef.current, re.id) : null;
|
|
41585
|
-
if (ce && fe &&
|
|
41586
|
+
if (ce && fe && L) {
|
|
41586
41587
|
const we = new KeyboardEvent("keydown", {
|
|
41587
41588
|
key: V.key,
|
|
41588
41589
|
bubbles: !0
|
|
@@ -41625,7 +41626,7 @@ function gEe(e, t) {
|
|
|
41625
41626
|
},
|
|
41626
41627
|
item: He
|
|
41627
41628
|
};
|
|
41628
|
-
}, [o, i, N, Fe, R, ae, s, f, C, v, x, n,
|
|
41629
|
+
}, [o, i, N, Fe, R, ae, s, f, C, v, x, n, tt, g, p, S, m, T, h, _, Z, r, He, D, L]);
|
|
41629
41630
|
}
|
|
41630
41631
|
function vEe(e, t) {
|
|
41631
41632
|
t === void 0 && (t = {});
|
|
@@ -41700,15 +41701,15 @@ function bEe(e, t) {
|
|
|
41700
41701
|
const ne = A.current ? A.current(D, Z) : D.find((J) => (J == null ? void 0 : J.toLocaleLowerCase().indexOf(Z.toLocaleLowerCase())) === 0);
|
|
41701
41702
|
return ne ? q.indexOf(ne) : -1;
|
|
41702
41703
|
}
|
|
41703
|
-
function
|
|
41704
|
+
function L(q) {
|
|
41704
41705
|
const D = o.current;
|
|
41705
41706
|
if (v.current.length > 0 && v.current[0] !== " " && (M(D, D, v.current) === -1 ? T(!1) : q.key === " " && yr(q)), D == null || C.current.includes(q.key) || // Character key.
|
|
41706
41707
|
q.key.length !== 1 || // Modifier key.
|
|
41707
41708
|
q.ctrlKey || q.metaKey || q.altKey)
|
|
41708
41709
|
return;
|
|
41709
41710
|
r && q.key !== " " && (yr(q), T(!0)), D.every((K) => {
|
|
41710
|
-
var H,
|
|
41711
|
-
return K ? ((H = K[0]) == null ? void 0 : H.toLocaleLowerCase()) !== ((
|
|
41711
|
+
var H, F;
|
|
41712
|
+
return K ? ((H = K[0]) == null ? void 0 : H.toLocaleLowerCase()) !== ((F = K[1]) == null ? void 0 : F.toLocaleLowerCase()) : !0;
|
|
41712
41713
|
}) && v.current === q.key && (v.current = "", x.current = _.current), v.current += q.key, clearTimeout(g.current), g.current = setTimeout(() => {
|
|
41713
41714
|
v.current = "", x.current = _.current, T(!1);
|
|
41714
41715
|
}, p);
|
|
@@ -41717,10 +41718,10 @@ function bEe(e, t) {
|
|
|
41717
41718
|
}
|
|
41718
41719
|
return {
|
|
41719
41720
|
reference: {
|
|
41720
|
-
onKeyDown:
|
|
41721
|
+
onKeyDown: L
|
|
41721
41722
|
},
|
|
41722
41723
|
floating: {
|
|
41723
|
-
onKeyDown:
|
|
41724
|
+
onKeyDown: L,
|
|
41724
41725
|
onKeyUp(q) {
|
|
41725
41726
|
q.key === " " && T(!1);
|
|
41726
41727
|
}
|
|
@@ -41729,7 +41730,7 @@ function bEe(e, t) {
|
|
|
41729
41730
|
}, [c, r, i, o, p, C, A, w, S]);
|
|
41730
41731
|
}
|
|
41731
41732
|
const wEe = ({ styles: e, type: t, options: n, label: r, reusable: i }) => {
|
|
41732
|
-
var G, te, ue, R, ae, Ae, N, Pe, Fe, Ne, Ge,
|
|
41733
|
+
var G, te, ue, R, ae, Ae, N, Pe, Fe, Ne, Ge, tt;
|
|
41733
41734
|
const o = rt((He) => He.sendTextMessage), a = rt((He) => He.messageContainerRef), s = rt((He) => He.isReadOnly), [l, c] = B.useState(!1), [f, p] = B.useState(null), [m, h] = B.useState(null), g = n.reduce(
|
|
41734
41735
|
(He, Oe) => (He[Oe.label] = Oe.value, He),
|
|
41735
41736
|
{}
|
|
@@ -41757,7 +41758,7 @@ const wEe = ({ styles: e, type: t, options: n, label: r, reusable: i }) => {
|
|
|
41757
41758
|
padding: 10
|
|
41758
41759
|
})
|
|
41759
41760
|
]
|
|
41760
|
-
}), A = B.useRef([]), C = B.useRef(v), T = B.useRef(!1), M = sEe(S, { event: "mousedown" }),
|
|
41761
|
+
}), A = B.useRef([]), C = B.useRef(v), T = B.useRef(!1), M = sEe(S, { event: "mousedown" }), L = pEe(S), q = vEe(S, { role: "listbox" }), D = gEe(S, {
|
|
41761
41762
|
listRef: A,
|
|
41762
41763
|
activeIndex: f,
|
|
41763
41764
|
selectedIndex: m,
|
|
@@ -41773,14 +41774,14 @@ const wEe = ({ styles: e, type: t, options: n, label: r, reusable: i }) => {
|
|
|
41773
41774
|
T.current = He;
|
|
41774
41775
|
}
|
|
41775
41776
|
}), { getReferenceProps: ne, getFloatingProps: J, getItemProps: K } = mEe([
|
|
41776
|
-
|
|
41777
|
+
L,
|
|
41777
41778
|
q,
|
|
41778
41779
|
D,
|
|
41779
41780
|
Z,
|
|
41780
41781
|
M
|
|
41781
41782
|
]), H = (He) => {
|
|
41782
41783
|
h(He), o(g[v[He]]), c(!1);
|
|
41783
|
-
},
|
|
41784
|
+
}, F = m !== null ? v[m] : void 0;
|
|
41784
41785
|
return /* @__PURE__ */ Q.jsxs(Q.Fragment, { children: [
|
|
41785
41786
|
/* @__PURE__ */ Q.jsxs(
|
|
41786
41787
|
"div",
|
|
@@ -41793,7 +41794,7 @@ const wEe = ({ styles: e, type: t, options: n, label: r, reusable: i }) => {
|
|
|
41793
41794
|
...(te = (G = e == null ? void 0 : e[t]) == null ? void 0 : G.button) == null ? void 0 : te.container,
|
|
41794
41795
|
...ne(),
|
|
41795
41796
|
children: [
|
|
41796
|
-
/* @__PURE__ */ Q.jsx("span", { ...(R = (ue = e == null ? void 0 : e[t]) == null ? void 0 : ue.button) == null ? void 0 : R.text, children:
|
|
41797
|
+
/* @__PURE__ */ Q.jsx("span", { ...(R = (ue = e == null ? void 0 : e[t]) == null ? void 0 : ue.button) == null ? void 0 : R.text, children: F || r || "Select..." }),
|
|
41797
41798
|
/* @__PURE__ */ Q.jsx(Ixe, { ...(Ae = (ae = e == null ? void 0 : e[t]) == null ? void 0 : ae.button) == null ? void 0 : Ae.icon })
|
|
41798
41799
|
]
|
|
41799
41800
|
}
|
|
@@ -41803,7 +41804,7 @@ const wEe = ({ styles: e, type: t, options: n, label: r, reusable: i }) => {
|
|
|
41803
41804
|
{
|
|
41804
41805
|
ref: _.setFloating,
|
|
41805
41806
|
className: (Fe = (Pe = (N = e == null ? void 0 : e[t]) == null ? void 0 : N.content) == null ? void 0 : Pe.container) == null ? void 0 : Fe.className,
|
|
41806
|
-
style: { ...w, ...(
|
|
41807
|
+
style: { ...w, ...(tt = (Ge = (Ne = e == null ? void 0 : e[t]) == null ? void 0 : Ne.content) == null ? void 0 : Ge.container) == null ? void 0 : tt.style },
|
|
41807
41808
|
...J(),
|
|
41808
41809
|
children: v.map((He, Oe) => {
|
|
41809
41810
|
var Se, Le;
|
|
@@ -41874,16 +41875,14 @@ const wEe = ({ styles: e, type: t, options: n, label: r, reusable: i }) => {
|
|
|
41874
41875
|
})
|
|
41875
41876
|
), EEe = Os((e) => {
|
|
41876
41877
|
const { composer: t } = rt((x) => x.theme), n = rt((x) => x.configuration), r = rt((x) => x.disableComposer), { value: i, setValue: o, historyIndex: a, setHistoryIndex: s, sendMessage: l } = JN(), c = yt(null), f = qo((x) => x.user), p = qo((x) => x.messageHistory), [m, h] = ut(!1);
|
|
41877
|
-
Gpe(c.current, i)
|
|
41878
|
-
c.current && (c.current.selectionStart = c.current.value.length, c.current.selectionEnd = c.current.value.length);
|
|
41879
|
-
}, [i]);
|
|
41878
|
+
Gpe(c.current, i);
|
|
41880
41879
|
function g({ key: x }) {
|
|
41881
41880
|
x === "Shift" && h(!0);
|
|
41882
41881
|
}
|
|
41883
41882
|
function v({ key: x }) {
|
|
41884
41883
|
x === "Shift" && h(!1);
|
|
41885
41884
|
}
|
|
41886
|
-
return
|
|
41885
|
+
return nt(() => (window.addEventListener("keydown", g), window.addEventListener("keyup", v), () => {
|
|
41887
41886
|
window.removeEventListener("keydown", g), window.removeEventListener("keyup", v);
|
|
41888
41887
|
}), []), /* @__PURE__ */ Q.jsx(
|
|
41889
41888
|
"textarea",
|
|
@@ -41979,7 +41978,7 @@ const wEe = ({ styles: e, type: t, options: n, label: r, reusable: i }) => {
|
|
|
41979
41978
|
return n.current || (n.current = i), /* @__PURE__ */ Q.jsx(GN.Provider, { value: n.current, children: /* @__PURE__ */ Q.jsx(kEe, { children: e }) });
|
|
41980
41979
|
}, kEe = ({ children: e }) => {
|
|
41981
41980
|
const t = rt((h) => h.client), n = rt((h) => h.addMessage), r = rt((h) => h.setMessages), i = rt((h) => h.configuration), o = rt((h) => h.setConnected), a = rt((h) => h.userData), s = qo((h) => h.setConversationId), l = qo((h) => h.user), c = qo((h) => h.conversationId), f = qo((h) => h.setUser), [p, m] = ut(0);
|
|
41982
|
-
return
|
|
41981
|
+
return nt(() => {
|
|
41983
41982
|
if (t)
|
|
41984
41983
|
return t.on("message", (h) => {
|
|
41985
41984
|
try {
|
|
@@ -41995,7 +41994,7 @@ const wEe = ({ styles: e, type: t, options: n, label: r, reusable: i }) => {
|
|
|
41995
41994
|
console.error("Invalid message payload");
|
|
41996
41995
|
}
|
|
41997
41996
|
});
|
|
41998
|
-
}, []),
|
|
41997
|
+
}, []), nt(() => {
|
|
41999
41998
|
if (t)
|
|
42000
41999
|
return t.on("conversation", (h) => {
|
|
42001
42000
|
s(h);
|
|
@@ -42078,7 +42077,7 @@ function ID({ prop: e, defaultProp: t, onChange: n = () => {
|
|
|
42078
42077
|
}
|
|
42079
42078
|
function REe({ defaultProp: e, onChange: t }) {
|
|
42080
42079
|
const n = ut(e), [r] = n, i = yt(r), o = Dr(t);
|
|
42081
|
-
return
|
|
42080
|
+
return nt(() => {
|
|
42082
42081
|
i.current !== r && (o(r), i.current = r);
|
|
42083
42082
|
}, [
|
|
42084
42083
|
r,
|
|
@@ -42088,7 +42087,7 @@ function REe({ defaultProp: e, onChange: t }) {
|
|
|
42088
42087
|
}
|
|
42089
42088
|
function IEe(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
42090
42089
|
const n = Dr(e);
|
|
42091
|
-
|
|
42090
|
+
nt(() => {
|
|
42092
42091
|
const r = (i) => {
|
|
42093
42092
|
i.key === "Escape" && n(i);
|
|
42094
42093
|
};
|
|
@@ -42108,27 +42107,27 @@ const DEe = /* @__PURE__ */ Ti({
|
|
|
42108
42107
|
var n;
|
|
42109
42108
|
const { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: i, onPointerDownOutside: o, onFocusOutside: a, onInteractOutside: s, onDismiss: l, ...c } = e, f = Hi(DEe), [p, m] = ut(null), h = (n = p == null ? void 0 : p.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, g] = ut({}), v = hi(
|
|
42110
42109
|
t,
|
|
42111
|
-
(
|
|
42110
|
+
(L) => m(L)
|
|
42112
42111
|
), x = Array.from(f.layers), [_] = [
|
|
42113
42112
|
...f.layersWithOutsidePointerEventsDisabled
|
|
42114
|
-
].slice(-1), w = x.indexOf(_), S = p ? x.indexOf(p) : -1, A = f.layersWithOutsidePointerEventsDisabled.size > 0, C = S >= w, T = LEe((
|
|
42115
|
-
const q =
|
|
42113
|
+
].slice(-1), w = x.indexOf(_), S = p ? x.indexOf(p) : -1, A = f.layersWithOutsidePointerEventsDisabled.size > 0, C = S >= w, T = LEe((L) => {
|
|
42114
|
+
const q = L.target, D = [
|
|
42116
42115
|
...f.branches
|
|
42117
42116
|
].some(
|
|
42118
42117
|
(Z) => Z.contains(q)
|
|
42119
42118
|
);
|
|
42120
|
-
!C || D || (o == null || o(
|
|
42121
|
-
}, h), M = FEe((
|
|
42122
|
-
const q =
|
|
42119
|
+
!C || D || (o == null || o(L), s == null || s(L), L.defaultPrevented || l == null || l());
|
|
42120
|
+
}, h), M = FEe((L) => {
|
|
42121
|
+
const q = L.target;
|
|
42123
42122
|
[
|
|
42124
42123
|
...f.branches
|
|
42125
42124
|
].some(
|
|
42126
42125
|
(Z) => Z.contains(q)
|
|
42127
|
-
) || (a == null || a(
|
|
42126
|
+
) || (a == null || a(L), s == null || s(L), L.defaultPrevented || l == null || l());
|
|
42128
42127
|
}, h);
|
|
42129
|
-
return IEe((
|
|
42130
|
-
S === f.layers.size - 1 && (i == null || i(
|
|
42131
|
-
}, h),
|
|
42128
|
+
return IEe((L) => {
|
|
42129
|
+
S === f.layers.size - 1 && (i == null || i(L), !L.defaultPrevented && l && (L.preventDefault(), l()));
|
|
42130
|
+
}, h), nt(() => {
|
|
42132
42131
|
if (p)
|
|
42133
42132
|
return r && (f.layersWithOutsidePointerEventsDisabled.size === 0 && (DT = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), f.layersWithOutsidePointerEventsDisabled.add(p)), f.layers.add(p), MT(), () => {
|
|
42134
42133
|
r && f.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = DT);
|
|
@@ -42138,14 +42137,14 @@ const DEe = /* @__PURE__ */ Ti({
|
|
|
42138
42137
|
h,
|
|
42139
42138
|
r,
|
|
42140
42139
|
f
|
|
42141
|
-
]),
|
|
42140
|
+
]), nt(() => () => {
|
|
42142
42141
|
p && (f.layers.delete(p), f.layersWithOutsidePointerEventsDisabled.delete(p), MT());
|
|
42143
42142
|
}, [
|
|
42144
42143
|
p,
|
|
42145
42144
|
f
|
|
42146
|
-
]),
|
|
42147
|
-
const
|
|
42148
|
-
return document.addEventListener(Gb,
|
|
42145
|
+
]), nt(() => {
|
|
42146
|
+
const L = () => g({});
|
|
42147
|
+
return document.addEventListener(Gb, L), () => document.removeEventListener(Gb, L);
|
|
42149
42148
|
}, []), /* @__PURE__ */ it(vr.div, vs({}, c, {
|
|
42150
42149
|
ref: v,
|
|
42151
42150
|
style: {
|
|
@@ -42160,7 +42159,7 @@ const DEe = /* @__PURE__ */ Ti({
|
|
|
42160
42159
|
function LEe(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
42161
42160
|
const n = Dr(e), r = yt(!1), i = yt(() => {
|
|
42162
42161
|
});
|
|
42163
|
-
return
|
|
42162
|
+
return nt(() => {
|
|
42164
42163
|
const o = (s) => {
|
|
42165
42164
|
if (s.target && !r.current) {
|
|
42166
42165
|
let c = function() {
|
|
@@ -42192,7 +42191,7 @@ function LEe(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
42192
42191
|
}
|
|
42193
42192
|
function FEe(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
42194
42193
|
const n = Dr(e), r = yt(!1);
|
|
42195
|
-
return
|
|
42194
|
+
return nt(() => {
|
|
42196
42195
|
const i = (o) => {
|
|
42197
42196
|
o.target && !r.current && PD(NEe, n, {
|
|
42198
42197
|
originalEvent: o
|
|
@@ -42239,7 +42238,7 @@ const _v = "focusScope.autoFocusOnMount", xv = "focusScope.autoFocusOnUnmount",
|
|
|
42239
42238
|
this.paused = !1;
|
|
42240
42239
|
}
|
|
42241
42240
|
}).current;
|
|
42242
|
-
|
|
42241
|
+
nt(() => {
|
|
42243
42242
|
if (r) {
|
|
42244
42243
|
let v = function(S) {
|
|
42245
42244
|
if (h.paused || !s)
|
|
@@ -42273,7 +42272,7 @@ const _v = "focusScope.autoFocusOnMount", xv = "focusScope.autoFocusOnUnmount",
|
|
|
42273
42272
|
r,
|
|
42274
42273
|
s,
|
|
42275
42274
|
h.paused
|
|
42276
|
-
]),
|
|
42275
|
+
]), nt(() => {
|
|
42277
42276
|
if (s) {
|
|
42278
42277
|
jT.add(h);
|
|
42279
42278
|
const v = document.activeElement;
|
|
@@ -42432,7 +42431,7 @@ function VEe(e) {
|
|
|
42432
42431
|
MOUNT: "mounted"
|
|
42433
42432
|
}
|
|
42434
42433
|
});
|
|
42435
|
-
return
|
|
42434
|
+
return nt(() => {
|
|
42436
42435
|
const c = Cf(r.current);
|
|
42437
42436
|
o.current = s === "mounted" ? c : "none";
|
|
42438
42437
|
}, [
|
|
@@ -42479,7 +42478,7 @@ function Cf(e) {
|
|
|
42479
42478
|
}
|
|
42480
42479
|
let Sv = 0;
|
|
42481
42480
|
function KEe() {
|
|
42482
|
-
|
|
42481
|
+
nt(() => {
|
|
42483
42482
|
var e, t;
|
|
42484
42483
|
const n = document.querySelectorAll("[data-radix-focus-guard]");
|
|
42485
42484
|
return document.body.insertAdjacentElement("afterbegin", (e = n[0]) !== null && e !== void 0 ? e : UT()), document.body.insertAdjacentElement("beforeend", (t = n[1]) !== null && t !== void 0 ? t : UT()), Sv++, () => {
|
|
@@ -42872,10 +42871,10 @@ function CAe(e) {
|
|
|
42872
42871
|
var _ = Of(v), w = n.current, S = "deltaX" in v ? v.deltaX : w[0] - _[0], A = "deltaY" in v ? v.deltaY : w[1] - _[1], C, T = v.target, M = Math.abs(S) > Math.abs(A) ? "h" : "v";
|
|
42873
42872
|
if ("touches" in v && M === "h" && T.type === "range")
|
|
42874
42873
|
return !1;
|
|
42875
|
-
var
|
|
42876
|
-
if (!
|
|
42874
|
+
var L = zT(M, T);
|
|
42875
|
+
if (!L)
|
|
42877
42876
|
return !0;
|
|
42878
|
-
if (
|
|
42877
|
+
if (L ? C = M : (C = M === "v" ? "h" : "v", L = zT(M, T)), !L)
|
|
42879
42878
|
return !1;
|
|
42880
42879
|
if (!r.current && "changedTouches" in v && (S || A) && (r.current = C), !C)
|
|
42881
42880
|
return !0;
|
|
@@ -43061,7 +43060,7 @@ const ZD = "Dialog", [WD, yke] = Sm(ZD), [NAe, ea] = WD(ZD), DAe = (e) => {
|
|
|
43061
43060
|
})));
|
|
43062
43061
|
}), BAe = /* @__PURE__ */ st((e, t) => {
|
|
43063
43062
|
const n = ea(Rc, e.__scopeDialog), r = yt(null), i = hi(t, n.contentRef, r);
|
|
43064
|
-
return
|
|
43063
|
+
return nt(() => {
|
|
43065
43064
|
const o = r.current;
|
|
43066
43065
|
if (o)
|
|
43067
43066
|
return PAe(o);
|
|
@@ -43202,7 +43201,7 @@ const nTe = st(({ children: e, ...t }, n) => {
|
|
|
43202
43201
|
] });
|
|
43203
43202
|
}), rTe = () => {
|
|
43204
43203
|
const { modal: e } = rt((r) => r.theme), t = rt((r) => r.connected), { showModal: n } = eD();
|
|
43205
|
-
return
|
|
43204
|
+
return nt(() => {
|
|
43206
43205
|
var r, i, o, a;
|
|
43207
43206
|
t || n({
|
|
43208
43207
|
title: "Connection Error",
|
|
@@ -43275,7 +43274,7 @@ const nTe = st(({ children: e, ...t }, n) => {
|
|
|
43275
43274
|
);
|
|
43276
43275
|
}), cTe = /* @__PURE__ */ st((e, t) => {
|
|
43277
43276
|
const { __scopeCollapsible: n, present: r, children: i, ...o } = e, a = p_(JD, n), [s, l] = ut(r), c = yt(null), f = hi(t, c), p = yt(0), m = p.current, h = yt(0), g = h.current, v = a.open || s, x = yt(v), _ = yt();
|
|
43278
|
-
return
|
|
43277
|
+
return nt(() => {
|
|
43279
43278
|
const w = requestAnimationFrame(
|
|
43280
43279
|
() => x.current = !1
|
|
43281
43280
|
);
|
|
@@ -43423,27 +43422,27 @@ const dTe = aTe, fTe = uTe, pTe = lTe, hTe = (e) => /* @__PURE__ */ B.createElem
|
|
|
43423
43422
|
Actions: STe,
|
|
43424
43423
|
DescriptionItem: ETe
|
|
43425
43424
|
}), ATe = () => {
|
|
43426
|
-
var
|
|
43427
|
-
const { header: e } = rt((
|
|
43428
|
-
return /* @__PURE__ */ Q.jsxs(ui, { open:
|
|
43425
|
+
var o, a, s, l, c, f, p, m, h, g, v, x, _, w, S, A, C, T, M;
|
|
43426
|
+
const { header: e } = rt((L) => L.theme), t = rt((L) => L.configuration), n = rt((L) => L.closeWindow), r = rt((L) => !L.disableRestartConversation), i = !!((o = t.email) != null && o.title) || !!((a = t.phone) != null && a.title) || !!((s = t.website) != null && s.title) || !!((l = t.termsOfService) != null && l.link) || !!((c = t.privacyPolicy) != null && c.link);
|
|
43427
|
+
return /* @__PURE__ */ Q.jsxs(ui, { open: i ? void 0 : !1, "data-disabled": i ? void 0 : "", children: [
|
|
43429
43428
|
/* @__PURE__ */ Q.jsxs(ui.Content, { children: [
|
|
43430
43429
|
/* @__PURE__ */ Q.jsx(ui.Avatar, { src: t.botAvatar, children: t.botName || "Bot" }),
|
|
43431
43430
|
/* @__PURE__ */ Q.jsx(ui.Title, { children: t.botName || "Bot" }),
|
|
43432
43431
|
t.botDescription && /* @__PURE__ */ Q.jsx(ui.Description, { children: t.botDescription }),
|
|
43433
43432
|
/* @__PURE__ */ Q.jsxs(ui.Actions, { children: [
|
|
43434
|
-
/* @__PURE__ */ Q.jsx(mTe, {}),
|
|
43433
|
+
r && /* @__PURE__ */ Q.jsx(mTe, {}),
|
|
43435
43434
|
n && /* @__PURE__ */ Q.jsx(yTe, {})
|
|
43436
43435
|
] })
|
|
43437
43436
|
] }),
|
|
43438
43437
|
/* @__PURE__ */ Q.jsxs(ui.ExpandedContent, { children: [
|
|
43439
|
-
/* @__PURE__ */ Q.jsxs("div", { "data-links": "", ...(
|
|
43438
|
+
/* @__PURE__ */ Q.jsxs("div", { "data-links": "", ...(f = e == null ? void 0 : e.expandedContent) == null ? void 0 : f.group, children: [
|
|
43440
43439
|
/* @__PURE__ */ Q.jsx(
|
|
43441
43440
|
ui.DescriptionItem,
|
|
43442
43441
|
{
|
|
43443
43442
|
"data-email": "",
|
|
43444
43443
|
icon: P1e,
|
|
43445
|
-
title: (
|
|
43446
|
-
link: (
|
|
43444
|
+
title: (p = t.email) == null ? void 0 : p.title,
|
|
43445
|
+
link: (m = t.email) == null ? void 0 : m.link
|
|
43447
43446
|
}
|
|
43448
43447
|
),
|
|
43449
43448
|
/* @__PURE__ */ Q.jsx(
|
|
@@ -43451,41 +43450,41 @@ const dTe = aTe, fTe = uTe, pTe = lTe, hTe = (e) => /* @__PURE__ */ B.createElem
|
|
|
43451
43450
|
{
|
|
43452
43451
|
"data-phone": "",
|
|
43453
43452
|
icon: B1e,
|
|
43454
|
-
title: (
|
|
43455
|
-
link: (
|
|
43453
|
+
title: (h = t.phone) == null ? void 0 : h.title,
|
|
43454
|
+
link: (g = t.phone) == null ? void 0 : g.link
|
|
43456
43455
|
}
|
|
43457
43456
|
),
|
|
43458
43457
|
/* @__PURE__ */ Q.jsx(
|
|
43459
43458
|
ui.DescriptionItem,
|
|
43460
43459
|
{
|
|
43461
43460
|
"data-website": "",
|
|
43462
|
-
link: (
|
|
43461
|
+
link: (v = t.website) == null ? void 0 : v.link,
|
|
43463
43462
|
icon: M1e,
|
|
43464
|
-
title: (
|
|
43463
|
+
title: (x = t.website) == null ? void 0 : x.title
|
|
43465
43464
|
}
|
|
43466
43465
|
)
|
|
43467
43466
|
] }),
|
|
43468
|
-
/* @__PURE__ */ Q.jsxs("div", { "data-legal": "", ...(
|
|
43467
|
+
/* @__PURE__ */ Q.jsxs("div", { "data-legal": "", ...(_ = e == null ? void 0 : e.expandedContent) == null ? void 0 : _.group, children: [
|
|
43469
43468
|
/* @__PURE__ */ Q.jsx(
|
|
43470
43469
|
ui.DescriptionItem,
|
|
43471
43470
|
{
|
|
43472
43471
|
"data-terms": "",
|
|
43473
|
-
link: (
|
|
43472
|
+
link: (w = t.termsOfService) == null ? void 0 : w.link,
|
|
43474
43473
|
icon: $1e,
|
|
43475
|
-
title: (
|
|
43474
|
+
title: (S = t.termsOfService) == null ? void 0 : S.title
|
|
43476
43475
|
}
|
|
43477
43476
|
),
|
|
43478
43477
|
/* @__PURE__ */ Q.jsx(
|
|
43479
43478
|
ui.DescriptionItem,
|
|
43480
43479
|
{
|
|
43481
43480
|
"data-privacy": "",
|
|
43482
|
-
link: (
|
|
43481
|
+
link: (A = t.privacyPolicy) == null ? void 0 : A.link,
|
|
43483
43482
|
icon: j1e,
|
|
43484
|
-
title: (
|
|
43483
|
+
title: (C = t.privacyPolicy) == null ? void 0 : C.title
|
|
43485
43484
|
}
|
|
43486
43485
|
)
|
|
43487
43486
|
] }),
|
|
43488
|
-
/* @__PURE__ */ Q.jsx("div", { ...(
|
|
43487
|
+
/* @__PURE__ */ Q.jsx("div", { ...(M = (T = e == null ? void 0 : e.expandedContent) == null ? void 0 : T.descriptionItems) == null ? void 0 : M.poweredBy, children: "⚡ by Botpress" })
|
|
43489
43488
|
] })
|
|
43490
43489
|
] });
|
|
43491
43490
|
}, wke = ui, TTe = Os(({ ...e }) => {
|
|
@@ -43497,7 +43496,7 @@ const dTe = aTe, fTe = uTe, pTe = lTe, hTe = (e) => /* @__PURE__ */ B.createElem
|
|
|
43497
43496
|
const [l, c] = ut([]), { message: f } = rt((S) => S.theme), { botAvatar: p, botName: m } = rt((S) => S.configuration), h = rt((S) => S.getClientId)();
|
|
43498
43497
|
B_e(() => {
|
|
43499
43498
|
n();
|
|
43500
|
-
}),
|
|
43499
|
+
}), nt(() => {
|
|
43501
43500
|
l.length === 0 && n();
|
|
43502
43501
|
}, [l.length]);
|
|
43503
43502
|
const g = sP(h ?? "", 15);
|
|
@@ -43536,7 +43535,7 @@ function $Te(e, t) {
|
|
|
43536
43535
|
}, e);
|
|
43537
43536
|
}
|
|
43538
43537
|
const XD = "ScrollArea", [QD, _ke] = Sm(XD), [RTe, Oi] = QD(XD), ITe = /* @__PURE__ */ st((e, t) => {
|
|
43539
|
-
const { __scopeScrollArea: n, type: r = "hover", dir: i, scrollHideDelay: o = 600, ...a } = e, [s, l] = ut(null), [c, f] = ut(null), [p, m] = ut(null), [h, g] = ut(null), [v, x] = ut(null), [_, w] = ut(0), [S, A] = ut(0), [C, T] = ut(!1), [M,
|
|
43538
|
+
const { __scopeScrollArea: n, type: r = "hover", dir: i, scrollHideDelay: o = 600, ...a } = e, [s, l] = ut(null), [c, f] = ut(null), [p, m] = ut(null), [h, g] = ut(null), [v, x] = ut(null), [_, w] = ut(0), [S, A] = ut(0), [C, T] = ut(!1), [M, L] = ut(!1), q = hi(
|
|
43540
43539
|
t,
|
|
43541
43540
|
(Z) => l(Z)
|
|
43542
43541
|
), D = kTe(i);
|
|
@@ -43557,7 +43556,7 @@ const XD = "ScrollArea", [QD, _ke] = Sm(XD), [RTe, Oi] = QD(XD), ITe = /* @__PUR
|
|
|
43557
43556
|
scrollbarY: v,
|
|
43558
43557
|
onScrollbarYChange: x,
|
|
43559
43558
|
scrollbarYEnabled: M,
|
|
43560
|
-
onScrollbarYEnabledChange:
|
|
43559
|
+
onScrollbarYEnabledChange: L,
|
|
43561
43560
|
onCornerWidthChange: w,
|
|
43562
43561
|
onCornerHeightChange: A
|
|
43563
43562
|
}, /* @__PURE__ */ it(vr.div, Vt({
|
|
@@ -43607,7 +43606,7 @@ const XD = "ScrollArea", [QD, _ke] = Sm(XD), [RTe, Oi] = QD(XD), ITe = /* @__PUR
|
|
|
43607
43606
|
}, r)));
|
|
43608
43607
|
}), ta = "ScrollAreaScrollbar", DTe = /* @__PURE__ */ st((e, t) => {
|
|
43609
43608
|
const { forceMount: n, ...r } = e, i = Oi(ta, e.__scopeScrollArea), { onScrollbarXEnabledChange: o, onScrollbarYEnabledChange: a } = i, s = e.orientation === "horizontal";
|
|
43610
|
-
return
|
|
43609
|
+
return nt(() => (s ? o(!0) : a(!0), () => {
|
|
43611
43610
|
s ? o(!1) : a(!1);
|
|
43612
43611
|
}), [
|
|
43613
43612
|
s,
|
|
@@ -43627,7 +43626,7 @@ const XD = "ScrollArea", [QD, _ke] = Sm(XD), [RTe, Oi] = QD(XD), ITe = /* @__PUR
|
|
|
43627
43626
|
})) : null;
|
|
43628
43627
|
}), MTe = /* @__PURE__ */ st((e, t) => {
|
|
43629
43628
|
const { forceMount: n, ...r } = e, i = Oi(ta, e.__scopeScrollArea), [o, a] = ut(!1);
|
|
43630
|
-
return
|
|
43629
|
+
return nt(() => {
|
|
43631
43630
|
const s = i.scrollArea;
|
|
43632
43631
|
let l = 0;
|
|
43633
43632
|
if (s) {
|
|
@@ -43675,7 +43674,7 @@ const XD = "ScrollArea", [QD, _ke] = Sm(XD), [RTe, Oi] = QD(XD), ITe = /* @__PUR
|
|
|
43675
43674
|
POINTER_ENTER: "interacting"
|
|
43676
43675
|
}
|
|
43677
43676
|
});
|
|
43678
|
-
return
|
|
43677
|
+
return nt(() => {
|
|
43679
43678
|
if (s === "idle") {
|
|
43680
43679
|
const c = window.setTimeout(
|
|
43681
43680
|
() => l("HIDE"),
|
|
@@ -43687,7 +43686,7 @@ const XD = "ScrollArea", [QD, _ke] = Sm(XD), [RTe, Oi] = QD(XD), ITe = /* @__PUR
|
|
|
43687
43686
|
s,
|
|
43688
43687
|
i.scrollHideDelay,
|
|
43689
43688
|
l
|
|
43690
|
-
]),
|
|
43689
|
+
]), nt(() => {
|
|
43691
43690
|
const c = i.viewport, f = o ? "scrollLeft" : "scrollTop";
|
|
43692
43691
|
if (c) {
|
|
43693
43692
|
let p = c[f];
|
|
@@ -43783,7 +43782,7 @@ const XD = "ScrollArea", [QD, _ke] = Sm(XD), [RTe, Oi] = QD(XD), ITe = /* @__PUR
|
|
|
43783
43782
|
})) : null;
|
|
43784
43783
|
}), FTe = /* @__PURE__ */ st((e, t) => {
|
|
43785
43784
|
const { sizes: n, onSizesChange: r, ...i } = e, o = Oi(ta, e.__scopeScrollArea), [a, s] = ut(), l = yt(null), c = hi(t, l, o.onScrollbarXChange);
|
|
43786
|
-
return
|
|
43785
|
+
return nt(() => {
|
|
43787
43786
|
l.current && s(getComputedStyle(l.current));
|
|
43788
43787
|
}, [
|
|
43789
43788
|
l
|
|
@@ -43821,7 +43820,7 @@ const XD = "ScrollArea", [QD, _ke] = Sm(XD), [RTe, Oi] = QD(XD), ITe = /* @__PUR
|
|
|
43821
43820
|
}));
|
|
43822
43821
|
}), jTe = /* @__PURE__ */ st((e, t) => {
|
|
43823
43822
|
const { sizes: n, onSizesChange: r, ...i } = e, o = Oi(ta, e.__scopeScrollArea), [a, s] = ut(), l = yt(null), c = hi(t, l, o.onScrollbarYChange);
|
|
43824
|
-
return
|
|
43823
|
+
return nt(() => {
|
|
43825
43824
|
l.current && s(getComputedStyle(l.current));
|
|
43826
43825
|
}, [
|
|
43827
43826
|
l
|
|
@@ -43863,7 +43862,7 @@ const XD = "ScrollArea", [QD, _ke] = Sm(XD), [RTe, Oi] = QD(XD), ITe = /* @__PUR
|
|
|
43863
43862
|
t,
|
|
43864
43863
|
(q) => v(q)
|
|
43865
43864
|
), _ = yt(null), w = yt(""), S = h.viewport, A = r.content - r.viewport, C = Dr(f), T = Dr(l), M = ay(p, 10);
|
|
43866
|
-
function
|
|
43865
|
+
function L(q) {
|
|
43867
43866
|
if (_.current) {
|
|
43868
43867
|
const D = q.clientX - _.current.left, Z = q.clientY - _.current.top;
|
|
43869
43868
|
c({
|
|
@@ -43872,7 +43871,7 @@ const XD = "ScrollArea", [QD, _ke] = Sm(XD), [RTe, Oi] = QD(XD), ITe = /* @__PUR
|
|
|
43872
43871
|
});
|
|
43873
43872
|
}
|
|
43874
43873
|
}
|
|
43875
|
-
return
|
|
43874
|
+
return nt(() => {
|
|
43876
43875
|
const q = (D) => {
|
|
43877
43876
|
const Z = D.target;
|
|
43878
43877
|
(g == null ? void 0 : g.contains(Z)) && C(D, A);
|
|
@@ -43887,7 +43886,7 @@ const XD = "ScrollArea", [QD, _ke] = Sm(XD), [RTe, Oi] = QD(XD), ITe = /* @__PUR
|
|
|
43887
43886
|
g,
|
|
43888
43887
|
A,
|
|
43889
43888
|
C
|
|
43890
|
-
]),
|
|
43889
|
+
]), nt(T, [
|
|
43891
43890
|
r,
|
|
43892
43891
|
T
|
|
43893
43892
|
]), Yu(g, M), Yu(h.content, M), /* @__PURE__ */ it(qTe, {
|
|
@@ -43905,9 +43904,9 @@ const XD = "ScrollArea", [QD, _ke] = Sm(XD), [RTe, Oi] = QD(XD), ITe = /* @__PUR
|
|
|
43905
43904
|
...m.style
|
|
43906
43905
|
},
|
|
43907
43906
|
onPointerDown: Ar(e.onPointerDown, (q) => {
|
|
43908
|
-
q.button === 0 && (q.target.setPointerCapture(q.pointerId), _.current = g.getBoundingClientRect(), w.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", h.viewport && (h.viewport.style.scrollBehavior = "auto"),
|
|
43907
|
+
q.button === 0 && (q.target.setPointerCapture(q.pointerId), _.current = g.getBoundingClientRect(), w.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", h.viewport && (h.viewport.style.scrollBehavior = "auto"), L(q));
|
|
43909
43908
|
}),
|
|
43910
|
-
onPointerMove: Ar(e.onPointerMove,
|
|
43909
|
+
onPointerMove: Ar(e.onPointerMove, L),
|
|
43911
43910
|
onPointerUp: Ar(e.onPointerUp, (q) => {
|
|
43912
43911
|
const D = q.target;
|
|
43913
43912
|
D.hasPointerCapture(q.pointerId) && D.releasePointerCapture(q.pointerId), document.body.style.webkitUserSelect = w.current, h.viewport && (h.viewport.style.scrollBehavior = ""), _.current = null;
|
|
@@ -43927,7 +43926,7 @@ const XD = "ScrollArea", [QD, _ke] = Sm(XD), [RTe, Oi] = QD(XD), ITe = /* @__PUR
|
|
|
43927
43926
|
), c = yt(), f = ay(() => {
|
|
43928
43927
|
c.current && (c.current(), c.current = void 0);
|
|
43929
43928
|
}, 100);
|
|
43930
|
-
return
|
|
43929
|
+
return nt(() => {
|
|
43931
43930
|
const p = o.viewport;
|
|
43932
43931
|
if (p) {
|
|
43933
43932
|
const m = () => {
|
|
@@ -44055,7 +44054,7 @@ const HTe = (e, t = () => {
|
|
|
44055
44054
|
};
|
|
44056
44055
|
function ay(e, t) {
|
|
44057
44056
|
const n = Dr(e), r = yt(0);
|
|
44058
|
-
return
|
|
44057
|
+
return nt(
|
|
44059
44058
|
() => () => window.clearTimeout(r.current),
|
|
44060
44059
|
[]
|
|
44061
44060
|
), Gn(() => {
|
|
@@ -44089,19 +44088,19 @@ var sM = { exports: {} };
|
|
|
44089
44088
|
e.exports = r();
|
|
44090
44089
|
})(lt, function() {
|
|
44091
44090
|
var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", a = "second", s = "minute", l = "hour", c = "day", f = "week", p = "month", m = "quarter", h = "year", g = "date", v = "Invalid Date", x = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, _ = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, w = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(K) {
|
|
44092
|
-
var H = ["th", "st", "nd", "rd"],
|
|
44093
|
-
return "[" + K + (H[(
|
|
44094
|
-
} }, S = function(K, H,
|
|
44091
|
+
var H = ["th", "st", "nd", "rd"], F = K % 100;
|
|
44092
|
+
return "[" + K + (H[(F - 20) % 10] || H[F] || H[0]) + "]";
|
|
44093
|
+
} }, S = function(K, H, F) {
|
|
44095
44094
|
var G = String(K);
|
|
44096
|
-
return !G || G.length >= H ? K : "" + Array(H + 1 - G.length).join(
|
|
44095
|
+
return !G || G.length >= H ? K : "" + Array(H + 1 - G.length).join(F) + K;
|
|
44097
44096
|
}, A = { s: S, z: function(K) {
|
|
44098
|
-
var H = -K.utcOffset(),
|
|
44097
|
+
var H = -K.utcOffset(), F = Math.abs(H), G = Math.floor(F / 60), te = F % 60;
|
|
44099
44098
|
return (H <= 0 ? "+" : "-") + S(G, 2, "0") + ":" + S(te, 2, "0");
|
|
44100
|
-
}, m: function K(H,
|
|
44101
|
-
if (H.date() <
|
|
44102
|
-
return -K(
|
|
44103
|
-
var G = 12 * (
|
|
44104
|
-
return +(-(G + (
|
|
44099
|
+
}, m: function K(H, F) {
|
|
44100
|
+
if (H.date() < F.date())
|
|
44101
|
+
return -K(F, H);
|
|
44102
|
+
var G = 12 * (F.year() - H.year()) + (F.month() - H.month()), te = H.clone().add(G, p), ue = F - te < 0, R = H.clone().add(G + (ue ? -1 : 1), p);
|
|
44103
|
+
return +(-(G + (F - te) / (ue ? te - R : R - te)) || 0);
|
|
44105
44104
|
}, a: function(K) {
|
|
44106
44105
|
return K < 0 ? Math.ceil(K) || 0 : Math.floor(K);
|
|
44107
44106
|
}, p: function(K) {
|
|
@@ -44110,15 +44109,15 @@ var sM = { exports: {} };
|
|
|
44110
44109
|
return K === void 0;
|
|
44111
44110
|
} }, C = "en", T = {};
|
|
44112
44111
|
T[C] = w;
|
|
44113
|
-
var M = "$isDayjsObject",
|
|
44112
|
+
var M = "$isDayjsObject", L = function(K) {
|
|
44114
44113
|
return K instanceof ne || !(!K || !K[M]);
|
|
44115
|
-
}, q = function K(H,
|
|
44114
|
+
}, q = function K(H, F, G) {
|
|
44116
44115
|
var te;
|
|
44117
44116
|
if (!H)
|
|
44118
44117
|
return C;
|
|
44119
44118
|
if (typeof H == "string") {
|
|
44120
44119
|
var ue = H.toLowerCase();
|
|
44121
|
-
T[ue] && (te = ue),
|
|
44120
|
+
T[ue] && (te = ue), F && (T[ue] = F, te = ue);
|
|
44122
44121
|
var R = H.split("-");
|
|
44123
44122
|
if (!te && R.length > 1)
|
|
44124
44123
|
return K(R[0]);
|
|
@@ -44128,20 +44127,20 @@ var sM = { exports: {} };
|
|
|
44128
44127
|
}
|
|
44129
44128
|
return !G && te && (C = te), te || !G && C;
|
|
44130
44129
|
}, D = function(K, H) {
|
|
44131
|
-
if (
|
|
44130
|
+
if (L(K))
|
|
44132
44131
|
return K.clone();
|
|
44133
|
-
var
|
|
44134
|
-
return
|
|
44132
|
+
var F = typeof H == "object" ? H : {};
|
|
44133
|
+
return F.date = K, F.args = arguments, new ne(F);
|
|
44135
44134
|
}, Z = A;
|
|
44136
|
-
Z.l = q, Z.i =
|
|
44135
|
+
Z.l = q, Z.i = L, Z.w = function(K, H) {
|
|
44137
44136
|
return D(K, { locale: H.$L, utc: H.$u, x: H.$x, $offset: H.$offset });
|
|
44138
44137
|
};
|
|
44139
44138
|
var ne = function() {
|
|
44140
|
-
function K(
|
|
44141
|
-
this.$L = q(
|
|
44139
|
+
function K(F) {
|
|
44140
|
+
this.$L = q(F.locale, null, !0), this.parse(F), this.$x = this.$x || F.x || {}, this[M] = !0;
|
|
44142
44141
|
}
|
|
44143
44142
|
var H = K.prototype;
|
|
44144
|
-
return H.parse = function(
|
|
44143
|
+
return H.parse = function(F) {
|
|
44145
44144
|
this.$d = function(G) {
|
|
44146
44145
|
var te = G.date, ue = G.utc;
|
|
44147
44146
|
if (te === null)
|
|
@@ -44158,29 +44157,29 @@ var sM = { exports: {} };
|
|
|
44158
44157
|
}
|
|
44159
44158
|
}
|
|
44160
44159
|
return new Date(te);
|
|
44161
|
-
}(
|
|
44160
|
+
}(F), this.init();
|
|
44162
44161
|
}, H.init = function() {
|
|
44163
|
-
var
|
|
44164
|
-
this.$y =
|
|
44162
|
+
var F = this.$d;
|
|
44163
|
+
this.$y = F.getFullYear(), this.$M = F.getMonth(), this.$D = F.getDate(), this.$W = F.getDay(), this.$H = F.getHours(), this.$m = F.getMinutes(), this.$s = F.getSeconds(), this.$ms = F.getMilliseconds();
|
|
44165
44164
|
}, H.$utils = function() {
|
|
44166
44165
|
return Z;
|
|
44167
44166
|
}, H.isValid = function() {
|
|
44168
44167
|
return this.$d.toString() !== v;
|
|
44169
|
-
}, H.isSame = function(
|
|
44170
|
-
var te = D(
|
|
44168
|
+
}, H.isSame = function(F, G) {
|
|
44169
|
+
var te = D(F);
|
|
44171
44170
|
return this.startOf(G) <= te && te <= this.endOf(G);
|
|
44172
|
-
}, H.isAfter = function(
|
|
44173
|
-
return D(
|
|
44174
|
-
}, H.isBefore = function(
|
|
44175
|
-
return this.endOf(G) < D(
|
|
44176
|
-
}, H.$g = function(
|
|
44177
|
-
return Z.u(
|
|
44171
|
+
}, H.isAfter = function(F, G) {
|
|
44172
|
+
return D(F) < this.startOf(G);
|
|
44173
|
+
}, H.isBefore = function(F, G) {
|
|
44174
|
+
return this.endOf(G) < D(F);
|
|
44175
|
+
}, H.$g = function(F, G, te) {
|
|
44176
|
+
return Z.u(F) ? this[G] : this.set(te, F);
|
|
44178
44177
|
}, H.unix = function() {
|
|
44179
44178
|
return Math.floor(this.valueOf() / 1e3);
|
|
44180
44179
|
}, H.valueOf = function() {
|
|
44181
44180
|
return this.$d.getTime();
|
|
44182
|
-
}, H.startOf = function(
|
|
44183
|
-
var te = this, ue = !!Z.u(G) || G, R = Z.p(
|
|
44181
|
+
}, H.startOf = function(F, G) {
|
|
44182
|
+
var te = this, ue = !!Z.u(G) || G, R = Z.p(F), ae = function(He, Oe) {
|
|
44184
44183
|
var Se = Z.w(te.$u ? Date.UTC(te.$y, Oe, He) : new Date(te.$y, Oe, He), te);
|
|
44185
44184
|
return ue ? Se : Se.endOf(c);
|
|
44186
44185
|
}, Ae = function(He, Oe) {
|
|
@@ -44192,8 +44191,8 @@ var sM = { exports: {} };
|
|
|
44192
44191
|
case p:
|
|
44193
44192
|
return ue ? ae(1, Pe) : ae(0, Pe + 1);
|
|
44194
44193
|
case f:
|
|
44195
|
-
var Ge = this.$locale().weekStart || 0,
|
|
44196
|
-
return ae(ue ? Fe -
|
|
44194
|
+
var Ge = this.$locale().weekStart || 0, tt = (N < Ge ? N + 7 : N) - Ge;
|
|
44195
|
+
return ae(ue ? Fe - tt : Fe + (6 - tt), Pe);
|
|
44197
44196
|
case c:
|
|
44198
44197
|
case g:
|
|
44199
44198
|
return Ae(Ne + "Hours", 0);
|
|
@@ -44206,46 +44205,46 @@ var sM = { exports: {} };
|
|
|
44206
44205
|
default:
|
|
44207
44206
|
return this.clone();
|
|
44208
44207
|
}
|
|
44209
|
-
}, H.endOf = function(
|
|
44210
|
-
return this.startOf(
|
|
44211
|
-
}, H.$set = function(
|
|
44212
|
-
var te, ue = Z.p(
|
|
44208
|
+
}, H.endOf = function(F) {
|
|
44209
|
+
return this.startOf(F, !1);
|
|
44210
|
+
}, H.$set = function(F, G) {
|
|
44211
|
+
var te, ue = Z.p(F), R = "set" + (this.$u ? "UTC" : ""), ae = (te = {}, te[c] = R + "Date", te[g] = R + "Date", te[p] = R + "Month", te[h] = R + "FullYear", te[l] = R + "Hours", te[s] = R + "Minutes", te[a] = R + "Seconds", te[o] = R + "Milliseconds", te)[ue], Ae = ue === c ? this.$D + (G - this.$W) : G;
|
|
44213
44212
|
if (ue === p || ue === h) {
|
|
44214
44213
|
var N = this.clone().set(g, 1);
|
|
44215
44214
|
N.$d[ae](Ae), N.init(), this.$d = N.set(g, Math.min(this.$D, N.daysInMonth())).$d;
|
|
44216
44215
|
} else
|
|
44217
44216
|
ae && this.$d[ae](Ae);
|
|
44218
44217
|
return this.init(), this;
|
|
44219
|
-
}, H.set = function(
|
|
44220
|
-
return this.clone().$set(
|
|
44221
|
-
}, H.get = function(
|
|
44222
|
-
return this[Z.p(
|
|
44223
|
-
}, H.add = function(
|
|
44218
|
+
}, H.set = function(F, G) {
|
|
44219
|
+
return this.clone().$set(F, G);
|
|
44220
|
+
}, H.get = function(F) {
|
|
44221
|
+
return this[Z.p(F)]();
|
|
44222
|
+
}, H.add = function(F, G) {
|
|
44224
44223
|
var te, ue = this;
|
|
44225
|
-
|
|
44224
|
+
F = Number(F);
|
|
44226
44225
|
var R = Z.p(G), ae = function(Pe) {
|
|
44227
44226
|
var Fe = D(ue);
|
|
44228
|
-
return Z.w(Fe.date(Fe.date() + Math.round(Pe *
|
|
44227
|
+
return Z.w(Fe.date(Fe.date() + Math.round(Pe * F)), ue);
|
|
44229
44228
|
};
|
|
44230
44229
|
if (R === p)
|
|
44231
|
-
return this.set(p, this.$M +
|
|
44230
|
+
return this.set(p, this.$M + F);
|
|
44232
44231
|
if (R === h)
|
|
44233
|
-
return this.set(h, this.$y +
|
|
44232
|
+
return this.set(h, this.$y + F);
|
|
44234
44233
|
if (R === c)
|
|
44235
44234
|
return ae(1);
|
|
44236
44235
|
if (R === f)
|
|
44237
44236
|
return ae(7);
|
|
44238
|
-
var Ae = (te = {}, te[s] = r, te[l] = i, te[a] = n, te)[R] || 1, N = this.$d.getTime() +
|
|
44237
|
+
var Ae = (te = {}, te[s] = r, te[l] = i, te[a] = n, te)[R] || 1, N = this.$d.getTime() + F * Ae;
|
|
44239
44238
|
return Z.w(N, this);
|
|
44240
|
-
}, H.subtract = function(
|
|
44241
|
-
return this.add(-1 *
|
|
44242
|
-
}, H.format = function(
|
|
44239
|
+
}, H.subtract = function(F, G) {
|
|
44240
|
+
return this.add(-1 * F, G);
|
|
44241
|
+
}, H.format = function(F) {
|
|
44243
44242
|
var G = this, te = this.$locale();
|
|
44244
44243
|
if (!this.isValid())
|
|
44245
44244
|
return te.invalidDate || v;
|
|
44246
|
-
var ue =
|
|
44245
|
+
var ue = F || "YYYY-MM-DDTHH:mm:ssZ", R = Z.z(this), ae = this.$H, Ae = this.$m, N = this.$M, Pe = te.weekdays, Fe = te.months, Ne = te.meridiem, Ge = function(Oe, Se, Le, Ce) {
|
|
44247
44246
|
return Oe && (Oe[Se] || Oe(G, ue)) || Le[Se].slice(0, Ce);
|
|
44248
|
-
},
|
|
44247
|
+
}, tt = function(Oe) {
|
|
44249
44248
|
return Z.s(ae % 12 || 12, Oe, "0");
|
|
44250
44249
|
}, He = Ne || function(Oe, Se, Le) {
|
|
44251
44250
|
var Ce = Oe < 12 ? "AM" : "PM";
|
|
@@ -44283,9 +44282,9 @@ var sM = { exports: {} };
|
|
|
44283
44282
|
case "HH":
|
|
44284
44283
|
return Z.s(ae, 2, "0");
|
|
44285
44284
|
case "h":
|
|
44286
|
-
return
|
|
44285
|
+
return tt(1);
|
|
44287
44286
|
case "hh":
|
|
44288
|
-
return
|
|
44287
|
+
return tt(2);
|
|
44289
44288
|
case "a":
|
|
44290
44289
|
return He(ae, Ae, !0);
|
|
44291
44290
|
case "A":
|
|
@@ -44308,8 +44307,8 @@ var sM = { exports: {} };
|
|
|
44308
44307
|
});
|
|
44309
44308
|
}, H.utcOffset = function() {
|
|
44310
44309
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
44311
|
-
}, H.diff = function(
|
|
44312
|
-
var ue, R = this, ae = Z.p(G), Ae = D(
|
|
44310
|
+
}, H.diff = function(F, G, te) {
|
|
44311
|
+
var ue, R = this, ae = Z.p(G), Ae = D(F), N = (Ae.utcOffset() - this.utcOffset()) * r, Pe = this - Ae, Fe = function() {
|
|
44313
44312
|
return Z.m(R, Ae);
|
|
44314
44313
|
};
|
|
44315
44314
|
switch (ae) {
|
|
@@ -44345,10 +44344,10 @@ var sM = { exports: {} };
|
|
|
44345
44344
|
return this.endOf(p).$D;
|
|
44346
44345
|
}, H.$locale = function() {
|
|
44347
44346
|
return T[this.$L];
|
|
44348
|
-
}, H.locale = function(
|
|
44349
|
-
if (!
|
|
44347
|
+
}, H.locale = function(F, G) {
|
|
44348
|
+
if (!F)
|
|
44350
44349
|
return this.$L;
|
|
44351
|
-
var te = this.clone(), ue = q(
|
|
44350
|
+
var te = this.clone(), ue = q(F, G, !0);
|
|
44352
44351
|
return ue && (te.$L = ue), te;
|
|
44353
44352
|
}, H.clone = function() {
|
|
44354
44353
|
return Z.w(this.$d, this);
|
|
@@ -44368,7 +44367,7 @@ var sM = { exports: {} };
|
|
|
44368
44367
|
};
|
|
44369
44368
|
}), D.extend = function(K, H) {
|
|
44370
44369
|
return K.$i || (K(H, ne, D), K.$i = !0), D;
|
|
44371
|
-
}, D.locale = q, D.isDayjs =
|
|
44370
|
+
}, D.locale = q, D.isDayjs = L, D.unix = function(K) {
|
|
44372
44371
|
return D(1e3 * K);
|
|
44373
44372
|
}, D.en = T[C], D.Ls = T, D.p = {}, D;
|
|
44374
44373
|
});
|
|
@@ -44435,28 +44434,28 @@ function iCe(e, t = !1) {
|
|
|
44435
44434
|
return n.isToday() ? t ? `Today • ${n.format(r)}` : "Today" : n.isYesterday() ? t ? `Yesterday • ${n.format(r)}` : "Yesterday" : t ? n.format(`YYYY-MM-DD • ${r}`) : n.format("YYYY-MM-DD");
|
|
44436
44435
|
}
|
|
44437
44436
|
const GT = 10 * 1e3, oCe = Os(({ scrollDownButton: e, ...t }) => {
|
|
44438
|
-
var S, A, C, T, M,
|
|
44439
|
-
const { messageList: n } = rt((
|
|
44437
|
+
var S, A, C, T, M, L, q, D, Z, ne, J, K, H;
|
|
44438
|
+
const { messageList: n } = rt((F) => F.theme), r = rt((F) => F.messages), i = rt((F) => F.setState), o = rt((F) => F.on), a = rt((F) => F.getClientId)(), s = rt((F) => F.configuration), l = rt((F) => F.messageContainerRef), c = rt((F) => F.isTyping), f = rt((F) => F.setIsTyping), p = hs(() => rCe(r), [r]), [m, h] = ut(!0), { y: g } = K_e(l), [v, x] = Y_e(), _ = () => {
|
|
44440
44439
|
if (!l.current)
|
|
44441
44440
|
return;
|
|
44442
|
-
const { scrollHeight:
|
|
44443
|
-
m && l.current.scrollTo({ top:
|
|
44441
|
+
const { scrollHeight: F } = l.current;
|
|
44442
|
+
m && l.current.scrollTo({ top: F });
|
|
44444
44443
|
};
|
|
44445
|
-
|
|
44446
|
-
const
|
|
44447
|
-
r.length > 0 && r[r.length - 1].timestamp <
|
|
44448
|
-
}, [v]),
|
|
44444
|
+
nt(() => {
|
|
44445
|
+
const F = new Date(Date.now() - GT + 2e3);
|
|
44446
|
+
r.length > 0 && r[r.length - 1].timestamp < F && f(!1);
|
|
44447
|
+
}, [v]), nt(() => o("messageSent", () => {
|
|
44449
44448
|
f(!0), x(new Date(Date.now() + GT));
|
|
44450
|
-
}), []),
|
|
44449
|
+
}), []), nt(() => o("message", () => {
|
|
44451
44450
|
f(!1);
|
|
44452
|
-
}), []),
|
|
44453
|
-
const
|
|
44454
|
-
i({ disableComposer: !!(
|
|
44455
|
-
}, [r.length]),
|
|
44451
|
+
}), []), nt(() => {
|
|
44452
|
+
const F = r[r.length - 1];
|
|
44453
|
+
i({ disableComposer: !!(F != null && F.disableInput) });
|
|
44454
|
+
}, [r.length]), nt(() => {
|
|
44456
44455
|
if (!l.current)
|
|
44457
44456
|
return;
|
|
44458
|
-
const { offsetHeight:
|
|
44459
|
-
h(G <= te +
|
|
44457
|
+
const { offsetHeight: F, scrollHeight: G, scrollTop: te } = l.current;
|
|
44458
|
+
h(G <= te + F + 100);
|
|
44460
44459
|
}, [g]);
|
|
44461
44460
|
const w = e != null && e.icon ? e == null ? void 0 : e.icon : Sxe;
|
|
44462
44461
|
return /* @__PURE__ */ Q.jsxs(VTe, { ...(S = n == null ? void 0 : n.scrollbar) == null ? void 0 : S.container, scrollHideDelay: 300, type: "hover", children: [
|
|
@@ -44464,11 +44463,11 @@ const GT = 10 * 1e3, oCe = Os(({ scrollDownButton: e, ...t }) => {
|
|
|
44464
44463
|
/* @__PURE__ */ Q.jsxs("li", { ...(C = n == null ? void 0 : n.marquee) == null ? void 0 : C.container, children: [
|
|
44465
44464
|
/* @__PURE__ */ Q.jsx(uP, { userId: a, src: s.botAvatar, ...(T = n == null ? void 0 : n.marquee) == null ? void 0 : T.avatar, children: (s.botName || "Bot").slice(0, 1) }),
|
|
44466
44465
|
/* @__PURE__ */ Q.jsxs("div", { ...(M = n == null ? void 0 : n.marquee) == null ? void 0 : M.content, children: [
|
|
44467
|
-
/* @__PURE__ */ Q.jsx("h1", { ...(
|
|
44466
|
+
/* @__PURE__ */ Q.jsx("h1", { ...(L = n == null ? void 0 : n.marquee) == null ? void 0 : L.title, children: s.botName || "Bot" }),
|
|
44468
44467
|
/* @__PURE__ */ Q.jsx("p", { ...(q = n == null ? void 0 : n.marquee) == null ? void 0 : q.description, children: s.botDescription })
|
|
44469
44468
|
] })
|
|
44470
44469
|
] }),
|
|
44471
|
-
p.map((
|
|
44470
|
+
p.map((F, G) => /* @__PURE__ */ Q.jsx(HT, { scroll: _, ...F }, G)),
|
|
44472
44471
|
c && /* @__PURE__ */ Q.jsx(HT, { scroll: _, direction: "incoming", children: /* @__PURE__ */ Q.jsx(TTe, {}) }),
|
|
44473
44472
|
/* @__PURE__ */ Q.jsx("li", { "data-is-at-bottom": m, ...(D = n == null ? void 0 : n.scrollDownButton) == null ? void 0 : D.container, children: !!r.length && /* @__PURE__ */ Q.jsxs(
|
|
44474
44473
|
"button",
|
|
@@ -44477,8 +44476,8 @@ const GT = 10 * 1e3, oCe = Os(({ scrollDownButton: e, ...t }) => {
|
|
|
44477
44476
|
"data-is-at-bottom": m,
|
|
44478
44477
|
...(Z = n == null ? void 0 : n.scrollDownButton) == null ? void 0 : Z.button,
|
|
44479
44478
|
onClick: () => {
|
|
44480
|
-
var
|
|
44481
|
-
return (G = l.current) == null ? void 0 : G.scrollBy({ top: (
|
|
44479
|
+
var F, G;
|
|
44480
|
+
return (G = l.current) == null ? void 0 : G.scrollBy({ top: (F = l.current) == null ? void 0 : F.scrollHeight });
|
|
44482
44481
|
},
|
|
44483
44482
|
children: [
|
|
44484
44483
|
(e == null ? void 0 : e.text) ?? "Back",
|