javascript-time-ago 2.5.1 → 2.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1698) hide show
  1. package/README.md +35 -9
  2. package/bin/generate-load-all-locales.js +1 -1
  3. package/bin/generate-locale-messages.js +78 -50
  4. package/bundle/javascript-time-ago.js +1 -1
  5. package/bundle/javascript-time-ago.js.map +1 -1
  6. package/bundle/javascript-time-ago.min.js +1 -1
  7. package/bundle/javascript-time-ago.min.js.map +1 -1
  8. package/cache/index.cjs.js +1 -1
  9. package/commonjs/TimeAgo.js +4 -0
  10. package/commonjs/TimeAgo.js.map +1 -1
  11. package/locale/af/package.json +7 -5
  12. package/locale/af.json.d.ts +4 -0
  13. package/locale/af.json.js +213 -0
  14. package/locale/am/package.json +7 -5
  15. package/locale/am.json.d.ts +4 -0
  16. package/locale/am.json.js +252 -0
  17. package/locale/ar/package.json +7 -5
  18. package/locale/ar-AE/package.json +7 -5
  19. package/locale/ar-AE.json.d.ts +4 -0
  20. package/locale/ar-AE.json.js +423 -0
  21. package/locale/ar.json.d.ts +4 -0
  22. package/locale/ar.json.js +423 -0
  23. package/locale/as/package.json +7 -5
  24. package/locale/as.json.d.ts +4 -0
  25. package/locale/as.json.js +165 -0
  26. package/locale/ast/package.json +7 -5
  27. package/locale/ast.json.d.ts +4 -0
  28. package/locale/ast.json.js +231 -0
  29. package/locale/az/package.json +7 -5
  30. package/locale/az.json.d.ts +4 -0
  31. package/locale/az.json.js +159 -0
  32. package/locale/be/package.json +7 -5
  33. package/locale/be.json.d.ts +4 -0
  34. package/locale/be.json.js +259 -0
  35. package/locale/bg/package.json +7 -5
  36. package/locale/bg.json.d.ts +4 -0
  37. package/locale/bg.json.js +219 -0
  38. package/locale/bn/package.json +7 -5
  39. package/locale/bn.json.d.ts +4 -0
  40. package/locale/bn.json.js +165 -0
  41. package/locale/br/package.json +7 -5
  42. package/locale/br.json.d.ts +4 -0
  43. package/locale/br.json.js +229 -0
  44. package/locale/brx/package.json +7 -5
  45. package/locale/brx.json.d.ts +4 -0
  46. package/locale/brx.json.js +159 -0
  47. package/locale/bs/package.json +7 -5
  48. package/locale/bs-Cyrl/package.json +7 -5
  49. package/locale/bs-Cyrl.json.d.ts +4 -0
  50. package/locale/bs-Cyrl.json.js +286 -0
  51. package/locale/bs.json.d.ts +4 -0
  52. package/locale/bs.json.js +238 -0
  53. package/locale/ca/package.json +7 -5
  54. package/locale/ca.json.d.ts +4 -0
  55. package/locale/ca.json.js +249 -0
  56. package/locale/ccp/package.json +7 -5
  57. package/locale/ccp.json.d.ts +4 -0
  58. package/locale/ccp.json.js +180 -0
  59. package/locale/ce/package.json +7 -5
  60. package/locale/ce.json.d.ts +4 -0
  61. package/locale/ce.json.js +165 -0
  62. package/locale/ceb/package.json +7 -5
  63. package/locale/ceb.json.d.ts +4 -0
  64. package/locale/ceb.json.js +159 -0
  65. package/locale/chr/package.json +7 -5
  66. package/locale/chr.json.d.ts +4 -0
  67. package/locale/chr.json.js +210 -0
  68. package/locale/cs/package.json +7 -5
  69. package/locale/cs.json.d.ts +4 -0
  70. package/locale/cs.json.js +270 -0
  71. package/locale/cy/package.json +7 -5
  72. package/locale/cy.json.d.ts +4 -0
  73. package/locale/cy.json.js +342 -0
  74. package/locale/da/package.json +7 -5
  75. package/locale/da.json.d.ts +4 -0
  76. package/locale/da.json.js +311 -0
  77. package/locale/de/package.json +7 -5
  78. package/locale/de.json.d.ts +4 -0
  79. package/locale/de.json.js +302 -0
  80. package/locale/dsb/package.json +7 -5
  81. package/locale/dsb.json.d.ts +4 -0
  82. package/locale/dsb.json.js +235 -0
  83. package/locale/dz/package.json +7 -5
  84. package/locale/dz.json.d.ts +4 -0
  85. package/locale/dz.json.js +165 -0
  86. package/locale/ee/package.json +7 -5
  87. package/locale/ee.json.d.ts +4 -0
  88. package/locale/ee.json.js +279 -0
  89. package/locale/el/package.json +7 -5
  90. package/locale/el.json +0 -10
  91. package/locale/el.json.d.ts +4 -0
  92. package/locale/el.json.js +248 -0
  93. package/locale/en/package.json +7 -5
  94. package/locale/en-001/package.json +7 -5
  95. package/locale/en-001.json.d.ts +4 -0
  96. package/locale/en-001.json.js +219 -0
  97. package/locale/en-150/package.json +7 -5
  98. package/locale/en-150.json.d.ts +4 -0
  99. package/locale/en-150.json.js +219 -0
  100. package/locale/en-AG/package.json +7 -5
  101. package/locale/en-AG.json.d.ts +4 -0
  102. package/locale/en-AG.json.js +219 -0
  103. package/locale/en-AI/package.json +7 -5
  104. package/locale/en-AI.json.d.ts +4 -0
  105. package/locale/en-AI.json.js +219 -0
  106. package/locale/en-AT/package.json +7 -5
  107. package/locale/en-AT.json.d.ts +4 -0
  108. package/locale/en-AT.json.js +219 -0
  109. package/locale/en-AU/package.json +7 -5
  110. package/locale/en-AU.json.d.ts +4 -0
  111. package/locale/en-AU.json.js +291 -0
  112. package/locale/en-BB/package.json +7 -5
  113. package/locale/en-BB.json.d.ts +4 -0
  114. package/locale/en-BB.json.js +219 -0
  115. package/locale/en-BE/package.json +7 -5
  116. package/locale/en-BE.json.d.ts +4 -0
  117. package/locale/en-BE.json.js +219 -0
  118. package/locale/en-BM/package.json +7 -5
  119. package/locale/en-BM.json.d.ts +4 -0
  120. package/locale/en-BM.json.js +219 -0
  121. package/locale/en-BS/package.json +7 -5
  122. package/locale/en-BS.json.d.ts +4 -0
  123. package/locale/en-BS.json.js +219 -0
  124. package/locale/en-BW/package.json +7 -5
  125. package/locale/en-BW.json.d.ts +4 -0
  126. package/locale/en-BW.json.js +219 -0
  127. package/locale/en-BZ/package.json +7 -5
  128. package/locale/en-BZ.json.d.ts +4 -0
  129. package/locale/en-BZ.json.js +219 -0
  130. package/locale/en-CA/package.json +7 -5
  131. package/locale/en-CA.json.d.ts +4 -0
  132. package/locale/en-CA.json.js +303 -0
  133. package/locale/en-CC/package.json +7 -5
  134. package/locale/en-CC.json.d.ts +4 -0
  135. package/locale/en-CC.json.js +219 -0
  136. package/locale/en-CH/package.json +7 -5
  137. package/locale/en-CH.json.d.ts +4 -0
  138. package/locale/en-CH.json.js +219 -0
  139. package/locale/en-CK/package.json +7 -5
  140. package/locale/en-CK.json.d.ts +4 -0
  141. package/locale/en-CK.json.js +219 -0
  142. package/locale/en-CM/package.json +7 -5
  143. package/locale/en-CM.json.d.ts +4 -0
  144. package/locale/en-CM.json.js +219 -0
  145. package/locale/en-CX/package.json +7 -5
  146. package/locale/en-CX.json.d.ts +4 -0
  147. package/locale/en-CX.json.js +219 -0
  148. package/locale/en-CY/package.json +7 -5
  149. package/locale/en-CY.json.d.ts +4 -0
  150. package/locale/en-CY.json.js +219 -0
  151. package/locale/en-DE/package.json +7 -5
  152. package/locale/en-DE.json.d.ts +4 -0
  153. package/locale/en-DE.json.js +219 -0
  154. package/locale/en-DG/package.json +7 -5
  155. package/locale/en-DG.json.d.ts +4 -0
  156. package/locale/en-DG.json.js +219 -0
  157. package/locale/en-DK/package.json +7 -5
  158. package/locale/en-DK.json.d.ts +4 -0
  159. package/locale/en-DK.json.js +219 -0
  160. package/locale/en-DM/package.json +7 -5
  161. package/locale/en-DM.json.d.ts +4 -0
  162. package/locale/en-DM.json.js +219 -0
  163. package/locale/en-ER/package.json +7 -5
  164. package/locale/en-ER.json.d.ts +4 -0
  165. package/locale/en-ER.json.js +219 -0
  166. package/locale/en-FI/package.json +7 -5
  167. package/locale/en-FI.json.d.ts +4 -0
  168. package/locale/en-FI.json.js +219 -0
  169. package/locale/en-FJ/package.json +7 -5
  170. package/locale/en-FJ.json.d.ts +4 -0
  171. package/locale/en-FJ.json.js +219 -0
  172. package/locale/en-FK/package.json +7 -5
  173. package/locale/en-FK.json.d.ts +4 -0
  174. package/locale/en-FK.json.js +219 -0
  175. package/locale/en-FM/package.json +7 -5
  176. package/locale/en-FM.json.d.ts +4 -0
  177. package/locale/en-FM.json.js +219 -0
  178. package/locale/en-GB/package.json +7 -5
  179. package/locale/en-GB.json.d.ts +4 -0
  180. package/locale/en-GB.json.js +219 -0
  181. package/locale/en-GD/package.json +7 -5
  182. package/locale/en-GD.json.d.ts +4 -0
  183. package/locale/en-GD.json.js +219 -0
  184. package/locale/en-GG/package.json +7 -5
  185. package/locale/en-GG.json.d.ts +4 -0
  186. package/locale/en-GG.json.js +219 -0
  187. package/locale/en-GH/package.json +7 -5
  188. package/locale/en-GH.json.d.ts +4 -0
  189. package/locale/en-GH.json.js +219 -0
  190. package/locale/en-GI/package.json +7 -5
  191. package/locale/en-GI.json.d.ts +4 -0
  192. package/locale/en-GI.json.js +219 -0
  193. package/locale/en-GM/package.json +7 -5
  194. package/locale/en-GM.json.d.ts +4 -0
  195. package/locale/en-GM.json.js +219 -0
  196. package/locale/en-GY/package.json +7 -5
  197. package/locale/en-GY.json.d.ts +4 -0
  198. package/locale/en-GY.json.js +219 -0
  199. package/locale/en-HK/package.json +7 -5
  200. package/locale/en-HK.json.d.ts +4 -0
  201. package/locale/en-HK.json.js +219 -0
  202. package/locale/en-IE/package.json +7 -5
  203. package/locale/en-IE.json.d.ts +4 -0
  204. package/locale/en-IE.json.js +219 -0
  205. package/locale/en-IL/package.json +7 -5
  206. package/locale/en-IL.json.d.ts +4 -0
  207. package/locale/en-IL.json.js +219 -0
  208. package/locale/en-IM/package.json +7 -5
  209. package/locale/en-IM.json.d.ts +4 -0
  210. package/locale/en-IM.json.js +219 -0
  211. package/locale/en-IN/package.json +7 -5
  212. package/locale/en-IN.json.d.ts +4 -0
  213. package/locale/en-IN.json.js +219 -0
  214. package/locale/en-IO/package.json +7 -5
  215. package/locale/en-IO.json.d.ts +4 -0
  216. package/locale/en-IO.json.js +219 -0
  217. package/locale/en-JE/package.json +7 -5
  218. package/locale/en-JE.json.d.ts +4 -0
  219. package/locale/en-JE.json.js +219 -0
  220. package/locale/en-JM/package.json +7 -5
  221. package/locale/en-JM.json.d.ts +4 -0
  222. package/locale/en-JM.json.js +219 -0
  223. package/locale/en-KE/package.json +7 -5
  224. package/locale/en-KE.json.d.ts +4 -0
  225. package/locale/en-KE.json.js +219 -0
  226. package/locale/en-KI/package.json +7 -5
  227. package/locale/en-KI.json.d.ts +4 -0
  228. package/locale/en-KI.json.js +219 -0
  229. package/locale/en-KN/package.json +7 -5
  230. package/locale/en-KN.json.d.ts +4 -0
  231. package/locale/en-KN.json.js +219 -0
  232. package/locale/en-KY/package.json +7 -5
  233. package/locale/en-KY.json.d.ts +4 -0
  234. package/locale/en-KY.json.js +219 -0
  235. package/locale/en-LC/package.json +7 -5
  236. package/locale/en-LC.json.d.ts +4 -0
  237. package/locale/en-LC.json.js +219 -0
  238. package/locale/en-LR/package.json +7 -5
  239. package/locale/en-LR.json.d.ts +4 -0
  240. package/locale/en-LR.json.js +219 -0
  241. package/locale/en-LS/package.json +7 -5
  242. package/locale/en-LS.json.d.ts +4 -0
  243. package/locale/en-LS.json.js +219 -0
  244. package/locale/en-MG/package.json +7 -5
  245. package/locale/en-MG.json.d.ts +4 -0
  246. package/locale/en-MG.json.js +219 -0
  247. package/locale/en-MO/package.json +7 -5
  248. package/locale/en-MO.json.d.ts +4 -0
  249. package/locale/en-MO.json.js +219 -0
  250. package/locale/en-MS/package.json +7 -5
  251. package/locale/en-MS.json.d.ts +4 -0
  252. package/locale/en-MS.json.js +219 -0
  253. package/locale/en-MT/package.json +7 -5
  254. package/locale/en-MT.json.d.ts +4 -0
  255. package/locale/en-MT.json.js +219 -0
  256. package/locale/en-MU/package.json +7 -5
  257. package/locale/en-MU.json.d.ts +4 -0
  258. package/locale/en-MU.json.js +219 -0
  259. package/locale/en-MV/package.json +7 -5
  260. package/locale/en-MV.json.d.ts +4 -0
  261. package/locale/en-MV.json.js +219 -0
  262. package/locale/en-MW/package.json +7 -5
  263. package/locale/en-MW.json.d.ts +4 -0
  264. package/locale/en-MW.json.js +219 -0
  265. package/locale/en-MY/package.json +7 -5
  266. package/locale/en-MY.json.d.ts +4 -0
  267. package/locale/en-MY.json.js +219 -0
  268. package/locale/en-NA/package.json +7 -5
  269. package/locale/en-NA.json.d.ts +4 -0
  270. package/locale/en-NA.json.js +219 -0
  271. package/locale/en-NF/package.json +7 -5
  272. package/locale/en-NF.json.d.ts +4 -0
  273. package/locale/en-NF.json.js +219 -0
  274. package/locale/en-NG/package.json +7 -5
  275. package/locale/en-NG.json.d.ts +4 -0
  276. package/locale/en-NG.json.js +219 -0
  277. package/locale/en-NL/package.json +7 -5
  278. package/locale/en-NL.json.d.ts +4 -0
  279. package/locale/en-NL.json.js +219 -0
  280. package/locale/en-NR/package.json +7 -5
  281. package/locale/en-NR.json.d.ts +4 -0
  282. package/locale/en-NR.json.js +219 -0
  283. package/locale/en-NU/package.json +7 -5
  284. package/locale/en-NU.json.d.ts +4 -0
  285. package/locale/en-NU.json.js +219 -0
  286. package/locale/en-NZ/package.json +7 -5
  287. package/locale/en-NZ.json.d.ts +4 -0
  288. package/locale/en-NZ.json.js +219 -0
  289. package/locale/en-PG/package.json +7 -5
  290. package/locale/en-PG.json.d.ts +4 -0
  291. package/locale/en-PG.json.js +219 -0
  292. package/locale/en-PK/package.json +7 -5
  293. package/locale/en-PK.json.d.ts +4 -0
  294. package/locale/en-PK.json.js +219 -0
  295. package/locale/en-PN/package.json +7 -5
  296. package/locale/en-PN.json.d.ts +4 -0
  297. package/locale/en-PN.json.js +219 -0
  298. package/locale/en-PW/package.json +7 -5
  299. package/locale/en-PW.json.d.ts +4 -0
  300. package/locale/en-PW.json.js +219 -0
  301. package/locale/en-RW/package.json +7 -5
  302. package/locale/en-RW.json.d.ts +4 -0
  303. package/locale/en-RW.json.js +219 -0
  304. package/locale/en-SB/package.json +7 -5
  305. package/locale/en-SB.json.d.ts +4 -0
  306. package/locale/en-SB.json.js +219 -0
  307. package/locale/en-SC/package.json +7 -5
  308. package/locale/en-SC.json.d.ts +4 -0
  309. package/locale/en-SC.json.js +219 -0
  310. package/locale/en-SD/package.json +7 -5
  311. package/locale/en-SD.json.d.ts +4 -0
  312. package/locale/en-SD.json.js +219 -0
  313. package/locale/en-SE/package.json +7 -5
  314. package/locale/en-SE.json.d.ts +4 -0
  315. package/locale/en-SE.json.js +219 -0
  316. package/locale/en-SG/package.json +7 -5
  317. package/locale/en-SG.json.d.ts +4 -0
  318. package/locale/en-SG.json.js +225 -0
  319. package/locale/en-SH/package.json +7 -5
  320. package/locale/en-SH.json.d.ts +4 -0
  321. package/locale/en-SH.json.js +219 -0
  322. package/locale/en-SI/package.json +7 -5
  323. package/locale/en-SI.json.d.ts +4 -0
  324. package/locale/en-SI.json.js +219 -0
  325. package/locale/en-SL/package.json +7 -5
  326. package/locale/en-SL.json.d.ts +4 -0
  327. package/locale/en-SL.json.js +219 -0
  328. package/locale/en-SS/package.json +7 -5
  329. package/locale/en-SS.json.d.ts +4 -0
  330. package/locale/en-SS.json.js +219 -0
  331. package/locale/en-SX/package.json +7 -5
  332. package/locale/en-SX.json.d.ts +4 -0
  333. package/locale/en-SX.json.js +219 -0
  334. package/locale/en-SZ/package.json +7 -5
  335. package/locale/en-SZ.json.d.ts +4 -0
  336. package/locale/en-SZ.json.js +219 -0
  337. package/locale/en-TC/package.json +7 -5
  338. package/locale/en-TC.json.d.ts +4 -0
  339. package/locale/en-TC.json.js +219 -0
  340. package/locale/en-TK/package.json +7 -5
  341. package/locale/en-TK.json.d.ts +4 -0
  342. package/locale/en-TK.json.js +219 -0
  343. package/locale/en-TO/package.json +7 -5
  344. package/locale/en-TO.json.d.ts +4 -0
  345. package/locale/en-TO.json.js +219 -0
  346. package/locale/en-TT/package.json +7 -5
  347. package/locale/en-TT.json.d.ts +4 -0
  348. package/locale/en-TT.json.js +219 -0
  349. package/locale/en-TV/package.json +7 -5
  350. package/locale/en-TV.json.d.ts +4 -0
  351. package/locale/en-TV.json.js +219 -0
  352. package/locale/en-TZ/package.json +7 -5
  353. package/locale/en-TZ.json.d.ts +4 -0
  354. package/locale/en-TZ.json.js +219 -0
  355. package/locale/en-UG/package.json +7 -5
  356. package/locale/en-UG.json.d.ts +4 -0
  357. package/locale/en-UG.json.js +219 -0
  358. package/locale/en-VC/package.json +7 -5
  359. package/locale/en-VC.json.d.ts +4 -0
  360. package/locale/en-VC.json.js +219 -0
  361. package/locale/en-VG/package.json +7 -5
  362. package/locale/en-VG.json.d.ts +4 -0
  363. package/locale/en-VG.json.js +219 -0
  364. package/locale/en-VU/package.json +7 -5
  365. package/locale/en-VU.json.d.ts +4 -0
  366. package/locale/en-VU.json.js +219 -0
  367. package/locale/en-WS/package.json +7 -5
  368. package/locale/en-WS.json.d.ts +4 -0
  369. package/locale/en-WS.json.js +219 -0
  370. package/locale/en-ZA/package.json +7 -5
  371. package/locale/en-ZA.json.d.ts +4 -0
  372. package/locale/en-ZA.json.js +219 -0
  373. package/locale/en-ZM/package.json +7 -5
  374. package/locale/en-ZM.json.d.ts +4 -0
  375. package/locale/en-ZM.json.js +219 -0
  376. package/locale/en-ZW/package.json +7 -5
  377. package/locale/en-ZW.json.d.ts +4 -0
  378. package/locale/en-ZW.json.js +219 -0
  379. package/locale/en.json +17 -27
  380. package/locale/en.json.d.ts +4 -0
  381. package/locale/en.json.js +290 -0
  382. package/locale/es/package.json +7 -5
  383. package/locale/es-419/package.json +7 -5
  384. package/locale/es-419.json.d.ts +4 -0
  385. package/locale/es-419.json.js +225 -0
  386. package/locale/es-AR/package.json +7 -5
  387. package/locale/es-AR.json.d.ts +4 -0
  388. package/locale/es-AR.json.js +213 -0
  389. package/locale/es-BO/package.json +7 -5
  390. package/locale/es-BO.json.d.ts +4 -0
  391. package/locale/es-BO.json.js +225 -0
  392. package/locale/es-BR/package.json +7 -5
  393. package/locale/es-BR.json.d.ts +4 -0
  394. package/locale/es-BR.json.js +225 -0
  395. package/locale/es-BZ/package.json +7 -5
  396. package/locale/es-BZ.json.d.ts +4 -0
  397. package/locale/es-BZ.json.js +225 -0
  398. package/locale/es-CL/package.json +7 -5
  399. package/locale/es-CL.json.d.ts +4 -0
  400. package/locale/es-CL.json.js +225 -0
  401. package/locale/es-CO/package.json +7 -5
  402. package/locale/es-CO.json.d.ts +4 -0
  403. package/locale/es-CO.json.js +225 -0
  404. package/locale/es-CR/package.json +7 -5
  405. package/locale/es-CR.json.d.ts +4 -0
  406. package/locale/es-CR.json.js +225 -0
  407. package/locale/es-CU/package.json +7 -5
  408. package/locale/es-CU.json.d.ts +4 -0
  409. package/locale/es-CU.json.js +225 -0
  410. package/locale/es-DO/package.json +7 -5
  411. package/locale/es-DO.json.d.ts +4 -0
  412. package/locale/es-DO.json.js +225 -0
  413. package/locale/es-EC/package.json +7 -5
  414. package/locale/es-EC.json.d.ts +4 -0
  415. package/locale/es-EC.json.js +225 -0
  416. package/locale/es-GT/package.json +7 -5
  417. package/locale/es-GT.json.d.ts +4 -0
  418. package/locale/es-GT.json.js +225 -0
  419. package/locale/es-HN/package.json +7 -5
  420. package/locale/es-HN.json.d.ts +4 -0
  421. package/locale/es-HN.json.js +225 -0
  422. package/locale/es-MX/package.json +7 -5
  423. package/locale/es-MX.json.d.ts +4 -0
  424. package/locale/es-MX.json.js +231 -0
  425. package/locale/es-NI/package.json +7 -5
  426. package/locale/es-NI.json.d.ts +4 -0
  427. package/locale/es-NI.json.js +225 -0
  428. package/locale/es-PA/package.json +7 -5
  429. package/locale/es-PA.json.d.ts +4 -0
  430. package/locale/es-PA.json.js +225 -0
  431. package/locale/es-PE/package.json +7 -5
  432. package/locale/es-PE.json.d.ts +4 -0
  433. package/locale/es-PE.json.js +225 -0
  434. package/locale/es-PR/package.json +7 -5
  435. package/locale/es-PR.json.d.ts +4 -0
  436. package/locale/es-PR.json.js +225 -0
  437. package/locale/es-PY/package.json +7 -5
  438. package/locale/es-PY.json.d.ts +4 -0
  439. package/locale/es-PY.json.js +225 -0
  440. package/locale/es-SV/package.json +7 -5
  441. package/locale/es-SV.json.d.ts +4 -0
  442. package/locale/es-SV.json.js +225 -0
  443. package/locale/es-US/package.json +7 -5
  444. package/locale/es-US.json.d.ts +4 -0
  445. package/locale/es-US.json.js +225 -0
  446. package/locale/es-UY/package.json +7 -5
  447. package/locale/es-UY.json.d.ts +4 -0
  448. package/locale/es-UY.json.js +225 -0
  449. package/locale/es-VE/package.json +7 -5
  450. package/locale/es-VE.json.d.ts +4 -0
  451. package/locale/es-VE.json.js +225 -0
  452. package/locale/es.json +0 -10
  453. package/locale/es.json.d.ts +4 -0
  454. package/locale/es.json.js +272 -0
  455. package/locale/et/package.json +7 -5
  456. package/locale/et.json.d.ts +4 -0
  457. package/locale/et.json.js +165 -0
  458. package/locale/eu/package.json +7 -5
  459. package/locale/eu.json.d.ts +4 -0
  460. package/locale/eu.json.js +165 -0
  461. package/locale/fa/package.json +7 -5
  462. package/locale/fa.json.d.ts +4 -0
  463. package/locale/fa.json.js +165 -0
  464. package/locale/ff-Adlm/package.json +7 -5
  465. package/locale/ff-Adlm.json.d.ts +4 -0
  466. package/locale/ff-Adlm.json.js +279 -0
  467. package/locale/fi/package.json +7 -5
  468. package/locale/fi.json.d.ts +4 -0
  469. package/locale/fi.json.js +192 -0
  470. package/locale/fil/package.json +7 -5
  471. package/locale/fil.json.d.ts +4 -0
  472. package/locale/fil.json.js +300 -0
  473. package/locale/fo/package.json +7 -5
  474. package/locale/fo.json.d.ts +4 -0
  475. package/locale/fo.json.js +201 -0
  476. package/locale/fr/package.json +7 -5
  477. package/locale/fr-CA/package.json +7 -5
  478. package/locale/fr-CA.json.d.ts +4 -0
  479. package/locale/fr-CA.json.js +210 -0
  480. package/locale/fr.json.d.ts +4 -0
  481. package/locale/fr.json.js +260 -0
  482. package/locale/fur/package.json +7 -5
  483. package/locale/fur.json.d.ts +4 -0
  484. package/locale/fur.json.js +273 -0
  485. package/locale/fy/package.json +7 -5
  486. package/locale/fy.json.d.ts +4 -0
  487. package/locale/fy.json.js +255 -0
  488. package/locale/ga/package.json +7 -5
  489. package/locale/ga.json.d.ts +4 -0
  490. package/locale/ga.json.js +269 -0
  491. package/locale/gd/package.json +7 -5
  492. package/locale/gd.json.d.ts +4 -0
  493. package/locale/gd.json.js +315 -0
  494. package/locale/gl/package.json +7 -5
  495. package/locale/gl.json.d.ts +4 -0
  496. package/locale/gl.json.js +249 -0
  497. package/locale/gu/package.json +7 -5
  498. package/locale/gu.json.d.ts +4 -0
  499. package/locale/gu.json.js +165 -0
  500. package/locale/ha/package.json +7 -5
  501. package/locale/ha.json.d.ts +4 -0
  502. package/locale/ha.json.js +222 -0
  503. package/locale/he/package.json +7 -5
  504. package/locale/he.json.d.ts +4 -0
  505. package/locale/he.json.js +362 -0
  506. package/locale/hi/package.json +7 -5
  507. package/locale/hi-Latn/package.json +7 -5
  508. package/locale/hi-Latn.json.d.ts +4 -0
  509. package/locale/hi-Latn.json.js +183 -0
  510. package/locale/hi.json.d.ts +4 -0
  511. package/locale/hi.json.js +195 -0
  512. package/locale/hr/package.json +7 -5
  513. package/locale/hr.json.d.ts +4 -0
  514. package/locale/hr.json.js +231 -0
  515. package/locale/hsb/package.json +7 -5
  516. package/locale/hsb.json.d.ts +4 -0
  517. package/locale/hsb.json.js +235 -0
  518. package/locale/hu/package.json +7 -5
  519. package/locale/hu.json.d.ts +4 -0
  520. package/locale/hu.json.js +165 -0
  521. package/locale/hy/package.json +7 -5
  522. package/locale/hy.json.d.ts +4 -0
  523. package/locale/hy.json.js +165 -0
  524. package/locale/ia/package.json +7 -5
  525. package/locale/ia.json.d.ts +4 -0
  526. package/locale/ia.json.js +219 -0
  527. package/locale/id/package.json +7 -5
  528. package/locale/id.json.d.ts +4 -0
  529. package/locale/id.json.js +200 -0
  530. package/locale/ig/package.json +7 -5
  531. package/locale/ig.json.d.ts +4 -0
  532. package/locale/ig.json.js +159 -0
  533. package/locale/is/package.json +7 -5
  534. package/locale/is.json.d.ts +4 -0
  535. package/locale/is.json.js +237 -0
  536. package/locale/it/package.json +7 -5
  537. package/locale/it.json.d.ts +4 -0
  538. package/locale/it.json.js +305 -0
  539. package/locale/ja/package.json +7 -5
  540. package/locale/ja.json.d.ts +4 -0
  541. package/locale/ja.json.js +165 -0
  542. package/locale/jgo/package.json +7 -5
  543. package/locale/jgo.json.d.ts +4 -0
  544. package/locale/jgo.json.js +159 -0
  545. package/locale/jv/package.json +7 -5
  546. package/locale/jv.json.d.ts +4 -0
  547. package/locale/jv.json.js +159 -0
  548. package/locale/ka/package.json +7 -5
  549. package/locale/ka.json.d.ts +4 -0
  550. package/locale/ka.json.js +165 -0
  551. package/locale/kea/package.json +7 -5
  552. package/locale/kea.json.d.ts +4 -0
  553. package/locale/kea.json.js +159 -0
  554. package/locale/kgp/package.json +7 -5
  555. package/locale/kgp.json.d.ts +4 -0
  556. package/locale/kgp.json.js +165 -0
  557. package/locale/kk/package.json +7 -5
  558. package/locale/kk.json.d.ts +4 -0
  559. package/locale/kk.json.js +165 -0
  560. package/locale/kl/package.json +7 -5
  561. package/locale/kl.json.d.ts +4 -0
  562. package/locale/kl.json.js +159 -0
  563. package/locale/km/package.json +7 -5
  564. package/locale/km.json.d.ts +4 -0
  565. package/locale/km.json.js +165 -0
  566. package/locale/kn/package.json +7 -5
  567. package/locale/kn.json.d.ts +4 -0
  568. package/locale/kn.json.js +306 -0
  569. package/locale/ko/package.json +7 -5
  570. package/locale/ko.json +0 -11
  571. package/locale/ko.json.d.ts +4 -0
  572. package/locale/ko.json.js +183 -0
  573. package/locale/kok/package.json +7 -5
  574. package/locale/kok.json.d.ts +4 -0
  575. package/locale/kok.json.js +159 -0
  576. package/locale/ksh/package.json +7 -5
  577. package/locale/ksh.json.d.ts +4 -0
  578. package/locale/ksh.json.js +189 -0
  579. package/locale/ku/package.json +7 -5
  580. package/locale/ku.json.d.ts +4 -0
  581. package/locale/ku.json.js +177 -0
  582. package/locale/ky/package.json +7 -5
  583. package/locale/ky.json.d.ts +4 -0
  584. package/locale/ky.json.js +165 -0
  585. package/locale/lb/package.json +7 -5
  586. package/locale/lb.json.d.ts +4 -0
  587. package/locale/lb.json.js +255 -0
  588. package/locale/lkt/package.json +7 -5
  589. package/locale/lkt.json.d.ts +4 -0
  590. package/locale/lkt.json.js +159 -0
  591. package/locale/lo/package.json +7 -5
  592. package/locale/lo.json.d.ts +4 -0
  593. package/locale/lo.json.js +165 -0
  594. package/locale/lt/package.json +7 -5
  595. package/locale/lt.json.d.ts +4 -0
  596. package/locale/lt.json.js +232 -0
  597. package/locale/lv/package.json +7 -5
  598. package/locale/lv.json.d.ts +4 -0
  599. package/locale/lv.json.js +231 -0
  600. package/locale/mk/package.json +7 -5
  601. package/locale/mk.json.d.ts +4 -0
  602. package/locale/mk.json.js +261 -0
  603. package/locale/ml/package.json +7 -5
  604. package/locale/ml.json.d.ts +4 -0
  605. package/locale/ml.json.js +165 -0
  606. package/locale/mn/package.json +7 -5
  607. package/locale/mn.json.d.ts +4 -0
  608. package/locale/mn.json.js +165 -0
  609. package/locale/mni/package.json +7 -5
  610. package/locale/mni.json.d.ts +4 -0
  611. package/locale/mni.json.js +159 -0
  612. package/locale/mr/package.json +7 -5
  613. package/locale/mr.json.d.ts +4 -0
  614. package/locale/mr.json.js +279 -0
  615. package/locale/ms/package.json +7 -5
  616. package/locale/ms.json.d.ts +4 -0
  617. package/locale/ms.json.js +165 -0
  618. package/locale/mt/package.json +7 -5
  619. package/locale/mt.json.d.ts +4 -0
  620. package/locale/mt.json.js +307 -0
  621. package/locale/my/package.json +7 -5
  622. package/locale/my.json.d.ts +4 -0
  623. package/locale/my.json.js +165 -0
  624. package/locale/mzn/package.json +7 -5
  625. package/locale/mzn.json.d.ts +4 -0
  626. package/locale/mzn.json.js +159 -0
  627. package/locale/nb/package.json +7 -5
  628. package/locale/nb.json.d.ts +4 -0
  629. package/locale/nb.json.js +201 -0
  630. package/locale/ne/package.json +7 -5
  631. package/locale/ne.json.d.ts +4 -0
  632. package/locale/ne.json.js +168 -0
  633. package/locale/nl/package.json +7 -5
  634. package/locale/nl.json.d.ts +4 -0
  635. package/locale/nl.json.js +302 -0
  636. package/locale/nn/package.json +7 -5
  637. package/locale/nn.json.d.ts +4 -0
  638. package/locale/nn.json.js +189 -0
  639. package/locale/no/package.json +7 -5
  640. package/locale/no.json.d.ts +4 -0
  641. package/locale/no.json.js +201 -0
  642. package/locale/or/package.json +7 -5
  643. package/locale/or.json.d.ts +4 -0
  644. package/locale/or.json.js +162 -0
  645. package/locale/pa/package.json +7 -5
  646. package/locale/pa.json.d.ts +4 -0
  647. package/locale/pa.json.js +267 -0
  648. package/locale/pcm/package.json +7 -5
  649. package/locale/pcm.json.d.ts +4 -0
  650. package/locale/pcm.json.js +159 -0
  651. package/locale/pl/package.json +7 -5
  652. package/locale/pl.json.d.ts +4 -0
  653. package/locale/pl.json.js +291 -0
  654. package/locale/ps/package.json +7 -5
  655. package/locale/ps-PK/package.json +7 -5
  656. package/locale/ps-PK.json.d.ts +4 -0
  657. package/locale/ps-PK.json.js +240 -0
  658. package/locale/ps.json.d.ts +4 -0
  659. package/locale/ps.json.js +240 -0
  660. package/locale/pt/package.json +7 -5
  661. package/locale/pt-AO/package.json +7 -5
  662. package/locale/pt-AO.json.d.ts +4 -0
  663. package/locale/pt-AO.json.js +249 -0
  664. package/locale/pt-CH/package.json +7 -5
  665. package/locale/pt-CH.json.d.ts +4 -0
  666. package/locale/pt-CH.json.js +249 -0
  667. package/locale/pt-CV/package.json +7 -5
  668. package/locale/pt-CV.json.d.ts +4 -0
  669. package/locale/pt-CV.json.js +249 -0
  670. package/locale/pt-GQ/package.json +7 -5
  671. package/locale/pt-GQ.json.d.ts +4 -0
  672. package/locale/pt-GQ.json.js +249 -0
  673. package/locale/pt-GW/package.json +7 -5
  674. package/locale/pt-GW.json.d.ts +4 -0
  675. package/locale/pt-GW.json.js +249 -0
  676. package/locale/pt-LU/package.json +7 -5
  677. package/locale/pt-LU.json.d.ts +4 -0
  678. package/locale/pt-LU.json.js +249 -0
  679. package/locale/pt-MO/package.json +7 -5
  680. package/locale/pt-MO.json.d.ts +4 -0
  681. package/locale/pt-MO.json.js +249 -0
  682. package/locale/pt-MZ/package.json +7 -5
  683. package/locale/pt-MZ.json.d.ts +4 -0
  684. package/locale/pt-MZ.json.js +249 -0
  685. package/locale/pt-PT/package.json +7 -5
  686. package/locale/pt-PT.json.d.ts +4 -0
  687. package/locale/pt-PT.json.js +249 -0
  688. package/locale/pt-ST/package.json +7 -5
  689. package/locale/pt-ST.json.d.ts +4 -0
  690. package/locale/pt-ST.json.js +249 -0
  691. package/locale/pt-TL/package.json +7 -5
  692. package/locale/pt-TL.json.d.ts +4 -0
  693. package/locale/pt-TL.json.js +249 -0
  694. package/locale/pt.json.d.ts +4 -0
  695. package/locale/pt.json.js +296 -0
  696. package/locale/qu/package.json +7 -5
  697. package/locale/qu.json.d.ts +4 -0
  698. package/locale/qu.json.js +159 -0
  699. package/locale/rm/package.json +7 -5
  700. package/locale/rm.json.d.ts +4 -0
  701. package/locale/rm.json.js +165 -0
  702. package/locale/ro/package.json +7 -5
  703. package/locale/ro.json.d.ts +4 -0
  704. package/locale/ro.json.js +325 -0
  705. package/locale/ru/package.json +7 -5
  706. package/locale/ru.json +20 -29
  707. package/locale/ru.json.d.ts +4 -0
  708. package/locale/ru.json.js +313 -0
  709. package/locale/sah/package.json +7 -5
  710. package/locale/sah.json.d.ts +4 -0
  711. package/locale/sah.json.js +165 -0
  712. package/locale/sc/package.json +7 -5
  713. package/locale/sc.json.d.ts +4 -0
  714. package/locale/sc.json.js +249 -0
  715. package/locale/sd/package.json +7 -5
  716. package/locale/sd.json.d.ts +4 -0
  717. package/locale/sd.json.js +162 -0
  718. package/locale/se/package.json +7 -5
  719. package/locale/se-FI/package.json +7 -5
  720. package/locale/se-FI.json.d.ts +4 -0
  721. package/locale/se-FI.json.js +270 -0
  722. package/locale/se.json.d.ts +4 -0
  723. package/locale/se.json.js +276 -0
  724. package/locale/si/package.json +7 -5
  725. package/locale/si.json.d.ts +4 -0
  726. package/locale/si.json.js +165 -0
  727. package/locale/sk/package.json +7 -5
  728. package/locale/sk.json.d.ts +4 -0
  729. package/locale/sk.json.js +237 -0
  730. package/locale/sl/package.json +7 -5
  731. package/locale/sl.json.d.ts +4 -0
  732. package/locale/sl.json.js +279 -0
  733. package/locale/so/package.json +7 -5
  734. package/locale/so.json.d.ts +4 -0
  735. package/locale/so.json.js +213 -0
  736. package/locale/sq/package.json +7 -5
  737. package/locale/sq.json.d.ts +4 -0
  738. package/locale/sq.json.js +243 -0
  739. package/locale/sr/package.json +7 -5
  740. package/locale/sr-Cyrl-BA/package.json +7 -5
  741. package/locale/sr-Cyrl-BA.json.d.ts +4 -0
  742. package/locale/sr-Cyrl-BA.json.js +214 -0
  743. package/locale/sr-Latn/package.json +7 -5
  744. package/locale/sr-Latn-BA/package.json +7 -5
  745. package/locale/sr-Latn-BA.json.d.ts +4 -0
  746. package/locale/sr-Latn-BA.json.js +214 -0
  747. package/locale/sr-Latn.json.d.ts +4 -0
  748. package/locale/sr-Latn.json.js +214 -0
  749. package/locale/sr.json.d.ts +4 -0
  750. package/locale/sr.json.js +214 -0
  751. package/locale/su/package.json +7 -5
  752. package/locale/su.json.d.ts +4 -0
  753. package/locale/su.json.js +159 -0
  754. package/locale/sv/package.json +7 -5
  755. package/locale/sv.json.d.ts +4 -0
  756. package/locale/sv.json.js +257 -0
  757. package/locale/sw/package.json +7 -5
  758. package/locale/sw.json.d.ts +4 -0
  759. package/locale/sw.json.js +255 -0
  760. package/locale/ta/package.json +7 -5
  761. package/locale/ta.json.d.ts +4 -0
  762. package/locale/ta.json.js +219 -0
  763. package/locale/te/package.json +7 -5
  764. package/locale/te.json.d.ts +4 -0
  765. package/locale/te.json.js +267 -0
  766. package/locale/tg/package.json +7 -5
  767. package/locale/tg.json.d.ts +4 -0
  768. package/locale/tg.json.js +159 -0
  769. package/locale/th/package.json +7 -5
  770. package/locale/th.json.d.ts +4 -0
  771. package/locale/th.json.js +165 -0
  772. package/locale/ti/package.json +7 -5
  773. package/locale/ti.json.d.ts +4 -0
  774. package/locale/ti.json.js +165 -0
  775. package/locale/tk/package.json +7 -5
  776. package/locale/tk.json.d.ts +4 -0
  777. package/locale/tk.json.js +159 -0
  778. package/locale/to/package.json +7 -5
  779. package/locale/to.json.d.ts +4 -0
  780. package/locale/to.json.js +165 -0
  781. package/locale/tr/package.json +7 -5
  782. package/locale/tr.json.d.ts +4 -0
  783. package/locale/tr.json.js +165 -0
  784. package/locale/tt/package.json +7 -5
  785. package/locale/tt.json.d.ts +4 -0
  786. package/locale/tt.json.js +159 -0
  787. package/locale/ug/package.json +7 -5
  788. package/locale/ug.json.d.ts +4 -0
  789. package/locale/ug.json.js +159 -0
  790. package/locale/uk/package.json +7 -5
  791. package/locale/uk.json.d.ts +4 -0
  792. package/locale/uk.json.js +242 -0
  793. package/locale/ur/package.json +7 -5
  794. package/locale/ur-IN/package.json +7 -5
  795. package/locale/ur-IN.json.d.ts +4 -0
  796. package/locale/ur-IN.json.js +204 -0
  797. package/locale/ur.json.d.ts +4 -0
  798. package/locale/ur.json.js +204 -0
  799. package/locale/uz/package.json +7 -5
  800. package/locale/uz-Cyrl/package.json +7 -5
  801. package/locale/uz-Cyrl.json.d.ts +4 -0
  802. package/locale/uz-Cyrl.json.js +159 -0
  803. package/locale/uz.json.d.ts +4 -0
  804. package/locale/uz.json.js +159 -0
  805. package/locale/vi/package.json +7 -5
  806. package/locale/vi.json.d.ts +4 -0
  807. package/locale/vi.json.js +165 -0
  808. package/locale/wae/package.json +7 -5
  809. package/locale/wae.json.d.ts +4 -0
  810. package/locale/wae.json.js +264 -0
  811. package/locale/wo/package.json +7 -5
  812. package/locale/wo.json.d.ts +4 -0
  813. package/locale/wo.json.js +159 -0
  814. package/locale/yi/package.json +7 -5
  815. package/locale/yi.json.d.ts +4 -0
  816. package/locale/yi.json.js +189 -0
  817. package/locale/yo/package.json +7 -5
  818. package/locale/yo-BJ/package.json +7 -5
  819. package/locale/yo-BJ.json.d.ts +4 -0
  820. package/locale/yo-BJ.json.js +165 -0
  821. package/locale/yo.json.d.ts +4 -0
  822. package/locale/yo.json.js +165 -0
  823. package/locale/yrl/package.json +7 -5
  824. package/locale/yrl.json.d.ts +4 -0
  825. package/locale/yrl.json.js +309 -0
  826. package/locale/yue/package.json +7 -5
  827. package/locale/yue-Hans/package.json +7 -5
  828. package/locale/yue-Hans.json.d.ts +4 -0
  829. package/locale/yue-Hans.json.js +165 -0
  830. package/locale/yue.json.d.ts +4 -0
  831. package/locale/yue.json.js +165 -0
  832. package/locale/zh/package.json +7 -5
  833. package/locale/zh-Hans-HK/package.json +7 -5
  834. package/locale/zh-Hans-HK.json.d.ts +4 -0
  835. package/locale/zh-Hans-HK.json.js +165 -0
  836. package/locale/zh-Hans-MO/package.json +7 -5
  837. package/locale/zh-Hans-MO.json.d.ts +4 -0
  838. package/locale/zh-Hans-MO.json.js +165 -0
  839. package/locale/zh-Hans-SG/package.json +7 -5
  840. package/locale/zh-Hans-SG.json.d.ts +4 -0
  841. package/locale/zh-Hans-SG.json.js +165 -0
  842. package/locale/zh-Hant/package.json +7 -5
  843. package/locale/zh-Hant-HK/package.json +7 -5
  844. package/locale/zh-Hant-HK.json.d.ts +4 -0
  845. package/locale/zh-Hant-HK.json.js +165 -0
  846. package/locale/zh-Hant-MO/package.json +7 -5
  847. package/locale/zh-Hant-MO.json.d.ts +4 -0
  848. package/locale/zh-Hant-MO.json.js +165 -0
  849. package/locale/zh-Hant.json.d.ts +4 -0
  850. package/locale/zh-Hant.json.js +165 -0
  851. package/locale/zh.json.d.ts +4 -0
  852. package/locale/zh.json.js +182 -0
  853. package/locale/zu/package.json +7 -5
  854. package/locale/zu.json.d.ts +4 -0
  855. package/locale/zu.json.js +279 -0
  856. package/modules/TimeAgo.js +4 -0
  857. package/modules/TimeAgo.js.map +1 -1
  858. package/package.json +2245 -565
  859. package/locale/af/index.cjs +0 -3
  860. package/locale/af/index.cjs.js +0 -3
  861. package/locale/af/index.js +0 -1
  862. package/locale/am/index.cjs +0 -3
  863. package/locale/am/index.cjs.js +0 -3
  864. package/locale/am/index.js +0 -1
  865. package/locale/ar/index.cjs +0 -3
  866. package/locale/ar/index.cjs.js +0 -3
  867. package/locale/ar/index.js +0 -1
  868. package/locale/ar-AE/index.cjs +0 -3
  869. package/locale/ar-AE/index.cjs.js +0 -3
  870. package/locale/ar-AE/index.js +0 -1
  871. package/locale/as/index.cjs +0 -3
  872. package/locale/as/index.cjs.js +0 -3
  873. package/locale/as/index.js +0 -1
  874. package/locale/ast/index.cjs +0 -3
  875. package/locale/ast/index.cjs.js +0 -3
  876. package/locale/ast/index.js +0 -1
  877. package/locale/az/index.cjs +0 -3
  878. package/locale/az/index.cjs.js +0 -3
  879. package/locale/az/index.js +0 -1
  880. package/locale/be/index.cjs +0 -3
  881. package/locale/be/index.cjs.js +0 -3
  882. package/locale/be/index.js +0 -1
  883. package/locale/bg/index.cjs +0 -3
  884. package/locale/bg/index.cjs.js +0 -3
  885. package/locale/bg/index.js +0 -1
  886. package/locale/bn/index.cjs +0 -3
  887. package/locale/bn/index.cjs.js +0 -3
  888. package/locale/bn/index.js +0 -1
  889. package/locale/br/index.cjs +0 -3
  890. package/locale/br/index.cjs.js +0 -3
  891. package/locale/br/index.js +0 -1
  892. package/locale/brx/index.cjs +0 -3
  893. package/locale/brx/index.cjs.js +0 -3
  894. package/locale/brx/index.js +0 -1
  895. package/locale/bs/index.cjs +0 -3
  896. package/locale/bs/index.cjs.js +0 -3
  897. package/locale/bs/index.js +0 -1
  898. package/locale/bs-Cyrl/index.cjs +0 -3
  899. package/locale/bs-Cyrl/index.cjs.js +0 -3
  900. package/locale/bs-Cyrl/index.js +0 -1
  901. package/locale/ca/index.cjs +0 -3
  902. package/locale/ca/index.cjs.js +0 -3
  903. package/locale/ca/index.js +0 -1
  904. package/locale/ccp/index.cjs +0 -3
  905. package/locale/ccp/index.cjs.js +0 -3
  906. package/locale/ccp/index.js +0 -1
  907. package/locale/ce/index.cjs +0 -3
  908. package/locale/ce/index.cjs.js +0 -3
  909. package/locale/ce/index.js +0 -1
  910. package/locale/ceb/index.cjs +0 -3
  911. package/locale/ceb/index.cjs.js +0 -3
  912. package/locale/ceb/index.js +0 -1
  913. package/locale/chr/index.cjs +0 -3
  914. package/locale/chr/index.cjs.js +0 -3
  915. package/locale/chr/index.js +0 -1
  916. package/locale/cs/index.cjs +0 -3
  917. package/locale/cs/index.cjs.js +0 -3
  918. package/locale/cs/index.js +0 -1
  919. package/locale/cy/index.cjs +0 -3
  920. package/locale/cy/index.cjs.js +0 -3
  921. package/locale/cy/index.js +0 -1
  922. package/locale/da/index.cjs +0 -3
  923. package/locale/da/index.cjs.js +0 -3
  924. package/locale/da/index.js +0 -1
  925. package/locale/de/index.cjs +0 -3
  926. package/locale/de/index.cjs.js +0 -3
  927. package/locale/de/index.js +0 -1
  928. package/locale/dsb/index.cjs +0 -3
  929. package/locale/dsb/index.cjs.js +0 -3
  930. package/locale/dsb/index.js +0 -1
  931. package/locale/dz/index.cjs +0 -3
  932. package/locale/dz/index.cjs.js +0 -3
  933. package/locale/dz/index.js +0 -1
  934. package/locale/ee/index.cjs +0 -3
  935. package/locale/ee/index.cjs.js +0 -3
  936. package/locale/ee/index.js +0 -1
  937. package/locale/el/index.cjs +0 -3
  938. package/locale/el/index.cjs.js +0 -3
  939. package/locale/el/index.js +0 -1
  940. package/locale/en/index.cjs +0 -3
  941. package/locale/en/index.cjs.js +0 -3
  942. package/locale/en/index.js +0 -1
  943. package/locale/en-001/index.cjs +0 -3
  944. package/locale/en-001/index.cjs.js +0 -3
  945. package/locale/en-001/index.js +0 -1
  946. package/locale/en-150/index.cjs +0 -3
  947. package/locale/en-150/index.cjs.js +0 -3
  948. package/locale/en-150/index.js +0 -1
  949. package/locale/en-AG/index.cjs +0 -3
  950. package/locale/en-AG/index.cjs.js +0 -3
  951. package/locale/en-AG/index.js +0 -1
  952. package/locale/en-AI/index.cjs +0 -3
  953. package/locale/en-AI/index.cjs.js +0 -3
  954. package/locale/en-AI/index.js +0 -1
  955. package/locale/en-AT/index.cjs +0 -3
  956. package/locale/en-AT/index.cjs.js +0 -3
  957. package/locale/en-AT/index.js +0 -1
  958. package/locale/en-AU/index.cjs +0 -3
  959. package/locale/en-AU/index.cjs.js +0 -3
  960. package/locale/en-AU/index.js +0 -1
  961. package/locale/en-BB/index.cjs +0 -3
  962. package/locale/en-BB/index.cjs.js +0 -3
  963. package/locale/en-BB/index.js +0 -1
  964. package/locale/en-BE/index.cjs +0 -3
  965. package/locale/en-BE/index.cjs.js +0 -3
  966. package/locale/en-BE/index.js +0 -1
  967. package/locale/en-BM/index.cjs +0 -3
  968. package/locale/en-BM/index.cjs.js +0 -3
  969. package/locale/en-BM/index.js +0 -1
  970. package/locale/en-BS/index.cjs +0 -3
  971. package/locale/en-BS/index.cjs.js +0 -3
  972. package/locale/en-BS/index.js +0 -1
  973. package/locale/en-BW/index.cjs +0 -3
  974. package/locale/en-BW/index.cjs.js +0 -3
  975. package/locale/en-BW/index.js +0 -1
  976. package/locale/en-BZ/index.cjs +0 -3
  977. package/locale/en-BZ/index.cjs.js +0 -3
  978. package/locale/en-BZ/index.js +0 -1
  979. package/locale/en-CA/index.cjs +0 -3
  980. package/locale/en-CA/index.cjs.js +0 -3
  981. package/locale/en-CA/index.js +0 -1
  982. package/locale/en-CC/index.cjs +0 -3
  983. package/locale/en-CC/index.cjs.js +0 -3
  984. package/locale/en-CC/index.js +0 -1
  985. package/locale/en-CH/index.cjs +0 -3
  986. package/locale/en-CH/index.cjs.js +0 -3
  987. package/locale/en-CH/index.js +0 -1
  988. package/locale/en-CK/index.cjs +0 -3
  989. package/locale/en-CK/index.cjs.js +0 -3
  990. package/locale/en-CK/index.js +0 -1
  991. package/locale/en-CM/index.cjs +0 -3
  992. package/locale/en-CM/index.cjs.js +0 -3
  993. package/locale/en-CM/index.js +0 -1
  994. package/locale/en-CX/index.cjs +0 -3
  995. package/locale/en-CX/index.cjs.js +0 -3
  996. package/locale/en-CX/index.js +0 -1
  997. package/locale/en-CY/index.cjs +0 -3
  998. package/locale/en-CY/index.cjs.js +0 -3
  999. package/locale/en-CY/index.js +0 -1
  1000. package/locale/en-DE/index.cjs +0 -3
  1001. package/locale/en-DE/index.cjs.js +0 -3
  1002. package/locale/en-DE/index.js +0 -1
  1003. package/locale/en-DG/index.cjs +0 -3
  1004. package/locale/en-DG/index.cjs.js +0 -3
  1005. package/locale/en-DG/index.js +0 -1
  1006. package/locale/en-DK/index.cjs +0 -3
  1007. package/locale/en-DK/index.cjs.js +0 -3
  1008. package/locale/en-DK/index.js +0 -1
  1009. package/locale/en-DM/index.cjs +0 -3
  1010. package/locale/en-DM/index.cjs.js +0 -3
  1011. package/locale/en-DM/index.js +0 -1
  1012. package/locale/en-ER/index.cjs +0 -3
  1013. package/locale/en-ER/index.cjs.js +0 -3
  1014. package/locale/en-ER/index.js +0 -1
  1015. package/locale/en-FI/index.cjs +0 -3
  1016. package/locale/en-FI/index.cjs.js +0 -3
  1017. package/locale/en-FI/index.js +0 -1
  1018. package/locale/en-FJ/index.cjs +0 -3
  1019. package/locale/en-FJ/index.cjs.js +0 -3
  1020. package/locale/en-FJ/index.js +0 -1
  1021. package/locale/en-FK/index.cjs +0 -3
  1022. package/locale/en-FK/index.cjs.js +0 -3
  1023. package/locale/en-FK/index.js +0 -1
  1024. package/locale/en-FM/index.cjs +0 -3
  1025. package/locale/en-FM/index.cjs.js +0 -3
  1026. package/locale/en-FM/index.js +0 -1
  1027. package/locale/en-GB/index.cjs +0 -3
  1028. package/locale/en-GB/index.cjs.js +0 -3
  1029. package/locale/en-GB/index.js +0 -1
  1030. package/locale/en-GD/index.cjs +0 -3
  1031. package/locale/en-GD/index.cjs.js +0 -3
  1032. package/locale/en-GD/index.js +0 -1
  1033. package/locale/en-GG/index.cjs +0 -3
  1034. package/locale/en-GG/index.cjs.js +0 -3
  1035. package/locale/en-GG/index.js +0 -1
  1036. package/locale/en-GH/index.cjs +0 -3
  1037. package/locale/en-GH/index.cjs.js +0 -3
  1038. package/locale/en-GH/index.js +0 -1
  1039. package/locale/en-GI/index.cjs +0 -3
  1040. package/locale/en-GI/index.cjs.js +0 -3
  1041. package/locale/en-GI/index.js +0 -1
  1042. package/locale/en-GM/index.cjs +0 -3
  1043. package/locale/en-GM/index.cjs.js +0 -3
  1044. package/locale/en-GM/index.js +0 -1
  1045. package/locale/en-GY/index.cjs +0 -3
  1046. package/locale/en-GY/index.cjs.js +0 -3
  1047. package/locale/en-GY/index.js +0 -1
  1048. package/locale/en-HK/index.cjs +0 -3
  1049. package/locale/en-HK/index.cjs.js +0 -3
  1050. package/locale/en-HK/index.js +0 -1
  1051. package/locale/en-IE/index.cjs +0 -3
  1052. package/locale/en-IE/index.cjs.js +0 -3
  1053. package/locale/en-IE/index.js +0 -1
  1054. package/locale/en-IL/index.cjs +0 -3
  1055. package/locale/en-IL/index.cjs.js +0 -3
  1056. package/locale/en-IL/index.js +0 -1
  1057. package/locale/en-IM/index.cjs +0 -3
  1058. package/locale/en-IM/index.cjs.js +0 -3
  1059. package/locale/en-IM/index.js +0 -1
  1060. package/locale/en-IN/index.cjs +0 -3
  1061. package/locale/en-IN/index.cjs.js +0 -3
  1062. package/locale/en-IN/index.js +0 -1
  1063. package/locale/en-IO/index.cjs +0 -3
  1064. package/locale/en-IO/index.cjs.js +0 -3
  1065. package/locale/en-IO/index.js +0 -1
  1066. package/locale/en-JE/index.cjs +0 -3
  1067. package/locale/en-JE/index.cjs.js +0 -3
  1068. package/locale/en-JE/index.js +0 -1
  1069. package/locale/en-JM/index.cjs +0 -3
  1070. package/locale/en-JM/index.cjs.js +0 -3
  1071. package/locale/en-JM/index.js +0 -1
  1072. package/locale/en-KE/index.cjs +0 -3
  1073. package/locale/en-KE/index.cjs.js +0 -3
  1074. package/locale/en-KE/index.js +0 -1
  1075. package/locale/en-KI/index.cjs +0 -3
  1076. package/locale/en-KI/index.cjs.js +0 -3
  1077. package/locale/en-KI/index.js +0 -1
  1078. package/locale/en-KN/index.cjs +0 -3
  1079. package/locale/en-KN/index.cjs.js +0 -3
  1080. package/locale/en-KN/index.js +0 -1
  1081. package/locale/en-KY/index.cjs +0 -3
  1082. package/locale/en-KY/index.cjs.js +0 -3
  1083. package/locale/en-KY/index.js +0 -1
  1084. package/locale/en-LC/index.cjs +0 -3
  1085. package/locale/en-LC/index.cjs.js +0 -3
  1086. package/locale/en-LC/index.js +0 -1
  1087. package/locale/en-LR/index.cjs +0 -3
  1088. package/locale/en-LR/index.cjs.js +0 -3
  1089. package/locale/en-LR/index.js +0 -1
  1090. package/locale/en-LS/index.cjs +0 -3
  1091. package/locale/en-LS/index.cjs.js +0 -3
  1092. package/locale/en-LS/index.js +0 -1
  1093. package/locale/en-MG/index.cjs +0 -3
  1094. package/locale/en-MG/index.cjs.js +0 -3
  1095. package/locale/en-MG/index.js +0 -1
  1096. package/locale/en-MO/index.cjs +0 -3
  1097. package/locale/en-MO/index.cjs.js +0 -3
  1098. package/locale/en-MO/index.js +0 -1
  1099. package/locale/en-MS/index.cjs +0 -3
  1100. package/locale/en-MS/index.cjs.js +0 -3
  1101. package/locale/en-MS/index.js +0 -1
  1102. package/locale/en-MT/index.cjs +0 -3
  1103. package/locale/en-MT/index.cjs.js +0 -3
  1104. package/locale/en-MT/index.js +0 -1
  1105. package/locale/en-MU/index.cjs +0 -3
  1106. package/locale/en-MU/index.cjs.js +0 -3
  1107. package/locale/en-MU/index.js +0 -1
  1108. package/locale/en-MV/index.cjs +0 -3
  1109. package/locale/en-MV/index.cjs.js +0 -3
  1110. package/locale/en-MV/index.js +0 -1
  1111. package/locale/en-MW/index.cjs +0 -3
  1112. package/locale/en-MW/index.cjs.js +0 -3
  1113. package/locale/en-MW/index.js +0 -1
  1114. package/locale/en-MY/index.cjs +0 -3
  1115. package/locale/en-MY/index.cjs.js +0 -3
  1116. package/locale/en-MY/index.js +0 -1
  1117. package/locale/en-NA/index.cjs +0 -3
  1118. package/locale/en-NA/index.cjs.js +0 -3
  1119. package/locale/en-NA/index.js +0 -1
  1120. package/locale/en-NF/index.cjs +0 -3
  1121. package/locale/en-NF/index.cjs.js +0 -3
  1122. package/locale/en-NF/index.js +0 -1
  1123. package/locale/en-NG/index.cjs +0 -3
  1124. package/locale/en-NG/index.cjs.js +0 -3
  1125. package/locale/en-NG/index.js +0 -1
  1126. package/locale/en-NL/index.cjs +0 -3
  1127. package/locale/en-NL/index.cjs.js +0 -3
  1128. package/locale/en-NL/index.js +0 -1
  1129. package/locale/en-NR/index.cjs +0 -3
  1130. package/locale/en-NR/index.cjs.js +0 -3
  1131. package/locale/en-NR/index.js +0 -1
  1132. package/locale/en-NU/index.cjs +0 -3
  1133. package/locale/en-NU/index.cjs.js +0 -3
  1134. package/locale/en-NU/index.js +0 -1
  1135. package/locale/en-NZ/index.cjs +0 -3
  1136. package/locale/en-NZ/index.cjs.js +0 -3
  1137. package/locale/en-NZ/index.js +0 -1
  1138. package/locale/en-PG/index.cjs +0 -3
  1139. package/locale/en-PG/index.cjs.js +0 -3
  1140. package/locale/en-PG/index.js +0 -1
  1141. package/locale/en-PK/index.cjs +0 -3
  1142. package/locale/en-PK/index.cjs.js +0 -3
  1143. package/locale/en-PK/index.js +0 -1
  1144. package/locale/en-PN/index.cjs +0 -3
  1145. package/locale/en-PN/index.cjs.js +0 -3
  1146. package/locale/en-PN/index.js +0 -1
  1147. package/locale/en-PW/index.cjs +0 -3
  1148. package/locale/en-PW/index.cjs.js +0 -3
  1149. package/locale/en-PW/index.js +0 -1
  1150. package/locale/en-RW/index.cjs +0 -3
  1151. package/locale/en-RW/index.cjs.js +0 -3
  1152. package/locale/en-RW/index.js +0 -1
  1153. package/locale/en-SB/index.cjs +0 -3
  1154. package/locale/en-SB/index.cjs.js +0 -3
  1155. package/locale/en-SB/index.js +0 -1
  1156. package/locale/en-SC/index.cjs +0 -3
  1157. package/locale/en-SC/index.cjs.js +0 -3
  1158. package/locale/en-SC/index.js +0 -1
  1159. package/locale/en-SD/index.cjs +0 -3
  1160. package/locale/en-SD/index.cjs.js +0 -3
  1161. package/locale/en-SD/index.js +0 -1
  1162. package/locale/en-SE/index.cjs +0 -3
  1163. package/locale/en-SE/index.cjs.js +0 -3
  1164. package/locale/en-SE/index.js +0 -1
  1165. package/locale/en-SG/index.cjs +0 -3
  1166. package/locale/en-SG/index.cjs.js +0 -3
  1167. package/locale/en-SG/index.js +0 -1
  1168. package/locale/en-SH/index.cjs +0 -3
  1169. package/locale/en-SH/index.cjs.js +0 -3
  1170. package/locale/en-SH/index.js +0 -1
  1171. package/locale/en-SI/index.cjs +0 -3
  1172. package/locale/en-SI/index.cjs.js +0 -3
  1173. package/locale/en-SI/index.js +0 -1
  1174. package/locale/en-SL/index.cjs +0 -3
  1175. package/locale/en-SL/index.cjs.js +0 -3
  1176. package/locale/en-SL/index.js +0 -1
  1177. package/locale/en-SS/index.cjs +0 -3
  1178. package/locale/en-SS/index.cjs.js +0 -3
  1179. package/locale/en-SS/index.js +0 -1
  1180. package/locale/en-SX/index.cjs +0 -3
  1181. package/locale/en-SX/index.cjs.js +0 -3
  1182. package/locale/en-SX/index.js +0 -1
  1183. package/locale/en-SZ/index.cjs +0 -3
  1184. package/locale/en-SZ/index.cjs.js +0 -3
  1185. package/locale/en-SZ/index.js +0 -1
  1186. package/locale/en-TC/index.cjs +0 -3
  1187. package/locale/en-TC/index.cjs.js +0 -3
  1188. package/locale/en-TC/index.js +0 -1
  1189. package/locale/en-TK/index.cjs +0 -3
  1190. package/locale/en-TK/index.cjs.js +0 -3
  1191. package/locale/en-TK/index.js +0 -1
  1192. package/locale/en-TO/index.cjs +0 -3
  1193. package/locale/en-TO/index.cjs.js +0 -3
  1194. package/locale/en-TO/index.js +0 -1
  1195. package/locale/en-TT/index.cjs +0 -3
  1196. package/locale/en-TT/index.cjs.js +0 -3
  1197. package/locale/en-TT/index.js +0 -1
  1198. package/locale/en-TV/index.cjs +0 -3
  1199. package/locale/en-TV/index.cjs.js +0 -3
  1200. package/locale/en-TV/index.js +0 -1
  1201. package/locale/en-TZ/index.cjs +0 -3
  1202. package/locale/en-TZ/index.cjs.js +0 -3
  1203. package/locale/en-TZ/index.js +0 -1
  1204. package/locale/en-UG/index.cjs +0 -3
  1205. package/locale/en-UG/index.cjs.js +0 -3
  1206. package/locale/en-UG/index.js +0 -1
  1207. package/locale/en-VC/index.cjs +0 -3
  1208. package/locale/en-VC/index.cjs.js +0 -3
  1209. package/locale/en-VC/index.js +0 -1
  1210. package/locale/en-VG/index.cjs +0 -3
  1211. package/locale/en-VG/index.cjs.js +0 -3
  1212. package/locale/en-VG/index.js +0 -1
  1213. package/locale/en-VU/index.cjs +0 -3
  1214. package/locale/en-VU/index.cjs.js +0 -3
  1215. package/locale/en-VU/index.js +0 -1
  1216. package/locale/en-WS/index.cjs +0 -3
  1217. package/locale/en-WS/index.cjs.js +0 -3
  1218. package/locale/en-WS/index.js +0 -1
  1219. package/locale/en-ZA/index.cjs +0 -3
  1220. package/locale/en-ZA/index.cjs.js +0 -3
  1221. package/locale/en-ZA/index.js +0 -1
  1222. package/locale/en-ZM/index.cjs +0 -3
  1223. package/locale/en-ZM/index.cjs.js +0 -3
  1224. package/locale/en-ZM/index.js +0 -1
  1225. package/locale/en-ZW/index.cjs +0 -3
  1226. package/locale/en-ZW/index.cjs.js +0 -3
  1227. package/locale/en-ZW/index.js +0 -1
  1228. package/locale/es/index.cjs +0 -3
  1229. package/locale/es/index.cjs.js +0 -3
  1230. package/locale/es/index.js +0 -1
  1231. package/locale/es-419/index.cjs +0 -3
  1232. package/locale/es-419/index.cjs.js +0 -3
  1233. package/locale/es-419/index.js +0 -1
  1234. package/locale/es-AR/index.cjs +0 -3
  1235. package/locale/es-AR/index.cjs.js +0 -3
  1236. package/locale/es-AR/index.js +0 -1
  1237. package/locale/es-BO/index.cjs +0 -3
  1238. package/locale/es-BO/index.cjs.js +0 -3
  1239. package/locale/es-BO/index.js +0 -1
  1240. package/locale/es-BR/index.cjs +0 -3
  1241. package/locale/es-BR/index.cjs.js +0 -3
  1242. package/locale/es-BR/index.js +0 -1
  1243. package/locale/es-BZ/index.cjs +0 -3
  1244. package/locale/es-BZ/index.cjs.js +0 -3
  1245. package/locale/es-BZ/index.js +0 -1
  1246. package/locale/es-CL/index.cjs +0 -3
  1247. package/locale/es-CL/index.cjs.js +0 -3
  1248. package/locale/es-CL/index.js +0 -1
  1249. package/locale/es-CO/index.cjs +0 -3
  1250. package/locale/es-CO/index.cjs.js +0 -3
  1251. package/locale/es-CO/index.js +0 -1
  1252. package/locale/es-CR/index.cjs +0 -3
  1253. package/locale/es-CR/index.cjs.js +0 -3
  1254. package/locale/es-CR/index.js +0 -1
  1255. package/locale/es-CU/index.cjs +0 -3
  1256. package/locale/es-CU/index.cjs.js +0 -3
  1257. package/locale/es-CU/index.js +0 -1
  1258. package/locale/es-DO/index.cjs +0 -3
  1259. package/locale/es-DO/index.cjs.js +0 -3
  1260. package/locale/es-DO/index.js +0 -1
  1261. package/locale/es-EC/index.cjs +0 -3
  1262. package/locale/es-EC/index.cjs.js +0 -3
  1263. package/locale/es-EC/index.js +0 -1
  1264. package/locale/es-GT/index.cjs +0 -3
  1265. package/locale/es-GT/index.cjs.js +0 -3
  1266. package/locale/es-GT/index.js +0 -1
  1267. package/locale/es-HN/index.cjs +0 -3
  1268. package/locale/es-HN/index.cjs.js +0 -3
  1269. package/locale/es-HN/index.js +0 -1
  1270. package/locale/es-MX/index.cjs +0 -3
  1271. package/locale/es-MX/index.cjs.js +0 -3
  1272. package/locale/es-MX/index.js +0 -1
  1273. package/locale/es-NI/index.cjs +0 -3
  1274. package/locale/es-NI/index.cjs.js +0 -3
  1275. package/locale/es-NI/index.js +0 -1
  1276. package/locale/es-PA/index.cjs +0 -3
  1277. package/locale/es-PA/index.cjs.js +0 -3
  1278. package/locale/es-PA/index.js +0 -1
  1279. package/locale/es-PE/index.cjs +0 -3
  1280. package/locale/es-PE/index.cjs.js +0 -3
  1281. package/locale/es-PE/index.js +0 -1
  1282. package/locale/es-PR/index.cjs +0 -3
  1283. package/locale/es-PR/index.cjs.js +0 -3
  1284. package/locale/es-PR/index.js +0 -1
  1285. package/locale/es-PY/index.cjs +0 -3
  1286. package/locale/es-PY/index.cjs.js +0 -3
  1287. package/locale/es-PY/index.js +0 -1
  1288. package/locale/es-SV/index.cjs +0 -3
  1289. package/locale/es-SV/index.cjs.js +0 -3
  1290. package/locale/es-SV/index.js +0 -1
  1291. package/locale/es-US/index.cjs +0 -3
  1292. package/locale/es-US/index.cjs.js +0 -3
  1293. package/locale/es-US/index.js +0 -1
  1294. package/locale/es-UY/index.cjs +0 -3
  1295. package/locale/es-UY/index.cjs.js +0 -3
  1296. package/locale/es-UY/index.js +0 -1
  1297. package/locale/es-VE/index.cjs +0 -3
  1298. package/locale/es-VE/index.cjs.js +0 -3
  1299. package/locale/es-VE/index.js +0 -1
  1300. package/locale/et/index.cjs +0 -3
  1301. package/locale/et/index.cjs.js +0 -3
  1302. package/locale/et/index.js +0 -1
  1303. package/locale/eu/index.cjs +0 -3
  1304. package/locale/eu/index.cjs.js +0 -3
  1305. package/locale/eu/index.js +0 -1
  1306. package/locale/fa/index.cjs +0 -3
  1307. package/locale/fa/index.cjs.js +0 -3
  1308. package/locale/fa/index.js +0 -1
  1309. package/locale/ff-Adlm/index.cjs +0 -3
  1310. package/locale/ff-Adlm/index.cjs.js +0 -3
  1311. package/locale/ff-Adlm/index.js +0 -1
  1312. package/locale/fi/index.cjs +0 -3
  1313. package/locale/fi/index.cjs.js +0 -3
  1314. package/locale/fi/index.js +0 -1
  1315. package/locale/fil/index.cjs +0 -3
  1316. package/locale/fil/index.cjs.js +0 -3
  1317. package/locale/fil/index.js +0 -1
  1318. package/locale/fo/index.cjs +0 -3
  1319. package/locale/fo/index.cjs.js +0 -3
  1320. package/locale/fo/index.js +0 -1
  1321. package/locale/fr/index.cjs +0 -3
  1322. package/locale/fr/index.cjs.js +0 -3
  1323. package/locale/fr/index.js +0 -1
  1324. package/locale/fr-CA/index.cjs +0 -3
  1325. package/locale/fr-CA/index.cjs.js +0 -3
  1326. package/locale/fr-CA/index.js +0 -1
  1327. package/locale/fur/index.cjs +0 -3
  1328. package/locale/fur/index.cjs.js +0 -3
  1329. package/locale/fur/index.js +0 -1
  1330. package/locale/fy/index.cjs +0 -3
  1331. package/locale/fy/index.cjs.js +0 -3
  1332. package/locale/fy/index.js +0 -1
  1333. package/locale/ga/index.cjs +0 -3
  1334. package/locale/ga/index.cjs.js +0 -3
  1335. package/locale/ga/index.js +0 -1
  1336. package/locale/gd/index.cjs +0 -3
  1337. package/locale/gd/index.cjs.js +0 -3
  1338. package/locale/gd/index.js +0 -1
  1339. package/locale/gl/index.cjs +0 -3
  1340. package/locale/gl/index.cjs.js +0 -3
  1341. package/locale/gl/index.js +0 -1
  1342. package/locale/gu/index.cjs +0 -3
  1343. package/locale/gu/index.cjs.js +0 -3
  1344. package/locale/gu/index.js +0 -1
  1345. package/locale/ha/index.cjs +0 -3
  1346. package/locale/ha/index.cjs.js +0 -3
  1347. package/locale/ha/index.js +0 -1
  1348. package/locale/he/index.cjs +0 -3
  1349. package/locale/he/index.cjs.js +0 -3
  1350. package/locale/he/index.js +0 -1
  1351. package/locale/hi/index.cjs +0 -3
  1352. package/locale/hi/index.cjs.js +0 -3
  1353. package/locale/hi/index.js +0 -1
  1354. package/locale/hi-Latn/index.cjs +0 -3
  1355. package/locale/hi-Latn/index.cjs.js +0 -3
  1356. package/locale/hi-Latn/index.js +0 -1
  1357. package/locale/hr/index.cjs +0 -3
  1358. package/locale/hr/index.cjs.js +0 -3
  1359. package/locale/hr/index.js +0 -1
  1360. package/locale/hsb/index.cjs +0 -3
  1361. package/locale/hsb/index.cjs.js +0 -3
  1362. package/locale/hsb/index.js +0 -1
  1363. package/locale/hu/index.cjs +0 -3
  1364. package/locale/hu/index.cjs.js +0 -3
  1365. package/locale/hu/index.js +0 -1
  1366. package/locale/hy/index.cjs +0 -3
  1367. package/locale/hy/index.cjs.js +0 -3
  1368. package/locale/hy/index.js +0 -1
  1369. package/locale/ia/index.cjs +0 -3
  1370. package/locale/ia/index.cjs.js +0 -3
  1371. package/locale/ia/index.js +0 -1
  1372. package/locale/id/index.cjs +0 -3
  1373. package/locale/id/index.cjs.js +0 -3
  1374. package/locale/id/index.js +0 -1
  1375. package/locale/ig/index.cjs +0 -3
  1376. package/locale/ig/index.cjs.js +0 -3
  1377. package/locale/ig/index.js +0 -1
  1378. package/locale/is/index.cjs +0 -3
  1379. package/locale/is/index.cjs.js +0 -3
  1380. package/locale/is/index.js +0 -1
  1381. package/locale/it/index.cjs +0 -3
  1382. package/locale/it/index.cjs.js +0 -3
  1383. package/locale/it/index.js +0 -1
  1384. package/locale/ja/index.cjs +0 -3
  1385. package/locale/ja/index.cjs.js +0 -3
  1386. package/locale/ja/index.js +0 -1
  1387. package/locale/jgo/index.cjs +0 -3
  1388. package/locale/jgo/index.cjs.js +0 -3
  1389. package/locale/jgo/index.js +0 -1
  1390. package/locale/jv/index.cjs +0 -3
  1391. package/locale/jv/index.cjs.js +0 -3
  1392. package/locale/jv/index.js +0 -1
  1393. package/locale/ka/index.cjs +0 -3
  1394. package/locale/ka/index.cjs.js +0 -3
  1395. package/locale/ka/index.js +0 -1
  1396. package/locale/kea/index.cjs +0 -3
  1397. package/locale/kea/index.cjs.js +0 -3
  1398. package/locale/kea/index.js +0 -1
  1399. package/locale/kgp/index.cjs +0 -3
  1400. package/locale/kgp/index.cjs.js +0 -3
  1401. package/locale/kgp/index.js +0 -1
  1402. package/locale/kk/index.cjs +0 -3
  1403. package/locale/kk/index.cjs.js +0 -3
  1404. package/locale/kk/index.js +0 -1
  1405. package/locale/kl/index.cjs +0 -3
  1406. package/locale/kl/index.cjs.js +0 -3
  1407. package/locale/kl/index.js +0 -1
  1408. package/locale/km/index.cjs +0 -3
  1409. package/locale/km/index.cjs.js +0 -3
  1410. package/locale/km/index.js +0 -1
  1411. package/locale/kn/index.cjs +0 -3
  1412. package/locale/kn/index.cjs.js +0 -3
  1413. package/locale/kn/index.js +0 -1
  1414. package/locale/ko/index.cjs +0 -3
  1415. package/locale/ko/index.cjs.js +0 -3
  1416. package/locale/ko/index.js +0 -1
  1417. package/locale/kok/index.cjs +0 -3
  1418. package/locale/kok/index.cjs.js +0 -3
  1419. package/locale/kok/index.js +0 -1
  1420. package/locale/ksh/index.cjs +0 -3
  1421. package/locale/ksh/index.cjs.js +0 -3
  1422. package/locale/ksh/index.js +0 -1
  1423. package/locale/ku/index.cjs +0 -3
  1424. package/locale/ku/index.cjs.js +0 -3
  1425. package/locale/ku/index.js +0 -1
  1426. package/locale/ky/index.cjs +0 -3
  1427. package/locale/ky/index.cjs.js +0 -3
  1428. package/locale/ky/index.js +0 -1
  1429. package/locale/lb/index.cjs +0 -3
  1430. package/locale/lb/index.cjs.js +0 -3
  1431. package/locale/lb/index.js +0 -1
  1432. package/locale/lkt/index.cjs +0 -3
  1433. package/locale/lkt/index.cjs.js +0 -3
  1434. package/locale/lkt/index.js +0 -1
  1435. package/locale/lo/index.cjs +0 -3
  1436. package/locale/lo/index.cjs.js +0 -3
  1437. package/locale/lo/index.js +0 -1
  1438. package/locale/lt/index.cjs +0 -3
  1439. package/locale/lt/index.cjs.js +0 -3
  1440. package/locale/lt/index.js +0 -1
  1441. package/locale/lv/index.cjs +0 -3
  1442. package/locale/lv/index.cjs.js +0 -3
  1443. package/locale/lv/index.js +0 -1
  1444. package/locale/mk/index.cjs +0 -3
  1445. package/locale/mk/index.cjs.js +0 -3
  1446. package/locale/mk/index.js +0 -1
  1447. package/locale/ml/index.cjs +0 -3
  1448. package/locale/ml/index.cjs.js +0 -3
  1449. package/locale/ml/index.js +0 -1
  1450. package/locale/mn/index.cjs +0 -3
  1451. package/locale/mn/index.cjs.js +0 -3
  1452. package/locale/mn/index.js +0 -1
  1453. package/locale/mni/index.cjs +0 -3
  1454. package/locale/mni/index.cjs.js +0 -3
  1455. package/locale/mni/index.js +0 -1
  1456. package/locale/mr/index.cjs +0 -3
  1457. package/locale/mr/index.cjs.js +0 -3
  1458. package/locale/mr/index.js +0 -1
  1459. package/locale/ms/index.cjs +0 -3
  1460. package/locale/ms/index.cjs.js +0 -3
  1461. package/locale/ms/index.js +0 -1
  1462. package/locale/mt/index.cjs +0 -3
  1463. package/locale/mt/index.cjs.js +0 -3
  1464. package/locale/mt/index.js +0 -1
  1465. package/locale/my/index.cjs +0 -3
  1466. package/locale/my/index.cjs.js +0 -3
  1467. package/locale/my/index.js +0 -1
  1468. package/locale/mzn/index.cjs +0 -3
  1469. package/locale/mzn/index.cjs.js +0 -3
  1470. package/locale/mzn/index.js +0 -1
  1471. package/locale/nb/index.cjs +0 -3
  1472. package/locale/nb/index.cjs.js +0 -3
  1473. package/locale/nb/index.js +0 -1
  1474. package/locale/ne/index.cjs +0 -3
  1475. package/locale/ne/index.cjs.js +0 -3
  1476. package/locale/ne/index.js +0 -1
  1477. package/locale/nl/index.cjs +0 -3
  1478. package/locale/nl/index.cjs.js +0 -3
  1479. package/locale/nl/index.js +0 -1
  1480. package/locale/nn/index.cjs +0 -3
  1481. package/locale/nn/index.cjs.js +0 -3
  1482. package/locale/nn/index.js +0 -1
  1483. package/locale/no/index.cjs +0 -3
  1484. package/locale/no/index.cjs.js +0 -3
  1485. package/locale/no/index.js +0 -1
  1486. package/locale/or/index.cjs +0 -3
  1487. package/locale/or/index.cjs.js +0 -3
  1488. package/locale/or/index.js +0 -1
  1489. package/locale/pa/index.cjs +0 -3
  1490. package/locale/pa/index.cjs.js +0 -3
  1491. package/locale/pa/index.js +0 -1
  1492. package/locale/pcm/index.cjs +0 -3
  1493. package/locale/pcm/index.cjs.js +0 -3
  1494. package/locale/pcm/index.js +0 -1
  1495. package/locale/pl/index.cjs +0 -3
  1496. package/locale/pl/index.cjs.js +0 -3
  1497. package/locale/pl/index.js +0 -1
  1498. package/locale/ps/index.cjs +0 -3
  1499. package/locale/ps/index.cjs.js +0 -3
  1500. package/locale/ps/index.js +0 -1
  1501. package/locale/ps-PK/index.cjs +0 -3
  1502. package/locale/ps-PK/index.cjs.js +0 -3
  1503. package/locale/ps-PK/index.js +0 -1
  1504. package/locale/pt/index.cjs +0 -3
  1505. package/locale/pt/index.cjs.js +0 -3
  1506. package/locale/pt/index.js +0 -1
  1507. package/locale/pt-AO/index.cjs +0 -3
  1508. package/locale/pt-AO/index.cjs.js +0 -3
  1509. package/locale/pt-AO/index.js +0 -1
  1510. package/locale/pt-CH/index.cjs +0 -3
  1511. package/locale/pt-CH/index.cjs.js +0 -3
  1512. package/locale/pt-CH/index.js +0 -1
  1513. package/locale/pt-CV/index.cjs +0 -3
  1514. package/locale/pt-CV/index.cjs.js +0 -3
  1515. package/locale/pt-CV/index.js +0 -1
  1516. package/locale/pt-GQ/index.cjs +0 -3
  1517. package/locale/pt-GQ/index.cjs.js +0 -3
  1518. package/locale/pt-GQ/index.js +0 -1
  1519. package/locale/pt-GW/index.cjs +0 -3
  1520. package/locale/pt-GW/index.cjs.js +0 -3
  1521. package/locale/pt-GW/index.js +0 -1
  1522. package/locale/pt-LU/index.cjs +0 -3
  1523. package/locale/pt-LU/index.cjs.js +0 -3
  1524. package/locale/pt-LU/index.js +0 -1
  1525. package/locale/pt-MO/index.cjs +0 -3
  1526. package/locale/pt-MO/index.cjs.js +0 -3
  1527. package/locale/pt-MO/index.js +0 -1
  1528. package/locale/pt-MZ/index.cjs +0 -3
  1529. package/locale/pt-MZ/index.cjs.js +0 -3
  1530. package/locale/pt-MZ/index.js +0 -1
  1531. package/locale/pt-PT/index.cjs +0 -3
  1532. package/locale/pt-PT/index.cjs.js +0 -3
  1533. package/locale/pt-PT/index.js +0 -1
  1534. package/locale/pt-ST/index.cjs +0 -3
  1535. package/locale/pt-ST/index.cjs.js +0 -3
  1536. package/locale/pt-ST/index.js +0 -1
  1537. package/locale/pt-TL/index.cjs +0 -3
  1538. package/locale/pt-TL/index.cjs.js +0 -3
  1539. package/locale/pt-TL/index.js +0 -1
  1540. package/locale/qu/index.cjs +0 -3
  1541. package/locale/qu/index.cjs.js +0 -3
  1542. package/locale/qu/index.js +0 -1
  1543. package/locale/rm/index.cjs +0 -3
  1544. package/locale/rm/index.cjs.js +0 -3
  1545. package/locale/rm/index.js +0 -1
  1546. package/locale/ro/index.cjs +0 -3
  1547. package/locale/ro/index.cjs.js +0 -3
  1548. package/locale/ro/index.js +0 -1
  1549. package/locale/ru/index.cjs +0 -3
  1550. package/locale/ru/index.cjs.js +0 -3
  1551. package/locale/ru/index.js +0 -1
  1552. package/locale/sah/index.cjs +0 -3
  1553. package/locale/sah/index.cjs.js +0 -3
  1554. package/locale/sah/index.js +0 -1
  1555. package/locale/sc/index.cjs +0 -3
  1556. package/locale/sc/index.cjs.js +0 -3
  1557. package/locale/sc/index.js +0 -1
  1558. package/locale/sd/index.cjs +0 -3
  1559. package/locale/sd/index.cjs.js +0 -3
  1560. package/locale/sd/index.js +0 -1
  1561. package/locale/se/index.cjs +0 -3
  1562. package/locale/se/index.cjs.js +0 -3
  1563. package/locale/se/index.js +0 -1
  1564. package/locale/se-FI/index.cjs +0 -3
  1565. package/locale/se-FI/index.cjs.js +0 -3
  1566. package/locale/se-FI/index.js +0 -1
  1567. package/locale/si/index.cjs +0 -3
  1568. package/locale/si/index.cjs.js +0 -3
  1569. package/locale/si/index.js +0 -1
  1570. package/locale/sk/index.cjs +0 -3
  1571. package/locale/sk/index.cjs.js +0 -3
  1572. package/locale/sk/index.js +0 -1
  1573. package/locale/sl/index.cjs +0 -3
  1574. package/locale/sl/index.cjs.js +0 -3
  1575. package/locale/sl/index.js +0 -1
  1576. package/locale/so/index.cjs +0 -3
  1577. package/locale/so/index.cjs.js +0 -3
  1578. package/locale/so/index.js +0 -1
  1579. package/locale/sq/index.cjs +0 -3
  1580. package/locale/sq/index.cjs.js +0 -3
  1581. package/locale/sq/index.js +0 -1
  1582. package/locale/sr/index.cjs +0 -3
  1583. package/locale/sr/index.cjs.js +0 -3
  1584. package/locale/sr/index.js +0 -1
  1585. package/locale/sr-Cyrl-BA/index.cjs +0 -3
  1586. package/locale/sr-Cyrl-BA/index.cjs.js +0 -3
  1587. package/locale/sr-Cyrl-BA/index.js +0 -1
  1588. package/locale/sr-Latn/index.cjs +0 -3
  1589. package/locale/sr-Latn/index.cjs.js +0 -3
  1590. package/locale/sr-Latn/index.js +0 -1
  1591. package/locale/sr-Latn-BA/index.cjs +0 -3
  1592. package/locale/sr-Latn-BA/index.cjs.js +0 -3
  1593. package/locale/sr-Latn-BA/index.js +0 -1
  1594. package/locale/su/index.cjs +0 -3
  1595. package/locale/su/index.cjs.js +0 -3
  1596. package/locale/su/index.js +0 -1
  1597. package/locale/sv/index.cjs +0 -3
  1598. package/locale/sv/index.cjs.js +0 -3
  1599. package/locale/sv/index.js +0 -1
  1600. package/locale/sw/index.cjs +0 -3
  1601. package/locale/sw/index.cjs.js +0 -3
  1602. package/locale/sw/index.js +0 -1
  1603. package/locale/ta/index.cjs +0 -3
  1604. package/locale/ta/index.cjs.js +0 -3
  1605. package/locale/ta/index.js +0 -1
  1606. package/locale/te/index.cjs +0 -3
  1607. package/locale/te/index.cjs.js +0 -3
  1608. package/locale/te/index.js +0 -1
  1609. package/locale/tg/index.cjs +0 -3
  1610. package/locale/tg/index.cjs.js +0 -3
  1611. package/locale/tg/index.js +0 -1
  1612. package/locale/th/index.cjs +0 -3
  1613. package/locale/th/index.cjs.js +0 -3
  1614. package/locale/th/index.js +0 -1
  1615. package/locale/ti/index.cjs +0 -3
  1616. package/locale/ti/index.cjs.js +0 -3
  1617. package/locale/ti/index.js +0 -1
  1618. package/locale/tk/index.cjs +0 -3
  1619. package/locale/tk/index.cjs.js +0 -3
  1620. package/locale/tk/index.js +0 -1
  1621. package/locale/to/index.cjs +0 -3
  1622. package/locale/to/index.cjs.js +0 -3
  1623. package/locale/to/index.js +0 -1
  1624. package/locale/tr/index.cjs +0 -3
  1625. package/locale/tr/index.cjs.js +0 -3
  1626. package/locale/tr/index.js +0 -1
  1627. package/locale/tt/index.cjs +0 -3
  1628. package/locale/tt/index.cjs.js +0 -3
  1629. package/locale/tt/index.js +0 -1
  1630. package/locale/ug/index.cjs +0 -3
  1631. package/locale/ug/index.cjs.js +0 -3
  1632. package/locale/ug/index.js +0 -1
  1633. package/locale/uk/index.cjs +0 -3
  1634. package/locale/uk/index.cjs.js +0 -3
  1635. package/locale/uk/index.js +0 -1
  1636. package/locale/ur/index.cjs +0 -3
  1637. package/locale/ur/index.cjs.js +0 -3
  1638. package/locale/ur/index.js +0 -1
  1639. package/locale/ur-IN/index.cjs +0 -3
  1640. package/locale/ur-IN/index.cjs.js +0 -3
  1641. package/locale/ur-IN/index.js +0 -1
  1642. package/locale/uz/index.cjs +0 -3
  1643. package/locale/uz/index.cjs.js +0 -3
  1644. package/locale/uz/index.js +0 -1
  1645. package/locale/uz-Cyrl/index.cjs +0 -3
  1646. package/locale/uz-Cyrl/index.cjs.js +0 -3
  1647. package/locale/uz-Cyrl/index.js +0 -1
  1648. package/locale/vi/index.cjs +0 -3
  1649. package/locale/vi/index.cjs.js +0 -3
  1650. package/locale/vi/index.js +0 -1
  1651. package/locale/wae/index.cjs +0 -3
  1652. package/locale/wae/index.cjs.js +0 -3
  1653. package/locale/wae/index.js +0 -1
  1654. package/locale/wo/index.cjs +0 -3
  1655. package/locale/wo/index.cjs.js +0 -3
  1656. package/locale/wo/index.js +0 -1
  1657. package/locale/yi/index.cjs +0 -3
  1658. package/locale/yi/index.cjs.js +0 -3
  1659. package/locale/yi/index.js +0 -1
  1660. package/locale/yo/index.cjs +0 -3
  1661. package/locale/yo/index.cjs.js +0 -3
  1662. package/locale/yo/index.js +0 -1
  1663. package/locale/yo-BJ/index.cjs +0 -3
  1664. package/locale/yo-BJ/index.cjs.js +0 -3
  1665. package/locale/yo-BJ/index.js +0 -1
  1666. package/locale/yrl/index.cjs +0 -3
  1667. package/locale/yrl/index.cjs.js +0 -3
  1668. package/locale/yrl/index.js +0 -1
  1669. package/locale/yue/index.cjs +0 -3
  1670. package/locale/yue/index.cjs.js +0 -3
  1671. package/locale/yue/index.js +0 -1
  1672. package/locale/yue-Hans/index.cjs +0 -3
  1673. package/locale/yue-Hans/index.cjs.js +0 -3
  1674. package/locale/yue-Hans/index.js +0 -1
  1675. package/locale/zh/index.cjs +0 -3
  1676. package/locale/zh/index.cjs.js +0 -3
  1677. package/locale/zh/index.js +0 -1
  1678. package/locale/zh-Hans-HK/index.cjs +0 -3
  1679. package/locale/zh-Hans-HK/index.cjs.js +0 -3
  1680. package/locale/zh-Hans-HK/index.js +0 -1
  1681. package/locale/zh-Hans-MO/index.cjs +0 -3
  1682. package/locale/zh-Hans-MO/index.cjs.js +0 -3
  1683. package/locale/zh-Hans-MO/index.js +0 -1
  1684. package/locale/zh-Hans-SG/index.cjs +0 -3
  1685. package/locale/zh-Hans-SG/index.cjs.js +0 -3
  1686. package/locale/zh-Hans-SG/index.js +0 -1
  1687. package/locale/zh-Hant/index.cjs +0 -3
  1688. package/locale/zh-Hant/index.cjs.js +0 -3
  1689. package/locale/zh-Hant/index.js +0 -1
  1690. package/locale/zh-Hant-HK/index.cjs +0 -3
  1691. package/locale/zh-Hant-HK/index.cjs.js +0 -3
  1692. package/locale/zh-Hant-HK/index.js +0 -1
  1693. package/locale/zh-Hant-MO/index.cjs +0 -3
  1694. package/locale/zh-Hant-MO/index.cjs.js +0 -3
  1695. package/locale/zh-Hant-MO/index.js +0 -1
  1696. package/locale/zu/index.cjs +0 -3
  1697. package/locale/zu/index.cjs.js +0 -3
  1698. package/locale/zu/index.js +0 -1
