etudes 11.1.0 → 11.2.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/build/etudes.js +279 -282
- package/build/etudes.umd.cjs +8 -8
- package/build/operators/Conditional.d.ts +2 -5
- package/package.json +1 -1
package/build/etudes.js
CHANGED
|
@@ -985,17 +985,14 @@ function Ji(r) {
|
|
|
985
985
|
onResize: (c) => l(c)
|
|
986
986
|
}), n.size;
|
|
987
987
|
}
|
|
988
|
-
function
|
|
988
|
+
function Oc({ children: r, if: n }) {
|
|
989
989
|
switch (typeof n) {
|
|
990
|
-
case "boolean":
|
|
991
|
-
return n ? /* @__PURE__ */ S.jsx(S.Fragment, { children: r }) : /* @__PURE__ */ S.jsx(S.Fragment, {});
|
|
992
990
|
case "function":
|
|
993
991
|
return n() ? /* @__PURE__ */ S.jsx(S.Fragment, { children: r }) : /* @__PURE__ */ S.jsx(S.Fragment, {});
|
|
994
992
|
default:
|
|
995
|
-
return
|
|
993
|
+
return n ? /* @__PURE__ */ S.jsx(S.Fragment, { children: r }) : /* @__PURE__ */ S.jsx(S.Fragment, {});
|
|
996
994
|
}
|
|
997
995
|
}
|
|
998
|
-
Zi.displayName = "Conditional";
|
|
999
996
|
function Gt({
|
|
1000
997
|
in: r,
|
|
1001
998
|
children: n,
|
|
@@ -1055,13 +1052,13 @@ const ao = /* @__PURE__ */ Ee(({
|
|
|
1055
1052
|
return $n(l) ? Te(l, { ...n, ref: s }) : l;
|
|
1056
1053
|
}) })));
|
|
1057
1054
|
ao.displayName = "ExtractChild";
|
|
1058
|
-
function
|
|
1055
|
+
function Zi({
|
|
1059
1056
|
children: r,
|
|
1060
1057
|
...n
|
|
1061
1058
|
}) {
|
|
1062
1059
|
return /* @__PURE__ */ S.jsx(S.Fragment, { children: In.map(r, (s) => $n(s) ? Te(s, { ...n }) : s) });
|
|
1063
1060
|
}
|
|
1064
|
-
|
|
1061
|
+
Zi.displayName = "ExtractChildren";
|
|
1065
1062
|
function On({
|
|
1066
1063
|
count: r = 1,
|
|
1067
1064
|
children: n,
|
|
@@ -1119,7 +1116,7 @@ const jn = /* @__PURE__ */ Ee(({
|
|
|
1119
1116
|
if (Ke(C, z)) return;
|
|
1120
1117
|
const te = C?.filter((G) => z.indexOf(G) === -1) ?? [], D = z.filter((G) => C?.indexOf(G) === -1);
|
|
1121
1118
|
te.forEach((G) => P?.(G)), D.forEach((G) => F?.(G)), j?.(z);
|
|
1122
|
-
}, Q = Y(w ?? []), W =
|
|
1119
|
+
}, Q = Y(w ?? []), W = Qi({ itemLength: l, itemPadding: c, layout: h, numSegments: g, orientation: v }), ae = xe(void 0), A = ae.current;
|
|
1123
1120
|
return pe(() => {
|
|
1124
1121
|
ae.current = Q, A !== void 0 && H(A, Q);
|
|
1125
1122
|
}, [Je(Q)]), /* @__PURE__ */ S.jsx(
|
|
@@ -1163,7 +1160,7 @@ const jn = /* @__PURE__ */ Ee(({
|
|
|
1163
1160
|
function Mr(r) {
|
|
1164
1161
|
return r.sort((n, s) => n - s);
|
|
1165
1162
|
}
|
|
1166
|
-
function
|
|
1163
|
+
function Qi({ itemLength: r = NaN, itemPadding: n = 0, layout: s = "collection", numSegments: l = 1, orientation: c = "vertical" }) {
|
|
1167
1164
|
return {
|
|
1168
1165
|
root: {
|
|
1169
1166
|
counterReset: "item-counter",
|
|
@@ -1204,7 +1201,7 @@ function es({ itemLength: r = NaN, itemPadding: n = 0, layout: s = "collection",
|
|
|
1204
1201
|
};
|
|
1205
1202
|
}
|
|
1206
1203
|
jn.displayName = "Collection";
|
|
1207
|
-
const
|
|
1204
|
+
const es = /* @__PURE__ */ Ee(({
|
|
1208
1205
|
children: r,
|
|
1209
1206
|
style: n,
|
|
1210
1207
|
autoCollapseSections: s = !1,
|
|
@@ -1282,9 +1279,9 @@ const ts = /* @__PURE__ */ Ee(({
|
|
|
1282
1279
|
$ = [...$, ...Fe.map((Ce) => [Ce, Ne])], ye = [...ye, ...Xe.map((Ce) => [Ce, Ne])];
|
|
1283
1280
|
}
|
|
1284
1281
|
$.forEach((Ne) => T?.(Ne[0], Ne[1])), ye.forEach((Ne) => V?.(Ne[0], Ne[1])), J?.(ne);
|
|
1285
|
-
}, te = qi(), D = H(g ?? {}), G = ce(l ?? []), k =
|
|
1286
|
-
collapseIcon:
|
|
1287
|
-
expandIcon:
|
|
1282
|
+
}, te = qi(), D = H(g ?? {}), G = ce(l ?? []), k = rs({ orientation: c }), q = xe(void 0), me = q.current, we = h.map(() => xe(null)), Ae = we.map((ie) => Ji(ie)), Se = Ve(r, {
|
|
1283
|
+
collapseIcon: ns,
|
|
1284
|
+
expandIcon: ts,
|
|
1288
1285
|
header: Cr
|
|
1289
1286
|
});
|
|
1290
1287
|
return pe(() => {
|
|
@@ -1384,11 +1381,11 @@ const ts = /* @__PURE__ */ Ee(({
|
|
|
1384
1381
|
}
|
|
1385
1382
|
);
|
|
1386
1383
|
} }) });
|
|
1387
|
-
}), Cr = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("button", { ...n, children: r }),
|
|
1384
|
+
}), Cr = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("button", { ...n, children: r }), ts = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("figure", { ...n, children: r }), ns = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("figure", { ...n, children: r });
|
|
1388
1385
|
function Ht(r) {
|
|
1389
1386
|
return r.sort((n, s) => n - s);
|
|
1390
1387
|
}
|
|
1391
|
-
function
|
|
1388
|
+
function rs({ orientation: r = "vertical" }) {
|
|
1392
1389
|
return {
|
|
1393
1390
|
root: {
|
|
1394
1391
|
alignItems: "center",
|
|
@@ -1440,7 +1437,7 @@ function os({ orientation: r = "vertical" }) {
|
|
|
1440
1437
|
}
|
|
1441
1438
|
};
|
|
1442
1439
|
}
|
|
1443
|
-
|
|
1440
|
+
es.displayName = "Accordion";
|
|
1444
1441
|
const co = /* @__PURE__ */ Ee(({
|
|
1445
1442
|
children: r,
|
|
1446
1443
|
className: n,
|
|
@@ -1459,7 +1456,7 @@ const co = /* @__PURE__ */ Ee(({
|
|
|
1459
1456
|
bar: ue({
|
|
1460
1457
|
active: s
|
|
1461
1458
|
})
|
|
1462
|
-
}, x =
|
|
1459
|
+
}, x = os({ isSplit: c, isActive: s, isTailHidden: l });
|
|
1463
1460
|
return /* @__PURE__ */ S.jsx(
|
|
1464
1461
|
"div",
|
|
1465
1462
|
{
|
|
@@ -1482,7 +1479,7 @@ const co = /* @__PURE__ */ Ee(({
|
|
|
1482
1479
|
}
|
|
1483
1480
|
);
|
|
1484
1481
|
}), An = ({ ...r }) => /* @__PURE__ */ S.jsx("span", { ...r });
|
|
1485
|
-
function
|
|
1482
|
+
function os({ isActive: r = !1, isSplit: n = !1, isTailHidden: s = !1 }) {
|
|
1486
1483
|
return {
|
|
1487
1484
|
section: {
|
|
1488
1485
|
height: "100%",
|
|
@@ -1544,7 +1541,7 @@ function is({ isActive: r = !1, isSplit: n = !1, isTailHidden: s = !1 }) {
|
|
|
1544
1541
|
};
|
|
1545
1542
|
}
|
|
1546
1543
|
co.displayName = "Burger";
|
|
1547
|
-
const
|
|
1544
|
+
const is = /* @__PURE__ */ Ee(({
|
|
1548
1545
|
children: r,
|
|
1549
1546
|
className: n,
|
|
1550
1547
|
style: s,
|
|
@@ -1563,7 +1560,7 @@ const ss = /* @__PURE__ */ Ee(({
|
|
|
1563
1560
|
root: ue({
|
|
1564
1561
|
active: l
|
|
1565
1562
|
})
|
|
1566
|
-
}, F =
|
|
1563
|
+
}, F = ss();
|
|
1567
1564
|
return /* @__PURE__ */ S.jsx(
|
|
1568
1565
|
"button",
|
|
1569
1566
|
{
|
|
@@ -1586,7 +1583,7 @@ const ss = /* @__PURE__ */ Ee(({
|
|
|
1586
1583
|
}
|
|
1587
1584
|
);
|
|
1588
1585
|
}), Cc = An;
|
|
1589
|
-
function
|
|
1586
|
+
function ss() {
|
|
1590
1587
|
return {
|
|
1591
1588
|
root: {
|
|
1592
1589
|
background: "transparent",
|
|
@@ -1596,10 +1593,10 @@ function as() {
|
|
|
1596
1593
|
}
|
|
1597
1594
|
};
|
|
1598
1595
|
}
|
|
1599
|
-
|
|
1600
|
-
function
|
|
1596
|
+
is.displayName = "BurgerButton";
|
|
1597
|
+
function as(r) {
|
|
1601
1598
|
switch (!0) {
|
|
1602
|
-
case
|
|
1599
|
+
case cs(r): {
|
|
1603
1600
|
const { action: n, children: s, isNav: l, className: c, isDisabled: u, label: h, ...g } = r;
|
|
1604
1601
|
return /* @__PURE__ */ S.jsx(
|
|
1605
1602
|
Hi,
|
|
@@ -1613,7 +1610,7 @@ function cs(r) {
|
|
|
1613
1610
|
}
|
|
1614
1611
|
);
|
|
1615
1612
|
}
|
|
1616
|
-
case
|
|
1613
|
+
case ls(r): {
|
|
1617
1614
|
const { action: n, children: s, className: l, isDisabled: c, label: u, ...h } = r;
|
|
1618
1615
|
return /* @__PURE__ */ S.jsx(
|
|
1619
1616
|
Yi,
|
|
@@ -1627,7 +1624,7 @@ function cs(r) {
|
|
|
1627
1624
|
}
|
|
1628
1625
|
);
|
|
1629
1626
|
}
|
|
1630
|
-
case
|
|
1627
|
+
case us(r): {
|
|
1631
1628
|
const { action: n, children: s, className: l, isDisabled: c, label: u, opensInNewTab: h, ...g } = r;
|
|
1632
1629
|
return /* @__PURE__ */ S.jsx(
|
|
1633
1630
|
"a",
|
|
@@ -1643,7 +1640,7 @@ function cs(r) {
|
|
|
1643
1640
|
}
|
|
1644
1641
|
);
|
|
1645
1642
|
}
|
|
1646
|
-
case
|
|
1643
|
+
case fs(r): {
|
|
1647
1644
|
const { action: n, children: s, className: l, isDisabled: c, label: u, type: h = "button", ...g } = r;
|
|
1648
1645
|
return /* @__PURE__ */ S.jsx(
|
|
1649
1646
|
"button",
|
|
@@ -1663,19 +1660,19 @@ function cs(r) {
|
|
|
1663
1660
|
throw Error("Unknown button type");
|
|
1664
1661
|
}
|
|
1665
1662
|
}
|
|
1666
|
-
function
|
|
1663
|
+
function cs(r) {
|
|
1667
1664
|
return !(typeof r.action != "string" || !r.action.startsWith("/") || !("isNav" in r) || !r.isNav);
|
|
1668
1665
|
}
|
|
1669
|
-
function
|
|
1666
|
+
function ls(r) {
|
|
1670
1667
|
return !(typeof r.action != "string" || !r.action.startsWith("/") || "isNav" in r && r.isNav);
|
|
1671
1668
|
}
|
|
1672
|
-
function
|
|
1669
|
+
function us(r) {
|
|
1673
1670
|
return !(typeof r.action != "string" || r.action.startsWith("/"));
|
|
1674
1671
|
}
|
|
1675
|
-
function
|
|
1672
|
+
function fs(r) {
|
|
1676
1673
|
return typeof r.action == "function";
|
|
1677
1674
|
}
|
|
1678
|
-
|
|
1675
|
+
as.displayName = "Button";
|
|
1679
1676
|
function Ic(r, n) {
|
|
1680
1677
|
const s = Ie((l) => {
|
|
1681
1678
|
if (!(l.target instanceof Node)) return;
|
|
@@ -1695,7 +1692,7 @@ function Ic(r, n) {
|
|
|
1695
1692
|
window.removeEventListener("click", s, !0);
|
|
1696
1693
|
}), [s]);
|
|
1697
1694
|
}
|
|
1698
|
-
function
|
|
1695
|
+
function ds(r, {
|
|
1699
1696
|
isEnabled: n = !0,
|
|
1700
1697
|
updatesCursor: s = !0,
|
|
1701
1698
|
onDragStart: l,
|
|
@@ -1733,12 +1730,12 @@ function hs(r, {
|
|
|
1733
1730
|
};
|
|
1734
1731
|
}, [r.current, n, v, w, x]);
|
|
1735
1732
|
}
|
|
1736
|
-
var Xt = { exports: {} },
|
|
1737
|
-
function
|
|
1733
|
+
var Xt = { exports: {} }, hs = Xt.exports, Ir;
|
|
1734
|
+
function ps() {
|
|
1738
1735
|
return Ir || (Ir = 1, function(r, n) {
|
|
1739
1736
|
(function(s, l) {
|
|
1740
1737
|
r.exports = l();
|
|
1741
|
-
})(
|
|
1738
|
+
})(hs, function() {
|
|
1742
1739
|
function s(t, e) {
|
|
1743
1740
|
var o = Object.keys(t);
|
|
1744
1741
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -4024,9 +4021,9 @@ function gs() {
|
|
|
4024
4021
|
});
|
|
4025
4022
|
}(Xt)), Xt.exports;
|
|
4026
4023
|
}
|
|
4027
|
-
var
|
|
4028
|
-
const
|
|
4029
|
-
function
|
|
4024
|
+
var gs = /* @__PURE__ */ ps();
|
|
4025
|
+
const vs = /* @__PURE__ */ io(gs);
|
|
4026
|
+
function ms(r, {
|
|
4030
4027
|
isEnabled: n = !0,
|
|
4031
4028
|
onDragStart: s,
|
|
4032
4029
|
onDragMove: l,
|
|
@@ -4037,7 +4034,7 @@ function ys(r, {
|
|
|
4037
4034
|
if (!n) return;
|
|
4038
4035
|
const h = r.current;
|
|
4039
4036
|
if (!h) return;
|
|
4040
|
-
const g =
|
|
4037
|
+
const g = vs(h).draggable({
|
|
4041
4038
|
inertia: !0,
|
|
4042
4039
|
...u,
|
|
4043
4040
|
onstart: ({ client: v }) => {
|
|
@@ -4074,7 +4071,7 @@ function Ot(r, {
|
|
|
4074
4071
|
}, [s, c]), J = Ie((R, L) => {
|
|
4075
4072
|
x(!1), P(!0), u?.(R, L);
|
|
4076
4073
|
}, [u]);
|
|
4077
|
-
return
|
|
4074
|
+
return ms(r, {
|
|
4078
4075
|
onDragStart: j,
|
|
4079
4076
|
onDragMove: V,
|
|
4080
4077
|
onDragEnd: J,
|
|
@@ -4108,7 +4105,7 @@ function $c(r) {
|
|
|
4108
4105
|
onDrop: u
|
|
4109
4106
|
};
|
|
4110
4107
|
}
|
|
4111
|
-
function
|
|
4108
|
+
function ys({ src: r, srcSet: n, sizes: s }, { onLoadStart: l, onLoadComplete: c, onLoadError: u } = {}, h = []) {
|
|
4112
4109
|
const g = (x) => {
|
|
4113
4110
|
const T = x.currentTarget;
|
|
4114
4111
|
c?.(T);
|
|
@@ -4124,17 +4121,17 @@ function lo({ src: r, srcSet: n, sizes: s }, { preservesSizeBetweenLoads: l = !0
|
|
|
4124
4121
|
const g = (P) => {
|
|
4125
4122
|
l || T(void 0), c?.(P);
|
|
4126
4123
|
}, v = (P) => {
|
|
4127
|
-
T(
|
|
4124
|
+
T(bs(P)), u?.(P);
|
|
4128
4125
|
}, w = (P) => {
|
|
4129
4126
|
l || T(void 0), h?.(P);
|
|
4130
4127
|
}, [x, T] = Pe();
|
|
4131
|
-
return
|
|
4128
|
+
return ys({ src: r, srcSet: n, sizes: s }, {
|
|
4132
4129
|
onLoadStart: (P) => g(P),
|
|
4133
4130
|
onLoadComplete: (P) => v(P),
|
|
4134
4131
|
onLoadError: (P) => w(P)
|
|
4135
4132
|
}), x;
|
|
4136
4133
|
}
|
|
4137
|
-
function
|
|
4134
|
+
function bs(r) {
|
|
4138
4135
|
if (r && typeof r.width == "number" && typeof r.height == "number")
|
|
4139
4136
|
return Oe.make(r.width, r.height);
|
|
4140
4137
|
}
|
|
@@ -4194,7 +4191,7 @@ function Rc(r, n, {
|
|
|
4194
4191
|
M !== P && (M ? g.set(r, M) : g.delete(r), v(g));
|
|
4195
4192
|
}, [x]), [x, T];
|
|
4196
4193
|
}
|
|
4197
|
-
function
|
|
4194
|
+
function xs(r = 0, { autoStart: n = !0, onTimeout: s } = {}, l = []) {
|
|
4198
4195
|
const c = xe(void 0), u = xe(void 0), h = Ie(() => {
|
|
4199
4196
|
g(), !(r < 0) && (c.current = setTimeout(() => {
|
|
4200
4197
|
g(), u.current?.();
|
|
@@ -4209,7 +4206,7 @@ function ws(r = 0, { autoStart: n = !0, onTimeout: s } = {}, l = []) {
|
|
|
4209
4206
|
return n && h(), () => g();
|
|
4210
4207
|
}, [r, ...l]), { start: h, stop: g, ref: c };
|
|
4211
4208
|
}
|
|
4212
|
-
function
|
|
4209
|
+
function ws({ src: r }, { onLoadStart: n, onLoadComplete: s, onLoadError: l } = {}, c = []) {
|
|
4213
4210
|
const u = (v) => {
|
|
4214
4211
|
const w = v.currentTarget;
|
|
4215
4212
|
s?.(w);
|
|
@@ -4221,21 +4218,21 @@ function Es({ src: r }, { onLoadStart: n, onLoadComplete: s, onLoadError: l } =
|
|
|
4221
4218
|
g.current?.removeEventListener("loadedmetadata", u), g.current?.removeEventListener("error", h), g.current = void 0;
|
|
4222
4219
|
}), [r, ...c]);
|
|
4223
4220
|
}
|
|
4224
|
-
function
|
|
4221
|
+
function Es({ src: r }, { preservesSizeBetweenLoads: n = !0, onLoadStart: s, onLoadComplete: l, onLoadError: c } = {}) {
|
|
4225
4222
|
const u = (x) => {
|
|
4226
4223
|
n || w(void 0), s?.(x);
|
|
4227
4224
|
}, h = (x) => {
|
|
4228
|
-
w(
|
|
4225
|
+
w(Ns(x)), l?.(x);
|
|
4229
4226
|
}, g = (x) => {
|
|
4230
4227
|
n || w(void 0), c?.(x);
|
|
4231
4228
|
}, [v, w] = Pe(void 0);
|
|
4232
|
-
return
|
|
4229
|
+
return ws({ src: r }, {
|
|
4233
4230
|
onLoadStart: (x) => u(x),
|
|
4234
4231
|
onLoadComplete: (x) => h(x),
|
|
4235
4232
|
onLoadError: (x) => g(x)
|
|
4236
4233
|
}), v;
|
|
4237
4234
|
}
|
|
4238
|
-
function
|
|
4235
|
+
function Ns(r) {
|
|
4239
4236
|
if (r && typeof r.videoWidth == "number" && typeof r.videoHeight == "number")
|
|
4240
4237
|
return Oe.make(r.videoWidth, r.videoHeight);
|
|
4241
4238
|
}
|
|
@@ -4249,7 +4246,7 @@ function zc() {
|
|
|
4249
4246
|
return window.addEventListener("resize", s), s(), () => window.removeEventListener("resize", s);
|
|
4250
4247
|
}, []), r;
|
|
4251
4248
|
}
|
|
4252
|
-
const
|
|
4249
|
+
const Ts = /* @__PURE__ */ Ee(({
|
|
4253
4250
|
autoAdvanceInterval: r = 0,
|
|
4254
4251
|
index: n = 0,
|
|
4255
4252
|
isDragEnabled: s = !0,
|
|
@@ -4272,10 +4269,10 @@ const Ss = /* @__PURE__ */ Ee(({
|
|
|
4272
4269
|
const te = 5, D = C.subtract(z);
|
|
4273
4270
|
(Math.abs(D.x) > te || Math.abs(D.y) > te) && A.stopPropagation(), L.current = void 0, Y.current = void 0;
|
|
4274
4271
|
}, V = () => {
|
|
4275
|
-
|
|
4272
|
+
Ss(R, n, c), clearTimeout(X.current), X.current = setTimeout(() => {
|
|
4276
4273
|
clearTimeout(X.current), X.current = void 0;
|
|
4277
4274
|
}, U);
|
|
4278
|
-
}, J = xe(void 0), R = xe(null), L = xe(void 0), Y = xe(void 0), X = xe(void 0), U = 1e3, [N, Z] = Pe(bn(R, c)), [ce, H] = Pe(!1), Q =
|
|
4275
|
+
}, J = xe(void 0), R = xe(null), L = xe(void 0), Y = xe(void 0), X = xe(void 0), U = 1e3, [N, Z] = Pe(bn(R, c)), [ce, H] = Pe(!1), Q = ks({ scrollSnapEnabled: !ce, orientation: c }), W = r > 0, ae = Ie(({ x: A, y: C }) => {
|
|
4279
4276
|
const z = R.current;
|
|
4280
4277
|
switch (c) {
|
|
4281
4278
|
case "horizontal":
|
|
@@ -4305,10 +4302,10 @@ const Ss = /* @__PURE__ */ Ee(({
|
|
|
4305
4302
|
};
|
|
4306
4303
|
}, [n, c, u]), pe(() => {
|
|
4307
4304
|
W && (ce ? h?.() : g?.());
|
|
4308
|
-
}, [ce, W]),
|
|
4305
|
+
}, [ce, W]), ds(R, {
|
|
4309
4306
|
isEnabled: s && l.length > 1,
|
|
4310
4307
|
onDragMove: ae
|
|
4311
|
-
}),
|
|
4308
|
+
}), xs(ce || !W ? -1 : r, {
|
|
4312
4309
|
onTimeout: () => {
|
|
4313
4310
|
const A = (n + l.length + 1) % l.length;
|
|
4314
4311
|
P(A);
|
|
@@ -4336,7 +4333,7 @@ const Ss = /* @__PURE__ */ Ee(({
|
|
|
4336
4333
|
}
|
|
4337
4334
|
);
|
|
4338
4335
|
});
|
|
4339
|
-
function
|
|
4336
|
+
function Ss(r, n, s) {
|
|
4340
4337
|
const l = r?.current;
|
|
4341
4338
|
if (!l) return;
|
|
4342
4339
|
const c = s === "horizontal" ? 0 : l.clientHeight * n, u = s === "horizontal" ? l.clientWidth * n : 0;
|
|
@@ -4347,10 +4344,10 @@ function bn(r, n) {
|
|
|
4347
4344
|
if (!s) return;
|
|
4348
4345
|
const l = [];
|
|
4349
4346
|
for (let c = 0; c < s.children.length; c++)
|
|
4350
|
-
l.push(
|
|
4347
|
+
l.push(Ps(c, r, n));
|
|
4351
4348
|
return l;
|
|
4352
4349
|
}
|
|
4353
|
-
function
|
|
4350
|
+
function Ps(r, n, s) {
|
|
4354
4351
|
const l = n?.current, c = l?.children[r];
|
|
4355
4352
|
if (!c) return 0;
|
|
4356
4353
|
const u = re.intersecting(c, l);
|
|
@@ -4364,7 +4361,7 @@ function ks(r, n, s) {
|
|
|
4364
4361
|
throw new Error(`Unsupported orientation '${s}'`);
|
|
4365
4362
|
}
|
|
4366
4363
|
}
|
|
4367
|
-
function
|
|
4364
|
+
function ks({ scrollSnapEnabled: r = !1, orientation: n = "horizontal" }) {
|
|
4368
4365
|
return {
|
|
4369
4366
|
viewport: {
|
|
4370
4367
|
alignItems: "center",
|
|
@@ -4401,7 +4398,7 @@ function Os({ scrollSnapEnabled: r = !1, orientation: n = "horizontal" }) {
|
|
|
4401
4398
|
}
|
|
4402
4399
|
};
|
|
4403
4400
|
}
|
|
4404
|
-
|
|
4401
|
+
Ts.displayName = "Carousel";
|
|
4405
4402
|
const fo = /* @__PURE__ */ Ee(({
|
|
4406
4403
|
className: r,
|
|
4407
4404
|
emptyValue: n = "",
|
|
@@ -4442,7 +4439,7 @@ const fo = /* @__PURE__ */ Ee(({
|
|
|
4442
4439
|
);
|
|
4443
4440
|
});
|
|
4444
4441
|
fo.displayName = "TextField";
|
|
4445
|
-
const
|
|
4442
|
+
const Os = /* @__PURE__ */ Ee(({
|
|
4446
4443
|
children: r,
|
|
4447
4444
|
style: n,
|
|
4448
4445
|
allowsInput: s = !0,
|
|
@@ -4523,7 +4520,7 @@ const As = /* @__PURE__ */ Ee(({
|
|
|
4523
4520
|
flex: "1 1 auto"
|
|
4524
4521
|
}
|
|
4525
4522
|
};
|
|
4526
|
-
|
|
4523
|
+
Os.displayName = "Counter";
|
|
4527
4524
|
const ho = /* @__PURE__ */ Ee(({
|
|
4528
4525
|
alt: r,
|
|
4529
4526
|
loadingMode: n = "preload",
|
|
@@ -4579,7 +4576,7 @@ const ho = /* @__PURE__ */ Ee(({
|
|
|
4579
4576
|
);
|
|
4580
4577
|
});
|
|
4581
4578
|
ho.displayName = "Image";
|
|
4582
|
-
const
|
|
4579
|
+
const As = /* @__PURE__ */ Ee(({
|
|
4583
4580
|
children: r,
|
|
4584
4581
|
style: n,
|
|
4585
4582
|
alt: s,
|
|
@@ -4599,8 +4596,8 @@ const Ms = /* @__PURE__ */ Ee(({
|
|
|
4599
4596
|
Y > 1 ? Math.max(L.width, L.height * R) : Math.max(L.width, Math.max(L.height, L.width / R) * R),
|
|
4600
4597
|
Y > 1 ? Math.max(L.height, Math.max(L.width, L.height * R) / R) : Math.max(L.height, L.width / R)
|
|
4601
4598
|
), U = Ve(r, {
|
|
4602
|
-
content:
|
|
4603
|
-
viewport:
|
|
4599
|
+
content: Cs,
|
|
4600
|
+
viewport: Ms
|
|
4604
4601
|
});
|
|
4605
4602
|
return /* @__PURE__ */ S.jsxs(
|
|
4606
4603
|
"div",
|
|
@@ -4638,7 +4635,7 @@ const Ms = /* @__PURE__ */ Ee(({
|
|
|
4638
4635
|
]
|
|
4639
4636
|
}
|
|
4640
4637
|
);
|
|
4641
|
-
}),
|
|
4638
|
+
}), Ms = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("div", { ...n, children: r }), Cs = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("div", { ...n, children: r }), xn = {
|
|
4642
4639
|
root: {
|
|
4643
4640
|
overflow: "hidden"
|
|
4644
4641
|
},
|
|
@@ -4650,7 +4647,7 @@ const Ms = /* @__PURE__ */ Ee(({
|
|
|
4650
4647
|
transform: "translate(-50%, -50%)"
|
|
4651
4648
|
}
|
|
4652
4649
|
};
|
|
4653
|
-
|
|
4650
|
+
As.displayName = "CoverImage";
|
|
4654
4651
|
const po = /* @__PURE__ */ Ee(({
|
|
4655
4652
|
autoLoop: r = !0,
|
|
4656
4653
|
autoPlay: n = !0,
|
|
@@ -4671,7 +4668,7 @@ const po = /* @__PURE__ */ Ee(({
|
|
|
4671
4668
|
onTimeUpdate: V,
|
|
4672
4669
|
...J
|
|
4673
4670
|
}, R) => {
|
|
4674
|
-
const L = xe(null), Y = R ?? L, X =
|
|
4671
|
+
const L = xe(null), Y = R ?? L, X = Es({
|
|
4675
4672
|
src: h
|
|
4676
4673
|
}, {
|
|
4677
4674
|
onLoadStart: x,
|
|
@@ -4735,7 +4732,7 @@ const po = /* @__PURE__ */ Ee(({
|
|
|
4735
4732
|
);
|
|
4736
4733
|
});
|
|
4737
4734
|
po.displayName = "Video";
|
|
4738
|
-
const
|
|
4735
|
+
const Is = /* @__PURE__ */ Ee(({
|
|
4739
4736
|
className: r,
|
|
4740
4737
|
children: n,
|
|
4741
4738
|
style: s,
|
|
@@ -4764,8 +4761,8 @@ const $s = /* @__PURE__ */ Ee(({
|
|
|
4764
4761
|
ae > 1 ? Math.max(W.width, W.height * Q) : Math.max(W.width, Math.max(W.height, W.width / Q) * Q),
|
|
4765
4762
|
ae > 1 ? Math.max(W.height, Math.max(W.width, W.height * Q) / Q) : Math.max(W.height, W.width / Q)
|
|
4766
4763
|
), C = Ve(n, {
|
|
4767
|
-
content:
|
|
4768
|
-
viewport:
|
|
4764
|
+
content: _s,
|
|
4765
|
+
viewport: $s
|
|
4769
4766
|
});
|
|
4770
4767
|
return /* @__PURE__ */ S.jsxs(
|
|
4771
4768
|
"div",
|
|
@@ -4812,7 +4809,7 @@ const $s = /* @__PURE__ */ Ee(({
|
|
|
4812
4809
|
]
|
|
4813
4810
|
}
|
|
4814
4811
|
);
|
|
4815
|
-
}),
|
|
4812
|
+
}), $s = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("div", { ...n, children: r }), _s = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("div", { ...n, children: r }), wn = {
|
|
4816
4813
|
root: {
|
|
4817
4814
|
overflow: "hidden"
|
|
4818
4815
|
},
|
|
@@ -4824,8 +4821,8 @@ const $s = /* @__PURE__ */ Ee(({
|
|
|
4824
4821
|
transform: "translate(-50%, -50%)"
|
|
4825
4822
|
}
|
|
4826
4823
|
};
|
|
4827
|
-
|
|
4828
|
-
const
|
|
4824
|
+
Is.displayName = "CoverVideo";
|
|
4825
|
+
const js = /* @__PURE__ */ Ee(({
|
|
4829
4826
|
children: r,
|
|
4830
4827
|
style: n,
|
|
4831
4828
|
angle: s = 0,
|
|
@@ -4839,7 +4836,7 @@ const Rs = /* @__PURE__ */ Ee(({
|
|
|
4839
4836
|
const x = u * 2, T = Math.max(0, Math.min(360, l)), P = Ve(r, {
|
|
4840
4837
|
track: Rr,
|
|
4841
4838
|
knob: zr
|
|
4842
|
-
}), M =
|
|
4839
|
+
}), M = zs({ angle: s, diameter: x });
|
|
4843
4840
|
return /* @__PURE__ */ S.jsxs("div", { ...v, ref: w, style: se(n, M.root), children: [
|
|
4844
4841
|
/* @__PURE__ */ S.jsx("div", { style: M.trackContainer, children: /* @__PURE__ */ S.jsx("svg", { height: x, style: M.svgContainer, viewBox: `0 0 ${x} ${x}`, width: x, children: Te(P.track ?? /* @__PURE__ */ S.jsx(Rr, {}), {
|
|
4845
4842
|
cx: u,
|
|
@@ -4850,7 +4847,7 @@ const Rs = /* @__PURE__ */ Ee(({
|
|
|
4850
4847
|
strokeWidth: g
|
|
4851
4848
|
}) }) }),
|
|
4852
4849
|
/* @__PURE__ */ S.jsx("div", { style: se(M.knobContainer), children: /* @__PURE__ */ S.jsx("svg", { style: M.svgContainer, viewBox: `0 0 ${x} ${x}`, xmlns: "http://www.w3.org/2000/svg", children: Te(P.knob ?? /* @__PURE__ */ S.jsx(zr, {}), {
|
|
4853
|
-
d:
|
|
4850
|
+
d: Rs(u, u, u - c / 2 - (g - c) / 2, -T / 2, T / 2),
|
|
4854
4851
|
fill: "none",
|
|
4855
4852
|
strokeWidth: c
|
|
4856
4853
|
}) }) })
|
|
@@ -4863,7 +4860,7 @@ function Lr(r, n, s, l) {
|
|
|
4863
4860
|
y: n + s * Math.sin(c)
|
|
4864
4861
|
};
|
|
4865
4862
|
}
|
|
4866
|
-
function
|
|
4863
|
+
function Rs(r, n, s, l, c) {
|
|
4867
4864
|
const u = Lr(r, n, s, c), h = Lr(r, n, s, l), g = c - l <= 180 ? "0" : "1";
|
|
4868
4865
|
return [
|
|
4869
4866
|
"M",
|
|
@@ -4879,7 +4876,7 @@ function zs(r, n, s, l, c) {
|
|
|
4879
4876
|
h.y
|
|
4880
4877
|
].join(" ");
|
|
4881
4878
|
}
|
|
4882
|
-
function
|
|
4879
|
+
function zs({ diameter: r = 0, angle: n = 0 }) {
|
|
4883
4880
|
return {
|
|
4884
4881
|
root: {
|
|
4885
4882
|
height: `${r}px`,
|
|
@@ -4913,8 +4910,8 @@ function Ls({ diameter: r = 0, angle: n = 0 }) {
|
|
|
4913
4910
|
}
|
|
4914
4911
|
};
|
|
4915
4912
|
}
|
|
4916
|
-
|
|
4917
|
-
const
|
|
4913
|
+
js.displayName = "Dial";
|
|
4914
|
+
const Ls = /* @__PURE__ */ Ee(({
|
|
4918
4915
|
children: r,
|
|
4919
4916
|
className: n,
|
|
4920
4917
|
style: s,
|
|
@@ -4944,7 +4941,7 @@ const Fs = /* @__PURE__ */ Ee(({
|
|
|
4944
4941
|
ToggleComponent: H,
|
|
4945
4942
|
...Q
|
|
4946
4943
|
}, W) => {
|
|
4947
|
-
const ae = ($) => !!(isNaN($) || $ >= P.length || $ < 0), A = ($) =>
|
|
4944
|
+
const ae = ($) => !!(isNaN($) || $ >= P.length || $ < 0), A = ($) => Ys($).filter((ye) => !ae(ye)), C = () => {
|
|
4948
4945
|
u && X?.();
|
|
4949
4946
|
}, z = () => {
|
|
4950
4947
|
u || L?.();
|
|
@@ -4954,9 +4951,9 @@ const Fs = /* @__PURE__ */ Ee(({
|
|
|
4954
4951
|
U?.($), J === "single" && l && z();
|
|
4955
4952
|
}, G = ($) => {
|
|
4956
4953
|
N?.($);
|
|
4957
|
-
}, k = A(V), q = xe(null), me = lt(q), we = x ?? (j === "vertical" ? me.height : me.width), Ae = P.length, Se = M < 0 ? Ae : Math.min(Ae, M), ie = we * Se + T * (Se - 1), ne =
|
|
4958
|
-
collapseIcon:
|
|
4959
|
-
expandIcon:
|
|
4954
|
+
}, k = A(V), q = xe(null), me = lt(q), we = x ?? (j === "vertical" ? me.height : me.width), Ae = P.length, Se = M < 0 ? Ae : Math.min(Ae, M), ie = we * Se + T * (Se - 1), ne = Hs({ isCollapsed: u, collectionPadding: c, isInverted: h, maxVisibleItems: M, menuLength: ie, numItems: Ae, orientation: j }), le = Ve(r, {
|
|
4955
|
+
collapseIcon: Bs,
|
|
4956
|
+
expandIcon: Fs,
|
|
4960
4957
|
toggle: Fr
|
|
4961
4958
|
});
|
|
4962
4959
|
return pe(() => {
|
|
@@ -5027,11 +5024,11 @@ const Fs = /* @__PURE__ */ Ee(({
|
|
|
5027
5024
|
] })
|
|
5028
5025
|
}
|
|
5029
5026
|
);
|
|
5030
|
-
}), Fr = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("button", { ...n, children: r }),
|
|
5031
|
-
function
|
|
5027
|
+
}), Fr = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("button", { ...n, children: r }), Fs = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("figure", { ...n, "aria-hidden": !0, children: r }), Bs = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("figure", { ...n, "aria-hidden": !0, children: r });
|
|
5028
|
+
function Ys(r) {
|
|
5032
5029
|
return r.sort((n, s) => n - s);
|
|
5033
5030
|
}
|
|
5034
|
-
function
|
|
5031
|
+
function Hs({ isCollapsed: r = !0, isInverted: n = !1, collectionPadding: s = 0, maxVisibleItems: l = 0, menuLength: c = NaN, numItems: u = 0, orientation: h = "vertical" }) {
|
|
5035
5032
|
return {
|
|
5036
5033
|
root: {
|
|
5037
5034
|
alignItems: "center",
|
|
@@ -5085,8 +5082,8 @@ function Vs({ isCollapsed: r = !0, isInverted: n = !1, collectionPadding: s = 0,
|
|
|
5085
5082
|
}
|
|
5086
5083
|
};
|
|
5087
5084
|
}
|
|
5088
|
-
|
|
5089
|
-
const go = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",
|
|
5085
|
+
Ls.displayName = "Dropdown";
|
|
5086
|
+
const go = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", Vs = go + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040", Xs = "[" + go + "][" + Vs + "]*", Us = new RegExp("^" + Xs + "$");
|
|
5090
5087
|
function vo(r, n) {
|
|
5091
5088
|
const s = [];
|
|
5092
5089
|
let l = n.exec(r);
|
|
@@ -5101,19 +5098,19 @@ function vo(r, n) {
|
|
|
5101
5098
|
return s;
|
|
5102
5099
|
}
|
|
5103
5100
|
const Rn = function(r) {
|
|
5104
|
-
const n =
|
|
5101
|
+
const n = Us.exec(r);
|
|
5105
5102
|
return !(n === null || typeof n > "u");
|
|
5106
5103
|
};
|
|
5107
|
-
function
|
|
5104
|
+
function Ds(r) {
|
|
5108
5105
|
return typeof r < "u";
|
|
5109
5106
|
}
|
|
5110
|
-
const
|
|
5107
|
+
const Ws = {
|
|
5111
5108
|
allowBooleanAttributes: !1,
|
|
5112
5109
|
//A tag can have attributes without any value
|
|
5113
5110
|
unpairedTags: []
|
|
5114
5111
|
};
|
|
5115
|
-
function
|
|
5116
|
-
n = Object.assign({},
|
|
5112
|
+
function Gs(r, n) {
|
|
5113
|
+
n = Object.assign({}, Ws, n);
|
|
5117
5114
|
const s = [];
|
|
5118
5115
|
let l = !1, c = !1;
|
|
5119
5116
|
r[0] === "\uFEFF" && (r = r.substr(1));
|
|
@@ -5132,11 +5129,11 @@ function qs(r, n) {
|
|
|
5132
5129
|
for (; u < r.length && r[u] !== ">" && r[u] !== " " && r[u] !== " " && r[u] !== `
|
|
5133
5130
|
` && r[u] !== "\r"; u++)
|
|
5134
5131
|
v += r[u];
|
|
5135
|
-
if (v = v.trim(), v[v.length - 1] === "/" && (v = v.substring(0, v.length - 1), u--), !
|
|
5132
|
+
if (v = v.trim(), v[v.length - 1] === "/" && (v = v.substring(0, v.length - 1), u--), !na(v)) {
|
|
5136
5133
|
let T;
|
|
5137
5134
|
return v.trim().length === 0 ? T = "Invalid space after '<'." : T = "Tag '" + v + "' is an invalid name.", Me("InvalidTag", T, ze(r, u));
|
|
5138
5135
|
}
|
|
5139
|
-
const w =
|
|
5136
|
+
const w = Js(r, u);
|
|
5140
5137
|
if (w === !1)
|
|
5141
5138
|
return Me("InvalidAttr", "Attributes for '" + v + "' have open quote.", ze(r, u));
|
|
5142
5139
|
let x = w.value;
|
|
@@ -5185,7 +5182,7 @@ function qs(r, n) {
|
|
|
5185
5182
|
} else
|
|
5186
5183
|
break;
|
|
5187
5184
|
else if (r[u] === "&") {
|
|
5188
|
-
const T =
|
|
5185
|
+
const T = ea(r, u);
|
|
5189
5186
|
if (T == -1)
|
|
5190
5187
|
return Me("InvalidChar", "char '&' is not expected.", ze(r, u));
|
|
5191
5188
|
u = T;
|
|
@@ -5248,11 +5245,11 @@ function Hr(r, n) {
|
|
|
5248
5245
|
}
|
|
5249
5246
|
return n;
|
|
5250
5247
|
}
|
|
5251
|
-
const
|
|
5252
|
-
function
|
|
5248
|
+
const qs = '"', Ks = "'";
|
|
5249
|
+
function Js(r, n) {
|
|
5253
5250
|
let s = "", l = "", c = !1;
|
|
5254
5251
|
for (; n < r.length; n++) {
|
|
5255
|
-
if (r[n] ===
|
|
5252
|
+
if (r[n] === qs || r[n] === Ks)
|
|
5256
5253
|
l === "" ? l = r[n] : l !== r[n] || (l = "");
|
|
5257
5254
|
else if (r[n] === ">" && l === "") {
|
|
5258
5255
|
c = !0;
|
|
@@ -5266,9 +5263,9 @@ function Zs(r, n) {
|
|
|
5266
5263
|
tagClosed: c
|
|
5267
5264
|
};
|
|
5268
5265
|
}
|
|
5269
|
-
const
|
|
5266
|
+
const Zs = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
|
|
5270
5267
|
function Vr(r, n) {
|
|
5271
|
-
const s = vo(r,
|
|
5268
|
+
const s = vo(r, Zs), l = {};
|
|
5272
5269
|
for (let c = 0; c < s.length; c++) {
|
|
5273
5270
|
if (s[c][1].length === 0)
|
|
5274
5271
|
return Me("InvalidAttr", "Attribute '" + s[c][2] + "' has no space in starting.", Pt(s[c]));
|
|
@@ -5277,7 +5274,7 @@ function Vr(r, n) {
|
|
|
5277
5274
|
if (s[c][3] === void 0 && !n.allowBooleanAttributes)
|
|
5278
5275
|
return Me("InvalidAttr", "boolean attribute '" + s[c][2] + "' is not allowed.", Pt(s[c]));
|
|
5279
5276
|
const u = s[c][2];
|
|
5280
|
-
if (!
|
|
5277
|
+
if (!ta(u))
|
|
5281
5278
|
return Me("InvalidAttr", "Attribute '" + u + "' is an invalid name.", Pt(s[c]));
|
|
5282
5279
|
if (!l.hasOwnProperty(u))
|
|
5283
5280
|
l[u] = 1;
|
|
@@ -5286,7 +5283,7 @@ function Vr(r, n) {
|
|
|
5286
5283
|
}
|
|
5287
5284
|
return !0;
|
|
5288
5285
|
}
|
|
5289
|
-
function
|
|
5286
|
+
function Qs(r, n) {
|
|
5290
5287
|
let s = /\d/;
|
|
5291
5288
|
for (r[n] === "x" && (n++, s = /[\da-fA-F]/); n < r.length; n++) {
|
|
5292
5289
|
if (r[n] === ";")
|
|
@@ -5296,11 +5293,11 @@ function ea(r, n) {
|
|
|
5296
5293
|
}
|
|
5297
5294
|
return -1;
|
|
5298
5295
|
}
|
|
5299
|
-
function
|
|
5296
|
+
function ea(r, n) {
|
|
5300
5297
|
if (n++, r[n] === ";")
|
|
5301
5298
|
return -1;
|
|
5302
5299
|
if (r[n] === "#")
|
|
5303
|
-
return n++,
|
|
5300
|
+
return n++, Qs(r, n);
|
|
5304
5301
|
let s = 0;
|
|
5305
5302
|
for (; n < r.length; n++, s++)
|
|
5306
5303
|
if (!(r[n].match(/\w/) && s < 20)) {
|
|
@@ -5320,10 +5317,10 @@ function Me(r, n, s) {
|
|
|
5320
5317
|
}
|
|
5321
5318
|
};
|
|
5322
5319
|
}
|
|
5323
|
-
function
|
|
5320
|
+
function ta(r) {
|
|
5324
5321
|
return Rn(r);
|
|
5325
5322
|
}
|
|
5326
|
-
function
|
|
5323
|
+
function na(r) {
|
|
5327
5324
|
return Rn(r);
|
|
5328
5325
|
}
|
|
5329
5326
|
function ze(r, n) {
|
|
@@ -5337,7 +5334,7 @@ function ze(r, n) {
|
|
|
5337
5334
|
function Pt(r) {
|
|
5338
5335
|
return r.startIndex + r[1].length;
|
|
5339
5336
|
}
|
|
5340
|
-
const
|
|
5337
|
+
const ra = {
|
|
5341
5338
|
preserveOrder: !1,
|
|
5342
5339
|
attributeNamePrefix: "@_",
|
|
5343
5340
|
attributesGroupName: !1,
|
|
@@ -5381,8 +5378,8 @@ const oa = {
|
|
|
5381
5378
|
},
|
|
5382
5379
|
// skipEmptyListItem: false
|
|
5383
5380
|
captureMetaData: !1
|
|
5384
|
-
},
|
|
5385
|
-
return Object.assign({},
|
|
5381
|
+
}, oa = function(r) {
|
|
5382
|
+
return Object.assign({}, ra, r);
|
|
5386
5383
|
};
|
|
5387
5384
|
let Wt;
|
|
5388
5385
|
typeof Symbol != "function" ? Wt = "@@xmlMetadata" : Wt = Symbol("XML Node Metadata");
|
|
@@ -5401,31 +5398,31 @@ class at {
|
|
|
5401
5398
|
return Wt;
|
|
5402
5399
|
}
|
|
5403
5400
|
}
|
|
5404
|
-
function
|
|
5401
|
+
function ia(r, n) {
|
|
5405
5402
|
const s = {};
|
|
5406
5403
|
if (r[n + 3] === "O" && r[n + 4] === "C" && r[n + 5] === "T" && r[n + 6] === "Y" && r[n + 7] === "P" && r[n + 8] === "E") {
|
|
5407
5404
|
n = n + 9;
|
|
5408
5405
|
let l = 1, c = !1, u = !1;
|
|
5409
5406
|
for (; n < r.length; n++)
|
|
5410
5407
|
if (r[n] === "<" && !u) {
|
|
5411
|
-
if (c &&
|
|
5408
|
+
if (c && ua(r, n)) {
|
|
5412
5409
|
n += 7;
|
|
5413
5410
|
let h, g;
|
|
5414
|
-
[h, g, n] =
|
|
5411
|
+
[h, g, n] = sa(r, n + 1), g.indexOf("&") === -1 && (s[h] = {
|
|
5415
5412
|
regx: RegExp(`&${h};`, "g"),
|
|
5416
5413
|
val: g
|
|
5417
5414
|
});
|
|
5418
|
-
} else if (c &&
|
|
5415
|
+
} else if (c && fa(r, n)) {
|
|
5419
5416
|
n += 8;
|
|
5420
|
-
const { index: h } =
|
|
5417
|
+
const { index: h } = ca(r, n + 1);
|
|
5421
5418
|
n = h;
|
|
5422
|
-
} else if (c &&
|
|
5419
|
+
} else if (c && da(r, n))
|
|
5423
5420
|
n += 8;
|
|
5424
|
-
else if (c &&
|
|
5421
|
+
else if (c && ha(r, n)) {
|
|
5425
5422
|
n += 9;
|
|
5426
|
-
const { index: h } =
|
|
5423
|
+
const { index: h } = aa(r, n + 1);
|
|
5427
5424
|
n = h;
|
|
5428
|
-
} else if (
|
|
5425
|
+
} else if (la) u = !0;
|
|
5429
5426
|
else throw new Error("Invalid DOCTYPE");
|
|
5430
5427
|
l++;
|
|
5431
5428
|
} else if (r[n] === ">") {
|
|
@@ -5443,7 +5440,7 @@ const nt = (r, n) => {
|
|
|
5443
5440
|
n++;
|
|
5444
5441
|
return n;
|
|
5445
5442
|
};
|
|
5446
|
-
function
|
|
5443
|
+
function sa(r, n) {
|
|
5447
5444
|
n = nt(r, n);
|
|
5448
5445
|
let s = "";
|
|
5449
5446
|
for (; n < r.length && !/\s/.test(r[n]) && r[n] !== '"' && r[n] !== "'"; )
|
|
@@ -5455,7 +5452,7 @@ function aa(r, n) {
|
|
|
5455
5452
|
let l = "";
|
|
5456
5453
|
return [n, l] = Ut(r, n, "entity"), n--, [s, l, n];
|
|
5457
5454
|
}
|
|
5458
|
-
function
|
|
5455
|
+
function aa(r, n) {
|
|
5459
5456
|
n = nt(r, n);
|
|
5460
5457
|
let s = "";
|
|
5461
5458
|
for (; n < r.length && !/\s/.test(r[n]); )
|
|
@@ -5483,7 +5480,7 @@ function Ut(r, n, s) {
|
|
|
5483
5480
|
throw new Error(`Unterminated ${s} value`);
|
|
5484
5481
|
return n++, [n, l];
|
|
5485
5482
|
}
|
|
5486
|
-
function
|
|
5483
|
+
function ca(r, n) {
|
|
5487
5484
|
n = nt(r, n);
|
|
5488
5485
|
let s = "";
|
|
5489
5486
|
for (; n < r.length && !/\s/.test(r[n]); )
|
|
@@ -5504,19 +5501,19 @@ function la(r, n) {
|
|
|
5504
5501
|
index: n
|
|
5505
5502
|
};
|
|
5506
5503
|
}
|
|
5507
|
-
function
|
|
5504
|
+
function la(r, n) {
|
|
5508
5505
|
return r[n + 1] === "!" && r[n + 2] === "-" && r[n + 3] === "-";
|
|
5509
5506
|
}
|
|
5510
|
-
function
|
|
5507
|
+
function ua(r, n) {
|
|
5511
5508
|
return r[n + 1] === "!" && r[n + 2] === "E" && r[n + 3] === "N" && r[n + 4] === "T" && r[n + 5] === "I" && r[n + 6] === "T" && r[n + 7] === "Y";
|
|
5512
5509
|
}
|
|
5513
|
-
function
|
|
5510
|
+
function fa(r, n) {
|
|
5514
5511
|
return r[n + 1] === "!" && r[n + 2] === "E" && r[n + 3] === "L" && r[n + 4] === "E" && r[n + 5] === "M" && r[n + 6] === "E" && r[n + 7] === "N" && r[n + 8] === "T";
|
|
5515
5512
|
}
|
|
5516
|
-
function
|
|
5513
|
+
function da(r, n) {
|
|
5517
5514
|
return r[n + 1] === "!" && r[n + 2] === "A" && r[n + 3] === "T" && r[n + 4] === "T" && r[n + 5] === "L" && r[n + 6] === "I" && r[n + 7] === "S" && r[n + 8] === "T";
|
|
5518
5515
|
}
|
|
5519
|
-
function
|
|
5516
|
+
function ha(r, n) {
|
|
5520
5517
|
return r[n + 1] === "!" && r[n + 2] === "N" && r[n + 3] === "O" && r[n + 4] === "T" && r[n + 5] === "A" && r[n + 6] === "T" && r[n + 7] === "I" && r[n + 8] === "O" && r[n + 9] === "N";
|
|
5521
5518
|
}
|
|
5522
5519
|
function zn(r) {
|
|
@@ -5524,7 +5521,7 @@ function zn(r) {
|
|
|
5524
5521
|
return r;
|
|
5525
5522
|
throw new Error(`Invalid entity name ${r}`);
|
|
5526
5523
|
}
|
|
5527
|
-
const
|
|
5524
|
+
const pa = /^[-+]?0x[a-fA-F0-9]+$/, ga = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, va = {
|
|
5528
5525
|
hex: !0,
|
|
5529
5526
|
// oct: false,
|
|
5530
5527
|
leadingZeros: !0,
|
|
@@ -5532,13 +5529,13 @@ const ga = /^[-+]?0x[a-fA-F0-9]+$/, va = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, m
|
|
|
5532
5529
|
eNotation: !0
|
|
5533
5530
|
//skipLike: /regex/
|
|
5534
5531
|
};
|
|
5535
|
-
function
|
|
5536
|
-
if (n = Object.assign({},
|
|
5532
|
+
function ma(r, n = {}) {
|
|
5533
|
+
if (n = Object.assign({}, va, n), !r || typeof r != "string") return r;
|
|
5537
5534
|
let s = r.trim();
|
|
5538
5535
|
if (n.skipLike !== void 0 && n.skipLike.test(s)) return r;
|
|
5539
5536
|
if (r === "0") return 0;
|
|
5540
|
-
if (n.hex &&
|
|
5541
|
-
return
|
|
5537
|
+
if (n.hex && pa.test(s))
|
|
5538
|
+
return ba(s, 16);
|
|
5542
5539
|
if (s.search(/[eE]/) !== -1) {
|
|
5543
5540
|
const l = s.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);
|
|
5544
5541
|
if (l) {
|
|
@@ -5549,10 +5546,10 @@ function ya(r, n = {}) {
|
|
|
5549
5546
|
} else
|
|
5550
5547
|
return r;
|
|
5551
5548
|
} else {
|
|
5552
|
-
const l =
|
|
5549
|
+
const l = ga.exec(s);
|
|
5553
5550
|
if (l) {
|
|
5554
5551
|
const c = l[1], u = l[2];
|
|
5555
|
-
let h =
|
|
5552
|
+
let h = ya(l[3]);
|
|
5556
5553
|
if (!n.leadingZeros && u.length > 0 && c && s[2] !== ".") return r;
|
|
5557
5554
|
if (!n.leadingZeros && u.length > 0 && !c && s[1] !== ".") return r;
|
|
5558
5555
|
if (n.leadingZeros && u === r) return 0;
|
|
@@ -5564,10 +5561,10 @@ function ya(r, n = {}) {
|
|
|
5564
5561
|
return r;
|
|
5565
5562
|
}
|
|
5566
5563
|
}
|
|
5567
|
-
function
|
|
5564
|
+
function ya(r) {
|
|
5568
5565
|
return r && r.indexOf(".") !== -1 && (r = r.replace(/0+$/, ""), r === "." ? r = "0" : r[0] === "." ? r = "0" + r : r[r.length - 1] === "." && (r = r.substr(0, r.length - 1))), r;
|
|
5569
5566
|
}
|
|
5570
|
-
function
|
|
5567
|
+
function ba(r, n) {
|
|
5571
5568
|
if (parseInt) return parseInt(r, n);
|
|
5572
5569
|
if (Number.parseInt) return Number.parseInt(r, n);
|
|
5573
5570
|
if (window && window.parseInt) return window.parseInt(r, n);
|
|
@@ -5580,7 +5577,7 @@ function mo(r) {
|
|
|
5580
5577
|
return !0;
|
|
5581
5578
|
} : () => !1;
|
|
5582
5579
|
}
|
|
5583
|
-
class
|
|
5580
|
+
class xa {
|
|
5584
5581
|
constructor(n) {
|
|
5585
5582
|
this.options = n, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = {
|
|
5586
5583
|
apos: { regex: /&(apos|#39|#x27);/g, val: "'" },
|
|
@@ -5603,10 +5600,10 @@ class wa {
|
|
|
5603
5600
|
inr: { regex: /&(inr|#8377);/g, val: "₹" },
|
|
5604
5601
|
num_dec: { regex: /&#([0-9]{1,7});/g, val: (s, l) => String.fromCodePoint(Number.parseInt(l, 10)) },
|
|
5605
5602
|
num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (s, l) => String.fromCodePoint(Number.parseInt(l, 16)) }
|
|
5606
|
-
}, this.addExternalEntities =
|
|
5603
|
+
}, this.addExternalEntities = wa, this.parseXml = Pa, this.parseTextData = Ea, this.resolveNameSpace = Na, this.buildAttributesMap = Sa, this.isItStopNode = Ma, this.replaceEntitiesValue = Oa, this.readStopNodeData = Ia, this.saveTextToParentTag = Aa, this.addChild = ka, this.ignoreAttributesFn = mo(this.options.ignoreAttributes);
|
|
5607
5604
|
}
|
|
5608
5605
|
}
|
|
5609
|
-
function
|
|
5606
|
+
function wa(r) {
|
|
5610
5607
|
const n = Object.keys(r);
|
|
5611
5608
|
for (let s = 0; s < n.length; s++) {
|
|
5612
5609
|
const l = n[s];
|
|
@@ -5616,14 +5613,14 @@ function Ea(r) {
|
|
|
5616
5613
|
};
|
|
5617
5614
|
}
|
|
5618
5615
|
}
|
|
5619
|
-
function
|
|
5616
|
+
function Ea(r, n, s, l, c, u, h) {
|
|
5620
5617
|
if (r !== void 0 && (this.options.trimValues && !l && (r = r.trim()), r.length > 0)) {
|
|
5621
5618
|
h || (r = this.replaceEntitiesValue(r));
|
|
5622
5619
|
const g = this.options.tagValueProcessor(n, r, s, c, u);
|
|
5623
5620
|
return g == null ? r : typeof g != typeof r || g !== r ? g : this.options.trimValues ? Cn(r, this.options.parseTagValue, this.options.numberParseOptions) : r.trim() === r ? Cn(r, this.options.parseTagValue, this.options.numberParseOptions) : r;
|
|
5624
5621
|
}
|
|
5625
5622
|
}
|
|
5626
|
-
function
|
|
5623
|
+
function Na(r) {
|
|
5627
5624
|
if (this.options.removeNSPrefix) {
|
|
5628
5625
|
const n = r.split(":"), s = r.charAt(0) === "/" ? "/" : "";
|
|
5629
5626
|
if (n[0] === "xmlns")
|
|
@@ -5632,10 +5629,10 @@ function Ta(r) {
|
|
|
5632
5629
|
}
|
|
5633
5630
|
return r;
|
|
5634
5631
|
}
|
|
5635
|
-
const
|
|
5636
|
-
function
|
|
5632
|
+
const Ta = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
|
|
5633
|
+
function Sa(r, n, s) {
|
|
5637
5634
|
if (this.options.ignoreAttributes !== !0 && typeof r == "string") {
|
|
5638
|
-
const l = vo(r,
|
|
5635
|
+
const l = vo(r, Ta), c = l.length, u = {};
|
|
5639
5636
|
for (let h = 0; h < c; h++) {
|
|
5640
5637
|
const g = this.resolveNameSpace(l[h][1]);
|
|
5641
5638
|
if (this.ignoreAttributesFn(g, n))
|
|
@@ -5661,7 +5658,7 @@ function Pa(r, n, s) {
|
|
|
5661
5658
|
return u;
|
|
5662
5659
|
}
|
|
5663
5660
|
}
|
|
5664
|
-
const
|
|
5661
|
+
const Pa = function(r) {
|
|
5665
5662
|
r = r.replace(/\r\n?/g, `
|
|
5666
5663
|
`);
|
|
5667
5664
|
const n = new at("!xml");
|
|
@@ -5697,7 +5694,7 @@ const ka = function(r) {
|
|
|
5697
5694
|
}
|
|
5698
5695
|
u = g;
|
|
5699
5696
|
} else if (r.substr(u + 1, 2) === "!D") {
|
|
5700
|
-
const g =
|
|
5697
|
+
const g = ia(r, u);
|
|
5701
5698
|
this.docTypeEntities = g.entities, u = g.i;
|
|
5702
5699
|
} else if (r.substr(u + 1, 2) === "![") {
|
|
5703
5700
|
const g = ct(r, "]]>", u, "CDATA is not closed.") - 2, v = r.substring(u + 9, g);
|
|
@@ -5741,12 +5738,12 @@ const ka = function(r) {
|
|
|
5741
5738
|
l += r[u];
|
|
5742
5739
|
return n.child;
|
|
5743
5740
|
};
|
|
5744
|
-
function
|
|
5741
|
+
function ka(r, n, s, l) {
|
|
5745
5742
|
this.options.captureMetaData || (l = void 0);
|
|
5746
5743
|
const c = this.options.updateTag(n.tagname, s, n[":@"]);
|
|
5747
5744
|
c === !1 || (typeof c == "string" && (n.tagname = c), r.addChild(n, l));
|
|
5748
5745
|
}
|
|
5749
|
-
const
|
|
5746
|
+
const Oa = function(r) {
|
|
5750
5747
|
if (this.options.processEntities) {
|
|
5751
5748
|
for (let n in this.docTypeEntities) {
|
|
5752
5749
|
const s = this.docTypeEntities[n];
|
|
@@ -5765,7 +5762,7 @@ const Aa = function(r) {
|
|
|
5765
5762
|
}
|
|
5766
5763
|
return r;
|
|
5767
5764
|
};
|
|
5768
|
-
function
|
|
5765
|
+
function Aa(r, n, s, l) {
|
|
5769
5766
|
return r && (l === void 0 && (l = n.child.length === 0), r = this.parseTextData(
|
|
5770
5767
|
r,
|
|
5771
5768
|
n.tagname,
|
|
@@ -5775,7 +5772,7 @@ function Ma(r, n, s, l) {
|
|
|
5775
5772
|
l
|
|
5776
5773
|
), r !== void 0 && r !== "" && n.add(this.options.textNodeName, r), r = ""), r;
|
|
5777
5774
|
}
|
|
5778
|
-
function
|
|
5775
|
+
function Ma(r, n, s) {
|
|
5779
5776
|
const l = "*." + s;
|
|
5780
5777
|
for (const c in r) {
|
|
5781
5778
|
const u = r[c];
|
|
@@ -5783,7 +5780,7 @@ function Ca(r, n, s) {
|
|
|
5783
5780
|
}
|
|
5784
5781
|
return !1;
|
|
5785
5782
|
}
|
|
5786
|
-
function
|
|
5783
|
+
function Ca(r, n, s = ">") {
|
|
5787
5784
|
let l, c = "";
|
|
5788
5785
|
for (let u = n; u < r.length; u++) {
|
|
5789
5786
|
let h = r[u];
|
|
@@ -5814,7 +5811,7 @@ function ct(r, n, s, l) {
|
|
|
5814
5811
|
return c + n.length - 1;
|
|
5815
5812
|
}
|
|
5816
5813
|
function Mn(r, n, s, l = ">") {
|
|
5817
|
-
const c =
|
|
5814
|
+
const c = Ca(r, n + 1, l);
|
|
5818
5815
|
if (!c) return;
|
|
5819
5816
|
let u = c.data;
|
|
5820
5817
|
const h = c.index, g = u.search(/\s/);
|
|
@@ -5833,7 +5830,7 @@ function Mn(r, n, s, l = ">") {
|
|
|
5833
5830
|
rawTagName: x
|
|
5834
5831
|
};
|
|
5835
5832
|
}
|
|
5836
|
-
function
|
|
5833
|
+
function Ia(r, n, s) {
|
|
5837
5834
|
const l = s;
|
|
5838
5835
|
let c = 1;
|
|
5839
5836
|
for (; s < r.length; s++)
|
|
@@ -5860,19 +5857,19 @@ function $a(r, n, s) {
|
|
|
5860
5857
|
function Cn(r, n, s) {
|
|
5861
5858
|
if (n && typeof r == "string") {
|
|
5862
5859
|
const l = r.trim();
|
|
5863
|
-
return l === "true" ? !0 : l === "false" ? !1 :
|
|
5860
|
+
return l === "true" ? !0 : l === "false" ? !1 : ma(r, s);
|
|
5864
5861
|
} else
|
|
5865
|
-
return
|
|
5862
|
+
return Ds(r) ? r : "";
|
|
5866
5863
|
}
|
|
5867
5864
|
const En = at.getMetaDataSymbol();
|
|
5868
|
-
function
|
|
5865
|
+
function $a(r, n) {
|
|
5869
5866
|
return yo(r, n);
|
|
5870
5867
|
}
|
|
5871
5868
|
function yo(r, n, s) {
|
|
5872
5869
|
let l;
|
|
5873
5870
|
const c = {};
|
|
5874
5871
|
for (let u = 0; u < r.length; u++) {
|
|
5875
|
-
const h = r[u], g =
|
|
5872
|
+
const h = r[u], g = _a(h);
|
|
5876
5873
|
let v = "";
|
|
5877
5874
|
if (s === void 0 ? v = g : v = s + "." + g, g === n.textNodeName)
|
|
5878
5875
|
l === void 0 ? l = h[g] : l += "" + h[g];
|
|
@@ -5881,21 +5878,21 @@ function yo(r, n, s) {
|
|
|
5881
5878
|
continue;
|
|
5882
5879
|
if (h[g]) {
|
|
5883
5880
|
let w = yo(h[g], n, v);
|
|
5884
|
-
const x =
|
|
5885
|
-
h[En] !== void 0 && (w[En] = h[En]), h[":@"] ?
|
|
5881
|
+
const x = Ra(w, n);
|
|
5882
|
+
h[En] !== void 0 && (w[En] = h[En]), h[":@"] ? ja(w, h[":@"], v, n) : Object.keys(w).length === 1 && w[n.textNodeName] !== void 0 && !n.alwaysCreateTextNode ? w = w[n.textNodeName] : Object.keys(w).length === 0 && (n.alwaysCreateTextNode ? w[n.textNodeName] = "" : w = ""), c[g] !== void 0 && c.hasOwnProperty(g) ? (Array.isArray(c[g]) || (c[g] = [c[g]]), c[g].push(w)) : n.isArray(g, v, x) ? c[g] = [w] : c[g] = w;
|
|
5886
5883
|
}
|
|
5887
5884
|
}
|
|
5888
5885
|
}
|
|
5889
5886
|
return typeof l == "string" ? l.length > 0 && (c[n.textNodeName] = l) : l !== void 0 && (c[n.textNodeName] = l), c;
|
|
5890
5887
|
}
|
|
5891
|
-
function
|
|
5888
|
+
function _a(r) {
|
|
5892
5889
|
const n = Object.keys(r);
|
|
5893
5890
|
for (let s = 0; s < n.length; s++) {
|
|
5894
5891
|
const l = n[s];
|
|
5895
5892
|
if (l !== ":@") return l;
|
|
5896
5893
|
}
|
|
5897
5894
|
}
|
|
5898
|
-
function
|
|
5895
|
+
function ja(r, n, s, l) {
|
|
5899
5896
|
if (n) {
|
|
5900
5897
|
const c = Object.keys(n), u = c.length;
|
|
5901
5898
|
for (let h = 0; h < u; h++) {
|
|
@@ -5904,13 +5901,13 @@ function Ra(r, n, s, l) {
|
|
|
5904
5901
|
}
|
|
5905
5902
|
}
|
|
5906
5903
|
}
|
|
5907
|
-
function
|
|
5904
|
+
function Ra(r, n) {
|
|
5908
5905
|
const { textNodeName: s } = n, l = Object.keys(r).length;
|
|
5909
5906
|
return !!(l === 0 || l === 1 && (r[s] || typeof r[s] == "boolean" || r[s] === 0));
|
|
5910
5907
|
}
|
|
5911
|
-
class
|
|
5908
|
+
class za {
|
|
5912
5909
|
constructor(n) {
|
|
5913
|
-
this.externalEntities = {}, this.options =
|
|
5910
|
+
this.externalEntities = {}, this.options = oa(n);
|
|
5914
5911
|
}
|
|
5915
5912
|
/**
|
|
5916
5913
|
* Parse XML dats to JS object
|
|
@@ -5924,14 +5921,14 @@ class La {
|
|
|
5924
5921
|
throw new Error("XML data is accepted in String or Bytes[] form.");
|
|
5925
5922
|
if (s) {
|
|
5926
5923
|
s === !0 && (s = {});
|
|
5927
|
-
const u =
|
|
5924
|
+
const u = Gs(n, s);
|
|
5928
5925
|
if (u !== !0)
|
|
5929
5926
|
throw Error(`${u.err.msg}:${u.err.line}:${u.err.col}`);
|
|
5930
5927
|
}
|
|
5931
|
-
const l = new
|
|
5928
|
+
const l = new xa(this.options);
|
|
5932
5929
|
l.addExternalEntities(this.externalEntities);
|
|
5933
5930
|
const c = l.parseXml(n);
|
|
5934
|
-
return this.options.preserveOrder || c === void 0 ? c :
|
|
5931
|
+
return this.options.preserveOrder || c === void 0 ? c : $a(c, this.options);
|
|
5935
5932
|
}
|
|
5936
5933
|
/**
|
|
5937
5934
|
* Add Entity which is not by default supported by this library
|
|
@@ -5961,21 +5958,21 @@ class La {
|
|
|
5961
5958
|
return at.getMetaDataSymbol();
|
|
5962
5959
|
}
|
|
5963
5960
|
}
|
|
5964
|
-
const
|
|
5961
|
+
const La = `
|
|
5965
5962
|
`;
|
|
5966
|
-
function
|
|
5963
|
+
function Fa(r, n) {
|
|
5967
5964
|
let s = "";
|
|
5968
|
-
return n.format && n.indentBy.length > 0 && (s =
|
|
5965
|
+
return n.format && n.indentBy.length > 0 && (s = La), bo(r, n, "", s);
|
|
5969
5966
|
}
|
|
5970
5967
|
function bo(r, n, s, l) {
|
|
5971
5968
|
let c = "", u = !1;
|
|
5972
5969
|
for (let h = 0; h < r.length; h++) {
|
|
5973
|
-
const g = r[h], v =
|
|
5970
|
+
const g = r[h], v = Ba(g);
|
|
5974
5971
|
if (v === void 0) continue;
|
|
5975
5972
|
let w = "";
|
|
5976
5973
|
if (s.length === 0 ? w = v : w = `${s}.${v}`, v === n.textNodeName) {
|
|
5977
5974
|
let F = g[v];
|
|
5978
|
-
|
|
5975
|
+
Ya(w, n) || (F = n.tagValueProcessor(v, F), F = xo(F, n)), u && (c += l), c += F, u = !1;
|
|
5979
5976
|
continue;
|
|
5980
5977
|
} else if (v === n.cdataPropName) {
|
|
5981
5978
|
u && (c += l), c += `<![CDATA[${g[v][0][n.textNodeName]}]]>`, u = !1;
|
|
@@ -5996,7 +5993,7 @@ function bo(r, n, s, l) {
|
|
|
5996
5993
|
}
|
|
5997
5994
|
return c;
|
|
5998
5995
|
}
|
|
5999
|
-
function
|
|
5996
|
+
function Ba(r) {
|
|
6000
5997
|
const n = Object.keys(r);
|
|
6001
5998
|
for (let s = 0; s < n.length; s++) {
|
|
6002
5999
|
const l = n[s];
|
|
@@ -6014,7 +6011,7 @@ function Xr(r, n) {
|
|
|
6014
6011
|
}
|
|
6015
6012
|
return s;
|
|
6016
6013
|
}
|
|
6017
|
-
function
|
|
6014
|
+
function Ya(r, n) {
|
|
6018
6015
|
r = r.substr(0, r.length - n.textNodeName.length - 1);
|
|
6019
6016
|
let s = r.substr(r.lastIndexOf(".") + 1);
|
|
6020
6017
|
for (let l in n.stopNodes)
|
|
@@ -6029,7 +6026,7 @@ function xo(r, n) {
|
|
|
6029
6026
|
}
|
|
6030
6027
|
return r;
|
|
6031
6028
|
}
|
|
6032
|
-
const
|
|
6029
|
+
const Ha = {
|
|
6033
6030
|
attributeNamePrefix: "@_",
|
|
6034
6031
|
attributesGroupName: !1,
|
|
6035
6032
|
textNodeName: "#text",
|
|
@@ -6064,16 +6061,16 @@ const Va = {
|
|
|
6064
6061
|
oneListGroup: !1
|
|
6065
6062
|
};
|
|
6066
6063
|
function rt(r) {
|
|
6067
|
-
this.options = Object.assign({},
|
|
6064
|
+
this.options = Object.assign({}, Ha, r), this.options.ignoreAttributes === !0 || this.options.attributesGroupName ? this.isAttribute = function() {
|
|
6068
6065
|
return !1;
|
|
6069
|
-
} : (this.ignoreAttributesFn = mo(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute =
|
|
6066
|
+
} : (this.ignoreAttributesFn = mo(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = Ua), this.processTextOrObjNode = Va, this.options.format ? (this.indentate = Xa, this.tagEndChar = `>
|
|
6070
6067
|
`, this.newLine = `
|
|
6071
6068
|
`) : (this.indentate = function() {
|
|
6072
6069
|
return "";
|
|
6073
6070
|
}, this.tagEndChar = ">", this.newLine = "");
|
|
6074
6071
|
}
|
|
6075
6072
|
rt.prototype.build = function(r) {
|
|
6076
|
-
return this.options.preserveOrder ?
|
|
6073
|
+
return this.options.preserveOrder ? Fa(r, this.options) : (Array.isArray(r) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (r = {
|
|
6077
6074
|
[this.options.arrayNodeName]: r
|
|
6078
6075
|
}), this.j2x(r, 0, []).val);
|
|
6079
6076
|
};
|
|
@@ -6129,7 +6126,7 @@ rt.prototype.j2x = function(r, n, s) {
|
|
|
6129
6126
|
rt.prototype.buildAttrPairStr = function(r, n) {
|
|
6130
6127
|
return n = this.options.attributeValueProcessor(r, "" + n), n = this.replaceEntitiesValue(n), this.options.suppressBooleanAttributes && n === "true" ? " " + r : " " + r + '="' + n + '"';
|
|
6131
6128
|
};
|
|
6132
|
-
function
|
|
6129
|
+
function Va(r, n, s, l) {
|
|
6133
6130
|
const c = this.j2x(r, s + 1, l.concat(n));
|
|
6134
6131
|
return r[this.options.textNodeName] !== void 0 && Object.keys(r).length === 1 ? this.buildTextValNode(r[this.options.textNodeName], n, c.attrStr, s) : this.buildObjectNode(c.val, n, c.attrStr, s);
|
|
6135
6132
|
}
|
|
@@ -6165,13 +6162,13 @@ rt.prototype.replaceEntitiesValue = function(r) {
|
|
|
6165
6162
|
}
|
|
6166
6163
|
return r;
|
|
6167
6164
|
};
|
|
6168
|
-
function
|
|
6165
|
+
function Xa(r) {
|
|
6169
6166
|
return this.options.indentBy.repeat(r);
|
|
6170
6167
|
}
|
|
6171
|
-
function
|
|
6168
|
+
function Ua(r) {
|
|
6172
6169
|
return r.startsWith(this.options.attributeNamePrefix) && r !== this.options.textNodeName ? r.substr(this.attrPrefixLen) : !1;
|
|
6173
6170
|
}
|
|
6174
|
-
const
|
|
6171
|
+
const Da = /* @__PURE__ */ Ee(({
|
|
6175
6172
|
fillMode: r = "preserve",
|
|
6176
6173
|
svg: n,
|
|
6177
6174
|
shouldStripClasses: s = !0,
|
|
@@ -6181,7 +6178,7 @@ const Wa = /* @__PURE__ */ Ee(({
|
|
|
6181
6178
|
...h
|
|
6182
6179
|
}, g) => {
|
|
6183
6180
|
const v = "@_", w = ["id"].map((F) => `${v}${F}`), x = ["class"].map((F) => `${v}${F}`), T = ["fill", "stroke", "style"].map((F) => `${v}${F}`), P = ["x", "y"].map((F) => `${v}${F}`), M = () => {
|
|
6184
|
-
const F = new
|
|
6181
|
+
const F = new za({
|
|
6185
6182
|
attributeNamePrefix: v,
|
|
6186
6183
|
ignoreAttributes: !1,
|
|
6187
6184
|
ignoreDeclaration: !0,
|
|
@@ -6224,8 +6221,8 @@ const Wa = /* @__PURE__ */ Ee(({
|
|
|
6224
6221
|
}
|
|
6225
6222
|
);
|
|
6226
6223
|
});
|
|
6227
|
-
|
|
6228
|
-
const Ur = "base-",
|
|
6224
|
+
Da.displayName = "FlatSVG";
|
|
6225
|
+
const Ur = "base-", Wa = /* @__PURE__ */ Ee(({
|
|
6229
6226
|
alignSections: r = !1,
|
|
6230
6227
|
children: n,
|
|
6231
6228
|
className: s,
|
|
@@ -6285,7 +6282,7 @@ const Ur = "base-", Ga = /* @__PURE__ */ Ee(({
|
|
|
6285
6282
|
(T !== H || M !== Q || ce.width !== j || ce.height !== J) && (X(), V(ce.width), R(ce.height));
|
|
6286
6283
|
}
|
|
6287
6284
|
}, [r, l, c, h, g, u]), pe(() => {
|
|
6288
|
-
const Z =
|
|
6285
|
+
const Z = Ka(x.current?.innerHTML);
|
|
6289
6286
|
if (Z.length === 0) return X();
|
|
6290
6287
|
const ce = Z.length;
|
|
6291
6288
|
for (let H = 0; H < ce; H++) {
|
|
@@ -6293,7 +6290,7 @@ const Ur = "base-", Ga = /* @__PURE__ */ Ee(({
|
|
|
6293
6290
|
W.src = Q, W.onload = () => X();
|
|
6294
6291
|
}
|
|
6295
6292
|
}, [n]);
|
|
6296
|
-
const U =
|
|
6293
|
+
const U = Ga({ orientation: u }), N = qa({ orientation: u, minHeight: M, minWidth: T });
|
|
6297
6294
|
return /* @__PURE__ */ S.jsx(
|
|
6298
6295
|
"div",
|
|
6299
6296
|
{
|
|
@@ -6305,12 +6302,12 @@ const Ur = "base-", Ga = /* @__PURE__ */ Ee(({
|
|
|
6305
6302
|
}
|
|
6306
6303
|
);
|
|
6307
6304
|
});
|
|
6308
|
-
function
|
|
6305
|
+
function Ga({ orientation: r = "horizontal" }) {
|
|
6309
6306
|
return {
|
|
6310
6307
|
root: ue(r)
|
|
6311
6308
|
};
|
|
6312
6309
|
}
|
|
6313
|
-
function
|
|
6310
|
+
function qa({ orientation: r = "horizontal", minHeight: n = NaN, minWidth: s = NaN }) {
|
|
6314
6311
|
return {
|
|
6315
6312
|
body: {
|
|
6316
6313
|
height: r === "horizontal" ? "100%" : "auto",
|
|
@@ -6346,7 +6343,7 @@ function Wr(r, n) {
|
|
|
6346
6343
|
}
|
|
6347
6344
|
return 1;
|
|
6348
6345
|
}
|
|
6349
|
-
function
|
|
6346
|
+
function Ka(r) {
|
|
6350
6347
|
if (!r) return [];
|
|
6351
6348
|
const n = /<img.*?src=(["'])(.*?)\1/g, s = /<img.*?src=(["'])(.*?)\1/, l = n.exec(r) ?? [], c = [];
|
|
6352
6349
|
for (const u of l) {
|
|
@@ -6355,8 +6352,8 @@ function Ja(r) {
|
|
|
6355
6352
|
}
|
|
6356
6353
|
return c;
|
|
6357
6354
|
}
|
|
6358
|
-
|
|
6359
|
-
const
|
|
6355
|
+
Wa.displayName = "MasonryGrid";
|
|
6356
|
+
const Ja = /* @__PURE__ */ Ee(({
|
|
6360
6357
|
index: r = 0,
|
|
6361
6358
|
isDisabled: n = !1,
|
|
6362
6359
|
options: s,
|
|
@@ -6381,7 +6378,7 @@ const Za = /* @__PURE__ */ Ee(({
|
|
|
6381
6378
|
}
|
|
6382
6379
|
);
|
|
6383
6380
|
});
|
|
6384
|
-
|
|
6381
|
+
Ja.displayName = "OptionButton";
|
|
6385
6382
|
const wo = /* @__PURE__ */ Ee(({
|
|
6386
6383
|
angle: r = 0,
|
|
6387
6384
|
speed: n = 1,
|
|
@@ -6409,18 +6406,18 @@ const wo = /* @__PURE__ */ Ee(({
|
|
|
6409
6406
|
});
|
|
6410
6407
|
pe(() => {
|
|
6411
6408
|
if (Y || !J) return;
|
|
6412
|
-
const Z =
|
|
6409
|
+
const Z = Qa(r, J, V.size, l);
|
|
6413
6410
|
Z !== X && U(Z), r !== R && L(r);
|
|
6414
6411
|
}, [r, J, V.width, V.height, l]), pe(() => {
|
|
6415
6412
|
if (!Y || !J) return;
|
|
6416
|
-
const Z =
|
|
6413
|
+
const Z = ec(X, J, V.size, l);
|
|
6417
6414
|
R !== Z && L(Z);
|
|
6418
6415
|
}, [X, J, V.width, V.height, l]), pe(() => {
|
|
6419
6416
|
c?.(R, Y), u?.(R / 360, Y);
|
|
6420
6417
|
}, [R]), pe(() => {
|
|
6421
6418
|
T?.(J);
|
|
6422
6419
|
}, [J?.width, J?.height]);
|
|
6423
|
-
const N =
|
|
6420
|
+
const N = Za({ src: s, displacement: X });
|
|
6424
6421
|
return /* @__PURE__ */ S.jsx(
|
|
6425
6422
|
"div",
|
|
6426
6423
|
{
|
|
@@ -6432,7 +6429,7 @@ const wo = /* @__PURE__ */ Ee(({
|
|
|
6432
6429
|
}
|
|
6433
6430
|
);
|
|
6434
6431
|
});
|
|
6435
|
-
function
|
|
6432
|
+
function Za({ src: r = "", displacement: n = NaN }) {
|
|
6436
6433
|
return {
|
|
6437
6434
|
body: {
|
|
6438
6435
|
backgroundImage: `url(${r})`,
|
|
@@ -6451,18 +6448,18 @@ function Eo(r, n) {
|
|
|
6451
6448
|
const h = c / l * s;
|
|
6452
6449
|
return new Oe([h, c]);
|
|
6453
6450
|
}
|
|
6454
|
-
function
|
|
6451
|
+
function Qa(r, n, s, l) {
|
|
6455
6452
|
const { width: c } = Eo(n, s), { width: u } = s, h = u * l;
|
|
6456
6453
|
return r / 360 * c - h;
|
|
6457
6454
|
}
|
|
6458
|
-
function
|
|
6455
|
+
function ec(r, n, s, l) {
|
|
6459
6456
|
const { width: c } = Eo(n, s), { width: u } = s, h = u * l;
|
|
6460
6457
|
let g = (r + h) % c / c * 360;
|
|
6461
6458
|
for (; g < 0; ) g += 360;
|
|
6462
6459
|
return g;
|
|
6463
6460
|
}
|
|
6464
6461
|
wo.displayName = "Panorama";
|
|
6465
|
-
const
|
|
6462
|
+
const tc = /* @__PURE__ */ Ee(({
|
|
6466
6463
|
className: r,
|
|
6467
6464
|
style: n,
|
|
6468
6465
|
angle: s = 0,
|
|
@@ -6498,7 +6495,7 @@ const nc = /* @__PURE__ */ Ee(({
|
|
|
6498
6495
|
track: Nn,
|
|
6499
6496
|
reticle: Gr,
|
|
6500
6497
|
indicator: qr
|
|
6501
|
-
}), G =
|
|
6498
|
+
}), G = nc({ autoDimension: l, panoramaRect: H, aspectRatio: C, reticleWidth: z });
|
|
6502
6499
|
return /* @__PURE__ */ S.jsxs(
|
|
6503
6500
|
"div",
|
|
6504
6501
|
{
|
|
@@ -6548,7 +6545,7 @@ const nc = /* @__PURE__ */ Ee(({
|
|
|
6548
6545
|
}
|
|
6549
6546
|
);
|
|
6550
6547
|
}), Nn = /* @__PURE__ */ Ee(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n })), Gr = /* @__PURE__ */ Ee(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n })), qr = /* @__PURE__ */ Ee(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n }));
|
|
6551
|
-
function
|
|
6548
|
+
function nc({ autoDimension: r = "width", panoramaRect: n = re.make(), aspectRatio: s = 0, reticleWidth: l = 0 }) {
|
|
6552
6549
|
return {
|
|
6553
6550
|
root: {
|
|
6554
6551
|
...r === "width" ? {
|
|
@@ -6592,8 +6589,8 @@ function rc({ autoDimension: r = "width", panoramaRect: n = re.make(), aspectRat
|
|
|
6592
6589
|
}
|
|
6593
6590
|
};
|
|
6594
6591
|
}
|
|
6595
|
-
|
|
6596
|
-
const
|
|
6592
|
+
tc.displayName = "PanoramaSlider";
|
|
6593
|
+
const rc = /* @__PURE__ */ Ee(({
|
|
6597
6594
|
children: r,
|
|
6598
6595
|
className: n,
|
|
6599
6596
|
decimalPlaces: s = 2,
|
|
@@ -6636,8 +6633,8 @@ const oc = /* @__PURE__ */ Ee(({
|
|
|
6636
6633
|
gutter: Kr,
|
|
6637
6634
|
highlight: Jr,
|
|
6638
6635
|
knob: Tn,
|
|
6639
|
-
label:
|
|
6640
|
-
}), G =
|
|
6636
|
+
label: oc
|
|
6637
|
+
}), G = ic({ orientation: v, highlightLength: te, start: C, knobPadding: c, knobWidth: u, knobHeight: l });
|
|
6641
6638
|
return /* @__PURE__ */ S.jsx(
|
|
6642
6639
|
"div",
|
|
6643
6640
|
{
|
|
@@ -6717,8 +6714,8 @@ const oc = /* @__PURE__ */ Ee(({
|
|
|
6717
6714
|
] })
|
|
6718
6715
|
}
|
|
6719
6716
|
);
|
|
6720
|
-
}), Kr = /* @__PURE__ */ Ee(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n })),
|
|
6721
|
-
function
|
|
6717
|
+
}), Kr = /* @__PURE__ */ Ee(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n })), oc = /* @__PURE__ */ Ee(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n })), Jr = /* @__PURE__ */ Ee(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n })), Tn = /* @__PURE__ */ Ee(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n }));
|
|
6718
|
+
function ic({ orientation: r = "horizontal", knobWidth: n = 0, knobHeight: s = 0, highlightLength: l = 0, start: c = 0, knobPadding: u = 0 }) {
|
|
6722
6719
|
return {
|
|
6723
6720
|
body: {
|
|
6724
6721
|
height: "100%",
|
|
@@ -6773,23 +6770,23 @@ function sc({ orientation: r = "horizontal", knobWidth: n = 0, knobHeight: s = 0
|
|
|
6773
6770
|
}
|
|
6774
6771
|
};
|
|
6775
6772
|
}
|
|
6776
|
-
function
|
|
6773
|
+
function sc(r, n, s) {
|
|
6777
6774
|
return (r - n) / (s - n);
|
|
6778
6775
|
}
|
|
6779
|
-
function
|
|
6776
|
+
function ac(r, n, s) {
|
|
6780
6777
|
return r / (n === "horizontal" ? s.width : s.height);
|
|
6781
6778
|
}
|
|
6782
|
-
function
|
|
6779
|
+
function cc(r, n, s) {
|
|
6783
6780
|
return r * (s - n) + n;
|
|
6784
6781
|
}
|
|
6785
6782
|
function Zr(r, n, s, l, c) {
|
|
6786
|
-
return
|
|
6783
|
+
return cc(ac(r, l, c), n, s);
|
|
6787
6784
|
}
|
|
6788
|
-
function
|
|
6785
|
+
function lc(r, n, s) {
|
|
6789
6786
|
return r * (n === "horizontal" ? s.width : s.height);
|
|
6790
6787
|
}
|
|
6791
6788
|
function st(r, n, s, l, c) {
|
|
6792
|
-
return
|
|
6789
|
+
return lc(sc(r, n, s), l, c);
|
|
6793
6790
|
}
|
|
6794
6791
|
function Qr(r, n) {
|
|
6795
6792
|
const s = n.length;
|
|
@@ -6800,8 +6797,8 @@ function Qr(r, n) {
|
|
|
6800
6797
|
}
|
|
6801
6798
|
return n[l];
|
|
6802
6799
|
}
|
|
6803
|
-
|
|
6804
|
-
const
|
|
6800
|
+
rc.displayName = "RangeSlider";
|
|
6801
|
+
const uc = /* @__PURE__ */ Ee(({
|
|
6805
6802
|
children: r,
|
|
6806
6803
|
className: n,
|
|
6807
6804
|
isDeselectable: s = !1,
|
|
@@ -6836,8 +6833,8 @@ const fc = /* @__PURE__ */ Ee(({
|
|
|
6836
6833
|
}
|
|
6837
6834
|
);
|
|
6838
6835
|
});
|
|
6839
|
-
|
|
6840
|
-
const
|
|
6836
|
+
uc.displayName = "SelectableButton";
|
|
6837
|
+
const fc = /* @__PURE__ */ Ee(({
|
|
6841
6838
|
children: r,
|
|
6842
6839
|
className: n,
|
|
6843
6840
|
isInverted: s = !1,
|
|
@@ -6889,7 +6886,7 @@ const dc = /* @__PURE__ */ Ee(({
|
|
|
6889
6886
|
knob: eo,
|
|
6890
6887
|
label: to,
|
|
6891
6888
|
track: Sn
|
|
6892
|
-
}), W =
|
|
6889
|
+
}), W = dc({ orientation: g, isAtEnd: ce, isAtStart: H, isDragging: Y, isReleasing: X }), ae = hc({ orientation: g, isDragging: Y, naturalPosition: Z, knobHeight: c, knobWidth: u, isTrackInteractive: l });
|
|
6893
6890
|
return /* @__PURE__ */ S.jsx(
|
|
6894
6891
|
"div",
|
|
6895
6892
|
{
|
|
@@ -6933,7 +6930,7 @@ const dc = /* @__PURE__ */ Ee(({
|
|
|
6933
6930
|
}
|
|
6934
6931
|
);
|
|
6935
6932
|
}), Sn = ({ ...r }) => /* @__PURE__ */ S.jsx("div", { ...r }), eo = ({ ...r }) => /* @__PURE__ */ S.jsx("div", { ...r }), to = ({ ...r }) => /* @__PURE__ */ S.jsx("div", { ...r });
|
|
6936
|
-
function
|
|
6933
|
+
function dc({ orientation: r = "vertical", isAtEnd: n = !1, isAtStart: s = !1, isDragging: l = !1, isReleasing: c = !1 }) {
|
|
6937
6934
|
return {
|
|
6938
6935
|
root: ue(r, {
|
|
6939
6936
|
"at-end": n,
|
|
@@ -6961,7 +6958,7 @@ function hc({ orientation: r = "vertical", isAtEnd: n = !1, isAtStart: s = !1, i
|
|
|
6961
6958
|
})
|
|
6962
6959
|
};
|
|
6963
6960
|
}
|
|
6964
|
-
function
|
|
6961
|
+
function hc({ orientation: r = "vertical", isDragging: n = !1, naturalPosition: s = 0, knobHeight: l = 0, knobWidth: c = 0, isTrackInteractive: u = !0 }) {
|
|
6965
6962
|
return {
|
|
6966
6963
|
body: {
|
|
6967
6964
|
height: "100%",
|
|
@@ -7019,8 +7016,8 @@ function pc({ orientation: r = "vertical", isDragging: n = !1, naturalPosition:
|
|
|
7019
7016
|
}
|
|
7020
7017
|
};
|
|
7021
7018
|
}
|
|
7022
|
-
|
|
7023
|
-
const
|
|
7019
|
+
fc.displayName = "Slider";
|
|
7020
|
+
const pc = /* @__PURE__ */ Ee(({
|
|
7024
7021
|
children: r,
|
|
7025
7022
|
className: n,
|
|
7026
7023
|
index: s = 0,
|
|
@@ -7031,7 +7028,7 @@ const gc = /* @__PURE__ */ Ee(({
|
|
|
7031
7028
|
labelProvider: g,
|
|
7032
7029
|
onlyDispatchesOnDragEnd: v = !1,
|
|
7033
7030
|
orientation: w = "vertical",
|
|
7034
|
-
steps: x =
|
|
7031
|
+
steps: x = gc(10),
|
|
7035
7032
|
trackPadding: T = 0,
|
|
7036
7033
|
onDragEnd: P,
|
|
7037
7034
|
onDragStart: M,
|
|
@@ -7066,7 +7063,7 @@ const gc = /* @__PURE__ */ Ee(({
|
|
|
7066
7063
|
knob: no,
|
|
7067
7064
|
label: ro,
|
|
7068
7065
|
track: Pn
|
|
7069
|
-
}), z =
|
|
7066
|
+
}), z = vc({ orientation: w, isAtEnd: ae, isAtStart: A, isDragging: Z, isReleasing: ce }), te = mc({ orientation: w, naturalPosition: W, isDragging: Z, knobHeight: u, knobWidth: h, isTrackInteractive: c });
|
|
7070
7067
|
return pe(() => {
|
|
7071
7068
|
if (Z) return;
|
|
7072
7069
|
const D = Dt(s, x);
|
|
@@ -7124,7 +7121,7 @@ const gc = /* @__PURE__ */ Ee(({
|
|
|
7124
7121
|
}
|
|
7125
7122
|
);
|
|
7126
7123
|
}), Pn = ({ ...r }) => /* @__PURE__ */ S.jsx("div", { ...r }), no = ({ ...r }) => /* @__PURE__ */ S.jsx("div", { ...r }), ro = ({ ...r }) => /* @__PURE__ */ S.jsx("div", { ...r });
|
|
7127
|
-
function
|
|
7124
|
+
function gc(r) {
|
|
7128
7125
|
if (Math.round(r) !== r) throw new Error("`length` value must be an integer");
|
|
7129
7126
|
const n = 1 / (r - 1);
|
|
7130
7127
|
return Array(r).fill(null).map((s, l) => n * l);
|
|
@@ -7142,7 +7139,7 @@ function kn(r, n) {
|
|
|
7142
7139
|
function Dt(r, n) {
|
|
7143
7140
|
return r >= n.length ? NaN : n[r];
|
|
7144
7141
|
}
|
|
7145
|
-
function
|
|
7142
|
+
function vc({ orientation: r = "vertical", isAtEnd: n = !1, isAtStart: s = !1, isDragging: l = !1, isReleasing: c = !1 }) {
|
|
7146
7143
|
return {
|
|
7147
7144
|
root: ue(r, {
|
|
7148
7145
|
"at-end": n,
|
|
@@ -7170,7 +7167,7 @@ function mc({ orientation: r = "vertical", isAtEnd: n = !1, isAtStart: s = !1, i
|
|
|
7170
7167
|
})
|
|
7171
7168
|
};
|
|
7172
7169
|
}
|
|
7173
|
-
function
|
|
7170
|
+
function mc({ orientation: r = "vertical", naturalPosition: n = 0, isDragging: s = !1, knobHeight: l = 0, knobWidth: c = 0, isTrackInteractive: u = !1 }) {
|
|
7174
7171
|
return {
|
|
7175
7172
|
body: {
|
|
7176
7173
|
height: "100%",
|
|
@@ -7228,8 +7225,8 @@ function yc({ orientation: r = "vertical", naturalPosition: n = 0, isDragging: s
|
|
|
7228
7225
|
}
|
|
7229
7226
|
};
|
|
7230
7227
|
}
|
|
7231
|
-
|
|
7232
|
-
const
|
|
7228
|
+
pc.displayName = "StepSlider";
|
|
7229
|
+
const yc = /* @__PURE__ */ Ee(({
|
|
7233
7230
|
children: r,
|
|
7234
7231
|
isEnabled: n = !0,
|
|
7235
7232
|
threshold: s = 0.5,
|
|
@@ -7271,8 +7268,8 @@ const bc = /* @__PURE__ */ Ee(({
|
|
|
7271
7268
|
}
|
|
7272
7269
|
);
|
|
7273
7270
|
});
|
|
7274
|
-
|
|
7275
|
-
function
|
|
7271
|
+
yc.displayName = "SwipeRegion";
|
|
7272
|
+
function bc({
|
|
7276
7273
|
children: r,
|
|
7277
7274
|
className: n,
|
|
7278
7275
|
style: s,
|
|
@@ -7287,7 +7284,7 @@ function xc({
|
|
|
7287
7284
|
const x = () => {
|
|
7288
7285
|
const V = document.createElement("span");
|
|
7289
7286
|
V.className = ue(n), V.innerHTML = g, V.role = "tooltip";
|
|
7290
|
-
const J = l ?? (M.current ?
|
|
7287
|
+
const J = l ?? (M.current ? wc(M.current, w) : "tl"), R = xc(V), L = Tc({ alignment: J, arrowSize: Oe.make(u, c), gap: h, maxDialogWidth: v, fullDialogWidth: R.width, targetWidth: j.width }), Y = se(s, L.dialog);
|
|
7291
7288
|
Object.keys(Y).forEach((U) => V.style[U] = Y[U]);
|
|
7292
7289
|
const X = document.createElement("span");
|
|
7293
7290
|
return Object.keys(L.arrow).forEach((U) => X.style[U] = L.arrow[U]), V.appendChild(X), V;
|
|
@@ -7303,13 +7300,13 @@ function xc({
|
|
|
7303
7300
|
};
|
|
7304
7301
|
}, [l, c, u, n, h, g, v, s, M.current, w]), /* @__PURE__ */ S.jsx(ao, { ref: M, onMouseEnter: T, onMouseLeave: P, children: r });
|
|
7305
7302
|
}
|
|
7306
|
-
function
|
|
7303
|
+
function xc(r) {
|
|
7307
7304
|
const n = r.cloneNode(!1);
|
|
7308
7305
|
n.innerHTML = r.innerHTML, n.style.visibility = "hidden", n.style.whiteSpace = "pre", document.body.appendChild(n);
|
|
7309
7306
|
const s = n.getBoundingClientRect();
|
|
7310
7307
|
return document.body.removeChild(n), Oe.make(s.width, s.height);
|
|
7311
7308
|
}
|
|
7312
|
-
function
|
|
7309
|
+
function wc(r, n) {
|
|
7313
7310
|
const s = re.fromViewport(), l = re.intersecting(r);
|
|
7314
7311
|
if (l) {
|
|
7315
7312
|
const c = l.left - s.left < n, u = s.right - l.right < n, h = l.top - s.top < n, g = s.bottom - l.bottom < n;
|
|
@@ -7323,7 +7320,7 @@ function Ec(r, n) {
|
|
|
7323
7320
|
}
|
|
7324
7321
|
return "tc";
|
|
7325
7322
|
}
|
|
7326
|
-
function
|
|
7323
|
+
function Ec({ alignment: r, arrowSize: n, fullDialogWidth: s, gap: l, maxDialogWidth: c, targetWidth: u }) {
|
|
7327
7324
|
const h = Math.min(s, c), g = u > h;
|
|
7328
7325
|
switch (r) {
|
|
7329
7326
|
case "tl":
|
|
@@ -7380,7 +7377,7 @@ function Nc({ alignment: r, arrowSize: n, fullDialogWidth: s, gap: l, maxDialogW
|
|
|
7380
7377
|
throw Error(`Invalid alignment: ${r}`);
|
|
7381
7378
|
}
|
|
7382
7379
|
}
|
|
7383
|
-
function
|
|
7380
|
+
function Nc({ alignment: r, arrowSize: n, fullDialogWidth: s, maxDialogWidth: l, targetWidth: c }) {
|
|
7384
7381
|
const u = Math.min(s, l), h = c > u;
|
|
7385
7382
|
switch (r) {
|
|
7386
7383
|
case "tl":
|
|
@@ -7461,7 +7458,7 @@ function Tc({ alignment: r, arrowSize: n, fullDialogWidth: s, maxDialogWidth: l,
|
|
|
7461
7458
|
throw Error(`Invalid alignment: ${r}`);
|
|
7462
7459
|
}
|
|
7463
7460
|
}
|
|
7464
|
-
function
|
|
7461
|
+
function Tc({ alignment: r, arrowSize: n, fullDialogWidth: s, gap: l, maxDialogWidth: c, targetWidth: u }) {
|
|
7465
7462
|
return {
|
|
7466
7463
|
dialog: {
|
|
7467
7464
|
boxSizing: "border-box",
|
|
@@ -7473,18 +7470,18 @@ function Sc({ alignment: r, arrowSize: n, fullDialogWidth: s, gap: l, maxDialogW
|
|
|
7473
7470
|
userSelect: "none",
|
|
7474
7471
|
whiteSpace: s > c ? "normal" : "pre",
|
|
7475
7472
|
width: s > c ? `${c}px` : "",
|
|
7476
|
-
...
|
|
7473
|
+
...Ec({ alignment: r, arrowSize: n, fullDialogWidth: s, gap: l, maxDialogWidth: c, targetWidth: u })
|
|
7477
7474
|
},
|
|
7478
7475
|
arrow: {
|
|
7479
7476
|
background: "inherit",
|
|
7480
7477
|
position: "absolute",
|
|
7481
|
-
...
|
|
7478
|
+
...Nc({ alignment: r, arrowSize: n, fullDialogWidth: s, maxDialogWidth: c, targetWidth: u })
|
|
7482
7479
|
}
|
|
7483
7480
|
};
|
|
7484
7481
|
}
|
|
7485
|
-
|
|
7482
|
+
bc.displayName = "WithTooltip";
|
|
7486
7483
|
const No = /* @__PURE__ */ Fi(void 0);
|
|
7487
|
-
function
|
|
7484
|
+
function Sc({
|
|
7488
7485
|
children: r
|
|
7489
7486
|
}) {
|
|
7490
7487
|
const [n, s] = Pe({
|
|
@@ -7530,70 +7527,70 @@ function Lc(r) {
|
|
|
7530
7527
|
step: fe.make(g, v)
|
|
7531
7528
|
};
|
|
7532
7529
|
}
|
|
7533
|
-
|
|
7530
|
+
Sc.displayName = "ScrollPositionProvider";
|
|
7534
7531
|
export {
|
|
7535
|
-
|
|
7536
|
-
|
|
7537
|
-
|
|
7532
|
+
es as Accordion,
|
|
7533
|
+
ns as AccordionCollapseIcon,
|
|
7534
|
+
ts as AccordionExpandIcon,
|
|
7538
7535
|
Cr as AccordionHeader,
|
|
7539
7536
|
co as Burger,
|
|
7540
7537
|
An as BurgerBar,
|
|
7541
|
-
|
|
7538
|
+
is as BurgerButton,
|
|
7542
7539
|
Cc as BurgerButtonBar,
|
|
7543
|
-
|
|
7544
|
-
|
|
7540
|
+
as as Button,
|
|
7541
|
+
Ts as Carousel,
|
|
7545
7542
|
jn as Collection,
|
|
7546
|
-
|
|
7547
|
-
|
|
7543
|
+
Oc as Conditional,
|
|
7544
|
+
Os as Counter,
|
|
7548
7545
|
_r as CounterAddButton,
|
|
7549
7546
|
jr as CounterSubtractButton,
|
|
7550
7547
|
$r as CounterTextField,
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
-
|
|
7548
|
+
As as CoverImage,
|
|
7549
|
+
Cs as CoverImageContent,
|
|
7550
|
+
Ms as CoverImageViewport,
|
|
7551
|
+
Is as CoverVideo,
|
|
7552
|
+
_s as CoverVideoContent,
|
|
7553
|
+
$s as CoverVideoViewport,
|
|
7554
|
+
js as Dial,
|
|
7558
7555
|
zr as DialKnob,
|
|
7559
7556
|
Rr as DialTrack,
|
|
7560
|
-
|
|
7561
|
-
|
|
7562
|
-
|
|
7557
|
+
Ls as Dropdown,
|
|
7558
|
+
Bs as DropdownCollapseIcon,
|
|
7559
|
+
Fs as DropdownExpandIcon,
|
|
7563
7560
|
Fr as DropdownToggle,
|
|
7564
7561
|
Gt as Each,
|
|
7565
7562
|
ao as ExtractChild,
|
|
7566
|
-
|
|
7567
|
-
|
|
7563
|
+
Zi as ExtractChildren,
|
|
7564
|
+
Da as FlatSVG,
|
|
7568
7565
|
ho as Image,
|
|
7569
|
-
|
|
7570
|
-
|
|
7566
|
+
Wa as MasonryGrid,
|
|
7567
|
+
Ja as OptionButton,
|
|
7571
7568
|
wo as Panorama,
|
|
7572
|
-
|
|
7569
|
+
tc as PanoramaSlider,
|
|
7573
7570
|
qr as PanoramaSliderIndicator,
|
|
7574
7571
|
Gr as PanoramaSliderReticle,
|
|
7575
7572
|
Nn as PanoramaSliderTrack,
|
|
7576
|
-
|
|
7573
|
+
rc as RangeSlider,
|
|
7577
7574
|
Kr as RangeSliderGutter,
|
|
7578
7575
|
Jr as RangeSliderHighlight,
|
|
7579
7576
|
Tn as RangeSliderKnob,
|
|
7580
|
-
|
|
7577
|
+
oc as RangeSliderLabel,
|
|
7581
7578
|
On as Repeat,
|
|
7582
7579
|
No as ScrollPositionContext,
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
|
|
7580
|
+
Sc as ScrollPositionProvider,
|
|
7581
|
+
uc as SelectableButton,
|
|
7582
|
+
fc as Slider,
|
|
7586
7583
|
eo as SliderKnob,
|
|
7587
7584
|
to as SliderLabel,
|
|
7588
7585
|
Sn as SliderTrack,
|
|
7589
|
-
|
|
7586
|
+
pc as StepSlider,
|
|
7590
7587
|
no as StepSliderKnob,
|
|
7591
7588
|
ro as StepSliderLabel,
|
|
7592
7589
|
Pn as StepSliderTrack,
|
|
7593
|
-
|
|
7590
|
+
yc as SwipeRegion,
|
|
7594
7591
|
fo as TextField,
|
|
7595
7592
|
po as Video,
|
|
7596
|
-
|
|
7593
|
+
bc as WithTooltip,
|
|
7597
7594
|
Ac as asClassNameDict,
|
|
7598
7595
|
Ve as asComponentDict,
|
|
7599
7596
|
Mc as asStyleDict,
|
|
@@ -7602,12 +7599,12 @@ export {
|
|
|
7602
7599
|
Ar as createKeyDeep,
|
|
7603
7600
|
se as styles,
|
|
7604
7601
|
Ic as useClickOutside,
|
|
7605
|
-
|
|
7602
|
+
ds as useDrag,
|
|
7606
7603
|
Ot as useDragValue,
|
|
7607
7604
|
$c as useDropzone,
|
|
7608
|
-
|
|
7605
|
+
ys as useImageLoader,
|
|
7609
7606
|
lo as useImageSize,
|
|
7610
|
-
|
|
7607
|
+
ms as useInertiaDrag,
|
|
7611
7608
|
_c as useInterval,
|
|
7612
7609
|
qi as useMounted,
|
|
7613
7610
|
jc as usePosition,
|
|
@@ -7617,8 +7614,8 @@ export {
|
|
|
7617
7614
|
Rc as useSearchParamState,
|
|
7618
7615
|
Ji as useSize,
|
|
7619
7616
|
_n as useSizeObserver,
|
|
7620
|
-
|
|
7621
|
-
|
|
7622
|
-
|
|
7617
|
+
xs as useTimeout,
|
|
7618
|
+
ws as useVideoMetadataLoader,
|
|
7619
|
+
Es as useVideoSize,
|
|
7623
7620
|
zc as useViewportSize
|
|
7624
7621
|
};
|