@ukpc-lib/react 0.3.28 → 0.3.30
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/components/GlobalMenu/components/Dropdown.d.ts +5 -2
- package/dist/components/index.cjs +24 -24
- package/dist/components/index.js +42 -38
- package/dist/{index.module-56dcdd19.js → index.module-673ba16d.js} +6833 -6824
- package/dist/{index.module-94690d68.cjs → index.module-b1a2d81c.cjs} +110 -110
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +14 -14
- package/package.json +1 -1
- package/web-components-bundle/global-menu/index.cjs +1 -1
- package/web-components-bundle/global-menu/index.js +1 -1
- package/web-components-bundle/global-topbar/index.cjs +1 -1
- package/web-components-bundle/global-topbar/index.js +2 -2
- package/web-components-bundle/has-permission/index.cjs +1 -1
- package/web-components-bundle/has-permission/index.js +2 -2
- package/web-components-bundle/{index-71be0806.js → index-70a679e2.js} +311 -300
- package/web-components-bundle/{index-5839516a.js → index-7ba86abb.js} +1 -1
- package/web-components-bundle/{index-ed7278ea.cjs → index-9b318feb.cjs} +10 -10
- package/web-components-bundle/{index-1e6d2c1a.cjs → index-e3884e2e.cjs} +1 -1
|
@@ -1503,29 +1503,29 @@ function Bn(e, t, n) {
|
|
|
1503
1503
|
if (typeof e != "function")
|
|
1504
1504
|
throw new TypeError(qh);
|
|
1505
1505
|
t = ps(t) || 0, tr(n) && (f = !!n.leading, c = "maxWait" in n, o = c ? Gh(ps(n.maxWait) || 0, t) : o, d = "trailing" in n ? !!n.trailing : d);
|
|
1506
|
-
function h(
|
|
1506
|
+
function h(C) {
|
|
1507
1507
|
var T = r, P = i;
|
|
1508
|
-
return r = i = void 0, u =
|
|
1508
|
+
return r = i = void 0, u = C, s = e.apply(P, T), s;
|
|
1509
1509
|
}
|
|
1510
|
-
function p(
|
|
1511
|
-
return u =
|
|
1510
|
+
function p(C) {
|
|
1511
|
+
return u = C, a = setTimeout(y, t), f ? h(C) : s;
|
|
1512
1512
|
}
|
|
1513
|
-
function m(
|
|
1514
|
-
var T =
|
|
1513
|
+
function m(C) {
|
|
1514
|
+
var T = C - l, P = C - u, M = t - T;
|
|
1515
1515
|
return c ? Xh(M, o - P) : M;
|
|
1516
1516
|
}
|
|
1517
|
-
function g(
|
|
1518
|
-
var T =
|
|
1517
|
+
function g(C) {
|
|
1518
|
+
var T = C - l, P = C - u;
|
|
1519
1519
|
return l === void 0 || T >= t || T < 0 || c && P >= o;
|
|
1520
1520
|
}
|
|
1521
1521
|
function y() {
|
|
1522
|
-
var
|
|
1523
|
-
if (g(
|
|
1524
|
-
return b(
|
|
1525
|
-
a = setTimeout(y, m(
|
|
1522
|
+
var C = Jr();
|
|
1523
|
+
if (g(C))
|
|
1524
|
+
return b(C);
|
|
1525
|
+
a = setTimeout(y, m(C));
|
|
1526
1526
|
}
|
|
1527
|
-
function b(
|
|
1528
|
-
return a = void 0, d && r ? h(
|
|
1527
|
+
function b(C) {
|
|
1528
|
+
return a = void 0, d && r ? h(C) : (r = i = void 0, s);
|
|
1529
1529
|
}
|
|
1530
1530
|
function v() {
|
|
1531
1531
|
a !== void 0 && clearTimeout(a), u = 0, r = l = i = a = void 0;
|
|
@@ -1534,8 +1534,8 @@ function Bn(e, t, n) {
|
|
|
1534
1534
|
return a === void 0 ? s : b(Jr());
|
|
1535
1535
|
}
|
|
1536
1536
|
function E() {
|
|
1537
|
-
var
|
|
1538
|
-
if (r = arguments, i = this, l =
|
|
1537
|
+
var C = Jr(), T = g(C);
|
|
1538
|
+
if (r = arguments, i = this, l = C, T) {
|
|
1539
1539
|
if (a === void 0)
|
|
1540
1540
|
return p(l);
|
|
1541
1541
|
if (c)
|
|
@@ -1672,9 +1672,9 @@ var Qh = /* @__PURE__ */ Object.freeze({
|
|
|
1672
1672
|
if (!(!r.draggedAxis || !r.contentWrapperEl)) {
|
|
1673
1673
|
var g, y = r.axis[r.draggedAxis].track, b = (s = (o = y.rect) === null || o === void 0 ? void 0 : o[r.axis[r.draggedAxis].sizeAttr]) !== null && s !== void 0 ? s : 0, v = r.axis[r.draggedAxis].scrollbar, S = (l = (a = r.contentWrapperEl) === null || a === void 0 ? void 0 : a[r.axis[r.draggedAxis].scrollSizeAttr]) !== null && l !== void 0 ? l : 0, E = parseInt((f = (u = r.elStyles) === null || u === void 0 ? void 0 : u[r.axis[r.draggedAxis].sizeAttr]) !== null && f !== void 0 ? f : "0px", 10);
|
|
1674
1674
|
i.preventDefault(), i.stopPropagation(), r.draggedAxis === "y" ? g = i.pageY : g = i.pageX;
|
|
1675
|
-
var
|
|
1676
|
-
|
|
1677
|
-
var T =
|
|
1675
|
+
var C = g - ((d = (c = y.rect) === null || c === void 0 ? void 0 : c[r.axis[r.draggedAxis].offsetAttr]) !== null && d !== void 0 ? d : 0) - r.axis[r.draggedAxis].dragOffset;
|
|
1676
|
+
C = r.draggedAxis === "x" && r.isRtl ? ((p = (h = y.rect) === null || h === void 0 ? void 0 : h[r.axis[r.draggedAxis].sizeAttr]) !== null && p !== void 0 ? p : 0) - v.size - C : C;
|
|
1677
|
+
var T = C / (b - v.size), P = T * (S - E);
|
|
1678
1678
|
r.draggedAxis === "x" && r.isRtl && (P = !((m = e.getRtlHelpers()) === null || m === void 0) && m.isScrollingToNegative ? -P : P), r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr] = P;
|
|
1679
1679
|
}
|
|
1680
1680
|
}, this.onEndDrag = function(i) {
|
|
@@ -1961,10 +1961,10 @@ var au = x.forwardRef(function(e, t) {
|
|
|
1961
1961
|
});
|
|
1962
1962
|
au.displayName = "SimpleBar";
|
|
1963
1963
|
const np = `[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
|
1964
|
-
`,
|
|
1964
|
+
`, sw = {
|
|
1965
1965
|
TOKEN_MALFORMED: "token_malformed",
|
|
1966
1966
|
TOKEN_EXPIRED: "token_expired"
|
|
1967
|
-
},
|
|
1967
|
+
}, aw = (e) => {
|
|
1968
1968
|
window.location.href = `${e}/authentication/login?callbackUrl=${window.location.href}`;
|
|
1969
1969
|
}, rp = (e) => {
|
|
1970
1970
|
window.location.href = `${e}/authentication/logout?callbackUrl=${window.location.href}`;
|
|
@@ -2023,34 +2023,34 @@ function uu(e) {
|
|
|
2023
2023
|
function ae(e, t, n, r, i, o, s) {
|
|
2024
2024
|
this.acceptsBooleans = t === 2 || t === 3 || t === 4, this.attributeName = r, this.attributeNamespace = i, this.mustUseProperty = n, this.propertyName = e, this.type = t, this.sanitizeURL = o, this.removeEmptyString = s;
|
|
2025
2025
|
}
|
|
2026
|
-
var
|
|
2026
|
+
var te = {};
|
|
2027
2027
|
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e) {
|
|
2028
|
-
|
|
2028
|
+
te[e] = new ae(e, 0, !1, e, null, !1, !1);
|
|
2029
2029
|
});
|
|
2030
2030
|
[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(e) {
|
|
2031
2031
|
var t = e[0];
|
|
2032
|
-
|
|
2032
|
+
te[t] = new ae(t, 1, !1, e[1], null, !1, !1);
|
|
2033
2033
|
});
|
|
2034
2034
|
["contentEditable", "draggable", "spellCheck", "value"].forEach(function(e) {
|
|
2035
|
-
|
|
2035
|
+
te[e] = new ae(e, 2, !1, e.toLowerCase(), null, !1, !1);
|
|
2036
2036
|
});
|
|
2037
2037
|
["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(e) {
|
|
2038
|
-
|
|
2038
|
+
te[e] = new ae(e, 2, !1, e, null, !1, !1);
|
|
2039
2039
|
});
|
|
2040
2040
|
"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e) {
|
|
2041
|
-
|
|
2041
|
+
te[e] = new ae(e, 3, !1, e.toLowerCase(), null, !1, !1);
|
|
2042
2042
|
});
|
|
2043
2043
|
["checked", "multiple", "muted", "selected"].forEach(function(e) {
|
|
2044
|
-
|
|
2044
|
+
te[e] = new ae(e, 3, !0, e, null, !1, !1);
|
|
2045
2045
|
});
|
|
2046
2046
|
["capture", "download"].forEach(function(e) {
|
|
2047
|
-
|
|
2047
|
+
te[e] = new ae(e, 4, !1, e, null, !1, !1);
|
|
2048
2048
|
});
|
|
2049
2049
|
["cols", "rows", "size", "span"].forEach(function(e) {
|
|
2050
|
-
|
|
2050
|
+
te[e] = new ae(e, 6, !1, e, null, !1, !1);
|
|
2051
2051
|
});
|
|
2052
2052
|
["rowSpan", "start"].forEach(function(e) {
|
|
2053
|
-
|
|
2053
|
+
te[e] = new ae(e, 5, !1, e.toLowerCase(), null, !1, !1);
|
|
2054
2054
|
});
|
|
2055
2055
|
var uo = /[\-:]([a-z])/g;
|
|
2056
2056
|
function co(e) {
|
|
@@ -2061,22 +2061,22 @@ function co(e) {
|
|
|
2061
2061
|
uo,
|
|
2062
2062
|
co
|
|
2063
2063
|
);
|
|
2064
|
-
|
|
2064
|
+
te[t] = new ae(t, 1, !1, e, null, !1, !1);
|
|
2065
2065
|
});
|
|
2066
2066
|
"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e) {
|
|
2067
2067
|
var t = e.replace(uo, co);
|
|
2068
|
-
|
|
2068
|
+
te[t] = new ae(t, 1, !1, e, "http://www.w3.org/1999/xlink", !1, !1);
|
|
2069
2069
|
});
|
|
2070
2070
|
["xml:base", "xml:lang", "xml:space"].forEach(function(e) {
|
|
2071
2071
|
var t = e.replace(uo, co);
|
|
2072
|
-
|
|
2072
|
+
te[t] = new ae(t, 1, !1, e, "http://www.w3.org/XML/1998/namespace", !1, !1);
|
|
2073
2073
|
});
|
|
2074
2074
|
["tabIndex", "crossOrigin"].forEach(function(e) {
|
|
2075
|
-
|
|
2075
|
+
te[e] = new ae(e, 1, !1, e.toLowerCase(), null, !1, !1);
|
|
2076
2076
|
});
|
|
2077
|
-
|
|
2077
|
+
te.xlinkHref = new ae("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1);
|
|
2078
2078
|
["src", "href", "action", "formAction"].forEach(function(e) {
|
|
2079
|
-
|
|
2079
|
+
te[e] = new ae(e, 1, !1, e.toLowerCase(), null, !0, !0);
|
|
2080
2080
|
});
|
|
2081
2081
|
var $n = {
|
|
2082
2082
|
animationIterationCount: !0,
|
|
@@ -2224,7 +2224,7 @@ function he(e, t, n, r) {
|
|
|
2224
2224
|
return;
|
|
2225
2225
|
}
|
|
2226
2226
|
if (!(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N") {
|
|
2227
|
-
if (t =
|
|
2227
|
+
if (t = te.hasOwnProperty(n) ? te[n] : null, t !== null) {
|
|
2228
2228
|
switch (typeof r) {
|
|
2229
2229
|
case "function":
|
|
2230
2230
|
case "symbol":
|
|
@@ -3378,7 +3378,7 @@ var Vu = new TextEncoder();
|
|
|
3378
3378
|
function F(e) {
|
|
3379
3379
|
return Vu.encode(e);
|
|
3380
3380
|
}
|
|
3381
|
-
function
|
|
3381
|
+
function k(e) {
|
|
3382
3382
|
return Vu.encode(e);
|
|
3383
3383
|
}
|
|
3384
3384
|
function Fu(e, t) {
|
|
@@ -3391,34 +3391,34 @@ function Lu(e) {
|
|
|
3391
3391
|
function le(e, t, n, r, i, o, s) {
|
|
3392
3392
|
this.acceptsBooleans = t === 2 || t === 3 || t === 4, this.attributeName = r, this.attributeNamespace = i, this.mustUseProperty = n, this.propertyName = e, this.type = t, this.sanitizeURL = o, this.removeEmptyString = s;
|
|
3393
3393
|
}
|
|
3394
|
-
var
|
|
3394
|
+
var ne = {};
|
|
3395
3395
|
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e) {
|
|
3396
|
-
|
|
3396
|
+
ne[e] = new le(e, 0, !1, e, null, !1, !1);
|
|
3397
3397
|
});
|
|
3398
3398
|
[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(e) {
|
|
3399
3399
|
var t = e[0];
|
|
3400
|
-
|
|
3400
|
+
ne[t] = new le(t, 1, !1, e[1], null, !1, !1);
|
|
3401
3401
|
});
|
|
3402
3402
|
["contentEditable", "draggable", "spellCheck", "value"].forEach(function(e) {
|
|
3403
|
-
|
|
3403
|
+
ne[e] = new le(e, 2, !1, e.toLowerCase(), null, !1, !1);
|
|
3404
3404
|
});
|
|
3405
3405
|
["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(e) {
|
|
3406
|
-
|
|
3406
|
+
ne[e] = new le(e, 2, !1, e, null, !1, !1);
|
|
3407
3407
|
});
|
|
3408
3408
|
"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e) {
|
|
3409
|
-
|
|
3409
|
+
ne[e] = new le(e, 3, !1, e.toLowerCase(), null, !1, !1);
|
|
3410
3410
|
});
|
|
3411
3411
|
["checked", "multiple", "muted", "selected"].forEach(function(e) {
|
|
3412
|
-
|
|
3412
|
+
ne[e] = new le(e, 3, !0, e, null, !1, !1);
|
|
3413
3413
|
});
|
|
3414
3414
|
["capture", "download"].forEach(function(e) {
|
|
3415
|
-
|
|
3415
|
+
ne[e] = new le(e, 4, !1, e, null, !1, !1);
|
|
3416
3416
|
});
|
|
3417
3417
|
["cols", "rows", "size", "span"].forEach(function(e) {
|
|
3418
|
-
|
|
3418
|
+
ne[e] = new le(e, 6, !1, e, null, !1, !1);
|
|
3419
3419
|
});
|
|
3420
3420
|
["rowSpan", "start"].forEach(function(e) {
|
|
3421
|
-
|
|
3421
|
+
ne[e] = new le(e, 5, !1, e.toLowerCase(), null, !1, !1);
|
|
3422
3422
|
});
|
|
3423
3423
|
var xo = /[\-:]([a-z])/g;
|
|
3424
3424
|
function bo(e) {
|
|
@@ -3429,22 +3429,22 @@ function bo(e) {
|
|
|
3429
3429
|
xo,
|
|
3430
3430
|
bo
|
|
3431
3431
|
);
|
|
3432
|
-
|
|
3432
|
+
ne[t] = new le(t, 1, !1, e, null, !1, !1);
|
|
3433
3433
|
});
|
|
3434
3434
|
"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e) {
|
|
3435
3435
|
var t = e.replace(xo, bo);
|
|
3436
|
-
|
|
3436
|
+
ne[t] = new le(t, 1, !1, e, "http://www.w3.org/1999/xlink", !1, !1);
|
|
3437
3437
|
});
|
|
3438
3438
|
["xml:base", "xml:lang", "xml:space"].forEach(function(e) {
|
|
3439
3439
|
var t = e.replace(xo, bo);
|
|
3440
|
-
|
|
3440
|
+
ne[t] = new le(t, 1, !1, e, "http://www.w3.org/XML/1998/namespace", !1, !1);
|
|
3441
3441
|
});
|
|
3442
3442
|
["tabIndex", "crossOrigin"].forEach(function(e) {
|
|
3443
|
-
|
|
3443
|
+
ne[e] = new le(e, 1, !1, e.toLowerCase(), null, !1, !1);
|
|
3444
3444
|
});
|
|
3445
|
-
|
|
3445
|
+
ne.xlinkHref = new le("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1);
|
|
3446
3446
|
["src", "href", "action", "formAction"].forEach(function(e) {
|
|
3447
|
-
|
|
3447
|
+
ne[e] = new le(e, 1, !1, e.toLowerCase(), null, !0, !0);
|
|
3448
3448
|
});
|
|
3449
3449
|
var qn = {
|
|
3450
3450
|
animationIterationCount: !0,
|
|
@@ -3497,7 +3497,7 @@ Object.keys(qn).forEach(function(e) {
|
|
|
3497
3497
|
});
|
|
3498
3498
|
});
|
|
3499
3499
|
var Np = /["'&<>]/;
|
|
3500
|
-
function
|
|
3500
|
+
function ee(e) {
|
|
3501
3501
|
if (typeof e == "boolean" || typeof e == "number")
|
|
3502
3502
|
return "" + e;
|
|
3503
3503
|
e = "" + e;
|
|
@@ -3530,20 +3530,20 @@ function te(e) {
|
|
|
3530
3530
|
}
|
|
3531
3531
|
return e;
|
|
3532
3532
|
}
|
|
3533
|
-
var Bp = /([A-Z])/g, $p = /^ms-/, Fi = Array.isArray, zp =
|
|
3533
|
+
var Bp = /([A-Z])/g, $p = /^ms-/, Fi = Array.isArray, zp = k("<script>"), Up = k("<\/script>"), Wp = k('<script src="'), Hp = k('<script type="module" src="'), Bs = k('" async=""><\/script>'), qp = /(<\/|<)(s)(cript)/gi;
|
|
3534
3534
|
function Gp(e, t, n, r) {
|
|
3535
3535
|
return "" + t + (n === "s" ? "\\u0073" : "\\u0053") + r;
|
|
3536
3536
|
}
|
|
3537
3537
|
function Xp(e, t, n, r, i) {
|
|
3538
|
-
e = e === void 0 ? "" : e, t = t === void 0 ? zp :
|
|
3538
|
+
e = e === void 0 ? "" : e, t = t === void 0 ? zp : k('<script nonce="' + ee(t) + '">');
|
|
3539
3539
|
var o = [];
|
|
3540
3540
|
if (n !== void 0 && o.push(t, F(("" + n).replace(qp, Gp)), Up), r !== void 0)
|
|
3541
3541
|
for (n = 0; n < r.length; n++)
|
|
3542
|
-
o.push(Wp, F(
|
|
3542
|
+
o.push(Wp, F(ee(r[n])), Bs);
|
|
3543
3543
|
if (i !== void 0)
|
|
3544
3544
|
for (r = 0; r < i.length; r++)
|
|
3545
|
-
o.push(Hp, F(
|
|
3546
|
-
return { bootstrapChunks: o, startInlineScript: t, placeholderPrefix:
|
|
3545
|
+
o.push(Hp, F(ee(i[r])), Bs);
|
|
3546
|
+
return { bootstrapChunks: o, startInlineScript: t, placeholderPrefix: k(e + "P:"), segmentPrefix: k(e + "S:"), boundaryPrefix: e + "B:", idPrefix: e, nextSuspenseID: 0, sentCompleteSegmentFunction: !1, sentCompleteBoundaryFunction: !1, sentClientRenderFunction: !1 };
|
|
3547
3547
|
}
|
|
3548
3548
|
function Oe(e, t) {
|
|
3549
3549
|
return { insertionMode: e, selectedValue: t };
|
|
@@ -3574,11 +3574,11 @@ function Yp(e, t, n) {
|
|
|
3574
3574
|
}
|
|
3575
3575
|
return 4 <= e.insertionMode || e.insertionMode === 0 ? Oe(1, null) : e;
|
|
3576
3576
|
}
|
|
3577
|
-
var wo =
|
|
3577
|
+
var wo = k("<!-- -->");
|
|
3578
3578
|
function $s(e, t, n, r) {
|
|
3579
|
-
return t === "" ? r : (r && e.push(wo), e.push(F(
|
|
3579
|
+
return t === "" ? r : (r && e.push(wo), e.push(F(ee(t))), !0);
|
|
3580
3580
|
}
|
|
3581
|
-
var zs = /* @__PURE__ */ new Map(), Jp =
|
|
3581
|
+
var zs = /* @__PURE__ */ new Map(), Jp = k(' style="'), Us = k(":"), Zp = k(";");
|
|
3582
3582
|
function Du(e, t, n) {
|
|
3583
3583
|
if (typeof n != "object")
|
|
3584
3584
|
throw Error(V(62));
|
|
@@ -3588,19 +3588,19 @@ function Du(e, t, n) {
|
|
|
3588
3588
|
var i = n[r];
|
|
3589
3589
|
if (i != null && typeof i != "boolean" && i !== "") {
|
|
3590
3590
|
if (r.indexOf("--") === 0) {
|
|
3591
|
-
var o = F(
|
|
3592
|
-
i = F(
|
|
3591
|
+
var o = F(ee(r));
|
|
3592
|
+
i = F(ee(("" + i).trim()));
|
|
3593
3593
|
} else {
|
|
3594
3594
|
o = r;
|
|
3595
3595
|
var s = zs.get(o);
|
|
3596
|
-
s !== void 0 || (s =
|
|
3596
|
+
s !== void 0 || (s = k(ee(o.replace(Bp, "-$1").toLowerCase().replace($p, "-ms-"))), zs.set(o, s)), o = s, i = typeof i == "number" ? i === 0 || fe.call(qn, r) ? F("" + i) : F(i + "px") : F(ee(("" + i).trim()));
|
|
3597
3597
|
}
|
|
3598
3598
|
t ? (t = !1, e.push(Jp, o, Us, i)) : e.push(Zp, o, Us, i);
|
|
3599
3599
|
}
|
|
3600
3600
|
}
|
|
3601
3601
|
t || e.push(mt);
|
|
3602
3602
|
}
|
|
3603
|
-
var Je =
|
|
3603
|
+
var Je = k(" "), At = k('="'), mt = k('"'), Ws = k('=""');
|
|
3604
3604
|
function pe(e, t, n, r) {
|
|
3605
3605
|
switch (n) {
|
|
3606
3606
|
case "style":
|
|
@@ -3614,7 +3614,7 @@ function pe(e, t, n, r) {
|
|
|
3614
3614
|
return;
|
|
3615
3615
|
}
|
|
3616
3616
|
if (!(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N") {
|
|
3617
|
-
if (t =
|
|
3617
|
+
if (t = ne.hasOwnProperty(n) ? ne[n] : null, t !== null) {
|
|
3618
3618
|
switch (typeof r) {
|
|
3619
3619
|
case "function":
|
|
3620
3620
|
case "symbol":
|
|
@@ -3628,16 +3628,16 @@ function pe(e, t, n, r) {
|
|
|
3628
3628
|
r && e.push(Je, n, Ws);
|
|
3629
3629
|
break;
|
|
3630
3630
|
case 4:
|
|
3631
|
-
r === !0 ? e.push(Je, n, Ws) : r !== !1 && e.push(Je, n, At, F(
|
|
3631
|
+
r === !0 ? e.push(Je, n, Ws) : r !== !1 && e.push(Je, n, At, F(ee(r)), mt);
|
|
3632
3632
|
break;
|
|
3633
3633
|
case 5:
|
|
3634
|
-
isNaN(r) || e.push(Je, n, At, F(
|
|
3634
|
+
isNaN(r) || e.push(Je, n, At, F(ee(r)), mt);
|
|
3635
3635
|
break;
|
|
3636
3636
|
case 6:
|
|
3637
|
-
!isNaN(r) && 1 <= r && e.push(Je, n, At, F(
|
|
3637
|
+
!isNaN(r) && 1 <= r && e.push(Je, n, At, F(ee(r)), mt);
|
|
3638
3638
|
break;
|
|
3639
3639
|
default:
|
|
3640
|
-
t.sanitizeURL && (r = "" + r), e.push(Je, n, At, F(
|
|
3640
|
+
t.sanitizeURL && (r = "" + r), e.push(Je, n, At, F(ee(r)), mt);
|
|
3641
3641
|
}
|
|
3642
3642
|
} else if (Lu(n)) {
|
|
3643
3643
|
switch (typeof r) {
|
|
@@ -3648,11 +3648,11 @@ function pe(e, t, n, r) {
|
|
|
3648
3648
|
if (t = n.toLowerCase().slice(0, 5), t !== "data-" && t !== "aria-")
|
|
3649
3649
|
return;
|
|
3650
3650
|
}
|
|
3651
|
-
e.push(Je, F(n), At, F(
|
|
3651
|
+
e.push(Je, F(n), At, F(ee(r)), mt);
|
|
3652
3652
|
}
|
|
3653
3653
|
}
|
|
3654
3654
|
}
|
|
3655
|
-
var Ze =
|
|
3655
|
+
var Ze = k(">"), Hs = k("/>");
|
|
3656
3656
|
function Gn(e, t, n) {
|
|
3657
3657
|
if (t != null) {
|
|
3658
3658
|
if (n != null)
|
|
@@ -3668,7 +3668,7 @@ function Qp(e) {
|
|
|
3668
3668
|
n != null && (t += n);
|
|
3669
3669
|
}), t;
|
|
3670
3670
|
}
|
|
3671
|
-
var ni =
|
|
3671
|
+
var ni = k(' selected=""');
|
|
3672
3672
|
function ri(e, t, n, r) {
|
|
3673
3673
|
e.push(_e(n));
|
|
3674
3674
|
var i = n = null, o;
|
|
@@ -3687,20 +3687,20 @@ function ri(e, t, n, r) {
|
|
|
3687
3687
|
pe(e, r, o, s);
|
|
3688
3688
|
}
|
|
3689
3689
|
}
|
|
3690
|
-
return e.push(Ze), Gn(e, i, n), typeof n == "string" ? (e.push(F(
|
|
3690
|
+
return e.push(Ze), Gn(e, i, n), typeof n == "string" ? (e.push(F(ee(n))), null) : n;
|
|
3691
3691
|
}
|
|
3692
|
-
var ii =
|
|
3692
|
+
var ii = k(`
|
|
3693
3693
|
`), em = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, qs = /* @__PURE__ */ new Map();
|
|
3694
3694
|
function _e(e) {
|
|
3695
3695
|
var t = qs.get(e);
|
|
3696
3696
|
if (t === void 0) {
|
|
3697
3697
|
if (!em.test(e))
|
|
3698
3698
|
throw Error(V(65, e));
|
|
3699
|
-
t =
|
|
3699
|
+
t = k("<" + e), qs.set(e, t);
|
|
3700
3700
|
}
|
|
3701
3701
|
return t;
|
|
3702
3702
|
}
|
|
3703
|
-
var tm =
|
|
3703
|
+
var tm = k("<!DOCTYPE html>");
|
|
3704
3704
|
function nm(e, t, n, r, i) {
|
|
3705
3705
|
switch (t) {
|
|
3706
3706
|
case "select":
|
|
@@ -3787,7 +3787,7 @@ function nm(e, t, n, r, i) {
|
|
|
3787
3787
|
o = "" + f;
|
|
3788
3788
|
}
|
|
3789
3789
|
return typeof o == "string" && o[0] === `
|
|
3790
|
-
` && e.push(ii), o !== null && e.push(F(
|
|
3790
|
+
` && e.push(ii), o !== null && e.push(F(ee("" + o))), null;
|
|
3791
3791
|
case "input":
|
|
3792
3792
|
e.push(_e("input")), l = f = a = o = null;
|
|
3793
3793
|
for (s in n)
|
|
@@ -3924,21 +3924,21 @@ function nm(e, t, n, r, i) {
|
|
|
3924
3924
|
case "suppressHydrationWarning":
|
|
3925
3925
|
break;
|
|
3926
3926
|
default:
|
|
3927
|
-
Lu(u) && typeof a != "function" && typeof a != "symbol" && e.push(Je, F(u), At, F(
|
|
3927
|
+
Lu(u) && typeof a != "function" && typeof a != "symbol" && e.push(Je, F(u), At, F(ee(a)), mt);
|
|
3928
3928
|
}
|
|
3929
3929
|
return e.push(Ze), Gn(e, s, o), o;
|
|
3930
3930
|
}
|
|
3931
3931
|
}
|
|
3932
|
-
var rm =
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
var mm =
|
|
3932
|
+
var rm = k("</"), im = k(">"), om = k('<template id="'), sm = k('"></template>'), am = k("<!--$-->"), lm = k('<!--$?--><template id="'), um = k('"></template>'), cm = k("<!--$!-->"), fm = k("<!--/$-->"), dm = k("<template"), hm = k('"'), pm = k(' data-dgst="');
|
|
3933
|
+
k(' data-msg="');
|
|
3934
|
+
k(' data-stck="');
|
|
3935
|
+
var mm = k("></template>");
|
|
3936
3936
|
function Gs(e, t, n) {
|
|
3937
3937
|
if (A(e, lm), n === null)
|
|
3938
3938
|
throw Error(V(395));
|
|
3939
3939
|
return A(e, n), B(e, um);
|
|
3940
3940
|
}
|
|
3941
|
-
var gm =
|
|
3941
|
+
var gm = k('<div hidden id="'), ym = k('">'), vm = k("</div>"), xm = k('<svg aria-hidden="true" style="display:none" id="'), bm = k('">'), wm = k("</svg>"), Sm = k('<math aria-hidden="true" style="display:none" id="'), Em = k('">'), Cm = k("</math>"), km = k('<table hidden id="'), Tm = k('">'), Pm = k("</table>"), Rm = k('<table hidden><tbody id="'), Am = k('">'), Om = k("</tbody></table>"), _m = k('<table hidden><tr id="'), Mm = k('">'), Vm = k("</tr></table>"), Fm = k('<table hidden><colgroup id="'), Lm = k('">'), Dm = k("</colgroup></table>");
|
|
3942
3942
|
function jm(e, t, n, r) {
|
|
3943
3943
|
switch (n.insertionMode) {
|
|
3944
3944
|
case 0:
|
|
@@ -3984,7 +3984,7 @@ function Im(e, t) {
|
|
|
3984
3984
|
throw Error(V(397));
|
|
3985
3985
|
}
|
|
3986
3986
|
}
|
|
3987
|
-
var Nm =
|
|
3987
|
+
var Nm = k('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'), Bm = k('$RS("'), $m = k('","'), zm = k('")<\/script>'), Um = k('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'), Wm = k('$RC("'), Hm = k('","'), qm = k('")<\/script>'), Gm = k('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'), Xm = k('$RX("'), Km = k('"'), Ym = k(")<\/script>"), oi = k(","), Jm = /[<\u2028\u2029]/g;
|
|
3988
3988
|
function si(e) {
|
|
3989
3989
|
return JSON.stringify(e).replace(Jm, function(t) {
|
|
3990
3990
|
switch (t) {
|
|
@@ -4567,11 +4567,11 @@ function Vr(e, t, n) {
|
|
|
4567
4567
|
if (r === null)
|
|
4568
4568
|
return On(e, t, n);
|
|
4569
4569
|
if (r.parentFlushed = !0, r.forceClientRender)
|
|
4570
|
-
r = r.errorDigest, B(t, cm), A(t, dm), r && (A(t, pm), A(t, F(
|
|
4570
|
+
r = r.errorDigest, B(t, cm), A(t, dm), r && (A(t, pm), A(t, F(ee(r))), A(t, hm)), B(t, mm), On(e, t, n);
|
|
4571
4571
|
else if (0 < r.pendingTasks) {
|
|
4572
4572
|
r.rootSegmentID = e.nextSegmentId++, 0 < r.completedSegments.length && e.partialBoundaries.push(r);
|
|
4573
4573
|
var i = e.responseState, o = i.nextSuspenseID++;
|
|
4574
|
-
i =
|
|
4574
|
+
i = k(i.boundaryPrefix + o.toString(16)), r = r.id = i, Gs(t, e.responseState, r), On(e, t, n);
|
|
4575
4575
|
} else if (r.byteSize > e.progressiveChunkSize)
|
|
4576
4576
|
r.rootSegmentID = e.nextSegmentId++, e.completedBoundaries.push(r), Gs(t, e.responseState, r.id), On(e, t, n);
|
|
4577
4577
|
else {
|
|
@@ -4776,8 +4776,8 @@ var bg = ac(function(e) {
|
|
|
4776
4776
|
for (v = [], E = y.length; S < E; S++)
|
|
4777
4777
|
v.push(n(g, y[S], b));
|
|
4778
4778
|
else
|
|
4779
|
-
for (var
|
|
4780
|
-
Object.prototype.hasOwnProperty.call(y,
|
|
4779
|
+
for (var C in v = {}, y)
|
|
4780
|
+
Object.prototype.hasOwnProperty.call(y, C) && (v[g(C, b)] = n(g, y[C], b));
|
|
4781
4781
|
return v;
|
|
4782
4782
|
}, r = function(g) {
|
|
4783
4783
|
return h(g) ? g : (g = g.replace(/[\-_\s]+(.)?/g, function(y, b) {
|
|
@@ -4913,13 +4913,13 @@ function Rg(e) {
|
|
|
4913
4913
|
l.length > 0 && (v.adoptedStyleSheets = l), g(v);
|
|
4914
4914
|
} catch (S) {
|
|
4915
4915
|
(function(E) {
|
|
4916
|
-
var
|
|
4917
|
-
switch (
|
|
4916
|
+
var C = E.error, T = E.styleSheets, P = E.root;
|
|
4917
|
+
switch (C.name) {
|
|
4918
4918
|
case "NotSupportedError":
|
|
4919
4919
|
T.length > 0 && (P.adoptedStyleSheets = T);
|
|
4920
4920
|
break;
|
|
4921
4921
|
default:
|
|
4922
|
-
throw
|
|
4922
|
+
throw C;
|
|
4923
4923
|
}
|
|
4924
4924
|
})({ error: S, styleSheets: l, root: m });
|
|
4925
4925
|
}
|
|
@@ -5153,7 +5153,7 @@ const Ng = {
|
|
|
5153
5153
|
color: rn.danger
|
|
5154
5154
|
}
|
|
5155
5155
|
});
|
|
5156
|
-
},
|
|
5156
|
+
}, lw = (e) => {
|
|
5157
5157
|
N(e, {
|
|
5158
5158
|
closeButton: Bg,
|
|
5159
5159
|
toastId: "notify",
|
|
@@ -5780,7 +5780,7 @@ function ky(e, t, n, r) {
|
|
|
5780
5780
|
i[b] = m[b];
|
|
5781
5781
|
}), i;
|
|
5782
5782
|
}
|
|
5783
|
-
const
|
|
5783
|
+
const G = (e) => e;
|
|
5784
5784
|
class ya {
|
|
5785
5785
|
constructor() {
|
|
5786
5786
|
this.order = [], this.scheduled = /* @__PURE__ */ new Set();
|
|
@@ -5856,7 +5856,7 @@ function Ry(e, t) {
|
|
|
5856
5856
|
return c[d] = (p, m = !1, g = !1) => (n || l(), h.schedule(p, m, g)), c;
|
|
5857
5857
|
}, {}), cancel: (c) => Vn.forEach((d) => o[d].cancel(c)), state: i, steps: o };
|
|
5858
5858
|
}
|
|
5859
|
-
const { schedule: $, cancel: He, state:
|
|
5859
|
+
const { schedule: $, cancel: He, state: re, steps: ui } = Ry(typeof requestAnimationFrame < "u" ? requestAnimationFrame : G, !0), Ay = {
|
|
5860
5860
|
useVisualState: _c({
|
|
5861
5861
|
scrapeMotionValuesFromProps: Oc,
|
|
5862
5862
|
createRenderState: Tc,
|
|
@@ -5993,7 +5993,7 @@ function ci(e, t) {
|
|
|
5993
5993
|
}
|
|
5994
5994
|
class Dy extends lt {
|
|
5995
5995
|
constructor() {
|
|
5996
|
-
super(...arguments), this.removeStartListeners =
|
|
5996
|
+
super(...arguments), this.removeStartListeners = G, this.removeEndListeners = G, this.removeAccessibleListeners = G, this.startPointerPress = (t, n) => {
|
|
5997
5997
|
if (this.isPressing)
|
|
5998
5998
|
return;
|
|
5999
5999
|
this.removeEndListeners();
|
|
@@ -6141,7 +6141,7 @@ function Br(e, t, n) {
|
|
|
6141
6141
|
const r = e.getProps();
|
|
6142
6142
|
return No(r, t, n !== void 0 ? n : r.custom, Hy(e), qy(e));
|
|
6143
6143
|
}
|
|
6144
|
-
let Gy =
|
|
6144
|
+
let Gy = G, Bo = G;
|
|
6145
6145
|
const ot = (e) => e * 1e3, ze = (e) => e / 1e3, Xy = {
|
|
6146
6146
|
current: !1
|
|
6147
6147
|
}, Ic = (e) => Array.isArray(e) && typeof e[0] == "number";
|
|
@@ -6190,12 +6190,12 @@ function Qy(e, t, n, r, i) {
|
|
|
6190
6190
|
}
|
|
6191
6191
|
function Cn(e, t, n, r) {
|
|
6192
6192
|
if (e === t && n === r)
|
|
6193
|
-
return
|
|
6193
|
+
return G;
|
|
6194
6194
|
const i = (o) => Qy(o, 0, 1, e, n);
|
|
6195
6195
|
return (o) => o === 0 || o === 1 ? o : zc(i(o), t, r);
|
|
6196
6196
|
}
|
|
6197
6197
|
const ev = Cn(0.42, 0, 1, 1), tv = Cn(0, 0, 0.58, 1), Uc = Cn(0.42, 0, 0.58, 1), nv = (e) => Array.isArray(e) && typeof e[0] != "number", Wc = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Hc = (e) => (t) => 1 - e(1 - t), $o = (e) => 1 - Math.sin(Math.acos(e)), qc = Hc($o), rv = Wc($o), Gc = Cn(0.33, 1.53, 0.69, 0.99), zo = Hc(Gc), iv = Wc(zo), ov = (e) => (e *= 2) < 1 ? 0.5 * zo(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), sv = {
|
|
6198
|
-
linear:
|
|
6198
|
+
linear: G,
|
|
6199
6199
|
easeIn: ev,
|
|
6200
6200
|
easeInOut: Uc,
|
|
6201
6201
|
easeOut: tv,
|
|
@@ -6253,7 +6253,7 @@ const Wi = {
|
|
|
6253
6253
|
test: (e) => xt.test(e) || Wi.test(e) || Vt.test(e),
|
|
6254
6254
|
parse: (e) => xt.test(e) ? xt.parse(e) : Vt.test(e) ? Vt.parse(e) : Wi.parse(e),
|
|
6255
6255
|
transform: (e) => Sn(e) ? e : e.hasOwnProperty("red") ? xt.transform(e) : Vt.transform(e)
|
|
6256
|
-
},
|
|
6256
|
+
}, H = (e, t, n) => -n * e + n * t + e;
|
|
6257
6257
|
function hi(e, t, n) {
|
|
6258
6258
|
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
|
|
6259
6259
|
}
|
|
@@ -6284,7 +6284,7 @@ function Sa(e) {
|
|
|
6284
6284
|
}
|
|
6285
6285
|
const Kc = (e, t) => {
|
|
6286
6286
|
const n = Sa(e), r = Sa(t), i = { ...n };
|
|
6287
|
-
return (o) => (i.red = pi(n.red, r.red, o), i.green = pi(n.green, r.green, o), i.blue = pi(n.blue, r.blue, o), i.alpha =
|
|
6287
|
+
return (o) => (i.red = pi(n.red, r.red, o), i.green = pi(n.green, r.green, o), i.blue = pi(n.blue, r.blue, o), i.alpha = H(n.alpha, r.alpha, o), xt.transform(i));
|
|
6288
6288
|
};
|
|
6289
6289
|
function dv(e) {
|
|
6290
6290
|
var t, n;
|
|
@@ -6294,7 +6294,7 @@ const Yc = {
|
|
|
6294
6294
|
regex: iy,
|
|
6295
6295
|
countKey: "Vars",
|
|
6296
6296
|
token: "${v}",
|
|
6297
|
-
parse:
|
|
6297
|
+
parse: G
|
|
6298
6298
|
}, Jc = {
|
|
6299
6299
|
regex: Sc,
|
|
6300
6300
|
countKey: "Colors",
|
|
@@ -6345,7 +6345,7 @@ const at = {
|
|
|
6345
6345
|
getAnimatableNone: pv
|
|
6346
6346
|
}, tf = (e, t) => (n) => `${n > 0 ? t : e}`;
|
|
6347
6347
|
function nf(e, t) {
|
|
6348
|
-
return typeof e == "number" ? (n) =>
|
|
6348
|
+
return typeof e == "number" ? (n) => H(e, t, n) : oe.test(e) ? Kc(e, t) : e.startsWith("var(") ? tf(e, t) : of(e, t);
|
|
6349
6349
|
}
|
|
6350
6350
|
const rf = (e, t) => {
|
|
6351
6351
|
const n = [...e], r = n.length, i = e.map((o, s) => nf(o, t[s]));
|
|
@@ -6369,7 +6369,7 @@ const rf = (e, t) => {
|
|
|
6369
6369
|
}, gn = (e, t, n) => {
|
|
6370
6370
|
const r = t - e;
|
|
6371
6371
|
return r === 0 ? 1 : (n - e) / r;
|
|
6372
|
-
}, Ea = (e, t) => (n) =>
|
|
6372
|
+
}, Ea = (e, t) => (n) => H(e, t, n);
|
|
6373
6373
|
function gv(e) {
|
|
6374
6374
|
return typeof e == "number" ? Ea : typeof e == "string" ? oe.test(e) ? Kc : of : Array.isArray(e) ? rf : typeof e == "object" ? mv : Ea;
|
|
6375
6375
|
}
|
|
@@ -6378,7 +6378,7 @@ function yv(e, t, n) {
|
|
|
6378
6378
|
for (let s = 0; s < o; s++) {
|
|
6379
6379
|
let a = i(e[s], e[s + 1]);
|
|
6380
6380
|
if (t) {
|
|
6381
|
-
const l = Array.isArray(t) ? t[s] ||
|
|
6381
|
+
const l = Array.isArray(t) ? t[s] || G : t;
|
|
6382
6382
|
a = it(l, a);
|
|
6383
6383
|
}
|
|
6384
6384
|
r.push(a);
|
|
@@ -6404,7 +6404,7 @@ function vv(e, t) {
|
|
|
6404
6404
|
const n = e[e.length - 1];
|
|
6405
6405
|
for (let r = 1; r <= t; r++) {
|
|
6406
6406
|
const i = gn(0, t, r);
|
|
6407
|
-
e.push(
|
|
6407
|
+
e.push(H(n, 1, i));
|
|
6408
6408
|
}
|
|
6409
6409
|
}
|
|
6410
6410
|
function xv(e) {
|
|
@@ -6527,8 +6527,8 @@ function uf({ keyframes: e, restDelta: t, restSpeed: n, ...r }) {
|
|
|
6527
6527
|
else {
|
|
6528
6528
|
const v = g * Math.sqrt(p * p - 1);
|
|
6529
6529
|
b = (S) => {
|
|
6530
|
-
const E = Math.exp(-p * g * S),
|
|
6531
|
-
return o - E * ((h + p * g * m) * Math.sinh(
|
|
6530
|
+
const E = Math.exp(-p * g * S), C = Math.min(v * S, 300);
|
|
6531
|
+
return o - E * ((h + p * g * m) * Math.sinh(C) + v * m * Math.cosh(C)) / v;
|
|
6532
6532
|
};
|
|
6533
6533
|
}
|
|
6534
6534
|
return {
|
|
@@ -6540,8 +6540,8 @@ function uf({ keyframes: e, restDelta: t, restSpeed: n, ...r }) {
|
|
|
6540
6540
|
else {
|
|
6541
6541
|
let E = h;
|
|
6542
6542
|
v !== 0 && (p < 1 ? E = lf(b, v, S) : E = 0);
|
|
6543
|
-
const
|
|
6544
|
-
s.done =
|
|
6543
|
+
const C = Math.abs(E) <= n, T = Math.abs(o - S) <= t;
|
|
6544
|
+
s.done = C && T;
|
|
6545
6545
|
}
|
|
6546
6546
|
return s.value = s.done ? o : S, s;
|
|
6547
6547
|
}
|
|
@@ -6556,12 +6556,12 @@ function Ta({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
6556
6556
|
const g = c + m, y = s === void 0 ? g : s(g);
|
|
6557
6557
|
y !== g && (m = y - c);
|
|
6558
6558
|
const b = (P) => -m * Math.exp(-P / r), v = (P) => y + b(P), S = (P) => {
|
|
6559
|
-
const M = b(P),
|
|
6560
|
-
d.done = Math.abs(M) <= u, d.value = d.done ? y :
|
|
6559
|
+
const M = b(P), X = v(P);
|
|
6560
|
+
d.done = Math.abs(M) <= u, d.value = d.done ? y : X;
|
|
6561
6561
|
};
|
|
6562
|
-
let E,
|
|
6562
|
+
let E, C;
|
|
6563
6563
|
const T = (P) => {
|
|
6564
|
-
h(d.value) && (E = P,
|
|
6564
|
+
h(d.value) && (E = P, C = uf({
|
|
6565
6565
|
keyframes: [d.value, p(d.value)],
|
|
6566
6566
|
velocity: lf(v, P, d.value),
|
|
6567
6567
|
damping: i,
|
|
@@ -6574,7 +6574,7 @@ function Ta({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
6574
6574
|
calculatedDuration: null,
|
|
6575
6575
|
next: (P) => {
|
|
6576
6576
|
let M = !1;
|
|
6577
|
-
return !
|
|
6577
|
+
return !C && E === void 0 && (M = !0, S(P), T(P)), E !== void 0 && P > E ? C.next(P - E) : (!M && S(P), d);
|
|
6578
6578
|
}
|
|
6579
6579
|
};
|
|
6580
6580
|
}
|
|
@@ -6587,7 +6587,7 @@ const Mv = (e) => {
|
|
|
6587
6587
|
* If we're processing this frame we can use the
|
|
6588
6588
|
* framelocked timestamp to keep things in sync.
|
|
6589
6589
|
*/
|
|
6590
|
-
now: () =>
|
|
6590
|
+
now: () => re.isProcessing ? re.timestamp : performance.now()
|
|
6591
6591
|
};
|
|
6592
6592
|
}, Pa = 2e4;
|
|
6593
6593
|
function Ra(e) {
|
|
@@ -6620,48 +6620,48 @@ function vr({ autoplay: e = !0, delay: t = 0, driver: n = Mv, keyframes: r, type
|
|
|
6620
6620
|
clamp: !1
|
|
6621
6621
|
}), r = [0, 100]);
|
|
6622
6622
|
const E = v({ ...d, keyframes: r });
|
|
6623
|
-
let
|
|
6624
|
-
a === "mirror" && (
|
|
6623
|
+
let C;
|
|
6624
|
+
a === "mirror" && (C = v({
|
|
6625
6625
|
...d,
|
|
6626
6626
|
keyframes: [...r].reverse(),
|
|
6627
6627
|
velocity: -(d.velocity || 0)
|
|
6628
6628
|
}));
|
|
6629
|
-
let T = "idle", P = null, M = null,
|
|
6629
|
+
let T = "idle", P = null, M = null, X = null;
|
|
6630
6630
|
E.calculatedDuration === null && o && (E.calculatedDuration = Ra(E));
|
|
6631
|
-
const { calculatedDuration:
|
|
6632
|
-
let z = 1 / 0,
|
|
6633
|
-
|
|
6634
|
-
let
|
|
6635
|
-
const
|
|
6631
|
+
const { calculatedDuration: W } = E;
|
|
6632
|
+
let z = 1 / 0, K = 1 / 0;
|
|
6633
|
+
W !== null && (z = W + s, K = z * (o + 1) - s);
|
|
6634
|
+
let U = 0;
|
|
6635
|
+
const ie = (I) => {
|
|
6636
6636
|
if (M === null)
|
|
6637
6637
|
return;
|
|
6638
|
-
h > 0 && (M = Math.min(M, I)), h < 0 && (M = Math.min(I -
|
|
6639
|
-
const Ct =
|
|
6640
|
-
|
|
6641
|
-
let Hr =
|
|
6638
|
+
h > 0 && (M = Math.min(M, I)), h < 0 && (M = Math.min(I - K / h, M)), P !== null ? U = P : U = Math.round(I - M) * h;
|
|
6639
|
+
const Ct = U - t * (h >= 0 ? 1 : -1), kt = h >= 0 ? Ct < 0 : Ct > K;
|
|
6640
|
+
U = Math.max(Ct, 0), T === "finished" && P === null && (U = K);
|
|
6641
|
+
let Hr = U, ut = E;
|
|
6642
6642
|
if (o) {
|
|
6643
|
-
const Ut = Math.min(
|
|
6643
|
+
const Ut = Math.min(U, K) / z;
|
|
6644
6644
|
let ct = Math.floor(Ut), Ce = Ut % 1;
|
|
6645
|
-
!Ce && Ut >= 1 && (Ce = 1), Ce === 1 && ct--, ct = Math.min(ct, o + 1), !!(ct % 2) && (a === "reverse" ? (Ce = 1 - Ce, s && (Ce -= s / z)) : a === "mirror" && (ut =
|
|
6645
|
+
!Ce && Ut >= 1 && (Ce = 1), Ce === 1 && ct--, ct = Math.min(ct, o + 1), !!(ct % 2) && (a === "reverse" ? (Ce = 1 - Ce, s && (Ce -= s / z)) : a === "mirror" && (ut = C)), Hr = st(0, 1, Ce) * z;
|
|
6646
6646
|
}
|
|
6647
6647
|
const De = kt ? { done: !1, value: r[0] } : ut.next(Hr);
|
|
6648
6648
|
S && (De.value = S(De.value));
|
|
6649
6649
|
let { done: Tt } = De;
|
|
6650
|
-
!kt &&
|
|
6650
|
+
!kt && W !== null && (Tt = h >= 0 ? U >= K : U <= 0);
|
|
6651
6651
|
const Pt = P === null && (T === "finished" || T === "running" && Tt);
|
|
6652
|
-
return c && c(De.value), Pt &&
|
|
6653
|
-
},
|
|
6652
|
+
return c && c(De.value), Pt && Q(), De;
|
|
6653
|
+
}, q = () => {
|
|
6654
6654
|
b && b.stop(), b = void 0;
|
|
6655
6655
|
}, Pe = () => {
|
|
6656
|
-
T = "idle",
|
|
6657
|
-
},
|
|
6658
|
-
T = "finished", f && f(),
|
|
6656
|
+
T = "idle", q(), m(), y(), M = X = null;
|
|
6657
|
+
}, Q = () => {
|
|
6658
|
+
T = "finished", f && f(), q(), m();
|
|
6659
6659
|
}, qe = () => {
|
|
6660
6660
|
if (p)
|
|
6661
6661
|
return;
|
|
6662
|
-
b || (b = n(
|
|
6662
|
+
b || (b = n(ie));
|
|
6663
6663
|
const I = b.now();
|
|
6664
|
-
l && l(), P !== null ? M = I - P : (!M || T === "finished") && (M = I), T === "finished" && y(),
|
|
6664
|
+
l && l(), P !== null ? M = I - P : (!M || T === "finished") && (M = I), T === "finished" && y(), X = M, P = null, T = "running", b.start();
|
|
6665
6665
|
};
|
|
6666
6666
|
e && qe();
|
|
6667
6667
|
const Et = {
|
|
@@ -6669,10 +6669,10 @@ function vr({ autoplay: e = !0, delay: t = 0, driver: n = Mv, keyframes: r, type
|
|
|
6669
6669
|
return g.then(I, Ct);
|
|
6670
6670
|
},
|
|
6671
6671
|
get time() {
|
|
6672
|
-
return ze(
|
|
6672
|
+
return ze(U);
|
|
6673
6673
|
},
|
|
6674
6674
|
set time(I) {
|
|
6675
|
-
I = ot(I),
|
|
6675
|
+
I = ot(I), U = I, P !== null || !b || h === 0 ? P = I : M = b.now() - I / h;
|
|
6676
6676
|
},
|
|
6677
6677
|
get duration() {
|
|
6678
6678
|
const I = E.calculatedDuration === null ? Ra(E) : E.calculatedDuration;
|
|
@@ -6682,25 +6682,25 @@ function vr({ autoplay: e = !0, delay: t = 0, driver: n = Mv, keyframes: r, type
|
|
|
6682
6682
|
return h;
|
|
6683
6683
|
},
|
|
6684
6684
|
set speed(I) {
|
|
6685
|
-
I === h || !b || (h = I, Et.time = ze(
|
|
6685
|
+
I === h || !b || (h = I, Et.time = ze(U));
|
|
6686
6686
|
},
|
|
6687
6687
|
get state() {
|
|
6688
6688
|
return T;
|
|
6689
6689
|
},
|
|
6690
6690
|
play: qe,
|
|
6691
6691
|
pause: () => {
|
|
6692
|
-
T = "paused", P =
|
|
6692
|
+
T = "paused", P = U;
|
|
6693
6693
|
},
|
|
6694
6694
|
stop: () => {
|
|
6695
6695
|
p = !0, T !== "idle" && (T = "idle", u && u(), Pe());
|
|
6696
6696
|
},
|
|
6697
6697
|
cancel: () => {
|
|
6698
|
-
|
|
6698
|
+
X !== null && ie(X), Pe();
|
|
6699
6699
|
},
|
|
6700
6700
|
complete: () => {
|
|
6701
6701
|
T = "finished";
|
|
6702
6702
|
},
|
|
6703
|
-
sample: (I) => (M = 0,
|
|
6703
|
+
sample: (I) => (M = 0, ie(I))
|
|
6704
6704
|
};
|
|
6705
6705
|
return Et;
|
|
6706
6706
|
}
|
|
@@ -6734,10 +6734,10 @@ function Nv(e, t, { onUpdate: n, onComplete: r, ...i }) {
|
|
|
6734
6734
|
});
|
|
6735
6735
|
let S = { done: !1, value: c[0] };
|
|
6736
6736
|
const E = [];
|
|
6737
|
-
let
|
|
6738
|
-
for (; !S.done &&
|
|
6739
|
-
S = v.sample(
|
|
6740
|
-
p = void 0, c = E, d =
|
|
6737
|
+
let C = 0;
|
|
6738
|
+
for (; !S.done && C < jv; )
|
|
6739
|
+
S = v.sample(C), E.push(S.value), C += Fn;
|
|
6740
|
+
p = void 0, c = E, d = C - Fn, h = "linear";
|
|
6741
6741
|
}
|
|
6742
6742
|
const m = Ky(e.owner.current, t, c, {
|
|
6743
6743
|
...i,
|
|
@@ -6764,7 +6764,7 @@ function Nv(e, t, { onUpdate: n, onComplete: r, ...i }) {
|
|
|
6764
6764
|
return l.then(v, S);
|
|
6765
6765
|
},
|
|
6766
6766
|
attachTimeline(v) {
|
|
6767
|
-
return m.timeline = v, m.onfinish = null,
|
|
6767
|
+
return m.timeline = v, m.onfinish = null, G;
|
|
6768
6768
|
},
|
|
6769
6769
|
get time() {
|
|
6770
6770
|
return ze(m.currentTime || 0);
|
|
@@ -6809,12 +6809,12 @@ function Bv({ keyframes: e, delay: t, onUpdate: n, onComplete: r }) {
|
|
|
6809
6809
|
time: 0,
|
|
6810
6810
|
speed: 1,
|
|
6811
6811
|
duration: 0,
|
|
6812
|
-
play:
|
|
6813
|
-
pause:
|
|
6814
|
-
stop:
|
|
6812
|
+
play: G,
|
|
6813
|
+
pause: G,
|
|
6814
|
+
stop: G,
|
|
6815
6815
|
then: (o) => (o(), Promise.resolve()),
|
|
6816
|
-
cancel:
|
|
6817
|
-
complete:
|
|
6816
|
+
cancel: G,
|
|
6817
|
+
complete: G
|
|
6818
6818
|
});
|
|
6819
6819
|
return t ? vr({
|
|
6820
6820
|
keyframes: [0, 1],
|
|
@@ -7002,7 +7002,7 @@ class t0 {
|
|
|
7002
7002
|
constructor(t, n = {}) {
|
|
7003
7003
|
this.version = "10.18.0", this.timeDelta = 0, this.lastUpdated = 0, this.canTrackVelocity = !1, this.events = {}, this.updateAndNotify = (r, i = !0) => {
|
|
7004
7004
|
this.prev = this.current, this.current = r;
|
|
7005
|
-
const { delta: o, timestamp: s } =
|
|
7005
|
+
const { delta: o, timestamp: s } = re;
|
|
7006
7006
|
this.lastUpdated !== s && (this.timeDelta = o, this.lastUpdated = s, $.postRender(this.scheduleVelocityCheck)), this.prev !== this.current && this.events.change && this.events.change.notify(this.current), this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()), i && this.events.renderRequest && this.events.renderRequest.notify(this.current);
|
|
7007
7007
|
}, this.scheduleVelocityCheck = () => $.postRender(this.velocityCheck), this.velocityCheck = ({ timestamp: r }) => {
|
|
7008
7008
|
r !== this.lastUpdated && (this.prev = this.current, this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()));
|
|
@@ -7333,35 +7333,35 @@ function v0(e) {
|
|
|
7333
7333
|
const f = e.getProps(), c = e.getVariantContext(!0) || {}, d = [], h = /* @__PURE__ */ new Set();
|
|
7334
7334
|
let p = {}, m = 1 / 0;
|
|
7335
7335
|
for (let y = 0; y < g0; y++) {
|
|
7336
|
-
const b = m0[y], v = n[b], S = f[b] !== void 0 ? f[b] : c[b], E = pn(S),
|
|
7337
|
-
|
|
7336
|
+
const b = m0[y], v = n[b], S = f[b] !== void 0 ? f[b] : c[b], E = pn(S), C = b === u ? v.isActive : null;
|
|
7337
|
+
C === !1 && (m = y);
|
|
7338
7338
|
let T = S === c[b] && S !== f[b] && E;
|
|
7339
7339
|
if (T && r && e.manuallyAnimateOnMount && (T = !1), v.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
|
|
7340
|
-
!v.isActive &&
|
|
7340
|
+
!v.isActive && C === null || // If we didn't and don't have any defined prop for this animation type
|
|
7341
7341
|
!S && !v.prevProp || // Or if the prop doesn't define an animation
|
|
7342
7342
|
Dr(S) || typeof S == "boolean")
|
|
7343
7343
|
continue;
|
|
7344
7344
|
let M = x0(v.prevProp, S) || // If we're making this variant active, we want to always make it active
|
|
7345
7345
|
b === u && v.isActive && !T && E || // If we removed a higher-priority variant (i is in reverse order)
|
|
7346
|
-
y > m && E,
|
|
7347
|
-
const
|
|
7348
|
-
let z =
|
|
7349
|
-
|
|
7350
|
-
const { prevResolvedValues:
|
|
7351
|
-
...
|
|
7346
|
+
y > m && E, X = !1;
|
|
7347
|
+
const W = Array.isArray(S) ? S : [S];
|
|
7348
|
+
let z = W.reduce(i, {});
|
|
7349
|
+
C === !1 && (z = {});
|
|
7350
|
+
const { prevResolvedValues: K = {} } = v, U = {
|
|
7351
|
+
...K,
|
|
7352
7352
|
...z
|
|
7353
|
-
},
|
|
7354
|
-
M = !0, h.has(
|
|
7353
|
+
}, ie = (q) => {
|
|
7354
|
+
M = !0, h.has(q) && (X = !0, h.delete(q)), v.needsAnimating[q] = !0;
|
|
7355
7355
|
};
|
|
7356
|
-
for (const
|
|
7357
|
-
const Pe = z[
|
|
7358
|
-
if (p.hasOwnProperty(
|
|
7356
|
+
for (const q in U) {
|
|
7357
|
+
const Pe = z[q], Q = K[q];
|
|
7358
|
+
if (p.hasOwnProperty(q))
|
|
7359
7359
|
continue;
|
|
7360
7360
|
let qe = !1;
|
|
7361
|
-
mr(Pe) && mr(
|
|
7361
|
+
mr(Pe) && mr(Q) ? qe = !jc(Pe, Q) : qe = Pe !== Q, qe ? Pe !== void 0 ? ie(q) : h.add(q) : Pe !== void 0 && h.has(q) ? ie(q) : v.protectedKeys[q] = !0;
|
|
7362
7362
|
}
|
|
7363
|
-
v.prevProp = S, v.prevResolvedValues = z, v.isActive && (p = { ...p, ...z }), r && e.blockInitialAnimation && (M = !1), M && (!T ||
|
|
7364
|
-
animation:
|
|
7363
|
+
v.prevProp = S, v.prevResolvedValues = z, v.isActive && (p = { ...p, ...z }), r && e.blockInitialAnimation && (M = !1), M && (!T || X) && d.push(...W.map((q) => ({
|
|
7364
|
+
animation: q,
|
|
7365
7365
|
options: { type: b, ...l }
|
|
7366
7366
|
})));
|
|
7367
7367
|
}
|
|
@@ -7484,7 +7484,7 @@ class gf {
|
|
|
7484
7484
|
const c = vi(this.lastMoveEventInfo, this.history), d = this.startEvent !== null, h = k0(c.offset, { x: 0, y: 0 }) >= 3;
|
|
7485
7485
|
if (!d && !h)
|
|
7486
7486
|
return;
|
|
7487
|
-
const { point: p } = c, { timestamp: m } =
|
|
7487
|
+
const { point: p } = c, { timestamp: m } = re;
|
|
7488
7488
|
this.history.push({ ...p, timestamp: m });
|
|
7489
7489
|
const { onStart: g, onMove: y } = this.handlers;
|
|
7490
7490
|
d || (g && g(this.lastMoveEvent, c), this.startEvent = this.lastMoveEvent), y && y(this.lastMoveEvent, c);
|
|
@@ -7500,7 +7500,7 @@ class gf {
|
|
|
7500
7500
|
}, !Mc(t))
|
|
7501
7501
|
return;
|
|
7502
7502
|
this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = r, this.contextWindow = i || window;
|
|
7503
|
-
const s = Nr(t), a = yi(s, this.transformPagePoint), { point: l } = a, { timestamp: u } =
|
|
7503
|
+
const s = Nr(t), a = yi(s, this.transformPagePoint), { point: l } = a, { timestamp: u } = re;
|
|
7504
7504
|
this.history = [{ ...l, timestamp: u }];
|
|
7505
7505
|
const { onSessionStart: f } = n;
|
|
7506
7506
|
f && f(t, vi(a, this.history)), this.removeListeners = it($e(this.contextWindow, "pointermove", this.handlePointerMove), $e(this.contextWindow, "pointerup", this.handlePointerUp), $e(this.contextWindow, "pointercancel", this.handlePointerUp));
|
|
@@ -7557,7 +7557,7 @@ function Ki(e, t = 0, n = 0.01) {
|
|
|
7557
7557
|
return Math.abs(e - t) <= n;
|
|
7558
7558
|
}
|
|
7559
7559
|
function _a(e, t, n, r = 0.5) {
|
|
7560
|
-
e.origin = r, e.originPoint =
|
|
7560
|
+
e.origin = r, e.originPoint = H(t.min, t.max, e.origin), e.scale = be(n) / be(t), (Ki(e.scale, 1, 1e-4) || isNaN(e.scale)) && (e.scale = 1), e.translate = H(n.min, n.max, e.origin) - e.originPoint, (Ki(e.translate) || isNaN(e.translate)) && (e.translate = 0);
|
|
7561
7561
|
}
|
|
7562
7562
|
function an(e, t, n, r) {
|
|
7563
7563
|
_a(e.x, t.x, n.x, r ? r.originX : void 0), _a(e.y, t.y, n.y, r ? r.originY : void 0);
|
|
@@ -7575,7 +7575,7 @@ function ln(e, t, n) {
|
|
|
7575
7575
|
Va(e.x, t.x, n.x), Va(e.y, t.y, n.y);
|
|
7576
7576
|
}
|
|
7577
7577
|
function A0(e, { min: t, max: n }, r) {
|
|
7578
|
-
return t !== void 0 && e < t ? e = r ?
|
|
7578
|
+
return t !== void 0 && e < t ? e = r ? H(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? H(n, e, r.max) : Math.min(e, n)), e;
|
|
7579
7579
|
}
|
|
7580
7580
|
function Fa(e, t, n) {
|
|
7581
7581
|
return {
|
|
@@ -7710,7 +7710,7 @@ function et(e, t) {
|
|
|
7710
7710
|
e.min = e.min + t, e.max = e.max + t;
|
|
7711
7711
|
}
|
|
7712
7712
|
function Ua(e, t, [n, r, i]) {
|
|
7713
|
-
const o = t[i] !== void 0 ? t[i] : 0.5, s =
|
|
7713
|
+
const o = t[i] !== void 0 ? t[i] : 0.5, s = H(e.min, e.max, o);
|
|
7714
7714
|
Zi(e, t[n], t[r], s, t.scale);
|
|
7715
7715
|
}
|
|
7716
7716
|
const I0 = ["x", "scaleX", "originX"], N0 = ["y", "scaleY", "originY"];
|
|
@@ -7881,7 +7881,7 @@ class z0 {
|
|
|
7881
7881
|
const { projection: i } = this.visualElement, o = this.getAxisMotionValue(n);
|
|
7882
7882
|
if (i && i.layout) {
|
|
7883
7883
|
const { min: s, max: a } = i.layout.layoutBox[n];
|
|
7884
|
-
o.set(t[n] -
|
|
7884
|
+
o.set(t[n] - H(s, a, 0.5));
|
|
7885
7885
|
}
|
|
7886
7886
|
});
|
|
7887
7887
|
}
|
|
@@ -7910,7 +7910,7 @@ class z0 {
|
|
|
7910
7910
|
if (!Ln(s, t, null))
|
|
7911
7911
|
return;
|
|
7912
7912
|
const a = this.getAxisMotionValue(s), { min: l, max: u } = this.constraints[s];
|
|
7913
|
-
a.set(
|
|
7913
|
+
a.set(H(l, u, i[s]));
|
|
7914
7914
|
});
|
|
7915
7915
|
}
|
|
7916
7916
|
addListeners() {
|
|
@@ -7957,11 +7957,11 @@ function U0(e, t = 10) {
|
|
|
7957
7957
|
}
|
|
7958
7958
|
class W0 extends lt {
|
|
7959
7959
|
constructor(t) {
|
|
7960
|
-
super(t), this.removeGroupControls =
|
|
7960
|
+
super(t), this.removeGroupControls = G, this.removeListeners = G, this.controls = new z0(t);
|
|
7961
7961
|
}
|
|
7962
7962
|
mount() {
|
|
7963
7963
|
const { dragControls: t } = this.node.getProps();
|
|
7964
|
-
t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() ||
|
|
7964
|
+
t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || G;
|
|
7965
7965
|
}
|
|
7966
7966
|
unmount() {
|
|
7967
7967
|
this.removeGroupControls(), this.removeListeners();
|
|
@@ -7972,7 +7972,7 @@ const Wa = (e) => (t, n) => {
|
|
|
7972
7972
|
};
|
|
7973
7973
|
class H0 extends lt {
|
|
7974
7974
|
constructor() {
|
|
7975
|
-
super(...arguments), this.removePointerDownListener =
|
|
7975
|
+
super(...arguments), this.removePointerDownListener = G;
|
|
7976
7976
|
}
|
|
7977
7977
|
onPointerDown(t) {
|
|
7978
7978
|
this.session = new gf(t, this.createPanHandlers(), {
|
|
@@ -8042,7 +8042,7 @@ const Gt = {
|
|
|
8042
8042
|
return r;
|
|
8043
8043
|
const o = at.createTransformer(e), s = typeof i[0] != "number" ? 1 : 0, a = n.x.scale * t.x, l = n.y.scale * t.y;
|
|
8044
8044
|
i[0 + s] /= a, i[1 + s] /= l;
|
|
8045
|
-
const u =
|
|
8045
|
+
const u = H(a, l, 0.5);
|
|
8046
8046
|
return typeof i[2 + s] == "number" && (i[2 + s] /= u), typeof i[3 + s] == "number" && (i[3 + s] /= u), o(i);
|
|
8047
8047
|
}
|
|
8048
8048
|
};
|
|
@@ -8107,25 +8107,25 @@ const K0 = {
|
|
|
8107
8107
|
boxShadow: G0
|
|
8108
8108
|
}, Cf = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Y0 = Cf.length, qa = (e) => typeof e == "string" ? parseFloat(e) : e, Ga = (e) => typeof e == "number" || O.test(e);
|
|
8109
8109
|
function J0(e, t, n, r, i, o) {
|
|
8110
|
-
i ? (e.opacity =
|
|
8110
|
+
i ? (e.opacity = H(
|
|
8111
8111
|
0,
|
|
8112
8112
|
// TODO Reinstate this if only child
|
|
8113
8113
|
n.opacity !== void 0 ? n.opacity : 1,
|
|
8114
8114
|
Z0(r)
|
|
8115
|
-
), e.opacityExit =
|
|
8115
|
+
), e.opacityExit = H(t.opacity !== void 0 ? t.opacity : 1, 0, Q0(r))) : o && (e.opacity = H(t.opacity !== void 0 ? t.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, r));
|
|
8116
8116
|
for (let s = 0; s < Y0; s++) {
|
|
8117
8117
|
const a = `border${Cf[s]}Radius`;
|
|
8118
8118
|
let l = Xa(t, a), u = Xa(n, a);
|
|
8119
8119
|
if (l === void 0 && u === void 0)
|
|
8120
8120
|
continue;
|
|
8121
|
-
l || (l = 0), u || (u = 0), l === 0 || u === 0 || Ga(l) === Ga(u) ? (e[a] = Math.max(
|
|
8121
|
+
l || (l = 0), u || (u = 0), l === 0 || u === 0 || Ga(l) === Ga(u) ? (e[a] = Math.max(H(qa(l), qa(u), r), 0), (Fe.test(u) || Fe.test(l)) && (e[a] += "%")) : e[a] = u;
|
|
8122
8122
|
}
|
|
8123
|
-
(t.rotate || n.rotate) && (e.rotate =
|
|
8123
|
+
(t.rotate || n.rotate) && (e.rotate = H(t.rotate || 0, n.rotate || 0, r));
|
|
8124
8124
|
}
|
|
8125
8125
|
function Xa(e, t) {
|
|
8126
8126
|
return e[t] !== void 0 ? e[t] : e.borderRadius;
|
|
8127
8127
|
}
|
|
8128
|
-
const Z0 = kf(0, 0.5, qc), Q0 = kf(0.5, 0.95,
|
|
8128
|
+
const Z0 = kf(0, 0.5, qc), Q0 = kf(0.5, 0.95, G);
|
|
8129
8129
|
function kf(e, t, n) {
|
|
8130
8130
|
return (r) => r < e ? 0 : r > t ? 1 : n(gn(e, t, r));
|
|
8131
8131
|
}
|
|
@@ -8139,9 +8139,9 @@ function Ya(e, t, n, r, i) {
|
|
|
8139
8139
|
return e -= t, e = br(e, 1 / n, r), i !== void 0 && (e = br(e, 1 / i, r)), e;
|
|
8140
8140
|
}
|
|
8141
8141
|
function ex(e, t = 0, n = 1, r = 0.5, i, o = e, s = e) {
|
|
8142
|
-
if (Fe.test(t) && (t = parseFloat(t), t =
|
|
8142
|
+
if (Fe.test(t) && (t = parseFloat(t), t = H(s.min, s.max, t / 100) - s.min), typeof t != "number")
|
|
8143
8143
|
return;
|
|
8144
|
-
let a =
|
|
8144
|
+
let a = H(o.min, o.max, r);
|
|
8145
8145
|
e === o && (a -= t), e.min = Ya(e.min, t, n, a, i), e.max = Ya(e.max, t, n, a, i);
|
|
8146
8146
|
}
|
|
8147
8147
|
function Ja(e, t, [n, r, i], o, s) {
|
|
@@ -8377,7 +8377,7 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8377
8377
|
}
|
|
8378
8378
|
this.isUpdating || this.nodes.forEach(vx), this.isUpdating = !1, this.nodes.forEach(xx), this.nodes.forEach(hx), this.nodes.forEach(px), this.clearAllSnapshots();
|
|
8379
8379
|
const a = performance.now();
|
|
8380
|
-
|
|
8380
|
+
re.delta = st(0, 1e3 / 60, a - re.timestamp), re.timestamp = a, re.isProcessing = !0, ui.update.process(re), ui.preRender.process(re), ui.render.process(re), re.isProcessing = !1;
|
|
8381
8381
|
}
|
|
8382
8382
|
didUpdate() {
|
|
8383
8383
|
this.updateScheduled || (this.updateScheduled = !0, queueMicrotask(() => this.update()));
|
|
@@ -8498,7 +8498,7 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8498
8498
|
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
|
|
8499
8499
|
}
|
|
8500
8500
|
forceRelativeParentToResolveTarget() {
|
|
8501
|
-
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !==
|
|
8501
|
+
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== re.timestamp && this.relativeParent.resolveTargetDelta(!0);
|
|
8502
8502
|
}
|
|
8503
8503
|
resolveTargetDelta(s = !1) {
|
|
8504
8504
|
var a;
|
|
@@ -8509,7 +8509,7 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8509
8509
|
return;
|
|
8510
8510
|
const { layout: c, layoutId: d } = this.options;
|
|
8511
8511
|
if (!(!this.layout || !(c || d))) {
|
|
8512
|
-
if (this.resolvedRelativeTargetAt =
|
|
8512
|
+
if (this.resolvedRelativeTargetAt = re.timestamp, !this.targetDelta && !this.relativeTarget) {
|
|
8513
8513
|
const h = this.getClosestProjectingParent();
|
|
8514
8514
|
h && h.layout && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = J(), this.relativeTargetOrigin = J(), ln(this.relativeTargetOrigin, this.layout.layoutBox, h.layout.layoutBox), we(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
8515
8515
|
}
|
|
@@ -8534,7 +8534,7 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8534
8534
|
var s;
|
|
8535
8535
|
const a = this.getLead(), l = !!this.resumingFrom || this !== a;
|
|
8536
8536
|
let u = !0;
|
|
8537
|
-
if ((this.isProjectionDirty || !((s = this.parent) === null || s === void 0) && s.isProjectionDirty) && (u = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (u = !1), this.resolvedRelativeTargetAt ===
|
|
8537
|
+
if ((this.isProjectionDirty || !((s = this.parent) === null || s === void 0) && s.isProjectionDirty) && (u = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (u = !1), this.resolvedRelativeTargetAt === re.timestamp && (u = !1), u)
|
|
8538
8538
|
return;
|
|
8539
8539
|
const { layout: f, layoutId: c } = this.options;
|
|
8540
8540
|
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(f || c))
|
|
@@ -8790,10 +8790,10 @@ function Ex(e) {
|
|
|
8790
8790
|
e.removeLeadSnapshot();
|
|
8791
8791
|
}
|
|
8792
8792
|
function sl(e, t, n) {
|
|
8793
|
-
e.translate =
|
|
8793
|
+
e.translate = H(t.translate, 0, n), e.scale = H(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
|
|
8794
8794
|
}
|
|
8795
8795
|
function al(e, t, n, r) {
|
|
8796
|
-
e.min =
|
|
8796
|
+
e.min = H(t.min, n.min, r), e.max = H(t.max, n.max, r);
|
|
8797
8797
|
}
|
|
8798
8798
|
function Cx(e, t, n, r) {
|
|
8799
8799
|
al(e.x, t.x, n.x, r), al(e.y, t.y, n.y, r);
|
|
@@ -8804,7 +8804,7 @@ function kx(e) {
|
|
|
8804
8804
|
const Tx = {
|
|
8805
8805
|
duration: 0.45,
|
|
8806
8806
|
ease: [0.4, 0, 0.1, 1]
|
|
8807
|
-
}, ll = (e) => typeof navigator < "u" && navigator.userAgent.toLowerCase().includes(e), ul = ll("applewebkit/") && !ll("chrome/") ? Math.round :
|
|
8807
|
+
}, ll = (e) => typeof navigator < "u" && navigator.userAgent.toLowerCase().includes(e), ul = ll("applewebkit/") && !ll("chrome/") ? Math.round : G;
|
|
8808
8808
|
function cl(e) {
|
|
8809
8809
|
e.min = ul(e.min), e.max = ul(e.max);
|
|
8810
8810
|
}
|
|
@@ -9924,7 +9924,7 @@ function Hf(e, t) {
|
|
|
9924
9924
|
i = r[o], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
9925
9925
|
return n;
|
|
9926
9926
|
}
|
|
9927
|
-
const
|
|
9927
|
+
const cw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9928
9928
|
__proto__: null,
|
|
9929
9929
|
default: Hf
|
|
9930
9930
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -9938,7 +9938,7 @@ function vn() {
|
|
|
9938
9938
|
return e;
|
|
9939
9939
|
}, vn.apply(this, arguments);
|
|
9940
9940
|
}
|
|
9941
|
-
const
|
|
9941
|
+
const fw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9942
9942
|
__proto__: null,
|
|
9943
9943
|
default: vn
|
|
9944
9944
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -10083,11 +10083,11 @@ var Ot = /* @__PURE__ */ new Map(), qf = function(t) {
|
|
|
10083
10083
|
c.setAttribute("class", g);
|
|
10084
10084
|
var y = t.getAttribute("style");
|
|
10085
10085
|
y && c.setAttribute("style", y), c.setAttribute("data-src", l);
|
|
10086
|
-
var b = [].filter.call(t.attributes, function(
|
|
10087
|
-
return /^data-\w[\w-]*$/.test(
|
|
10086
|
+
var b = [].filter.call(t.attributes, function(Q) {
|
|
10087
|
+
return /^data-\w[\w-]*$/.test(Q.name);
|
|
10088
10088
|
});
|
|
10089
|
-
if (Array.prototype.forEach.call(b, function(
|
|
10090
|
-
|
|
10089
|
+
if (Array.prototype.forEach.call(b, function(Q) {
|
|
10090
|
+
Q.name && Q.value && c.setAttribute(Q.name, Q.value);
|
|
10091
10091
|
}), r) {
|
|
10092
10092
|
var v = {
|
|
10093
10093
|
clipPath: ["clip-path"],
|
|
@@ -10100,13 +10100,13 @@ var Ot = /* @__PURE__ */ new Map(), qf = function(t) {
|
|
|
10100
10100
|
path: [],
|
|
10101
10101
|
pattern: ["fill", "stroke"],
|
|
10102
10102
|
radialGradient: ["fill", "stroke"]
|
|
10103
|
-
}, S, E,
|
|
10104
|
-
Object.keys(v).forEach(function(
|
|
10105
|
-
S =
|
|
10103
|
+
}, S, E, C, T, P;
|
|
10104
|
+
Object.keys(v).forEach(function(Q) {
|
|
10105
|
+
S = Q, C = v[Q], E = c.querySelectorAll(S + "[id]");
|
|
10106
10106
|
for (var qe = function(kt, Hr) {
|
|
10107
10107
|
T = E[kt].id, P = T + "-" + Nb();
|
|
10108
10108
|
var ut;
|
|
10109
|
-
Array.prototype.forEach.call(
|
|
10109
|
+
Array.prototype.forEach.call(C, function(qr) {
|
|
10110
10110
|
ut = c.querySelectorAll("[" + qr + '*="' + T + '"]');
|
|
10111
10111
|
for (var kn = 0, Zf = ut.length; kn < Zf; kn++) {
|
|
10112
10112
|
var es = ut[kn].getAttribute(qr);
|
|
@@ -10125,16 +10125,16 @@ var Ot = /* @__PURE__ */ new Map(), qf = function(t) {
|
|
|
10125
10125
|
});
|
|
10126
10126
|
}
|
|
10127
10127
|
c.removeAttribute("xmlns:a");
|
|
10128
|
-
for (var M = c.querySelectorAll("script"),
|
|
10129
|
-
z = M[
|
|
10130
|
-
if (
|
|
10131
|
-
for (var
|
|
10132
|
-
new Function(
|
|
10128
|
+
for (var M = c.querySelectorAll("script"), X = [], W, z, K = 0, U = M.length; K < U; K++)
|
|
10129
|
+
z = M[K].getAttribute("type"), (!z || z === "application/ecmascript" || z === "application/javascript" || z === "text/javascript") && (W = M[K].innerText || M[K].textContent, W && X.push(W), c.removeChild(M[K]));
|
|
10130
|
+
if (X.length > 0 && (n === "always" || n === "once" && !kl[l])) {
|
|
10131
|
+
for (var ie = 0, q = X.length; ie < q; ie++)
|
|
10132
|
+
new Function(X[ie])(window);
|
|
10133
10133
|
kl[l] = !0;
|
|
10134
10134
|
}
|
|
10135
10135
|
var Pe = c.querySelectorAll("style");
|
|
10136
|
-
if (Array.prototype.forEach.call(Pe, function(
|
|
10137
|
-
|
|
10136
|
+
if (Array.prototype.forEach.call(Pe, function(Q) {
|
|
10137
|
+
Q.textContent += "";
|
|
10138
10138
|
}), c.setAttribute("xmlns", Bb), c.setAttribute("xmlns:xlink", Ei), s(c), !t.parentNode) {
|
|
10139
10139
|
Re.splice(Re.indexOf(t), 1), t = null, a(new Error("Parent node is null"));
|
|
10140
10140
|
return;
|
|
@@ -10148,12 +10148,12 @@ var Ot = /* @__PURE__ */ new Map(), qf = function(t) {
|
|
|
10148
10148
|
} : l, f = r.cacheRequests, c = f === void 0 ? !0 : f, d = r.evalScripts, h = d === void 0 ? "never" : d, p = r.httpRequestWithCredentials, m = p === void 0 ? !1 : p, g = r.renumerateIRIElements, y = g === void 0 ? !0 : g;
|
|
10149
10149
|
if (t && "length" in t)
|
|
10150
10150
|
for (var b = 0, v = 0, S = t.length; v < S; v++)
|
|
10151
|
-
Tl(t[v], h, y, c, m, u, function(E,
|
|
10152
|
-
a(E,
|
|
10151
|
+
Tl(t[v], h, y, c, m, u, function(E, C) {
|
|
10152
|
+
a(E, C), t && "length" in t && t.length === ++b && o(b);
|
|
10153
10153
|
});
|
|
10154
10154
|
else
|
|
10155
|
-
t ? Tl(t, h, y, c, m, u, function(E,
|
|
10156
|
-
a(E,
|
|
10155
|
+
t ? Tl(t, h, y, c, m, u, function(E, C) {
|
|
10156
|
+
a(E, C), o(1), t = null;
|
|
10157
10157
|
}) : o(0);
|
|
10158
10158
|
}, zb = function(t) {
|
|
10159
10159
|
var n = (t == null ? void 0 : t.ownerDocument) || document;
|
|
@@ -10221,10 +10221,10 @@ var Ot = /* @__PURE__ */ new Map(), qf = function(t) {
|
|
|
10221
10221
|
M.innerHTML = s, T.prepend(M);
|
|
10222
10222
|
}
|
|
10223
10223
|
if (c) {
|
|
10224
|
-
var
|
|
10225
|
-
|
|
10226
|
-
var
|
|
10227
|
-
|
|
10224
|
+
var X = T.querySelector(":scope > title");
|
|
10225
|
+
X && T.removeChild(X);
|
|
10226
|
+
var W = document.createElement("title");
|
|
10227
|
+
W.innerHTML = c, T.prepend(W);
|
|
10228
10228
|
}
|
|
10229
10229
|
try {
|
|
10230
10230
|
p(T);
|
|
@@ -10324,26 +10324,27 @@ function Hb(e) {
|
|
|
10324
10324
|
);
|
|
10325
10325
|
}
|
|
10326
10326
|
function qb(e) {
|
|
10327
|
-
const {
|
|
10327
|
+
const { renderChildren: t, parentRef: n, onlyChild: r } = e, [i, o] = x.useState({ top: 0, left: 0 }), s = x.useRef(null), [a, l] = x.useState("auto");
|
|
10328
10328
|
return x.useLayoutEffect(() => {
|
|
10329
|
-
if (n.current) {
|
|
10330
|
-
const
|
|
10331
|
-
o({
|
|
10332
|
-
top:
|
|
10333
|
-
left:
|
|
10329
|
+
if (n.current && s.current) {
|
|
10330
|
+
const u = n.current.getBoundingClientRect(), f = s.current.getBoundingClientRect(), c = u.top, d = u.left + u.width;
|
|
10331
|
+
u.top + f.height > window.innerHeight && l(window.innerHeight - u.top - 50), o({
|
|
10332
|
+
top: c,
|
|
10333
|
+
left: d
|
|
10334
10334
|
});
|
|
10335
10335
|
}
|
|
10336
|
-
}, [n]), r ? t : Ol.createPortal(
|
|
10336
|
+
}, [n, s]), r ? t({ maxHeight: a }) : Ol.createPortal(
|
|
10337
10337
|
/* @__PURE__ */ R.jsx(
|
|
10338
10338
|
"div",
|
|
10339
10339
|
{
|
|
10340
|
+
ref: s,
|
|
10340
10341
|
style: {
|
|
10341
10342
|
position: "fixed",
|
|
10342
10343
|
top: i.top,
|
|
10343
10344
|
left: i.left,
|
|
10344
10345
|
zIndex: 1200
|
|
10345
10346
|
},
|
|
10346
|
-
children: t
|
|
10347
|
+
children: t({ maxHeight: a })
|
|
10347
10348
|
}
|
|
10348
10349
|
),
|
|
10349
10350
|
n.current
|
|
@@ -10396,13 +10397,16 @@ function Gb(e) {
|
|
|
10396
10397
|
)
|
|
10397
10398
|
);
|
|
10398
10399
|
}
|
|
10400
|
+
function Xb(e, t) {
|
|
10401
|
+
return t ? e : void 0;
|
|
10402
|
+
}
|
|
10399
10403
|
function Xf({ item: e, level: t = 0, ...n }) {
|
|
10400
|
-
var
|
|
10401
|
-
const { isActive: r, isCollapsed: i, expanded: o, toggleExpand: s } = n, a = `level-${t}`, l = i ? "collapsed" : "expanded", u = r(e.id) ? "active" : "", f = (
|
|
10404
|
+
var W, z, K;
|
|
10405
|
+
const { isActive: r, isCollapsed: i, expanded: o, toggleExpand: s } = n, a = `level-${t}`, l = i ? "collapsed" : "expanded", u = r(e.id) ? "active" : "", f = (U, ie = a) => `${U} ${ie} ${l} ${u}`, c = !!((W = e.children) != null && W.length), [d, h] = x.useState(!1), p = x.useRef(), m = window.location.origin, g = e.path && e.path.includes("http") ? new URL(e.path) : { origin: "", pathname: "" }, y = window.location.pathname.split("/")[1], b = g.pathname.split("/")[1], v = n.ssr || !m.includes("local") && m !== g.origin || b !== y, S = c || t === 0 ? "div" : v ? "a" : Tb, E = e.path || "#", C = t + 1, T = c && !(i && C >= 2 && !d), P = i || t === 0 ? void 0 : `${t}rem`;
|
|
10402
10406
|
console.log("hasDropdown:", T);
|
|
10403
10407
|
const M = () => {
|
|
10404
10408
|
h(!0);
|
|
10405
|
-
},
|
|
10409
|
+
}, X = () => {
|
|
10406
10410
|
h(!1);
|
|
10407
10411
|
};
|
|
10408
10412
|
return /* @__PURE__ */ R.jsxs(
|
|
@@ -10411,7 +10415,7 @@ function Xf({ item: e, level: t = 0, ...n }) {
|
|
|
10411
10415
|
ref: p,
|
|
10412
10416
|
className: f("menu-item__wrapper"),
|
|
10413
10417
|
onMouseOver: M,
|
|
10414
|
-
onMouseOut:
|
|
10418
|
+
onMouseOut: X,
|
|
10415
10419
|
children: [
|
|
10416
10420
|
/* @__PURE__ */ R.jsx(
|
|
10417
10421
|
Gb,
|
|
@@ -10428,13 +10432,13 @@ function Xf({ item: e, level: t = 0, ...n }) {
|
|
|
10428
10432
|
transition: "all 0.3s",
|
|
10429
10433
|
// transitionDelay: '0.1s',
|
|
10430
10434
|
color: r(e.id) ? ((z = n.brandColors) == null ? void 0 : z.primary400) || rn.primary400 : void 0,
|
|
10431
|
-
backgroundColor: r(e.id) && t === 1 ? (
|
|
10435
|
+
backgroundColor: r(e.id) && t === 1 ? (K = n.brandColors) == null ? void 0 : K.primary200 : void 0
|
|
10432
10436
|
},
|
|
10433
|
-
onClick: (
|
|
10434
|
-
c && (
|
|
10437
|
+
onClick: (U) => {
|
|
10438
|
+
c && (U.preventDefault(), i || s(e.id));
|
|
10435
10439
|
},
|
|
10436
10440
|
children: [
|
|
10437
|
-
t !== 0 && /* @__PURE__ */ R.jsx(
|
|
10441
|
+
t !== 0 && /* @__PURE__ */ R.jsx(Kb, { cls: f, item: e }),
|
|
10438
10442
|
/* @__PURE__ */ R.jsx("span", { className: f("menu-item__label"), children: e.name }),
|
|
10439
10443
|
c && /* @__PURE__ */ R.jsx("div", { className: f("menu-item__icon-arrow__wrapper"), children: /* @__PURE__ */ R.jsx(
|
|
10440
10444
|
Hb,
|
|
@@ -10454,39 +10458,46 @@ function Xf({ item: e, level: t = 0, ...n }) {
|
|
|
10454
10458
|
qb,
|
|
10455
10459
|
{
|
|
10456
10460
|
parentRef: p,
|
|
10457
|
-
onlyChild: !i || i &&
|
|
10458
|
-
|
|
10459
|
-
|
|
10460
|
-
|
|
10461
|
-
|
|
10462
|
-
|
|
10463
|
-
|
|
10464
|
-
|
|
10465
|
-
|
|
10466
|
-
|
|
10467
|
-
|
|
10468
|
-
|
|
10469
|
-
|
|
10470
|
-
|
|
10471
|
-
|
|
10472
|
-
|
|
10473
|
-
|
|
10474
|
-
|
|
10475
|
-
|
|
10476
|
-
|
|
10477
|
-
|
|
10478
|
-
|
|
10479
|
-
|
|
10480
|
-
|
|
10481
|
-
|
|
10482
|
-
|
|
10461
|
+
onlyChild: !i || i && C < 2,
|
|
10462
|
+
renderChildren: ({ maxHeight: U }) => {
|
|
10463
|
+
var ie;
|
|
10464
|
+
return /* @__PURE__ */ R.jsx(
|
|
10465
|
+
Qx.div,
|
|
10466
|
+
{
|
|
10467
|
+
className: f(
|
|
10468
|
+
`menu-item__dropdown ${o(e.id) ? "menu-item__dropdown--open" : "menu-item__dropdown--close"}`,
|
|
10469
|
+
`level-${C}`
|
|
10470
|
+
),
|
|
10471
|
+
initial: {
|
|
10472
|
+
height: i || o(e.id) ? "auto" : 0
|
|
10473
|
+
},
|
|
10474
|
+
animate: {
|
|
10475
|
+
height: i || o(e.id) ? "auto" : 0
|
|
10476
|
+
},
|
|
10477
|
+
transition: { duration: 0.25 },
|
|
10478
|
+
style: Xb(
|
|
10479
|
+
{ maxHeight: U, overflowY: "auto", paddingRight: 3 },
|
|
10480
|
+
U !== "auto" && !!C
|
|
10481
|
+
),
|
|
10482
|
+
children: (ie = e.children) == null ? void 0 : ie.map((q) => /* @__PURE__ */ x.createElement(
|
|
10483
|
+
Xf,
|
|
10484
|
+
{
|
|
10485
|
+
...n,
|
|
10486
|
+
key: q.id,
|
|
10487
|
+
item: q,
|
|
10488
|
+
level: C
|
|
10489
|
+
}
|
|
10490
|
+
))
|
|
10491
|
+
}
|
|
10492
|
+
);
|
|
10493
|
+
}
|
|
10483
10494
|
}
|
|
10484
10495
|
)
|
|
10485
10496
|
]
|
|
10486
10497
|
}
|
|
10487
10498
|
);
|
|
10488
10499
|
}
|
|
10489
|
-
function
|
|
10500
|
+
function Kb({ item: e, cls: t }) {
|
|
10490
10501
|
var s, a;
|
|
10491
10502
|
const [n, r] = x.useState(!e.icon), i = () => {
|
|
10492
10503
|
r(!0);
|
|
@@ -10525,7 +10536,7 @@ function Xb({ item: e, cls: t }) {
|
|
|
10525
10536
|
}
|
|
10526
10537
|
) });
|
|
10527
10538
|
}
|
|
10528
|
-
function
|
|
10539
|
+
function Yb() {
|
|
10529
10540
|
return /* @__PURE__ */ R.jsx(
|
|
10530
10541
|
"svg",
|
|
10531
10542
|
{
|
|
@@ -10540,7 +10551,7 @@ function Kb() {
|
|
|
10540
10551
|
}
|
|
10541
10552
|
);
|
|
10542
10553
|
}
|
|
10543
|
-
function
|
|
10554
|
+
function Jb() {
|
|
10544
10555
|
return /* @__PURE__ */ R.jsx(
|
|
10545
10556
|
"svg",
|
|
10546
10557
|
{
|
|
@@ -10555,7 +10566,7 @@ function Yb() {
|
|
|
10555
10566
|
}
|
|
10556
10567
|
);
|
|
10557
10568
|
}
|
|
10558
|
-
function
|
|
10569
|
+
function Zb(e) {
|
|
10559
10570
|
return /* @__PURE__ */ R.jsx(
|
|
10560
10571
|
"svg",
|
|
10561
10572
|
{
|
|
@@ -10577,9 +10588,9 @@ function Jb(e) {
|
|
|
10577
10588
|
}
|
|
10578
10589
|
);
|
|
10579
10590
|
}
|
|
10580
|
-
const
|
|
10591
|
+
const Qb = `.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collapsed{padding:0 4px}.side-bar{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.collapsed.level-1{padding-left:calc(.5rem + 7.665px)!important}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9,.menu-item__link.active.level-10{background-color:inherit;color:inherit}.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-10:hover{background-color:#919eab14}.menu-item__link.level-0{height:37px}.menu-item__link.menu-item__link.collapsed.level-0{padding:0;height:0;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.collapsed.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929;opacity:1}.menu-item__label.level-1.collapsed{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-0,.menu-item__label.collapsed.level-1{font-size:.875rem;opacity:0;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left:0}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.expanded{right:4px}.menu-item__icon-arrow__wrapper.level-0.collapsed{display:none}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:180px;max-width:180px;padding:4px;z-index:1200}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown.expanded.menu-item__dropdown--close{margin-top:0;transition:margin-top .3s}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-1{height:48px}.menu-item__dropdown.collapsed.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.side-bar__menu.collapsed .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}
|
|
10581
10592
|
`, Rl = localStorage.getItem("isCollapsed");
|
|
10582
|
-
function
|
|
10593
|
+
function ew(e) {
|
|
10583
10594
|
const { baseUrl: t, menuPath: n } = e, r = Wr(), [i, o] = x.useState([]), [s, a] = x.useState(
|
|
10584
10595
|
Rl === null ? !0 : Rl === "true"
|
|
10585
10596
|
), [l, u] = x.useState({}), f = Zo(i), [c, d] = x.useState(window.location.href);
|
|
@@ -10600,21 +10611,21 @@ function Qb(e) {
|
|
|
10600
10611
|
};
|
|
10601
10612
|
x.useLayoutEffect(() => {
|
|
10602
10613
|
(async () => {
|
|
10603
|
-
var
|
|
10614
|
+
var C, T;
|
|
10604
10615
|
try {
|
|
10605
|
-
const M = t + (n || "/global-menu-config/api/v1/menu-items/user"), { data:
|
|
10616
|
+
const M = t + (n || "/global-menu-config/api/v1/menu-items/user"), { data: X } = await xh.get(M, {
|
|
10606
10617
|
withCredentials: !0
|
|
10607
10618
|
});
|
|
10608
|
-
let
|
|
10609
|
-
...
|
|
10619
|
+
let W = X.map((K) => ({
|
|
10620
|
+
...K,
|
|
10610
10621
|
parentKey: 0
|
|
10611
10622
|
}));
|
|
10612
|
-
|
|
10613
|
-
const z =
|
|
10614
|
-
u(z), o(
|
|
10623
|
+
W = Jf(W), e.replacePath && (W = Yf(W, e.replacePath));
|
|
10624
|
+
const z = nw(W);
|
|
10625
|
+
u(z), o(W);
|
|
10615
10626
|
} catch (P) {
|
|
10616
10627
|
console.log(P), $g(
|
|
10617
|
-
((T = (
|
|
10628
|
+
((T = (C = P.response) == null ? void 0 : C.data) == null ? void 0 : T.errorMessage) || "Have error when get menu items"
|
|
10618
10629
|
);
|
|
10619
10630
|
}
|
|
10620
10631
|
})();
|
|
@@ -10626,7 +10637,7 @@ function Qb(e) {
|
|
|
10626
10637
|
{
|
|
10627
10638
|
className: "icon-btn side-bar__toggle-btn",
|
|
10628
10639
|
onClick: m,
|
|
10629
|
-
children: s ? /* @__PURE__ */ R.jsx(
|
|
10640
|
+
children: s ? /* @__PURE__ */ R.jsx(Jb, {}) : /* @__PURE__ */ R.jsx(Yb, {})
|
|
10630
10641
|
}
|
|
10631
10642
|
) }),
|
|
10632
10643
|
/* @__PURE__ */ R.jsx(
|
|
@@ -10642,12 +10653,12 @@ function Qb(e) {
|
|
|
10642
10653
|
overflowX: "hidden"
|
|
10643
10654
|
},
|
|
10644
10655
|
children: i.map((E) => {
|
|
10645
|
-
const
|
|
10656
|
+
const C = (T) => h.some((P) => P.id === T);
|
|
10646
10657
|
return /* @__PURE__ */ R.jsx(
|
|
10647
10658
|
Xf,
|
|
10648
10659
|
{
|
|
10649
10660
|
item: E,
|
|
10650
|
-
isActive:
|
|
10661
|
+
isActive: C,
|
|
10651
10662
|
isCollapsed: s,
|
|
10652
10663
|
expanded: (T) => l[T],
|
|
10653
10664
|
toggleExpand: p,
|
|
@@ -10667,7 +10678,7 @@ function Qb(e) {
|
|
|
10667
10678
|
className: v("side-bar__logout-btn"),
|
|
10668
10679
|
onClick: () => y(!0),
|
|
10669
10680
|
children: [
|
|
10670
|
-
/* @__PURE__ */ R.jsx(
|
|
10681
|
+
/* @__PURE__ */ R.jsx(Zb, { className: v("side-bar__icon-logout") }),
|
|
10671
10682
|
/* @__PURE__ */ R.jsx("span", { className: v("side-bar__logout-btn__text"), children: "Logout" })
|
|
10672
10683
|
]
|
|
10673
10684
|
}
|
|
@@ -10689,7 +10700,7 @@ function Zo(e) {
|
|
|
10689
10700
|
t.push(n), n.children && (t = t.concat(Zo(n.children)));
|
|
10690
10701
|
return t;
|
|
10691
10702
|
}
|
|
10692
|
-
function
|
|
10703
|
+
function tw(e, t) {
|
|
10693
10704
|
const n = new URL(e).searchParams, r = new URL(t).searchParams;
|
|
10694
10705
|
return Array.from(r).filter(
|
|
10695
10706
|
([i, o]) => o === n.get(i)
|
|
@@ -10699,7 +10710,7 @@ function Kf(e, t) {
|
|
|
10699
10710
|
const n = new URL(t), r = e.filter((s) => s.path && s.path.includes("http")).map((s) => ({
|
|
10700
10711
|
item: s,
|
|
10701
10712
|
itemUrl: new URL(s.path),
|
|
10702
|
-
matchingParamsCount:
|
|
10713
|
+
matchingParamsCount: tw(t, s.path)
|
|
10703
10714
|
})).sort((s, a) => {
|
|
10704
10715
|
const l = new URL(s.itemUrl).searchParams, u = new URL(a.itemUrl).searchParams;
|
|
10705
10716
|
return Array.from(l).length - Array.from(u).length;
|
|
@@ -10720,27 +10731,27 @@ function Jf(e) {
|
|
|
10720
10731
|
path: window.location.origin + n.path
|
|
10721
10732
|
} : (n.children && (n.children = Jf(n.children)), n));
|
|
10722
10733
|
}
|
|
10723
|
-
function
|
|
10734
|
+
function nw(e) {
|
|
10724
10735
|
const t = Zo(e), n = Kf(t, window.location.href), r = {};
|
|
10725
10736
|
return n.forEach((i) => r[i.id] = !0), t.forEach((i) => {
|
|
10726
10737
|
i.parentKey || (r[i.id] = !0);
|
|
10727
10738
|
}), r;
|
|
10728
10739
|
}
|
|
10729
|
-
function
|
|
10740
|
+
function rw(e) {
|
|
10730
10741
|
return /* @__PURE__ */ R.jsx(
|
|
10731
10742
|
Mg,
|
|
10732
10743
|
{
|
|
10733
|
-
styles: [np,
|
|
10744
|
+
styles: [np, Qb],
|
|
10734
10745
|
style: { position: "sticky", zIndex: 20 },
|
|
10735
|
-
children: /* @__PURE__ */ R.jsx(
|
|
10746
|
+
children: /* @__PURE__ */ R.jsx(ew, { ...e })
|
|
10736
10747
|
}
|
|
10737
10748
|
);
|
|
10738
10749
|
}
|
|
10739
|
-
function
|
|
10740
|
-
return /* @__PURE__ */ R.jsx(Eb, { children: /* @__PURE__ */ R.jsx(
|
|
10750
|
+
function iw(e) {
|
|
10751
|
+
return /* @__PURE__ */ R.jsx(Eb, { children: /* @__PURE__ */ R.jsx(rw, { ...e, ssr: !0 }) });
|
|
10741
10752
|
}
|
|
10742
10753
|
{
|
|
10743
|
-
const e = td(
|
|
10754
|
+
const e = td(iw, {
|
|
10744
10755
|
props: {
|
|
10745
10756
|
baseUrl: "string",
|
|
10746
10757
|
menuPath: "string",
|
|
@@ -10754,18 +10765,18 @@ function rw(e) {
|
|
|
10754
10765
|
customElements.define("global-menu", e);
|
|
10755
10766
|
}
|
|
10756
10767
|
export {
|
|
10757
|
-
|
|
10758
|
-
|
|
10768
|
+
sw as E,
|
|
10769
|
+
rw as G,
|
|
10759
10770
|
op as L,
|
|
10760
10771
|
Mg as S,
|
|
10761
10772
|
vn as _,
|
|
10762
10773
|
Hf as a,
|
|
10763
|
-
|
|
10774
|
+
fw as b,
|
|
10764
10775
|
rn as c,
|
|
10765
10776
|
Rb as d,
|
|
10766
10777
|
xh as e,
|
|
10767
|
-
|
|
10768
|
-
|
|
10769
|
-
|
|
10778
|
+
aw as l,
|
|
10779
|
+
lw as n,
|
|
10780
|
+
cw as o,
|
|
10770
10781
|
$g as p
|
|
10771
10782
|
};
|