package/README.md CHANGED
@@ -37,7 +37,7 @@ If you're not using a bundler then use a [standalone version from a CDN](#cdn).
37
37
  import TimeAgo from 'javascript-time-ago'
38
38
 
39
39
  // English.
40
- import en from 'javascript-time-ago/locale/en.json'
40
+ import en from 'javascript-time-ago/locale/en'
41
41
 
42
42
  TimeAgo.addDefaultLocale(en)
43
43
 
@@ -68,9 +68,9 @@ The `locale` argument of `new TimeAgo(locale)` constructor is matched against th
68
68
  The "default language" is `"en"` by default, and can be set either by calling `addDefaultLocale()`:
69
69
 
70
70
  ```js
71
- import ru from 'javascript-time-ago/locale/ru.json'
72
- import de from 'javascript-time-ago/locale/de.json'
73
- import es from 'javascript-time-ago/locale/es.json'
71
+ import ru from 'javascript-time-ago/locale/ru'
72
+ import de from 'javascript-time-ago/locale/de'
73
+ import es from 'javascript-time-ago/locale/es'
74
74
 
75
75
  TimeAgo.addLocale(ru)
76
76
  TimeAgo.addLocale(de)
@@ -80,9 +80,9 @@ TimeAgo.addDefaultLocale(es)
80
80
  or by calling `setDefaultLocale()`:
81
81
 
82
82
  ```js
