@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.
Files changed (248) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.es101.js +2 -2
  3. package/dist/index.es104.js +9 -4
  4. package/dist/index.es105.js +4 -14
  5. package/dist/index.es106.js +14 -5
  6. package/dist/index.es107.js +4 -56
  7. package/dist/index.es108.js +55 -222
  8. package/dist/index.es109.js +224 -11
  9. package/dist/index.es110.js +4 -4
  10. package/dist/index.es111.js +11 -41
  11. package/dist/index.es112.js +41 -11
  12. package/dist/index.es113.js +21 -33
  13. package/dist/index.es114.js +12 -21
  14. package/dist/index.es115.js +4 -5
  15. package/dist/index.es116.js +4 -3
  16. package/dist/index.es117.js +4 -5
  17. package/dist/index.es118.js +14 -14
  18. package/dist/index.es119.js +813 -55
  19. package/dist/index.es120.js +9 -822
  20. package/dist/index.es121.js +5 -3
  21. package/dist/index.es122.js +4 -11
  22. package/dist/index.es123.js +64 -4
  23. package/dist/index.es124.js +33 -13
  24. package/dist/index.es125.js +13 -33
  25. package/dist/index.es126.js +216 -13
  26. package/dist/index.es127.js +13 -8
  27. package/dist/index.es128.js +7 -215
  28. package/dist/index.es130.js +1 -1
  29. package/dist/index.es131.js +1 -1
  30. package/dist/index.es132.js +12 -9
  31. package/dist/index.es133.js +196 -204
  32. package/dist/index.es134.js +41 -10
  33. package/dist/index.es135.js +9 -12
  34. package/dist/index.es136.js +204 -196
  35. package/dist/index.es137.js +10 -41
  36. package/dist/index.es139.js +1 -1
  37. package/dist/index.es140.js +1 -1
  38. package/dist/index.es141.js +12 -6
  39. package/dist/index.es142.js +5 -63
  40. package/dist/index.es143.js +64 -10
  41. package/dist/index.es144.js +10 -124
  42. package/dist/index.es145.js +116 -126
  43. package/dist/index.es146.js +134 -13
  44. package/dist/index.es147.js +14 -33
  45. package/dist/index.es148.js +32 -14
  46. package/dist/index.es149.js +14 -8
  47. package/dist/index.es15.js +1 -1
  48. package/dist/index.es150.js +9 -50
  49. package/dist/index.es151.js +50 -6
  50. package/dist/index.es152.js +6 -2
  51. package/dist/index.es153.js +2 -44
  52. package/dist/index.es154.js +40 -646
  53. package/dist/index.es155.js +648 -11
  54. package/dist/index.es156.js +5 -5
  55. package/dist/index.es157.js +4 -4
  56. package/dist/index.es158.js +45 -3
  57. package/dist/index.es159.js +7 -45
  58. package/dist/index.es160.js +4 -8
  59. package/dist/index.es162.js +1 -1
  60. package/dist/index.es163.js +6 -118
  61. package/dist/index.es164.js +3 -35
  62. package/dist/index.es165.js +2054 -2
  63. package/dist/index.es166.js +118 -2
  64. package/dist/index.es167.js +33 -6
  65. package/dist/index.es168.js +4 -3
  66. package/dist/index.es169.js +2 -2054
  67. package/dist/index.es176.js +1 -1
  68. package/dist/index.es177.js +1 -1
  69. package/dist/index.es178.js +1 -1
  70. package/dist/index.es181.js +2 -2
  71. package/dist/index.es183.js +1 -1
  72. package/dist/index.es203.js +1 -1
  73. package/dist/index.es22.js +2 -2
  74. package/dist/index.es236.js +176 -19
  75. package/dist/index.es237.js +15 -3
  76. package/dist/index.es238.js +3 -32
  77. package/dist/index.es239.js +32 -12
  78. package/dist/index.es240.js +17 -177
  79. package/dist/index.es242.js +5 -5
  80. package/dist/index.es243.js +16 -18
  81. package/dist/index.es246.js +1 -1
  82. package/dist/index.es247.js +1 -1
  83. package/dist/index.es248.js +3 -3
  84. package/dist/index.es27.js +1 -1
  85. package/dist/index.es275.js +12 -12
  86. package/dist/index.es276.js +2 -2
  87. package/dist/index.es277.js +2 -2
  88. package/dist/index.es278.js +8 -8
  89. package/dist/index.es279.js +2 -2
  90. package/dist/index.es28.js +1 -1
  91. package/dist/index.es283.js +16 -15
  92. package/dist/index.es284.js +8 -3
  93. package/dist/index.es285.js +15 -16
  94. package/dist/index.es286.js +3 -8
  95. package/dist/index.es29.js +3 -3
  96. package/dist/index.es30.js +23 -23
  97. package/dist/index.es32.js +2 -2
  98. package/dist/index.es325.js +1 -1
  99. package/dist/index.es33.js +2 -2
  100. package/dist/index.es335.js +3 -3
  101. package/dist/index.es338.js +1 -1
  102. package/dist/index.es339.js +1 -1
  103. package/dist/index.es34.js +46 -35
  104. package/dist/index.es342.js +2 -2
  105. package/dist/index.es343.js +2 -2
  106. package/dist/index.es35.js +2 -2
  107. package/dist/index.es350.js +2 -29
  108. package/dist/index.es351.js +106 -5
  109. package/dist/index.es352.js +76 -2
  110. package/dist/index.es353.js +36 -107
  111. package/dist/index.es354.js +60 -73
  112. package/dist/index.es355.js +28 -30
  113. package/dist/index.es356.js +63 -61
  114. package/dist/index.es357.js +109 -30
  115. package/dist/index.es358.js +87 -59
  116. package/dist/index.es359.js +40 -110
  117. package/dist/index.es360.js +3 -94
  118. package/dist/index.es361.js +3 -43
  119. package/dist/index.es362.js +2 -2
  120. package/dist/index.es363.js +2 -2
  121. package/dist/index.es364.js +2 -2
  122. package/dist/index.es366.js +2 -2
  123. package/dist/index.es367.js +2 -2
  124. package/dist/index.es368.js +2 -2
  125. package/dist/index.es369.js +241 -4
  126. package/dist/index.es370.js +384 -4
  127. package/dist/index.es371.js +132 -204
  128. package/dist/index.es372.js +103 -334
  129. package/dist/index.es373.js +75 -102
  130. package/dist/index.es374.js +4 -153
  131. package/dist/index.es375.js +4 -142
  132. package/dist/index.es376.js +2 -2
  133. package/dist/index.es377.js +2 -2
  134. package/dist/index.es378.js +2 -2
  135. package/dist/index.es379.js +2 -2
  136. package/dist/index.es38.js +1 -1
  137. package/dist/index.es380.js +29 -2
  138. package/dist/index.es381.js +5 -2
  139. package/dist/index.es39.js +1 -1
  140. package/dist/index.es393.js +1 -1
  141. package/dist/index.es394.js +1 -1
  142. package/dist/index.es404.js +68 -2
  143. package/dist/index.es405.js +31 -47
  144. package/dist/index.es406.js +16 -83
  145. package/dist/index.es407.js +140 -13
  146. package/dist/index.es408.js +113 -340
  147. package/dist/index.es409.js +507 -63
  148. package/dist/index.es41.js +1 -1
  149. package/dist/index.es410.js +126 -10
  150. package/dist/index.es411.js +117 -510
  151. package/dist/index.es412.js +64 -116
  152. package/dist/index.es413.js +10 -125
  153. package/dist/index.es414.js +2 -68
  154. package/dist/index.es415.js +47 -31
  155. package/dist/index.es416.js +83 -16
  156. package/dist/index.es417.js +13 -140
  157. package/dist/index.es418.js +340 -113
  158. package/dist/index.es43.js +1 -1
  159. package/dist/index.es439.js +2 -2
  160. package/dist/index.es44.js +4 -4
  161. package/dist/index.es441.js +275 -3
  162. package/dist/index.es442.js +78 -105
  163. package/dist/index.es443.js +166 -2
  164. package/dist/index.es444.js +3 -2
  165. package/dist/index.es445.js +100 -268
  166. package/dist/index.es446.js +2 -80
  167. package/dist/index.es447.js +2 -166
  168. package/dist/index.es45.js +1 -1
  169. package/dist/index.es46.js +5 -5
  170. package/dist/index.es475.js +1 -1
  171. package/dist/index.es476.js +1 -1
  172. package/dist/index.es49.js +2 -2
  173. package/dist/index.es50.js +1 -1
  174. package/dist/index.es51.js +4 -4
  175. package/dist/index.es54.js +1 -1
  176. package/dist/index.es57.js +3 -3
  177. package/dist/index.es59.js +2 -2
  178. package/dist/index.es61.js +1 -1
  179. package/dist/index.es62.js +1 -1
  180. package/dist/index.es63.js +2 -2
  181. package/dist/index.es64.js +1 -1
  182. package/dist/index.es65.js +3 -3
  183. package/dist/index.es66.js +2 -2
  184. package/dist/index.es67.js +2 -2
  185. package/dist/index.es753.js +5 -5
  186. package/dist/index.es754.js +22 -14
  187. package/dist/index.es755.js +82 -59
  188. package/dist/index.es756.js +14 -22
  189. package/dist/index.es757.js +59 -82
  190. package/dist/index.es769.js +2 -8
  191. package/dist/index.es770.js +2 -56
  192. package/dist/index.es771.js +7 -18
  193. package/dist/index.es772.js +56 -2
  194. package/dist/index.es773.js +19 -2
  195. package/dist/index.es780.js +28 -28
  196. package/dist/index.es782.js +5 -5
  197. package/dist/index.es783.js +13 -17
  198. package/dist/index.es785.js +5 -11
  199. package/dist/index.es786.js +28 -28
  200. package/dist/index.es787.js +5 -5
  201. package/dist/index.es788.js +17 -13
  202. package/dist/index.es789.js +11 -5
  203. package/dist/index.es79.js +1 -1
  204. package/dist/index.es790.js +1 -1
  205. package/dist/index.es796.js +1 -1
  206. package/dist/index.es797.js +1 -1
  207. package/dist/index.es798.js +1 -1
  208. package/dist/index.es799.js +1 -1
  209. package/dist/index.es80.js +1 -1
  210. package/dist/index.es801.js +1 -1
  211. package/dist/index.es805.js +8 -10
  212. package/dist/index.es806.js +9 -7
  213. package/dist/index.es807.js +1 -1
  214. package/dist/index.es808.js +10 -8
  215. package/dist/index.es809.js +7 -9
  216. package/dist/index.es810.js +5 -5
  217. package/dist/index.es811.js +2 -2
  218. package/dist/index.es812.js +1 -1
  219. package/dist/index.es814.js +2 -2
  220. package/dist/index.es822.js +1 -1
  221. package/dist/index.es824.js +25 -38
  222. package/dist/index.es825.js +38 -25
  223. package/dist/index.es826.js +15 -64
  224. package/dist/index.es827.js +7 -11
  225. package/dist/index.es828.js +61 -38
  226. package/dist/index.es829.js +7 -54
  227. package/dist/index.es830.js +40 -16
  228. package/dist/index.es831.js +57 -17
  229. package/dist/index.es832.js +20 -7
  230. package/dist/index.es833.js +1 -1
  231. package/dist/index.es84.js +305 -33
  232. package/dist/index.es85.js +12 -46
  233. package/dist/index.es86.js +34 -29
  234. package/dist/index.es87.js +42 -26
  235. package/dist/index.es88.js +27 -304
  236. package/dist/index.es89.js +30 -12
  237. package/dist/index.es90.js +55 -9
  238. package/dist/index.es91.js +52 -52
  239. package/dist/index.es92.js +92 -55
  240. package/dist/index.es93.js +34 -87
  241. package/dist/index.es94.js +23 -36
  242. package/dist/index.es95.js +24 -18
  243. package/dist/index.es96.js +257 -28
  244. package/dist/index.es97.js +5 -5
  245. package/dist/index.es98.js +32 -258
  246. package/dist/index.es99.js +5 -5
  247. package/dist/style.css +8 -8
  248. package/package.json +1 -1
