javascript-time-ago 2.3.13 → 2.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1394) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/README.md +27 -1
  3. package/bin/create-commonjs-package-json.js +11 -0
  4. package/bin/generate-load-all-locales.js +38 -6
  5. package/bin/generate-locale-messages.js +106 -21
  6. package/bundle/javascript-time-ago.js +1 -1
  7. package/bundle/javascript-time-ago.js.map +1 -1
  8. package/bundle/javascript-time-ago.min.js +1 -1
  9. package/bundle/javascript-time-ago.min.js.map +1 -1
  10. package/cache/index.cjs +2 -0
  11. package/cache/index.cjs.js +7 -0
  12. package/cache/index.js +1 -1
  13. package/cache/package.json +9 -3
  14. package/commonjs/LocaleDataStore.js +1 -1
  15. package/commonjs/LocaleDataStore.js.map +1 -1
  16. package/commonjs/PropTypes.js +26 -18
  17. package/commonjs/PropTypes.js.map +1 -1
  18. package/commonjs/TimeAgo.js +41 -48
  19. package/commonjs/TimeAgo.js.map +1 -1
  20. package/commonjs/TimeAgo.test.js +70 -70
  21. package/commonjs/TimeAgo.test.js.map +1 -1
  22. package/commonjs/cache.js +10 -14
  23. package/commonjs/cache.js.map +1 -1
  24. package/commonjs/cache.test.js +3 -3
  25. package/commonjs/cache.test.js.map +1 -1
  26. package/commonjs/isStyleObject.js +2 -2
  27. package/commonjs/isStyleObject.js.map +1 -1
  28. package/commonjs/isStyleObject.test.js +11 -11
  29. package/commonjs/isStyleObject.test.js.map +1 -1
  30. package/commonjs/locale.js +11 -16
  31. package/commonjs/locale.js.map +1 -1
  32. package/commonjs/locale.test.js +8 -4
  33. package/commonjs/locale.test.js.map +1 -1
  34. package/commonjs/package.json +5 -0
  35. package/commonjs/round.js +1 -1
  36. package/commonjs/round.js.map +1 -1
  37. package/commonjs/steps/approximate.js +3 -3
  38. package/commonjs/steps/approximate.js.map +1 -1
  39. package/commonjs/steps/approximate.test.js +5 -5
  40. package/commonjs/steps/approximate.test.js.map +1 -1
  41. package/commonjs/steps/getStep.js +10 -8
  42. package/commonjs/steps/getStep.js.map +1 -1
  43. package/commonjs/steps/getStep.test.js +16 -16
  44. package/commonjs/steps/getStep.test.js.map +1 -1
  45. package/commonjs/steps/getStepDenominator.js +2 -2
  46. package/commonjs/steps/getStepDenominator.js.map +1 -1
  47. package/commonjs/steps/getStepDenominator.test.js +4 -4
  48. package/commonjs/steps/getStepDenominator.test.js.map +1 -1
  49. package/commonjs/steps/getStepMinTime.js +5 -5
  50. package/commonjs/steps/getStepMinTime.js.map +1 -1
  51. package/commonjs/steps/getStepMinTime.test.js +4 -4
  52. package/commonjs/steps/getStepMinTime.test.js.map +1 -1
  53. package/commonjs/steps/getTimeToNextUpdate.js +8 -8
  54. package/commonjs/steps/getTimeToNextUpdate.js.map +1 -1
  55. package/commonjs/steps/getTimeToNextUpdate.test.js +18 -14
  56. package/commonjs/steps/getTimeToNextUpdate.test.js.map +1 -1
  57. package/commonjs/steps/getTimeToNextUpdateForUnit.js +3 -3
  58. package/commonjs/steps/getTimeToNextUpdateForUnit.js.map +1 -1
  59. package/commonjs/steps/getTimeToNextUpdateForUnit.test.js +8 -8
  60. package/commonjs/steps/getTimeToNextUpdateForUnit.test.js.map +1 -1
  61. package/commonjs/steps/helpers.js.map +1 -1
  62. package/commonjs/steps/helpers.test.js +1 -1
  63. package/commonjs/steps/helpers.test.js.map +1 -1
  64. package/commonjs/steps/index.js +24 -24
  65. package/commonjs/steps/index.js.map +1 -1
  66. package/commonjs/steps/renameLegacyProperties.js +8 -8
  67. package/commonjs/steps/renameLegacyProperties.js.map +1 -1
  68. package/commonjs/steps/renameLegacyProperties.test.js +6 -6
  69. package/commonjs/steps/renameLegacyProperties.test.js.map +1 -1
  70. package/commonjs/steps/round.js +2 -2
  71. package/commonjs/steps/round.js.map +1 -1
  72. package/commonjs/steps/round.test.js +6 -6
  73. package/commonjs/steps/round.test.js.map +1 -1
  74. package/commonjs/steps/units.js +2 -1
  75. package/commonjs/steps/units.js.map +1 -1
  76. package/commonjs/style/approximate.js +5 -5
  77. package/commonjs/style/approximate.js.map +1 -1
  78. package/commonjs/style/approximateTime.js +5 -5
  79. package/commonjs/style/approximateTime.js.map +1 -1
  80. package/commonjs/style/approximateTime.test.js +13 -18
  81. package/commonjs/style/approximateTime.test.js.map +1 -1
  82. package/commonjs/style/getStyleByName.js +29 -29
  83. package/commonjs/style/getStyleByName.js.map +1 -1
  84. package/commonjs/style/mini.js +2 -2
  85. package/commonjs/style/mini.js.map +1 -1
  86. package/commonjs/style/mini.test.js +62 -60
  87. package/commonjs/style/mini.test.js.map +1 -1
  88. package/commonjs/style/miniMinute.js +9 -7
  89. package/commonjs/style/miniMinute.js.map +1 -1
  90. package/commonjs/style/miniMinute.test.js +30 -28
  91. package/commonjs/style/miniMinute.test.js.map +1 -1
  92. package/commonjs/style/miniMinuteNow.js +9 -7
  93. package/commonjs/style/miniMinuteNow.js.map +1 -1
  94. package/commonjs/style/miniMinuteNow.test.js +30 -28
  95. package/commonjs/style/miniMinuteNow.test.js.map +1 -1
  96. package/commonjs/style/miniNow.js +9 -7
  97. package/commonjs/style/miniNow.js.map +1 -1
  98. package/commonjs/style/miniNow.test.js +30 -28
  99. package/commonjs/style/miniNow.test.js.map +1 -1
  100. package/commonjs/style/renameLegacyProperties.js +7 -5
  101. package/commonjs/style/renameLegacyProperties.js.map +1 -1
  102. package/commonjs/style/renameLegacyProperties.test.js +5 -5
  103. package/commonjs/style/renameLegacyProperties.test.js.map +1 -1
  104. package/commonjs/style/round.js +5 -5
  105. package/commonjs/style/round.js.map +1 -1
  106. package/commonjs/style/round.test.js +66 -60
  107. package/commonjs/style/round.test.js.map +1 -1
  108. package/commonjs/style/roundMinute.js +9 -7
  109. package/commonjs/style/roundMinute.js.map +1 -1
  110. package/commonjs/style/roundMinute.test.js +33 -31
  111. package/commonjs/style/roundMinute.test.js.map +1 -1
  112. package/commonjs/style/twitter.js +18 -18
  113. package/commonjs/style/twitter.js.map +1 -1
  114. package/commonjs/style/twitter.test.js +76 -74
  115. package/commonjs/style/twitter.test.js.map +1 -1
  116. package/commonjs/style/twitterFirstMinute.js +11 -9
  117. package/commonjs/style/twitterFirstMinute.js.map +1 -1
  118. package/commonjs/style/twitterFirstMinute.test.js +35 -33
  119. package/commonjs/style/twitterFirstMinute.test.js.map +1 -1
  120. package/commonjs/style/twitterMinute.js +9 -7
  121. package/commonjs/style/twitterMinute.js.map +1 -1
  122. package/commonjs/style/twitterMinute.test.js +36 -34
  123. package/commonjs/style/twitterMinute.test.js.map +1 -1
  124. package/commonjs/style/twitterMinuteNow.js +9 -7
  125. package/commonjs/style/twitterMinuteNow.js.map +1 -1
  126. package/commonjs/style/twitterMinuteNow.test.js +36 -34
  127. package/commonjs/style/twitterMinuteNow.test.js.map +1 -1
  128. package/commonjs/style/twitterNow.js +9 -7
  129. package/commonjs/style/twitterNow.js.map +1 -1
  130. package/commonjs/style/twitterNow.test.js +35 -33
  131. package/commonjs/style/twitterNow.test.js.map +1 -1
  132. package/gradation/index.cjs +2 -0
  133. package/gradation/index.cjs.js +7 -0
  134. package/gradation/index.js +1 -1
  135. package/gradation/package.json +9 -3
  136. package/index.cjs +9 -0
  137. package/index.cjs.js +14 -0
  138. package/index.d.ts +6 -0
  139. package/index.js +2 -2
  140. package/load-all-locales/index.cjs +281 -0
  141. package/load-all-locales/index.cjs.js +286 -0
  142. package/load-all-locales/index.js +563 -0
  143. package/load-all-locales/package.json +18 -0
  144. package/locale/af/index.cjs +3 -0
  145. package/locale/af/index.cjs.js +3 -0
  146. package/locale/af/index.js +1 -3
  147. package/locale/af/package.json +14 -0
  148. package/locale/am/index.cjs +3 -0
  149. package/locale/am/index.cjs.js +3 -0
  150. package/locale/am/index.js +1 -3
  151. package/locale/am/package.json +14 -0
  152. package/locale/ar/index.cjs +3 -0
  153. package/locale/ar/index.cjs.js +3 -0
  154. package/locale/ar/index.js +1 -3
  155. package/locale/ar/package.json +14 -0
  156. package/locale/ar-AE/index.cjs +3 -0
  157. package/locale/ar-AE/index.cjs.js +3 -0
  158. package/locale/ar-AE/index.js +1 -3
  159. package/locale/ar-AE/package.json +14 -0
  160. package/locale/as/index.cjs +3 -0
  161. package/locale/as/index.cjs.js +3 -0
  162. package/locale/as/index.js +1 -3
  163. package/locale/as/package.json +14 -0
  164. package/locale/ast/index.cjs +3 -0
  165. package/locale/ast/index.cjs.js +3 -0
  166. package/locale/ast/index.js +1 -3
  167. package/locale/ast/package.json +14 -0
  168. package/locale/az/index.cjs +3 -0
  169. package/locale/az/index.cjs.js +3 -0
  170. package/locale/az/index.js +1 -3
  171. package/locale/az/package.json +14 -0
  172. package/locale/be/index.cjs +3 -0
  173. package/locale/be/index.cjs.js +3 -0
  174. package/locale/be/index.js +1 -3
  175. package/locale/be/package.json +14 -0
  176. package/locale/bg/index.cjs +3 -0
  177. package/locale/bg/index.cjs.js +3 -0
  178. package/locale/bg/index.js +1 -3
  179. package/locale/bg/package.json +14 -0
  180. package/locale/bn/index.cjs +3 -0
  181. package/locale/bn/index.cjs.js +3 -0
  182. package/locale/bn/index.js +1 -3
  183. package/locale/bn/package.json +14 -0
  184. package/locale/br/index.cjs +3 -0
  185. package/locale/br/index.cjs.js +3 -0
  186. package/locale/br/index.js +1 -3
  187. package/locale/br/package.json +14 -0
  188. package/locale/brx/index.cjs +3 -0
  189. package/locale/brx/index.cjs.js +3 -0
  190. package/locale/brx/index.js +1 -0
  191. package/locale/brx/package.json +14 -0
  192. package/locale/brx.json +159 -0
  193. package/locale/bs/index.cjs +3 -0
  194. package/locale/bs/index.cjs.js +3 -0
  195. package/locale/bs/index.js +1 -3
  196. package/locale/bs/package.json +14 -0
  197. package/locale/bs-Cyrl/index.cjs +3 -0
  198. package/locale/bs-Cyrl/index.cjs.js +3 -0
  199. package/locale/bs-Cyrl/index.js +1 -3
  200. package/locale/bs-Cyrl/package.json +14 -0
  201. package/locale/ca/index.cjs +3 -0
  202. package/locale/ca/index.cjs.js +3 -0
  203. package/locale/ca/index.js +1 -3
  204. package/locale/ca/package.json +14 -0
  205. package/locale/ccp/index.cjs +3 -0
  206. package/locale/ccp/index.cjs.js +3 -0
  207. package/locale/ccp/index.js +1 -3
  208. package/locale/ccp/package.json +14 -0
  209. package/locale/ce/index.cjs +3 -0
  210. package/locale/ce/index.cjs.js +3 -0
  211. package/locale/ce/index.js +1 -3
  212. package/locale/ce/package.json +14 -0
  213. package/locale/ceb/index.cjs +3 -0
  214. package/locale/ceb/index.cjs.js +3 -0
  215. package/locale/ceb/index.js +1 -3
  216. package/locale/ceb/package.json +14 -0
  217. package/locale/chr/index.cjs +3 -0
  218. package/locale/chr/index.cjs.js +3 -0
  219. package/locale/chr/index.js +1 -3
  220. package/locale/chr/package.json +14 -0
  221. package/locale/cs/index.cjs +3 -0
  222. package/locale/cs/index.cjs.js +3 -0
  223. package/locale/cs/index.js +1 -3
  224. package/locale/cs/package.json +14 -0
  225. package/locale/cy/index.cjs +3 -0
  226. package/locale/cy/index.cjs.js +3 -0
  227. package/locale/cy/index.js +1 -3
  228. package/locale/cy/package.json +14 -0
  229. package/locale/da/index.cjs +3 -0
  230. package/locale/da/index.cjs.js +3 -0
  231. package/locale/da/index.js +1 -3
  232. package/locale/da/package.json +14 -0
  233. package/locale/de/index.cjs +3 -0
  234. package/locale/de/index.cjs.js +3 -0
  235. package/locale/de/index.js +1 -3
  236. package/locale/de/package.json +14 -0
  237. package/locale/dsb/index.cjs +3 -0
  238. package/locale/dsb/index.cjs.js +3 -0
  239. package/locale/dsb/index.js +1 -3
  240. package/locale/dsb/package.json +14 -0
  241. package/locale/dz/index.cjs +3 -0
  242. package/locale/dz/index.cjs.js +3 -0
  243. package/locale/dz/index.js +1 -3
  244. package/locale/dz/package.json +14 -0
  245. package/locale/ee/index.cjs +3 -0
  246. package/locale/ee/index.cjs.js +3 -0
  247. package/locale/ee/index.js +1 -3
  248. package/locale/ee/package.json +14 -0
  249. package/locale/el/index.cjs +3 -0
  250. package/locale/el/index.cjs.js +3 -0
  251. package/locale/el/index.js +1 -3
  252. package/locale/el/package.json +14 -0
  253. package/locale/en/index.cjs +3 -0
  254. package/locale/en/index.cjs.js +3 -0
  255. package/locale/en/index.js +1 -3
  256. package/locale/en/package.json +14 -0
  257. package/locale/en-001/index.cjs +3 -0
  258. package/locale/en-001/index.cjs.js +3 -0
  259. package/locale/en-001/index.js +1 -3
  260. package/locale/en-001/package.json +14 -0
  261. package/locale/en-150/index.cjs +3 -0
  262. package/locale/en-150/index.cjs.js +3 -0
  263. package/locale/en-150/index.js +1 -3
  264. package/locale/en-150/package.json +14 -0
  265. package/locale/en-AG/index.cjs +3 -0
  266. package/locale/en-AG/index.cjs.js +3 -0
  267. package/locale/en-AG/index.js +1 -3
  268. package/locale/en-AG/package.json +14 -0
  269. package/locale/en-AI/index.cjs +3 -0
  270. package/locale/en-AI/index.cjs.js +3 -0
  271. package/locale/en-AI/index.js +1 -3
  272. package/locale/en-AI/package.json +14 -0
  273. package/locale/en-AT/index.cjs +3 -0
  274. package/locale/en-AT/index.cjs.js +3 -0
  275. package/locale/en-AT/index.js +1 -3
  276. package/locale/en-AT/package.json +14 -0
  277. package/locale/en-AU/index.cjs +3 -0
  278. package/locale/en-AU/index.cjs.js +3 -0
  279. package/locale/en-AU/index.js +1 -3
  280. package/locale/en-AU/package.json +14 -0
  281. package/locale/en-BB/index.cjs +3 -0
  282. package/locale/en-BB/index.cjs.js +3 -0
  283. package/locale/en-BB/index.js +1 -3
  284. package/locale/en-BB/package.json +14 -0
  285. package/locale/en-BE/index.cjs +3 -0
  286. package/locale/en-BE/index.cjs.js +3 -0
  287. package/locale/en-BE/index.js +1 -3
  288. package/locale/en-BE/package.json +14 -0
  289. package/locale/en-BM/index.cjs +3 -0
  290. package/locale/en-BM/index.cjs.js +3 -0
  291. package/locale/en-BM/index.js +1 -3
  292. package/locale/en-BM/package.json +14 -0
  293. package/locale/en-BS/index.cjs +3 -0
  294. package/locale/en-BS/index.cjs.js +3 -0
  295. package/locale/en-BS/index.js +1 -3
  296. package/locale/en-BS/package.json +14 -0
  297. package/locale/en-BW/index.cjs +3 -0
  298. package/locale/en-BW/index.cjs.js +3 -0
  299. package/locale/en-BW/index.js +1 -3
  300. package/locale/en-BW/package.json +14 -0
  301. package/locale/en-BZ/index.cjs +3 -0
  302. package/locale/en-BZ/index.cjs.js +3 -0
  303. package/locale/en-BZ/index.js +1 -3
  304. package/locale/en-BZ/package.json +14 -0
  305. package/locale/en-CA/index.cjs +3 -0
  306. package/locale/en-CA/index.cjs.js +3 -0
  307. package/locale/en-CA/index.js +1 -3
  308. package/locale/en-CA/package.json +14 -0
  309. package/locale/en-CC/index.cjs +3 -0
  310. package/locale/en-CC/index.cjs.js +3 -0
  311. package/locale/en-CC/index.js +1 -3
  312. package/locale/en-CC/package.json +14 -0
  313. package/locale/en-CH/index.cjs +3 -0
  314. package/locale/en-CH/index.cjs.js +3 -0
  315. package/locale/en-CH/index.js +1 -3
  316. package/locale/en-CH/package.json +14 -0
  317. package/locale/en-CK/index.cjs +3 -0
  318. package/locale/en-CK/index.cjs.js +3 -0
  319. package/locale/en-CK/index.js +1 -3
  320. package/locale/en-CK/package.json +14 -0
  321. package/locale/en-CM/index.cjs +3 -0
  322. package/locale/en-CM/index.cjs.js +3 -0
  323. package/locale/en-CM/index.js +1 -3
  324. package/locale/en-CM/package.json +14 -0
  325. package/locale/en-CX/index.cjs +3 -0
  326. package/locale/en-CX/index.cjs.js +3 -0
  327. package/locale/en-CX/index.js +1 -3
  328. package/locale/en-CX/package.json +14 -0
  329. package/locale/en-CY/index.cjs +3 -0
  330. package/locale/en-CY/index.cjs.js +3 -0
  331. package/locale/en-CY/index.js +1 -3
  332. package/locale/en-CY/package.json +14 -0
  333. package/locale/en-DE/index.cjs +3 -0
  334. package/locale/en-DE/index.cjs.js +3 -0
  335. package/locale/en-DE/index.js +1 -3
  336. package/locale/en-DE/package.json +14 -0
  337. package/locale/en-DG/index.cjs +3 -0
  338. package/locale/en-DG/index.cjs.js +3 -0
  339. package/locale/en-DG/index.js +1 -3
  340. package/locale/en-DG/package.json +14 -0
  341. package/locale/en-DK/index.cjs +3 -0
  342. package/locale/en-DK/index.cjs.js +3 -0
  343. package/locale/en-DK/index.js +1 -3
  344. package/locale/en-DK/package.json +14 -0
  345. package/locale/en-DM/index.cjs +3 -0
  346. package/locale/en-DM/index.cjs.js +3 -0
  347. package/locale/en-DM/index.js +1 -3
  348. package/locale/en-DM/package.json +14 -0
  349. package/locale/en-ER/index.cjs +3 -0
  350. package/locale/en-ER/index.cjs.js +3 -0
  351. package/locale/en-ER/index.js +1 -3
  352. package/locale/en-ER/package.json +14 -0
  353. package/locale/en-FI/index.cjs +3 -0
  354. package/locale/en-FI/index.cjs.js +3 -0
  355. package/locale/en-FI/index.js +1 -3
  356. package/locale/en-FI/package.json +14 -0
  357. package/locale/en-FJ/index.cjs +3 -0
  358. package/locale/en-FJ/index.cjs.js +3 -0
  359. package/locale/en-FJ/index.js +1 -3
  360. package/locale/en-FJ/package.json +14 -0
  361. package/locale/en-FK/index.cjs +3 -0
  362. package/locale/en-FK/index.cjs.js +3 -0
  363. package/locale/en-FK/index.js +1 -3
  364. package/locale/en-FK/package.json +14 -0
  365. package/locale/en-FM/index.cjs +3 -0
  366. package/locale/en-FM/index.cjs.js +3 -0
  367. package/locale/en-FM/index.js +1 -3
  368. package/locale/en-FM/package.json +14 -0
  369. package/locale/en-GB/index.cjs +3 -0
  370. package/locale/en-GB/index.cjs.js +3 -0
  371. package/locale/en-GB/index.js +1 -3
  372. package/locale/en-GB/package.json +14 -0
  373. package/locale/en-GD/index.cjs +3 -0
  374. package/locale/en-GD/index.cjs.js +3 -0
  375. package/locale/en-GD/index.js +1 -3
  376. package/locale/en-GD/package.json +14 -0
  377. package/locale/en-GG/index.cjs +3 -0
  378. package/locale/en-GG/index.cjs.js +3 -0
  379. package/locale/en-GG/index.js +1 -3
  380. package/locale/en-GG/package.json +14 -0
  381. package/locale/en-GH/index.cjs +3 -0
  382. package/locale/en-GH/index.cjs.js +3 -0
  383. package/locale/en-GH/index.js +1 -3
  384. package/locale/en-GH/package.json +14 -0
  385. package/locale/en-GI/index.cjs +3 -0
  386. package/locale/en-GI/index.cjs.js +3 -0
  387. package/locale/en-GI/index.js +1 -3
  388. package/locale/en-GI/package.json +14 -0
  389. package/locale/en-GM/index.cjs +3 -0
  390. package/locale/en-GM/index.cjs.js +3 -0
  391. package/locale/en-GM/index.js +1 -3
  392. package/locale/en-GM/package.json +14 -0
  393. package/locale/en-GY/index.cjs +3 -0
  394. package/locale/en-GY/index.cjs.js +3 -0
  395. package/locale/en-GY/index.js +1 -3
  396. package/locale/en-GY/package.json +14 -0
  397. package/locale/en-HK/index.cjs +3 -0
  398. package/locale/en-HK/index.cjs.js +3 -0
  399. package/locale/en-HK/index.js +1 -3
  400. package/locale/en-HK/package.json +14 -0
  401. package/locale/en-IE/index.cjs +3 -0
  402. package/locale/en-IE/index.cjs.js +3 -0
  403. package/locale/en-IE/index.js +1 -3
  404. package/locale/en-IE/package.json +14 -0
  405. package/locale/en-IL/index.cjs +3 -0
  406. package/locale/en-IL/index.cjs.js +3 -0
  407. package/locale/en-IL/index.js +1 -3
  408. package/locale/en-IL/package.json +14 -0
  409. package/locale/en-IM/index.cjs +3 -0
  410. package/locale/en-IM/index.cjs.js +3 -0
  411. package/locale/en-IM/index.js +1 -3
  412. package/locale/en-IM/package.json +14 -0
  413. package/locale/en-IN/index.cjs +3 -0
  414. package/locale/en-IN/index.cjs.js +3 -0
  415. package/locale/en-IN/index.js +1 -3
  416. package/locale/en-IN/package.json +14 -0
  417. package/locale/en-IO/index.cjs +3 -0
  418. package/locale/en-IO/index.cjs.js +3 -0
  419. package/locale/en-IO/index.js +1 -3
  420. package/locale/en-IO/package.json +14 -0
  421. package/locale/en-JE/index.cjs +3 -0
  422. package/locale/en-JE/index.cjs.js +3 -0
  423. package/locale/en-JE/index.js +1 -3
  424. package/locale/en-JE/package.json +14 -0
  425. package/locale/en-JM/index.cjs +3 -0
  426. package/locale/en-JM/index.cjs.js +3 -0
  427. package/locale/en-JM/index.js +1 -3
  428. package/locale/en-JM/package.json +14 -0
  429. package/locale/en-KE/index.cjs +3 -0
  430. package/locale/en-KE/index.cjs.js +3 -0
  431. package/locale/en-KE/index.js +1 -3
  432. package/locale/en-KE/package.json +14 -0
  433. package/locale/en-KI/index.cjs +3 -0
  434. package/locale/en-KI/index.cjs.js +3 -0
  435. package/locale/en-KI/index.js +1 -3
  436. package/locale/en-KI/package.json +14 -0
  437. package/locale/en-KN/index.cjs +3 -0
  438. package/locale/en-KN/index.cjs.js +3 -0
  439. package/locale/en-KN/index.js +1 -3
  440. package/locale/en-KN/package.json +14 -0
  441. package/locale/en-KY/index.cjs +3 -0
  442. package/locale/en-KY/index.cjs.js +3 -0
  443. package/locale/en-KY/index.js +1 -3
  444. package/locale/en-KY/package.json +14 -0
  445. package/locale/en-LC/index.cjs +3 -0
  446. package/locale/en-LC/index.cjs.js +3 -0
  447. package/locale/en-LC/index.js +1 -3
  448. package/locale/en-LC/package.json +14 -0
  449. package/locale/en-LR/index.cjs +3 -0
  450. package/locale/en-LR/index.cjs.js +3 -0
  451. package/locale/en-LR/index.js +1 -3
  452. package/locale/en-LR/package.json +14 -0
  453. package/locale/en-LS/index.cjs +3 -0
  454. package/locale/en-LS/index.cjs.js +3 -0
  455. package/locale/en-LS/index.js +1 -3
  456. package/locale/en-LS/package.json +14 -0
  457. package/locale/en-MG/index.cjs +3 -0
  458. package/locale/en-MG/index.cjs.js +3 -0
  459. package/locale/en-MG/index.js +1 -3
  460. package/locale/en-MG/package.json +14 -0
  461. package/locale/en-MO/index.cjs +3 -0
  462. package/locale/en-MO/index.cjs.js +3 -0
  463. package/locale/en-MO/index.js +1 -3
  464. package/locale/en-MO/package.json +14 -0
  465. package/locale/en-MS/index.cjs +3 -0
  466. package/locale/en-MS/index.cjs.js +3 -0
  467. package/locale/en-MS/index.js +1 -3
  468. package/locale/en-MS/package.json +14 -0
  469. package/locale/en-MT/index.cjs +3 -0
  470. package/locale/en-MT/index.cjs.js +3 -0
  471. package/locale/en-MT/index.js +1 -3
  472. package/locale/en-MT/package.json +14 -0
  473. package/locale/en-MU/index.cjs +3 -0
  474. package/locale/en-MU/index.cjs.js +3 -0
  475. package/locale/en-MU/index.js +1 -3
  476. package/locale/en-MU/package.json +14 -0
  477. package/locale/en-MV/index.cjs +3 -0
  478. package/locale/en-MV/index.cjs.js +3 -0
  479. package/locale/en-MV/index.js +1 -0
  480. package/locale/en-MV/package.json +14 -0
  481. package/locale/en-MV.json +219 -0
  482. package/locale/en-MW/index.cjs +3 -0
  483. package/locale/en-MW/index.cjs.js +3 -0
  484. package/locale/en-MW/index.js +1 -3
  485. package/locale/en-MW/package.json +14 -0
  486. package/locale/en-MY/index.cjs +3 -0
  487. package/locale/en-MY/index.cjs.js +3 -0
  488. package/locale/en-MY/index.js +1 -3
  489. package/locale/en-MY/package.json +14 -0
  490. package/locale/en-NA/index.cjs +3 -0
  491. package/locale/en-NA/index.cjs.js +3 -0
  492. package/locale/en-NA/index.js +1 -3
  493. package/locale/en-NA/package.json +14 -0
  494. package/locale/en-NF/index.cjs +3 -0
  495. package/locale/en-NF/index.cjs.js +3 -0
  496. package/locale/en-NF/index.js +1 -3
  497. package/locale/en-NF/package.json +14 -0
  498. package/locale/en-NG/index.cjs +3 -0
  499. package/locale/en-NG/index.cjs.js +3 -0
  500. package/locale/en-NG/index.js +1 -3
  501. package/locale/en-NG/package.json +14 -0
  502. package/locale/en-NL/index.cjs +3 -0
  503. package/locale/en-NL/index.cjs.js +3 -0
  504. package/locale/en-NL/index.js +1 -3
  505. package/locale/en-NL/package.json +14 -0
  506. package/locale/en-NR/index.cjs +3 -0
  507. package/locale/en-NR/index.cjs.js +3 -0
  508. package/locale/en-NR/index.js +1 -3
  509. package/locale/en-NR/package.json +14 -0
  510. package/locale/en-NU/index.cjs +3 -0
  511. package/locale/en-NU/index.cjs.js +3 -0
  512. package/locale/en-NU/index.js +1 -3
  513. package/locale/en-NU/package.json +14 -0
  514. package/locale/en-NZ/index.cjs +3 -0
  515. package/locale/en-NZ/index.cjs.js +3 -0
  516. package/locale/en-NZ/index.js +1 -3
  517. package/locale/en-NZ/package.json +14 -0
  518. package/locale/en-PG/index.cjs +3 -0
  519. package/locale/en-PG/index.cjs.js +3 -0
  520. package/locale/en-PG/index.js +1 -3
  521. package/locale/en-PG/package.json +14 -0
  522. package/locale/en-PK/index.cjs +3 -0
  523. package/locale/en-PK/index.cjs.js +3 -0
  524. package/locale/en-PK/index.js +1 -3
  525. package/locale/en-PK/package.json +14 -0
  526. package/locale/en-PN/index.cjs +3 -0
  527. package/locale/en-PN/index.cjs.js +3 -0
  528. package/locale/en-PN/index.js +1 -3
  529. package/locale/en-PN/package.json +14 -0
  530. package/locale/en-PW/index.cjs +3 -0
  531. package/locale/en-PW/index.cjs.js +3 -0
  532. package/locale/en-PW/index.js +1 -3
  533. package/locale/en-PW/package.json +14 -0
  534. package/locale/en-RW/index.cjs +3 -0
  535. package/locale/en-RW/index.cjs.js +3 -0
  536. package/locale/en-RW/index.js +1 -3
  537. package/locale/en-RW/package.json +14 -0
  538. package/locale/en-SB/index.cjs +3 -0
  539. package/locale/en-SB/index.cjs.js +3 -0
  540. package/locale/en-SB/index.js +1 -3
  541. package/locale/en-SB/package.json +14 -0
  542. package/locale/en-SC/index.cjs +3 -0
  543. package/locale/en-SC/index.cjs.js +3 -0
  544. package/locale/en-SC/index.js +1 -3
  545. package/locale/en-SC/package.json +14 -0
  546. package/locale/en-SD/index.cjs +3 -0
  547. package/locale/en-SD/index.cjs.js +3 -0
  548. package/locale/en-SD/index.js +1 -3
  549. package/locale/en-SD/package.json +14 -0
  550. package/locale/en-SE/index.cjs +3 -0
  551. package/locale/en-SE/index.cjs.js +3 -0
  552. package/locale/en-SE/index.js +1 -3
  553. package/locale/en-SE/package.json +14 -0
  554. package/locale/en-SG/index.cjs +3 -0
  555. package/locale/en-SG/index.cjs.js +3 -0
  556. package/locale/en-SG/index.js +1 -3
  557. package/locale/en-SG/package.json +14 -0
  558. package/locale/en-SH/index.cjs +3 -0
  559. package/locale/en-SH/index.cjs.js +3 -0
  560. package/locale/en-SH/index.js +1 -3
  561. package/locale/en-SH/package.json +14 -0
  562. package/locale/en-SI/index.cjs +3 -0
  563. package/locale/en-SI/index.cjs.js +3 -0
  564. package/locale/en-SI/index.js +1 -3
  565. package/locale/en-SI/package.json +14 -0
  566. package/locale/en-SL/index.cjs +3 -0
  567. package/locale/en-SL/index.cjs.js +3 -0
  568. package/locale/en-SL/index.js +1 -3
  569. package/locale/en-SL/package.json +14 -0
  570. package/locale/en-SS/index.cjs +3 -0
  571. package/locale/en-SS/index.cjs.js +3 -0
  572. package/locale/en-SS/index.js +1 -3
  573. package/locale/en-SS/package.json +14 -0
  574. package/locale/en-SX/index.cjs +3 -0
  575. package/locale/en-SX/index.cjs.js +3 -0
  576. package/locale/en-SX/index.js +1 -3
  577. package/locale/en-SX/package.json +14 -0
  578. package/locale/en-SZ/index.cjs +3 -0
  579. package/locale/en-SZ/index.cjs.js +3 -0
  580. package/locale/en-SZ/index.js +1 -3
  581. package/locale/en-SZ/package.json +14 -0
  582. package/locale/en-TC/index.cjs +3 -0
  583. package/locale/en-TC/index.cjs.js +3 -0
  584. package/locale/en-TC/index.js +1 -3
  585. package/locale/en-TC/package.json +14 -0
  586. package/locale/en-TK/index.cjs +3 -0
  587. package/locale/en-TK/index.cjs.js +3 -0
  588. package/locale/en-TK/index.js +1 -3
  589. package/locale/en-TK/package.json +14 -0
  590. package/locale/en-TO/index.cjs +3 -0
  591. package/locale/en-TO/index.cjs.js +3 -0
  592. package/locale/en-TO/index.js +1 -3
  593. package/locale/en-TO/package.json +14 -0
  594. package/locale/en-TT/index.cjs +3 -0
  595. package/locale/en-TT/index.cjs.js +3 -0
  596. package/locale/en-TT/index.js +1 -3
  597. package/locale/en-TT/package.json +14 -0
  598. package/locale/en-TV/index.cjs +3 -0
  599. package/locale/en-TV/index.cjs.js +3 -0
  600. package/locale/en-TV/index.js +1 -3
  601. package/locale/en-TV/package.json +14 -0
  602. package/locale/en-TZ/index.cjs +3 -0
  603. package/locale/en-TZ/index.cjs.js +3 -0
  604. package/locale/en-TZ/index.js +1 -3
  605. package/locale/en-TZ/package.json +14 -0
  606. package/locale/en-UG/index.cjs +3 -0
  607. package/locale/en-UG/index.cjs.js +3 -0
  608. package/locale/en-UG/index.js +1 -3
  609. package/locale/en-UG/package.json +14 -0
  610. package/locale/en-VC/index.cjs +3 -0
  611. package/locale/en-VC/index.cjs.js +3 -0
  612. package/locale/en-VC/index.js +1 -3
  613. package/locale/en-VC/package.json +14 -0
  614. package/locale/en-VG/index.cjs +3 -0
  615. package/locale/en-VG/index.cjs.js +3 -0
  616. package/locale/en-VG/index.js +1 -3
  617. package/locale/en-VG/package.json +14 -0
  618. package/locale/en-VU/index.cjs +3 -0
  619. package/locale/en-VU/index.cjs.js +3 -0
  620. package/locale/en-VU/index.js +1 -3
  621. package/locale/en-VU/package.json +14 -0
  622. package/locale/en-WS/index.cjs +3 -0
  623. package/locale/en-WS/index.cjs.js +3 -0
  624. package/locale/en-WS/index.js +1 -3
  625. package/locale/en-WS/package.json +14 -0
  626. package/locale/en-ZA/index.cjs +3 -0
  627. package/locale/en-ZA/index.cjs.js +3 -0
  628. package/locale/en-ZA/index.js +1 -3
  629. package/locale/en-ZA/package.json +14 -0
  630. package/locale/en-ZM/index.cjs +3 -0
  631. package/locale/en-ZM/index.cjs.js +3 -0
  632. package/locale/en-ZM/index.js +1 -3
  633. package/locale/en-ZM/package.json +14 -0
  634. package/locale/en-ZW/index.cjs +3 -0
  635. package/locale/en-ZW/index.cjs.js +3 -0
  636. package/locale/en-ZW/index.js +1 -3
  637. package/locale/en-ZW/package.json +14 -0
  638. package/locale/es/index.cjs +3 -0
  639. package/locale/es/index.cjs.js +3 -0
  640. package/locale/es/index.js +1 -3
  641. package/locale/es/package.json +14 -0
  642. package/locale/es-419/index.cjs +3 -0
  643. package/locale/es-419/index.cjs.js +3 -0
  644. package/locale/es-419/index.js +1 -3
  645. package/locale/es-419/package.json +14 -0
  646. package/locale/es-AR/index.cjs +3 -0
  647. package/locale/es-AR/index.cjs.js +3 -0
  648. package/locale/es-AR/index.js +1 -3
  649. package/locale/es-AR/package.json +14 -0
  650. package/locale/es-BO/index.cjs +3 -0
  651. package/locale/es-BO/index.cjs.js +3 -0
  652. package/locale/es-BO/index.js +1 -3
  653. package/locale/es-BO/package.json +14 -0
  654. package/locale/es-BR/index.cjs +3 -0
  655. package/locale/es-BR/index.cjs.js +3 -0
  656. package/locale/es-BR/index.js +1 -3
  657. package/locale/es-BR/package.json +14 -0
  658. package/locale/es-BZ/index.cjs +3 -0
  659. package/locale/es-BZ/index.cjs.js +3 -0
  660. package/locale/es-BZ/index.js +1 -3
  661. package/locale/es-BZ/package.json +14 -0
  662. package/locale/es-CL/index.cjs +3 -0
  663. package/locale/es-CL/index.cjs.js +3 -0
  664. package/locale/es-CL/index.js +1 -3
  665. package/locale/es-CL/package.json +14 -0
  666. package/locale/es-CO/index.cjs +3 -0
  667. package/locale/es-CO/index.cjs.js +3 -0
  668. package/locale/es-CO/index.js +1 -3
  669. package/locale/es-CO/package.json +14 -0
  670. package/locale/es-CR/index.cjs +3 -0
  671. package/locale/es-CR/index.cjs.js +3 -0
  672. package/locale/es-CR/index.js +1 -3
  673. package/locale/es-CR/package.json +14 -0
  674. package/locale/es-CU/index.cjs +3 -0
  675. package/locale/es-CU/index.cjs.js +3 -0
  676. package/locale/es-CU/index.js +1 -3
  677. package/locale/es-CU/package.json +14 -0
  678. package/locale/es-DO/index.cjs +3 -0
  679. package/locale/es-DO/index.cjs.js +3 -0
  680. package/locale/es-DO/index.js +1 -3
  681. package/locale/es-DO/package.json +14 -0
  682. package/locale/es-EC/index.cjs +3 -0
  683. package/locale/es-EC/index.cjs.js +3 -0
  684. package/locale/es-EC/index.js +1 -3
  685. package/locale/es-EC/package.json +14 -0
  686. package/locale/es-GT/index.cjs +3 -0
  687. package/locale/es-GT/index.cjs.js +3 -0
  688. package/locale/es-GT/index.js +1 -3
  689. package/locale/es-GT/package.json +14 -0
  690. package/locale/es-HN/index.cjs +3 -0
  691. package/locale/es-HN/index.cjs.js +3 -0
  692. package/locale/es-HN/index.js +1 -3
  693. package/locale/es-HN/package.json +14 -0
  694. package/locale/es-MX/index.cjs +3 -0
  695. package/locale/es-MX/index.cjs.js +3 -0
  696. package/locale/es-MX/index.js +1 -3
  697. package/locale/es-MX/package.json +14 -0
  698. package/locale/es-NI/index.cjs +3 -0
  699. package/locale/es-NI/index.cjs.js +3 -0
  700. package/locale/es-NI/index.js +1 -3
  701. package/locale/es-NI/package.json +14 -0
  702. package/locale/es-PA/index.cjs +3 -0
  703. package/locale/es-PA/index.cjs.js +3 -0
  704. package/locale/es-PA/index.js +1 -3
  705. package/locale/es-PA/package.json +14 -0
  706. package/locale/es-PE/index.cjs +3 -0
  707. package/locale/es-PE/index.cjs.js +3 -0
  708. package/locale/es-PE/index.js +1 -3
  709. package/locale/es-PE/package.json +14 -0
  710. package/locale/es-PR/index.cjs +3 -0
  711. package/locale/es-PR/index.cjs.js +3 -0
  712. package/locale/es-PR/index.js +1 -3
  713. package/locale/es-PR/package.json +14 -0
  714. package/locale/es-PY/index.cjs +3 -0
  715. package/locale/es-PY/index.cjs.js +3 -0
  716. package/locale/es-PY/index.js +1 -3
  717. package/locale/es-PY/package.json +14 -0
  718. package/locale/es-SV/index.cjs +3 -0
  719. package/locale/es-SV/index.cjs.js +3 -0
  720. package/locale/es-SV/index.js +1 -3
  721. package/locale/es-SV/package.json +14 -0
  722. package/locale/es-US/index.cjs +3 -0
  723. package/locale/es-US/index.cjs.js +3 -0
  724. package/locale/es-US/index.js +1 -3
  725. package/locale/es-US/package.json +14 -0
  726. package/locale/es-UY/index.cjs +3 -0
  727. package/locale/es-UY/index.cjs.js +3 -0
  728. package/locale/es-UY/index.js +1 -3
  729. package/locale/es-UY/package.json +14 -0
  730. package/locale/es-VE/index.cjs +3 -0
  731. package/locale/es-VE/index.cjs.js +3 -0
  732. package/locale/es-VE/index.js +1 -3
  733. package/locale/es-VE/package.json +14 -0
  734. package/locale/et/index.cjs +3 -0
  735. package/locale/et/index.cjs.js +3 -0
  736. package/locale/et/index.js +1 -3
  737. package/locale/et/package.json +14 -0
  738. package/locale/eu/index.cjs +3 -0
  739. package/locale/eu/index.cjs.js +3 -0
  740. package/locale/eu/index.js +1 -3
  741. package/locale/eu/package.json +14 -0
  742. package/locale/fa/index.cjs +3 -0
  743. package/locale/fa/index.cjs.js +3 -0
  744. package/locale/fa/index.js +1 -3
  745. package/locale/fa/package.json +14 -0
  746. package/locale/ff-Adlm/index.cjs +3 -0
  747. package/locale/ff-Adlm/index.cjs.js +3 -0
  748. package/locale/ff-Adlm/index.js +1 -3
  749. package/locale/ff-Adlm/package.json +14 -0
  750. package/locale/fi/index.cjs +3 -0
  751. package/locale/fi/index.cjs.js +3 -0
  752. package/locale/fi/index.js +1 -3
  753. package/locale/fi/package.json +14 -0
  754. package/locale/fil/index.cjs +3 -0
  755. package/locale/fil/index.cjs.js +3 -0
  756. package/locale/fil/index.js +1 -3
  757. package/locale/fil/package.json +14 -0
  758. package/locale/fo/index.cjs +3 -0
  759. package/locale/fo/index.cjs.js +3 -0
  760. package/locale/fo/index.js +1 -3
  761. package/locale/fo/package.json +14 -0
  762. package/locale/fr/index.cjs +3 -0
  763. package/locale/fr/index.cjs.js +3 -0
  764. package/locale/fr/index.js +1 -3
  765. package/locale/fr/package.json +14 -0
  766. package/locale/fr-CA/index.cjs +3 -0
  767. package/locale/fr-CA/index.cjs.js +3 -0
  768. package/locale/fr-CA/index.js +1 -3
  769. package/locale/fr-CA/package.json +14 -0
  770. package/locale/fur/index.cjs +3 -0
  771. package/locale/fur/index.cjs.js +3 -0
  772. package/locale/fur/index.js +1 -3
  773. package/locale/fur/package.json +14 -0
  774. package/locale/fy/index.cjs +3 -0
  775. package/locale/fy/index.cjs.js +3 -0
  776. package/locale/fy/index.js +1 -3
  777. package/locale/fy/package.json +14 -0
  778. package/locale/ga/index.cjs +3 -0
  779. package/locale/ga/index.cjs.js +3 -0
  780. package/locale/ga/index.js +1 -3
  781. package/locale/ga/package.json +14 -0
  782. package/locale/gd/index.cjs +3 -0
  783. package/locale/gd/index.cjs.js +3 -0
  784. package/locale/gd/index.js +1 -3
  785. package/locale/gd/package.json +14 -0
  786. package/locale/gl/index.cjs +3 -0
  787. package/locale/gl/index.cjs.js +3 -0
  788. package/locale/gl/index.js +1 -3
  789. package/locale/gl/package.json +14 -0
  790. package/locale/gu/index.cjs +3 -0
  791. package/locale/gu/index.cjs.js +3 -0
  792. package/locale/gu/index.js +1 -3
  793. package/locale/gu/package.json +14 -0
  794. package/locale/ha/index.cjs +3 -0
  795. package/locale/ha/index.cjs.js +3 -0
  796. package/locale/ha/index.js +1 -3
  797. package/locale/ha/package.json +14 -0
  798. package/locale/he/index.cjs +3 -0
  799. package/locale/he/index.cjs.js +3 -0
  800. package/locale/he/index.js +1 -3
  801. package/locale/he/package.json +14 -0
  802. package/locale/hi/index.cjs +3 -0
  803. package/locale/hi/index.cjs.js +3 -0
  804. package/locale/hi/index.js +1 -3
  805. package/locale/hi/package.json +14 -0
  806. package/locale/hi-Latn/index.cjs +3 -0
  807. package/locale/hi-Latn/index.cjs.js +3 -0
  808. package/locale/hi-Latn/index.js +1 -0
  809. package/locale/hi-Latn/package.json +14 -0
  810. package/locale/hi-Latn.json +183 -0
  811. package/locale/hr/index.cjs +3 -0
  812. package/locale/hr/index.cjs.js +3 -0
  813. package/locale/hr/index.js +1 -3
  814. package/locale/hr/package.json +14 -0
  815. package/locale/hsb/index.cjs +3 -0
  816. package/locale/hsb/index.cjs.js +3 -0
  817. package/locale/hsb/index.js +1 -3
  818. package/locale/hsb/package.json +14 -0
  819. package/locale/hu/index.cjs +3 -0
  820. package/locale/hu/index.cjs.js +3 -0
  821. package/locale/hu/index.js +1 -3
  822. package/locale/hu/package.json +14 -0
  823. package/locale/hy/index.cjs +3 -0
  824. package/locale/hy/index.cjs.js +3 -0
  825. package/locale/hy/index.js +1 -3
  826. package/locale/hy/package.json +14 -0
  827. package/locale/ia/index.cjs +3 -0
  828. package/locale/ia/index.cjs.js +3 -0
  829. package/locale/ia/index.js +1 -3
  830. package/locale/ia/package.json +14 -0
  831. package/locale/id/index.cjs +3 -0
  832. package/locale/id/index.cjs.js +3 -0
  833. package/locale/id/index.js +1 -3
  834. package/locale/id/package.json +14 -0
  835. package/locale/ig/index.cjs +3 -0
  836. package/locale/ig/index.cjs.js +3 -0
  837. package/locale/ig/index.js +1 -3
  838. package/locale/ig/package.json +14 -0
  839. package/locale/is/index.cjs +3 -0
  840. package/locale/is/index.cjs.js +3 -0
  841. package/locale/is/index.js +1 -3
  842. package/locale/is/package.json +14 -0
  843. package/locale/it/index.cjs +3 -0
  844. package/locale/it/index.cjs.js +3 -0
  845. package/locale/it/index.js +1 -3
  846. package/locale/it/package.json +14 -0
  847. package/locale/ja/index.cjs +3 -0
  848. package/locale/ja/index.cjs.js +3 -0
  849. package/locale/ja/index.js +1 -3
  850. package/locale/ja/package.json +14 -0
  851. package/locale/jgo/index.cjs +3 -0
  852. package/locale/jgo/index.cjs.js +3 -0
  853. package/locale/jgo/index.js +1 -3
  854. package/locale/jgo/package.json +14 -0
  855. package/locale/jv/index.cjs +3 -0
  856. package/locale/jv/index.cjs.js +3 -0
  857. package/locale/jv/index.js +1 -3
  858. package/locale/jv/package.json +14 -0
  859. package/locale/ka/index.cjs +3 -0
  860. package/locale/ka/index.cjs.js +3 -0
  861. package/locale/ka/index.js +1 -3
  862. package/locale/ka/package.json +14 -0
  863. package/locale/kea/index.cjs +3 -0
  864. package/locale/kea/index.cjs.js +3 -0
  865. package/locale/kea/index.js +1 -3
  866. package/locale/kea/package.json +14 -0
  867. package/locale/kgp/index.cjs +3 -0
  868. package/locale/kgp/index.cjs.js +3 -0
  869. package/locale/kgp/index.js +1 -3
  870. package/locale/kgp/package.json +14 -0
  871. package/locale/kk/index.cjs +3 -0
  872. package/locale/kk/index.cjs.js +3 -0
  873. package/locale/kk/index.js +1 -3
  874. package/locale/kk/package.json +14 -0
  875. package/locale/kl/index.cjs +3 -0
  876. package/locale/kl/index.cjs.js +3 -0
  877. package/locale/kl/index.js +1 -3
  878. package/locale/kl/package.json +14 -0
  879. package/locale/km/index.cjs +3 -0
  880. package/locale/km/index.cjs.js +3 -0
  881. package/locale/km/index.js +1 -3
  882. package/locale/km/package.json +14 -0
  883. package/locale/kn/index.cjs +3 -0
  884. package/locale/kn/index.cjs.js +3 -0
  885. package/locale/kn/index.js +1 -3
  886. package/locale/kn/package.json +14 -0
  887. package/locale/ko/index.cjs +3 -0
  888. package/locale/ko/index.cjs.js +3 -0
  889. package/locale/ko/index.js +1 -3
  890. package/locale/ko/package.json +14 -0
  891. package/locale/kok/index.cjs +3 -0
  892. package/locale/kok/index.cjs.js +3 -0
  893. package/locale/kok/index.js +1 -3
  894. package/locale/kok/package.json +14 -0
  895. package/locale/ksh/index.cjs +3 -0
  896. package/locale/ksh/index.cjs.js +3 -0
  897. package/locale/ksh/index.js +1 -3
  898. package/locale/ksh/package.json +14 -0
  899. package/locale/ku/index.cjs +3 -0
  900. package/locale/ku/index.cjs.js +3 -0
  901. package/locale/ku/index.js +1 -3
  902. package/locale/ku/package.json +14 -0
  903. package/locale/ky/index.cjs +3 -0
  904. package/locale/ky/index.cjs.js +3 -0
  905. package/locale/ky/index.js +1 -3
  906. package/locale/ky/package.json +14 -0
  907. package/locale/lb/index.cjs +3 -0
  908. package/locale/lb/index.cjs.js +3 -0
  909. package/locale/lb/index.js +1 -3
  910. package/locale/lb/package.json +14 -0
  911. package/locale/lkt/index.cjs +3 -0
  912. package/locale/lkt/index.cjs.js +3 -0
  913. package/locale/lkt/index.js +1 -3
  914. package/locale/lkt/package.json +14 -0
  915. package/locale/lo/index.cjs +3 -0
  916. package/locale/lo/index.cjs.js +3 -0
  917. package/locale/lo/index.js +1 -3
  918. package/locale/lo/package.json +14 -0
  919. package/locale/lt/index.cjs +3 -0
  920. package/locale/lt/index.cjs.js +3 -0
  921. package/locale/lt/index.js +1 -3
  922. package/locale/lt/package.json +14 -0
  923. package/locale/lv/index.cjs +3 -0
  924. package/locale/lv/index.cjs.js +3 -0
  925. package/locale/lv/index.js +1 -3
  926. package/locale/lv/package.json +14 -0
  927. package/locale/mk/index.cjs +3 -0
  928. package/locale/mk/index.cjs.js +3 -0
  929. package/locale/mk/index.js +1 -3
  930. package/locale/mk/package.json +14 -0
  931. package/locale/ml/index.cjs +3 -0
  932. package/locale/ml/index.cjs.js +3 -0
  933. package/locale/ml/index.js +1 -3
  934. package/locale/ml/package.json +14 -0
  935. package/locale/mn/index.cjs +3 -0
  936. package/locale/mn/index.cjs.js +3 -0
  937. package/locale/mn/index.js +1 -3
  938. package/locale/mn/package.json +14 -0
  939. package/locale/mni/index.cjs +3 -0
  940. package/locale/mni/index.cjs.js +3 -0
  941. package/locale/mni/index.js +1 -3
  942. package/locale/mni/package.json +14 -0
  943. package/locale/mr/index.cjs +3 -0
  944. package/locale/mr/index.cjs.js +3 -0
  945. package/locale/mr/index.js +1 -3
  946. package/locale/mr/package.json +14 -0
  947. package/locale/ms/index.cjs +3 -0
  948. package/locale/ms/index.cjs.js +3 -0
  949. package/locale/ms/index.js +1 -3
  950. package/locale/ms/package.json +14 -0
  951. package/locale/mt/index.cjs +3 -0
  952. package/locale/mt/index.cjs.js +3 -0
  953. package/locale/mt/index.js +1 -3
  954. package/locale/mt/package.json +14 -0
  955. package/locale/my/index.cjs +3 -0
  956. package/locale/my/index.cjs.js +3 -0
  957. package/locale/my/index.js +1 -3
  958. package/locale/my/package.json +14 -0
  959. package/locale/mzn/index.cjs +3 -0
  960. package/locale/mzn/index.cjs.js +3 -0
  961. package/locale/mzn/index.js +1 -3
  962. package/locale/mzn/package.json +14 -0
  963. package/locale/nb/index.cjs +3 -0
  964. package/locale/nb/index.cjs.js +3 -0
  965. package/locale/nb/index.js +1 -3
  966. package/locale/nb/package.json +14 -0
  967. package/locale/ne/index.cjs +3 -0
  968. package/locale/ne/index.cjs.js +3 -0
  969. package/locale/ne/index.js +1 -3
  970. package/locale/ne/package.json +14 -0
  971. package/locale/nl/index.cjs +3 -0
  972. package/locale/nl/index.cjs.js +3 -0
  973. package/locale/nl/index.js +1 -3
  974. package/locale/nl/package.json +14 -0
  975. package/locale/nn/index.cjs +3 -0
  976. package/locale/nn/index.cjs.js +3 -0
  977. package/locale/nn/index.js +1 -3
  978. package/locale/nn/package.json +14 -0
  979. package/locale/no/index.cjs +3 -0
  980. package/locale/no/index.cjs.js +3 -0
  981. package/locale/no/index.js +1 -3
  982. package/locale/no/package.json +14 -0
  983. package/locale/or/index.cjs +3 -0
  984. package/locale/or/index.cjs.js +3 -0
  985. package/locale/or/index.js +1 -3
  986. package/locale/or/package.json +14 -0
  987. package/locale/pa/index.cjs +3 -0
  988. package/locale/pa/index.cjs.js +3 -0
  989. package/locale/pa/index.js +1 -3
  990. package/locale/pa/package.json +14 -0
  991. package/locale/pcm/index.cjs +3 -0
  992. package/locale/pcm/index.cjs.js +3 -0
  993. package/locale/pcm/index.js +1 -3
  994. package/locale/pcm/package.json +14 -0
  995. package/locale/pl/index.cjs +3 -0
  996. package/locale/pl/index.cjs.js +3 -0
  997. package/locale/pl/index.js +1 -3
  998. package/locale/pl/package.json +14 -0
  999. package/locale/ps/index.cjs +3 -0
  1000. package/locale/ps/index.cjs.js +3 -0
  1001. package/locale/ps/index.js +1 -3
  1002. package/locale/ps/package.json +14 -0
  1003. package/locale/ps-PK/index.cjs +3 -0
  1004. package/locale/ps-PK/index.cjs.js +3 -0
  1005. package/locale/ps-PK/index.js +1 -3
  1006. package/locale/ps-PK/package.json +14 -0
  1007. package/locale/pt/index.cjs +3 -0
  1008. package/locale/pt/index.cjs.js +3 -0
  1009. package/locale/pt/index.js +1 -3
  1010. package/locale/pt/package.json +14 -0
  1011. package/locale/pt-AO/index.cjs +3 -0
  1012. package/locale/pt-AO/index.cjs.js +3 -0
  1013. package/locale/pt-AO/index.js +1 -3
  1014. package/locale/pt-AO/package.json +14 -0
  1015. package/locale/pt-CH/index.cjs +3 -0
  1016. package/locale/pt-CH/index.cjs.js +3 -0
  1017. package/locale/pt-CH/index.js +1 -3
  1018. package/locale/pt-CH/package.json +14 -0
  1019. package/locale/pt-CV/index.cjs +3 -0
  1020. package/locale/pt-CV/index.cjs.js +3 -0
  1021. package/locale/pt-CV/index.js +1 -3
  1022. package/locale/pt-CV/package.json +14 -0
  1023. package/locale/pt-GQ/index.cjs +3 -0
  1024. package/locale/pt-GQ/index.cjs.js +3 -0
  1025. package/locale/pt-GQ/index.js +1 -3
  1026. package/locale/pt-GQ/package.json +14 -0
  1027. package/locale/pt-GW/index.cjs +3 -0
  1028. package/locale/pt-GW/index.cjs.js +3 -0
  1029. package/locale/pt-GW/index.js +1 -3
  1030. package/locale/pt-GW/package.json +14 -0
  1031. package/locale/pt-LU/index.cjs +3 -0
  1032. package/locale/pt-LU/index.cjs.js +3 -0
  1033. package/locale/pt-LU/index.js +1 -3
  1034. package/locale/pt-LU/package.json +14 -0
  1035. package/locale/pt-MO/index.cjs +3 -0
  1036. package/locale/pt-MO/index.cjs.js +3 -0
  1037. package/locale/pt-MO/index.js +1 -3
  1038. package/locale/pt-MO/package.json +14 -0
  1039. package/locale/pt-MZ/index.cjs +3 -0
  1040. package/locale/pt-MZ/index.cjs.js +3 -0
  1041. package/locale/pt-MZ/index.js +1 -3
  1042. package/locale/pt-MZ/package.json +14 -0
  1043. package/locale/pt-PT/index.cjs +3 -0
  1044. package/locale/pt-PT/index.cjs.js +3 -0
  1045. package/locale/pt-PT/index.js +1 -3
  1046. package/locale/pt-PT/package.json +14 -0
  1047. package/locale/pt-ST/index.cjs +3 -0
  1048. package/locale/pt-ST/index.cjs.js +3 -0
  1049. package/locale/pt-ST/index.js +1 -3
  1050. package/locale/pt-ST/package.json +14 -0
  1051. package/locale/pt-TL/index.cjs +3 -0
  1052. package/locale/pt-TL/index.cjs.js +3 -0
  1053. package/locale/pt-TL/index.js +1 -3
  1054. package/locale/pt-TL/package.json +14 -0
  1055. package/locale/qu/index.cjs +3 -0
  1056. package/locale/qu/index.cjs.js +3 -0
  1057. package/locale/qu/index.js +1 -3
  1058. package/locale/qu/package.json +14 -0
  1059. package/locale/rm/index.cjs +3 -0
  1060. package/locale/rm/index.cjs.js +3 -0
  1061. package/locale/rm/index.js +1 -3
  1062. package/locale/rm/package.json +14 -0
  1063. package/locale/ro/index.cjs +3 -0
  1064. package/locale/ro/index.cjs.js +3 -0
  1065. package/locale/ro/index.js +1 -3
  1066. package/locale/ro/package.json +14 -0
  1067. package/locale/ru/index.cjs +3 -0
  1068. package/locale/ru/index.cjs.js +3 -0
  1069. package/locale/ru/index.js +1 -3
  1070. package/locale/ru/package.json +14 -0
  1071. package/locale/sah/index.cjs +3 -0
  1072. package/locale/sah/index.cjs.js +3 -0
  1073. package/locale/sah/index.js +1 -3
  1074. package/locale/sah/package.json +14 -0
  1075. package/locale/sc/index.cjs +3 -0
  1076. package/locale/sc/index.cjs.js +3 -0
  1077. package/locale/sc/index.js +1 -3
  1078. package/locale/sc/package.json +14 -0
  1079. package/locale/sd/index.cjs +3 -0
  1080. package/locale/sd/index.cjs.js +3 -0
  1081. package/locale/sd/index.js +1 -3
  1082. package/locale/sd/package.json +14 -0
  1083. package/locale/se/index.cjs +3 -0
  1084. package/locale/se/index.cjs.js +3 -0
  1085. package/locale/se/index.js +1 -3
  1086. package/locale/se/package.json +14 -0
  1087. package/locale/se-FI/index.cjs +3 -0
  1088. package/locale/se-FI/index.cjs.js +3 -0
  1089. package/locale/se-FI/index.js +1 -3
  1090. package/locale/se-FI/package.json +14 -0
  1091. package/locale/si/index.cjs +3 -0
  1092. package/locale/si/index.cjs.js +3 -0
  1093. package/locale/si/index.js +1 -3
  1094. package/locale/si/package.json +14 -0
  1095. package/locale/sk/index.cjs +3 -0
  1096. package/locale/sk/index.cjs.js +3 -0
  1097. package/locale/sk/index.js +1 -3
  1098. package/locale/sk/package.json +14 -0
  1099. package/locale/sl/index.cjs +3 -0
  1100. package/locale/sl/index.cjs.js +3 -0
  1101. package/locale/sl/index.js +1 -3
  1102. package/locale/sl/package.json +14 -0
  1103. package/locale/so/index.cjs +3 -0
  1104. package/locale/so/index.cjs.js +3 -0
  1105. package/locale/so/index.js +1 -3
  1106. package/locale/so/package.json +14 -0
  1107. package/locale/sq/index.cjs +3 -0
  1108. package/locale/sq/index.cjs.js +3 -0
  1109. package/locale/sq/index.js +1 -3
  1110. package/locale/sq/package.json +14 -0
  1111. package/locale/sr/index.cjs +3 -0
  1112. package/locale/sr/index.cjs.js +3 -0
  1113. package/locale/sr/index.js +1 -3
  1114. package/locale/sr/package.json +14 -0
  1115. package/locale/sr-Cyrl-BA/index.cjs +3 -0
  1116. package/locale/sr-Cyrl-BA/index.cjs.js +3 -0
  1117. package/locale/sr-Cyrl-BA/index.js +1 -3
  1118. package/locale/sr-Cyrl-BA/package.json +14 -0
  1119. package/locale/sr-Latn/index.cjs +3 -0
  1120. package/locale/sr-Latn/index.cjs.js +3 -0
  1121. package/locale/sr-Latn/index.js +1 -3
  1122. package/locale/sr-Latn/package.json +14 -0
  1123. package/locale/sr-Latn-BA/index.cjs +3 -0
  1124. package/locale/sr-Latn-BA/index.cjs.js +3 -0
  1125. package/locale/sr-Latn-BA/index.js +1 -3
  1126. package/locale/sr-Latn-BA/package.json +14 -0
  1127. package/locale/su/index.cjs +3 -0
  1128. package/locale/su/index.cjs.js +3 -0
  1129. package/locale/su/index.js +1 -3
  1130. package/locale/su/package.json +14 -0
  1131. package/locale/sv/index.cjs +3 -0
  1132. package/locale/sv/index.cjs.js +3 -0
  1133. package/locale/sv/index.js +1 -3
  1134. package/locale/sv/package.json +14 -0
  1135. package/locale/sw/index.cjs +3 -0
  1136. package/locale/sw/index.cjs.js +3 -0
  1137. package/locale/sw/index.js +1 -3
  1138. package/locale/sw/package.json +14 -0
  1139. package/locale/ta/index.cjs +3 -0
  1140. package/locale/ta/index.cjs.js +3 -0
  1141. package/locale/ta/index.js +1 -3
  1142. package/locale/ta/package.json +14 -0
  1143. package/locale/te/index.cjs +3 -0
  1144. package/locale/te/index.cjs.js +3 -0
  1145. package/locale/te/index.js +1 -3
  1146. package/locale/te/package.json +14 -0
  1147. package/locale/tg/index.cjs +3 -0
  1148. package/locale/tg/index.cjs.js +3 -0
  1149. package/locale/tg/index.js +1 -3
  1150. package/locale/tg/package.json +14 -0
  1151. package/locale/th/index.cjs +3 -0
  1152. package/locale/th/index.cjs.js +3 -0
  1153. package/locale/th/index.js +1 -3
  1154. package/locale/th/package.json +14 -0
  1155. package/locale/ti/index.cjs +3 -0
  1156. package/locale/ti/index.cjs.js +3 -0
  1157. package/locale/ti/index.js +1 -3
  1158. package/locale/ti/package.json +14 -0
  1159. package/locale/tk/index.cjs +3 -0
  1160. package/locale/tk/index.cjs.js +3 -0
  1161. package/locale/tk/index.js +1 -3
  1162. package/locale/tk/package.json +14 -0
  1163. package/locale/to/index.cjs +3 -0
  1164. package/locale/to/index.cjs.js +3 -0
  1165. package/locale/to/index.js +1 -3
  1166. package/locale/to/package.json +14 -0
  1167. package/locale/tr/index.cjs +3 -0
  1168. package/locale/tr/index.cjs.js +3 -0
  1169. package/locale/tr/index.js +1 -3
  1170. package/locale/tr/package.json +14 -0
  1171. package/locale/tt/index.cjs +3 -0
  1172. package/locale/tt/index.cjs.js +3 -0
  1173. package/locale/tt/index.js +1 -3
  1174. package/locale/tt/package.json +14 -0
  1175. package/locale/ug/index.cjs +3 -0
  1176. package/locale/ug/index.cjs.js +3 -0
  1177. package/locale/ug/index.js +1 -3
  1178. package/locale/ug/package.json +14 -0
  1179. package/locale/uk/index.cjs +3 -0
  1180. package/locale/uk/index.cjs.js +3 -0
  1181. package/locale/uk/index.js +1 -3
  1182. package/locale/uk/package.json +14 -0
  1183. package/locale/ur/index.cjs +3 -0
  1184. package/locale/ur/index.cjs.js +3 -0
  1185. package/locale/ur/index.js +1 -3
  1186. package/locale/ur/package.json +14 -0
  1187. package/locale/ur-IN/index.cjs +3 -0
  1188. package/locale/ur-IN/index.cjs.js +3 -0
  1189. package/locale/ur-IN/index.js +1 -3
  1190. package/locale/ur-IN/package.json +14 -0
  1191. package/locale/uz/index.cjs +3 -0
  1192. package/locale/uz/index.cjs.js +3 -0
  1193. package/locale/uz/index.js +1 -3
  1194. package/locale/uz/package.json +14 -0
  1195. package/locale/uz-Cyrl/index.cjs +3 -0
  1196. package/locale/uz-Cyrl/index.cjs.js +3 -0
  1197. package/locale/uz-Cyrl/index.js +1 -3
  1198. package/locale/uz-Cyrl/package.json +14 -0
  1199. package/locale/vi/index.cjs +3 -0
  1200. package/locale/vi/index.cjs.js +3 -0
  1201. package/locale/vi/index.js +1 -3
  1202. package/locale/vi/package.json +14 -0
  1203. package/locale/wae/index.cjs +3 -0
  1204. package/locale/wae/index.cjs.js +3 -0
  1205. package/locale/wae/index.js +1 -3
  1206. package/locale/wae/package.json +14 -0
  1207. package/locale/wo/index.cjs +3 -0
  1208. package/locale/wo/index.cjs.js +3 -0
  1209. package/locale/wo/index.js +1 -3
  1210. package/locale/wo/package.json +14 -0
  1211. package/locale/yi/index.cjs +3 -0
  1212. package/locale/yi/index.cjs.js +3 -0
  1213. package/locale/yi/index.js +1 -3
  1214. package/locale/yi/package.json +14 -0
  1215. package/locale/yo/index.cjs +3 -0
  1216. package/locale/yo/index.cjs.js +3 -0
  1217. package/locale/yo/index.js +1 -3
  1218. package/locale/yo/package.json +14 -0
  1219. package/locale/yo-BJ/index.cjs +3 -0
  1220. package/locale/yo-BJ/index.cjs.js +3 -0
  1221. package/locale/yo-BJ/index.js +1 -3
  1222. package/locale/yo-BJ/package.json +14 -0
  1223. package/locale/yrl/index.cjs +3 -0
  1224. package/locale/yrl/index.cjs.js +3 -0
  1225. package/locale/yrl/index.js +1 -3
  1226. package/locale/yrl/package.json +14 -0
  1227. package/locale/yue/index.cjs +3 -0
  1228. package/locale/yue/index.cjs.js +3 -0
  1229. package/locale/yue/index.js +1 -3
  1230. package/locale/yue/package.json +14 -0
  1231. package/locale/yue-Hans/index.cjs +3 -0
  1232. package/locale/yue-Hans/index.cjs.js +3 -0
  1233. package/locale/yue-Hans/index.js +1 -3
  1234. package/locale/yue-Hans/package.json +14 -0
  1235. package/locale/zh/index.cjs +3 -0
  1236. package/locale/zh/index.cjs.js +3 -0
  1237. package/locale/zh/index.js +1 -3
  1238. package/locale/zh/package.json +14 -0
  1239. package/locale/zh-Hans-HK/index.cjs +3 -0
  1240. package/locale/zh-Hans-HK/index.cjs.js +3 -0
  1241. package/locale/zh-Hans-HK/index.js +1 -3
  1242. package/locale/zh-Hans-HK/package.json +14 -0
  1243. package/locale/zh-Hans-MO/index.cjs +3 -0
  1244. package/locale/zh-Hans-MO/index.cjs.js +3 -0
  1245. package/locale/zh-Hans-MO/index.js +1 -3
  1246. package/locale/zh-Hans-MO/package.json +14 -0
  1247. package/locale/zh-Hans-SG/index.cjs +3 -0
  1248. package/locale/zh-Hans-SG/index.cjs.js +3 -0
  1249. package/locale/zh-Hans-SG/index.js +1 -3
  1250. package/locale/zh-Hans-SG/package.json +14 -0
  1251. package/locale/zh-Hant/index.cjs +3 -0
  1252. package/locale/zh-Hant/index.cjs.js +3 -0
  1253. package/locale/zh-Hant/index.js +1 -3
  1254. package/locale/zh-Hant/package.json +14 -0
  1255. package/locale/zh-Hant-HK/index.cjs +3 -0
  1256. package/locale/zh-Hant-HK/index.cjs.js +3 -0
  1257. package/locale/zh-Hant-HK/index.js +1 -3
  1258. package/locale/zh-Hant-HK/package.json +14 -0
  1259. package/locale/zh-Hant-MO/index.cjs +3 -0
  1260. package/locale/zh-Hant-MO/index.cjs.js +3 -0
  1261. package/locale/zh-Hant-MO/index.js +1 -3
  1262. package/locale/zh-Hant-MO/package.json +14 -0
  1263. package/locale/zu/index.cjs +3 -0
  1264. package/locale/zu/index.cjs.js +3 -0
  1265. package/locale/zu/index.js +1 -3
  1266. package/locale/zu/package.json +14 -0
  1267. package/modules/LocaleDataStore.js.map +1 -1
  1268. package/modules/PropTypes.js +7 -1
  1269. package/modules/PropTypes.js.map +1 -1
  1270. package/modules/TimeAgo.js +25 -32
  1271. package/modules/TimeAgo.js.map +1 -1
  1272. package/modules/TimeAgo.test.js +7 -7
  1273. package/modules/TimeAgo.test.js.map +1 -1
  1274. package/modules/cache.js +8 -12
  1275. package/modules/cache.js.map +1 -1
  1276. package/modules/cache.test.js +1 -1
  1277. package/modules/cache.test.js.map +1 -1
  1278. package/modules/isStyleObject.js +1 -1
  1279. package/modules/isStyleObject.js.map +1 -1
  1280. package/modules/isStyleObject.test.js +1 -1
  1281. package/modules/isStyleObject.test.js.map +1 -1
  1282. package/modules/locale.js +9 -14
  1283. package/modules/locale.js.map +1 -1
  1284. package/modules/locale.test.js +2 -2
  1285. package/modules/locale.test.js.map +1 -1
  1286. package/modules/round.js.map +1 -1
  1287. package/modules/steps/approximate.js +1 -1
  1288. package/modules/steps/approximate.js.map +1 -1
  1289. package/modules/steps/approximate.test.js +2 -2
  1290. package/modules/steps/approximate.test.js.map +1 -1
  1291. package/modules/steps/getStep.js +6 -4
  1292. package/modules/steps/getStep.js.map +1 -1
  1293. package/modules/steps/getStep.test.js +5 -5
  1294. package/modules/steps/getStep.test.js.map +1 -1
  1295. package/modules/steps/getStepDenominator.js +1 -1
  1296. package/modules/steps/getStepDenominator.js.map +1 -1
  1297. package/modules/steps/getStepDenominator.test.js +1 -1
  1298. package/modules/steps/getStepDenominator.test.js.map +1 -1
  1299. package/modules/steps/getStepMinTime.js +4 -4
  1300. package/modules/steps/getStepMinTime.js.map +1 -1
  1301. package/modules/steps/getStepMinTime.test.js +1 -1
  1302. package/modules/steps/getStepMinTime.test.js.map +1 -1
  1303. package/modules/steps/getTimeToNextUpdate.js +3 -3
  1304. package/modules/steps/getTimeToNextUpdate.js.map +1 -1
  1305. package/modules/steps/getTimeToNextUpdate.test.js +1 -1
  1306. package/modules/steps/getTimeToNextUpdate.test.js.map +1 -1
  1307. package/modules/steps/getTimeToNextUpdateForUnit.js +2 -2
  1308. package/modules/steps/getTimeToNextUpdateForUnit.js.map +1 -1
  1309. package/modules/steps/getTimeToNextUpdateForUnit.test.js +1 -1
  1310. package/modules/steps/getTimeToNextUpdateForUnit.test.js.map +1 -1
  1311. package/modules/steps/helpers.js.map +1 -1
  1312. package/modules/steps/helpers.test.js +1 -1
  1313. package/modules/steps/helpers.test.js.map +1 -1
  1314. package/modules/steps/index.js +4 -4
  1315. package/modules/steps/index.js.map +1 -1
  1316. package/modules/steps/renameLegacyProperties.js +7 -7
  1317. package/modules/steps/renameLegacyProperties.js.map +1 -1
  1318. package/modules/steps/renameLegacyProperties.test.js +2 -2
  1319. package/modules/steps/renameLegacyProperties.test.js.map +1 -1
  1320. package/modules/steps/round.js.map +1 -1
  1321. package/modules/steps/round.test.js +2 -2
  1322. package/modules/steps/round.test.js.map +1 -1
  1323. package/modules/steps/units.js.map +1 -1
  1324. package/modules/style/approximate.js +1 -1
  1325. package/modules/style/approximate.js.map +1 -1
  1326. package/modules/style/approximateTime.js +1 -1
  1327. package/modules/style/approximateTime.js.map +1 -1
  1328. package/modules/style/approximateTime.test.js +11 -16
  1329. package/modules/style/approximateTime.test.js.map +1 -1
  1330. package/modules/style/getStyleByName.js +13 -13
  1331. package/modules/style/getStyleByName.js.map +1 -1
  1332. package/modules/style/mini.js.map +1 -1
  1333. package/modules/style/mini.test.js +8 -6
  1334. package/modules/style/mini.test.js.map +1 -1
  1335. package/modules/style/miniMinute.js +5 -3
  1336. package/modules/style/miniMinute.js.map +1 -1
  1337. package/modules/style/miniMinute.test.js +8 -6
  1338. package/modules/style/miniMinute.test.js.map +1 -1
  1339. package/modules/style/miniMinuteNow.js +5 -3
  1340. package/modules/style/miniMinuteNow.js.map +1 -1
  1341. package/modules/style/miniMinuteNow.test.js +8 -6
  1342. package/modules/style/miniMinuteNow.test.js.map +1 -1
  1343. package/modules/style/miniNow.js +5 -3
  1344. package/modules/style/miniNow.js.map +1 -1
  1345. package/modules/style/miniNow.test.js +8 -6
  1346. package/modules/style/miniNow.test.js.map +1 -1
  1347. package/modules/style/renameLegacyProperties.js +4 -2
  1348. package/modules/style/renameLegacyProperties.js.map +1 -1
  1349. package/modules/style/renameLegacyProperties.test.js +2 -2
  1350. package/modules/style/renameLegacyProperties.test.js.map +1 -1
  1351. package/modules/style/round.js +1 -1
  1352. package/modules/style/round.js.map +1 -1
  1353. package/modules/style/round.test.js +17 -11
  1354. package/modules/style/round.test.js.map +1 -1
  1355. package/modules/style/roundMinute.js +5 -3
  1356. package/modules/style/roundMinute.js.map +1 -1
  1357. package/modules/style/roundMinute.test.js +8 -6
  1358. package/modules/style/roundMinute.test.js.map +1 -1
  1359. package/modules/style/twitter.js +13 -13
  1360. package/modules/style/twitter.js.map +1 -1
  1361. package/modules/style/twitter.test.js +9 -7
  1362. package/modules/style/twitter.test.js.map +1 -1
  1363. package/modules/style/twitterFirstMinute.js +7 -5
  1364. package/modules/style/twitterFirstMinute.js.map +1 -1
  1365. package/modules/style/twitterFirstMinute.test.js +10 -8
  1366. package/modules/style/twitterFirstMinute.test.js.map +1 -1
  1367. package/modules/style/twitterMinute.js +5 -3
  1368. package/modules/style/twitterMinute.js.map +1 -1
  1369. package/modules/style/twitterMinute.test.js +10 -8
  1370. package/modules/style/twitterMinute.test.js.map +1 -1
  1371. package/modules/style/twitterMinuteNow.js +5 -3
  1372. package/modules/style/twitterMinuteNow.js.map +1 -1
  1373. package/modules/style/twitterMinuteNow.test.js +10 -8
  1374. package/modules/style/twitterMinuteNow.test.js.map +1 -1
  1375. package/modules/style/twitterNow.js +5 -3
  1376. package/modules/style/twitterNow.js.map +1 -1
  1377. package/modules/style/twitterNow.test.js +10 -8
  1378. package/modules/style/twitterNow.test.js.map +1 -1
  1379. package/package.json +671 -75
  1380. package/prop-types/index.cjs +2 -0
  1381. package/prop-types/index.cjs.js +7 -0
  1382. package/prop-types/index.js +1 -1
  1383. package/prop-types/package.json +9 -3
  1384. package/{rollup.config.js → rollup.config.mjs} +0 -0
  1385. package/steps/index.cjs +1 -0
  1386. package/steps/index.cjs.js +6 -0
  1387. package/steps/index.js +1 -1
  1388. package/steps/package.json +9 -3
  1389. package/cache/index.commonjs.js +0 -2
  1390. package/gradation/index.commonjs.js +0 -2
  1391. package/index.commonjs.js +0 -9
  1392. package/load-all-locales.js +0 -278
  1393. package/prop-types/index.commonjs.js +0 -2
  1394. package/steps/index.commonjs.js +0 -2
