@anoki/fse-ui 1.10.1-RC2.3 → 1.10.1-RC2.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 (1767) hide show
  1. package/dist/components/ui/VideoPlayer/VideoPlayer.css +1 -1
  2. package/dist/index.cjs.js +1 -1
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.cjs10.js +1 -1
  5. package/dist/index.cjs100.js +1 -1
  6. package/dist/index.cjs101.js +1 -1
  7. package/dist/index.cjs102.js +1 -1
  8. package/dist/index.cjs103.js +1 -1
  9. package/dist/index.cjs104.js +1 -1
  10. package/dist/index.cjs105.js +1 -1
  11. package/dist/index.cjs106.js +1 -1
  12. package/dist/index.cjs107.js +1 -1
  13. package/dist/index.cjs108.js +1 -1
  14. package/dist/index.cjs109.js +1 -1
  15. package/dist/index.cjs11.js +1 -1
  16. package/dist/index.cjs110.js +1 -1
  17. package/dist/index.cjs111.js +1 -1
  18. package/dist/index.cjs112.js +1 -1
  19. package/dist/index.cjs113.js +1 -1
  20. package/dist/index.cjs114.js +1 -1
  21. package/dist/index.cjs115.js +1 -1
  22. package/dist/index.cjs116.js +1 -1
  23. package/dist/index.cjs117.js +1 -1
  24. package/dist/index.cjs118.js +1 -1
  25. package/dist/index.cjs119.js +1 -1
  26. package/dist/index.cjs12.js +1 -1
  27. package/dist/index.cjs120.js +1 -1
  28. package/dist/index.cjs121.js +1 -1
  29. package/dist/index.cjs122.js +1 -1
  30. package/dist/index.cjs123.js +1 -1
  31. package/dist/index.cjs124.js +1 -1
  32. package/dist/index.cjs125.js +1 -1
  33. package/dist/index.cjs126.js +1 -1
  34. package/dist/index.cjs127.js +1 -1
  35. package/dist/index.cjs128.js +1 -1
  36. package/dist/index.cjs129.js +1 -1
  37. package/dist/index.cjs13.js +1 -1
  38. package/dist/index.cjs130.js +1 -1
  39. package/dist/index.cjs131.js +1 -1
  40. package/dist/index.cjs132.js +1 -1
  41. package/dist/index.cjs133.js +1 -1
  42. package/dist/index.cjs134.js +1 -1
  43. package/dist/index.cjs135.js +1 -1
  44. package/dist/index.cjs136.js +1 -1
  45. package/dist/index.cjs137.js +1 -1
  46. package/dist/index.cjs138.js +1 -1
  47. package/dist/index.cjs138.js.map +1 -1
  48. package/dist/index.cjs139.js +1 -1
  49. package/dist/index.cjs139.js.map +1 -1
  50. package/dist/index.cjs14.js +1 -1
  51. package/dist/index.cjs140.js +1 -1
  52. package/dist/index.cjs140.js.map +1 -1
  53. package/dist/index.cjs141.js +1 -1
  54. package/dist/index.cjs141.js.map +1 -1
  55. package/dist/index.cjs142.js +1 -1
  56. package/dist/index.cjs142.js.map +1 -1
  57. package/dist/index.cjs143.js +1 -1
  58. package/dist/index.cjs143.js.map +1 -1
  59. package/dist/index.cjs144.js +1 -1
  60. package/dist/index.cjs144.js.map +1 -1
  61. package/dist/index.cjs145.js +1 -1
  62. package/dist/index.cjs145.js.map +1 -1
  63. package/dist/index.cjs146.js +1 -1
  64. package/dist/index.cjs146.js.map +1 -1
  65. package/dist/index.cjs147.js +1 -1
  66. package/dist/index.cjs147.js.map +1 -1
  67. package/dist/index.cjs148.js +1 -1
  68. package/dist/index.cjs148.js.map +1 -1
  69. package/dist/index.cjs149.js +1 -1
  70. package/dist/index.cjs149.js.map +1 -1
  71. package/dist/index.cjs15.js +1 -1
  72. package/dist/index.cjs150.js +1 -1
  73. package/dist/index.cjs150.js.map +1 -1
  74. package/dist/index.cjs151.js +1 -1
  75. package/dist/index.cjs151.js.map +1 -1
  76. package/dist/index.cjs152.js +1 -1
  77. package/dist/index.cjs152.js.map +1 -1
  78. package/dist/index.cjs153.js +1 -1
  79. package/dist/index.cjs153.js.map +1 -1
  80. package/dist/index.cjs154.js +1 -1
  81. package/dist/index.cjs154.js.map +1 -1
  82. package/dist/index.cjs155.js +1 -1
  83. package/dist/index.cjs155.js.map +1 -1
  84. package/dist/index.cjs156.js +1 -1
  85. package/dist/index.cjs156.js.map +1 -1
  86. package/dist/index.cjs157.js +1 -1
  87. package/dist/index.cjs157.js.map +1 -1
  88. package/dist/index.cjs158.js +1 -1
  89. package/dist/index.cjs158.js.map +1 -1
  90. package/dist/index.cjs159.js +1 -1
  91. package/dist/index.cjs159.js.map +1 -1
  92. package/dist/index.cjs16.js +1 -1
  93. package/dist/index.cjs160.js +1 -1
  94. package/dist/index.cjs160.js.map +1 -1
  95. package/dist/index.cjs161.js +1 -1
  96. package/dist/index.cjs161.js.map +1 -1
  97. package/dist/index.cjs162.js +1 -1
  98. package/dist/index.cjs162.js.map +1 -1
  99. package/dist/index.cjs163.js +1 -1
  100. package/dist/index.cjs163.js.map +1 -1
  101. package/dist/index.cjs164.js +1 -1
  102. package/dist/index.cjs164.js.map +1 -1
  103. package/dist/index.cjs165.js +1 -1
  104. package/dist/index.cjs165.js.map +1 -1
  105. package/dist/index.cjs166.js +1 -1
  106. package/dist/index.cjs166.js.map +1 -1
  107. package/dist/index.cjs167.js +1 -1
  108. package/dist/index.cjs167.js.map +1 -1
  109. package/dist/index.cjs168.js +1 -1
  110. package/dist/index.cjs168.js.map +1 -1
  111. package/dist/index.cjs169.js +1 -1
  112. package/dist/index.cjs169.js.map +1 -1
  113. package/dist/index.cjs17.js +1 -1
  114. package/dist/index.cjs170.js +1 -1
  115. package/dist/index.cjs170.js.map +1 -1
  116. package/dist/index.cjs171.js +1 -1
  117. package/dist/index.cjs171.js.map +1 -1
  118. package/dist/index.cjs172.js +1 -1
  119. package/dist/index.cjs172.js.map +1 -1
  120. package/dist/index.cjs173.js +1 -1
  121. package/dist/index.cjs173.js.map +1 -1
  122. package/dist/index.cjs174.js +1 -1
  123. package/dist/index.cjs174.js.map +1 -1
  124. package/dist/index.cjs175.js +1 -1
  125. package/dist/index.cjs175.js.map +1 -1
  126. package/dist/index.cjs176.js +1 -1
  127. package/dist/index.cjs176.js.map +1 -1
  128. package/dist/index.cjs177.js +1 -1
  129. package/dist/index.cjs177.js.map +1 -1
  130. package/dist/index.cjs178.js +1 -1
  131. package/dist/index.cjs178.js.map +1 -1
  132. package/dist/index.cjs179.js +1 -1
  133. package/dist/index.cjs179.js.map +1 -1
  134. package/dist/index.cjs18.js +1 -1
  135. package/dist/index.cjs180.js +1 -1
  136. package/dist/index.cjs180.js.map +1 -1
  137. package/dist/index.cjs181.js +1 -1
  138. package/dist/index.cjs181.js.map +1 -1
  139. package/dist/index.cjs182.js +1 -1
  140. package/dist/index.cjs182.js.map +1 -1
  141. package/dist/index.cjs183.js +1 -1
  142. package/dist/index.cjs183.js.map +1 -1
  143. package/dist/index.cjs184.js +1 -1
  144. package/dist/index.cjs184.js.map +1 -1
  145. package/dist/index.cjs185.js +1 -1
  146. package/dist/index.cjs185.js.map +1 -1
  147. package/dist/index.cjs186.js +1 -1
  148. package/dist/index.cjs186.js.map +1 -1
  149. package/dist/index.cjs187.js +1 -1
  150. package/dist/index.cjs187.js.map +1 -1
  151. package/dist/index.cjs188.js +1 -1
  152. package/dist/index.cjs188.js.map +1 -1
  153. package/dist/index.cjs189.js +1 -1
  154. package/dist/index.cjs189.js.map +1 -1
  155. package/dist/index.cjs19.js +1 -1
  156. package/dist/index.cjs190.js +1 -1
  157. package/dist/index.cjs190.js.map +1 -1
  158. package/dist/index.cjs191.js +1 -1
  159. package/dist/index.cjs191.js.map +1 -1
  160. package/dist/index.cjs192.js +1 -1
  161. package/dist/index.cjs192.js.map +1 -1
  162. package/dist/index.cjs193.js +1 -1
  163. package/dist/index.cjs193.js.map +1 -1
  164. package/dist/index.cjs194.js +1 -1
  165. package/dist/index.cjs194.js.map +1 -1
  166. package/dist/index.cjs195.js +1 -1
  167. package/dist/index.cjs195.js.map +1 -1
  168. package/dist/index.cjs196.js +1 -1
  169. package/dist/index.cjs196.js.map +1 -1
  170. package/dist/index.cjs197.js +1 -1
  171. package/dist/index.cjs197.js.map +1 -1
  172. package/dist/index.cjs198.js +1 -1
  173. package/dist/index.cjs198.js.map +1 -1
  174. package/dist/index.cjs199.js +1 -1
  175. package/dist/index.cjs199.js.map +1 -1
  176. package/dist/index.cjs20.js +1 -1
  177. package/dist/index.cjs200.js +1 -1
  178. package/dist/index.cjs200.js.map +1 -1
  179. package/dist/index.cjs201.js +1 -1
  180. package/dist/index.cjs201.js.map +1 -1
  181. package/dist/index.cjs202.js +1 -1
  182. package/dist/index.cjs202.js.map +1 -1
  183. package/dist/index.cjs203.js +1 -1
  184. package/dist/index.cjs203.js.map +1 -1
  185. package/dist/index.cjs204.js +1 -1
  186. package/dist/index.cjs204.js.map +1 -1
  187. package/dist/index.cjs205.js +1 -1
  188. package/dist/index.cjs205.js.map +1 -1
  189. package/dist/index.cjs206.js +1 -1
  190. package/dist/index.cjs206.js.map +1 -1
  191. package/dist/index.cjs207.js +1 -1
  192. package/dist/index.cjs207.js.map +1 -1
  193. package/dist/index.cjs208.js +1 -1
  194. package/dist/index.cjs208.js.map +1 -1
  195. package/dist/index.cjs209.js +1 -1
  196. package/dist/index.cjs209.js.map +1 -1
  197. package/dist/index.cjs21.js +1 -1
  198. package/dist/index.cjs210.js +1 -1
  199. package/dist/index.cjs210.js.map +1 -1
  200. package/dist/index.cjs211.js +1 -1
  201. package/dist/index.cjs211.js.map +1 -1
  202. package/dist/index.cjs212.js +1 -1
  203. package/dist/index.cjs212.js.map +1 -1
  204. package/dist/index.cjs213.js +1 -1
  205. package/dist/index.cjs213.js.map +1 -1
  206. package/dist/index.cjs214.js +1 -1
  207. package/dist/index.cjs214.js.map +1 -1
  208. package/dist/index.cjs215.js +1 -1
  209. package/dist/index.cjs215.js.map +1 -1
  210. package/dist/index.cjs216.js +1 -1
  211. package/dist/index.cjs216.js.map +1 -1
  212. package/dist/index.cjs217.js +1 -1
  213. package/dist/index.cjs217.js.map +1 -1
  214. package/dist/index.cjs218.js +1 -1
  215. package/dist/index.cjs218.js.map +1 -1
  216. package/dist/index.cjs219.js +1 -1
  217. package/dist/index.cjs219.js.map +1 -1
  218. package/dist/index.cjs22.js +1 -1
  219. package/dist/index.cjs220.js +1 -1
  220. package/dist/index.cjs220.js.map +1 -1
  221. package/dist/index.cjs221.js +1 -1
  222. package/dist/index.cjs221.js.map +1 -1
  223. package/dist/index.cjs222.js +1 -1
  224. package/dist/index.cjs222.js.map +1 -1
  225. package/dist/index.cjs223.js +1 -1
  226. package/dist/index.cjs223.js.map +1 -1
  227. package/dist/index.cjs224.js +1 -1
  228. package/dist/index.cjs224.js.map +1 -1
  229. package/dist/index.cjs225.js +1 -1
  230. package/dist/index.cjs225.js.map +1 -1
  231. package/dist/index.cjs226.js +1 -1
  232. package/dist/index.cjs226.js.map +1 -1
  233. package/dist/index.cjs227.js +1 -1
  234. package/dist/index.cjs227.js.map +1 -1
  235. package/dist/index.cjs228.js +1 -1
  236. package/dist/index.cjs228.js.map +1 -1
  237. package/dist/index.cjs229.js +1 -1
  238. package/dist/index.cjs229.js.map +1 -1
  239. package/dist/index.cjs23.js +1 -1
  240. package/dist/index.cjs230.js +1 -1
  241. package/dist/index.cjs230.js.map +1 -1
  242. package/dist/index.cjs231.js +1 -1
  243. package/dist/index.cjs231.js.map +1 -1
  244. package/dist/index.cjs232.js +1 -1
  245. package/dist/index.cjs232.js.map +1 -1
  246. package/dist/index.cjs233.js +1 -1
  247. package/dist/index.cjs233.js.map +1 -1
  248. package/dist/index.cjs234.js +1 -1
  249. package/dist/index.cjs234.js.map +1 -1
  250. package/dist/index.cjs235.js +1 -1
  251. package/dist/index.cjs235.js.map +1 -1
  252. package/dist/index.cjs236.js +1 -1
  253. package/dist/index.cjs236.js.map +1 -1
  254. package/dist/index.cjs237.js +1 -1
  255. package/dist/index.cjs237.js.map +1 -1
  256. package/dist/index.cjs238.js +1 -1
  257. package/dist/index.cjs238.js.map +1 -1
  258. package/dist/index.cjs239.js +1 -1
  259. package/dist/index.cjs239.js.map +1 -1
  260. package/dist/index.cjs24.js +1 -1
  261. package/dist/index.cjs240.js +1 -1
  262. package/dist/index.cjs240.js.map +1 -1
  263. package/dist/index.cjs241.js +1 -1
  264. package/dist/index.cjs241.js.map +1 -1
  265. package/dist/index.cjs242.js +1 -1
  266. package/dist/index.cjs242.js.map +1 -1
  267. package/dist/index.cjs243.js +1 -1
  268. package/dist/index.cjs243.js.map +1 -1
  269. package/dist/index.cjs244.js +1 -1
  270. package/dist/index.cjs244.js.map +1 -1
  271. package/dist/index.cjs245.js +1 -1
  272. package/dist/index.cjs245.js.map +1 -1
  273. package/dist/index.cjs246.js +1 -1
  274. package/dist/index.cjs246.js.map +1 -1
  275. package/dist/index.cjs25.js +1 -1
  276. package/dist/index.cjs250.js +2 -0
  277. package/dist/index.cjs250.js.map +1 -0
  278. package/dist/index.cjs257.js +2 -0
  279. package/dist/index.cjs257.js.map +1 -0
  280. package/dist/index.cjs258.js +7 -0
  281. package/dist/index.cjs258.js.map +1 -0
  282. package/dist/index.cjs26.js +1 -1
  283. package/dist/index.cjs262.js +1 -1
  284. package/dist/index.cjs262.js.map +1 -1
  285. package/dist/index.cjs263.js +2 -0
  286. package/dist/index.cjs263.js.map +1 -0
  287. package/dist/{index.cjs406.js → index.cjs264.js} +2 -2
  288. package/dist/{index.cjs406.js.map → index.cjs264.js.map} +1 -1
  289. package/dist/{index.cjs407.js → index.cjs265.js} +2 -2
  290. package/dist/{index.cjs407.js.map → index.cjs265.js.map} +1 -1
  291. package/dist/index.cjs266.js +2 -0
  292. package/dist/index.cjs266.js.map +1 -0
  293. package/dist/index.cjs27.js +1 -1
  294. package/dist/index.cjs271.js +2 -0
  295. package/dist/index.cjs271.js.map +1 -0
  296. package/dist/index.cjs273.js +1 -1
  297. package/dist/index.cjs273.js.map +1 -1
  298. package/dist/index.cjs277.js +2 -0
  299. package/dist/index.cjs277.js.map +1 -0
  300. package/dist/{index.cjs249.js → index.cjs278.js} +1 -1
  301. package/dist/{index.cjs249.js.map → index.cjs278.js.map} +1 -1
  302. package/dist/index.cjs28.js +1 -1
  303. package/dist/index.cjs280.js +1 -1
  304. package/dist/index.cjs280.js.map +1 -1
  305. package/dist/index.cjs281.js +1 -1
  306. package/dist/index.cjs281.js.map +1 -1
  307. package/dist/{index.cjs255.js → index.cjs284.js} +1 -1
  308. package/dist/{index.cjs255.js.map → index.cjs284.js.map} +1 -1
  309. package/dist/index.cjs29.js +1 -1
  310. package/dist/index.cjs291.js +1 -1
  311. package/dist/index.cjs291.js.map +1 -1
  312. package/dist/index.cjs296.js +1 -1
  313. package/dist/index.cjs296.js.map +1 -1
  314. package/dist/index.cjs299.js +1 -1
  315. package/dist/index.cjs299.js.map +1 -1
  316. package/dist/index.cjs3.js +1 -1
  317. package/dist/index.cjs30.js +1 -1
  318. package/dist/index.cjs301.js +1 -1
  319. package/dist/index.cjs301.js.map +1 -1
  320. package/dist/index.cjs302.js +1 -1
  321. package/dist/index.cjs302.js.map +1 -1
  322. package/dist/index.cjs309.js +1 -1
  323. package/dist/index.cjs309.js.map +1 -1
  324. package/dist/index.cjs31.js +1 -1
  325. package/dist/index.cjs310.js +1 -1
  326. package/dist/index.cjs310.js.map +1 -1
  327. package/dist/index.cjs316.js +1 -1
  328. package/dist/index.cjs316.js.map +1 -1
  329. package/dist/index.cjs319.js +1 -1
  330. package/dist/index.cjs319.js.map +1 -1
  331. package/dist/index.cjs32.js +1 -1
  332. package/dist/index.cjs320.js +1 -1
  333. package/dist/index.cjs320.js.map +1 -1
  334. package/dist/index.cjs321.js +1 -1
  335. package/dist/index.cjs321.js.map +1 -1
  336. package/dist/{index.cjs293.js → index.cjs322.js} +1 -1
  337. package/dist/{index.cjs293.js.map → index.cjs322.js.map} +1 -1
  338. package/dist/index.cjs325.js +1 -1
  339. package/dist/index.cjs325.js.map +1 -1
  340. package/dist/index.cjs327.js +5 -1
  341. package/dist/index.cjs327.js.map +1 -1
  342. package/dist/index.cjs328.js +1 -1
  343. package/dist/index.cjs328.js.map +1 -1
  344. package/dist/index.cjs329.js +1 -1
  345. package/dist/index.cjs329.js.map +1 -1
  346. package/dist/index.cjs33.js +1 -1
  347. package/dist/index.cjs330.js +2 -0
  348. package/dist/index.cjs330.js.map +1 -0
  349. package/dist/index.cjs331.js +1 -6
  350. package/dist/index.cjs331.js.map +1 -1
  351. package/dist/{index.cjs304.js → index.cjs333.js} +2 -2
  352. package/dist/{index.cjs304.js.map → index.cjs333.js.map} +1 -1
  353. package/dist/{index.cjs305.js → index.cjs334.js} +2 -2
  354. package/dist/{index.cjs305.js.map → index.cjs334.js.map} +1 -1
  355. package/dist/{index.cjs306.js → index.cjs335.js} +2 -2
  356. package/dist/{index.cjs306.js.map → index.cjs335.js.map} +1 -1
  357. package/dist/index.cjs338.js +2 -0
  358. package/dist/index.cjs338.js.map +1 -0
  359. package/dist/index.cjs339.js +2 -0
  360. package/dist/index.cjs339.js.map +1 -0
  361. package/dist/index.cjs34.js +1 -1
  362. package/dist/{index.cjs314.js → index.cjs343.js} +2 -2
  363. package/dist/{index.cjs314.js.map → index.cjs343.js.map} +1 -1
  364. package/dist/index.cjs345.js +2 -0
  365. package/dist/index.cjs345.js.map +1 -0
  366. package/dist/{index.cjs317.js → index.cjs346.js} +2 -2
  367. package/dist/{index.cjs317.js.map → index.cjs346.js.map} +1 -1
  368. package/dist/index.cjs348.js +1 -1
  369. package/dist/index.cjs348.js.map +1 -1
  370. package/dist/index.cjs349.js +1 -1
  371. package/dist/index.cjs349.js.map +1 -1
  372. package/dist/index.cjs35.js +1 -1
  373. package/dist/index.cjs350.js +2 -0
  374. package/dist/index.cjs350.js.map +1 -0
  375. package/dist/{index.cjs323.js → index.cjs352.js} +2 -2
  376. package/dist/{index.cjs323.js.map → index.cjs352.js.map} +1 -1
  377. package/dist/{index.cjs324.js → index.cjs353.js} +2 -2
  378. package/dist/{index.cjs324.js.map → index.cjs353.js.map} +1 -1
  379. package/dist/index.cjs354.js +2 -0
  380. package/dist/index.cjs354.js.map +1 -0
  381. package/dist/index.cjs356.js +2 -0
  382. package/dist/index.cjs356.js.map +1 -0
  383. package/dist/index.cjs357.js +2 -0
  384. package/dist/index.cjs357.js.map +1 -0
  385. package/dist/index.cjs358.js +2 -0
  386. package/dist/index.cjs358.js.map +1 -0
  387. package/dist/index.cjs36.js +1 -1
  388. package/dist/index.cjs368.js +2 -0
  389. package/dist/index.cjs368.js.map +1 -0
  390. package/dist/index.cjs37.js +1 -1
  391. package/dist/index.cjs37.js.map +1 -1
  392. package/dist/index.cjs376.js +2 -0
  393. package/dist/index.cjs376.js.map +1 -0
  394. package/dist/index.cjs377.js +1 -1
  395. package/dist/index.cjs377.js.map +1 -1
  396. package/dist/index.cjs38.js +1 -1
  397. package/dist/index.cjs39.js +1 -1
  398. package/dist/{index.cjs371.js → index.cjs399.js} +2 -2
  399. package/dist/{index.cjs371.js.map → index.cjs399.js.map} +1 -1
  400. package/dist/index.cjs4.js +1 -1
  401. package/dist/index.cjs40.js +1 -1
  402. package/dist/index.cjs405.js +1 -1
  403. package/dist/index.cjs405.js.map +1 -1
  404. package/dist/{index.cjs380.js → index.cjs408.js} +2 -2
  405. package/dist/{index.cjs380.js.map → index.cjs408.js.map} +1 -1
  406. package/dist/index.cjs41.js +1 -1
  407. package/dist/index.cjs41.js.map +1 -1
  408. package/dist/{index.cjs382.js → index.cjs410.js} +2 -2
  409. package/dist/{index.cjs382.js.map → index.cjs410.js.map} +1 -1
  410. package/dist/{index.cjs383.js → index.cjs411.js} +2 -2
  411. package/dist/{index.cjs383.js.map → index.cjs411.js.map} +1 -1
  412. package/dist/{index.cjs384.js → index.cjs412.js} +2 -2
  413. package/dist/{index.cjs384.js.map → index.cjs412.js.map} +1 -1
  414. package/dist/{index.cjs389.js → index.cjs417.js} +2 -2
  415. package/dist/{index.cjs389.js.map → index.cjs417.js.map} +1 -1
  416. package/dist/index.cjs42.js +1 -1
  417. package/dist/{index.cjs395.js → index.cjs423.js} +2 -2
  418. package/dist/{index.cjs395.js.map → index.cjs423.js.map} +1 -1
  419. package/dist/index.cjs425.js +1 -1
  420. package/dist/index.cjs425.js.map +1 -1
  421. package/dist/index.cjs426.js +1 -1
  422. package/dist/index.cjs426.js.map +1 -1
  423. package/dist/index.cjs43.js +1 -1
  424. package/dist/{index.cjs403.js → index.cjs431.js} +2 -2
  425. package/dist/{index.cjs403.js.map → index.cjs431.js.map} +1 -1
  426. package/dist/index.cjs436.js +1 -1
  427. package/dist/index.cjs44.js +1 -1
  428. package/dist/{index.cjs418.js → index.cjs440.js} +2 -2
  429. package/dist/{index.cjs418.js.map → index.cjs440.js.map} +1 -1
  430. package/dist/{index.cjs419.js → index.cjs441.js} +2 -2
  431. package/dist/{index.cjs419.js.map → index.cjs441.js.map} +1 -1
  432. package/dist/{index.cjs424.js → index.cjs446.js} +2 -2
  433. package/dist/{index.cjs424.js.map → index.cjs446.js.map} +1 -1
  434. package/dist/index.cjs447.js +1 -1
  435. package/dist/index.cjs447.js.map +1 -1
  436. package/dist/index.cjs448.js +1 -1
  437. package/dist/index.cjs448.js.map +1 -1
  438. package/dist/index.cjs45.js +1 -1
  439. package/dist/index.cjs450.js +1 -1
  440. package/dist/index.cjs450.js.map +1 -1
  441. package/dist/index.cjs456.js +1 -1
  442. package/dist/index.cjs456.js.map +1 -1
  443. package/dist/index.cjs457.js +1 -1
  444. package/dist/index.cjs457.js.map +1 -1
  445. package/dist/index.cjs458.js +1 -1
  446. package/dist/index.cjs458.js.map +1 -1
  447. package/dist/index.cjs459.js +9 -1
  448. package/dist/index.cjs459.js.map +1 -1
  449. package/dist/index.cjs46.js +1 -1
  450. package/dist/index.cjs460.js +8 -3
  451. package/dist/index.cjs460.js.map +1 -1
  452. package/dist/index.cjs461.js +27 -14
  453. package/dist/index.cjs461.js.map +1 -1
  454. package/dist/index.cjs462.js +1 -1
  455. package/dist/index.cjs462.js.map +1 -1
  456. package/dist/{index.cjs522.js → index.cjs463.js} +1 -1
  457. package/dist/index.cjs463.js.map +1 -0
  458. package/dist/index.cjs464.js +2 -0
  459. package/dist/index.cjs464.js.map +1 -0
  460. package/dist/index.cjs465.js +2 -1
  461. package/dist/index.cjs465.js.map +1 -1
  462. package/dist/index.cjs466.js +1 -1
  463. package/dist/index.cjs466.js.map +1 -1
  464. package/dist/index.cjs467.js +1 -1
  465. package/dist/index.cjs467.js.map +1 -1
  466. package/dist/index.cjs468.js +1 -1
  467. package/dist/index.cjs468.js.map +1 -1
  468. package/dist/index.cjs469.js +1 -1
  469. package/dist/index.cjs469.js.map +1 -1
  470. package/dist/index.cjs47.js +1 -1
  471. package/dist/index.cjs470.js +1 -1
  472. package/dist/index.cjs470.js.map +1 -1
  473. package/dist/index.cjs471.js +1 -1
  474. package/dist/index.cjs471.js.map +1 -1
  475. package/dist/index.cjs472.js +2 -0
  476. package/dist/index.cjs472.js.map +1 -0
  477. package/dist/index.cjs473.js +2 -0
  478. package/dist/index.cjs473.js.map +1 -0
  479. package/dist/index.cjs474.js +2 -0
  480. package/dist/index.cjs474.js.map +1 -0
  481. package/dist/index.cjs475.js +1 -1
  482. package/dist/index.cjs475.js.map +1 -1
  483. package/dist/index.cjs476.js +1 -1
  484. package/dist/index.cjs476.js.map +1 -1
  485. package/dist/index.cjs477.js +1 -1
  486. package/dist/index.cjs477.js.map +1 -1
  487. package/dist/index.cjs478.js +1 -1
  488. package/dist/index.cjs478.js.map +1 -1
  489. package/dist/index.cjs479.js +1 -1
  490. package/dist/index.cjs479.js.map +1 -1
  491. package/dist/index.cjs48.js +1 -1
  492. package/dist/index.cjs487.js +2 -0
  493. package/dist/index.cjs487.js.map +1 -0
  494. package/dist/index.cjs488.js +1 -1
  495. package/dist/index.cjs488.js.map +1 -1
  496. package/dist/{index.cjs480.js → index.cjs489.js} +2 -2
  497. package/dist/{index.cjs480.js.map → index.cjs489.js.map} +1 -1
  498. package/dist/index.cjs49.js +1 -1
  499. package/dist/{index.cjs481.js → index.cjs490.js} +1 -1
  500. package/dist/{index.cjs481.js.map → index.cjs490.js.map} +1 -1
  501. package/dist/{index.cjs482.js → index.cjs491.js} +2 -2
  502. package/dist/{index.cjs482.js.map → index.cjs491.js.map} +1 -1
  503. package/dist/{index.cjs483.js → index.cjs492.js} +1 -1
  504. package/dist/{index.cjs483.js.map → index.cjs492.js.map} +1 -1
  505. package/dist/{index.cjs484.js → index.cjs493.js} +2 -2
  506. package/dist/{index.cjs484.js.map → index.cjs493.js.map} +1 -1
  507. package/dist/index.cjs497.js +2 -0
  508. package/dist/index.cjs497.js.map +1 -0
  509. package/dist/index.cjs5.js +1 -1
  510. package/dist/index.cjs50.js +1 -1
  511. package/dist/index.cjs51.js +1 -1
  512. package/dist/index.cjs513.js +1 -1
  513. package/dist/index.cjs513.js.map +1 -1
  514. package/dist/index.cjs514.js +1 -1
  515. package/dist/index.cjs514.js.map +1 -1
  516. package/dist/index.cjs515.js +1 -1
  517. package/dist/index.cjs515.js.map +1 -1
  518. package/dist/{index.cjs510.js → index.cjs516.js} +1 -1
  519. package/dist/index.cjs516.js.map +1 -0
  520. package/dist/{index.cjs511.js → index.cjs517.js} +2 -2
  521. package/dist/{index.cjs511.js.map → index.cjs517.js.map} +1 -1
  522. package/dist/{index.cjs512.js → index.cjs518.js} +2 -2
  523. package/dist/{index.cjs512.js.map → index.cjs518.js.map} +1 -1
  524. package/dist/index.cjs52.js +1 -1
  525. package/dist/index.cjs523.js +1 -1
  526. package/dist/index.cjs523.js.map +1 -1
  527. package/dist/index.cjs524.js +1 -2
  528. package/dist/index.cjs524.js.map +1 -1
  529. package/dist/index.cjs526.js +1 -1
  530. package/dist/index.cjs526.js.map +1 -1
  531. package/dist/index.cjs527.js +1 -1
  532. package/dist/index.cjs527.js.map +1 -1
  533. package/dist/index.cjs528.js +1 -1
  534. package/dist/index.cjs528.js.map +1 -1
  535. package/dist/index.cjs529.js +1 -1
  536. package/dist/index.cjs529.js.map +1 -1
  537. package/dist/index.cjs53.js +1 -1
  538. package/dist/index.cjs530.js +1 -1
  539. package/dist/index.cjs530.js.map +1 -1
  540. package/dist/index.cjs531.js +1 -1
  541. package/dist/index.cjs531.js.map +1 -1
  542. package/dist/index.cjs532.js +1 -1
  543. package/dist/index.cjs532.js.map +1 -1
  544. package/dist/index.cjs533.js +1 -1
  545. package/dist/index.cjs533.js.map +1 -1
  546. package/dist/index.cjs534.js +1 -1
  547. package/dist/index.cjs534.js.map +1 -1
  548. package/dist/index.cjs535.js +1 -1
  549. package/dist/index.cjs535.js.map +1 -1
  550. package/dist/index.cjs536.js +1 -1
  551. package/dist/index.cjs536.js.map +1 -1
  552. package/dist/index.cjs537.js +1 -1
  553. package/dist/index.cjs537.js.map +1 -1
  554. package/dist/index.cjs538.js +1 -1
  555. package/dist/index.cjs538.js.map +1 -1
  556. package/dist/index.cjs539.js +1 -1
  557. package/dist/index.cjs539.js.map +1 -1
  558. package/dist/index.cjs54.js +1 -1
  559. package/dist/index.cjs540.js +1 -1
  560. package/dist/index.cjs540.js.map +1 -1
  561. package/dist/index.cjs541.js +1 -1
  562. package/dist/index.cjs541.js.map +1 -1
  563. package/dist/index.cjs542.js +1 -1
  564. package/dist/index.cjs542.js.map +1 -1
  565. package/dist/index.cjs543.js +1 -1
  566. package/dist/index.cjs543.js.map +1 -1
  567. package/dist/index.cjs544.js +1 -1
  568. package/dist/index.cjs544.js.map +1 -1
  569. package/dist/index.cjs545.js +1 -1
  570. package/dist/index.cjs545.js.map +1 -1
  571. package/dist/index.cjs546.js +1 -1
  572. package/dist/index.cjs546.js.map +1 -1
  573. package/dist/index.cjs547.js +1 -1
  574. package/dist/index.cjs547.js.map +1 -1
  575. package/dist/index.cjs548.js +1 -1
  576. package/dist/index.cjs548.js.map +1 -1
  577. package/dist/index.cjs549.js +1 -1
  578. package/dist/index.cjs549.js.map +1 -1
  579. package/dist/index.cjs55.js +1 -1
  580. package/dist/index.cjs550.js +1 -1
  581. package/dist/index.cjs550.js.map +1 -1
  582. package/dist/index.cjs551.js +1 -1
  583. package/dist/index.cjs551.js.map +1 -1
  584. package/dist/index.cjs552.js +1 -1
  585. package/dist/index.cjs552.js.map +1 -1
  586. package/dist/index.cjs553.js +1 -1
  587. package/dist/index.cjs553.js.map +1 -1
  588. package/dist/index.cjs554.js +1 -1
  589. package/dist/index.cjs554.js.map +1 -1
  590. package/dist/index.cjs555.js +1 -1
  591. package/dist/index.cjs555.js.map +1 -1
  592. package/dist/index.cjs556.js +1 -1
  593. package/dist/index.cjs556.js.map +1 -1
  594. package/dist/index.cjs557.js +1 -1
  595. package/dist/index.cjs557.js.map +1 -1
  596. package/dist/index.cjs558.js +1 -1
  597. package/dist/index.cjs558.js.map +1 -1
  598. package/dist/index.cjs559.js +1 -1
  599. package/dist/index.cjs559.js.map +1 -1
  600. package/dist/index.cjs56.js +1 -1
  601. package/dist/index.cjs560.js +1 -1
  602. package/dist/index.cjs560.js.map +1 -1
  603. package/dist/index.cjs561.js +1 -1
  604. package/dist/index.cjs561.js.map +1 -1
  605. package/dist/index.cjs562.js +1 -1
  606. package/dist/index.cjs562.js.map +1 -1
  607. package/dist/index.cjs563.js +1 -1
  608. package/dist/index.cjs563.js.map +1 -1
  609. package/dist/index.cjs564.js +1 -1
  610. package/dist/index.cjs564.js.map +1 -1
  611. package/dist/index.cjs565.js +1 -1
  612. package/dist/index.cjs565.js.map +1 -1
  613. package/dist/index.cjs566.js +1 -1
  614. package/dist/index.cjs566.js.map +1 -1
  615. package/dist/index.cjs567.js +1 -1
  616. package/dist/index.cjs567.js.map +1 -1
  617. package/dist/index.cjs568.js +1 -1
  618. package/dist/index.cjs568.js.map +1 -1
  619. package/dist/index.cjs569.js +1 -1
  620. package/dist/index.cjs569.js.map +1 -1
  621. package/dist/index.cjs57.js +1 -1
  622. package/dist/index.cjs570.js +1 -1
  623. package/dist/index.cjs570.js.map +1 -1
  624. package/dist/index.cjs571.js +1 -1
  625. package/dist/index.cjs571.js.map +1 -1
  626. package/dist/index.cjs572.js +1 -1
  627. package/dist/index.cjs572.js.map +1 -1
  628. package/dist/index.cjs573.js +1 -1
  629. package/dist/index.cjs573.js.map +1 -1
  630. package/dist/index.cjs574.js +1 -1
  631. package/dist/index.cjs574.js.map +1 -1
  632. package/dist/index.cjs575.js +1 -1
  633. package/dist/index.cjs575.js.map +1 -1
  634. package/dist/index.cjs576.js +1 -1
  635. package/dist/index.cjs576.js.map +1 -1
  636. package/dist/index.cjs577.js +1 -1
  637. package/dist/index.cjs577.js.map +1 -1
  638. package/dist/index.cjs578.js +1 -1
  639. package/dist/index.cjs578.js.map +1 -1
  640. package/dist/index.cjs579.js +1 -1
  641. package/dist/index.cjs579.js.map +1 -1
  642. package/dist/index.cjs58.js +1 -1
  643. package/dist/index.cjs580.js +1 -1
  644. package/dist/index.cjs580.js.map +1 -1
  645. package/dist/index.cjs581.js +1 -1
  646. package/dist/index.cjs581.js.map +1 -1
  647. package/dist/index.cjs582.js +1 -1
  648. package/dist/index.cjs582.js.map +1 -1
  649. package/dist/index.cjs583.js +1 -1
  650. package/dist/index.cjs583.js.map +1 -1
  651. package/dist/index.cjs584.js +1 -1
  652. package/dist/index.cjs584.js.map +1 -1
  653. package/dist/index.cjs585.js +1 -1
  654. package/dist/index.cjs585.js.map +1 -1
  655. package/dist/index.cjs586.js +1 -1
  656. package/dist/index.cjs586.js.map +1 -1
  657. package/dist/index.cjs587.js +1 -1
  658. package/dist/index.cjs587.js.map +1 -1
  659. package/dist/index.cjs588.js +1 -1
  660. package/dist/index.cjs588.js.map +1 -1
  661. package/dist/index.cjs589.js +1 -1
  662. package/dist/index.cjs589.js.map +1 -1
  663. package/dist/index.cjs59.js +1 -1
  664. package/dist/index.cjs590.js +1 -1
  665. package/dist/index.cjs590.js.map +1 -1
  666. package/dist/index.cjs591.js +1 -1
  667. package/dist/index.cjs591.js.map +1 -1
  668. package/dist/index.cjs592.js +1 -1
  669. package/dist/index.cjs592.js.map +1 -1
  670. package/dist/index.cjs593.js +1 -1
  671. package/dist/index.cjs593.js.map +1 -1
  672. package/dist/index.cjs594.js +1 -1
  673. package/dist/index.cjs594.js.map +1 -1
  674. package/dist/index.cjs595.js +1 -1
  675. package/dist/index.cjs595.js.map +1 -1
  676. package/dist/index.cjs596.js +1 -1
  677. package/dist/index.cjs596.js.map +1 -1
  678. package/dist/index.cjs597.js +1 -1
  679. package/dist/index.cjs597.js.map +1 -1
  680. package/dist/index.cjs598.js +1 -1
  681. package/dist/index.cjs598.js.map +1 -1
  682. package/dist/index.cjs599.js +1 -1
  683. package/dist/index.cjs599.js.map +1 -1
  684. package/dist/index.cjs6.js +1 -1
  685. package/dist/index.cjs60.js +1 -1
  686. package/dist/index.cjs600.js +1 -1
  687. package/dist/index.cjs600.js.map +1 -1
  688. package/dist/index.cjs601.js +1 -1
  689. package/dist/index.cjs601.js.map +1 -1
  690. package/dist/index.cjs602.js +1 -1
  691. package/dist/index.cjs602.js.map +1 -1
  692. package/dist/index.cjs603.js +1 -1
  693. package/dist/index.cjs603.js.map +1 -1
  694. package/dist/index.cjs604.js +1 -1
  695. package/dist/index.cjs604.js.map +1 -1
  696. package/dist/index.cjs605.js +1 -1
  697. package/dist/index.cjs605.js.map +1 -1
  698. package/dist/index.cjs606.js +1 -1
  699. package/dist/index.cjs606.js.map +1 -1
  700. package/dist/index.cjs607.js +1 -1
  701. package/dist/index.cjs607.js.map +1 -1
  702. package/dist/index.cjs608.js +1 -1
  703. package/dist/index.cjs608.js.map +1 -1
  704. package/dist/index.cjs61.js +1 -1
  705. package/dist/index.cjs62.js +1 -1
  706. package/dist/index.cjs624.js +1 -1
  707. package/dist/index.cjs625.js +1 -1
  708. package/dist/index.cjs63.js +1 -1
  709. package/dist/index.cjs64.js +1 -1
  710. package/dist/index.cjs641.js +1 -1
  711. package/dist/index.cjs642.js +1 -1
  712. package/dist/index.cjs643.js +1 -1
  713. package/dist/index.cjs643.js.map +1 -1
  714. package/dist/index.cjs644.js +1 -1
  715. package/dist/index.cjs644.js.map +1 -1
  716. package/dist/index.cjs645.js +1 -1
  717. package/dist/index.cjs645.js.map +1 -1
  718. package/dist/index.cjs646.js +4 -1
  719. package/dist/index.cjs646.js.map +1 -1
  720. package/dist/index.cjs647.js +1 -4
  721. package/dist/index.cjs647.js.map +1 -1
  722. package/dist/index.cjs648.js +5 -1
  723. package/dist/index.cjs648.js.map +1 -1
  724. package/dist/index.cjs649.js +1 -5
  725. package/dist/index.cjs649.js.map +1 -1
  726. package/dist/index.cjs65.js +1 -1
  727. package/dist/index.cjs650.js +1 -1
  728. package/dist/index.cjs650.js.map +1 -1
  729. package/dist/index.cjs651.js +1 -1
  730. package/dist/index.cjs651.js.map +1 -1
  731. package/dist/index.cjs652.js +1 -1
  732. package/dist/index.cjs652.js.map +1 -1
  733. package/dist/index.cjs653.js +1 -1
  734. package/dist/index.cjs653.js.map +1 -1
  735. package/dist/index.cjs654.js +1 -1
  736. package/dist/index.cjs654.js.map +1 -1
  737. package/dist/index.cjs655.js +1 -1
  738. package/dist/index.cjs655.js.map +1 -1
  739. package/dist/index.cjs656.js +1 -1
  740. package/dist/index.cjs656.js.map +1 -1
  741. package/dist/index.cjs657.js +1 -1
  742. package/dist/index.cjs657.js.map +1 -1
  743. package/dist/index.cjs658.js +1 -1
  744. package/dist/index.cjs658.js.map +1 -1
  745. package/dist/index.cjs659.js +1 -1
  746. package/dist/index.cjs659.js.map +1 -1
  747. package/dist/index.cjs66.js +1 -1
  748. package/dist/index.cjs660.js +1 -1
  749. package/dist/index.cjs660.js.map +1 -1
  750. package/dist/index.cjs661.js +38 -1
  751. package/dist/index.cjs661.js.map +1 -1
  752. package/dist/index.cjs662.js +1 -1
  753. package/dist/index.cjs662.js.map +1 -1
  754. package/dist/index.cjs663.js +1 -1
  755. package/dist/index.cjs663.js.map +1 -1
  756. package/dist/index.cjs664.js +1 -1
  757. package/dist/index.cjs664.js.map +1 -1
  758. package/dist/index.cjs665.js +1 -1
  759. package/dist/index.cjs666.js +1 -38
  760. package/dist/index.cjs666.js.map +1 -1
  761. package/dist/index.cjs667.js +1 -1
  762. package/dist/index.cjs667.js.map +1 -1
  763. package/dist/index.cjs668.js +1 -1
  764. package/dist/index.cjs668.js.map +1 -1
  765. package/dist/index.cjs669.js +1 -1
  766. package/dist/index.cjs669.js.map +1 -1
  767. package/dist/index.cjs67.js +1 -1
  768. package/dist/index.cjs670.js +1 -1
  769. package/dist/index.cjs670.js.map +1 -1
  770. package/dist/index.cjs671.js +1 -1
  771. package/dist/index.cjs671.js.map +1 -1
  772. package/dist/index.cjs672.js +1 -1
  773. package/dist/index.cjs672.js.map +1 -1
  774. package/dist/index.cjs673.js +1 -1
  775. package/dist/index.cjs673.js.map +1 -1
  776. package/dist/index.cjs674.js +1 -1
  777. package/dist/index.cjs674.js.map +1 -1
  778. package/dist/index.cjs675.js +1 -1
  779. package/dist/index.cjs675.js.map +1 -1
  780. package/dist/index.cjs676.js +1 -1
  781. package/dist/index.cjs676.js.map +1 -1
  782. package/dist/index.cjs677.js +1 -1
  783. package/dist/index.cjs677.js.map +1 -1
  784. package/dist/index.cjs68.js +1 -1
  785. package/dist/index.cjs69.js +1 -1
  786. package/dist/index.cjs7.js +1 -1
  787. package/dist/index.cjs70.js +1 -1
  788. package/dist/index.cjs71.js +1 -1
  789. package/dist/index.cjs72.js +1 -1
  790. package/dist/index.cjs73.js +1 -1
  791. package/dist/index.cjs74.js +1 -1
  792. package/dist/index.cjs75.js +1 -1
  793. package/dist/index.cjs76.js +1 -1
  794. package/dist/index.cjs77.js +1 -1
  795. package/dist/index.cjs78.js +1 -1
  796. package/dist/index.cjs79.js +1 -1
  797. package/dist/index.cjs8.js +1 -1
  798. package/dist/index.cjs80.js +1 -1
  799. package/dist/index.cjs81.js +1 -1
  800. package/dist/index.cjs82.js +1 -1
  801. package/dist/index.cjs83.js +1 -1
  802. package/dist/index.cjs84.js +1 -1
  803. package/dist/index.cjs85.js +1 -1
  804. package/dist/index.cjs86.js +1 -1
  805. package/dist/index.cjs87.js +1 -1
  806. package/dist/index.cjs88.js +1 -1
  807. package/dist/index.cjs89.js +1 -1
  808. package/dist/index.cjs9.js +1 -1
  809. package/dist/index.cjs90.js +1 -1
  810. package/dist/index.cjs91.js +1 -1
  811. package/dist/index.cjs92.js +1 -1
  812. package/dist/index.cjs93.js +1 -1
  813. package/dist/index.cjs94.js +1 -1
  814. package/dist/index.cjs95.js +1 -1
  815. package/dist/index.cjs96.js +1 -1
  816. package/dist/index.cjs97.js +1 -1
  817. package/dist/index.cjs98.js +1 -1
  818. package/dist/index.cjs99.js +1 -1
  819. package/dist/index.d.ts +8 -13
  820. package/dist/index.es.js +226 -229
  821. package/dist/index.es.js.map +1 -1
  822. package/dist/index.es10.js +4 -4
  823. package/dist/index.es100.js +1 -1
  824. package/dist/index.es101.js +5 -5
  825. package/dist/index.es102.js +1 -1
  826. package/dist/index.es103.js +2 -2
  827. package/dist/index.es104.js +4 -4
  828. package/dist/index.es105.js +3 -3
  829. package/dist/index.es106.js +1 -1
  830. package/dist/index.es107.js +1 -1
  831. package/dist/index.es108.js +3 -3
  832. package/dist/index.es109.js +1 -1
  833. package/dist/index.es11.js +2 -2
  834. package/dist/index.es110.js +4 -4
  835. package/dist/index.es111.js +2 -2
  836. package/dist/index.es112.js +2 -2
  837. package/dist/index.es113.js +1 -1
  838. package/dist/index.es114.js +1 -1
  839. package/dist/index.es115.js +1 -1
  840. package/dist/index.es116.js +3 -3
  841. package/dist/index.es117.js +2 -2
  842. package/dist/index.es118.js +1 -1
  843. package/dist/index.es119.js +2 -2
  844. package/dist/index.es12.js +3 -3
  845. package/dist/index.es120.js +2 -2
  846. package/dist/index.es121.js +1 -1
  847. package/dist/index.es122.js +4 -4
  848. package/dist/index.es123.js +7 -7
  849. package/dist/index.es124.js +4 -4
  850. package/dist/index.es125.js +3 -3
  851. package/dist/index.es126.js +3 -3
  852. package/dist/index.es127.js +3 -3
  853. package/dist/index.es128.js +1 -1
  854. package/dist/index.es129.js +3 -3
  855. package/dist/index.es13.js +2 -2
  856. package/dist/index.es130.js +1 -1
  857. package/dist/index.es131.js +4 -4
  858. package/dist/index.es132.js +2 -2
  859. package/dist/index.es133.js +1 -1
  860. package/dist/index.es134.js +2 -2
  861. package/dist/index.es135.js +3 -3
  862. package/dist/index.es136.js +1 -1
  863. package/dist/index.es137.js +2 -2
  864. package/dist/index.es138.js +50 -5
  865. package/dist/index.es138.js.map +1 -1
  866. package/dist/index.es139.js +90 -45
  867. package/dist/index.es139.js.map +1 -1
  868. package/dist/index.es14.js +2 -2
  869. package/dist/index.es140.js +37 -93
  870. package/dist/index.es140.js.map +1 -1
  871. package/dist/index.es141.js +28 -36
  872. package/dist/index.es141.js.map +1 -1
  873. package/dist/index.es142.js +115 -29
  874. package/dist/index.es142.js.map +1 -1
  875. package/dist/index.es143.js +49 -116
  876. package/dist/index.es143.js.map +1 -1
  877. package/dist/index.es144.js +40 -47
  878. package/dist/index.es144.js.map +1 -1
  879. package/dist/index.es145.js +14 -38
  880. package/dist/index.es145.js.map +1 -1
  881. package/dist/index.es146.js +20 -19
  882. package/dist/index.es146.js.map +1 -1
  883. package/dist/index.es147.js +31 -20
  884. package/dist/index.es147.js.map +1 -1
  885. package/dist/index.es148.js +85 -25
  886. package/dist/index.es148.js.map +1 -1
  887. package/dist/index.es149.js +14 -91
  888. package/dist/index.es149.js.map +1 -1
  889. package/dist/index.es15.js +3 -3
  890. package/dist/index.es150.js +58 -14
  891. package/dist/index.es150.js.map +1 -1
  892. package/dist/index.es151.js +151 -54
  893. package/dist/index.es151.js.map +1 -1
  894. package/dist/index.es152.js +44 -155
  895. package/dist/index.es152.js.map +1 -1
  896. package/dist/index.es153.js +56 -40
  897. package/dist/index.es153.js.map +1 -1
  898. package/dist/index.es154.js +10 -59
  899. package/dist/index.es154.js.map +1 -1
  900. package/dist/index.es155.js +46 -10
  901. package/dist/index.es155.js.map +1 -1
  902. package/dist/index.es156.js +70 -34
  903. package/dist/index.es156.js.map +1 -1
  904. package/dist/index.es157.js +59 -81
  905. package/dist/index.es157.js.map +1 -1
  906. package/dist/index.es158.js +26 -59
  907. package/dist/index.es158.js.map +1 -1
  908. package/dist/index.es159.js +20 -20
  909. package/dist/index.es159.js.map +1 -1
  910. package/dist/index.es16.js +6 -6
  911. package/dist/index.es160.js +15 -15
  912. package/dist/index.es160.js.map +1 -1
  913. package/dist/index.es161.js +17 -17
  914. package/dist/index.es161.js.map +1 -1
  915. package/dist/index.es162.js +22 -20
  916. package/dist/index.es162.js.map +1 -1
  917. package/dist/index.es163.js +24 -18
  918. package/dist/index.es163.js.map +1 -1
  919. package/dist/index.es164.js +2268 -25
  920. package/dist/index.es164.js.map +1 -1
  921. package/dist/index.es165.js +22 -2266
  922. package/dist/index.es165.js.map +1 -1
  923. package/dist/index.es166.js +46 -27
  924. package/dist/index.es166.js.map +1 -1
  925. package/dist/index.es167.js +111 -37
  926. package/dist/index.es167.js.map +1 -1
  927. package/dist/index.es168.js +21 -113
  928. package/dist/index.es168.js.map +1 -1
  929. package/dist/index.es169.js +76 -25
  930. package/dist/index.es169.js.map +1 -1
  931. package/dist/index.es17.js +1 -1
  932. package/dist/index.es170.js +57 -72
  933. package/dist/index.es170.js.map +1 -1
  934. package/dist/index.es171.js +21 -61
  935. package/dist/index.es171.js.map +1 -1
  936. package/dist/index.es172.js +673 -21
  937. package/dist/index.es172.js.map +1 -1
  938. package/dist/index.es173.js +21 -658
  939. package/dist/index.es173.js.map +1 -1
  940. package/dist/index.es174.js +27 -38
  941. package/dist/index.es174.js.map +1 -1
  942. package/dist/index.es175.js +21 -23
  943. package/dist/index.es175.js.map +1 -1
  944. package/dist/index.es176.js +25 -23
  945. package/dist/index.es176.js.map +1 -1
  946. package/dist/index.es177.js +34 -22
  947. package/dist/index.es177.js.map +1 -1
  948. package/dist/index.es178.js +25 -30
  949. package/dist/index.es178.js.map +1 -1
  950. package/dist/index.es179.js +34 -23
  951. package/dist/index.es179.js.map +1 -1
  952. package/dist/index.es18.js +1 -1
  953. package/dist/index.es180.js +24 -35
  954. package/dist/index.es180.js.map +1 -1
  955. package/dist/index.es181.js +30 -42
  956. package/dist/index.es181.js.map +1 -1
  957. package/dist/index.es182.js +21 -21
  958. package/dist/index.es182.js.map +1 -1
  959. package/dist/index.es183.js +21 -21
  960. package/dist/index.es183.js.map +1 -1
  961. package/dist/index.es184.js +35 -31
  962. package/dist/index.es184.js.map +1 -1
  963. package/dist/index.es185.js +25 -22
  964. package/dist/index.es185.js.map +1 -1
  965. package/dist/index.es186.js +27 -29
  966. package/dist/index.es186.js.map +1 -1
  967. package/dist/index.es187.js +29 -36
  968. package/dist/index.es187.js.map +1 -1
  969. package/dist/index.es188.js +39 -29
  970. package/dist/index.es188.js.map +1 -1
  971. package/dist/index.es189.js +27 -30
  972. package/dist/index.es189.js.map +1 -1
  973. package/dist/index.es19.js +2 -2
  974. package/dist/index.es190.js +17 -17
  975. package/dist/index.es190.js.map +1 -1
  976. package/dist/index.es191.js +19 -19
  977. package/dist/index.es191.js.map +1 -1
  978. package/dist/index.es192.js +21 -21
  979. package/dist/index.es192.js.map +1 -1
  980. package/dist/index.es193.js +17 -17
  981. package/dist/index.es193.js.map +1 -1
  982. package/dist/index.es194.js +20 -21
  983. package/dist/index.es194.js.map +1 -1
  984. package/dist/index.es195.js +22 -21
  985. package/dist/index.es195.js.map +1 -1
  986. package/dist/index.es196.js +33 -26
  987. package/dist/index.es196.js.map +1 -1
  988. package/dist/index.es197.js +32 -43
  989. package/dist/index.es197.js.map +1 -1
  990. package/dist/index.es198.js +34 -32
  991. package/dist/index.es198.js.map +1 -1
  992. package/dist/index.es199.js +21 -20
  993. package/dist/index.es199.js.map +1 -1
  994. package/dist/index.es20.js +1 -1
  995. package/dist/index.es200.js +11 -11
  996. package/dist/index.es200.js.map +1 -1
  997. package/dist/index.es201.js +26 -24
  998. package/dist/index.es201.js.map +1 -1
  999. package/dist/index.es202.js +22 -24
  1000. package/dist/index.es202.js.map +1 -1
  1001. package/dist/index.es203.js +19 -18
  1002. package/dist/index.es203.js.map +1 -1
  1003. package/dist/index.es204.js +16 -24
  1004. package/dist/index.es204.js.map +1 -1
  1005. package/dist/index.es205.js +30 -27
  1006. package/dist/index.es205.js.map +1 -1
  1007. package/dist/index.es206.js +21 -20
  1008. package/dist/index.es206.js.map +1 -1
  1009. package/dist/index.es207.js +35 -31
  1010. package/dist/index.es207.js.map +1 -1
  1011. package/dist/index.es208.js +11 -11
  1012. package/dist/index.es208.js.map +1 -1
  1013. package/dist/index.es209.js +21 -21
  1014. package/dist/index.es209.js.map +1 -1
  1015. package/dist/index.es21.js +1 -1
  1016. package/dist/index.es210.js +19 -19
  1017. package/dist/index.es210.js.map +1 -1
  1018. package/dist/index.es211.js +19 -19
  1019. package/dist/index.es211.js.map +1 -1
  1020. package/dist/index.es212.js +20 -20
  1021. package/dist/index.es212.js.map +1 -1
  1022. package/dist/index.es213.js +21 -21
  1023. package/dist/index.es213.js.map +1 -1
  1024. package/dist/index.es214.js +23 -22
  1025. package/dist/index.es214.js.map +1 -1
  1026. package/dist/index.es215.js +15 -15
  1027. package/dist/index.es215.js.map +1 -1
  1028. package/dist/index.es216.js +24 -23
  1029. package/dist/index.es216.js.map +1 -1
  1030. package/dist/index.es217.js +28 -38
  1031. package/dist/index.es217.js.map +1 -1
  1032. package/dist/index.es218.js +37 -23
  1033. package/dist/index.es218.js.map +1 -1
  1034. package/dist/index.es219.js +22 -36
  1035. package/dist/index.es219.js.map +1 -1
  1036. package/dist/index.es22.js +3 -3
  1037. package/dist/index.es220.js +18 -16
  1038. package/dist/index.es220.js.map +1 -1
  1039. package/dist/index.es221.js +17 -25
  1040. package/dist/index.es221.js.map +1 -1
  1041. package/dist/index.es222.js +48 -21
  1042. package/dist/index.es222.js.map +1 -1
  1043. package/dist/index.es223.js +30 -49
  1044. package/dist/index.es223.js.map +1 -1
  1045. package/dist/index.es224.js +36 -30
  1046. package/dist/index.es224.js.map +1 -1
  1047. package/dist/index.es225.js +32 -29
  1048. package/dist/index.es225.js.map +1 -1
  1049. package/dist/index.es226.js +19 -30
  1050. package/dist/index.es226.js.map +1 -1
  1051. package/dist/index.es227.js +1799 -26
  1052. package/dist/index.es227.js.map +1 -1
  1053. package/dist/index.es228.js +327 -1654
  1054. package/dist/index.es228.js.map +1 -1
  1055. package/dist/index.es229.js +134 -430
  1056. package/dist/index.es229.js.map +1 -1
  1057. package/dist/index.es23.js +1 -1
  1058. package/dist/index.es230.js +245 -164
  1059. package/dist/index.es230.js.map +1 -1
  1060. package/dist/index.es231.js +109 -245
  1061. package/dist/index.es231.js.map +1 -1
  1062. package/dist/index.es232.js +282 -120
  1063. package/dist/index.es232.js.map +1 -1
  1064. package/dist/index.es233.js +199 -280
  1065. package/dist/index.es233.js.map +1 -1
  1066. package/dist/index.es234.js +16 -203
  1067. package/dist/index.es234.js.map +1 -1
  1068. package/dist/index.es235.js +33 -16
  1069. package/dist/index.es235.js.map +1 -1
  1070. package/dist/index.es236.js +340 -32
  1071. package/dist/index.es236.js.map +1 -1
  1072. package/dist/index.es237.js +83 -335
  1073. package/dist/index.es237.js.map +1 -1
  1074. package/dist/index.es238.js +148 -90
  1075. package/dist/index.es238.js.map +1 -1
  1076. package/dist/index.es239.js +38 -148
  1077. package/dist/index.es239.js.map +1 -1
  1078. package/dist/index.es24.js +4 -4
  1079. package/dist/index.es240.js +6 -35
  1080. package/dist/index.es240.js.map +1 -1
  1081. package/dist/index.es241.js +176 -6
  1082. package/dist/index.es241.js.map +1 -1
  1083. package/dist/index.es242.js +34 -127
  1084. package/dist/index.es242.js.map +1 -1
  1085. package/dist/index.es243.js +26 -73
  1086. package/dist/index.es243.js.map +1 -1
  1087. package/dist/index.es244.js +22 -16
  1088. package/dist/index.es244.js.map +1 -1
  1089. package/dist/index.es245.js +74 -44
  1090. package/dist/index.es245.js.map +1 -1
  1091. package/dist/index.es246.js +3 -75
  1092. package/dist/index.es246.js.map +1 -1
  1093. package/dist/index.es25.js +3 -3
  1094. package/dist/index.es250.js +6 -0
  1095. package/dist/index.es250.js.map +1 -0
  1096. package/dist/index.es257.js +8 -0
  1097. package/dist/index.es257.js.map +1 -0
  1098. package/dist/index.es258.js +62 -0
  1099. package/dist/index.es258.js.map +1 -0
  1100. package/dist/index.es26.js +3 -3
  1101. package/dist/index.es262.js +9 -22
  1102. package/dist/index.es262.js.map +1 -1
  1103. package/dist/index.es263.js +243 -0
  1104. package/dist/index.es263.js.map +1 -0
  1105. package/dist/{index.es406.js → index.es264.js} +3 -3
  1106. package/dist/{index.es406.js.map → index.es264.js.map} +1 -1
  1107. package/dist/{index.es407.js → index.es265.js} +4 -4
  1108. package/dist/{index.es407.js.map → index.es265.js.map} +1 -1
  1109. package/dist/index.es266.js +192 -0
  1110. package/dist/index.es266.js.map +1 -0
  1111. package/dist/index.es27.js +7 -7
  1112. package/dist/index.es271.js +50 -0
  1113. package/dist/index.es271.js.map +1 -0
  1114. package/dist/index.es273.js +44 -151
  1115. package/dist/index.es273.js.map +1 -1
  1116. package/dist/index.es277.js +22 -0
  1117. package/dist/index.es277.js.map +1 -0
  1118. package/dist/{index.es249.js → index.es278.js} +1 -1
  1119. package/dist/{index.es249.js.map → index.es278.js.map} +1 -1
  1120. package/dist/index.es28.js +5 -5
  1121. package/dist/index.es280.js +2 -133
  1122. package/dist/index.es280.js.map +1 -1
  1123. package/dist/index.es281.js +2 -20
  1124. package/dist/index.es281.js.map +1 -1
  1125. package/dist/{index.es255.js → index.es284.js} +1 -1
  1126. package/dist/{index.es255.js.map → index.es284.js.map} +1 -1
  1127. package/dist/index.es29.js +2 -2
  1128. package/dist/index.es291.js +20 -19
  1129. package/dist/index.es291.js.map +1 -1
  1130. package/dist/index.es296.js +203 -50
  1131. package/dist/index.es296.js.map +1 -1
  1132. package/dist/index.es299.js +75 -76
  1133. package/dist/index.es299.js.map +1 -1
  1134. package/dist/index.es3.js +6 -6
  1135. package/dist/index.es30.js +2 -2
  1136. package/dist/index.es301.js +143 -15
  1137. package/dist/index.es301.js.map +1 -1
  1138. package/dist/index.es302.js +152 -28
  1139. package/dist/index.es302.js.map +1 -1
  1140. package/dist/index.es309.js +133 -8
  1141. package/dist/index.es309.js.map +1 -1
  1142. package/dist/index.es31.js +1 -1
  1143. package/dist/index.es310.js +20 -4
  1144. package/dist/index.es310.js.map +1 -1
  1145. package/dist/index.es316.js +62 -8
  1146. package/dist/index.es316.js.map +1 -1
  1147. package/dist/index.es319.js +4 -8
  1148. package/dist/index.es319.js.map +1 -1
  1149. package/dist/index.es32.js +4 -4
  1150. package/dist/index.es320.js +20 -25
  1151. package/dist/index.es320.js.map +1 -1
  1152. package/dist/index.es321.js +6 -6
  1153. package/dist/index.es321.js.map +1 -1
  1154. package/dist/{index.es293.js → index.es322.js} +1 -1
  1155. package/dist/{index.es293.js.map → index.es322.js.map} +1 -1
  1156. package/dist/index.es325.js +54 -6
  1157. package/dist/index.es325.js.map +1 -1
  1158. package/dist/index.es327.js +255 -23
  1159. package/dist/index.es327.js.map +1 -1
  1160. package/dist/index.es328.js +77 -25
  1161. package/dist/index.es328.js.map +1 -1
  1162. package/dist/index.es329.js +16 -114
  1163. package/dist/index.es329.js.map +1 -1
  1164. package/dist/index.es33.js +4 -4
  1165. package/dist/index.es330.js +18 -0
  1166. package/dist/index.es330.js.map +1 -0
  1167. package/dist/index.es331.js +28 -59
  1168. package/dist/index.es331.js.map +1 -1
  1169. package/dist/{index.es304.js → index.es333.js} +4 -4
  1170. package/dist/{index.es304.js.map → index.es333.js.map} +1 -1
  1171. package/dist/{index.es305.js → index.es334.js} +2 -2
  1172. package/dist/{index.es305.js.map → index.es334.js.map} +1 -1
  1173. package/dist/{index.es306.js → index.es335.js} +2 -2
  1174. package/dist/{index.es306.js.map → index.es335.js.map} +1 -1
  1175. package/dist/index.es338.js +11 -0
  1176. package/dist/index.es338.js.map +1 -0
  1177. package/dist/index.es339.js +7 -0
  1178. package/dist/index.es339.js.map +1 -0
  1179. package/dist/index.es34.js +4 -4
  1180. package/dist/{index.es314.js → index.es343.js} +2 -2
  1181. package/dist/{index.es314.js.map → index.es343.js.map} +1 -1
  1182. package/dist/index.es345.js +11 -0
  1183. package/dist/index.es345.js.map +1 -0
  1184. package/dist/{index.es317.js → index.es346.js} +4 -4
  1185. package/dist/{index.es317.js.map → index.es346.js.map} +1 -1
  1186. package/dist/index.es348.js +8 -25
  1187. package/dist/index.es348.js.map +1 -1
  1188. package/dist/index.es349.js +26 -6
  1189. package/dist/index.es349.js.map +1 -1
  1190. package/dist/index.es35.js +4 -4
  1191. package/dist/index.es350.js +9 -0
  1192. package/dist/index.es350.js.map +1 -0
  1193. package/dist/{index.es323.js → index.es352.js} +4 -4
  1194. package/dist/{index.es323.js.map → index.es352.js.map} +1 -1
  1195. package/dist/{index.es324.js → index.es353.js} +2 -2
  1196. package/dist/{index.es324.js.map → index.es353.js.map} +1 -1
  1197. package/dist/index.es354.js +9 -0
  1198. package/dist/index.es354.js.map +1 -0
  1199. package/dist/index.es356.js +30 -0
  1200. package/dist/index.es356.js.map +1 -0
  1201. package/dist/index.es357.js +31 -0
  1202. package/dist/index.es357.js.map +1 -0
  1203. package/dist/index.es358.js +119 -0
  1204. package/dist/index.es358.js.map +1 -0
  1205. package/dist/index.es36.js +2 -2
  1206. package/dist/index.es368.js +2 -0
  1207. package/dist/index.es368.js.map +1 -0
  1208. package/dist/index.es37.js +31 -30
  1209. package/dist/index.es37.js.map +1 -1
  1210. package/dist/index.es376.js +28 -0
  1211. package/dist/index.es376.js.map +1 -0
  1212. package/dist/index.es377.js +6 -3
  1213. package/dist/index.es377.js.map +1 -1
  1214. package/dist/index.es38.js +1 -1
  1215. package/dist/index.es39.js +7 -7
  1216. package/dist/{index.es371.js → index.es399.js} +7 -7
  1217. package/dist/{index.es371.js.map → index.es399.js.map} +1 -1
  1218. package/dist/index.es4.js +7 -7
  1219. package/dist/index.es40.js +7 -7
  1220. package/dist/index.es405.js +3 -240
  1221. package/dist/index.es405.js.map +1 -1
  1222. package/dist/{index.es380.js → index.es408.js} +2 -2
  1223. package/dist/{index.es380.js.map → index.es408.js.map} +1 -1
  1224. package/dist/index.es41.js +133 -107
  1225. package/dist/index.es41.js.map +1 -1
  1226. package/dist/{index.es382.js → index.es410.js} +4 -4
  1227. package/dist/{index.es382.js.map → index.es410.js.map} +1 -1
  1228. package/dist/{index.es383.js → index.es411.js} +2 -2
  1229. package/dist/{index.es383.js.map → index.es411.js.map} +1 -1
  1230. package/dist/{index.es384.js → index.es412.js} +2 -2
  1231. package/dist/{index.es384.js.map → index.es412.js.map} +1 -1
  1232. package/dist/{index.es389.js → index.es417.js} +9 -9
  1233. package/dist/{index.es389.js.map → index.es417.js.map} +1 -1
  1234. package/dist/index.es42.js +2 -2
  1235. package/dist/{index.es395.js → index.es423.js} +3 -3
  1236. package/dist/{index.es395.js.map → index.es423.js.map} +1 -1
  1237. package/dist/index.es425.js +9 -104
  1238. package/dist/index.es425.js.map +1 -1
  1239. package/dist/index.es426.js +17 -5
  1240. package/dist/index.es426.js.map +1 -1
  1241. package/dist/index.es43.js +2 -2
  1242. package/dist/{index.es403.js → index.es431.js} +2 -2
  1243. package/dist/{index.es403.js.map → index.es431.js.map} +1 -1
  1244. package/dist/index.es436.js +3 -3
  1245. package/dist/index.es44.js +6 -6
  1246. package/dist/{index.es418.js → index.es440.js} +2 -2
  1247. package/dist/{index.es418.js.map → index.es440.js.map} +1 -1
  1248. package/dist/{index.es419.js → index.es441.js} +2 -2
  1249. package/dist/{index.es419.js.map → index.es441.js.map} +1 -1
  1250. package/dist/{index.es424.js → index.es446.js} +4 -4
  1251. package/dist/{index.es424.js.map → index.es446.js.map} +1 -1
  1252. package/dist/index.es447.js +103 -8
  1253. package/dist/index.es447.js.map +1 -1
  1254. package/dist/index.es448.js +5 -189
  1255. package/dist/index.es448.js.map +1 -1
  1256. package/dist/index.es45.js +4 -4
  1257. package/dist/index.es450.js +160 -23
  1258. package/dist/index.es450.js.map +1 -1
  1259. package/dist/index.es456.js +135 -18
  1260. package/dist/index.es456.js.map +1 -1
  1261. package/dist/index.es457.js +7 -135
  1262. package/dist/index.es457.js.map +1 -1
  1263. package/dist/index.es458.js +2 -8
  1264. package/dist/index.es458.js.map +1 -1
  1265. package/dist/index.es459.js +33 -2
  1266. package/dist/index.es459.js.map +1 -1
  1267. package/dist/index.es46.js +3 -3
  1268. package/dist/index.es460.js +235 -23
  1269. package/dist/index.es460.js.map +1 -1
  1270. package/dist/index.es461.js +3668 -238
  1271. package/dist/index.es461.js.map +1 -1
  1272. package/dist/index.es462.js +6 -15
  1273. package/dist/index.es462.js.map +1 -1
  1274. package/dist/{index.es522.js → index.es463.js} +1 -1
  1275. package/dist/index.es463.js.map +1 -0
  1276. package/dist/index.es464.js +9 -0
  1277. package/dist/index.es464.js.map +1 -0
  1278. package/dist/index.es465.js +519 -5
  1279. package/dist/index.es465.js.map +1 -1
  1280. package/dist/index.es466.js +2026 -21
  1281. package/dist/index.es466.js.map +1 -1
  1282. package/dist/index.es467.js +55 -63
  1283. package/dist/index.es467.js.map +1 -1
  1284. package/dist/index.es468.js +188 -29
  1285. package/dist/index.es468.js.map +1 -1
  1286. package/dist/index.es469.js +6 -32
  1287. package/dist/index.es469.js.map +1 -1
  1288. package/dist/index.es47.js +2 -2
  1289. package/dist/index.es470.js +23 -618
  1290. package/dist/index.es470.js.map +1 -1
  1291. package/dist/index.es471.js +67 -10
  1292. package/dist/index.es471.js.map +1 -1
  1293. package/dist/index.es472.js +33 -0
  1294. package/dist/index.es472.js.map +1 -0
  1295. package/dist/index.es473.js +36 -0
  1296. package/dist/index.es473.js.map +1 -0
  1297. package/dist/index.es474.js +625 -0
  1298. package/dist/index.es474.js.map +1 -0
  1299. package/dist/index.es475.js +10 -5
  1300. package/dist/index.es475.js.map +1 -1
  1301. package/dist/index.es476.js +5 -24
  1302. package/dist/index.es476.js.map +1 -1
  1303. package/dist/index.es477.js +23 -67
  1304. package/dist/index.es477.js.map +1 -1
  1305. package/dist/index.es478.js +64 -120
  1306. package/dist/index.es478.js.map +1 -1
  1307. package/dist/index.es479.js +15 -135
  1308. package/dist/index.es479.js.map +1 -1
  1309. package/dist/index.es48.js +4 -4
  1310. package/dist/index.es487.js +128 -0
  1311. package/dist/index.es487.js.map +1 -0
  1312. package/dist/index.es488.js +133 -13
  1313. package/dist/index.es488.js.map +1 -1
  1314. package/dist/{index.es480.js → index.es489.js} +4 -4
  1315. package/dist/{index.es480.js.map → index.es489.js.map} +1 -1
  1316. package/dist/index.es49.js +2 -2
  1317. package/dist/{index.es481.js → index.es490.js} +1 -1
  1318. package/dist/{index.es481.js.map → index.es490.js.map} +1 -1
  1319. package/dist/{index.es482.js → index.es491.js} +4 -4
  1320. package/dist/{index.es482.js.map → index.es491.js.map} +1 -1
  1321. package/dist/{index.es483.js → index.es492.js} +1 -1
  1322. package/dist/{index.es483.js.map → index.es492.js.map} +1 -1
  1323. package/dist/{index.es484.js → index.es493.js} +3 -3
  1324. package/dist/{index.es484.js.map → index.es493.js.map} +1 -1
  1325. package/dist/index.es497.js +18 -0
  1326. package/dist/index.es497.js.map +1 -0
  1327. package/dist/index.es5.js +4 -4
  1328. package/dist/index.es50.js +3 -3
  1329. package/dist/index.es51.js +4 -4
  1330. package/dist/index.es513.js +65 -2023
  1331. package/dist/index.es513.js.map +1 -1
  1332. package/dist/index.es514.js +2 -60
  1333. package/dist/index.es514.js.map +1 -1
  1334. package/dist/index.es515.js +20 -188
  1335. package/dist/index.es515.js.map +1 -1
  1336. package/dist/{index.es510.js → index.es516.js} +1 -1
  1337. package/dist/index.es516.js.map +1 -0
  1338. package/dist/index.es517.js +57 -0
  1339. package/dist/{index.es511.js.map → index.es517.js.map} +1 -1
  1340. package/dist/{index.es512.js → index.es518.js} +2 -2
  1341. package/dist/{index.es512.js.map → index.es518.js.map} +1 -1
  1342. package/dist/index.es52.js +4 -4
  1343. package/dist/index.es523.js +4 -5
  1344. package/dist/index.es523.js.map +1 -1
  1345. package/dist/index.es524.js +2 -521
  1346. package/dist/index.es524.js.map +1 -1
  1347. package/dist/index.es525.js +2 -2
  1348. package/dist/index.es526.js +10 -2
  1349. package/dist/index.es526.js.map +1 -1
  1350. package/dist/index.es527.js +177 -10
  1351. package/dist/index.es527.js.map +1 -1
  1352. package/dist/index.es528.js +3 -45
  1353. package/dist/index.es528.js.map +1 -1
  1354. package/dist/index.es529.js +131 -12
  1355. package/dist/index.es529.js.map +1 -1
  1356. package/dist/index.es53.js +3 -3
  1357. package/dist/index.es530.js +10 -217
  1358. package/dist/index.es530.js.map +1 -1
  1359. package/dist/index.es531.js +42 -174
  1360. package/dist/index.es531.js.map +1 -1
  1361. package/dist/index.es532.js +13 -3
  1362. package/dist/index.es532.js.map +1 -1
  1363. package/dist/index.es533.js +217 -11
  1364. package/dist/index.es533.js.map +1 -1
  1365. package/dist/index.es534.js +180 -2
  1366. package/dist/index.es534.js.map +1 -1
  1367. package/dist/index.es535.js +4 -2
  1368. package/dist/index.es535.js.map +1 -1
  1369. package/dist/index.es536.js +11 -5
  1370. package/dist/index.es536.js.map +1 -1
  1371. package/dist/index.es537.js +2 -16
  1372. package/dist/index.es537.js.map +1 -1
  1373. package/dist/index.es538.js +2 -6
  1374. package/dist/index.es538.js.map +1 -1
  1375. package/dist/index.es539.js +3 -3
  1376. package/dist/index.es539.js.map +1 -1
  1377. package/dist/index.es54.js +3 -3
  1378. package/dist/index.es540.js +12 -4
  1379. package/dist/index.es540.js.map +1 -1
  1380. package/dist/index.es541.js +3 -3
  1381. package/dist/index.es541.js.map +1 -1
  1382. package/dist/index.es542.js +3 -3
  1383. package/dist/index.es542.js.map +1 -1
  1384. package/dist/index.es543.js +3 -3
  1385. package/dist/index.es543.js.map +1 -1
  1386. package/dist/index.es544.js +1 -1
  1387. package/dist/index.es544.js.map +1 -1
  1388. package/dist/index.es545.js +3 -3
  1389. package/dist/index.es545.js.map +1 -1
  1390. package/dist/index.es546.js +3 -3
  1391. package/dist/index.es546.js.map +1 -1
  1392. package/dist/index.es547.js +3 -3
  1393. package/dist/index.es547.js.map +1 -1
  1394. package/dist/index.es548.js +3 -3
  1395. package/dist/index.es548.js.map +1 -1
  1396. package/dist/index.es549.js +3 -3
  1397. package/dist/index.es549.js.map +1 -1
  1398. package/dist/index.es55.js +4 -4
  1399. package/dist/index.es550.js +3 -3
  1400. package/dist/index.es550.js.map +1 -1
  1401. package/dist/index.es551.js +1 -1
  1402. package/dist/index.es551.js.map +1 -1
  1403. package/dist/index.es552.js +5 -5
  1404. package/dist/index.es552.js.map +1 -1
  1405. package/dist/index.es553.js +4 -8
  1406. package/dist/index.es553.js.map +1 -1
  1407. package/dist/index.es554.js +3 -3
  1408. package/dist/index.es554.js.map +1 -1
  1409. package/dist/index.es555.js +5 -5
  1410. package/dist/index.es555.js.map +1 -1
  1411. package/dist/index.es556.js +8 -4
  1412. package/dist/index.es556.js.map +1 -1
  1413. package/dist/index.es557.js +3 -3
  1414. package/dist/index.es557.js.map +1 -1
  1415. package/dist/index.es558.js +3 -3
  1416. package/dist/index.es558.js.map +1 -1
  1417. package/dist/index.es559.js +5 -10
  1418. package/dist/index.es559.js.map +1 -1
  1419. package/dist/index.es56.js +4 -4
  1420. package/dist/index.es560.js +1 -1
  1421. package/dist/index.es560.js.map +1 -1
  1422. package/dist/index.es561.js +3 -3
  1423. package/dist/index.es561.js.map +1 -1
  1424. package/dist/index.es562.js +10 -5
  1425. package/dist/index.es562.js.map +1 -1
  1426. package/dist/index.es563.js +3 -3
  1427. package/dist/index.es563.js.map +1 -1
  1428. package/dist/index.es564.js +3 -3
  1429. package/dist/index.es564.js.map +1 -1
  1430. package/dist/index.es565.js +3 -3
  1431. package/dist/index.es565.js.map +1 -1
  1432. package/dist/index.es566.js +4 -10
  1433. package/dist/index.es566.js.map +1 -1
  1434. package/dist/index.es567.js +3 -3
  1435. package/dist/index.es567.js.map +1 -1
  1436. package/dist/index.es568.js +3 -3
  1437. package/dist/index.es568.js.map +1 -1
  1438. package/dist/index.es569.js +9 -6
  1439. package/dist/index.es569.js.map +1 -1
  1440. package/dist/index.es57.js +1 -1
  1441. package/dist/index.es570.js +4 -15
  1442. package/dist/index.es570.js.map +1 -1
  1443. package/dist/index.es571.js +6 -2
  1444. package/dist/index.es571.js.map +1 -1
  1445. package/dist/index.es572.js +8 -9
  1446. package/dist/index.es572.js.map +1 -1
  1447. package/dist/index.es573.js +16 -177
  1448. package/dist/index.es573.js.map +1 -1
  1449. package/dist/index.es574.js +2 -4
  1450. package/dist/index.es574.js.map +1 -1
  1451. package/dist/index.es575.js +198 -126
  1452. package/dist/index.es575.js.map +1 -1
  1453. package/dist/index.es576.js +20 -203
  1454. package/dist/index.es576.js.map +1 -1
  1455. package/dist/index.es577.js +392 -21
  1456. package/dist/index.es577.js.map +1 -1
  1457. package/dist/index.es578.js +22 -390
  1458. package/dist/index.es578.js.map +1 -1
  1459. package/dist/index.es579.js +28 -24
  1460. package/dist/index.es579.js.map +1 -1
  1461. package/dist/index.es58.js +1 -1
  1462. package/dist/index.es580.js +5 -29
  1463. package/dist/index.es580.js.map +1 -1
  1464. package/dist/index.es581.js +5 -5
  1465. package/dist/index.es581.js.map +1 -1
  1466. package/dist/index.es582.js +16 -83
  1467. package/dist/index.es582.js.map +1 -1
  1468. package/dist/index.es583.js +13 -5
  1469. package/dist/index.es583.js.map +1 -1
  1470. package/dist/index.es584.js +36 -16
  1471. package/dist/index.es584.js.map +1 -1
  1472. package/dist/index.es585.js +5 -13
  1473. package/dist/index.es585.js.map +1 -1
  1474. package/dist/index.es586.js +2 -36
  1475. package/dist/index.es586.js.map +1 -1
  1476. package/dist/index.es587.js +3 -5
  1477. package/dist/index.es587.js.map +1 -1
  1478. package/dist/index.es588.js +7 -2
  1479. package/dist/index.es588.js.map +1 -1
  1480. package/dist/index.es589.js +6 -3
  1481. package/dist/index.es589.js.map +1 -1
  1482. package/dist/index.es59.js +2 -2
  1483. package/dist/index.es590.js +5 -7
  1484. package/dist/index.es590.js.map +1 -1
  1485. package/dist/index.es591.js +32 -6
  1486. package/dist/index.es591.js.map +1 -1
  1487. package/dist/index.es592.js +242 -5
  1488. package/dist/index.es592.js.map +1 -1
  1489. package/dist/index.es593.js +4 -32
  1490. package/dist/index.es593.js.map +1 -1
  1491. package/dist/index.es594.js +4 -241
  1492. package/dist/index.es594.js.map +1 -1
  1493. package/dist/index.es595.js +10 -4
  1494. package/dist/index.es595.js.map +1 -1
  1495. package/dist/index.es596.js +55 -4
  1496. package/dist/index.es596.js.map +1 -1
  1497. package/dist/index.es597.js +7 -9
  1498. package/dist/index.es597.js.map +1 -1
  1499. package/dist/index.es598.js +5 -55
  1500. package/dist/index.es598.js.map +1 -1
  1501. package/dist/index.es599.js +532 -7
  1502. package/dist/index.es599.js.map +1 -1
  1503. package/dist/index.es6.js +2 -2
  1504. package/dist/index.es60.js +3 -3
  1505. package/dist/index.es600.js +14 -6
  1506. package/dist/index.es600.js.map +1 -1
  1507. package/dist/index.es601.js +2 -533
  1508. package/dist/index.es601.js.map +1 -1
  1509. package/dist/index.es602.js +37 -14
  1510. package/dist/index.es602.js.map +1 -1
  1511. package/dist/index.es603.js +2 -2
  1512. package/dist/index.es603.js.map +1 -1
  1513. package/dist/index.es604.js +271 -35
  1514. package/dist/index.es604.js.map +1 -1
  1515. package/dist/index.es605.js +3 -2
  1516. package/dist/index.es605.js.map +1 -1
  1517. package/dist/index.es606.js +25 -268
  1518. package/dist/index.es606.js.map +1 -1
  1519. package/dist/index.es607.js +83 -3
  1520. package/dist/index.es607.js.map +1 -1
  1521. package/dist/index.es608.js +2 -30
  1522. package/dist/index.es608.js.map +1 -1
  1523. package/dist/index.es609.js +2 -2
  1524. package/dist/index.es61.js +1 -1
  1525. package/dist/index.es611.js +2 -2
  1526. package/dist/index.es612.js +2 -2
  1527. package/dist/index.es613.js +2 -2
  1528. package/dist/index.es614.js +2 -2
  1529. package/dist/index.es615.js +2 -2
  1530. package/dist/index.es616.js +2 -2
  1531. package/dist/index.es618.js +2 -2
  1532. package/dist/index.es619.js +2 -2
  1533. package/dist/index.es62.js +3 -3
  1534. package/dist/index.es620.js +2 -2
  1535. package/dist/index.es622.js +2 -2
  1536. package/dist/index.es623.js +2 -2
  1537. package/dist/index.es624.js +2 -2
  1538. package/dist/index.es626.js +2 -2
  1539. package/dist/index.es628.js +2 -2
  1540. package/dist/index.es629.js +2 -2
  1541. package/dist/index.es63.js +1 -1
  1542. package/dist/index.es630.js +2 -2
  1543. package/dist/index.es631.js +2 -2
  1544. package/dist/index.es632.js +2 -2
  1545. package/dist/index.es633.js +2 -2
  1546. package/dist/index.es634.js +2 -2
  1547. package/dist/index.es635.js +2 -2
  1548. package/dist/index.es636.js +2 -2
  1549. package/dist/index.es637.js +2 -2
  1550. package/dist/index.es638.js +2 -2
  1551. package/dist/index.es639.js +2 -2
  1552. package/dist/index.es64.js +2 -2
  1553. package/dist/index.es641.js +2 -2
  1554. package/dist/index.es642.js +2 -2
  1555. package/dist/index.es643.js +5 -2
  1556. package/dist/index.es643.js.map +1 -1
  1557. package/dist/index.es644.js +3 -5
  1558. package/dist/index.es644.js.map +1 -1
  1559. package/dist/index.es645.js +24 -3
  1560. package/dist/index.es645.js.map +1 -1
  1561. package/dist/index.es646.js +108 -22
  1562. package/dist/index.es646.js.map +1 -1
  1563. package/dist/index.es647.js +14 -108
  1564. package/dist/index.es647.js.map +1 -1
  1565. package/dist/index.es648.js +39 -15
  1566. package/dist/index.es648.js.map +1 -1
  1567. package/dist/index.es649.js +2 -40
  1568. package/dist/index.es649.js.map +1 -1
  1569. package/dist/index.es65.js +1 -1
  1570. package/dist/index.es650.js +5 -2
  1571. package/dist/index.es650.js.map +1 -1
  1572. package/dist/index.es651.js +2 -5
  1573. package/dist/index.es651.js.map +1 -1
  1574. package/dist/index.es652.js +2 -2
  1575. package/dist/index.es652.js.map +1 -1
  1576. package/dist/index.es653.js +2 -2
  1577. package/dist/index.es653.js.map +1 -1
  1578. package/dist/index.es654.js +6 -2
  1579. package/dist/index.es654.js.map +1 -1
  1580. package/dist/index.es655.js +16 -6
  1581. package/dist/index.es655.js.map +1 -1
  1582. package/dist/index.es656.js +2 -16
  1583. package/dist/index.es656.js.map +1 -1
  1584. package/dist/index.es657.js +2 -2
  1585. package/dist/index.es657.js.map +1 -1
  1586. package/dist/index.es658.js +3 -2
  1587. package/dist/index.es658.js.map +1 -1
  1588. package/dist/index.es659.js +2 -3
  1589. package/dist/index.es659.js.map +1 -1
  1590. package/dist/index.es66.js +1 -1
  1591. package/dist/index.es660.js +4 -2
  1592. package/dist/index.es660.js.map +1 -1
  1593. package/dist/index.es661.js +69 -4
  1594. package/dist/index.es661.js.map +1 -1
  1595. package/dist/index.es662.js +7 -521
  1596. package/dist/index.es662.js.map +1 -1
  1597. package/dist/index.es663.js +13 -126
  1598. package/dist/index.es663.js.map +1 -1
  1599. package/dist/index.es664.js +60 -127
  1600. package/dist/index.es664.js.map +1 -1
  1601. package/dist/index.es665.js +1 -1
  1602. package/dist/index.es666.js +518 -64
  1603. package/dist/index.es666.js.map +1 -1
  1604. package/dist/index.es667.js +126 -8
  1605. package/dist/index.es667.js.map +1 -1
  1606. package/dist/index.es668.js +128 -13
  1607. package/dist/index.es668.js.map +1 -1
  1608. package/dist/index.es669.js +4 -62
  1609. package/dist/index.es669.js.map +1 -1
  1610. package/dist/index.es67.js +3 -3
  1611. package/dist/index.es670.js +3 -4
  1612. package/dist/index.es670.js.map +1 -1
  1613. package/dist/index.es671.js +2 -3
  1614. package/dist/index.es671.js.map +1 -1
  1615. package/dist/index.es672.js +4 -2
  1616. package/dist/index.es672.js.map +1 -1
  1617. package/dist/index.es673.js +22 -3
  1618. package/dist/index.es673.js.map +1 -1
  1619. package/dist/index.es674.js +23 -23
  1620. package/dist/index.es674.js.map +1 -1
  1621. package/dist/index.es675.js +11 -21
  1622. package/dist/index.es675.js.map +1 -1
  1623. package/dist/index.es676.js +26 -11
  1624. package/dist/index.es676.js.map +1 -1
  1625. package/dist/index.es677.js +4 -27
  1626. package/dist/index.es677.js.map +1 -1
  1627. package/dist/index.es68.js +2 -2
  1628. package/dist/index.es69.js +5 -5
  1629. package/dist/index.es7.js +2 -2
  1630. package/dist/index.es70.js +1 -1
  1631. package/dist/index.es71.js +2 -2
  1632. package/dist/index.es72.js +2 -2
  1633. package/dist/index.es73.js +5 -5
  1634. package/dist/index.es74.js +5 -5
  1635. package/dist/index.es75.js +5 -5
  1636. package/dist/index.es76.js +3 -3
  1637. package/dist/index.es77.js +2 -2
  1638. package/dist/index.es78.js +1 -1
  1639. package/dist/index.es79.js +2 -2
  1640. package/dist/index.es8.js +2 -2
  1641. package/dist/index.es80.js +4 -4
  1642. package/dist/index.es81.js +1 -1
  1643. package/dist/index.es82.js +1 -1
  1644. package/dist/index.es83.js +1 -1
  1645. package/dist/index.es84.js +1 -1
  1646. package/dist/index.es85.js +1 -1
  1647. package/dist/index.es86.js +1 -1
  1648. package/dist/index.es87.js +1 -1
  1649. package/dist/index.es88.js +1 -1
  1650. package/dist/index.es89.js +1 -1
  1651. package/dist/index.es9.js +4 -4
  1652. package/dist/index.es90.js +1 -1
  1653. package/dist/index.es91.js +1 -1
  1654. package/dist/index.es92.js +1 -1
  1655. package/dist/index.es93.js +1 -1
  1656. package/dist/index.es94.js +1 -1
  1657. package/dist/index.es95.js +3 -3
  1658. package/dist/index.es96.js +3 -3
  1659. package/dist/index.es97.js +5 -5
  1660. package/dist/index.es98.js +4 -4
  1661. package/dist/index.es99.js +1 -1
  1662. package/package.json +1 -1
  1663. package/dist/index.cjs247.js +0 -2
  1664. package/dist/index.cjs247.js.map +0 -1
  1665. package/dist/index.cjs251.js +0 -2
  1666. package/dist/index.cjs251.js.map +0 -1
  1667. package/dist/index.cjs252.js +0 -2
  1668. package/dist/index.cjs252.js.map +0 -1
  1669. package/dist/index.cjs267.js +0 -2
  1670. package/dist/index.cjs267.js.map +0 -1
  1671. package/dist/index.cjs270.js +0 -2
  1672. package/dist/index.cjs270.js.map +0 -1
  1673. package/dist/index.cjs272.js +0 -2
  1674. package/dist/index.cjs272.js.map +0 -1
  1675. package/dist/index.cjs287.js +0 -2
  1676. package/dist/index.cjs287.js.map +0 -1
  1677. package/dist/index.cjs290.js +0 -2
  1678. package/dist/index.cjs290.js.map +0 -1
  1679. package/dist/index.cjs292.js +0 -2
  1680. package/dist/index.cjs292.js.map +0 -1
  1681. package/dist/index.cjs298.js +0 -6
  1682. package/dist/index.cjs298.js.map +0 -1
  1683. package/dist/index.cjs300.js +0 -2
  1684. package/dist/index.cjs300.js.map +0 -1
  1685. package/dist/index.cjs340.js +0 -2
  1686. package/dist/index.cjs340.js.map +0 -1
  1687. package/dist/index.cjs397.js +0 -2
  1688. package/dist/index.cjs397.js.map +0 -1
  1689. package/dist/index.cjs398.js +0 -2
  1690. package/dist/index.cjs398.js.map +0 -1
  1691. package/dist/index.cjs414.js +0 -2
  1692. package/dist/index.cjs414.js.map +0 -1
  1693. package/dist/index.cjs428.js +0 -2
  1694. package/dist/index.cjs428.js.map +0 -1
  1695. package/dist/index.cjs443.js +0 -2
  1696. package/dist/index.cjs443.js.map +0 -1
  1697. package/dist/index.cjs452.js +0 -2
  1698. package/dist/index.cjs452.js.map +0 -1
  1699. package/dist/index.cjs504.js +0 -2
  1700. package/dist/index.cjs504.js.map +0 -1
  1701. package/dist/index.cjs505.js +0 -2
  1702. package/dist/index.cjs505.js.map +0 -1
  1703. package/dist/index.cjs506.js +0 -2
  1704. package/dist/index.cjs506.js.map +0 -1
  1705. package/dist/index.cjs509.js +0 -2
  1706. package/dist/index.cjs509.js.map +0 -1
  1707. package/dist/index.cjs510.js.map +0 -1
  1708. package/dist/index.cjs520.js +0 -2
  1709. package/dist/index.cjs520.js.map +0 -1
  1710. package/dist/index.cjs521.js +0 -28
  1711. package/dist/index.cjs521.js.map +0 -1
  1712. package/dist/index.cjs522.js.map +0 -1
  1713. package/dist/index.cjs678.js +0 -2
  1714. package/dist/index.cjs678.js.map +0 -1
  1715. package/dist/index.es247.js +0 -6
  1716. package/dist/index.es247.js.map +0 -1
  1717. package/dist/index.es251.js +0 -5
  1718. package/dist/index.es251.js.map +0 -1
  1719. package/dist/index.es252.js +0 -5
  1720. package/dist/index.es252.js.map +0 -1
  1721. package/dist/index.es267.js +0 -210
  1722. package/dist/index.es267.js.map +0 -1
  1723. package/dist/index.es270.js +0 -82
  1724. package/dist/index.es270.js.map +0 -1
  1725. package/dist/index.es272.js +0 -146
  1726. package/dist/index.es272.js.map +0 -1
  1727. package/dist/index.es287.js +0 -70
  1728. package/dist/index.es287.js.map +0 -1
  1729. package/dist/index.es290.js +0 -7
  1730. package/dist/index.es290.js.map +0 -1
  1731. package/dist/index.es292.js +0 -9
  1732. package/dist/index.es292.js.map +0 -1
  1733. package/dist/index.es298.js +0 -262
  1734. package/dist/index.es298.js.map +0 -1
  1735. package/dist/index.es300.js +0 -21
  1736. package/dist/index.es300.js.map +0 -1
  1737. package/dist/index.es340.js +0 -2
  1738. package/dist/index.es340.js.map +0 -1
  1739. package/dist/index.es397.js +0 -12
  1740. package/dist/index.es397.js.map +0 -1
  1741. package/dist/index.es398.js +0 -20
  1742. package/dist/index.es398.js.map +0 -1
  1743. package/dist/index.es414.js +0 -6
  1744. package/dist/index.es414.js.map +0 -1
  1745. package/dist/index.es428.js +0 -187
  1746. package/dist/index.es428.js.map +0 -1
  1747. package/dist/index.es443.js +0 -8
  1748. package/dist/index.es443.js.map +0 -1
  1749. package/dist/index.es452.js +0 -48
  1750. package/dist/index.es452.js.map +0 -1
  1751. package/dist/index.es504.js +0 -77
  1752. package/dist/index.es504.js.map +0 -1
  1753. package/dist/index.es505.js +0 -9
  1754. package/dist/index.es505.js.map +0 -1
  1755. package/dist/index.es506.js +0 -5
  1756. package/dist/index.es506.js.map +0 -1
  1757. package/dist/index.es509.js +0 -24
  1758. package/dist/index.es509.js.map +0 -1
  1759. package/dist/index.es510.js.map +0 -1
  1760. package/dist/index.es511.js +0 -57
  1761. package/dist/index.es520.js +0 -8
  1762. package/dist/index.es520.js.map +0 -1
  1763. package/dist/index.es521.js +0 -3678
  1764. package/dist/index.es521.js.map +0 -1
  1765. package/dist/index.es522.js.map +0 -1
  1766. package/dist/index.es678.js +0 -8
  1767. package/dist/index.es678.js.map +0 -1
