@boxcustodia/library 0.2.3 → 0.2.5

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 (347) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.es10.js +1 -1
  3. package/dist/index.es100.js +21 -1059
  4. package/dist/index.es101.js +30 -3674
  5. package/dist/index.es102.js +12 -4
  6. package/dist/index.es103.js +1062 -4
  7. package/dist/index.es104.js +3673 -3
  8. package/dist/index.es105.js +4 -14
  9. package/dist/index.es106.js +4 -5
  10. package/dist/index.es107.js +11 -57
  11. package/dist/index.es108.js +228 -193
  12. package/dist/index.es109.js +5 -4
  13. package/dist/index.es110.js +4 -11
  14. package/dist/index.es111.js +14 -41
  15. package/dist/index.es112.js +5 -11
  16. package/dist/index.es113.js +57 -33
  17. package/dist/index.es115.js +1 -1
  18. package/dist/index.es116.js +1 -1
  19. package/dist/index.es117.js +1 -1
  20. package/dist/index.es118.js +13 -13
  21. package/dist/index.es119.js +813 -55
  22. package/dist/index.es120.js +9 -822
  23. package/dist/index.es121.js +5 -3
  24. package/dist/index.es122.js +64 -11
  25. package/dist/index.es123.js +33 -4
  26. package/dist/index.es124.js +13 -13
  27. package/dist/index.es125.js +13 -33
  28. package/dist/index.es126.js +4 -13
  29. package/dist/index.es127.js +215 -7
  30. package/dist/index.es128.js +7 -215
  31. package/dist/index.es13.js +1 -1
  32. package/dist/index.es130.js +1 -1
  33. package/dist/index.es131.js +1 -1
  34. package/dist/index.es132.js +12 -9
  35. package/dist/index.es133.js +196 -204
  36. package/dist/index.es134.js +41 -10
  37. package/dist/index.es135.js +11 -13
  38. package/dist/index.es136.js +11 -196
  39. package/dist/index.es137.js +204 -41
  40. package/dist/index.es138.js +10 -20
  41. package/dist/index.es139.js +5 -35
  42. package/dist/index.es14.js +1 -1
  43. package/dist/index.es140.js +63 -9
  44. package/dist/index.es141.js +32 -6
  45. package/dist/index.es142.js +645 -60
  46. package/dist/index.es144.js +19 -123
  47. package/dist/index.es145.js +32 -130
  48. package/dist/index.es146.js +11 -14
  49. package/dist/index.es147.js +5 -32
  50. package/dist/index.es148.js +2 -15
  51. package/dist/index.es149.js +124 -8
  52. package/dist/index.es15.js +1 -1
  53. package/dist/index.es150.js +133 -48
  54. package/dist/index.es151.js +14 -6
  55. package/dist/index.es152.js +15 -2
  56. package/dist/index.es153.js +9 -44
  57. package/dist/index.es154.js +48 -648
  58. package/dist/index.es155.js +44 -13
  59. package/dist/index.es156.js +8 -8
  60. package/dist/index.es159.js +3 -3
  61. package/dist/index.es162.js +1 -1
  62. package/dist/index.es163.js +6 -6
  63. package/dist/index.es164.js +2 -2
  64. package/dist/index.es165.js +6 -2
  65. package/dist/index.es166.js +3 -4
  66. package/dist/index.es167.js +2054 -6
  67. package/dist/index.es168.js +4 -3
  68. package/dist/index.es169.js +2 -2054
  69. package/dist/index.es176.js +1 -1
  70. package/dist/index.es177.js +1 -1
  71. package/dist/index.es178.js +1 -1
  72. package/dist/index.es183.js +177 -11
  73. package/dist/index.es184.js +11 -7
  74. package/dist/index.es185.js +21 -6
  75. package/dist/index.es186.js +9 -5
  76. package/dist/index.es187.js +38 -18
  77. package/dist/index.es188.js +18 -6
  78. package/dist/index.es189.js +200 -5
  79. package/dist/index.es190.js +22 -9
  80. package/dist/index.es191.js +25 -6
  81. package/dist/index.es192.js +370 -6
  82. package/dist/index.es193.js +25 -16
  83. package/dist/index.es194.js +12 -12
  84. package/dist/index.es195.js +6 -13
  85. package/dist/index.es196.js +1 -1
  86. package/dist/index.es197.js +19 -7
  87. package/dist/index.es198.js +52 -7
  88. package/dist/index.es199.js +6 -4
  89. package/dist/index.es200.js +6 -515
  90. package/dist/index.es201.js +7 -50
  91. package/dist/index.es202.js +7 -17
  92. package/dist/index.es203.js +16 -10
  93. package/dist/index.es204.js +9 -19
  94. package/dist/index.es205.js +6 -8
  95. package/dist/index.es206.js +6 -7
  96. package/dist/index.es207.js +13 -7
  97. package/dist/index.es208.js +10 -5
  98. package/dist/index.es209.js +84 -6
  99. package/dist/index.es210.js +5 -9
  100. package/dist/index.es211.js +17 -5
  101. package/dist/index.es212.js +5 -8
  102. package/dist/index.es213.js +6 -12
  103. package/dist/index.es214.js +6 -9
  104. package/dist/index.es215.js +9 -8
  105. package/dist/index.es216.js +6 -10
  106. package/dist/index.es217.js +7 -14
  107. package/dist/index.es218.js +5 -6
  108. package/dist/index.es219.js +4 -6
  109. package/dist/index.es22.js +2 -2
  110. package/dist/index.es220.js +5 -6
  111. package/dist/index.es221.js +8 -6
  112. package/dist/index.es222.js +6 -7
  113. package/dist/index.es223.js +15 -9
  114. package/dist/index.es224.js +4 -84
  115. package/dist/index.es225.js +515 -64
  116. package/dist/index.es226.js +47 -35
  117. package/dist/index.es227.js +17 -9
  118. package/dist/index.es228.js +9 -8
  119. package/dist/index.es229.js +19 -8
  120. package/dist/index.es230.js +8 -10
  121. package/dist/index.es231.js +7 -7
  122. package/dist/index.es232.js +7 -7
  123. package/dist/index.es233.js +5 -6
  124. package/dist/index.es234.js +6 -5
  125. package/dist/index.es235.js +9 -15
  126. package/dist/index.es236.js +6 -21
  127. package/dist/index.es237.js +9 -9
  128. package/dist/index.es238.js +13 -38
  129. package/dist/index.es239.js +10 -18
  130. package/dist/index.es240.js +10 -177
  131. package/dist/index.es241.js +15 -25
  132. package/dist/index.es242.js +64 -18
  133. package/dist/index.es243.js +38 -54
  134. package/dist/index.es244.js +10 -16
  135. package/dist/index.es245.js +8 -200
  136. package/dist/index.es246.js +8 -22
  137. package/dist/index.es247.js +7 -24
  138. package/dist/index.es248.js +15 -370
  139. package/dist/index.es249.js +7 -7
  140. package/dist/index.es250.js +1 -1
  141. package/dist/index.es251.js +1 -1
  142. package/dist/index.es252.js +2 -2
  143. package/dist/index.es264.js +1 -1
  144. package/dist/index.es265.js +1 -1
  145. package/dist/index.es266.js +1 -1
  146. package/dist/index.es267.js +1 -1
  147. package/dist/index.es27.js +1 -1
  148. package/dist/index.es273.js +1 -1
  149. package/dist/index.es274.js +1 -1
  150. package/dist/index.es279.js +1 -1
  151. package/dist/index.es28.js +1 -1
  152. package/dist/index.es283.js +16 -15
  153. package/dist/index.es284.js +8 -3
  154. package/dist/index.es285.js +15 -16
  155. package/dist/index.es286.js +3 -8
  156. package/dist/index.es29.js +3 -3
  157. package/dist/index.es290.js +9 -4
  158. package/dist/index.es291.js +5 -57
  159. package/dist/index.es292.js +13 -28
  160. package/dist/index.es293.js +4 -46
  161. package/dist/index.es294.js +6 -66
  162. package/dist/index.es295.js +332 -36
  163. package/dist/index.es296.js +19 -19
  164. package/dist/index.es297.js +4 -68
  165. package/dist/index.es298.js +4 -67
  166. package/dist/index.es299.js +3 -69
  167. package/dist/index.es30.js +23 -23
  168. package/dist/index.es300.js +69 -66
  169. package/dist/index.es301.js +4 -46
  170. package/dist/index.es302.js +4 -46
  171. package/dist/index.es303.js +53 -55
  172. package/dist/index.es304.js +20 -41
  173. package/dist/index.es305.js +38 -34
  174. package/dist/index.es306.js +43 -48
  175. package/dist/index.es307.js +21 -55
  176. package/dist/index.es308.js +13 -91
  177. package/dist/index.es309.js +45 -24
  178. package/dist/index.es310.js +51 -30
  179. package/dist/index.es311.js +54 -32
  180. package/dist/index.es312.js +60 -22
  181. package/dist/index.es313.js +35 -19
  182. package/dist/index.es314.js +38 -21
  183. package/dist/index.es315.js +50 -22
  184. package/dist/index.es316.js +38 -19
  185. package/dist/index.es317.js +34 -21
  186. package/dist/index.es318.js +66 -14
  187. package/dist/index.es319.js +63 -37
  188. package/dist/index.es32.js +2 -2
  189. package/dist/index.es320.js +86 -35
  190. package/dist/index.es321.js +41 -14
  191. package/dist/index.es322.js +41 -14
  192. package/dist/index.es323.js +45 -8
  193. package/dist/index.es324.js +30 -4
  194. package/dist/index.es325.js +30 -13
  195. package/dist/index.es326.js +29 -4
  196. package/dist/index.es327.js +30 -6
  197. package/dist/index.es328.js +27 -331
  198. package/dist/index.es329.js +30 -19
  199. package/dist/index.es33.js +2 -2
  200. package/dist/index.es330.js +20 -4
  201. package/dist/index.es331.js +45 -4
  202. package/dist/index.es332.js +46 -3
  203. package/dist/index.es333.js +17 -69
  204. package/dist/index.es334.js +20 -4
  205. package/dist/index.es335.js +2 -6
  206. package/dist/index.es336.js +2 -34
  207. package/dist/index.es337.js +6 -26
  208. package/dist/index.es338.js +34 -18
  209. package/dist/index.es339.js +25 -4
  210. package/dist/index.es34.js +55 -43
  211. package/dist/index.es340.js +18 -231
  212. package/dist/index.es341.js +5 -100
  213. package/dist/index.es342.js +229 -26
  214. package/dist/index.es343.js +80 -35
  215. package/dist/index.es344.js +28 -2
  216. package/dist/index.es345.js +55 -2
  217. package/dist/index.es346.js +2 -2
  218. package/dist/index.es347.js +1 -1
  219. package/dist/index.es348.js +1 -1
  220. package/dist/index.es349.js +1 -1
  221. package/dist/index.es35.js +2 -2
  222. package/dist/index.es38.js +5 -5
  223. package/dist/index.es387.js +517 -66
  224. package/dist/index.es388.js +125 -29
  225. package/dist/index.es389.js +126 -9
  226. package/dist/index.es39.js +2 -2
  227. package/dist/index.es390.js +2 -153
  228. package/dist/index.es391.js +53 -107
  229. package/dist/index.es392.js +59 -2
  230. package/dist/index.es393.js +67 -53
  231. package/dist/index.es394.js +31 -59
  232. package/dist/index.es395.js +9 -20
  233. package/dist/index.es396.js +151 -99
  234. package/dist/index.es397.js +107 -46
  235. package/dist/index.es398.js +68 -6
  236. package/dist/index.es399.js +31 -2
  237. package/dist/index.es40.js +3 -3
  238. package/dist/index.es400.js +16 -8
  239. package/dist/index.es401.js +140 -326
  240. package/dist/index.es402.js +112 -48
  241. package/dist/index.es403.js +5 -3
  242. package/dist/index.es404.js +2 -2
  243. package/dist/index.es405.js +7 -46
  244. package/dist/index.es406.js +320 -76
  245. package/dist/index.es407.js +48 -12
  246. package/dist/index.es408.js +3 -340
  247. package/dist/index.es409.js +17 -72
  248. package/dist/index.es41.js +1 -1
  249. package/dist/index.es410.js +100 -10
  250. package/dist/index.es411.js +46 -518
  251. package/dist/index.es412.js +2 -127
  252. package/dist/index.es413.js +41 -120
  253. package/dist/index.es414.js +83 -68
  254. package/dist/index.es415.js +14 -31
  255. package/dist/index.es416.js +341 -16
  256. package/dist/index.es417.js +73 -139
  257. package/dist/index.es418.js +11 -114
  258. package/dist/index.es43.js +1 -1
  259. package/dist/index.es437.js +1 -1
  260. package/dist/index.es438.js +1 -1
  261. package/dist/index.es439.js +3 -3
  262. package/dist/index.es44.js +4 -4
  263. package/dist/index.es440.js +1 -1
  264. package/dist/index.es45.js +1 -1
  265. package/dist/index.es453.js +14 -5
  266. package/dist/index.es454.js +27 -14
  267. package/dist/index.es455.js +11 -27
  268. package/dist/index.es456.js +5 -11
  269. package/dist/index.es46.js +1 -1
  270. package/dist/index.es466.js +1 -1
  271. package/dist/index.es467.js +2 -2
  272. package/dist/index.es468.js +2 -2
  273. package/dist/index.es49.js +2 -2
  274. package/dist/index.es50.js +1 -1
  275. package/dist/index.es51.js +4 -4
  276. package/dist/index.es54.js +1 -1
  277. package/dist/index.es55.js +1 -1
  278. package/dist/index.es57.js +2 -2
  279. package/dist/index.es59.js +2 -2
  280. package/dist/index.es61.js +1 -1
  281. package/dist/index.es62.js +1 -1
  282. package/dist/index.es63.js +1 -1
  283. package/dist/index.es65.js +3 -3
  284. package/dist/index.es66.js +2 -2
  285. package/dist/index.es67.js +3 -3
  286. package/dist/index.es7.js +1 -1
  287. package/dist/index.es70.js +1 -1
  288. package/dist/index.es753.js +7 -7
  289. package/dist/index.es762.js +5 -24
  290. package/dist/index.es763.js +17 -8
  291. package/dist/index.es764.js +7 -66
  292. package/dist/index.es765.js +54 -50
  293. package/dist/index.es766.js +17 -69
  294. package/dist/index.es767.js +24 -5
  295. package/dist/index.es768.js +8 -17
  296. package/dist/index.es769.js +66 -7
  297. package/dist/index.es770.js +50 -54
  298. package/dist/index.es771.js +69 -17
  299. package/dist/index.es778.js +21 -6
  300. package/dist/index.es779.js +56 -20
  301. package/dist/index.es780.js +26 -49
  302. package/dist/index.es781.js +9 -34
  303. package/dist/index.es782.js +18 -9
  304. package/dist/index.es783.js +8 -18
  305. package/dist/index.es784.js +12 -8
  306. package/dist/index.es785.js +56 -11
  307. package/dist/index.es786.js +9 -57
  308. package/dist/index.es787.js +14 -9
  309. package/dist/index.es788.js +6 -14
  310. package/dist/index.es789.js +28 -7
  311. package/dist/index.es79.js +1 -1
  312. package/dist/index.es790.js +3 -28
  313. package/dist/index.es791.js +7 -3
  314. package/dist/index.es796.js +1 -1
  315. package/dist/index.es797.js +1 -1
  316. package/dist/index.es798.js +1 -1
  317. package/dist/index.es799.js +1 -1
  318. package/dist/index.es80.js +1 -1
  319. package/dist/index.es800.js +1 -1
  320. package/dist/index.es801.js +1 -1
  321. package/dist/index.es803.js +1 -1
  322. package/dist/index.es806.js +1 -1
  323. package/dist/index.es807.js +2 -2
  324. package/dist/index.es808.js +1 -1
  325. package/dist/index.es822.js +1 -1
  326. package/dist/index.es826.js +1 -1
  327. package/dist/index.es828.js +1 -1
  328. package/dist/index.es829.js +1 -1
  329. package/dist/index.es830.js +1 -1
  330. package/dist/index.es84.js +305 -33
  331. package/dist/index.es85.js +12 -46
  332. package/dist/index.es86.js +32 -29
  333. package/dist/index.es87.js +34 -29
  334. package/dist/index.es88.js +40 -301
  335. package/dist/index.es89.js +30 -12
  336. package/dist/index.es90.js +30 -9
  337. package/dist/index.es91.js +223 -54
  338. package/dist/index.es92.js +11 -55
  339. package/dist/index.es93.js +9 -90
  340. package/dist/index.es94.js +11 -37
  341. package/dist/index.es95.js +40 -23
  342. package/dist/index.es96.js +55 -30
  343. package/dist/index.es97.js +55 -12
  344. package/dist/index.es98.js +86 -253
  345. package/dist/index.es99.js +37 -12
  346. package/dist/style.css +8 -8
  347. package/package.json +1 -1