83
- import ru from 'javascript-time-ago/locale/ru.json'
84
- import de from 'javascript-time-ago/locale/de.json'
85
- import es from 'javascript-time-ago/locale/es.json'
83
+ import ru from 'javascript-time-ago/locale/ru'
84
+ import de from 'javascript-time-ago/locale/de'
85
+ import es from 'javascript-time-ago/locale/es'
86
86
 
87
87
  TimeAgo.addLocale(ru)
88
88
  TimeAgo.addLocale(de)
@@ -115,7 +115,7 @@ An example of using Russian language:
115
115
  import TimeAgo from 'javascript-time-ago'
116
116
 
117
117
  // Russian.
118
- import ru from 'javascript-time-ago/locale/ru.json'
118
+ import ru from 'javascript-time-ago/locale/ru'
119
119
 
120
120
  TimeAgo.addDefaultLocale(ru)
121
121
 
@@ -431,7 +431,7 @@ New labels can be added by calling `TimeAgo.addLabels()` function.
431
431
 
432
432
  ```js
433
433
  import TimeAgo from 'javascript-time-ago'
434
- import en from 'javascript-time-ago/locale/en.json'
434
+ import en from 'javascript-time-ago/locale/en'
435
435
  import { round } from 'javascript-time-ago/steps'
436
436
 
437
437
  TimeAgo.addDefaultLocale(en)
@@ -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.
@@ -6,7 +6,7 @@ const locales = []
6
6
  fs.readdirSync(path.resolve('./locale')).forEach((locale) => {
7
7
  const localePath = path.resolve('./locale', locale)
8
8
  if (fs.statSync(localePath).isDirectory()) {
9
- if (fs.existsSync(path.resolve('./locale', locale, 'index.js'))) {
9
+ if (fs.existsSync(path.resolve('./locale', locale, 'package.json'))) {
10
10
  locales.push(locale)
11
11
  }
12
12
  }
@@ -19,7 +19,7 @@ for (const locale of ALL_LOCALES) {
19
19
  createLegacyCompatibilityLocaleFolder(locale)
20
20
  }
21
21
 
22
- addLocaleExports()
22
+ addLocaleExports(ALL_LOCALES)
23
23
 
24
24
  /**
25
25
  * Returns a list of all locales supported by `relative-time-format`.
@@ -75,73 +75,95 @@ function writeLocaleDataFile(locale) {
75
75
  throw new Error(`"now" label not found for locale "${locale}"`)
76
76
  }
77
77
 
78
- // Create the locale *.json file.
78
+ // Create the locale `*.json` file.
79
79
  fs.outputFileSync(
80
80
  path.join(localesDirectory, `${locale}.json`),
81
81
  JSON.stringify(localeData, null, '\t')
82
82
  )
83
- }
84
83
 
85
- // (deprecated)
86
- // Creates a legacy-compatibility locale directory export.
87
- function createLegacyCompatibilityLocaleFolder(locale) {
88
- const localeDirectory = path.join(localesDirectory, locale)
89
-
90
- // Create a legacy-compatibility `index.js` file.
84
+ // Create the locale `*.json.js` file.
85
+ //
86
+ // Stupid Node.js can't even `import` JSON files.
87
+ // https://stackoverflow.com/questions/72348042/typeerror-err-unknown-file-extension-unknown-file-extension-json-for-node
88
+ // Using a `*.json.js` duplicate file workaround.
89
+ //
91
90
  fs.outputFileSync(
92
- path.join(localeDirectory, 'index.js'),
93
- `
94
- export { default } from '../${locale}.json'
95
- `.trim()
91
+ path.join(localesDirectory, `${locale}.json.js`),
92
+ 'export default ' + JSON.stringify(localeData, null, '\t')
96
93
  )
97
94
 
98
- // Create a legacy-compatibility `index.cjs` file.
95
+ // Create the locale `*.json.d.ts` file.
99
96
  fs.outputFileSync(
100
- path.join(localeDirectory, 'index.cjs'),
97
+ path.join(localesDirectory, `${locale}.json.d.ts`),
101
98
  `
