@boxcustodia/library 0.2.0 → 0.2.2

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 (373) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/index.es10.js +1 -1
  3. package/dist/index.es100.js +4 -14
  4. package/dist/index.es101.js +14 -5
  5. package/dist/index.es102.js +4 -56
  6. package/dist/index.es103.js +55 -257
  7. package/dist/index.es104.js +3 -6
  8. package/dist/index.es108.js +11 -21
  9. package/dist/index.es109.js +21 -12
  10. package/dist/index.es110.js +5 -4
  11. package/dist/index.es111.js +4 -4
  12. package/dist/index.es112.js +4 -5
  13. package/dist/index.es113.js +12 -240
  14. package/dist/index.es114.js +224 -11
  15. package/dist/index.es115.js +11 -224
  16. package/dist/index.es116.js +41 -11
  17. package/dist/index.es117.js +821 -40
  18. package/dist/index.es118.js +9 -64
  19. package/dist/index.es119.js +11 -822
  20. package/dist/index.es120.js +64 -9
  21. package/dist/index.es121.js +240 -11
  22. package/dist/index.es124.js +1 -1
  23. package/dist/index.es125.js +1 -1
  24. package/dist/index.es126.js +5 -5
  25. package/dist/index.es13.js +1 -1
  26. package/dist/index.es131.js +13 -11
  27. package/dist/index.es132.js +196 -11
  28. package/dist/index.es133.js +41 -204
  29. package/dist/index.es134.js +12 -10
  30. package/dist/index.es135.js +11 -20
  31. package/dist/index.es136.js +205 -37
  32. package/dist/index.es137.js +10 -10
  33. package/dist/index.es138.js +20 -14
  34. package/dist/index.es139.js +34 -194
  35. package/dist/index.es14.js +1 -1
  36. package/dist/index.es140.js +9 -40
  37. package/dist/index.es141.js +6 -5
  38. package/dist/index.es142.js +65 -2
  39. package/dist/index.es143.js +10 -6
  40. package/dist/index.es144.js +118 -58
  41. package/dist/index.es145.js +134 -10
  42. package/dist/index.es146.js +13 -124
  43. package/dist/index.es147.js +31 -133
  44. package/dist/index.es148.js +14 -13
  45. package/dist/index.es149.js +9 -33
  46. package/dist/index.es150.js +50 -15
  47. package/dist/index.es151.js +6 -9
  48. package/dist/index.es152.js +2 -50
  49. package/dist/index.es153.js +1 -1
  50. package/dist/index.es154.js +625 -193
  51. package/dist/index.es156.js +193 -625
  52. package/dist/index.es158.js +3 -3
  53. package/dist/index.es161.js +1 -1
  54. package/dist/index.es162.js +3 -3
  55. package/dist/index.es164.js +5 -5
  56. package/dist/index.es165.js +2 -2
  57. package/dist/index.es166.js +6 -6
  58. package/dist/index.es173.js +1 -1
  59. package/dist/index.es174.js +1 -1
  60. package/dist/index.es175.js +3 -3
  61. package/dist/index.es176.js +2 -2
  62. package/dist/index.es177.js +1 -1
  63. package/dist/index.es178.js +1 -1
  64. package/dist/index.es182.js +21 -8
  65. package/dist/index.es183.js +9 -6
  66. package/dist/index.es184.js +38 -5
  67. package/dist/index.es185.js +18 -18
  68. package/dist/index.es186.js +7 -5
  69. package/dist/index.es187.js +5 -5
  70. package/dist/index.es188.js +4 -8
  71. package/dist/index.es189.js +18 -6
  72. package/dist/index.es190.js +5 -6
  73. package/dist/index.es191.js +5 -15
  74. package/dist/index.es192.js +8 -13
  75. package/dist/index.es193.js +6 -14
  76. package/dist/index.es194.js +6 -6
  77. package/dist/index.es195.js +15 -6
  78. package/dist/index.es196.js +13 -6
  79. package/dist/index.es197.js +13 -4
  80. package/dist/index.es198.js +6 -515
  81. package/dist/index.es199.js +7 -50
  82. package/dist/index.es200.js +6 -17
  83. package/dist/index.es201.js +4 -9
  84. package/dist/index.es202.js +513 -16
  85. package/dist/index.es203.js +50 -9
  86. package/dist/index.es204.js +17 -7
  87. package/dist/index.es205.js +9 -7
  88. package/dist/index.es206.js +19 -6
  89. package/dist/index.es207.js +8 -6
  90. package/dist/index.es208.js +7 -9
  91. package/dist/index.es209.js +7 -5
  92. package/dist/index.es210.js +5 -8
  93. package/dist/index.es211.js +6 -12
  94. package/dist/index.es212.js +9 -9
  95. package/dist/index.es213.js +5 -8
  96. package/dist/index.es214.js +8 -10
  97. package/dist/index.es215.js +12 -14
  98. package/dist/index.es216.js +9 -6
  99. package/dist/index.es217.js +8 -6
  100. package/dist/index.es218.js +10 -6
  101. package/dist/index.es219.js +14 -6
  102. package/dist/index.es22.js +2 -2
  103. package/dist/index.es220.js +6 -6
  104. package/dist/index.es221.js +6 -9
  105. package/dist/index.es222.js +6 -84
  106. package/dist/index.es223.js +7 -65
  107. package/dist/index.es224.js +6 -37
  108. package/dist/index.es225.js +9 -9
  109. package/dist/index.es226.js +84 -8
  110. package/dist/index.es227.js +65 -8
  111. package/dist/index.es228.js +37 -10
  112. package/dist/index.es229.js +9 -7
  113. package/dist/index.es230.js +8 -7
  114. package/dist/index.es231.js +7 -6
  115. package/dist/index.es232.js +10 -5
  116. package/dist/index.es233.js +7 -15
  117. package/dist/index.es234.js +7 -11
  118. package/dist/index.es235.js +6 -200
  119. package/dist/index.es236.js +6 -22
  120. package/dist/index.es237.js +15 -24
  121. package/dist/index.es238.js +10 -369
  122. package/dist/index.es239.js +176 -19
  123. package/dist/index.es240.js +25 -9
  124. package/dist/index.es241.js +19 -38
  125. package/dist/index.es242.js +53 -17
  126. package/dist/index.es243.js +15 -24
  127. package/dist/index.es244.js +200 -18
  128. package/dist/index.es245.js +19 -51
  129. package/dist/index.es246.js +25 -16
  130. package/dist/index.es247.js +364 -171
  131. package/dist/index.es248.js +26 -2
  132. package/dist/index.es249.js +4 -397
  133. package/dist/index.es250.js +7 -722
  134. package/dist/index.es251.js +13 -282
  135. package/dist/index.es252.js +13 -60
  136. package/dist/index.es253.js +134 -9
  137. package/dist/index.es254.js +31 -28
  138. package/dist/index.es255.js +459 -195
  139. package/dist/index.es256.js +131 -25
  140. package/dist/index.es257.js +27 -5
  141. package/dist/index.es258.js +4 -7
  142. package/dist/index.es259.js +25 -12
  143. package/dist/index.es260.js +7 -13
  144. package/dist/index.es261.js +11 -134
  145. package/dist/index.es262.js +27 -30
  146. package/dist/index.es263.js +46 -460
  147. package/dist/index.es264.js +28 -129
  148. package/dist/index.es265.js +43 -26
  149. package/dist/index.es266.js +158 -4
  150. package/dist/index.es267.js +30 -23
  151. package/dist/index.es268.js +2 -8
  152. package/dist/index.es269.js +77 -9
  153. package/dist/index.es27.js +1 -1
  154. package/dist/index.es270.js +18 -28
  155. package/dist/index.es271.js +2 -49
  156. package/dist/index.es272.js +395 -28
  157. package/dist/index.es273.js +722 -43
  158. package/dist/index.es274.js +281 -157
  159. package/dist/index.es275.js +54 -27
  160. package/dist/index.es276.js +10 -2
  161. package/dist/index.es277.js +28 -79
  162. package/dist/index.es278.js +199 -19
  163. package/dist/index.es279.js +4 -16
  164. package/dist/index.es28.js +1 -1
  165. package/dist/index.es280.js +14 -8
  166. package/dist/index.es281.js +15 -4
  167. package/dist/index.es282.js +16 -14
  168. package/dist/index.es283.js +8 -15
  169. package/dist/index.es29.js +3 -3
  170. package/dist/index.es290.js +2 -2
  171. package/dist/index.es291.js +2 -2
  172. package/dist/index.es297.js +2 -2
  173. package/dist/index.es298.js +2 -2
  174. package/dist/index.es30.js +6 -6
  175. package/dist/index.es301.js +1 -1
  176. package/dist/index.es302.js +1 -1
  177. package/dist/index.es303.js +1 -1
  178. package/dist/index.es304.js +1 -1
  179. package/dist/index.es315.js +2 -2
  180. package/dist/index.es316.js +2 -2
  181. package/dist/index.es317.js +1 -1
  182. package/dist/index.es318.js +1 -1
  183. package/dist/index.es32.js +2 -2
  184. package/dist/index.es322.js +10 -2
  185. package/dist/index.es323.js +5 -2
  186. package/dist/index.es324.js +13 -10
  187. package/dist/index.es325.js +4 -4
  188. package/dist/index.es326.js +7 -13
  189. package/dist/index.es327.js +333 -4
  190. package/dist/index.es328.js +19 -7
  191. package/dist/index.es329.js +3 -333
  192. package/dist/index.es33.js +2 -2
  193. package/dist/index.es330.js +5 -19
  194. package/dist/index.es331.js +3 -4
  195. package/dist/index.es332.js +71 -4
  196. package/dist/index.es333.js +4 -3
  197. package/dist/index.es334.js +6 -72
  198. package/dist/index.es335.js +34 -4
  199. package/dist/index.es336.js +26 -6
  200. package/dist/index.es337.js +18 -34
  201. package/dist/index.es338.js +4 -25
  202. package/dist/index.es339.js +231 -18
  203. package/dist/index.es34.js +6 -6
  204. package/dist/index.es340.js +100 -5
  205. package/dist/index.es341.js +26 -229
  206. package/dist/index.es342.js +35 -80
  207. package/dist/index.es343.js +2 -28
  208. package/dist/index.es344.js +2 -55
  209. package/dist/index.es345.js +334 -2
  210. package/dist/index.es346.js +31 -106
  211. package/dist/index.es347.js +16 -75
  212. package/dist/index.es348.js +29 -35
  213. package/dist/index.es349.js +3 -64
  214. package/dist/index.es35.js +2 -2
  215. package/dist/index.es350.js +107 -34
  216. package/dist/index.es351.js +71 -60
  217. package/dist/index.es352.js +34 -111
  218. package/dist/index.es353.js +60 -90
  219. package/dist/index.es354.js +32 -41
  220. package/dist/index.es355.js +66 -3
  221. package/dist/index.es356.js +113 -3
  222. package/dist/index.es357.js +94 -3
  223. package/dist/index.es358.js +43 -3
  224. package/dist/index.es359.js +2 -2
  225. package/dist/index.es360.js +2 -2
  226. package/dist/index.es361.js +2 -2
  227. package/dist/index.es362.js +2 -2
  228. package/dist/index.es363.js +2 -2
  229. package/dist/index.es364.js +4 -241
  230. package/dist/index.es365.js +4 -384
  231. package/dist/index.es366.js +4 -169
  232. package/dist/index.es367.js +4 -153
  233. package/dist/index.es368.js +187 -88
  234. package/dist/index.es369.js +384 -4
  235. package/dist/index.es370.js +169 -4
  236. package/dist/index.es371.js +153 -4
  237. package/dist/index.es372.js +142 -4
  238. package/dist/index.es373.js +2 -2
  239. package/dist/index.es374.js +2 -2
  240. package/dist/index.es375.js +2 -334
  241. package/dist/index.es376.js +2 -31
  242. package/dist/index.es377.js +2 -17
  243. package/dist/index.es378.js +2 -29
  244. package/dist/index.es379.js +1 -1
  245. package/dist/index.es38.js +2 -2
  246. package/dist/index.es380.js +2 -2
  247. package/dist/index.es382.js +2 -2
  248. package/dist/index.es383.js +2 -2
  249. package/dist/index.es389.js +1 -1
  250. package/dist/index.es390.js +1 -1
  251. package/dist/index.es393.js +1 -1
  252. package/dist/index.es395.js +4 -4
  253. package/dist/index.es397.js +66 -517
  254. package/dist/index.es398.js +30 -126
  255. package/dist/index.es399.js +16 -126
  256. package/dist/index.es400.js +135 -62
  257. package/dist/index.es401.js +108 -25
  258. package/dist/index.es402.js +6 -16
  259. package/dist/index.es403.js +2 -141
  260. package/dist/index.es404.js +8 -114
  261. package/dist/index.es405.js +326 -5
  262. package/dist/index.es406.js +50 -2
  263. package/dist/index.es407.js +3 -7
  264. package/dist/index.es408.js +497 -305
  265. package/dist/index.es409.js +125 -48
  266. package/dist/index.es41.js +1 -1
  267. package/dist/index.es410.js +125 -3
  268. package/dist/index.es411.js +1 -1
  269. package/dist/index.es412.js +6 -6
  270. package/dist/index.es416.js +1 -1
  271. package/dist/index.es417.js +5 -5
  272. package/dist/index.es420.js +2 -2
  273. package/dist/index.es43.js +1 -1
  274. package/dist/index.es435.js +21 -271
  275. package/dist/index.es436.js +10 -79
  276. package/dist/index.es437.js +31 -164
  277. package/dist/index.es438.js +29 -24
  278. package/dist/index.es439.js +11 -10
  279. package/dist/index.es44.js +4 -4
  280. package/dist/index.es440.js +2 -33
  281. package/dist/index.es441.js +2 -30
  282. package/dist/index.es442.js +274 -11
  283. package/dist/index.es443.js +80 -3
  284. package/dist/index.es444.js +163 -104
  285. package/dist/index.es445.js +3 -2
  286. package/dist/index.es446.js +107 -2
  287. package/dist/index.es45.js +1 -1
  288. package/dist/index.es451.js +65 -69
  289. package/dist/index.es452.js +68 -8
  290. package/dist/index.es453.js +9 -14
  291. package/dist/index.es454.js +14 -60
  292. package/dist/index.es455.js +59 -64
  293. package/dist/index.es46.js +5 -5
  294. package/dist/index.es465.js +44 -7
  295. package/dist/index.es466.js +63 -2
  296. package/dist/index.es467.js +17 -41
  297. package/dist/index.es468.js +5 -63
  298. package/dist/index.es469.js +41 -17
  299. package/dist/index.es47.js +1 -1
  300. package/dist/index.es470.js +5 -5
  301. package/dist/index.es471.js +7 -44
  302. package/dist/index.es472.js +2 -5
  303. package/dist/index.es474.js +1 -1
  304. package/dist/index.es475.js +1 -1
  305. package/dist/index.es49.js +2 -2
  306. package/dist/index.es50.js +1 -1
  307. package/dist/index.es51.js +4 -4
  308. package/dist/index.es54.js +1 -1
  309. package/dist/index.es55.js +48 -55
  310. package/dist/index.es56.js +22 -22
  311. package/dist/index.es57.js +3 -3
  312. package/dist/index.es59.js +1 -1
  313. package/dist/index.es62.js +1 -1
  314. package/dist/index.es63.js +1 -1
  315. package/dist/index.es65.js +2 -2
  316. package/dist/index.es66.js +3 -3
  317. package/dist/index.es67.js +2 -2
  318. package/dist/index.es69.js +1 -1
  319. package/dist/index.es7.js +1 -1
  320. package/dist/index.es752.js +13 -21
  321. package/dist/index.es753.js +18 -79
  322. package/dist/index.es754.js +82 -13
  323. package/dist/index.es766.js +2 -24
  324. package/dist/index.es767.js +2 -8
  325. package/dist/index.es768.js +21 -64
  326. package/dist/index.es769.js +8 -52
  327. package/dist/index.es770.js +56 -60
  328. package/dist/index.es771.js +52 -2
  329. package/dist/index.es772.js +71 -2
  330. package/dist/index.es777.js +56 -20
  331. package/dist/index.es778.js +26 -49
  332. package/dist/index.es779.js +9 -34
  333. package/dist/index.es780.js +18 -9
  334. package/dist/index.es781.js +8 -18
  335. package/dist/index.es782.js +12 -8
  336. package/dist/index.es783.js +56 -11
  337. package/dist/index.es784.js +9 -57
  338. package/dist/index.es785.js +14 -9
  339. package/dist/index.es786.js +6 -14
  340. package/dist/index.es787.js +21 -6
  341. package/dist/index.es788.js +1 -1
  342. package/dist/index.es799.js +1 -1
  343. package/dist/index.es802.js +1 -1
  344. package/dist/index.es809.js +5 -5
  345. package/dist/index.es810.js +2 -2
  346. package/dist/index.es811.js +1 -1
  347. package/dist/index.es813.js +2 -2
  348. package/dist/index.es825.js +15 -64
  349. package/dist/index.es826.js +7 -11
  350. package/dist/index.es827.js +61 -38
  351. package/dist/index.es828.js +7 -54
  352. package/dist/index.es829.js +40 -16
  353. package/dist/index.es83.js +305 -31
  354. package/dist/index.es830.js +57 -17
  355. package/dist/index.es831.js +20 -7
  356. package/dist/index.es832.js +1 -1
  357. package/dist/index.es84.js +12 -35
  358. package/dist/index.es85.js +33 -46
  359. package/dist/index.es86.js +34 -29
  360. package/dist/index.es87.js +42 -26
  361. package/dist/index.es88.js +30 -55
  362. package/dist/index.es89.js +28 -53
  363. package/dist/index.es90.js +55 -90
  364. package/dist/index.es91.js +55 -37
  365. package/dist/index.es92.js +88 -22
  366. package/dist/index.es93.js +36 -29
  367. package/dist/index.es94.js +22 -305
  368. package/dist/index.es95.js +30 -12
  369. package/dist/index.es96.js +259 -9
  370. package/dist/index.es97.js +5 -5
  371. package/dist/index.es98.js +10 -3672
  372. package/dist/index.es99.js +3673 -3
  373. package/package.json +1 -1