@@ -1,59 +1,7 @@
1
- import { addLeadingZeros as n } from "./index.es290.js";
2
- const g = {
3
- // Year
4
- y(e, t) {
5
- const r = e.getFullYear(), a = r > 0 ? r : 1 - r;
6
- return n(t === "yy" ? a % 100 : a, t.length);
7
- },
8
- // Month
9
- M(e, t) {
10
- const r = e.getMonth();
11
- return t === "M" ? String(r + 1) : n(r + 1, 2);
12
- },
13
- // Day of the month
14
- d(e, t) {
15
- return n(e.getDate(), t.length);
16
- },
17
- // AM or PM
18
- a(e, t) {
19
- const r = e.getHours() / 12 >= 1 ? "pm" : "am";
20
- switch (t) {
21
- case "a":
22
- case "aa":
23
- return r.toUpperCase();
24
- case "aaa":
25
- return r;
26
- case "aaaaa":
27
- return r[0];
28
- case "aaaa":
29
- default:
30
- return r === "am" ? "a.m." : "p.m.";
31
- }
32
- },
33
- // Hour [1-12]
34
- h(e, t) {
35
- return n(e.getHours() % 12 || 12, t.length);
36
- },
37
- // Hour [0-23]
38
- H(e, t) {
39
- return n(e.getHours(), t.length);
40
- },
41
- // Minute
42
- m(e, t) {
43
- return n(e.getMinutes(), t.length);
44
- },
45
- // Second
46
- s(e, t) {
47
- return n(e.getSeconds(), t.length);
48
- },
49
- // Fraction of second
50
- S(e, t) {
51
- const r = t.length, a = e.getMilliseconds(), s = Math.trunc(
52
- a * Math.pow(10, r - 3)
53
- );
54
- return n(s, t.length);
55
- }
56
- };
1
+ import e from "./index.es403.js";
2
+ function p(o, t) {
3
+ o.prototype = Object.create(t.prototype), o.prototype.constructor = o, e(o, t);
4
+ }
57
5
  export {
58
- g as lightFormatters
6
+ p as default
59
7
  };