@@ -1,1804 +1,477 @@
1
- import E from "./index.es3.js";
2
- import Se from "./index.es229.js";
3
- import T from "./index.es4.js";
4
- import F from "./index.es230.js";
5
- import O from "./index.es231.js";
6
- import B from "./index.es232.js";
7
- import y from "./index.es233.js";
8
- import { isUndefined as f, isNumber as U, isDate as Ne, normalizeObject as X, objToLocalTS as P, isLeapYear as Ie, daysInMonth as R, daysInYear as De, weeksInWeekYear as ee, maybeArray as Me, bestBy as te, padStart as m, roundTo as ve } from "./index.es234.js";
9
- import { normalizeZone as S } from "./index.es235.js";
10
- import be from "./index.es236.js";
11
- import { parseISODate as _e, parseRFC2822Date as pe, parseHTTPDate as Ve, parseSQL as We } from "./index.es5.js";
12
- import { parseFromTokens as Fe, formatOptsToTokens as Le, expandMacroTokens as ze, explainFromTokens as He, TokenParser as Ue } from "./index.es237.js";
13
- import { usesLocalWeekValues as ne, gregorianToWeek as A, gregorianToOrdinal as Y, hasInvalidWeekData as Ce, hasInvalidOrdinalData as Ae, hasInvalidGregorianData as de, hasInvalidTimeData as he, weekToGregorian as ie, ordinalToGregorian as re } from "./index.es238.js";
14
- import { DATE_SHORT as se, DATE_MED as xe, DATE_MED_WITH_WEEKDAY as Ye, DATE_FULL as Ze, DATE_HUGE as je, TIME_SIMPLE as qe, TIME_WITH_SECONDS as Ge, TIME_WITH_SHORT_OFFSET as Re, TIME_WITH_LONG_OFFSET as $e, TIME_24_SIMPLE as Pe, TIME_24_WITH_SECONDS as Qe, TIME_24_WITH_SHORT_OFFSET as Je, TIME_24_WITH_LONG_OFFSET as Ke, DATETIME_SHORT as Be, DATETIME_SHORT_WITH_SECONDS as Xe, DATETIME_MED as et, DATETIME_MED_WITH_SECONDS as tt, DATETIME_MED_WITH_WEEKDAY as nt, DATETIME_FULL as it, DATETIME_FULL_WITH_SECONDS as rt, DATETIME_HUGE as st, DATETIME_HUGE_WITH_SECONDS as at } from "./index.es239.js";
15
- import { InvalidArgumentError as w, ConflictingSpecificationError as L, InvalidDateTimeError as ot, InvalidUnitError as lt } from "./index.es240.js";
16
- import N from "./index.es241.js";
17
- const Z = "Invalid DateTime", ut = 864e13;
18
- function b(n) {
19
- return new N("unsupported zone", `the zone "${n.name}" is not supported`);
1
+ import c, { friendlyDateTime as f } from "./index.es227.js";
2
+ import h from "./index.es3.js";
3
+ import S from "./index.es4.js";
4
+ import { InvalidArgumentError as v, InvalidIntervalError as p } from "./index.es239.js";
5
+ import V from "./index.es240.js";
6
+ import O from "./index.es230.js";
7
+ import { DATE_SHORT as D } from "./index.es238.js";
8
+ const d = "Invalid Interval";
9
+ function I(m, t) {
10
+ return !m || !m.isValid ? a.invalid("missing or invalid start") : !t || !t.isValid ? a.invalid("missing or invalid end") : t < m ? a.invalid(
11
+ "end before start",
12
+ `The end of an interval must be after its start, but you had start=${m.toISO()} and end=${t.toISO()}`
13
+ ) : null;
20
14
  }
21
- function j(n) {
22
- return n.weekData === null && (n.weekData = A(n.c)), n.weekData;
23
- }
24
- function q(n) {
25
- return n.localWeekData === null && (n.localWeekData = A(
26
- n.c,
27
- n.loc.getMinDaysInFirstWeek(),
28
- n.loc.getStartOfWeek()
29
- )), n.localWeekData;
30
- }
31
- function k(n, e) {
32
- const t = {
33
- ts: n.ts,
34
- zone: n.zone,
35
- c: n.c,
36
- o: n.o,
37
- loc: n.loc,
38
- invalid: n.invalid
39
- };
40
- return new l({ ...t, ...e, old: t });
41
- }
42
- function me(n, e, t) {
43
- let i = n - e * 60 * 1e3;
44
- const r = t.offset(i);
45
- if (e === r)
46
- return [i, e];
47
- i -= (r - e) * 60 * 1e3;
48
- const a = t.offset(i);
49
- return r === a ? [i, r] : [n - Math.min(r, a) * 60 * 1e3, Math.max(r, a)];
50
- }
51
- function z(n, e) {
52
- n += e * 60 * 1e3;
53
- const t = new Date(n);
54
- return {
55
- year: t.getUTCFullYear(),
56
- month: t.getUTCMonth() + 1,
57
- day: t.getUTCDate(),
58
- hour: t.getUTCHours(),
59
- minute: t.getUTCMinutes(),
60
- second: t.getUTCSeconds(),
61
- millisecond: t.getUTCMilliseconds()
62
- };
63
- }
64
- function C(n, e, t) {
65
- return me(P(n), e, t);
66
- }
67
- function ae(n, e) {
68
- const t = n.o, i = n.c.year + Math.trunc(e.years), r = n.c.month + Math.trunc(e.months) + Math.trunc(e.quarters) * 3, a = {
69
- ...n.c,
70
- year: i,
71
- month: r,
72
- day: Math.min(n.c.day, R(i, r)) + Math.trunc(e.days) + Math.trunc(e.weeks) * 7
73
- }, s = E.fromObject({
74
- years: e.years - Math.trunc(e.years),
75
- quarters: e.quarters - Math.trunc(e.quarters),
76
- months: e.months - Math.trunc(e.months),
77
- weeks: e.weeks - Math.trunc(e.weeks),
78
- days: e.days - Math.trunc(e.days),
79
- hours: e.hours,
80
- minutes: e.minutes,
81
- seconds: e.seconds,
82
- milliseconds: e.milliseconds
83
- }).as("milliseconds"), o = P(a);
84
- let [u, c] = me(o, t, n.zone);
85
- return s !== 0 && (u += s, c = n.zone.offset(u)), { ts: u, o: c };
86
- }
87
- function g(n, e, t, i, r, a) {
88
- const { setZone: s, zone: o } = t;
89
- if (n && Object.keys(n).length !== 0 || e) {
90
- const u = e || o, c = l.fromObject(n, {
91
- ...t,
92
- zone: u,
93
- specificOffset: a
94
- });
95
- return s ? c : c.setZone(o);
96
- } else
97
- return l.invalid(
98
- new N("unparsable", `the input "${r}" can't be parsed as ${i}`)
99
- );
100
- }
101
- function H(n, e, t = !0) {
102
- return n.isValid ? O.create(y.create("en-US"), {
103
- allowZ: t,
104
- forceSimple: !0
105
- }).formatDateTimeFromString(n, e) : null;
106
- }
107
- function G(n, e) {
108
- const t = n.c.year > 9999 || n.c.year < 0;
109
- let i = "";
110
- return t && n.c.year >= 0 && (i += "+"), i += m(n.c.year, t ? 6 : 4), e ? (i += "-", i += m(n.c.month), i += "-", i += m(n.c.day)) : (i += m(n.c.month), i += m(n.c.day)), i;
111
- }
112
- function oe(n, e, t, i, r, a) {
113
- let s = m(n.c.hour);
114
- return e ? (s += ":", s += m(n.c.minute), (n.c.millisecond !== 0 || n.c.second !== 0 || !t) && (s += ":")) : s += m(n.c.minute), (n.c.millisecond !== 0 || n.c.second !== 0 || !t) && (s += m(n.c.second), (n.c.millisecond !== 0 || !i) && (s += ".", s += m(n.c.millisecond, 3))), r && (n.isOffsetFixed && n.offset === 0 && !a ? s += "Z" : n.o < 0 ? (s += "-", s += m(Math.trunc(-n.o / 60)), s += ":", s += m(Math.trunc(-n.o % 60))) : (s += "+", s += m(Math.trunc(n.o / 60)), s += ":", s += m(Math.trunc(n.o % 60)))), a && (s += "[" + n.zone.ianaName + "]"), s;
115
- }
116
- const ye = {
117
- month: 1,
118
- day: 1,
119
- hour: 0,
120
- minute: 0,
121
- second: 0,
122
- millisecond: 0
123
- }, ct = {
124
- weekNumber: 1,
125
- weekday: 1,
126
- hour: 0,
127
- minute: 0,
128
- second: 0,
129
- millisecond: 0
130
- }, ft = {
131
- ordinal: 1,
132
- hour: 0,
133
- minute: 0,
134
- second: 0,
135
- millisecond: 0
136
- }, Te = ["year", "month", "day", "hour", "minute", "second", "millisecond"], dt = [
137
- "weekYear",
138
- "weekNumber",
139
- "weekday",
140
- "hour",
141
- "minute",
142
- "second",
143
- "millisecond"
144
- ], ht = ["year", "ordinal", "hour", "minute", "second", "millisecond"];
145
- function mt(n) {
146
- const e = {
147
- year: "year",
148
- years: "year",
149
- month: "month",
150
- months: "month",
151
- day: "day",
152
- days: "day",
153
- hour: "hour",
154
- hours: "hour",
155
- minute: "minute",
156
- minutes: "minute",
157
- quarter: "quarter",
158
- quarters: "quarter",
159
- second: "second",
160
- seconds: "second",
161
- millisecond: "millisecond",
162
- milliseconds: "millisecond",
163
- weekday: "weekday",
164
- weekdays: "weekday",
165
- weeknumber: "weekNumber",
166
- weeksnumber: "weekNumber",
167
- weeknumbers: "weekNumber",
168
- weekyear: "weekYear",
169
- weekyears: "weekYear",
170
- ordinal: "ordinal"
171
- }[n.toLowerCase()];
172
- if (!e) throw new lt(n);
173
- return e;
174
- }
175
- function le(n) {
176
- switch (n.toLowerCase()) {
177
- case "localweekday":
178
- case "localweekdays":
179
- return "localWeekday";
180
- case "localweeknumber":
181
- case "localweeknumbers":
182
- return "localWeekNumber";
183
- case "localweekyear":
184
- case "localweekyears":
185
- return "localWeekYear";
186
- default:
187
- return mt(n);
188
- }
189
- }
190
- function yt(n) {
191
- if (_ === void 0 && (_ = T.now()), n.type !== "iana")
192
- return n.offset(_);
193
- const e = n.name;
194
- let t = $.get(e);
195
- return t === void 0 && (t = n.offset(_), $.set(e, t)), t;
196
- }
197
- function ue(n, e) {
198
- const t = S(e.zone, T.defaultZone);
199
- if (!t.isValid)
200
- return l.invalid(b(t));
201
- const i = y.fromObject(e);
202
- let r, a;
203
- if (f(n.year))
204
- r = T.now();
205
- else {
206
- for (const u of Te)
207
- f(n[u]) && (n[u] = ye[u]);
208
- const s = de(n) || he(n);
209
- if (s)
210
- return l.invalid(s);
211
- const o = yt(t);
212
- [r, a] = C(n, o, t);
213
- }
214
- return new l({ ts: r, zone: t, loc: i, o: a });
215
- }
216
- function ce(n, e, t) {
217
- const i = f(t.round) ? !0 : t.round, r = (s, o) => (s = ve(s, i || t.calendary ? 0 : 2, !0), e.loc.clone(t).relFormatter(t).format(s, o)), a = (s) => t.calendary ? e.hasSame(n, s) ? 0 : e.startOf(s).diff(n.startOf(s), s).get(s) : e.diff(n, s).get(s);
218
- if (t.unit)
219
- return r(a(t.unit), t.unit);
220
- for (const s of t.units) {
221
- const o = a(s);
222
- if (Math.abs(o) >= 1)
223
- return r(o, s);
224
- }
225
- return r(n > e ? -0 : 0, t.units[t.units.length - 1]);
226
- }
227
- function fe(n) {
228
- let e = {}, t;
229
- return n.length > 0 && typeof n[n.length - 1] == "object" ? (e = n[n.length - 1], t = Array.from(n).slice(0, n.length - 1)) : t = Array.from(n), [e, t];
230
- }
231
- let _;
232
- const $ = /* @__PURE__ */ new Map();
233
- class l {
15
+ class a {
234
16
  /**
235
- * @access private
17
+ * @private
236
18
  */
237
- constructor(e) {
238
- const t = e.zone || T.defaultZone;
239
- let i = e.invalid || (Number.isNaN(e.ts) ? new N("invalid input") : null) || (t.isValid ? null : b(t));
240
- this.ts = f(e.ts) ? T.now() : e.ts;
241
- let r = null, a = null;
242
- if (!i)
243
- if (e.old && e.old.ts === this.ts && e.old.zone.equals(t))
244
- [r, a] = [e.old.c, e.old.o];
245
- else {
246
- const o = U(e.o) && !e.old ? e.o : t.offset(this.ts);
247
- r = z(this.ts, o), i = Number.isNaN(r.year) ? new N("invalid input") : null, r = i ? null : r, a = i ? null : o;
248
- }
249
- this._zone = t, this.loc = e.loc || y.create(), this.invalid = i, this.weekData = null, this.localWeekData = null, this.c = r, this.o = a, this.isLuxonDateTime = !0;
19
+ constructor(t) {
20
+ this.s = t.start, this.e = t.end, this.invalid = t.invalid || null, this.isLuxonInterval = !0;
250
21
  }
251
- // CONSTRUCT
252
22
  /**
253
- * Create a DateTime for the current instant, in the system's time zone.
254
- *
255
- * Use Settings to override these default values if needed.
256
- * @example DateTime.now().toISO() //~> now in the ISO format
257
- * @return {DateTime}
258
- */
259
- static now() {
260
- return new l({});
261
- }
262
- /**
263
- * Create a local DateTime
264
- * @param {number} [year] - The calendar year. If omitted (as in, call `local()` with no arguments), the current time will be used
265
- * @param {number} [month=1] - The month, 1-indexed
266
- * @param {number} [day=1] - The day of the month, 1-indexed
267
- * @param {number} [hour=0] - The hour of the day, in 24-hour time
268
- * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59
269
- * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59
270
- * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999
271
- * @example DateTime.local() //~> now
272
- * @example DateTime.local({ zone: "America/New_York" }) //~> now, in US east coast time
273
- * @example DateTime.local(2017) //~> 2017-01-01T00:00:00
274
- * @example DateTime.local(2017, 3) //~> 2017-03-01T00:00:00
275
- * @example DateTime.local(2017, 3, 12, { locale: "fr" }) //~> 2017-03-12T00:00:00, with a French locale
276
- * @example DateTime.local(2017, 3, 12, 5) //~> 2017-03-12T05:00:00
277
- * @example DateTime.local(2017, 3, 12, 5, { zone: "utc" }) //~> 2017-03-12T05:00:00, in UTC
278
- * @example DateTime.local(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00
279
- * @example DateTime.local(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10
280
- * @example DateTime.local(2017, 3, 12, 5, 45, 10, 765) //~> 2017-03-12T05:45:10.765
281
- * @return {DateTime}
282
- */
283
- static local() {
284
- const [e, t] = fe(arguments), [i, r, a, s, o, u, c] = t;
285
- return ue({ year: i, month: r, day: a, hour: s, minute: o, second: u, millisecond: c }, e);
286
- }
287
- /**
288
- * Create a DateTime in UTC
289
- * @param {number} [year] - The calendar year. If omitted (as in, call `utc()` with no arguments), the current time will be used
290
- * @param {number} [month=1] - The month, 1-indexed
291
- * @param {number} [day=1] - The day of the month
292
- * @param {number} [hour=0] - The hour of the day, in 24-hour time
293
- * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59
294
- * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59
295
- * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999
296
- * @param {Object} options - configuration options for the DateTime
297
- * @param {string} [options.locale] - a locale to set on the resulting DateTime instance
298
- * @param {string} [options.outputCalendar] - the output calendar to set on the resulting DateTime instance
299
- * @param {string} [options.numberingSystem] - the numbering system to set on the resulting DateTime instance
300
- * @param {string} [options.weekSettings] - the week settings to set on the resulting DateTime instance
301
- * @example DateTime.utc() //~> now
302
- * @example DateTime.utc(2017) //~> 2017-01-01T00:00:00Z
303
- * @example DateTime.utc(2017, 3) //~> 2017-03-01T00:00:00Z
304
- * @example DateTime.utc(2017, 3, 12) //~> 2017-03-12T00:00:00Z
305
- * @example DateTime.utc(2017, 3, 12, 5) //~> 2017-03-12T05:00:00Z
306
- * @example DateTime.utc(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00Z
307
- * @example DateTime.utc(2017, 3, 12, 5, 45, { locale: "fr" }) //~> 2017-03-12T05:45:00Z with a French locale
308
- * @example DateTime.utc(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10Z
309
- * @example DateTime.utc(2017, 3, 12, 5, 45, 10, 765, { locale: "fr" }) //~> 2017-03-12T05:45:10.765Z with a French locale
310
- * @return {DateTime}
311
- */
312
- static utc() {
313
- const [e, t] = fe(arguments), [i, r, a, s, o, u, c] = t;
314
- return e.zone = B.utcInstance, ue({ year: i, month: r, day: a, hour: s, minute: o, second: u, millisecond: c }, e);
315
- }
316
- /**
317
- * Create a DateTime from a JavaScript Date object. Uses the default zone.
318
- * @param {Date} date - a JavaScript Date object
319
- * @param {Object} options - configuration options for the DateTime
320
- * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into
321
- * @return {DateTime}
322
- */
323
- static fromJSDate(e, t = {}) {
324
- const i = Ne(e) ? e.valueOf() : NaN;
325
- if (Number.isNaN(i))
326
- return l.invalid("invalid input");
327
- const r = S(t.zone, T.defaultZone);
328
- return r.isValid ? new l({
329
- ts: i,
330
- zone: r,
331
- loc: y.fromObject(t)
332
- }) : l.invalid(b(r));
333
- }
334
- /**
335
- * Create a DateTime from a number of milliseconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.
336
- * @param {number} milliseconds - a number of milliseconds since 1970 UTC
337
- * @param {Object} options - configuration options for the DateTime
338
- * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into
339
- * @param {string} [options.locale] - a locale to set on the resulting DateTime instance
340
- * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance
341
- * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance
342
- * @param {string} options.weekSettings - the week settings to set on the resulting DateTime instance
343
- * @return {DateTime}
344
- */
345
- static fromMillis(e, t = {}) {
346
- if (U(e))
347
- return e < -864e13 || e > ut ? l.invalid("Timestamp out of range") : new l({
348
- ts: e,
349
- zone: S(t.zone, T.defaultZone),
350
- loc: y.fromObject(t)
351
- });
352
- throw new w(
353
- `fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`
354
- );
355
- }
356
- /**
357
- * Create a DateTime from a number of seconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.
358
- * @param {number} seconds - a number of seconds since 1970 UTC
359
- * @param {Object} options - configuration options for the DateTime
360
- * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into
361
- * @param {string} [options.locale] - a locale to set on the resulting DateTime instance
362
- * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance
363
- * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance
364
- * @param {string} options.weekSettings - the week settings to set on the resulting DateTime instance
365
- * @return {DateTime}
366
- */
367
- static fromSeconds(e, t = {}) {
368
- if (U(e))
369
- return new l({
370
- ts: e * 1e3,
371
- zone: S(t.zone, T.defaultZone),
372
- loc: y.fromObject(t)
373
- });
374
- throw new w("fromSeconds requires a numerical input");
375
- }
376
- /**
377
- * Create a DateTime from a JavaScript object with keys like 'year' and 'hour' with reasonable defaults.
378
- * @param {Object} obj - the object to create the DateTime from
379
- * @param {number} obj.year - a year, such as 1987
380
- * @param {number} obj.month - a month, 1-12
381
- * @param {number} obj.day - a day of the month, 1-31, depending on the month
382
- * @param {number} obj.ordinal - day of the year, 1-365 or 366
383
- * @param {number} obj.weekYear - an ISO week year
384
- * @param {number} obj.weekNumber - an ISO week number, between 1 and 52 or 53, depending on the year
385
- * @param {number} obj.weekday - an ISO weekday, 1-7, where 1 is Monday and 7 is Sunday
386
- * @param {number} obj.localWeekYear - a week year, according to the locale
387
- * @param {number} obj.localWeekNumber - a week number, between 1 and 52 or 53, depending on the year, according to the locale
388
- * @param {number} obj.localWeekday - a weekday, 1-7, where 1 is the first and 7 is the last day of the week, according to the locale
389
- * @param {number} obj.hour - hour of the day, 0-23
390
- * @param {number} obj.minute - minute of the hour, 0-59
391
- * @param {number} obj.second - second of the minute, 0-59
392
- * @param {number} obj.millisecond - millisecond of the second, 0-999
393
- * @param {Object} opts - options for creating this DateTime
394
- * @param {string|Zone} [opts.zone='local'] - interpret the numbers in the context of a particular zone. Can take any value taken as the first argument to setZone()
395
- * @param {string} [opts.locale='system\'s locale'] - a locale to set on the resulting DateTime instance
396
- * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
397
- * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance
398
- * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance
399
- * @example DateTime.fromObject({ year: 1982, month: 5, day: 25}).toISODate() //=> '1982-05-25'
400
- * @example DateTime.fromObject({ year: 1982 }).toISODate() //=> '1982-01-01'
401
- * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }) //~> today at 10:26:06
402
- * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'utc' }),
403
- * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'local' })
404
- * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'America/New_York' })
405
- * @example DateTime.fromObject({ weekYear: 2016, weekNumber: 2, weekday: 3 }).toISODate() //=> '2016-01-13'
406
- * @example DateTime.fromObject({ localWeekYear: 2022, localWeekNumber: 1, localWeekday: 1 }, { locale: "en-US" }).toISODate() //=> '2021-12-26'
407
- * @return {DateTime}
408
- */
409
- static fromObject(e, t = {}) {
410
- e = e || {};
411
- const i = S(t.zone, T.defaultZone);
412
- if (!i.isValid)
413
- return l.invalid(b(i));
414
- const r = y.fromObject(t), a = X(e, le), { minDaysInFirstWeek: s, startOfWeek: o } = ne(a, r), u = T.now(), c = f(t.specificOffset) ? i.offset(u) : t.specificOffset, d = !f(a.ordinal), h = !f(a.year), p = !f(a.month) || !f(a.day), I = h || p, Q = a.weekYear || a.weekNumber;
415
- if ((I || d) && Q)
416
- throw new L(
417
- "Can't mix weekYear/weekNumber units with year/month/day or ordinals"
418
- );
419
- if (p && d)
420
- throw new L("Can't mix ordinal dates with month/day");
421
- const x = Q || a.weekday && !I;
422
- let V, W, D = z(u, c);
423
- x ? (V = dt, W = ct, D = A(D, s, o)) : d ? (V = ht, W = ft, D = Y(D)) : (V = Te, W = ye);
424
- let J = !1;
425
- for (const v of V) {
426
- const Oe = a[v];
427
- f(Oe) ? J ? a[v] = W[v] : a[v] = D[v] : J = !0;
428
- }
429
- const we = x ? Ce(a, s, o) : d ? Ae(a) : de(a), K = we || he(a);
430
- if (K)
431
- return l.invalid(K);
432
- const ke = x ? ie(a, s, o) : d ? re(a) : a, [ge, Ee] = C(ke, c, i), M = new l({
433
- ts: ge,
434
- zone: i,
435
- o: Ee,
436
- loc: r
23
+ * Create an invalid Interval.
24
+ * @param {string} reason - simple string of why this Interval is invalid. Should not contain parameters or anything else data-dependent
25
+ * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information
26
+ * @return {Interval}
27
+ */
28
+ static invalid(t, i = null) {
29
+ if (!t)
30
+ throw new v("need to specify a reason the Interval is invalid");
31
+ const e = t instanceof V ? t : new V(t, i);
32
+ if (S.throwOnInvalid)
33
+ throw new p(e);
34
+ return new a({ invalid: e });
35
+ }
36
+ /**
37
+ * Create an Interval from a start DateTime and an end DateTime. Inclusive of the start but not the end.
38
+ * @param {DateTime|Date|Object} start
39
+ * @param {DateTime|Date|Object} end
40
+ * @return {Interval}
41
+ */
42
+ static fromDateTimes(t, i) {
43
+ const e = f(t), s = f(i), r = I(e, s);
44
+ return r ?? new a({
45
+ start: e,
46
+ end: s
437
47
  });
438
- return a.weekday && I && e.weekday !== M.weekday ? l.invalid(
439
- "mismatched weekday",
440
- `you can't specify both a weekday of ${a.weekday} and a date of ${M.toISO()}`
441
- ) : M.isValid ? M : l.invalid(M.invalid);
442
- }
443
- /**
444
- * Create a DateTime from an ISO 8601 string
445
- * @param {string} text - the ISO string
446
- * @param {Object} opts - options to affect the creation
447
- * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the time to this zone
448
- * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one
449
- * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance
450
- * @param {string} [opts.outputCalendar] - the output calendar to set on the resulting DateTime instance
451
- * @param {string} [opts.numberingSystem] - the numbering system to set on the resulting DateTime instance
452
- * @param {string} [opts.weekSettings] - the week settings to set on the resulting DateTime instance
453
- * @example DateTime.fromISO('2016-05-25T09:08:34.123')
454
- * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00')
455
- * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00', {setZone: true})
456
- * @example DateTime.fromISO('2016-05-25T09:08:34.123', {zone: 'utc'})
457
- * @example DateTime.fromISO('2016-W05-4')
458
- * @return {DateTime}
459
- */
460
- static fromISO(e, t = {}) {
461
- const [i, r] = _e(e);
462
- return g(i, r, t, "ISO 8601", e);
463
- }
464
- /**
465
- * Create a DateTime from an RFC 2822 string
466
- * @param {string} text - the RFC 2822 string
467
- * @param {Object} opts - options to affect the creation
468
- * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since the offset is always specified in the string itself, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.
469
- * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one
470
- * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance
471
- * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
472
- * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance
473
- * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance
474
- * @example DateTime.fromRFC2822('25 Nov 2016 13:23:12 GMT')
475
- * @example DateTime.fromRFC2822('Fri, 25 Nov 2016 13:23:12 +0600')
476
- * @example DateTime.fromRFC2822('25 Nov 2016 13:23 Z')
477
- * @return {DateTime}
478
- */
479
- static fromRFC2822(e, t = {}) {
480
- const [i, r] = pe(e);
481
- return g(i, r, t, "RFC 2822", e);
482
- }
483
- /**
484
- * Create a DateTime from an HTTP header date
485
- * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1
486
- * @param {string} text - the HTTP header date
487
- * @param {Object} opts - options to affect the creation
488
- * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since HTTP dates are always in UTC, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.
489
- * @param {boolean} [opts.setZone=false] - override the zone with the fixed-offset zone specified in the string. For HTTP dates, this is always UTC, so this option is equivalent to setting the `zone` option to 'utc', but this option is included for consistency with similar methods.
490
- * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance
491
- * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
492
- * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance
493
- * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance
494
- * @example DateTime.fromHTTP('Sun, 06 Nov 1994 08:49:37 GMT')
495
- * @example DateTime.fromHTTP('Sunday, 06-Nov-94 08:49:37 GMT')
496
- * @example DateTime.fromHTTP('Sun Nov 6 08:49:37 1994')
497
- * @return {DateTime}
498
- */
499
- static fromHTTP(e, t = {}) {
500
- const [i, r] = Ve(e);
501
- return g(i, r, t, "HTTP", t);
502
- }
503
- /**
504
- * Create a DateTime from an input string and format string.
505
- * Defaults to en-US if no locale has been specified, regardless of the system's locale. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/parsing?id=table-of-tokens).
506
- * @param {string} text - the string to parse
507
- * @param {string} fmt - the format the string is expected to be in (see the link below for the formats)
508
- * @param {Object} opts - options to affect the creation
509
- * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone
510
- * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one
511
- * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale
512
- * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system
513
- * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance
514
- * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
515
- * @return {DateTime}
516
- */
517
- static fromFormat(e, t, i = {}) {
518
- if (f(e) || f(t))
519
- throw new w("fromFormat requires an input string and a format");
520
- const { locale: r = null, numberingSystem: a = null } = i, s = y.fromOpts({
521
- locale: r,
522
- numberingSystem: a,
523
- defaultToEN: !0
524
- }), [o, u, c, d] = Fe(s, e, t);
525
- return d ? l.invalid(d) : g(o, u, i, `format ${t}`, e, c);
526
48
  }
527
49
  /**
528
- * @deprecated use fromFormat instead
50
+ * Create an Interval from a start DateTime and a Duration to extend to.
51
+ * @param {DateTime|Date|Object} start
52
+ * @param {Duration|Object|number} duration - the length of the Interval.
53
+ * @return {Interval}
529
54
  */
530
- static fromString(e, t, i = {}) {
531
- return l.fromFormat(e, t, i);
55
+ static after(t, i) {
56
+ const e = h.fromDurationLike(i), s = f(t);
57
+ return a.fromDateTimes(s, s.plus(e));
532
58
  }
533
59
  /**
534
- * Create a DateTime from a SQL date, time, or datetime
535
- * Defaults to en-US if no locale has been specified, regardless of the system's locale
536
- * @param {string} text - the string to parse
537
- * @param {Object} opts - options to affect the creation
538
- * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone
539
- * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one
540
- * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale
541
- * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system
542
- * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance
543
- * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
544
- * @example DateTime.fromSQL('2017-05-15')
545
- * @example DateTime.fromSQL('2017-05-15 09:12:34')
546
- * @example DateTime.fromSQL('2017-05-15 09:12:34.342')
547
- * @example DateTime.fromSQL('2017-05-15 09:12:34.342+06:00')
548
- * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles')
549
- * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles', { setZone: true })
550
- * @example DateTime.fromSQL('2017-05-15 09:12:34.342', { zone: 'America/Los_Angeles' })
551
- * @example DateTime.fromSQL('09:12:34.342')
552
- * @return {DateTime}
60
+ * Create an Interval from an end DateTime and a Duration to extend backwards to.
61
+ * @param {DateTime|Date|Object} end
62
+ * @param {Duration|Object|number} duration - the length of the Interval.
63
+ * @return {Interval}
553
64
  */
554
- static fromSQL(e, t = {}) {
555
- const [i, r] = We(e);
556
- return g(i, r, t, "SQL", e);
65
+ static before(t, i) {
66
+ const e = h.fromDurationLike(i), s = f(t);
67
+ return a.fromDateTimes(s.minus(e), s);
557
68
  }
558
69
  /**
559
- * Create an invalid DateTime.
560
- * @param {string} reason - simple string of why this DateTime is invalid. Should not contain parameters or anything else data-dependent.
561
- * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information
562
- * @return {DateTime}
70
+ * Create an Interval from an ISO 8601 string.
71
+ * Accepts `<start>/<end>`, `<start>/<duration>`, and `<duration>/<end>` formats.
72
+ * @param {string} text - the ISO string to parse
73
+ * @param {Object} [opts] - options to pass {@link DateTime#fromISO} and optionally {@link Duration#fromISO}
74
+ * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
75
+ * @return {Interval}
563
76
  */
564
- static invalid(e, t = null) {
565
- if (!e)
566
- throw new w("need to specify a reason the DateTime is invalid");
567
- const i = e instanceof N ? e : new N(e, t);
568
- if (T.throwOnInvalid)
569
- throw new ot(i);
570
- return new l({ invalid: i });
77
+ static fromISO(t, i) {
78
+ const [e, s] = (t || "").split("/", 2);
79
+ if (e && s) {
80
+ let r, n;
81
+ try {
82
+ r = c.fromISO(e, i), n = r.isValid;
83
+ } catch {
84
+ n = !1;
85
+ }
86
+ let u, l;
87
+ try {
88
+ u = c.fromISO(s, i), l = u.isValid;
89
+ } catch {
90
+ l = !1;
91
+ }
92
+ if (n && l)
93
+ return a.fromDateTimes(r, u);
94
+ if (n) {
95
+ const o = h.fromISO(s, i);
96
+ if (o.isValid)
97
+ return a.after(r, o);
98
+ } else if (l) {
99
+ const o = h.fromISO(e, i);
100
+ if (o.isValid)
101
+ return a.before(u, o);
102
+ }
103
+ }
104
+ return a.invalid("unparsable", `the input "${t}" can't be parsed as ISO 8601`);
571
105
  }
572
106
  /**
573
- * Check if an object is an instance of DateTime. Works across context boundaries
107
+ * Check if an object is an Interval. Works across context boundaries
574
108
  * @param {object} o
575
109
  * @return {boolean}
576
110
  */
577
- static isDateTime(e) {
578
- return e && e.isLuxonDateTime || !1;
111
+ static isInterval(t) {
112
+ return t && t.isLuxonInterval || !1;
579
113
  }
580
114
  /**
581
- * Produce the format string for a set of options
582
- * @param formatOpts
583
- * @param localeOpts
584
- * @returns {string}
115
+ * Returns the start of the Interval
116
+ * @type {DateTime}
585
117
  */
586
- static parseFormatForOpts(e, t = {}) {
587
- const i = Le(e, y.fromObject(t));
588
- return i ? i.map((r) => r ? r.val : null).join("") : null;
118
+ get start() {
119
+ return this.isValid ? this.s : null;
589
120
  }
590
121
  /**
591
- * Produce the the fully expanded format token for the locale
592
- * Does NOT quote characters, so quoted tokens will not round trip correctly
593
- * @param fmt
594
- * @param localeOpts
595
- * @returns {string}
122
+ * Returns the end of the Interval
123
+ * @type {DateTime}
596
124
  */
597
- static expandFormat(e, t = {}) {
598
- return ze(O.parseFormat(e), y.fromObject(t)).map((r) => r.val).join("");
599
- }
600
- static resetCache() {
601
- _ = void 0, $.clear();
125
+ get end() {
126
+ return this.isValid ? this.e : null;
602
127
  }
603
- // INFO
604
128
  /**
605
- * Get the value of unit.
606
- * @param {string} unit - a unit such as 'minute' or 'day'
607
- * @example DateTime.local(2017, 7, 4).get('month'); //=> 7
608
- * @example DateTime.local(2017, 7, 4).get('day'); //=> 4
609
- * @return {number}
129
+ * Returns the last DateTime included in the interval (since end is not part of the interval)
130
+ * @type {DateTime}
610
131
  */
611
- get(e) {
612
- return this[e];
132
+ get lastDateTime() {
133
+ return this.isValid && this.e ? this.e.minus(1) : null;
613
134
  }
614
135
  /**
615
- * Returns whether the DateTime is valid. Invalid DateTimes occur when:
616
- * * The DateTime was created from invalid calendar information, such as the 13th month or February 30
617
- * * The DateTime was created by an operation on another invalid date
136
+ * Returns whether this Interval's end is at least its start, meaning that the Interval isn't 'backwards'.
618
137
  * @type {boolean}
619
138
  */
620
139
  get isValid() {
621
- return this.invalid === null;
140
+ return this.invalidReason === null;
622
141
  }
623
142
  /**
624
- * Returns an error code if this DateTime is invalid, or null if the DateTime is valid
143
+ * Returns an error code if this Interval is invalid, or null if the Interval is valid
625
144
  * @type {string}
626
145
  */
627
146
  get invalidReason() {
628
147
  return this.invalid ? this.invalid.reason : null;
629
148
  }
630
149
  /**
631
- * Returns an explanation of why this DateTime became invalid, or null if the DateTime is valid
150
+ * Returns an explanation of why this Interval became invalid, or null if the Interval is valid
632
151
  * @type {string}
633
152
  */
634
153
  get invalidExplanation() {
635
154
  return this.invalid ? this.invalid.explanation : null;
636
155
  }
637
156
  /**
638
- * Get the locale of a DateTime, such 'en-GB'. The locale is used when formatting the DateTime
639
- *
640
- * @type {string}
641
- */
642
- get locale() {
643
- return this.isValid ? this.loc.locale : null;
644
- }
645
- /**
646
- * Get the numbering system of a DateTime, such 'beng'. The numbering system is used when formatting the DateTime
647
- *
648
- * @type {string}
649
- */
650
- get numberingSystem() {
651
- return this.isValid ? this.loc.numberingSystem : null;
652
- }
653
- /**
654
- * Get the output calendar of a DateTime, such 'islamic'. The output calendar is used when formatting the DateTime
655
- *
656
- * @type {string}
657
- */
658
- get outputCalendar() {
659
- return this.isValid ? this.loc.outputCalendar : null;
660
- }
661
- /**
662
- * Get the time zone associated with this DateTime.
663
- * @type {Zone}
664
- */
665
- get zone() {
666
- return this._zone;
667
- }
668
- /**
669
- * Get the name of the time zone.
670
- * @type {string}
671
- */
672
- get zoneName() {
673
- return this.isValid ? this.zone.name : null;
674
- }
675
- /**
676
- * Get the year
677
- * @example DateTime.local(2017, 5, 25).year //=> 2017
678
- * @type {number}
679
- */
680
- get year() {
681
- return this.isValid ? this.c.year : NaN;
682
- }
683
- /**
684
- * Get the quarter
685
- * @example DateTime.local(2017, 5, 25).quarter //=> 2
686
- * @type {number}
687
- */
688
- get quarter() {
689
- return this.isValid ? Math.ceil(this.c.month / 3) : NaN;
690
- }
691
- /**
692
- * Get the month (1-12).
693
- * @example DateTime.local(2017, 5, 25).month //=> 5
694
- * @type {number}
695
- */
696
- get month() {
697
- return this.isValid ? this.c.month : NaN;
698
- }
699
- /**
700
- * Get the day of the month (1-30ish).
701
- * @example DateTime.local(2017, 5, 25).day //=> 25
702
- * @type {number}
703
- */
704
- get day() {
705
- return this.isValid ? this.c.day : NaN;
706
- }
707
- /**
708
- * Get the hour of the day (0-23).
709
- * @example DateTime.local(2017, 5, 25, 9).hour //=> 9
710
- * @type {number}
711
- */
712
- get hour() {
713
- return this.isValid ? this.c.hour : NaN;
714
- }
715
- /**
716
- * Get the minute of the hour (0-59).
717
- * @example DateTime.local(2017, 5, 25, 9, 30).minute //=> 30
718
- * @type {number}
719
- */
720
- get minute() {
721
- return this.isValid ? this.c.minute : NaN;
722
- }
723
- /**
724
- * Get the second of the minute (0-59).
725
- * @example DateTime.local(2017, 5, 25, 9, 30, 52).second //=> 52
726
- * @type {number}
727
- */
728
- get second() {
729
- return this.isValid ? this.c.second : NaN;
730
- }
731
- /**
732
- * Get the millisecond of the second (0-999).
733
- * @example DateTime.local(2017, 5, 25, 9, 30, 52, 654).millisecond //=> 654
734
- * @type {number}
735
- */
736
- get millisecond() {
737
- return this.isValid ? this.c.millisecond : NaN;
738
- }
739
- /**
740
- * Get the week year
741
- * @see https://en.wikipedia.org/wiki/ISO_week_date
742
- * @example DateTime.local(2014, 12, 31).weekYear //=> 2015
743
- * @type {number}
744
- */
745
- get weekYear() {
746
- return this.isValid ? j(this).weekYear : NaN;
747
- }
748
- /**
749
- * Get the week number of the week year (1-52ish).
750
- * @see https://en.wikipedia.org/wiki/ISO_week_date
751
- * @example DateTime.local(2017, 5, 25).weekNumber //=> 21
752
- * @type {number}
753
- */
754
- get weekNumber() {
755
- return this.isValid ? j(this).weekNumber : NaN;
756
- }
757
- /**
758
- * Get the day of the week.
759
- * 1 is Monday and 7 is Sunday
760
- * @see https://en.wikipedia.org/wiki/ISO_week_date
761
- * @example DateTime.local(2014, 11, 31).weekday //=> 4
762
- * @type {number}
763
- */
764
- get weekday() {
765
- return this.isValid ? j(this).weekday : NaN;
766
- }
767
- /**
768
- * Returns true if this date is on a weekend according to the locale, false otherwise
769
- * @returns {boolean}
770
- */
771
- get isWeekend() {
772
- return this.isValid && this.loc.getWeekendDays().includes(this.weekday);
773
- }
774
- /**
775
- * Get the day of the week according to the locale.
776
- * 1 is the first day of the week and 7 is the last day of the week.
777
- * If the locale assigns Sunday as the first day of the week, then a date which is a Sunday will return 1,
778
- * @returns {number}
779
- */
780
- get localWeekday() {
781
- return this.isValid ? q(this).weekday : NaN;
782
- }
783
- /**
784
- * Get the week number of the week year according to the locale. Different locales assign week numbers differently,
785
- * because the week can start on different days of the week (see localWeekday) and because a different number of days
786
- * is required for a week to count as the first week of a year.
787
- * @returns {number}
788
- */
789
- get localWeekNumber() {
790
- return this.isValid ? q(this).weekNumber : NaN;
791
- }
792
- /**
793
- * Get the week year according to the locale. Different locales assign week numbers (and therefor week years)
794
- * differently, see localWeekNumber.
795
- * @returns {number}
796
- */
797
- get localWeekYear() {
798
- return this.isValid ? q(this).weekYear : NaN;
799
- }
800
- /**
801
- * Get the ordinal (meaning the day of the year)
802
- * @example DateTime.local(2017, 5, 25).ordinal //=> 145
803
- * @type {number|DateTime}
804
- */
805
- get ordinal() {
806
- return this.isValid ? Y(this.c).ordinal : NaN;
807
- }
808
- /**
809
- * Get the human readable short month name, such as 'Oct'.
810
- * Defaults to the system's locale if no locale has been specified
811
- * @example DateTime.local(2017, 10, 30).monthShort //=> Oct
812
- * @type {string}
813
- */
814
- get monthShort() {
815
- return this.isValid ? F.months("short", { locObj: this.loc })[this.month - 1] : null;
816
- }
817
- /**
818
- * Get the human readable long month name, such as 'October'.
819
- * Defaults to the system's locale if no locale has been specified
820
- * @example DateTime.local(2017, 10, 30).monthLong //=> October
821
- * @type {string}
822
- */
823
- get monthLong() {
824
- return this.isValid ? F.months("long", { locObj: this.loc })[this.month - 1] : null;
825
- }
826
- /**
827
- * Get the human readable short weekday, such as 'Mon'.
828
- * Defaults to the system's locale if no locale has been specified
829
- * @example DateTime.local(2017, 10, 30).weekdayShort //=> Mon
830
- * @type {string}
831
- */
832
- get weekdayShort() {
833
- return this.isValid ? F.weekdays("short", { locObj: this.loc })[this.weekday - 1] : null;
834
- }
835
- /**
836
- * Get the human readable long weekday, such as 'Monday'.
837
- * Defaults to the system's locale if no locale has been specified
838
- * @example DateTime.local(2017, 10, 30).weekdayLong //=> Monday
839
- * @type {string}
840
- */
841
- get weekdayLong() {
842
- return this.isValid ? F.weekdays("long", { locObj: this.loc })[this.weekday - 1] : null;
843
- }
844
- /**
845
- * Get the UTC offset of this DateTime in minutes
846
- * @example DateTime.now().offset //=> -240
847
- * @example DateTime.utc().offset //=> 0
848
- * @type {number}
849
- */
850
- get offset() {
851
- return this.isValid ? +this.o : NaN;
852
- }
853
- /**
854
- * Get the short human name for the zone's current offset, for example "EST" or "EDT".
855
- * Defaults to the system's locale if no locale has been specified
856
- * @type {string}
857
- */
858
- get offsetNameShort() {
859
- return this.isValid ? this.zone.offsetName(this.ts, {
860
- format: "short",
861
- locale: this.locale
862
- }) : null;
863
- }
864
- /**
865
- * Get the long human name for the zone's current offset, for example "Eastern Standard Time" or "Eastern Daylight Time".
866
- * Defaults to the system's locale if no locale has been specified
867
- * @type {string}
868
- */
869
- get offsetNameLong() {
870
- return this.isValid ? this.zone.offsetName(this.ts, {
871
- format: "long",
872
- locale: this.locale
873
- }) : null;
874
- }
875
- /**
876
- * Get whether this zone's offset ever changes, as in a DST.
877
- * @type {boolean}
878
- */
879
- get isOffsetFixed() {
880
- return this.isValid ? this.zone.isUniversal : null;
881
- }
882
- /**
883
- * Get whether the DateTime is in a DST.
884
- * @type {boolean}
157
+ * Returns the length of the Interval in the specified unit.
158
+ * @param {string} unit - the unit (such as 'hours' or 'days') to return the length in.
159
+ * @return {number}
885
160
  */
886
- get isInDST() {
887
- return this.isOffsetFixed ? !1 : this.offset > this.set({ month: 1, day: 1 }).offset || this.offset > this.set({ month: 5 }).offset;
161
+ length(t = "milliseconds") {
162
+ return this.isValid ? this.toDuration(t).get(t) : NaN;
888
163
  }
889
164
  /**
890
- * Get those DateTimes which have the same local time as this DateTime, but a different offset from UTC
891
- * in this DateTime's zone. During DST changes local time can be ambiguous, for example
892
- * `2023-10-29T02:30:00` in `Europe/Berlin` can have offset `+01:00` or `+02:00`.
893
- * This method will return both possible DateTimes if this DateTime's local time is ambiguous.
894
- * @returns {DateTime[]}
165
+ * Returns the count of minutes, hours, days, months, or years included in the Interval, even in part.
166
+ * Unlike {@link Interval#length} this counts sections of the calendar, not periods of time, e.g. specifying 'day'
167
+ * asks 'what dates are included in this interval?', not 'how many days long is this interval?'
168
+ * @param {string} [unit='milliseconds'] - the unit of time to count.
169
+ * @param {Object} opts - options
170
+ * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week; this operation will always use the locale of the start DateTime
171
+ * @return {number}
895
172
  */
896
- getPossibleOffsets() {
897
- if (!this.isValid || this.isOffsetFixed)
898
- return [this];
899
- const e = 864e5, t = 6e4, i = P(this.c), r = this.zone.offset(i - e), a = this.zone.offset(i + e), s = this.zone.offset(i - r * t), o = this.zone.offset(i - a * t);
900
- if (s === o)
901
- return [this];
902
- const u = i - s * t, c = i - o * t, d = z(u, s), h = z(c, o);
903
- return d.hour === h.hour && d.minute === h.minute && d.second === h.second && d.millisecond === h.millisecond ? [k(this, { ts: u }), k(this, { ts: c })] : [this];
173
+ count(t = "milliseconds", i) {
174
+ if (!this.isValid) return NaN;
175
+ const e = this.start.startOf(t, i);
176
+ let s;
177
+ return i != null && i.useLocaleWeeks ? s = this.end.reconfigure({ locale: e.locale }) : s = this.end, s = s.startOf(t, i), Math.floor(s.diff(e, t).get(t)) + (s.valueOf() !== this.end.valueOf());
904
178
  }
905
179
  /**
906
- * Returns true if this DateTime is in a leap year, false otherwise
907
- * @example DateTime.local(2016).isInLeapYear //=> true
908
- * @example DateTime.local(2013).isInLeapYear //=> false
909
- * @type {boolean}
180
+ * Returns whether this Interval's start and end are both in the same unit of time
181
+ * @param {string} unit - the unit of time to check sameness on
182
+ * @return {boolean}
910
183
  */
911
- get isInLeapYear() {
912
- return Ie(this.year);
184
+ hasSame(t) {
185
+ return this.isValid ? this.isEmpty() || this.e.minus(1).hasSame(this.s, t) : !1;
913
186
  }
914
187
  /**
915
- * Returns the number of days in this DateTime's month
916
- * @example DateTime.local(2016, 2).daysInMonth //=> 29
917
- * @example DateTime.local(2016, 3).daysInMonth //=> 31
918
- * @type {number}
188
+ * Return whether this Interval has the same start and end DateTimes.
189
+ * @return {boolean}
919
190
  */
920
- get daysInMonth() {
921
- return R(this.year, this.month);
191
+ isEmpty() {
192
+ return this.s.valueOf() === this.e.valueOf();
922
193
  }
923
194
  /**
924
- * Returns the number of days in this DateTime's year
925
- * @example DateTime.local(2016).daysInYear //=> 366
926
- * @example DateTime.local(2013).daysInYear //=> 365
927
- * @type {number}
195
+ * Return whether this Interval's start is after the specified DateTime.
196
+ * @param {DateTime} dateTime
197
+ * @return {boolean}
928
198
  */
929
- get daysInYear() {
930
- return this.isValid ? De(this.year) : NaN;
199
+ isAfter(t) {
200
+ return this.isValid ? this.s > t : !1;
931
201
  }
932
202
  /**
933
- * Returns the number of weeks in this DateTime's year
934
- * @see https://en.wikipedia.org/wiki/ISO_week_date
935
- * @example DateTime.local(2004).weeksInWeekYear //=> 53
936
- * @example DateTime.local(2013).weeksInWeekYear //=> 52
937
- * @type {number}
203
+ * Return whether this Interval's end is before the specified DateTime.
204
+ * @param {DateTime} dateTime
205
+ * @return {boolean}
938
206
  */
939
- get weeksInWeekYear() {
940
- return this.isValid ? ee(this.weekYear) : NaN;
207
+ isBefore(t) {
208
+ return this.isValid ? this.e <= t : !1;
941
209
  }
942
210
  /**
943
- * Returns the number of weeks in this DateTime's local week year
944
- * @example DateTime.local(2020, 6, {locale: 'en-US'}).weeksInLocalWeekYear //=> 52
945
- * @example DateTime.local(2020, 6, {locale: 'de-DE'}).weeksInLocalWeekYear //=> 53
946
- * @type {number}
211
+ * Return whether this Interval contains the specified DateTime.
212
+ * @param {DateTime} dateTime
213
+ * @return {boolean}
947
214
  */
948
- get weeksInLocalWeekYear() {
949
- return this.isValid ? ee(
950
- this.localWeekYear,
951
- this.loc.getMinDaysInFirstWeek(),
952
- this.loc.getStartOfWeek()
953
- ) : NaN;
215
+ contains(t) {
216
+ return this.isValid ? this.s <= t && this.e > t : !1;
954
217
  }
955
218
  /**
956
- * Returns the resolved Intl options for this DateTime.
957
- * This is useful in understanding the behavior of formatting methods
958
- * @param {Object} opts - the same options as toLocaleString
959
- * @return {Object}
219
+ * "Sets" the start and/or end dates. Returns a newly-constructed Interval.
220
+ * @param {Object} values - the values to set
221
+ * @param {DateTime} values.start - the starting DateTime
222
+ * @param {DateTime} values.end - the ending DateTime
223
+ * @return {Interval}
960
224
  */
961
- resolvedLocaleOptions(e = {}) {
962
- const { locale: t, numberingSystem: i, calendar: r } = O.create(
963
- this.loc.clone(e),
964
- e
965
- ).resolvedOptions(this);
966
- return { locale: t, numberingSystem: i, outputCalendar: r };
225
+ set({ start: t, end: i } = {}) {
226
+ return this.isValid ? a.fromDateTimes(t || this.s, i || this.e) : this;
967
227
  }
968
- // TRANSFORM
969
228
  /**
970
- * "Set" the DateTime's zone to UTC. Returns a newly-constructed DateTime.
971
- *
972
- * Equivalent to {@link DateTime#setZone}('utc')
973
- * @param {number} [offset=0] - optionally, an offset from UTC in minutes
974
- * @param {Object} [opts={}] - options to pass to `setZone()`
975
- * @return {DateTime}
229
+ * Split this Interval at each of the specified DateTimes
230
+ * @param {...DateTime} dateTimes - the unit of time to count.
231
+ * @return {Array}
976
232
  */
977
- toUTC(e = 0, t = {}) {
978
- return this.setZone(B.instance(e), t);
233
+ splitAt(...t) {
234
+ if (!this.isValid) return [];
235
+ const i = t.map(f).filter((n) => this.contains(n)).sort((n, u) => n.toMillis() - u.toMillis()), e = [];
236
+ let { s } = this, r = 0;
237
+ for (; s < this.e; ) {
238
+ const n = i[r] || this.e, u = +n > +this.e ? this.e : n;
239
+ e.push(a.fromDateTimes(s, u)), s = u, r += 1;
240
+ }
241
+ return e;
242
+ }
243
+ /**
244
+ * Split this Interval into smaller Intervals, each of the specified length.
245
+ * Left over time is grouped into a smaller interval
246
+ * @param {Duration|Object|number} duration - The length of each resulting interval.
247
+ * @return {Array}
248
+ */
249
+ splitBy(t) {
250
+ const i = h.fromDurationLike(t);
251
+ if (!this.isValid || !i.isValid || i.as("milliseconds") === 0)
252
+ return [];
253
+ let { s: e } = this, s = 1, r;
254
+ const n = [];
255
+ for (; e < this.e; ) {
256
+ const u = this.start.plus(i.mapUnits((l) => l * s));
257
+ r = +u > +this.e ? this.e : u, n.push(a.fromDateTimes(e, r)), e = r, s += 1;
258
+ }
259
+ return n;
979
260
  }
980
261
  /**
981
- * "Set" the DateTime's zone to the host's local zone. Returns a newly-constructed DateTime.
982
- *
983
- * Equivalent to `setZone('local')`
984
- * @return {DateTime}
262
+ * Split this Interval into the specified number of smaller intervals.
263
+ * @param {number} numberOfParts - The number of Intervals to divide the Interval into.
264
+ * @return {Array}
985
265
  */
986
- toLocal() {
987
- return this.setZone(T.defaultZone);
266
+ divideEqually(t) {
267
+ return this.isValid ? this.splitBy(this.length() / t).slice(0, t) : [];
988
268
  }
989
269
  /**
990
- * "Set" the DateTime's zone to specified zone. Returns a newly-constructed DateTime.
991
- *
992
- * By default, the setter keeps the underlying time the same (as in, the same timestamp), but the new instance will report different local times and consider DSTs when making computations, as with {@link DateTime#plus}. You may wish to use {@link DateTime#toLocal} and {@link DateTime#toUTC} which provide simple convenience wrappers for commonly used zones.
993
- * @param {string|Zone} [zone='local'] - a zone identifier. As a string, that can be any IANA zone supported by the host environment, or a fixed-offset name of the form 'UTC+3', or the strings 'local' or 'utc'. You may also supply an instance of a {@link DateTime#Zone} class.
994
- * @param {Object} opts - options
995
- * @param {boolean} [opts.keepLocalTime=false] - If true, adjust the underlying time so that the local time stays the same, but in the target zone. You should rarely need this.
996
- * @return {DateTime}
270
+ * Return whether this Interval overlaps with the specified Interval
271
+ * @param {Interval} other
272
+ * @return {boolean}
997
273
  */
998
- setZone(e, { keepLocalTime: t = !1, keepCalendarTime: i = !1 } = {}) {
999
- if (e = S(e, T.defaultZone), e.equals(this.zone))
1000
- return this;
1001
- if (e.isValid) {
1002
- let r = this.ts;
1003
- if (t || i) {
1004
- const a = e.offset(this.ts), s = this.toObject();
1005
- [r] = C(s, a, e);
1006
- }
1007
- return k(this, { ts: r, zone: e });
1008
- } else
1009
- return l.invalid(b(e));
274
+ overlaps(t) {
275
+ return this.e > t.s && this.s < t.e;
1010
276
  }
1011
277
  /**
1012
- * "Set" the locale, numberingSystem, or outputCalendar. Returns a newly-constructed DateTime.
1013
- * @param {Object} properties - the properties to set
1014
- * @example DateTime.local(2017, 5, 25).reconfigure({ locale: 'en-GB' })
1015
- * @return {DateTime}
278
+ * Return whether this Interval's end is adjacent to the specified Interval's start.
279
+ * @param {Interval} other
280
+ * @return {boolean}
1016
281
  */
1017
- reconfigure({ locale: e, numberingSystem: t, outputCalendar: i } = {}) {
1018
- const r = this.loc.clone({ locale: e, numberingSystem: t, outputCalendar: i });
1019
- return k(this, { loc: r });
282
+ abutsStart(t) {
283
+ return this.isValid ? +this.e == +t.s : !1;
1020
284
  }
1021
285
  /**
1022
- * "Set" the locale. Returns a newly-constructed DateTime.
1023
- * Just a convenient alias for reconfigure({ locale })
1024
- * @example DateTime.local(2017, 5, 25).setLocale('en-GB')
1025
- * @return {DateTime}
286
+ * Return whether this Interval's start is adjacent to the specified Interval's end.
287
+ * @param {Interval} other
288
+ * @return {boolean}
1026
289
  */
1027
- setLocale(e) {
1028
- return this.reconfigure({ locale: e });
290
+ abutsEnd(t) {
291
+ return this.isValid ? +t.e == +this.s : !1;
1029
292
  }
1030
293
  /**
1031
- * "Set" the values of specified units. Returns a newly-constructed DateTime.
1032
- * You can only set units with this method; for "setting" metadata, see {@link DateTime#reconfigure} and {@link DateTime#setZone}.
1033
- *
1034
- * This method also supports setting locale-based week units, i.e. `localWeekday`, `localWeekNumber` and `localWeekYear`.
1035
- * They cannot be mixed with ISO-week units like `weekday`.
1036
- * @param {Object} values - a mapping of units to numbers
1037
- * @example dt.set({ year: 2017 })
1038
- * @example dt.set({ hour: 8, minute: 30 })
1039
- * @example dt.set({ weekday: 5 })
1040
- * @example dt.set({ year: 2005, ordinal: 234 })
1041
- * @return {DateTime}
294
+ * Returns true if this Interval fully contains the specified Interval, specifically if the intersect (of this Interval and the other Interval) is equal to the other Interval; false otherwise.
295
+ * @param {Interval} other
296
+ * @return {boolean}
1042
297
  */
1043
- set(e) {
1044
- if (!this.isValid) return this;
1045
- const t = X(e, le), { minDaysInFirstWeek: i, startOfWeek: r } = ne(t, this.loc), a = !f(t.weekYear) || !f(t.weekNumber) || !f(t.weekday), s = !f(t.ordinal), o = !f(t.year), u = !f(t.month) || !f(t.day), c = o || u, d = t.weekYear || t.weekNumber;
1046
- if ((c || s) && d)
1047
- throw new L(
1048
- "Can't mix weekYear/weekNumber units with year/month/day or ordinals"
1049
- );
1050
- if (u && s)
1051
- throw new L("Can't mix ordinal dates with month/day");
1052
- let h;
1053
- a ? h = ie(
1054
- { ...A(this.c, i, r), ...t },
1055
- i,
1056
- r
1057
- ) : f(t.ordinal) ? (h = { ...this.toObject(), ...t }, f(t.day) && (h.day = Math.min(R(h.year, h.month), h.day))) : h = re({ ...Y(this.c), ...t });
1058
- const [p, I] = C(h, this.o, this.zone);
1059
- return k(this, { ts: p, o: I });
298
+ engulfs(t) {
299
+ return this.isValid ? this.s <= t.s && this.e >= t.e : !1;
1060
300
  }
1061
301
  /**
1062
- * Add a period of time to this DateTime and return the resulting DateTime
1063
- *
1064
- * Adding hours, minutes, seconds, or milliseconds increases the timestamp by the right number of milliseconds. Adding days, months, or years shifts the calendar, accounting for DSTs and leap years along the way. Thus, `dt.plus({ hours: 24 })` may result in a different time than `dt.plus({ days: 1 })` if there's a DST shift in between.
1065
- * @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()
1066
- * @example DateTime.now().plus(123) //~> in 123 milliseconds
1067
- * @example DateTime.now().plus({ minutes: 15 }) //~> in 15 minutes
1068
- * @example DateTime.now().plus({ days: 1 }) //~> this time tomorrow
1069
- * @example DateTime.now().plus({ days: -1 }) //~> this time yesterday
1070
- * @example DateTime.now().plus({ hours: 3, minutes: 13 }) //~> in 3 hr, 13 min
1071
- * @example DateTime.now().plus(Duration.fromObject({ hours: 3, minutes: 13 })) //~> in 3 hr, 13 min
1072
- * @return {DateTime}
302
+ * Return whether this Interval has the same start and end as the specified Interval.
303
+ * @param {Interval} other
304
+ * @return {boolean}
1073
305
  */
1074
- plus(e) {
1075
- if (!this.isValid) return this;
1076
- const t = E.fromDurationLike(e);
1077
- return k(this, ae(this, t));
306
+ equals(t) {
307
+ return !this.isValid || !t.isValid ? !1 : this.s.equals(t.s) && this.e.equals(t.e);
1078
308
  }
1079
309
  /**
1080
- * Subtract a period of time to this DateTime and return the resulting DateTime
1081
- * See {@link DateTime#plus}
1082
- * @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()
1083
- @return {DateTime}
310
+ * Return an Interval representing the intersection of this Interval and the specified Interval.
311
+ * Specifically, the resulting Interval has the maximum start time and the minimum end time of the two Intervals.
312
+ * Returns null if the intersection is empty, meaning, the intervals don't intersect.
313
+ * @param {Interval} other
314
+ * @return {Interval}
1084
315
  */
1085
- minus(e) {
316
+ intersection(t) {
1086
317
  if (!this.isValid) return this;
1087
- const t = E.fromDurationLike(e).negate();
1088
- return k(this, ae(this, t));
318
+ const i = this.s > t.s ? this.s : t.s, e = this.e < t.e ? this.e : t.e;
319
+ return i >= e ? null : a.fromDateTimes(i, e);
1089
320
  }
1090
321
  /**
1091
- * "Set" this DateTime to the beginning of a unit of time.
1092
- * @param {string} unit - The unit to go to the beginning of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.
1093
- * @param {Object} opts - options
1094
- * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week
1095
- * @example DateTime.local(2014, 3, 3).startOf('month').toISODate(); //=> '2014-03-01'
1096
- * @example DateTime.local(2014, 3, 3).startOf('year').toISODate(); //=> '2014-01-01'
1097
- * @example DateTime.local(2014, 3, 3).startOf('week').toISODate(); //=> '2014-03-03', weeks always start on Mondays
1098
- * @example DateTime.local(2014, 3, 3, 5, 30).startOf('day').toISOTime(); //=> '00:00.000-05:00'
1099
- * @example DateTime.local(2014, 3, 3, 5, 30).startOf('hour').toISOTime(); //=> '05:00:00.000-05:00'
1100
- * @return {DateTime}
322
+ * Return an Interval representing the union of this Interval and the specified Interval.
323
+ * Specifically, the resulting Interval has the minimum start time and the maximum end time of the two Intervals.
324
+ * @param {Interval} other
325
+ * @return {Interval}
1101
326
  */
1102
- startOf(e, { useLocaleWeeks: t = !1 } = {}) {
327
+ union(t) {
1103
328
  if (!this.isValid) return this;
1104
- const i = {}, r = E.normalizeUnit(e);
1105
- switch (r) {
1106
- case "years":
1107
- i.month = 1;
1108
- // falls through
1109
- case "quarters":
1110
- case "months":
1111
- i.day = 1;
1112
- // falls through
1113
- case "weeks":
1114
- case "days":
1115
- i.hour = 0;
1116
- // falls through
1117
- case "hours":
1118
- i.minute = 0;
1119
- // falls through
1120
- case "minutes":
1121
- i.second = 0;
1122
- // falls through
1123
- case "seconds":
1124
- i.millisecond = 0;
1125
- break;
1126
- }
1127
- if (r === "weeks")
1128
- if (t) {
1129
- const a = this.loc.getStartOfWeek(), { weekday: s } = this;
1130
- s < a && (i.weekNumber = this.weekNumber - 1), i.weekday = a;
1131
- } else
1132
- i.weekday = 1;
1133
- if (r === "quarters") {
1134
- const a = Math.ceil(this.month / 3);
1135
- i.month = (a - 1) * 3 + 1;
1136
- }
1137
- return this.set(i);
1138
- }
1139
- /**
1140
- * "Set" this DateTime to the end (meaning the last millisecond) of a unit of time
1141
- * @param {string} unit - The unit to go to the end of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.
1142
- * @param {Object} opts - options
1143
- * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week
1144
- * @example DateTime.local(2014, 3, 3).endOf('month').toISO(); //=> '2014-03-31T23:59:59.999-05:00'
1145
- * @example DateTime.local(2014, 3, 3).endOf('year').toISO(); //=> '2014-12-31T23:59:59.999-05:00'
1146
- * @example DateTime.local(2014, 3, 3).endOf('week').toISO(); // => '2014-03-09T23:59:59.999-05:00', weeks start on Mondays
1147
- * @example DateTime.local(2014, 3, 3, 5, 30).endOf('day').toISO(); //=> '2014-03-03T23:59:59.999-05:00'
1148
- * @example DateTime.local(2014, 3, 3, 5, 30).endOf('hour').toISO(); //=> '2014-03-03T05:59:59.999-05:00'
1149
- * @return {DateTime}
1150
- */
1151
- endOf(e, t) {
1152
- return this.isValid ? this.plus({ [e]: 1 }).startOf(e, t).minus(1) : this;
1153
- }
1154
- // OUTPUT
1155
- /**
1156
- * Returns a string representation of this DateTime formatted according to the specified format string.
1157
- * **You may not want this.** See {@link DateTime#toLocaleString} for a more flexible formatting tool. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/formatting?id=table-of-tokens).
1158
- * Defaults to en-US if no locale has been specified, regardless of the system's locale.
1159
- * @param {string} fmt - the format string
1160
- * @param {Object} opts - opts to override the configuration options on this DateTime
1161
- * @example DateTime.now().toFormat('yyyy LLL dd') //=> '2017 Apr 22'
1162
- * @example DateTime.now().setLocale('fr').toFormat('yyyy LLL dd') //=> '2017 avr. 22'
1163
- * @example DateTime.now().toFormat('yyyy LLL dd', { locale: "fr" }) //=> '2017 avr. 22'
1164
- * @example DateTime.now().toFormat("HH 'hours and' mm 'minutes'") //=> '20 hours and 55 minutes'
1165
- * @return {string}
1166
- */
1167
- toFormat(e, t = {}) {
1168
- return this.isValid ? O.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this, e) : Z;
329
+ const i = this.s < t.s ? this.s : t.s, e = this.e > t.e ? this.e : t.e;
330
+ return a.fromDateTimes(i, e);
1169
331
  }
1170
332
  /**
1171
- * Returns a localized string representing this date. Accepts the same options as the Intl.DateTimeFormat constructor and any presets defined by Luxon, such as `DateTime.DATE_FULL` or `DateTime.TIME_SIMPLE`.
1172
- * The exact behavior of this method is browser-specific, but in general it will return an appropriate representation
1173
- * of the DateTime in the assigned locale.
1174
- * Defaults to the system's locale if no locale has been specified
1175
- * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat
1176
- * @param formatOpts {Object} - Intl.DateTimeFormat constructor options and configuration options
1177
- * @param {Object} opts - opts to override the configuration options on this DateTime
1178
- * @example DateTime.now().toLocaleString(); //=> 4/20/2017
1179
- * @example DateTime.now().setLocale('en-gb').toLocaleString(); //=> '20/04/2017'
1180
- * @example DateTime.now().toLocaleString(DateTime.DATE_FULL); //=> 'April 20, 2017'
1181
- * @example DateTime.now().toLocaleString(DateTime.DATE_FULL, { locale: 'fr' }); //=> '28 août 2022'
1182
- * @example DateTime.now().toLocaleString(DateTime.TIME_SIMPLE); //=> '11:32 AM'
1183
- * @example DateTime.now().toLocaleString(DateTime.DATETIME_SHORT); //=> '4/20/2017, 11:32 AM'
1184
- * @example DateTime.now().toLocaleString({ weekday: 'long', month: 'long', day: '2-digit' }); //=> 'Thursday, April 20'
1185
- * @example DateTime.now().toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> 'Thu, Apr 20, 11:27 AM'
1186
- * @example DateTime.now().toLocaleString({ hour: '2-digit', minute: '2-digit', hourCycle: 'h23' }); //=> '11:32'
1187
- * @return {string}
1188
- */
1189
- toLocaleString(e = se, t = {}) {
1190
- return this.isValid ? O.create(this.loc.clone(t), e).formatDateTime(this) : Z;
1191
- }
1192
- /**
1193
- * Returns an array of format "parts", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output.
1194
- * Defaults to the system's locale if no locale has been specified
1195
- * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/formatToParts
1196
- * @param opts {Object} - Intl.DateTimeFormat constructor options, same as `toLocaleString`.
1197
- * @example DateTime.now().toLocaleParts(); //=> [
1198
- * //=> { type: 'day', value: '25' },
1199
- * //=> { type: 'literal', value: '/' },
1200
- * //=> { type: 'month', value: '05' },
1201
- * //=> { type: 'literal', value: '/' },
1202
- * //=> { type: 'year', value: '1982' }
1203
- * //=> ]
1204
- */
1205
- toLocaleParts(e = {}) {
1206
- return this.isValid ? O.create(this.loc.clone(e), e).formatDateTimeParts(this) : [];
1207
- }
1208
- /**
1209
- * Returns an ISO 8601-compliant string representation of this DateTime
1210
- * @param {Object} opts - options
1211
- * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0
1212
- * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0
1213
- * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
1214
- * @param {boolean} [opts.extendedZone=false] - add the time zone format extension
1215
- * @param {string} [opts.format='extended'] - choose between the basic and extended format
1216
- * @example DateTime.utc(1983, 5, 25).toISO() //=> '1982-05-25T00:00:00.000Z'
1217
- * @example DateTime.now().toISO() //=> '2017-04-22T20:47:05.335-04:00'
1218
- * @example DateTime.now().toISO({ includeOffset: false }) //=> '2017-04-22T20:47:05.335'
1219
- * @example DateTime.now().toISO({ format: 'basic' }) //=> '20170422T204705.335-0400'
1220
- * @return {string|null}
1221
- */
1222
- toISO({
1223
- format: e = "extended",
1224
- suppressSeconds: t = !1,
1225
- suppressMilliseconds: i = !1,
1226
- includeOffset: r = !0,
1227
- extendedZone: a = !1
1228
- } = {}) {
1229
- if (!this.isValid)
1230
- return null;
1231
- const s = e === "extended";
1232
- let o = G(this, s);
1233
- return o += "T", o += oe(this, s, t, i, r, a), o;
1234
- }
1235
- /**
1236
- * Returns an ISO 8601-compliant string representation of this DateTime's date component
1237
- * @param {Object} opts - options
1238
- * @param {string} [opts.format='extended'] - choose between the basic and extended format
1239
- * @example DateTime.utc(1982, 5, 25).toISODate() //=> '1982-05-25'
1240
- * @example DateTime.utc(1982, 5, 25).toISODate({ format: 'basic' }) //=> '19820525'
1241
- * @return {string|null}
333
+ * Merge an array of Intervals into an equivalent minimal set of Intervals.
334
+ * Combines overlapping and adjacent Intervals.
335
+ * The resulting array will contain the Intervals in ascending order, that is, starting with the earliest Interval
336
+ * and ending with the latest.
337
+ *
338
+ * @param {Array} intervals
339
+ * @return {Array}
1242
340
  */
1243
- toISODate({ format: e = "extended" } = {}) {
1244
- return this.isValid ? G(this, e === "extended") : null;
341
+ static merge(t) {
342
+ const [i, e] = t.sort((s, r) => s.s - r.s).reduce(
343
+ ([s, r], n) => r ? r.overlaps(n) || r.abutsStart(n) ? [s, r.union(n)] : [s.concat([r]), n] : [s, n],
344
+ [[], null]
345
+ );
346
+ return e && i.push(e), i;
1245
347
  }
1246
348
  /**
1247
- * Returns an ISO 8601-compliant string representation of this DateTime's week date
1248
- * @example DateTime.utc(1982, 5, 25).toISOWeekDate() //=> '1982-W21-2'
1249
- * @return {string}
349
+ * Return an array of Intervals representing the spans of time that only appear in one of the specified Intervals.
350
+ * @param {Array} intervals
351
+ * @return {Array}
1250
352
  */
1251
- toISOWeekDate() {
1252
- return H(this, "kkkk-'W'WW-c");
353
+ static xor(t) {
354
+ let i = null, e = 0;
355
+ const s = [], r = t.map((l) => [
356
+ { time: l.s, type: "s" },
357
+ { time: l.e, type: "e" }
358
+ ]), n = Array.prototype.concat(...r), u = n.sort((l, o) => l.time - o.time);
359
+ for (const l of u)
360
+ e += l.type === "s" ? 1 : -1, e === 1 ? i = l.time : (i && +i != +l.time && s.push(a.fromDateTimes(i, l.time)), i = null);
361
+ return a.merge(s);
1253
362
  }
1254
363
  /**
1255
- * Returns an ISO 8601-compliant string representation of this DateTime's time component
1256
- * @param {Object} opts - options
1257
- * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0
1258
- * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0
1259
- * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
1260
- * @param {boolean} [opts.extendedZone=true] - add the time zone format extension
1261
- * @param {boolean} [opts.includePrefix=false] - include the `T` prefix
1262
- * @param {string} [opts.format='extended'] - choose between the basic and extended format
1263
- * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime() //=> '07:34:19.361Z'
1264
- * @example DateTime.utc().set({ hour: 7, minute: 34, seconds: 0, milliseconds: 0 }).toISOTime({ suppressSeconds: true }) //=> '07:34Z'
1265
- * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ format: 'basic' }) //=> '073419.361Z'
1266
- * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ includePrefix: true }) //=> 'T07:34:19.361Z'
1267
- * @return {string}
364
+ * Return an Interval representing the span of time in this Interval that doesn't overlap with any of the specified Intervals.
365
+ * @param {...Interval} intervals
366
+ * @return {Array}
1268
367
  */
1269
- toISOTime({
1270
- suppressMilliseconds: e = !1,
1271
- suppressSeconds: t = !1,
1272
- includeOffset: i = !0,
1273
- includePrefix: r = !1,
1274
- extendedZone: a = !1,
1275
- format: s = "extended"
1276
- } = {}) {
1277
- return this.isValid ? (r ? "T" : "") + oe(
1278
- this,
1279
- s === "extended",
1280
- t,
1281
- e,
1282
- i,
1283
- a
1284
- ) : null;
368
+ difference(...t) {
369
+ return a.xor([this].concat(t)).map((i) => this.intersection(i)).filter((i) => i && !i.isEmpty());
1285
370
  }
1286
371
  /**
1287
- * Returns an RFC 2822-compatible string representation of this DateTime
1288
- * @example DateTime.utc(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 +0000'
1289
- * @example DateTime.local(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 -0400'
372
+ * Returns a string representation of this Interval appropriate for debugging.
1290
373
  * @return {string}
1291
374
  */
1292
- toRFC2822() {
1293
- return H(this, "EEE, dd LLL yyyy HH:mm:ss ZZZ", !1);
375
+ toString() {
376
+ return this.isValid ? `[${this.s.toISO()} ${this.e.toISO()})` : d;
1294
377
  }
1295
378
  /**
1296
- * Returns a string representation of this DateTime appropriate for use in HTTP headers. The output is always expressed in GMT.
1297
- * Specifically, the string conforms to RFC 1123.
1298
- * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1
1299
- * @example DateTime.utc(2014, 7, 13).toHTTP() //=> 'Sun, 13 Jul 2014 00:00:00 GMT'
1300
- * @example DateTime.utc(2014, 7, 13, 19).toHTTP() //=> 'Sun, 13 Jul 2014 19:00:00 GMT'
379
+ * Returns a string representation of this Interval appropriate for the REPL.
1301
380
  * @return {string}
1302
381
  */
1303
- toHTTP() {
1304
- return H(this.toUTC(), "EEE, dd LLL yyyy HH:mm:ss 'GMT'");
1305
- }
1306
- /**
1307
- * Returns a string representation of this DateTime appropriate for use in SQL Date
1308
- * @example DateTime.utc(2014, 7, 13).toSQLDate() //=> '2014-07-13'
1309
- * @return {string|null}
1310
- */
1311
- toSQLDate() {
1312
- return this.isValid ? G(this, !0) : null;
382
+ [Symbol.for("nodejs.util.inspect.custom")]() {
383
+ return this.isValid ? `Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }` : `Interval { Invalid, reason: ${this.invalidReason} }`;
1313
384
  }
1314
385
  /**
1315
- * Returns a string representation of this DateTime appropriate for use in SQL Time
1316
- * @param {Object} opts - options
1317
- * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.
1318
- * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
1319
- * @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'
1320
- * @example DateTime.utc().toSQL() //=> '05:15:16.345'
1321
- * @example DateTime.now().toSQL() //=> '05:15:16.345 -04:00'
1322
- * @example DateTime.now().toSQL({ includeOffset: false }) //=> '05:15:16.345'
1323
- * @example DateTime.now().toSQL({ includeZone: false }) //=> '05:15:16.345 America/New_York'
386
+ * Returns a localized string representing this Interval. Accepts the same options as the
387
+ * Intl.DateTimeFormat constructor and any presets defined by Luxon, such as
388
+ * {@link DateTime.DATE_FULL} or {@link DateTime.TIME_SIMPLE}. The exact behavior of this method
389
+ * is browser-specific, but in general it will return an appropriate representation of the
390
+ * Interval in the assigned locale. Defaults to the system's locale if no locale has been
391
+ * specified.
392
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat
393
+ * @param {Object} [formatOpts=DateTime.DATE_SHORT] - Either a DateTime preset or
394
+ * Intl.DateTimeFormat constructor options.
395
+ * @param {Object} opts - Options to override the configuration of the start DateTime.
396
+ * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(); //=> 11/7/2022 – 11/8/2022
397
+ * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(DateTime.DATE_FULL); //=> November 7 – 8, 2022
398
+ * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(DateTime.DATE_FULL, { locale: 'fr-FR' }); //=> 7–8 novembre 2022
399
+ * @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString(DateTime.TIME_SIMPLE); //=> 6:00 – 8:00 PM
400
+ * @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> Mon, Nov 07, 6:00 – 8:00 p
1324
401
  * @return {string}
1325
402
  */
1326
- toSQLTime({ includeOffset: e = !0, includeZone: t = !1, includeOffsetSpace: i = !0 } = {}) {
1327
- let r = "HH:mm:ss.SSS";
1328
- return (t || e) && (i && (r += " "), t ? r += "z" : e && (r += "ZZ")), H(this, r, !0);
403
+ toLocaleString(t = D, i = {}) {
404
+ return this.isValid ? O.create(this.s.loc.clone(i), t).formatInterval(this) : d;
1329
405
  }
1330
406
  /**
1331
- * Returns a string representation of this DateTime appropriate for use in SQL DateTime
1332
- * @param {Object} opts - options
1333
- * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.
1334
- * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
1335
- * @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'
1336
- * @example DateTime.utc(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 Z'
1337
- * @example DateTime.local(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 -04:00'
1338
- * @example DateTime.local(2014, 7, 13).toSQL({ includeOffset: false }) //=> '2014-07-13 00:00:00.000'
1339
- * @example DateTime.local(2014, 7, 13).toSQL({ includeZone: true }) //=> '2014-07-13 00:00:00.000 America/New_York'
407
+ * Returns an ISO 8601-compliant string representation of this Interval.
408
+ * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
409
+ * @param {Object} opts - The same options as {@link DateTime#toISO}
1340
410
  * @return {string}
1341
411
  */
1342
- toSQL(e = {}) {
1343
- return this.isValid ? `${this.toSQLDate()} ${this.toSQLTime(e)}` : null;
412
+ toISO(t) {
413
+ return this.isValid ? `${this.s.toISO(t)}/${this.e.toISO(t)}` : d;
1344
414
  }
1345
415
  /**
1346
- * Returns a string representation of this DateTime appropriate for debugging
416
+ * Returns an ISO 8601-compliant string representation of date of this Interval.
417
+ * The time components are ignored.
418
+ * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
1347
419
  * @return {string}
1348
420
  */
1349
- toString() {
1350
- return this.isValid ? this.toISO() : Z;
421
+ toISODate() {
422
+ return this.isValid ? `${this.s.toISODate()}/${this.e.toISODate()}` : d;
1351
423
  }
1352
424
  /**
1353
- * Returns a string representation of this DateTime appropriate for the REPL.
425
+ * Returns an ISO 8601-compliant string representation of time of this Interval.
426
+ * The date components are ignored.
427
+ * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
428
+ * @param {Object} opts - The same options as {@link DateTime#toISO}
1354
429
  * @return {string}
1355
430
  */
1356
- [Symbol.for("nodejs.util.inspect.custom")]() {
1357
- return this.isValid ? `DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }` : `DateTime { Invalid, reason: ${this.invalidReason} }`;
1358
- }
1359
- /**
1360
- * Returns the epoch milliseconds of this DateTime. Alias of {@link DateTime#toMillis}
1361
- * @return {number}
1362
- */
1363
- valueOf() {
1364
- return this.toMillis();
1365
- }
1366
- /**
1367
- * Returns the epoch milliseconds of this DateTime.
1368
- * @return {number}
1369
- */
1370
- toMillis() {
1371
- return this.isValid ? this.ts : NaN;
1372
- }
1373
- /**
1374
- * Returns the epoch seconds (including milliseconds in the fractional part) of this DateTime.
1375
- * @return {number}
1376
- */
1377
- toSeconds() {
1378
- return this.isValid ? this.ts / 1e3 : NaN;
1379
- }
1380
- /**
1381
- * Returns the epoch seconds (as a whole number) of this DateTime.
1382
- * @return {number}
1383
- */
1384
- toUnixInteger() {
1385
- return this.isValid ? Math.floor(this.ts / 1e3) : NaN;
431
+ toISOTime(t) {
432
+ return this.isValid ? `${this.s.toISOTime(t)}/${this.e.toISOTime(t)}` : d;
1386
433
  }
1387
434
  /**
1388
- * Returns an ISO 8601 representation of this DateTime appropriate for use in JSON.
435
+ * Returns a string representation of this Interval formatted according to the specified format
436
+ * string. **You may not want this.** See {@link Interval#toLocaleString} for a more flexible
437
+ * formatting tool.
438
+ * @param {string} dateFormat - The format string. This string formats the start and end time.
439
+ * See {@link DateTime#toFormat} for details.
440
+ * @param {Object} opts - Options.
441
+ * @param {string} [opts.separator = ' – '] - A separator to place between the start and end
442
+ * representations.
1389
443
  * @return {string}
1390
444
  */
1391
- toJSON() {
1392
- return this.toISO();
1393
- }
1394
- /**
1395
- * Returns a BSON serializable equivalent to this DateTime.
1396
- * @return {Date}
1397
- */
1398
- toBSON() {
1399
- return this.toJSDate();
1400
- }
1401
- /**
1402
- * Returns a JavaScript object with this DateTime's year, month, day, and so on.
1403
- * @param opts - options for generating the object
1404
- * @param {boolean} [opts.includeConfig=false] - include configuration attributes in the output
1405
- * @example DateTime.now().toObject() //=> { year: 2017, month: 4, day: 22, hour: 20, minute: 49, second: 42, millisecond: 268 }
1406
- * @return {Object}
1407
- */
1408
- toObject(e = {}) {
1409
- if (!this.isValid) return {};
1410
- const t = { ...this.c };
1411
- return e.includeConfig && (t.outputCalendar = this.outputCalendar, t.numberingSystem = this.loc.numberingSystem, t.locale = this.loc.locale), t;
1412
- }
1413
- /**
1414
- * Returns a JavaScript Date equivalent to this DateTime.
1415
- * @return {Date}
1416
- */
1417
- toJSDate() {
1418
- return new Date(this.isValid ? this.ts : NaN);
445
+ toFormat(t, { separator: i = " – " } = {}) {
446
+ return this.isValid ? `${this.s.toFormat(t)}${i}${this.e.toFormat(t)}` : d;
1419
447
  }
1420
- // COMPARE
1421
448
  /**
1422
- * Return the difference between two DateTimes as a Duration.
1423
- * @param {DateTime} otherDateTime - the DateTime to compare this one to
1424
- * @param {string|string[]} [unit=['milliseconds']] - the unit or array of units (such as 'hours' or 'days') to include in the duration.
449
+ * Return a Duration representing the time spanned by this interval.
450
+ * @param {string|string[]} [unit=['milliseconds']] - the unit or units (such as 'hours' or 'days') to include in the duration.
1425
451
  * @param {Object} opts - options that affect the creation of the Duration
1426
452
  * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
1427
- * @example
1428
- * var i1 = DateTime.fromISO('1982-05-25T09:45'),
1429
- * i2 = DateTime.fromISO('1983-10-14T10:30');
1430
- * i2.diff(i1).toObject() //=> { milliseconds: 43807500000 }
1431
- * i2.diff(i1, 'hours').toObject() //=> { hours: 12168.75 }
1432
- * i2.diff(i1, ['months', 'days']).toObject() //=> { months: 16, days: 19.03125 }
1433
- * i2.diff(i1, ['months', 'days', 'hours']).toObject() //=> { months: 16, days: 19, hours: 0.75 }
453
+ * @example Interval.fromDateTimes(dt1, dt2).toDuration().toObject() //=> { milliseconds: 88489257 }
454
+ * @example Interval.fromDateTimes(dt1, dt2).toDuration('days').toObject() //=> { days: 1.0241812152777778 }
455
+ * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes']).toObject() //=> { hours: 24, minutes: 34.82095 }
456
+ * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes', 'seconds']).toObject() //=> { hours: 24, minutes: 34, seconds: 49.257 }
457
+ * @example Interval.fromDateTimes(dt1, dt2).toDuration('seconds').toObject() //=> { seconds: 88489.257 }
1434
458
  * @return {Duration}
1435
459
  */
1436
- diff(e, t = "milliseconds", i = {}) {
1437
- if (!this.isValid || !e.isValid)
1438
- return E.invalid("created by diffing an invalid DateTime");
1439
- const r = { locale: this.locale, numberingSystem: this.numberingSystem, ...i }, a = Me(t).map(E.normalizeUnit), s = e.valueOf() > this.valueOf(), o = s ? this : e, u = s ? e : this, c = be(o, u, a, r);
1440
- return s ? c.negate() : c;
1441
- }
1442
- /**
1443
- * Return the difference between this DateTime and right now.
1444
- * See {@link DateTime#diff}
1445
- * @param {string|string[]} [unit=['milliseconds']] - the unit or units units (such as 'hours' or 'days') to include in the duration
1446
- * @param {Object} opts - options that affect the creation of the Duration
1447
- * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
1448
- * @return {Duration}
1449
- */
1450
- diffNow(e = "milliseconds", t = {}) {
1451
- return this.diff(l.now(), e, t);
1452
- }
1453
- /**
1454
- * Return an Interval spanning between this DateTime and another DateTime
1455
- * @param {DateTime} otherDateTime - the other end point of the Interval
1456
- * @return {Interval|DateTime}
1457
- */
1458
- until(e) {
1459
- return this.isValid ? Se.fromDateTimes(this, e) : this;
1460
- }
1461
- /**
1462
- * Return whether this DateTime is in the same unit of time as another DateTime.
1463
- * Higher-order units must also be identical for this function to return `true`.
1464
- * Note that time zones are **ignored** in this comparison, which compares the **local** calendar time. Use {@link DateTime#setZone} to convert one of the dates if needed.
1465
- * @param {DateTime} otherDateTime - the other DateTime
1466
- * @param {string} unit - the unit of time to check sameness on
1467
- * @param {Object} opts - options
1468
- * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week; only the locale of this DateTime is used
1469
- * @example DateTime.now().hasSame(otherDT, 'day'); //~> true if otherDT is in the same current calendar day
1470
- * @return {boolean}
1471
- */
1472
- hasSame(e, t, i) {
1473
- if (!this.isValid) return !1;
1474
- const r = e.valueOf(), a = this.setZone(e.zone, { keepLocalTime: !0 });
1475
- return a.startOf(t, i) <= r && r <= a.endOf(t, i);
1476
- }
1477
- /**
1478
- * Equality check
1479
- * Two DateTimes are equal if and only if they represent the same millisecond, have the same zone and location, and are both valid.
1480
- * To compare just the millisecond values, use `+dt1 === +dt2`.
1481
- * @param {DateTime} other - the other DateTime
1482
- * @return {boolean}
1483
- */
1484
- equals(e) {
1485
- return this.isValid && e.isValid && this.valueOf() === e.valueOf() && this.zone.equals(e.zone) && this.loc.equals(e.loc);
1486
- }
1487
- /**
1488
- * Returns a string representation of a this time relative to now, such as "in two days". Can only internationalize if your
1489
- * platform supports Intl.RelativeTimeFormat. Rounds down by default.
1490
- * @param {Object} options - options that affect the output
1491
- * @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.
1492
- * @param {string} [options.style="long"] - the style of units, must be "long", "short", or "narrow"
1493
- * @param {string|string[]} options.unit - use a specific unit or array of units; if omitted, or an array, the method will pick the best unit. Use an array or one of "years", "quarters", "months", "weeks", "days", "hours", "minutes", or "seconds"
1494
- * @param {boolean} [options.round=true] - whether to round the numbers in the output.
1495
- * @param {number} [options.padding=0] - padding in milliseconds. This allows you to round up the result if it fits inside the threshold. Don't use in combination with {round: false} because the decimal output will include the padding.
1496
- * @param {string} options.locale - override the locale of this DateTime
1497
- * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this
1498
- * @example DateTime.now().plus({ days: 1 }).toRelative() //=> "in 1 day"
1499
- * @example DateTime.now().setLocale("es").toRelative({ days: 1 }) //=> "dentro de 1 día"
1500
- * @example DateTime.now().plus({ days: 1 }).toRelative({ locale: "fr" }) //=> "dans 23 heures"
1501
- * @example DateTime.now().minus({ days: 2 }).toRelative() //=> "2 days ago"
1502
- * @example DateTime.now().minus({ days: 2 }).toRelative({ unit: "hours" }) //=> "48 hours ago"
1503
- * @example DateTime.now().minus({ hours: 36 }).toRelative({ round: false }) //=> "1.5 days ago"
1504
- */
1505
- toRelative(e = {}) {
1506
- if (!this.isValid) return null;
1507
- const t = e.base || l.fromObject({}, { zone: this.zone }), i = e.padding ? this < t ? -e.padding : e.padding : 0;
1508
- let r = ["years", "months", "days", "hours", "minutes", "seconds"], a = e.unit;
1509
- return Array.isArray(e.unit) && (r = e.unit, a = void 0), ce(t, this.plus(i), {
1510
- ...e,
1511
- numeric: "always",
1512
- units: r,
1513
- unit: a
1514
- });
460
+ toDuration(t, i) {
461
+ return this.isValid ? this.e.diff(this.s, t, i) : h.invalid(this.invalidReason);
1515
462
  }
1516
463
  /**
1517
- * Returns a string representation of this date relative to today, such as "yesterday" or "next month".
1518
- * Only internationalizes on platforms that supports Intl.RelativeTimeFormat.
1519
- * @param {Object} options - options that affect the output
1520
- * @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.
1521
- * @param {string} options.locale - override the locale of this DateTime
1522
- * @param {string} options.unit - use a specific unit; if omitted, the method will pick the unit. Use one of "years", "quarters", "months", "weeks", or "days"
1523
- * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this
1524
- * @example DateTime.now().plus({ days: 1 }).toRelativeCalendar() //=> "tomorrow"
1525
- * @example DateTime.now().setLocale("es").plus({ days: 1 }).toRelative() //=> ""mañana"
1526
- * @example DateTime.now().plus({ days: 1 }).toRelativeCalendar({ locale: "fr" }) //=> "demain"
1527
- * @example DateTime.now().minus({ days: 2 }).toRelativeCalendar() //=> "2 days ago"
464
+ * Run mapFn on the interval start and end, returning a new Interval from the resulting DateTimes
465
+ * @param {function} mapFn
466
+ * @return {Interval}
467
+ * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.toUTC())
468
+ * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.plus({ hours: 2 }))
1528
469
  */
1529
- toRelativeCalendar(e = {}) {
1530
- return this.isValid ? ce(e.base || l.fromObject({}, { zone: this.zone }), this, {
1531
- ...e,
1532
- numeric: "auto",
1533
- units: ["years", "months", "days"],
1534
- calendary: !0
1535
- }) : null;
470
+ mapEndpoints(t) {
471
+ return a.fromDateTimes(t(this.s), t(this.e));
1536
472
  }
1537
- /**
1538
- * Return the min of several date times
1539
- * @param {...DateTime} dateTimes - the DateTimes from which to choose the minimum
1540
- * @return {DateTime} the min DateTime, or undefined if called with no argument
1541
- */
1542
- static min(...e) {
1543
- if (!e.every(l.isDateTime))
1544
- throw new w("min requires all arguments be DateTimes");
1545
- return te(e, (t) => t.valueOf(), Math.min);
1546
- }
1547
- /**
1548
- * Return the max of several date times
1549
- * @param {...DateTime} dateTimes - the DateTimes from which to choose the maximum
1550
- * @return {DateTime} the max DateTime, or undefined if called with no argument
1551
- */
1552
- static max(...e) {
1553
- if (!e.every(l.isDateTime))
1554
- throw new w("max requires all arguments be DateTimes");
1555
- return te(e, (t) => t.valueOf(), Math.max);
1556
- }
1557
- // MISC
1558
- /**
1559
- * Explain how a string would be parsed by fromFormat()
1560
- * @param {string} text - the string to parse
1561
- * @param {string} fmt - the format the string is expected to be in (see description)
1562
- * @param {Object} options - options taken by fromFormat()
1563
- * @return {Object}
1564
- */
1565
- static fromFormatExplain(e, t, i = {}) {
1566
- const { locale: r = null, numberingSystem: a = null } = i, s = y.fromOpts({
1567
- locale: r,
1568
- numberingSystem: a,
1569
- defaultToEN: !0
1570
- });
1571
- return He(s, e, t);
1572
- }
1573
- /**
1574
- * @deprecated use fromFormatExplain instead
1575
- */
1576
- static fromStringExplain(e, t, i = {}) {
1577
- return l.fromFormatExplain(e, t, i);
1578
- }
1579
- /**
1580
- * Build a parser for `fmt` using the given locale. This parser can be passed
1581
- * to {@link DateTime.fromFormatParser} to a parse a date in this format. This
1582
- * can be used to optimize cases where many dates need to be parsed in a
1583
- * specific format.
1584
- *
1585
- * @param {String} fmt - the format the string is expected to be in (see
1586
- * description)
1587
- * @param {Object} options - options used to set locale and numberingSystem
1588
- * for parser
1589
- * @returns {TokenParser} - opaque object to be used
1590
- */
1591
- static buildFormatParser(e, t = {}) {
1592
- const { locale: i = null, numberingSystem: r = null } = t, a = y.fromOpts({
1593
- locale: i,
1594
- numberingSystem: r,
1595
- defaultToEN: !0
1596
- });
1597
- return new Ue(a, e);
1598
- }
1599
- /**
1600
- * Create a DateTime from an input string and format parser.
1601
- *
1602
- * The format parser must have been created with the same locale as this call.
1603
- *
1604
- * @param {String} text - the string to parse
1605
- * @param {TokenParser} formatParser - parser from {@link DateTime.buildFormatParser}
1606
- * @param {Object} opts - options taken by fromFormat()
1607
- * @returns {DateTime}
1608
- */
1609
- static fromFormatParser(e, t, i = {}) {
1610
- if (f(e) || f(t))
1611
- throw new w(
1612
- "fromFormatParser requires an input string and a format parser"
1613
- );
1614
- const { locale: r = null, numberingSystem: a = null } = i, s = y.fromOpts({
1615
- locale: r,
1616
- numberingSystem: a,
1617
- defaultToEN: !0
1618
- });
1619
- if (!s.equals(t.locale))
1620
- throw new w(
1621
- `fromFormatParser called with a locale of ${s}, but the format parser was created for ${t.locale}`
1622
- );
1623
- const { result: o, zone: u, specificOffset: c, invalidReason: d } = t.explainFromTokens(e);
1624
- return d ? l.invalid(d) : g(
1625
- o,
1626
- u,
1627
- i,
1628
- `format ${t.format}`,
1629
- e,
1630
- c
1631
- );
1632
- }
1633
- // FORMAT PRESETS
1634
- /**
1635
- * {@link DateTime#toLocaleString} format like 10/14/1983
1636
- * @type {Object}
1637
- */
1638
- static get DATE_SHORT() {
1639
- return se;
1640
- }
1641
- /**
1642
- * {@link DateTime#toLocaleString} format like 'Oct 14, 1983'
1643
- * @type {Object}
1644
- */
1645
- static get DATE_MED() {
1646
- return xe;
1647
- }
1648
- /**
1649
- * {@link DateTime#toLocaleString} format like 'Fri, Oct 14, 1983'
1650
- * @type {Object}
1651
- */
1652
- static get DATE_MED_WITH_WEEKDAY() {
1653
- return Ye;
1654
- }
1655
- /**
1656
- * {@link DateTime#toLocaleString} format like 'October 14, 1983'
1657
- * @type {Object}
1658
- */
1659
- static get DATE_FULL() {
1660
- return Ze;
1661
- }
1662
- /**
1663
- * {@link DateTime#toLocaleString} format like 'Tuesday, October 14, 1983'
1664
- * @type {Object}
1665
- */
1666
- static get DATE_HUGE() {
1667
- return je;
1668
- }
1669
- /**
1670
- * {@link DateTime#toLocaleString} format like '09:30 AM'. Only 12-hour if the locale is.
1671
- * @type {Object}
1672
- */
1673
- static get TIME_SIMPLE() {
1674
- return qe;
1675
- }
1676
- /**
1677
- * {@link DateTime#toLocaleString} format like '09:30:23 AM'. Only 12-hour if the locale is.
1678
- * @type {Object}
1679
- */
1680
- static get TIME_WITH_SECONDS() {
1681
- return Ge;
1682
- }
1683
- /**
1684
- * {@link DateTime#toLocaleString} format like '09:30:23 AM EDT'. Only 12-hour if the locale is.
1685
- * @type {Object}
1686
- */
1687
- static get TIME_WITH_SHORT_OFFSET() {
1688
- return Re;
1689
- }
1690
- /**
1691
- * {@link DateTime#toLocaleString} format like '09:30:23 AM Eastern Daylight Time'. Only 12-hour if the locale is.
1692
- * @type {Object}
1693
- */
1694
- static get TIME_WITH_LONG_OFFSET() {
1695
- return $e;
1696
- }
1697
- /**
1698
- * {@link DateTime#toLocaleString} format like '09:30', always 24-hour.
1699
- * @type {Object}
1700
- */
1701
- static get TIME_24_SIMPLE() {
1702
- return Pe;
1703
- }
1704
- /**
1705
- * {@link DateTime#toLocaleString} format like '09:30:23', always 24-hour.
1706
- * @type {Object}
1707
- */
1708
- static get TIME_24_WITH_SECONDS() {
1709
- return Qe;
1710
- }
1711
- /**
1712
- * {@link DateTime#toLocaleString} format like '09:30:23 EDT', always 24-hour.
1713
- * @type {Object}
1714
- */
1715
- static get TIME_24_WITH_SHORT_OFFSET() {
1716
- return Je;
1717
- }
1718
- /**
1719
- * {@link DateTime#toLocaleString} format like '09:30:23 Eastern Daylight Time', always 24-hour.
1720
- * @type {Object}
1721
- */
1722
- static get TIME_24_WITH_LONG_OFFSET() {
1723
- return Ke;
1724
- }
1725
- /**
1726
- * {@link DateTime#toLocaleString} format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is.
1727
- * @type {Object}
1728
- */
1729
- static get DATETIME_SHORT() {
1730
- return Be;
1731
- }
1732
- /**
1733
- * {@link DateTime#toLocaleString} format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is.
1734
- * @type {Object}
1735
- */
1736
- static get DATETIME_SHORT_WITH_SECONDS() {
1737
- return Xe;
1738
- }
1739
- /**
1740
- * {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30 AM'. Only 12-hour if the locale is.
1741
- * @type {Object}
1742
- */
1743
- static get DATETIME_MED() {
1744
- return et;
1745
- }
1746
- /**
1747
- * {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30:33 AM'. Only 12-hour if the locale is.
1748
- * @type {Object}
1749
- */
1750
- static get DATETIME_MED_WITH_SECONDS() {
1751
- return tt;
1752
- }
1753
- /**
1754
- * {@link DateTime#toLocaleString} format like 'Fri, 14 Oct 1983, 9:30 AM'. Only 12-hour if the locale is.
1755
- * @type {Object}
1756
- */
1757
- static get DATETIME_MED_WITH_WEEKDAY() {
1758
- return nt;
1759
- }
1760
- /**
1761
- * {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is.
1762
- * @type {Object}
1763
- */
1764
- static get DATETIME_FULL() {
1765
- return it;
1766
- }
1767
- /**
1768
- * {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30:33 AM EDT'. Only 12-hour if the locale is.
1769
- * @type {Object}
1770
- */
1771
- static get DATETIME_FULL_WITH_SECONDS() {
1772
- return rt;
1773
- }
1774
- /**
1775
- * {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30 AM Eastern Daylight Time'. Only 12-hour if the locale is.
1776
- * @type {Object}
1777
- */
1778
- static get DATETIME_HUGE() {
1779
- return st;
1780
- }
1781
- /**
1782
- * {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30:33 AM Eastern Daylight Time'. Only 12-hour if the locale is.
1783
- * @type {Object}
1784
- */
1785
- static get DATETIME_HUGE_WITH_SECONDS() {
1786
- return at;
1787
- }
1788
- }
1789
- function Wt(n) {
1790
- if (l.isDateTime(n))
1791
- return n;
1792
- if (n && n.valueOf && U(n.valueOf()))
1793
- return l.fromJSDate(n);
1794
- if (n && typeof n == "object")
1795
- return l.fromObject(n);
1796
- throw new w(
1797
- `Unknown datetime argument: ${n}, of type ${typeof n}`
1798
- );
1799
473
  }
1800
474
  export {
1801
- l as default,
1802
- Wt as friendlyDateTime
475
+ a as default
1803
476
  };
1804
477
  //# sourceMappingURL=index.es228.js.map