@@ -1,52 +1,129 @@
1
- import { __require as u } from "./index.es460.js";
2
- var o, p;
3
- function g() {
4
- if (p) return o;
5
- p = 1;
6
- var c = u();
7
- function n() {
8
- }
9
- function i() {
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)];
42
+ }
43
+ function L(t) {
44
+ const n = f(t);
45
+ return [s(t), n, s(n)];
46
+ }
47
+ function s(t) {
48
+ return t.replace(/start|end/g, (n) => a[n]);
49
+ }
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 [];
10
61
  }
11
- return i.resetWarningCache = n, o = function() {
12
- function e(h, y, m, f, l, s) {
13
- if (s !== c) {
14
- var a = new Error(
15
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
16
- );
17
- throw a.name = "Invariant Violation", a;
18
- }
19
- }
20
- e.isRequired = e;
21
- function r() {
22
- return e;
23
- }
24
- var t = {
25
- array: e,
26
- bigint: e,
27
- bool: e,
28
- func: e,
29
- number: e,
30
- object: e,
31
- string: e,
32
- symbol: e,
33
- any: e,
34
- arrayOf: r,
35
- element: e,
36
- elementType: e,
37
- instanceOf: r,
38
- node: e,
39
- objectOf: r,
40
- oneOf: r,
41
- oneOfType: r,
42
- shape: r,
43
- exact: r,
44
- checkPropTypes: i,
45
- resetWarningCache: n
46
- };
47
- return t.PropTypes = t, t;
48
- }, o;
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) {
72
+ return {
73
+ top: 0,
74
+ right: 0,
75
+ bottom: 0,
76
+ left: 0,
77
+ ...t
78
+ };
79
+ }
80
+ function R(t) {
81
+ return typeof t != "number" ? y(t) : {
82
+ top: t,
83
+ right: t,
84
+ bottom: t,
85
+ left: t
86
+ };
87
+ }
88
+ function T(t) {
89
+ const {
90
+ x: n,
91
+ y: e,
92
+ width: r,
93
+ height: o
94
+ } = t;
95
+ 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
104
+ };
49
105
  }
