@formatjs/intl-pluralrules 5.1.0 → 5.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (505) hide show
  1. package/abstract/GetOperands.d.ts +32 -0
  2. package/abstract/GetOperands.d.ts.map +1 -0
  3. package/abstract/GetOperands.js +50 -0
  4. package/abstract/InitializePluralRules.d.ts +9 -0
  5. package/abstract/InitializePluralRules.d.ts.map +1 -0
  6. package/abstract/InitializePluralRules.js +21 -0
  7. package/abstract/ResolvePlural.d.ts +13 -0
  8. package/abstract/ResolvePlural.d.ts.map +1 -0
  9. package/abstract/ResolvePlural.js +27 -0
  10. package/get_internal_slots.d.ts +3 -0
  11. package/get_internal_slots.d.ts.map +1 -0
  12. package/get_internal_slots.js +12 -0
  13. package/index.d.ts +21 -0
  14. package/index.d.ts.map +1 -0
  15. package/index.js +141 -0
  16. package/lib/abstract/GetOperands.d.ts +32 -0
  17. package/lib/abstract/GetOperands.d.ts.map +1 -0
  18. package/lib/abstract/GetOperands.js +46 -0
  19. package/lib/abstract/InitializePluralRules.d.ts +9 -0
  20. package/lib/abstract/InitializePluralRules.d.ts.map +1 -0
  21. package/lib/abstract/InitializePluralRules.js +17 -0
  22. package/lib/abstract/ResolvePlural.d.ts +13 -0
  23. package/lib/abstract/ResolvePlural.d.ts.map +1 -0
  24. package/lib/abstract/ResolvePlural.js +23 -0
  25. package/lib/get_internal_slots.d.ts +3 -0
  26. package/lib/get_internal_slots.d.ts.map +1 -0
  27. package/lib/get_internal_slots.js +9 -0
  28. package/lib/index.d.ts +21 -0
  29. package/lib/index.d.ts.map +1 -0
  30. package/lib/index.js +138 -0
  31. package/lib/polyfill-force.d.ts +2 -0
  32. package/lib/polyfill-force.d.ts.map +1 -0
  33. package/lib/polyfill-force.js +7 -0
  34. package/lib/polyfill.d.ts +2 -0
  35. package/lib/polyfill.d.ts.map +1 -0
  36. package/lib/polyfill.js +10 -0
  37. package/lib/should-polyfill.d.ts +2 -0
  38. package/lib/should-polyfill.d.ts.map +1 -0
  39. package/lib/should-polyfill.js +18 -0
  40. package/lib/supported-locales.generated.d.ts +2 -0
  41. package/lib/supported-locales.generated.d.ts.map +1 -0
  42. package/lib/supported-locales.generated.js +1 -0
  43. package/locale-data/af.d.ts +1 -0
  44. package/locale-data/af.js +8 -0
  45. package/locale-data/ak.d.ts +1 -0
  46. package/locale-data/ak.js +8 -0
  47. package/locale-data/am.d.ts +1 -0
  48. package/locale-data/am.js +8 -0
  49. package/locale-data/an.d.ts +1 -0
  50. package/locale-data/an.js +8 -0
  51. package/locale-data/ar.d.ts +1 -0
  52. package/locale-data/ar.js +14 -0
  53. package/locale-data/ars.d.ts +1 -0
  54. package/locale-data/ars.js +14 -0
  55. package/locale-data/as.d.ts +1 -0
  56. package/locale-data/as.js +12 -0
  57. package/locale-data/asa.d.ts +1 -0
  58. package/locale-data/asa.js +8 -0
  59. package/locale-data/ast.d.ts +1 -0
  60. package/locale-data/ast.js +9 -0
  61. package/locale-data/az.d.ts +1 -0
  62. package/locale-data/az.js +12 -0
  63. package/locale-data/bal.d.ts +1 -0
  64. package/locale-data/bal.js +7 -0
  65. package/locale-data/be.d.ts +1 -0
  66. package/locale-data/be.js +12 -0
  67. package/locale-data/bem.d.ts +1 -0
  68. package/locale-data/bem.js +8 -0
  69. package/locale-data/bez.d.ts +1 -0
  70. package/locale-data/bez.js +8 -0
  71. package/locale-data/bg.d.ts +1 -0
  72. package/locale-data/bg.js +8 -0
  73. package/locale-data/bho.d.ts +1 -0
  74. package/locale-data/bho.js +8 -0
  75. package/locale-data/bm.d.ts +1 -0
  76. package/locale-data/bm.js +7 -0
  77. package/locale-data/bn.d.ts +1 -0
  78. package/locale-data/bn.js +12 -0
  79. package/locale-data/bo.d.ts +1 -0
  80. package/locale-data/bo.js +7 -0
  81. package/locale-data/br.d.ts +1 -0
  82. package/locale-data/br.js +13 -0
  83. package/locale-data/brx.d.ts +1 -0
  84. package/locale-data/brx.js +8 -0
  85. package/locale-data/bs.d.ts +1 -0
  86. package/locale-data/bs.js +11 -0
  87. package/locale-data/ca.d.ts +1 -0
  88. package/locale-data/ca.js +12 -0
  89. package/locale-data/ce.d.ts +1 -0
  90. package/locale-data/ce.js +8 -0
  91. package/locale-data/ceb.d.ts +1 -0
  92. package/locale-data/ceb.js +9 -0
  93. package/locale-data/cgg.d.ts +1 -0
  94. package/locale-data/cgg.js +8 -0
  95. package/locale-data/chr.d.ts +1 -0
  96. package/locale-data/chr.js +8 -0
  97. package/locale-data/ckb.d.ts +1 -0
  98. package/locale-data/ckb.js +8 -0
  99. package/locale-data/cs.d.ts +1 -0
  100. package/locale-data/cs.js +12 -0
  101. package/locale-data/cy.d.ts +1 -0
  102. package/locale-data/cy.js +18 -0
  103. package/locale-data/da.d.ts +1 -0
  104. package/locale-data/da.js +9 -0
  105. package/locale-data/de.d.ts +1 -0
  106. package/locale-data/de.js +9 -0
  107. package/locale-data/doi.d.ts +1 -0
  108. package/locale-data/doi.js +8 -0
  109. package/locale-data/dsb.d.ts +1 -0
  110. package/locale-data/dsb.js +12 -0
  111. package/locale-data/dv.d.ts +1 -0
  112. package/locale-data/dv.js +8 -0
  113. package/locale-data/dz.d.ts +1 -0
  114. package/locale-data/dz.js +7 -0
  115. package/locale-data/ee.d.ts +1 -0
  116. package/locale-data/ee.js +8 -0
  117. package/locale-data/el.d.ts +1 -0
  118. package/locale-data/el.js +8 -0
  119. package/locale-data/en.d.ts +1 -0
  120. package/{tests/locale-data/en.ts → locale-data/en.js} +4 -3
  121. package/locale-data/eo.d.ts +1 -0
  122. package/locale-data/eo.js +8 -0
  123. package/locale-data/es.d.ts +1 -0
  124. package/locale-data/es.js +11 -0
  125. package/locale-data/et.d.ts +1 -0
  126. package/locale-data/et.js +9 -0
  127. package/locale-data/eu.d.ts +1 -0
  128. package/locale-data/eu.js +8 -0
  129. package/locale-data/fa.d.ts +1 -0
  130. package/locale-data/fa.js +8 -0
  131. package/locale-data/ff.d.ts +1 -0
  132. package/locale-data/ff.js +8 -0
  133. package/locale-data/fi.d.ts +1 -0
  134. package/locale-data/fi.js +9 -0
  135. package/locale-data/fil.d.ts +1 -0
  136. package/locale-data/fil.js +9 -0
  137. package/locale-data/fo.d.ts +1 -0
  138. package/locale-data/fo.js +8 -0
  139. package/locale-data/fr.d.ts +1 -0
  140. package/{tests/locale-data/fr.ts → locale-data/fr.js} +4 -3
  141. package/locale-data/fur.d.ts +1 -0
  142. package/locale-data/fur.js +8 -0
  143. package/locale-data/fy.d.ts +1 -0
  144. package/locale-data/fy.js +9 -0
  145. package/locale-data/ga.d.ts +1 -0
  146. package/locale-data/ga.js +13 -0
  147. package/locale-data/gd.d.ts +1 -0
  148. package/locale-data/gd.js +15 -0
  149. package/locale-data/gl.d.ts +1 -0
  150. package/locale-data/gl.js +9 -0
  151. package/locale-data/gsw.d.ts +1 -0
  152. package/locale-data/gsw.js +8 -0
  153. package/locale-data/gu.d.ts +1 -0
  154. package/locale-data/gu.js +12 -0
  155. package/locale-data/guw.d.ts +1 -0
  156. package/locale-data/guw.js +8 -0
  157. package/locale-data/gv.d.ts +1 -0
  158. package/locale-data/gv.js +13 -0
  159. package/locale-data/ha.d.ts +1 -0
  160. package/locale-data/ha.js +8 -0
  161. package/locale-data/haw.d.ts +1 -0
  162. package/locale-data/haw.js +8 -0
  163. package/locale-data/he.d.ts +1 -0
  164. package/locale-data/he.js +12 -0
  165. package/locale-data/hi.d.ts +1 -0
  166. package/locale-data/hi.js +12 -0
  167. package/locale-data/hnj.d.ts +1 -0
  168. package/locale-data/hnj.js +7 -0
  169. package/locale-data/hr.d.ts +1 -0
  170. package/locale-data/hr.js +11 -0
  171. package/locale-data/hsb.d.ts +1 -0
  172. package/locale-data/hsb.js +12 -0
  173. package/locale-data/hu.d.ts +1 -0
  174. package/locale-data/hu.js +8 -0
  175. package/locale-data/hy.d.ts +1 -0
  176. package/locale-data/hy.js +8 -0
  177. package/locale-data/ia.d.ts +1 -0
  178. package/locale-data/ia.js +9 -0
  179. package/locale-data/id.d.ts +1 -0
  180. package/locale-data/id.js +7 -0
  181. package/locale-data/ig.d.ts +1 -0
  182. package/locale-data/ig.js +7 -0
  183. package/locale-data/ii.d.ts +1 -0
  184. package/locale-data/ii.js +7 -0
  185. package/locale-data/io.d.ts +1 -0
  186. package/locale-data/io.js +9 -0
  187. package/locale-data/is.d.ts +1 -0
  188. package/locale-data/is.js +9 -0
  189. package/locale-data/it.d.ts +1 -0
  190. package/locale-data/it.js +11 -0
  191. package/locale-data/iu.d.ts +1 -0
  192. package/locale-data/iu.js +10 -0
  193. package/locale-data/ja.d.ts +1 -0
  194. package/locale-data/ja.js +7 -0
  195. package/locale-data/jbo.d.ts +1 -0
  196. package/locale-data/jbo.js +7 -0
  197. package/locale-data/jgo.d.ts +1 -0
  198. package/locale-data/jgo.js +8 -0
  199. package/locale-data/jmc.d.ts +1 -0
  200. package/locale-data/jmc.js +8 -0
  201. package/locale-data/jv.d.ts +1 -0
  202. package/locale-data/jv.js +7 -0
  203. package/locale-data/jw.d.ts +1 -0
  204. package/locale-data/jw.js +7 -0
  205. package/locale-data/ka.d.ts +1 -0
  206. package/locale-data/ka.js +11 -0
  207. package/locale-data/kab.d.ts +1 -0
  208. package/locale-data/kab.js +8 -0
  209. package/locale-data/kaj.d.ts +1 -0
  210. package/locale-data/kaj.js +8 -0
  211. package/locale-data/kcg.d.ts +1 -0
  212. package/locale-data/kcg.js +8 -0
  213. package/locale-data/kde.d.ts +1 -0
  214. package/locale-data/kde.js +7 -0
  215. package/locale-data/kea.d.ts +1 -0
  216. package/locale-data/kea.js +7 -0
  217. package/locale-data/kk.d.ts +1 -0
  218. package/locale-data/kk.js +9 -0
  219. package/locale-data/kkj.d.ts +1 -0
  220. package/locale-data/kkj.js +8 -0
  221. package/locale-data/kl.d.ts +1 -0
  222. package/locale-data/kl.js +8 -0
  223. package/locale-data/km.d.ts +1 -0
  224. package/locale-data/km.js +7 -0
  225. package/locale-data/kn.d.ts +1 -0
  226. package/locale-data/kn.js +8 -0
  227. package/locale-data/ko.d.ts +1 -0
  228. package/locale-data/ko.js +7 -0
  229. package/locale-data/ks.d.ts +1 -0
  230. package/locale-data/ks.js +8 -0
  231. package/locale-data/ksb.d.ts +1 -0
  232. package/locale-data/ksb.js +8 -0
  233. package/locale-data/ksh.d.ts +1 -0
  234. package/locale-data/ksh.js +10 -0
  235. package/locale-data/ku.d.ts +1 -0
  236. package/locale-data/ku.js +8 -0
  237. package/locale-data/kw.d.ts +1 -0
  238. package/locale-data/kw.js +16 -0
  239. package/locale-data/ky.d.ts +1 -0
  240. package/locale-data/ky.js +8 -0
  241. package/locale-data/lag.d.ts +1 -0
  242. package/locale-data/lag.js +11 -0
  243. package/locale-data/lb.d.ts +1 -0
  244. package/locale-data/lb.js +8 -0
  245. package/locale-data/lg.d.ts +1 -0
  246. package/locale-data/lg.js +8 -0
  247. package/locale-data/lij.d.ts +1 -0
  248. package/locale-data/lij.js +9 -0
  249. package/locale-data/lkt.d.ts +1 -0
  250. package/locale-data/lkt.js +7 -0
  251. package/locale-data/ln.d.ts +1 -0
  252. package/locale-data/ln.js +8 -0
  253. package/locale-data/lo.d.ts +1 -0
  254. package/locale-data/lo.js +8 -0
  255. package/locale-data/lt.d.ts +1 -0
  256. package/locale-data/lt.js +12 -0
  257. package/locale-data/lv.d.ts +1 -0
  258. package/locale-data/lv.js +11 -0
  259. package/locale-data/mas.d.ts +1 -0
  260. package/locale-data/mas.js +8 -0
  261. package/locale-data/mg.d.ts +1 -0
  262. package/locale-data/mg.js +8 -0
  263. package/locale-data/mgo.d.ts +1 -0
  264. package/locale-data/mgo.js +8 -0
  265. package/locale-data/mk.d.ts +1 -0
  266. package/locale-data/mk.js +12 -0
  267. package/locale-data/ml.d.ts +1 -0
  268. package/locale-data/ml.js +8 -0
  269. package/locale-data/mn.d.ts +1 -0
  270. package/locale-data/mn.js +8 -0
  271. package/locale-data/mo.d.ts +1 -0
  272. package/locale-data/mo.js +11 -0
  273. package/locale-data/mr.d.ts +1 -0
  274. package/locale-data/mr.js +11 -0
  275. package/locale-data/ms.d.ts +1 -0
  276. package/locale-data/ms.js +8 -0
  277. package/locale-data/mt.d.ts +1 -0
  278. package/locale-data/mt.js +12 -0
  279. package/locale-data/my.d.ts +1 -0
  280. package/locale-data/my.js +7 -0
  281. package/locale-data/nah.d.ts +1 -0
  282. package/locale-data/nah.js +8 -0
  283. package/locale-data/naq.d.ts +1 -0
  284. package/locale-data/naq.js +10 -0
  285. package/locale-data/nb.d.ts +1 -0
  286. package/locale-data/nb.js +8 -0
  287. package/locale-data/nd.d.ts +1 -0
  288. package/locale-data/nd.js +8 -0
  289. package/locale-data/ne.d.ts +1 -0
  290. package/locale-data/ne.js +9 -0
  291. package/locale-data/nl.d.ts +1 -0
  292. package/locale-data/nl.js +9 -0
  293. package/locale-data/nn.d.ts +1 -0
  294. package/locale-data/nn.js +8 -0
  295. package/locale-data/nnh.d.ts +1 -0
  296. package/locale-data/nnh.js +8 -0
  297. package/locale-data/no.d.ts +1 -0
  298. package/locale-data/no.js +8 -0
  299. package/locale-data/nqo.d.ts +1 -0
  300. package/locale-data/nqo.js +7 -0
  301. package/locale-data/nr.d.ts +1 -0
  302. package/locale-data/nr.js +8 -0
  303. package/locale-data/nso.d.ts +1 -0
  304. package/locale-data/nso.js +8 -0
  305. package/locale-data/ny.d.ts +1 -0
  306. package/locale-data/ny.js +8 -0
  307. package/locale-data/nyn.d.ts +1 -0
  308. package/locale-data/nyn.js +8 -0
  309. package/locale-data/om.d.ts +1 -0
  310. package/locale-data/om.js +8 -0
  311. package/locale-data/or.d.ts +1 -0
  312. package/locale-data/or.js +13 -0
  313. package/locale-data/os.d.ts +1 -0
  314. package/locale-data/os.js +8 -0
  315. package/locale-data/osa.d.ts +1 -0
  316. package/locale-data/osa.js +7 -0
  317. package/locale-data/pa.d.ts +1 -0
  318. package/locale-data/pa.js +8 -0
  319. package/locale-data/pap.d.ts +1 -0
  320. package/locale-data/pap.js +8 -0
  321. package/locale-data/pcm.d.ts +1 -0
  322. package/locale-data/pcm.js +8 -0
  323. package/locale-data/pl.d.ts +1 -0
  324. package/locale-data/pl.js +12 -0
  325. package/locale-data/prg.d.ts +1 -0
  326. package/locale-data/prg.js +11 -0
  327. package/locale-data/ps.d.ts +1 -0
  328. package/locale-data/ps.js +8 -0
  329. package/locale-data/pt-PT.d.ts +1 -0
  330. package/locale-data/pt-PT.js +11 -0
  331. package/locale-data/pt.d.ts +1 -0
  332. package/locale-data/pt.js +11 -0
  333. package/locale-data/rm.d.ts +1 -0
  334. package/locale-data/rm.js +8 -0
  335. package/locale-data/ro.d.ts +1 -0
  336. package/locale-data/ro.js +11 -0
  337. package/locale-data/rof.d.ts +1 -0
  338. package/locale-data/rof.js +8 -0
  339. package/locale-data/ru.d.ts +1 -0
  340. package/locale-data/ru.js +12 -0
  341. package/locale-data/rwk.d.ts +1 -0
  342. package/locale-data/rwk.js +8 -0
  343. package/locale-data/sah.d.ts +1 -0
  344. package/locale-data/sah.js +7 -0
  345. package/locale-data/saq.d.ts +1 -0
  346. package/locale-data/saq.js +8 -0
  347. package/locale-data/sat.d.ts +1 -0
  348. package/locale-data/sat.js +10 -0
  349. package/locale-data/sc.d.ts +1 -0
  350. package/locale-data/sc.js +9 -0
  351. package/locale-data/scn.d.ts +1 -0
  352. package/locale-data/scn.js +9 -0
  353. package/locale-data/sd.d.ts +1 -0
  354. package/locale-data/sd.js +8 -0
  355. package/locale-data/sdh.d.ts +1 -0
  356. package/locale-data/sdh.js +8 -0
  357. package/locale-data/se.d.ts +1 -0
  358. package/locale-data/se.js +10 -0
  359. package/locale-data/seh.d.ts +1 -0
  360. package/locale-data/seh.js +8 -0
  361. package/locale-data/ses.d.ts +1 -0
  362. package/locale-data/ses.js +7 -0
  363. package/locale-data/sg.d.ts +1 -0
  364. package/locale-data/sg.js +7 -0
  365. package/locale-data/sh.d.ts +1 -0
  366. package/locale-data/sh.js +11 -0
  367. package/locale-data/shi.d.ts +1 -0
  368. package/locale-data/shi.js +11 -0
  369. package/locale-data/si.d.ts +1 -0
  370. package/locale-data/si.js +9 -0
  371. package/locale-data/sk.d.ts +1 -0
  372. package/locale-data/sk.js +12 -0
  373. package/locale-data/sl.d.ts +1 -0
  374. package/locale-data/sl.js +12 -0
  375. package/locale-data/sma.d.ts +1 -0
  376. package/locale-data/sma.js +10 -0
  377. package/locale-data/smi.d.ts +1 -0
  378. package/locale-data/smi.js +10 -0
  379. package/locale-data/smj.d.ts +1 -0
  380. package/locale-data/smj.js +10 -0
  381. package/locale-data/smn.d.ts +1 -0
  382. package/locale-data/smn.js +10 -0
  383. package/locale-data/sms.d.ts +1 -0
  384. package/locale-data/sms.js +10 -0
  385. package/locale-data/sn.d.ts +1 -0
  386. package/locale-data/sn.js +8 -0
  387. package/locale-data/so.d.ts +1 -0
  388. package/locale-data/so.js +8 -0
  389. package/locale-data/sq.d.ts +1 -0
  390. package/locale-data/sq.js +11 -0
  391. package/locale-data/sr.d.ts +1 -0
  392. package/locale-data/sr.js +11 -0
  393. package/locale-data/ss.d.ts +1 -0
  394. package/locale-data/ss.js +8 -0
  395. package/locale-data/ssy.d.ts +1 -0
  396. package/locale-data/ssy.js +8 -0
  397. package/locale-data/st.d.ts +1 -0
  398. package/locale-data/st.js +8 -0
  399. package/locale-data/su.d.ts +1 -0
  400. package/locale-data/su.js +7 -0
  401. package/locale-data/sv.d.ts +1 -0
  402. package/locale-data/sv.js +9 -0
  403. package/locale-data/sw.d.ts +1 -0
  404. package/locale-data/sw.js +9 -0
  405. package/locale-data/syr.d.ts +1 -0
  406. package/locale-data/syr.js +8 -0
  407. package/locale-data/ta.d.ts +1 -0
  408. package/locale-data/ta.js +8 -0
  409. package/locale-data/te.d.ts +1 -0
  410. package/locale-data/te.js +8 -0
  411. package/locale-data/teo.d.ts +1 -0
  412. package/locale-data/teo.js +8 -0
  413. package/locale-data/th.d.ts +1 -0
  414. package/locale-data/th.js +7 -0
  415. package/locale-data/ti.d.ts +1 -0
  416. package/locale-data/ti.js +8 -0
  417. package/locale-data/tig.d.ts +1 -0
  418. package/locale-data/tig.js +8 -0
  419. package/locale-data/tk.d.ts +1 -0
  420. package/locale-data/tk.js +9 -0
  421. package/locale-data/tl.d.ts +1 -0
  422. package/locale-data/tl.js +9 -0
  423. package/locale-data/tn.d.ts +1 -0
  424. package/locale-data/tn.js +8 -0
  425. package/locale-data/to.d.ts +1 -0
  426. package/locale-data/to.js +7 -0
  427. package/locale-data/tpi.d.ts +1 -0
  428. package/locale-data/tpi.js +7 -0
  429. package/locale-data/tr.d.ts +1 -0
  430. package/locale-data/tr.js +8 -0
  431. package/locale-data/ts.d.ts +1 -0
  432. package/locale-data/ts.js +8 -0
  433. package/locale-data/tzm.d.ts +1 -0
  434. package/locale-data/tzm.js +9 -0
  435. package/locale-data/ug.d.ts +1 -0
  436. package/locale-data/ug.js +8 -0
  437. package/locale-data/uk.d.ts +1 -0
  438. package/locale-data/uk.js +12 -0
  439. package/locale-data/und.d.ts +1 -0
  440. package/locale-data/und.js +7 -0
  441. package/locale-data/ur.d.ts +1 -0
  442. package/locale-data/ur.js +9 -0
  443. package/locale-data/uz.d.ts +1 -0
  444. package/locale-data/uz.js +8 -0
  445. package/locale-data/ve.d.ts +1 -0
  446. package/locale-data/ve.js +8 -0
  447. package/locale-data/vi.d.ts +1 -0
  448. package/locale-data/vi.js +8 -0
  449. package/locale-data/vo.d.ts +1 -0
  450. package/locale-data/vo.js +8 -0
  451. package/locale-data/vun.d.ts +1 -0
  452. package/locale-data/vun.js +8 -0
  453. package/locale-data/wa.d.ts +1 -0
  454. package/locale-data/wa.js +8 -0
  455. package/locale-data/wae.d.ts +1 -0
  456. package/locale-data/wae.js +8 -0
  457. package/locale-data/wo.d.ts +1 -0
  458. package/locale-data/wo.js +7 -0
  459. package/locale-data/xh.d.ts +1 -0
  460. package/locale-data/xh.js +8 -0
  461. package/locale-data/xog.d.ts +1 -0
  462. package/locale-data/xog.js +8 -0
  463. package/locale-data/yi.d.ts +1 -0
  464. package/locale-data/yi.js +9 -0
  465. package/locale-data/yo.d.ts +1 -0
  466. package/locale-data/yo.js +7 -0
  467. package/locale-data/yue.d.ts +1 -0
  468. package/locale-data/yue.js +7 -0
  469. package/locale-data/zh.d.ts +1 -0
  470. package/locale-data/zh.js +7 -0
  471. package/locale-data/zu.d.ts +1 -0
  472. package/locale-data/zu.js +8 -0
  473. package/package.json +5 -5
  474. package/polyfill-force.d.ts +2 -0
  475. package/polyfill-force.d.ts.map +1 -0
  476. package/polyfill-force.js +9 -0
  477. package/polyfill.d.ts +2 -0
  478. package/polyfill.d.ts.map +1 -0
  479. package/polyfill.iife.js +901 -0
  480. package/polyfill.js +12 -0
  481. package/should-polyfill.d.ts +2 -0
  482. package/should-polyfill.d.ts.map +1 -0
  483. package/should-polyfill.js +22 -0
  484. package/supported-locales.generated.d.ts +2 -0
  485. package/supported-locales.generated.d.ts.map +1 -0
  486. package/supported-locales.generated.js +4 -0
  487. package/BUILD +0 -465
  488. package/CHANGELOG.md +0 -659
  489. package/abstract/GetOperands.ts +0 -75
  490. package/abstract/InitializePluralRules.ts +0 -61
  491. package/abstract/ResolvePlural.ts +0 -47
  492. package/get_internal_slots.ts +0 -14
  493. package/index.ts +0 -174
  494. package/polyfill-force.ts +0 -8
  495. package/polyfill.ts +0 -11
  496. package/scripts/cldr-raw.ts +0 -70
  497. package/scripts/cldr.ts +0 -29
  498. package/scripts/test262-main-gen.ts +0 -28
  499. package/should-polyfill.ts +0 -21
  500. package/supported-locales.generated.ts +0 -1
  501. package/test262-main.ts +0 -1071
  502. package/tests/index.test.ts +0 -57
  503. package/tests/locale-data/zh.ts +0 -6
  504. package/tests/supported-locales-of.test.ts +0 -23
  505. package/tsconfig.json +0 -5
