@boxcustodia/library 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.es101.js +2 -2
- package/dist/index.es104.js +9 -4
- package/dist/index.es105.js +4 -14
- package/dist/index.es106.js +14 -5
- package/dist/index.es107.js +4 -56
- package/dist/index.es108.js +55 -222
- package/dist/index.es109.js +224 -11
- package/dist/index.es110.js +4 -4
- package/dist/index.es111.js +11 -41
- package/dist/index.es112.js +41 -11
- package/dist/index.es113.js +21 -33
- package/dist/index.es114.js +12 -21
- package/dist/index.es115.js +4 -5
- package/dist/index.es116.js +4 -3
- package/dist/index.es117.js +4 -5
- package/dist/index.es118.js +14 -14
- package/dist/index.es119.js +813 -55
- package/dist/index.es120.js +9 -822
- package/dist/index.es121.js +5 -3
- package/dist/index.es122.js +4 -11
- package/dist/index.es123.js +64 -4
- package/dist/index.es124.js +33 -13
- package/dist/index.es125.js +13 -33
- package/dist/index.es126.js +216 -13
- package/dist/index.es127.js +13 -8
- package/dist/index.es128.js +7 -215
- package/dist/index.es130.js +1 -1
- package/dist/index.es131.js +1 -1
- package/dist/index.es132.js +12 -9
- package/dist/index.es133.js +196 -204
- package/dist/index.es134.js +41 -10
- package/dist/index.es135.js +9 -12
- package/dist/index.es136.js +204 -196
- package/dist/index.es137.js +10 -41
- package/dist/index.es139.js +1 -1
- package/dist/index.es140.js +1 -1
- package/dist/index.es141.js +12 -6
- package/dist/index.es142.js +5 -63
- package/dist/index.es143.js +64 -10
- package/dist/index.es144.js +10 -124
- package/dist/index.es145.js +116 -126
- package/dist/index.es146.js +134 -13
- package/dist/index.es147.js +14 -33
- package/dist/index.es148.js +32 -14
- package/dist/index.es149.js +14 -8
- package/dist/index.es15.js +1 -1
- package/dist/index.es150.js +9 -50
- package/dist/index.es151.js +50 -6
- package/dist/index.es152.js +6 -2
- package/dist/index.es153.js +2 -44
- package/dist/index.es154.js +40 -646
- package/dist/index.es155.js +648 -11
- package/dist/index.es156.js +5 -5
- package/dist/index.es157.js +4 -4
- package/dist/index.es158.js +45 -3
- package/dist/index.es159.js +7 -45
- package/dist/index.es160.js +4 -8
- package/dist/index.es162.js +1 -1
- package/dist/index.es163.js +6 -118
- package/dist/index.es164.js +3 -35
- package/dist/index.es165.js +2054 -2
- package/dist/index.es166.js +118 -2
- package/dist/index.es167.js +33 -6
- package/dist/index.es168.js +4 -3
- package/dist/index.es169.js +2 -2054
- package/dist/index.es176.js +1 -1
- package/dist/index.es177.js +1 -1
- package/dist/index.es178.js +1 -1
- package/dist/index.es181.js +2 -2
- package/dist/index.es183.js +1 -1
- package/dist/index.es203.js +1 -1
- package/dist/index.es22.js +2 -2
- package/dist/index.es236.js +176 -19
- package/dist/index.es237.js +15 -3
- package/dist/index.es238.js +3 -32
- package/dist/index.es239.js +32 -12
- package/dist/index.es240.js +17 -177
- package/dist/index.es242.js +5 -5
- package/dist/index.es243.js +16 -18
- package/dist/index.es246.js +1 -1
- package/dist/index.es247.js +1 -1
- package/dist/index.es248.js +3 -3
- package/dist/index.es27.js +1 -1
- package/dist/index.es275.js +12 -12
- package/dist/index.es276.js +2 -2
- package/dist/index.es277.js +2 -2
- package/dist/index.es278.js +8 -8
- package/dist/index.es279.js +2 -2
- package/dist/index.es28.js +1 -1
- package/dist/index.es283.js +16 -15
- package/dist/index.es284.js +8 -3
- package/dist/index.es285.js +15 -16
- package/dist/index.es286.js +3 -8
- package/dist/index.es29.js +3 -3
- package/dist/index.es30.js +23 -23
- package/dist/index.es32.js +2 -2
- package/dist/index.es325.js +1 -1
- package/dist/index.es33.js +2 -2
- package/dist/index.es335.js +3 -3
- package/dist/index.es338.js +1 -1
- package/dist/index.es339.js +1 -1
- package/dist/index.es34.js +46 -35
- package/dist/index.es342.js +2 -2
- package/dist/index.es343.js +2 -2
- package/dist/index.es35.js +2 -2
- package/dist/index.es350.js +2 -29
- package/dist/index.es351.js +106 -5
- package/dist/index.es352.js +76 -2
- package/dist/index.es353.js +36 -107
- package/dist/index.es354.js +60 -73
- package/dist/index.es355.js +28 -30
- package/dist/index.es356.js +63 -61
- package/dist/index.es357.js +109 -30
- package/dist/index.es358.js +87 -59
- package/dist/index.es359.js +40 -110
- package/dist/index.es360.js +3 -94
- package/dist/index.es361.js +3 -43
- package/dist/index.es362.js +2 -2
- package/dist/index.es363.js +2 -2
- package/dist/index.es364.js +2 -2
- package/dist/index.es366.js +2 -2
- package/dist/index.es367.js +2 -2
- package/dist/index.es368.js +2 -2
- package/dist/index.es369.js +241 -4
- package/dist/index.es370.js +384 -4
- package/dist/index.es371.js +132 -204
- package/dist/index.es372.js +103 -334
- package/dist/index.es373.js +75 -102
- package/dist/index.es374.js +4 -153
- package/dist/index.es375.js +4 -142
- package/dist/index.es376.js +2 -2
- package/dist/index.es377.js +2 -2
- package/dist/index.es378.js +2 -2
- package/dist/index.es379.js +2 -2
- package/dist/index.es38.js +1 -1
- package/dist/index.es380.js +29 -2
- package/dist/index.es381.js +5 -2
- package/dist/index.es39.js +1 -1
- package/dist/index.es393.js +1 -1
- package/dist/index.es394.js +1 -1
- package/dist/index.es404.js +68 -2
- package/dist/index.es405.js +31 -47
- package/dist/index.es406.js +16 -83
- package/dist/index.es407.js +140 -13
- package/dist/index.es408.js +113 -340
- package/dist/index.es409.js +507 -63
- package/dist/index.es41.js +1 -1
- package/dist/index.es410.js +126 -10
- package/dist/index.es411.js +117 -510
- package/dist/index.es412.js +64 -116
- package/dist/index.es413.js +10 -125
- package/dist/index.es414.js +2 -68
- package/dist/index.es415.js +47 -31
- package/dist/index.es416.js +83 -16
- package/dist/index.es417.js +13 -140
- package/dist/index.es418.js +340 -113
- package/dist/index.es43.js +1 -1
- package/dist/index.es439.js +2 -2
- package/dist/index.es44.js +4 -4
- package/dist/index.es441.js +275 -3
- package/dist/index.es442.js +78 -105
- package/dist/index.es443.js +166 -2
- package/dist/index.es444.js +3 -2
- package/dist/index.es445.js +100 -268
- package/dist/index.es446.js +2 -80
- package/dist/index.es447.js +2 -166
- package/dist/index.es45.js +1 -1
- package/dist/index.es46.js +5 -5
- package/dist/index.es475.js +1 -1
- package/dist/index.es476.js +1 -1
- package/dist/index.es49.js +2 -2
- package/dist/index.es50.js +1 -1
- package/dist/index.es51.js +4 -4
- package/dist/index.es54.js +1 -1
- package/dist/index.es57.js +3 -3
- package/dist/index.es59.js +2 -2
- package/dist/index.es61.js +1 -1
- package/dist/index.es62.js +1 -1
- package/dist/index.es63.js +2 -2
- package/dist/index.es64.js +1 -1
- package/dist/index.es65.js +3 -3
- package/dist/index.es66.js +2 -2
- package/dist/index.es67.js +2 -2
- package/dist/index.es753.js +5 -5
- package/dist/index.es754.js +22 -14
- package/dist/index.es755.js +82 -59
- package/dist/index.es756.js +14 -22
- package/dist/index.es757.js +59 -82
- package/dist/index.es769.js +2 -8
- package/dist/index.es770.js +2 -56
- package/dist/index.es771.js +7 -18
- package/dist/index.es772.js +56 -2
- package/dist/index.es773.js +19 -2
- package/dist/index.es780.js +28 -28
- package/dist/index.es782.js +5 -5
- package/dist/index.es783.js +13 -17
- package/dist/index.es785.js +5 -11
- package/dist/index.es786.js +28 -28
- package/dist/index.es787.js +5 -5
- package/dist/index.es788.js +17 -13
- package/dist/index.es789.js +11 -5
- package/dist/index.es79.js +1 -1
- package/dist/index.es790.js +1 -1
- package/dist/index.es796.js +1 -1
- package/dist/index.es797.js +1 -1
- package/dist/index.es798.js +1 -1
- package/dist/index.es799.js +1 -1
- package/dist/index.es80.js +1 -1
- package/dist/index.es801.js +1 -1
- package/dist/index.es805.js +8 -10
- package/dist/index.es806.js +9 -7
- package/dist/index.es807.js +1 -1
- package/dist/index.es808.js +10 -8
- package/dist/index.es809.js +7 -9
- package/dist/index.es810.js +5 -5
- package/dist/index.es811.js +2 -2
- package/dist/index.es812.js +1 -1
- package/dist/index.es814.js +2 -2
- package/dist/index.es822.js +1 -1
- package/dist/index.es824.js +25 -38
- package/dist/index.es825.js +38 -25
- package/dist/index.es826.js +15 -64
- package/dist/index.es827.js +7 -11
- package/dist/index.es828.js +61 -38
- package/dist/index.es829.js +7 -54
- package/dist/index.es830.js +40 -16
- package/dist/index.es831.js +57 -17
- package/dist/index.es832.js +20 -7
- package/dist/index.es833.js +1 -1
- package/dist/index.es84.js +305 -33
- package/dist/index.es85.js +12 -46
- package/dist/index.es86.js +34 -29
- package/dist/index.es87.js +42 -26
- package/dist/index.es88.js +27 -304
- package/dist/index.es89.js +30 -12
- package/dist/index.es90.js +55 -9
- package/dist/index.es91.js +52 -52
- package/dist/index.es92.js +92 -55
- package/dist/index.es93.js +34 -87
- package/dist/index.es94.js +23 -36
- package/dist/index.es95.js +24 -18
- package/dist/index.es96.js +257 -28
- package/dist/index.es97.js +5 -5
- package/dist/index.es98.js +32 -258
- package/dist/index.es99.js +5 -5
- package/dist/style.css +8 -8
- package/package.json +1 -1
package/dist/index.es412.js
CHANGED
|
@@ -1,129 +1,77 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
y
|
|
4
|
-
|
|
5
|
-
left: "right",
|
|
6
|
-
right: "left",
|
|
7
|
-
bottom: "top",
|
|
8
|
-
top: "bottom"
|
|
9
|
-
}, a = {
|
|
10
|
-
start: "end",
|
|
11
|
-
end: "start"
|
|
12
|
-
};
|
|
13
|
-
function w(t, n, e) {
|
|
14
|
-
return m(t, l(n, e));
|
|
15
|
-
}
|
|
16
|
-
function j(t, n) {
|
|
17
|
-
return typeof t == "function" ? t(n) : t;
|
|
18
|
-
}
|
|
19
|
-
function u(t) {
|
|
20
|
-
return t.split("-")[0];
|
|
21
|
-
}
|
|
22
|
-
function g(t) {
|
|
23
|
-
return t.split("-")[1];
|
|
24
|
-
}
|
|
25
|
-
function h(t) {
|
|
26
|
-
return t === "x" ? "y" : "x";
|
|
27
|
-
}
|
|
28
|
-
function b(t) {
|
|
29
|
-
return t === "y" ? "height" : "width";
|
|
30
|
-
}
|
|
31
|
-
function x(t) {
|
|
32
|
-
return ["top", "bottom"].includes(u(t)) ? "y" : "x";
|
|
33
|
-
}
|
|
34
|
-
function d(t) {
|
|
35
|
-
return h(x(t));
|
|
36
|
-
}
|
|
37
|
-
function C(t, n, e) {
|
|
38
|
-
e === void 0 && (e = !1);
|
|
39
|
-
const r = g(t), o = d(t), i = b(o);
|
|
40
|
-
let c = o === "x" ? r === (e ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
41
|
-
return n.reference[i] > n.floating[i] && (c = f(c)), [c, f(c)];
|
|
1
|
+
import { isItem as h, bound as a, isClosed as x, isOpenWithEmptyChildren as m, indexOf as I } from "./index.es257.js";
|
|
2
|
+
function w(e, t) {
|
|
3
|
+
const o = e.getBoundingClientRect(), r = t.x - Math.round(o.x), d = t.y - Math.round(o.y), l = o.height, c = d < l / 2, p = !c, n = l / 4, i = d > n && d < l - n;
|
|
4
|
+
return { x: r, inTopHalf: c, inBottomHalf: p, inMiddle: i, atTop: !i && c, atBottom: !i && p };
|
|
42
5
|
}
|
|
43
|
-
function
|
|
44
|
-
|
|
45
|
-
return [s(t), n, s(n)];
|
|
6
|
+
function M(e, t, o, r) {
|
|
7
|
+
return e ? e.isInternal ? r.atTop ? [t, e] : r.inMiddle ? [e, e] : [e, o] : r.inTopHalf ? [t, e] : [e, o] : [t, null];
|
|
46
8
|
}
|
|
47
|
-
function
|
|
48
|
-
return
|
|
9
|
+
function v(e, t) {
|
|
10
|
+
return { parentId: e || null, index: t };
|
|
49
11
|
}
|
|
50
|
-
function
|
|
51
|
-
const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], c = ["bottom", "top"];
|
|
52
|
-
switch (t) {
|
|
53
|
-
case "top":
|
|
54
|
-
case "bottom":
|
|
55
|
-
return e ? n ? o : r : n ? r : o;
|
|
56
|
-
case "left":
|
|
57
|
-
case "right":
|
|
58
|
-
return n ? i : c;
|
|
59
|
-
default:
|
|
60
|
-
return [];
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
function E(t, n, e, r) {
|
|
64
|
-
const o = g(t);
|
|
65
|
-
let i = A(u(t), e === "start", r);
|
|
66
|
-
return o && (i = i.map((c) => c + "-" + o), n && (i = i.concat(i.map(s)))), i;
|
|
67
|
-
}
|
|
68
|
-
function f(t) {
|
|
69
|
-
return t.replace(/left|right|bottom|top/g, (n) => p[n]);
|
|
70
|
-
}
|
|
71
|
-
function y(t) {
|
|
12
|
+
function s(e, t) {
|
|
72
13
|
return {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
left: 0,
|
|
77
|
-
...t
|
|
14
|
+
type: "line",
|
|
15
|
+
index: e,
|
|
16
|
+
level: t
|
|
78
17
|
};
|
|
79
18
|
}
|
|
80
|
-
function
|
|
81
|
-
return
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
bottom: t,
|
|
85
|
-
left: t
|
|
19
|
+
function g(e) {
|
|
20
|
+
return {
|
|
21
|
+
type: "highlight",
|
|
22
|
+
id: e
|
|
86
23
|
};
|
|
87
24
|
}
|
|
88
|
-
function
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
25
|
+
function f(e, t) {
|
|
26
|
+
var o;
|
|
27
|
+
let r = e;
|
|
28
|
+
for (; r.parent && r.level > t; )
|
|
29
|
+
r = r.parent;
|
|
30
|
+
const d = ((o = r.parent) === null || o === void 0 ? void 0 : o.id) || null, l = I(r) + 1;
|
|
31
|
+
return { parentId: d, index: l };
|
|
32
|
+
}
|
|
33
|
+
function T(e) {
|
|
34
|
+
var t;
|
|
35
|
+
const o = w(e.element, e.offset), r = e.indent, d = Math.round(Math.max(0, o.x - r) / r), { node: l, nextNode: c, prevNode: p } = e, [n, i] = M(l, p, c, o);
|
|
36
|
+
if (l && l.isInternal && o.inMiddle)
|
|
37
|
+
return {
|
|
38
|
+
drop: v(l.id, null),
|
|
39
|
+
cursor: g(l.id)
|
|
40
|
+
};
|
|
41
|
+
if (!n)
|
|
42
|
+
return {
|
|
43
|
+
drop: v((t = i == null ? void 0 : i.parent) === null || t === void 0 ? void 0 : t.id, 0),
|
|
44
|
+
cursor: s(0, 0)
|
|
45
|
+
};
|
|
46
|
+
if (h(n)) {
|
|
47
|
+
const u = a(d, (i == null ? void 0 : i.level) || 0, n.level);
|
|
48
|
+
return {
|
|
49
|
+
drop: f(n, u),
|
|
50
|
+
cursor: s(n.rowIndex + 1, u)
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
if (x(n)) {
|
|
54
|
+
const u = a(d, (i == null ? void 0 : i.level) || 0, n.level);
|
|
55
|
+
return {
|
|
56
|
+
drop: f(n, u),
|
|
57
|
+
cursor: s(n.rowIndex + 1, u)
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
if (m(n)) {
|
|
61
|
+
const u = a(d, 0, n.level + 1);
|
|
62
|
+
return u > n.level ? {
|
|
63
|
+
drop: v(n.id, 0),
|
|
64
|
+
cursor: s(n.rowIndex + 1, u)
|
|
65
|
+
} : {
|
|
66
|
+
drop: f(n, u),
|
|
67
|
+
cursor: s(n.rowIndex + 1, u)
|
|
68
|
+
};
|
|
69
|
+
}
|
|
95
70
|
return {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
top: e,
|
|
99
|
-
left: n,
|
|
100
|
-
right: n + r,
|
|
101
|
-
bottom: e + o,
|
|
102
|
-
x: n,
|
|
103
|
-
y: e
|
|
71
|
+
drop: v(n == null ? void 0 : n.id, 0),
|
|
72
|
+
cursor: s(n.rowIndex + 1, n.level + 1)
|
|
104
73
|
};
|
|
105
74
|
}
|
|
106
75
|
export {
|
|
107
|
-
|
|
108
|
-
S as createCoords,
|
|
109
|
-
j as evaluate,
|
|
110
|
-
y as expandPaddingObject,
|
|
111
|
-
O as floor,
|
|
112
|
-
g as getAlignment,
|
|
113
|
-
d as getAlignmentAxis,
|
|
114
|
-
C as getAlignmentSides,
|
|
115
|
-
b as getAxisLength,
|
|
116
|
-
L as getExpandedPlacements,
|
|
117
|
-
s as getOppositeAlignmentPlacement,
|
|
118
|
-
h as getOppositeAxis,
|
|
119
|
-
E as getOppositeAxisPlacements,
|
|
120
|
-
f as getOppositePlacement,
|
|
121
|
-
R as getPaddingObject,
|
|
122
|
-
u as getSide,
|
|
123
|
-
x as getSideAxis,
|
|
124
|
-
m as max,
|
|
125
|
-
l as min,
|
|
126
|
-
T as rectToClientRect,
|
|
127
|
-
M as round,
|
|
128
|
-
P as sides
|
|
76
|
+
T as computeDrop
|
|
129
77
|
};
|
package/dist/index.es413.js
CHANGED
|
@@ -1,128 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return (t = (d(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : t.documentElement;
|
|
11
|
-
}
|
|
12
|
-
function d(n) {
|
|
13
|
-
return n instanceof Node || n instanceof c(n).Node;
|
|
14
|
-
}
|
|
15
|
-
function p(n) {
|
|
16
|
-
return n instanceof Element || n instanceof c(n).Element;
|
|
17
|
-
}
|
|
18
|
-
function m(n) {
|
|
19
|
-
return n instanceof HTMLElement || n instanceof c(n).HTMLElement;
|
|
20
|
-
}
|
|
21
|
-
function f(n) {
|
|
22
|
-
return typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof c(n).ShadowRoot;
|
|
23
|
-
}
|
|
24
|
-
function w(n) {
|
|
25
|
-
const {
|
|
26
|
-
overflow: t,
|
|
27
|
-
overflowX: e,
|
|
28
|
-
overflowY: o,
|
|
29
|
-
display: r
|
|
30
|
-
} = g(n);
|
|
31
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + o + e) && !["inline", "contents"].includes(r);
|
|
32
|
-
}
|
|
33
|
-
function L(n) {
|
|
34
|
-
return ["table", "td", "th"].includes(l(n));
|
|
35
|
-
}
|
|
36
|
-
function E(n) {
|
|
37
|
-
return [":popover-open", ":modal"].some((t) => {
|
|
38
|
-
try {
|
|
39
|
-
return n.matches(t);
|
|
40
|
-
} catch {
|
|
41
|
-
return !1;
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
function N(n) {
|
|
46
|
-
const t = T(), e = p(n) ? g(n) : n;
|
|
47
|
-
return e.transform !== "none" || e.perspective !== "none" || (e.containerType ? e.containerType !== "normal" : !1) || !t && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !t && (e.filter ? e.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (e.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (e.contain || "").includes(o));
|
|
48
|
-
}
|
|
49
|
-
function D(n) {
|
|
50
|
-
let t = u(n);
|
|
51
|
-
for (; m(t) && !y(t); ) {
|
|
52
|
-
if (N(t))
|
|
53
|
-
return t;
|
|
54
|
-
if (E(t))
|
|
55
|
-
return null;
|
|
56
|
-
t = u(t);
|
|
57
|
-
}
|
|
58
|
-
return null;
|
|
59
|
-
}
|
|
60
|
-
function T() {
|
|
61
|
-
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
62
|
-
}
|
|
63
|
-
function y(n) {
|
|
64
|
-
return ["html", "body", "#document"].includes(l(n));
|
|
65
|
-
}
|
|
66
|
-
function g(n) {
|
|
67
|
-
return c(n).getComputedStyle(n);
|
|
68
|
-
}
|
|
69
|
-
function k(n) {
|
|
70
|
-
return p(n) ? {
|
|
71
|
-
scrollLeft: n.scrollLeft,
|
|
72
|
-
scrollTop: n.scrollTop
|
|
73
|
-
} : {
|
|
74
|
-
scrollLeft: n.scrollX,
|
|
75
|
-
scrollTop: n.scrollY
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
function u(n) {
|
|
79
|
-
if (l(n) === "html")
|
|
80
|
-
return n;
|
|
81
|
-
const t = (
|
|
82
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
83
|
-
n.assignedSlot || // DOM Element detected.
|
|
84
|
-
n.parentNode || // ShadowRoot detected.
|
|
85
|
-
f(n) && n.host || // Fallback.
|
|
86
|
-
S(n)
|
|
87
|
-
);
|
|
88
|
-
return f(t) ? t.host : t;
|
|
89
|
-
}
|
|
90
|
-
function b(n) {
|
|
91
|
-
const t = u(n);
|
|
92
|
-
return y(t) ? n.ownerDocument ? n.ownerDocument.body : n.body : m(t) && w(t) ? t : b(t);
|
|
93
|
-
}
|
|
94
|
-
function a(n, t, e) {
|
|
95
|
-
var o;
|
|
96
|
-
t === void 0 && (t = []), e === void 0 && (e = !0);
|
|
97
|
-
const r = b(n), h = r === ((o = n.ownerDocument) == null ? void 0 : o.body), i = c(r);
|
|
98
|
-
if (h) {
|
|
99
|
-
const s = v(i);
|
|
100
|
-
return t.concat(i, i.visualViewport || [], w(r) ? r : [], s && e ? a(s) : []);
|
|
101
|
-
}
|
|
102
|
-
return t.concat(r, a(r, [], e));
|
|
103
|
-
}
|
|
104
|
-
function v(n) {
|
|
105
|
-
return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
|
|
1
|
+
import { useRegisteredDropTarget as m } from "./index.es780.js";
|
|
2
|
+
import { useOptionalFactory as n } from "./index.es781.js";
|
|
3
|
+
import { useDropTargetMonitor as i } from "./index.es782.js";
|
|
4
|
+
import { useDropTargetConnector as s } from "./index.es783.js";
|
|
5
|
+
import { useCollectedProps as c } from "./index.es784.js";
|
|
6
|
+
import { useConnectDropTarget as a } from "./index.es785.js";
|
|
7
|
+
function v(e, p) {
|
|
8
|
+
var o = n(e, p), t = i(), r = s(o.options);
|
|
9
|
+
return m(o, t, r), [c(o.collect, t, r), a(r)];
|
|
106
10
|
}
|
|
107
11
|
export {
|
|
108
|
-
|
|
109
|
-
D as getContainingBlock,
|
|
110
|
-
S as getDocumentElement,
|
|
111
|
-
v as getFrameElement,
|
|
112
|
-
b as getNearestOverflowAncestor,
|
|
113
|
-
l as getNodeName,
|
|
114
|
-
k as getNodeScroll,
|
|
115
|
-
a as getOverflowAncestors,
|
|
116
|
-
u as getParentNode,
|
|
117
|
-
c as getWindow,
|
|
118
|
-
N as isContainingBlock,
|
|
119
|
-
p as isElement,
|
|
120
|
-
m as isHTMLElement,
|
|
121
|
-
y as isLastTraversableNode,
|
|
122
|
-
d as isNode,
|
|
123
|
-
w as isOverflowElement,
|
|
124
|
-
f as isShadowRoot,
|
|
125
|
-
L as isTableElement,
|
|
126
|
-
E as isTopLayer,
|
|
127
|
-
T as isWebKit
|
|
12
|
+
v as useDrop
|
|
128
13
|
};
|
package/dist/index.es414.js
CHANGED
|
@@ -1,70 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
lessThanXSeconds: {
|
|
3
|
-
one: "menos de un segundo",
|
|
4
|
-
other: "menos de {{count}} segundos"
|
|
5
|
-
},
|
|
6
|
-
xSeconds: {
|
|
7
|
-
one: "1 segundo",
|
|
8
|
-
other: "{{count}} segundos"
|
|
9
|
-
},
|
|
10
|
-
halfAMinute: "medio minuto",
|
|
11
|
-
lessThanXMinutes: {
|
|
12
|
-
one: "menos de un minuto",
|
|
13
|
-
other: "menos de {{count}} minutos"
|
|
14
|
-
},
|
|
15
|
-
xMinutes: {
|
|
16
|
-
one: "1 minuto",
|
|
17
|
-
other: "{{count}} minutos"
|
|
18
|
-
},
|
|
19
|
-
aboutXHours: {
|
|
20
|
-
one: "alrededor de 1 hora",
|
|
21
|
-
other: "alrededor de {{count}} horas"
|
|
22
|
-
},
|
|
23
|
-
xHours: {
|
|
24
|
-
one: "1 hora",
|
|
25
|
-
other: "{{count}} horas"
|
|
26
|
-
},
|
|
27
|
-
xDays: {
|
|
28
|
-
one: "1 día",
|
|
29
|
-
other: "{{count}} días"
|
|
30
|
-
},
|
|
31
|
-
aboutXWeeks: {
|
|
32
|
-
one: "alrededor de 1 semana",
|
|
33
|
-
other: "alrededor de {{count}} semanas"
|
|
34
|
-
},
|
|
35
|
-
xWeeks: {
|
|
36
|
-
one: "1 semana",
|
|
37
|
-
other: "{{count}} semanas"
|
|
38
|
-
},
|
|
39
|
-
aboutXMonths: {
|
|
40
|
-
one: "alrededor de 1 mes",
|
|
41
|
-
other: "alrededor de {{count}} meses"
|
|
42
|
-
},
|
|
43
|
-
xMonths: {
|
|
44
|
-
one: "1 mes",
|
|
45
|
-
other: "{{count}} meses"
|
|
46
|
-
},
|
|
47
|
-
aboutXYears: {
|
|
48
|
-
one: "alrededor de 1 año",
|
|
49
|
-
other: "alrededor de {{count}} años"
|
|
50
|
-
},
|
|
51
|
-
xYears: {
|
|
52
|
-
one: "1 año",
|
|
53
|
-
other: "{{count}} años"
|
|
54
|
-
},
|
|
55
|
-
overXYears: {
|
|
56
|
-
one: "más de 1 año",
|
|
57
|
-
other: "más de {{count}} años"
|
|
58
|
-
},
|
|
59
|
-
almostXYears: {
|
|
60
|
-
one: "casi 1 año",
|
|
61
|
-
other: "casi {{count}} años"
|
|
62
|
-
}
|
|
63
|
-
}, a = (r, s, o) => {
|
|
64
|
-
let e;
|
|
65
|
-
const n = t[r];
|
|
66
|
-
return typeof n == "string" ? e = n : s === 1 ? e = n.one : e = n.other.replace("{{count}}", s.toString()), o != null && o.addSuffix ? o.comparison && o.comparison > 0 ? "en " + e : "hace " + e : e;
|
|
67
|
-
};
|
|
1
|
+
var e = { exports: {} };
|
|
68
2
|
export {
|
|
69
|
-
|
|
3
|
+
e as __module
|
|
70
4
|
};
|
package/dist/index.es415.js
CHANGED
|
@@ -1,33 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
1
|
+
import { __exports as f } from "./index.es464.js";
|
|
2
|
+
import h from "react";
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* use-sync-external-store-shim.production.min.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var s;
|
|
13
|
+
function w() {
|
|
14
|
+
if (s) return f;
|
|
15
|
+
s = 1;
|
|
16
|
+
var u = h;
|
|
17
|
+
function a(e, t) {
|
|
18
|
+
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
19
|
+
}
|
|
20
|
+
var S = typeof Object.is == "function" ? Object.is : a, d = u.useState, p = u.useEffect, m = u.useLayoutEffect, l = u.useDebugValue;
|
|
21
|
+
function y(e, t) {
|
|
22
|
+
var r = t(), i = d({ inst: { value: r, getSnapshot: t } }), n = i[0].inst, c = i[1];
|
|
23
|
+
return m(function() {
|
|
24
|
+
n.value = r, n.getSnapshot = t, o(n) && c({ inst: n });
|
|
25
|
+
}, [e, r, t]), p(function() {
|
|
26
|
+
return o(n) && c({ inst: n }), e(function() {
|
|
27
|
+
o(n) && c({ inst: n });
|
|
28
|
+
});
|
|
29
|
+
}, [e]), l(r), r;
|
|
30
|
+
}
|
|
31
|
+
function o(e) {
|
|
32
|
+
var t = e.getSnapshot;
|
|
33
|
+
e = e.value;
|
|
34
|
+
try {
|
|
35
|
+
var r = t();
|
|
36
|
+
return !S(e, r);
|
|
37
|
+
} catch {
|
|
38
|
+
return !0;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function _(e, t) {
|
|
42
|
+
return t();
|
|
43
|
+
}
|
|
44
|
+
var v = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? _ : y;
|
|
45
|
+
return f.useSyncExternalStore = u.useSyncExternalStore !== void 0 ? u.useSyncExternalStore : v, f;
|
|
46
|
+
}
|
|
31
47
|
export {
|
|
32
|
-
|
|
48
|
+
w as __require
|
|
33
49
|
};
|
package/dist/index.es416.js
CHANGED
|
@@ -1,18 +1,85 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { __exports as c } from "./index.es465.js";
|
|
2
|
+
import I from "react";
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* use-sync-external-store-shim.development.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var p;
|
|
13
|
+
function G() {
|
|
14
|
+
return p ? c : (p = 1, process.env.NODE_ENV !== "production" && function() {
|
|
15
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
16
|
+
var o = I, O = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
17
|
+
function _(t) {
|
|
18
|
+
{
|
|
19
|
+
for (var e = arguments.length, r = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
|
|
20
|
+
r[n - 1] = arguments[n];
|
|
21
|
+
E("error", t, r);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function E(t, e, r) {
|
|
25
|
+
{
|
|
26
|
+
var n = O.ReactDebugCurrentFrame, u = n.getStackAddendum();
|
|
27
|
+
u !== "" && (e += "%s", r = r.concat([u]));
|
|
28
|
+
var i = r.map(function(a) {
|
|
29
|
+
return String(a);
|
|
30
|
+
});
|
|
31
|
+
i.unshift("Warning: " + e), Function.prototype.apply.call(console[t], console, i);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function v(t, e) {
|
|
35
|
+
return t === e && (t !== 0 || 1 / t === 1 / e) || t !== t && e !== e;
|
|
36
|
+
}
|
|
37
|
+
var l = typeof Object.is == "function" ? Object.is : v, h = o.useState, L = o.useEffect, y = o.useLayoutEffect, m = o.useDebugValue, S = !1, d = !1;
|
|
38
|
+
function T(t, e, r) {
|
|
39
|
+
S || o.startTransition !== void 0 && (S = !0, _("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
40
|
+
var n = e();
|
|
41
|
+
if (!d) {
|
|
42
|
+
var u = e();
|
|
43
|
+
l(n, u) || (_("The result of getSnapshot should be cached to avoid an infinite loop"), d = !0);
|
|
44
|
+
}
|
|
45
|
+
var i = h({
|
|
46
|
+
inst: {
|
|
47
|
+
value: n,
|
|
48
|
+
getSnapshot: e
|
|
49
|
+
}
|
|
50
|
+
}), a = i[0].inst, f = i[1];
|
|
51
|
+
return y(function() {
|
|
52
|
+
a.value = n, a.getSnapshot = e, s(a) && f({
|
|
53
|
+
inst: a
|
|
54
|
+
});
|
|
55
|
+
}, [t, n, e]), L(function() {
|
|
56
|
+
s(a) && f({
|
|
57
|
+
inst: a
|
|
58
|
+
});
|
|
59
|
+
var C = function() {
|
|
60
|
+
s(a) && f({
|
|
61
|
+
inst: a
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
return t(C);
|
|
65
|
+
}, [t]), m(n), n;
|
|
66
|
+
}
|
|
67
|
+
function s(t) {
|
|
68
|
+
var e = t.getSnapshot, r = t.value;
|
|
69
|
+
try {
|
|
70
|
+
var n = e();
|
|
71
|
+
return !l(r, n);
|
|
72
|
+
} catch {
|
|
73
|
+
return !0;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
function g(t, e, r) {
|
|
77
|
+
return e();
|
|
78
|
+
}
|
|
79
|
+
var A = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", R = !A, D = R ? g : T, w = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : D;
|
|
80
|
+
c.useSyncExternalStore = w, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
81
|
+
}(), c);
|
|
82
|
+
}
|
|
16
83
|
export {
|
|
17
|
-
|
|
84
|
+
G as __require
|
|
18
85
|
};
|