@@ -1,30 +1,15 @@
1
- var i = Object.defineProperty;
2
- var o = (G, s, r) => s in G ? i(G, s, { enumerable: !0, configurable: !0, writable: !0, value: r }) : G[s] = r;
3
- var w = (G, s, r) => o(G, typeof s != "symbol" ? s + "" : s, r);
4
- import { Parser as u } from "./index.es395.js";
5
- class n extends u {
6
- constructor() {
7
- super(...arguments);
8
- w(this, "priority", 140);
9
- w(this, "incompatibleTokens", ["R", "u", "t", "T"]);
10
- }
11
- parse(r, a, e) {
12
- switch (a) {
13
- case "G":
14
- case "GG":
15
- case "GGG":
16
- return e.era(r, { width: "abbreviated" }) || e.era(r, { width: "narrow" });
17
- case "GGGGG":
18
- return e.era(r, { width: "narrow" });
19
- case "GGGG":
20
- default:
21
- return e.era(r, { width: "wide" }) || e.era(r, { width: "abbreviated" }) || e.era(r, { width: "narrow" });
22
- }
23
- }
24
- set(r, a, e) {
25
- return a.era = e, r.setFullYear(e, 0, 1), r.setHours(0, 0, 0, 0), r;
26
- }
27
- }
1
+ import { getDefaultExportFromCjs as e } from "./index.es147.js";
2
+ import { __module as r } from "./index.es404.js";
3
+ import { __require as o } from "./index.es405.js";
4
+ import { __require as t } from "./index.es406.js";
5
+ import { __require as p } from "./index.es407.js";
6
+ if (process.env.NODE_ENV !== "production") {
7
+ var s = o(), i = !0;
8
+ r.exports = t()(s.isElement, i);
9
+ } else
10
+ r.exports = p()();
11
+ var m = r.exports;
12
+ const q = /* @__PURE__ */ e(m);
28
13
  export {
29
- n as EraParser
14
+ q as default
30
15
  };