@@ -0,0 +1,901 @@
1
+ (() => {
2
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/tslib@2.4.0/node_modules/tslib/tslib.es6.js
3
+ var extendStatics = function(d, b) {
4
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
5
+ d2.__proto__ = b2;
6
+ } || function(d2, b2) {
7
+ for (var p in b2)
8
+ if (Object.prototype.hasOwnProperty.call(b2, p))
9
+ d2[p] = b2[p];
10
+ };
11
+ return extendStatics(d, b);
12
+ };
13
+ function __extends(d, b) {
14
+ if (typeof b !== "function" && b !== null)
15
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
16
+ extendStatics(d, b);
17
+ function __() {
18
+ this.constructor = d;
19
+ }
20
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
21
+ }
22
+ function __spreadArray(to, from, pack) {
23
+ if (pack || arguments.length === 2)
24
+ for (var i = 0, l = from.length, ar; i < l; i++) {
25
+ if (ar || !(i in from)) {
26
+ if (!ar)
27
+ ar = Array.prototype.slice.call(from, 0, i);
28
+ ar[i] = from[i];
29
+ }
30
+ }
31
+ return to.concat(ar || Array.prototype.slice.call(from));
32
+ }
33
+
34
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/CanonicalizeLocaleList.js
35
+ function CanonicalizeLocaleList(locales) {
36
+ return Intl.getCanonicalLocales(locales);
37
+ }
38
+
39
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/262.js
40
+ function ToString(o) {
41
+ if (typeof o === "symbol") {
42
+ throw TypeError("Cannot convert a Symbol value to a string");
43
+ }
44
+ return String(o);
45
+ }
46
+ function ToNumber(val) {
47
+ if (val === void 0) {
48
+ return NaN;
49
+ }
50
+ if (val === null) {
51
+ return 0;
52
+ }
53
+ if (typeof val === "boolean") {
54
+ return val ? 1 : 0;
55
+ }
56
+ if (typeof val === "number") {
57
+ return val;
58
+ }
59
+ if (typeof val === "symbol" || typeof val === "bigint") {
60
+ throw new TypeError("Cannot convert symbol/bigint to number");
61
+ }
62
+ return Number(val);
63
+ }
64
+ function ToObject(arg) {
65
+ if (arg == null) {
66
+ throw new TypeError("undefined/null cannot be converted to object");
67
+ }
68
+ return Object(arg);
69
+ }
70
+ function SameValue(x, y) {
71
+ if (Object.is) {
72
+ return Object.is(x, y);
73
+ }
74
+ if (x === y) {
75
+ return x !== 0 || 1 / x === 1 / y;
76
+ }
77
+ return x !== x && y !== y;
78
+ }
79
+ function Type(x) {
80
+ if (x === null) {
81
+ return "Null";
82
+ }
83
+ if (typeof x === "undefined") {
84
+ return "Undefined";
85
+ }
86
+ if (typeof x === "function" || typeof x === "object") {
87
+ return "Object";
88
+ }
89
+ if (typeof x === "number") {
90
+ return "Number";
91
+ }
92
+ if (typeof x === "boolean") {
93
+ return "Boolean";
94
+ }
95
+ if (typeof x === "string") {
96
+ return "String";
97
+ }
98
+ if (typeof x === "symbol") {
99
+ return "Symbol";
100
+ }
101
+ if (typeof x === "bigint") {
102
+ return "BigInt";
103
+ }
104
+ }
105
+ var MINUTES_PER_HOUR = 60;
106
+ var SECONDS_PER_MINUTE = 60;
107
+ var MS_PER_SECOND = 1e3;
108
+ var MS_PER_MINUTE = MS_PER_SECOND * SECONDS_PER_MINUTE;
109
+ var MS_PER_HOUR = MS_PER_MINUTE * MINUTES_PER_HOUR;
110
+
111
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/CoerceOptionsToObject.js
112
+ function CoerceOptionsToObject(options) {
113
+ if (typeof options === "undefined") {
114
+ return /* @__PURE__ */ Object.create(null);
115
+ }
116
+ return ToObject(options);
117
+ }
118
+
119
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/DefaultNumberOption.js
120
+ function DefaultNumberOption(val, min, max, fallback) {
121
+ if (val !== void 0) {
122
+ val = Number(val);
123
+ if (isNaN(val) || val < min || val > max) {
124
+ throw new RangeError("".concat(val, " is outside of range [").concat(min, ", ").concat(max, "]"));
125
+ }
126
+ return Math.floor(val);
127
+ }
128
+ return fallback;
129
+ }
130
+
131
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/GetNumberOption.js
132
+ function GetNumberOption(options, property, minimum, maximum, fallback) {
133
+ var val = options[property];
134
+ return DefaultNumberOption(val, minimum, maximum, fallback);
135
+ }
136
+
137
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/GetOption.js
138
+ function GetOption(opts, prop, type, values, fallback) {
139
+ if (typeof opts !== "object") {
140
+ throw new TypeError("Options must be an object");
141
+ }
142
+ var value = opts[prop];
143
+ if (value !== void 0) {
144
+ if (type !== "boolean" && type !== "string") {
145
+ throw new TypeError("invalid type");
146
+ }
147
+ if (type === "boolean") {
148
+ value = Boolean(value);
149
+ }
150
+ if (type === "string") {
151
+ value = ToString(value);
152
+ }
153
+ if (values !== void 0 && !values.filter(function(val) {
154
+ return val == value;
155
+ }).length) {
156
+ throw new RangeError("".concat(value, " is not within ").concat(values.join(", ")));
157
+ }
158
+ return value;
159
+ }
160
+ return fallback;
161
+ }
162
+
163
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js
164
+ var SANCTIONED_UNITS = [
165
+ "angle-degree",
166
+ "area-acre",
167
+ "area-hectare",
168
+ "concentr-percent",
169
+ "digital-bit",
170
+ "digital-byte",
171
+ "digital-gigabit",
172
+ "digital-gigabyte",
173
+ "digital-kilobit",
174
+ "digital-kilobyte",
175
+ "digital-megabit",
176
+ "digital-megabyte",
177
+ "digital-petabyte",
178
+ "digital-terabit",
179
+ "digital-terabyte",
180
+ "duration-day",
181
+ "duration-hour",
182
+ "duration-millisecond",
183
+ "duration-minute",
184
+ "duration-month",
185
+ "duration-second",
186
+ "duration-week",
187
+ "duration-year",
188
+ "length-centimeter",
189
+ "length-foot",
190
+ "length-inch",
191
+ "length-kilometer",
192
+ "length-meter",
193
+ "length-mile-scandinavian",
194
+ "length-mile",
195
+ "length-millimeter",
196
+ "length-yard",
197
+ "mass-gram",
198
+ "mass-kilogram",
199
+ "mass-ounce",
200
+ "mass-pound",
201
+ "mass-stone",
202
+ "temperature-celsius",
203
+ "temperature-fahrenheit",
204
+ "volume-fluid-ounce",
205
+ "volume-gallon",
206
+ "volume-liter",
207
+ "volume-milliliter"
208
+ ];
209
+ function removeUnitNamespace(unit) {
210
+ return unit.slice(unit.indexOf("-") + 1);
211
+ }
212
+ var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
213
+
214
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/utils.js
215
+ function getMagnitude(x) {
216
+ return Math.floor(Math.log(x) * Math.LOG10E);
217
+ }
218
+ function repeat(s, times) {
219
+ if (typeof s.repeat === "function") {
220
+ return s.repeat(times);
221
+ }
222
+ var arr = new Array(times);
223
+ for (var i = 0; i < arr.length; i++) {
224
+ arr[i] = s;
225
+ }
226
+ return arr.join("");
227
+ }
228
+ function invariant(condition, message, Err) {
229
+ if (Err === void 0) {
230
+ Err = Error;
231
+ }
232
+ if (!condition) {
233
+ throw new Err(message);
234
+ }
235
+ }
236
+
237
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/ToRawPrecision.js
238
+ function ToRawPrecision(x, minPrecision, maxPrecision) {
239
+ var p = maxPrecision;
240
+ var m;
241
+ var e;
242
+ var xFinal;
243
+ if (x === 0) {
244
+ m = repeat("0", p);
245
+ e = 0;
246
+ xFinal = 0;
247
+ } else {
248
+ var xToString = x.toString();
249
+ var xToStringExponentIndex = xToString.indexOf("e");
250
+ var _a = xToString.split("e"), xToStringMantissa = _a[0], xToStringExponent = _a[1];
251
+ var xToStringMantissaWithoutDecimalPoint = xToStringMantissa.replace(".", "");
252
+ if (xToStringExponentIndex >= 0 && xToStringMantissaWithoutDecimalPoint.length <= p) {
253
+ e = +xToStringExponent;
254
+ m = xToStringMantissaWithoutDecimalPoint + repeat("0", p - xToStringMantissaWithoutDecimalPoint.length);
255
+ xFinal = x;
256
+ } else {
257
+ e = getMagnitude(x);
258
+ var decimalPlaceOffset = e - p + 1;
259
+ var n = Math.round(adjustDecimalPlace(x, decimalPlaceOffset));
260
+ if (adjustDecimalPlace(n, p - 1) >= 10) {
261
+ e = e + 1;
262
+ n = Math.floor(n / 10);
263
+ }
264
+ m = n.toString();
265
+ xFinal = adjustDecimalPlace(n, p - 1 - e);
266
+ }
267
+ }
268
+ var int;
269
+ if (e >= p - 1) {
270
+ m = m + repeat("0", e - p + 1);
271
+ int = e + 1;
272
+ } else if (e >= 0) {
273
+ m = "".concat(m.slice(0, e + 1), ".").concat(m.slice(e + 1));
274
+ int = e + 1;
275
+ } else {
276
+ m = "0.".concat(repeat("0", -e - 1)).concat(m);
277
+ int = 1;
278
+ }
279
+ if (m.indexOf(".") >= 0 && maxPrecision > minPrecision) {
280
+ var cut = maxPrecision - minPrecision;
281
+ while (cut > 0 && m[m.length - 1] === "0") {
282
+ m = m.slice(0, -1);
283
+ cut--;
284
+ }
285
+ if (m[m.length - 1] === ".") {
286
+ m = m.slice(0, -1);
287
+ }
288
+ }
289
+ return { formattedString: m, roundedNumber: xFinal, integerDigitsCount: int };
290
+ function adjustDecimalPlace(x2, magnitude) {
291
+ return magnitude < 0 ? x2 * Math.pow(10, -magnitude) : x2 / Math.pow(10, magnitude);
292
+ }
293
+ }
294
+
295
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/ToRawFixed.js
296
+ function ToRawFixed(x, minFraction, maxFraction) {
297
+ var f = maxFraction;
298
+ var n = Math.round(x * Math.pow(10, f));
299
+ var xFinal = n / Math.pow(10, f);
300
+ var m;
301
+ if (n < 1e21) {
302
+ m = n.toString();
303
+ } else {
304
+ m = n.toString();
305
+ var _a = m.split("e"), mantissa = _a[0], exponent = _a[1];
306
+ m = mantissa.replace(".", "");
307
+ m = m + repeat("0", Math.max(+exponent - m.length + 1, 0));
308
+ }
309
+ var int;
310
+ if (f !== 0) {
311
+ var k = m.length;
312
+ if (k <= f) {
313
+ var z = repeat("0", f + 1 - k);
314
+ m = z + m;
315
+ k = f + 1;
316
+ }
317
+ var a = m.slice(0, k - f);
318
+ var b = m.slice(k - f);
319
+ m = "".concat(a, ".").concat(b);
320
+ int = a.length;
321
+ } else {
322
+ int = m.length;
323
+ }
324
+ var cut = maxFraction - minFraction;
325
+ while (cut > 0 && m[m.length - 1] === "0") {
326
+ m = m.slice(0, -1);
327
+ cut--;
328
+ }
329
+ if (m[m.length - 1] === ".") {
330
+ m = m.slice(0, -1);
331
+ }
332
+ return { formattedString: m, roundedNumber: xFinal, integerDigitsCount: int };
333
+ }
334
+
335
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/FormatNumericToString.js
336
+ function FormatNumericToString(intlObject, x) {
337
+ var isNegative = x < 0 || SameValue(x, -0);
338
+ if (isNegative) {
339
+ x = -x;
340
+ }
341
+ var result;
342
+ var rourndingType = intlObject.roundingType;
343
+ switch (rourndingType) {
344
+ case "significantDigits":
345
+ result = ToRawPrecision(x, intlObject.minimumSignificantDigits, intlObject.maximumSignificantDigits);
346
+ break;
347
+ case "fractionDigits":
348
+ result = ToRawFixed(x, intlObject.minimumFractionDigits, intlObject.maximumFractionDigits);
349
+ break;
350
+ default:
351
+ result = ToRawPrecision(x, 1, 2);
352
+ if (result.integerDigitsCount > 1) {
353
+ result = ToRawFixed(x, 0, 0);
354
+ }
355
+ break;
356
+ }
357
+ x = result.roundedNumber;
358
+ var string = result.formattedString;
359
+ var int = result.integerDigitsCount;
360
+ var minInteger = intlObject.minimumIntegerDigits;
361
+ if (int < minInteger) {
362
+ var forwardZeros = repeat("0", minInteger - int);
363
+ string = forwardZeros + string;
364
+ }
365
+ if (isNegative) {
366
+ x = -x;
367
+ }
368
+ return { roundedNumber: x, formattedString: string };
369
+ }
370
+
371
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/regex.generated.js
372
+ var S_UNICODE_REGEX = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/;
373
+
374
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/format_to_parts.js
375
+ var CARET_S_UNICODE_REGEX = new RegExp("^".concat(S_UNICODE_REGEX.source));
376
+ var S_DOLLAR_UNICODE_REGEX = new RegExp("".concat(S_UNICODE_REGEX.source, "$"));
377
+
378
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/CanonicalizeLocaleList.js
379
+ function CanonicalizeLocaleList2(locales) {
380
+ return Intl.getCanonicalLocales(locales);
381
+ }
382
+
383
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/utils.js
384
+ var UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;
385
+ function invariant2(condition, message, Err) {
386
+ if (Err === void 0) {
387
+ Err = Error;
388
+ }
389
+ if (!condition) {
390
+ throw new Err(message);
391
+ }
392
+ }
393
+
394
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/BestAvailableLocale.js
395
+ function BestAvailableLocale(availableLocales, locale) {
396
+ var candidate = locale;
397
+ while (true) {
398
+ if (availableLocales.has(candidate)) {
399
+ return candidate;
400
+ }
401
+ var pos = candidate.lastIndexOf("-");
402
+ if (!~pos) {
403
+ return void 0;
404
+ }
405
+ if (pos >= 2 && candidate[pos - 2] === "-") {
406
+ pos -= 2;
407
+ }
408
+ candidate = candidate.slice(0, pos);
409
+ }
410
+ }
411
+
412
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/LookupMatcher.js
413
+ function LookupMatcher(availableLocales, requestedLocales, getDefaultLocale) {
414
+ var result = { locale: "" };
415
+ for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
416
+ var locale = requestedLocales_1[_i];
417
+ var noExtensionLocale = locale.replace(UNICODE_EXTENSION_SEQUENCE_REGEX, "");
418
+ var availableLocale = BestAvailableLocale(availableLocales, noExtensionLocale);
419
+ if (availableLocale) {
420
+ result.locale = availableLocale;
421
+ if (locale !== noExtensionLocale) {
422
+ result.extension = locale.slice(noExtensionLocale.length + 1, locale.length);
423
+ }
424
+ return result;
425
+ }
426
+ }
427
+ result.locale = getDefaultLocale();
428
+ return result;
429
+ }
430
+
431
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/BestFitMatcher.js
432
+ function BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale) {
433
+ var minimizedAvailableLocaleMap = {};
434
+ var availableLocaleMap = {};
435
+ var canonicalizedLocaleMap = {};
436
+ var minimizedAvailableLocales = /* @__PURE__ */ new Set();
437
+ availableLocales.forEach(function(locale2) {
438
+ var minimizedLocale = new Intl.Locale(locale2).minimize().toString();
439
+ var canonicalizedLocale = Intl.getCanonicalLocales(locale2)[0] || locale2;
440
+ minimizedAvailableLocaleMap[minimizedLocale] = locale2;
441
+ availableLocaleMap[locale2] = locale2;
442
+ canonicalizedLocaleMap[canonicalizedLocale] = locale2;
443
+ minimizedAvailableLocales.add(minimizedLocale);
444
+ minimizedAvailableLocales.add(locale2);
445
+ minimizedAvailableLocales.add(canonicalizedLocale);
446
+ });
447
+ var foundLocale;
448
+ for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
449
+ var l = requestedLocales_1[_i];
450
+ if (foundLocale) {
451
+ break;
452
+ }
453
+ var noExtensionLocale = l.replace(UNICODE_EXTENSION_SEQUENCE_REGEX, "");
454
+ if (availableLocales.has(noExtensionLocale)) {
455
+ foundLocale = noExtensionLocale;
456
+ break;
457
+ }
458
+ if (minimizedAvailableLocales.has(noExtensionLocale)) {
459
+ foundLocale = noExtensionLocale;
460
+ break;
461
+ }
462
+ var locale = new Intl.Locale(noExtensionLocale);
463
+ var maximizedRequestedLocale = locale.maximize().toString();
464
+ var minimizedRequestedLocale = locale.minimize().toString();
465
+ if (minimizedAvailableLocales.has(minimizedRequestedLocale)) {
466
+ foundLocale = minimizedRequestedLocale;
467
+ break;
468
+ }
469
+ foundLocale = BestAvailableLocale(minimizedAvailableLocales, maximizedRequestedLocale);
470
+ }
471
+ if (!foundLocale) {
472
+ return { locale: getDefaultLocale() };
473
+ }
474
+ return {
475
+ locale: availableLocaleMap[foundLocale] || canonicalizedLocaleMap[foundLocale] || minimizedAvailableLocaleMap[foundLocale] || foundLocale
476
+ };
477
+ }
478
+
479
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/UnicodeExtensionValue.js
480
+ function UnicodeExtensionValue(extension, key) {
481
+ invariant2(key.length === 2, "key must have 2 elements");
482
+ var size = extension.length;
483
+ var searchValue = "-".concat(key, "-");
484
+ var pos = extension.indexOf(searchValue);
485
+ if (pos !== -1) {
486
+ var start = pos + 4;
487
+ var end = start;
488
+ var k = start;
489
+ var done = false;
490
+ while (!done) {
491
+ var e = extension.indexOf("-", k);
492
+ var len = void 0;
493
+ if (e === -1) {
494
+ len = size - k;
495
+ } else {
496
+ len = e - k;
497
+ }
498
+ if (len === 2) {
499
+ done = true;
500
+ } else if (e === -1) {
501
+ end = size;
502
+ done = true;
503
+ } else {
504
+ end = e;
505
+ k = e + 1;
506
+ }
507
+ }
508
+ return extension.slice(start, end);
509
+ }
510
+ searchValue = "-".concat(key);
511
+ pos = extension.indexOf(searchValue);
512
+ if (pos !== -1 && pos + 3 === size) {
513
+ return "";
514
+ }
515
+ return void 0;
516
+ }
517
+
518
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/ResolveLocale.js
519
+ function ResolveLocale(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData, getDefaultLocale) {
520
+ var matcher = options.localeMatcher;
521
+ var r;
522
+ if (matcher === "lookup") {
523
+ r = LookupMatcher(availableLocales, requestedLocales, getDefaultLocale);
524
+ } else {
525
+ r = BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale);
526
+ }
527
+ var foundLocale = r.locale;
528
+ var result = { locale: "", dataLocale: foundLocale };
529
+ var supportedExtension = "-u";
530
+ for (var _i = 0, relevantExtensionKeys_1 = relevantExtensionKeys; _i < relevantExtensionKeys_1.length; _i++) {
531
+ var key = relevantExtensionKeys_1[_i];
532
+ invariant2(foundLocale in localeData, "Missing locale data for ".concat(foundLocale));
533
+ var foundLocaleData = localeData[foundLocale];
534
+ invariant2(typeof foundLocaleData === "object" && foundLocaleData !== null, "locale data ".concat(key, " must be an object"));
535
+ var keyLocaleData = foundLocaleData[key];
536
+ invariant2(Array.isArray(keyLocaleData), "keyLocaleData for ".concat(key, " must be an array"));
537
+ var value = keyLocaleData[0];
538
+ invariant2(typeof value === "string" || value === null, "value must be string or null but got ".concat(typeof value, " in key ").concat(key));
539
+ var supportedExtensionAddition = "";
540
+ if (r.extension) {
541
+ var requestedValue = UnicodeExtensionValue(r.extension, key);
542
+ if (requestedValue !== void 0) {
543
+ if (requestedValue !== "") {
544
+ if (~keyLocaleData.indexOf(requestedValue)) {
545
+ value = requestedValue;
546
+ supportedExtensionAddition = "-".concat(key, "-").concat(value);
547
+ }
548
+ } else if (~requestedValue.indexOf("true")) {
549
+ value = "true";
550
+ supportedExtensionAddition = "-".concat(key);
551
+ }
552
+ }
553
+ }
554
+ if (key in options) {
555
+ var optionsValue = options[key];
556
+ invariant2(typeof optionsValue === "string" || typeof optionsValue === "undefined" || optionsValue === null, "optionsValue must be String, Undefined or Null");
557
+ if (~keyLocaleData.indexOf(optionsValue)) {
558
+ if (optionsValue !== value) {
559
+ value = optionsValue;
560
+ supportedExtensionAddition = "";
561
+ }
562
+ }
563
+ }
564
+ result[key] = value;
565
+ supportedExtension += supportedExtensionAddition;
566
+ }
567
+ if (supportedExtension.length > 2) {
568
+ var privateIndex = foundLocale.indexOf("-x-");
569
+ if (privateIndex === -1) {
570
+ foundLocale = foundLocale + supportedExtension;
571
+ } else {
572
+ var preExtension = foundLocale.slice(0, privateIndex);
573
+ var postExtension = foundLocale.slice(privateIndex, foundLocale.length);
574
+ foundLocale = preExtension + supportedExtension + postExtension;
575
+ }
576
+ foundLocale = Intl.getCanonicalLocales(foundLocale)[0];
577
+ }
578
+ result.locale = foundLocale;
579
+ return result;
580
+ }
581
+
582
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/LookupSupportedLocales.js
583
+ function LookupSupportedLocales(availableLocales, requestedLocales) {
584
+ var subset = [];
585
+ for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
586
+ var locale = requestedLocales_1[_i];
587
+ var noExtensionLocale = locale.replace(UNICODE_EXTENSION_SEQUENCE_REGEX, "");
588
+ var availableLocale = BestAvailableLocale(availableLocales, noExtensionLocale);
589
+ if (availableLocale) {
590
+ subset.push(availableLocale);
591
+ }
592
+ }
593
+ return subset;
594
+ }
595
+
596
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/index.js
597
+ function match(requestedLocales, availableLocales, defaultLocale, opts) {
598
+ var locales = availableLocales.reduce(function(all, l) {
599
+ all.add(l);
600
+ return all;
601
+ }, /* @__PURE__ */ new Set());
602
+ return ResolveLocale(locales, CanonicalizeLocaleList2(requestedLocales), {
603
+ localeMatcher: (opts === null || opts === void 0 ? void 0 : opts.algorithm) || "best fit"
604
+ }, [], {}, function() {
605
+ return defaultLocale;
606
+ }).locale;
607
+ }
608
+
609
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/SetNumberFormatDigitOptions.js
610
+ function SetNumberFormatDigitOptions(internalSlots, opts, mnfdDefault, mxfdDefault, notation) {
611
+ var mnid = GetNumberOption(opts, "minimumIntegerDigits", 1, 21, 1);
612
+ var mnfd = opts.minimumFractionDigits;
613
+ var mxfd = opts.maximumFractionDigits;
614
+ var mnsd = opts.minimumSignificantDigits;
615
+ var mxsd = opts.maximumSignificantDigits;
616
+ internalSlots.minimumIntegerDigits = mnid;
617
+ if (mnsd !== void 0 || mxsd !== void 0) {
618
+ internalSlots.roundingType = "significantDigits";
619
+ mnsd = DefaultNumberOption(mnsd, 1, 21, 1);
620
+ mxsd = DefaultNumberOption(mxsd, mnsd, 21, 21);
621
+ internalSlots.minimumSignificantDigits = mnsd;
622
+ internalSlots.maximumSignificantDigits = mxsd;
623
+ } else if (mnfd !== void 0 || mxfd !== void 0) {
624
+ internalSlots.roundingType = "fractionDigits";
625
+ mnfd = DefaultNumberOption(mnfd, 0, 20, mnfdDefault);
626
+ var mxfdActualDefault = Math.max(mnfd, mxfdDefault);
627
+ mxfd = DefaultNumberOption(mxfd, mnfd, 20, mxfdActualDefault);
628
+ internalSlots.minimumFractionDigits = mnfd;
629
+ internalSlots.maximumFractionDigits = mxfd;
630
+ } else if (notation === "compact") {
631
+ internalSlots.roundingType = "compactRounding";
632
+ } else {
633
+ internalSlots.roundingType = "fractionDigits";
634
+ internalSlots.minimumFractionDigits = mnfdDefault;
635
+ internalSlots.maximumFractionDigits = mxfdDefault;
636
+ }
637
+ }
638
+
639
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/SupportedLocales.js
640
+ function SupportedLocales(availableLocales, requestedLocales, options) {
641
+ var matcher = "best fit";
642
+ if (options !== void 0) {
643
+ options = ToObject(options);
644
+ matcher = GetOption(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
645
+ }
646
+ if (matcher === "best fit") {
647
+ return LookupSupportedLocales(availableLocales, requestedLocales);
648
+ }
649
+ return LookupSupportedLocales(availableLocales, requestedLocales);
650
+ }
651
+
652
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/data.js
653
+ var MissingLocaleDataError = function(_super) {
654
+ __extends(MissingLocaleDataError2, _super);
655
+ function MissingLocaleDataError2() {
656
+ var _this = _super !== null && _super.apply(this, arguments) || this;
657
+ _this.type = "MISSING_LOCALE_DATA";
658
+ return _this;
659
+ }
660
+ return MissingLocaleDataError2;
661
+ }(Error);
662
+
663
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/types/date-time.js
664
+ var RangePatternType;
665
+ (function(RangePatternType2) {
666
+ RangePatternType2["startRange"] = "startRange";
667
+ RangePatternType2["shared"] = "shared";
668
+ RangePatternType2["endRange"] = "endRange";
669
+ })(RangePatternType || (RangePatternType = {}));
670
+
671
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/intl-pluralrules/lib/abstract/InitializePluralRules.js
672
+ function InitializePluralRules(pl, locales, options, _a) {
673
+ var availableLocales = _a.availableLocales, relevantExtensionKeys = _a.relevantExtensionKeys, localeData = _a.localeData, getDefaultLocale = _a.getDefaultLocale, getInternalSlots2 = _a.getInternalSlots;
674
+ var requestedLocales = CanonicalizeLocaleList(locales);
675
+ var opt = /* @__PURE__ */ Object.create(null);
676
+ var opts = CoerceOptionsToObject(options);
677
+ var internalSlots = getInternalSlots2(pl);
678
+ internalSlots.initializedPluralRules = true;
679
+ var matcher = GetOption(opts, "localeMatcher", "string", ["best fit", "lookup"], "best fit");
680
+ opt.localeMatcher = matcher;
681
+ internalSlots.type = GetOption(opts, "type", "string", ["cardinal", "ordinal"], "cardinal");
682
+ SetNumberFormatDigitOptions(internalSlots, opts, 0, 3, "standard");
683
+ var r = ResolveLocale(availableLocales, requestedLocales, opt, relevantExtensionKeys, localeData, getDefaultLocale);
684
+ internalSlots.locale = r.locale;
685
+ return pl;
686
+ }
687
+
688
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/intl-pluralrules/lib/abstract/GetOperands.js
689
+ function GetOperands(s) {
690
+ invariant(typeof s === "string", "GetOperands should have been called with a string");
691
+ var n = ToNumber(s);
692
+ invariant(isFinite(n), "n should be finite");
693
+ var dp = s.indexOf(".");
694
+ var iv;
695
+ var f;
696
+ var v;
697
+ var fv = "";
698
+ if (dp === -1) {
699
+ iv = n;
700
+ f = 0;
701
+ v = 0;
702
+ } else {
703
+ iv = s.slice(0, dp);
704
+ fv = s.slice(dp, s.length);
705
+ f = ToNumber(fv);
706
+ v = fv.length;
707
+ }
708
+ var i = Math.abs(ToNumber(iv));
709
+ var w;
710
+ var t;
711
+ if (f !== 0) {
712
+ var ft = fv.replace(/0+$/, "");
713
+ w = ft.length;
714
+ t = ToNumber(ft);
715
+ } else {
716
+ w = 0;
717
+ t = 0;
718
+ }
719
+ return {
720
+ Number: n,
721
+ IntegerDigits: i,
722
+ NumberOfFractionDigits: v,
723
+ NumberOfFractionDigitsWithoutTrailing: w,
724
+ FractionDigits: f,
725
+ FractionDigitsWithoutTrailing: t
726
+ };
727
+ }
728
+
729
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/intl-pluralrules/lib/abstract/ResolvePlural.js
730
+ function ResolvePlural(pl, n, _a) {
731
+ var getInternalSlots2 = _a.getInternalSlots, PluralRuleSelect2 = _a.PluralRuleSelect;
732
+ var internalSlots = getInternalSlots2(pl);
733
+ invariant(Type(internalSlots) === "Object", "pl has to be an object");
734
+ invariant("initializedPluralRules" in internalSlots, "pluralrules must be initialized");
735
+ invariant(Type(n) === "Number", "n must be a number");
736
+ if (!isFinite(n)) {
737
+ return "other";
738
+ }
739
+ var locale = internalSlots.locale, type = internalSlots.type;
740
+ var res = FormatNumericToString(internalSlots, n);
741
+ var s = res.formattedString;
742
+ var operands = GetOperands(s);
743
+ return PluralRuleSelect2(locale, type, n, operands);
744
+ }
745
+
746
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/intl-pluralrules/lib/get_internal_slots.js
747
+ var internalSlotMap = /* @__PURE__ */ new WeakMap();
748
+ function getInternalSlots(x) {
749
+ var internalSlots = internalSlotMap.get(x);
750
+ if (!internalSlots) {
751
+ internalSlots = /* @__PURE__ */ Object.create(null);
752
+ internalSlotMap.set(x, internalSlots);
753
+ }
754
+ return internalSlots;
755
+ }
756
+
757
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/intl-pluralrules/lib/index.js
758
+ function validateInstance(instance, method) {
759
+ if (!(instance instanceof PluralRules)) {
760
+ throw new TypeError("Method Intl.PluralRules.prototype.".concat(method, " called on incompatible receiver ").concat(String(instance)));
761
+ }
762
+ }
763
+ function PluralRuleSelect(locale, type, _n, _a) {
764
+ var IntegerDigits = _a.IntegerDigits, NumberOfFractionDigits = _a.NumberOfFractionDigits, FractionDigits = _a.FractionDigits;
765
+ return PluralRules.localeData[locale].fn(NumberOfFractionDigits ? "".concat(IntegerDigits, ".").concat(FractionDigits) : IntegerDigits, type === "ordinal");
766
+ }
767
+ var PluralRules = function() {
768
+ function PluralRules2(locales, options) {
769
+ var newTarget = this && this instanceof PluralRules2 ? this.constructor : void 0;
770
+ if (!newTarget) {
771
+ throw new TypeError("Intl.PluralRules must be called with 'new'");
772
+ }
773
+ return InitializePluralRules(this, locales, options, {
774
+ availableLocales: PluralRules2.availableLocales,
775
+ relevantExtensionKeys: PluralRules2.relevantExtensionKeys,
776
+ localeData: PluralRules2.localeData,
777
+ getDefaultLocale: PluralRules2.getDefaultLocale,
778
+ getInternalSlots
779
+ });
780
+ }
781
+ PluralRules2.prototype.resolvedOptions = function() {
782
+ validateInstance(this, "resolvedOptions");
783
+ var opts = /* @__PURE__ */ Object.create(null);
784
+ var internalSlots = getInternalSlots(this);
785
+ opts.locale = internalSlots.locale;
786
+ opts.type = internalSlots.type;
787
+ [
788
+ "minimumIntegerDigits",
789
+ "minimumFractionDigits",
790
+ "maximumFractionDigits",
791
+ "minimumSignificantDigits",
792
+ "maximumSignificantDigits"
793
+ ].forEach(function(field) {
794
+ var val = internalSlots[field];
795
+ if (val !== void 0) {
796
+ opts[field] = val;
797
+ }
798
+ });
799
+ opts.pluralCategories = __spreadArray([], PluralRules2.localeData[opts.locale].categories[opts.type], true);
800
+ return opts;
801
+ };
802
+ PluralRules2.prototype.select = function(val) {
803
+ var pr = this;
804
+ validateInstance(pr, "select");
805
+ var n = ToNumber(val);
806
+ return ResolvePlural(pr, n, { getInternalSlots, PluralRuleSelect });
807
+ };
808
+ PluralRules2.prototype.toString = function() {
809
+ return "[object Intl.PluralRules]";
810
+ };
811
+ PluralRules2.supportedLocalesOf = function(locales, options) {
812
+ return SupportedLocales(PluralRules2.availableLocales, CanonicalizeLocaleList(locales), options);
813
+ };
814
+ PluralRules2.__addLocaleData = function() {
815
+ var data = [];
816
+ for (var _i = 0; _i < arguments.length; _i++) {
817
+ data[_i] = arguments[_i];
818
+ }
819
+ for (var _a = 0, data_1 = data; _a < data_1.length; _a++) {
820
+ var _b = data_1[_a], d = _b.data, locale = _b.locale;
821
+ PluralRules2.localeData[locale] = d;
822
+ PluralRules2.availableLocales.add(locale);
823
+ if (!PluralRules2.__defaultLocale) {
824
+ PluralRules2.__defaultLocale = locale;
825
+ }
826
+ }
827
+ };
828
+ PluralRules2.getDefaultLocale = function() {
829
+ return PluralRules2.__defaultLocale;
830
+ };
831
+ PluralRules2.localeData = {};
832
+ PluralRules2.availableLocales = /* @__PURE__ */ new Set();
833
+ PluralRules2.__defaultLocale = "";
834
+ PluralRules2.relevantExtensionKeys = [];
835
+ PluralRules2.polyfilled = true;
836
+ return PluralRules2;
837
+ }();
838
+ try {
839
+ if (typeof Symbol !== "undefined") {
840
+ Object.defineProperty(PluralRules.prototype, Symbol.toStringTag, {
841
+ value: "Intl.PluralRules",
842
+ writable: false,
843
+ enumerable: false,
844
+ configurable: true
845
+ });
846
+ }
847
+ try {
848
+ Object.defineProperty(PluralRules, "length", {
849
+ value: 0,
850
+ writable: false,
851
+ enumerable: false,
852
+ configurable: true
853
+ });
854
+ } catch (error) {
855
+ }
856
+ Object.defineProperty(PluralRules.prototype.constructor, "length", {
857
+ value: 0,
858
+ writable: false,
859
+ enumerable: false,
860
+ configurable: true
861
+ });
862
+ Object.defineProperty(PluralRules.supportedLocalesOf, "length", {
863
+ value: 1,
864
+ writable: false,
865
+ enumerable: false,
866
+ configurable: true
867
+ });
868
+ } catch (ex) {
869
+ }
870
+
871
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/intl-pluralrules/lib/supported-locales.generated.js
872
+ var supportedLocales = ["af", "ak", "am", "an", "ar", "ars", "as", "asa", "ast", "az", "bal", "be", "bem", "bez", "bg", "bho", "bm", "bn", "bo", "br", "brx", "bs", "ca", "ce", "ceb", "cgg", "chr", "ckb", "cs", "cy", "da", "de", "doi", "dsb", "dv", "dz", "ee", "el", "en", "eo", "es", "et", "eu", "fa", "ff", "fi", "fil", "fo", "fr", "fur", "fy", "ga", "gd", "gl", "gsw", "gu", "guw", "gv", "ha", "haw", "he", "hi", "hnj", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "io", "is", "it", "iu", "ja", "jbo", "jgo", "jmc", "jv", "jw", "ka", "kab", "kaj", "kcg", "kde", "kea", "kk", "kkj", "kl", "km", "kn", "ko", "ks", "ksb", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lij", "lkt", "ln", "lo", "lt", "lv", "mas", "mg", "mgo", "mk", "ml", "mn", "mo", "mr", "ms", "mt", "my", "nah", "naq", "nb", "nd", "ne", "nl", "nn", "nnh", "no", "nqo", "nr", "nso", "ny", "nyn", "om", "or", "os", "osa", "pa", "pap", "pcm", "pl", "prg", "ps", "pt", "pt-PT", "rm", "ro", "rof", "ru", "rwk", "sah", "saq", "sat", "sc", "scn", "sd", "sdh", "se", "seh", "ses", "sg", "sh", "shi", "si", "sk", "sl", "sma", "smi", "smj", "smn", "sms", "sn", "so", "sq", "sr", "ss", "ssy", "st", "su", "sv", "sw", "syr", "ta", "te", "teo", "th", "ti", "tig", "tk", "tl", "tn", "to", "tpi", "tr", "ts", "tzm", "ug", "uk", "und", "ur", "uz", "ve", "vi", "vo", "vun", "wa", "wae", "wo", "xh", "xog", "yi", "yo", "yue", "zh", "zu"];
873
+
874
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/intl-pluralrules/lib/should-polyfill.js
875
+ function supportedLocalesOf(locale) {
876
+ if (!locale) {
877
+ return true;
878
+ }
879
+ var locales = Array.isArray(locale) ? locale : [locale];
880
+ return Intl.PluralRules.supportedLocalesOf(locales).length === locales.length;
881
+ }
882
+ function shouldPolyfill(locale) {
883
+ if (locale === void 0) {
884
+ locale = "en";
885
+ }
886
+ if (!("PluralRules" in Intl) || new Intl.PluralRules("en", { minimumFractionDigits: 2 }).select(1) === "one" || !supportedLocalesOf(locale)) {
887
+ return locale ? match([locale], supportedLocales, "en") : void 0;
888
+ }
889
+ }
890
+
891
+ // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/intl-pluralrules/lib/polyfill.js
892
+ if (shouldPolyfill()) {
893
+ Object.defineProperty(Intl, "PluralRules", {
894
+ value: PluralRules,
895
+ writable: true,
896
+ enumerable: false,
897
+ configurable: true
898
+ });
899
+ }
900
+ })();
901
+ //# sourceMappingURL=polyfill.iife.js.map