50
106
  export {
51
- g as __require
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
52
129
  };
@@ -1,5 +1,5 @@
1
1
  import { j as f } from "./index.es82.js";
2
- import { useControllableState as m } from "./index.es87.js";
2
+ import { useControllableState as m } from "./index.es89.js";
3
3
  import { forwardRef as d } from "react";
4
4
  import { cn as p } from "./index.es72.js";
5
5
  const c = d(
@@ -1,6 +1,128 @@
1
- function i(s, a) {
2
- return s.classList ? !!a && s.classList.contains(a) : (" " + (s.className.baseVal || s.className) + " ").indexOf(" " + a + " ") !== -1;
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;
3
106
  }
4
107
  export {
5
- i as default
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
6
128
  };
@@ -1,4 +1,4 @@
1
- import { isItem as h, bound as a, isClosed as x, isOpenWithEmptyChildren as m, indexOf as I } from "./index.es264.js";
1
+ import { isItem as h, bound as a, isClosed as x, isOpenWithEmptyChildren as m, indexOf as I } from "./index.es256.js";
2
2
  function w(e, t) {
3
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
4
  return { x: r, inTopHalf: c, inBottomHalf: p, inMiddle: i, atTop: !i && c, atBottom: !i && p };
@@ -1,9 +1,9 @@
1
- import { useRegisteredDropTarget as m } from "./index.es784.js";
2
- import { useOptionalFactory as n } from "./index.es779.js";
3
- import { useDropTargetMonitor as i } from "./index.es785.js";
4
- import { useDropTargetConnector as s } from "./index.es786.js";
5
- import { useCollectedProps as c } from "./index.es782.js";
6
- import { useConnectDropTarget as a } from "./index.es787.js";
1
+ import { useRegisteredDropTarget as m } from "./index.es783.js";
2
+ import { useOptionalFactory as n } from "./index.es778.js";
3
+ import { useDropTargetMonitor as i } from "./index.es784.js";
4
+ import { useDropTargetConnector as s } from "./index.es785.js";
5
+ import { useCollectedProps as c } from "./index.es781.js";
6
+ import { useConnectDropTarget as a } from "./index.es786.js";
7
7
  function v(e, p) {
8
8
  var o = n(e, p), t = i(), r = s(o.options);
9
9
  return m(o, t, r), [c(o.collect, t, r), a(r)];
@@ -1,4 +1,4 @@
1
- import { initialState as d } from "./index.es338.js";
1
+ import { initialState as d } from "./index.es336.js";
2
2
  function s(e = d().nodes.drag, n) {
3
3
  switch (n.type) {
4
4
  case "DND_DRAG_START":
@@ -1,8 +1,8 @@
1
- import { EnterLeaveCounter as b } from "./index.es467.js";
2
- import { getNodeClientOffset as P, getEventClientOffset as v, getDragPreviewOffset as k } from "./index.es468.js";
3
- import { createNativeDragSource as M, matchNativeItemType as f } from "./index.es469.js";
4
- import * as m from "./index.es470.js";
5
- import { OptionsReader as R } from "./index.es471.js";
1
+ import { EnterLeaveCounter as b } from "./index.es465.js";
2
+ import { getNodeClientOffset as P, getEventClientOffset as v, getDragPreviewOffset as k } from "./index.es466.js";
3
+ import { createNativeDragSource as M, matchNativeItemType as f } from "./index.es467.js";
4
+ import * as m from "./index.es468.js";
5
+ import { OptionsReader as R } from "./index.es469.js";
6
6
  function T(s, a) {
7
7
  var t = Object.keys(s);
8
8
  if (Object.getOwnPropertySymbols) {
@@ -1,6 +1,6 @@
1
1
  import { __exports as n } from "./index.es421.js";
2
- import "./index.es465.js";
3
- import { __exports as x } from "./index.es466.js";
2
+ import "./index.es471.js";
3
+ import { __exports as x } from "./index.es472.js";
4
4
  Object.defineProperty(n, "__esModule", {
5
5
  value: !0
6
6
  });
@@ -1,5 +1,5 @@
1
1
  import { j as e } from "./index.es82.js";
2
- import m from "./index.es114.js";
2
+ import m from "./index.es108.js";
3
3
  import { cn as r } from "./index.es72.js";
4
4
  const t = ({ center: a, containerClassName: s, ...i }) => /* @__PURE__ */ e.jsx(
5
5
  "div",
@@ -1,277 +1,27 @@
1
- import u from "./index.es752.js";
2
- import J from "./index.es753.js";
3
- import { safeWindow as K, isElement as l, queryIdRefs as w, hasAnyConcreteRoles as b, isHTMLInputElement as A, isHTMLSelectElement as U, isHTMLTableCaptionElement as G, isHTMLTextAreaElement as Y, isHTMLSlotElement as Z, isHTMLFieldSetElement as F, isHTMLLegendElement as _, isHTMLTableElement as ee, isSVGSVGElement as te, isSVGTitleElement as re, isHTMLOptGroupElement as ie } from "./index.es436.js";
4
- import { getLocalName as R } from "./index.es437.js";
5
- function ne(t) {
6
- return t.trim().replace(/\s\s+/g, " ");
7
- }
8
- function ae(t, r) {
9
- if (!l(t))
10
- return !1;
11
- if (t.hasAttribute("hidden") || t.getAttribute("aria-hidden") === "true")
12
- return !0;
13
- var i = r(t);
14
- return i.getPropertyValue("display") === "none" || i.getPropertyValue("visibility") === "hidden";
15
- }
16
- function le(t) {
17
- return b(t, ["button", "combobox", "listbox", "textbox"]) || j(t, "range");
1
+ var s = Number.isNaN || function(r) {
2
+ return typeof r == "number" && r !== r;
3
+ };
4
+ function o(e, r) {
5
+ return !!(e === r || s(e) && s(r));
18
6
  }
19
- function j(t, r) {
20
- if (!l(t))
7
+ function g(e, r) {
8
+ if (e.length !== r.length)
21
9
  return !1;
22
- switch (r) {
23
- case "range":
24
- return b(t, ["meter", "progressbar", "scrollbar", "slider", "spinbutton"]);
25
- default:
26
- throw new TypeError("No knowledge about abstract role '".concat(r, "'. This is likely a bug :("));
27
- }
28
- }
29
- function $(t, r) {
30
- var i = u(t.querySelectorAll(r));
31
- return w(t, "aria-owns").forEach(function(o) {
32
- i.push.apply(i, u(o.querySelectorAll(r)));
33
- }), i;
34
- }
35
- function ue(t) {
36
- return U(t) ? t.selectedOptions || $(t, "[selected]") : $(t, '[aria-selected="true"]');
37
- }
38
- function se(t) {
39
- return b(t, ["none", "presentation"]);
40
- }
41
- function oe(t) {
42
- return G(t);
43
- }
44
- function fe(t) {
45
- return b(t, ["button", "cell", "checkbox", "columnheader", "gridcell", "heading", "label", "legend", "link", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "radio", "row", "rowheader", "switch", "tab", "tooltip", "treeitem"]);
46
- }
47
- function de(t) {
48
- return !1;
49
- }
50
- function be(t) {
51
- return A(t) || Y(t) ? t.value : t.textContent || "";
52
- }
53
- function D(t) {
54
- var r = t.getPropertyValue("content");
55
- return /^["'].*["']$/.test(r) ? r.slice(1, -1) : "";
56
- }
57
- function B(t) {
58
- var r = R(t);
59
- return r === "button" || r === "input" && t.getAttribute("type") !== "hidden" || r === "meter" || r === "output" || r === "progress" || r === "select" || r === "textarea";
60
- }
61
- function Q(t) {
62
- if (B(t))
63
- return t;
64
- var r = null;
65
- return t.childNodes.forEach(function(i) {
66
- if (r === null && l(i)) {
67
- var o = Q(i);
68
- o !== null && (r = o);
69
- }
70
- }), r;
71
- }
72
- function me(t) {
73
- if (t.control !== void 0)
74
- return t.control;
75
- var r = t.getAttribute("for");
76
- return r !== null ? t.ownerDocument.getElementById(r) : Q(t);
77
- }
78
- function pe(t) {
79
- var r = t.labels;
80
- if (r === null)
81
- return r;
82
- if (r !== void 0)
83
- return u(r);
84
- if (!B(t))
85
- return null;
86
- var i = t.ownerDocument;
87
- return u(i.querySelectorAll("label")).filter(function(o) {
88
- return me(o) === t;
89
- });
90
- }
91
- function ve(t) {
92
- var r = t.assignedNodes();
93
- return r.length === 0 ? u(t.childNodes) : r;
94
- }
95
- function he(t) {
96
- var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = new J(), o = K(t), C = r.compute, L = C === void 0 ? "name" : C, x = r.computedStyleSupportsPseudoElements, H = x === void 0 ? r.getComputedStyle !== void 0 : x, M = r.getComputedStyle, S = M === void 0 ? o.getComputedStyle.bind(o) : M, V = r.hidden, W = V === void 0 ? !1 : V;
97
- function T(e, a) {
98
- var n = "";
99
- if (l(e) && H) {
100
- var p = S(e, "::before"), v = D(p);
101
- n = "".concat(v, " ").concat(n);
102
- }
103
- var f = Z(e) ? ve(e) : u(e.childNodes).concat(w(e, "aria-owns"));
104
- if (f.forEach(function(s) {
105
- var E = m(s, {
106
- isEmbeddedInLabel: a.isEmbeddedInLabel,
107
- isReferenced: !1,
108
- recursion: !0
109
- }), d = l(s) ? S(s).getPropertyValue("display") : "inline", h = d !== "inline" ? " " : "";
110
- n += "".concat(h).concat(E).concat(h);
111
- }), l(e) && H) {
112
- var c = S(e, "::after"), g = D(c);
113
- n = "".concat(n, " ").concat(g);
114
- }
115
- return n.trim();
116
- }
117
- function y(e, a) {
118
- var n = e.getAttributeNode(a);
119
- return n !== null && !i.has(n) && n.value.trim() !== "" ? (i.add(n), n.value) : null;
120
- }
121
- function X(e) {
122
- return l(e) ? y(e, "title") : null;
123
- }
124
- function z(e) {
125
- if (!l(e))
126
- return null;
127
- if (F(e)) {
128
- i.add(e);
129
- for (var a = u(e.childNodes), n = 0; n < a.length; n += 1) {
130
- var p = a[n];
131
- if (_(p))
132
- return m(p, {
133
- isEmbeddedInLabel: !1,
134
- isReferenced: !1,
135
- recursion: !1
136
- });
137
- }
138
- } else if (ee(e)) {
139
- i.add(e);
140
- for (var v = u(e.childNodes), f = 0; f < v.length; f += 1) {
141
- var c = v[f];
142
- if (G(c))
143
- return m(c, {
144
- isEmbeddedInLabel: !1,
145
- isReferenced: !1,
146
- recursion: !1
147
- });
148
- }
149
- } else if (te(e)) {
150
- i.add(e);
151
- for (var g = u(e.childNodes), s = 0; s < g.length; s += 1) {
152
- var E = g[s];
153
- if (re(E))
154
- return E.textContent;
155
- }
156
- return null;
157
- } else if (R(e) === "img" || R(e) === "area") {
158
- var d = y(e, "alt");
159
- if (d !== null)
160
- return d;
161
- } else if (ie(e)) {
162
- var h = y(e, "label");
163
- if (h !== null)
164
- return h;
165
- }
166
- if (A(e) && (e.type === "button" || e.type === "submit" || e.type === "reset")) {
167
- var k = y(e, "value");
168
- if (k !== null)
169
- return k;
170
- if (e.type === "submit")
171
- return "Submit";
172
- if (e.type === "reset")
173
- return "Reset";
174
- }
175
- var I = pe(e);
176
- if (I !== null && I.length !== 0)
177
- return i.add(e), u(I).map(function(N) {
178
- return m(N, {
179
- isEmbeddedInLabel: !0,
180
- isReferenced: !1,
181
- recursion: !0
182
- });
183
- }).filter(function(N) {
184
- return N.length > 0;
185
- }).join(" ");
186
- if (A(e) && e.type === "image") {
187
- var P = y(e, "alt");
188
- if (P !== null)
189
- return P;
190
- var q = y(e, "title");
191
- return q !== null ? q : "Submit Query";
192
- }
193
- if (b(e, ["button"])) {
194
- var O = T(e, {
195
- isEmbeddedInLabel: !1,
196
- isReferenced: !1
197
- });
198
- if (O !== "")
199
- return O;
200
- }
201
- return null;
202
- }
203
- function m(e, a) {
204
- if (i.has(e))
205
- return "";
206
- if (!W && ae(e, S) && !a.isReferenced)
207
- return i.add(e), "";
208
- var n = l(e) ? e.getAttributeNode("aria-labelledby") : null, p = n !== null && !i.has(n) ? w(e, "aria-labelledby") : [];
209
- if (L === "name" && !a.isReferenced && p.length > 0)
210
- return i.add(n), p.map(function(d) {
211
- return m(d, {
212
- isEmbeddedInLabel: a.isEmbeddedInLabel,
213
- isReferenced: !0,
214
- // this isn't recursion as specified, otherwise we would skip
215
- // `aria-label` in
216
- // <input id="myself" aria-label="foo" aria-labelledby="myself"
217
- recursion: !1
218
- });
219
- }).join(" ");
220
- var v = a.recursion && le(e) && L === "name";
221
- if (!v) {
222
- var f = (l(e) && e.getAttribute("aria-label") || "").trim();
223
- if (f !== "" && L === "name")
224
- return i.add(e), f;
225
- if (!se(e)) {
226
- var c = z(e);
227
- if (c !== null)
228
- return i.add(e), c;
229
- }
230
- }
231
- if (b(e, ["menu"]))
232
- return i.add(e), "";
233
- if (v || a.isEmbeddedInLabel || a.isReferenced) {
234
- if (b(e, ["combobox", "listbox"])) {
235
- i.add(e);
236
- var g = ue(e);
237
- return g.length === 0 ? A(e) ? e.value : "" : u(g).map(function(d) {
238
- return m(d, {
239
- isEmbeddedInLabel: a.isEmbeddedInLabel,
240
- isReferenced: !1,
241
- recursion: !0
242
- });
243
- }).join(" ");
244
- }
245
- if (j(e, "range"))
246
- return i.add(e), e.hasAttribute("aria-valuetext") ? e.getAttribute("aria-valuetext") : e.hasAttribute("aria-valuenow") ? e.getAttribute("aria-valuenow") : e.getAttribute("value") || "";
247
- if (b(e, ["textbox"]))
248
- return i.add(e), be(e);
249
- }
250
- if (fe(e) || l(e) && a.isReferenced || oe(e) || de()) {
251
- var s = T(e, {
252
- isEmbeddedInLabel: a.isEmbeddedInLabel,
253
- isReferenced: !1
254
- });
255
- if (s !== "")
256
- return i.add(e), s;
257
- }
258
- if (e.nodeType === e.TEXT_NODE)
259
- return i.add(e), e.textContent || "";
260
- if (a.recursion)
261
- return i.add(e), T(e, {
262
- isEmbeddedInLabel: a.isEmbeddedInLabel,
263
- isReferenced: !1
264
- });
265
- var E = X(e);
266
- return E !== null ? (i.add(e), E) : (i.add(e), "");
10
+ for (var t = 0; t < e.length; t++)
11
+ if (!o(e[t], r[t]))
12
+ return !1;
13
+ return !0;
14
+ }
15
+ function h(e, r) {
16
+ r === void 0 && (r = g);
17
+ var t, f = [], u, l = !1;
18
+ function i() {
19
+ for (var n = [], a = 0; a < arguments.length; a++)
20
+ n[a] = arguments[a];
21
+ return l && t === this && r(n, f) || (u = e.apply(this, n), l = !0, t = this, f = n), u;
267
22
  }
268
- return ne(m(t, {
269
- isEmbeddedInLabel: !1,
270
- // by spec computeAccessibleDescription starts with the referenced elements as roots
271
- isReferenced: L === "description",
272
- recursion: !1
273
- }));
23
+ return i;
274
24
  }
275
25
  export {
276
- he as computeTextAlternative
26
+ h as default
277
27
  };