@@ -1,49 +1,7 @@
1
- var y = Object.defineProperty;
2
- var Y = (a, i, r) => i in a ? y(a, i, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[i] = r;
3
- var n = (a, i, r) => Y(a, typeof i != "symbol" ? i + "" : i, r);
4
- import { Parser as m } from "./index.es395.js";
5
- import { mapValue as u, parseNDigits as l, normalizeTwoDigitYear as p } from "./index.es396.js";
6
- class g extends m {
7
- constructor() {
8
- super(...arguments);
9
- n(this, "priority", 130);
10
- n(this, "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]);
11
- }
12
- parse(r, e, s) {
13
- const t = (o) => ({
14
- year: o,
15
- isTwoDigitYear: e === "yy"
16
- });
17
- switch (e) {
18
- case "y":
19
- return u(l(4, r), t);
20
- case "yo":
21
- return u(
22
- s.ordinalNumber(r, {
23
- unit: "year"
24
- }),
25
- t
26
- );
27
- default:
28
- return u(l(e.length, r), t);
29
- }
30
- }
31
- validate(r, e) {
32
- return e.isTwoDigitYear || e.year > 0;
33
- }
34
- set(r, e, s) {
35
- const t = r.getFullYear();
36
- if (s.isTwoDigitYear) {
37
- const c = p(
38
- s.year,
39
- t
40
- );
41
- return r.setFullYear(c, 0, 1), r.setHours(0, 0, 0, 0), r;
42
- }
43
- const o = !("era" in e) || e.era === 1 ? s.year : 1 - s.year;
44
- return r.setFullYear(o, 0, 1), r.setHours(0, 0, 0, 0), r;
45
- }
1
+ import i from "./index.es408.js";
2
+ function c(s, a) {
3
+ s.classList ? s.classList.add(a) : i(s, a) || (typeof s.className == "string" ? s.className = s.className + " " + a : s.setAttribute("class", (s.className && s.className.baseVal || "") + " " + a));
46
4
  }
47
5
  export {
48
- g as YearParser
6
+ c as default
49
7
  };
@@ -1,69 +1,9 @@
1
- var D = Object.defineProperty;
2
- var f = (t, i, r) => i in t ? D(t, i, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[i] = r;
3
- var n = (t, i, r) => f(t, typeof i != "symbol" ? i + "" : i, r);
4
- import { getWeekYear as y } from "./index.es217.js";
5
- import { startOfWeek as m } from "./index.es215.js";
6
- import { Parser as T } from "./index.es395.js";
7
- import { mapValue as Y, parseNDigits as u, normalizeTwoDigitYear as p } from "./index.es396.js";
8
- class C extends T {
9
- constructor() {
10
- super(...arguments);
11
- n(this, "priority", 130);
12
- n(this, "incompatibleTokens", [
13
- "y",
14
- "R",
15
- "u",
16
- "Q",
17
- "q",
18
- "M",
19
- "L",
20
- "I",
21
- "d",
22
- "D",
23
- "i",
24
- "t",
25
- "T"
26
- ]);
27
- }
28
- parse(r, e, s) {
29
- const a = (o) => ({
30
- year: o,
31
- isTwoDigitYear: e === "YY"
32
- });
33
- switch (e) {
34
- case "Y":
35
- return Y(u(4, r), a);
36
- case "Yo":
37
- return Y(
38
- s.ordinalNumber(r, {
39
- unit: "year"
40
- }),
41
- a
42
- );
43
- default:
44
- return Y(u(e.length, r), a);
45
- }
46
- }
47
- validate(r, e) {
48
- return e.isTwoDigitYear || e.year > 0;
49
- }
50
- set(r, e, s, a) {
51
- const o = y(r, a);
52
- if (s.isTwoDigitYear) {
53
- const l = p(
54
- s.year,
55
- o
56
- );
57
- return r.setFullYear(
58
- l,
59
- 0,
60
- a.firstWeekContainsDate
61
- ), r.setHours(0, 0, 0, 0), m(r, a);
62
- }
63
- const c = !("era" in e) || e.era === 1 ? s.year : 1 - s.year;
64
- return r.setFullYear(c, 0, a.firstWeekContainsDate), r.setHours(0, 0, 0, 0), m(r, a);
65
- }
1
+ function c(s, a) {
2
+ return s.replace(new RegExp("(^|\\s)" + a + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
3
+ }
4
+ function r(s, a) {
5
+ s.classList ? s.classList.remove(a) : typeof s.className == "string" ? s.className = c(s.className, a) : s.setAttribute("class", c(s.className && s.className.baseVal || "", a));
66
6
  }
67
7
  export {
68
- C as LocalWeekYearParser
8
+ r as default
69
9
  };
@@ -1,40 +1,336 @@
1
- var f = Object.defineProperty;
2
- var p = (t, e, r) => e in t ? f(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var i = (t, e, r) => p(t, typeof e != "symbol" ? e + "" : e, r);
4
- import { startOfISOWeek as n } from "./index.es211.js";
5
- import { constructFrom as u } from "./index.es186.js";
6
- import { Parser as c } from "./index.es395.js";
7
- import { parseNDigitsSigned as a } from "./index.es396.js";
8
- class W extends c {
9
- constructor() {
10
- super(...arguments);
11
- i(this, "priority", 130);
12
- i(this, "incompatibleTokens", [
13
- "G",
14
- "y",
15
- "Y",
16
- "u",
17
- "Q",
18
- "q",
19
- "M",
20
- "L",
21
- "w",
22
- "d",
23
- "D",
24
- "e",
25
- "c",
26
- "t",
27
- "T"
28
- ]);
29
- }
30
- parse(r, s) {
31
- return s === "R" ? a(4, r) : a(s.length, r);
32
- }
33
- set(r, s, m) {
34
- const o = u(r, 0);
35
- return o.setFullYear(m, 0, 4), o.setHours(0, 0, 0, 0), n(o);
1
+ import C from "./index.es290.js";
2
+ import D from "./index.es291.js";
3
+ import o from "./index.es292.js";
4
+ import v from "react";
5
+ import b from "react-dom";
6
+ import T from "./index.es301.js";
7
+ import { timeoutsShape as R } from "./index.es296.js";
8
+ import O from "./index.es299.js";
9
+ import { forceReflow as k } from "./index.es297.js";
10
+ var x = "unmounted", f = "exited", l = "entering", h = "entered", N = "exiting", p = /* @__PURE__ */ function(d) {
11
+ D(u, d);
12
+ function u(i, e) {
13
+ var t;
14
+ t = d.call(this, i, e) || this;
15
+ var n = e, r = n && !n.isMounting ? i.enter : i.appear, s;
16
+ return t.appearStatus = null, i.in ? r ? (s = f, t.appearStatus = l) : s = h : i.unmountOnExit || i.mountOnEnter ? s = x : s = f, t.state = {
17
+ status: s
18
+ }, t.nextCallback = null, t;
36
19
  }
20
+ u.getDerivedStateFromProps = function(e, t) {
21
+ var n = e.in;
22
+ return n && t.status === x ? {
23
+ status: f
24
+ } : null;
25
+ };
26
+ var a = u.prototype;
27
+ return a.componentDidMount = function() {
28
+ this.updateStatus(!0, this.appearStatus);
29
+ }, a.componentDidUpdate = function(e) {
30
+ var t = null;
31
+ if (e !== this.props) {
32
+ var n = this.state.status;
33
+ this.props.in ? n !== l && n !== h && (t = l) : (n === l || n === h) && (t = N);
34
+ }
35
+ this.updateStatus(!1, t);
36
+ }, a.componentWillUnmount = function() {
37
+ this.cancelNextCallback();
38
+ }, a.getTimeouts = function() {
39
+ var e = this.props.timeout, t, n, r;
40
+ return t = n = r = e, e != null && typeof e != "number" && (t = e.exit, n = e.enter, r = e.appear !== void 0 ? e.appear : n), {
41
+ exit: t,
42
+ enter: n,
43
+ appear: r
44
+ };
45
+ }, a.updateStatus = function(e, t) {
46
+ if (e === void 0 && (e = !1), t !== null)
47
+ if (this.cancelNextCallback(), t === l) {
48
+ if (this.props.unmountOnExit || this.props.mountOnEnter) {
49
+ var n = this.props.nodeRef ? this.props.nodeRef.current : b.findDOMNode(this);
50
+ n && k(n);
51
+ }
52
+ this.performEnter(e);
53
+ } else
54
+ this.performExit();
55
+ else this.props.unmountOnExit && this.state.status === f && this.setState({
56
+ status: x
57
+ });
58
+ }, a.performEnter = function(e) {
59
+ var t = this, n = this.props.enter, r = this.context ? this.context.isMounting : e, s = this.props.nodeRef ? [r] : [b.findDOMNode(this), r], c = s[0], m = s[1], S = this.getTimeouts(), g = r ? S.appear : S.enter;
60
+ if (!e && !n || T.disabled) {
61
+ this.safeSetState({
62
+ status: h
63
+ }, function() {
64
+ t.props.onEntered(c);
65
+ });
66
+ return;
67
+ }
68
+ this.props.onEnter(c, m), this.safeSetState({
69
+ status: l
70
+ }, function() {
71
+ t.props.onEntering(c, m), t.onTransitionEnd(g, function() {
72
+ t.safeSetState({
73
+ status: h
74
+ }, function() {
75
+ t.props.onEntered(c, m);
76
+ });
77
+ });
78
+ });
79
+ }, a.performExit = function() {
80
+ var e = this, t = this.props.exit, n = this.getTimeouts(), r = this.props.nodeRef ? void 0 : b.findDOMNode(this);
81
+ if (!t || T.disabled) {
82
+ this.safeSetState({
83
+ status: f
84
+ }, function() {
85
+ e.props.onExited(r);
86
+ });
87
+ return;
88
+ }
89
+ this.props.onExit(r), this.safeSetState({
90
+ status: N
91
+ }, function() {
92
+ e.props.onExiting(r), e.onTransitionEnd(n.exit, function() {
93
+ e.safeSetState({
94
+ status: f
95
+ }, function() {
96
+ e.props.onExited(r);
97
+ });
98
+ });
99
+ });
100
+ }, a.cancelNextCallback = function() {
101
+ this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
102
+ }, a.safeSetState = function(e, t) {
103
+ t = this.setNextCallback(t), this.setState(e, t);
104
+ }, a.setNextCallback = function(e) {
105
+ var t = this, n = !0;
106
+ return this.nextCallback = function(r) {
107
+ n && (n = !1, t.nextCallback = null, e(r));
108
+ }, this.nextCallback.cancel = function() {
109
+ n = !1;
110
+ }, this.nextCallback;
111
+ }, a.onTransitionEnd = function(e, t) {
112
+ this.setNextCallback(t);
113
+ var n = this.props.nodeRef ? this.props.nodeRef.current : b.findDOMNode(this), r = e == null && !this.props.addEndListener;
114
+ if (!n || r) {
115
+ setTimeout(this.nextCallback, 0);
116
+ return;
117
+ }
118
+ if (this.props.addEndListener) {
119
+ var s = this.props.nodeRef ? [this.nextCallback] : [n, this.nextCallback], c = s[0], m = s[1];
120
+ this.props.addEndListener(c, m);
121
+ }
122
+ e != null && setTimeout(this.nextCallback, e);
123
+ }, a.render = function() {
124
+ var e = this.state.status;
125
+ if (e === x)
126
+ return null;
127
+ var t = this.props, n = t.children;
128
+ t.in, t.mountOnEnter, t.unmountOnExit, t.appear, t.enter, t.exit, t.timeout, t.addEndListener, t.onEnter, t.onEntering, t.onEntered, t.onExit, t.onExiting, t.onExited, t.nodeRef;
129
+ var r = C(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
130
+ return (
131
+ // allows for nested Transitions
132
+ /* @__PURE__ */ v.createElement(O.Provider, {
133
+ value: null
134
+ }, typeof n == "function" ? n(e, r) : v.cloneElement(v.Children.only(n), r))
135
+ );
136
+ }, u;
137
+ }(v.Component);
138
+ p.contextType = O;
139
+ p.propTypes = process.env.NODE_ENV !== "production" ? {
140
+ /**
141
+ * A React reference to DOM element that need to transition:
142
+ * https://stackoverflow.com/a/51127130/4671932
143
+ *
144
+ * - When `nodeRef` prop is used, `node` is not passed to callback functions
145
+ * (e.g. `onEnter`) because user already has direct access to the node.
146
+ * - When changing `key` prop of `Transition` in a `TransitionGroup` a new
147
+ * `nodeRef` need to be provided to `Transition` with changed `key` prop
148
+ * (see
149
+ * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
150
+ */
151
+ nodeRef: o.shape({
152
+ current: typeof Element > "u" ? o.any : function(d, u, a, i, e, t) {
153
+ var n = d[u];
154
+ return o.instanceOf(n && "ownerDocument" in n ? n.ownerDocument.defaultView.Element : Element)(d, u, a, i, e, t);
155
+ }
156
+ }),
157
+ /**
158
+ * A `function` child can be used instead of a React element. This function is
159
+ * called with the current transition status (`'entering'`, `'entered'`,
160
+ * `'exiting'`, `'exited'`), which can be used to apply context
161
+ * specific props to a component.
162
+ *
163
+ * ```jsx
164
+ * <Transition in={this.state.in} timeout={150}>
165
+ * {state => (
166
+ * <MyComponent className={`fade fade-${state}`} />
167
+ * )}
168
+ * </Transition>
169
+ * ```
170
+ */
171
+ children: o.oneOfType([o.func.isRequired, o.element.isRequired]).isRequired,
172
+ /**
173
+ * Show the component; triggers the enter or exit states
174
+ */
175
+ in: o.bool,
176
+ /**
177
+ * By default the child component is mounted immediately along with
178
+ * the parent `Transition` component. If you want to "lazy mount" the component on the
179
+ * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
180
+ * mounted, even on "exited", unless you also specify `unmountOnExit`.
181
+ */
182
+ mountOnEnter: o.bool,
183
+ /**
184
+ * By default the child component stays mounted after it reaches the `'exited'` state.
185
+ * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
186
+ */
187
+ unmountOnExit: o.bool,
188
+ /**
189
+ * By default the child component does not perform the enter transition when
190
+ * it first mounts, regardless of the value of `in`. If you want this
191
+ * behavior, set both `appear` and `in` to `true`.
192
+ *
193
+ * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
194
+ * > only adds an additional enter transition. However, in the
195
+ * > `<CSSTransition>` component that first enter transition does result in
196
+ * > additional `.appear-*` classes, that way you can choose to style it
197
+ * > differently.
198
+ */
199
+ appear: o.bool,
200
+ /**
201
+ * Enable or disable enter transitions.
202
+ */
203
+ enter: o.bool,
204
+ /**
205
+ * Enable or disable exit transitions.
206
+ */
207
+ exit: o.bool,
208
+ /**
209
+ * The duration of the transition, in milliseconds.
210
+ * Required unless `addEndListener` is provided.
211
+ *
212
+ * You may specify a single timeout for all transitions:
213
+ *
214
+ * ```jsx
215
+ * timeout={500}
216
+ * ```
217
+ *
218
+ * or individually:
219
+ *
220
+ * ```jsx
221
+ * timeout={{
222
+ * appear: 500,
223
+ * enter: 300,
224
+ * exit: 500,
225
+ * }}
226
+ * ```
227
+ *
228
+ * - `appear` defaults to the value of `enter`
229
+ * - `enter` defaults to `0`
230
+ * - `exit` defaults to `0`
231
+ *
232
+ * @type {number | { enter?: number, exit?: number, appear?: number }}
233
+ */
234
+ timeout: function(u) {
235
+ var a = R;
236
+ u.addEndListener || (a = a.isRequired);
237
+ for (var i = arguments.length, e = new Array(i > 1 ? i - 1 : 0), t = 1; t < i; t++)
238
+ e[t - 1] = arguments[t];
239
+ return a.apply(void 0, [u].concat(e));
240
+ },
241
+ /**
242
+ * Add a custom transition end trigger. Called with the transitioning
243
+ * DOM node and a `done` callback. Allows for more fine grained transition end
244
+ * logic. Timeouts are still used as a fallback if provided.
245
+ *
246
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
247
+ *
248
+ * ```jsx
249
+ * addEndListener={(node, done) => {
250
+ * // use the css transitionend event to mark the finish of a transition
251
+ * node.addEventListener('transitionend', done, false);
252
+ * }}
253
+ * ```
254
+ */
255
+ addEndListener: o.func,
256
+ /**
257
+ * Callback fired before the "entering" status is applied. An extra parameter
258
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
259
+ *
260
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
261
+ *
262
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
263
+ */
264
+ onEnter: o.func,
265
+ /**
266
+ * Callback fired after the "entering" status is applied. An extra parameter
267
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
268
+ *
269
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
270
+ *
271
+ * @type Function(node: HtmlElement, isAppearing: bool)
272
+ */
273
+ onEntering: o.func,
274
+ /**
275
+ * Callback fired after the "entered" status is applied. An extra parameter
276
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
277
+ *
278
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
279
+ *
280
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
281
+ */
282
+ onEntered: o.func,
283
+ /**
284
+ * Callback fired before the "exiting" status is applied.
285
+ *
286
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
287
+ *
288
+ * @type Function(node: HtmlElement) -> void
289
+ */
290
+ onExit: o.func,
291
+ /**
292
+ * Callback fired after the "exiting" status is applied.
293
+ *
294
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
295
+ *
296
+ * @type Function(node: HtmlElement) -> void
297
+ */
298
+ onExiting: o.func,
299
+ /**
300
+ * Callback fired after the "exited" status is applied.
301
+ *
302
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
303
+ *
304
+ * @type Function(node: HtmlElement) -> void
305
+ */
306
+ onExited: o.func
307
+ } : {};
308
+ function E() {
37
309
  }
310
+ p.defaultProps = {
311
+ in: !1,
312
+ mountOnEnter: !1,
313
+ unmountOnExit: !1,
314
+ appear: !1,
315
+ enter: !0,
316
+ exit: !0,
317
+ onEnter: E,
318
+ onEntering: E,
319
+ onEntered: E,
320
+ onExit: E,
321
+ onExiting: E,
322
+ onExited: E
323
+ };
324
+ p.UNMOUNTED = x;
325
+ p.EXITED = f;
326
+ p.ENTERING = l;
327
+ p.ENTERED = h;
328
+ p.EXITING = N;
38
329
  export {
39
- W as ISOWeekYearParser
330
+ h as ENTERED,
331
+ l as ENTERING,
332
+ f as EXITED,
333
+ N as EXITING,
334
+ x as UNMOUNTED,
335
+ p as default
40
336
  };
@@ -1,21 +1,21 @@
1
- var p = Object.defineProperty;
2
- var a = (s, e, r) => e in s ? p(s, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : s[e] = r;
3
- var i = (s, e, r) => a(s, typeof e != "symbol" ? e + "" : e, r);
4
- import { Parser as l } from "./index.es395.js";
5
- import { parseNDigitsSigned as o } from "./index.es396.js";
6
- class c extends l {
7
- constructor() {
8
- super(...arguments);
9
- i(this, "priority", 130);
10
- i(this, "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
11
- }
12
- parse(r, t) {
13
- return t === "u" ? o(4, r) : o(t.length, r);
14
- }
15
- set(r, t, n) {
16
- return r.setFullYear(n, 0, 1), r.setHours(0, 0, 0, 0), r;
17
- }
18
- }
1
+ import e from "./index.es292.js";
2
+ var n = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape({
3
+ enter: e.number,
4
+ exit: e.number,
5
+ appear: e.number
6
+ }).isRequired]) : null, t = process.env.NODE_ENV !== "production" ? e.oneOfType([e.string, e.shape({
7
+ enter: e.string,
8
+ exit: e.string,
9
+ active: e.string
10
+ }), e.shape({
11
+ enter: e.string,
12
+ enterDone: e.string,
13
+ enterActive: e.string,
14
+ exit: e.string,
15
+ exitDone: e.string,
16
+ exitActive: e.string
17
+ })]) : null;
19
18
  export {
20
- c as ExtendedYearParser
19
+ t as classNamesShape,
20
+ n as timeoutsShape
21
21
  };