backflow-ui-renderer 0.1.64 → 0.1.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +28 -28
- package/dist/index.js +649 -635
- package/dist/renderer/components.d.ts.map +1 -1
- package/dist/renderer/index.d.ts.map +1 -1
- package/dist/renderer/ui-overlays.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8672,24 +8672,24 @@ function jz(e, t, n) {
|
|
|
8672
8672
|
) : null
|
|
8673
8673
|
),
|
|
8674
8674
|
!u && m.length > 0 && (() => {
|
|
8675
|
-
var $t, Tt, ut,
|
|
8675
|
+
var $t, Tt, ut, ft, Nt;
|
|
8676
8676
|
const N = ($t = t.groupBy) == null ? void 0 : $t.field, z = (nt) => {
|
|
8677
8677
|
const St = nt == null ? void 0 : nt[N];
|
|
8678
8678
|
if (St && typeof St == "object" && St._seconds)
|
|
8679
8679
|
return St._seconds * 1e3;
|
|
8680
|
-
const
|
|
8681
|
-
return isNaN(
|
|
8680
|
+
const dt = Date.parse(St);
|
|
8681
|
+
return isNaN(dt) ? 0 : dt;
|
|
8682
8682
|
}, D = (nt) => {
|
|
8683
8683
|
if (!nt) return "Earlier";
|
|
8684
|
-
const St = new Date(nt),
|
|
8685
|
-
if (Jt(St) === Jt(
|
|
8686
|
-
const
|
|
8687
|
-
return
|
|
8684
|
+
const St = new Date(nt), dt = /* @__PURE__ */ new Date(), Jt = (Ce) => `${Ce.getFullYear()}-${Ce.getMonth()}-${Ce.getDate()}`;
|
|
8685
|
+
if (Jt(St) === Jt(dt)) return "Today";
|
|
8686
|
+
const de = new Date(dt);
|
|
8687
|
+
return de.setDate(dt.getDate() - 1), Jt(St) === Jt(de) ? "Yesterday" : St.toLocaleDateString();
|
|
8688
8688
|
}, U = ((Tt = t.sort) == null ? void 0 : Tt.field) || N ? [...m].sort((nt, St) => {
|
|
8689
8689
|
var Jt;
|
|
8690
|
-
const
|
|
8691
|
-
return ((Jt = t.sort) == null ? void 0 : Jt.direction) === "asc" ? -
|
|
8692
|
-
}) : m, W = ((ut = t.clientFilter) == null ? void 0 : ut.searchKey) || "recordingSearchApplied", F = String(e.sceneData[W] || "").trim().toLowerCase(), q = Array.isArray((
|
|
8690
|
+
const dt = z(St) - z(nt);
|
|
8691
|
+
return ((Jt = t.sort) == null ? void 0 : Jt.direction) === "asc" ? -dt : dt;
|
|
8692
|
+
}) : m, W = ((ut = t.clientFilter) == null ? void 0 : ut.searchKey) || "recordingSearchApplied", F = String(e.sceneData[W] || "").trim().toLowerCase(), q = Array.isArray((ft = t.clientFilter) == null ? void 0 : ft.searchFields) ? t.clientFilter.searchFields : ["url", "title", "prompt"], [G, et] = String(
|
|
8693
8693
|
e.sceneData.recordingDateFilterApplied || ""
|
|
8694
8694
|
).split("|"), st = G ? Date.parse(`${G}T00:00:00`) : 0, H = et ? Date.parse(`${et}T23:59:59.999`) : Number.POSITIVE_INFINITY, ot = (Array.isArray(t.itemsFilter) ? t.itemsFilter : t.itemsFilter ? [t.itemsFilter] : []).map((nt) => {
|
|
8695
8695
|
if (!(nt != null && nt.field)) return null;
|
|
@@ -8698,32 +8698,32 @@ function jz(e, t, n) {
|
|
|
8698
8698
|
return St ? { field: nt.field, eq: St } : null;
|
|
8699
8699
|
}
|
|
8700
8700
|
if (nt.band !== void 0) {
|
|
8701
|
-
const
|
|
8702
|
-
return
|
|
8701
|
+
const dt = e.interpolateText(String(nt.band ?? "")).match(/^(-?\d*\.?\d*)\s*-\s*(-?\d*\.?\d*)$/);
|
|
8702
|
+
return dt ? {
|
|
8703
8703
|
field: nt.field,
|
|
8704
|
-
min:
|
|
8705
|
-
max:
|
|
8704
|
+
min: dt[1] === "" ? Number.NEGATIVE_INFINITY : Number(dt[1]),
|
|
8705
|
+
max: dt[2] === "" ? Number.POSITIVE_INFINITY : Number(dt[2])
|
|
8706
8706
|
} : null;
|
|
8707
8707
|
}
|
|
8708
8708
|
return null;
|
|
8709
8709
|
}).filter(Boolean), mt = (ot.length ? U.filter(
|
|
8710
8710
|
(nt) => ot.every((St) => {
|
|
8711
|
-
const
|
|
8712
|
-
if (St.eq !== void 0) return String(
|
|
8713
|
-
const Jt = Number(
|
|
8711
|
+
const dt = nt == null ? void 0 : nt[St.field];
|
|
8712
|
+
if (St.eq !== void 0) return String(dt) === St.eq;
|
|
8713
|
+
const Jt = Number(dt);
|
|
8714
8714
|
return Number.isFinite(Jt) && Jt >= (St.min ?? Number.NEGATIVE_INFINITY) && Jt <= (St.max ?? Number.POSITIVE_INFINITY);
|
|
8715
8715
|
})
|
|
8716
8716
|
) : U).filter((nt) => {
|
|
8717
8717
|
const St = !F || q.some(
|
|
8718
8718
|
(Jt) => String((nt == null ? void 0 : nt[Jt]) ?? "").toLowerCase().includes(F)
|
|
8719
|
-
),
|
|
8720
|
-
return St &&
|
|
8719
|
+
), dt = z(nt);
|
|
8720
|
+
return St && dt >= st && dt <= H;
|
|
8721
8721
|
}), vt = {};
|
|
8722
8722
|
if (N)
|
|
8723
8723
|
for (const nt of mt)
|
|
8724
8724
|
(vt[Nt = D(z(nt))] || (vt[Nt] = [])).push(nt);
|
|
8725
8725
|
const yt = (nt, St) => {
|
|
8726
|
-
var
|
|
8726
|
+
var dt, Jt, de, Ce, ae, sn, We, Sn;
|
|
8727
8727
|
if (t.renderItem) {
|
|
8728
8728
|
const Xe = JSON.parse(JSON.stringify(t.renderItem)), Je = { ...nt };
|
|
8729
8729
|
if (t.labelField && t.labelMap) {
|
|
@@ -8741,20 +8741,20 @@ function jz(e, t, n) {
|
|
|
8741
8741
|
if (Zt.content) {
|
|
8742
8742
|
const te = Zt.content.match(/^\{\{(\w+)\}\}$/);
|
|
8743
8743
|
if (te) {
|
|
8744
|
-
const ze = te[1],
|
|
8745
|
-
Array.isArray(
|
|
8744
|
+
const ze = te[1], ge = nt[ze];
|
|
8745
|
+
Array.isArray(ge) && (dr[ze] = ge);
|
|
8746
8746
|
}
|
|
8747
8747
|
}
|
|
8748
8748
|
}
|
|
8749
8749
|
const rr = JSON.stringify(Xe).replace(
|
|
8750
8750
|
/\{\{([\w.]+)(?:\|(date|time|datetime|timeago|money|currency|names|join))?\s*(?:\|\|\s*(.+?))?\}\}/g,
|
|
8751
|
-
(Zt, te, ze,
|
|
8751
|
+
(Zt, te, ze, ge) => {
|
|
8752
8752
|
const oe = te.split(".").reduce(
|
|
8753
8753
|
(Ee, be) => Ee == null ? void 0 : Ee[be],
|
|
8754
8754
|
Je
|
|
8755
8755
|
);
|
|
8756
8756
|
if (oe == null)
|
|
8757
|
-
return
|
|
8757
|
+
return ge !== void 0 ? ge.replace(/^["']|["']$/g, "").replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\t/g, "\\t") : "";
|
|
8758
8758
|
if (ze === "names" || ze === "join")
|
|
8759
8759
|
return Array.isArray(oe) ? oe.map((Ee) => Ee && typeof Ee == "object" ? Ee.name : Ee).filter(Boolean).join(", ") : oe == null ? "" : String(oe);
|
|
8760
8760
|
if (Array.isArray(oe)) return Zt;
|
|
@@ -8791,8 +8791,8 @@ function jz(e, t, n) {
|
|
|
8791
8791
|
}
|
|
8792
8792
|
};
|
|
8793
8793
|
if (Or(Ve), Ve.children && (Ve.children = Ve.children.map((Zt) => {
|
|
8794
|
-
var
|
|
8795
|
-
const te = Zt.fieldType || "text", ze = (
|
|
8794
|
+
var ge;
|
|
8795
|
+
const te = Zt.fieldType || "text", ze = (ge = Zt.content) == null ? void 0 : ge.match(/^\{\{(\w+)\}\}$/);
|
|
8796
8796
|
if (ze) {
|
|
8797
8797
|
const oe = ze[1], Ee = dr[oe];
|
|
8798
8798
|
if (Ee)
|
|
@@ -8872,10 +8872,10 @@ function jz(e, t, n) {
|
|
|
8872
8872
|
className: Zt.className || "w-full h-32 rounded-lg object-cover"
|
|
8873
8873
|
} : Zt;
|
|
8874
8874
|
})), t.selectable && e.sceneData._selectMode) {
|
|
8875
|
-
const Zt = String(nt.id || St), te = Array.isArray(e.sceneData._selIds) && e.sceneData._selIds.map(String).includes(Zt), ze = (
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
...
|
|
8875
|
+
const Zt = String(nt.id || St), te = Array.isArray(e.sceneData._selIds) && e.sceneData._selIds.map(String).includes(Zt), ze = (ge) => ge ? [
|
|
8876
|
+
ge.text,
|
|
8877
|
+
ge.content,
|
|
8878
|
+
...ge.children ? ge.children.flatMap(ze) : []
|
|
8879
8879
|
].filter(
|
|
8880
8880
|
(oe) => typeof oe == "string" && oe.trim() && !oe.includes("{{")
|
|
8881
8881
|
) : [];
|
|
@@ -8883,13 +8883,13 @@ function jz(e, t, n) {
|
|
|
8883
8883
|
"div",
|
|
8884
8884
|
{
|
|
8885
8885
|
key: `${n}-item-${St}`,
|
|
8886
|
-
className: (
|
|
8886
|
+
className: (dt = t.selectionStyle) == null ? void 0 : dt.className,
|
|
8887
8887
|
style: {
|
|
8888
8888
|
position: "relative",
|
|
8889
8889
|
width: "100%",
|
|
8890
8890
|
textAlign: "left",
|
|
8891
8891
|
padding: "1rem 2rem",
|
|
8892
|
-
border: `1px solid ${te ? ((Jt = t.selectionStyle) == null ? void 0 : Jt.selectedBorderColor) || e.cfg.colors.accent || "#fff" : ((
|
|
8892
|
+
border: `1px solid ${te ? ((Jt = t.selectionStyle) == null ? void 0 : Jt.selectedBorderColor) || e.cfg.colors.accent || "#fff" : ((de = t.selectionStyle) == null ? void 0 : de.borderColor) || e.cfg.colors.border}`,
|
|
8893
8893
|
borderRadius: ((Ce = t.selectionStyle) == null ? void 0 : Ce.borderRadius) || e.cfg.components.inputRadius || "8px",
|
|
8894
8894
|
marginBottom: "0.5rem",
|
|
8895
8895
|
backgroundColor: te ? ((ae = t.selectionStyle) == null ? void 0 : ae.selectedBackgroundColor) || e.cfg.colors.surface : "transparent",
|
|
@@ -8918,10 +8918,10 @@ function jz(e, t, n) {
|
|
|
8918
8918
|
type: "button",
|
|
8919
8919
|
"aria-label": te ? "Deselect item" : "Select item",
|
|
8920
8920
|
onClick: () => {
|
|
8921
|
-
e.setSceneData((
|
|
8922
|
-
const oe = Array.isArray(
|
|
8921
|
+
e.setSceneData((ge) => {
|
|
8922
|
+
const oe = Array.isArray(ge._selIds) ? ge._selIds.map(String) : [];
|
|
8923
8923
|
return {
|
|
8924
|
-
...
|
|
8924
|
+
...ge,
|
|
8925
8925
|
_selIds: oe.includes(Zt) ? oe.filter((Ee) => Ee !== Zt) : [...oe, Zt]
|
|
8926
8926
|
};
|
|
8927
8927
|
});
|
|
@@ -8965,10 +8965,10 @@ function jz(e, t, n) {
|
|
|
8965
8965
|
return null;
|
|
8966
8966
|
};
|
|
8967
8967
|
return N ? Object.entries(vt).map(
|
|
8968
|
-
([nt, St],
|
|
8968
|
+
([nt, St], dt) => V(
|
|
8969
8969
|
"div",
|
|
8970
8970
|
{
|
|
8971
|
-
key: `${n}-group-${
|
|
8971
|
+
key: `${n}-group-${dt}`,
|
|
8972
8972
|
style: {
|
|
8973
8973
|
display: "flex",
|
|
8974
8974
|
flexDirection: "column",
|
|
@@ -8978,7 +8978,7 @@ function jz(e, t, n) {
|
|
|
8978
8978
|
V(
|
|
8979
8979
|
"div",
|
|
8980
8980
|
{
|
|
8981
|
-
key: `${n}-group-hdr-${
|
|
8981
|
+
key: `${n}-group-hdr-${dt}`,
|
|
8982
8982
|
style: {
|
|
8983
8983
|
fontSize: "11px",
|
|
8984
8984
|
fontWeight: 600,
|
|
@@ -16250,7 +16250,7 @@ function LO(e) {
|
|
|
16250
16250
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
16251
16251
|
return r;
|
|
16252
16252
|
}
|
|
16253
|
-
function
|
|
16253
|
+
function me() {
|
|
16254
16254
|
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = LO(e)) && (r && (r += " "), r += t);
|
|
16255
16255
|
return r;
|
|
16256
16256
|
}
|
|
@@ -16665,28 +16665,28 @@ function F6() {
|
|
|
16665
16665
|
return J1 || (J1 = 1, process.env.NODE_ENV !== "production" && function() {
|
|
16666
16666
|
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), s = Symbol.for("react.context"), a = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), x = !1, m = !1, v = !1, _ = !1, S = !1, A;
|
|
16667
16667
|
A = Symbol.for("react.module.reference");
|
|
16668
|
-
function T(
|
|
16669
|
-
return !!(typeof
|
|
16668
|
+
function T(dt) {
|
|
16669
|
+
return !!(typeof dt == "string" || typeof dt == "function" || dt === n || dt === i || S || dt === r || dt === h || dt === u || _ || dt === g || x || m || v || typeof dt == "object" && dt !== null && (dt.$$typeof === p || dt.$$typeof === f || dt.$$typeof === o || dt.$$typeof === s || dt.$$typeof === c || // This needs to include all possible module reference object
|
|
16670
16670
|
// types supported by any Flight configuration anywhere since
|
|
16671
16671
|
// we don't know which Flight build this will end up being used
|
|
16672
16672
|
// with.
|
|
16673
|
-
|
|
16673
|
+
dt.$$typeof === A || dt.getModuleId !== void 0));
|
|
16674
16674
|
}
|
|
16675
|
-
function w(
|
|
16676
|
-
if (typeof
|
|
16677
|
-
var Jt =
|
|
16675
|
+
function w(dt) {
|
|
16676
|
+
if (typeof dt == "object" && dt !== null) {
|
|
16677
|
+
var Jt = dt.$$typeof;
|
|
16678
16678
|
switch (Jt) {
|
|
16679
16679
|
case e:
|
|
16680
|
-
var
|
|
16681
|
-
switch (
|
|
16680
|
+
var de = dt.type;
|
|
16681
|
+
switch (de) {
|
|
16682
16682
|
case n:
|
|
16683
16683
|
case i:
|
|
16684
16684
|
case r:
|
|
16685
16685
|
case h:
|
|
16686
16686
|
case u:
|
|
16687
|
-
return
|
|
16687
|
+
return de;
|
|
16688
16688
|
default:
|
|
16689
|
-
var Ce =
|
|
16689
|
+
var Ce = de && de.$$typeof;
|
|
16690
16690
|
switch (Ce) {
|
|
16691
16691
|
case a:
|
|
16692
16692
|
case s:
|
|
@@ -16705,49 +16705,49 @@ function F6() {
|
|
|
16705
16705
|
}
|
|
16706
16706
|
}
|
|
16707
16707
|
var E = s, k = o, I = e, N = c, z = n, D = p, R = f, U = t, W = i, F = r, q = h, G = u, et = !1, st = !1;
|
|
16708
|
-
function H(
|
|
16708
|
+
function H(dt) {
|
|
16709
16709
|
return et || (et = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
16710
16710
|
}
|
|
16711
|
-
function J(
|
|
16711
|
+
function J(dt) {
|
|
16712
16712
|
return st || (st = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
16713
16713
|
}
|
|
16714
|
-
function ot(
|
|
16715
|
-
return w(
|
|
16714
|
+
function ot(dt) {
|
|
16715
|
+
return w(dt) === s;
|
|
16716
16716
|
}
|
|
16717
|
-
function ct(
|
|
16718
|
-
return w(
|
|
16717
|
+
function ct(dt) {
|
|
16718
|
+
return w(dt) === o;
|
|
16719
16719
|
}
|
|
16720
|
-
function mt(
|
|
16721
|
-
return typeof
|
|
16720
|
+
function mt(dt) {
|
|
16721
|
+
return typeof dt == "object" && dt !== null && dt.$$typeof === e;
|
|
16722
16722
|
}
|
|
16723
|
-
function vt(
|
|
16724
|
-
return w(
|
|
16723
|
+
function vt(dt) {
|
|
16724
|
+
return w(dt) === c;
|
|
16725
16725
|
}
|
|
16726
|
-
function yt(
|
|
16727
|
-
return w(
|
|
16726
|
+
function yt(dt) {
|
|
16727
|
+
return w(dt) === n;
|
|
16728
16728
|
}
|
|
16729
|
-
function $t(
|
|
16730
|
-
return w(
|
|
16729
|
+
function $t(dt) {
|
|
16730
|
+
return w(dt) === p;
|
|
16731
16731
|
}
|
|
16732
|
-
function Tt(
|
|
16733
|
-
return w(
|
|
16732
|
+
function Tt(dt) {
|
|
16733
|
+
return w(dt) === f;
|
|
16734
16734
|
}
|
|
16735
|
-
function ut(
|
|
16736
|
-
return w(
|
|
16735
|
+
function ut(dt) {
|
|
16736
|
+
return w(dt) === t;
|
|
16737
16737
|
}
|
|
16738
|
-
function
|
|
16739
|
-
return w(
|
|
16738
|
+
function ft(dt) {
|
|
16739
|
+
return w(dt) === i;
|
|
16740
16740
|
}
|
|
16741
|
-
function Nt(
|
|
16742
|
-
return w(
|
|
16741
|
+
function Nt(dt) {
|
|
16742
|
+
return w(dt) === r;
|
|
16743
16743
|
}
|
|
16744
|
-
function nt(
|
|
16745
|
-
return w(
|
|
16744
|
+
function nt(dt) {
|
|
16745
|
+
return w(dt) === h;
|
|
16746
16746
|
}
|
|
16747
|
-
function St(
|
|
16748
|
-
return w(
|
|
16747
|
+
function St(dt) {
|
|
16748
|
+
return w(dt) === u;
|
|
16749
16749
|
}
|
|
16750
|
-
Le.ContextConsumer = E, Le.ContextProvider = k, Le.Element = I, Le.ForwardRef = N, Le.Fragment = z, Le.Lazy = D, Le.Memo = R, Le.Portal = U, Le.Profiler = W, Le.StrictMode = F, Le.Suspense = q, Le.SuspenseList = G, Le.isAsyncMode = H, Le.isConcurrentMode = J, Le.isContextConsumer = ot, Le.isContextProvider = ct, Le.isElement = mt, Le.isForwardRef = vt, Le.isFragment = yt, Le.isLazy = $t, Le.isMemo = Tt, Le.isPortal = ut, Le.isProfiler =
|
|
16750
|
+
Le.ContextConsumer = E, Le.ContextProvider = k, Le.Element = I, Le.ForwardRef = N, Le.Fragment = z, Le.Lazy = D, Le.Memo = R, Le.Portal = U, Le.Profiler = W, Le.StrictMode = F, Le.Suspense = q, Le.SuspenseList = G, Le.isAsyncMode = H, Le.isConcurrentMode = J, Le.isContextConsumer = ot, Le.isContextProvider = ct, Le.isElement = mt, Le.isForwardRef = vt, Le.isFragment = yt, Le.isLazy = $t, Le.isMemo = Tt, Le.isPortal = ut, Le.isProfiler = ft, Le.isStrictMode = Nt, Le.isSuspense = nt, Le.isSuspenseList = St, Le.isValidElementType = T, Le.typeOf = w;
|
|
16751
16751
|
}()), Le;
|
|
16752
16752
|
}
|
|
16753
16753
|
process.env.NODE_ENV === "production" ? vv.exports = z6() : vv.exports = F6();
|
|
@@ -17354,7 +17354,7 @@ function Sv(e) {
|
|
|
17354
17354
|
height: r,
|
|
17355
17355
|
x: 0,
|
|
17356
17356
|
y: 0
|
|
17357
|
-
}, f =
|
|
17357
|
+
}, f = me("recharts-surface", o);
|
|
17358
17358
|
return /* @__PURE__ */ b.createElement("svg", _v({}, Gt(h, !0, "svg"), {
|
|
17359
17359
|
className: f,
|
|
17360
17360
|
width: n,
|
|
@@ -17395,7 +17395,7 @@ function b8(e, t) {
|
|
|
17395
17395
|
return n;
|
|
17396
17396
|
}
|
|
17397
17397
|
var Pe = /* @__PURE__ */ b.forwardRef(function(e, t) {
|
|
17398
|
-
var n = e.children, r = e.className, i = v8(e, y8), o =
|
|
17398
|
+
var n = e.children, r = e.className, i = v8(e, y8), o = me("recharts-layer", r);
|
|
17399
17399
|
return /* @__PURE__ */ b.createElement("g", Pv({
|
|
17400
17400
|
className: o
|
|
17401
17401
|
}, Gt(i, !0), {
|
|
@@ -18260,7 +18260,7 @@ var mM = {
|
|
|
18260
18260
|
return _();
|
|
18261
18261
|
}, f = h.className, p = h.cx, g = h.cy, x = Gt(h, !0);
|
|
18262
18262
|
return p === +p && g === +g && o === +o ? /* @__PURE__ */ b.createElement("path", kv({}, x, {
|
|
18263
|
-
className:
|
|
18263
|
+
className: me("recharts-symbols", f),
|
|
18264
18264
|
transform: "translate(".concat(p, ", ").concat(g, ")"),
|
|
18265
18265
|
d: u()
|
|
18266
18266
|
})) : null;
|
|
@@ -18454,7 +18454,7 @@ var pi = 32, mx = /* @__PURE__ */ function(e) {
|
|
|
18454
18454
|
marginRight: 4
|
|
18455
18455
|
};
|
|
18456
18456
|
return o.map(function(g, x) {
|
|
18457
|
-
var m = g.formatter || c, v =
|
|
18457
|
+
var m = g.formatter || c, v = me(Th(Th({
|
|
18458
18458
|
"recharts-legend-item": !0
|
|
18459
18459
|
}, "legend-item-".concat(x), !0), "inactive", g.inactive));
|
|
18460
18460
|
if (g.type === "none")
|
|
@@ -19602,7 +19602,7 @@ var AY = function(t) {
|
|
|
19602
19602
|
whiteSpace: "nowrap"
|
|
19603
19603
|
}, o), w = my({
|
|
19604
19604
|
margin: 0
|
|
19605
|
-
}, h), E = !ie(m), k = E ? m : "", I =
|
|
19605
|
+
}, h), E = !ie(m), k = E ? m : "", I = me("recharts-default-tooltip", g), N = me("recharts-tooltip-label", x);
|
|
19606
19606
|
E && v && u !== void 0 && u !== null && (k = v(m, u));
|
|
19607
19607
|
var z = S ? {
|
|
19608
19608
|
role: "status",
|
|
@@ -19646,7 +19646,7 @@ var Lu = "recharts-tooltip-wrapper", CY = {
|
|
|
19646
19646
|
};
|
|
19647
19647
|
function OY(e) {
|
|
19648
19648
|
var t = e.coordinate, n = e.translateX, r = e.translateY;
|
|
19649
|
-
return
|
|
19649
|
+
return me(Lu, md(md(md(md({}, "".concat(Lu, "-right"), At(n) && t && At(t.x) && n >= t.x), "".concat(Lu, "-left"), At(n) && t && At(t.x) && n < t.x), "".concat(Lu, "-bottom"), At(r) && t && At(t.y) && r >= t.y), "".concat(Lu, "-top"), At(r) && t && At(t.y) && r < t.y));
|
|
19650
19650
|
}
|
|
19651
19651
|
function HS(e) {
|
|
19652
19652
|
var t = e.allowEscapeViewBox, n = e.coordinate, r = e.key, i = e.offsetTopLeft, o = e.position, s = e.reverseDirection, a = e.tooltipDimension, c = e.viewBox, h = e.viewBoxDimension;
|
|
@@ -20321,7 +20321,7 @@ var Bm = /* @__PURE__ */ nl(function(e, t) {
|
|
|
20321
20321
|
}, [n, g, c, p, f, u, N, s]);
|
|
20322
20322
|
return /* @__PURE__ */ b.createElement("div", {
|
|
20323
20323
|
id: v ? "".concat(v) : void 0,
|
|
20324
|
-
className:
|
|
20324
|
+
className: me("recharts-responsive-container", _),
|
|
20325
20325
|
style: gd(gd({}, T), {}, {
|
|
20326
20326
|
width: s,
|
|
20327
20327
|
height: c,
|
|
@@ -20798,7 +20798,7 @@ var XM = /[ \f\n\r\t\v\u2028\u2029]+/, JM = function(t) {
|
|
|
20798
20798
|
return E && U.push("rotate(".concat(E, ", ").concat(z, ", ").concat(D, ")")), U.length && (N.transform = U.join(" ")), /* @__PURE__ */ b.createElement("text", Hv({}, Gt(N, !0), {
|
|
20799
20799
|
x: z,
|
|
20800
20800
|
y: D,
|
|
20801
|
-
className:
|
|
20801
|
+
className: me("recharts-text", k),
|
|
20802
20802
|
textAnchor: g,
|
|
20803
20803
|
fill: _.includes("url") ? dP : _
|
|
20804
20804
|
}), A.map(function(q, G) {
|
|
@@ -22347,65 +22347,65 @@ function kJ(e) {
|
|
|
22347
22347
|
"%": ZJ
|
|
22348
22348
|
};
|
|
22349
22349
|
A.x = E(n, A), A.X = E(r, A), A.c = E(t, A), T.x = E(n, T), T.X = E(r, T), T.c = E(t, T);
|
|
22350
|
-
function E(ut,
|
|
22350
|
+
function E(ut, ft) {
|
|
22351
22351
|
return function(Nt) {
|
|
22352
|
-
var nt = [], St = -1,
|
|
22352
|
+
var nt = [], St = -1, dt = 0, Jt = ut.length, de, Ce, ae;
|
|
22353
22353
|
for (Nt instanceof Date || (Nt = /* @__PURE__ */ new Date(+Nt)); ++St < Jt; )
|
|
22354
|
-
ut.charCodeAt(St) === 37 && (nt.push(ut.slice(
|
|
22355
|
-
return nt.push(ut.slice(
|
|
22354
|
+
ut.charCodeAt(St) === 37 && (nt.push(ut.slice(dt, St)), (Ce = FP[de = ut.charAt(++St)]) != null ? de = ut.charAt(++St) : Ce = de === "e" ? " " : "0", (ae = ft[de]) && (de = ae(Nt, Ce)), nt.push(de), dt = St + 1);
|
|
22355
|
+
return nt.push(ut.slice(dt, St)), nt.join("");
|
|
22356
22356
|
};
|
|
22357
22357
|
}
|
|
22358
|
-
function k(ut,
|
|
22358
|
+
function k(ut, ft) {
|
|
22359
22359
|
return function(Nt) {
|
|
22360
|
-
var nt = Du(1900, void 0, 1), St = I(nt, ut, Nt += "", 0),
|
|
22360
|
+
var nt = Du(1900, void 0, 1), St = I(nt, ut, Nt += "", 0), dt, Jt;
|
|
22361
22361
|
if (St != Nt.length) return null;
|
|
22362
22362
|
if ("Q" in nt) return new Date(nt.Q);
|
|
22363
22363
|
if ("s" in nt) return new Date(nt.s * 1e3 + ("L" in nt ? nt.L : 0));
|
|
22364
|
-
if (
|
|
22364
|
+
if (ft && !("Z" in nt) && (nt.Z = 0), "p" in nt && (nt.H = nt.H % 12 + nt.p * 12), nt.m === void 0 && (nt.m = "q" in nt ? nt.q : 0), "V" in nt) {
|
|
22365
22365
|
if (nt.V < 1 || nt.V > 53) return null;
|
|
22366
|
-
"w" in nt || (nt.w = 1), "Z" in nt ? (
|
|
22366
|
+
"w" in nt || (nt.w = 1), "Z" in nt ? (dt = Py(Du(nt.y, 0, 1)), Jt = dt.getUTCDay(), dt = Jt > 4 || Jt === 0 ? Sp.ceil(dt) : Sp(dt), dt = Fm.offset(dt, (nt.V - 1) * 7), nt.y = dt.getUTCFullYear(), nt.m = dt.getUTCMonth(), nt.d = dt.getUTCDate() + (nt.w + 6) % 7) : (dt = Sy(Du(nt.y, 0, 1)), Jt = dt.getDay(), dt = Jt > 4 || Jt === 0 ? _p.ceil(dt) : _p(dt), dt = _f.offset(dt, (nt.V - 1) * 7), nt.y = dt.getFullYear(), nt.m = dt.getMonth(), nt.d = dt.getDate() + (nt.w + 6) % 7);
|
|
22367
22367
|
} else ("W" in nt || "U" in nt) && ("w" in nt || (nt.w = "u" in nt ? nt.u % 7 : "W" in nt ? 1 : 0), Jt = "Z" in nt ? Py(Du(nt.y, 0, 1)).getUTCDay() : Sy(Du(nt.y, 0, 1)).getDay(), nt.m = 0, nt.d = "W" in nt ? (nt.w + 6) % 7 + nt.W * 7 - (Jt + 5) % 7 : nt.w + nt.U * 7 - (Jt + 6) % 7);
|
|
22368
22368
|
return "Z" in nt ? (nt.H += nt.Z / 100 | 0, nt.M += nt.Z % 100, Py(nt)) : Sy(nt);
|
|
22369
22369
|
};
|
|
22370
22370
|
}
|
|
22371
|
-
function I(ut,
|
|
22372
|
-
for (var St = 0,
|
|
22371
|
+
function I(ut, ft, Nt, nt) {
|
|
22372
|
+
for (var St = 0, dt = ft.length, Jt = Nt.length, de, Ce; St < dt; ) {
|
|
22373
22373
|
if (nt >= Jt) return -1;
|
|
22374
|
-
if (
|
|
22375
|
-
if (
|
|
22376
|
-
} else if (
|
|
22374
|
+
if (de = ft.charCodeAt(St++), de === 37) {
|
|
22375
|
+
if (de = ft.charAt(St++), Ce = w[de in FP ? ft.charAt(St++) : de], !Ce || (nt = Ce(ut, Nt, nt)) < 0) return -1;
|
|
22376
|
+
} else if (de != Nt.charCodeAt(nt++))
|
|
22377
22377
|
return -1;
|
|
22378
22378
|
}
|
|
22379
22379
|
return nt;
|
|
22380
22380
|
}
|
|
22381
|
-
function N(ut,
|
|
22382
|
-
var nt = h.exec(
|
|
22381
|
+
function N(ut, ft, Nt) {
|
|
22382
|
+
var nt = h.exec(ft.slice(Nt));
|
|
22383
22383
|
return nt ? (ut.p = u.get(nt[0].toLowerCase()), Nt + nt[0].length) : -1;
|
|
22384
22384
|
}
|
|
22385
|
-
function z(ut,
|
|
22386
|
-
var nt = g.exec(
|
|
22385
|
+
function z(ut, ft, Nt) {
|
|
22386
|
+
var nt = g.exec(ft.slice(Nt));
|
|
22387
22387
|
return nt ? (ut.w = x.get(nt[0].toLowerCase()), Nt + nt[0].length) : -1;
|
|
22388
22388
|
}
|
|
22389
|
-
function D(ut,
|
|
22390
|
-
var nt = f.exec(
|
|
22389
|
+
function D(ut, ft, Nt) {
|
|
22390
|
+
var nt = f.exec(ft.slice(Nt));
|
|
22391
22391
|
return nt ? (ut.w = p.get(nt[0].toLowerCase()), Nt + nt[0].length) : -1;
|
|
22392
22392
|
}
|
|
22393
|
-
function R(ut,
|
|
22394
|
-
var nt = _.exec(
|
|
22393
|
+
function R(ut, ft, Nt) {
|
|
22394
|
+
var nt = _.exec(ft.slice(Nt));
|
|
22395
22395
|
return nt ? (ut.m = S.get(nt[0].toLowerCase()), Nt + nt[0].length) : -1;
|
|
22396
22396
|
}
|
|
22397
|
-
function U(ut,
|
|
22398
|
-
var nt = m.exec(
|
|
22397
|
+
function U(ut, ft, Nt) {
|
|
22398
|
+
var nt = m.exec(ft.slice(Nt));
|
|
22399
22399
|
return nt ? (ut.m = v.get(nt[0].toLowerCase()), Nt + nt[0].length) : -1;
|
|
22400
22400
|
}
|
|
22401
|
-
function W(ut,
|
|
22402
|
-
return I(ut, t,
|
|
22401
|
+
function W(ut, ft, Nt) {
|
|
22402
|
+
return I(ut, t, ft, Nt);
|
|
22403
22403
|
}
|
|
22404
|
-
function F(ut,
|
|
22405
|
-
return I(ut, n,
|
|
22404
|
+
function F(ut, ft, Nt) {
|
|
22405
|
+
return I(ut, n, ft, Nt);
|
|
22406
22406
|
}
|
|
22407
|
-
function q(ut,
|
|
22408
|
-
return I(ut, r,
|
|
22407
|
+
function q(ut, ft, Nt) {
|
|
22408
|
+
return I(ut, r, ft, Nt);
|
|
22409
22409
|
}
|
|
22410
22410
|
function G(ut) {
|
|
22411
22411
|
return s[ut.getDay()];
|
|
@@ -22445,28 +22445,28 @@ function kJ(e) {
|
|
|
22445
22445
|
}
|
|
22446
22446
|
return {
|
|
22447
22447
|
format: function(ut) {
|
|
22448
|
-
var
|
|
22449
|
-
return
|
|
22448
|
+
var ft = E(ut += "", A);
|
|
22449
|
+
return ft.toString = function() {
|
|
22450
22450
|
return ut;
|
|
22451
|
-
},
|
|
22451
|
+
}, ft;
|
|
22452
22452
|
},
|
|
22453
22453
|
parse: function(ut) {
|
|
22454
|
-
var
|
|
22455
|
-
return
|
|
22454
|
+
var ft = k(ut += "", !1);
|
|
22455
|
+
return ft.toString = function() {
|
|
22456
22456
|
return ut;
|
|
22457
|
-
},
|
|
22457
|
+
}, ft;
|
|
22458
22458
|
},
|
|
22459
22459
|
utcFormat: function(ut) {
|
|
22460
|
-
var
|
|
22461
|
-
return
|
|
22460
|
+
var ft = E(ut += "", T);
|
|
22461
|
+
return ft.toString = function() {
|
|
22462
22462
|
return ut;
|
|
22463
|
-
},
|
|
22463
|
+
}, ft;
|
|
22464
22464
|
},
|
|
22465
22465
|
utcParse: function(ut) {
|
|
22466
|
-
var
|
|
22467
|
-
return
|
|
22466
|
+
var ft = k(ut += "", !0);
|
|
22467
|
+
return ft.toString = function() {
|
|
22468
22468
|
return ut;
|
|
22469
|
-
},
|
|
22469
|
+
}, ft;
|
|
22470
22470
|
}
|
|
22471
22471
|
};
|
|
22472
22472
|
}
|
|
@@ -22984,12 +22984,12 @@ var hu = 1e9, ftt = {
|
|
|
22984
22984
|
// The natural logarithm of 10.
|
|
22985
22985
|
// 115 digits
|
|
22986
22986
|
LN10: "2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"
|
|
22987
|
-
}, Gx, fn = !0, wi = "[DecimalError] ", Va = wi + "Invalid argument: ", qx = wi + "Exponent out of range: ", fu = Math.floor, Oa = Math.pow, dtt = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, Jr, qn = 1e7, cn = 7, Ik = 9007199254740991, Pp = fu(Ik / cn),
|
|
22988
|
-
|
|
22987
|
+
}, Gx, fn = !0, wi = "[DecimalError] ", Va = wi + "Invalid argument: ", qx = wi + "Exponent out of range: ", fu = Math.floor, Oa = Math.pow, dtt = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, Jr, qn = 1e7, cn = 7, Ik = 9007199254740991, Pp = fu(Ik / cn), Wt = {};
|
|
22988
|
+
Wt.absoluteValue = Wt.abs = function() {
|
|
22989
22989
|
var e = new this.constructor(this);
|
|
22990
22990
|
return e.s && (e.s = 1), e;
|
|
22991
22991
|
};
|
|
22992
|
-
|
|
22992
|
+
Wt.comparedTo = Wt.cmp = function(e) {
|
|
22993
22993
|
var t, n, r, i, o = this;
|
|
22994
22994
|
if (e = new o.constructor(e), o.s !== e.s) return o.s || -e.s;
|
|
22995
22995
|
if (o.e !== e.e) return o.e > e.e ^ o.s < 0 ? 1 : -1;
|
|
@@ -22997,49 +22997,49 @@ Ft.comparedTo = Ft.cmp = function(e) {
|
|
|
22997
22997
|
if (o.d[t] !== e.d[t]) return o.d[t] > e.d[t] ^ o.s < 0 ? 1 : -1;
|
|
22998
22998
|
return r === i ? 0 : r > i ^ o.s < 0 ? 1 : -1;
|
|
22999
22999
|
};
|
|
23000
|
-
|
|
23000
|
+
Wt.decimalPlaces = Wt.dp = function() {
|
|
23001
23001
|
var e = this, t = e.d.length - 1, n = (t - e.e) * cn;
|
|
23002
23002
|
if (t = e.d[t], t) for (; t % 10 == 0; t /= 10) n--;
|
|
23003
23003
|
return n < 0 ? 0 : n;
|
|
23004
23004
|
};
|
|
23005
|
-
|
|
23005
|
+
Wt.dividedBy = Wt.div = function(e) {
|
|
23006
23006
|
return Fo(this, new this.constructor(e));
|
|
23007
23007
|
};
|
|
23008
|
-
|
|
23008
|
+
Wt.dividedToIntegerBy = Wt.idiv = function(e) {
|
|
23009
23009
|
var t = this, n = t.constructor;
|
|
23010
23010
|
return Ke(Fo(t, new n(e), 0, 1), n.precision);
|
|
23011
23011
|
};
|
|
23012
|
-
|
|
23012
|
+
Wt.equals = Wt.eq = function(e) {
|
|
23013
23013
|
return !this.cmp(e);
|
|
23014
23014
|
};
|
|
23015
|
-
|
|
23015
|
+
Wt.exponent = function() {
|
|
23016
23016
|
return On(this);
|
|
23017
23017
|
};
|
|
23018
|
-
|
|
23018
|
+
Wt.greaterThan = Wt.gt = function(e) {
|
|
23019
23019
|
return this.cmp(e) > 0;
|
|
23020
23020
|
};
|
|
23021
|
-
|
|
23021
|
+
Wt.greaterThanOrEqualTo = Wt.gte = function(e) {
|
|
23022
23022
|
return this.cmp(e) >= 0;
|
|
23023
23023
|
};
|
|
23024
|
-
|
|
23024
|
+
Wt.isInteger = Wt.isint = function() {
|
|
23025
23025
|
return this.e > this.d.length - 2;
|
|
23026
23026
|
};
|
|
23027
|
-
|
|
23027
|
+
Wt.isNegative = Wt.isneg = function() {
|
|
23028
23028
|
return this.s < 0;
|
|
23029
23029
|
};
|
|
23030
|
-
|
|
23030
|
+
Wt.isPositive = Wt.ispos = function() {
|
|
23031
23031
|
return this.s > 0;
|
|
23032
23032
|
};
|
|
23033
|
-
|
|
23033
|
+
Wt.isZero = function() {
|
|
23034
23034
|
return this.s === 0;
|
|
23035
23035
|
};
|
|
23036
|
-
|
|
23036
|
+
Wt.lessThan = Wt.lt = function(e) {
|
|
23037
23037
|
return this.cmp(e) < 0;
|
|
23038
23038
|
};
|
|
23039
|
-
|
|
23039
|
+
Wt.lessThanOrEqualTo = Wt.lte = function(e) {
|
|
23040
23040
|
return this.cmp(e) < 1;
|
|
23041
23041
|
};
|
|
23042
|
-
|
|
23042
|
+
Wt.logarithm = Wt.log = function(e) {
|
|
23043
23043
|
var t, n = this, r = n.constructor, i = r.precision, o = i + 5;
|
|
23044
23044
|
if (e === void 0)
|
|
23045
23045
|
e = new r(10);
|
|
@@ -23047,30 +23047,30 @@ Ft.logarithm = Ft.log = function(e) {
|
|
|
23047
23047
|
if (n.s < 1) throw Error(wi + (n.s ? "NaN" : "-Infinity"));
|
|
23048
23048
|
return n.eq(Jr) ? new r(0) : (fn = !1, t = Fo(jh(n, o), jh(e, o), o), fn = !0, Ke(t, i));
|
|
23049
23049
|
};
|
|
23050
|
-
|
|
23050
|
+
Wt.minus = Wt.sub = function(e) {
|
|
23051
23051
|
var t = this;
|
|
23052
23052
|
return e = new t.constructor(e), t.s == e.s ? Rk(t, e) : Nk(t, (e.s = -e.s, e));
|
|
23053
23053
|
};
|
|
23054
|
-
|
|
23054
|
+
Wt.modulo = Wt.mod = function(e) {
|
|
23055
23055
|
var t, n = this, r = n.constructor, i = r.precision;
|
|
23056
23056
|
if (e = new r(e), !e.s) throw Error(wi + "NaN");
|
|
23057
23057
|
return n.s ? (fn = !1, t = Fo(n, e, 0, 1).times(e), fn = !0, n.minus(t)) : Ke(new r(n), i);
|
|
23058
23058
|
};
|
|
23059
|
-
|
|
23059
|
+
Wt.naturalExponential = Wt.exp = function() {
|
|
23060
23060
|
return Lk(this);
|
|
23061
23061
|
};
|
|
23062
|
-
|
|
23062
|
+
Wt.naturalLogarithm = Wt.ln = function() {
|
|
23063
23063
|
return jh(this);
|
|
23064
23064
|
};
|
|
23065
|
-
|
|
23065
|
+
Wt.negated = Wt.neg = function() {
|
|
23066
23066
|
var e = new this.constructor(this);
|
|
23067
23067
|
return e.s = -e.s || 0, e;
|
|
23068
23068
|
};
|
|
23069
|
-
|
|
23069
|
+
Wt.plus = Wt.add = function(e) {
|
|
23070
23070
|
var t = this;
|
|
23071
23071
|
return e = new t.constructor(e), t.s == e.s ? Nk(t, e) : Rk(t, (e.s = -e.s, e));
|
|
23072
23072
|
};
|
|
23073
|
-
|
|
23073
|
+
Wt.precision = Wt.sd = function(e) {
|
|
23074
23074
|
var t, n, r, i = this;
|
|
23075
23075
|
if (e !== void 0 && e !== !!e && e !== 1 && e !== 0) throw Error(Va + e);
|
|
23076
23076
|
if (t = On(i) + 1, r = i.d.length - 1, n = r * cn + 1, r = i.d[r], r) {
|
|
@@ -23079,7 +23079,7 @@ Ft.precision = Ft.sd = function(e) {
|
|
|
23079
23079
|
}
|
|
23080
23080
|
return e && t > n ? t : n;
|
|
23081
23081
|
};
|
|
23082
|
-
|
|
23082
|
+
Wt.squareRoot = Wt.sqrt = function() {
|
|
23083
23083
|
var e, t, n, r, i, o, s, a = this, c = a.constructor;
|
|
23084
23084
|
if (a.s < 1) {
|
|
23085
23085
|
if (!a.s) return new c(0);
|
|
@@ -23098,7 +23098,7 @@ Ft.squareRoot = Ft.sqrt = function() {
|
|
|
23098
23098
|
}
|
|
23099
23099
|
return fn = !0, Ke(r, n);
|
|
23100
23100
|
};
|
|
23101
|
-
|
|
23101
|
+
Wt.times = Wt.mul = function(e) {
|
|
23102
23102
|
var t, n, r, i, o, s, a, c, h, u = this, f = u.constructor, p = u.d, g = (e = new f(e)).d;
|
|
23103
23103
|
if (!u.s || !e.s) return new f(0);
|
|
23104
23104
|
for (e.s *= u.s, n = u.e + e.e, c = p.length, h = g.length, c < h && (o = p, p = g, g = o, s = c, c = h, h = s), o = [], s = c + h, r = s; r--; ) o.push(0);
|
|
@@ -23110,26 +23110,26 @@ Ft.times = Ft.mul = function(e) {
|
|
|
23110
23110
|
for (; !o[--s]; ) o.pop();
|
|
23111
23111
|
return t ? ++n : o.shift(), e.d = o, e.e = n, fn ? Ke(e, f.precision) : e;
|
|
23112
23112
|
};
|
|
23113
|
-
|
|
23113
|
+
Wt.toDecimalPlaces = Wt.todp = function(e, t) {
|
|
23114
23114
|
var n = this, r = n.constructor;
|
|
23115
23115
|
return n = new r(n), e === void 0 ? n : (uo(e, 0, hu), t === void 0 ? t = r.rounding : uo(t, 0, 8), Ke(n, e + On(n) + 1, t));
|
|
23116
23116
|
};
|
|
23117
|
-
|
|
23117
|
+
Wt.toExponential = function(e, t) {
|
|
23118
23118
|
var n, r = this, i = r.constructor;
|
|
23119
23119
|
return e === void 0 ? n = tl(r, !0) : (uo(e, 0, hu), t === void 0 ? t = i.rounding : uo(t, 0, 8), r = Ke(new i(r), e + 1, t), n = tl(r, !0, e + 1)), n;
|
|
23120
23120
|
};
|
|
23121
|
-
|
|
23121
|
+
Wt.toFixed = function(e, t) {
|
|
23122
23122
|
var n, r, i = this, o = i.constructor;
|
|
23123
23123
|
return e === void 0 ? tl(i) : (uo(e, 0, hu), t === void 0 ? t = o.rounding : uo(t, 0, 8), r = Ke(new o(i), e + On(i) + 1, t), n = tl(r.abs(), !1, e + On(r) + 1), i.isneg() && !i.isZero() ? "-" + n : n);
|
|
23124
23124
|
};
|
|
23125
|
-
|
|
23125
|
+
Wt.toInteger = Wt.toint = function() {
|
|
23126
23126
|
var e = this, t = e.constructor;
|
|
23127
23127
|
return Ke(new t(e), On(e) + 1, t.rounding);
|
|
23128
23128
|
};
|
|
23129
|
-
|
|
23129
|
+
Wt.toNumber = function() {
|
|
23130
23130
|
return +this;
|
|
23131
23131
|
};
|
|
23132
|
-
|
|
23132
|
+
Wt.toPower = Wt.pow = function(e) {
|
|
23133
23133
|
var t, n, r, i, o, s, a = this, c = a.constructor, h = 12, u = +(e = new c(e));
|
|
23134
23134
|
if (!e.s) return new c(Jr);
|
|
23135
23135
|
if (a = new c(a), !a.s) {
|
|
@@ -23147,15 +23147,15 @@ Ft.toPower = Ft.pow = function(e) {
|
|
|
23147
23147
|
} else if (o < 0) throw Error(wi + "NaN");
|
|
23148
23148
|
return o = o < 0 && e.d[Math.max(t, n)] & 1 ? -1 : 1, a.s = 1, fn = !1, i = e.times(jh(a, r + h)), fn = !0, i = Lk(i), i.s = o, i;
|
|
23149
23149
|
};
|
|
23150
|
-
|
|
23150
|
+
Wt.toPrecision = function(e, t) {
|
|
23151
23151
|
var n, r, i = this, o = i.constructor;
|
|
23152
23152
|
return e === void 0 ? (n = On(i), r = tl(i, n <= o.toExpNeg || n >= o.toExpPos)) : (uo(e, 1, hu), t === void 0 ? t = o.rounding : uo(t, 0, 8), i = Ke(new o(i), e, t), n = On(i), r = tl(i, e <= n || n <= o.toExpNeg, e)), r;
|
|
23153
23153
|
};
|
|
23154
|
-
|
|
23154
|
+
Wt.toSignificantDigits = Wt.tosd = function(e, t) {
|
|
23155
23155
|
var n = this, r = n.constructor;
|
|
23156
23156
|
return e === void 0 ? (e = r.precision, t = r.rounding) : (uo(e, 1, hu), t === void 0 ? t = r.rounding : uo(t, 0, 8)), Ke(new r(n), e, t);
|
|
23157
23157
|
};
|
|
23158
|
-
|
|
23158
|
+
Wt.toString = Wt.valueOf = Wt.val = Wt.toJSON = Wt[Symbol.for("nodejs.util.inspect.custom")] = function() {
|
|
23159
23159
|
var e = this, t = On(e), n = e.constructor;
|
|
23160
23160
|
return tl(e, t <= n.toExpNeg || t >= n.toExpPos);
|
|
23161
23161
|
};
|
|
@@ -23383,7 +23383,7 @@ function Dk(e) {
|
|
|
23383
23383
|
if (o.charCodeAt(0) === 45 ? (o = o.slice(1), s.s = -1) : s.s = 1, dtt.test(o)) JP(s, o);
|
|
23384
23384
|
else throw Error(Va + o);
|
|
23385
23385
|
}
|
|
23386
|
-
if (i.prototype =
|
|
23386
|
+
if (i.prototype = Wt, i.ROUND_UP = 0, i.ROUND_DOWN = 1, i.ROUND_CEIL = 2, i.ROUND_FLOOR = 3, i.ROUND_HALF_UP = 4, i.ROUND_HALF_DOWN = 5, i.ROUND_HALF_EVEN = 6, i.ROUND_HALF_CEIL = 7, i.ROUND_HALF_FLOOR = 8, i.clone = Dk, i.config = i.set = ptt, e === void 0 && (e = {}), e)
|
|
23387
23387
|
for (r = ["precision", "rounding", "toExpNeg", "toExpPos", "LN10"], t = 0; t < r.length; ) e.hasOwnProperty(n = r[t++]) || (e[n] = this[n]);
|
|
23388
23388
|
return i.config(e), i;
|
|
23389
23389
|
}
|
|
@@ -24857,7 +24857,7 @@ var tnt = function(t) {
|
|
|
24857
24857
|
`).concat(E.x, ",").concat(E.y), I = ie(t.id) ? ll("recharts-radial-line-") : t.id;
|
|
24858
24858
|
return /* @__PURE__ */ b.createElement("text", Uh({}, r, {
|
|
24859
24859
|
dominantBaseline: "central",
|
|
24860
|
-
className:
|
|
24860
|
+
className: me("recharts-radial-bar-label", a)
|
|
24861
24861
|
}), /* @__PURE__ */ b.createElement("defs", null, /* @__PURE__ */ b.createElement("path", {
|
|
24862
24862
|
id: I,
|
|
24863
24863
|
d: k
|
|
@@ -25030,7 +25030,7 @@ function Zn(e) {
|
|
|
25030
25030
|
return nnt(i, g, m);
|
|
25031
25031
|
var v = x ? rnt(i) : int(i);
|
|
25032
25032
|
return /* @__PURE__ */ b.createElement(Ja, Uh({
|
|
25033
|
-
className:
|
|
25033
|
+
className: me("recharts-label", f)
|
|
25034
25034
|
}, m, v, {
|
|
25035
25035
|
breakAll: p
|
|
25036
25036
|
}), g);
|
|
@@ -25436,7 +25436,7 @@ var Cnt = function(t, n) {
|
|
|
25436
25436
|
var n = vA(vA({}, Mnt), t), r = n.cx, i = n.cy, o = n.innerRadius, s = n.outerRadius, a = n.cornerRadius, c = n.forceCornerRadius, h = n.cornerIsExternal, u = n.startAngle, f = n.endAngle, p = n.className;
|
|
25437
25437
|
if (s < o || u === f)
|
|
25438
25438
|
return null;
|
|
25439
|
-
var g =
|
|
25439
|
+
var g = me("recharts-sector", p), x = s - o, m = Pr(a, x, 0, !0), v;
|
|
25440
25440
|
return m > 0 && Math.abs(u - f) < 360 ? v = Ont({
|
|
25441
25441
|
cx: r,
|
|
25442
25442
|
cy: i,
|
|
@@ -25566,7 +25566,7 @@ var wA = {
|
|
|
25566
25566
|
return null;
|
|
25567
25567
|
var s = r && r.length ? Lnt(t) : i;
|
|
25568
25568
|
return /* @__PURE__ */ Er.createElement("path", ub({}, Gt(t, !1), Qd(t), {
|
|
25569
|
-
className:
|
|
25569
|
+
className: me("recharts-curve", n),
|
|
25570
25570
|
d: s,
|
|
25571
25571
|
ref: o
|
|
25572
25572
|
}));
|
|
@@ -25667,17 +25667,17 @@ function Dnt() {
|
|
|
25667
25667
|
var St = nt.$$typeof;
|
|
25668
25668
|
switch (St) {
|
|
25669
25669
|
case t:
|
|
25670
|
-
var
|
|
25671
|
-
switch (
|
|
25670
|
+
var dt = nt.type;
|
|
25671
|
+
switch (dt) {
|
|
25672
25672
|
case c:
|
|
25673
25673
|
case h:
|
|
25674
25674
|
case r:
|
|
25675
25675
|
case o:
|
|
25676
25676
|
case i:
|
|
25677
25677
|
case f:
|
|
25678
|
-
return
|
|
25678
|
+
return dt;
|
|
25679
25679
|
default:
|
|
25680
|
-
var Jt =
|
|
25680
|
+
var Jt = dt && dt.$$typeof;
|
|
25681
25681
|
switch (Jt) {
|
|
25682
25682
|
case a:
|
|
25683
25683
|
case u:
|
|
@@ -25728,13 +25728,13 @@ function Dnt() {
|
|
|
25728
25728
|
function ut(nt) {
|
|
25729
25729
|
return T(nt) === o;
|
|
25730
25730
|
}
|
|
25731
|
-
function
|
|
25731
|
+
function ft(nt) {
|
|
25732
25732
|
return T(nt) === i;
|
|
25733
25733
|
}
|
|
25734
25734
|
function Nt(nt) {
|
|
25735
25735
|
return T(nt) === f;
|
|
25736
25736
|
}
|
|
25737
|
-
De.AsyncMode = w, De.ConcurrentMode = E, De.ContextConsumer = k, De.ContextProvider = I, De.Element = N, De.ForwardRef = z, De.Fragment = D, De.Lazy = R, De.Memo = U, De.Portal = W, De.Profiler = F, De.StrictMode = q, De.Suspense = G, De.isAsyncMode = st, De.isConcurrentMode = H, De.isContextConsumer = J, De.isContextProvider = ot, De.isElement = ct, De.isForwardRef = mt, De.isFragment = vt, De.isLazy = yt, De.isMemo = $t, De.isPortal = Tt, De.isProfiler = ut, De.isStrictMode =
|
|
25737
|
+
De.AsyncMode = w, De.ConcurrentMode = E, De.ContextConsumer = k, De.ContextProvider = I, De.Element = N, De.ForwardRef = z, De.Fragment = D, De.Lazy = R, De.Memo = U, De.Portal = W, De.Profiler = F, De.StrictMode = q, De.Suspense = G, De.isAsyncMode = st, De.isConcurrentMode = H, De.isContextConsumer = J, De.isContextProvider = ot, De.isElement = ct, De.isForwardRef = mt, De.isFragment = vt, De.isLazy = yt, De.isMemo = $t, De.isPortal = Tt, De.isProfiler = ut, De.isStrictMode = ft, De.isSuspense = Nt, De.isValidElementType = A, De.typeOf = T;
|
|
25738
25738
|
}()), De;
|
|
25739
25739
|
}
|
|
25740
25740
|
var PA;
|
|
@@ -25907,8 +25907,8 @@ function znt() {
|
|
|
25907
25907
|
function v(H) {
|
|
25908
25908
|
if (process.env.NODE_ENV !== "production")
|
|
25909
25909
|
var J = {}, ot = 0;
|
|
25910
|
-
function ct(vt, yt, $t, Tt, ut,
|
|
25911
|
-
if (Tt = Tt || p,
|
|
25910
|
+
function ct(vt, yt, $t, Tt, ut, ft, Nt) {
|
|
25911
|
+
if (Tt = Tt || p, ft = ft || $t, Nt !== n) {
|
|
25912
25912
|
if (c) {
|
|
25913
25913
|
var nt = new Error(
|
|
25914
25914
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -25918,11 +25918,11 @@ function znt() {
|
|
|
25918
25918
|
var St = Tt + ":" + $t;
|
|
25919
25919
|
!J[St] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
25920
25920
|
ot < 3 && (o(
|
|
25921
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
25921
|
+
"You are manually calling a React.PropTypes validation function for the `" + ft + "` prop on `" + Tt + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
25922
25922
|
), J[St] = !0, ot++);
|
|
25923
25923
|
}
|
|
25924
25924
|
}
|
|
25925
|
-
return yt[$t] == null ? vt ? yt[$t] === null ? new m("The " + ut + " `" +
|
|
25925
|
+
return yt[$t] == null ? vt ? yt[$t] === null ? new m("The " + ut + " `" + ft + "` is marked as required " + ("in `" + Tt + "`, but its value is `null`.")) : new m("The " + ut + " `" + ft + "` is marked as required in " + ("`" + Tt + "`, but its value is `undefined`.")) : null : H(yt, $t, Tt, ut, ft);
|
|
25926
25926
|
}
|
|
25927
25927
|
var mt = ct.bind(null, !1);
|
|
25928
25928
|
return mt.isRequired = ct.bind(null, !0), mt;
|
|
@@ -25931,9 +25931,9 @@ function znt() {
|
|
|
25931
25931
|
function J(ot, ct, mt, vt, yt, $t) {
|
|
25932
25932
|
var Tt = ot[ct], ut = q(Tt);
|
|
25933
25933
|
if (ut !== H) {
|
|
25934
|
-
var
|
|
25934
|
+
var ft = G(Tt);
|
|
25935
25935
|
return new m(
|
|
25936
|
-
"Invalid " + vt + " `" + yt + "` of type " + ("`" +
|
|
25936
|
+
"Invalid " + vt + " `" + yt + "` of type " + ("`" + ft + "` supplied to `" + mt + "`, expected ") + ("`" + H + "`."),
|
|
25937
25937
|
{ expectedType: H }
|
|
25938
25938
|
);
|
|
25939
25939
|
}
|
|
@@ -25954,9 +25954,9 @@ function znt() {
|
|
|
25954
25954
|
return new m("Invalid " + vt + " `" + yt + "` of type " + ("`" + Tt + "` supplied to `" + mt + "`, expected an array."));
|
|
25955
25955
|
}
|
|
25956
25956
|
for (var ut = 0; ut < $t.length; ut++) {
|
|
25957
|
-
var
|
|
25958
|
-
if (
|
|
25959
|
-
return
|
|
25957
|
+
var ft = H($t, ut, mt, vt, yt + "[" + ut + "]", n);
|
|
25958
|
+
if (ft instanceof Error)
|
|
25959
|
+
return ft;
|
|
25960
25960
|
}
|
|
25961
25961
|
return null;
|
|
25962
25962
|
}
|
|
@@ -26020,9 +26020,9 @@ function znt() {
|
|
|
26020
26020
|
return new m("Invalid " + vt + " `" + yt + "` of type " + ("`" + Tt + "` supplied to `" + mt + "`, expected an object."));
|
|
26021
26021
|
for (var ut in $t)
|
|
26022
26022
|
if (r($t, ut)) {
|
|
26023
|
-
var
|
|
26024
|
-
if (
|
|
26025
|
-
return
|
|
26023
|
+
var ft = H($t, ut, mt, vt, yt + "." + ut, n);
|
|
26024
|
+
if (ft instanceof Error)
|
|
26025
|
+
return ft;
|
|
26026
26026
|
}
|
|
26027
26027
|
return null;
|
|
26028
26028
|
}
|
|
@@ -26039,8 +26039,8 @@ function znt() {
|
|
|
26039
26039
|
), s;
|
|
26040
26040
|
}
|
|
26041
26041
|
function ct(mt, vt, yt, $t, Tt) {
|
|
26042
|
-
for (var ut = [],
|
|
26043
|
-
var Nt = H[
|
|
26042
|
+
for (var ut = [], ft = 0; ft < H.length; ft++) {
|
|
26043
|
+
var Nt = H[ft], nt = Nt(mt, vt, yt, $t, Tt, n);
|
|
26044
26044
|
if (nt == null)
|
|
26045
26045
|
return null;
|
|
26046
26046
|
nt.data && r(nt.data, "expectedType") && ut.push(nt.data.expectedType);
|
|
@@ -26067,10 +26067,10 @@ function znt() {
|
|
|
26067
26067
|
if (Tt !== "object")
|
|
26068
26068
|
return new m("Invalid " + vt + " `" + yt + "` of type `" + Tt + "` " + ("supplied to `" + mt + "`, expected `object`."));
|
|
26069
26069
|
for (var ut in H) {
|
|
26070
|
-
var
|
|
26071
|
-
if (typeof
|
|
26072
|
-
return D(mt, vt, yt, ut, G(
|
|
26073
|
-
var Nt =
|
|
26070
|
+
var ft = H[ut];
|
|
26071
|
+
if (typeof ft != "function")
|
|
26072
|
+
return D(mt, vt, yt, ut, G(ft));
|
|
26073
|
+
var Nt = ft($t, ut, mt, vt, yt + "." + ut, n);
|
|
26074
26074
|
if (Nt)
|
|
26075
26075
|
return Nt;
|
|
26076
26076
|
}
|
|
@@ -26084,16 +26084,16 @@ function znt() {
|
|
|
26084
26084
|
if (Tt !== "object")
|
|
26085
26085
|
return new m("Invalid " + vt + " `" + yt + "` of type `" + Tt + "` " + ("supplied to `" + mt + "`, expected `object`."));
|
|
26086
26086
|
var ut = t({}, ot[ct], H);
|
|
26087
|
-
for (var
|
|
26088
|
-
var Nt = H[
|
|
26089
|
-
if (r(H,
|
|
26090
|
-
return D(mt, vt, yt,
|
|
26087
|
+
for (var ft in ut) {
|
|
26088
|
+
var Nt = H[ft];
|
|
26089
|
+
if (r(H, ft) && typeof Nt != "function")
|
|
26090
|
+
return D(mt, vt, yt, ft, G(Nt));
|
|
26091
26091
|
if (!Nt)
|
|
26092
26092
|
return new m(
|
|
26093
|
-
"Invalid " + vt + " `" + yt + "` key `" +
|
|
26093
|
+
"Invalid " + vt + " `" + yt + "` key `" + ft + "` supplied to `" + mt + "`.\nBad object: " + JSON.stringify(ot[ct], null, " ") + `
|
|
26094
26094
|
Valid keys: ` + JSON.stringify(Object.keys(H), null, " ")
|
|
26095
26095
|
);
|
|
26096
|
-
var nt = Nt($t,
|
|
26096
|
+
var nt = Nt($t, ft, mt, vt, yt + "." + ft, n);
|
|
26097
26097
|
if (nt)
|
|
26098
26098
|
return nt;
|
|
26099
26099
|
}
|
|
@@ -27538,7 +27538,7 @@ var JA = function(t, n, r, i, o) {
|
|
|
27538
27538
|
var c = n.x, h = n.y, u = n.width, f = n.height, p = n.radius, g = n.className, x = n.animationEasing, m = n.animationDuration, v = n.animationBegin, _ = n.isAnimationActive, S = n.isUpdateAnimationActive;
|
|
27539
27539
|
if (c !== +c || h !== +h || u !== +u || f !== +f || u === 0 || f === 0)
|
|
27540
27540
|
return null;
|
|
27541
|
-
var A =
|
|
27541
|
+
var A = me("recharts-rectangle", g);
|
|
27542
27542
|
return S ? /* @__PURE__ */ b.createElement(ji, {
|
|
27543
27543
|
canBegin: s > 0,
|
|
27544
27544
|
from: {
|
|
@@ -27658,7 +27658,7 @@ var tE = function(t) {
|
|
|
27658
27658
|
var n = t.points, r = t.className, i = t.baseLinePoints, o = t.connectNulls, s = Rit(t, Lit);
|
|
27659
27659
|
if (!n || !n.length)
|
|
27660
27660
|
return null;
|
|
27661
|
-
var a =
|
|
27661
|
+
var a = me("recharts-polygon", r);
|
|
27662
27662
|
if (i && i.length) {
|
|
27663
27663
|
var c = s.stroke && s.stroke !== "none", h = Vit(n, i, o);
|
|
27664
27664
|
return /* @__PURE__ */ b.createElement("g", {
|
|
@@ -27693,7 +27693,7 @@ function _b() {
|
|
|
27693
27693
|
}, _b.apply(this, arguments);
|
|
27694
27694
|
}
|
|
27695
27695
|
var Km = function(t) {
|
|
27696
|
-
var n = t.cx, r = t.cy, i = t.r, o = t.className, s =
|
|
27696
|
+
var n = t.cx, r = t.cy, i = t.r, o = t.className, s = me("recharts-dot", o);
|
|
27697
27697
|
return n === +n && r === +r && i === +i ? /* @__PURE__ */ Er.createElement("circle", _b({}, Gt(t, !1), Qd(t), {
|
|
27698
27698
|
className: s,
|
|
27699
27699
|
cx: n,
|
|
@@ -27790,7 +27790,7 @@ var Jit = function(t, n, r, i, o, s) {
|
|
|
27790
27790
|
height: g
|
|
27791
27791
|
}, m);
|
|
27792
27792
|
return !At(r) || !At(o) || !At(f) || !At(g) || !At(a) || !At(h) ? null : /* @__PURE__ */ b.createElement("path", Sb({}, Gt(v, !0), {
|
|
27793
|
-
className:
|
|
27793
|
+
className: me("recharts-cross", x),
|
|
27794
27794
|
d: Jit(r, o, f, g, a, h)
|
|
27795
27795
|
}));
|
|
27796
27796
|
}, tot = qm, eot = kk, not = fo;
|
|
@@ -28019,7 +28019,7 @@ var Jm = /* @__PURE__ */ function(e) {
|
|
|
28019
28019
|
payload: m
|
|
28020
28020
|
});
|
|
28021
28021
|
return /* @__PURE__ */ b.createElement(Pe, ph({
|
|
28022
|
-
className:
|
|
28022
|
+
className: me("recharts-polar-radius-axis-tick", s$(s)),
|
|
28023
28023
|
key: "tick-".concat(m.coordinate)
|
|
28024
28024
|
}, Fs(r.props, m, v)), t.renderTickItem(s, S, c ? c(m.value, v) : m.value));
|
|
28025
28025
|
});
|
|
@@ -28032,7 +28032,7 @@ var Jm = /* @__PURE__ */ function(e) {
|
|
|
28032
28032
|
value: function() {
|
|
28033
28033
|
var r = this.props, i = r.ticks, o = r.axisLine, s = r.tick;
|
|
28034
28034
|
return !i || !i.length ? null : /* @__PURE__ */ b.createElement(Pe, {
|
|
28035
|
-
className:
|
|
28035
|
+
className: me("recharts-polar-radius-axis", this.props.className)
|
|
28036
28036
|
}, o && this.renderAxisLine(), s && this.renderTicks(), Zn.renderCallByParent(this.props, this.getViewBox()));
|
|
28037
28037
|
}
|
|
28038
28038
|
}], [{
|
|
@@ -28247,7 +28247,7 @@ var Oot = Math.PI / 180, aE = 1e-5, tg = /* @__PURE__ */ function(e) {
|
|
|
28247
28247
|
y: v.y2
|
|
28248
28248
|
});
|
|
28249
28249
|
return /* @__PURE__ */ b.createElement(Pe, ka({
|
|
28250
|
-
className:
|
|
28250
|
+
className: me("recharts-polar-angle-axis-tick", s$(s)),
|
|
28251
28251
|
key: "tick-".concat(x.coordinate)
|
|
28252
28252
|
}, Fs(r.props, x, m)), a && /* @__PURE__ */ b.createElement("line", ka({
|
|
28253
28253
|
className: "recharts-polar-angle-axis-tick-line"
|
|
@@ -28262,7 +28262,7 @@ var Oot = Math.PI / 180, aE = 1e-5, tg = /* @__PURE__ */ function(e) {
|
|
|
28262
28262
|
value: function() {
|
|
28263
28263
|
var r = this.props, i = r.ticks, o = r.radius, s = r.axisLine;
|
|
28264
28264
|
return o <= 0 || !i || !i.length ? null : /* @__PURE__ */ b.createElement(Pe, {
|
|
28265
|
-
className:
|
|
28265
|
+
className: me("recharts-polar-angle-axis", this.props.className)
|
|
28266
28266
|
}, s && this.renderAxisLine(), this.renderTicks());
|
|
28267
28267
|
}
|
|
28268
28268
|
}], [{
|
|
@@ -28432,7 +28432,7 @@ var hE = function(t, n, r, i, o) {
|
|
|
28432
28432
|
var c = n.x, h = n.y, u = n.upperWidth, f = n.lowerWidth, p = n.height, g = n.className, x = n.animationEasing, m = n.animationDuration, v = n.animationBegin, _ = n.isUpdateAnimationActive;
|
|
28433
28433
|
if (c !== +c || h !== +h || u !== +u || f !== +f || p !== +p || u === 0 && f === 0 || p === 0)
|
|
28434
28434
|
return null;
|
|
28435
|
-
var S =
|
|
28435
|
+
var S = me("recharts-trapezoid", g);
|
|
28436
28436
|
return _ ? /* @__PURE__ */ b.createElement(ji, {
|
|
28437
28437
|
canBegin: s > 0,
|
|
28438
28438
|
from: {
|
|
@@ -28918,7 +28918,7 @@ var Qo = /* @__PURE__ */ function(e) {
|
|
|
28918
28918
|
var r = this, i = this.props, o = i.hide, s = i.sectors, a = i.className, c = i.label, h = i.cx, u = i.cy, f = i.innerRadius, p = i.outerRadius, g = i.isAnimationActive, x = this.state.isAnimationFinished;
|
|
28919
28919
|
if (o || !s || !s.length || !At(h) || !At(u) || !At(f) || !At(p))
|
|
28920
28920
|
return null;
|
|
28921
|
-
var m =
|
|
28921
|
+
var m = me("recharts-pie", a);
|
|
28922
28922
|
return /* @__PURE__ */ b.createElement(Pe, {
|
|
28923
28923
|
tabIndex: this.props.rootTabIndex,
|
|
28924
28924
|
className: m,
|
|
@@ -28958,7 +28958,7 @@ var Qo = /* @__PURE__ */ function(e) {
|
|
|
28958
28958
|
return /* @__PURE__ */ b.cloneElement(r, i);
|
|
28959
28959
|
if (re(r))
|
|
28960
28960
|
return r(i);
|
|
28961
|
-
var s =
|
|
28961
|
+
var s = me("recharts-pie-label-line", typeof r != "boolean" ? r.className : "");
|
|
28962
28962
|
return /* @__PURE__ */ b.createElement(Ua, nc({}, i, {
|
|
28963
28963
|
key: o,
|
|
28964
28964
|
type: "linear",
|
|
@@ -28973,7 +28973,7 @@ var Qo = /* @__PURE__ */ function(e) {
|
|
|
28973
28973
|
var s = o;
|
|
28974
28974
|
if (re(r) && (s = r(i), /* @__PURE__ */ b.isValidElement(s)))
|
|
28975
28975
|
return s;
|
|
28976
|
-
var a =
|
|
28976
|
+
var a = me("recharts-pie-label-text", typeof r != "boolean" && !re(r) ? r.className : "");
|
|
28977
28977
|
return /* @__PURE__ */ b.createElement(Ja, nc({}, i, {
|
|
28978
28978
|
alignmentBaseline: "middle",
|
|
28979
28979
|
className: a
|
|
@@ -29525,7 +29525,7 @@ var tat = function(t) {
|
|
|
29525
29525
|
var r = this.props, i = r.data, o = r.className, s = r.children, a = r.x, c = r.y, h = r.width, u = r.height, f = r.alwaysShowText, p = this.state, g = p.startX, x = p.endX, m = p.isTextActive, v = p.isSlideMoving, _ = p.isTravellerMoving, S = p.isTravellerFocused;
|
|
29526
29526
|
if (!i || !i.length || !At(a) || !At(c) || !At(h) || !At(u) || h <= 0 || u <= 0)
|
|
29527
29527
|
return null;
|
|
29528
|
-
var A =
|
|
29528
|
+
var A = me("recharts-brush", o), T = b.Children.count(s) === 1, w = qst("userSelect", "none");
|
|
29529
29529
|
return /* @__PURE__ */ b.createElement(Pe, {
|
|
29530
29530
|
className: A,
|
|
29531
29531
|
onMouseLeave: this.handleLeaveWrapper,
|
|
@@ -30077,7 +30077,7 @@ var fl = /* @__PURE__ */ function(e) {
|
|
|
30077
30077
|
var r = this.props, i = r.hide, o = r.data, s = r.className, a = r.xAxis, c = r.yAxis, h = r.left, u = r.top, f = r.width, p = r.height, g = r.isAnimationActive, x = r.background, m = r.id;
|
|
30078
30078
|
if (i || !o || !o.length)
|
|
30079
30079
|
return null;
|
|
30080
|
-
var v = this.state.isAnimationFinished, _ =
|
|
30080
|
+
var v = this.state.isAnimationFinished, _ = me("recharts-bar", s), S = a && a.allowDataOverflow, A = c && c.allowDataOverflow, T = S || A, w = ie(m) ? this.id : m;
|
|
30081
30081
|
return /* @__PURE__ */ b.createElement(Pe, {
|
|
30082
30082
|
className: _
|
|
30083
30083
|
}, S || A ? /* @__PURE__ */ b.createElement("defs", null, /* @__PURE__ */ b.createElement("clipPath", {
|
|
@@ -30724,7 +30724,7 @@ function Wlt(e) {
|
|
|
30724
30724
|
y2: I
|
|
30725
30725
|
});
|
|
30726
30726
|
return /* @__PURE__ */ b.createElement(Pe, {
|
|
30727
|
-
className:
|
|
30727
|
+
className: me("recharts-reference-line", a)
|
|
30728
30728
|
}, zlt(s, z), Zn.renderCallByParent(e, Qat({
|
|
30729
30729
|
x1: T,
|
|
30730
30730
|
y1: w,
|
|
@@ -30895,7 +30895,7 @@ var Xlt = function(t) {
|
|
|
30895
30895
|
cy: g
|
|
30896
30896
|
});
|
|
30897
30897
|
return /* @__PURE__ */ b.createElement(Pe, {
|
|
30898
|
-
className:
|
|
30898
|
+
className: me("recharts-reference-dot", v)
|
|
30899
30899
|
}, t.renderDot(m, S), Zn.renderCallByParent(this.props, {
|
|
30900
30900
|
x: p - s,
|
|
30901
30901
|
y: g - s,
|
|
@@ -31073,7 +31073,7 @@ var sct = function(t, n, r, i, o) {
|
|
|
31073
31073
|
return null;
|
|
31074
31074
|
var _ = co(this.props, "hidden") ? "url(#".concat(u, ")") : void 0;
|
|
31075
31075
|
return /* @__PURE__ */ b.createElement(Pe, {
|
|
31076
|
-
className:
|
|
31076
|
+
className: me("recharts-reference-area", c)
|
|
31077
31077
|
}, t.renderRect(m, RE(RE({
|
|
31078
31078
|
clipPath: _
|
|
31079
31079
|
}, Gt(this.props, !0)), v)), Zn.renderCallByParent(this.props, v));
|
|
@@ -31529,7 +31529,7 @@ var du = /* @__PURE__ */ function(e) {
|
|
|
31529
31529
|
});
|
|
31530
31530
|
}
|
|
31531
31531
|
return /* @__PURE__ */ b.createElement("line", rc({}, f, {
|
|
31532
|
-
className:
|
|
31532
|
+
className: me("recharts-cartesian-axis-line", ti(u, "className"))
|
|
31533
31533
|
}));
|
|
31534
31534
|
}
|
|
31535
31535
|
}, {
|
|
@@ -31564,7 +31564,7 @@ var du = /* @__PURE__ */ function(e) {
|
|
|
31564
31564
|
className: "recharts-cartesian-axis-tick",
|
|
31565
31565
|
key: "tick-".concat(T.value, "-").concat(T.coordinate, "-").concat(T.tickCoord)
|
|
31566
31566
|
}, Fs(s.props, T, w)), c && /* @__PURE__ */ b.createElement("line", rc({}, S, k, {
|
|
31567
|
-
className:
|
|
31567
|
+
className: me("recharts-cartesian-axis-tick-line", ti(c, "className"))
|
|
31568
31568
|
})), u && t.renderTickItem(u, N, "".concat(re(f) ? f(T.value, w) : T.value).concat(p || "")));
|
|
31569
31569
|
});
|
|
31570
31570
|
return /* @__PURE__ */ b.createElement("g", {
|
|
@@ -31580,7 +31580,7 @@ var du = /* @__PURE__ */ function(e) {
|
|
|
31580
31580
|
return null;
|
|
31581
31581
|
var f = this.props, p = f.ticks, g = Dy(f, vct), x = p;
|
|
31582
31582
|
return re(c) && (x = p && p.length > 0 ? c(this.props) : c(g)), s <= 0 || a <= 0 || !x || !x.length ? null : /* @__PURE__ */ b.createElement(Pe, {
|
|
31583
|
-
className:
|
|
31583
|
+
className: me("recharts-cartesian-axis", h),
|
|
31584
31584
|
ref: function(v) {
|
|
31585
31585
|
r.layerReference = v;
|
|
31586
31586
|
}
|
|
@@ -31589,7 +31589,7 @@ var du = /* @__PURE__ */ function(e) {
|
|
|
31589
31589
|
}], [{
|
|
31590
31590
|
key: "renderTickItem",
|
|
31591
31591
|
value: function(r, i, o) {
|
|
31592
|
-
var s, a =
|
|
31592
|
+
var s, a = me(i.className, "recharts-cartesian-axis-tick-value");
|
|
31593
31593
|
return /* @__PURE__ */ b.isValidElement(r) ? s = /* @__PURE__ */ b.cloneElement(r, Nn(Nn({}, i), {}, {
|
|
31594
31594
|
className: a
|
|
31595
31595
|
})) : re(r) ? s = r(Nn(Nn({}, i), {}, {
|
|
@@ -32254,7 +32254,7 @@ var Ks = /* @__PURE__ */ function(e) {
|
|
|
32254
32254
|
var r, i = this.props, o = i.hide, s = i.dot, a = i.points, c = i.className, h = i.top, u = i.left, f = i.xAxis, p = i.yAxis, g = i.width, x = i.height, m = i.isAnimationActive, v = i.id;
|
|
32255
32255
|
if (o || !a || !a.length)
|
|
32256
32256
|
return null;
|
|
32257
|
-
var _ = this.state.isAnimationFinished, S = a.length === 1, A =
|
|
32257
|
+
var _ = this.state.isAnimationFinished, S = a.length === 1, A = me("recharts-area", c), T = f && f.allowDataOverflow, w = p && p.allowDataOverflow, E = T || w, k = ie(v) ? this.id : v, I = (r = Gt(s, !1)) !== null && r !== void 0 ? r : {
|
|
32258
32258
|
r: 3,
|
|
32259
32259
|
strokeWidth: 2
|
|
32260
32260
|
}, N = I.r, z = N === void 0 ? 3 : N, D = I.strokeWidth, R = D === void 0 ? 2 : D, U = u8(s) ? s : {}, W = U.clipDot, F = W === void 0 ? !0 : W, q = z * 2 + R;
|
|
@@ -32375,7 +32375,7 @@ ro(Ks, "renderDotItem", function(e, t) {
|
|
|
32375
32375
|
else if (re(e))
|
|
32376
32376
|
n = e(t);
|
|
32377
32377
|
else {
|
|
32378
|
-
var r =
|
|
32378
|
+
var r = me("recharts-area-dot", typeof e != "boolean" ? e.className : ""), i = t.key, o = n2(t, Fct);
|
|
32379
32379
|
n = /* @__PURE__ */ b.createElement(Km, ja({}, o, {
|
|
32380
32380
|
key: i,
|
|
32381
32381
|
className: r
|
|
@@ -32780,7 +32780,7 @@ var Af = /* @__PURE__ */ function(e) {
|
|
|
32780
32780
|
var r = this.props, i = r.hide, o = r.points, s = r.line, a = r.className, c = r.xAxis, h = r.yAxis, u = r.left, f = r.top, p = r.width, g = r.height, x = r.id, m = r.isAnimationActive;
|
|
32781
32781
|
if (i || !o || !o.length)
|
|
32782
32782
|
return null;
|
|
32783
|
-
var v = this.state.isAnimationFinished, _ =
|
|
32783
|
+
var v = this.state.isAnimationFinished, _ = me("recharts-scatter", a), S = c && c.allowDataOverflow, A = h && h.allowDataOverflow, T = S || A, w = ie(x) ? this.id : x;
|
|
32784
32784
|
return /* @__PURE__ */ b.createElement(Pe, {
|
|
32785
32785
|
className: _,
|
|
32786
32786
|
clipPath: T ? "url(#clipPath-".concat(w, ")") : null
|
|
@@ -32985,7 +32985,7 @@ function Sut(e) {
|
|
|
32985
32985
|
return i == null ? null : (
|
|
32986
32986
|
// @ts-expect-error the axisOptions type is not exactly what CartesianAxis is expecting.
|
|
32987
32987
|
/* @__PURE__ */ Er.createElement(du, Fb({}, i, {
|
|
32988
|
-
className:
|
|
32988
|
+
className: me("recharts-".concat(i.axisType, " ").concat(i.axisType), i.className),
|
|
32989
32989
|
viewBox: {
|
|
32990
32990
|
x: 0,
|
|
32991
32991
|
y: 0,
|
|
@@ -33122,7 +33122,7 @@ var $ut = function(t) {
|
|
|
33122
33122
|
return o == null ? null : (
|
|
33123
33123
|
// @ts-expect-error the axisOptions type is not exactly what CartesianAxis is expecting.
|
|
33124
33124
|
/* @__PURE__ */ Er.createElement(du, Vb({}, o, {
|
|
33125
|
-
className:
|
|
33125
|
+
className: me("recharts-".concat(o.axisType, " ").concat(o.axisType), o.className),
|
|
33126
33126
|
viewBox: {
|
|
33127
33127
|
x: 0,
|
|
33128
33128
|
y: 0,
|
|
@@ -33536,7 +33536,7 @@ function Kut(e) {
|
|
|
33536
33536
|
}, c), x), Gt(g, !1)), {}, {
|
|
33537
33537
|
payload: a,
|
|
33538
33538
|
payloadIndex: h,
|
|
33539
|
-
className:
|
|
33539
|
+
className: me("recharts-tooltip-cursor", g.className)
|
|
33540
33540
|
});
|
|
33541
33541
|
return /* @__PURE__ */ xi(g) ? /* @__PURE__ */ Dn(g, E) : /* @__PURE__ */ e0(m, E);
|
|
33542
33542
|
}
|
|
@@ -33696,7 +33696,7 @@ function KE(e, t) {
|
|
|
33696
33696
|
}
|
|
33697
33697
|
return n;
|
|
33698
33698
|
}
|
|
33699
|
-
function
|
|
33699
|
+
function pt(e) {
|
|
33700
33700
|
for (var t = 1; t < arguments.length; t++) {
|
|
33701
33701
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
33702
33702
|
t % 2 ? KE(Object(n), !0).forEach(function(r) {
|
|
@@ -33756,13 +33756,13 @@ var ght = function(t, n) {
|
|
|
33756
33756
|
};
|
|
33757
33757
|
if (t === "centric") {
|
|
33758
33758
|
var s = o.coordinate, a = i.radius;
|
|
33759
|
-
return
|
|
33759
|
+
return pt(pt(pt({}, i), on(i.cx, i.cy, a, s)), {}, {
|
|
33760
33760
|
angle: s,
|
|
33761
33761
|
radius: a
|
|
33762
33762
|
});
|
|
33763
33763
|
}
|
|
33764
33764
|
var c = o.coordinate, h = i.angle;
|
|
33765
|
-
return
|
|
33765
|
+
return pt(pt(pt({}, i), on(i.cx, i.cy, c, h)), {}, {
|
|
33766
33766
|
angle: h,
|
|
33767
33767
|
radius: c
|
|
33768
33768
|
});
|
|
@@ -33811,7 +33811,7 @@ var Zb = function(t, n, r, i) {
|
|
|
33811
33811
|
}, vht = function(t, n) {
|
|
33812
33812
|
var r = n.axes, i = n.graphicalItems, o = n.axisType, s = n.axisIdKey, a = n.stackGroups, c = n.dataStartIndex, h = n.dataEndIndex, u = t.layout, f = t.children, p = t.stackOffset, g = Xk(u, o);
|
|
33813
33813
|
return r.reduce(function(x, m) {
|
|
33814
|
-
var v, _ = m.type.defaultProps !== void 0 ?
|
|
33814
|
+
var v, _ = m.type.defaultProps !== void 0 ? pt(pt({}, m.type.defaultProps), m.props) : m.props, S = _.type, A = _.dataKey, T = _.allowDataOverflow, w = _.allowDuplicatedCategory, E = _.scale, k = _.ticks, I = _.includeHidden, N = _[s];
|
|
33815
33815
|
if (x[N])
|
|
33816
33816
|
return x;
|
|
33817
33817
|
var z = cg(t.data, {
|
|
@@ -33859,7 +33859,7 @@ var Zb = function(t, n, r, i) {
|
|
|
33859
33859
|
J && (R = H);
|
|
33860
33860
|
}
|
|
33861
33861
|
}
|
|
33862
|
-
return
|
|
33862
|
+
return pt(pt({}, x), {}, ee({}, N, pt(pt({}, _), {}, {
|
|
33863
33863
|
axisType: o,
|
|
33864
33864
|
domain: R,
|
|
33865
33865
|
categoricalDomain: W,
|
|
@@ -33876,14 +33876,14 @@ var Zb = function(t, n, r, i) {
|
|
|
33876
33876
|
dataEndIndex: h
|
|
33877
33877
|
}), g = p.length, x = Xk(u, o), m = -1;
|
|
33878
33878
|
return r.reduce(function(v, _) {
|
|
33879
|
-
var S = _.type.defaultProps !== void 0 ?
|
|
33879
|
+
var S = _.type.defaultProps !== void 0 ? pt(pt({}, _.type.defaultProps), _.props) : _.props, A = S[s], T = S2("number");
|
|
33880
33880
|
if (!v[A]) {
|
|
33881
33881
|
m++;
|
|
33882
33882
|
var w;
|
|
33883
33883
|
return x ? w = Vp(0, g) : a && a[A] && a[A].hasStack ? (w = n$(a[A].stackGroups, c, h), w = Hb(f, w, A, o)) : (w = sb(T, Kk(p, r.filter(function(E) {
|
|
33884
33884
|
var k, I, N = s in E.props ? E.props[s] : (k = E.type.defaultProps) === null || k === void 0 ? void 0 : k[s], z = "hide" in E.props ? E.props.hide : (I = E.type.defaultProps) === null || I === void 0 ? void 0 : I.hide;
|
|
33885
33885
|
return N === A && !z;
|
|
33886
|
-
}), "number", u), i.defaultProps.allowDataOverflow), w = Hb(f, w, A, o)),
|
|
33886
|
+
}), "number", u), i.defaultProps.allowDataOverflow), w = Hb(f, w, A, o)), pt(pt({}, v), {}, ee({}, A, pt(pt({
|
|
33887
33887
|
axisType: o
|
|
33888
33888
|
}, i.defaultProps), {}, {
|
|
33889
33889
|
hide: !0,
|
|
@@ -33959,20 +33959,20 @@ var Zb = function(t, n, r, i) {
|
|
|
33959
33959
|
}, Sht = function(t, n) {
|
|
33960
33960
|
var r = t.props, i = t.graphicalItems, o = t.xAxisMap, s = o === void 0 ? {} : o, a = t.yAxisMap, c = a === void 0 ? {} : a, h = r.width, u = r.height, f = r.children, p = r.margin || {}, g = Kr(f, Ic), x = Kr(f, Fa), m = Object.keys(c).reduce(function(w, E) {
|
|
33961
33961
|
var k = c[E], I = k.orientation;
|
|
33962
|
-
return !k.mirror && !k.hide ?
|
|
33962
|
+
return !k.mirror && !k.hide ? pt(pt({}, w), {}, ee({}, I, w[I] + k.width)) : w;
|
|
33963
33963
|
}, {
|
|
33964
33964
|
left: p.left || 0,
|
|
33965
33965
|
right: p.right || 0
|
|
33966
33966
|
}), v = Object.keys(s).reduce(function(w, E) {
|
|
33967
33967
|
var k = s[E], I = k.orientation;
|
|
33968
|
-
return !k.mirror && !k.hide ?
|
|
33968
|
+
return !k.mirror && !k.hide ? pt(pt({}, w), {}, ee({}, I, ti(w, "".concat(I)) + k.height)) : w;
|
|
33969
33969
|
}, {
|
|
33970
33970
|
top: p.top || 0,
|
|
33971
33971
|
bottom: p.bottom || 0
|
|
33972
|
-
}), _ =
|
|
33972
|
+
}), _ = pt(pt({}, v), m), S = _.bottom;
|
|
33973
33973
|
g && (_.bottom += g.props.height || Ic.defaultProps.height), x && n && (_ = get(_, i, r, n));
|
|
33974
33974
|
var A = h - _.left - _.right, T = u - _.top - _.bottom;
|
|
33975
|
-
return
|
|
33975
|
+
return pt(pt({
|
|
33976
33976
|
brushBottom: S
|
|
33977
33977
|
}, _), {}, {
|
|
33978
33978
|
// never return negative values for height and width
|
|
@@ -33992,30 +33992,30 @@ var Zb = function(t, n, r, i) {
|
|
|
33992
33992
|
graphicalItems: [st],
|
|
33993
33993
|
dataStartIndex: k,
|
|
33994
33994
|
dataEndIndex: I
|
|
33995
|
-
}), ot = st.type.defaultProps !== void 0 ?
|
|
33995
|
+
}), ot = st.type.defaultProps !== void 0 ? pt(pt({}, st.type.defaultProps), st.props) : st.props, ct = ot.dataKey, mt = ot.maxBarSize, vt = ot["".concat(F, "Id")], yt = ot["".concat(q, "Id")], $t = {}, Tt = c.reduce(function(Sn, Xe) {
|
|
33996
33996
|
var Je, dr, pr = S["".concat(Xe.axisType, "Map")], rr = ot["".concat(Xe.axisType, "Id")];
|
|
33997
33997
|
pr && pr[rr] || Xe.axisType === "zAxis" || (process.env.NODE_ENV !== "production" ? Rr(!1, "Specifying a(n) ".concat(Xe.axisType, "Id requires a corresponding ").concat(
|
|
33998
33998
|
Xe.axisType,
|
|
33999
33999
|
"Id on the targeted graphical component "
|
|
34000
34000
|
).concat((Je = st == null || (dr = st.type) === null || dr === void 0 ? void 0 : dr.displayName) !== null && Je !== void 0 ? Je : "")) : Rr());
|
|
34001
34001
|
var Ve = pr[rr];
|
|
34002
|
-
return
|
|
34003
|
-
}, $t), ut = Tt[q],
|
|
34002
|
+
return pt(pt({}, Sn), {}, ee(ee({}, Xe.axisType, Ve), "".concat(Xe.axisType, "Ticks"), jo(Ve)));
|
|
34003
|
+
}, $t), ut = Tt[q], ft = Tt["".concat(q, "Ticks")], Nt = T && T[vt] && T[vt].hasStack && Cet(st, T[vt].stackGroups), nt = zo(st.type).indexOf("Bar") >= 0, St = Cp(ut, ft), dt = [], Jt = G && pet({
|
|
34004
34004
|
barSize: N,
|
|
34005
34005
|
stackGroups: T,
|
|
34006
34006
|
totalSize: Pht(Tt, q)
|
|
34007
34007
|
});
|
|
34008
34008
|
if (nt) {
|
|
34009
|
-
var
|
|
34010
|
-
|
|
34009
|
+
var de, Ce, ae = ie(mt) ? U : mt, sn = (de = (Ce = Cp(ut, ft, !0)) !== null && Ce !== void 0 ? Ce : ae) !== null && de !== void 0 ? de : 0;
|
|
34010
|
+
dt = met({
|
|
34011
34011
|
barGap: D,
|
|
34012
34012
|
barCategoryGap: R,
|
|
34013
34013
|
bandSize: sn !== St ? sn : St,
|
|
34014
34014
|
sizeList: Jt[yt],
|
|
34015
34015
|
maxBarSize: ae
|
|
34016
|
-
}), sn !== St && (
|
|
34017
|
-
return
|
|
34018
|
-
position:
|
|
34016
|
+
}), sn !== St && (dt = dt.map(function(Sn) {
|
|
34017
|
+
return pt(pt({}, Sn), {}, {
|
|
34018
|
+
position: pt(pt({}, Sn.position), {}, {
|
|
34019
34019
|
offset: Sn.position.offset - sn / 2
|
|
34020
34020
|
})
|
|
34021
34021
|
});
|
|
@@ -34023,13 +34023,13 @@ var Zb = function(t, n, r, i) {
|
|
|
34023
34023
|
}
|
|
34024
34024
|
var We = st && st.type && st.type.getComposedData;
|
|
34025
34025
|
We && et.push({
|
|
34026
|
-
props:
|
|
34026
|
+
props: pt(pt({}, We(pt(pt({}, Tt), {}, {
|
|
34027
34027
|
displayedData: J,
|
|
34028
34028
|
props: _,
|
|
34029
34029
|
dataKey: ct,
|
|
34030
34030
|
item: st,
|
|
34031
34031
|
bandSize: St,
|
|
34032
|
-
barPosition:
|
|
34032
|
+
barPosition: dt,
|
|
34033
34033
|
offset: w,
|
|
34034
34034
|
stackedData: Nt,
|
|
34035
34035
|
layout: z,
|
|
@@ -34050,20 +34050,20 @@ var Zb = function(t, n, r, i) {
|
|
|
34050
34050
|
return null;
|
|
34051
34051
|
var k = A.children, I = A.layout, N = A.stackOffset, z = A.data, D = A.reverseStackOrder, R = QE(I), U = R.numericAxisName, W = R.cateAxisName, F = jr(k, r), q = Eet(z, F, "".concat(U, "Id"), "".concat(W, "Id"), N, D), G = c.reduce(function(ot, ct) {
|
|
34052
34052
|
var mt = "".concat(ct.axisType, "Map");
|
|
34053
|
-
return
|
|
34053
|
+
return pt(pt({}, ot), {}, ee({}, mt, xht(A, pt(pt({}, ct), {}, {
|
|
34054
34054
|
graphicalItems: F,
|
|
34055
34055
|
stackGroups: ct.axisType === U && q,
|
|
34056
34056
|
dataStartIndex: T,
|
|
34057
34057
|
dataEndIndex: w
|
|
34058
34058
|
}))));
|
|
34059
|
-
}, {}), et = Sht(
|
|
34059
|
+
}, {}), et = Sht(pt(pt({}, G), {}, {
|
|
34060
34060
|
props: A,
|
|
34061
34061
|
graphicalItems: F
|
|
34062
34062
|
}), S == null ? void 0 : S.legendBBox);
|
|
34063
34063
|
Object.keys(G).forEach(function(ot) {
|
|
34064
34064
|
G[ot] = u(A, G[ot], et, ot.replace("Map", ""), n);
|
|
34065
34065
|
});
|
|
34066
|
-
var st = G["".concat(W, "Map")], H = wht(st), J = p(A,
|
|
34066
|
+
var st = G["".concat(W, "Map")], H = wht(st), J = p(A, pt(pt({}, G), {}, {
|
|
34067
34067
|
dataStartIndex: T,
|
|
34068
34068
|
dataEndIndex: w,
|
|
34069
34069
|
updateId: E,
|
|
@@ -34071,7 +34071,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34071
34071
|
stackGroups: q,
|
|
34072
34072
|
offset: et
|
|
34073
34073
|
}));
|
|
34074
|
-
return
|
|
34074
|
+
return pt(pt({
|
|
34075
34075
|
formattedGraphicalItems: J,
|
|
34076
34076
|
graphicalItems: F,
|
|
34077
34077
|
offset: et,
|
|
@@ -34083,14 +34083,14 @@ var Zb = function(t, n, r, i) {
|
|
|
34083
34083
|
return rht(this, _), w = sht(this, _, [S]), ee(w, "eventEmitterSymbol", Symbol("rechartsEventEmitter")), ee(w, "accessibilityManager", new Vut()), ee(w, "handleLegendBBoxUpdate", function(E) {
|
|
34084
34084
|
if (E) {
|
|
34085
34085
|
var k = w.state, I = k.dataStartIndex, N = k.dataEndIndex, z = k.updateId;
|
|
34086
|
-
w.setState(
|
|
34086
|
+
w.setState(pt({
|
|
34087
34087
|
legendBBox: E
|
|
34088
34088
|
}, g({
|
|
34089
34089
|
props: w.props,
|
|
34090
34090
|
dataStartIndex: I,
|
|
34091
34091
|
dataEndIndex: N,
|
|
34092
34092
|
updateId: z
|
|
34093
|
-
},
|
|
34093
|
+
}, pt(pt({}, w.state), {}, {
|
|
34094
34094
|
legendBBox: E
|
|
34095
34095
|
}))));
|
|
34096
34096
|
}
|
|
@@ -34105,7 +34105,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34105
34105
|
if (k !== w.state.dataStartIndex || I !== w.state.dataEndIndex) {
|
|
34106
34106
|
var N = w.state.updateId;
|
|
34107
34107
|
w.setState(function() {
|
|
34108
|
-
return
|
|
34108
|
+
return pt({
|
|
34109
34109
|
dataStartIndex: k,
|
|
34110
34110
|
dataEndIndex: I
|
|
34111
34111
|
}, g({
|
|
@@ -34122,7 +34122,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34122
34122
|
}), ee(w, "handleMouseEnter", function(E) {
|
|
34123
34123
|
var k = w.getMouseInfo(E);
|
|
34124
34124
|
if (k) {
|
|
34125
|
-
var I =
|
|
34125
|
+
var I = pt(pt({}, k), {}, {
|
|
34126
34126
|
isTooltipActive: !0
|
|
34127
34127
|
});
|
|
34128
34128
|
w.setState(I), w.triggerSyncEvent(I);
|
|
@@ -34130,7 +34130,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34130
34130
|
re(N) && N(I, E);
|
|
34131
34131
|
}
|
|
34132
34132
|
}), ee(w, "triggeredAfterMouseMove", function(E) {
|
|
34133
|
-
var k = w.getMouseInfo(E), I = k ?
|
|
34133
|
+
var k = w.getMouseInfo(E), I = k ? pt(pt({}, k), {}, {
|
|
34134
34134
|
isTooltipActive: !0
|
|
34135
34135
|
}) : {
|
|
34136
34136
|
isTooltipActive: !1
|
|
@@ -34175,7 +34175,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34175
34175
|
}), ee(w, "handleClick", function(E) {
|
|
34176
34176
|
var k = w.getMouseInfo(E);
|
|
34177
34177
|
if (k) {
|
|
34178
|
-
var I =
|
|
34178
|
+
var I = pt(pt({}, k), {}, {
|
|
34179
34179
|
isTooltipActive: !0
|
|
34180
34180
|
});
|
|
34181
34181
|
w.setState(I), w.triggerSyncEvent(I);
|
|
@@ -34217,7 +34217,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34217
34217
|
}), ee(w, "applySyncEvent", function(E) {
|
|
34218
34218
|
var k = w.props, I = k.layout, N = k.syncMethod, z = w.state.updateId, D = E.dataStartIndex, R = E.dataEndIndex;
|
|
34219
34219
|
if (E.dataStartIndex !== void 0 || E.dataEndIndex !== void 0)
|
|
34220
|
-
w.setState(
|
|
34220
|
+
w.setState(pt({
|
|
34221
34221
|
dataStartIndex: D,
|
|
34222
34222
|
dataEndIndex: R
|
|
34223
34223
|
}, g({
|
|
@@ -34240,14 +34240,14 @@ var Zb = function(t, n, r, i) {
|
|
|
34240
34240
|
break;
|
|
34241
34241
|
}
|
|
34242
34242
|
}
|
|
34243
|
-
var H =
|
|
34243
|
+
var H = pt(pt({}, G), {}, {
|
|
34244
34244
|
x: G.left,
|
|
34245
34245
|
y: G.top
|
|
34246
34246
|
}), J = Math.min(U, H.x + H.width), ot = Math.min(W, H.y + H.height), ct = et[F] && et[F].value, mt = Zb(w.state, w.props.data, F), vt = et[F] ? {
|
|
34247
34247
|
x: I === "horizontal" ? et[F].coordinate : J,
|
|
34248
34248
|
y: I === "horizontal" ? ot : et[F].coordinate
|
|
34249
34249
|
} : _2;
|
|
34250
|
-
w.setState(
|
|
34250
|
+
w.setState(pt(pt({}, E), {}, {
|
|
34251
34251
|
activeLabel: ct,
|
|
34252
34252
|
activeCoordinate: vt,
|
|
34253
34253
|
activePayload: mt,
|
|
@@ -34271,9 +34271,9 @@ var Zb = function(t, n, r, i) {
|
|
|
34271
34271
|
tooltipEventType: F
|
|
34272
34272
|
});
|
|
34273
34273
|
}), ee(w, "renderPolarAxis", function(E, k, I) {
|
|
34274
|
-
var N = ti(E, "type.axisType"), z = ti(w.state, "".concat(N, "Map")), D = E.type.defaultProps, R = D !== void 0 ?
|
|
34275
|
-
return /* @__PURE__ */ Dn(E,
|
|
34276
|
-
className:
|
|
34274
|
+
var N = ti(E, "type.axisType"), z = ti(w.state, "".concat(N, "Map")), D = E.type.defaultProps, R = D !== void 0 ? pt(pt({}, D), E.props) : E.props, U = z && z[R["".concat(N, "Id")]];
|
|
34275
|
+
return /* @__PURE__ */ Dn(E, pt(pt({}, U), {}, {
|
|
34276
|
+
className: me(N, U.className),
|
|
34277
34277
|
key: E.key || "".concat(k, "-").concat(I),
|
|
34278
34278
|
ticks: jo(U, !0)
|
|
34279
34279
|
}));
|
|
@@ -34303,7 +34303,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34303
34303
|
if (!U)
|
|
34304
34304
|
return null;
|
|
34305
34305
|
var W = U.item, F = YE(U, Xut);
|
|
34306
|
-
return /* @__PURE__ */ Dn(W,
|
|
34306
|
+
return /* @__PURE__ */ Dn(W, pt(pt({}, F), {}, {
|
|
34307
34307
|
chartWidth: N,
|
|
34308
34308
|
chartHeight: z,
|
|
34309
34309
|
margin: D,
|
|
@@ -34315,7 +34315,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34315
34315
|
return null;
|
|
34316
34316
|
var D = w.state, R = D.isTooltipActive, U = D.activeCoordinate, W = D.activePayload, F = D.activeLabel, q = D.offset, G = (E = z.props.active) !== null && E !== void 0 ? E : R;
|
|
34317
34317
|
return /* @__PURE__ */ Dn(z, {
|
|
34318
|
-
viewBox:
|
|
34318
|
+
viewBox: pt(pt({}, q), {}, {
|
|
34319
34319
|
x: q.left,
|
|
34320
34320
|
y: q.top
|
|
34321
34321
|
}),
|
|
@@ -34355,7 +34355,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34355
34355
|
clipPathId: z
|
|
34356
34356
|
});
|
|
34357
34357
|
}), ee(w, "renderActivePoints", function(E) {
|
|
34358
|
-
var k = E.item, I = E.activePoint, N = E.basePoint, z = E.childIndex, D = E.isRange, R = [], U = k.props.key, W = k.item.type.defaultProps !== void 0 ?
|
|
34358
|
+
var k = E.item, I = E.activePoint, N = E.basePoint, z = E.childIndex, D = E.isRange, R = [], U = k.props.key, W = k.item.type.defaultProps !== void 0 ? pt(pt({}, k.item.type.defaultProps), k.item.props) : k.item.props, F = W.activeDot, q = W.dataKey, G = pt(pt({
|
|
34359
34359
|
index: z,
|
|
34360
34360
|
dataKey: q,
|
|
34361
34361
|
cx: I.x,
|
|
@@ -34367,7 +34367,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34367
34367
|
payload: I.payload,
|
|
34368
34368
|
value: I.value
|
|
34369
34369
|
}, Gt(F, !1)), Qd(F));
|
|
34370
|
-
return R.push(_.renderActiveDot(F, G, "".concat(U, "-activePoint-").concat(z))), N ? R.push(_.renderActiveDot(F,
|
|
34370
|
+
return R.push(_.renderActiveDot(F, G, "".concat(U, "-activePoint-").concat(z))), N ? R.push(_.renderActiveDot(F, pt(pt({}, G), {}, {
|
|
34371
34371
|
cx: N.x,
|
|
34372
34372
|
cy: N.y
|
|
34373
34373
|
}), "".concat(U, "-basePoint-").concat(z))) : D && R.push(null), R;
|
|
@@ -34375,29 +34375,29 @@ var Zb = function(t, n, r, i) {
|
|
|
34375
34375
|
var N = w.filterFormatItem(E, k, I);
|
|
34376
34376
|
if (!N)
|
|
34377
34377
|
return null;
|
|
34378
|
-
var z = w.getTooltipEventType(), D = w.state, R = D.isTooltipActive, U = D.tooltipAxis, W = D.activeTooltipIndex, F = D.activeLabel, q = w.props.children, G = Kr(q, Xr), et = N.props, st = et.points, H = et.isRange, J = et.baseLine, ot = N.item.type.defaultProps !== void 0 ?
|
|
34378
|
+
var z = w.getTooltipEventType(), D = w.state, R = D.isTooltipActive, U = D.tooltipAxis, W = D.activeTooltipIndex, F = D.activeLabel, q = w.props.children, G = Kr(q, Xr), et = N.props, st = et.points, H = et.isRange, J = et.baseLine, ot = N.item.type.defaultProps !== void 0 ? pt(pt({}, N.item.type.defaultProps), N.item.props) : N.item.props, ct = ot.activeDot, mt = ot.hide, vt = ot.activeBar, yt = ot.activeShape, $t = !!(!mt && R && G && (ct || vt || yt)), Tt = {};
|
|
34379
34379
|
z !== "axis" && G && G.props.trigger === "click" ? Tt = {
|
|
34380
34380
|
onClick: wd(w.handleItemMouseEnter, E.props.onClick)
|
|
34381
34381
|
} : z !== "axis" && (Tt = {
|
|
34382
34382
|
onMouseLeave: wd(w.handleItemMouseLeave, E.props.onMouseLeave),
|
|
34383
34383
|
onMouseEnter: wd(w.handleItemMouseEnter, E.props.onMouseEnter)
|
|
34384
34384
|
});
|
|
34385
|
-
var ut = /* @__PURE__ */ Dn(E,
|
|
34386
|
-
function
|
|
34385
|
+
var ut = /* @__PURE__ */ Dn(E, pt(pt({}, N.props), Tt));
|
|
34386
|
+
function ft(Xe) {
|
|
34387
34387
|
return typeof U.dataKey == "function" ? U.dataKey(Xe.payload) : null;
|
|
34388
34388
|
}
|
|
34389
34389
|
if ($t)
|
|
34390
34390
|
if (W >= 0) {
|
|
34391
34391
|
var Nt, nt;
|
|
34392
34392
|
if (U.dataKey && !U.allowDuplicatedCategory) {
|
|
34393
|
-
var St = typeof U.dataKey == "function" ?
|
|
34393
|
+
var St = typeof U.dataKey == "function" ? ft : "payload.".concat(U.dataKey.toString());
|
|
34394
34394
|
Nt = Jd(st, St, F), nt = H && J && Jd(J, St, F);
|
|
34395
34395
|
} else
|
|
34396
34396
|
Nt = st == null ? void 0 : st[W], nt = H && J && J[W];
|
|
34397
34397
|
if (yt || vt) {
|
|
34398
|
-
var
|
|
34399
|
-
return [/* @__PURE__ */ Dn(E,
|
|
34400
|
-
activeIndex:
|
|
34398
|
+
var dt = E.props.activeIndex !== void 0 ? E.props.activeIndex : W;
|
|
34399
|
+
return [/* @__PURE__ */ Dn(E, pt(pt(pt({}, N.props), Tt), {}, {
|
|
34400
|
+
activeIndex: dt
|
|
34401
34401
|
})), null, null];
|
|
34402
34402
|
}
|
|
34403
34403
|
if (!ie(Nt))
|
|
@@ -34409,16 +34409,16 @@ var Zb = function(t, n, r, i) {
|
|
|
34409
34409
|
isRange: H
|
|
34410
34410
|
})));
|
|
34411
34411
|
} else {
|
|
34412
|
-
var Jt,
|
|
34412
|
+
var Jt, de = (Jt = w.getItemByXY(w.state.activeCoordinate)) !== null && Jt !== void 0 ? Jt : {
|
|
34413
34413
|
graphicalItem: ut
|
|
34414
|
-
}, Ce =
|
|
34414
|
+
}, Ce = de.graphicalItem, ae = Ce.item, sn = ae === void 0 ? E : ae, We = Ce.childIndex, Sn = pt(pt(pt({}, N.props), Tt), {}, {
|
|
34415
34415
|
activeIndex: We
|
|
34416
34416
|
});
|
|
34417
34417
|
return [/* @__PURE__ */ Dn(sn, Sn), null, null];
|
|
34418
34418
|
}
|
|
34419
34419
|
return H ? [ut, null, null] : [ut, null];
|
|
34420
34420
|
}), ee(w, "renderCustomized", function(E, k, I) {
|
|
34421
|
-
return /* @__PURE__ */ Dn(E,
|
|
34421
|
+
return /* @__PURE__ */ Dn(E, pt(pt({
|
|
34422
34422
|
key: "recharts-customized-".concat(I)
|
|
34423
34423
|
}, w.props), w.state));
|
|
34424
34424
|
}), ee(w, "renderMap", {
|
|
@@ -34520,7 +34520,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34520
34520
|
var st = et.item;
|
|
34521
34521
|
return st.type.name === "Scatter";
|
|
34522
34522
|
});
|
|
34523
|
-
q && (F =
|
|
34523
|
+
q && (F = pt(pt({}, F), q.props.points[N].tooltipPosition), D = q.props.points[N].tooltipPayload);
|
|
34524
34524
|
var G = {
|
|
34525
34525
|
activeTooltipIndex: N,
|
|
34526
34526
|
isTooltipActive: !0,
|
|
@@ -34591,12 +34591,12 @@ var Zb = function(t, n, r, i) {
|
|
|
34591
34591
|
var z = this.state, D = z.xAxisMap, R = z.yAxisMap, U = this.getTooltipEventType(), W = XE(this.state, this.props.data, this.props.layout, N);
|
|
34592
34592
|
if (U !== "axis" && D && R) {
|
|
34593
34593
|
var F = Ts(D).scale, q = Ts(R).scale, G = F && F.invert ? F.invert(k.chartX) : null, et = q && q.invert ? q.invert(k.chartY) : null;
|
|
34594
|
-
return
|
|
34594
|
+
return pt(pt({}, k), {}, {
|
|
34595
34595
|
xValue: G,
|
|
34596
34596
|
yValue: et
|
|
34597
34597
|
}, W);
|
|
34598
34598
|
}
|
|
34599
|
-
return W ?
|
|
34599
|
+
return W ? pt(pt({}, k), W) : null;
|
|
34600
34600
|
}
|
|
34601
34601
|
}, {
|
|
34602
34602
|
key: "inRange",
|
|
@@ -34636,7 +34636,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34636
34636
|
onContextMenu: this.handleContextMenu
|
|
34637
34637
|
});
|
|
34638
34638
|
var k = Qd(this.props, this.handleOuterEvent);
|
|
34639
|
-
return
|
|
34639
|
+
return pt(pt({}, k), E);
|
|
34640
34640
|
}
|
|
34641
34641
|
}, {
|
|
34642
34642
|
key: "addListener",
|
|
@@ -34677,7 +34677,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34677
34677
|
var A = this.state.xAxisMap;
|
|
34678
34678
|
return A ? Object.entries(A).reduce(function(T, w) {
|
|
34679
34679
|
var E = ZE(w, 2), k = E[0], I = E[1];
|
|
34680
|
-
return
|
|
34680
|
+
return pt(pt({}, T), {}, ee({}, k, I.scale));
|
|
34681
34681
|
}, {}) : null;
|
|
34682
34682
|
}
|
|
34683
34683
|
}, {
|
|
@@ -34686,7 +34686,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34686
34686
|
var A = this.state.yAxisMap;
|
|
34687
34687
|
return A ? Object.entries(A).reduce(function(T, w) {
|
|
34688
34688
|
var E = ZE(w, 2), k = E[0], I = E[1];
|
|
34689
|
-
return
|
|
34689
|
+
return pt(pt({}, T), {}, ee({}, k, I.scale));
|
|
34690
34690
|
}, {}) : null;
|
|
34691
34691
|
}
|
|
34692
34692
|
}, {
|
|
@@ -34707,7 +34707,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34707
34707
|
var T = this.state, w = T.formattedGraphicalItems, E = T.activeItem;
|
|
34708
34708
|
if (w && w.length)
|
|
34709
34709
|
for (var k = 0, I = w.length; k < I; k++) {
|
|
34710
|
-
var N = w[k], z = N.props, D = N.item, R = D.type.defaultProps !== void 0 ?
|
|
34710
|
+
var N = w[k], z = N.props, D = N.item, R = D.type.defaultProps !== void 0 ? pt(pt({}, D.type.defaultProps), D.props) : D.props, U = zo(D.type);
|
|
34711
34711
|
if (U === "Bar") {
|
|
34712
34712
|
var W = (z.data || []).find(function(et) {
|
|
34713
34713
|
return Iit(A, et);
|
|
@@ -34733,7 +34733,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34733
34733
|
itemData: R.data
|
|
34734
34734
|
}), G = R.activeIndex === void 0 ? q : R.activeIndex;
|
|
34735
34735
|
return {
|
|
34736
|
-
graphicalItem:
|
|
34736
|
+
graphicalItem: pt(pt({}, N), {}, {
|
|
34737
34737
|
childIndex: G
|
|
34738
34738
|
}),
|
|
34739
34739
|
payload: tf(N, E) ? R.data[q] : N.props.data[q]
|
|
@@ -34776,8 +34776,8 @@ var Zb = function(t, n, r, i) {
|
|
|
34776
34776
|
height: this.props.height,
|
|
34777
34777
|
clipPathId: this.clipPathId
|
|
34778
34778
|
}, /* @__PURE__ */ b.createElement("div", ic({
|
|
34779
|
-
className:
|
|
34780
|
-
style:
|
|
34779
|
+
className: me("recharts-wrapper", E),
|
|
34780
|
+
style: pt({
|
|
34781
34781
|
position: "relative",
|
|
34782
34782
|
cursor: "default",
|
|
34783
34783
|
width: k,
|
|
@@ -34797,7 +34797,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34797
34797
|
}
|
|
34798
34798
|
}]);
|
|
34799
34799
|
}(n0);
|
|
34800
|
-
ee(x, "displayName", n), ee(x, "defaultProps",
|
|
34800
|
+
ee(x, "displayName", n), ee(x, "defaultProps", pt({
|
|
34801
34801
|
layout: "horizontal",
|
|
34802
34802
|
stackOffset: "none",
|
|
34803
34803
|
barCategoryGap: "10%",
|
|
@@ -34814,9 +34814,9 @@ var Zb = function(t, n, r, i) {
|
|
|
34814
34814
|
var S = v.dataKey, A = v.data, T = v.children, w = v.width, E = v.height, k = v.layout, I = v.stackOffset, N = v.margin, z = _.dataStartIndex, D = _.dataEndIndex;
|
|
34815
34815
|
if (_.updateId === void 0) {
|
|
34816
34816
|
var R = JE(v);
|
|
34817
|
-
return
|
|
34817
|
+
return pt(pt(pt({}, R), {}, {
|
|
34818
34818
|
updateId: 0
|
|
34819
|
-
}, g(
|
|
34819
|
+
}, g(pt(pt({
|
|
34820
34820
|
props: v
|
|
34821
34821
|
}, R), {}, {
|
|
34822
34822
|
updateId: 0
|
|
@@ -34840,10 +34840,10 @@ var Zb = function(t, n, r, i) {
|
|
|
34840
34840
|
// The tooltip should stay active when it was active in the previous render. If this is not
|
|
34841
34841
|
// the case, the tooltip disappears and immediately re-appears, causing a flickering effect
|
|
34842
34842
|
isTooltipActive: _.isTooltipActive
|
|
34843
|
-
}, F =
|
|
34843
|
+
}, F = pt(pt({}, XE(_, A, k)), {}, {
|
|
34844
34844
|
updateId: _.updateId + 1
|
|
34845
|
-
}), q =
|
|
34846
|
-
return
|
|
34845
|
+
}), q = pt(pt(pt({}, U), W), F);
|
|
34846
|
+
return pt(pt(pt({}, q), g(pt({
|
|
34847
34847
|
props: v
|
|
34848
34848
|
}, q), _)), {}, {
|
|
34849
34849
|
prevDataKey: S,
|
|
@@ -34858,9 +34858,9 @@ var Zb = function(t, n, r, i) {
|
|
|
34858
34858
|
}
|
|
34859
34859
|
if (!wv(T, _.prevChildren)) {
|
|
34860
34860
|
var G, et, st, H, J = Kr(T, Ic), ot = J && (G = (et = J.props) === null || et === void 0 ? void 0 : et.startIndex) !== null && G !== void 0 ? G : z, ct = J && (st = (H = J.props) === null || H === void 0 ? void 0 : H.endIndex) !== null && st !== void 0 ? st : D, mt = ot !== z || ct !== D, vt = !ie(A), yt = vt && !mt ? _.updateId : _.updateId + 1;
|
|
34861
|
-
return
|
|
34861
|
+
return pt(pt({
|
|
34862
34862
|
updateId: yt
|
|
34863
|
-
}, g(
|
|
34863
|
+
}, g(pt(pt({
|
|
34864
34864
|
props: v
|
|
34865
34865
|
}, _), {}, {
|
|
34866
34866
|
updateId: yt,
|
|
@@ -40711,15 +40711,18 @@ function Ift(e, t, n) {
|
|
|
40711
40711
|
if (!r) return null;
|
|
40712
40712
|
!r.includes(`
|
|
40713
40713
|
`) && r.includes("\\n") && (r = r.replace(/\\n/g, `
|
|
40714
|
-
`)), r = r.replace(
|
|
40714
|
+
`)), r = r.replace(
|
|
40715
|
+
/\(\s*image:\s*([^)]+?)\s*\)/gi,
|
|
40716
|
+
(v, _) => `
|
|
40715
40717
|
|
|
40716
|
-
.replace(/\s+/g, "%20")})
|
|
40717
40719
|
|
|
40718
|
-
`
|
|
40719
|
-
|
|
40720
|
+
`
|
|
40721
|
+
), r = r.replace(
|
|
40722
|
+
/(^|\s)(https?:\/\/[^\s)]+\.(?:png|jpe?g|gif|webp|avif))(?=$|\s)/gim,
|
|
40720
40723
|
"$1"
|
|
40721
40724
|
), r = r.replace(
|
|
40722
|
-
/(
|
|
40725
|
+
/(^|\s)(\/assets\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\/[^\s)]+)(?=$|\s)/gim,
|
|
40723
40726
|
"$1"
|
|
40724
40727
|
);
|
|
40725
40728
|
const i = (v) => {
|
|
@@ -42400,7 +42403,7 @@ var Kb = { exports: {} };
|
|
|
42400
42403
|
var y = Math.PI / 180, P = l.lat * y, O = d.lat * y, j = Math.sin((d.lat - l.lat) * y / 2), tt = Math.sin((d.lng - l.lng) * y / 2), rt = j * j + Math.cos(P) * Math.cos(O) * tt * tt, at = 2 * Math.atan2(Math.sqrt(rt), Math.sqrt(1 - rt));
|
|
42401
42404
|
return this.R * at;
|
|
42402
42405
|
}
|
|
42403
|
-
}), ut = 6378137,
|
|
42406
|
+
}), ut = 6378137, ft = {
|
|
42404
42407
|
R: ut,
|
|
42405
42408
|
MAX_LATITUDE: 85.0511287798,
|
|
42406
42409
|
project: function(l) {
|
|
@@ -42455,18 +42458,18 @@ var Kb = { exports: {} };
|
|
|
42455
42458
|
}
|
|
42456
42459
|
var St = i({}, Tt, {
|
|
42457
42460
|
code: "EPSG:3857",
|
|
42458
|
-
projection:
|
|
42461
|
+
projection: ft,
|
|
42459
42462
|
transformation: function() {
|
|
42460
|
-
var l = 0.5 / (Math.PI *
|
|
42463
|
+
var l = 0.5 / (Math.PI * ft.R);
|
|
42461
42464
|
return nt(l, 0.5, -l, 0.5);
|
|
42462
42465
|
}()
|
|
42463
|
-
}),
|
|
42466
|
+
}), dt = i({}, St, {
|
|
42464
42467
|
code: "EPSG:900913"
|
|
42465
42468
|
});
|
|
42466
42469
|
function Jt(l) {
|
|
42467
42470
|
return document.createElementNS("http://www.w3.org/2000/svg", l);
|
|
42468
42471
|
}
|
|
42469
|
-
function
|
|
42472
|
+
function de(l, d) {
|
|
42470
42473
|
var y = "", P, O, j, tt, rt, at;
|
|
42471
42474
|
for (P = 0, j = l.length; P < j; P++) {
|
|
42472
42475
|
for (rt = l[P], O = 0, tt = rt.length; O < tt; O++)
|
|
@@ -42475,7 +42478,7 @@ var Kb = { exports: {} };
|
|
|
42475
42478
|
}
|
|
42476
42479
|
return y || "M0 0";
|
|
42477
42480
|
}
|
|
42478
|
-
var Ce = document.documentElement.style, ae = "ActiveXObject" in window, sn = ae && !document.addEventListener, We = "msLaunchUri" in navigator && !("documentMode" in document), Sn = vn("webkit"), Xe = vn("android"), Je = vn("android 2") || vn("android 3"), dr = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), pr = Xe && vn("Google") && dr < 537 && !("AudioNode" in window), rr = !!window.opera, Ve = !We && vn("chrome"), Or = vn("gecko") && !Sn && !rr && !ae, Zt = !Ve && vn("safari"), te = vn("phantom"), ze = "OTransition" in Ce,
|
|
42481
|
+
var Ce = document.documentElement.style, ae = "ActiveXObject" in window, sn = ae && !document.addEventListener, We = "msLaunchUri" in navigator && !("documentMode" in document), Sn = vn("webkit"), Xe = vn("android"), Je = vn("android 2") || vn("android 3"), dr = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), pr = Xe && vn("Google") && dr < 537 && !("AudioNode" in window), rr = !!window.opera, Ve = !We && vn("chrome"), Or = vn("gecko") && !Sn && !rr && !ae, Zt = !Ve && vn("safari"), te = vn("phantom"), ze = "OTransition" in Ce, ge = navigator.platform.indexOf("Win") === 0, oe = ae && "transition" in Ce, Ee = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !Je, be = "MozPerspective" in Ce, mr = !window.L_DISABLE_3D && (oe || Ee || be) && !ze && !te, gr = typeof orientation < "u" || vn("mobile"), Ot = gr && Sn, ir = gr && Ee, an = !window.PointerEvent && window.MSPointerEvent, ts = !!(window.PointerEvent || an), po = "ontouchstart" in window || !!window.TouchEvent, mo = !window.L_NO_TOUCH && (po || ts), xe = gr && rr, he = gr && Or, Pn = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, es = function() {
|
|
42479
42482
|
var l = !1;
|
|
42480
42483
|
try {
|
|
42481
42484
|
var d = Object.defineProperty({}, "passive", {
|
|
@@ -42519,7 +42522,7 @@ var Kb = { exports: {} };
|
|
|
42519
42522
|
safari: Zt,
|
|
42520
42523
|
phantom: te,
|
|
42521
42524
|
opera12: ze,
|
|
42522
|
-
win:
|
|
42525
|
+
win: ge,
|
|
42523
42526
|
ie3d: oe,
|
|
42524
42527
|
webkit3d: Ee,
|
|
42525
42528
|
gecko3d: be,
|
|
@@ -42640,7 +42643,7 @@ var Kb = { exports: {} };
|
|
|
42640
42643
|
var P = document.createElement(l);
|
|
42641
42644
|
return P.className = d || "", y && y.appendChild(P), P;
|
|
42642
42645
|
}
|
|
42643
|
-
function
|
|
42646
|
+
function pe(l) {
|
|
42644
42647
|
var d = l.parentNode;
|
|
42645
42648
|
d && d.removeChild(l);
|
|
42646
42649
|
}
|
|
@@ -42662,7 +42665,7 @@ var Kb = { exports: {} };
|
|
|
42662
42665
|
var y = gl(l);
|
|
42663
42666
|
return y.length > 0 && new RegExp("(^|\\s)" + d + "(\\s|$)").test(y);
|
|
42664
42667
|
}
|
|
42665
|
-
function
|
|
42668
|
+
function Vt(l, d) {
|
|
42666
42669
|
if (l.classList !== void 0)
|
|
42667
42670
|
for (var y = x(d), P = 0, O = y.length; P < O; P++)
|
|
42668
42671
|
l.classList.add(y[P]);
|
|
@@ -42766,12 +42769,12 @@ var Kb = { exports: {} };
|
|
|
42766
42769
|
get: hs,
|
|
42767
42770
|
getStyle: Wi,
|
|
42768
42771
|
create: zt,
|
|
42769
|
-
remove:
|
|
42772
|
+
remove: pe,
|
|
42770
42773
|
empty: wo,
|
|
42771
42774
|
toFront: ni,
|
|
42772
42775
|
toBack: Ct,
|
|
42773
42776
|
hasClass: Ge,
|
|
42774
|
-
addClass:
|
|
42777
|
+
addClass: Vt,
|
|
42775
42778
|
removeClass: le,
|
|
42776
42779
|
setClass: fs,
|
|
42777
42780
|
getClass: gl,
|
|
@@ -43131,7 +43134,7 @@ var Kb = { exports: {} };
|
|
|
43131
43134
|
step: this._onPanTransitionStep,
|
|
43132
43135
|
end: this._onPanTransitionEnd
|
|
43133
43136
|
}, this)), d.noMoveStart || this.fire("movestart"), d.animate !== !1) {
|
|
43134
|
-
|
|
43137
|
+
Vt(this._mapPane, "leaflet-pan-anim");
|
|
43135
43138
|
var y = this._getMapPanePos().subtract(l).round();
|
|
43136
43139
|
this._panAnim.run(this._mapPane, y, d.duration || 0.25, d.easeLinearity);
|
|
43137
43140
|
} else
|
|
@@ -43148,7 +43151,7 @@ var Kb = { exports: {} };
|
|
|
43148
43151
|
var P = this.project(this.getCenter()), O = this.project(l), j = this.getSize(), tt = this._zoom;
|
|
43149
43152
|
l = yt(l), d = d === void 0 ? tt : d;
|
|
43150
43153
|
var rt = Math.max(j.x, j.y), at = rt * this.getZoomScale(tt, d), bt = O.distanceTo(P) || 1, Rt = 1.42, Xt = Rt * Rt;
|
|
43151
|
-
function
|
|
43154
|
+
function ye(K) {
|
|
43152
43155
|
var Y = K ? -1 : 1, Q = K ? at : rt, X = at * at - rt * rt + Y * Xt * Xt * bt * bt, lt = 2 * Q * Xt * bt, it = X / lt, gt = Math.sqrt(it * it + 1) - it, Mt = gt < 1e-9 ? -18 : Math.log(gt);
|
|
43153
43156
|
return Mt;
|
|
43154
43157
|
}
|
|
@@ -43161,7 +43164,7 @@ var Kb = { exports: {} };
|
|
|
43161
43164
|
function xr(K) {
|
|
43162
43165
|
return Un(K) / xn(K);
|
|
43163
43166
|
}
|
|
43164
|
-
var Jn =
|
|
43167
|
+
var Jn = ye(0);
|
|
43165
43168
|
function Mo(K) {
|
|
43166
43169
|
return rt * (xn(Jn) / xn(Jn + Rt * K));
|
|
43167
43170
|
}
|
|
@@ -43171,7 +43174,7 @@ var Kb = { exports: {} };
|
|
|
43171
43174
|
function C(K) {
|
|
43172
43175
|
return 1 - Math.pow(1 - K, 1.5);
|
|
43173
43176
|
}
|
|
43174
|
-
var M = Date.now(), $ = (
|
|
43177
|
+
var M = Date.now(), $ = (ye(1) - Jn) / Rt, Z = y.duration ? 1e3 * y.duration : 1e3 * $ * 0.8;
|
|
43175
43178
|
function B() {
|
|
43176
43179
|
var K = (Date.now() - M) / Z, Y = C(K) * $;
|
|
43177
43180
|
K <= 1 ? (this._flyToFrame = D(B, this), this._move(
|
|
@@ -43339,12 +43342,12 @@ var Kb = { exports: {} };
|
|
|
43339
43342
|
} catch {
|
|
43340
43343
|
this._container._leaflet_id = void 0, this._containerId = void 0;
|
|
43341
43344
|
}
|
|
43342
|
-
this._locationWatchId !== void 0 && this.stopLocate(), this._stop(),
|
|
43345
|
+
this._locationWatchId !== void 0 && this.stopLocate(), this._stop(), pe(this._mapPane), this._clearControlPos && this._clearControlPos(), this._resizeRequest && (R(this._resizeRequest), this._resizeRequest = null), this._clearHandlers(), this._loaded && this.fire("unload");
|
|
43343
43346
|
var l;
|
|
43344
43347
|
for (l in this._layers)
|
|
43345
43348
|
this._layers[l].remove();
|
|
43346
43349
|
for (l in this._panes)
|
|
43347
|
-
|
|
43350
|
+
pe(this._panes[l]);
|
|
43348
43351
|
return this._layers = [], this._panes = [], delete this._mapPane, delete this._renderer, this;
|
|
43349
43352
|
},
|
|
43350
43353
|
// @section Other Methods
|
|
@@ -43390,7 +43393,7 @@ var Kb = { exports: {} };
|
|
|
43390
43393
|
// the given bounds in its entirety.
|
|
43391
43394
|
getBoundsZoom: function(l, d, y) {
|
|
43392
43395
|
l = mt(l), y = H(y || [0, 0]);
|
|
43393
|
-
var P = this.getZoom() || 0, O = this.getMinZoom(), j = this.getMaxZoom(), tt = l.getNorthWest(), rt = l.getSouthEast(), at = this.getSize().subtract(y), bt = ot(this.project(rt, P), this.project(tt, P)).getSize(), Rt = Bt.any3d ? this.options.zoomSnap : 1, Xt = at.x / bt.x,
|
|
43396
|
+
var P = this.getZoom() || 0, O = this.getMinZoom(), j = this.getMaxZoom(), tt = l.getNorthWest(), rt = l.getSouthEast(), at = this.getSize().subtract(y), bt = ot(this.project(rt, P), this.project(tt, P)).getSize(), Rt = Bt.any3d ? this.options.zoomSnap : 1, Xt = at.x / bt.x, ye = at.y / bt.y, Un = d ? Math.max(Xt, ye) : Math.min(Xt, ye);
|
|
43394
43397
|
return P = this.getScaleZoom(Un, P), Rt && (P = Math.round(P / (Rt / 100)) * (Rt / 100), P = d ? Math.ceil(P / Rt) * Rt : Math.floor(P / Rt) * Rt), Math.max(O, Math.min(j, P));
|
|
43395
43398
|
},
|
|
43396
43399
|
// @method getSize(): Point
|
|
@@ -43563,13 +43566,13 @@ var Kb = { exports: {} };
|
|
|
43563
43566
|
},
|
|
43564
43567
|
_initLayout: function() {
|
|
43565
43568
|
var l = this._container;
|
|
43566
|
-
this._fadeAnimated = this.options.fadeAnimation && Bt.any3d,
|
|
43569
|
+
this._fadeAnimated = this.options.fadeAnimation && Bt.any3d, Vt(l, "leaflet-container" + (Bt.touch ? " leaflet-touch" : "") + (Bt.retina ? " leaflet-retina" : "") + (Bt.ielt9 ? " leaflet-oldie" : "") + (Bt.safari ? " leaflet-safari" : "") + (this._fadeAnimated ? " leaflet-fade-anim" : ""));
|
|
43567
43570
|
var d = Wi(l, "position");
|
|
43568
43571
|
d !== "absolute" && d !== "relative" && d !== "fixed" && d !== "sticky" && (l.style.position = "relative"), this._initPanes(), this._initControlPos && this._initControlPos();
|
|
43569
43572
|
},
|
|
43570
43573
|
_initPanes: function() {
|
|
43571
43574
|
var l = this._panes = {};
|
|
43572
|
-
this._paneRenderers = {}, this._mapPane = this.createPane("mapPane", this._container), Qe(this._mapPane, new et(0, 0)), this.createPane("tilePane"), this.createPane("overlayPane"), this.createPane("shadowPane"), this.createPane("markerPane"), this.createPane("tooltipPane"), this.createPane("popupPane"), this.options.markerZoomAnimation || (
|
|
43575
|
+
this._paneRenderers = {}, this._mapPane = this.createPane("mapPane", this._container), Qe(this._mapPane, new et(0, 0)), this.createPane("tilePane"), this.createPane("overlayPane"), this.createPane("shadowPane"), this.createPane("markerPane"), this.createPane("tooltipPane"), this.createPane("popupPane"), this.options.markerZoomAnimation || (Vt(l.markerPane, "leaflet-zoom-hide"), Vt(l.shadowPane, "leaflet-zoom-hide"));
|
|
43573
43576
|
},
|
|
43574
43577
|
// private methods that modify map state
|
|
43575
43578
|
// @section Map state change events
|
|
@@ -43780,7 +43783,7 @@ var Kb = { exports: {} };
|
|
|
43780
43783
|
}, this), this.on("load moveend", this._animMoveEnd, this), this._on("unload", this._destroyAnimProxy, this);
|
|
43781
43784
|
},
|
|
43782
43785
|
_destroyAnimProxy: function() {
|
|
43783
|
-
|
|
43786
|
+
pe(this._proxy), this.off("load moveend", this._animMoveEnd, this), delete this._proxy;
|
|
43784
43787
|
},
|
|
43785
43788
|
_animMoveEnd: function() {
|
|
43786
43789
|
var l = this.getCenter(), d = this.getZoom();
|
|
@@ -43803,7 +43806,7 @@ var Kb = { exports: {} };
|
|
|
43803
43806
|
}, this), !0);
|
|
43804
43807
|
},
|
|
43805
43808
|
_animateZoom: function(l, d, y, P) {
|
|
43806
|
-
this._mapPane && (y && (this._animatingZoom = !0, this._animateToCenter = l, this._animateToZoom = d,
|
|
43809
|
+
this._mapPane && (y && (this._animatingZoom = !0, this._animateToCenter = l, this._animateToZoom = d, Vt(this._mapPane, "leaflet-zoom-anim")), this.fire("zoomanim", {
|
|
43807
43810
|
center: l,
|
|
43808
43811
|
zoom: d,
|
|
43809
43812
|
noUpdate: P
|
|
@@ -43853,12 +43856,12 @@ var Kb = { exports: {} };
|
|
|
43853
43856
|
addTo: function(l) {
|
|
43854
43857
|
this.remove(), this._map = l;
|
|
43855
43858
|
var d = this._container = this.onAdd(l), y = this.getPosition(), P = l._controlCorners[y];
|
|
43856
|
-
return
|
|
43859
|
+
return Vt(d, "leaflet-control"), y.indexOf("bottom") !== -1 ? P.insertBefore(d, P.firstChild) : P.appendChild(d), this._map.on("unload", this.remove, this), this;
|
|
43857
43860
|
},
|
|
43858
43861
|
// @method remove: this
|
|
43859
43862
|
// Removes the control from the map it is currently active on.
|
|
43860
43863
|
remove: function() {
|
|
43861
|
-
return this._map ? (
|
|
43864
|
+
return this._map ? (pe(this._container), this.onRemove && this.onRemove(this._map), this._map.off("unload", this.remove, this), this._map = null, this) : this;
|
|
43862
43865
|
},
|
|
43863
43866
|
_refocusOnMap: function(l) {
|
|
43864
43867
|
this._map && l && l.screenX > 0 && l.screenY > 0 && this._map.getContainer().focus();
|
|
@@ -43887,8 +43890,8 @@ var Kb = { exports: {} };
|
|
|
43887
43890
|
},
|
|
43888
43891
|
_clearControlPos: function() {
|
|
43889
43892
|
for (var l in this._controlCorners)
|
|
43890
|
-
|
|
43891
|
-
|
|
43893
|
+
pe(this._controlCorners[l]);
|
|
43894
|
+
pe(this._controlContainer), delete this._controlCorners, delete this._controlContainer;
|
|
43892
43895
|
}
|
|
43893
43896
|
});
|
|
43894
43897
|
var Of = qr.extend({
|
|
@@ -43960,9 +43963,9 @@ var Kb = { exports: {} };
|
|
|
43960
43963
|
// @method expand(): this
|
|
43961
43964
|
// Expand the control container if collapsed.
|
|
43962
43965
|
expand: function() {
|
|
43963
|
-
|
|
43966
|
+
Vt(this._container, "leaflet-control-layers-expanded"), this._section.style.height = null;
|
|
43964
43967
|
var l = this._map.getSize().y - (this._container.offsetTop + 50);
|
|
43965
|
-
return l < this._section.clientHeight ? (
|
|
43968
|
+
return l < this._section.clientHeight ? (Vt(this._section, "leaflet-control-layers-scrollbar"), this._section.style.height = l + "px") : le(this._section, "leaflet-control-layers-scrollbar"), this._checkDisabledLayers(), this;
|
|
43966
43969
|
},
|
|
43967
43970
|
// @method collapse(): this
|
|
43968
43971
|
// Collapse the control container if expanded.
|
|
@@ -44116,7 +44119,7 @@ var Kb = { exports: {} };
|
|
|
44116
44119
|
},
|
|
44117
44120
|
_updateDisabled: function() {
|
|
44118
44121
|
var l = this._map, d = "leaflet-disabled";
|
|
44119
|
-
le(this._zoomInButton, d), le(this._zoomOutButton, d), this._zoomInButton.setAttribute("aria-disabled", "false"), this._zoomOutButton.setAttribute("aria-disabled", "false"), (this._disabled || l._zoom === l.getMinZoom()) && (
|
|
44122
|
+
le(this._zoomInButton, d), le(this._zoomOutButton, d), this._zoomInButton.setAttribute("aria-disabled", "false"), this._zoomOutButton.setAttribute("aria-disabled", "false"), (this._disabled || l._zoom === l.getMinZoom()) && (Vt(this._zoomOutButton, d), this._zoomOutButton.setAttribute("aria-disabled", "true")), (this._disabled || l._zoom === l.getMaxZoom()) && (Vt(this._zoomInButton, d), this._zoomInButton.setAttribute("aria-disabled", "true"));
|
|
44120
44123
|
}
|
|
44121
44124
|
});
|
|
44122
44125
|
Lt.mergeOptions({
|
|
@@ -44315,7 +44318,7 @@ var Kb = { exports: {} };
|
|
|
44315
44318
|
return;
|
|
44316
44319
|
}
|
|
44317
44320
|
var d = l.touches && l.touches.length === 1 ? l.touches[0] : l, y = new et(d.clientX, d.clientY)._subtract(this._startPoint);
|
|
44318
|
-
!y.x && !y.y || Math.abs(y.x) + Math.abs(y.y) < this.options.clickTolerance || (y.x /= this._parentScale.x, y.y /= this._parentScale.y, we(l), this._moved || (this.fire("dragstart"), this._moved = !0,
|
|
44321
|
+
!y.x && !y.y || Math.abs(y.x) + Math.abs(y.y) < this.options.clickTolerance || (y.x /= this._parentScale.x, y.y /= this._parentScale.y, we(l), this._moved || (this.fire("dragstart"), this._moved = !0, Vt(document.body, "leaflet-dragging"), this._lastTarget = l.target || l.srcElement, window.SVGElementInstance && this._lastTarget instanceof window.SVGElementInstance && (this._lastTarget = this._lastTarget.correspondingUseElement), Vt(this._lastTarget, "leaflet-drag-target")), this._newPos = this._startPos.add(y), this._moving = !0, this._lastEvent = l, this._updatePosition());
|
|
44319
44322
|
}
|
|
44320
44323
|
},
|
|
44321
44324
|
_updatePosition: function() {
|
|
@@ -44335,12 +44338,12 @@ var Kb = { exports: {} };
|
|
|
44335
44338
|
}
|
|
44336
44339
|
});
|
|
44337
44340
|
function wl(l, d, y) {
|
|
44338
|
-
var P, O = [1, 4, 2, 8], j, tt, rt, at, bt, Rt, Xt,
|
|
44341
|
+
var P, O = [1, 4, 2, 8], j, tt, rt, at, bt, Rt, Xt, ye;
|
|
44339
44342
|
for (j = 0, Rt = l.length; j < Rt; j++)
|
|
44340
44343
|
l[j]._code = li(l[j], d);
|
|
44341
44344
|
for (rt = 0; rt < 4; rt++) {
|
|
44342
44345
|
for (Xt = O[rt], P = [], j = 0, Rt = l.length, tt = Rt - 1; j < Rt; tt = j++)
|
|
44343
|
-
at = l[j], bt = l[tt], at._code & Xt ? bt._code & Xt || (
|
|
44346
|
+
at = l[j], bt = l[tt], at._code & Xt ? bt._code & Xt || (ye = sa(bt, at, Xt, d, y), ye._code = li(ye, d), P.push(ye)) : (bt._code & Xt && (ye = sa(bt, at, Xt, d, y), ye._code = li(ye, d), P.push(ye)), P.push(at));
|
|
44344
44347
|
l = P;
|
|
44345
44348
|
}
|
|
44346
44349
|
return l;
|
|
@@ -44350,7 +44353,7 @@ var Kb = { exports: {} };
|
|
|
44350
44353
|
if (!l || l.length === 0)
|
|
44351
44354
|
throw new Error("latlngs not passed");
|
|
44352
44355
|
Mr(l) || (console.warn("latlngs are not flat! Only the first ring will be used"), l = l[0]);
|
|
44353
|
-
var Xt = yt([0, 0]),
|
|
44356
|
+
var Xt = yt([0, 0]), ye = mt(l), Un = ye.getNorthWest().distanceTo(ye.getSouthWest()) * ye.getNorthEast().distanceTo(ye.getNorthWest());
|
|
44354
44357
|
Un < 1700 && (Xt = _l(l));
|
|
44355
44358
|
var xn = l.length, xr = [];
|
|
44356
44359
|
for (y = 0; y < xn; y++) {
|
|
@@ -44445,8 +44448,8 @@ var Kb = { exports: {} };
|
|
|
44445
44448
|
if (!l || l.length === 0)
|
|
44446
44449
|
throw new Error("latlngs not passed");
|
|
44447
44450
|
Mr(l) || (console.warn("latlngs are not flat! Only the first ring will be used"), l = l[0]);
|
|
44448
|
-
var Rt = yt([0, 0]), Xt = mt(l),
|
|
44449
|
-
|
|
44451
|
+
var Rt = yt([0, 0]), Xt = mt(l), ye = Xt.getNorthWest().distanceTo(Xt.getSouthWest()) * Xt.getNorthEast().distanceTo(Xt.getNorthWest());
|
|
44452
|
+
ye < 1700 && (Rt = _l(l));
|
|
44450
44453
|
var Un = l.length, xn = [];
|
|
44451
44454
|
for (y = 0; y < Un; y++) {
|
|
44452
44455
|
var xr = yt(l[y]);
|
|
@@ -44505,7 +44508,7 @@ var Kb = { exports: {} };
|
|
|
44505
44508
|
__proto__: null,
|
|
44506
44509
|
LonLat: Su,
|
|
44507
44510
|
Mercator: Gi,
|
|
44508
|
-
SphericalMercator:
|
|
44511
|
+
SphericalMercator: ft
|
|
44509
44512
|
}, Ci = i({}, Tt, {
|
|
44510
44513
|
code: "EPSG:3395",
|
|
44511
44514
|
projection: Gi,
|
|
@@ -44532,7 +44535,7 @@ var Kb = { exports: {} };
|
|
|
44532
44535
|
},
|
|
44533
44536
|
infinite: !0
|
|
44534
44537
|
});
|
|
44535
|
-
$t.Earth = Tt, $t.EPSG3395 = Ci, $t.EPSG3857 = St, $t.EPSG900913 =
|
|
44538
|
+
$t.Earth = Tt, $t.EPSG3395 = Ci, $t.EPSG3857 = St, $t.EPSG900913 = dt, $t.EPSG4326 = Al, $t.Simple = Pu;
|
|
44536
44539
|
var Ae = G.extend({
|
|
44537
44540
|
// Classes extending `L.Layer` will inherit the following options:
|
|
44538
44541
|
options: {
|
|
@@ -44900,7 +44903,7 @@ var Kb = { exports: {} };
|
|
|
44900
44903
|
predrag: this._onPreDrag,
|
|
44901
44904
|
drag: this._onDrag,
|
|
44902
44905
|
dragend: this._onDragEnd
|
|
44903
|
-
}, this).enable(),
|
|
44906
|
+
}, this).enable(), Vt(l, "leaflet-marker-draggable");
|
|
44904
44907
|
},
|
|
44905
44908
|
removeHooks: function() {
|
|
44906
44909
|
this._draggable.off({
|
|
@@ -45060,21 +45063,21 @@ var Kb = { exports: {} };
|
|
|
45060
45063
|
},
|
|
45061
45064
|
_initIcon: function() {
|
|
45062
45065
|
var l = this.options, d = "leaflet-zoom-" + (this._zoomAnimated ? "animated" : "hide"), y = l.icon.createIcon(this._icon), P = !1;
|
|
45063
|
-
y !== this._icon && (this._icon && this._removeIcon(), P = !0, l.title && (y.title = l.title), y.tagName === "IMG" && (y.alt = l.alt || "")),
|
|
45066
|
+
y !== this._icon && (this._icon && this._removeIcon(), P = !0, l.title && (y.title = l.title), y.tagName === "IMG" && (y.alt = l.alt || "")), Vt(y, d), l.keyboard && (y.tabIndex = "0", y.setAttribute("role", "button")), this._icon = y, l.riseOnHover && this.on({
|
|
45064
45067
|
mouseover: this._bringToFront,
|
|
45065
45068
|
mouseout: this._resetZIndex
|
|
45066
45069
|
}), this.options.autoPanOnFocus && ue(y, "focus", this._panOnFocus, this);
|
|
45067
45070
|
var O = l.icon.createShadow(this._shadow), j = !1;
|
|
45068
|
-
O !== this._shadow && (this._removeShadow(), j = !0), O && (
|
|
45071
|
+
O !== this._shadow && (this._removeShadow(), j = !0), O && (Vt(O, d), O.alt = ""), this._shadow = O, l.opacity < 1 && this._updateOpacity(), P && this.getPane().appendChild(this._icon), this._initInteraction(), O && j && this.getPane(l.shadowPane).appendChild(this._shadow);
|
|
45069
45072
|
},
|
|
45070
45073
|
_removeIcon: function() {
|
|
45071
45074
|
this.options.riseOnHover && this.off({
|
|
45072
45075
|
mouseover: this._bringToFront,
|
|
45073
45076
|
mouseout: this._resetZIndex
|
|
45074
|
-
}), this.options.autoPanOnFocus && Ie(this._icon, "focus", this._panOnFocus, this),
|
|
45077
|
+
}), this.options.autoPanOnFocus && Ie(this._icon, "focus", this._panOnFocus, this), pe(this._icon), this.removeInteractiveTarget(this._icon), this._icon = null;
|
|
45075
45078
|
},
|
|
45076
45079
|
_removeShadow: function() {
|
|
45077
|
-
this._shadow &&
|
|
45080
|
+
this._shadow && pe(this._shadow), this._shadow = null;
|
|
45078
45081
|
},
|
|
45079
45082
|
_setPos: function(l) {
|
|
45080
45083
|
this._icon && Qe(this._icon, l), this._shadow && Qe(this._shadow, l), this._zIndex = l.y + this.options.zIndexOffset, this._resetZIndex();
|
|
@@ -45087,7 +45090,7 @@ var Kb = { exports: {} };
|
|
|
45087
45090
|
this._setPos(d);
|
|
45088
45091
|
},
|
|
45089
45092
|
_initInteraction: function() {
|
|
45090
|
-
if (this.options.interactive && (
|
|
45093
|
+
if (this.options.interactive && (Vt(this._icon, "leaflet-interactive"), this.addInteractiveTarget(this._icon), El)) {
|
|
45091
45094
|
var l = this.options.draggable;
|
|
45092
45095
|
this.dragging && (l = this.dragging.enabled(), this.dragging.disable()), this.dragging = new El(this), l && this.dragging.enable();
|
|
45093
45096
|
}
|
|
@@ -45616,8 +45619,8 @@ var Kb = { exports: {} };
|
|
|
45616
45619
|
return new kr(O);
|
|
45617
45620
|
case "FeatureCollection":
|
|
45618
45621
|
for (bt = 0, Rt = y.features.length; bt < Rt; bt++) {
|
|
45619
|
-
var
|
|
45620
|
-
|
|
45622
|
+
var ye = Ol(y.features[bt], d);
|
|
45623
|
+
ye && O.push(ye);
|
|
45621
45624
|
}
|
|
45622
45625
|
return new kr(O);
|
|
45623
45626
|
default:
|
|
@@ -45749,10 +45752,10 @@ var Kb = { exports: {} };
|
|
|
45749
45752
|
this._url = l, this._bounds = mt(d), m(this, y);
|
|
45750
45753
|
},
|
|
45751
45754
|
onAdd: function() {
|
|
45752
|
-
this._image || (this._initImage(), this.options.opacity < 1 && this._updateOpacity()), this.options.interactive && (
|
|
45755
|
+
this._image || (this._initImage(), this.options.opacity < 1 && this._updateOpacity()), this.options.interactive && (Vt(this._image, "leaflet-interactive"), this.addInteractiveTarget(this._image)), this.getPane().appendChild(this._image), this._reset();
|
|
45753
45756
|
},
|
|
45754
45757
|
onRemove: function() {
|
|
45755
|
-
|
|
45758
|
+
pe(this._image), this.options.interactive && this.removeInteractiveTarget(this._image);
|
|
45756
45759
|
},
|
|
45757
45760
|
// @method setOpacity(opacity: Number): this
|
|
45758
45761
|
// Sets the opacity of the overlay.
|
|
@@ -45807,7 +45810,7 @@ var Kb = { exports: {} };
|
|
|
45807
45810
|
},
|
|
45808
45811
|
_initImage: function() {
|
|
45809
45812
|
var l = this._url.tagName === "IMG", d = this._image = l ? this._url : zt("img");
|
|
45810
|
-
if (
|
|
45813
|
+
if (Vt(d, "leaflet-image-layer"), this._zoomAnimated && Vt(d, "leaflet-zoom-animated"), this.options.className && Vt(d, this.options.className), d.onselectstart = f, d.onmousemove = f, d.onload = s(this.fire, this, "load"), d.onerror = s(this._overlayOnError, this, "error"), (this.options.crossOrigin || this.options.crossOrigin === "") && (d.crossOrigin = this.options.crossOrigin === !0 ? "" : this.options.crossOrigin), this.options.zIndex && this._updateZIndex(), l) {
|
|
45811
45814
|
this._url = d.src;
|
|
45812
45815
|
return;
|
|
45813
45816
|
}
|
|
@@ -45866,7 +45869,7 @@ var Kb = { exports: {} };
|
|
|
45866
45869
|
},
|
|
45867
45870
|
_initImage: function() {
|
|
45868
45871
|
var l = this._url.tagName === "VIDEO", d = this._image = l ? this._url : zt("video");
|
|
45869
|
-
if (
|
|
45872
|
+
if (Vt(d, "leaflet-image-layer"), this._zoomAnimated && Vt(d, "leaflet-zoom-animated"), this.options.className && Vt(d, this.options.className), d.onselectstart = f, d.onmousemove = f, d.onloadeddata = s(this.fire, this, "load"), l) {
|
|
45870
45873
|
for (var y = d.getElementsByTagName("source"), P = [], O = 0; O < y.length; O++)
|
|
45871
45874
|
P.push(y[O].src);
|
|
45872
45875
|
this._url = y.length > 0 ? P : [d.src];
|
|
@@ -45888,7 +45891,7 @@ var Kb = { exports: {} };
|
|
|
45888
45891
|
var Oo = da.extend({
|
|
45889
45892
|
_initImage: function() {
|
|
45890
45893
|
var l = this._image = this._url;
|
|
45891
|
-
|
|
45894
|
+
Vt(l, "leaflet-image-layer"), this._zoomAnimated && Vt(l, "leaflet-zoom-animated"), this.options.className && Vt(l, this.options.className), l.onselectstart = f, l.onmousemove = f;
|
|
45892
45895
|
}
|
|
45893
45896
|
// @method getElement(): SVGElement
|
|
45894
45897
|
// Returns the instance of [`SVGElement`](https://developer.mozilla.org/docs/Web/API/SVGElement)
|
|
@@ -45942,10 +45945,10 @@ var Kb = { exports: {} };
|
|
|
45942
45945
|
return this._map ? this.close() : (arguments.length ? this._source = l : l = this._source, this._prepareOpen(), this.openOn(l._map)), this;
|
|
45943
45946
|
},
|
|
45944
45947
|
onAdd: function(l) {
|
|
45945
|
-
this._zoomAnimated = l._zoomAnimated, this._container || this._initLayout(), l._fadeAnimated && sr(this._container, 0), clearTimeout(this._removeTimeout), this.getPane().appendChild(this._container), this.update(), l._fadeAnimated && sr(this._container, 1), this.bringToFront(), this.options.interactive && (
|
|
45948
|
+
this._zoomAnimated = l._zoomAnimated, this._container || this._initLayout(), l._fadeAnimated && sr(this._container, 0), clearTimeout(this._removeTimeout), this.getPane().appendChild(this._container), this.update(), l._fadeAnimated && sr(this._container, 1), this.bringToFront(), this.options.interactive && (Vt(this._container, "leaflet-interactive"), this.addInteractiveTarget(this._container));
|
|
45946
45949
|
},
|
|
45947
45950
|
onRemove: function(l) {
|
|
45948
|
-
l._fadeAnimated ? (sr(this._container, 0), this._removeTimeout = setTimeout(s(
|
|
45951
|
+
l._fadeAnimated ? (sr(this._container, 0), this._removeTimeout = setTimeout(s(pe, void 0, this._container), 200)) : pe(this._container), this.options.interactive && (le(this._container, "leaflet-interactive"), this.removeInteractiveTarget(this._container));
|
|
45949
45952
|
},
|
|
45950
45953
|
// @namespace DivOverlay
|
|
45951
45954
|
// @method getLatLng: LatLng
|
|
@@ -46159,7 +46162,7 @@ var Kb = { exports: {} };
|
|
|
46159
46162
|
var y = l.offsetWidth;
|
|
46160
46163
|
y = Math.min(y, this.options.maxWidth), y = Math.max(y, this.options.minWidth), d.width = y + 1 + "px", d.whiteSpace = "", d.height = "";
|
|
46161
46164
|
var P = l.offsetHeight, O = this.options.maxHeight, j = "leaflet-popup-scrolled";
|
|
46162
|
-
O && P > O ? (d.height = O + "px",
|
|
46165
|
+
O && P > O ? (d.height = O + "px", Vt(l, j)) : le(l, j), this._containerWidth = this._container.offsetWidth;
|
|
46163
46166
|
},
|
|
46164
46167
|
_animateZoom: function(l) {
|
|
46165
46168
|
var d = this._map._latLngToNewLayerPoint(this._latlng, l.zoom, l.center), y = this._getAnchor();
|
|
@@ -46316,7 +46319,7 @@ var Kb = { exports: {} };
|
|
|
46316
46319
|
},
|
|
46317
46320
|
_setPosition: function(l) {
|
|
46318
46321
|
var d, y, P = this._map, O = this._container, j = P.latLngToContainerPoint(P.getCenter()), tt = P.layerPointToContainerPoint(l), rt = this.options.direction, at = O.offsetWidth, bt = O.offsetHeight, Rt = H(this.options.offset), Xt = this._getAnchor();
|
|
46319
|
-
rt === "top" ? (d = at / 2, y = bt) : rt === "bottom" ? (d = at / 2, y = 0) : rt === "center" ? (d = at / 2, y = bt / 2) : rt === "right" ? (d = 0, y = bt / 2) : rt === "left" ? (d = at, y = bt / 2) : tt.x < j.x ? (rt = "right", d = 0, y = bt / 2) : (rt = "left", d = at + (Rt.x + Xt.x) * 2, y = bt / 2), l = l.subtract(H(d, y, !0)).add(Rt).add(Xt), le(O, "leaflet-tooltip-right"), le(O, "leaflet-tooltip-left"), le(O, "leaflet-tooltip-top"), le(O, "leaflet-tooltip-bottom"),
|
|
46322
|
+
rt === "top" ? (d = at / 2, y = bt) : rt === "bottom" ? (d = at / 2, y = 0) : rt === "center" ? (d = at / 2, y = bt / 2) : rt === "right" ? (d = 0, y = bt / 2) : rt === "left" ? (d = at, y = bt / 2) : tt.x < j.x ? (rt = "right", d = 0, y = bt / 2) : (rt = "left", d = at + (Rt.x + Xt.x) * 2, y = bt / 2), l = l.subtract(H(d, y, !0)).add(Rt).add(Xt), le(O, "leaflet-tooltip-right"), le(O, "leaflet-tooltip-left"), le(O, "leaflet-tooltip-top"), le(O, "leaflet-tooltip-bottom"), Vt(O, "leaflet-tooltip-" + rt), Qe(O, l);
|
|
46320
46323
|
},
|
|
46321
46324
|
_updatePosition: function() {
|
|
46322
46325
|
var l = this._map.latLngToLayerPoint(this._latlng);
|
|
@@ -46537,7 +46540,7 @@ var Kb = { exports: {} };
|
|
|
46537
46540
|
l._addZoomLimit(this);
|
|
46538
46541
|
},
|
|
46539
46542
|
onRemove: function(l) {
|
|
46540
|
-
this._removeAllTiles(),
|
|
46543
|
+
this._removeAllTiles(), pe(this._container), l._removeZoomLimit(this), this._container = null, this._tileZoom = void 0;
|
|
46541
46544
|
},
|
|
46542
46545
|
// @method bringToFront: this
|
|
46543
46546
|
// Brings the tile layer to the top of all tile layers.
|
|
@@ -46634,7 +46637,7 @@ var Kb = { exports: {} };
|
|
|
46634
46637
|
var l = this._tileZoom, d = this.options.maxZoom;
|
|
46635
46638
|
if (l !== void 0) {
|
|
46636
46639
|
for (var y in this._levels)
|
|
46637
|
-
y = Number(y), this._levels[y].el.children.length || y === l ? (this._levels[y].el.style.zIndex = d - Math.abs(l - y), this._onUpdateLevel(y)) : (
|
|
46640
|
+
y = Number(y), this._levels[y].el.children.length || y === l ? (this._levels[y].el.style.zIndex = d - Math.abs(l - y), this._onUpdateLevel(y)) : (pe(this._levels[y].el), this._removeTilesAtZoom(y), this._onRemoveLevel(y), delete this._levels[y]);
|
|
46638
46641
|
var P = this._levels[l], O = this._map;
|
|
46639
46642
|
return P || (P = this._levels[l] = {}, P.el = zt("div", "leaflet-tile-container leaflet-zoom-animated", this._container), P.el.style.zIndex = d, P.origin = O.project(O.unproject(O.getPixelOrigin()), l).round(), P.zoom = l, this._setZoomTransform(P, O.getCenter(), O.getZoom()), f(P.el.offsetWidth), this._onCreateLevel(P)), this._level = P, P;
|
|
46640
46643
|
}
|
|
@@ -46670,7 +46673,7 @@ var Kb = { exports: {} };
|
|
|
46670
46673
|
},
|
|
46671
46674
|
_invalidateAll: function() {
|
|
46672
46675
|
for (var l in this._levels)
|
|
46673
|
-
|
|
46676
|
+
pe(this._levels[l].el), this._onRemoveLevel(Number(l)), delete this._levels[l];
|
|
46674
46677
|
this._removeAllTiles(), this._tileZoom = void 0;
|
|
46675
46678
|
},
|
|
46676
46679
|
_retainParent: function(l, d, y, P) {
|
|
@@ -46755,8 +46758,8 @@ var Kb = { exports: {} };
|
|
|
46755
46758
|
return;
|
|
46756
46759
|
}
|
|
46757
46760
|
for (var Xt = O.min.y; Xt <= O.max.y; Xt++)
|
|
46758
|
-
for (var
|
|
46759
|
-
var Un = new et(
|
|
46761
|
+
for (var ye = O.min.x; ye <= O.max.x; ye++) {
|
|
46762
|
+
var Un = new et(ye, Xt);
|
|
46760
46763
|
if (Un.z = this._tileZoom, !!this._isValidTile(Un)) {
|
|
46761
46764
|
var xn = this._tiles[this._tileCoordsToKey(Un)];
|
|
46762
46765
|
xn ? xn.current = !0 : tt.push(Un);
|
|
@@ -46767,8 +46770,8 @@ var Kb = { exports: {} };
|
|
|
46767
46770
|
}), tt.length !== 0) {
|
|
46768
46771
|
this._loading || (this._loading = !0, this.fire("loading"));
|
|
46769
46772
|
var xr = document.createDocumentFragment();
|
|
46770
|
-
for (
|
|
46771
|
-
this._addTile(tt[
|
|
46773
|
+
for (ye = 0; ye < tt.length; ye++)
|
|
46774
|
+
this._addTile(tt[ye], xr);
|
|
46772
46775
|
this._level.el.appendChild(xr);
|
|
46773
46776
|
}
|
|
46774
46777
|
}
|
|
@@ -46809,13 +46812,13 @@ var Kb = { exports: {} };
|
|
|
46809
46812
|
},
|
|
46810
46813
|
_removeTile: function(l) {
|
|
46811
46814
|
var d = this._tiles[l];
|
|
46812
|
-
d && (
|
|
46815
|
+
d && (pe(d.el), delete this._tiles[l], this.fire("tileunload", {
|
|
46813
46816
|
tile: d.el,
|
|
46814
46817
|
coords: this._keyToTileCoords(l)
|
|
46815
46818
|
}));
|
|
46816
46819
|
},
|
|
46817
46820
|
_initTile: function(l) {
|
|
46818
|
-
|
|
46821
|
+
Vt(l, "leaflet-tile");
|
|
46819
46822
|
var d = this.getTileSize();
|
|
46820
46823
|
l.style.width = d.x + "px", l.style.height = d.y + "px", l.onselectstart = f, l.onmousemove = f, Bt.ielt9 && this.options.opacity < 1 && sr(l, this.options.opacity);
|
|
46821
46824
|
},
|
|
@@ -46837,7 +46840,7 @@ var Kb = { exports: {} };
|
|
|
46837
46840
|
coords: l
|
|
46838
46841
|
});
|
|
46839
46842
|
var P = this._tileCoordsToKey(l);
|
|
46840
|
-
y = this._tiles[P], y && (y.loaded = +/* @__PURE__ */ new Date(), this._map._fadeAnimated ? (sr(y.el, 0), R(this._fadeFrame), this._fadeFrame = D(this._updateOpacity, this)) : (y.active = !0, this._pruneTiles()), d || (
|
|
46843
|
+
y = this._tiles[P], y && (y.loaded = +/* @__PURE__ */ new Date(), this._map._fadeAnimated ? (sr(y.el, 0), R(this._fadeFrame), this._fadeFrame = D(this._updateOpacity, this)) : (y.active = !0, this._pruneTiles()), d || (Vt(y.el, "leaflet-tile-loaded"), this.fire("tileload", {
|
|
46841
46844
|
tile: y.el,
|
|
46842
46845
|
coords: l
|
|
46843
46846
|
})), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), Bt.ielt9 || !this._map._fadeAnimated ? D(this._pruneTiles, this) : setTimeout(s(this._pruneTiles, this), 250)));
|
|
@@ -46973,7 +46976,7 @@ var Kb = { exports: {} };
|
|
|
46973
46976
|
if (this._tiles[l].coords.z !== this._tileZoom && (d = this._tiles[l].el, d.onload = f, d.onerror = f, !d.complete)) {
|
|
46974
46977
|
d.src = w;
|
|
46975
46978
|
var y = this._tiles[l].coords;
|
|
46976
|
-
|
|
46979
|
+
pe(d), delete this._tiles[l], this.fire("tileabort", {
|
|
46977
46980
|
tile: d,
|
|
46978
46981
|
coords: y
|
|
46979
46982
|
});
|
|
@@ -47067,7 +47070,7 @@ var Kb = { exports: {} };
|
|
|
47067
47070
|
m(this, l), c(this), this._layers = this._layers || {};
|
|
47068
47071
|
},
|
|
47069
47072
|
onAdd: function() {
|
|
47070
|
-
this._container || (this._initContainer(),
|
|
47073
|
+
this._container || (this._initContainer(), Vt(this._container, "leaflet-zoom-animated")), this.getPane().appendChild(this._container), this._update(), this.on("update", this._updatePaths, this);
|
|
47071
47074
|
},
|
|
47072
47075
|
onRemove: function() {
|
|
47073
47076
|
this.off("update", this._updatePaths, this), this._destroyContainer();
|
|
@@ -47131,7 +47134,7 @@ var Kb = { exports: {} };
|
|
|
47131
47134
|
ue(l, "mousemove", this._onMouseMove, this), ue(l, "click dblclick mousedown mouseup contextmenu", this._onClick, this), ue(l, "mouseout", this._handleMouseOut, this), l._leaflet_disable_events = !0, this._ctx = l.getContext("2d");
|
|
47132
47135
|
},
|
|
47133
47136
|
_destroyContainer: function() {
|
|
47134
|
-
R(this._redrawRequest), delete this._ctx,
|
|
47137
|
+
R(this._redrawRequest), delete this._ctx, pe(this._container), Ie(this._container), delete this._container;
|
|
47135
47138
|
},
|
|
47136
47139
|
_updatePaths: function() {
|
|
47137
47140
|
if (!this._postponeUpdatePaths) {
|
|
@@ -47261,7 +47264,7 @@ var Kb = { exports: {} };
|
|
|
47261
47264
|
if (!this._mouseHoverThrottled) {
|
|
47262
47265
|
for (var y, P, O = this._drawFirst; O; O = O.next)
|
|
47263
47266
|
y = O.layer, y.options.interactive && y._containsPoint(d) && (P = y);
|
|
47264
|
-
P !== this._hoveredLayer && (this._handleMouseOut(l), P && (
|
|
47267
|
+
P !== this._hoveredLayer && (this._handleMouseOut(l), P && (Vt(this._container, "leaflet-interactive"), this._fireEvent([P], l, "mouseover"), this._hoveredLayer = P)), this._fireEvent(this._hoveredLayer ? [this._hoveredLayer] : !1, l), this._mouseHoverThrottled = !0, setTimeout(s(function() {
|
|
47265
47268
|
this._mouseHoverThrottled = !1;
|
|
47266
47269
|
}, this), 32);
|
|
47267
47270
|
}
|
|
@@ -47314,7 +47317,7 @@ var Kb = { exports: {} };
|
|
|
47314
47317
|
},
|
|
47315
47318
|
_initPath: function(l) {
|
|
47316
47319
|
var d = l._container = ya("shape");
|
|
47317
|
-
|
|
47320
|
+
Vt(d, "leaflet-vml-shape " + (this.options.className || "")), d.coordsize = "1 1", l._path = ya("path"), d.appendChild(l._path), this._updateStyle(l), this._layers[c(l)] = l;
|
|
47318
47321
|
},
|
|
47319
47322
|
_addPath: function(l) {
|
|
47320
47323
|
var d = l._container;
|
|
@@ -47322,7 +47325,7 @@ var Kb = { exports: {} };
|
|
|
47322
47325
|
},
|
|
47323
47326
|
_removePath: function(l) {
|
|
47324
47327
|
var d = l._container;
|
|
47325
|
-
|
|
47328
|
+
pe(d), l.removeInteractiveTarget(d), delete this._layers[c(l)];
|
|
47326
47329
|
},
|
|
47327
47330
|
_updateStyle: function(l) {
|
|
47328
47331
|
var d = l._stroke, y = l._fill, P = l.options, O = l._container;
|
|
@@ -47346,7 +47349,7 @@ var Kb = { exports: {} };
|
|
|
47346
47349
|
this._container = Ll("svg"), this._container.setAttribute("pointer-events", "none"), this._rootGroup = Ll("g"), this._container.appendChild(this._rootGroup);
|
|
47347
47350
|
},
|
|
47348
47351
|
_destroyContainer: function() {
|
|
47349
|
-
|
|
47352
|
+
pe(this._container), Ie(this._container), delete this._container, delete this._rootGroup, delete this._svgSize;
|
|
47350
47353
|
},
|
|
47351
47354
|
_update: function() {
|
|
47352
47355
|
if (!(this._map._animatingZoom && this._bounds)) {
|
|
@@ -47358,13 +47361,13 @@ var Kb = { exports: {} };
|
|
|
47358
47361
|
// methods below are called by vector layers implementations
|
|
47359
47362
|
_initPath: function(l) {
|
|
47360
47363
|
var d = l._path = Ll("path");
|
|
47361
|
-
l.options.className &&
|
|
47364
|
+
l.options.className && Vt(d, l.options.className), l.options.interactive && Vt(d, "leaflet-interactive"), this._updateStyle(l), this._layers[c(l)] = l;
|
|
47362
47365
|
},
|
|
47363
47366
|
_addPath: function(l) {
|
|
47364
47367
|
this._rootGroup || this._initContainer(), this._rootGroup.appendChild(l._path), l.addInteractiveTarget(l._path);
|
|
47365
47368
|
},
|
|
47366
47369
|
_removePath: function(l) {
|
|
47367
|
-
|
|
47370
|
+
pe(l._path), l.removeInteractiveTarget(l._path), delete this._layers[c(l)];
|
|
47368
47371
|
},
|
|
47369
47372
|
_updatePath: function(l) {
|
|
47370
47373
|
l._project(), l._update();
|
|
@@ -47374,7 +47377,7 @@ var Kb = { exports: {} };
|
|
|
47374
47377
|
d && (y.stroke ? (d.setAttribute("stroke", y.color), d.setAttribute("stroke-opacity", y.opacity), d.setAttribute("stroke-width", y.weight), d.setAttribute("stroke-linecap", y.lineCap), d.setAttribute("stroke-linejoin", y.lineJoin), y.dashArray ? d.setAttribute("stroke-dasharray", y.dashArray) : d.removeAttribute("stroke-dasharray"), y.dashOffset ? d.setAttribute("stroke-dashoffset", y.dashOffset) : d.removeAttribute("stroke-dashoffset")) : d.setAttribute("stroke", "none"), y.fill ? (d.setAttribute("fill", y.fillColor || y.color), d.setAttribute("fill-opacity", y.fillOpacity), d.setAttribute("fill-rule", y.fillRule || "evenodd")) : d.setAttribute("fill", "none"));
|
|
47375
47378
|
},
|
|
47376
47379
|
_updatePoly: function(l, d) {
|
|
47377
|
-
this._setPath(l,
|
|
47380
|
+
this._setPath(l, de(l._parts, d));
|
|
47378
47381
|
},
|
|
47379
47382
|
_updateCircle: function(l) {
|
|
47380
47383
|
var d = l._point, y = Math.max(Math.round(l._radius), 1), P = Math.max(Math.round(l._radiusY), 1) || y, O = "a" + y + "," + P + " 0 1,0 ", j = l._empty() ? "M0 0" : "M" + (d.x - y) + "," + d.y + O + y * 2 + ",0 " + O + -y * 2 + ",0 ";
|
|
@@ -47435,7 +47438,7 @@ var Kb = { exports: {} };
|
|
|
47435
47438
|
function va(l, d) {
|
|
47436
47439
|
return new Cu(l, d);
|
|
47437
47440
|
}
|
|
47438
|
-
In.create = Ll, In.pointsToPath =
|
|
47441
|
+
In.create = Ll, In.pointsToPath = de, ci.geometryToLayer = Ol, ci.coordsToLatLng = $n, ci.coordsToLatLngs = ha, ci.latLngToCoords = Ml, ci.latLngsToCoords = Mi, ci.getFeature = Yi, ci.asFeature = vs, Lt.mergeOptions({
|
|
47439
47442
|
// @option boxZoom: Boolean = true
|
|
47440
47443
|
// Whether the map can be zoomed to a rectangular area specified by
|
|
47441
47444
|
// dragging the mouse while pressing the shift key.
|
|
@@ -47455,7 +47458,7 @@ var Kb = { exports: {} };
|
|
|
47455
47458
|
return this._moved;
|
|
47456
47459
|
},
|
|
47457
47460
|
_destroy: function() {
|
|
47458
|
-
|
|
47461
|
+
pe(this._pane), delete this._pane;
|
|
47459
47462
|
},
|
|
47460
47463
|
_resetState: function() {
|
|
47461
47464
|
this._resetStateTimeout = 0, this._moved = !1;
|
|
@@ -47474,12 +47477,12 @@ var Kb = { exports: {} };
|
|
|
47474
47477
|
}, this);
|
|
47475
47478
|
},
|
|
47476
47479
|
_onMouseMove: function(l) {
|
|
47477
|
-
this._moved || (this._moved = !0, this._box = zt("div", "leaflet-zoom-box", this._container),
|
|
47480
|
+
this._moved || (this._moved = !0, this._box = zt("div", "leaflet-zoom-box", this._container), Vt(this._container, "leaflet-crosshair"), this._map.fire("boxzoomstart")), this._point = this._map.mouseEventToContainerPoint(l);
|
|
47478
47481
|
var d = new J(this._point, this._startPoint), y = d.getSize();
|
|
47479
47482
|
Qe(this._box, d.min), this._box.style.width = y.x + "px", this._box.style.height = y.y + "px";
|
|
47480
47483
|
},
|
|
47481
47484
|
_finish: function() {
|
|
47482
|
-
this._moved && (
|
|
47485
|
+
this._moved && (pe(this._box), le(this._container, "leaflet-crosshair")), ii(), ds(), Ie(document, {
|
|
47483
47486
|
contextmenu: Ao,
|
|
47484
47487
|
mousemove: this._onMouseMove,
|
|
47485
47488
|
mouseup: this._onMouseUp,
|
|
@@ -47565,7 +47568,7 @@ var Kb = { exports: {} };
|
|
|
47565
47568
|
dragend: this._onDragEnd
|
|
47566
47569
|
}, this), this._draggable.on("predrag", this._onPreDragLimit, this), l.options.worldCopyJump && (this._draggable.on("predrag", this._onPreDragWrap, this), l.on("zoomend", this._onZoomEnd, this), l.whenReady(this._onZoomEnd, this));
|
|
47567
47570
|
}
|
|
47568
|
-
|
|
47571
|
+
Vt(this._map._container, "leaflet-grab leaflet-touch-drag"), this._draggable.enable(), this._positions = [], this._times = [];
|
|
47569
47572
|
},
|
|
47570
47573
|
removeHooks: function() {
|
|
47571
47574
|
le(this._map._container, "leaflet-grab"), le(this._map._container, "leaflet-touch-drag"), this._draggable.disable();
|
|
@@ -47622,9 +47625,9 @@ var Kb = { exports: {} };
|
|
|
47622
47625
|
d.fire("moveend");
|
|
47623
47626
|
else {
|
|
47624
47627
|
this._prunePositions(+/* @__PURE__ */ new Date());
|
|
47625
|
-
var O = this._lastPos.subtract(this._positions[0]), j = (this._lastTime - this._times[0]) / 1e3, tt = y.easeLinearity, rt = O.multiplyBy(tt / j), at = rt.distanceTo([0, 0]), bt = Math.min(y.inertiaMaxSpeed, at), Rt = rt.multiplyBy(bt / at), Xt = bt / (y.inertiaDeceleration * tt),
|
|
47626
|
-
!
|
|
47627
|
-
d.panBy(
|
|
47628
|
+
var O = this._lastPos.subtract(this._positions[0]), j = (this._lastTime - this._times[0]) / 1e3, tt = y.easeLinearity, rt = O.multiplyBy(tt / j), at = rt.distanceTo([0, 0]), bt = Math.min(y.inertiaMaxSpeed, at), Rt = rt.multiplyBy(bt / at), Xt = bt / (y.inertiaDeceleration * tt), ye = Rt.multiplyBy(-Xt / 2).round();
|
|
47629
|
+
!ye.x && !ye.y ? d.fire("moveend") : (ye = d._limitOffset(ye, d.options.maxBounds), D(function() {
|
|
47630
|
+
d.panBy(ye, {
|
|
47628
47631
|
duration: Xt,
|
|
47629
47632
|
easeLinearity: tt,
|
|
47630
47633
|
noMoveStart: !0,
|
|
@@ -47839,7 +47842,7 @@ var Kb = { exports: {} };
|
|
|
47839
47842
|
});
|
|
47840
47843
|
var qf = Fn.extend({
|
|
47841
47844
|
addHooks: function() {
|
|
47842
|
-
|
|
47845
|
+
Vt(this._map._container, "leaflet-touch-zoom"), ue(this._map._container, "touchstart", this._onTouchStart, this);
|
|
47843
47846
|
},
|
|
47844
47847
|
removeHooks: function() {
|
|
47845
47848
|
le(this._map._container, "leaflet-touch-zoom"), Ie(this._map._container, "touchstart", this._onTouchStart, this);
|
|
@@ -50599,9 +50602,9 @@ function jdt(e, t, n = !0) {
|
|
|
50599
50602
|
u.top = ut[1];
|
|
50600
50603
|
continue;
|
|
50601
50604
|
}
|
|
50602
|
-
const
|
|
50603
|
-
if (
|
|
50604
|
-
u.right =
|
|
50605
|
+
const ft = m.match(/^right-\[([^\]]+)\]$/);
|
|
50606
|
+
if (ft) {
|
|
50607
|
+
u.right = ft[1];
|
|
50605
50608
|
continue;
|
|
50606
50609
|
}
|
|
50607
50610
|
const Nt = m.match(/^bottom-\[([^\]]+)\]$/);
|
|
@@ -50619,9 +50622,9 @@ function jdt(e, t, n = !0) {
|
|
|
50619
50622
|
u.inset = St[1];
|
|
50620
50623
|
continue;
|
|
50621
50624
|
}
|
|
50622
|
-
const
|
|
50623
|
-
if (
|
|
50624
|
-
u.zIndex = parseInt(
|
|
50625
|
+
const dt = m.match(/^z-\[([^\]]+)\]$/);
|
|
50626
|
+
if (dt) {
|
|
50627
|
+
u.zIndex = parseInt(dt[1]) || dt[1];
|
|
50625
50628
|
continue;
|
|
50626
50629
|
}
|
|
50627
50630
|
const Jt = m.match(/^opacity-\[([^\]]+)\]$/);
|
|
@@ -50629,9 +50632,9 @@ function jdt(e, t, n = !0) {
|
|
|
50629
50632
|
u.opacity = parseFloat(Jt[1]);
|
|
50630
50633
|
continue;
|
|
50631
50634
|
}
|
|
50632
|
-
const
|
|
50633
|
-
if (
|
|
50634
|
-
u.lineHeight =
|
|
50635
|
+
const de = m.match(/^leading-\[([^\]]+)\]$/);
|
|
50636
|
+
if (de) {
|
|
50637
|
+
u.lineHeight = de[1];
|
|
50635
50638
|
continue;
|
|
50636
50639
|
}
|
|
50637
50640
|
if (m === "flex") {
|
|
@@ -51336,9 +51339,9 @@ function jdt(e, t, n = !0) {
|
|
|
51336
51339
|
u.bottom = Se[ze[1]] || `${parseFloat(ze[1]) * 0.25}rem`;
|
|
51337
51340
|
continue;
|
|
51338
51341
|
}
|
|
51339
|
-
const
|
|
51340
|
-
if (
|
|
51341
|
-
const Ct = Se[
|
|
51342
|
+
const ge = m.match(/^-bottom-(\d+(?:\.\d+)?)$/);
|
|
51343
|
+
if (ge) {
|
|
51344
|
+
const Ct = Se[ge[1]] || `${parseFloat(ge[1]) * 0.25}rem`;
|
|
51342
51345
|
u.bottom = `-${Ct}`;
|
|
51343
51346
|
continue;
|
|
51344
51347
|
}
|
|
@@ -51532,20 +51535,20 @@ function jdt(e, t, n = !0) {
|
|
|
51532
51535
|
}
|
|
51533
51536
|
const ir = m.match(/^from-([\w-]+)(?:\/([\d]+))?$/);
|
|
51534
51537
|
if (ir) {
|
|
51535
|
-
const Ct = ir[1], Ge = ir[2],
|
|
51536
|
-
|
|
51538
|
+
const Ct = ir[1], Ge = ir[2], Vt = c[Ct];
|
|
51539
|
+
Vt && (p = Ge ? Pa(Vt, parseInt(Ge) / 100) : Vt);
|
|
51537
51540
|
continue;
|
|
51538
51541
|
}
|
|
51539
51542
|
const an = m.match(/^via-([\w-]+)(?:\/([\d]+))?$/);
|
|
51540
51543
|
if (an) {
|
|
51541
|
-
const Ct = an[1], Ge = an[2],
|
|
51542
|
-
|
|
51544
|
+
const Ct = an[1], Ge = an[2], Vt = c[Ct];
|
|
51545
|
+
Vt && (g = Ge ? Pa(Vt, parseInt(Ge) / 100) : Vt);
|
|
51543
51546
|
continue;
|
|
51544
51547
|
}
|
|
51545
51548
|
const ts = m.match(/^to-([\w-]+)(?:\/([\d]+))?$/);
|
|
51546
51549
|
if (ts) {
|
|
51547
|
-
const Ct = ts[1], Ge = ts[2],
|
|
51548
|
-
|
|
51550
|
+
const Ct = ts[1], Ge = ts[2], Vt = c[Ct];
|
|
51551
|
+
Vt && (x = Ge ? Pa(Vt, parseInt(Ge) / 100) : Vt);
|
|
51549
51552
|
continue;
|
|
51550
51553
|
}
|
|
51551
51554
|
const po = m.match(/^p-(\d+(?:\.\d+)?)$/);
|
|
@@ -51815,10 +51818,10 @@ function jdt(e, t, n = !0) {
|
|
|
51815
51818
|
}
|
|
51816
51819
|
const Fi = m.match(/^ring-([\w-]+)(?:\/([\d]+))?$/);
|
|
51817
51820
|
if (Fi && !m.match(/^ring-\d$/)) {
|
|
51818
|
-
const Ct = Fi[1], Ge = Fi[2],
|
|
51819
|
-
if (
|
|
51821
|
+
const Ct = Fi[1], Ge = Fi[2], Vt = c[Ct];
|
|
51822
|
+
if (Vt) {
|
|
51820
51823
|
const le = Ge ? parseInt(Ge) / 100 : 1;
|
|
51821
|
-
u.boxShadow && u.boxShadow.includes("0 0 0") && (u.boxShadow = u.boxShadow.replace(/rgba\([^)]+\)/, Pa(
|
|
51824
|
+
u.boxShadow && u.boxShadow.includes("0 0 0") && (u.boxShadow = u.boxShadow.replace(/rgba\([^)]+\)/, Pa(Vt, le)));
|
|
51822
51825
|
}
|
|
51823
51826
|
continue;
|
|
51824
51827
|
}
|
|
@@ -52030,9 +52033,9 @@ function jdt(e, t, n = !0) {
|
|
|
52030
52033
|
u.width = zt[1];
|
|
52031
52034
|
continue;
|
|
52032
52035
|
}
|
|
52033
|
-
const
|
|
52034
|
-
if (
|
|
52035
|
-
u.height =
|
|
52036
|
+
const pe = m.match(/^h-\[(.+)\]$/);
|
|
52037
|
+
if (pe) {
|
|
52038
|
+
u.height = pe[1];
|
|
52036
52039
|
continue;
|
|
52037
52040
|
}
|
|
52038
52041
|
const wo = m.match(/^min-h-\[(.+)\]$/);
|
|
@@ -52456,12 +52459,12 @@ function fT(e, t, n, r, i, o, s) {
|
|
|
52456
52459
|
yt
|
|
52457
52460
|
);
|
|
52458
52461
|
if (!$t) return !1;
|
|
52459
|
-
const [Tt, ut,
|
|
52462
|
+
const [Tt, ut, ft] = [
|
|
52460
52463
|
parseInt($t[1], 16),
|
|
52461
52464
|
parseInt($t[2], 16),
|
|
52462
52465
|
parseInt($t[3], 16)
|
|
52463
52466
|
];
|
|
52464
|
-
return (Tt * 299 + ut * 587 +
|
|
52467
|
+
return (Tt * 299 + ut * 587 + ft * 114) / 1e3 > 150;
|
|
52465
52468
|
})(t.colors.primary) ? "#000000" : "#ffffff", mt = {
|
|
52466
52469
|
primary: {
|
|
52467
52470
|
background: t.colors.primary,
|
|
@@ -52515,7 +52518,14 @@ function fT(e, t, n, r, i, o, s) {
|
|
|
52515
52518
|
}
|
|
52516
52519
|
)
|
|
52517
52520
|
) : null,
|
|
52518
|
-
u.skeleton && !v &&
|
|
52521
|
+
u.skeleton && !v && // Scope to the modal's OWN loading keys ({scene}|modal-*) so background
|
|
52522
|
+
// scene list refetches never mask an already-rendered modal body.
|
|
52523
|
+
(n.loading && Object.entries(n.loading).some(
|
|
52524
|
+
([H, J]) => {
|
|
52525
|
+
var ot;
|
|
52526
|
+
return J && ((ot = H.split("|")[1]) == null ? void 0 : ot.startsWith("modal"));
|
|
52527
|
+
}
|
|
52528
|
+
)) ? b.createElement(
|
|
52519
52529
|
"div",
|
|
52520
52530
|
{
|
|
52521
52531
|
key: "bf-modal-skeleton",
|
|
@@ -52610,7 +52620,7 @@ function Vdt({
|
|
|
52610
52620
|
remoteSessionId: U,
|
|
52611
52621
|
devDiagnostics: W
|
|
52612
52622
|
}) {
|
|
52613
|
-
var y, P, O, j, tt, rt, at, bt, Rt, Xt,
|
|
52623
|
+
var y, P, O, j, tt, rt, at, bt, Rt, Xt, ye, Un, xn, xr, Jn, Mo, Gf;
|
|
52614
52624
|
b.useEffect(() => {
|
|
52615
52625
|
if (typeof document > "u") return;
|
|
52616
52626
|
const C = (e == null ? void 0 : e.title) || a;
|
|
@@ -52655,7 +52665,7 @@ function Vdt({
|
|
|
52655
52665
|
colorMode: Lt.colorMode
|
|
52656
52666
|
},
|
|
52657
52667
|
vt
|
|
52658
|
-
), $t = I || "legacy", Tt = A || (S ? "hash" : "memory"), ut = Tt !== "memory", [
|
|
52668
|
+
), $t = I || "legacy", Tt = A || (S ? "hash" : "memory"), ut = Tt !== "memory", [ft, Nt] = b.useState(F), [nt, St] = b.useState(!1), [dt, Jt] = b.useState(!1), [de, Ce] = b.useState("idle"), { sceneToRoute: ae, routeToScene: sn } = b.useMemo(
|
|
52659
52669
|
() => Cdt(J),
|
|
52660
52670
|
[J]
|
|
52661
52671
|
), We = b.useMemo(() => {
|
|
@@ -52672,14 +52682,14 @@ function Vdt({
|
|
|
52672
52682
|
return We;
|
|
52673
52683
|
}, [We, ut, Tt, sn, ae]), [Xe, Je] = b.useState([]), [dr, pr] = b.useState(Sn), rr = b.useRef(null), Ve = Lz(rr), Or = b.useRef(!1);
|
|
52674
52684
|
b.useRef(null);
|
|
52675
|
-
const Zt = b.useRef(!1), te = b.useRef(!1), ze = b.useRef(0),
|
|
52685
|
+
const Zt = b.useRef(!1), te = b.useRef(!1), ze = b.useRef(0), ge = b.useRef(null), oe = b.useRef(!1), Ee = b.useRef(!1), be = b.useRef(
|
|
52676
52686
|
null
|
|
52677
52687
|
), mr = (C) => {
|
|
52678
52688
|
var M, $;
|
|
52679
52689
|
return (C == null ? void 0 : C.requiresAuth) === !0 || ((M = C == null ? void 0 : C.config) == null ? void 0 : M.requireAuth) === !0 || (($ = C == null ? void 0 : C.config) == null ? void 0 : $.requiresAuth) === !0;
|
|
52680
52690
|
}, gr = () => {
|
|
52681
52691
|
var Z;
|
|
52682
|
-
const C =
|
|
52692
|
+
const C = ge.current, $ = (C && H.some((B) => B.id === C) ? C : null) || ((Z = H.find(
|
|
52683
52693
|
(B) => B.type === "render_scene" && mr(B)
|
|
52684
52694
|
)) == null ? void 0 : Z.id);
|
|
52685
52695
|
$ && ut && (Tt === "hash" ? Vl($, ae, !0) : Ul($, ae, !0)), (!$ || !ut) && localStorage.setItem("backflow_post_auth_redirect", "1"), window.location.reload();
|
|
@@ -52729,26 +52739,26 @@ function Vdt({
|
|
|
52729
52739
|
}, [Ot, J]);
|
|
52730
52740
|
const an = (e == null ? void 0 : e.modals) || {};
|
|
52731
52741
|
b.useEffect(() => {
|
|
52732
|
-
if (!
|
|
52742
|
+
if (!ft) return;
|
|
52733
52743
|
const C = Lt.startupModal;
|
|
52734
|
-
!C || !an[C] || localStorage.getItem(`backflow_startup_modal_${C}`) ||
|
|
52735
|
-
}, [
|
|
52744
|
+
!C || !an[C] || localStorage.getItem(`backflow_startup_modal_${C}`) || pe({ id: C, definition: an[C] });
|
|
52745
|
+
}, [ft]);
|
|
52736
52746
|
const ts = b.useRef(
|
|
52737
52747
|
typeof window > "u" ? null : new URLSearchParams(window.location.search).get(
|
|
52738
52748
|
"customer_session_token"
|
|
52739
52749
|
)
|
|
52740
52750
|
);
|
|
52741
52751
|
b.useEffect(() => {
|
|
52742
|
-
if (!
|
|
52752
|
+
if (!ft || !ts.current || !an["payment-success"]) return;
|
|
52743
52753
|
window.history.replaceState({}, "", window.location.pathname);
|
|
52744
52754
|
const M = setTimeout(() => {
|
|
52745
|
-
an["payment-success"] &&
|
|
52755
|
+
an["payment-success"] && pe({
|
|
52746
52756
|
id: "payment-success",
|
|
52747
52757
|
definition: an["payment-success"]
|
|
52748
52758
|
});
|
|
52749
52759
|
}, 400);
|
|
52750
52760
|
return () => clearTimeout(M);
|
|
52751
|
-
}, [
|
|
52761
|
+
}, [ft, an["payment-success"]]), b.useEffect(() => {
|
|
52752
52762
|
q === !0 && (!Ot || J.some((C) => C.id === Ot) || We && ir(We));
|
|
52753
52763
|
}, [q, J, Ot, We]), b.useEffect(() => {
|
|
52754
52764
|
if (ut) {
|
|
@@ -52823,7 +52833,7 @@ function Vdt({
|
|
|
52823
52833
|
}));
|
|
52824
52834
|
} catch {
|
|
52825
52835
|
}
|
|
52826
|
-
}, [r,
|
|
52836
|
+
}, [r, ft, Ot]), b.useEffect(() => {
|
|
52827
52837
|
if (!ut || typeof window > "u") return;
|
|
52828
52838
|
const C = Tt === "hash" ? window.location.hash.slice(1) || "/" : window.location.pathname, M = qu(C, sn, ae);
|
|
52829
52839
|
if (!M || M.sceneId !== Ot) return;
|
|
@@ -52876,7 +52886,7 @@ function Vdt({
|
|
|
52876
52886
|
const C = Tt === "hash" ? window.location.hash.slice(1) || "/" : window.location.pathname, M = qu(C, sn, ae);
|
|
52877
52887
|
if (!(!M || M.sceneId === We))
|
|
52878
52888
|
return Ee.current = !0, be.current = setTimeout(() => {
|
|
52879
|
-
oe.current || (
|
|
52889
|
+
oe.current || (ft ? (pr(We), Je([]), v == null || v(We), Tt === "hash" ? Vl(We, ae, !0) : Ul(We, ae, !0)) : (te.current = !0, St(!0)));
|
|
52880
52890
|
}, 4e3), () => {
|
|
52881
52891
|
be.current && (clearTimeout(be.current), be.current = null);
|
|
52882
52892
|
};
|
|
@@ -52886,17 +52896,17 @@ function Vdt({
|
|
|
52886
52896
|
sn,
|
|
52887
52897
|
ae,
|
|
52888
52898
|
We,
|
|
52889
|
-
|
|
52899
|
+
ft,
|
|
52890
52900
|
v
|
|
52891
52901
|
]), b.useEffect(() => {
|
|
52892
52902
|
const C = () => {
|
|
52893
52903
|
const $ = localStorage.getItem("token");
|
|
52894
|
-
!(!!$ && !Hl($)) &&
|
|
52904
|
+
!(!!$ && !Hl($)) && ft && (te.current = !0, Ot && (ge.current = Ot), Nt(!1), St(!0));
|
|
52895
52905
|
}, M = setInterval(C, 15e3);
|
|
52896
52906
|
return window.addEventListener("storage", C), () => {
|
|
52897
52907
|
clearInterval(M), window.removeEventListener("storage", C);
|
|
52898
52908
|
};
|
|
52899
|
-
}, [
|
|
52909
|
+
}, [ft, Ot]), b.useEffect(() => {
|
|
52900
52910
|
U && he(
|
|
52901
52911
|
(C) => C.remoteSessionId === U ? C : { ...C, remoteSessionId: U }
|
|
52902
52912
|
);
|
|
@@ -52911,7 +52921,7 @@ function Vdt({
|
|
|
52911
52921
|
[Ot, ns]
|
|
52912
52922
|
), [go, rs] = b.useState({}), zi = b.useRef({}), Pi = b.useCallback(
|
|
52913
52923
|
async (C, M = !1) => {
|
|
52914
|
-
if (!
|
|
52924
|
+
if (!ft || !C.appId) return;
|
|
52915
52925
|
const $ = N || (t == null ? void 0 : t.endpoint) || window.location.origin, Z = !N && typeof $ == "string" && $.startsWith("/") ? $.replace(/\/+$/, "") : "", B = /^https?:\/\//.test($) ? $ : window.location.origin, K = `${Z}/mobile/apps/${encodeURIComponent(C.appId)}/workflow`, Y = await fetch(new URL(K, B).toString(), {
|
|
52916
52926
|
cache: M ? "no-cache" : "default",
|
|
52917
52927
|
headers: {
|
|
@@ -52924,7 +52934,7 @@ function Vdt({
|
|
|
52924
52934
|
throw new Error(`Workflow reference ${C.id} is invalid`);
|
|
52925
52935
|
rs((lt) => ({ ...lt, [C.id]: X }));
|
|
52926
52936
|
},
|
|
52927
|
-
[N, r,
|
|
52937
|
+
[N, r, ft, t]
|
|
52928
52938
|
);
|
|
52929
52939
|
b.useEffect(() => {
|
|
52930
52940
|
let C = !1;
|
|
@@ -53004,7 +53014,7 @@ function Vdt({
|
|
|
53004
53014
|
b.useEffect(() => {
|
|
53005
53015
|
ls.current.clear(), cs.current.clear(), ea([]);
|
|
53006
53016
|
}, [Ot]);
|
|
53007
|
-
const zn = b.useRef(/* @__PURE__ */ new Map()), vr = b.useRef(/* @__PURE__ */ new Map()), xo = b.useRef(/* @__PURE__ */ new Set()), [hs, Wi] = b.useState(!1), [zt,
|
|
53017
|
+
const zn = b.useRef(/* @__PURE__ */ new Map()), vr = b.useRef(/* @__PURE__ */ new Map()), xo = b.useRef(/* @__PURE__ */ new Set()), [hs, Wi] = b.useState(!1), [zt, pe] = b.useState(null), [wo, ni] = b.useState(
|
|
53008
53018
|
null
|
|
53009
53019
|
), Ct = b.useRef(zt);
|
|
53010
53020
|
Ct.current = zt;
|
|
@@ -53020,22 +53030,22 @@ function Vdt({
|
|
|
53020
53030
|
window.removeEventListener("scroll", C, !0), window.removeEventListener("resize", C);
|
|
53021
53031
|
};
|
|
53022
53032
|
}, [zt == null ? void 0 : zt.id, (rt = zt == null ? void 0 : zt.definition) == null ? void 0 : rt.popover]);
|
|
53023
|
-
const
|
|
53024
|
-
|
|
53033
|
+
const Vt = b.useCallback(() => {
|
|
53034
|
+
pe((C) => C ? { ...C, closing: !0 } : null), setTimeout(() => pe(null), 250);
|
|
53025
53035
|
}, []);
|
|
53026
53036
|
b.useEffect(() => {
|
|
53027
53037
|
var $;
|
|
53028
53038
|
const C = ($ = zt == null ? void 0 : zt.definition) == null ? void 0 : $.autoClose;
|
|
53029
53039
|
if (!C || C <= 0 || zt != null && zt.closing) return;
|
|
53030
|
-
const M = setTimeout(() =>
|
|
53040
|
+
const M = setTimeout(() => Vt(), C);
|
|
53031
53041
|
return () => clearTimeout(M);
|
|
53032
53042
|
}, [zt == null ? void 0 : zt.id]);
|
|
53033
53043
|
const [le, fs] = b.useState(null), gl = b.useCallback(() => {
|
|
53034
53044
|
fs((C) => C ? { ...C, closing: !0 } : null), setTimeout(() => fs(null), 250);
|
|
53035
53045
|
}, []), sr = Ve > 0 && Ve < Sh.md;
|
|
53036
53046
|
b.useEffect(() => {
|
|
53037
|
-
e && typeof e == "object" && (e.auth = { signedIn:
|
|
53038
|
-
}, [e,
|
|
53047
|
+
e && typeof e == "object" && (e.auth = { signedIn: ft });
|
|
53048
|
+
}, [e, ft]), b.useEffect(() => {
|
|
53039
53049
|
const C = e;
|
|
53040
53050
|
if (!C) return;
|
|
53041
53051
|
C.config || (C.config = {});
|
|
@@ -53114,7 +53124,7 @@ function Vdt({
|
|
|
53114
53124
|
te.current = !0, Nt(!1);
|
|
53115
53125
|
return;
|
|
53116
53126
|
}
|
|
53117
|
-
if (!
|
|
53127
|
+
if (!ft && (nt || te.current || !!ge.current)) {
|
|
53118
53128
|
gr();
|
|
53119
53129
|
return;
|
|
53120
53130
|
}
|
|
@@ -53167,7 +53177,7 @@ function Vdt({
|
|
|
53167
53177
|
), !te.current) {
|
|
53168
53178
|
te.current = !0, localStorage.removeItem("token"), Nt(!1);
|
|
53169
53179
|
const B = J.find((Y) => Y.id === Ot), K = (($ = B == null ? void 0 : B.config) == null ? void 0 : $.requireAuth) === !0 || (B == null ? void 0 : B.requiresAuth) === !0;
|
|
53170
|
-
(M || K || Ot && Ot !== We) && (St(!0), Ot && (
|
|
53180
|
+
(M || K || Ot && Ot !== We) && (St(!0), Ot && (ge.current = Ot));
|
|
53171
53181
|
}
|
|
53172
53182
|
return !0;
|
|
53173
53183
|
}
|
|
@@ -53242,7 +53252,7 @@ function Vdt({
|
|
|
53242
53252
|
const Z = Pn.current;
|
|
53243
53253
|
try {
|
|
53244
53254
|
if (M.startsWith("execute_workflow:")) {
|
|
53245
|
-
if (!
|
|
53255
|
+
if (!ft) return;
|
|
53246
53256
|
const { method: X, path: lt } = Mf(
|
|
53247
53257
|
M.replace("execute_workflow:", "")
|
|
53248
53258
|
), it = lt.replace(/:(\w+)/g, (Pt, Yt) => {
|
|
@@ -53270,8 +53280,8 @@ function Vdt({
|
|
|
53270
53280
|
Ae(C.onSuccess.value, "success");
|
|
53271
53281
|
else if (((K = C.onSuccess) == null ? void 0 : K.type) === "navigate" && C.onSuccess.value) {
|
|
53272
53282
|
const Pt = C.onSuccess.value;
|
|
53273
|
-
if (ot(Pt) && !
|
|
53274
|
-
|
|
53283
|
+
if (ot(Pt) && !ft) {
|
|
53284
|
+
ge.current = Pt, St(!0);
|
|
53275
53285
|
return;
|
|
53276
53286
|
}
|
|
53277
53287
|
Je((It) => [...It, Ot]), ir(Pt);
|
|
@@ -53284,15 +53294,15 @@ function Vdt({
|
|
|
53284
53294
|
}, he((Pt) => ({ ...Pt }));
|
|
53285
53295
|
} else if (M.startsWith("navigate:")) {
|
|
53286
53296
|
const X = M.replace("navigate:", "");
|
|
53287
|
-
if (ot(X) && !
|
|
53288
|
-
|
|
53297
|
+
if (ot(X) && !ft) {
|
|
53298
|
+
ge.current = X, St(!0);
|
|
53289
53299
|
return;
|
|
53290
53300
|
}
|
|
53291
53301
|
Je((it) => [...it, Ot]), ir(X);
|
|
53292
53302
|
} else if (M.startsWith("go_to_step:")) {
|
|
53293
53303
|
const X = M.replace("go_to_step:", "").split("?")[0].trim();
|
|
53294
|
-
if (ot(X) && !
|
|
53295
|
-
|
|
53304
|
+
if (ot(X) && !ft) {
|
|
53305
|
+
ge.current = X, St(!0);
|
|
53296
53306
|
return;
|
|
53297
53307
|
}
|
|
53298
53308
|
Je((it) => [...it, Ot]), ir(X);
|
|
@@ -53311,13 +53321,13 @@ function Vdt({
|
|
|
53311
53321
|
for (const Pt of Object.keys(Mt))
|
|
53312
53322
|
Pt.startsWith("__acc_") && (delete Mt[Pt], wt = !0);
|
|
53313
53323
|
return wt ? Mt : gt;
|
|
53314
|
-
}),
|
|
53324
|
+
}), pe({
|
|
53315
53325
|
id: X,
|
|
53316
53326
|
definition: lt
|
|
53317
|
-
});
|
|
53327
|
+
}), lt.preload && await la(String(lt.preload));
|
|
53318
53328
|
} else {
|
|
53319
53329
|
const lt = X.split("|");
|
|
53320
|
-
|
|
53330
|
+
pe({
|
|
53321
53331
|
id: "__legacy",
|
|
53322
53332
|
definition: {
|
|
53323
53333
|
title: lt[0] || "Notice",
|
|
@@ -53343,7 +53353,7 @@ function Vdt({
|
|
|
53343
53353
|
(Q = C.onError) != null && Q.message && Ae(C.onError.message, "error");
|
|
53344
53354
|
}
|
|
53345
53355
|
},
|
|
53346
|
-
[Ot, J,
|
|
53356
|
+
[Ot, J, ft]
|
|
53347
53357
|
), kf = b.useRef(null), xl = b.useRef(null);
|
|
53348
53358
|
b.useEffect(() => {
|
|
53349
53359
|
const C = xl.current;
|
|
@@ -53378,41 +53388,41 @@ function Vdt({
|
|
|
53378
53388
|
[]
|
|
53379
53389
|
), Fn = b.useRef({}), $f = b.useRef({}), xu = b.useRef({}), Ti = b.useRef(/* @__PURE__ */ new Map()), wl = b.useRef(/* @__PURE__ */ new Map()), oa = b.useRef(/* @__PURE__ */ new Set()), _l = b.useRef(/* @__PURE__ */ new Set()), qi = b.useRef(null), Sl = b.useRef([]), gs = b.useRef({}), Wn = b.useCallback(
|
|
53380
53390
|
async (C, M, $ = 0, Z = 10, B, K, Y, Q = !1, X = !1) => {
|
|
53381
|
-
var Yt, It,
|
|
53382
|
-
if (!C || te.current || !
|
|
53391
|
+
var Yt, It, Ft, fe, jt;
|
|
53392
|
+
if (!C || te.current || !ft) return;
|
|
53383
53393
|
const lt = `${M}|${C}|${$}|${Q}`, it = Ti.current.get(lt) || 0, gt = Fn.current[M] === C, Mt = $f.current[M] === lt;
|
|
53384
53394
|
if (!X && gt && Mt && Date.now() - it < 1e3) return;
|
|
53385
|
-
$f.current[M] = lt, Ti.current.set(lt, Date.now()), Fn.current[M] = C, $ === 0 && !Q && (fa.current[M] = 1), yo((
|
|
53395
|
+
$f.current[M] = lt, Ti.current.set(lt, Date.now()), Fn.current[M] = C, $ === 0 && !Q && (fa.current[M] = 1), yo((ht) => ({ ...ht, [M]: "" }));
|
|
53386
53396
|
const Pt = C.match(
|
|
53387
53397
|
/^\{\{\s*\[([\w/.-]+)\](?:\.([\w.]+))?\s*\}\}$/
|
|
53388
53398
|
);
|
|
53389
53399
|
if (Pt) {
|
|
53390
|
-
const
|
|
53400
|
+
const ht = kn(
|
|
53391
53401
|
`${Pt[1]}${Pt[2] ? "." + Pt[2] : ""}`
|
|
53392
53402
|
);
|
|
53393
|
-
if (Array.isArray(
|
|
53394
|
-
return Bt((xt) => ({ ...xt, [M]:
|
|
53403
|
+
if (Array.isArray(ht))
|
|
53404
|
+
return Bt((xt) => ({ ...xt, [M]: ht })), An.current[M] = ht, An.current[C] = ht, as((xt) => ({
|
|
53395
53405
|
...xt,
|
|
53396
53406
|
[M]: {
|
|
53397
53407
|
page: $,
|
|
53398
53408
|
limit: Z,
|
|
53399
|
-
total:
|
|
53400
|
-
hasMore: ($ + 1) * Z <
|
|
53409
|
+
total: ht.length,
|
|
53410
|
+
hasMore: ($ + 1) * Z < ht.length
|
|
53401
53411
|
}
|
|
53402
|
-
})),
|
|
53412
|
+
})), ht;
|
|
53403
53413
|
}
|
|
53404
53414
|
vo.current.has(M) || Ur.current[M] || (Ur.current[M] = setTimeout(() => {
|
|
53405
|
-
delete Ur.current[M], ss((
|
|
53415
|
+
delete Ur.current[M], ss((ht) => ({ ...ht, [M]: !0 }));
|
|
53406
53416
|
}, 180));
|
|
53407
53417
|
try {
|
|
53408
|
-
let
|
|
53418
|
+
let ht = [], xt = 0, _t;
|
|
53409
53419
|
const Kt = Pn.current;
|
|
53410
53420
|
if (na(C, M), Dd(C) && t) {
|
|
53411
53421
|
const Ut = If(C, {
|
|
53412
53422
|
limit: Z,
|
|
53413
53423
|
page: $
|
|
53414
53424
|
}), Me = B ? Mr(Ut, B, K) : Ut, Ht = Td(Me), se = await Wy(t, Ht, Kt);
|
|
53415
|
-
_t = se,
|
|
53425
|
+
_t = se, ht = (se == null ? void 0 : se.emails) || (se == null ? void 0 : se.items) || (se == null ? void 0 : se.data) || (se == null ? void 0 : se.history) || (Array.isArray(se) ? se : []), xt = ((Yt = se == null ? void 0 : se.pagination) == null ? void 0 : Yt.total) ?? (se == null ? void 0 : se.count) ?? ht.length;
|
|
53416
53426
|
} else if (!Dd(C)) {
|
|
53417
53427
|
const Ut = t == null ? void 0 : t.endpoint, Me = N || (Ut && /^https?:\/\//.test(Ut) ? Ut : window.location.origin);
|
|
53418
53428
|
let Ht = C;
|
|
@@ -53464,29 +53474,29 @@ function Vdt({
|
|
|
53464
53474
|
}
|
|
53465
53475
|
if (oe.current = !0, _t = _e, Zt.current) return;
|
|
53466
53476
|
const ws = Hn != null && Hn.responseKey ? _e == null ? void 0 : _e[Hn.responseKey] : _e;
|
|
53467
|
-
if (
|
|
53468
|
-
const Ki = Array.isArray(_e.results) ? _e.results[0] : null, Ze = (It = Ki == null ? void 0 : Ki.result) == null ? void 0 : It.steps, ve = Array.isArray(Ze) ? (
|
|
53469
|
-
Array.isArray(ve) ?
|
|
53477
|
+
if (ht = Array.isArray(ws) ? ws : Array.isArray(_e.data) ? _e.data : Array.isArray(_e.items) ? _e.items : Array.isArray(_e.roles) ? _e.roles : Array.isArray(_e.groups) ? _e.groups : [], ht.length === 0 && _e && typeof _e == "object") {
|
|
53478
|
+
const Ki = Array.isArray(_e.results) ? _e.results[0] : null, Ze = (It = Ki == null ? void 0 : Ki.result) == null ? void 0 : It.steps, ve = Array.isArray(Ze) ? (Ft = Ze[Ze.length - 1]) == null ? void 0 : Ft.output : null;
|
|
53479
|
+
Array.isArray(ve) ? ht = ve : Array.isArray(ve == null ? void 0 : ve.data) && (ht = ve.data);
|
|
53470
53480
|
}
|
|
53471
|
-
xt = ((
|
|
53481
|
+
xt = ((fe = _e.pagination) == null ? void 0 : fe.total) ?? _e.count ?? _e.total ?? ht.length;
|
|
53472
53482
|
}
|
|
53473
53483
|
if (Bt((Ut) => {
|
|
53474
53484
|
if (Q && Array.isArray(Ut[M])) {
|
|
53475
53485
|
const Me = new Set(Ut[M].map((se) => se == null ? void 0 : se.id)), Ht = [
|
|
53476
53486
|
...Ut[M],
|
|
53477
|
-
...
|
|
53487
|
+
...ht.filter((se) => !Me.has(se == null ? void 0 : se.id))
|
|
53478
53488
|
];
|
|
53479
53489
|
return { ...Ut, [M]: Ht };
|
|
53480
53490
|
}
|
|
53481
|
-
return { ...Ut, [M]:
|
|
53491
|
+
return { ...Ut, [M]: ht };
|
|
53482
53492
|
}), Ct.current && !Ct.current.closing) {
|
|
53483
|
-
const Ut = (jt = Pn.current) == null ? void 0 : jt.id, Me = Ut ?
|
|
53493
|
+
const Ut = (jt = Pn.current) == null ? void 0 : jt.id, Me = Ut ? ht.find((Ht) => (Ht == null ? void 0 : Ht.id) === Ut) : null;
|
|
53484
53494
|
Me && he((Ht) => Object.keys(Me).some(
|
|
53485
53495
|
(Hn) => JSON.stringify(Ht[Hn]) !== JSON.stringify(Me[Hn])
|
|
53486
53496
|
) ? { ...Ht, ...Me } : Ht);
|
|
53487
53497
|
}
|
|
53488
|
-
if (vo.current.add(M), An.current[M] =
|
|
53489
|
-
items:
|
|
53498
|
+
if (vo.current.add(M), An.current[M] = ht, C && (An.current[C] = ht), Y && (An.current[Y] = {
|
|
53499
|
+
items: ht,
|
|
53490
53500
|
response: _t
|
|
53491
53501
|
}, C)) {
|
|
53492
53502
|
const Ut = gs.current[Y];
|
|
@@ -53510,18 +53520,18 @@ function Vdt({
|
|
|
53510
53520
|
hasMore: typeof ((se = _t == null ? void 0 : _t.pagination) == null ? void 0 : se.hasMore) == "boolean" ? _t.pagination.hasMore : ($ + 1) * Z < xt
|
|
53511
53521
|
}
|
|
53512
53522
|
};
|
|
53513
|
-
}),
|
|
53514
|
-
} catch (
|
|
53515
|
-
if (
|
|
53516
|
-
yo((xt) => ({ ...xt, [M]:
|
|
53523
|
+
}), ht;
|
|
53524
|
+
} catch (ht) {
|
|
53525
|
+
if (ht instanceof Gi && Pu(ht)) return;
|
|
53526
|
+
yo((xt) => ({ ...xt, [M]: ht instanceof Error ? ht.message : "Could not load items." })), Bt((xt) => {
|
|
53517
53527
|
const _t = xt[M];
|
|
53518
53528
|
return Array.isArray(_t) && _t.length > 0 ? xt : { ...xt, [M]: [] };
|
|
53519
53529
|
});
|
|
53520
53530
|
} finally {
|
|
53521
|
-
Ur.current[M] && (clearTimeout(Ur.current[M]), delete Ur.current[M]), ss((
|
|
53531
|
+
Ur.current[M] && (clearTimeout(Ur.current[M]), delete Ur.current[M]), ss((ht) => ({ ...ht, [M]: !1 }));
|
|
53522
53532
|
}
|
|
53523
53533
|
},
|
|
53524
|
-
[t,
|
|
53534
|
+
[t, ft, na]
|
|
53525
53535
|
), br = () => {
|
|
53526
53536
|
const C = N || (t == null ? void 0 : t.endpoint);
|
|
53527
53537
|
return C && /^https?:\/\//.test(C) ? C : C != null && C.startsWith("/") ? `${window.location.origin}${C}` : window.location.origin;
|
|
@@ -53532,7 +53542,7 @@ function Vdt({
|
|
|
53532
53542
|
return N && /^https?:\/\//.test(N) ? new URL($, N).toString() : M && /^https?:\/\//.test(M) ? new URL($, M).toString() : !N && typeof M == "string" && M.startsWith("/") ? `${window.location.origin}${M.replace(/\/+$/, "")}${$}` : `${window.location.origin}${$}`;
|
|
53533
53543
|
};
|
|
53534
53544
|
b.useEffect(() => {
|
|
53535
|
-
if (
|
|
53545
|
+
if (ft) return;
|
|
53536
53546
|
let C = !0;
|
|
53537
53547
|
yl(!1), Ai(!1), Ui(!1);
|
|
53538
53548
|
const M = w ? `?tenant_id=${encodeURIComponent(w)}` : "", $ = {}, Z = ["localhost", "127.0.0.1", "[::1]"].includes(
|
|
@@ -53551,11 +53561,11 @@ function Vdt({
|
|
|
53551
53561
|
}), () => {
|
|
53552
53562
|
C = !1;
|
|
53553
53563
|
};
|
|
53554
|
-
}, [
|
|
53564
|
+
}, [ft, w, E]);
|
|
53555
53565
|
const wu = b.useRef(null);
|
|
53556
53566
|
b.useEffect(() => {
|
|
53557
53567
|
var B;
|
|
53558
|
-
if (!
|
|
53568
|
+
if (!ft) return;
|
|
53559
53569
|
const C = r || localStorage.getItem("token");
|
|
53560
53570
|
if (!C) {
|
|
53561
53571
|
G(!0);
|
|
@@ -53579,14 +53589,14 @@ function Vdt({
|
|
|
53579
53589
|
typeof ((K = Q == null ? void 0 : Q.user) == null ? void 0 : K.emailVerified) == "boolean" ? Q.user.emailVerified : null
|
|
53580
53590
|
);
|
|
53581
53591
|
} else
|
|
53582
|
-
Ot && (
|
|
53592
|
+
Ot && (ge.current = Ot), wu.current = null, G(!0), Nt(!1), st(null);
|
|
53583
53593
|
} catch {
|
|
53584
|
-
Z || (Ot && (
|
|
53594
|
+
Z || (Ot && (ge.current = Ot), G(!0));
|
|
53585
53595
|
}
|
|
53586
53596
|
})(), () => {
|
|
53587
53597
|
Z = !0;
|
|
53588
53598
|
};
|
|
53589
|
-
}, [
|
|
53599
|
+
}, [ft, Ot, e == null ? void 0 : e.steps]);
|
|
53590
53600
|
const _u = b.useCallback(
|
|
53591
53601
|
(C, M, $) => {
|
|
53592
53602
|
!C || M.length === 0 || Bt((Z) => {
|
|
@@ -53943,13 +53953,13 @@ function Vdt({
|
|
|
53943
53953
|
}
|
|
53944
53954
|
}
|
|
53945
53955
|
const la = async (C, M) => {
|
|
53946
|
-
var Pt, Yt, It,
|
|
53947
|
-
if (te.current || !
|
|
53956
|
+
var Pt, Yt, It, Ft, fe;
|
|
53957
|
+
if (te.current || !ft && nt) return;
|
|
53948
53958
|
const { method: $, path: Z } = Mf(C), B = vg(Z), K = $ !== "GET" && $ !== "DELETE", Y = br();
|
|
53949
53959
|
let Q = M == null ? void 0 : M.payload;
|
|
53950
53960
|
if (Q && typeof Q == "object" && typeof Q.$condiments == "string") {
|
|
53951
|
-
const jt = Q.$condiments,
|
|
53952
|
-
(Kt) => Kt.startsWith(jt) &&
|
|
53961
|
+
const jt = Q.$condiments, ht = Pn.current || {}, xt = Object.keys(ht).filter(
|
|
53962
|
+
(Kt) => Kt.startsWith(jt) && ht[Kt] !== !1 && ht[Kt] !== void 0 && ht[Kt] !== null && ht[Kt] !== ""
|
|
53953
53963
|
).map((Kt) => ({ id: Kt.slice(jt.length), qty: 1 })), _t = Array.isArray(Q.items) ? Q.items : null;
|
|
53954
53964
|
Q = _t && _t.length ? {
|
|
53955
53965
|
...Q,
|
|
@@ -53957,7 +53967,7 @@ function Vdt({
|
|
|
53957
53967
|
} : { ...Q, condiments: xt }, delete Q.$condiments, M = { ...M, payload: Q };
|
|
53958
53968
|
}
|
|
53959
53969
|
if (Q && typeof Q == "object" && Q.$adjustQty && Q.$append) {
|
|
53960
|
-
const jt = Q.$adjustQty || {},
|
|
53970
|
+
const jt = Q.$adjustQty || {}, ht = kn(String(Q.$append)), xt = (Array.isArray(ht) ? ht : []).map((Ut) => ({
|
|
53961
53971
|
menu_id: Ut == null ? void 0 : Ut.menu_id,
|
|
53962
53972
|
qty: Number(Ut == null ? void 0 : Ut.qty) || 1,
|
|
53963
53973
|
...Array.isArray(Ut == null ? void 0 : Ut.condiments) && Ut.condiments.length ? { condiments: Ut.condiments } : {}
|
|
@@ -53968,36 +53978,36 @@ function Vdt({
|
|
|
53968
53978
|
}, delete Q.$adjustQty, delete Q.$append, M = { ...M, payload: Q };
|
|
53969
53979
|
}
|
|
53970
53980
|
if (Q && typeof Q == "object" && Q.$append) {
|
|
53971
|
-
const jt = kn(String(Q.$append)),
|
|
53981
|
+
const jt = kn(String(Q.$append)), ht = (Array.isArray(jt) ? jt : []).map((_t) => ({
|
|
53972
53982
|
menu_id: _t == null ? void 0 : _t.menu_id,
|
|
53973
53983
|
qty: Number(_t == null ? void 0 : _t.qty) || 1,
|
|
53974
53984
|
...Array.isArray(_t == null ? void 0 : _t.condiments) && _t.condiments.length ? { condiments: _t.condiments } : {}
|
|
53975
53985
|
})).filter((_t) => _t.menu_id), xt = Array.isArray(Q.items) ? Q.items : [];
|
|
53976
53986
|
for (const _t of xt) {
|
|
53977
|
-
const Kt =
|
|
53978
|
-
Kt && (_t != null && _t.menu_id) ? (Kt.qty = Number(Kt.qty || 0) + (Number(_t == null ? void 0 : _t.qty) || 1), Array.isArray(_t == null ? void 0 : _t.condiments) && _t.condiments.length && (Kt.condiments = _t.condiments)) :
|
|
53987
|
+
const Kt = ht.find((Ut) => Ut.menu_id === (_t == null ? void 0 : _t.menu_id));
|
|
53988
|
+
Kt && (_t != null && _t.menu_id) ? (Kt.qty = Number(Kt.qty || 0) + (Number(_t == null ? void 0 : _t.qty) || 1), Array.isArray(_t == null ? void 0 : _t.condiments) && _t.condiments.length && (Kt.condiments = _t.condiments)) : ht.push(_t);
|
|
53979
53989
|
}
|
|
53980
|
-
Q = { ...Q, items:
|
|
53990
|
+
Q = { ...Q, items: ht }, delete Q.$append, M = { ...M, payload: Q };
|
|
53981
53991
|
}
|
|
53982
53992
|
let X;
|
|
53983
53993
|
if (M != null && M.payload && typeof M.payload == "object") {
|
|
53984
|
-
const jt = (
|
|
53985
|
-
if (typeof
|
|
53986
|
-
const xt =
|
|
53994
|
+
const jt = (ht) => {
|
|
53995
|
+
if (typeof ht == "string") {
|
|
53996
|
+
const xt = ht.match(/^\{\{\s*([\w.]+)\s*\}\}$/);
|
|
53987
53997
|
if (xt) {
|
|
53988
53998
|
const _t = kn(xt[1]);
|
|
53989
53999
|
if (_t !== void 0)
|
|
53990
54000
|
return _t === "true" ? !0 : _t === "false" ? !1 : _t;
|
|
53991
54001
|
}
|
|
53992
|
-
return
|
|
54002
|
+
return ht.includes("{{") ? Tl(ht) : ht;
|
|
53993
54003
|
}
|
|
53994
|
-
if (Array.isArray(
|
|
53995
|
-
if (
|
|
54004
|
+
if (Array.isArray(ht)) return ht.map(jt);
|
|
54005
|
+
if (ht && typeof ht == "object") {
|
|
53996
54006
|
const xt = {};
|
|
53997
|
-
for (const [_t, Kt] of Object.entries(
|
|
54007
|
+
for (const [_t, Kt] of Object.entries(ht)) xt[_t] = jt(Kt);
|
|
53998
54008
|
return xt;
|
|
53999
54009
|
}
|
|
54000
|
-
return
|
|
54010
|
+
return ht;
|
|
54001
54011
|
};
|
|
54002
54012
|
X = jt(M.payload);
|
|
54003
54013
|
} else
|
|
@@ -54032,16 +54042,16 @@ function Vdt({
|
|
|
54032
54042
|
if (!lt.ok || it.success === !1) {
|
|
54033
54043
|
Gr(B, M == null ? void 0 : M.refetchScope);
|
|
54034
54044
|
let jt = ["Something went wrong"];
|
|
54035
|
-
const
|
|
54036
|
-
if (
|
|
54037
|
-
const xt =
|
|
54045
|
+
const ht = typeof it.error == "string" ? it.error : (Pt = it.error) == null ? void 0 : Pt.message;
|
|
54046
|
+
if (ht) {
|
|
54047
|
+
const xt = ht.replace(/^Validation failed:\s*/i, "");
|
|
54038
54048
|
jt = Su(xt) || [xt];
|
|
54039
54049
|
} else it.message && (jt = [it.message]);
|
|
54040
54050
|
throw new Gi(jt, it);
|
|
54041
54051
|
}
|
|
54042
54052
|
it.token && localStorage.setItem("token", it.token), M != null && M.openUrl && (it != null && it.url) && String(it.url).startsWith("http") && window.open(String(it.url), "_blank", "noopener,noreferrer"), it && typeof it == "object" && !Array.isArray(it) && he((jt) => ({ ...jt, feedback: it })), it.data && (M == null ? void 0 : M.mergeResponse) !== !1 && he((jt) => ({ ...jt, ...it.data })), it.user && typeof it.user == "object" ? he((jt) => ({ ...jt, user: it.user })) : he((jt) => ({ ...jt })), An.current[B.replace(/^\//, "")] = { response: it };
|
|
54043
|
-
for (const [jt,
|
|
54044
|
-
if (
|
|
54053
|
+
for (const [jt, ht] of Object.entries(gs.current))
|
|
54054
|
+
if (ht === B || ht.endsWith(B)) {
|
|
54045
54055
|
const xt = An.current[jt];
|
|
54046
54056
|
An.current[jt] = {
|
|
54047
54057
|
items: Array.isArray(xt) ? xt : Array.isArray(xt == null ? void 0 : xt.items) ? xt.items : [],
|
|
@@ -54050,7 +54060,7 @@ function Vdt({
|
|
|
54050
54060
|
}
|
|
54051
54061
|
const gt = (It = (Yt = it.subscribe) == null ? void 0 : Yt.websocket) == null ? void 0 : It.workflowChannel;
|
|
54052
54062
|
gt && (M == null ? void 0 : M.mergeResponse) !== !1 && he((jt) => {
|
|
54053
|
-
var
|
|
54063
|
+
var ht, xt, _t, Kt;
|
|
54054
54064
|
return {
|
|
54055
54065
|
...jt,
|
|
54056
54066
|
liveCastChannel: gt,
|
|
@@ -54059,7 +54069,7 @@ function Vdt({
|
|
|
54059
54069
|
status: "running",
|
|
54060
54070
|
test_session: {
|
|
54061
54071
|
...jt.test_session || {},
|
|
54062
|
-
id: it.sessionId || ((
|
|
54072
|
+
id: it.sessionId || ((ht = jt.test_session) == null ? void 0 : ht.id),
|
|
54063
54073
|
execution_id: it.draftId || ((xt = jt.test_session) == null ? void 0 : xt.execution_id),
|
|
54064
54074
|
status: "running",
|
|
54065
54075
|
liveCastChannel: gt,
|
|
@@ -54069,10 +54079,10 @@ function Vdt({
|
|
|
54069
54079
|
};
|
|
54070
54080
|
}), Gr(B, M == null ? void 0 : M.refetchScope, !0);
|
|
54071
54081
|
const Mt = M == null ? void 0 : M.feedback, wt = typeof Mt == "string" ? Mt : Mt == null ? void 0 : Mt.transport;
|
|
54072
|
-
if (wt && it.jobId && (it.token || (
|
|
54073
|
-
let jt = (
|
|
54082
|
+
if (wt && it.jobId && (it.token || (Ft = it.subscribe) != null && Ft.sse || typeof Mt == "object")) {
|
|
54083
|
+
let jt = (fe = it.subscribe) != null && fe.sse ? /^https?:\/\//.test(it.subscribe.sse) ? it.subscribe.sse : Y + it.subscribe.sse : void 0;
|
|
54074
54084
|
if (typeof Mt == "object" && Mt.subscribeUrl) {
|
|
54075
|
-
const
|
|
54085
|
+
const ht = String(Mt.subscribeUrl).trim(), xt = ht.startsWith("{{") && ht.endsWith("}}") ? ht.slice(2, -2).trim() : ht, _t = xt.match(/^\[(.+?)\](?:\.(.*))?$/), Kt = _t ? kn(
|
|
54076
54086
|
`${_t[1]}${_t[2] ? "." + _t[2] : ""}`
|
|
54077
54087
|
) : xt.split(".").reduce(
|
|
54078
54088
|
(Ut, Me) => Ut == null ? void 0 : Ut[Me],
|
|
@@ -54083,13 +54093,13 @@ function Vdt({
|
|
|
54083
54093
|
if (jt) {
|
|
54084
54094
|
li(wt, it.jobId, it.token, {
|
|
54085
54095
|
sseUrl: jt,
|
|
54086
|
-
onProgress: (
|
|
54087
|
-
s == null || s(
|
|
54096
|
+
onProgress: (ht) => {
|
|
54097
|
+
s == null || s(ht);
|
|
54088
54098
|
const xt = Date.now();
|
|
54089
54099
|
xt - ze.current >= 2e3 && (ze.current = xt, Gr(B, M == null ? void 0 : M.refetchScope));
|
|
54090
54100
|
},
|
|
54091
|
-
onComplete: (
|
|
54092
|
-
const xt = (
|
|
54101
|
+
onComplete: (ht) => {
|
|
54102
|
+
const xt = (ht == null ? void 0 : ht.result) ?? ht;
|
|
54093
54103
|
if (xt && typeof xt == "object") {
|
|
54094
54104
|
const _t = B.replace(/^\//, "");
|
|
54095
54105
|
An.current[_t] = {
|
|
@@ -54098,35 +54108,35 @@ function Vdt({
|
|
|
54098
54108
|
}
|
|
54099
54109
|
Gr(B, M == null ? void 0 : M.refetchScope, !0);
|
|
54100
54110
|
},
|
|
54101
|
-
onFailed: (
|
|
54102
|
-
Gr(B, M == null ? void 0 : M.refetchScope, !0),
|
|
54111
|
+
onFailed: (ht) => {
|
|
54112
|
+
Gr(B, M == null ? void 0 : M.refetchScope, !0), ht.kind !== "transport" && Ae(ht.message || "Job failed", "error");
|
|
54103
54113
|
}
|
|
54104
54114
|
});
|
|
54105
54115
|
return;
|
|
54106
54116
|
}
|
|
54107
54117
|
li(wt, it.jobId, it.token, {
|
|
54108
|
-
onComplete: (
|
|
54109
|
-
const xt =
|
|
54118
|
+
onComplete: (ht) => {
|
|
54119
|
+
const xt = ht || {}, _t = xt.total, Kt = xt.successful;
|
|
54110
54120
|
_t !== void 0 && Ae(
|
|
54111
54121
|
Kt >= _t ? `${Kt} completed` : `${Kt} of ${_t} completed`,
|
|
54112
54122
|
"success"
|
|
54113
54123
|
), Gr(B, M == null ? void 0 : M.refetchScope, !0);
|
|
54114
54124
|
},
|
|
54115
|
-
onFailed: (
|
|
54116
|
-
if (
|
|
54125
|
+
onFailed: (ht) => {
|
|
54126
|
+
if (ht.kind === "transport") {
|
|
54117
54127
|
Gr(B, M == null ? void 0 : M.refetchScope, !0);
|
|
54118
54128
|
return;
|
|
54119
54129
|
}
|
|
54120
|
-
Ae(
|
|
54130
|
+
Ae(ht.message || "Job failed", "error"), Gr(B, M == null ? void 0 : M.refetchScope, !0);
|
|
54121
54131
|
}
|
|
54122
54132
|
});
|
|
54123
54133
|
}
|
|
54124
54134
|
}, Ci = (C) => {
|
|
54125
54135
|
var Z, B;
|
|
54126
|
-
|
|
54136
|
+
pe(null);
|
|
54127
54137
|
const M = C === "/" && (((Z = J.find((K) => K.route === "/")) == null ? void 0 : Z.id) || ((B = J.find((K) => K.type === "render_scene")) == null ? void 0 : B.id)) || C;
|
|
54128
|
-
if (ot(M) && !
|
|
54129
|
-
|
|
54138
|
+
if (ot(M) && !ft) {
|
|
54139
|
+
ge.current = M, St(!0);
|
|
54130
54140
|
return;
|
|
54131
54141
|
}
|
|
54132
54142
|
Je((K) => [...K, Ot]), ir(M);
|
|
@@ -54142,13 +54152,13 @@ ${C.message}` : C.message;
|
|
|
54142
54152
|
return;
|
|
54143
54153
|
}
|
|
54144
54154
|
if (C.modalId && an[C.modalId]) {
|
|
54145
|
-
|
|
54155
|
+
pe({
|
|
54146
54156
|
id: C.modalId,
|
|
54147
54157
|
definition: an[C.modalId]
|
|
54148
54158
|
});
|
|
54149
54159
|
return;
|
|
54150
54160
|
}
|
|
54151
|
-
|
|
54161
|
+
pe({
|
|
54152
54162
|
id: "__legacy",
|
|
54153
54163
|
definition: {
|
|
54154
54164
|
title: C.uiTitle || "Usage Notice",
|
|
@@ -54176,12 +54186,12 @@ ${C.message}` : C.message;
|
|
|
54176
54186
|
};
|
|
54177
54187
|
b.useEffect(() => {
|
|
54178
54188
|
var K;
|
|
54179
|
-
if (!
|
|
54180
|
-
const C =
|
|
54189
|
+
if (!ft || q) return;
|
|
54190
|
+
const C = ge.current, M = C && J.some((Y) => Y.id === C), Z = localStorage.getItem("backflow_post_auth_redirect") === "1" ? (K = J.find(
|
|
54181
54191
|
(Y) => Y.type === "render_scene" && mr(Y)
|
|
54182
54192
|
)) == null ? void 0 : K.id : null, B = M ? C : Z;
|
|
54183
|
-
B && (localStorage.removeItem("backflow_post_auth_redirect"),
|
|
54184
|
-
}, [
|
|
54193
|
+
B && (localStorage.removeItem("backflow_post_auth_redirect"), ge.current = null, Ci(B));
|
|
54194
|
+
}, [ft, q, J]);
|
|
54185
54195
|
const Ae = (C, M = "success", $) => {
|
|
54186
54196
|
const Z = Array.isArray(C) ? C.join(`
|
|
54187
54197
|
`) : C, B = M === "success", K = B ? "#10B981" : "#EF4444", Y = Lt.toast || {}, Q = $ ?? Y.duration ?? 3e3, X = Y.position || "bottom-right", lt = {
|
|
@@ -54270,7 +54280,7 @@ ${C.message}` : C.message;
|
|
|
54270
54280
|
K && (window.location.href = K);
|
|
54271
54281
|
break;
|
|
54272
54282
|
case "modal":
|
|
54273
|
-
K && an[K] ?
|
|
54283
|
+
K && an[K] ? pe({ id: K, definition: an[K] }) : pe({
|
|
54274
54284
|
id: "__legacy",
|
|
54275
54285
|
definition: {
|
|
54276
54286
|
title: Y || "Success",
|
|
@@ -54304,7 +54314,7 @@ ${C.message}` : C.message;
|
|
|
54304
54314
|
const Tn = ((Ji = kt.data) == null ? void 0 : Ji.refreshToken) || kt.refreshToken, wr = ri !== "login" || Dt;
|
|
54305
54315
|
Tn && wr && localStorage.setItem("backflow_refresh_token", Tn);
|
|
54306
54316
|
const _r = ((hw = (uw = kt.data) == null ? void 0 : uw.user) == null ? void 0 : hw.id) || ((fw = kt.user) == null ? void 0 : fw.id) || ((dw = kt.data) == null ? void 0 : dw.userId);
|
|
54307
|
-
if (_r && wr && localStorage.setItem("backflow_refresh_user_id", _r), !
|
|
54317
|
+
if (_r && wr && localStorage.setItem("backflow_refresh_user_id", _r), !ft && (nt || te.current || !!ge.current)) {
|
|
54308
54318
|
gr();
|
|
54309
54319
|
return;
|
|
54310
54320
|
}
|
|
@@ -54423,10 +54433,10 @@ ${C.message}` : C.message;
|
|
|
54423
54433
|
}
|
|
54424
54434
|
}, Y = (kt) => {
|
|
54425
54435
|
Vi(kt), Mn(null), kt !== "reset" && (So(""), Hr("")), ra(""), ia({}), Ui(!1);
|
|
54426
|
-
}, Q = ((Hn = e == null ? void 0 : e.config) == null ? void 0 : Hn.auth) || {}, X = Q.style === "page" ? "page" : "modal", lt = Q.containerStyle || {}, it = lt.backgroundColor || "#000000", gt = Cd(it) === "dark", Mt = gt ? "#f3f4f6" : "#111827", wt = gt ? "#9ca3af" : "#6b7280", Pt = gt ? "#374151" : "#f3f4f6", Yt = gt ? "#4b5563" : "#d1d5db", It = ((ar = Lt.colors) == null ? void 0 : ar.primary) || (gt ? "#ffffff" : "#000000"),
|
|
54436
|
+
}, Q = ((Hn = e == null ? void 0 : e.config) == null ? void 0 : Hn.auth) || {}, X = Q.style === "page" ? "page" : "modal", lt = Q.containerStyle || {}, it = lt.backgroundColor || "#000000", gt = Cd(it) === "dark", Mt = gt ? "#f3f4f6" : "#111827", wt = gt ? "#9ca3af" : "#6b7280", Pt = gt ? "#374151" : "#f3f4f6", Yt = gt ? "#4b5563" : "#d1d5db", It = ((ar = Lt.colors) == null ? void 0 : ar.primary) || (gt ? "#ffffff" : "#000000"), Ft = (() => {
|
|
54427
54437
|
const kt = String(It).replace("#", ""), Dt = kt.length === 3 ? kt.split("").map((_r) => _r + _r).join("") : kt, ce = parseInt(Dt.slice(0, 2), 16), Tn = parseInt(Dt.slice(2, 4), 16), wr = parseInt(Dt.slice(4, 6), 16);
|
|
54428
54438
|
return [ce, Tn, wr].some((_r) => Number.isNaN(_r)) ? 0 : (0.299 * ce + 0.587 * Tn + 0.114 * wr) / 255;
|
|
54429
|
-
})(),
|
|
54439
|
+
})(), fe = It, jt = Ft > 0.62 ? "#111827" : "#ffffff", ht = "#ef4444", xt = (kt = "12px") => ({
|
|
54430
54440
|
width: "100%",
|
|
54431
54441
|
padding: "12px 16px",
|
|
54432
54442
|
border: `1px solid ${Yt}`,
|
|
@@ -54508,7 +54518,7 @@ ${C.message}` : C.message;
|
|
|
54508
54518
|
// Tailwind preflight sets appearance:none — restore native paint so the check is visible
|
|
54509
54519
|
appearance: "auto",
|
|
54510
54520
|
WebkitAppearance: "auto",
|
|
54511
|
-
accentColor:
|
|
54521
|
+
accentColor: fe,
|
|
54512
54522
|
colorScheme: gt ? "dark" : "light",
|
|
54513
54523
|
outline: `1px solid ${Yt}`,
|
|
54514
54524
|
outlineOffset: "-1px",
|
|
@@ -54547,7 +54557,7 @@ ${C.message}` : C.message;
|
|
|
54547
54557
|
padding: "10px",
|
|
54548
54558
|
borderRadius: "8px",
|
|
54549
54559
|
border: "none",
|
|
54550
|
-
backgroundColor:
|
|
54560
|
+
backgroundColor: fe,
|
|
54551
54561
|
color: jt,
|
|
54552
54562
|
fontWeight: 600,
|
|
54553
54563
|
cursor: "pointer"
|
|
@@ -54575,7 +54585,7 @@ ${C.message}` : C.message;
|
|
|
54575
54585
|
style: {
|
|
54576
54586
|
...xt("0px"),
|
|
54577
54587
|
paddingRight: "40px",
|
|
54578
|
-
borderColor: _r ?
|
|
54588
|
+
borderColor: _r ? ht : Yt
|
|
54579
54589
|
}
|
|
54580
54590
|
}),
|
|
54581
54591
|
b.createElement(
|
|
@@ -54612,7 +54622,7 @@ ${C.message}` : C.message;
|
|
|
54612
54622
|
role: "button",
|
|
54613
54623
|
"aria-label": "Go back home",
|
|
54614
54624
|
onClick: () => {
|
|
54615
|
-
Ci("/"), St(!1), te.current = !1,
|
|
54625
|
+
Ci("/"), St(!1), te.current = !1, ge.current = null;
|
|
54616
54626
|
},
|
|
54617
54627
|
style: {
|
|
54618
54628
|
display: "flex",
|
|
@@ -54754,7 +54764,7 @@ ${C.message}` : C.message;
|
|
|
54754
54764
|
},
|
|
54755
54765
|
style: {
|
|
54756
54766
|
...xt(),
|
|
54757
|
-
borderColor: we.email && $e ?
|
|
54767
|
+
borderColor: we.email && $e ? ht : Yt
|
|
54758
54768
|
}
|
|
54759
54769
|
})
|
|
54760
54770
|
), we.email && $e && Ht.push(
|
|
@@ -54763,7 +54773,7 @@ ${C.message}` : C.message;
|
|
|
54763
54773
|
{
|
|
54764
54774
|
key: "email-err",
|
|
54765
54775
|
style: {
|
|
54766
|
-
color:
|
|
54776
|
+
color: ht,
|
|
54767
54777
|
fontSize: "12px",
|
|
54768
54778
|
marginTop: "-8px",
|
|
54769
54779
|
marginBottom: "8px"
|
|
@@ -54783,14 +54793,14 @@ ${C.message}` : C.message;
|
|
|
54783
54793
|
tenantId: w,
|
|
54784
54794
|
appId: Dt ? void 0 : E,
|
|
54785
54795
|
inputStyle: xt(),
|
|
54786
|
-
errorColor:
|
|
54796
|
+
errorColor: ht,
|
|
54787
54797
|
buttonStyle: {
|
|
54788
54798
|
width: "100%",
|
|
54789
54799
|
padding: "12px",
|
|
54790
54800
|
borderRadius: "8px",
|
|
54791
54801
|
fontSize: "15px",
|
|
54792
54802
|
fontWeight: 600,
|
|
54793
|
-
backgroundColor:
|
|
54803
|
+
backgroundColor: fe,
|
|
54794
54804
|
color: jt,
|
|
54795
54805
|
border: "none",
|
|
54796
54806
|
marginBottom: "8px",
|
|
@@ -54818,7 +54828,7 @@ ${C.message}` : C.message;
|
|
|
54818
54828
|
{
|
|
54819
54829
|
key: "pass-err",
|
|
54820
54830
|
style: {
|
|
54821
|
-
color:
|
|
54831
|
+
color: ht,
|
|
54822
54832
|
fontSize: "12px",
|
|
54823
54833
|
marginTop: "-12px",
|
|
54824
54834
|
marginBottom: "12px"
|
|
@@ -54832,7 +54842,7 @@ ${C.message}` : C.message;
|
|
|
54832
54842
|
{
|
|
54833
54843
|
key: "err",
|
|
54834
54844
|
style: {
|
|
54835
|
-
color:
|
|
54845
|
+
color: ht,
|
|
54836
54846
|
fontSize: "13px",
|
|
54837
54847
|
marginBottom: "12px",
|
|
54838
54848
|
textAlign: "center"
|
|
@@ -54853,7 +54863,7 @@ ${C.message}` : C.message;
|
|
|
54853
54863
|
borderRadius: "8px",
|
|
54854
54864
|
fontSize: "15px",
|
|
54855
54865
|
fontWeight: 600,
|
|
54856
|
-
backgroundColor: bn ? gt ? "#4b5563" : "#9ca3af" :
|
|
54866
|
+
backgroundColor: bn ? gt ? "#4b5563" : "#9ca3af" : fe,
|
|
54857
54867
|
color: jt,
|
|
54858
54868
|
border: "none",
|
|
54859
54869
|
cursor: bn ? "not-allowed" : "pointer",
|
|
@@ -54935,7 +54945,7 @@ ${C.message}` : C.message;
|
|
|
54935
54945
|
},
|
|
54936
54946
|
style: {
|
|
54937
54947
|
...xt(),
|
|
54938
|
-
borderColor: we.email && $e ?
|
|
54948
|
+
borderColor: we.email && $e ? ht : Yt
|
|
54939
54949
|
}
|
|
54940
54950
|
})
|
|
54941
54951
|
), we.email && $e && Ht.push(
|
|
@@ -54944,7 +54954,7 @@ ${C.message}` : C.message;
|
|
|
54944
54954
|
{
|
|
54945
54955
|
key: "email-err",
|
|
54946
54956
|
style: {
|
|
54947
|
-
color:
|
|
54957
|
+
color: ht,
|
|
54948
54958
|
fontSize: "12px",
|
|
54949
54959
|
marginTop: "-8px",
|
|
54950
54960
|
marginBottom: "8px"
|
|
@@ -54969,7 +54979,7 @@ ${C.message}` : C.message;
|
|
|
54969
54979
|
{
|
|
54970
54980
|
key: "pass-err",
|
|
54971
54981
|
style: {
|
|
54972
|
-
color:
|
|
54982
|
+
color: ht,
|
|
54973
54983
|
fontSize: "12px",
|
|
54974
54984
|
marginTop: "-12px",
|
|
54975
54985
|
marginBottom: "12px"
|
|
@@ -54994,7 +55004,7 @@ ${C.message}` : C.message;
|
|
|
54994
55004
|
{
|
|
54995
55005
|
key: "confirm-err",
|
|
54996
55006
|
style: {
|
|
54997
|
-
color:
|
|
55007
|
+
color: ht,
|
|
54998
55008
|
fontSize: "12px",
|
|
54999
55009
|
marginTop: "-12px",
|
|
55000
55010
|
marginBottom: "12px"
|
|
@@ -55008,7 +55018,7 @@ ${C.message}` : C.message;
|
|
|
55008
55018
|
{
|
|
55009
55019
|
key: "err",
|
|
55010
55020
|
style: {
|
|
55011
|
-
color:
|
|
55021
|
+
color: ht,
|
|
55012
55022
|
fontSize: "13px",
|
|
55013
55023
|
marginBottom: "12px",
|
|
55014
55024
|
textAlign: "center"
|
|
@@ -55029,7 +55039,7 @@ ${C.message}` : C.message;
|
|
|
55029
55039
|
borderRadius: "8px",
|
|
55030
55040
|
fontSize: "15px",
|
|
55031
55041
|
fontWeight: 600,
|
|
55032
|
-
backgroundColor: bn ? gt ? "#4b5563" : "#9ca3af" :
|
|
55042
|
+
backgroundColor: bn ? gt ? "#4b5563" : "#9ca3af" : fe,
|
|
55033
55043
|
color: jt,
|
|
55034
55044
|
border: "none",
|
|
55035
55045
|
cursor: bn ? "not-allowed" : "pointer",
|
|
@@ -55096,7 +55106,7 @@ ${C.message}` : C.message;
|
|
|
55096
55106
|
},
|
|
55097
55107
|
style: {
|
|
55098
55108
|
...xt("16px"),
|
|
55099
|
-
borderColor: we.email && $e ?
|
|
55109
|
+
borderColor: we.email && $e ? ht : Yt
|
|
55100
55110
|
}
|
|
55101
55111
|
})
|
|
55102
55112
|
), we.email && $e && Ht.push(
|
|
@@ -55105,7 +55115,7 @@ ${C.message}` : C.message;
|
|
|
55105
55115
|
{
|
|
55106
55116
|
key: "email-err",
|
|
55107
55117
|
style: {
|
|
55108
|
-
color:
|
|
55118
|
+
color: ht,
|
|
55109
55119
|
fontSize: "12px",
|
|
55110
55120
|
marginTop: "-8px",
|
|
55111
55121
|
marginBottom: "8px"
|
|
@@ -55119,7 +55129,7 @@ ${C.message}` : C.message;
|
|
|
55119
55129
|
{
|
|
55120
55130
|
key: "err",
|
|
55121
55131
|
style: {
|
|
55122
|
-
color:
|
|
55132
|
+
color: ht,
|
|
55123
55133
|
fontSize: "13px",
|
|
55124
55134
|
marginBottom: "12px",
|
|
55125
55135
|
textAlign: "center"
|
|
@@ -55140,7 +55150,7 @@ ${C.message}` : C.message;
|
|
|
55140
55150
|
borderRadius: "8px",
|
|
55141
55151
|
fontSize: "15px",
|
|
55142
55152
|
fontWeight: 600,
|
|
55143
|
-
backgroundColor: bn ? gt ? "#4b5563" : "#9ca3af" :
|
|
55153
|
+
backgroundColor: bn ? gt ? "#4b5563" : "#9ca3af" : fe,
|
|
55144
55154
|
color: jt,
|
|
55145
55155
|
border: "none",
|
|
55146
55156
|
cursor: bn ? "not-allowed" : "pointer",
|
|
@@ -55219,7 +55229,7 @@ ${C.message}` : C.message;
|
|
|
55219
55229
|
{
|
|
55220
55230
|
key: "pass-err",
|
|
55221
55231
|
style: {
|
|
55222
|
-
color:
|
|
55232
|
+
color: ht,
|
|
55223
55233
|
fontSize: "12px",
|
|
55224
55234
|
marginTop: "-12px",
|
|
55225
55235
|
marginBottom: "12px"
|
|
@@ -55233,7 +55243,7 @@ ${C.message}` : C.message;
|
|
|
55233
55243
|
{
|
|
55234
55244
|
key: "err",
|
|
55235
55245
|
style: {
|
|
55236
|
-
color:
|
|
55246
|
+
color: ht,
|
|
55237
55247
|
fontSize: "13px",
|
|
55238
55248
|
marginBottom: "12px",
|
|
55239
55249
|
textAlign: "center"
|
|
@@ -55254,7 +55264,7 @@ ${C.message}` : C.message;
|
|
|
55254
55264
|
borderRadius: "8px",
|
|
55255
55265
|
fontSize: "15px",
|
|
55256
55266
|
fontWeight: 600,
|
|
55257
|
-
backgroundColor: bn ? gt ? "#4b5563" : "#9ca3af" :
|
|
55267
|
+
backgroundColor: bn ? gt ? "#4b5563" : "#9ca3af" : fe,
|
|
55258
55268
|
color: jt,
|
|
55259
55269
|
border: "none",
|
|
55260
55270
|
cursor: bn ? "not-allowed" : "pointer",
|
|
@@ -55388,7 +55398,7 @@ ${C.message}` : C.message;
|
|
|
55388
55398
|
key: "auth-close",
|
|
55389
55399
|
"aria-label": "Close sign in",
|
|
55390
55400
|
onClick: () => {
|
|
55391
|
-
St(!1), te.current = !1,
|
|
55401
|
+
St(!1), te.current = !1, ge.current = null;
|
|
55392
55402
|
},
|
|
55393
55403
|
style: {
|
|
55394
55404
|
position: "absolute",
|
|
@@ -55422,10 +55432,14 @@ ${C.message}` : C.message;
|
|
|
55422
55432
|
Q && (Y = Cl(Q[1]) ? Q[2] : Q[3]);
|
|
55423
55433
|
const X = Y.split(";").map((It) => It.trim()).filter(Boolean);
|
|
55424
55434
|
if (X.length > 1) {
|
|
55425
|
-
|
|
55435
|
+
const It = (ht) => /^show_modal:/.test(ht), Ft = (ht) => /^(go_to_step|navigate|go_back|close_modal)/.test(ht), fe = X.some(Ft) || !X.some(It) ? X : [
|
|
55436
|
+
...X.filter(It),
|
|
55437
|
+
...X.filter((ht) => !It(ht))
|
|
55438
|
+
], jt = X[X.length - 1];
|
|
55439
|
+
for (const ht of fe)
|
|
55426
55440
|
await kr(
|
|
55427
|
-
|
|
55428
|
-
|
|
55441
|
+
ht,
|
|
55442
|
+
ht === jt ? M : void 0,
|
|
55429
55443
|
$
|
|
55430
55444
|
);
|
|
55431
55445
|
return;
|
|
@@ -55441,39 +55455,39 @@ ${C.message}` : C.message;
|
|
|
55441
55455
|
return;
|
|
55442
55456
|
}
|
|
55443
55457
|
if (Y === "close_modal") {
|
|
55444
|
-
|
|
55458
|
+
Vt();
|
|
55445
55459
|
return;
|
|
55446
55460
|
}
|
|
55447
55461
|
const lt = Y.match(/^geolocate(?::(.+))?$/);
|
|
55448
55462
|
if (lt) {
|
|
55449
|
-
const It = (Z = lt[1]) == null ? void 0 : Z.trim(),
|
|
55450
|
-
(
|
|
55463
|
+
const It = (Z = lt[1]) == null ? void 0 : Z.trim(), Ft = await new Promise(
|
|
55464
|
+
(fe, jt) => {
|
|
55451
55465
|
if (typeof navigator > "u" || !navigator.geolocation) {
|
|
55452
55466
|
jt(new Error("Location is not available on this device"));
|
|
55453
55467
|
return;
|
|
55454
55468
|
}
|
|
55455
55469
|
navigator.geolocation.getCurrentPosition(
|
|
55456
|
-
(
|
|
55457
|
-
lat:
|
|
55458
|
-
lng:
|
|
55470
|
+
(ht) => fe({
|
|
55471
|
+
lat: ht.coords.latitude,
|
|
55472
|
+
lng: ht.coords.longitude
|
|
55459
55473
|
}),
|
|
55460
|
-
(
|
|
55461
|
-
new Error((
|
|
55474
|
+
(ht) => jt(
|
|
55475
|
+
new Error((ht == null ? void 0 : ht.message) || "Location permission is required")
|
|
55462
55476
|
),
|
|
55463
55477
|
{ enableHighAccuracy: !0, timeout: 8e3, maximumAge: 0 }
|
|
55464
55478
|
);
|
|
55465
55479
|
}
|
|
55466
55480
|
);
|
|
55467
|
-
he((
|
|
55468
|
-
...
|
|
55469
|
-
latitude:
|
|
55470
|
-
longitude:
|
|
55481
|
+
he((fe) => ({
|
|
55482
|
+
...fe,
|
|
55483
|
+
latitude: Ft.lat,
|
|
55484
|
+
longitude: Ft.lng
|
|
55471
55485
|
})), It && await kr(It, M, {
|
|
55472
55486
|
...$ || {},
|
|
55473
55487
|
payload: {
|
|
55474
55488
|
...($ == null ? void 0 : $.payload) || {},
|
|
55475
|
-
latitude:
|
|
55476
|
-
longitude:
|
|
55489
|
+
latitude: Ft.lat,
|
|
55490
|
+
longitude: Ft.lng
|
|
55477
55491
|
}
|
|
55478
55492
|
});
|
|
55479
55493
|
return;
|
|
@@ -55492,8 +55506,8 @@ ${C.message}` : C.message;
|
|
|
55492
55506
|
const Mt = Y.match(/^set_data:([\w.-]+)=(.*)$/);
|
|
55493
55507
|
if (Mt) {
|
|
55494
55508
|
let It = Mt[2];
|
|
55495
|
-
(It === "$uuid" || It === "{{$uuid}}") && (It = typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : `${Date.now()}-${Math.random().toString(16).slice(2)}`), he((
|
|
55496
|
-
...
|
|
55509
|
+
(It === "$uuid" || It === "{{$uuid}}") && (It = typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : `${Date.now()}-${Math.random().toString(16).slice(2)}`), he((Ft) => ({
|
|
55510
|
+
...Ft,
|
|
55497
55511
|
[Mt[1]]: It
|
|
55498
55512
|
}));
|
|
55499
55513
|
return;
|
|
@@ -55504,12 +55518,12 @@ ${C.message}` : C.message;
|
|
|
55504
55518
|
Ae("Native app required", "error");
|
|
55505
55519
|
return;
|
|
55506
55520
|
}
|
|
55507
|
-
const It = wt[1],
|
|
55508
|
-
if (
|
|
55509
|
-
const
|
|
55521
|
+
const It = wt[1], Ft = await i(It, xe);
|
|
55522
|
+
if (Ft && typeof Ft == "object" && !Array.isArray(Ft)) {
|
|
55523
|
+
const fe = It.replace(/[^\w]/g, "_");
|
|
55510
55524
|
he((jt) => ({
|
|
55511
55525
|
...jt,
|
|
55512
|
-
native: { ...jt.native || {}, [
|
|
55526
|
+
native: { ...jt.native || {}, [fe]: Ft }
|
|
55513
55527
|
}));
|
|
55514
55528
|
}
|
|
55515
55529
|
return;
|
|
@@ -55520,8 +55534,8 @@ ${C.message}` : C.message;
|
|
|
55520
55534
|
try {
|
|
55521
55535
|
await navigator.clipboard.writeText(It);
|
|
55522
55536
|
} catch {
|
|
55523
|
-
const
|
|
55524
|
-
|
|
55537
|
+
const Ft = document.createElement("textarea");
|
|
55538
|
+
Ft.value = It, Ft.style.position = "fixed", Ft.style.opacity = "0", document.body.appendChild(Ft), Ft.select(), document.execCommand("copy"), Ft.remove();
|
|
55525
55539
|
}
|
|
55526
55540
|
Ae("Copied to clipboard", "success");
|
|
55527
55541
|
return;
|
|
@@ -55531,25 +55545,25 @@ ${C.message}` : C.message;
|
|
|
55531
55545
|
);
|
|
55532
55546
|
if (Yt) {
|
|
55533
55547
|
if (Yt[1] === "logout") {
|
|
55534
|
-
if (!
|
|
55535
|
-
localStorage.removeItem("token"), localStorage.removeItem("backflow_refresh_token"), localStorage.removeItem("backflow_refresh_user_id"), te.current = !1,
|
|
55548
|
+
if (!ft) return;
|
|
55549
|
+
localStorage.removeItem("token"), localStorage.removeItem("backflow_refresh_token"), localStorage.removeItem("backflow_refresh_user_id"), te.current = !1, ge.current = null, Nt(!1), St(!1), st(null), G(!1), Ci("/");
|
|
55536
55550
|
return;
|
|
55537
55551
|
}
|
|
55538
|
-
if (
|
|
55552
|
+
if (ft) return;
|
|
55539
55553
|
Mn(null), Vi(Yt[1]), St(!0);
|
|
55540
55554
|
return;
|
|
55541
55555
|
}
|
|
55542
55556
|
if (Y === "accept_startup_modal") {
|
|
55543
55557
|
const It = Lt.startupModal;
|
|
55544
|
-
It && localStorage.setItem(`backflow_startup_modal_${It}`, "1"),
|
|
55545
|
-
const
|
|
55546
|
-
|
|
55558
|
+
It && localStorage.setItem(`backflow_startup_modal_${It}`, "1"), Vt();
|
|
55559
|
+
const Ft = J.find((fe) => fe.route === "/");
|
|
55560
|
+
Ft && (Je((fe) => [...fe, Ot]), ir(Ft.id));
|
|
55547
55561
|
return;
|
|
55548
55562
|
}
|
|
55549
55563
|
if (Y === "decline_startup_modal") {
|
|
55550
|
-
|
|
55551
|
-
const It = J.find((
|
|
55552
|
-
It && (Je((
|
|
55564
|
+
Vt();
|
|
55565
|
+
const It = J.find((Ft) => Ft.route === "/");
|
|
55566
|
+
It && (Je((Ft) => [...Ft, Ot]), ir(It.id));
|
|
55553
55567
|
return;
|
|
55554
55568
|
}
|
|
55555
55569
|
if (Y === "toggle_select") {
|
|
@@ -55565,46 +55579,46 @@ ${C.message}` : C.message;
|
|
|
55565
55579
|
else if (Y.startsWith("navigate:"))
|
|
55566
55580
|
Ci(Y.replace("navigate:", "")), Zr(M, !0);
|
|
55567
55581
|
else if (Dd(Y) && t) {
|
|
55568
|
-
const It = Td(Y),
|
|
55569
|
-
|
|
55582
|
+
const It = Td(Y), Ft = await Wy(t, It, xe);
|
|
55583
|
+
Ft != null && Ft.data ? he((fe) => ({ ...fe, ...Ft.data })) : Ft && typeof Ft == "object" && !Array.isArray(Ft) && he((fe) => ({ ...fe, ...Ft })), Ft != null && Ft.url && String(Ft.url).startsWith("http") && window.open(String(Ft.url), "_blank", "noopener,noreferrer"), Zr(M, !0);
|
|
55570
55584
|
} else if (Y.startsWith("show_modal:")) {
|
|
55571
55585
|
const It = Y.replace("show_modal:", "");
|
|
55572
55586
|
if (an[It]) {
|
|
55573
|
-
const
|
|
55587
|
+
const Ft = an[It];
|
|
55574
55588
|
if (ni(
|
|
55575
|
-
|
|
55576
|
-
), Ge.current =
|
|
55577
|
-
const
|
|
55589
|
+
Ft.popover && ($ != null && $.anchorElement) ? $.anchorElement.getBoundingClientRect() : null
|
|
55590
|
+
), Ge.current = Ft.popover && ($ == null ? void 0 : $.anchorElement) || null, qi.current && typeof qi.current == "object") {
|
|
55591
|
+
const ht = Object.keys(qi.current);
|
|
55578
55592
|
he((xt) => {
|
|
55579
55593
|
const _t = { ...xt };
|
|
55580
55594
|
for (const Kt of Sl.current)
|
|
55581
|
-
|
|
55595
|
+
ht.includes(Kt) || delete _t[Kt];
|
|
55582
55596
|
return { ..._t, ...qi.current };
|
|
55583
|
-
}), Sl.current =
|
|
55597
|
+
}), Sl.current = ht;
|
|
55584
55598
|
}
|
|
55585
|
-
const
|
|
55586
|
-
Array.isArray(
|
|
55587
|
-
const xt = { ...
|
|
55588
|
-
for (const _t of
|
|
55599
|
+
const fe = Ft.clearFormKeys;
|
|
55600
|
+
Array.isArray(fe) && fe.length > 0 && he((ht) => {
|
|
55601
|
+
const xt = { ...ht };
|
|
55602
|
+
for (const _t of fe) delete xt[_t];
|
|
55589
55603
|
return xt;
|
|
55590
55604
|
});
|
|
55591
|
-
const jt =
|
|
55592
|
-
jt && typeof jt == "object" && he((
|
|
55593
|
-
const xt = { ...
|
|
55605
|
+
const jt = Ft.defaults;
|
|
55606
|
+
jt && typeof jt == "object" && he((ht) => {
|
|
55607
|
+
const xt = { ...ht };
|
|
55594
55608
|
for (const [_t, Kt] of Object.entries(jt))
|
|
55595
55609
|
xt[_t] === void 0 && (xt[_t] = Kt);
|
|
55596
55610
|
return xt;
|
|
55597
|
-
}),
|
|
55611
|
+
}), (zt == null ? void 0 : zt.id) === It || (le == null ? void 0 : le.id) === It || (fs(null), pe({ id: It, definition: Ft })), Ft.preload && await la(String(Ft.preload));
|
|
55598
55612
|
} else {
|
|
55599
|
-
const
|
|
55600
|
-
|
|
55613
|
+
const Ft = It.split("|");
|
|
55614
|
+
pe({
|
|
55601
55615
|
id: "__legacy",
|
|
55602
55616
|
definition: {
|
|
55603
|
-
title:
|
|
55604
|
-
components:
|
|
55617
|
+
title: Ft[0] || "Notice",
|
|
55618
|
+
components: Ft[1] ? [
|
|
55605
55619
|
{
|
|
55606
55620
|
type: "text",
|
|
55607
|
-
text:
|
|
55621
|
+
text: Ft[1],
|
|
55608
55622
|
color: "rgba(255,255,255,0.7)",
|
|
55609
55623
|
fontSize: 14
|
|
55610
55624
|
}
|
|
@@ -55809,7 +55823,7 @@ ${C.message}` : C.message;
|
|
|
55809
55823
|
var Q;
|
|
55810
55824
|
if (K === "auth") {
|
|
55811
55825
|
const X = (Q = e == null ? void 0 : e.auth) == null ? void 0 : Q.signedIn;
|
|
55812
|
-
return X === void 0 ?
|
|
55826
|
+
return X === void 0 ? ft : X;
|
|
55813
55827
|
}
|
|
55814
55828
|
if (K.startsWith("[") && K.includes("]")) {
|
|
55815
55829
|
const X = K.indexOf("]"), lt = An.current[K.slice(1, X)], it = K.slice(X + 1).replace(/^\./, "");
|
|
@@ -55994,7 +56008,7 @@ ${C.message}` : C.message;
|
|
|
55994
56008
|
containerWidth: Ve,
|
|
55995
56009
|
interactionDisabled: p,
|
|
55996
56010
|
previewMode: R,
|
|
55997
|
-
isAuthenticated:
|
|
56011
|
+
isAuthenticated: ft,
|
|
55998
56012
|
styleOverrides: f,
|
|
55999
56013
|
selectedComponentKey: h,
|
|
56000
56014
|
selectedComponentClass: u,
|
|
@@ -56009,8 +56023,8 @@ ${C.message}` : C.message;
|
|
|
56009
56023
|
evaluateExpression: ua,
|
|
56010
56024
|
evaluateCondition: Cl,
|
|
56011
56025
|
showToast: Ae,
|
|
56012
|
-
setActiveModal:
|
|
56013
|
-
dismissModal:
|
|
56026
|
+
setActiveModal: pe,
|
|
56027
|
+
dismissModal: Vt,
|
|
56014
56028
|
setOverlayModal: fs,
|
|
56015
56029
|
dismissOverlayModal: gl,
|
|
56016
56030
|
fetchListData: Wn,
|
|
@@ -56066,7 +56080,7 @@ ${C.message}` : C.message;
|
|
|
56066
56080
|
Df.current = yr;
|
|
56067
56081
|
const $l = b.useRef({}), Au = b.useRef(/* @__PURE__ */ new Set()), Oo = b.useRef(null), jf = b.useRef(!1);
|
|
56068
56082
|
b.useEffect(() => {
|
|
56069
|
-
if (!Ue || !
|
|
56083
|
+
if (!Ue || !ft) {
|
|
56070
56084
|
zn.current.forEach(($) => $()), zn.current.clear(), vr.current.clear();
|
|
56071
56085
|
return;
|
|
56072
56086
|
}
|
|
@@ -56157,13 +56171,13 @@ ${C.message}` : C.message;
|
|
|
56157
56171
|
if ((X.type === "list" || X.type === "table") && X.dataSource) {
|
|
56158
56172
|
const Pt = `${Ot}|${it}`;
|
|
56159
56173
|
M.add(Pt), X.key && M.add(X.key), Rf.current[Pt] = X.sort || {}, xu.current[Pt] = { responseKey: X.responseKey, paginationMode: X.paginationMode };
|
|
56160
|
-
const Yt = String(X.dataSource), It = Yt.trim().match(/^\{\{\s*\[([\w/.-]+)\](?:\.([\w.]+))?\s*\}\}$/),
|
|
56174
|
+
const Yt = String(X.dataSource), It = Yt.trim().match(/^\{\{\s*\[([\w/.-]+)\](?:\.([\w.]+))?\s*\}\}$/), Ft = !!It, fe = Ft ? Yt : C(X.dataSource), jt = Ft ? `${Yt}#${It ? JSON.stringify(
|
|
56161
56175
|
kn(
|
|
56162
56176
|
`${It[1]}${It[2] ? "." + It[2] : ""}`
|
|
56163
56177
|
)
|
|
56164
|
-
) : "u"}` :
|
|
56165
|
-
|
|
56166
|
-
|
|
56178
|
+
) : "u"}` : fe, ht = Mi.current[Pt] !== jt;
|
|
56179
|
+
ht && (Mi.current[Pt] = jt, fa.current[Pt] = 1, Wn(
|
|
56180
|
+
fe,
|
|
56167
56181
|
Pt,
|
|
56168
56182
|
0,
|
|
56169
56183
|
X.pageSize || 10,
|
|
@@ -56172,7 +56186,7 @@ ${C.message}` : C.message;
|
|
|
56172
56186
|
X.key
|
|
56173
56187
|
));
|
|
56174
56188
|
const xt = X.realtime, _t = xt ? C(xt.channel || "") : "", Kt = xt ? C(xt.url || "") : "", Ut = xt ? C(xt.event || "") : "", Me = xt ? `${Kt}|${_t}|${Ut}` : "", Ht = vr.current.get(Pt) !== Me;
|
|
56175
|
-
if (xt && (
|
|
56189
|
+
if (xt && (ht || Ht)) {
|
|
56176
56190
|
vr.current.set(Pt, Me);
|
|
56177
56191
|
const se = zn.current.get(Pt);
|
|
56178
56192
|
se && se();
|
|
@@ -56233,7 +56247,7 @@ ${C.message}` : C.message;
|
|
|
56233
56247
|
switch (xt.mode) {
|
|
56234
56248
|
case "poll": {
|
|
56235
56249
|
const Ze = xt.interval || 5e3, ve = window.setInterval(() => {
|
|
56236
|
-
xt.while && !Co(xt.while, Pn.current) || Wn(
|
|
56250
|
+
xt.while && !Co(xt.while, Pn.current) || Wn(fe, Pt, 0, Hn);
|
|
56237
56251
|
}, Ze);
|
|
56238
56252
|
ar = () => clearInterval(ve);
|
|
56239
56253
|
break;
|
|
@@ -56245,7 +56259,7 @@ ${C.message}` : C.message;
|
|
|
56245
56259
|
break;
|
|
56246
56260
|
}
|
|
56247
56261
|
const Ze = r || localStorage.getItem("token") || "", ve = Kt || `/events?channel=${_t}`, En = Ze && !ve.includes("token=") ? `${ve}${ve.includes("?") ? "&" : "?"}token=${encodeURIComponent(Ze)}` : ve, kt = new EventSource(En), Dt = (ce) => {
|
|
56248
|
-
ws(ce.data) && (_e(ce.data), Wn(
|
|
56262
|
+
ws(ce.data) && (_e(ce.data), Wn(fe, Pt, 0, Hn));
|
|
56249
56263
|
};
|
|
56250
56264
|
Ut ? kt.addEventListener(Ut, Dt) : kt.onmessage = Dt, kt.onerror = () => kt.close(), ar = () => kt.close();
|
|
56251
56265
|
break;
|
|
@@ -56269,9 +56283,9 @@ ${C.message}` : C.message;
|
|
|
56269
56283
|
Dt = new WebSocket(Tn);
|
|
56270
56284
|
}
|
|
56271
56285
|
typeof Dt.addEventListener == "function" && Dt.addEventListener("open", () => {
|
|
56272
|
-
Wn(
|
|
56286
|
+
Wn(fe, Pt, 0, Hn);
|
|
56273
56287
|
}), Dt.onmessage = (Tn) => {
|
|
56274
|
-
ws(Tn.data) && (_e(Tn.data), Wn(
|
|
56288
|
+
ws(Tn.data) && (_e(Tn.data), Wn(fe, Pt, 0, Hn).then(
|
|
56275
56289
|
(wr) => {
|
|
56276
56290
|
const _r = Array.isArray(wr) ? wr : vn[Pt];
|
|
56277
56291
|
xt.onEvent && Ki(Tn.data, _r);
|
|
@@ -56302,13 +56316,13 @@ ${C.message}` : C.message;
|
|
|
56302
56316
|
const Pt = `${it}-sel`, Yt = C(X.dataSource);
|
|
56303
56317
|
Mi.current[Pt] !== Yt && (Mi.current[Pt] = Yt, (async () => {
|
|
56304
56318
|
try {
|
|
56305
|
-
const It = X.dataSource,
|
|
56319
|
+
const It = X.dataSource, Ft = C(It), fe = await fetch(Ft, {
|
|
56306
56320
|
headers: {
|
|
56307
56321
|
Authorization: `Bearer ${r || localStorage.getItem("token") || ""}`
|
|
56308
56322
|
}
|
|
56309
56323
|
});
|
|
56310
|
-
if (!
|
|
56311
|
-
const jt = await
|
|
56324
|
+
if (!fe.ok) return;
|
|
56325
|
+
const jt = await fe.json(), ht = X.dataField || "configs", xt = X.optionLabel || "label", _t = X.optionValue || "value", Kt = jt[ht] || jt.data || jt, Ut = Array.isArray(Kt) ? Kt.map((Me) => ({
|
|
56312
56326
|
label: Me[xt] || Me.name || Me.label,
|
|
56313
56327
|
value: Me[_t] || Me.id || Me.name || Me.label
|
|
56314
56328
|
})) : [];
|
|
@@ -56336,7 +56350,7 @@ ${C.message}` : C.message;
|
|
|
56336
56350
|
Pt && Array.isArray(Pt.components) && $(Pt.components, `${it}-${Mt.widgetId}`);
|
|
56337
56351
|
}
|
|
56338
56352
|
});
|
|
56339
|
-
}, Z = `${Ot}|${ha}|${Ml}|${
|
|
56353
|
+
}, Z = `${Ot}|${ha}|${Ml}|${ft}`;
|
|
56340
56354
|
vs.current !== Z && (vs.current = Z, $($n), _l.current = M);
|
|
56341
56355
|
const B = zt || le;
|
|
56342
56356
|
if (kl.current !== ((B == null ? void 0 : B.id) || "")) {
|
|
@@ -56358,7 +56372,7 @@ ${C.message}` : C.message;
|
|
|
56358
56372
|
Ml,
|
|
56359
56373
|
zt == null ? void 0 : zt.id,
|
|
56360
56374
|
le == null ? void 0 : le.id,
|
|
56361
|
-
|
|
56375
|
+
ft
|
|
56362
56376
|
]), b.useEffect(() => () => {
|
|
56363
56377
|
zn.current.forEach((C) => C()), zn.current.clear(), vr.current.clear(), vs.current = "";
|
|
56364
56378
|
}, [Ot]);
|
|
@@ -56382,7 +56396,7 @@ ${C.message}` : C.message;
|
|
|
56382
56396
|
pa.current = Al;
|
|
56383
56397
|
const bs = Lt.realtime, ma = bs == null ? void 0 : bs.mode, Il = bs == null ? void 0 : bs.url;
|
|
56384
56398
|
if (b.useEffect(() => {
|
|
56385
|
-
if (!
|
|
56399
|
+
if (!ft || ma !== "sse" || !Il) return;
|
|
56386
56400
|
const C = r || localStorage.getItem("token");
|
|
56387
56401
|
if (!C) return;
|
|
56388
56402
|
let M = null, $ = !1;
|
|
@@ -56408,7 +56422,7 @@ ${C.message}` : C.message;
|
|
|
56408
56422
|
})(), () => {
|
|
56409
56423
|
$ = !0, M == null || M.close();
|
|
56410
56424
|
};
|
|
56411
|
-
}, [
|
|
56425
|
+
}, [ft, N, r, ma, Il]), !Ue)
|
|
56412
56426
|
return b.createElement(
|
|
56413
56427
|
b.Fragment,
|
|
56414
56428
|
null,
|
|
@@ -56439,7 +56453,7 @@ ${C.message}` : C.message;
|
|
|
56439
56453
|
...ki ? { minHeight: ki } : {},
|
|
56440
56454
|
backgroundColor: ga || Lt.colors.background,
|
|
56441
56455
|
color: xs
|
|
56442
|
-
}, Eu = Array.isArray(Te.components) ? Te.components : [], _g = Bdt(Vn), ui = (Ue == null ? void 0 : Ue.requireAuth) === !0 || (Te == null ? void 0 : Te.requiresAuth) === !0 || (ai == null ? void 0 : ai.requiresAuth) === !0 || ((bt = ai == null ? void 0 : ai.config) == null ? void 0 : bt.requiresAuth) === !0, zf = (ui || nt) && !
|
|
56456
|
+
}, Eu = Array.isArray(Te.components) ? Te.components : [], _g = Bdt(Vn), ui = (Ue == null ? void 0 : Ue.requireAuth) === !0 || (Te == null ? void 0 : Te.requiresAuth) === !0 || (ai == null ? void 0 : ai.requiresAuth) === !0 || ((bt = ai == null ? void 0 : ai.config) == null ? void 0 : bt.requiresAuth) === !0, zf = (ui || nt) && !ft ? bg() : null, ya = ft && ui && et === !1 && !dt, Pg = async () => {
|
|
56443
56457
|
Ce("sending");
|
|
56444
56458
|
try {
|
|
56445
56459
|
const C = r || localStorage.getItem("token"), M = await fetch(`${br()}/auth/resend-verification`, {
|
|
@@ -56481,7 +56495,7 @@ ${C.message}` : C.message;
|
|
|
56481
56495
|
{
|
|
56482
56496
|
key: "resend",
|
|
56483
56497
|
onClick: Pg,
|
|
56484
|
-
disabled:
|
|
56498
|
+
disabled: de !== "idle",
|
|
56485
56499
|
style: {
|
|
56486
56500
|
background: "none",
|
|
56487
56501
|
border: "none",
|
|
@@ -56490,11 +56504,11 @@ ${C.message}` : C.message;
|
|
|
56490
56504
|
font: "inherit",
|
|
56491
56505
|
fontWeight: 700,
|
|
56492
56506
|
textDecoration: "underline",
|
|
56493
|
-
cursor:
|
|
56494
|
-
opacity:
|
|
56507
|
+
cursor: de === "idle" ? "pointer" : "default",
|
|
56508
|
+
opacity: de === "idle" ? 1 : 0.7
|
|
56495
56509
|
}
|
|
56496
56510
|
},
|
|
56497
|
-
|
|
56511
|
+
de === "sent" ? "Sent" : de === "sending" ? "Sending…" : "Resend"
|
|
56498
56512
|
),
|
|
56499
56513
|
b.createElement(
|
|
56500
56514
|
"button",
|
|
@@ -56534,7 +56548,7 @@ ${C.message}` : C.message;
|
|
|
56534
56548
|
const M = go[C.id], $ = C.sourceSceneId ? (Z = M == null ? void 0 : M.steps) == null ? void 0 : Z.find((Y) => Y.id === C.sourceSceneId) : (B = M == null ? void 0 : M.steps) == null ? void 0 : B.find((Y) => Y.type === "render_scene");
|
|
56535
56549
|
return (K = $ == null ? void 0 : $.config) != null && K.components ? { ...C, components: $.config.components } : null;
|
|
56536
56550
|
}).filter(Boolean);
|
|
56537
|
-
$n = [...Eu], (Xt = (Rt = In.layout) == null ? void 0 : Rt.header) != null && Xt.length ? $n.splice(0, 0, ...In.layout.header) : (Un = (
|
|
56551
|
+
$n = [...Eu], (Xt = (Rt = In.layout) == null ? void 0 : Rt.header) != null && Xt.length ? $n.splice(0, 0, ...In.layout.header) : (Un = (ye = Te == null ? void 0 : Te.layout) == null ? void 0 : ye.header) != null && Un.length && $n.splice(0, 0, ...Te.layout.header);
|
|
56538
56552
|
for (const C of Ff || []) {
|
|
56539
56553
|
const M = C.components || [];
|
|
56540
56554
|
if (!M.length) continue;
|
|
@@ -56700,14 +56714,14 @@ ${C.message}` : C.message;
|
|
|
56700
56714
|
sceneId: Ot,
|
|
56701
56715
|
sceneData: xe,
|
|
56702
56716
|
registry: An.current,
|
|
56703
|
-
isAuthenticated:
|
|
56717
|
+
isAuthenticated: ft,
|
|
56704
56718
|
colorMode: Lt.colorMode,
|
|
56705
56719
|
runtimeIssues: Fi,
|
|
56706
56720
|
enabled: W,
|
|
56707
56721
|
navigateToScene: Ci,
|
|
56708
56722
|
openModal: (C) => {
|
|
56709
56723
|
const M = an[C];
|
|
56710
|
-
M &&
|
|
56724
|
+
M && pe({ id: C, definition: M });
|
|
56711
56725
|
},
|
|
56712
56726
|
submitReport: async (C) => {
|
|
56713
56727
|
const M = await fetch(
|