@@ -1,129 +1,77 @@
1
- const P = ["top", "right", "bottom", "left"], l = Math.min, m = Math.max, M = Math.round, O = Math.floor, S = (t) => ({
2
- x: t,
3
- y: t
4
- }), p = {
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 L(t) {
44
- const n = f(t);
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 s(t) {
48
- return t.replace(/start|end/g, (n) => a[n]);
9
+ function v(e, t) {
10
+ return { parentId: e || null, index: t };
49
11
  }
50
- function A(t, n, e) {
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
- top: 0,
74
- right: 0,
75
- bottom: 0,
76
- left: 0,
77
- ...t
14
+ type: "line",
15
+ index: e,
16
+ level: t
78
17
  };
79
18
  }
80
- function R(t) {
81
- return typeof t != "number" ? y(t) : {
82
- top: t,
83
- right: t,
84
- bottom: t,
85
- left: t
19
+ function g(e) {
20
+ return {
21
+ type: "highlight",
22
+ id: e
86
23
  };
87
24
  }
88
- function T(t) {
89
- const {
90
- x: n,
91
- y: e,
92
- width: r,
93
- height: o
94
- } = t;
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
- width: r,
97
- height: o,
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
- w as clamp,
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
  };
@@ -1,128 +1,13 @@
1
- function l(n) {
2
- return d(n) ? (n.nodeName || "").toLowerCase() : "#document";
3
- }
4
- function c(n) {
5
- var t;
6
- return (n == null || (t = n.ownerDocument) == null ? void 0 : t.defaultView) || window;
7
- }
8
- function S(n) {
9
- var t;
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
- g as getComputedStyle,
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
  };
@@ -1,70 +1,4 @@
1
- const t = {
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
- a as formatDistance
3
+ e as __module
70
4
  };
@@ -1,33 +1,49 @@
1
- import { buildFormatLongFn as t } from "./index.es453.js";
2
- const m = {
3
- full: "EEEE, d 'de' MMMM 'de' y",
4
- long: "d 'de' MMMM 'de' y",
5
- medium: "d MMM y",
6
- short: "dd/MM/y"
7
- }, d = {
8
- full: "HH:mm:ss zzzz",
9
- long: "HH:mm:ss z",
10
- medium: "HH:mm:ss",
11
- short: "HH:mm"
12
- }, e = {
13
- full: "{{date}} 'a las' {{time}}",
14
- long: "{{date}} 'a las' {{time}}",
15
- medium: "{{date}}, {{time}}",
16
- short: "{{date}}, {{time}}"
17
- }, o = {
18
- date: t({
19
- formats: m,
20
- defaultWidth: "full"
21
- }),
22
- time: t({
23
- formats: d,
24
- defaultWidth: "full"
25
- }),
26
- dateTime: t({
27
- formats: e,
28
- defaultWidth: "full"
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
- o as formatLong
48
+ w as __require
33
49
  };
@@ -1,18 +1,85 @@
1
- const t = {
2
- lastWeek: "'el' eeee 'pasado a la' p",
3
- yesterday: "'ayer a la' p",
4
- today: "'hoy a la' p",
5
- tomorrow: "'mañana a la' p",
6
- nextWeek: "eeee 'a la' p",
7
- other: "P"
8
- }, o = {
9
- lastWeek: "'el' eeee 'pasado a las' p",
10
- yesterday: "'ayer a las' p",
11
- today: "'hoy a las' p",
12
- tomorrow: "'mañana a las' p",
13
- nextWeek: "eeee 'a las' p",
14
- other: "P"
15
- }, s = (e, a, l, r) => a.getHours() !== 1 ? o[e] : t[e];
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
- s as formatRelative
84
+ G as __require
18
85
  };