@ukpc-lib/react 0.2.49 → 0.3.0
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/MenuItem.d.ts +4 -0
- package/dist/components/index.cjs +2 -2
- package/dist/components/index.js +5 -5
- package/dist/{index.module-d584a693.cjs → index.module-241ed677.cjs} +28 -28
- package/dist/{index.module-d95d516c.js → index.module-b928a843.js} +372 -369
- package/dist/share/AuthProvider/index.d.ts +1 -1
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +2 -2
- 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-98a255d7.js → index-1edcf077.js} +503 -499
- package/web-components-bundle/{index-80b585a5.cjs → index-30258735.cjs} +3 -3
- package/web-components-bundle/{index-c085e37e.cjs → index-3f370ab6.cjs} +15 -15
- package/web-components-bundle/{index-b1536310.js → index-7c0e860e.js} +4 -4
- package/dist/web-components/global-menu.d.ts +0 -1
- package/dist/web-components/global-topbar.d.ts +0 -1
- package/dist/web-components/has-permission.d.ts +0 -1
- package/dist/web-components/index.d.ts +0 -2
|
@@ -9,22 +9,22 @@ const { toString: nd } = Object.prototype, { getPrototypeOf: ro } = Object, Sr =
|
|
|
9
9
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
10
10
|
})(/* @__PURE__ */ Object.create(null)), Fe = (e) => (e = e.toLowerCase(), (t) => Sr(t) === e), Er = (e) => (t) => typeof t === e, { isArray: Nt } = Array, ln = Er("undefined");
|
|
11
11
|
function rd(e) {
|
|
12
|
-
return e !== null && !ln(e) && e.constructor !== null && !ln(e.constructor) &&
|
|
12
|
+
return e !== null && !ln(e) && e.constructor !== null && !ln(e.constructor) && Ee(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
13
13
|
}
|
|
14
14
|
const Ml = Fe("ArrayBuffer");
|
|
15
15
|
function id(e) {
|
|
16
16
|
let t;
|
|
17
17
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ml(e.buffer), t;
|
|
18
18
|
}
|
|
19
|
-
const od = Er("string"),
|
|
19
|
+
const od = Er("string"), Ee = Er("function"), Vl = Er("number"), Cr = (e) => e !== null && typeof e == "object", sd = (e) => e === !0 || e === !1, Dn = (e) => {
|
|
20
20
|
if (Sr(e) !== "object")
|
|
21
21
|
return !1;
|
|
22
22
|
const t = ro(e);
|
|
23
23
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
24
|
-
}, ad = Fe("Date"), ld = Fe("File"), ud = Fe("Blob"), cd = Fe("FileList"), fd = (e) => Cr(e) &&
|
|
24
|
+
}, ad = Fe("Date"), ld = Fe("File"), ud = Fe("Blob"), cd = Fe("FileList"), fd = (e) => Cr(e) && Ee(e.pipe), dd = (e) => {
|
|
25
25
|
let t;
|
|
26
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
27
|
-
t === "object" &&
|
|
26
|
+
return e && (typeof FormData == "function" && e instanceof FormData || Ee(e.append) && ((t = Sr(e)) === "formdata" || // detect form-data instance
|
|
27
|
+
t === "object" && Ee(e.toString) && e.toString() === "[object FormData]"));
|
|
28
28
|
}, hd = Fe("URLSearchParams"), pd = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
29
29
|
function vn(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
30
30
|
if (e === null || typeof e > "u")
|
|
@@ -60,7 +60,7 @@ function Ei() {
|
|
|
60
60
|
return t;
|
|
61
61
|
}
|
|
62
62
|
const md = (e, t, n, { allOwnKeys: r } = {}) => (vn(t, (i, o) => {
|
|
63
|
-
n &&
|
|
63
|
+
n && Ee(i) ? e[o] = _l(i, n) : e[o] = i;
|
|
64
64
|
}, { allOwnKeys: r }), e), gd = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), yd = (e, t, n, r) => {
|
|
65
65
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
66
66
|
value: t.prototype
|
|
@@ -118,10 +118,10 @@ const md = (e, t, n, { allOwnKeys: r } = {}) => (vn(t, (i, o) => {
|
|
|
118
118
|
}), Object.defineProperties(e, r);
|
|
119
119
|
}, Pd = (e) => {
|
|
120
120
|
jl(e, (t, n) => {
|
|
121
|
-
if (
|
|
121
|
+
if (Ee(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
122
122
|
return !1;
|
|
123
123
|
const r = e[n];
|
|
124
|
-
if (
|
|
124
|
+
if (Ee(r)) {
|
|
125
125
|
if (t.enumerable = !1, "writable" in t) {
|
|
126
126
|
t.writable = !1;
|
|
127
127
|
return;
|
|
@@ -151,7 +151,7 @@ const md = (e, t, n, { allOwnKeys: r } = {}) => (vn(t, (i, o) => {
|
|
|
151
151
|
return n;
|
|
152
152
|
};
|
|
153
153
|
function Md(e) {
|
|
154
|
-
return !!(e &&
|
|
154
|
+
return !!(e && Ee(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
155
155
|
}
|
|
156
156
|
const Vd = (e) => {
|
|
157
157
|
const t = new Array(10), n = (r, i) => {
|
|
@@ -170,7 +170,7 @@ const Vd = (e) => {
|
|
|
170
170
|
return r;
|
|
171
171
|
};
|
|
172
172
|
return n(e, 0);
|
|
173
|
-
}, Ld = Fe("AsyncFunction"), Fd = (e) => e && (Cr(e) ||
|
|
173
|
+
}, Ld = Fe("AsyncFunction"), Fd = (e) => e && (Cr(e) || Ee(e)) && Ee(e.then) && Ee(e.catch), w = {
|
|
174
174
|
isArray: Nt,
|
|
175
175
|
isArrayBuffer: Ml,
|
|
176
176
|
isBuffer: rd,
|
|
@@ -186,7 +186,7 @@ const Vd = (e) => {
|
|
|
186
186
|
isFile: ld,
|
|
187
187
|
isBlob: ud,
|
|
188
188
|
isRegExp: Td,
|
|
189
|
-
isFunction:
|
|
189
|
+
isFunction: Ee,
|
|
190
190
|
isStream: fd,
|
|
191
191
|
isURLSearchParams: hd,
|
|
192
192
|
isTypedArray: wd,
|
|
@@ -1410,27 +1410,27 @@ function Jl(e) {
|
|
|
1410
1410
|
return Jl(Dt(e, i));
|
|
1411
1411
|
}, n;
|
|
1412
1412
|
}
|
|
1413
|
-
const
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1413
|
+
const Z = Jl(so);
|
|
1414
|
+
Z.Axios = In;
|
|
1415
|
+
Z.CanceledError = xn;
|
|
1416
|
+
Z.CancelToken = mh;
|
|
1417
|
+
Z.isCancel = Gl;
|
|
1418
|
+
Z.VERSION = Yl;
|
|
1419
|
+
Z.toFormData = kr;
|
|
1420
|
+
Z.AxiosError = F;
|
|
1421
|
+
Z.Cancel = Z.CanceledError;
|
|
1422
|
+
Z.all = function(t) {
|
|
1423
1423
|
return Promise.all(t);
|
|
1424
1424
|
};
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
const xh =
|
|
1425
|
+
Z.spread = gh;
|
|
1426
|
+
Z.isAxiosError = yh;
|
|
1427
|
+
Z.mergeConfig = Dt;
|
|
1428
|
+
Z.AxiosHeaders = Be;
|
|
1429
|
+
Z.formToJSON = (e) => ql(w.isHTMLForm(e) ? new FormData(e) : e);
|
|
1430
|
+
Z.getAdapter = Kl.getAdapter;
|
|
1431
|
+
Z.HttpStatusCode = vh;
|
|
1432
|
+
Z.default = Z;
|
|
1433
|
+
const xh = Z;
|
|
1434
1434
|
var bh = typeof global == "object" && global && global.Object === Object && global;
|
|
1435
1435
|
const wh = bh;
|
|
1436
1436
|
var Sh = typeof self == "object" && self && self.Object === Object && self, Eh = wh || Sh || Function("return this")();
|
|
@@ -1633,7 +1633,7 @@ var Qh = /* @__PURE__ */ Object.freeze({
|
|
|
1633
1633
|
addClasses: iu,
|
|
1634
1634
|
removeClasses: ou,
|
|
1635
1635
|
classNamesToQuery: su
|
|
1636
|
-
}), Xe = tu, Jr = nu, ep = ru, Ke = iu, Ye = ou,
|
|
1636
|
+
}), Xe = tu, Jr = nu, ep = ru, Ke = iu, Ye = ou, ue = su, kn = (
|
|
1637
1637
|
/** @class */
|
|
1638
1638
|
function() {
|
|
1639
1639
|
function e(t, n) {
|
|
@@ -1749,7 +1749,7 @@ var Qh = /* @__PURE__ */ Object.freeze({
|
|
|
1749
1749
|
eu && (this.initDOM(), this.rtlHelpers = e.getRtlHelpers(), this.scrollbarWidth = this.getScrollbarWidth(), this.recalculate(), this.initListeners());
|
|
1750
1750
|
}, e.prototype.initDOM = function() {
|
|
1751
1751
|
var t, n;
|
|
1752
|
-
this.wrapperEl = this.el.querySelector(
|
|
1752
|
+
this.wrapperEl = this.el.querySelector(ue(this.classNames.wrapper)), this.contentWrapperEl = this.options.scrollableNode || this.el.querySelector(ue(this.classNames.contentWrapper)), this.contentEl = this.options.contentNode || this.el.querySelector(ue(this.classNames.contentEl)), this.offsetEl = this.el.querySelector(ue(this.classNames.offset)), this.maskEl = this.el.querySelector(ue(this.classNames.mask)), this.placeholderEl = this.findChild(this.wrapperEl, ue(this.classNames.placeholder)), this.heightAutoObserverWrapperEl = this.el.querySelector(ue(this.classNames.heightAutoObserverWrapperEl)), this.heightAutoObserverEl = this.el.querySelector(ue(this.classNames.heightAutoObserverEl)), this.axis.x.track.el = this.findChild(this.el, "".concat(ue(this.classNames.track)).concat(ue(this.classNames.horizontal))), this.axis.y.track.el = this.findChild(this.el, "".concat(ue(this.classNames.track)).concat(ue(this.classNames.vertical))), this.axis.x.scrollbar.el = ((t = this.axis.x.track.el) === null || t === void 0 ? void 0 : t.querySelector(ue(this.classNames.scrollbar))) || null, this.axis.y.scrollbar.el = ((n = this.axis.y.track.el) === null || n === void 0 ? void 0 : n.querySelector(ue(this.classNames.scrollbar))) || null, this.options.autoHide || (Ke(this.axis.x.scrollbar.el, this.classNames.visible), Ke(this.axis.y.scrollbar.el, this.classNames.visible));
|
|
1753
1753
|
}, e.prototype.initListeners = function() {
|
|
1754
1754
|
var t = this, n, r = Xe(this.el);
|
|
1755
1755
|
if (this.el.addEventListener("mouseenter", this.onMouseEnter), this.el.addEventListener("pointerdown", this.onPointerEvent, !0), this.el.addEventListener("mousemove", this.onMouseMove), this.el.addEventListener("mouseleave", this.onMouseLeave), (n = this.contentWrapperEl) === null || n === void 0 || n.addEventListener("scroll", this.onScroll), r.addEventListener("resize", this.onWindowResize), !!this.contentEl) {
|
|
@@ -1883,15 +1883,15 @@ var Qh = /* @__PURE__ */ Object.freeze({
|
|
|
1883
1883
|
autoHide: !0
|
|
1884
1884
|
}, e.getOptions = ep, e.helpers = Qh, e;
|
|
1885
1885
|
}()
|
|
1886
|
-
),
|
|
1887
|
-
return
|
|
1886
|
+
), me = function() {
|
|
1887
|
+
return me = Object.assign || function(t) {
|
|
1888
1888
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
1889
1889
|
n = arguments[r];
|
|
1890
1890
|
for (var o in n)
|
|
1891
1891
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
1892
1892
|
}
|
|
1893
1893
|
return t;
|
|
1894
|
-
},
|
|
1894
|
+
}, me.apply(this, arguments);
|
|
1895
1895
|
};
|
|
1896
1896
|
function tp(e, t) {
|
|
1897
1897
|
var n = {};
|
|
@@ -1907,10 +1907,10 @@ var au = x.forwardRef(function(e, t) {
|
|
|
1907
1907
|
Object.keys(o).forEach(function(h) {
|
|
1908
1908
|
Object.prototype.hasOwnProperty.call(kn.defaultOptions, h) ? u[h] = o[h] : f[h] = o[h];
|
|
1909
1909
|
});
|
|
1910
|
-
var c =
|
|
1910
|
+
var c = me(me({}, kn.defaultOptions.classNames), u.classNames), d = me(me({}, i), { className: "".concat(c.contentWrapper).concat(i.className ? " ".concat(i.className) : ""), tabIndex: 0, role: "region", "aria-label": u.ariaLabel || kn.defaultOptions.ariaLabel });
|
|
1911
1911
|
return x.useEffect(function() {
|
|
1912
1912
|
var h;
|
|
1913
|
-
return a.current = d.ref ? d.ref.current : a.current, s.current && (h = new kn(s.current,
|
|
1913
|
+
return a.current = d.ref ? d.ref.current : a.current, s.current && (h = new kn(s.current, me(me(me({}, u), a.current && {
|
|
1914
1914
|
scrollableNode: a.current
|
|
1915
1915
|
}), l.current && {
|
|
1916
1916
|
contentNode: l.current
|
|
@@ -1919,7 +1919,7 @@ var au = x.forwardRef(function(e, t) {
|
|
|
1919
1919
|
};
|
|
1920
1920
|
}, []), x.createElement(
|
|
1921
1921
|
"div",
|
|
1922
|
-
|
|
1922
|
+
me({ "data-simplebar": "init", ref: s }, f),
|
|
1923
1923
|
x.createElement(
|
|
1924
1924
|
"div",
|
|
1925
1925
|
{ className: c.wrapper },
|
|
@@ -1933,7 +1933,7 @@ var au = x.forwardRef(function(e, t) {
|
|
|
1933
1933
|
{ className: c.mask },
|
|
1934
1934
|
x.createElement("div", { className: c.offset }, typeof n == "function" ? n({
|
|
1935
1935
|
scrollableNodeRef: a,
|
|
1936
|
-
scrollableNodeProps:
|
|
1936
|
+
scrollableNodeProps: me(me({}, d), { ref: a }),
|
|
1937
1937
|
contentNodeRef: l,
|
|
1938
1938
|
contentNodeProps: {
|
|
1939
1939
|
className: c.contentEl,
|
|
@@ -1941,7 +1941,7 @@ var au = x.forwardRef(function(e, t) {
|
|
|
1941
1941
|
}
|
|
1942
1942
|
}) : x.createElement(
|
|
1943
1943
|
"div",
|
|
1944
|
-
|
|
1944
|
+
me({}, d),
|
|
1945
1945
|
x.createElement("div", { className: c.contentEl }, n)
|
|
1946
1946
|
))
|
|
1947
1947
|
),
|
|
@@ -2011,41 +2011,41 @@ function _(e) {
|
|
|
2011
2011
|
t += "&args[]=" + encodeURIComponent(arguments[n]);
|
|
2012
2012
|
return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
2013
2013
|
}
|
|
2014
|
-
var
|
|
2014
|
+
var ce = Object.prototype.hasOwnProperty, sp = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, ys = {}, vs = {};
|
|
2015
2015
|
function uu(e) {
|
|
2016
|
-
return
|
|
2016
|
+
return ce.call(vs, e) ? !0 : ce.call(ys, e) ? !1 : sp.test(e) ? vs[e] = !0 : (ys[e] = !0, !1);
|
|
2017
2017
|
}
|
|
2018
|
-
function
|
|
2018
|
+
function ae(e, t, n, r, i, o, s) {
|
|
2019
2019
|
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;
|
|
2020
2020
|
}
|
|
2021
|
-
var
|
|
2021
|
+
var ne = {};
|
|
2022
2022
|
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e) {
|
|
2023
|
-
|
|
2023
|
+
ne[e] = new ae(e, 0, !1, e, null, !1, !1);
|
|
2024
2024
|
});
|
|
2025
2025
|
[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(e) {
|
|
2026
2026
|
var t = e[0];
|
|
2027
|
-
|
|
2027
|
+
ne[t] = new ae(t, 1, !1, e[1], null, !1, !1);
|
|
2028
2028
|
});
|
|
2029
2029
|
["contentEditable", "draggable", "spellCheck", "value"].forEach(function(e) {
|
|
2030
|
-
|
|
2030
|
+
ne[e] = new ae(e, 2, !1, e.toLowerCase(), null, !1, !1);
|
|
2031
2031
|
});
|
|
2032
2032
|
["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(e) {
|
|
2033
|
-
|
|
2033
|
+
ne[e] = new ae(e, 2, !1, e, null, !1, !1);
|
|
2034
2034
|
});
|
|
2035
2035
|
"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) {
|
|
2036
|
-
|
|
2036
|
+
ne[e] = new ae(e, 3, !1, e.toLowerCase(), null, !1, !1);
|
|
2037
2037
|
});
|
|
2038
2038
|
["checked", "multiple", "muted", "selected"].forEach(function(e) {
|
|
2039
|
-
|
|
2039
|
+
ne[e] = new ae(e, 3, !0, e, null, !1, !1);
|
|
2040
2040
|
});
|
|
2041
2041
|
["capture", "download"].forEach(function(e) {
|
|
2042
|
-
|
|
2042
|
+
ne[e] = new ae(e, 4, !1, e, null, !1, !1);
|
|
2043
2043
|
});
|
|
2044
2044
|
["cols", "rows", "size", "span"].forEach(function(e) {
|
|
2045
|
-
|
|
2045
|
+
ne[e] = new ae(e, 6, !1, e, null, !1, !1);
|
|
2046
2046
|
});
|
|
2047
2047
|
["rowSpan", "start"].forEach(function(e) {
|
|
2048
|
-
|
|
2048
|
+
ne[e] = new ae(e, 5, !1, e.toLowerCase(), null, !1, !1);
|
|
2049
2049
|
});
|
|
2050
2050
|
var uo = /[\-:]([a-z])/g;
|
|
2051
2051
|
function co(e) {
|
|
@@ -2056,22 +2056,22 @@ function co(e) {
|
|
|
2056
2056
|
uo,
|
|
2057
2057
|
co
|
|
2058
2058
|
);
|
|
2059
|
-
|
|
2059
|
+
ne[t] = new ae(t, 1, !1, e, null, !1, !1);
|
|
2060
2060
|
});
|
|
2061
2061
|
"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e) {
|
|
2062
2062
|
var t = e.replace(uo, co);
|
|
2063
|
-
|
|
2063
|
+
ne[t] = new ae(t, 1, !1, e, "http://www.w3.org/1999/xlink", !1, !1);
|
|
2064
2064
|
});
|
|
2065
2065
|
["xml:base", "xml:lang", "xml:space"].forEach(function(e) {
|
|
2066
2066
|
var t = e.replace(uo, co);
|
|
2067
|
-
|
|
2067
|
+
ne[t] = new ae(t, 1, !1, e, "http://www.w3.org/XML/1998/namespace", !1, !1);
|
|
2068
2068
|
});
|
|
2069
2069
|
["tabIndex", "crossOrigin"].forEach(function(e) {
|
|
2070
|
-
|
|
2070
|
+
ne[e] = new ae(e, 1, !1, e.toLowerCase(), null, !1, !1);
|
|
2071
2071
|
});
|
|
2072
|
-
|
|
2072
|
+
ne.xlinkHref = new ae("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1);
|
|
2073
2073
|
["src", "href", "action", "formAction"].forEach(function(e) {
|
|
2074
|
-
|
|
2074
|
+
ne[e] = new ae(e, 1, !1, e.toLowerCase(), null, !0, !0);
|
|
2075
2075
|
});
|
|
2076
2076
|
var Bn = {
|
|
2077
2077
|
animationIterationCount: !0,
|
|
@@ -2124,7 +2124,7 @@ Object.keys(Bn).forEach(function(e) {
|
|
|
2124
2124
|
});
|
|
2125
2125
|
});
|
|
2126
2126
|
var lp = /["'&<>]/;
|
|
2127
|
-
function
|
|
2127
|
+
function se(e) {
|
|
2128
2128
|
if (typeof e == "boolean" || typeof e == "number")
|
|
2129
2129
|
return "" + e;
|
|
2130
2130
|
e = "" + e;
|
|
@@ -2190,23 +2190,23 @@ function cu(e, t, n) {
|
|
|
2190
2190
|
throw Error(_(62));
|
|
2191
2191
|
t = !0;
|
|
2192
2192
|
for (var r in n)
|
|
2193
|
-
if (
|
|
2193
|
+
if (ce.call(n, r)) {
|
|
2194
2194
|
var i = n[r];
|
|
2195
2195
|
if (i != null && typeof i != "boolean" && i !== "") {
|
|
2196
2196
|
if (r.indexOf("--") === 0) {
|
|
2197
|
-
var o =
|
|
2198
|
-
i =
|
|
2197
|
+
var o = se(r);
|
|
2198
|
+
i = se(("" + i).trim());
|
|
2199
2199
|
} else {
|
|
2200
2200
|
o = r;
|
|
2201
2201
|
var s = xs.get(o);
|
|
2202
|
-
s !== void 0 || (s =
|
|
2202
|
+
s !== void 0 || (s = se(o.replace(up, "-$1").toLowerCase().replace(cp, "-ms-")), xs.set(o, s)), o = s, i = typeof i == "number" ? i === 0 || ce.call(Bn, r) ? "" + i : i + "px" : se(("" + i).trim());
|
|
2203
2203
|
}
|
|
2204
2204
|
t ? (t = !1, e.push(' style="', o, ":", i)) : e.push(";", o, ":", i);
|
|
2205
2205
|
}
|
|
2206
2206
|
}
|
|
2207
2207
|
t || e.push('"');
|
|
2208
2208
|
}
|
|
2209
|
-
function
|
|
2209
|
+
function he(e, t, n, r) {
|
|
2210
2210
|
switch (n) {
|
|
2211
2211
|
case "style":
|
|
2212
2212
|
cu(e, t, r);
|
|
@@ -2219,7 +2219,7 @@ function de(e, t, n, r) {
|
|
|
2219
2219
|
return;
|
|
2220
2220
|
}
|
|
2221
2221
|
if (!(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N") {
|
|
2222
|
-
if (t =
|
|
2222
|
+
if (t = ne.hasOwnProperty(n) ? ne[n] : null, t !== null) {
|
|
2223
2223
|
switch (typeof r) {
|
|
2224
2224
|
case "function":
|
|
2225
2225
|
case "symbol":
|
|
@@ -2233,16 +2233,16 @@ function de(e, t, n, r) {
|
|
|
2233
2233
|
r && e.push(" ", n, '=""');
|
|
2234
2234
|
break;
|
|
2235
2235
|
case 4:
|
|
2236
|
-
r === !0 ? e.push(" ", n, '=""') : r !== !1 && e.push(" ", n, '="',
|
|
2236
|
+
r === !0 ? e.push(" ", n, '=""') : r !== !1 && e.push(" ", n, '="', se(r), '"');
|
|
2237
2237
|
break;
|
|
2238
2238
|
case 5:
|
|
2239
|
-
isNaN(r) || e.push(" ", n, '="',
|
|
2239
|
+
isNaN(r) || e.push(" ", n, '="', se(r), '"');
|
|
2240
2240
|
break;
|
|
2241
2241
|
case 6:
|
|
2242
|
-
!isNaN(r) && 1 <= r && e.push(" ", n, '="',
|
|
2242
|
+
!isNaN(r) && 1 <= r && e.push(" ", n, '="', se(r), '"');
|
|
2243
2243
|
break;
|
|
2244
2244
|
default:
|
|
2245
|
-
t.sanitizeURL && (r = "" + r), e.push(" ", n, '="',
|
|
2245
|
+
t.sanitizeURL && (r = "" + r), e.push(" ", n, '="', se(r), '"');
|
|
2246
2246
|
}
|
|
2247
2247
|
} else if (uu(n)) {
|
|
2248
2248
|
switch (typeof r) {
|
|
@@ -2253,7 +2253,7 @@ function de(e, t, n, r) {
|
|
|
2253
2253
|
if (t = n.toLowerCase().slice(0, 5), t !== "data-" && t !== "aria-")
|
|
2254
2254
|
return;
|
|
2255
2255
|
}
|
|
2256
|
-
e.push(" ", n, '="',
|
|
2256
|
+
e.push(" ", n, '="', se(r), '"');
|
|
2257
2257
|
}
|
|
2258
2258
|
}
|
|
2259
2259
|
}
|
|
@@ -2276,7 +2276,7 @@ function Zr(e, t, n, r) {
|
|
|
2276
2276
|
e.push(Ae(n));
|
|
2277
2277
|
var i = n = null, o;
|
|
2278
2278
|
for (o in t)
|
|
2279
|
-
if (
|
|
2279
|
+
if (ce.call(t, o)) {
|
|
2280
2280
|
var s = t[o];
|
|
2281
2281
|
if (s != null)
|
|
2282
2282
|
switch (o) {
|
|
@@ -2287,10 +2287,10 @@ function Zr(e, t, n, r) {
|
|
|
2287
2287
|
i = s;
|
|
2288
2288
|
break;
|
|
2289
2289
|
default:
|
|
2290
|
-
|
|
2290
|
+
he(e, r, o, s);
|
|
2291
2291
|
}
|
|
2292
2292
|
}
|
|
2293
|
-
return e.push(">"), $n(e, i, n), typeof n == "string" ? (e.push(
|
|
2293
|
+
return e.push(">"), $n(e, i, n), typeof n == "string" ? (e.push(se(n)), null) : n;
|
|
2294
2294
|
}
|
|
2295
2295
|
var hp = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, bs = /* @__PURE__ */ new Map();
|
|
2296
2296
|
function Ae(e) {
|
|
@@ -2308,7 +2308,7 @@ function pp(e, t, n, r, i) {
|
|
|
2308
2308
|
e.push(Ae("select"));
|
|
2309
2309
|
var o = null, s = null;
|
|
2310
2310
|
for (f in n)
|
|
2311
|
-
if (
|
|
2311
|
+
if (ce.call(n, f)) {
|
|
2312
2312
|
var a = n[f];
|
|
2313
2313
|
if (a != null)
|
|
2314
2314
|
switch (f) {
|
|
@@ -2322,7 +2322,7 @@ function pp(e, t, n, r, i) {
|
|
|
2322
2322
|
case "value":
|
|
2323
2323
|
break;
|
|
2324
2324
|
default:
|
|
2325
|
-
|
|
2325
|
+
he(e, r, f, a);
|
|
2326
2326
|
}
|
|
2327
2327
|
}
|
|
2328
2328
|
return e.push(">"), $n(e, s, o), o;
|
|
@@ -2330,7 +2330,7 @@ function pp(e, t, n, r, i) {
|
|
|
2330
2330
|
s = i.selectedValue, e.push(Ae("option"));
|
|
2331
2331
|
var l = a = null, u = null, f = null;
|
|
2332
2332
|
for (o in n)
|
|
2333
|
-
if (
|
|
2333
|
+
if (ce.call(n, o)) {
|
|
2334
2334
|
var c = n[o];
|
|
2335
2335
|
if (c != null)
|
|
2336
2336
|
switch (o) {
|
|
@@ -2346,7 +2346,7 @@ function pp(e, t, n, r, i) {
|
|
|
2346
2346
|
case "value":
|
|
2347
2347
|
l = c;
|
|
2348
2348
|
default:
|
|
2349
|
-
|
|
2349
|
+
he(e, r, o, c);
|
|
2350
2350
|
}
|
|
2351
2351
|
}
|
|
2352
2352
|
if (s != null)
|
|
@@ -2364,7 +2364,7 @@ function pp(e, t, n, r, i) {
|
|
|
2364
2364
|
case "textarea":
|
|
2365
2365
|
e.push(Ae("textarea")), f = s = o = null;
|
|
2366
2366
|
for (a in n)
|
|
2367
|
-
if (
|
|
2367
|
+
if (ce.call(n, a) && (l = n[a], l != null))
|
|
2368
2368
|
switch (a) {
|
|
2369
2369
|
case "children":
|
|
2370
2370
|
f = l;
|
|
@@ -2378,7 +2378,7 @@ function pp(e, t, n, r, i) {
|
|
|
2378
2378
|
case "dangerouslySetInnerHTML":
|
|
2379
2379
|
throw Error(_(91));
|
|
2380
2380
|
default:
|
|
2381
|
-
|
|
2381
|
+
he(
|
|
2382
2382
|
e,
|
|
2383
2383
|
r,
|
|
2384
2384
|
a,
|
|
@@ -2394,11 +2394,11 @@ function pp(e, t, n, r, i) {
|
|
|
2394
2394
|
}
|
|
2395
2395
|
return typeof o == "string" && o[0] === `
|
|
2396
2396
|
` && e.push(`
|
|
2397
|
-
`), o !== null && e.push(
|
|
2397
|
+
`), o !== null && e.push(se("" + o)), null;
|
|
2398
2398
|
case "input":
|
|
2399
2399
|
e.push(Ae("input")), l = f = a = o = null;
|
|
2400
2400
|
for (s in n)
|
|
2401
|
-
if (
|
|
2401
|
+
if (ce.call(n, s) && (u = n[s], u != null))
|
|
2402
2402
|
switch (s) {
|
|
2403
2403
|
case "children":
|
|
2404
2404
|
case "dangerouslySetInnerHTML":
|
|
@@ -2416,25 +2416,25 @@ function pp(e, t, n, r, i) {
|
|
|
2416
2416
|
o = u;
|
|
2417
2417
|
break;
|
|
2418
2418
|
default:
|
|
2419
|
-
|
|
2419
|
+
he(e, r, s, u);
|
|
2420
2420
|
}
|
|
2421
|
-
return f !== null ?
|
|
2421
|
+
return f !== null ? he(e, r, "checked", f) : l !== null && he(e, r, "checked", l), o !== null ? he(e, r, "value", o) : a !== null && he(e, r, "value", a), e.push("/>"), null;
|
|
2422
2422
|
case "menuitem":
|
|
2423
2423
|
e.push(Ae("menuitem"));
|
|
2424
2424
|
for (var d in n)
|
|
2425
|
-
if (
|
|
2425
|
+
if (ce.call(n, d) && (o = n[d], o != null))
|
|
2426
2426
|
switch (d) {
|
|
2427
2427
|
case "children":
|
|
2428
2428
|
case "dangerouslySetInnerHTML":
|
|
2429
2429
|
throw Error(_(400));
|
|
2430
2430
|
default:
|
|
2431
|
-
|
|
2431
|
+
he(e, r, d, o);
|
|
2432
2432
|
}
|
|
2433
2433
|
return e.push(">"), null;
|
|
2434
2434
|
case "title":
|
|
2435
2435
|
e.push(Ae("title")), o = null;
|
|
2436
2436
|
for (c in n)
|
|
2437
|
-
if (
|
|
2437
|
+
if (ce.call(n, c) && (s = n[c], s != null))
|
|
2438
2438
|
switch (c) {
|
|
2439
2439
|
case "children":
|
|
2440
2440
|
o = s;
|
|
@@ -2442,14 +2442,14 @@ function pp(e, t, n, r, i) {
|
|
|
2442
2442
|
case "dangerouslySetInnerHTML":
|
|
2443
2443
|
throw Error(_(434));
|
|
2444
2444
|
default:
|
|
2445
|
-
|
|
2445
|
+
he(e, r, c, s);
|
|
2446
2446
|
}
|
|
2447
2447
|
return e.push(">"), o;
|
|
2448
2448
|
case "listing":
|
|
2449
2449
|
case "pre":
|
|
2450
2450
|
e.push(Ae(t)), s = o = null;
|
|
2451
2451
|
for (l in n)
|
|
2452
|
-
if (
|
|
2452
|
+
if (ce.call(n, l) && (a = n[l], a != null))
|
|
2453
2453
|
switch (l) {
|
|
2454
2454
|
case "children":
|
|
2455
2455
|
o = a;
|
|
@@ -2458,7 +2458,7 @@ function pp(e, t, n, r, i) {
|
|
|
2458
2458
|
s = a;
|
|
2459
2459
|
break;
|
|
2460
2460
|
default:
|
|
2461
|
-
|
|
2461
|
+
he(e, r, l, a);
|
|
2462
2462
|
}
|
|
2463
2463
|
if (e.push(">"), s != null) {
|
|
2464
2464
|
if (o != null)
|
|
@@ -2488,13 +2488,13 @@ function pp(e, t, n, r, i) {
|
|
|
2488
2488
|
case "wbr":
|
|
2489
2489
|
e.push(Ae(t));
|
|
2490
2490
|
for (var h in n)
|
|
2491
|
-
if (
|
|
2491
|
+
if (ce.call(n, h) && (o = n[h], o != null))
|
|
2492
2492
|
switch (h) {
|
|
2493
2493
|
case "children":
|
|
2494
2494
|
case "dangerouslySetInnerHTML":
|
|
2495
2495
|
throw Error(_(399, t));
|
|
2496
2496
|
default:
|
|
2497
|
-
|
|
2497
|
+
he(e, r, h, o);
|
|
2498
2498
|
}
|
|
2499
2499
|
return e.push("/>"), null;
|
|
2500
2500
|
case "annotation-xml":
|
|
@@ -2518,7 +2518,7 @@ function pp(e, t, n, r, i) {
|
|
|
2518
2518
|
return Zr(e, n, t, r);
|
|
2519
2519
|
e.push(Ae(t)), s = o = null;
|
|
2520
2520
|
for (u in n)
|
|
2521
|
-
if (
|
|
2521
|
+
if (ce.call(n, u) && (a = n[u], a != null))
|
|
2522
2522
|
switch (u) {
|
|
2523
2523
|
case "children":
|
|
2524
2524
|
o = a;
|
|
@@ -2533,7 +2533,7 @@ function pp(e, t, n, r, i) {
|
|
|
2533
2533
|
case "suppressHydrationWarning":
|
|
2534
2534
|
break;
|
|
2535
2535
|
default:
|
|
2536
|
-
uu(u) && typeof a != "function" && typeof a != "symbol" && e.push(" ", u, '="',
|
|
2536
|
+
uu(u) && typeof a != "function" && typeof a != "symbol" && e.push(" ", u, '="', se(a), '"');
|
|
2537
2537
|
}
|
|
2538
2538
|
return e.push(">"), $n(e, s, o), o;
|
|
2539
2539
|
}
|
|
@@ -2604,7 +2604,7 @@ function vp(e, t) {
|
|
|
2604
2604
|
return t = t === void 0 ? "" : t, { bootstrapChunks: [], startInlineScript: "<script>", placeholderPrefix: t + "P:", segmentPrefix: t + "S:", boundaryPrefix: t + "B:", idPrefix: t, nextSuspenseID: 0, sentCompleteSegmentFunction: !1, sentCompleteBoundaryFunction: !1, sentClientRenderFunction: !1, generateStaticMarkup: e };
|
|
2605
2605
|
}
|
|
2606
2606
|
function Ss(e, t, n, r) {
|
|
2607
|
-
return n.generateStaticMarkup ? (e.push(
|
|
2607
|
+
return n.generateStaticMarkup ? (e.push(se(t)), !1) : (t === "" ? e = r : (r && e.push("<!-- -->"), e.push(se(t)), e = !0), e);
|
|
2608
2608
|
}
|
|
2609
2609
|
var Qt = Object.assign, xp = Symbol.for("react.element"), fu = Symbol.for("react.portal"), du = Symbol.for("react.fragment"), hu = Symbol.for("react.strict_mode"), pu = Symbol.for("react.profiler"), mu = Symbol.for("react.provider"), gu = Symbol.for("react.context"), yu = Symbol.for("react.forward_ref"), vu = Symbol.for("react.suspense"), xu = Symbol.for("react.suspense_list"), bu = Symbol.for("react.memo"), fo = Symbol.for("react.lazy"), bp = Symbol.for("react.scope"), wp = Symbol.for("react.debug_trace_mode"), Sp = Symbol.for("react.legacy_hidden"), Ep = Symbol.for("react.default_value"), Es = Symbol.iterator;
|
|
2610
2610
|
function Ai(e) {
|
|
@@ -2899,9 +2899,9 @@ function Ms(e, t, n, r) {
|
|
|
2899
2899
|
throw Error(_(108, Ai(r) || "Unknown", a));
|
|
2900
2900
|
r = Qt({}, s, n);
|
|
2901
2901
|
}
|
|
2902
|
-
t.legacyContext = r,
|
|
2902
|
+
t.legacyContext = r, ge(e, t, i), t.legacyContext = s;
|
|
2903
2903
|
} else
|
|
2904
|
-
|
|
2904
|
+
ge(e, t, i);
|
|
2905
2905
|
}
|
|
2906
2906
|
function Vs(e, t) {
|
|
2907
2907
|
if (e && e.defaultProps) {
|
|
@@ -2926,12 +2926,12 @@ function _i(e, t, n, r, i) {
|
|
|
2926
2926
|
else if (s) {
|
|
2927
2927
|
r = t.treeContext, t.treeContext = Oi(r, 1, 0);
|
|
2928
2928
|
try {
|
|
2929
|
-
|
|
2929
|
+
ge(e, t, i);
|
|
2930
2930
|
} finally {
|
|
2931
2931
|
t.treeContext = r;
|
|
2932
2932
|
}
|
|
2933
2933
|
} else
|
|
2934
|
-
|
|
2934
|
+
ge(e, t, i);
|
|
2935
2935
|
}
|
|
2936
2936
|
else if (typeof n == "string") {
|
|
2937
2937
|
switch (i = t.blockedSegment, o = pp(i.chunks, n, r, e.responseState, i.formatContext), i.lastPushedText = !1, s = i.formatContext, i.formatContext = fp(s, n, r), Mi(e, t, o), i.formatContext = s, n) {
|
|
@@ -2962,10 +2962,10 @@ function _i(e, t, n, r, i) {
|
|
|
2962
2962
|
case hu:
|
|
2963
2963
|
case pu:
|
|
2964
2964
|
case du:
|
|
2965
|
-
|
|
2965
|
+
ge(e, t, r.children);
|
|
2966
2966
|
return;
|
|
2967
2967
|
case xu:
|
|
2968
|
-
|
|
2968
|
+
ge(e, t, r.children);
|
|
2969
2969
|
return;
|
|
2970
2970
|
case bp:
|
|
2971
2971
|
throw Error(_(343));
|
|
@@ -2998,23 +2998,23 @@ function _i(e, t, n, r, i) {
|
|
|
2998
2998
|
if (r = _s(e, t, n.render, r, i), un !== 0) {
|
|
2999
2999
|
n = t.treeContext, t.treeContext = Oi(n, 1, 0);
|
|
3000
3000
|
try {
|
|
3001
|
-
|
|
3001
|
+
ge(e, t, r);
|
|
3002
3002
|
} finally {
|
|
3003
3003
|
t.treeContext = n;
|
|
3004
3004
|
}
|
|
3005
3005
|
} else
|
|
3006
|
-
|
|
3006
|
+
ge(e, t, r);
|
|
3007
3007
|
return;
|
|
3008
3008
|
case bu:
|
|
3009
3009
|
n = n.type, r = Vs(n, r), _i(e, t, n, r, i);
|
|
3010
3010
|
return;
|
|
3011
3011
|
case mu:
|
|
3012
|
-
if (i = r.children, n = n._context, r = r.value, o = n._currentValue2, n._currentValue2 = r, s = yt, yt = r = { parent: s, depth: s === null ? 0 : s.depth + 1, context: n, parentValue: o, value: r }, t.context = r,
|
|
3012
|
+
if (i = r.children, n = n._context, r = r.value, o = n._currentValue2, n._currentValue2 = r, s = yt, yt = r = { parent: s, depth: s === null ? 0 : s.depth + 1, context: n, parentValue: o, value: r }, t.context = r, ge(e, t, i), e = yt, e === null)
|
|
3013
3013
|
throw Error(_(403));
|
|
3014
3014
|
r = e.parentValue, e.context._currentValue2 = r === Ep ? e.context._defaultValue : r, e = yt = e.parent, t.context = e;
|
|
3015
3015
|
return;
|
|
3016
3016
|
case gu:
|
|
3017
|
-
r = r.children, r = r(n._currentValue2),
|
|
3017
|
+
r = r.children, r = r(n._currentValue2), ge(e, t, r);
|
|
3018
3018
|
return;
|
|
3019
3019
|
case fo:
|
|
3020
3020
|
i = n._init, n = i(n._payload), r = Vs(n, r), _i(
|
|
@@ -3029,7 +3029,7 @@ function _i(e, t, n, r, i) {
|
|
|
3029
3029
|
throw Error(_(130, n == null ? n : typeof n, ""));
|
|
3030
3030
|
}
|
|
3031
3031
|
}
|
|
3032
|
-
function
|
|
3032
|
+
function ge(e, t, n) {
|
|
3033
3033
|
if (t.node = n, typeof n == "object" && n !== null) {
|
|
3034
3034
|
switch (n.$$typeof) {
|
|
3035
3035
|
case xp:
|
|
@@ -3039,7 +3039,7 @@ function me(e, t, n) {
|
|
|
3039
3039
|
throw Error(_(257));
|
|
3040
3040
|
case fo:
|
|
3041
3041
|
var r = n._init;
|
|
3042
|
-
n = r(n._payload),
|
|
3042
|
+
n = r(n._payload), ge(e, t, n);
|
|
3043
3043
|
return;
|
|
3044
3044
|
}
|
|
3045
3045
|
if (Ri(n)) {
|
|
@@ -3074,7 +3074,7 @@ function Ls(e, t, n) {
|
|
|
3074
3074
|
function Mi(e, t, n) {
|
|
3075
3075
|
var r = t.blockedSegment.formatContext, i = t.legacyContext, o = t.context;
|
|
3076
3076
|
try {
|
|
3077
|
-
return
|
|
3077
|
+
return ge(e, t, n);
|
|
3078
3078
|
} catch (l) {
|
|
3079
3079
|
if (mo(), typeof l == "object" && l !== null && typeof l.then == "function") {
|
|
3080
3080
|
n = l;
|
|
@@ -3126,7 +3126,7 @@ function Au(e) {
|
|
|
3126
3126
|
if (l.status === 0) {
|
|
3127
3127
|
tr(s.context);
|
|
3128
3128
|
try {
|
|
3129
|
-
|
|
3129
|
+
ge(a, s, s.node), a.responseState.generateStaticMarkup || l.lastPushedText && l.textEmbedded && l.chunks.push("<!-- -->"), s.abortSet.delete(s), l.status = 1, Ru(a, s.blockedBoundary, l);
|
|
3130
3130
|
} catch (p) {
|
|
3131
3131
|
if (mo(), typeof p == "object" && p !== null && typeof p.then == "function") {
|
|
3132
3132
|
var u = s.ping;
|
|
@@ -3179,7 +3179,7 @@ function Ar(e, t, n) {
|
|
|
3179
3179
|
if (r === null)
|
|
3180
3180
|
return Pn(e, t, n);
|
|
3181
3181
|
if (r.parentFlushed = !0, r.forceClientRender)
|
|
3182
|
-
return e.responseState.generateStaticMarkup || (r = r.errorDigest, t.push("<!--$!-->"), t.push("<template"), r && (t.push(' data-dgst="'), r =
|
|
3182
|
+
return e.responseState.generateStaticMarkup || (r = r.errorDigest, t.push("<!--$!-->"), t.push("<template"), r && (t.push(' data-dgst="'), r = se(r), t.push(r), t.push('"')), t.push("></template>")), Pn(e, t, n), e = e.responseState.generateStaticMarkup ? !0 : t.push("<!--/$-->"), e;
|
|
3183
3183
|
if (0 < r.pendingTasks) {
|
|
3184
3184
|
r.rootSegmentID = e.nextSegmentId++, 0 < r.completedSegments.length && e.partialBoundaries.push(r);
|
|
3185
3185
|
var i = e.responseState, o = i.nextSuspenseID++;
|
|
@@ -3353,21 +3353,21 @@ function V(e) {
|
|
|
3353
3353
|
t += "&args[]=" + encodeURIComponent(arguments[n]);
|
|
3354
3354
|
return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
3355
3355
|
}
|
|
3356
|
-
var
|
|
3356
|
+
var ye = null, ve = 0;
|
|
3357
3357
|
function A(e, t) {
|
|
3358
3358
|
if (t.length !== 0)
|
|
3359
3359
|
if (512 < t.length)
|
|
3360
|
-
0 <
|
|
3360
|
+
0 < ve && (e.enqueue(new Uint8Array(ye.buffer, 0, ve)), ye = new Uint8Array(512), ve = 0), e.enqueue(t);
|
|
3361
3361
|
else {
|
|
3362
|
-
var n =
|
|
3363
|
-
n < t.length && (n === 0 ? e.enqueue(
|
|
3362
|
+
var n = ye.length - ve;
|
|
3363
|
+
n < t.length && (n === 0 ? e.enqueue(ye) : (ye.set(t.subarray(0, n), ve), e.enqueue(ye), t = t.subarray(n)), ye = new Uint8Array(512), ve = 0), ye.set(t, ve), ve += t.length;
|
|
3364
3364
|
}
|
|
3365
3365
|
}
|
|
3366
|
-
function
|
|
3366
|
+
function B(e, t) {
|
|
3367
3367
|
return A(e, t), !0;
|
|
3368
3368
|
}
|
|
3369
3369
|
function js(e) {
|
|
3370
|
-
|
|
3370
|
+
ye && 0 < ve && (e.enqueue(new Uint8Array(ye.buffer, 0, ve)), ye = null, ve = 0);
|
|
3371
3371
|
}
|
|
3372
3372
|
var Vu = new TextEncoder();
|
|
3373
3373
|
function L(e) {
|
|
@@ -3379,41 +3379,41 @@ function C(e) {
|
|
|
3379
3379
|
function Lu(e, t) {
|
|
3380
3380
|
typeof e.error == "function" ? e.error(t) : e.close();
|
|
3381
3381
|
}
|
|
3382
|
-
var
|
|
3382
|
+
var fe = Object.prototype.hasOwnProperty, jp = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, Is = {}, Ns = {};
|
|
3383
3383
|
function Fu(e) {
|
|
3384
|
-
return
|
|
3384
|
+
return fe.call(Ns, e) ? !0 : fe.call(Is, e) ? !1 : jp.test(e) ? Ns[e] = !0 : (Is[e] = !0, !1);
|
|
3385
3385
|
}
|
|
3386
|
-
function
|
|
3386
|
+
function le(e, t, n, r, i, o, s) {
|
|
3387
3387
|
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;
|
|
3388
3388
|
}
|
|
3389
|
-
var
|
|
3389
|
+
var re = {};
|
|
3390
3390
|
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e) {
|
|
3391
|
-
|
|
3391
|
+
re[e] = new le(e, 0, !1, e, null, !1, !1);
|
|
3392
3392
|
});
|
|
3393
3393
|
[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(e) {
|
|
3394
3394
|
var t = e[0];
|
|
3395
|
-
|
|
3395
|
+
re[t] = new le(t, 1, !1, e[1], null, !1, !1);
|
|
3396
3396
|
});
|
|
3397
3397
|
["contentEditable", "draggable", "spellCheck", "value"].forEach(function(e) {
|
|
3398
|
-
|
|
3398
|
+
re[e] = new le(e, 2, !1, e.toLowerCase(), null, !1, !1);
|
|
3399
3399
|
});
|
|
3400
3400
|
["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(e) {
|
|
3401
|
-
|
|
3401
|
+
re[e] = new le(e, 2, !1, e, null, !1, !1);
|
|
3402
3402
|
});
|
|
3403
3403
|
"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) {
|
|
3404
|
-
|
|
3404
|
+
re[e] = new le(e, 3, !1, e.toLowerCase(), null, !1, !1);
|
|
3405
3405
|
});
|
|
3406
3406
|
["checked", "multiple", "muted", "selected"].forEach(function(e) {
|
|
3407
|
-
|
|
3407
|
+
re[e] = new le(e, 3, !0, e, null, !1, !1);
|
|
3408
3408
|
});
|
|
3409
3409
|
["capture", "download"].forEach(function(e) {
|
|
3410
|
-
|
|
3410
|
+
re[e] = new le(e, 4, !1, e, null, !1, !1);
|
|
3411
3411
|
});
|
|
3412
3412
|
["cols", "rows", "size", "span"].forEach(function(e) {
|
|
3413
|
-
|
|
3413
|
+
re[e] = new le(e, 6, !1, e, null, !1, !1);
|
|
3414
3414
|
});
|
|
3415
3415
|
["rowSpan", "start"].forEach(function(e) {
|
|
3416
|
-
|
|
3416
|
+
re[e] = new le(e, 5, !1, e.toLowerCase(), null, !1, !1);
|
|
3417
3417
|
});
|
|
3418
3418
|
var xo = /[\-:]([a-z])/g;
|
|
3419
3419
|
function bo(e) {
|
|
@@ -3424,22 +3424,22 @@ function bo(e) {
|
|
|
3424
3424
|
xo,
|
|
3425
3425
|
bo
|
|
3426
3426
|
);
|
|
3427
|
-
|
|
3427
|
+
re[t] = new le(t, 1, !1, e, null, !1, !1);
|
|
3428
3428
|
});
|
|
3429
3429
|
"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e) {
|
|
3430
3430
|
var t = e.replace(xo, bo);
|
|
3431
|
-
|
|
3431
|
+
re[t] = new le(t, 1, !1, e, "http://www.w3.org/1999/xlink", !1, !1);
|
|
3432
3432
|
});
|
|
3433
3433
|
["xml:base", "xml:lang", "xml:space"].forEach(function(e) {
|
|
3434
3434
|
var t = e.replace(xo, bo);
|
|
3435
|
-
|
|
3435
|
+
re[t] = new le(t, 1, !1, e, "http://www.w3.org/XML/1998/namespace", !1, !1);
|
|
3436
3436
|
});
|
|
3437
3437
|
["tabIndex", "crossOrigin"].forEach(function(e) {
|
|
3438
|
-
|
|
3438
|
+
re[e] = new le(e, 1, !1, e.toLowerCase(), null, !1, !1);
|
|
3439
3439
|
});
|
|
3440
|
-
|
|
3440
|
+
re.xlinkHref = new le("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1);
|
|
3441
3441
|
["src", "href", "action", "formAction"].forEach(function(e) {
|
|
3442
|
-
|
|
3442
|
+
re[e] = new le(e, 1, !1, e.toLowerCase(), null, !0, !0);
|
|
3443
3443
|
});
|
|
3444
3444
|
var Hn = {
|
|
3445
3445
|
animationIterationCount: !0,
|
|
@@ -3492,7 +3492,7 @@ Object.keys(Hn).forEach(function(e) {
|
|
|
3492
3492
|
});
|
|
3493
3493
|
});
|
|
3494
3494
|
var Np = /["'&<>]/;
|
|
3495
|
-
function
|
|
3495
|
+
function te(e) {
|
|
3496
3496
|
if (typeof e == "boolean" || typeof e == "number")
|
|
3497
3497
|
return "" + e;
|
|
3498
3498
|
e = "" + e;
|
|
@@ -3530,14 +3530,14 @@ function Gp(e, t, n, r) {
|
|
|
3530
3530
|
return "" + t + (n === "s" ? "\\u0073" : "\\u0053") + r;
|
|
3531
3531
|
}
|
|
3532
3532
|
function Xp(e, t, n, r, i) {
|
|
3533
|
-
e = e === void 0 ? "" : e, t = t === void 0 ? zp : C('<script nonce="' +
|
|
3533
|
+
e = e === void 0 ? "" : e, t = t === void 0 ? zp : C('<script nonce="' + te(t) + '">');
|
|
3534
3534
|
var o = [];
|
|
3535
3535
|
if (n !== void 0 && o.push(t, L(("" + n).replace(qp, Gp)), Up), r !== void 0)
|
|
3536
3536
|
for (n = 0; n < r.length; n++)
|
|
3537
|
-
o.push(Wp, L(
|
|
3537
|
+
o.push(Wp, L(te(r[n])), Bs);
|
|
3538
3538
|
if (i !== void 0)
|
|
3539
3539
|
for (r = 0; r < i.length; r++)
|
|
3540
|
-
o.push(Hp, L(
|
|
3540
|
+
o.push(Hp, L(te(i[r])), Bs);
|
|
3541
3541
|
return { bootstrapChunks: o, startInlineScript: t, placeholderPrefix: C(e + "P:"), segmentPrefix: C(e + "S:"), boundaryPrefix: e + "B:", idPrefix: e, nextSuspenseID: 0, sentCompleteSegmentFunction: !1, sentCompleteBoundaryFunction: !1, sentClientRenderFunction: !1 };
|
|
3542
3542
|
}
|
|
3543
3543
|
function Oe(e, t) {
|
|
@@ -3571,7 +3571,7 @@ function Yp(e, t, n) {
|
|
|
3571
3571
|
}
|
|
3572
3572
|
var wo = C("<!-- -->");
|
|
3573
3573
|
function $s(e, t, n, r) {
|
|
3574
|
-
return t === "" ? r : (r && e.push(wo), e.push(L(
|
|
3574
|
+
return t === "" ? r : (r && e.push(wo), e.push(L(te(t))), !0);
|
|
3575
3575
|
}
|
|
3576
3576
|
var zs = /* @__PURE__ */ new Map(), Jp = C(' style="'), Us = C(":"), Zp = C(";");
|
|
3577
3577
|
function Du(e, t, n) {
|
|
@@ -3579,16 +3579,16 @@ function Du(e, t, n) {
|
|
|
3579
3579
|
throw Error(V(62));
|
|
3580
3580
|
t = !0;
|
|
3581
3581
|
for (var r in n)
|
|
3582
|
-
if (
|
|
3582
|
+
if (fe.call(n, r)) {
|
|
3583
3583
|
var i = n[r];
|
|
3584
3584
|
if (i != null && typeof i != "boolean" && i !== "") {
|
|
3585
3585
|
if (r.indexOf("--") === 0) {
|
|
3586
|
-
var o = L(
|
|
3587
|
-
i = L(
|
|
3586
|
+
var o = L(te(r));
|
|
3587
|
+
i = L(te(("" + i).trim()));
|
|
3588
3588
|
} else {
|
|
3589
3589
|
o = r;
|
|
3590
3590
|
var s = zs.get(o);
|
|
3591
|
-
s !== void 0 || (s = C(
|
|
3591
|
+
s !== void 0 || (s = C(te(o.replace(Bp, "-$1").toLowerCase().replace($p, "-ms-"))), zs.set(o, s)), o = s, i = typeof i == "number" ? i === 0 || fe.call(Hn, r) ? L("" + i) : L(i + "px") : L(te(("" + i).trim()));
|
|
3592
3592
|
}
|
|
3593
3593
|
t ? (t = !1, e.push(Jp, o, Us, i)) : e.push(Zp, o, Us, i);
|
|
3594
3594
|
}
|
|
@@ -3596,7 +3596,7 @@ function Du(e, t, n) {
|
|
|
3596
3596
|
t || e.push(mt);
|
|
3597
3597
|
}
|
|
3598
3598
|
var Je = C(" "), At = C('="'), mt = C('"'), Ws = C('=""');
|
|
3599
|
-
function
|
|
3599
|
+
function pe(e, t, n, r) {
|
|
3600
3600
|
switch (n) {
|
|
3601
3601
|
case "style":
|
|
3602
3602
|
Du(e, t, r);
|
|
@@ -3609,7 +3609,7 @@ function he(e, t, n, r) {
|
|
|
3609
3609
|
return;
|
|
3610
3610
|
}
|
|
3611
3611
|
if (!(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N") {
|
|
3612
|
-
if (t =
|
|
3612
|
+
if (t = re.hasOwnProperty(n) ? re[n] : null, t !== null) {
|
|
3613
3613
|
switch (typeof r) {
|
|
3614
3614
|
case "function":
|
|
3615
3615
|
case "symbol":
|
|
@@ -3623,16 +3623,16 @@ function he(e, t, n, r) {
|
|
|
3623
3623
|
r && e.push(Je, n, Ws);
|
|
3624
3624
|
break;
|
|
3625
3625
|
case 4:
|
|
3626
|
-
r === !0 ? e.push(Je, n, Ws) : r !== !1 && e.push(Je, n, At, L(
|
|
3626
|
+
r === !0 ? e.push(Je, n, Ws) : r !== !1 && e.push(Je, n, At, L(te(r)), mt);
|
|
3627
3627
|
break;
|
|
3628
3628
|
case 5:
|
|
3629
|
-
isNaN(r) || e.push(Je, n, At, L(
|
|
3629
|
+
isNaN(r) || e.push(Je, n, At, L(te(r)), mt);
|
|
3630
3630
|
break;
|
|
3631
3631
|
case 6:
|
|
3632
|
-
!isNaN(r) && 1 <= r && e.push(Je, n, At, L(
|
|
3632
|
+
!isNaN(r) && 1 <= r && e.push(Je, n, At, L(te(r)), mt);
|
|
3633
3633
|
break;
|
|
3634
3634
|
default:
|
|
3635
|
-
t.sanitizeURL && (r = "" + r), e.push(Je, n, At, L(
|
|
3635
|
+
t.sanitizeURL && (r = "" + r), e.push(Je, n, At, L(te(r)), mt);
|
|
3636
3636
|
}
|
|
3637
3637
|
} else if (Fu(n)) {
|
|
3638
3638
|
switch (typeof r) {
|
|
@@ -3643,7 +3643,7 @@ function he(e, t, n, r) {
|
|
|
3643
3643
|
if (t = n.toLowerCase().slice(0, 5), t !== "data-" && t !== "aria-")
|
|
3644
3644
|
return;
|
|
3645
3645
|
}
|
|
3646
|
-
e.push(Je, L(n), At, L(
|
|
3646
|
+
e.push(Je, L(n), At, L(te(r)), mt);
|
|
3647
3647
|
}
|
|
3648
3648
|
}
|
|
3649
3649
|
}
|
|
@@ -3668,7 +3668,7 @@ function ni(e, t, n, r) {
|
|
|
3668
3668
|
e.push(_e(n));
|
|
3669
3669
|
var i = n = null, o;
|
|
3670
3670
|
for (o in t)
|
|
3671
|
-
if (
|
|
3671
|
+
if (fe.call(t, o)) {
|
|
3672
3672
|
var s = t[o];
|
|
3673
3673
|
if (s != null)
|
|
3674
3674
|
switch (o) {
|
|
@@ -3679,10 +3679,10 @@ function ni(e, t, n, r) {
|
|
|
3679
3679
|
i = s;
|
|
3680
3680
|
break;
|
|
3681
3681
|
default:
|
|
3682
|
-
|
|
3682
|
+
pe(e, r, o, s);
|
|
3683
3683
|
}
|
|
3684
3684
|
}
|
|
3685
|
-
return e.push(Ze), qn(e, i, n), typeof n == "string" ? (e.push(L(
|
|
3685
|
+
return e.push(Ze), qn(e, i, n), typeof n == "string" ? (e.push(L(te(n))), null) : n;
|
|
3686
3686
|
}
|
|
3687
3687
|
var ri = C(`
|
|
3688
3688
|
`), em = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, qs = /* @__PURE__ */ new Map();
|
|
@@ -3702,7 +3702,7 @@ function nm(e, t, n, r, i) {
|
|
|
3702
3702
|
e.push(_e("select"));
|
|
3703
3703
|
var o = null, s = null;
|
|
3704
3704
|
for (f in n)
|
|
3705
|
-
if (
|
|
3705
|
+
if (fe.call(n, f)) {
|
|
3706
3706
|
var a = n[f];
|
|
3707
3707
|
if (a != null)
|
|
3708
3708
|
switch (f) {
|
|
@@ -3716,7 +3716,7 @@ function nm(e, t, n, r, i) {
|
|
|
3716
3716
|
case "value":
|
|
3717
3717
|
break;
|
|
3718
3718
|
default:
|
|
3719
|
-
|
|
3719
|
+
pe(e, r, f, a);
|
|
3720
3720
|
}
|
|
3721
3721
|
}
|
|
3722
3722
|
return e.push(Ze), qn(e, s, o), o;
|
|
@@ -3724,7 +3724,7 @@ function nm(e, t, n, r, i) {
|
|
|
3724
3724
|
s = i.selectedValue, e.push(_e("option"));
|
|
3725
3725
|
var l = a = null, u = null, f = null;
|
|
3726
3726
|
for (o in n)
|
|
3727
|
-
if (
|
|
3727
|
+
if (fe.call(n, o)) {
|
|
3728
3728
|
var c = n[o];
|
|
3729
3729
|
if (c != null)
|
|
3730
3730
|
switch (o) {
|
|
@@ -3740,7 +3740,7 @@ function nm(e, t, n, r, i) {
|
|
|
3740
3740
|
case "value":
|
|
3741
3741
|
l = c;
|
|
3742
3742
|
default:
|
|
3743
|
-
|
|
3743
|
+
pe(e, r, o, c);
|
|
3744
3744
|
}
|
|
3745
3745
|
}
|
|
3746
3746
|
if (s != null)
|
|
@@ -3758,7 +3758,7 @@ function nm(e, t, n, r, i) {
|
|
|
3758
3758
|
case "textarea":
|
|
3759
3759
|
e.push(_e("textarea")), f = s = o = null;
|
|
3760
3760
|
for (a in n)
|
|
3761
|
-
if (
|
|
3761
|
+
if (fe.call(n, a) && (l = n[a], l != null))
|
|
3762
3762
|
switch (a) {
|
|
3763
3763
|
case "children":
|
|
3764
3764
|
f = l;
|
|
@@ -3772,7 +3772,7 @@ function nm(e, t, n, r, i) {
|
|
|
3772
3772
|
case "dangerouslySetInnerHTML":
|
|
3773
3773
|
throw Error(V(91));
|
|
3774
3774
|
default:
|
|
3775
|
-
|
|
3775
|
+
pe(e, r, a, l);
|
|
3776
3776
|
}
|
|
3777
3777
|
if (o === null && s !== null && (o = s), e.push(Ze), f != null) {
|
|
3778
3778
|
if (o != null)
|
|
@@ -3782,11 +3782,11 @@ function nm(e, t, n, r, i) {
|
|
|
3782
3782
|
o = "" + f;
|
|
3783
3783
|
}
|
|
3784
3784
|
return typeof o == "string" && o[0] === `
|
|
3785
|
-
` && e.push(ri), o !== null && e.push(L(
|
|
3785
|
+
` && e.push(ri), o !== null && e.push(L(te("" + o))), null;
|
|
3786
3786
|
case "input":
|
|
3787
3787
|
e.push(_e("input")), l = f = a = o = null;
|
|
3788
3788
|
for (s in n)
|
|
3789
|
-
if (
|
|
3789
|
+
if (fe.call(n, s) && (u = n[s], u != null))
|
|
3790
3790
|
switch (s) {
|
|
3791
3791
|
case "children":
|
|
3792
3792
|
case "dangerouslySetInnerHTML":
|
|
@@ -3804,30 +3804,30 @@ function nm(e, t, n, r, i) {
|
|
|
3804
3804
|
o = u;
|
|
3805
3805
|
break;
|
|
3806
3806
|
default:
|
|
3807
|
-
|
|
3807
|
+
pe(e, r, s, u);
|
|
3808
3808
|
}
|
|
3809
|
-
return f !== null ?
|
|
3809
|
+
return f !== null ? pe(
|
|
3810
3810
|
e,
|
|
3811
3811
|
r,
|
|
3812
3812
|
"checked",
|
|
3813
3813
|
f
|
|
3814
|
-
) : l !== null &&
|
|
3814
|
+
) : l !== null && pe(e, r, "checked", l), o !== null ? pe(e, r, "value", o) : a !== null && pe(e, r, "value", a), e.push(Hs), null;
|
|
3815
3815
|
case "menuitem":
|
|
3816
3816
|
e.push(_e("menuitem"));
|
|
3817
3817
|
for (var d in n)
|
|
3818
|
-
if (
|
|
3818
|
+
if (fe.call(n, d) && (o = n[d], o != null))
|
|
3819
3819
|
switch (d) {
|
|
3820
3820
|
case "children":
|
|
3821
3821
|
case "dangerouslySetInnerHTML":
|
|
3822
3822
|
throw Error(V(400));
|
|
3823
3823
|
default:
|
|
3824
|
-
|
|
3824
|
+
pe(e, r, d, o);
|
|
3825
3825
|
}
|
|
3826
3826
|
return e.push(Ze), null;
|
|
3827
3827
|
case "title":
|
|
3828
3828
|
e.push(_e("title")), o = null;
|
|
3829
3829
|
for (c in n)
|
|
3830
|
-
if (
|
|
3830
|
+
if (fe.call(n, c) && (s = n[c], s != null))
|
|
3831
3831
|
switch (c) {
|
|
3832
3832
|
case "children":
|
|
3833
3833
|
o = s;
|
|
@@ -3835,14 +3835,14 @@ function nm(e, t, n, r, i) {
|
|
|
3835
3835
|
case "dangerouslySetInnerHTML":
|
|
3836
3836
|
throw Error(V(434));
|
|
3837
3837
|
default:
|
|
3838
|
-
|
|
3838
|
+
pe(e, r, c, s);
|
|
3839
3839
|
}
|
|
3840
3840
|
return e.push(Ze), o;
|
|
3841
3841
|
case "listing":
|
|
3842
3842
|
case "pre":
|
|
3843
3843
|
e.push(_e(t)), s = o = null;
|
|
3844
3844
|
for (l in n)
|
|
3845
|
-
if (
|
|
3845
|
+
if (fe.call(n, l) && (a = n[l], a != null))
|
|
3846
3846
|
switch (l) {
|
|
3847
3847
|
case "children":
|
|
3848
3848
|
o = a;
|
|
@@ -3851,7 +3851,7 @@ function nm(e, t, n, r, i) {
|
|
|
3851
3851
|
s = a;
|
|
3852
3852
|
break;
|
|
3853
3853
|
default:
|
|
3854
|
-
|
|
3854
|
+
pe(e, r, l, a);
|
|
3855
3855
|
}
|
|
3856
3856
|
if (e.push(Ze), s != null) {
|
|
3857
3857
|
if (o != null)
|
|
@@ -3879,13 +3879,13 @@ function nm(e, t, n, r, i) {
|
|
|
3879
3879
|
case "wbr":
|
|
3880
3880
|
e.push(_e(t));
|
|
3881
3881
|
for (var h in n)
|
|
3882
|
-
if (
|
|
3882
|
+
if (fe.call(n, h) && (o = n[h], o != null))
|
|
3883
3883
|
switch (h) {
|
|
3884
3884
|
case "children":
|
|
3885
3885
|
case "dangerouslySetInnerHTML":
|
|
3886
3886
|
throw Error(V(399, t));
|
|
3887
3887
|
default:
|
|
3888
|
-
|
|
3888
|
+
pe(e, r, h, o);
|
|
3889
3889
|
}
|
|
3890
3890
|
return e.push(Hs), null;
|
|
3891
3891
|
case "annotation-xml":
|
|
@@ -3904,7 +3904,7 @@ function nm(e, t, n, r, i) {
|
|
|
3904
3904
|
return ni(e, n, t, r);
|
|
3905
3905
|
e.push(_e(t)), s = o = null;
|
|
3906
3906
|
for (u in n)
|
|
3907
|
-
if (
|
|
3907
|
+
if (fe.call(n, u) && (a = n[u], a != null))
|
|
3908
3908
|
switch (u) {
|
|
3909
3909
|
case "children":
|
|
3910
3910
|
o = a;
|
|
@@ -3919,7 +3919,7 @@ function nm(e, t, n, r, i) {
|
|
|
3919
3919
|
case "suppressHydrationWarning":
|
|
3920
3920
|
break;
|
|
3921
3921
|
default:
|
|
3922
|
-
Fu(u) && typeof a != "function" && typeof a != "symbol" && e.push(Je, L(u), At, L(
|
|
3922
|
+
Fu(u) && typeof a != "function" && typeof a != "symbol" && e.push(Je, L(u), At, L(te(a)), mt);
|
|
3923
3923
|
}
|
|
3924
3924
|
return e.push(Ze), qn(e, s, o), o;
|
|
3925
3925
|
}
|
|
@@ -3931,29 +3931,29 @@ var mm = C("></template>");
|
|
|
3931
3931
|
function Gs(e, t, n) {
|
|
3932
3932
|
if (A(e, lm), n === null)
|
|
3933
3933
|
throw Error(V(395));
|
|
3934
|
-
return A(e, n),
|
|
3934
|
+
return A(e, n), B(e, um);
|
|
3935
3935
|
}
|
|
3936
3936
|
var gm = C('<div hidden id="'), ym = C('">'), vm = C("</div>"), xm = C('<svg aria-hidden="true" style="display:none" id="'), bm = C('">'), wm = C("</svg>"), Sm = C('<math aria-hidden="true" style="display:none" id="'), Em = C('">'), Cm = C("</math>"), km = C('<table hidden id="'), Tm = C('">'), Pm = C("</table>"), Rm = C('<table hidden><tbody id="'), Am = C('">'), Om = C("</tbody></table>"), _m = C('<table hidden><tr id="'), Mm = C('">'), Vm = C("</tr></table>"), Lm = C('<table hidden><colgroup id="'), Fm = C('">'), Dm = C("</colgroup></table>");
|
|
3937
3937
|
function jm(e, t, n, r) {
|
|
3938
3938
|
switch (n.insertionMode) {
|
|
3939
3939
|
case 0:
|
|
3940
3940
|
case 1:
|
|
3941
|
-
return A(e, gm), A(e, t.segmentPrefix), A(e, L(r.toString(16))),
|
|
3941
|
+
return A(e, gm), A(e, t.segmentPrefix), A(e, L(r.toString(16))), B(e, ym);
|
|
3942
3942
|
case 2:
|
|
3943
|
-
return A(e, xm), A(e, t.segmentPrefix), A(e, L(r.toString(16))),
|
|
3943
|
+
return A(e, xm), A(e, t.segmentPrefix), A(e, L(r.toString(16))), B(e, bm);
|
|
3944
3944
|
case 3:
|
|
3945
|
-
return A(e, Sm), A(e, t.segmentPrefix), A(e, L(r.toString(16))),
|
|
3945
|
+
return A(e, Sm), A(e, t.segmentPrefix), A(e, L(r.toString(16))), B(e, Em);
|
|
3946
3946
|
case 4:
|
|
3947
|
-
return A(e, km), A(e, t.segmentPrefix), A(e, L(r.toString(16))),
|
|
3947
|
+
return A(e, km), A(e, t.segmentPrefix), A(e, L(r.toString(16))), B(e, Tm);
|
|
3948
3948
|
case 5:
|
|
3949
|
-
return A(e, Rm), A(e, t.segmentPrefix), A(e, L(r.toString(16))),
|
|
3949
|
+
return A(e, Rm), A(e, t.segmentPrefix), A(e, L(r.toString(16))), B(e, Am);
|
|
3950
3950
|
case 6:
|
|
3951
|
-
return A(e, _m), A(e, t.segmentPrefix), A(e, L(r.toString(16))),
|
|
3951
|
+
return A(e, _m), A(e, t.segmentPrefix), A(e, L(r.toString(16))), B(e, Mm);
|
|
3952
3952
|
case 7:
|
|
3953
3953
|
return A(
|
|
3954
3954
|
e,
|
|
3955
3955
|
Lm
|
|
3956
|
-
), A(e, t.segmentPrefix), A(e, L(r.toString(16))),
|
|
3956
|
+
), A(e, t.segmentPrefix), A(e, L(r.toString(16))), B(e, Fm);
|
|
3957
3957
|
default:
|
|
3958
3958
|
throw Error(V(397));
|
|
3959
3959
|
}
|
|
@@ -3962,19 +3962,19 @@ function Im(e, t) {
|
|
|
3962
3962
|
switch (t.insertionMode) {
|
|
3963
3963
|
case 0:
|
|
3964
3964
|
case 1:
|
|
3965
|
-
return
|
|
3965
|
+
return B(e, vm);
|
|
3966
3966
|
case 2:
|
|
3967
|
-
return
|
|
3967
|
+
return B(e, wm);
|
|
3968
3968
|
case 3:
|
|
3969
|
-
return
|
|
3969
|
+
return B(e, Cm);
|
|
3970
3970
|
case 4:
|
|
3971
|
-
return
|
|
3971
|
+
return B(e, Pm);
|
|
3972
3972
|
case 5:
|
|
3973
|
-
return
|
|
3973
|
+
return B(e, Om);
|
|
3974
3974
|
case 6:
|
|
3975
|
-
return
|
|
3975
|
+
return B(e, Vm);
|
|
3976
3976
|
case 7:
|
|
3977
|
-
return
|
|
3977
|
+
return B(e, Dm);
|
|
3978
3978
|
default:
|
|
3979
3979
|
throw Error(V(397));
|
|
3980
3980
|
}
|
|
@@ -4284,9 +4284,9 @@ function ra(e, t, n, r) {
|
|
|
4284
4284
|
throw Error(V(108, Li(r) || "Unknown", a));
|
|
4285
4285
|
r = en({}, s, n);
|
|
4286
4286
|
}
|
|
4287
|
-
t.legacyContext = r,
|
|
4287
|
+
t.legacyContext = r, xe(e, t, i), t.legacyContext = s;
|
|
4288
4288
|
} else
|
|
4289
|
-
|
|
4289
|
+
xe(e, t, i);
|
|
4290
4290
|
}
|
|
4291
4291
|
function ia(e, t) {
|
|
4292
4292
|
if (e && e.defaultProps) {
|
|
@@ -4311,12 +4311,12 @@ function Di(e, t, n, r, i) {
|
|
|
4311
4311
|
else if (s) {
|
|
4312
4312
|
r = t.treeContext, t.treeContext = Fi(r, 1, 0);
|
|
4313
4313
|
try {
|
|
4314
|
-
|
|
4314
|
+
xe(e, t, i);
|
|
4315
4315
|
} finally {
|
|
4316
4316
|
t.treeContext = r;
|
|
4317
4317
|
}
|
|
4318
4318
|
} else
|
|
4319
|
-
|
|
4319
|
+
xe(e, t, i);
|
|
4320
4320
|
}
|
|
4321
4321
|
else if (typeof n == "string") {
|
|
4322
4322
|
switch (i = t.blockedSegment, o = nm(i.chunks, n, r, e.responseState, i.formatContext), i.lastPushedText = !1, s = i.formatContext, i.formatContext = Yp(s, n, r), ji(e, t, o), i.formatContext = s, n) {
|
|
@@ -4347,10 +4347,10 @@ function Di(e, t, n, r, i) {
|
|
|
4347
4347
|
case Nu:
|
|
4348
4348
|
case Bu:
|
|
4349
4349
|
case Iu:
|
|
4350
|
-
|
|
4350
|
+
xe(e, t, r.children);
|
|
4351
4351
|
return;
|
|
4352
4352
|
case Hu:
|
|
4353
|
-
|
|
4353
|
+
xe(e, t, r.children);
|
|
4354
4354
|
return;
|
|
4355
4355
|
case Qm:
|
|
4356
4356
|
throw Error(V(343));
|
|
@@ -4383,23 +4383,23 @@ function Di(e, t, n, r, i) {
|
|
|
4383
4383
|
if (r = na(e, t, n.render, r, i), fn !== 0) {
|
|
4384
4384
|
n = t.treeContext, t.treeContext = Fi(n, 1, 0);
|
|
4385
4385
|
try {
|
|
4386
|
-
|
|
4386
|
+
xe(e, t, r);
|
|
4387
4387
|
} finally {
|
|
4388
4388
|
t.treeContext = n;
|
|
4389
4389
|
}
|
|
4390
4390
|
} else
|
|
4391
|
-
|
|
4391
|
+
xe(e, t, r);
|
|
4392
4392
|
return;
|
|
4393
4393
|
case qu:
|
|
4394
4394
|
n = n.type, r = ia(n, r), Di(e, t, n, r, i);
|
|
4395
4395
|
return;
|
|
4396
4396
|
case $u:
|
|
4397
|
-
if (i = r.children, n = n._context, r = r.value, o = n._currentValue, n._currentValue = r, s = vt, vt = r = { parent: s, depth: s === null ? 0 : s.depth + 1, context: n, parentValue: o, value: r }, t.context = r,
|
|
4397
|
+
if (i = r.children, n = n._context, r = r.value, o = n._currentValue, n._currentValue = r, s = vt, vt = r = { parent: s, depth: s === null ? 0 : s.depth + 1, context: n, parentValue: o, value: r }, t.context = r, xe(e, t, i), e = vt, e === null)
|
|
4398
4398
|
throw Error(V(403));
|
|
4399
4399
|
r = e.parentValue, e.context._currentValue = r === ng ? e.context._defaultValue : r, e = vt = e.parent, t.context = e;
|
|
4400
4400
|
return;
|
|
4401
4401
|
case zu:
|
|
4402
|
-
r = r.children, r = r(n._currentValue),
|
|
4402
|
+
r = r.children, r = r(n._currentValue), xe(e, t, r);
|
|
4403
4403
|
return;
|
|
4404
4404
|
case So:
|
|
4405
4405
|
i = n._init, n = i(n._payload), r = ia(n, r), Di(e, t, n, r, void 0);
|
|
@@ -4412,7 +4412,7 @@ function Di(e, t, n, r, i) {
|
|
|
4412
4412
|
));
|
|
4413
4413
|
}
|
|
4414
4414
|
}
|
|
4415
|
-
function
|
|
4415
|
+
function xe(e, t, n) {
|
|
4416
4416
|
if (t.node = n, typeof n == "object" && n !== null) {
|
|
4417
4417
|
switch (n.$$typeof) {
|
|
4418
4418
|
case Zm:
|
|
@@ -4422,7 +4422,7 @@ function ve(e, t, n) {
|
|
|
4422
4422
|
throw Error(V(257));
|
|
4423
4423
|
case So:
|
|
4424
4424
|
var r = n._init;
|
|
4425
|
-
n = r(n._payload),
|
|
4425
|
+
n = r(n._payload), xe(e, t, n);
|
|
4426
4426
|
return;
|
|
4427
4427
|
}
|
|
4428
4428
|
if (Vi(n)) {
|
|
@@ -4457,7 +4457,7 @@ function oa(e, t, n) {
|
|
|
4457
4457
|
function ji(e, t, n) {
|
|
4458
4458
|
var r = t.blockedSegment.formatContext, i = t.legacyContext, o = t.context;
|
|
4459
4459
|
try {
|
|
4460
|
-
return
|
|
4460
|
+
return xe(e, t, n);
|
|
4461
4461
|
} catch (l) {
|
|
4462
4462
|
if (ko(), typeof l == "object" && l !== null && typeof l.then == "function") {
|
|
4463
4463
|
n = l;
|
|
@@ -4509,7 +4509,7 @@ function tc(e) {
|
|
|
4509
4509
|
if (l.status === 0) {
|
|
4510
4510
|
sr(s.context);
|
|
4511
4511
|
try {
|
|
4512
|
-
|
|
4512
|
+
xe(a, s, s.node), l.lastPushedText && l.textEmbedded && l.chunks.push(wo), s.abortSet.delete(s), l.status = 1, ec(a, s.blockedBoundary, l);
|
|
4513
4513
|
} catch (p) {
|
|
4514
4514
|
if (ko(), typeof p == "object" && p !== null && typeof p.then == "function") {
|
|
4515
4515
|
var u = s.ping;
|
|
@@ -4538,7 +4538,7 @@ function An(e, t, n) {
|
|
|
4538
4538
|
switch (n.parentFlushed = !0, n.status) {
|
|
4539
4539
|
case 0:
|
|
4540
4540
|
var r = n.id = e.nextSegmentId++;
|
|
4541
|
-
return n.lastPushedText = !1, n.textEmbedded = !1, e = e.responseState, A(t, om), A(t, e.placeholderPrefix), e = L(r.toString(16)), A(t, e),
|
|
4541
|
+
return n.lastPushedText = !1, n.textEmbedded = !1, e = e.responseState, A(t, om), A(t, e.placeholderPrefix), e = L(r.toString(16)), A(t, e), B(t, sm);
|
|
4542
4542
|
case 1:
|
|
4543
4543
|
n.status = 2;
|
|
4544
4544
|
var i = !0;
|
|
@@ -4552,7 +4552,7 @@ function An(e, t, n) {
|
|
|
4552
4552
|
}
|
|
4553
4553
|
for (; o < r.length - 1; o++)
|
|
4554
4554
|
A(t, r[o]);
|
|
4555
|
-
return o < r.length && (i =
|
|
4555
|
+
return o < r.length && (i = B(t, r[o])), i;
|
|
4556
4556
|
default:
|
|
4557
4557
|
throw Error(V(390));
|
|
4558
4558
|
}
|
|
@@ -4562,7 +4562,7 @@ function Mr(e, t, n) {
|
|
|
4562
4562
|
if (r === null)
|
|
4563
4563
|
return An(e, t, n);
|
|
4564
4564
|
if (r.parentFlushed = !0, r.forceClientRender)
|
|
4565
|
-
r = r.errorDigest,
|
|
4565
|
+
r = r.errorDigest, B(t, cm), A(t, dm), r && (A(t, pm), A(t, L(te(r))), A(t, hm)), B(t, mm), An(e, t, n);
|
|
4566
4566
|
else if (0 < r.pendingTasks) {
|
|
4567
4567
|
r.rootSegmentID = e.nextSegmentId++, 0 < r.completedSegments.length && e.partialBoundaries.push(r);
|
|
4568
4568
|
var i = e.responseState, o = i.nextSuspenseID++;
|
|
@@ -4570,11 +4570,11 @@ function Mr(e, t, n) {
|
|
|
4570
4570
|
} else if (r.byteSize > e.progressiveChunkSize)
|
|
4571
4571
|
r.rootSegmentID = e.nextSegmentId++, e.completedBoundaries.push(r), Gs(t, e.responseState, r.id), An(e, t, n);
|
|
4572
4572
|
else {
|
|
4573
|
-
if (
|
|
4573
|
+
if (B(t, am), n = r.completedSegments, n.length !== 1)
|
|
4574
4574
|
throw Error(V(391));
|
|
4575
4575
|
Mr(e, t, n[0]);
|
|
4576
4576
|
}
|
|
4577
|
-
return
|
|
4577
|
+
return B(t, fm);
|
|
4578
4578
|
}
|
|
4579
4579
|
function sa(e, t, n) {
|
|
4580
4580
|
return jm(t, e.responseState, n.formatContext, n.id), Mr(e, t, n), Im(t, n.formatContext);
|
|
@@ -4584,7 +4584,7 @@ function aa(e, t, n) {
|
|
|
4584
4584
|
nc(e, t, n, r[i]);
|
|
4585
4585
|
if (r.length = 0, e = e.responseState, r = n.id, n = n.rootSegmentID, A(t, e.startInlineScript), e.sentCompleteBoundaryFunction ? A(t, Wm) : (e.sentCompleteBoundaryFunction = !0, A(t, Um)), r === null)
|
|
4586
4586
|
throw Error(V(395));
|
|
4587
|
-
return n = L(n.toString(16)), A(t, r), A(t, Hm), A(t, e.segmentPrefix), A(t, n),
|
|
4587
|
+
return n = L(n.toString(16)), A(t, r), A(t, Hm), A(t, e.segmentPrefix), A(t, n), B(t, qm);
|
|
4588
4588
|
}
|
|
4589
4589
|
function nc(e, t, n, r) {
|
|
4590
4590
|
if (r.status === 2)
|
|
@@ -4595,10 +4595,10 @@ function nc(e, t, n, r) {
|
|
|
4595
4595
|
throw Error(V(392));
|
|
4596
4596
|
return sa(e, t, r);
|
|
4597
4597
|
}
|
|
4598
|
-
return sa(e, t, r), e = e.responseState, A(t, e.startInlineScript), e.sentCompleteSegmentFunction ? A(t, Bm) : (e.sentCompleteSegmentFunction = !0, A(t, Nm)), A(t, e.segmentPrefix), i = L(i.toString(16)), A(t, i), A(t, $m), A(t, e.placeholderPrefix), A(t, i),
|
|
4598
|
+
return sa(e, t, r), e = e.responseState, A(t, e.startInlineScript), e.sentCompleteSegmentFunction ? A(t, Bm) : (e.sentCompleteSegmentFunction = !0, A(t, Nm)), A(t, e.segmentPrefix), i = L(i.toString(16)), A(t, i), A(t, $m), A(t, e.placeholderPrefix), A(t, i), B(t, zm);
|
|
4599
4599
|
}
|
|
4600
4600
|
function Po(e, t) {
|
|
4601
|
-
|
|
4601
|
+
ye = new Uint8Array(512), ve = 0;
|
|
4602
4602
|
try {
|
|
4603
4603
|
var n = e.completedRootSegment;
|
|
4604
4604
|
if (n !== null && e.pendingRootTasks === 0) {
|
|
@@ -4606,7 +4606,7 @@ function Po(e, t) {
|
|
|
4606
4606
|
var r = e.responseState.bootstrapChunks;
|
|
4607
4607
|
for (n = 0; n < r.length - 1; n++)
|
|
4608
4608
|
A(t, r[n]);
|
|
4609
|
-
n < r.length &&
|
|
4609
|
+
n < r.length && B(t, r[n]);
|
|
4610
4610
|
}
|
|
4611
4611
|
var i = e.clientRenderedBoundaries, o;
|
|
4612
4612
|
for (o = 0; o < i.length; o++) {
|
|
@@ -4618,13 +4618,13 @@ function Po(e, t) {
|
|
|
4618
4618
|
Gm
|
|
4619
4619
|
)), l === null)
|
|
4620
4620
|
throw Error(V(395));
|
|
4621
|
-
A(r, l), A(r, Km), (u || f || c) && (A(r, ii), A(r, L(oi(u || "")))), (f || c) && (A(r, ii), A(r, L(oi(f || "")))), c && (A(r, ii), A(r, L(oi(c)))),
|
|
4621
|
+
A(r, l), A(r, Km), (u || f || c) && (A(r, ii), A(r, L(oi(u || "")))), (f || c) && (A(r, ii), A(r, L(oi(f || "")))), c && (A(r, ii), A(r, L(oi(c)))), B(r, Ym);
|
|
4622
4622
|
}
|
|
4623
4623
|
i.splice(0, o);
|
|
4624
4624
|
var d = e.completedBoundaries;
|
|
4625
4625
|
for (o = 0; o < d.length; o++)
|
|
4626
4626
|
aa(e, t, d[o]);
|
|
4627
|
-
d.splice(0, o), js(t),
|
|
4627
|
+
d.splice(0, o), js(t), ye = new Uint8Array(512), ve = 0;
|
|
4628
4628
|
var h = e.partialBoundaries;
|
|
4629
4629
|
for (o = 0; o < h.length; o++) {
|
|
4630
4630
|
var p = h[o];
|
|
@@ -4755,8 +4755,8 @@ var vg = function() {
|
|
|
4755
4755
|
return n.PropTypes = n, n;
|
|
4756
4756
|
};
|
|
4757
4757
|
ic.exports = vg();
|
|
4758
|
-
var
|
|
4759
|
-
const
|
|
4758
|
+
var Y = ic.exports;
|
|
4759
|
+
const ke = /* @__PURE__ */ Al(Y);
|
|
4760
4760
|
var xg = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4761
4761
|
function ac(e, t) {
|
|
4762
4762
|
return e(t = { exports: {} }, t.exports), t.exports;
|
|
@@ -4920,9 +4920,9 @@ function Rg(e) {
|
|
|
4920
4920
|
}
|
|
4921
4921
|
}, [r, d, l]), Ie.createElement(Ie.Fragment, null, Ie.createElement(e.tag, lc({ key: y, ref: d }, c), (m || u) && Ie.createElement(Pg.Provider, { value: m }, u ? Ie.createElement(Ii, { shadowroot: s, shadowrootmode: s }, e.render({ root: m, ssr: u, children: f })) : Ie.createElement(Ni, { root: m }, e.render({ root: m, ssr: u, children: f })))));
|
|
4922
4922
|
});
|
|
4923
|
-
return t.propTypes = { mode:
|
|
4923
|
+
return t.propTypes = { mode: ke.oneOf(["open", "closed"]), delegatesFocus: ke.bool, styleSheets: ke.arrayOf(ke.instanceOf(globalThis.CSSStyleSheet)), ssr: ke.bool, children: ke.node }, t.defaultProps = { mode: "open", delegatesFocus: !1, styleSheets: [], ssr: !1, children: null }, t;
|
|
4924
4924
|
}
|
|
4925
|
-
Ii.propTypes = { children:
|
|
4925
|
+
Ii.propTypes = { children: ke.oneOfType([ke.string, ke.node]) }, Ii.defaultProps = { children: "" }, Ni.propTypes = { root: ke.object.isRequired, children: ke.node }, Ni.defaultProps = { children: null };
|
|
4926
4926
|
var ai = /* @__PURE__ */ new Map();
|
|
4927
4927
|
function Ag() {
|
|
4928
4928
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "core", n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function(r) {
|
|
@@ -4978,20 +4978,20 @@ function fr(e, t) {
|
|
|
4978
4978
|
function On(e) {
|
|
4979
4979
|
return (t, n) => nn(t, fr(e, n));
|
|
4980
4980
|
}
|
|
4981
|
-
function
|
|
4981
|
+
function N(e, t) {
|
|
4982
4982
|
return nn(e, fr("default", t));
|
|
4983
4983
|
}
|
|
4984
|
-
|
|
4984
|
+
N.loading = (e, t) => nn(e, fr("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...t })), N.promise = function(e, t, n) {
|
|
4985
4985
|
let r, { pending: i, error: o, success: s } = t;
|
|
4986
|
-
i && (r = tn(i) ?
|
|
4986
|
+
i && (r = tn(i) ? N.loading(i, n) : N.loading(i.render, { ...n, ...i }));
|
|
4987
4987
|
const a = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, l = (f, c, d) => {
|
|
4988
4988
|
if (c == null)
|
|
4989
|
-
return void
|
|
4989
|
+
return void N.dismiss(r);
|
|
4990
4990
|
const h = { type: f, ...a, ...n, data: d }, p = tn(c) ? { render: c } : c;
|
|
4991
|
-
return r ?
|
|
4991
|
+
return r ? N.update(r, { ...h, ...p }) : N(p.render, { ...h, ...p }), d;
|
|
4992
4992
|
}, u = cc(e) ? e() : e;
|
|
4993
4993
|
return u.then((f) => l("success", s, f)).catch((f) => l("error", o, f)), u;
|
|
4994
|
-
},
|
|
4994
|
+
}, N.success = On("success"), N.info = On("info"), N.error = On("error"), N.warning = On("warning"), N.warn = N.warning, N.dark = (e, t) => nn(e, fr("default", { theme: "dark", ...t })), N.dismiss = function(e) {
|
|
4995
4995
|
(function(t) {
|
|
4996
4996
|
var n;
|
|
4997
4997
|
if (fc()) {
|
|
@@ -5008,11 +5008,11 @@ B.loading = (e, t) => nn(e, fr("default", { isLoading: !0, autoClose: !1, closeO
|
|
|
5008
5008
|
} else
|
|
5009
5009
|
Bi = Bi.filter((i) => t != null && i.options.toastId !== t);
|
|
5010
5010
|
})(e);
|
|
5011
|
-
},
|
|
5011
|
+
}, N.clearWaitingQueue = function(e) {
|
|
5012
5012
|
e === void 0 && (e = {}), Me.forEach((t) => {
|
|
5013
5013
|
!t.props.limit || e.containerId && t.id !== e.containerId || t.clearQueue();
|
|
5014
5014
|
});
|
|
5015
|
-
},
|
|
5015
|
+
}, N.isActive = Lg, N.update = function(e, t) {
|
|
5016
5016
|
t === void 0 && (t = {});
|
|
5017
5017
|
const n = ((r, i) => {
|
|
5018
5018
|
var o;
|
|
@@ -5025,13 +5025,13 @@ B.loading = (e, t) => nn(e, fr("default", { isLoading: !0, autoClose: !1, closeO
|
|
|
5025
5025
|
const s = o.render || i;
|
|
5026
5026
|
delete o.render, nn(s, o);
|
|
5027
5027
|
}
|
|
5028
|
-
},
|
|
5029
|
-
|
|
5030
|
-
},
|
|
5028
|
+
}, N.done = (e) => {
|
|
5029
|
+
N.update(e, { progress: 1 });
|
|
5030
|
+
}, N.onChange = function(e) {
|
|
5031
5031
|
return ca.add(e), () => {
|
|
5032
5032
|
ca.delete(e);
|
|
5033
5033
|
};
|
|
5034
|
-
},
|
|
5034
|
+
}, N.play = (e) => fa(!0, e), N.pause = (e) => fa(!1, e);
|
|
5035
5035
|
const $i = {
|
|
5036
5036
|
primary100: "#F0F6E1",
|
|
5037
5037
|
primary200: "#E5F5ED",
|
|
@@ -5134,7 +5134,7 @@ const Ng = {
|
|
|
5134
5134
|
)
|
|
5135
5135
|
}
|
|
5136
5136
|
), $g = (e) => {
|
|
5137
|
-
|
|
5137
|
+
N.error(e, {
|
|
5138
5138
|
icon: /* @__PURE__ */ R.jsx(Ig, {}),
|
|
5139
5139
|
position: "bottom-right",
|
|
5140
5140
|
style: {
|
|
@@ -5145,7 +5145,7 @@ const Ng = {
|
|
|
5145
5145
|
}
|
|
5146
5146
|
});
|
|
5147
5147
|
}, ow = (e) => {
|
|
5148
|
-
|
|
5148
|
+
N(e, {
|
|
5149
5149
|
closeButton: Bg,
|
|
5150
5150
|
toastId: "notify",
|
|
5151
5151
|
position: "top-right",
|
|
@@ -5394,7 +5394,7 @@ const bn = [
|
|
|
5394
5394
|
function xc(e, { layout: t, layoutId: n }) {
|
|
5395
5395
|
return wt.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!dr[e] || e === "opacity");
|
|
5396
5396
|
}
|
|
5397
|
-
const
|
|
5397
|
+
const de = (e) => !!(e && e.getVelocity), ty = {
|
|
5398
5398
|
x: "translateX",
|
|
5399
5399
|
y: "translateY",
|
|
5400
5400
|
z: "translateZ",
|
|
@@ -5532,7 +5532,7 @@ const Fo = () => ({
|
|
|
5532
5532
|
});
|
|
5533
5533
|
function Cc(e, t, n) {
|
|
5534
5534
|
for (const r in t)
|
|
5535
|
-
!
|
|
5535
|
+
!de(t[r]) && !xc(r, n) && (e[r] = t[r]);
|
|
5536
5536
|
}
|
|
5537
5537
|
function uy({ transformTemplate: e }, t, n) {
|
|
5538
5538
|
return x.useMemo(() => {
|
|
@@ -5664,7 +5664,7 @@ function by(e = !1) {
|
|
|
5664
5664
|
...py(r, typeof n == "string", e),
|
|
5665
5665
|
...l,
|
|
5666
5666
|
ref: i
|
|
5667
|
-
}, { children: c } = r, d = x.useMemo(() =>
|
|
5667
|
+
}, { children: c } = r, d = x.useMemo(() => de(c) ? c.get() : c, [c]);
|
|
5668
5668
|
return x.createElement(n, {
|
|
5669
5669
|
...f,
|
|
5670
5670
|
children: d
|
|
@@ -5709,13 +5709,13 @@ function Ac(e, t, n, r) {
|
|
|
5709
5709
|
function Io(e, t) {
|
|
5710
5710
|
const { style: n } = e, r = {};
|
|
5711
5711
|
for (const i in n)
|
|
5712
|
-
(
|
|
5712
|
+
(de(n[i]) || t.style && de(t.style[i]) || xc(i, e)) && (r[i] = n[i]);
|
|
5713
5713
|
return r;
|
|
5714
5714
|
}
|
|
5715
5715
|
function Oc(e, t) {
|
|
5716
5716
|
const n = Io(e, t);
|
|
5717
5717
|
for (const r in e)
|
|
5718
|
-
if (
|
|
5718
|
+
if (de(e[r]) || de(t[r])) {
|
|
5719
5719
|
const i = bn.indexOf(r) !== -1 ? "attr" + r.charAt(0).toUpperCase() + r.substring(1) : r;
|
|
5720
5720
|
n[i] = e[r];
|
|
5721
5721
|
}
|
|
@@ -5730,7 +5730,7 @@ function wy(e) {
|
|
|
5730
5730
|
}
|
|
5731
5731
|
const pr = (e) => Array.isArray(e), Sy = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), Ey = (e) => pr(e) ? e[e.length - 1] || 0 : e;
|
|
5732
5732
|
function Yn(e) {
|
|
5733
|
-
const t =
|
|
5733
|
+
const t = de(e) ? e.get() : e;
|
|
5734
5734
|
return Sy(t) ? t.toValue() : t;
|
|
5735
5735
|
}
|
|
5736
5736
|
function Cy({ scrapeMotionValuesFromProps: e, createRenderState: t, onMount: n }, r, i, o) {
|
|
@@ -5771,7 +5771,7 @@ function ky(e, t, n, r) {
|
|
|
5771
5771
|
i[b] = m[b];
|
|
5772
5772
|
}), i;
|
|
5773
5773
|
}
|
|
5774
|
-
const
|
|
5774
|
+
const H = (e) => e;
|
|
5775
5775
|
class ya {
|
|
5776
5776
|
constructor() {
|
|
5777
5777
|
this.order = [], this.scheduled = /* @__PURE__ */ new Set();
|
|
@@ -5847,12 +5847,12 @@ function Ry(e, t) {
|
|
|
5847
5847
|
return c[d] = (p, m = !1, g = !1) => (n || l(), h.schedule(p, m, g)), c;
|
|
5848
5848
|
}, {}), cancel: (c) => Mn.forEach((d) => o[d].cancel(c)), state: i, steps: o };
|
|
5849
5849
|
}
|
|
5850
|
-
const { schedule:
|
|
5850
|
+
const { schedule: $, cancel: He, state: ie, steps: li } = Ry(typeof requestAnimationFrame < "u" ? requestAnimationFrame : H, !0), Ay = {
|
|
5851
5851
|
useVisualState: _c({
|
|
5852
5852
|
scrapeMotionValuesFromProps: Oc,
|
|
5853
5853
|
createRenderState: Tc,
|
|
5854
5854
|
onMount: (e, t, { renderState: n, latestValues: r }) => {
|
|
5855
|
-
|
|
5855
|
+
$.read(() => {
|
|
5856
5856
|
try {
|
|
5857
5857
|
n.dimensions = typeof t.getBBox == "function" ? t.getBBox() : t.getBoundingClientRect();
|
|
5858
5858
|
} catch {
|
|
@@ -5863,7 +5863,7 @@ const { schedule: z, cancel: He, state: re, steps: li } = Ry(typeof requestAnima
|
|
|
5863
5863
|
height: 0
|
|
5864
5864
|
};
|
|
5865
5865
|
}
|
|
5866
|
-
}),
|
|
5866
|
+
}), $.render(() => {
|
|
5867
5867
|
Do(n, r, { enableHardwareAcceleration: !1 }, jo(t.tagName), e.transformTemplate), Ac(t, n);
|
|
5868
5868
|
});
|
|
5869
5869
|
}
|
|
@@ -5940,7 +5940,7 @@ function ba(e, t) {
|
|
|
5940
5940
|
if (o.pointerType === "touch" || Fc())
|
|
5941
5941
|
return;
|
|
5942
5942
|
const a = e.getProps();
|
|
5943
|
-
e.animationState && a.whileHover && e.animationState.setActive("whileHover", t), a[r] &&
|
|
5943
|
+
e.animationState && a.whileHover && e.animationState.setActive("whileHover", t), a[r] && $.update(() => a[r](o, s));
|
|
5944
5944
|
};
|
|
5945
5945
|
return $e(e.current, n, i, {
|
|
5946
5946
|
passive: !e.getProps()[r]
|
|
@@ -5984,7 +5984,7 @@ function ui(e, t) {
|
|
|
5984
5984
|
}
|
|
5985
5985
|
class Dy extends lt {
|
|
5986
5986
|
constructor() {
|
|
5987
|
-
super(...arguments), this.removeStartListeners =
|
|
5987
|
+
super(...arguments), this.removeStartListeners = H, this.removeEndListeners = H, this.removeAccessibleListeners = H, this.startPointerPress = (t, n) => {
|
|
5988
5988
|
if (this.isPressing)
|
|
5989
5989
|
return;
|
|
5990
5990
|
this.removeEndListeners();
|
|
@@ -5992,7 +5992,7 @@ class Dy extends lt {
|
|
|
5992
5992
|
if (!this.checkPressEnd())
|
|
5993
5993
|
return;
|
|
5994
5994
|
const { onTap: u, onTapCancel: f, globalTapTarget: c } = this.node.getProps();
|
|
5995
|
-
|
|
5995
|
+
$.update(() => {
|
|
5996
5996
|
!c && !Dc(this.node.current, a.target) ? f && f(a, l) : u && u(a, l);
|
|
5997
5997
|
});
|
|
5998
5998
|
}, { passive: !(r.onTap || r.onPointerUp) }), s = $e(window, "pointercancel", (a, l) => this.cancelPress(a, l), { passive: !(r.onTapCancel || r.onPointerCancel) });
|
|
@@ -6004,7 +6004,7 @@ class Dy extends lt {
|
|
|
6004
6004
|
const s = (a) => {
|
|
6005
6005
|
a.key !== "Enter" || !this.checkPressEnd() || ui("up", (l, u) => {
|
|
6006
6006
|
const { onTap: f } = this.node.getProps();
|
|
6007
|
-
f &&
|
|
6007
|
+
f && $.update(() => f(l, u));
|
|
6008
6008
|
});
|
|
6009
6009
|
};
|
|
6010
6010
|
this.removeEndListeners(), this.removeEndListeners = Ne(this.node.current, "keyup", s), ui("down", (a, l) => {
|
|
@@ -6019,7 +6019,7 @@ class Dy extends lt {
|
|
|
6019
6019
|
startPress(t, n) {
|
|
6020
6020
|
this.isPressing = !0;
|
|
6021
6021
|
const { onTapStart: r, whileTap: i } = this.node.getProps();
|
|
6022
|
-
i && this.node.animationState && this.node.animationState.setActive("whileTap", !0), r &&
|
|
6022
|
+
i && this.node.animationState && this.node.animationState.setActive("whileTap", !0), r && $.update(() => r(t, n));
|
|
6023
6023
|
}
|
|
6024
6024
|
checkPressEnd() {
|
|
6025
6025
|
return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !Fc();
|
|
@@ -6028,7 +6028,7 @@ class Dy extends lt {
|
|
|
6028
6028
|
if (!this.checkPressEnd())
|
|
6029
6029
|
return;
|
|
6030
6030
|
const { onTapCancel: r } = this.node.getProps();
|
|
6031
|
-
r &&
|
|
6031
|
+
r && $.update(() => r(t, n));
|
|
6032
6032
|
}
|
|
6033
6033
|
mount() {
|
|
6034
6034
|
const t = this.node.getProps(), n = $e(t.globalTapTarget ? window : this.node.current, "pointerdown", this.startPointerPress, { passive: !(t.onTapStart || t.onPointerStart) }), r = Ne(this.node.current, "focus", this.startAccessiblePress);
|
|
@@ -6132,7 +6132,7 @@ function Nr(e, t, n) {
|
|
|
6132
6132
|
const r = e.getProps();
|
|
6133
6133
|
return No(r, t, n !== void 0 ? n : r.custom, Hy(e), qy(e));
|
|
6134
6134
|
}
|
|
6135
|
-
let Gy =
|
|
6135
|
+
let Gy = H, Bo = H;
|
|
6136
6136
|
const ot = (e) => e * 1e3, ze = (e) => e / 1e3, Xy = {
|
|
6137
6137
|
current: !1
|
|
6138
6138
|
}, Ic = (e) => Array.isArray(e) && typeof e[0] == "number";
|
|
@@ -6181,12 +6181,12 @@ function Qy(e, t, n, r, i) {
|
|
|
6181
6181
|
}
|
|
6182
6182
|
function En(e, t, n, r) {
|
|
6183
6183
|
if (e === t && n === r)
|
|
6184
|
-
return
|
|
6184
|
+
return H;
|
|
6185
6185
|
const i = (o) => Qy(o, 0, 1, e, n);
|
|
6186
6186
|
return (o) => o === 0 || o === 1 ? o : zc(i(o), t, r);
|
|
6187
6187
|
}
|
|
6188
6188
|
const e0 = En(0.42, 0, 1, 1), t0 = En(0, 0, 0.58, 1), Uc = En(0.42, 0, 0.58, 1), n0 = (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), r0 = Wc($o), Gc = En(0.33, 1.53, 0.69, 0.99), zo = Hc(Gc), i0 = Wc(zo), o0 = (e) => (e *= 2) < 1 ? 0.5 * zo(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), s0 = {
|
|
6189
|
-
linear:
|
|
6189
|
+
linear: H,
|
|
6190
6190
|
easeIn: e0,
|
|
6191
6191
|
easeInOut: Uc,
|
|
6192
6192
|
easeOut: t0,
|
|
@@ -6240,11 +6240,11 @@ const Wi = {
|
|
|
6240
6240
|
test: Uo("hsl", "hue"),
|
|
6241
6241
|
parse: Xc("hue", "saturation", "lightness"),
|
|
6242
6242
|
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Le.transform(on(t)) + ", " + Le.transform(on(n)) + ", " + on(rn.transform(r)) + ")"
|
|
6243
|
-
},
|
|
6243
|
+
}, oe = {
|
|
6244
6244
|
test: (e) => xt.test(e) || Wi.test(e) || Vt.test(e),
|
|
6245
6245
|
parse: (e) => xt.test(e) ? xt.parse(e) : Vt.test(e) ? Vt.parse(e) : Wi.parse(e),
|
|
6246
6246
|
transform: (e) => wn(e) ? e : e.hasOwnProperty("red") ? xt.transform(e) : Vt.transform(e)
|
|
6247
|
-
},
|
|
6247
|
+
}, W = (e, t, n) => -n * e + n * t + e;
|
|
6248
6248
|
function di(e, t, n) {
|
|
6249
6249
|
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;
|
|
6250
6250
|
}
|
|
@@ -6275,7 +6275,7 @@ function Sa(e) {
|
|
|
6275
6275
|
}
|
|
6276
6276
|
const Kc = (e, t) => {
|
|
6277
6277
|
const n = Sa(e), r = Sa(t), i = { ...n };
|
|
6278
|
-
return (o) => (i.red = hi(n.red, r.red, o), i.green = hi(n.green, r.green, o), i.blue = hi(n.blue, r.blue, o), i.alpha =
|
|
6278
|
+
return (o) => (i.red = hi(n.red, r.red, o), i.green = hi(n.green, r.green, o), i.blue = hi(n.blue, r.blue, o), i.alpha = W(n.alpha, r.alpha, o), xt.transform(i));
|
|
6279
6279
|
};
|
|
6280
6280
|
function d0(e) {
|
|
6281
6281
|
var t, n;
|
|
@@ -6285,12 +6285,12 @@ const Yc = {
|
|
|
6285
6285
|
regex: iy,
|
|
6286
6286
|
countKey: "Vars",
|
|
6287
6287
|
token: "${v}",
|
|
6288
|
-
parse:
|
|
6288
|
+
parse: H
|
|
6289
6289
|
}, Jc = {
|
|
6290
6290
|
regex: Sc,
|
|
6291
6291
|
countKey: "Colors",
|
|
6292
6292
|
token: "${c}",
|
|
6293
|
-
parse:
|
|
6293
|
+
parse: oe.parse
|
|
6294
6294
|
}, Zc = {
|
|
6295
6295
|
regex: jr,
|
|
6296
6296
|
countKey: "Numbers",
|
|
@@ -6320,7 +6320,7 @@ function ef(e) {
|
|
|
6320
6320
|
return (s) => {
|
|
6321
6321
|
let a = i;
|
|
6322
6322
|
for (let l = 0; l < o; l++)
|
|
6323
|
-
l < r ? a = a.replace(Yc.token, s[l]) : l < r + n ? a = a.replace(Jc.token,
|
|
6323
|
+
l < r ? a = a.replace(Yc.token, s[l]) : l < r + n ? a = a.replace(Jc.token, oe.transform(s[l])) : a = a.replace(Zc.token, on(s[l]));
|
|
6324
6324
|
return a;
|
|
6325
6325
|
};
|
|
6326
6326
|
}
|
|
@@ -6336,7 +6336,7 @@ const at = {
|
|
|
6336
6336
|
getAnimatableNone: p0
|
|
6337
6337
|
}, tf = (e, t) => (n) => `${n > 0 ? t : e}`;
|
|
6338
6338
|
function nf(e, t) {
|
|
6339
|
-
return typeof e == "number" ? (n) =>
|
|
6339
|
+
return typeof e == "number" ? (n) => W(e, t, n) : oe.test(e) ? Kc(e, t) : e.startsWith("var(") ? tf(e, t) : of(e, t);
|
|
6340
6340
|
}
|
|
6341
6341
|
const rf = (e, t) => {
|
|
6342
6342
|
const n = [...e], r = n.length, i = e.map((o, s) => nf(o, t[s]));
|
|
@@ -6360,16 +6360,16 @@ const rf = (e, t) => {
|
|
|
6360
6360
|
}, mn = (e, t, n) => {
|
|
6361
6361
|
const r = t - e;
|
|
6362
6362
|
return r === 0 ? 1 : (n - e) / r;
|
|
6363
|
-
}, Ea = (e, t) => (n) =>
|
|
6363
|
+
}, Ea = (e, t) => (n) => W(e, t, n);
|
|
6364
6364
|
function g0(e) {
|
|
6365
|
-
return typeof e == "number" ? Ea : typeof e == "string" ?
|
|
6365
|
+
return typeof e == "number" ? Ea : typeof e == "string" ? oe.test(e) ? Kc : of : Array.isArray(e) ? rf : typeof e == "object" ? m0 : Ea;
|
|
6366
6366
|
}
|
|
6367
6367
|
function y0(e, t, n) {
|
|
6368
6368
|
const r = [], i = n || g0(e[0]), o = e.length - 1;
|
|
6369
6369
|
for (let s = 0; s < o; s++) {
|
|
6370
6370
|
let a = i(e[s], e[s + 1]);
|
|
6371
6371
|
if (t) {
|
|
6372
|
-
const l = Array.isArray(t) ? t[s] ||
|
|
6372
|
+
const l = Array.isArray(t) ? t[s] || H : t;
|
|
6373
6373
|
a = it(l, a);
|
|
6374
6374
|
}
|
|
6375
6375
|
r.push(a);
|
|
@@ -6395,7 +6395,7 @@ function v0(e, t) {
|
|
|
6395
6395
|
const n = e[e.length - 1];
|
|
6396
6396
|
for (let r = 1; r <= t; r++) {
|
|
6397
6397
|
const i = mn(0, t, r);
|
|
6398
|
-
e.push(
|
|
6398
|
+
e.push(W(n, 1, i));
|
|
6399
6399
|
}
|
|
6400
6400
|
}
|
|
6401
6401
|
function x0(e) {
|
|
@@ -6547,8 +6547,8 @@ function Ta({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
6547
6547
|
const g = c + m, y = s === void 0 ? g : s(g);
|
|
6548
6548
|
y !== g && (m = y - c);
|
|
6549
6549
|
const b = (P) => -m * Math.exp(-P / r), v = (P) => y + b(P), S = (P) => {
|
|
6550
|
-
const M = b(P),
|
|
6551
|
-
d.done = Math.abs(M) <= u, d.value = d.done ? y :
|
|
6550
|
+
const M = b(P), q = v(P);
|
|
6551
|
+
d.done = Math.abs(M) <= u, d.value = d.done ? y : q;
|
|
6552
6552
|
};
|
|
6553
6553
|
let E, k;
|
|
6554
6554
|
const T = (P) => {
|
|
@@ -6572,13 +6572,13 @@ function Ta({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
6572
6572
|
const M0 = (e) => {
|
|
6573
6573
|
const t = ({ timestamp: n }) => e(n);
|
|
6574
6574
|
return {
|
|
6575
|
-
start: () =>
|
|
6575
|
+
start: () => $.update(t, !0),
|
|
6576
6576
|
stop: () => He(t),
|
|
6577
6577
|
/**
|
|
6578
6578
|
* If we're processing this frame we can use the
|
|
6579
6579
|
* framelocked timestamp to keep things in sync.
|
|
6580
6580
|
*/
|
|
6581
|
-
now: () =>
|
|
6581
|
+
now: () => ie.isProcessing ? ie.timestamp : performance.now()
|
|
6582
6582
|
};
|
|
6583
6583
|
}, Pa = 2e4;
|
|
6584
6584
|
function Ra(e) {
|
|
@@ -6599,8 +6599,8 @@ const V0 = {
|
|
|
6599
6599
|
function yr({ autoplay: e = !0, delay: t = 0, driver: n = M0, keyframes: r, type: i = "keyframes", repeat: o = 0, repeatDelay: s = 0, repeatType: a = "loop", onPlay: l, onStop: u, onComplete: f, onUpdate: c, ...d }) {
|
|
6600
6600
|
let h = 1, p = !1, m, g;
|
|
6601
6601
|
const y = () => {
|
|
6602
|
-
g = new Promise((
|
|
6603
|
-
m =
|
|
6602
|
+
g = new Promise((I) => {
|
|
6603
|
+
m = I;
|
|
6604
6604
|
});
|
|
6605
6605
|
};
|
|
6606
6606
|
y();
|
|
@@ -6617,81 +6617,81 @@ function yr({ autoplay: e = !0, delay: t = 0, driver: n = M0, keyframes: r, type
|
|
|
6617
6617
|
keyframes: [...r].reverse(),
|
|
6618
6618
|
velocity: -(d.velocity || 0)
|
|
6619
6619
|
}));
|
|
6620
|
-
let T = "idle", P = null, M = null,
|
|
6620
|
+
let T = "idle", P = null, M = null, q = null;
|
|
6621
6621
|
E.calculatedDuration === null && o && (E.calculatedDuration = Ra(E));
|
|
6622
|
-
const { calculatedDuration:
|
|
6623
|
-
let
|
|
6624
|
-
|
|
6625
|
-
let
|
|
6626
|
-
const
|
|
6622
|
+
const { calculatedDuration: U } = E;
|
|
6623
|
+
let z = 1 / 0, G = 1 / 0;
|
|
6624
|
+
U !== null && (z = U + s, G = z * (o + 1) - s);
|
|
6625
|
+
let K = 0;
|
|
6626
|
+
const Q = (I) => {
|
|
6627
6627
|
if (M === null)
|
|
6628
6628
|
return;
|
|
6629
|
-
h > 0 && (M = Math.min(M,
|
|
6630
|
-
const Ct =
|
|
6631
|
-
|
|
6632
|
-
let Wr =
|
|
6629
|
+
h > 0 && (M = Math.min(M, I)), h < 0 && (M = Math.min(I - G / h, M)), P !== null ? K = P : K = Math.round(I - M) * h;
|
|
6630
|
+
const Ct = K - t * (h >= 0 ? 1 : -1), kt = h >= 0 ? Ct < 0 : Ct > G;
|
|
6631
|
+
K = Math.max(Ct, 0), T === "finished" && P === null && (K = G);
|
|
6632
|
+
let Wr = K, ut = E;
|
|
6633
6633
|
if (o) {
|
|
6634
|
-
const Ut = Math.min(
|
|
6635
|
-
let ct = Math.floor(Ut),
|
|
6636
|
-
!
|
|
6634
|
+
const Ut = Math.min(K, G) / z;
|
|
6635
|
+
let ct = Math.floor(Ut), Ce = Ut % 1;
|
|
6636
|
+
!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 = k)), Wr = st(0, 1, Ce) * z;
|
|
6637
6637
|
}
|
|
6638
6638
|
const De = kt ? { done: !1, value: r[0] } : ut.next(Wr);
|
|
6639
6639
|
S && (De.value = S(De.value));
|
|
6640
6640
|
let { done: Tt } = De;
|
|
6641
|
-
!kt &&
|
|
6641
|
+
!kt && U !== null && (Tt = h >= 0 ? K >= G : K <= 0);
|
|
6642
6642
|
const Pt = P === null && (T === "finished" || T === "running" && Tt);
|
|
6643
|
-
return c && c(De.value), Pt &&
|
|
6644
|
-
},
|
|
6643
|
+
return c && c(De.value), Pt && ee(), De;
|
|
6644
|
+
}, X = () => {
|
|
6645
6645
|
b && b.stop(), b = void 0;
|
|
6646
6646
|
}, Pe = () => {
|
|
6647
|
-
T = "idle",
|
|
6648
|
-
},
|
|
6649
|
-
T = "finished", f && f(),
|
|
6647
|
+
T = "idle", X(), m(), y(), M = q = null;
|
|
6648
|
+
}, ee = () => {
|
|
6649
|
+
T = "finished", f && f(), X(), m();
|
|
6650
6650
|
}, qe = () => {
|
|
6651
6651
|
if (p)
|
|
6652
6652
|
return;
|
|
6653
|
-
b || (b = n(
|
|
6654
|
-
const
|
|
6655
|
-
l && l(), P !== null ? M =
|
|
6653
|
+
b || (b = n(Q));
|
|
6654
|
+
const I = b.now();
|
|
6655
|
+
l && l(), P !== null ? M = I - P : (!M || T === "finished") && (M = I), T === "finished" && y(), q = M, P = null, T = "running", b.start();
|
|
6656
6656
|
};
|
|
6657
6657
|
e && qe();
|
|
6658
6658
|
const Et = {
|
|
6659
|
-
then(
|
|
6660
|
-
return g.then(
|
|
6659
|
+
then(I, Ct) {
|
|
6660
|
+
return g.then(I, Ct);
|
|
6661
6661
|
},
|
|
6662
6662
|
get time() {
|
|
6663
|
-
return ze(
|
|
6663
|
+
return ze(K);
|
|
6664
6664
|
},
|
|
6665
|
-
set time(
|
|
6666
|
-
|
|
6665
|
+
set time(I) {
|
|
6666
|
+
I = ot(I), K = I, P !== null || !b || h === 0 ? P = I : M = b.now() - I / h;
|
|
6667
6667
|
},
|
|
6668
6668
|
get duration() {
|
|
6669
|
-
const
|
|
6670
|
-
return ze(
|
|
6669
|
+
const I = E.calculatedDuration === null ? Ra(E) : E.calculatedDuration;
|
|
6670
|
+
return ze(I);
|
|
6671
6671
|
},
|
|
6672
6672
|
get speed() {
|
|
6673
6673
|
return h;
|
|
6674
6674
|
},
|
|
6675
|
-
set speed(
|
|
6676
|
-
|
|
6675
|
+
set speed(I) {
|
|
6676
|
+
I === h || !b || (h = I, Et.time = ze(K));
|
|
6677
6677
|
},
|
|
6678
6678
|
get state() {
|
|
6679
6679
|
return T;
|
|
6680
6680
|
},
|
|
6681
6681
|
play: qe,
|
|
6682
6682
|
pause: () => {
|
|
6683
|
-
T = "paused", P =
|
|
6683
|
+
T = "paused", P = K;
|
|
6684
6684
|
},
|
|
6685
6685
|
stop: () => {
|
|
6686
6686
|
p = !0, T !== "idle" && (T = "idle", u && u(), Pe());
|
|
6687
6687
|
},
|
|
6688
6688
|
cancel: () => {
|
|
6689
|
-
|
|
6689
|
+
q !== null && Q(q), Pe();
|
|
6690
6690
|
},
|
|
6691
6691
|
complete: () => {
|
|
6692
6692
|
T = "finished";
|
|
6693
6693
|
},
|
|
6694
|
-
sample: (
|
|
6694
|
+
sample: (I) => (M = 0, Q(I))
|
|
6695
6695
|
};
|
|
6696
6696
|
return Et;
|
|
6697
6697
|
}
|
|
@@ -6746,7 +6746,7 @@ function N0(e, t, { onUpdate: n, onComplete: r, ...i }) {
|
|
|
6746
6746
|
}), g = () => {
|
|
6747
6747
|
u = !1, m.cancel();
|
|
6748
6748
|
}, y = () => {
|
|
6749
|
-
u = !0,
|
|
6749
|
+
u = !0, $.update(g), a(), f();
|
|
6750
6750
|
};
|
|
6751
6751
|
return m.onfinish = () => {
|
|
6752
6752
|
u || (e.set(Yy(c, i)), r && r(), y());
|
|
@@ -6755,7 +6755,7 @@ function N0(e, t, { onUpdate: n, onComplete: r, ...i }) {
|
|
|
6755
6755
|
return l.then(v, S);
|
|
6756
6756
|
},
|
|
6757
6757
|
attachTimeline(v) {
|
|
6758
|
-
return m.timeline = v, m.onfinish = null,
|
|
6758
|
+
return m.timeline = v, m.onfinish = null, H;
|
|
6759
6759
|
},
|
|
6760
6760
|
get time() {
|
|
6761
6761
|
return ze(m.currentTime || 0);
|
|
@@ -6800,12 +6800,12 @@ function B0({ keyframes: e, delay: t, onUpdate: n, onComplete: r }) {
|
|
|
6800
6800
|
time: 0,
|
|
6801
6801
|
speed: 1,
|
|
6802
6802
|
duration: 0,
|
|
6803
|
-
play:
|
|
6804
|
-
pause:
|
|
6805
|
-
stop:
|
|
6803
|
+
play: H,
|
|
6804
|
+
pause: H,
|
|
6805
|
+
stop: H,
|
|
6806
6806
|
then: (o) => (o(), Promise.resolve()),
|
|
6807
|
-
cancel:
|
|
6808
|
-
complete:
|
|
6807
|
+
cancel: H,
|
|
6808
|
+
complete: H
|
|
6809
6809
|
});
|
|
6810
6810
|
return t ? yr({
|
|
6811
6811
|
keyframes: [0, 1],
|
|
@@ -6854,17 +6854,17 @@ const X0 = /([a-z-]*)\(.*?\)/g, Gi = {
|
|
|
6854
6854
|
}, K0 = {
|
|
6855
6855
|
...Ec,
|
|
6856
6856
|
// Color props
|
|
6857
|
-
color:
|
|
6858
|
-
backgroundColor:
|
|
6859
|
-
outlineColor:
|
|
6860
|
-
fill:
|
|
6861
|
-
stroke:
|
|
6857
|
+
color: oe,
|
|
6858
|
+
backgroundColor: oe,
|
|
6859
|
+
outlineColor: oe,
|
|
6860
|
+
fill: oe,
|
|
6861
|
+
stroke: oe,
|
|
6862
6862
|
// Border props
|
|
6863
|
-
borderColor:
|
|
6864
|
-
borderTopColor:
|
|
6865
|
-
borderRightColor:
|
|
6866
|
-
borderBottomColor:
|
|
6867
|
-
borderLeftColor:
|
|
6863
|
+
borderColor: oe,
|
|
6864
|
+
borderTopColor: oe,
|
|
6865
|
+
borderRightColor: oe,
|
|
6866
|
+
borderBottomColor: oe,
|
|
6867
|
+
borderLeftColor: oe,
|
|
6868
6868
|
filter: Gi,
|
|
6869
6869
|
WebkitFilter: Gi
|
|
6870
6870
|
}, Wo = (e) => K0[e];
|
|
@@ -6945,7 +6945,7 @@ const Q0 = {
|
|
|
6945
6945
|
return yr(h);
|
|
6946
6946
|
};
|
|
6947
6947
|
function vr(e) {
|
|
6948
|
-
return !!(
|
|
6948
|
+
return !!(de(e) && e.add);
|
|
6949
6949
|
}
|
|
6950
6950
|
const df = (e) => /^\-?\d*\.?\d+$/.test(e);
|
|
6951
6951
|
function Go(e, t) {
|
|
@@ -6993,9 +6993,9 @@ class tv {
|
|
|
6993
6993
|
constructor(t, n = {}) {
|
|
6994
6994
|
this.version = "10.18.0", this.timeDelta = 0, this.lastUpdated = 0, this.canTrackVelocity = !1, this.events = {}, this.updateAndNotify = (r, i = !0) => {
|
|
6995
6995
|
this.prev = this.current, this.current = r;
|
|
6996
|
-
const { delta: o, timestamp: s } =
|
|
6997
|
-
this.lastUpdated !== s && (this.timeDelta = o, this.lastUpdated = s,
|
|
6998
|
-
}, this.scheduleVelocityCheck = () =>
|
|
6996
|
+
const { delta: o, timestamp: s } = ie;
|
|
6997
|
+
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);
|
|
6998
|
+
}, this.scheduleVelocityCheck = () => $.postRender(this.velocityCheck), this.velocityCheck = ({ timestamp: r }) => {
|
|
6999
6999
|
r !== this.lastUpdated && (this.prev = this.current, this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()));
|
|
7000
7000
|
}, this.hasAnimated = !1, this.prev = this.current = t, this.canTrackVelocity = ev(this.current), this.owner = n.owner;
|
|
7001
7001
|
}
|
|
@@ -7046,7 +7046,7 @@ class tv {
|
|
|
7046
7046
|
this.events[t] || (this.events[t] = new Ko());
|
|
7047
7047
|
const r = this.events[t].add(n);
|
|
7048
7048
|
return t === "change" ? () => {
|
|
7049
|
-
r(),
|
|
7049
|
+
r(), $.read(() => {
|
|
7050
7050
|
this.events.change.getSize() || this.stop();
|
|
7051
7051
|
});
|
|
7052
7052
|
} : r;
|
|
@@ -7177,7 +7177,7 @@ function jt(e, t) {
|
|
|
7177
7177
|
const hf = (e) => (t) => t.test(e), nv = {
|
|
7178
7178
|
test: (e) => e === "auto",
|
|
7179
7179
|
parse: (e) => e
|
|
7180
|
-
}, pf = [St, O, Le, Qe, ly, ay, nv], qt = (e) => pf.find(hf(e)), rv = [...pf,
|
|
7180
|
+
}, pf = [St, O, Le, Qe, ly, ay, nv], qt = (e) => pf.find(hf(e)), rv = [...pf, oe, at], iv = (e) => rv.find(hf(e));
|
|
7181
7181
|
function ov(e, t, n) {
|
|
7182
7182
|
e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, jt(n));
|
|
7183
7183
|
}
|
|
@@ -7246,7 +7246,7 @@ function mf(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
|
7246
7246
|
if (window.HandoffAppearAnimations) {
|
|
7247
7247
|
const y = e.getProps()[mc];
|
|
7248
7248
|
if (y) {
|
|
7249
|
-
const b = window.HandoffAppearAnimations(y, c, d,
|
|
7249
|
+
const b = window.HandoffAppearAnimations(y, c, d, $);
|
|
7250
7250
|
b !== null && (p.elapsed = b, p.isHandoff = !0);
|
|
7251
7251
|
}
|
|
7252
7252
|
}
|
|
@@ -7334,25 +7334,25 @@ function vv(e) {
|
|
|
7334
7334
|
continue;
|
|
7335
7335
|
let M = xv(v.prevProp, S) || // If we're making this variant active, we want to always make it active
|
|
7336
7336
|
b === u && v.isActive && !T && E || // If we removed a higher-priority variant (i is in reverse order)
|
|
7337
|
-
y > m && E,
|
|
7338
|
-
const
|
|
7339
|
-
let
|
|
7340
|
-
k === !1 && (
|
|
7341
|
-
const { prevResolvedValues:
|
|
7342
|
-
...
|
|
7343
|
-
...
|
|
7344
|
-
},
|
|
7345
|
-
M = !0, h.has(
|
|
7337
|
+
y > m && E, q = !1;
|
|
7338
|
+
const U = Array.isArray(S) ? S : [S];
|
|
7339
|
+
let z = U.reduce(i, {});
|
|
7340
|
+
k === !1 && (z = {});
|
|
7341
|
+
const { prevResolvedValues: G = {} } = v, K = {
|
|
7342
|
+
...G,
|
|
7343
|
+
...z
|
|
7344
|
+
}, Q = (X) => {
|
|
7345
|
+
M = !0, h.has(X) && (q = !0, h.delete(X)), v.needsAnimating[X] = !0;
|
|
7346
7346
|
};
|
|
7347
|
-
for (const
|
|
7348
|
-
const Pe =
|
|
7349
|
-
if (p.hasOwnProperty(
|
|
7347
|
+
for (const X in K) {
|
|
7348
|
+
const Pe = z[X], ee = G[X];
|
|
7349
|
+
if (p.hasOwnProperty(X))
|
|
7350
7350
|
continue;
|
|
7351
7351
|
let qe = !1;
|
|
7352
|
-
pr(Pe) && pr(
|
|
7352
|
+
pr(Pe) && pr(ee) ? qe = !jc(Pe, ee) : qe = Pe !== ee, qe ? Pe !== void 0 ? Q(X) : h.add(X) : Pe !== void 0 && h.has(X) ? Q(X) : v.protectedKeys[X] = !0;
|
|
7353
7353
|
}
|
|
7354
|
-
v.prevProp = S, v.prevResolvedValues =
|
|
7355
|
-
animation:
|
|
7354
|
+
v.prevProp = S, v.prevResolvedValues = z, v.isActive && (p = { ...p, ...z }), r && e.blockInitialAnimation && (M = !1), M && (!T || q) && d.push(...U.map((X) => ({
|
|
7355
|
+
animation: X,
|
|
7356
7356
|
options: { type: b, ...l }
|
|
7357
7357
|
})));
|
|
7358
7358
|
}
|
|
@@ -7475,12 +7475,12 @@ class gf {
|
|
|
7475
7475
|
const c = yi(this.lastMoveEventInfo, this.history), d = this.startEvent !== null, h = kv(c.offset, { x: 0, y: 0 }) >= 3;
|
|
7476
7476
|
if (!d && !h)
|
|
7477
7477
|
return;
|
|
7478
|
-
const { point: p } = c, { timestamp: m } =
|
|
7478
|
+
const { point: p } = c, { timestamp: m } = ie;
|
|
7479
7479
|
this.history.push({ ...p, timestamp: m });
|
|
7480
7480
|
const { onStart: g, onMove: y } = this.handlers;
|
|
7481
7481
|
d || (g && g(this.lastMoveEvent, c), this.startEvent = this.lastMoveEvent), y && y(this.lastMoveEvent, c);
|
|
7482
7482
|
}, this.handlePointerMove = (c, d) => {
|
|
7483
|
-
this.lastMoveEvent = c, this.lastMoveEventInfo = gi(d, this.transformPagePoint),
|
|
7483
|
+
this.lastMoveEvent = c, this.lastMoveEventInfo = gi(d, this.transformPagePoint), $.update(this.updatePoint, !0);
|
|
7484
7484
|
}, this.handlePointerUp = (c, d) => {
|
|
7485
7485
|
this.end();
|
|
7486
7486
|
const { onEnd: h, onSessionEnd: p, resumeAnimation: m } = this.handlers;
|
|
@@ -7491,7 +7491,7 @@ class gf {
|
|
|
7491
7491
|
}, !Mc(t))
|
|
7492
7492
|
return;
|
|
7493
7493
|
this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = r, this.contextWindow = i || window;
|
|
7494
|
-
const s = Ir(t), a = gi(s, this.transformPagePoint), { point: l } = a, { timestamp: u } =
|
|
7494
|
+
const s = Ir(t), a = gi(s, this.transformPagePoint), { point: l } = a, { timestamp: u } = ie;
|
|
7495
7495
|
this.history = [{ ...l, timestamp: u }];
|
|
7496
7496
|
const { onSessionStart: f } = n;
|
|
7497
7497
|
f && f(t, yi(a, this.history)), this.removeListeners = it($e(this.contextWindow, "pointermove", this.handlePointerMove), $e(this.contextWindow, "pointerup", this.handlePointerUp), $e(this.contextWindow, "pointercancel", this.handlePointerUp));
|
|
@@ -7541,32 +7541,32 @@ function Pv(e, t) {
|
|
|
7541
7541
|
};
|
|
7542
7542
|
return s.x === 1 / 0 && (s.x = 0), s.y === 1 / 0 && (s.y = 0), s;
|
|
7543
7543
|
}
|
|
7544
|
-
function
|
|
7544
|
+
function be(e) {
|
|
7545
7545
|
return e.max - e.min;
|
|
7546
7546
|
}
|
|
7547
7547
|
function Ki(e, t = 0, n = 0.01) {
|
|
7548
7548
|
return Math.abs(e - t) <= n;
|
|
7549
7549
|
}
|
|
7550
7550
|
function _a(e, t, n, r = 0.5) {
|
|
7551
|
-
e.origin = r, e.originPoint =
|
|
7551
|
+
e.origin = r, e.originPoint = W(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 = W(n.min, n.max, e.origin) - e.originPoint, (Ki(e.translate) || isNaN(e.translate)) && (e.translate = 0);
|
|
7552
7552
|
}
|
|
7553
7553
|
function sn(e, t, n, r) {
|
|
7554
7554
|
_a(e.x, t.x, n.x, r ? r.originX : void 0), _a(e.y, t.y, n.y, r ? r.originY : void 0);
|
|
7555
7555
|
}
|
|
7556
7556
|
function Ma(e, t, n) {
|
|
7557
|
-
e.min = n.min + t.min, e.max = e.min +
|
|
7557
|
+
e.min = n.min + t.min, e.max = e.min + be(t);
|
|
7558
7558
|
}
|
|
7559
7559
|
function Rv(e, t, n) {
|
|
7560
7560
|
Ma(e.x, t.x, n.x), Ma(e.y, t.y, n.y);
|
|
7561
7561
|
}
|
|
7562
7562
|
function Va(e, t, n) {
|
|
7563
|
-
e.min = t.min - n.min, e.max = e.min +
|
|
7563
|
+
e.min = t.min - n.min, e.max = e.min + be(t);
|
|
7564
7564
|
}
|
|
7565
7565
|
function an(e, t, n) {
|
|
7566
7566
|
Va(e.x, t.x, n.x), Va(e.y, t.y, n.y);
|
|
7567
7567
|
}
|
|
7568
7568
|
function Av(e, { min: t, max: n }, r) {
|
|
7569
|
-
return t !== void 0 && e < t ? e = r ?
|
|
7569
|
+
return t !== void 0 && e < t ? e = r ? W(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? W(n, e, r.max) : Math.min(e, n)), e;
|
|
7570
7570
|
}
|
|
7571
7571
|
function La(e, t, n) {
|
|
7572
7572
|
return {
|
|
@@ -7592,7 +7592,7 @@ function _v(e, t) {
|
|
|
7592
7592
|
}
|
|
7593
7593
|
function Mv(e, t) {
|
|
7594
7594
|
let n = 0.5;
|
|
7595
|
-
const r =
|
|
7595
|
+
const r = be(e), i = be(t);
|
|
7596
7596
|
return i > r ? n = mn(t.min, t.max - r, e.min) : r > i && (n = mn(e.min, e.max - i, t.min)), st(0, 1, n);
|
|
7597
7597
|
}
|
|
7598
7598
|
function Vv(e, t) {
|
|
@@ -7623,11 +7623,11 @@ const Ia = () => ({
|
|
|
7623
7623
|
}), Lt = () => ({
|
|
7624
7624
|
x: Ia(),
|
|
7625
7625
|
y: Ia()
|
|
7626
|
-
}), Na = () => ({ min: 0, max: 0 }),
|
|
7626
|
+
}), Na = () => ({ min: 0, max: 0 }), J = () => ({
|
|
7627
7627
|
x: Na(),
|
|
7628
7628
|
y: Na()
|
|
7629
7629
|
});
|
|
7630
|
-
function
|
|
7630
|
+
function Se(e) {
|
|
7631
7631
|
return [e("x"), e("y")];
|
|
7632
7632
|
}
|
|
7633
7633
|
function vf({ top: e, left: t, right: n, bottom: r }) {
|
|
@@ -7701,7 +7701,7 @@ function et(e, t) {
|
|
|
7701
7701
|
e.min = e.min + t, e.max = e.max + t;
|
|
7702
7702
|
}
|
|
7703
7703
|
function Ua(e, t, [n, r, i]) {
|
|
7704
|
-
const o = t[i] !== void 0 ? t[i] : 0.5, s =
|
|
7704
|
+
const o = t[i] !== void 0 ? t[i] : 0.5, s = W(e.min, e.max, o);
|
|
7705
7705
|
Zi(e, t[n], t[r], s, t.scale);
|
|
7706
7706
|
}
|
|
7707
7707
|
const Iv = ["x", "scaleX", "originX"], Nv = ["y", "scaleY", "originY"];
|
|
@@ -7718,7 +7718,7 @@ function Bv(e, t, n) {
|
|
|
7718
7718
|
const Sf = ({ current: e }) => e ? e.ownerDocument.defaultView : null, $v = /* @__PURE__ */ new WeakMap();
|
|
7719
7719
|
class zv {
|
|
7720
7720
|
constructor(t) {
|
|
7721
|
-
this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic =
|
|
7721
|
+
this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = J(), this.visualElement = t;
|
|
7722
7722
|
}
|
|
7723
7723
|
start(t, { snapToCursor: n = !1 } = {}) {
|
|
7724
7724
|
const { presenceContext: r } = this.visualElement;
|
|
@@ -7731,17 +7731,17 @@ class zv {
|
|
|
7731
7731
|
const { drag: d, dragPropagation: h, onDragStart: p } = this.getProps();
|
|
7732
7732
|
if (d && !h && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = Lc(d), !this.openGlobalLock))
|
|
7733
7733
|
return;
|
|
7734
|
-
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0),
|
|
7734
|
+
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), Se((g) => {
|
|
7735
7735
|
let y = this.getAxisMotionValue(g).get() || 0;
|
|
7736
7736
|
if (Le.test(y)) {
|
|
7737
7737
|
const { projection: b } = this.visualElement;
|
|
7738
7738
|
if (b && b.layout) {
|
|
7739
7739
|
const v = b.layout.layoutBox[g];
|
|
7740
|
-
v && (y =
|
|
7740
|
+
v && (y = be(v) * (parseFloat(y) / 100));
|
|
7741
7741
|
}
|
|
7742
7742
|
}
|
|
7743
7743
|
this.originPoint[g] = y;
|
|
7744
|
-
}), p &&
|
|
7744
|
+
}), p && $.update(() => p(f, c), !1, !0);
|
|
7745
7745
|
const { animationState: m } = this.visualElement;
|
|
7746
7746
|
m && m.setActive("whileDrag", !0);
|
|
7747
7747
|
}, s = (f, c) => {
|
|
@@ -7754,7 +7754,7 @@ class zv {
|
|
|
7754
7754
|
return;
|
|
7755
7755
|
}
|
|
7756
7756
|
this.updateAxis("x", c.point, g), this.updateAxis("y", c.point, g), this.visualElement.render(), m && m(f, c);
|
|
7757
|
-
}, a = (f, c) => this.stop(f, c), l = () =>
|
|
7757
|
+
}, a = (f, c) => this.stop(f, c), l = () => Se((f) => {
|
|
7758
7758
|
var c;
|
|
7759
7759
|
return this.getAnimationState(f) === "paused" && ((c = this.getAxisMotionValue(f).animation) === null || c === void 0 ? void 0 : c.play());
|
|
7760
7760
|
}), { dragSnapToOrigin: u } = this.getProps();
|
|
@@ -7777,7 +7777,7 @@ class zv {
|
|
|
7777
7777
|
const { velocity: i } = n;
|
|
7778
7778
|
this.startAnimation(i);
|
|
7779
7779
|
const { onDragEnd: o } = this.getProps();
|
|
7780
|
-
o &&
|
|
7780
|
+
o && $.update(() => o(t, n));
|
|
7781
7781
|
}
|
|
7782
7782
|
cancel() {
|
|
7783
7783
|
this.isDragging = !1;
|
|
@@ -7797,7 +7797,7 @@ class zv {
|
|
|
7797
7797
|
resolveConstraints() {
|
|
7798
7798
|
var t;
|
|
7799
7799
|
const { dragConstraints: n, dragElastic: r } = this.getProps(), i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (t = this.visualElement.projection) === null || t === void 0 ? void 0 : t.layout, o = this.constraints;
|
|
7800
|
-
n && Mt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = Ov(i.layoutBox, n) : this.constraints = !1, this.elastic = Lv(r), o !== this.constraints && i && this.constraints && !this.hasMutatedConstraints &&
|
|
7800
|
+
n && Mt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = Ov(i.layoutBox, n) : this.constraints = !1, this.elastic = Lv(r), o !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && Se((s) => {
|
|
7801
7801
|
this.getAxisMotionValue(s) && (this.constraints[s] = Vv(i.layoutBox[s], this.constraints[s]));
|
|
7802
7802
|
});
|
|
7803
7803
|
}
|
|
@@ -7817,7 +7817,7 @@ class zv {
|
|
|
7817
7817
|
return s;
|
|
7818
7818
|
}
|
|
7819
7819
|
startAnimation(t) {
|
|
7820
|
-
const { drag: n, dragMomentum: r, dragElastic: i, dragTransition: o, dragSnapToOrigin: s, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, u =
|
|
7820
|
+
const { drag: n, dragMomentum: r, dragElastic: i, dragTransition: o, dragSnapToOrigin: s, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, u = Se((f) => {
|
|
7821
7821
|
if (!Ln(f, n, this.currentDirection))
|
|
7822
7822
|
return;
|
|
7823
7823
|
let c = l && l[f] || {};
|
|
@@ -7842,10 +7842,10 @@ class zv {
|
|
|
7842
7842
|
return r.start(qo(t, r, 0, n));
|
|
7843
7843
|
}
|
|
7844
7844
|
stopAnimation() {
|
|
7845
|
-
|
|
7845
|
+
Se((t) => this.getAxisMotionValue(t).stop());
|
|
7846
7846
|
}
|
|
7847
7847
|
pauseAnimation() {
|
|
7848
|
-
|
|
7848
|
+
Se((t) => {
|
|
7849
7849
|
var n;
|
|
7850
7850
|
return (n = this.getAxisMotionValue(t).animation) === null || n === void 0 ? void 0 : n.pause();
|
|
7851
7851
|
});
|
|
@@ -7865,14 +7865,14 @@ class zv {
|
|
|
7865
7865
|
return i || this.visualElement.getValue(t, (r.initial ? r.initial[t] : void 0) || 0);
|
|
7866
7866
|
}
|
|
7867
7867
|
snapToCursor(t) {
|
|
7868
|
-
|
|
7868
|
+
Se((n) => {
|
|
7869
7869
|
const { drag: r } = this.getProps();
|
|
7870
7870
|
if (!Ln(n, r, this.currentDirection))
|
|
7871
7871
|
return;
|
|
7872
7872
|
const { projection: i } = this.visualElement, o = this.getAxisMotionValue(n);
|
|
7873
7873
|
if (i && i.layout) {
|
|
7874
7874
|
const { min: s, max: a } = i.layout.layoutBox[n];
|
|
7875
|
-
o.set(t[n] -
|
|
7875
|
+
o.set(t[n] - W(s, a, 0.5));
|
|
7876
7876
|
}
|
|
7877
7877
|
});
|
|
7878
7878
|
}
|
|
@@ -7889,7 +7889,7 @@ class zv {
|
|
|
7889
7889
|
return;
|
|
7890
7890
|
this.stopAnimation();
|
|
7891
7891
|
const i = { x: 0, y: 0 };
|
|
7892
|
-
|
|
7892
|
+
Se((s) => {
|
|
7893
7893
|
const a = this.getAxisMotionValue(s);
|
|
7894
7894
|
if (a) {
|
|
7895
7895
|
const l = a.get();
|
|
@@ -7897,11 +7897,11 @@ class zv {
|
|
|
7897
7897
|
}
|
|
7898
7898
|
});
|
|
7899
7899
|
const { transformTemplate: o } = this.visualElement.getProps();
|
|
7900
|
-
this.visualElement.current.style.transform = o ? o({}, "") : "none", r.root && r.root.updateScroll(), r.updateLayout(), this.resolveConstraints(),
|
|
7900
|
+
this.visualElement.current.style.transform = o ? o({}, "") : "none", r.root && r.root.updateScroll(), r.updateLayout(), this.resolveConstraints(), Se((s) => {
|
|
7901
7901
|
if (!Ln(s, t, null))
|
|
7902
7902
|
return;
|
|
7903
7903
|
const a = this.getAxisMotionValue(s), { min: l, max: u } = this.constraints[s];
|
|
7904
|
-
a.set(
|
|
7904
|
+
a.set(W(l, u, i[s]));
|
|
7905
7905
|
});
|
|
7906
7906
|
}
|
|
7907
7907
|
addListeners() {
|
|
@@ -7917,7 +7917,7 @@ class zv {
|
|
|
7917
7917
|
}, { projection: i } = this.visualElement, o = i.addEventListener("measure", r);
|
|
7918
7918
|
i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), r();
|
|
7919
7919
|
const s = Ne(window, "resize", () => this.scalePositionWithinConstraints()), a = i.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: u }) => {
|
|
7920
|
-
this.isDragging && u && (
|
|
7920
|
+
this.isDragging && u && (Se((f) => {
|
|
7921
7921
|
const c = this.getAxisMotionValue(f);
|
|
7922
7922
|
c && (this.originPoint[f] += l[f].translate, c.set(c.get() + l[f].translate));
|
|
7923
7923
|
}), this.visualElement.render());
|
|
@@ -7948,22 +7948,22 @@ function Uv(e, t = 10) {
|
|
|
7948
7948
|
}
|
|
7949
7949
|
class Wv extends lt {
|
|
7950
7950
|
constructor(t) {
|
|
7951
|
-
super(t), this.removeGroupControls =
|
|
7951
|
+
super(t), this.removeGroupControls = H, this.removeListeners = H, this.controls = new zv(t);
|
|
7952
7952
|
}
|
|
7953
7953
|
mount() {
|
|
7954
7954
|
const { dragControls: t } = this.node.getProps();
|
|
7955
|
-
t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() ||
|
|
7955
|
+
t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || H;
|
|
7956
7956
|
}
|
|
7957
7957
|
unmount() {
|
|
7958
7958
|
this.removeGroupControls(), this.removeListeners();
|
|
7959
7959
|
}
|
|
7960
7960
|
}
|
|
7961
7961
|
const Wa = (e) => (t, n) => {
|
|
7962
|
-
e &&
|
|
7962
|
+
e && $.update(() => e(t, n));
|
|
7963
7963
|
};
|
|
7964
7964
|
class Hv extends lt {
|
|
7965
7965
|
constructor() {
|
|
7966
|
-
super(...arguments), this.removePointerDownListener =
|
|
7966
|
+
super(...arguments), this.removePointerDownListener = H;
|
|
7967
7967
|
}
|
|
7968
7968
|
onPointerDown(t) {
|
|
7969
7969
|
this.session = new gf(t, this.createPanHandlers(), {
|
|
@@ -7978,7 +7978,7 @@ class Hv extends lt {
|
|
|
7978
7978
|
onStart: Wa(n),
|
|
7979
7979
|
onMove: r,
|
|
7980
7980
|
onEnd: (o, s) => {
|
|
7981
|
-
delete this.session, i &&
|
|
7981
|
+
delete this.session, i && $.update(() => i(o, s));
|
|
7982
7982
|
}
|
|
7983
7983
|
};
|
|
7984
7984
|
}
|
|
@@ -8033,7 +8033,7 @@ const Gt = {
|
|
|
8033
8033
|
return r;
|
|
8034
8034
|
const o = at.createTransformer(e), s = typeof i[0] != "number" ? 1 : 0, a = n.x.scale * t.x, l = n.y.scale * t.y;
|
|
8035
8035
|
i[0 + s] /= a, i[1 + s] /= l;
|
|
8036
|
-
const u =
|
|
8036
|
+
const u = W(a, l, 0.5);
|
|
8037
8037
|
return typeof i[2 + s] == "number" && (i[2 + s] /= u), typeof i[3 + s] == "number" && (i[3 + s] /= u), o(i);
|
|
8038
8038
|
}
|
|
8039
8039
|
};
|
|
@@ -8054,7 +8054,7 @@ class Xv extends Ie.Component {
|
|
|
8054
8054
|
}
|
|
8055
8055
|
getSnapshotBeforeUpdate(t) {
|
|
8056
8056
|
const { layoutDependency: n, visualElement: r, drag: i, isPresent: o } = this.props, s = r.projection;
|
|
8057
|
-
return s && (s.isPresent = o, i || t.layoutDependency !== n || n === void 0 ? s.willUpdate() : this.safeToRemove(), t.isPresent !== o && (o ? s.promote() : s.relegate() ||
|
|
8057
|
+
return s && (s.isPresent = o, i || t.layoutDependency !== n || n === void 0 ? s.willUpdate() : this.safeToRemove(), t.isPresent !== o && (o ? s.promote() : s.relegate() || $.postRender(() => {
|
|
8058
8058
|
const a = s.getStack();
|
|
8059
8059
|
(!a || !a.members.length) && this.safeToRemove();
|
|
8060
8060
|
}))), null;
|
|
@@ -8098,41 +8098,41 @@ const Kv = {
|
|
|
8098
8098
|
boxShadow: Gv
|
|
8099
8099
|
}, Cf = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Yv = Cf.length, qa = (e) => typeof e == "string" ? parseFloat(e) : e, Ga = (e) => typeof e == "number" || O.test(e);
|
|
8100
8100
|
function Jv(e, t, n, r, i, o) {
|
|
8101
|
-
i ? (e.opacity =
|
|
8101
|
+
i ? (e.opacity = W(
|
|
8102
8102
|
0,
|
|
8103
8103
|
// TODO Reinstate this if only child
|
|
8104
8104
|
n.opacity !== void 0 ? n.opacity : 1,
|
|
8105
8105
|
Zv(r)
|
|
8106
|
-
), e.opacityExit =
|
|
8106
|
+
), e.opacityExit = W(t.opacity !== void 0 ? t.opacity : 1, 0, Qv(r))) : o && (e.opacity = W(t.opacity !== void 0 ? t.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, r));
|
|
8107
8107
|
for (let s = 0; s < Yv; s++) {
|
|
8108
8108
|
const a = `border${Cf[s]}Radius`;
|
|
8109
8109
|
let l = Xa(t, a), u = Xa(n, a);
|
|
8110
8110
|
if (l === void 0 && u === void 0)
|
|
8111
8111
|
continue;
|
|
8112
|
-
l || (l = 0), u || (u = 0), l === 0 || u === 0 || Ga(l) === Ga(u) ? (e[a] = Math.max(
|
|
8112
|
+
l || (l = 0), u || (u = 0), l === 0 || u === 0 || Ga(l) === Ga(u) ? (e[a] = Math.max(W(qa(l), qa(u), r), 0), (Le.test(u) || Le.test(l)) && (e[a] += "%")) : e[a] = u;
|
|
8113
8113
|
}
|
|
8114
|
-
(t.rotate || n.rotate) && (e.rotate =
|
|
8114
|
+
(t.rotate || n.rotate) && (e.rotate = W(t.rotate || 0, n.rotate || 0, r));
|
|
8115
8115
|
}
|
|
8116
8116
|
function Xa(e, t) {
|
|
8117
8117
|
return e[t] !== void 0 ? e[t] : e.borderRadius;
|
|
8118
8118
|
}
|
|
8119
|
-
const Zv = kf(0, 0.5, qc), Qv = kf(0.5, 0.95,
|
|
8119
|
+
const Zv = kf(0, 0.5, qc), Qv = kf(0.5, 0.95, H);
|
|
8120
8120
|
function kf(e, t, n) {
|
|
8121
8121
|
return (r) => r < e ? 0 : r > t ? 1 : n(mn(e, t, r));
|
|
8122
8122
|
}
|
|
8123
8123
|
function Ka(e, t) {
|
|
8124
8124
|
e.min = t.min, e.max = t.max;
|
|
8125
8125
|
}
|
|
8126
|
-
function
|
|
8126
|
+
function we(e, t) {
|
|
8127
8127
|
Ka(e.x, t.x), Ka(e.y, t.y);
|
|
8128
8128
|
}
|
|
8129
8129
|
function Ya(e, t, n, r, i) {
|
|
8130
8130
|
return e -= t, e = xr(e, 1 / n, r), i !== void 0 && (e = xr(e, 1 / i, r)), e;
|
|
8131
8131
|
}
|
|
8132
8132
|
function ex(e, t = 0, n = 1, r = 0.5, i, o = e, s = e) {
|
|
8133
|
-
if (Le.test(t) && (t = parseFloat(t), t =
|
|
8133
|
+
if (Le.test(t) && (t = parseFloat(t), t = W(s.min, s.max, t / 100) - s.min), typeof t != "number")
|
|
8134
8134
|
return;
|
|
8135
|
-
let a =
|
|
8135
|
+
let a = W(o.min, o.max, r);
|
|
8136
8136
|
e === o && (a -= t), e.min = Ya(e.min, t, n, a, i), e.max = Ya(e.max, t, n, a, i);
|
|
8137
8137
|
}
|
|
8138
8138
|
function Ja(e, t, [n, r, i], o, s) {
|
|
@@ -8155,7 +8155,7 @@ function Pf(e, t) {
|
|
|
8155
8155
|
return Math.round(e.x.min) === Math.round(t.x.min) && Math.round(e.x.max) === Math.round(t.x.max) && Math.round(e.y.min) === Math.round(t.y.min) && Math.round(e.y.max) === Math.round(t.y.max);
|
|
8156
8156
|
}
|
|
8157
8157
|
function el(e) {
|
|
8158
|
-
return
|
|
8158
|
+
return be(e.x) / be(e.y);
|
|
8159
8159
|
}
|
|
8160
8160
|
class ix {
|
|
8161
8161
|
constructor() {
|
|
@@ -8241,7 +8241,7 @@ function ax(e, t) {
|
|
|
8241
8241
|
const o = i - n;
|
|
8242
8242
|
o >= t && (He(r), e(o - t));
|
|
8243
8243
|
};
|
|
8244
|
-
return
|
|
8244
|
+
return $.read(r, !0), () => He(r);
|
|
8245
8245
|
}
|
|
8246
8246
|
function lx(e) {
|
|
8247
8247
|
window.MotionDebug && window.MotionDebug.record(e);
|
|
@@ -8250,7 +8250,7 @@ function ux(e) {
|
|
|
8250
8250
|
return e instanceof SVGElement && e.tagName !== "svg";
|
|
8251
8251
|
}
|
|
8252
8252
|
function cx(e, t, n) {
|
|
8253
|
-
const r =
|
|
8253
|
+
const r = de(e) ? e : jt(e);
|
|
8254
8254
|
return r.start(qo("", r, t, n)), r.animation;
|
|
8255
8255
|
}
|
|
8256
8256
|
const nl = ["", "X", "Y", "Z"], fx = { visibility: "hidden" }, rl = 1e3;
|
|
@@ -8368,7 +8368,7 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8368
8368
|
}
|
|
8369
8369
|
this.isUpdating || this.nodes.forEach(vx), this.isUpdating = !1, this.nodes.forEach(xx), this.nodes.forEach(hx), this.nodes.forEach(px), this.clearAllSnapshots();
|
|
8370
8370
|
const a = performance.now();
|
|
8371
|
-
|
|
8371
|
+
ie.delta = st(0, 1e3 / 60, a - ie.timestamp), ie.timestamp = a, ie.isProcessing = !0, li.update.process(ie), li.preRender.process(ie), li.render.process(ie), ie.isProcessing = !1;
|
|
8372
8372
|
}
|
|
8373
8373
|
didUpdate() {
|
|
8374
8374
|
this.updateScheduled || (this.updateScheduled = !0, queueMicrotask(() => this.update()));
|
|
@@ -8377,10 +8377,10 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8377
8377
|
this.nodes.forEach(yx), this.sharedNodes.forEach(Ex);
|
|
8378
8378
|
}
|
|
8379
8379
|
scheduleUpdateProjection() {
|
|
8380
|
-
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0,
|
|
8380
|
+
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, $.preRender(this.updateProjection, !1, !0));
|
|
8381
8381
|
}
|
|
8382
8382
|
scheduleCheckAfterUnmount() {
|
|
8383
|
-
|
|
8383
|
+
$.postRender(() => {
|
|
8384
8384
|
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
|
|
8385
8385
|
});
|
|
8386
8386
|
}
|
|
@@ -8397,7 +8397,7 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8397
8397
|
for (let l = 0; l < this.path.length; l++)
|
|
8398
8398
|
this.path[l].updateScroll();
|
|
8399
8399
|
const s = this.layout;
|
|
8400
|
-
this.layout = this.measure(!1), this.layoutCorrected =
|
|
8400
|
+
this.layout = this.measure(!1), this.layoutCorrected = J(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
|
|
8401
8401
|
const { visualElement: a } = this.options;
|
|
8402
8402
|
a && a.notify("LayoutMeasure", this.layout.layoutBox, s ? s.layoutBox : void 0);
|
|
8403
8403
|
}
|
|
@@ -8430,18 +8430,18 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8430
8430
|
measurePageBox() {
|
|
8431
8431
|
const { visualElement: s } = this.options;
|
|
8432
8432
|
if (!s)
|
|
8433
|
-
return
|
|
8433
|
+
return J();
|
|
8434
8434
|
const a = s.measureViewportBox(), { scroll: l } = this.root;
|
|
8435
8435
|
return l && (et(a.x, l.offset.x), et(a.y, l.offset.y)), a;
|
|
8436
8436
|
}
|
|
8437
8437
|
removeElementScroll(s) {
|
|
8438
|
-
const a =
|
|
8439
|
-
|
|
8438
|
+
const a = J();
|
|
8439
|
+
we(a, s);
|
|
8440
8440
|
for (let l = 0; l < this.path.length; l++) {
|
|
8441
8441
|
const u = this.path[l], { scroll: f, options: c } = u;
|
|
8442
8442
|
if (u !== this.root && f && c.layoutScroll) {
|
|
8443
8443
|
if (f.isRoot) {
|
|
8444
|
-
|
|
8444
|
+
we(a, s);
|
|
8445
8445
|
const { scroll: d } = this.root;
|
|
8446
8446
|
d && (et(a.x, -d.offset.x), et(a.y, -d.offset.y));
|
|
8447
8447
|
}
|
|
@@ -8451,8 +8451,8 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8451
8451
|
return a;
|
|
8452
8452
|
}
|
|
8453
8453
|
applyTransform(s, a = !1) {
|
|
8454
|
-
const l =
|
|
8455
|
-
|
|
8454
|
+
const l = J();
|
|
8455
|
+
we(l, s);
|
|
8456
8456
|
for (let u = 0; u < this.path.length; u++) {
|
|
8457
8457
|
const f = this.path[u];
|
|
8458
8458
|
!a && f.options.layoutScroll && f.scroll && f !== f.root && Ft(l, {
|
|
@@ -8463,15 +8463,15 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8463
8463
|
return dt(this.latestValues) && Ft(l, this.latestValues), l;
|
|
8464
8464
|
}
|
|
8465
8465
|
removeTransform(s) {
|
|
8466
|
-
const a =
|
|
8467
|
-
|
|
8466
|
+
const a = J();
|
|
8467
|
+
we(a, s);
|
|
8468
8468
|
for (let l = 0; l < this.path.length; l++) {
|
|
8469
8469
|
const u = this.path[l];
|
|
8470
8470
|
if (!u.instance || !dt(u.latestValues))
|
|
8471
8471
|
continue;
|
|
8472
8472
|
Ji(u.latestValues) && u.updateSnapshot();
|
|
8473
|
-
const f =
|
|
8474
|
-
|
|
8473
|
+
const f = J(), c = u.measurePageBox();
|
|
8474
|
+
we(f, c), Za(a, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, f);
|
|
8475
8475
|
}
|
|
8476
8476
|
return dt(this.latestValues) && Za(a, this.latestValues), a;
|
|
8477
8477
|
}
|
|
@@ -8489,7 +8489,7 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8489
8489
|
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;
|
|
8490
8490
|
}
|
|
8491
8491
|
forceRelativeParentToResolveTarget() {
|
|
8492
|
-
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !==
|
|
8492
|
+
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== ie.timestamp && this.relativeParent.resolveTargetDelta(!0);
|
|
8493
8493
|
}
|
|
8494
8494
|
resolveTargetDelta(s = !1) {
|
|
8495
8495
|
var a;
|
|
@@ -8500,15 +8500,15 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8500
8500
|
return;
|
|
8501
8501
|
const { layout: c, layoutId: d } = this.options;
|
|
8502
8502
|
if (!(!this.layout || !(c || d))) {
|
|
8503
|
-
if (this.resolvedRelativeTargetAt =
|
|
8503
|
+
if (this.resolvedRelativeTargetAt = ie.timestamp, !this.targetDelta && !this.relativeTarget) {
|
|
8504
8504
|
const h = this.getClosestProjectingParent();
|
|
8505
|
-
h && h.layout && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget =
|
|
8505
|
+
h && h.layout && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = J(), this.relativeTargetOrigin = J(), an(this.relativeTargetOrigin, this.layout.layoutBox, h.layout.layoutBox), we(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
8506
8506
|
}
|
|
8507
8507
|
if (!(!this.relativeTarget && !this.targetDelta)) {
|
|
8508
|
-
if (this.target || (this.target =
|
|
8508
|
+
if (this.target || (this.target = J(), this.targetWithTransforms = J()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Rv(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : we(this.target, this.layout.layoutBox), bf(this.target, this.targetDelta)) : we(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
|
|
8509
8509
|
this.attemptToResolveRelativeTarget = !1;
|
|
8510
8510
|
const h = this.getClosestProjectingParent();
|
|
8511
|
-
h && !!h.resumingFrom == !!this.resumingFrom && !h.options.layoutScroll && h.target && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget =
|
|
8511
|
+
h && !!h.resumingFrom == !!this.resumingFrom && !h.options.layoutScroll && h.target && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = J(), this.relativeTargetOrigin = J(), an(this.relativeTargetOrigin, this.target, h.target), we(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
8512
8512
|
}
|
|
8513
8513
|
ht.resolvedTargetDeltas++;
|
|
8514
8514
|
}
|
|
@@ -8525,12 +8525,12 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8525
8525
|
var s;
|
|
8526
8526
|
const a = this.getLead(), l = !!this.resumingFrom || this !== a;
|
|
8527
8527
|
let u = !0;
|
|
8528
|
-
if ((this.isProjectionDirty || !((s = this.parent) === null || s === void 0) && s.isProjectionDirty) && (u = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (u = !1), this.resolvedRelativeTargetAt ===
|
|
8528
|
+
if ((this.isProjectionDirty || !((s = this.parent) === null || s === void 0) && s.isProjectionDirty) && (u = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (u = !1), this.resolvedRelativeTargetAt === ie.timestamp && (u = !1), u)
|
|
8529
8529
|
return;
|
|
8530
8530
|
const { layout: f, layoutId: c } = this.options;
|
|
8531
8531
|
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(f || c))
|
|
8532
8532
|
return;
|
|
8533
|
-
|
|
8533
|
+
we(this.layoutCorrected, this.layout.layoutBox);
|
|
8534
8534
|
const d = this.treeScale.x, h = this.treeScale.y;
|
|
8535
8535
|
jv(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox);
|
|
8536
8536
|
const { target: p } = a;
|
|
@@ -8558,16 +8558,16 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8558
8558
|
setAnimationOrigin(s, a = !1) {
|
|
8559
8559
|
const l = this.snapshot, u = l ? l.latestValues : {}, f = { ...this.latestValues }, c = Lt();
|
|
8560
8560
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
|
8561
|
-
const d =
|
|
8561
|
+
const d = J(), h = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, m = h !== p, g = this.getStack(), y = !g || g.members.length <= 1, b = !!(m && !y && this.options.crossfade === !0 && !this.path.some(kx));
|
|
8562
8562
|
this.animationProgress = 0;
|
|
8563
8563
|
let v;
|
|
8564
8564
|
this.mixTargetDelta = (S) => {
|
|
8565
8565
|
const E = S / 1e3;
|
|
8566
|
-
sl(c.x, s.x, E), sl(c.y, s.y, E), this.setTargetDelta(c), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (an(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Cx(this.relativeTarget, this.relativeTargetOrigin, d, E), v && rx(this.relativeTarget, v) && (this.isProjectionDirty = !1), v || (v =
|
|
8566
|
+
sl(c.x, s.x, E), sl(c.y, s.y, E), this.setTargetDelta(c), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (an(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Cx(this.relativeTarget, this.relativeTargetOrigin, d, E), v && rx(this.relativeTarget, v) && (this.isProjectionDirty = !1), v || (v = J()), we(v, this.relativeTarget)), m && (this.animationValues = f, Jv(f, u, this.latestValues, E, b, y)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = E;
|
|
8567
8567
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
8568
8568
|
}
|
|
8569
8569
|
startAnimation(s) {
|
|
8570
|
-
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (He(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation =
|
|
8570
|
+
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (He(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = $.update(() => {
|
|
8571
8571
|
Jn.hasAnimatedSinceResize = !0, this.currentAnimation = cx(0, rl, {
|
|
8572
8572
|
...s,
|
|
8573
8573
|
onUpdate: (a) => {
|
|
@@ -8592,13 +8592,13 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8592
8592
|
let { targetWithTransforms: a, target: l, layout: u, latestValues: f } = s;
|
|
8593
8593
|
if (!(!a || !l || !u)) {
|
|
8594
8594
|
if (this !== s && this.layout && u && Af(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
|
|
8595
|
-
l = this.target ||
|
|
8596
|
-
const c =
|
|
8595
|
+
l = this.target || J();
|
|
8596
|
+
const c = be(this.layout.layoutBox.x);
|
|
8597
8597
|
l.x.min = s.target.x.min, l.x.max = l.x.min + c;
|
|
8598
|
-
const d =
|
|
8598
|
+
const d = be(this.layout.layoutBox.y);
|
|
8599
8599
|
l.y.min = s.target.y.min, l.y.max = l.y.min + d;
|
|
8600
8600
|
}
|
|
8601
|
-
|
|
8601
|
+
we(a, l), Ft(a, f), sn(this.projectionDeltaWithTransform, this.layoutCorrected, a, f);
|
|
8602
8602
|
}
|
|
8603
8603
|
}
|
|
8604
8604
|
registerSharedNode(s, a) {
|
|
@@ -8707,11 +8707,11 @@ function px(e) {
|
|
|
8707
8707
|
const n = ((t = e.resumeFrom) === null || t === void 0 ? void 0 : t.snapshot) || e.snapshot;
|
|
8708
8708
|
if (e.isLead() && e.layout && n && e.hasListeners("didUpdate")) {
|
|
8709
8709
|
const { layoutBox: r, measuredBox: i } = e.layout, { animationType: o } = e.options, s = n.source !== e.layout.source;
|
|
8710
|
-
o === "size" ?
|
|
8711
|
-
const d = s ? n.measuredBox[c] : n.layoutBox[c], h =
|
|
8710
|
+
o === "size" ? Se((c) => {
|
|
8711
|
+
const d = s ? n.measuredBox[c] : n.layoutBox[c], h = be(d);
|
|
8712
8712
|
d.min = r[c].min, d.max = d.min + h;
|
|
8713
|
-
}) : Af(o, n.layoutBox, r) &&
|
|
8714
|
-
const d = s ? n.measuredBox[c] : n.layoutBox[c], h =
|
|
8713
|
+
}) : Af(o, n.layoutBox, r) && Se((c) => {
|
|
8714
|
+
const d = s ? n.measuredBox[c] : n.layoutBox[c], h = be(r[c]);
|
|
8715
8715
|
d.max = d.min + h, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[c].max = e.relativeTarget[c].min + h);
|
|
8716
8716
|
});
|
|
8717
8717
|
const a = Lt();
|
|
@@ -8725,9 +8725,9 @@ function px(e) {
|
|
|
8725
8725
|
if (c && !c.resumeFrom) {
|
|
8726
8726
|
const { snapshot: d, layout: h } = c;
|
|
8727
8727
|
if (d && h) {
|
|
8728
|
-
const p =
|
|
8728
|
+
const p = J();
|
|
8729
8729
|
an(p, n.layoutBox, d.layoutBox);
|
|
8730
|
-
const m =
|
|
8730
|
+
const m = J();
|
|
8731
8731
|
an(m, r, h.layoutBox), Pf(p, m) || (f = !0), c.options.layoutRoot && (e.relativeTarget = m, e.relativeTargetOrigin = p, e.relativeParent = c);
|
|
8732
8732
|
}
|
|
8733
8733
|
}
|
|
@@ -8781,10 +8781,10 @@ function Ex(e) {
|
|
|
8781
8781
|
e.removeLeadSnapshot();
|
|
8782
8782
|
}
|
|
8783
8783
|
function sl(e, t, n) {
|
|
8784
|
-
e.translate =
|
|
8784
|
+
e.translate = W(t.translate, 0, n), e.scale = W(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
|
|
8785
8785
|
}
|
|
8786
8786
|
function al(e, t, n, r) {
|
|
8787
|
-
e.min =
|
|
8787
|
+
e.min = W(t.min, n.min, r), e.max = W(t.max, n.max, r);
|
|
8788
8788
|
}
|
|
8789
8789
|
function Cx(e, t, n, r) {
|
|
8790
8790
|
al(e.x, t.x, n.x, r), al(e.y, t.y, n.y, r);
|
|
@@ -8795,7 +8795,7 @@ function kx(e) {
|
|
|
8795
8795
|
const Tx = {
|
|
8796
8796
|
duration: 0.45,
|
|
8797
8797
|
ease: [0.4, 0, 0.1, 1]
|
|
8798
|
-
}, ll = (e) => typeof navigator < "u" && navigator.userAgent.toLowerCase().includes(e), ul = ll("applewebkit/") && !ll("chrome/") ? Math.round :
|
|
8798
|
+
}, ll = (e) => typeof navigator < "u" && navigator.userAgent.toLowerCase().includes(e), ul = ll("applewebkit/") && !ll("chrome/") ? Math.round : H;
|
|
8799
8799
|
function cl(e) {
|
|
8800
8800
|
e.min = ul(e.min), e.max = ul(e.max);
|
|
8801
8801
|
}
|
|
@@ -8983,9 +8983,9 @@ function Ux(e, t, n) {
|
|
|
8983
8983
|
const { willChange: r } = t;
|
|
8984
8984
|
for (const i in t) {
|
|
8985
8985
|
const o = t[i], s = n[i];
|
|
8986
|
-
if (
|
|
8986
|
+
if (de(o))
|
|
8987
8987
|
e.addValue(i, o), vr(r) && r.add(i);
|
|
8988
|
-
else if (
|
|
8988
|
+
else if (de(s))
|
|
8989
8989
|
e.addValue(i, jt(o, { owner: e })), vr(r) && r.remove(i);
|
|
8990
8990
|
else if (s !== o)
|
|
8991
8991
|
if (e.hasValue(i)) {
|
|
@@ -9013,13 +9013,13 @@ class qx {
|
|
|
9013
9013
|
constructor({ parent: t, props: n, presenceContext: r, reducedMotionConfig: i, visualState: o }, s = {}) {
|
|
9014
9014
|
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
|
|
9015
9015
|
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
9016
|
-
}, this.scheduleRender = () =>
|
|
9016
|
+
}, this.scheduleRender = () => $.render(this.render, !1, !0);
|
|
9017
9017
|
const { latestValues: a, renderState: l } = o;
|
|
9018
9018
|
this.latestValues = a, this.baseTarget = { ...a }, this.initialValues = n.initial ? { ...a } : {}, this.renderState = l, this.parent = t, this.props = n, this.presenceContext = r, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.options = s, this.isControllingVariants = Dr(n), this.isVariantNode = gc(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
|
|
9019
9019
|
const { willChange: u, ...f } = this.scrapeMotionValuesFromProps(n, {});
|
|
9020
9020
|
for (const c in f) {
|
|
9021
9021
|
const d = f[c];
|
|
9022
|
-
a[c] !== void 0 &&
|
|
9022
|
+
a[c] !== void 0 && de(d) && (d.set(a[c], !1), vr(u) && u.add(c));
|
|
9023
9023
|
}
|
|
9024
9024
|
}
|
|
9025
9025
|
/**
|
|
@@ -9045,7 +9045,7 @@ class qx {
|
|
|
9045
9045
|
}
|
|
9046
9046
|
bindToMotionValue(t, n) {
|
|
9047
9047
|
const r = wt.has(t), i = n.on("change", (s) => {
|
|
9048
|
-
this.latestValues[t] = s, this.props.onUpdate &&
|
|
9048
|
+
this.latestValues[t] = s, this.props.onUpdate && $.update(this.notifyUpdate, !1, !0), r && this.projection && (this.projection.isTransformDirty = !0);
|
|
9049
9049
|
}), o = n.on("renderRequest", this.scheduleRender);
|
|
9050
9050
|
this.valueSubscriptions.set(t, () => {
|
|
9051
9051
|
i(), o();
|
|
@@ -9099,7 +9099,7 @@ class qx {
|
|
|
9099
9099
|
* removed with a re-render to work.
|
|
9100
9100
|
*/
|
|
9101
9101
|
measureViewportBox() {
|
|
9102
|
-
return this.current ? this.measureInstanceViewportBox(this.current, this.props) :
|
|
9102
|
+
return this.current ? this.measureInstanceViewportBox(this.current, this.props) : J();
|
|
9103
9103
|
}
|
|
9104
9104
|
getStaticValue(t) {
|
|
9105
9105
|
return this.latestValues[t];
|
|
@@ -9226,7 +9226,7 @@ class qx {
|
|
|
9226
9226
|
if (r && i !== void 0)
|
|
9227
9227
|
return i;
|
|
9228
9228
|
const o = this.getBaseTargetFromProps(this.props, t);
|
|
9229
|
-
return o !== void 0 && !
|
|
9229
|
+
return o !== void 0 && !de(o) ? o : this.initialValues[t] !== void 0 && i === void 0 ? void 0 : this.baseTarget[t];
|
|
9230
9230
|
}
|
|
9231
9231
|
on(t, n) {
|
|
9232
9232
|
return this.events[t] || (this.events[t] = new Ko()), this.events[t].add(n);
|
|
@@ -9287,7 +9287,7 @@ class Xx extends Lf {
|
|
|
9287
9287
|
handleChildMotionValue() {
|
|
9288
9288
|
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
|
|
9289
9289
|
const { children: t } = this.props;
|
|
9290
|
-
|
|
9290
|
+
de(t) && (this.childSubscription = t.on("change", (n) => {
|
|
9291
9291
|
this.current && (this.current.textContent = `${n}`);
|
|
9292
9292
|
}));
|
|
9293
9293
|
}
|
|
@@ -9310,7 +9310,7 @@ class Kx extends Lf {
|
|
|
9310
9310
|
return n = Rc.has(n) ? n : Oo(n), t.getAttribute(n);
|
|
9311
9311
|
}
|
|
9312
9312
|
measureInstanceViewportBox() {
|
|
9313
|
-
return
|
|
9313
|
+
return J();
|
|
9314
9314
|
}
|
|
9315
9315
|
scrapeMotionValuesFromProps(t, n) {
|
|
9316
9316
|
return Oc(t, n);
|
|
@@ -9386,7 +9386,7 @@ function eb(e) {
|
|
|
9386
9386
|
}
|
|
9387
9387
|
return nb(t, n, null, e);
|
|
9388
9388
|
}
|
|
9389
|
-
function
|
|
9389
|
+
function Te(e, t) {
|
|
9390
9390
|
if (e === !1 || e === null || typeof e > "u")
|
|
9391
9391
|
throw new Error(t);
|
|
9392
9392
|
}
|
|
@@ -9486,7 +9486,7 @@ function nb(e, t, n, r) {
|
|
|
9486
9486
|
}
|
|
9487
9487
|
function p(g) {
|
|
9488
9488
|
let y = i.location.origin !== "null" ? i.location.origin : i.location.href, b = typeof g == "string" ? g : br(g);
|
|
9489
|
-
return b = b.replace(/ $/, "%20"),
|
|
9489
|
+
return b = b.replace(/ $/, "%20"), Te(y, "No window.location.(origin|href) available to create URL for href: " + b), new URL(b, y);
|
|
9490
9490
|
}
|
|
9491
9491
|
let m = {
|
|
9492
9492
|
get action() {
|
|
@@ -9566,7 +9566,7 @@ function Df(e, t) {
|
|
|
9566
9566
|
function jf(e, t, n, r) {
|
|
9567
9567
|
r === void 0 && (r = !1);
|
|
9568
9568
|
let i;
|
|
9569
|
-
typeof e == "string" ? i = Br(e) : (i = gn({}, e),
|
|
9569
|
+
typeof e == "string" ? i = Br(e) : (i = gn({}, e), Te(!i.pathname || !i.pathname.includes("?"), bi("?", "pathname", "search", i)), Te(!i.pathname || !i.pathname.includes("#"), bi("#", "pathname", "hash", i)), Te(!i.search || !i.search.includes("#"), bi("#", "search", "hash", i)));
|
|
9570
9570
|
let o = e === "" || i.pathname === "", s = o ? "/" : i.pathname, a;
|
|
9571
9571
|
if (s == null)
|
|
9572
9572
|
a = n;
|
|
@@ -9616,7 +9616,7 @@ function ub(e, t) {
|
|
|
9616
9616
|
let {
|
|
9617
9617
|
relative: n
|
|
9618
9618
|
} = t === void 0 ? {} : t;
|
|
9619
|
-
zr() ||
|
|
9619
|
+
zr() || Te(!1);
|
|
9620
9620
|
let {
|
|
9621
9621
|
basename: r,
|
|
9622
9622
|
navigator: i
|
|
@@ -9637,7 +9637,7 @@ function zr() {
|
|
|
9637
9637
|
return x.useContext(Yo) != null;
|
|
9638
9638
|
}
|
|
9639
9639
|
function Ur() {
|
|
9640
|
-
return zr() ||
|
|
9640
|
+
return zr() || Te(!1), x.useContext(Yo).location;
|
|
9641
9641
|
}
|
|
9642
9642
|
function $f(e) {
|
|
9643
9643
|
x.useContext(zt).static || x.useLayoutEffect(e);
|
|
@@ -9649,7 +9649,7 @@ function cb() {
|
|
|
9649
9649
|
return e ? mb() : fb();
|
|
9650
9650
|
}
|
|
9651
9651
|
function fb() {
|
|
9652
|
-
zr() ||
|
|
9652
|
+
zr() || Te(!1);
|
|
9653
9653
|
let e = x.useContext(Bf), {
|
|
9654
9654
|
basename: t,
|
|
9655
9655
|
future: n,
|
|
@@ -9691,15 +9691,15 @@ var Uf = /* @__PURE__ */ function(e) {
|
|
|
9691
9691
|
}(Wf || {});
|
|
9692
9692
|
function db(e) {
|
|
9693
9693
|
let t = x.useContext(Bf);
|
|
9694
|
-
return t ||
|
|
9694
|
+
return t || Te(!1), t;
|
|
9695
9695
|
}
|
|
9696
9696
|
function hb(e) {
|
|
9697
9697
|
let t = x.useContext($r);
|
|
9698
|
-
return t ||
|
|
9698
|
+
return t || Te(!1), t;
|
|
9699
9699
|
}
|
|
9700
9700
|
function pb(e) {
|
|
9701
9701
|
let t = hb(), n = t.matches[t.matches.length - 1];
|
|
9702
|
-
return n.route.id ||
|
|
9702
|
+
return n.route.id || Te(!1), n.route.id;
|
|
9703
9703
|
}
|
|
9704
9704
|
function mb() {
|
|
9705
9705
|
let {
|
|
@@ -9723,7 +9723,7 @@ function gb(e) {
|
|
|
9723
9723
|
static: s = !1,
|
|
9724
9724
|
future: a
|
|
9725
9725
|
} = e;
|
|
9726
|
-
zr() &&
|
|
9726
|
+
zr() && Te(!1);
|
|
9727
9727
|
let l = t.replace(/^\/*/, "/"), u = x.useMemo(() => ({
|
|
9728
9728
|
basename: l,
|
|
9729
9729
|
navigator: o,
|
|
@@ -10074,11 +10074,11 @@ var Ot = /* @__PURE__ */ new Map(), qf = function(t) {
|
|
|
10074
10074
|
c.setAttribute("class", g);
|
|
10075
10075
|
var y = t.getAttribute("style");
|
|
10076
10076
|
y && c.setAttribute("style", y), c.setAttribute("data-src", l);
|
|
10077
|
-
var b = [].filter.call(t.attributes, function(
|
|
10078
|
-
return /^data-\w[\w-]*$/.test(
|
|
10077
|
+
var b = [].filter.call(t.attributes, function(ee) {
|
|
10078
|
+
return /^data-\w[\w-]*$/.test(ee.name);
|
|
10079
10079
|
});
|
|
10080
|
-
if (Array.prototype.forEach.call(b, function(
|
|
10081
|
-
|
|
10080
|
+
if (Array.prototype.forEach.call(b, function(ee) {
|
|
10081
|
+
ee.name && ee.value && c.setAttribute(ee.name, ee.value);
|
|
10082
10082
|
}), r) {
|
|
10083
10083
|
var v = {
|
|
10084
10084
|
clipPath: ["clip-path"],
|
|
@@ -10092,8 +10092,8 @@ var Ot = /* @__PURE__ */ new Map(), qf = function(t) {
|
|
|
10092
10092
|
pattern: ["fill", "stroke"],
|
|
10093
10093
|
radialGradient: ["fill", "stroke"]
|
|
10094
10094
|
}, S, E, k, T, P;
|
|
10095
|
-
Object.keys(v).forEach(function(
|
|
10096
|
-
S =
|
|
10095
|
+
Object.keys(v).forEach(function(ee) {
|
|
10096
|
+
S = ee, k = v[ee], E = c.querySelectorAll(S + "[id]");
|
|
10097
10097
|
for (var qe = function(kt, Wr) {
|
|
10098
10098
|
T = E[kt].id, P = T + "-" + Nb();
|
|
10099
10099
|
var ut;
|
|
@@ -10108,24 +10108,24 @@ var Ot = /* @__PURE__ */ new Map(), qf = function(t) {
|
|
|
10108
10108
|
var ct = De[Pt].getAttributeNS(Si, "href");
|
|
10109
10109
|
ct && ct.toString() === "#" + E[kt].id && Tt.push(De[Pt]);
|
|
10110
10110
|
}
|
|
10111
|
-
for (var
|
|
10112
|
-
Tt[
|
|
10111
|
+
for (var Ce = 0, Qo = Tt.length; Ce < Qo; Ce++)
|
|
10112
|
+
Tt[Ce].setAttributeNS(Si, "href", "#" + P);
|
|
10113
10113
|
E[kt].id = P;
|
|
10114
|
-
}, Et = 0,
|
|
10114
|
+
}, Et = 0, I = E.length; Et < I; Et++)
|
|
10115
10115
|
qe(Et);
|
|
10116
10116
|
});
|
|
10117
10117
|
}
|
|
10118
10118
|
c.removeAttribute("xmlns:a");
|
|
10119
|
-
for (var M = c.querySelectorAll("script"),
|
|
10120
|
-
|
|
10121
|
-
if (
|
|
10122
|
-
for (var
|
|
10123
|
-
new Function(
|
|
10119
|
+
for (var M = c.querySelectorAll("script"), q = [], U, z, G = 0, K = M.length; G < K; G++)
|
|
10120
|
+
z = M[G].getAttribute("type"), (!z || z === "application/ecmascript" || z === "application/javascript" || z === "text/javascript") && (U = M[G].innerText || M[G].textContent, U && q.push(U), c.removeChild(M[G]));
|
|
10121
|
+
if (q.length > 0 && (n === "always" || n === "once" && !kl[l])) {
|
|
10122
|
+
for (var Q = 0, X = q.length; Q < X; Q++)
|
|
10123
|
+
new Function(q[Q])(window);
|
|
10124
10124
|
kl[l] = !0;
|
|
10125
10125
|
}
|
|
10126
10126
|
var Pe = c.querySelectorAll("style");
|
|
10127
|
-
if (Array.prototype.forEach.call(Pe, function(
|
|
10128
|
-
|
|
10127
|
+
if (Array.prototype.forEach.call(Pe, function(ee) {
|
|
10128
|
+
ee.textContent += "";
|
|
10129
10129
|
}), c.setAttribute("xmlns", Bb), c.setAttribute("xmlns:xlink", Si), s(c), !t.parentNode) {
|
|
10130
10130
|
Re.splice(Re.indexOf(t), 1), t = null, a(new Error("Parent node is null"));
|
|
10131
10131
|
return;
|
|
@@ -10212,15 +10212,15 @@ var Ot = /* @__PURE__ */ new Map(), qf = function(t) {
|
|
|
10212
10212
|
M.innerHTML = s, T.prepend(M);
|
|
10213
10213
|
}
|
|
10214
10214
|
if (c) {
|
|
10215
|
-
var
|
|
10216
|
-
|
|
10217
|
-
var
|
|
10218
|
-
|
|
10215
|
+
var q = T.querySelector(":scope > title");
|
|
10216
|
+
q && T.removeChild(q);
|
|
10217
|
+
var U = document.createElement("title");
|
|
10218
|
+
U.innerHTML = c, T.prepend(U);
|
|
10219
10219
|
}
|
|
10220
10220
|
try {
|
|
10221
10221
|
p(T);
|
|
10222
|
-
} catch (
|
|
10223
|
-
v(
|
|
10222
|
+
} catch (z) {
|
|
10223
|
+
v(z);
|
|
10224
10224
|
}
|
|
10225
10225
|
};
|
|
10226
10226
|
$b(b, {
|
|
@@ -10280,19 +10280,19 @@ Jo.defaultProps = {
|
|
|
10280
10280
|
wrapper: "div"
|
|
10281
10281
|
};
|
|
10282
10282
|
Jo.propTypes = {
|
|
10283
|
-
afterInjection:
|
|
10284
|
-
beforeInjection:
|
|
10285
|
-
desc:
|
|
10286
|
-
evalScripts:
|
|
10287
|
-
fallback:
|
|
10288
|
-
httpRequestWithCredentials:
|
|
10289
|
-
loading:
|
|
10290
|
-
onError:
|
|
10291
|
-
renumerateIRIElements:
|
|
10292
|
-
src:
|
|
10293
|
-
title:
|
|
10294
|
-
useRequestCache:
|
|
10295
|
-
wrapper:
|
|
10283
|
+
afterInjection: Y.func,
|
|
10284
|
+
beforeInjection: Y.func,
|
|
10285
|
+
desc: Y.string,
|
|
10286
|
+
evalScripts: Y.oneOf(["always", "once", "never"]),
|
|
10287
|
+
fallback: Y.oneOfType([Y.func, Y.object, Y.string]),
|
|
10288
|
+
httpRequestWithCredentials: Y.bool,
|
|
10289
|
+
loading: Y.oneOfType([Y.func, Y.object, Y.string]),
|
|
10290
|
+
onError: Y.func,
|
|
10291
|
+
renumerateIRIElements: Y.bool,
|
|
10292
|
+
src: Y.string.isRequired,
|
|
10293
|
+
title: Y.string,
|
|
10294
|
+
useRequestCache: Y.bool,
|
|
10295
|
+
wrapper: Y.oneOf(["div", "span", "svg"])
|
|
10296
10296
|
};
|
|
10297
10297
|
function Hb(e) {
|
|
10298
10298
|
return /* @__PURE__ */ R.jsx(
|
|
@@ -10388,12 +10388,12 @@ function Gb(e) {
|
|
|
10388
10388
|
);
|
|
10389
10389
|
}
|
|
10390
10390
|
function Xf({ item: e, level: t = 0, ...n }) {
|
|
10391
|
-
var
|
|
10392
|
-
const { isActive: r, isCollapsed: i, expanded: o, toggleExpand: s } = n, a = `level-${t}`, l = i ? "collapsed" : "expanded", u = r(e.id) ? "active" : "", f = (
|
|
10391
|
+
var U, z, G, K;
|
|
10392
|
+
const { isActive: r, isCollapsed: i, expanded: o, toggleExpand: s } = n, a = `level-${t}`, l = i ? "collapsed" : "expanded", u = r(e.id) ? "active" : "", f = (Q, X = a) => `${Q} ${X} ${l} ${u}`, c = !!((U = e.children) != null && U.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 || "#", k = t + 1, T = c && !(i && k >= 2 && !d), P = i || t === 0 ? void 0 : `${t}rem`;
|
|
10393
10393
|
console.log("hasDropdown:", T);
|
|
10394
10394
|
const M = () => {
|
|
10395
10395
|
h(!0);
|
|
10396
|
-
},
|
|
10396
|
+
}, q = () => {
|
|
10397
10397
|
h(!1);
|
|
10398
10398
|
};
|
|
10399
10399
|
return /* @__PURE__ */ R.jsxs(
|
|
@@ -10402,7 +10402,7 @@ function Xf({ item: e, level: t = 0, ...n }) {
|
|
|
10402
10402
|
ref: p,
|
|
10403
10403
|
className: f("menu-item__wrapper"),
|
|
10404
10404
|
onMouseOver: M,
|
|
10405
|
-
onMouseOut:
|
|
10405
|
+
onMouseOut: q,
|
|
10406
10406
|
children: [
|
|
10407
10407
|
/* @__PURE__ */ R.jsx(
|
|
10408
10408
|
Gb,
|
|
@@ -10413,14 +10413,16 @@ function Xf({ item: e, level: t = 0, ...n }) {
|
|
|
10413
10413
|
{
|
|
10414
10414
|
to: E,
|
|
10415
10415
|
href: E,
|
|
10416
|
+
className: f("menu-item__link"),
|
|
10416
10417
|
style: {
|
|
10417
10418
|
paddingLeft: P,
|
|
10418
|
-
transition: "all 0.3s"
|
|
10419
|
+
transition: "all 0.3s",
|
|
10419
10420
|
// transitionDelay: '0.1s',
|
|
10421
|
+
color: r(e.id) ? (z = n.customColors) == null ? void 0 : z.textColor : void 0,
|
|
10422
|
+
backgroundColor: r(e.id) ? (G = n.customColors) == null ? void 0 : G.backgroundColor : void 0
|
|
10420
10423
|
},
|
|
10421
|
-
|
|
10422
|
-
|
|
10423
|
-
c && (I.preventDefault(), i || s(e.id));
|
|
10424
|
+
onClick: (Q) => {
|
|
10425
|
+
c && (Q.preventDefault(), i || s(e.id));
|
|
10424
10426
|
},
|
|
10425
10427
|
children: [
|
|
10426
10428
|
t !== 0 && /* @__PURE__ */ R.jsx(Xb, { cls: f, item: e }),
|
|
@@ -10458,12 +10460,12 @@ function Xf({ item: e, level: t = 0, ...n }) {
|
|
|
10458
10460
|
height: i || o(e.id) ? "auto" : 0
|
|
10459
10461
|
},
|
|
10460
10462
|
transition: { duration: 0.25 },
|
|
10461
|
-
children: (
|
|
10463
|
+
children: (K = e.children) == null ? void 0 : K.map((Q) => /* @__PURE__ */ x.createElement(
|
|
10462
10464
|
Xf,
|
|
10463
10465
|
{
|
|
10464
10466
|
...n,
|
|
10465
|
-
key:
|
|
10466
|
-
item:
|
|
10467
|
+
key: Q.id,
|
|
10468
|
+
item: Q,
|
|
10467
10469
|
level: k
|
|
10468
10470
|
}
|
|
10469
10471
|
))
|
|
@@ -10566,7 +10568,7 @@ function Jb(e) {
|
|
|
10566
10568
|
}
|
|
10567
10569
|
);
|
|
10568
10570
|
}
|
|
10569
|
-
const Zb = `.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:#009d4f
|
|
10571
|
+
const Zb = `.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:#009d4f}.menu-item__link.active.expanded.level-2,.menu-item__link.active.expanded.level-3,.menu-item__link.active.expanded.level-4,.menu-item__link.active.expanded.level-5,.menu-item__link.active.expanded.level-6,.menu-item__link.active.expanded.level-7,.menu-item__link.active.expanded.level-8,.menu-item__link.active.expanded.level-9,.menu-item__link.active.expanded.level-10{background-color:unset;color:#009d4f!important}.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}}
|
|
10570
10572
|
`, Rl = localStorage.getItem("isCollapsed");
|
|
10571
10573
|
function Qb(e) {
|
|
10572
10574
|
const { baseUrl: t, menuPath: n } = e, r = Ur(), [i, o] = x.useState([]), [s, a] = x.useState(
|
|
@@ -10591,16 +10593,16 @@ function Qb(e) {
|
|
|
10591
10593
|
(async () => {
|
|
10592
10594
|
var k, T;
|
|
10593
10595
|
try {
|
|
10594
|
-
const M = t + (n || "/global-menu-config/api/v1/menu-items/user"), { data:
|
|
10596
|
+
const M = t + (n || "/global-menu-config/api/v1/menu-items/user"), { data: q } = await xh.get(M, {
|
|
10595
10597
|
withCredentials: !0
|
|
10596
10598
|
});
|
|
10597
|
-
let
|
|
10598
|
-
...
|
|
10599
|
+
let U = q.map((G) => ({
|
|
10600
|
+
...G,
|
|
10599
10601
|
parentKey: 0
|
|
10600
10602
|
}));
|
|
10601
|
-
|
|
10602
|
-
const
|
|
10603
|
-
u(
|
|
10603
|
+
U = Jf(U), e.replacePath && (U = Yf(U, e.replacePath));
|
|
10604
|
+
const z = tw(U);
|
|
10605
|
+
u(z), o(U);
|
|
10604
10606
|
} catch (P) {
|
|
10605
10607
|
console.log(P), $g(
|
|
10606
10608
|
((T = (k = P.response) == null ? void 0 : k.data) == null ? void 0 : T.errorMessage) || "Have error when get menu items"
|
|
@@ -10641,7 +10643,8 @@ function Qb(e) {
|
|
|
10641
10643
|
expanded: (T) => l[T],
|
|
10642
10644
|
toggleExpand: p,
|
|
10643
10645
|
replacePath: e.replacePath,
|
|
10644
|
-
ssr: e.ssr
|
|
10646
|
+
ssr: e.ssr,
|
|
10647
|
+
customColors: e.customColors
|
|
10645
10648
|
},
|
|
10646
10649
|
E.id
|
|
10647
10650
|
);
|
|
@@ -10734,7 +10737,8 @@ function rw(e) {
|
|
|
10734
10737
|
menuPath: "string",
|
|
10735
10738
|
logout: "function",
|
|
10736
10739
|
replacePath: "function",
|
|
10737
|
-
ssr: "boolean"
|
|
10740
|
+
ssr: "boolean",
|
|
10741
|
+
customColors: "json"
|
|
10738
10742
|
}
|
|
10739
10743
|
// shadow: 'open',
|
|
10740
10744
|
});
|