102
- var localeData = require('../${locale}.json')
103
- exports = module.exports = localeData
104
- exports['default'] = localeData
105
- `.trim()
106
- )
99
+ import { LocaleData } from '../index';
107
100
 
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
101
+ declare const localeData: LocaleData;
102
+ export default localeData;
118
103
  `.trim()
119
104
  )
105
+ }
106
+
107
+ // (deprecated)
108
+ // Creates a legacy-compatibility locale directory export.
109
+ function createLegacyCompatibilityLocaleFolder(locale) {
110
+ const localeDirectory = path.join(localesDirectory, locale)
111
+
112
+ // // Create a legacy-compatibility `index.js` file.
113
+ // fs.outputFileSync(
114
+ // path.join(localeDirectory, 'index.js'),
115
+ // `
116
+ // export { default } from '../${locale}.json.js'
117
+ // `.trim()
118
+ // )
119
+
120
+ // // Create a legacy-compatibility `index.cjs` file.
121
+ // fs.outputFileSync(
122
+ // path.join(localeDirectory, 'index.cjs'),
123
+ // `
124
+ // var localeData = require('../${locale}.json')
125
+ // exports = module.exports = localeData
126
+ // exports['default'] = localeData
127
+ // `.trim()
128
+ // )
129
+
130
+ // // Create a legacy-compatibility `index.cjs.js` file.
131
+ // // It's the same as `index.cjs`, just with an added `.js` file extension.
132
+ // // It only exists for compatibility with the software that doesn't like `*.cjs` file extension.
133
+ // // https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/61#note_950728292
134
+ // fs.outputFileSync(
135
+ // path.join(localeDirectory, 'index.cjs.js'),
136
+ // `
137
+ // var localeData = require('../${locale}.json')
138
+ // exports = module.exports = localeData
139
+ // exports['default'] = localeData
140
+ // `.trim()
141
+ // )
120
142
 
121
143
  // Create `package.json` for the legacy-compatibility locale directory.
122
144
  fs.outputFileSync(
123
145
  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()
146
+ JSON.stringify({
147
+ private: true,
148
+ name: `javascript-time-ago/locale/${locale}`,
149
+ main: `../${locale}.json`,
150
+ module: `../${locale}.json.js`,
151
+ types: `../${locale}.json.d.ts`,
152
+ type: 'module',
153
+ exports: {
154
+ '.': {
155
+ types: `../${locale}.json.d.ts`,
156
+ import: `../${locale}.json.js`,
157
+ require: `../${locale}.json`
158
+ }
159
+ },
160
+ sideEffects: false
161
+ }, null, '\t')
140
162
  )
141
163
  }