package/CHANGELOG.md CHANGED
@@ -33,6 +33,11 @@ TO DO: "time" style should use "round" scale instead of "approximate".
33
33
  TO DO: if `style` is passed as an object then maybe it should be passed as part of `options` (and document that in the "Custom" section of the readme).
34
34
  -->
35
35
 
36
+ 2.4.0 / 19.05.2022
37
+ ==================
38
+
39
+ * Moved the package to use "ES Modules" exports.
40
+
36
41
  2.3.13 / 11.02.2022
37
42
  ==================
38
43
 
package/README.md CHANGED
@@ -432,7 +432,7 @@ New labels can be added by calling `TimeAgo.addLabels()` function.
432
432
  ```js
433
433
  import TimeAgo from 'javascript-time-ago'
434
434
  import en from 'javascript-time-ago/locale/en.json'
435
- import { round } from 'javascript-time-ago/locale/steps'
435
+ import { round } from 'javascript-time-ago/steps'
436
436
 
437
437
  TimeAgo.addDefaultLocale(en)
438
438
 
@@ -906,6 +906,32 @@ npm install [module name with version].tar.gz
906
906
  ```
907
907
  -->
908
908
 
909
+ ## Tests
910
+
911
+ This component comes with a 100% code coverage.
912
+
913
+ To run tests:
914
+
915
+ ```
916
+ npm test
917
+ ```
918
+
919
+ To generate a code coverage report:
920
+
921
+ ```
922
+ npm run test-coverage
923
+ ```
924
+
925
+ The code coverage report can be viewed by opening `./coverage/lcov-report/index.html`.
926
+
927
+ The `handlebars@4.5.3` [work](https://github.com/handlebars-lang/handlebars.js/issues/1646#issuecomment-578306544)[around](https://github.com/facebook/jest/issues/9396#issuecomment-573328488) in `devDependencies` is for the test coverage to not produce empty reports:
928
+
929
+ ```
930
+ Handlebars: Access has been denied to resolve the property "statements" because it is not an "own property" of its parent.
931
+ You can add a runtime option to disable the check or this warning:
932
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details
933
+ ```
934
+
909
935
  ## GitHub
910
936
 
911
937
  On March 9th, 2020, GitHub, Inc. silently [banned](https://medium.com/@catamphetamine/how-github-blocked-me-and-all-my-libraries-c32c61f061d3) my account (erasing all my repos, issues and comments, even in my employer's private repos) without any notice or explanation. Because of that, all source codes had to be promptly moved to GitLab. The [GitHub repo](https://github.com/catamphetamine/javascript-time-ago) is now only used as a backup (you can star the repo there too), and the primary repo is now the [GitLab one](https://gitlab.com/catamphetamine/javascript-time-ago). Issues can be reported in any repo.
@@ -0,0 +1,11 @@
1
+ // Creates a `package.json` file in the CommonJS build folder.
2
+ // That marks that whole folder as CommonJS so that Node.js doesn't complain
3
+ // about `require()`-ing those files.
4
+
5
+ import fs from 'fs'
6
+
7
+ fs.writeFileSync('./commonjs/package.json', JSON.stringify({
8
+ name: 'javascript-time-ago/commonjs',
9
+ type: 'commonjs',
10
+ private: true
11
+ }, null, 2), 'utf8')
@@ -3,19 +3,44 @@ import fs from 'fs'
3
3
 
4
4
  const locales = []
5
5
 
6
- fs.readdirSync(path.resolve(__dirname, '../locale')).forEach((locale) => {
7
- const localePath = path.resolve(__dirname, '../locale', locale)
6
+ fs.readdirSync(path.resolve('./locale')).forEach((locale) => {
7
+ const localePath = path.resolve('./locale', locale)
8
8
  if (fs.statSync(localePath).isDirectory()) {
9
- if (fs.existsSync(path.resolve(__dirname, '../locale', locale, 'index.js'))) {
9
+ if (fs.existsSync(path.resolve('./locale', locale, 'index.js'))) {
10
10
  locales.push(locale)
11
11
  }
12
12
  }
13
13
  })
14
14
 
15
- fs.writeFileSync(path.resolve(__dirname, '../load-all-locales.js'),
15
+ // Write `index.js` file.
16
+ fs.writeFileSync(path.resolve('./load-all-locales/index.js'),
16
17
  `
18
+ import TimeAgo from "javascript-time-ago"
19
+
20
+ ${locales.map(locale => 'import ' + getLocaleVariableName(locale) + ' from "javascript-time-ago/locale/' + locale + '.json"').join('\n')}
21
+
22
+ ${locales.map(locale => 'TimeAgo.addLocale(' + getLocaleVariableName(locale) + ')').join('\n')}
23
+ `
24
+ .trim())
25
+
26
+ // Write `index.cjs` file.
27
+ fs.writeFileSync(path.resolve('./load-all-locales/index.cjs'),
28
+ `
29
+ var TimeAgo = require("javascript-time-ago")
30
+ ${locales.map(locale => 'TimeAgo.addLocale(require("javascript-time-ago/locale/' + locale + '.json"))').join('\n')}
31
+ `
32
+ .trim())
33
+
34
+ // Write `index.cjs.js` file.
35
+ fs.writeFileSync(path.resolve('./load-all-locales/index.cjs.js'),
36
+ `
37
+ // This file id deprecated.
38
+ // It's the same as \`index.cjs\`, just with an added \`.js\` file extension.
39
+ // It only exists for compatibility with the software that doesn't like \`*.cjs\` file extension.
40
+ // https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/61#note_950728292
41
+
17
42
  var TimeAgo = require("javascript-time-ago")
18
- ${locales.map(locale => 'TimeAgo.addLocale(require("javascript-time-ago/locale/' + locale + '"))').join('\n')}
43
+ ${locales.map(locale => 'TimeAgo.addLocale(require("javascript-time-ago/locale/' + locale + '.json"))').join('\n')}
19
44
  `
20
45
  .trim())
21
46
 
@@ -26,4 +51,11 @@ ${locales.map(locale => 'TimeAgo.addLocale(require("javascript-time-ago/locale/'
26
51
  // ${locales.map(locale => 'import ' + locale + ' from "javascript-time-ago/locale/' + locale + '"').join('\n')}
27
52
  //
28
53
  // ${locales.map(locale => 'TimeAgo.addLocale(' + locale + ')').join('\n')}
29
- // `
54
+ // `
55
+
56
+ // Transforms a locale name to a javascript variable name.
57
+ // Example: "zh-Hant-MO" -> "zh_Hant_MO"
58
+ // Example: "en-001" -> "en_001"
59
+ function getLocaleVariableName(locale) {
60
+ return locale.replace(/[^a-zA-Z_\d]/g, '_')
61
+ }
@@ -1,7 +1,7 @@
1
1
  import path from 'path'
2
2
  import fs from 'fs-extra'
3
3
 
4
- const localesDirectory = path.join(__dirname, '../locale')
4
+ const localesDirectory = path.resolve('./locale')
5
5
 
6
6
  const ADDITIONAL_STYLES = [
7
7
  // 'now' should come before 'mini' because `now.current`
@@ -12,9 +12,42 @@ const ADDITIONAL_STYLES = [
12
12
  'long-time'
13
13
  ]
14
14
 
15
- for (const locale of getAllLocales()) {
15
+ const ALL_LOCALES = getAllLocales()
16
+
17
+ for (const locale of ALL_LOCALES) {
18
+ writeLocaleDataFile(locale)
19
+ createLegacyCompatibilityLocaleFolder(locale)
20
+ }
21
+
22
+ addLocaleExports(ALL_LOCALES)
23
+
24
+ /**
25
+ * Returns a list of all locales supported by `relative-time-format`.
26
+ * @return {string[]}
27
+ */
28
+ export function getAllLocales() {
29
+ const LOCALE_FILE_NAME_REG_EXP = /([^\/]+)\.json$/
30
+ return fs.readdirSync(path.join('./node_modules/relative-time-format/locale/'))
31
+ .filter(_ => fs.statSync(path.join('./node_modules/relative-time-format/locale', _)).isFile() && LOCALE_FILE_NAME_REG_EXP.test(_))
32
+ .map(_ => _.match(LOCALE_FILE_NAME_REG_EXP)[1])
33
+ }
34
+
35
+ function getNowLabel(localeData) {
36
+ if (localeData.now) {
37
+ if (localeData.now.now.current) {
38
+ return localeData.now.now.current
39
+ }
40
+ }
41
+ return localeData.long.second.current
42
+ }
43
+
44
+ function readJsonFromFile(path) {
45
+ return JSON.parse(fs.readFileSync(path, 'utf8'))
46
+ }
47
+
48
+ function writeLocaleDataFile(locale) {
16
49
  // CLDR locale data: "long", "short", "narrow" labels.
17
- const baseLocaleData = require('relative-time-format/locale/' + locale)
50
+ const baseLocaleData = readJsonFromFile('./node_modules/relative-time-format/locale/' + locale + '.json')
18
51
 
19
52
  const localeData = {
20
53
  ...baseLocaleData,
@@ -22,9 +55,9 @@ for (const locale of getAllLocales()) {
22
55
  }
23
56
 
24
57
  for (const style of ADDITIONAL_STYLES) {
25
- const labelsFilePath = path.join(__dirname, '../locale-more-styles', locale, `${style}.json`)
58
+ const labelsFilePath = path.join('./locale-more-styles', locale, `${style}.json`)
26
59
  if (fs.existsSync(labelsFilePath)) {
27
- const labels = require(labelsFilePath)
60
+ const labels = readJsonFromFile(labelsFilePath)
28
61
  localeData[style] = labels
29
62
  if (style === 'mini') {
30
63
  if (!labels.now) {
@@ -47,36 +80,88 @@ for (const locale of getAllLocales()) {
47
80
  path.join(localesDirectory, `${locale}.json`),
48
81
  JSON.stringify(localeData, null, '\t')
49
82
  )
83
+ }
50
84
 
51
- // Create the legacy-compatibility `index.js` file.
85
+ // (deprecated)
86
+ // Creates a legacy-compatibility locale directory export.
87
+ function createLegacyCompatibilityLocaleFolder(locale) {
52
88
  const localeDirectory = path.join(localesDirectory, locale)
89
+
90
+ // Create a legacy-compatibility `index.js` file.
53
91
  fs.outputFileSync(
54
92
  path.join(localeDirectory, 'index.js'),
55
93
  `
94
+ export { default } from '../${locale}.json'
95
+ `.trim()
96
+ )
97
+
98
+ // Create a legacy-compatibility `index.cjs` file.
99
+ fs.outputFileSync(
100
+ path.join(localeDirectory, 'index.cjs'),
101
+ `
56
102
  var localeData = require('../${locale}.json')
57
103
  exports = module.exports = localeData
58
104
  exports['default'] = localeData
59
105
  `.trim()
60
106
  )
61
- }
62
107
 
108
+ // Create a legacy-compatibility `index.cjs.js` file.
109
+ // It's the same as `index.cjs`, just with an added `.js` file extension.
110
+ // It only exists for compatibility with the software that doesn't like `*.cjs` file extension.
111
+ // https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/61#note_950728292
112
+ fs.outputFileSync(
113
+ path.join(localeDirectory, 'index.cjs.js'),
114
+ `
115
+ var localeData = require('../${locale}.json')
116
+ exports = module.exports = localeData
117
+ exports['default'] = localeData
118
+ `.trim()
119
+ )
63
120
 
64
- /**
65
- * Returns a list of all locales supported by `relative-time-format`.
66
- * @return {string[]}
67
- */
68
- export function getAllLocales() {
69
- const LOCALE_FILE_NAME_REG_EXP = /([^\/]+)\.json$/
70
- return fs.readdirSync(path.join(__dirname, '../node_modules/relative-time-format/locale/'))
71
- .filter(_ => fs.statSync(path.join(__dirname, '../node_modules/relative-time-format/locale', _)).isFile() && LOCALE_FILE_NAME_REG_EXP.test(_))
72
- .map(_ => _.match(LOCALE_FILE_NAME_REG_EXP)[1])
121
+ // Create `package.json` for the legacy-compatibility locale directory.
122
+ fs.outputFileSync(
123
+ path.join(localeDirectory, 'package.json'),
124
+ `
125
+ {
126
+ "name": "javascript-time-ago/locale/${locale}",
127
+ "private": true,
128
+ "main": "index.cjs",
129
+ "module": "index.js",
130
+ "type": "module",
131
+ "exports": {
132
+ ".": {
133
+ "import": "./index.js",
134
+ "require": "./index.cjs"
135
+ }
136
+ },
137
+ "sideEffects": false
138
+ }
139
+ `.trim()
140
+ )
73
141
  }
74
142
 
75
- function getNowLabel(localeData) {
76
- if (localeData.now) {
77
- if (localeData.now.now.current) {
78
- return localeData.now.now.current
143
+ // Add `export` entries in `package.json`.
144
+ function addLocaleExports(ALL_LOCALES) {
145
+ // Read `package.json` file.
146
+ const packageJson = readJsonFromFile('./package.json')
147
+
148
+ // Remove all locale exports.
149
+ for (const path of Object.keys(packageJson.exports)) {
150
+ if (path.startsWith('./locale/')) {
151
+ delete packageJson.exports[path]
79
152
  }
80
153
  }
81
- return localeData.long.second.current
154
+
155
+ // Re-add all locale exports.
156
+ packageJson.exports = {
157
+ ...packageJson.exports,
158
+ ...ALL_LOCALES.reduce((all, locale) => {
159
+ all[`./locale/${locale}`] = `./locale/${locale}.json`
160
+ all[`./locale/${locale}.json`] = `./locale/${locale}.json`
161
+ return all
162
+ }, {})
163
+ }
164
+
165
+ // Save `package.json` file.
166
+ fs.writeFileSync('./package.json', JSON.stringify(packageJson, null, 2) + '\n', 'utf8')
82
167
  }
@@ -1,2 +1,2 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).TimeAgo=e()}(this,(function(){"use strict";var t="en",e={},r={};function n(){return t}function o(t){return e[t]}function a(t){return e[t]?t:r[t.toLowerCase()]?r[t.toLowerCase()]:void 0}function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.localeMatcher||"lookup";switch(r){case"lookup":case"best fit":return u(t);default:throw new RangeError('Invalid "localeMatcher" option: '.concat(r))}}function u(t){var e=a(t);if(e)return e;for(var r=t.split("-");t.length>1;){r.pop();var n=a(t=r.join("-"));if(n)return n}}var l={af:function(t){return 1==t?"one":"other"},am:function(t){return t>=0&&t<=1?"one":"other"},ar:function(t){var e=String(t).split("."),r=Number(e[0])==t&&e[0].slice(-2);return 0==t?"zero":1==t?"one":2==t?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},ast:function(t){var e=!String(t).split(".")[1];return 1==t&&e?"one":"other"},be:function(t){var e=String(t).split("."),r=Number(e[0])==t,n=r&&e[0].slice(-1),o=r&&e[0].slice(-2);return 1==n&&11!=o?"one":n>=2&&n<=4&&(o<12||o>14)?"few":r&&0==n||n>=5&&n<=9||o>=11&&o<=14?"many":"other"},br:function(t){var e=String(t).split("."),r=Number(e[0])==t,n=r&&e[0].slice(-1),o=r&&e[0].slice(-2),a=r&&e[0].slice(-6);return 1==n&&11!=o&&71!=o&&91!=o?"one":2==n&&12!=o&&72!=o&&92!=o?"two":(3==n||4==n||9==n)&&(o<10||o>19)&&(o<70||o>79)&&(o<90||o>99)?"few":0!=t&&r&&0==a?"many":"other"},bs:function(t){var e=String(t).split("."),r=e[0],n=e[1]||"",o=!e[1],a=r.slice(-1),i=r.slice(-2),u=n.slice(-1),l=n.slice(-2);return o&&1==a&&11!=i||1==u&&11!=l?"one":o&&a>=2&&a<=4&&(i<12||i>14)||u>=2&&u<=4&&(l<12||l>14)?"few":"other"},ceb:function(t){var e=String(t).split("."),r=e[0],n=e[1]||"",o=!e[1],a=r.slice(-1),i=n.slice(-1);return o&&(1==r||2==r||3==r)||o&&4!=a&&6!=a&&9!=a||!o&&4!=i&&6!=i&&9!=i?"one":"other"},cs:function(t){var e=String(t).split("."),r=e[0],n=!e[1];return 1==t&&n?"one":r>=2&&r<=4&&n?"few":n?"other":"many"},cy:function(t){return 0==t?"zero":1==t?"one":2==t?"two":3==t?"few":6==t?"many":"other"},da:function(t){var e=String(t).split("."),r=e[0],n=Number(e[0])==t;return 1!=t&&(n||0!=r&&1!=r)?"other":"one"},dsb:function(t){var e=String(t).split("."),r=e[0],n=e[1]||"",o=!e[1],a=r.slice(-2),i=n.slice(-2);return o&&1==a||1==i?"one":o&&2==a||2==i?"two":o&&(3==a||4==a)||3==i||4==i?"few":"other"},dz:function(t){return"other"},es:function(t){var e=String(t).split("."),r=e[0],n=!e[1],o=r.slice(-6);return 1==t?"one":0!=r&&0==o&&n?"many":"other"},ff:function(t){return t>=0&&t<2?"one":"other"},fr:function(t){var e=String(t).split("."),r=e[0],n=!e[1],o=r.slice(-6);return t>=0&&t<2?"one":0!=r&&0==o&&n?"many":"other"},ga:function(t){var e=String(t).split("."),r=Number(e[0])==t;return 1==t?"one":2==t?"two":r&&t>=3&&t<=6?"few":r&&t>=7&&t<=10?"many":"other"},gd:function(t){var e=String(t).split("."),r=Number(e[0])==t;return 1==t||11==t?"one":2==t||12==t?"two":r&&t>=3&&t<=10||r&&t>=13&&t<=19?"few":"other"},he:function(t){var e=String(t).split("."),r=e[0],n=!e[1],o=Number(e[0])==t,a=o&&e[0].slice(-1);return 1==t&&n?"one":2==r&&n?"two":n&&(t<0||t>10)&&o&&0==a?"many":"other"},is:function(t){var e=String(t).split("."),r=e[0],n=Number(e[0])==t,o=r.slice(-1),a=r.slice(-2);return n&&1==o&&11!=a||!n?"one":"other"},it:function(t){var e=String(t).split("."),r=e[0],n=!e[1],o=r.slice(-6);return 1==t&&n?"one":0!=r&&0==o&&n?"many":"other"},ksh:function(t){return 0==t?"zero":1==t?"one":"other"},lt:function(t){var e=String(t).split("."),r=e[1]||"",n=Number(e[0])==t,o=n&&e[0].slice(-1),a=n&&e[0].slice(-2);return 1==o&&(a<11||a>19)?"one":o>=2&&o<=9&&(a<11||a>19)?"few":0!=r?"many":"other"},lv:function(t){var e=String(t).split("."),r=e[1]||"",n=r.length,o=Number(e[0])==t,a=o&&e[0].slice(-1),i=o&&e[0].slice(-2),u=r.slice(-2),l=r.slice(-1);return o&&0==a||i>=11&&i<=19||2==n&&u>=11&&u<=19?"zero":1==a&&11!=i||2==n&&1==l&&11!=u||2!=n&&1==l?"one":"other"},mk:function(t){var e=String(t).split("."),r=e[0],n=e[1]||"",o=!e[1],a=r.slice(-1),i=r.slice(-2),u=n.slice(-1),l=n.slice(-2);return o&&1==a&&11!=i||1==u&&11!=l?"one":"other"},mt:function(t){var e=String(t).split("."),r=Number(e[0])==t&&e[0].slice(-2);return 1==t?"one":0==t||r>=2&&r<=10?"few":r>=11&&r<=19?"many":"other"},pa:function(t){return 0==t||1==t?"one":"other"},pl:function(t){var e=String(t).split("."),r=e[0],n=!e[1],o=r.slice(-1),a=r.slice(-2);return 1==t&&n?"one":n&&o>=2&&o<=4&&(a<12||a>14)?"few":n&&1!=r&&(0==o||1==o)||n&&o>=5&&o<=9||n&&a>=12&&a<=14?"many":"other"},pt:function(t){var e=String(t).split("."),r=e[0],n=!e[1],o=r.slice(-6);return 0==r||1==r?"one":0!=r&&0==o&&n?"many":"other"},ro:function(t){var e=String(t).split("."),r=!e[1],n=Number(e[0])==t&&e[0].slice(-2);return 1==t&&r?"one":!r||0==t||n>=2&&n<=19?"few":"other"},ru:function(t){var e=String(t).split("."),r=e[0],n=!e[1],o=r.slice(-1),a=r.slice(-2);return n&&1==o&&11!=a?"one":n&&o>=2&&o<=4&&(a<12||a>14)?"few":n&&0==o||n&&o>=5&&o<=9||n&&a>=11&&a<=14?"many":"other"},se:function(t){return 1==t?"one":2==t?"two":"other"},si:function(t){var e=String(t).split("."),r=e[0],n=e[1]||"";return 0==t||1==t||0==r&&1==n?"one":"other"},sl:function(t){var e=String(t).split("."),r=e[0],n=!e[1],o=r.slice(-2);return n&&1==o?"one":n&&2==o?"two":n&&(3==o||4==o)||!n?"few":"other"}};function f(t){return"pt-PT"===t?t:function(t){var e=t.match(c);if(!e)throw new TypeError("Invalid locale: ".concat(t));return e[1]}(t)}l.as=l.am,l.az=l.af,l.bg=l.af,l.bn=l.am,l.ca=l.ast,l.ce=l.af,l.chr=l.af,l.de=l.ast,l.ee=l.af,l.el=l.af,l.en=l.ast,l.et=l.ast,l.eu=l.af,l.fa=l.am,l.fi=l.ast,l.fil=l.ceb,l.fo=l.af,l.fur=l.af,l.fy=l.ast,l.gl=l.ast,l.gu=l.am,l.ha=l.af,l.hi=l.am,l.hr=l.bs,l.hsb=l.dsb,l.hu=l.af,l.hy=l.ff,l.ia=l.ast,l.id=l.dz,l.ig=l.dz,l.ja=l.dz,l.jgo=l.af,l.jv=l.dz,l.ka=l.af,l.kea=l.dz,l.kk=l.af,l.kl=l.af,l.km=l.dz,l.kn=l.am,l.ko=l.dz,l.ku=l.af,l.ky=l.af,l.lb=l.af,l.lkt=l.dz,l.lo=l.dz,l.ml=l.af,l.mn=l.af,l.mr=l.af,l.ms=l.dz,l.my=l.dz,l.nb=l.af,l.ne=l.af,l.nl=l.ast,l.nn=l.af,l.no=l.af,l.or=l.af,l.pcm=l.am,l.ps=l.af,l.rm=l.af,l.sah=l.dz,l.sc=l.ast,l.sd=l.af,l.sk=l.cs,l.so=l.af,l.sq=l.af,l.sr=l.bs,l.su=l.dz,l.sv=l.ast,l.sw=l.ast,l.ta=l.af,l.te=l.af,l.th=l.dz,l.ti=l.pa,l.tk=l.af,l.to=l.dz,l.tr=l.af,l.ug=l.af,l.uk=l.ru,l.ur=l.ast,l.uz=l.af,l.vi=l.dz,l.wae=l.af,l.wo=l.dz,l.yi=l.ast,l.yo=l.dz,l.yue=l.dz,l.zh=l.dz,l.zu=l.am;var c=/^([a-z0-9]+)/i;function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var m=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=t.supportedLocalesOf(e);if(0===n.length)throw new RangeError("Unsupported locale: "+e);if(r&&"cardinal"!==r.type)throw new RangeError('Only "cardinal" "type" is supported');this.$=l[f(n[0])]}var e,r,n;return e=t,n=[{key:"supportedLocalesOf",value:function(t){return"string"==typeof t&&(t=[t]),t.filter((function(t){return l[f(t)]}))}}],(r=[{key:"select",value:function(t){return this.$(t)}}])&&s(e.prototype,r),n&&s(e,n),t}();function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){d(t,e,r[e])}))}return t}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,o=!1,a=void 0;try{for(var i,u=t[Symbol.iterator]();!(n=(i=u.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==u.return||u.return()}finally{if(o)throw a}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function d(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var g=["second","minute","hour","day","week","month","quarter","year"],w=["auto","always"],O=["long","short","narrow"],S=["lookup","best fit"],j=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};b(this,t),d(this,"numeric","always"),d(this,"style","long"),d(this,"localeMatcher","lookup");var a=r.numeric,u=r.style,l=r.styleFallback,f=r.localeMatcher;if(void 0!==a){if(w.indexOf(a)<0)throw new RangeError('Invalid "numeric" option: '.concat(a));this.numeric=a}if(void 0!==u){if(O.indexOf(u)<0&&!l)throw new RangeError('Invalid "style" option: '.concat(u));this.style=u}if(void 0!==f){if(S.indexOf(f)<0)throw new RangeError('Invalid "localeMatcher" option: '.concat(f));this.localeMatcher=f}if("string"==typeof e&&(e=[e]),e.push(n()),this.locale=t.supportedLocalesOf(e,{localeMatcher:this.localeMatcher})[0],!this.locale)throw new Error("No supported locale was found");if(m.supportedLocalesOf(this.locale).length>0?this.pluralRules=new m(this.locale):console.warn('"'.concat(this.locale,'" locale is not supported')),"undefined"!=typeof Intl&&Intl.NumberFormat?(this.numberFormat=new Intl.NumberFormat(this.locale),this.numberingSystem=this.numberFormat.resolvedOptions().numberingSystem):this.numberingSystem="latn",this.locale=i(this.locale,{localeMatcher:this.localeMatcher}),l)for(var c=Object.keys(o(this.locale)),s=[this.style].concat(O,[c[0]]),y=0;y<s.length;y++){var h=s[y];if(c.indexOf(h)>=0){this.style=h;break}}}var e,r,a;return e=t,(r=[{key:"format",value:function(){var t=T(arguments),e=p(t,2),r=e[0],n=e[1];return this.getRule(r,n).replace("{0}",this.formatNumber(Math.abs(r)))}},{key:"formatToParts",value:function(){var t=T(arguments),e=p(t,2),r=e[0],n=e[1],o=this.getRule(r,n),a=o.indexOf("{0}");if(a<0)return[{type:"literal",value:o}];var i=[];return a>0&&i.push({type:"literal",value:o.slice(0,a)}),i=i.concat(this.formatNumberToParts(Math.abs(r)).map((function(t){return h({},t,{unit:n})}))),a+"{0}".length<o.length-1&&i.push({type:"literal",value:o.slice(a+"{0}".length)}),i}},{key:"getRule",value:function(t,e){var r=o(this.locale)[this.style][e];if("string"==typeof r)return r;if("auto"===this.numeric)if(-2===t||-1===t){var n=r["previous".concat(-1===t?"":"-"+Math.abs(t))];if(n)return n}else if(1===t||2===t){var a=r["next".concat(1===t?"":"-"+Math.abs(t))];if(a)return a}else if(0===t&&r.current)return r.current;var i,u=r[(i=t,i<0||0===i&&function(t){return 1/t==-1/0}(i)?"past":"future")];return"string"==typeof u?u:u[this.pluralRules&&this.pluralRules.select(Math.abs(t))||"other"]||u.other}},{key:"formatNumber",value:function(t){return this.numberFormat?this.numberFormat.format(t):String(t)}},{key:"formatNumberToParts",value:function(t){return this.numberFormat&&this.numberFormat.formatToParts?this.numberFormat.formatToParts(t):[{type:"integer",value:this.formatNumber(t)}]}},{key:"resolvedOptions",value:function(){return{locale:this.locale,style:this.style,numeric:this.numeric,numberingSystem:this.numberingSystem}}}])&&v(e.prototype,r),a&&v(e,a),t}();j.supportedLocalesOf=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof t)t=[t];else if(!Array.isArray(t))throw new TypeError('Invalid "locales" argument');return t.filter((function(t){return i(t,e)}))},j.addLocale=function(t){if(!t)throw new Error("No locale data passed");e[t.locale]=t,r[t.locale.toLowerCase()]=t.locale},j.setDefaultLocale=function(e){t=e},j.getDefaultLocale=n,j.PluralRules=m;var k='Invalid "unit" argument';function A(t){if("symbol"===y(t))throw new TypeError(k);if("string"!=typeof t)throw new RangeError("".concat(k,": ").concat(t));if("s"===t[t.length-1]&&(t=t.slice(0,t.length-1)),g.indexOf(t)<0)throw new RangeError("".concat(k,": ").concat(t));return t}function P(t){if(t=Number(t),Number.isFinite&&!Number.isFinite(t))throw new RangeError("".concat('Invalid "number" argument',": ").concat(t));return t}function T(t){if(t.length<2)throw new TypeError('"unit" argument is required');return[P(t[0]),A(t[1])]}function F(t){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function N(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var E=function(){function t(){var e,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n={},(r="cache")in(e=this)?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n}var e,r,n;return e=t,(r=[{key:"get",value:function(){for(var t=this.cache,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];for(var o=0;o<r.length;o++){var a=r[o];if("object"!==F(t))return;t=t[a]}return t}},{key:"put",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var n=e.pop(),o=e.pop(),a=this.cache,i=0;i<e.length;i++){var u=e[i];"object"!==F(a[u])&&(a[u]={}),a=a[u]}return a[o]=n}}])&&N(e.prototype,r),n&&N(e,n),t}();function M(t){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function R(t,e){var r=t,n=Array.isArray(r),o=0;for(r=n?r:r[Symbol.iterator]();;){var a;if(n){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var i=a;if(e(i))return i;for(var u=i.split("-");u.length>1;)if(u.pop(),e(i=u.join("-")))return i}throw new Error("No locale data has been registered for any of the locales: ".concat(t.join(", ")))}function D(t){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function z(t){return function(t){return void 0!==D(t)&&null!==t&&t.constructor===I}(t)&&(Array.isArray(t.steps)||Array.isArray(t.gradation)||Array.isArray(t.flavour)||"string"==typeof t.flavour||Array.isArray(t.labels)||"string"==typeof t.labels||Array.isArray(t.units)||"function"==typeof t.custom)}var I={}.constructor;var x=60,L=3600,C=86400,U=7*C,_=2630016,Y=31556952;function q(t){switch(t){case"second":return 1;case"minute":return x;case"hour":return L;case"day":return C;case"week":return U;case"month":return _;case"year":return Y}}function V(t){return void 0!==t.factor?t.factor:q(t.unit||t.formatAs)||1}function J(t){switch(t){case"floor":return Math.floor;default:return Math.round}}function $(t){switch(t){case"floor":return 1;default:return.5}}function B(t){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function G(t,e){var r,n=e.prevStep,o=e.timestamp,a=e.now,i=e.future,u=e.round;return n&&(n.id||n.unit)&&(r=t["threshold_for_".concat(n.id||n.unit)]),void 0===r&&void 0!==t.threshold&&"function"==typeof(r=t.threshold)&&(r=r(a,i)),void 0===r&&(r=t.minTime),"object"===B(r)&&(r=n&&n.id&&void 0!==r[n.id]?r[n.id]:r.default),"function"==typeof r&&(r=r(o,{future:i,getMinTimeForUnit:function(t,e){return H(t,e||n&&n.formatAs,{round:u})}})),void 0===r&&t.test&&(r=t.test(o,{now:a,future:i})?0:9007199254740991),void 0===r&&(n?t.formatAs&&n.formatAs&&(r=H(t.formatAs,n.formatAs,{round:u})):r=0),void 0===r&&console.warn("[javascript-time-ago] A step should specify `minTime`:\n"+JSON.stringify(t,null,2)),r}function H(t,e,r){var n,o=r.round,a=q(t);if(n=q("now"===e?t:e),void 0!==a&&void 0!==n)return a-n*(1-$(o))}function K(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){Q(t,e,r[e])}))}return t}function Q(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function W(t,e,r){var n=r.now,o=r.future,a=r.round,i=r.units,u=r.getNextStep,l=function(t,e,r){var n=r.now,o=r.future,a=r.round;if(0===t.length)return;var i=X(t,e,{now:n,future:o||e<0,round:a});if(-1===i)return;var u=t[i];if(u.granularity){if(0===J(a)(Math.abs(e)/V(u)/u.granularity)*u.granularity&&i>0)return t[i-1]}return u}(t=function(t,e){return t.filter((function(t){var r=t.unit,n=t.formatAs;return!(r=r||n)||e.indexOf(r)>=0}))}(t,i),e,{now:n,future:o,round:a});return u?l?[t[t.indexOf(l)-1],l,t[t.indexOf(l)+1]]:[void 0,void 0,t[0]]:l}function X(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=G(t[n],K({prevStep:t[n-1],timestamp:r.now-1e3*e},r));return void 0===o||Math.abs(e)<o?n-1:n===t.length-1?n:X(t,e,r,n+1)}function Z(t,e,r){var n=r.now,o=r.round;if(q(t)){var a=1e3*q(t),i=e>n,u=Math.abs(e-n),l=J(o)(u/a)*a;return i?l>0?u-l+function(t,e){return(1-$(t))*e+1}(o,a):u-l+1:-(u-l)+function(t,e){return $(t)*e}(o,a)}}var tt=31536e9;function et(t,e,r){var n=r.prevStep,o=r.nextStep,a=r.now,i=r.future,u=r.round,l=t.getTime?t.getTime():t,f=function(t){return Z(t,l,{now:a,round:u})},c=function(t,e,r){var n=r.now,o=r.future,a=r.round,i=r.prevStep;if(t){var u=function(t,e,r){var n=r.now,o=r.future,a=r.round,i=r.prevStep,u=G(t,{timestamp:e,now:n,future:o,round:a,prevStep:i});if(void 0===u)return;return o?e-1e3*u+1:0===u&&e===n?tt:e+1e3*u}(t,e,{now:n,future:o,round:a,prevStep:i});if(void 0===u)return;return u-n}return o?e-n+1:tt}(i?e:o,l,{future:i,now:a,round:u,prevStep:i?n:e});if(void 0!==c){var s;if(e&&(e.getTimeToNextUpdate&&(s=e.getTimeToNextUpdate(l,{getTimeToNextUpdateForUnit:f,getRoundFunction:J,now:a,future:i,round:u})),void 0===s)){var m=e.unit||e.formatAs;m&&(s=f(m))}return void 0===s?c:Math.min(s,c)}}var rt={};function nt(t){return rt[t]}function ot(t){if(!t)throw new Error("[javascript-time-ago] No locale data passed.");rt[t.locale]=t}var at={steps:[{formatAs:"now"},{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"}],labels:"long"};function it(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ut=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){it(t,e,r[e])}))}return t}({},at,{steps:at.steps.filter((function(t){return"second"!==t.formatAs}))}),lt=[{factor:1,unit:"now"},{threshold:1,threshold_for_now:45.5,factor:1,unit:"second"},{threshold:45.5,factor:x,unit:"minute"},{threshold:150,granularity:5,factor:x,unit:"minute"},{threshold:1350,factor:1800,unit:"half-hour"},{threshold:2550,threshold_for_minute:3150,factor:L,unit:"hour"},{threshold:73800,factor:C,unit:"day"},{threshold:475200,factor:U,unit:"week"},{threshold:2116800,factor:_,unit:"month"},{threshold:27615168,factor:Y,unit:"year"}],ft={gradation:lt,flavour:"long",units:["now","minute","hour","day","week","month","year"]},ct={gradation:lt,flavour:"long-time",units:["now","minute","hour","day","week","month","year"]};function st(t){return t instanceof Date?t:new Date(t)}var mt=[{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"}],yt={},ht={minTime:function(t,e){e.future;return(0,e.getMinTimeForUnit)("day")},format:function(t,e){return yt[e]||(yt[e]={}),yt[e].dayMonth||(yt[e].dayMonth=new Intl.DateTimeFormat(e,{month:"short",day:"numeric"})),yt[e].dayMonth.format(st(t))}},pt={minTime:function(t,e){return e.future?(t-(new Date(new Date(t).getFullYear(),0).getTime()-1))/1e3:(new Date(new Date(t).getFullYear()+1,0).getTime()-t)/1e3},format:function(t,e){return yt[e]||(yt[e]={}),yt[e].dayMonthYear||(yt[e].dayMonthYear=new Intl.DateTimeFormat(e,{year:"numeric",month:"short",day:"numeric"})),yt[e].dayMonthYear.format(st(t))}};"object"===("undefined"==typeof Intl?"undefined":M(Intl))&&"function"==typeof Intl.DateTimeFormat?mt.push(ht,pt):mt.push({formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"});var bt={steps:mt,labels:["mini","short-time","narrow","short"]};function vt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var dt=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){vt(t,e,r[e])}))}return t}({},bt,{steps:[{formatAs:"now"}].concat(bt.steps)});function gt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var wt=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){gt(t,e,r[e])}))}return t}({},bt,{steps:bt.steps.filter((function(t){return"second"!==t.formatAs}))});function Ot(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var St=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){Ot(t,e,r[e])}))}return t}({},wt,{steps:[{formatAs:"now"}].concat(wt.steps)});function jt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){kt(t,e,r[e])}))}return t}function kt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var At=jt({},bt,{steps:bt.steps.filter((function(t){return"second"!==t.formatAs})).map((function(t){return"minute"===t.formatAs?jt({},t,{minTime:x}):t}))}),Pt={steps:[{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"month"},{formatAs:"year"}],labels:["mini","short-time","narrow","short"]};function Tt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ft=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){Tt(t,e,r[e])}))}return t}({},Pt,{steps:[{formatAs:"now"}].concat(Pt.steps)});function Nt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Et=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){Nt(t,e,r[e])}))}return t}({},Pt,{steps:Pt.steps.filter((function(t){return"second"!==t.formatAs}))});function Mt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Rt=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){Mt(t,e,r[e])}))}return t}({},Et,{steps:[{formatAs:"now"}].concat(Et.steps)});function Dt(t){return(Dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,o=!1,a=void 0;try{for(var i,u=t[Symbol.iterator]();!(n=(i=u.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==u.return||u.return()}finally{if(o)throw a}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function It(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var Lt,Ct=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.polyfill;It(this,t),"string"==typeof e&&(e=[e]),this.locale=R(e.concat(t.getDefaultLocale()),nt),"undefined"!=typeof Intl&&Intl.NumberFormat&&(this.numberFormat=new Intl.NumberFormat(this.locale)),!1===n?(this.IntlRelativeTimeFormat=Intl.RelativeTimeFormat,this.IntlPluralRules=Intl.PluralRules):(this.IntlRelativeTimeFormat=j,this.IntlPluralRules=j.PluralRules),this.relativeTimeFormatCache=new E,this.pluralRulesCache=new E}var e,r,n;return e=t,(r=[{key:"format",value:function(t,e,r){var n;r||(e&&"string"!=typeof(n=e)&&!z(n)?(r=e,e=void 0):r={}),e||(e=ut),"string"==typeof e&&(e=function(t){switch(t){case"default":case"round":return at;case"round-minute":return ut;case"approximate":return ft;case"time":case"approximate-time":return ct;case"mini":return Pt;case"mini-now":return Ft;case"mini-minute":return Et;case"mini-minute-now":return Rt;case"twitter":return bt;case"twitter-now":return dt;case"twitter-minute":return wt;case"twitter-minute-now":return St;case"twitter-first-minute":return At;default:return ft}}(e));var o,a=function(t){if(t.constructor===Date||"object"===Dt(e=t)&&"function"==typeof e.getTime)return t.getTime();var e;if("number"==typeof t)return t;throw new Error("Unsupported relative time formatter input: ".concat(Dt(t),", ").concat(t))}(t),i=this.getLabels(e.flavour||e.labels),u=i.labels,l=i.labelsType;void 0!==e.now&&(o=e.now),void 0===o&&void 0!==r.now&&(o=r.now),void 0===o&&(o=Date.now());var f=(o-a)/1e3,c=r.future||f<0,s=function(t,e,r,n){var o=t.now||e&&e.now;return o?"string"==typeof o?o:n?o.future:o.past:r&&r.second&&r.second.current?r.second.current:void 0}(u,nt(this.locale).now,nt(this.locale).long,c);if(e.custom){var m=e.custom({now:o,date:new Date(a),time:a,elapsed:f,locale:this.locale});if(void 0!==m)return m}var y=function(t,e,r){var n=Object.keys(e);return r&&n.push("now"),t&&(n=t.filter((function(t){return"now"===t||n.indexOf(t)>=0}))),n}(e.units,u,s),h=r.round||e.round,p=zt(W(e.gradation||e.steps||ut.steps,f,{now:o,units:y,round:h,future:c,getNextStep:!0}),3),b=p[0],v=p[1],d=p[2],g=this.formatDateForStep(a,v,f,{labels:u,labelsType:l,nowLabel:s,now:o,future:c,round:h})||"";return r.getTimeToNextUpdate?[g,et(a,v,{nextStep:d,prevStep:b,now:o,future:c,round:h})]:g}},{key:"formatDateForStep",value:function(t,e,r,n){var o=this,a=n.labels,i=n.labelsType,u=n.nowLabel,l=n.now,f=n.future,c=n.round;if(e){if(e.format)return e.format(t,this.locale,{formatAs:function(t,e){return o.formatValue(e,t,{labels:a,future:f})},now:l,future:f});var s=e.unit||e.formatAs;if(!s)throw new Error("[javascript-time-ago] Each step must define either `formatAs` or `format()`. Step: ".concat(JSON.stringify(e)));if("now"===s)return u;var m=Math.abs(r)/V(e);e.granularity&&(m=J(c)(m/e.granularity)*e.granularity);var y=-1*Math.sign(r)*J(c)(m);switch(0===y&&(y=f?0:-0),i){case"long":case"short":case"narrow":return this.getFormatter(i).format(y,s);default:return this.formatValue(y,s,{labels:a,future:f})}}}},{key:"formatValue",value:function(t,e,r){var n=r.labels,o=r.future;return this.getFormattingRule(n,e,t,{future:o}).replace("{0}",this.formatNumber(Math.abs(t)))}},{key:"getFormattingRule",value:function(t,e,r,n){var o=n.future;if(this.locale,"string"==typeof(t=t[e]))return t;var a=t[0===r?o?"future":"past":r<0?"past":"future"]||t;return"string"==typeof a?a:a[this.getPluralRules().select(Math.abs(r))]||a.other}},{key:"formatNumber",value:function(t){return this.numberFormat?this.numberFormat.format(t):String(t)}},{key:"getFormatter",value:function(t){return this.relativeTimeFormatCache.get(this.locale,t)||this.relativeTimeFormatCache.put(this.locale,t,new this.IntlRelativeTimeFormat(this.locale,{style:t}))}},{key:"getPluralRules",value:function(){return this.pluralRulesCache.get(this.locale)||this.pluralRulesCache.put(this.locale,new this.IntlPluralRules(this.locale))}},{key:"getLabels",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];"string"==typeof t&&(t=[t]),t=(t=t.map((function(t){switch(t){case"tiny":case"mini-time":return"mini";default:return t}}))).concat("long");var e=nt(this.locale),r=t,n=Array.isArray(r),o=0;for(r=n?r:r[Symbol.iterator]();;){var a;if(n){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var i=a;if(e[i])return{labelsType:i,labels:e[i]}}}}])&&xt(e.prototype,r),n&&xt(e,n),t}(),Ut="en";return Ct.getDefaultLocale=function(){return Ut},Ct.setDefaultLocale=function(t){return Ut=t},Ct.addDefaultLocale=function(t){if(Lt)return console.error("[javascript-time-ago] `TimeAgo.addDefaultLocale()` can only be called once. To add other locales, use `TimeAgo.addLocale()`.");Lt=!0,Ct.setDefaultLocale(t.locale),Ct.addLocale(t)},Ct.addLocale=function(t){ot(t),j.addLocale(t)},Ct.locale=Ct.addLocale,Ct.addLabels=function(t,e,r){var n=nt(t);n||(ot({locale:t}),n=nt(t)),n[e]=r},Ct}));
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).TimeAgo=e()}(this,(function(){"use strict";var t="en",e={},r={};function n(){return t}function o(t){return e[t]}function a(t){return e[t]?t:r[t.toLowerCase()]?r[t.toLowerCase()]:void 0}function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.localeMatcher||"lookup";switch(r){case"lookup":case"best fit":return u(t);default:throw new RangeError('Invalid "localeMatcher" option: '.concat(r))}}function u(t){var e=a(t);if(e)return e;for(var r=t.split("-");t.length>1;){r.pop();var n=a(t=r.join("-"));if(n)return n}}var c={af:function(t){return 1==t?"one":"other"},am:function(t){return t>=0&&t<=1?"one":"other"},ar:function(t){var e=String(t).split("."),r=Number(e[0])==t&&e[0].slice(-2);return 0==t?"zero":1==t?"one":2==t?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},ast:function(t){var e=!String(t).split(".")[1];return 1==t&&e?"one":"other"},be:function(t){var e=String(t).split("."),r=Number(e[0])==t,n=r&&e[0].slice(-1),o=r&&e[0].slice(-2);return 1==n&&11!=o?"one":n>=2&&n<=4&&(o<12||o>14)?"few":r&&0==n||n>=5&&n<=9||o>=11&&o<=14?"many":"other"},br:function(t){var e=String(t).split("."),r=Number(e[0])==t,n=r&&e[0].slice(-1),o=r&&e[0].slice(-2),a=r&&e[0].slice(-6);return 1==n&&11!=o&&71!=o&&91!=o?"one":2==n&&12!=o&&72!=o&&92!=o?"two":(3==n||4==n||9==n)&&(o<10||o>19)&&(o<70||o>79)&&(o<90||o>99)?"few":0!=t&&r&&0==a?"many":"other"},bs:function(t){var e=String(t).split("."),r=e[0],n=e[1]||"",o=!e[1],a=r.slice(-1),i=r.slice(-2),u=n.slice(-1),c=n.slice(-2);return o&&1==a&&11!=i||1==u&&11!=c?"one":o&&a>=2&&a<=4&&(i<12||i>14)||u>=2&&u<=4&&(c<12||c>14)?"few":"other"},ceb:function(t){var e=String(t).split("."),r=e[0],n=e[1]||"",o=!e[1],a=r.slice(-1),i=n.slice(-1);return o&&(1==r||2==r||3==r)||o&&4!=a&&6!=a&&9!=a||!o&&4!=i&&6!=i&&9!=i?"one":"other"},cs:function(t){var e=String(t).split("."),r=e[0],n=!e[1];return 1==t&&n?"one":r>=2&&r<=4&&n?"few":n?"other":"many"},cy:function(t){return 0==t?"zero":1==t?"one":2==t?"two":3==t?"few":6==t?"many":"other"},da:function(t){var e=String(t).split("."),r=e[0],n=Number(e[0])==t;return 1!=t&&(n||0!=r&&1!=r)?"other":"one"},dsb:function(t){var e=String(t).split("."),r=e[0],n=e[1]||"",o=!e[1],a=r.slice(-2),i=n.slice(-2);return o&&1==a||1==i?"one":o&&2==a||2==i?"two":o&&(3==a||4==a)||3==i||4==i?"few":"other"},dz:function(t){return"other"},es:function(t){var e=String(t).split("."),r=e[0],n=!e[1],o=r.slice(-6);return 1==t?"one":0!=r&&0==o&&n?"many":"other"},ff:function(t){return t>=0&&t<2?"one":"other"},fr:function(t){var e=String(t).split("."),r=e[0],n=!e[1],o=r.slice(-6);return t>=0&&t<2?"one":0!=r&&0==o&&n?"many":"other"},ga:function(t){var e=String(t).split("."),r=Number(e[0])==t;return 1==t?"one":2==t?"two":r&&t>=3&&t<=6?"few":r&&t>=7&&t<=10?"many":"other"},gd:function(t){var e=String(t).split("."),r=Number(e[0])==t;return 1==t||11==t?"one":2==t||12==t?"two":r&&t>=3&&t<=10||r&&t>=13&&t<=19?"few":"other"},he:function(t){var e=String(t).split("."),r=e[0],n=!e[1],o=Number(e[0])==t,a=o&&e[0].slice(-1);return 1==t&&n?"one":2==r&&n?"two":n&&(t<0||t>10)&&o&&0==a?"many":"other"},is:function(t){var e=String(t).split("."),r=e[0],n=Number(e[0])==t,o=r.slice(-1),a=r.slice(-2);return n&&1==o&&11!=a||!n?"one":"other"},it:function(t){var e=String(t).split("."),r=e[0],n=!e[1],o=r.slice(-6);return 1==t&&n?"one":0!=r&&0==o&&n?"many":"other"},ksh:function(t){return 0==t?"zero":1==t?"one":"other"},lt:function(t){var e=String(t).split("."),r=e[1]||"",n=Number(e[0])==t,o=n&&e[0].slice(-1),a=n&&e[0].slice(-2);return 1==o&&(a<11||a>19)?"one":o>=2&&o<=9&&(a<11||a>19)?"few":0!=r?"many":"other"},lv:function(t){var e=String(t).split("."),r=e[1]||"",n=r.length,o=Number(e[0])==t,a=o&&e[0].slice(-1),i=o&&e[0].slice(-2),u=r.slice(-2),c=r.slice(-1);return o&&0==a||i>=11&&i<=19||2==n&&u>=11&&u<=19?"zero":1==a&&11!=i||2==n&&1==c&&11!=u||2!=n&&1==c?"one":"other"},mk:function(t){var e=String(t).split("."),r=e[0],n=e[1]||"",o=!e[1],a=r.slice(-1),i=r.slice(-2),u=n.slice(-1),c=n.slice(-2);return o&&1==a&&11!=i||1==u&&11!=c?"one":"other"},mt:function(t){var e=String(t).split("."),r=Number(e[0])==t&&e[0].slice(-2);return 1==t?"one":0==t||r>=2&&r<=10?"few":r>=11&&r<=19?"many":"other"},pa:function(t){return 0==t||1==t?"one":"other"},pl:function(t){var e=String(t).split("."),r=e[0],n=!e[1],o=r.slice(-1),a=r.slice(-2);return 1==t&&n?"one":n&&o>=2&&o<=4&&(a<12||a>14)?"few":n&&1!=r&&(0==o||1==o)||n&&o>=5&&o<=9||n&&a>=12&&a<=14?"many":"other"},pt:function(t){var e=String(t).split("."),r=e[0],n=!e[1],o=r.slice(-6);return 0==r||1==r?"one":0!=r&&0==o&&n?"many":"other"},ro:function(t){var e=String(t).split("."),r=!e[1],n=Number(e[0])==t&&e[0].slice(-2);return 1==t&&r?"one":!r||0==t||n>=2&&n<=19?"few":"other"},ru:function(t){var e=String(t).split("."),r=e[0],n=!e[1],o=r.slice(-1),a=r.slice(-2);return n&&1==o&&11!=a?"one":n&&o>=2&&o<=4&&(a<12||a>14)?"few":n&&0==o||n&&o>=5&&o<=9||n&&a>=11&&a<=14?"many":"other"},se:function(t){return 1==t?"one":2==t?"two":"other"},si:function(t){var e=String(t).split("."),r=e[0],n=e[1]||"";return 0==t||1==t||0==r&&1==n?"one":"other"},sl:function(t){var e=String(t).split("."),r=e[0],n=!e[1],o=r.slice(-2);return n&&1==o?"one":n&&2==o?"two":n&&(3==o||4==o)||!n?"few":"other"}};c.as=c.am,c.az=c.af,c.bg=c.af,c.bn=c.am,c.brx=c.af,c.ca=c.ast,c.ce=c.af,c.chr=c.af,c.de=c.ast,c.ee=c.af,c.el=c.af,c.en=c.ast,c.et=c.ast,c.eu=c.af,c.fa=c.am,c.fi=c.ast,c.fil=c.ceb,c.fo=c.af,c.fur=c.af,c.fy=c.ast,c.gl=c.ast,c.gu=c.am,c.ha=c.af,c.hi=c.am,c.hr=c.bs,c.hsb=c.dsb,c.hu=c.af,c.hy=c.ff,c.ia=c.ast,c.id=c.dz,c.ig=c.dz,c.ja=c.dz,c.jgo=c.af,c.jv=c.dz,c.ka=c.af,c.kea=c.dz,c.kk=c.af,c.kl=c.af,c.km=c.dz,c.kn=c.am,c.ko=c.dz,c.ku=c.af,c.ky=c.af,c.lb=c.af,c.lkt=c.dz,c.lo=c.dz,c.ml=c.af,c.mn=c.af,c.mr=c.af,c.ms=c.dz,c.my=c.dz,c.nb=c.af,c.ne=c.af,c.nl=c.ast,c.nn=c.af,c.no=c.af,c.or=c.af,c.pcm=c.am,c.ps=c.af,c.rm=c.af,c.sah=c.dz,c.sc=c.ast,c.sd=c.af,c.sk=c.cs,c.so=c.af,c.sq=c.af,c.sr=c.bs,c.su=c.dz,c.sv=c.ast,c.sw=c.ast,c.ta=c.af,c.te=c.af,c.th=c.dz,c.ti=c.pa,c.tk=c.af,c.to=c.dz,c.tr=c.af,c.ug=c.af,c.uk=c.ru,c.ur=c.ast,c.uz=c.af,c.vi=c.dz,c.wae=c.af,c.wo=c.dz,c.yi=c.ast,c.yo=c.dz,c.yue=c.dz,c.zh=c.dz,c.zu=c.am;var l=c;function f(t){return"pt-PT"===t?t:function(t){var e=t.match(s);if(!e)throw new TypeError("Invalid locale: ".concat(t));return e[1]}(t)}var s=/^([a-z0-9]+)/i;function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var y=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=t.supportedLocalesOf(e);if(0===n.length)throw new RangeError("Unsupported locale: "+e);if(r&&"cardinal"!==r.type)throw new RangeError('Only "cardinal" "type" is supported');this.$=l[f(n[0])]}var e,r,n;return e=t,n=[{key:"supportedLocalesOf",value:function(t){return"string"==typeof t&&(t=[t]),t.filter((function(t){return l[f(t)]}))}}],(r=[{key:"select",value:function(t){return this.$(t)}}])&&p(e.prototype,r),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach((function(e){d(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function d(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function v(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,a=[],i=!0,u=!1;try{for(r=r.call(t);!(i=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);i=!0);}catch(t){u=!0,o=t}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return g(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var j=["second","minute","hour","day","week","month","quarter","year"],S=["auto","always"],P=["long","short","narrow"],A=["lookup","best fit"],k=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};w(this,t);var a=r.numeric,u=r.style,c=r.styleFallback,l=r.localeMatcher;if(this.numeric="always",this.style="long",this.localeMatcher="lookup",void 0!==a){if(S.indexOf(a)<0)throw new RangeError('Invalid "numeric" option: '.concat(a));this.numeric=a}if(void 0!==u){if(P.indexOf(u)<0&&!c)throw new RangeError('Invalid "style" option: '.concat(u));this.style=u}if(void 0!==l){if(A.indexOf(l)<0)throw new RangeError('Invalid "localeMatcher" option: '.concat(l));this.localeMatcher=l}if("string"==typeof e&&(e=[e]),e.push(n()),this.locale=t.supportedLocalesOf(e,{localeMatcher:this.localeMatcher})[0],!this.locale)throw new Error("No supported locale was found");if(y.supportedLocalesOf(this.locale).length>0?this.pluralRules=new y(this.locale):console.warn('"'.concat(this.locale,'" locale is not supported')),"undefined"!=typeof Intl&&Intl.NumberFormat?(this.numberFormat=new Intl.NumberFormat(this.locale),this.numberingSystem=this.numberFormat.resolvedOptions().numberingSystem):this.numberingSystem="latn",this.locale=i(this.locale,{localeMatcher:this.localeMatcher}),c)for(var f=Object.keys(o(this.locale)),s=0,p=[this.style].concat(P,[f[0]]);s<p.length;s++){var m=p[s];if(f.indexOf(m)>=0){this.style=m;break}}}var e,r,a;return e=t,(r=[{key:"format",value:function(){var t=F(arguments),e=v(t,2),r=e[0],n=e[1];return this.getRule(r,n).replace("{0}",this.formatNumber(Math.abs(r)))}},{key:"formatToParts",value:function(){var t=F(arguments),e=v(t,2),r=e[0],n=e[1],o=this.getRule(r,n),a=o.indexOf("{0}");if(a<0)return[{type:"literal",value:o}];var i=[];return a>0&&i.push({type:"literal",value:o.slice(0,a)}),i=i.concat(this.formatNumberToParts(Math.abs(r)).map((function(t){return h(h({},t),{},{unit:n})}))),a+"{0}".length<o.length-1&&i.push({type:"literal",value:o.slice(a+"{0}".length)}),i}},{key:"getRule",value:function(t,e){var r=o(this.locale)[this.style][e];if("string"==typeof r)return r;if("auto"===this.numeric)if(-2===t||-1===t){var n=r["previous".concat(-1===t?"":"-"+Math.abs(t))];if(n)return n}else if(1===t||2===t){var a=r["next".concat(1===t?"":"-"+Math.abs(t))];if(a)return a}else if(0===t&&r.current)return r.current;var i,u=r[(i=t,i<0||0===i&&function(t){return 1/t==-1/0}(i)?"past":"future")];return"string"==typeof u?u:u[this.pluralRules&&this.pluralRules.select(Math.abs(t))||"other"]||u.other}},{key:"formatNumber",value:function(t){return this.numberFormat?this.numberFormat.format(t):String(t)}},{key:"formatNumberToParts",value:function(t){return this.numberFormat&&this.numberFormat.formatToParts?this.numberFormat.formatToParts(t):[{type:"integer",value:this.formatNumber(t)}]}},{key:"resolvedOptions",value:function(){return{locale:this.locale,style:this.style,numeric:this.numeric,numberingSystem:this.numberingSystem}}}])&&O(e.prototype,r),a&&O(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}();k.supportedLocalesOf=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof t)t=[t];else if(!Array.isArray(t))throw new TypeError('Invalid "locales" argument');return t.filter((function(t){return i(t,e)}))},k.addLocale=function(t){if(!t)throw new Error("No locale data passed");e[t.locale]=t,r[t.locale.toLowerCase()]=t.locale},k.setDefaultLocale=function(e){t=e},k.getDefaultLocale=n,k.PluralRules=y;var D='Invalid "unit" argument';function T(t){if("symbol"===m(t))throw new TypeError(D);if("string"!=typeof t)throw new RangeError("".concat(D,": ").concat(t));if("s"===t[t.length-1]&&(t=t.slice(0,t.length-1)),j.indexOf(t)<0)throw new RangeError("".concat(D,": ").concat(t));return t}function E(t){if(t=Number(t),Number.isFinite&&!Number.isFinite(t))throw new RangeError("".concat('Invalid "number" argument',": ").concat(t));return t}function F(t){if(t.length<2)throw new TypeError('"unit" argument is required');return[E(t[0]),T(t[1])]}function I(t){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function N(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var M=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.cache={}}var e,r,n;return e=t,(r=[{key:"get",value:function(){for(var t=this.cache,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];for(var o=0,a=r;o<a.length;o++){var i=a[o];if("object"!==I(t))return;t=t[i]}return t}},{key:"put",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var n=e.pop(),o=e.pop(),a=this.cache,i=0,u=e;i<u.length;i++){var c=u[i];"object"!==I(a[c])&&(a[c]={}),a=a[c]}return a[o]=n}}])&&N(e.prototype,r),n&&N(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function R(t){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function z(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return x(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return x(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function L(t,e){for(var r,n=z(t);!(r=n()).done;){var o=r.value;if(e(o))return o;for(var a=o.split("-");a.length>1;)if(a.pop(),e(o=a.join("-")))return o}throw new Error("No locale data has been registered for any of the locales: ".concat(t.join(", ")))}function C(t){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function U(t){return function(t){return void 0!==C(t)&&null!==t&&t.constructor===_}(t)&&(Array.isArray(t.steps)||Array.isArray(t.gradation)||Array.isArray(t.flavour)||"string"==typeof t.flavour||Array.isArray(t.labels)||"string"==typeof t.labels||Array.isArray(t.units)||"function"==typeof t.custom)}var _={}.constructor;var Y=60,$=3600,q=86400,V=7*q,J=2630016,B=31556952;function G(t){switch(t){case"second":return 1;case"minute":return Y;case"hour":return $;case"day":return q;case"week":return V;case"month":return J;case"year":return B}}function H(t){return void 0!==t.factor?t.factor:G(t.unit||t.formatAs)||1}function K(t){switch(t){case"floor":return Math.floor;default:return Math.round}}function Q(t){switch(t){case"floor":return 1;default:return.5}}function W(t){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function X(t,e){var r,n=e.prevStep,o=e.timestamp,a=e.now,i=e.future,u=e.round;return n&&(n.id||n.unit)&&(r=t["threshold_for_".concat(n.id||n.unit)]),void 0===r&&void 0!==t.threshold&&"function"==typeof(r=t.threshold)&&(r=r(a,i)),void 0===r&&(r=t.minTime),"object"===W(r)&&(r=n&&n.id&&void 0!==r[n.id]?r[n.id]:r.default),"function"==typeof r&&(r=r(o,{future:i,getMinTimeForUnit:function(t,e){return Z(t,e||n&&n.formatAs,{round:u})}})),void 0===r&&t.test&&(r=t.test(o,{now:a,future:i})?0:9007199254740991),void 0===r&&(n?t.formatAs&&n.formatAs&&(r=Z(t.formatAs,n.formatAs,{round:u})):r=0),void 0===r&&console.warn("[javascript-time-ago] A step should specify `minTime`:\n"+JSON.stringify(t,null,2)),r}function Z(t,e,r){var n,o=r.round,a=G(t);if(n=G("now"===e?t:e),void 0!==a&&void 0!==n)return a-n*(1-Q(o))}function tt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function et(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tt(Object(r),!0).forEach((function(e){rt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function rt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nt(t,e,r){var n=r.now,o=r.future,a=r.round,i=r.units,u=r.getNextStep,c=function(t,e,r){var n=r.now,o=r.future,a=r.round;if(0===t.length)return;var i=ot(t,e,{now:n,future:o||e<0,round:a});if(-1===i)return;var u=t[i];if(u.granularity){if(0===K(a)(Math.abs(e)/H(u)/u.granularity)*u.granularity&&i>0)return t[i-1]}return u}(t=function(t,e){return t.filter((function(t){var r=t.unit,n=t.formatAs;return!(r=r||n)||e.indexOf(r)>=0}))}(t,i),e,{now:n,future:o,round:a});return u?c?[t[t.indexOf(c)-1],c,t[t.indexOf(c)+1]]:[void 0,void 0,t[0]]:c}function ot(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=X(t[n],et({prevStep:t[n-1],timestamp:r.now-1e3*e},r));return void 0===o||Math.abs(e)<o?n-1:n===t.length-1?n:ot(t,e,r,n+1)}function at(t,e,r){var n=r.now,o=r.round;if(G(t)){var a=1e3*G(t),i=e>n,u=Math.abs(e-n),c=K(o)(u/a)*a;return i?c>0?u-c+function(t,e){return(1-Q(t))*e+1}(o,a):u-c+1:-(u-c)+function(t,e){return Q(t)*e}(o,a)}}var it=31536e9;function ut(t,e,r){var n=r.prevStep,o=r.nextStep,a=r.now,i=r.future,u=r.round,c=t.getTime?t.getTime():t,l=function(t){return at(t,c,{now:a,round:u})},f=function(t,e,r){var n=r.now,o=r.future,a=r.round,i=r.prevStep;if(t){var u=function(t,e,r){var n=r.now,o=r.future,a=r.round,i=r.prevStep,u=X(t,{timestamp:e,now:n,future:o,round:a,prevStep:i});if(void 0===u)return;return o?e-1e3*u+1:0===u&&e===n?it:e+1e3*u}(t,e,{now:n,future:o,round:a,prevStep:i});if(void 0===u)return;return u-n}return o?e-n+1:it}(i?e:o,c,{future:i,now:a,round:u,prevStep:i?n:e});if(void 0!==f){var s;if(e&&(e.getTimeToNextUpdate&&(s=e.getTimeToNextUpdate(c,{getTimeToNextUpdateForUnit:l,getRoundFunction:K,now:a,future:i,round:u})),void 0===s)){var p=e.unit||e.formatAs;p&&(s=l(p))}return void 0===s?f:Math.min(s,f)}}var ct={};function lt(t){return ct[t]}function ft(t){if(!t)throw new Error("[javascript-time-ago] No locale data passed.");ct[t.locale]=t}var st={steps:[{formatAs:"now"},{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"}],labels:"long"};function pt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function yt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pt(Object(r),!0).forEach((function(e){mt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function mt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var bt=yt(yt({},st),{},{steps:st.steps.filter((function(t){return"second"!==t.formatAs}))}),ht=[{factor:1,unit:"now"},{threshold:1,threshold_for_now:45.5,factor:1,unit:"second"},{threshold:45.5,factor:Y,unit:"minute"},{threshold:150,granularity:5,factor:Y,unit:"minute"},{threshold:1350,factor:1800,unit:"half-hour"},{threshold:2550,threshold_for_minute:3150,factor:$,unit:"hour"},{threshold:73800,factor:q,unit:"day"},{threshold:475200,factor:V,unit:"week"},{threshold:2116800,factor:J,unit:"month"},{threshold:27615168,factor:B,unit:"year"}],dt={gradation:ht,flavour:"long",units:["now","minute","hour","day","week","month","year"]},vt={gradation:ht,flavour:"long-time",units:["now","minute","hour","day","week","month","year"]};function gt(t){return t instanceof Date?t:new Date(t)}var wt=[{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"}],Ot={},jt={minTime:function(t,e){return e.future,(0,e.getMinTimeForUnit)("day")},format:function(t,e){return Ot[e]||(Ot[e]={}),Ot[e].dayMonth||(Ot[e].dayMonth=new Intl.DateTimeFormat(e,{month:"short",day:"numeric"})),Ot[e].dayMonth.format(gt(t))}},St={minTime:function(t,e){return e.future?(t-(new Date(new Date(t).getFullYear(),0).getTime()-1))/1e3:(new Date(new Date(t).getFullYear()+1,0).getTime()-t)/1e3},format:function(t,e){return Ot[e]||(Ot[e]={}),Ot[e].dayMonthYear||(Ot[e].dayMonthYear=new Intl.DateTimeFormat(e,{year:"numeric",month:"short",day:"numeric"})),Ot[e].dayMonthYear.format(gt(t))}};"object"===("undefined"==typeof Intl?"undefined":R(Intl))&&"function"==typeof Intl.DateTimeFormat?wt.push(jt,St):wt.push({formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"});var Pt={steps:wt,labels:["mini","short-time","narrow","short"]};function At(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function kt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?At(Object(r),!0).forEach((function(e){Dt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):At(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Dt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Tt=kt(kt({},Pt),{},{steps:[{formatAs:"now"}].concat(Pt.steps)});function Et(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ft(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Et(Object(r),!0).forEach((function(e){It(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Et(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function It(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Nt=Ft(Ft({},Pt),{},{steps:Pt.steps.filter((function(t){return"second"!==t.formatAs}))});function Mt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Rt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Mt(Object(r),!0).forEach((function(e){zt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function zt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var xt=Rt(Rt({},Nt),{},{steps:[{formatAs:"now"}].concat(Nt.steps)});function Lt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ct(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Lt(Object(r),!0).forEach((function(e){Ut(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Lt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ut(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var _t=Ct(Ct({},Pt),{},{steps:Pt.steps.filter((function(t){return"second"!==t.formatAs})).map((function(t){return"minute"===t.formatAs?Ct(Ct({},t),{},{minTime:Y}):t}))}),Yt={steps:[{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"month"},{formatAs:"year"}],labels:["mini","short-time","narrow","short"]};function $t(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function qt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$t(Object(r),!0).forEach((function(e){Vt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$t(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Vt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Jt=qt(qt({},Yt),{},{steps:[{formatAs:"now"}].concat(Yt.steps)});function Bt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Gt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Bt(Object(r),!0).forEach((function(e){Ht(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Bt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ht(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Kt=Gt(Gt({},Yt),{},{steps:Yt.steps.filter((function(t){return"second"!==t.formatAs}))});function Qt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Wt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Qt(Object(r),!0).forEach((function(e){Xt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Xt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Zt=Wt(Wt({},Kt),{},{steps:[{formatAs:"now"}].concat(Kt.steps)});function te(t){switch(t){case"default":case"round":return st;case"round-minute":return bt;case"approximate":return dt;case"time":case"approximate-time":return vt;case"mini":return Yt;case"mini-now":return Jt;case"mini-minute":return Kt;case"mini-minute-now":return Zt;case"twitter":return Pt;case"twitter-now":return Tt;case"twitter-minute":return Nt;case"twitter-minute-now":return xt;case"twitter-first-minute":return _t;default:return dt}}function ee(t){return(ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function re(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=oe(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ne(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,a=[],i=!0,u=!1;try{for(r=r.call(t);!(i=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);i=!0);}catch(t){u=!0,o=t}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}(t,e)||oe(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oe(t,e){if(t){if("string"==typeof t)return ae(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ae(t,e):void 0}}function ae(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ie(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ue(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var ce,le=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.polyfill;ie(this,t),"string"==typeof e&&(e=[e]),this.locale=L(e.concat(t.getDefaultLocale()),lt),"undefined"!=typeof Intl&&Intl.NumberFormat&&(this.numberFormat=new Intl.NumberFormat(this.locale)),!1===n?(this.IntlRelativeTimeFormat=Intl.RelativeTimeFormat,this.IntlPluralRules=Intl.PluralRules):(this.IntlRelativeTimeFormat=k,this.IntlPluralRules=k.PluralRules),this.relativeTimeFormatCache=new M,this.pluralRulesCache=new M}var e,r,n;return e=t,(r=[{key:"format",value:function(t,e,r){var n;r||(e&&"string"!=typeof(n=e)&&!U(n)?(r=e,e=void 0):r={}),e||(e=bt),"string"==typeof e&&(e=te(e));var o,a=function(t){if(t.constructor===Date||"object"===ee(e=t)&&"function"==typeof e.getTime)return t.getTime();var e;if("number"==typeof t)return t;throw new Error("Unsupported relative time formatter input: ".concat(ee(t),", ").concat(t))}(t),i=this.getLabels(e.flavour||e.labels),u=i.labels,c=i.labelsType;void 0!==e.now&&(o=e.now),void 0===o&&void 0!==r.now&&(o=r.now),void 0===o&&(o=Date.now());var l=(o-a)/1e3,f=r.future||l<0,s=function(t,e,r,n){var o=t.now||e&&e.now;return o?"string"==typeof o?o:n?o.future:o.past:r&&r.second&&r.second.current?r.second.current:void 0}(u,lt(this.locale).now,lt(this.locale).long,f);if(e.custom){var p=e.custom({now:o,date:new Date(a),time:a,elapsed:l,locale:this.locale});if(void 0!==p)return p}var y=function(t,e,r){var n=Object.keys(e);return r&&n.push("now"),t&&(n=t.filter((function(t){return"now"===t||n.indexOf(t)>=0}))),n}(e.units,u,s),m=r.round||e.round,b=ne(nt(e.gradation||e.steps||bt.steps,l,{now:o,units:y,round:m,future:f,getNextStep:!0}),3),h=b[0],d=b[1],v=b[2],g=this.formatDateForStep(a,d,l,{labels:u,labelsType:c,nowLabel:s,now:o,future:f,round:m})||"";return r.getTimeToNextUpdate?[g,ut(a,d,{nextStep:v,prevStep:h,now:o,future:f,round:m})]:g}},{key:"formatDateForStep",value:function(t,e,r,n){var o=this,a=n.labels,i=n.labelsType,u=n.nowLabel,c=n.now,l=n.future,f=n.round;if(e){if(e.format)return e.format(t,this.locale,{formatAs:function(t,e){return o.formatValue(e,t,{labels:a,future:l})},now:c,future:l});var s=e.unit||e.formatAs;if(!s)throw new Error("[javascript-time-ago] Each step must define either `formatAs` or `format()`. Step: ".concat(JSON.stringify(e)));if("now"===s)return u;var p=Math.abs(r)/H(e);e.granularity&&(p=K(f)(p/e.granularity)*e.granularity);var y=-1*Math.sign(r)*K(f)(p);switch(0===y&&(y=l?0:-0),i){case"long":case"short":case"narrow":return this.getFormatter(i).format(y,s);default:return this.formatValue(y,s,{labels:a,future:l})}}}},{key:"formatValue",value:function(t,e,r){var n=r.labels,o=r.future;return this.getFormattingRule(n,e,t,{future:o}).replace("{0}",this.formatNumber(Math.abs(t)))}},{key:"getFormattingRule",value:function(t,e,r,n){var o=n.future;if(this.locale,"string"==typeof(t=t[e]))return t;var a=t[0===r?o?"future":"past":r<0?"past":"future"]||t;return"string"==typeof a?a:a[this.getPluralRules().select(Math.abs(r))]||a.other}},{key:"formatNumber",value:function(t){return this.numberFormat?this.numberFormat.format(t):String(t)}},{key:"getFormatter",value:function(t){return this.relativeTimeFormatCache.get(this.locale,t)||this.relativeTimeFormatCache.put(this.locale,t,new this.IntlRelativeTimeFormat(this.locale,{style:t}))}},{key:"getPluralRules",value:function(){return this.pluralRulesCache.get(this.locale)||this.pluralRulesCache.put(this.locale,new this.IntlPluralRules(this.locale))}},{key:"getLabels",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];"string"==typeof t&&(t=[t]),t=(t=t.map((function(t){switch(t){case"tiny":case"mini-time":return"mini";default:return t}}))).concat("long");for(var e,r=lt(this.locale),n=re(t);!(e=n()).done;){var o=e.value;if(r[o])return{labelsType:o,labels:r[o]}}}}])&&ue(e.prototype,r),n&&ue(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),fe="en";return le.getDefaultLocale=function(){return fe},le.setDefaultLocale=function(t){return fe=t},le.addDefaultLocale=function(t){if(ce)return console.error("[javascript-time-ago] `TimeAgo.addDefaultLocale()` can only be called once. To add other locales, use `TimeAgo.addLocale()`.");ce=!0,le.setDefaultLocale(t.locale),le.addLocale(t)},le.addLocale=function(t){ft(t),k.addLocale(t)},le.locale=le.addLocale,le.addLabels=function(t,e,r){var n=lt(t);n||(ft({locale:t}),n=lt(t)),n[e]=r},le}));
2
2
  //# sourceMappingURL=javascript-time-ago.js.map