142
164
 
143
165
  // Add `export` entries in `package.json`.
144
- function addLocaleExports() {
166
+ function addLocaleExports(ALL_LOCALES) {
145
167
  // Read `package.json` file.
146
168
  const packageJson = readJsonFromFile('./package.json')
147
169
 
@@ -156,12 +178,18 @@ function addLocaleExports() {
156
178
  packageJson.exports = {
157
179
  ...packageJson.exports,
158
180
  ...ALL_LOCALES.reduce((all, locale) => {
159
- all[`./locale/${locale}`] = `./locale/${locale}.json`
160
- all[`./locale/${locale}.json`] = `./locale/${locale}.json`
181
+ all[`./locale/${locale}`] = {
182
+ import: `./locale/${locale}.json.js`,
183
+ require: `./locale/${locale}.json`
184
+ }
185
+ all[`./locale/${locale}.json`] = {
186
+ import: `./locale/${locale}.json.js`,
187
+ require: `./locale/${locale}.json`
188
+ }
161
189
  return all
162
190
  }, {})
163
191
  }
164
192
 
165
193
  // Save `package.json` file.
166
- fs.writeFileSync('./package.json', JSON.stringify(packageJson, null, 2), 'utf8')
194
+ fs.writeFileSync('./package.json', JSON.stringify(packageJson, null, 2) + '\n', 'utf8')
167
195
  }
@@ -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 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),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){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){g(t,e,r[e])}))}return t}function h(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 d(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 g(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var w=["second","minute","hour","day","week","month","quarter","year"],O=["auto","always"],j=["long","short","narrow"],S=["lookup","best fit"],P=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};d(this,t),g(this,"numeric","always"),g(this,"style","long"),g(this,"localeMatcher","lookup");var a=r.numeric,u=r.style,c=r.styleFallback,l=r.localeMatcher;if(void 0!==a){if(O.indexOf(a)<0)throw new RangeError('Invalid "numeric" option: '.concat(a));this.numeric=a}if(void 0!==u){if(j.indexOf(u)<0&&!c)throw new RangeError('Invalid "style" option: '.concat(u));this.style=u}if(void 0!==l){if(S.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=[this.style].concat(j,[f[0]]),p=0;p<s.length;p++){var m=s[p];if(f.indexOf(m)>=0){this.style=m;break}}}var e,r,a;return e=t,(r=[{key:"format",value:function(){var t=T(arguments),e=h(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=h(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 b({},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}();P.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)}))},P.addLocale=function(t){if(!t)throw new Error("No locale data passed");e[t.locale]=t,r[t.locale.toLowerCase()]=t.locale},P.setDefaultLocale=function(e){t=e},P.getDefaultLocale=n,P.PluralRules=y;var A='Invalid "unit" argument';function k(t){if("symbol"===m(t))throw new TypeError(A);if("string"!=typeof t)throw new RangeError("".concat(A,": ").concat(t));if("s"===t[t.length-1]&&(t=t.slice(0,t.length-1)),w.indexOf(t)<0)throw new RangeError("".concat(A,": ").concat(t));return t}function D(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[D(t[0]),k(t[1])]}function E(t){return(E="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 F(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 N=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"!==E(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"!==E(a[c])&&(a[c]={}),a=a[c]}return a[o]=n}}])&&F(e.prototype,r),n&&F(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();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 M(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 R(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 R(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 R(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 z(t,e){for(var r,n=M(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 x(t){return(x="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 L(t){return function(t){return void 0!==x(t)&&null!==t&&t.constructor===C}(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 C={}.constructor;var U=60,_=3600,Y=86400,$=7*Y,q=2630016,V=31556952;function J(t){switch(t){case"second":return 1;case"minute":return U;case"hour":return _;case"day":return Y;case"week":return $;case"month":return q;case"year":return V}}function B(t){return void 0!==t.factor?t.factor:J(t.unit||t.formatAs)||1}function G(t){switch(t){case"floor":return Math.floor;default:return Math.round}}function H(t){switch(t){case"floor":return 1;default:return.5}}function K(t){return(K="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 Q(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"===K(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 W(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=W(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 W(t,e,r){var n,o=r.round,a=J(t);if(n=J("now"===e?t:e),void 0!==a&&void 0!==n)return a-n*(1-H(o))}function X(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 Z(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?X(Object(r),!0).forEach((function(e){tt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}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}function et(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=rt(t,e,{now:n,future:o||e<0,round:a});if(-1===i)return;var u=t[i];if(u.granularity){if(0===G(a)(Math.abs(e)/B(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 rt(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=Q(t[n],Z({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:rt(t,e,r,n+1)}function nt(t,e,r){var n=r.now,o=r.round;if(J(t)){var a=1e3*J(t),i=e>n,u=Math.abs(e-n),c=G(o)(u/a)*a;return i?c>0?u-c+function(t,e){return(1-H(t))*e+1}(o,a):u-c+1:-(u-c)+function(t,e){return H(t)*e}(o,a)}}var ot=31536e9;function at(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 nt(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=Q(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?ot: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:ot}(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:G,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 it={};function ut(t){return it[t]}function ct(t){if(!t)throw new Error("[javascript-time-ago] No locale data passed.");it[t.locale]=t}var lt={steps:[{formatAs:"now"},{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"}],labels:"long"};function ft(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 st(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ft(Object(r),!0).forEach((function(e){pt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ft(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function pt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var yt=st(st({},lt),{},{steps:lt.steps.filter((function(t){return"second"!==t.formatAs}))}),mt=[{factor:1,unit:"now"},{threshold:1,threshold_for_now:45.5,factor:1,unit:"second"},{threshold:45.5,factor:U,unit:"minute"},{threshold:150,granularity:5,factor:U,unit:"minute"},{threshold:1350,factor:1800,unit:"half-hour"},{threshold:2550,threshold_for_minute:3150,factor:_,unit:"hour"},{threshold:73800,factor:Y,unit:"day"},{threshold:475200,factor:$,unit:"week"},{threshold:2116800,factor:q,unit:"month"},{threshold:27615168,factor:V,unit:"year"}],bt={gradation:mt,flavour:"long",units:["now","minute","hour","day","week","month","year"]},ht={gradation:mt,flavour:"long-time",units:["now","minute","hour","day","week","month","year"]};function dt(t){return t instanceof Date?t:new Date(t)}var vt=[{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"}],gt={},wt={minTime:function(t,e){return e.future,(0,e.getMinTimeForUnit)("day")},format:function(t,e){return gt[e]||(gt[e]={}),gt[e].dayMonth||(gt[e].dayMonth=new Intl.DateTimeFormat(e,{month:"short",day:"numeric"})),gt[e].dayMonth.format(dt(t))}},Ot={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 gt[e]||(gt[e]={}),gt[e].dayMonthYear||(gt[e].dayMonthYear=new Intl.DateTimeFormat(e,{year:"numeric",month:"short",day:"numeric"})),gt[e].dayMonthYear.format(dt(t))}};"object"===("undefined"==typeof Intl?"undefined":I(Intl))&&"function"==typeof Intl.DateTimeFormat?vt.push(wt,Ot):vt.push({formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"});var jt={steps:vt,labels:["mini","short-time","narrow","short"]};function St(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 Pt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?St(Object(r),!0).forEach((function(e){At(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):St(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function At(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=Pt(Pt({},jt),{},{steps:[{formatAs:"now"}].concat(jt.steps)});function Dt(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 Tt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Dt(Object(r),!0).forEach((function(e){Et(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Dt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Et(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=Tt(Tt({},jt),{},{steps:jt.steps.filter((function(t){return"second"!==t.formatAs}))});function Nt(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 It(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Nt(Object(r),!0).forEach((function(e){Mt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nt(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 Rt=It(It({},Ft),{},{steps:[{formatAs:"now"}].concat(Ft.steps)});function zt(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 xt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zt(Object(r),!0).forEach((function(e){Lt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Lt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ct=xt(xt({},jt),{},{steps:jt.steps.filter((function(t){return"second"!==t.formatAs})).map((function(t){return"minute"===t.formatAs?xt(xt({},t),{},{minTime:U}):t}))}),Ut={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 Yt(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){$t(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 $t(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var qt=Yt(Yt({},Ut),{},{steps:[{formatAs:"now"}].concat(Ut.steps)});function Vt(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 Jt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Vt(Object(r),!0).forEach((function(e){Bt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Vt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Bt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Gt=Jt(Jt({},Ut),{},{steps:Ut.steps.filter((function(t){return"second"!==t.formatAs}))});function Ht(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?Ht(Object(r),!0).forEach((function(e){Qt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ht(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Qt(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=Kt(Kt({},Gt),{},{steps:[{formatAs:"now"}].concat(Gt.steps)});function Xt(t){switch(t){case"default":case"round":return lt;case"round-minute":return yt;case"approximate":return bt;case"time":case"approximate-time":return ht;case"mini":return Ut;case"mini-now":return qt;case"mini-minute":return Gt;case"mini-minute-now":return Wt;case"twitter":return jt;case"twitter-now":return kt;case"twitter-minute":return Ft;case"twitter-minute-now":return Rt;case"twitter-first-minute":return Ct;default:return bt}}function Zt(t){return(Zt="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 te(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=re(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 ee(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)||re(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 re(t,e){if(t){if("string"==typeof t)return ne(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)?ne(t,e):void 0}}function ne(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 oe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ae(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 ie,ue=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;oe(this,t),"string"==typeof e&&(e=[e]),this.locale=z(e.concat(t.getDefaultLocale()),ut),"undefined"!=typeof Intl&&Intl.NumberFormat&&(this.numberFormat=new Intl.NumberFormat(this.locale)),!1===n?(this.IntlRelativeTimeFormat=Intl.RelativeTimeFormat,this.IntlPluralRules=Intl.PluralRules):(this.IntlRelativeTimeFormat=P,this.IntlPluralRules=P.PluralRules),this.relativeTimeFormatCache=new N,this.pluralRulesCache=new N}var e,r,n;return e=t,(r=[{key:"format",value:function(t,e,r){var n;r||(e&&"string"!=typeof(n=e)&&!L(n)?(r=e,e=void 0):r={}),e||(e=yt),"string"==typeof e&&(e=Xt(e));var o,a=function(t){if(t.constructor===Date||"object"===Zt(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(Zt(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,ut(this.locale).now,ut(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=ee(et(e.gradation||e.steps||yt.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,at(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)/B(e);e.granularity&&(p=G(f)(p/e.granularity)*e.granularity);var y=-1*Math.sign(r)*G(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=ut(this.locale),n=te(t);!(e=n()).done;){var o=e.value;if(r[o])return{labelsType:o,labels:r[o]}}}}])&&ae(e.prototype,r),n&&ae(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),ce="en";return ue.getDefaultLocale=function(){return ce},ue.setDefaultLocale=function(t){return ce=t},ue.addDefaultLocale=function(t){if(ie)return console.error("[javascript-time-ago] `TimeAgo.addDefaultLocale()` can only be called once. To add other locales, use `TimeAgo.addLocale()`.");ie=!0,ue.setDefaultLocale(t.locale),ue.addLocale(t)},ue.addLocale=function(t){ct(t),P.addLocale(t)},ue.locale=ue.addLocale,ue.addLabels=function(t,e,r){var n=ut(t);n||(ct({locale:t}),n=ut(t)),n[e]=r},ue}));
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]?t:r[t.toLowerCase()]?r[t.toLowerCase()]:void 0}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.localeMatcher||"lookup";switch(r){case"lookup":case"best fit":return i(t);default:throw new RangeError('Invalid "localeMatcher" option: '.concat(r))}}function i(t){var e=o(t);if(e)return e;for(var r=t.split("-");t.length>1;){r.pop();var n=o(t=r.join("-"));if(n)return n}}var u={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"}};u.as=u.am,u.az=u.af,u.bg=u.af,u.bn=u.am,u.brx=u.af,u.ca=u.ast,u.ce=u.af,u.chr=u.af,u.de=u.ast,u.ee=u.af,u.el=u.af,u.en=u.ast,u.et=u.ast,u.eu=u.af,u.fa=u.am,u.fi=u.ast,u.fil=u.ceb,u.fo=u.af,u.fur=u.af,u.fy=u.ast,u.gl=u.ast,u.gu=u.am,u.ha=u.af,u.hi=u.am,u.hr=u.bs,u.hsb=u.dsb,u.hu=u.af,u.hy=u.ff,u.ia=u.ast,u.id=u.dz,u.ig=u.dz,u.ja=u.dz,u.jgo=u.af,u.jv=u.dz,u.ka=u.af,u.kea=u.dz,u.kk=u.af,u.kl=u.af,u.km=u.dz,u.kn=u.am,u.ko=u.dz,u.ku=u.af,u.ky=u.af,u.lb=u.af,u.lkt=u.dz,u.lo=u.dz,u.ml=u.af,u.mn=u.af,u.mr=u.af,u.ms=u.dz,u.my=u.dz,u.nb=u.af,u.ne=u.af,u.nl=u.ast,u.nn=u.af,u.no=u.af,u.or=u.af,u.pcm=u.am,u.ps=u.af,u.rm=u.af,u.sah=u.dz,u.sc=u.ast,u.sd=u.af,u.sk=u.cs,u.so=u.af,u.sq=u.af,u.sr=u.bs,u.su=u.dz,u.sv=u.ast,u.sw=u.ast,u.ta=u.af,u.te=u.af,u.th=u.dz,u.ti=u.pa,u.tk=u.af,u.to=u.dz,u.tr=u.af,u.ug=u.af,u.uk=u.ru,u.ur=u.ast,u.uz=u.af,u.vi=u.dz,u.wae=u.af,u.wo=u.dz,u.yi=u.ast,u.yo=u.dz,u.yue=u.dz,u.zh=u.dz,u.zu=u.am;var c=u;function l(t){return"pt-PT"===t?t:function(t){var e=t.match(f);if(!e)throw new TypeError("Invalid locale: ".concat(t));return e[1]}(t)}var f=/^([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 p=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.$=c[l(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 c[l(t)]}))}}],(r=[{key:"select",value:function(t){return this.$(t)}}])&&s(e.prototype,r),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),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 m(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 b(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m(Object(r),!0).forEach((function(e){h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function h(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(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 v(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 v(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 v(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 g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(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 O=["second","minute","hour","day","week","month","quarter","year"],j=["auto","always"],S=["long","short","narrow"],P=["lookup","best fit"],A=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};g(this,t);var o=r.numeric,i=r.style,u=r.localeMatcher;if(this.numeric="always",this.style="long",this.localeMatcher="lookup",void 0!==o){if(j.indexOf(o)<0)throw new RangeError('Invalid "numeric" option: '.concat(o));this.numeric=o}if(void 0!==i){if(S.indexOf(i)<0)throw new RangeError('Invalid "style" option: '.concat(i));this.style=i}if(void 0!==u){if(P.indexOf(u)<0)throw new RangeError('Invalid "localeMatcher" option: '.concat(u));this.localeMatcher=u}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");p.supportedLocalesOf(this.locale).length>0?this.pluralRules=new p(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=a(this.locale,{localeMatcher:this.localeMatcher})}var r,o,i;return r=t,(o=[{key:"format",value:function(){var t=E(arguments),e=d(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=E(arguments),e=d(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 b(b({},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,r){var n,o=(n=this.locale,e[n])[this.style][r];if("string"==typeof o)return o;if("auto"===this.numeric)if(-2===t||-1===t){var a=o["previous".concat(-1===t?"":"-"+Math.abs(t))];if(a)return a}else if(1===t||2===t){var i=o["next".concat(1===t?"":"-"+Math.abs(t))];if(i)return i}else if(0===t&&o.current)return o.current;var u,c=o[(u=t,u<0||0===u&&function(t){return 1/t==-1/0}(u)?"past":"future")];return"string"==typeof c?c:c[this.pluralRules&&this.pluralRules.select(Math.abs(t))||"other"]||c.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}}}])&&w(r.prototype,o),i&&w(r,i),Object.defineProperty(r,"prototype",{writable:!1}),t}();A.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 a(t,e)}))},A.addLocale=function(t){if(!t)throw new Error("No locale data passed");e[t.locale]=t,r[t.locale.toLowerCase()]=t.locale},A.setDefaultLocale=function(e){t=e},A.getDefaultLocale=n,A.PluralRules=p;var D='Invalid "unit" argument';function k(t){if("symbol"===y(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)),O.indexOf(t)<0)throw new RangeError("".concat(D,": ").concat(t));return t}function T(t){if(t=Number(t),Number.isFinite&&!Number.isFinite(t))throw new RangeError("".concat('Invalid "number" argument',": ").concat(t));return t}function E(t){if(t.length<2)throw new TypeError('"unit" argument is required');return[T(t[0]),k(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 I(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 N=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"!==F(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"!==F(a[c])&&(a[c]={}),a=a[c]}return a[o]=n}}])&&I(e.prototype,r),n&&I(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 R(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 z(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 z(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 z(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 x(t,e){for(var r,n=R(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 L(t){return(L="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 C(t){return function(t){return void 0!==L(t)&&null!==t&&t.constructor===U}(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 U={}.constructor;var _=60,Y=3600,$=86400,q=7*$,V=2630016,J=31556952;function B(t){switch(t){case"second":return 1;case"minute":return _;case"hour":return Y;case"day":return $;case"week":return q;case"month":return V;case"year":return J}}function G(t){return void 0!==t.factor?t.factor:B(t.unit||t.formatAs)||1}function H(t){switch(t){case"floor":return Math.floor;default:return Math.round}}function K(t){switch(t){case"floor":return 1;default:return.5}}function Q(t){return(Q="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 W(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"===Q(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 X(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=X(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 X(t,e,r){var n,o=r.round,a=B(t);if(n=B("now"===e?t:e),void 0!==a&&void 0!==n)return a-n*(1-K(o))}function Z(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 tt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Z(Object(r),!0).forEach((function(e){et(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Z(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function et(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rt(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=nt(t,e,{now:n,future:o||e<0,round:a});if(-1===i)return;var u=t[i];if(u.granularity){if(0===H(a)(Math.abs(e)/G(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 nt(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=W(t[n],tt({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:nt(t,e,r,n+1)}function ot(t,e,r){var n=r.now,o=r.round;if(B(t)){var a=1e3*B(t),i=e>n,u=Math.abs(e-n),c=H(o)(u/a)*a;return i?c>0?u-c+function(t,e){return(1-K(t))*e+1}(o,a):u-c+1:-(u-c)+function(t,e){return K(t)*e}(o,a)}}var at=31536e9;function it(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 ot(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=W(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?at: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:at}(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:H,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 ut={};function ct(t){return ut[t]}function lt(t){if(!t)throw new Error("[javascript-time-ago] No locale data passed.");ut[t.locale]=t}var ft={steps:[{formatAs:"now"},{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"}],labels:"long"};function st(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 pt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?st(Object(r),!0).forEach((function(e){yt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):st(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function yt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var mt=pt(pt({},ft),{},{steps:ft.steps.filter((function(t){return"second"!==t.formatAs}))}),bt=[{factor:1,unit:"now"},{threshold:1,threshold_for_now:45.5,factor:1,unit:"second"},{threshold:45.5,factor:_,unit:"minute"},{threshold:150,granularity:5,factor:_,unit:"minute"},{threshold:1350,factor:1800,unit:"half-hour"},{threshold:2550,threshold_for_minute:3150,factor:Y,unit:"hour"},{threshold:73800,factor:$,unit:"day"},{threshold:475200,factor:q,unit:"week"},{threshold:2116800,factor:V,unit:"month"},{threshold:27615168,factor:J,unit:"year"}],ht={gradation:bt,flavour:"long",units:["now","minute","hour","day","week","month","year"]},dt={gradation:bt,flavour:"long-time",units:["now","minute","hour","day","week","month","year"]};function vt(t){return t instanceof Date?t:new Date(t)}var gt=[{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"}],wt={},Ot={minTime:function(t,e){return e.future,(0,e.getMinTimeForUnit)("day")},format:function(t,e){return wt[e]||(wt[e]={}),wt[e].dayMonth||(wt[e].dayMonth=new Intl.DateTimeFormat(e,{month:"short",day:"numeric"})),wt[e].dayMonth.format(vt(t))}},jt={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 wt[e]||(wt[e]={}),wt[e].dayMonthYear||(wt[e].dayMonthYear=new Intl.DateTimeFormat(e,{year:"numeric",month:"short",day:"numeric"})),wt[e].dayMonthYear.format(vt(t))}};"object"===("undefined"==typeof Intl?"undefined":M(Intl))&&"function"==typeof Intl.DateTimeFormat?gt.push(Ot,jt):gt.push({formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"});var St={steps:gt,labels:["mini","short-time","narrow","short"]};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 At(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){Dt(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 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 kt=At(At({},St),{},{steps:[{formatAs:"now"}].concat(St.steps)});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){Ft(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 Ft(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var It=Et(Et({},St),{},{steps:St.steps.filter((function(t){return"second"!==t.formatAs}))});function Nt(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 Mt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Nt(Object(r),!0).forEach((function(e){Rt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nt(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}var zt=Mt(Mt({},It),{},{steps:[{formatAs:"now"}].concat(It.steps)});function xt(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 Lt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xt(Object(r),!0).forEach((function(e){Ct(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ct(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=Lt(Lt({},St),{},{steps:St.steps.filter((function(t){return"second"!==t.formatAs})).map((function(t){return"minute"===t.formatAs?Lt(Lt({},t),{},{minTime:_}):t}))}),_t={steps:[{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"month"},{formatAs:"year"}],labels:["mini","short-time","narrow","short"]};function Yt(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 $t(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yt(Object(r),!0).forEach((function(e){qt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Vt=$t($t({},_t),{},{steps:[{formatAs:"now"}].concat(_t.steps)});function Jt(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 Bt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jt(Object(r),!0).forEach((function(e){Gt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}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 Ht=Bt(Bt({},_t),{},{steps:_t.steps.filter((function(t){return"second"!==t.formatAs}))});function Kt(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?Kt(Object(r),!0).forEach((function(e){Wt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Wt(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=Qt(Qt({},Ht),{},{steps:[{formatAs:"now"}].concat(Ht.steps)});function Zt(t){switch(t){case"default":case"round":return ft;case"round-minute":return mt;case"approximate":return ht;case"time":case"approximate-time":return dt;case"mini":return _t;case"mini-now":return Vt;case"mini-minute":return Ht;case"mini-minute-now":return Xt;case"twitter":return St;case"twitter-now":return kt;case"twitter-minute":return It;case"twitter-minute-now":return zt;case"twitter-first-minute":return Ut;default:return ht}}function te(t){return(te="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 ee(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=ne(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 re(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)||ne(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 ne(t,e){if(t){if("string"==typeof t)return oe(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)?oe(t,e):void 0}}function oe(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 ae(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ie(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 ue,ce=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;ae(this,t),"string"==typeof e&&(e=[e]),this.locale=x(e.concat(t.getDefaultLocale()),ct),"undefined"!=typeof Intl&&Intl.NumberFormat&&(this.numberFormat=new Intl.NumberFormat(this.locale)),!1===n?(this.IntlRelativeTimeFormat=Intl.RelativeTimeFormat,this.IntlPluralRules=Intl.PluralRules):(this.IntlRelativeTimeFormat=A,this.IntlPluralRules=A.PluralRules),this.relativeTimeFormatCache=new N,this.pluralRulesCache=new N}var e,r,n;return e=t,(r=[{key:"format",value:function(t,e,r){var n;r||(e&&"string"!=typeof(n=e)&&!C(n)?(r=e,e=void 0):r={}),e||(e=mt),"string"==typeof e&&(e=Zt(e));var o,a=function(t){if(t.constructor===Date||"object"===te(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(te(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,ct(this.locale).now,ct(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=re(rt(e.gradation||e.steps||mt.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,it(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)/G(e);e.granularity&&(p=H(f)(p/e.granularity)*e.granularity);var y=-1*Math.sign(r)*H(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=ct(this.locale),n=ee(t);!(e=n()).done;){var o=e.value;if(r[o])return{labelsType:o,labels:r[o]}}}}])&&ie(e.prototype,r),n&&ie(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),le="en";return ce.getDefaultLocale=function(){return le},ce.setDefaultLocale=function(t){return le=t},ce.addDefaultLocale=function(t){if(ue)return console.error("[javascript-time-ago] `TimeAgo.addDefaultLocale()` can only be called once. To add other locales, use `TimeAgo.addLocale()`.");ue=!0,ce.setDefaultLocale(t.locale),ce.addLocale(t)},ce.addLocale=function(t){lt(t),A.addLocale(t)},ce.locale=ce.addLocale,ce.addLabels=function(t,e,r){var n=ct(t);n||(lt({locale:t}),n=ct(t)),n[e]=r},ce}));
2
2
  //# sourceMappingURL=javascript-time-ago.js.map