@formatjs/intl-pluralrules 6.3.16 → 7.0.0
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.
- package/index.d.ts +12 -9
- package/index.js +39 -143
- package/index.js.map +1 -1
- package/locale-data/af.js +26 -4
- package/locale-data/ak.js +2 -2
- package/locale-data/am.js +2 -2
- package/locale-data/an.js +2 -2
- package/locale-data/ar.js +32 -16
- package/locale-data/ars.js +32 -16
- package/locale-data/as.js +14 -14
- package/locale-data/asa.js +2 -2
- package/locale-data/az.js +26 -10
- package/locale-data/bal.js +4 -4
- package/locale-data/be.js +26 -10
- package/locale-data/bem.js +2 -2
- package/locale-data/bez.js +2 -2
- package/locale-data/bg.js +34 -4
- package/locale-data/bho.js +2 -2
- package/locale-data/blo.js +14 -14
- package/locale-data/bn.js +14 -14
- package/locale-data/br.js +28 -12
- package/locale-data/brx.js +2 -2
- package/locale-data/bs.js +22 -6
- package/locale-data/ca.js +28 -12
- package/locale-data/ce.js +2 -2
- package/locale-data/ceb.js +18 -2
- package/locale-data/cgg.js +2 -2
- package/locale-data/chr.js +2 -2
- package/locale-data/ckb.js +2 -2
- package/locale-data/cs.js +4 -4
- package/locale-data/csw.js +2 -2
- package/locale-data/cv.js +6 -6
- package/locale-data/cy.js +32 -32
- package/locale-data/da.js +2 -2
- package/locale-data/doi.js +2 -2
- package/locale-data/dsb.js +24 -8
- package/locale-data/dv.js +2 -2
- package/locale-data/ee.js +2 -2
- package/locale-data/el.js +2 -2
- package/locale-data/en.js +24 -8
- package/locale-data/eo.js +2 -2
- package/locale-data/es.js +28 -8
- package/locale-data/eu.js +2 -2
- package/locale-data/fa.js +2 -2
- package/locale-data/fil.js +20 -4
- package/locale-data/fo.js +2 -2
- package/locale-data/fr.js +24 -8
- package/locale-data/fur.js +2 -2
- package/locale-data/ga.js +14 -14
- package/locale-data/gd.js +16 -16
- package/locale-data/gl.js +24 -2
- package/locale-data/gsw.js +2 -2
- package/locale-data/gu.js +14 -14
- package/locale-data/guw.js +2 -2
- package/locale-data/gv.js +26 -10
- package/locale-data/ha.js +2 -2
- package/locale-data/haw.js +2 -2
- package/locale-data/hi.js +14 -14
- package/locale-data/hr.js +22 -6
- package/locale-data/hsb.js +24 -8
- package/locale-data/hu.js +4 -4
- package/locale-data/hy.js +2 -2
- package/locale-data/is.js +18 -2
- package/locale-data/it.js +22 -6
- package/locale-data/iu.js +4 -4
- package/locale-data/jgo.js +2 -2
- package/locale-data/jmc.js +2 -2
- package/locale-data/ka.js +22 -6
- package/locale-data/kaj.js +2 -2
- package/locale-data/kcg.js +2 -2
- package/locale-data/kk.js +20 -4
- package/locale-data/kkj.js +2 -2
- package/locale-data/kl.js +2 -2
- package/locale-data/kn.js +2 -2
- package/locale-data/kok-Latn.js +10 -10
- package/locale-data/kok.js +10 -10
- package/locale-data/ks.js +2 -2
- package/locale-data/ksb.js +2 -2
- package/locale-data/ksh.js +6 -6
- package/locale-data/ku.js +2 -2
- package/locale-data/kw.js +38 -22
- package/locale-data/ky.js +2 -2
- package/locale-data/lag.js +6 -6
- package/locale-data/lb.js +2 -2
- package/locale-data/lg.js +2 -2
- package/locale-data/lij.js +2 -2
- package/locale-data/lld.js +22 -6
- package/locale-data/ln.js +2 -2
- package/locale-data/lo.js +2 -2
- package/locale-data/lt.js +22 -6
- package/locale-data/lv.js +22 -6
- package/locale-data/mas.js +2 -2
- package/locale-data/mg.js +2 -2
- package/locale-data/mgo.js +2 -2
- package/locale-data/mk.js +26 -10
- package/locale-data/ml.js +2 -2
- package/locale-data/mn.js +2 -2
- package/locale-data/mo.js +22 -6
- package/locale-data/mr.js +10 -10
- package/locale-data/ms.js +2 -2
- package/locale-data/mt.js +28 -12
- package/locale-data/nah.js +2 -2
- package/locale-data/naq.js +4 -4
- package/locale-data/nb.js +2 -2
- package/locale-data/nd.js +2 -2
- package/locale-data/ne.js +4 -4
- package/locale-data/nn.js +2 -2
- package/locale-data/nnh.js +2 -2
- package/locale-data/no.js +2 -2
- package/locale-data/nr.js +2 -2
- package/locale-data/nso.js +2 -2
- package/locale-data/ny.js +2 -2
- package/locale-data/nyn.js +2 -2
- package/locale-data/om.js +2 -2
- package/locale-data/or.js +14 -14
- package/locale-data/os.js +2 -2
- package/locale-data/pa.js +2 -2
- package/locale-data/pap.js +2 -2
- package/locale-data/pcm.js +2 -2
- package/locale-data/pl.js +24 -8
- package/locale-data/prg.js +22 -6
- package/locale-data/ps.js +2 -2
- package/locale-data/pt-PT.js +20 -4
- package/locale-data/pt.js +20 -4
- package/locale-data/rm.js +2 -2
- package/locale-data/ro.js +22 -6
- package/locale-data/rof.js +2 -2
- package/locale-data/ru.js +24 -8
- package/locale-data/rwk.js +2 -2
- package/locale-data/saq.js +2 -2
- package/locale-data/sat.js +4 -4
- package/locale-data/sc.js +2 -2
- package/locale-data/scn.js +22 -6
- package/locale-data/sd.js +2 -2
- package/locale-data/sdh.js +2 -2
- package/locale-data/se.js +4 -4
- package/locale-data/seh.js +2 -2
- package/locale-data/sgs.js +26 -10
- package/locale-data/sh.js +22 -6
- package/locale-data/shi.js +6 -6
- package/locale-data/si.js +2 -2
- package/locale-data/sk.js +4 -4
- package/locale-data/sl.js +24 -8
- package/locale-data/sma.js +4 -4
- package/locale-data/smi.js +4 -4
- package/locale-data/smj.js +4 -4
- package/locale-data/smn.js +4 -4
- package/locale-data/sms.js +4 -4
- package/locale-data/sn.js +2 -2
- package/locale-data/so.js +2 -2
- package/locale-data/sq.js +24 -8
- package/locale-data/sr.js +22 -6
- package/locale-data/ss.js +2 -2
- package/locale-data/ssy.js +2 -2
- package/locale-data/st.js +2 -2
- package/locale-data/sv.js +18 -2
- package/locale-data/syr.js +2 -2
- package/locale-data/ta.js +2 -2
- package/locale-data/te.js +2 -2
- package/locale-data/teo.js +2 -2
- package/locale-data/tg.d.ts +1 -0
- package/locale-data/tg.js +35 -0
- package/locale-data/ti.js +2 -2
- package/locale-data/tig.js +2 -2
- package/locale-data/tk.js +20 -4
- package/locale-data/tl.js +20 -4
- package/locale-data/tn.js +2 -2
- package/locale-data/tr.js +2 -2
- package/locale-data/ts.js +2 -2
- package/locale-data/tzm.js +2 -2
- package/locale-data/ug.js +2 -2
- package/locale-data/uk.js +26 -10
- package/locale-data/uz.js +2 -2
- package/locale-data/ve.js +2 -2
- package/locale-data/vec.js +22 -6
- package/locale-data/vi.js +12 -6
- package/locale-data/vo.js +2 -2
- package/locale-data/vun.js +2 -2
- package/locale-data/wa.js +2 -2
- package/locale-data/wae.js +2 -2
- package/locale-data/xh.js +2 -2
- package/locale-data/xog.js +2 -2
- package/locale-data/zu.js +2 -2
- package/package.json +3 -3
- package/polyfill-force.js +39 -143
- package/polyfill-force.js.map +1 -1
- package/polyfill.iife.js +2137 -3591
- package/polyfill.js +43 -149
- package/polyfill.js.map +1 -1
- package/should-polyfill.d.ts +0 -2
- package/should-polyfill.js +3 -4
- package/should-polyfill.js.map +1 -1
package/polyfill-force.js
CHANGED
|
@@ -1,66 +1,46 @@
|
|
|
1
1
|
import { LookupSupportedLocales, ResolveLocale } from "@formatjs/intl-localematcher";
|
|
2
2
|
import { Decimal } from "@formatjs/bigdecimal";
|
|
3
|
-
|
|
3
|
+
// node_modules/.aspect_rules_js/@formatjs_generated+cldr.supported-locales@0.0.0/node_modules/@formatjs_generated/cldr.supported-locales/default-content.js
|
|
4
4
|
const defaultContent = {
|
|
5
|
-
"
|
|
6
|
-
"ab": ["ab-GE"],
|
|
5
|
+
"ady": ["ady-RU"],
|
|
7
6
|
"af": ["af-ZA"],
|
|
8
7
|
"agq": ["agq-CM"],
|
|
9
8
|
"ak": ["ak-GH"],
|
|
10
9
|
"am": ["am-ET"],
|
|
11
|
-
"an": ["an-ES"],
|
|
12
|
-
"ann": ["ann-NG"],
|
|
13
|
-
"apc": ["apc-SY"],
|
|
14
10
|
"ar": ["ar-001"],
|
|
15
|
-
"arn": ["arn-CL"],
|
|
16
11
|
"as": ["as-IN"],
|
|
17
12
|
"asa": ["asa-TZ"],
|
|
18
13
|
"ast": ["ast-ES"],
|
|
19
|
-
"az-Arab": ["az-Arab-IR"],
|
|
20
14
|
"az-Cyrl": ["az-Cyrl-AZ"],
|
|
21
15
|
"az-Latn": ["az-Latn-AZ"],
|
|
22
16
|
"ba": ["ba-RU"],
|
|
23
|
-
"bal-Arab": ["bal-Arab-PK"],
|
|
24
17
|
"bal-Latn": ["bal-Latn-PK"],
|
|
25
18
|
"bas": ["bas-CM"],
|
|
26
19
|
"be": ["be-BY"],
|
|
27
20
|
"bem": ["bem-ZM"],
|
|
28
|
-
"bew": ["bew-ID"],
|
|
29
21
|
"bez": ["bez-TZ"],
|
|
30
22
|
"bg": ["bg-BG"],
|
|
31
23
|
"bgc": ["bgc-IN"],
|
|
32
|
-
"bgn": ["bgn-PK"],
|
|
33
24
|
"bho": ["bho-IN"],
|
|
34
25
|
"blo": ["blo-BJ"],
|
|
35
|
-
"blt": ["blt-VN"],
|
|
36
26
|
"bm": ["bm-ML"],
|
|
37
|
-
"bm-Nkoo": ["bm-Nkoo-ML"],
|
|
38
27
|
"bn": ["bn-BD"],
|
|
39
28
|
"bo": ["bo-CN"],
|
|
40
|
-
"bqi": ["bqi-IR"],
|
|
41
29
|
"br": ["br-FR"],
|
|
42
30
|
"brx": ["brx-IN"],
|
|
43
31
|
"bs-Cyrl": ["bs-Cyrl-BA"],
|
|
44
32
|
"bs-Latn": ["bs-Latn-BA"],
|
|
45
|
-
"bss": ["bss-CM"],
|
|
46
33
|
"bua": ["bua-RU"],
|
|
47
|
-
"byn": ["byn-ER"],
|
|
48
34
|
"ca": ["ca-ES"],
|
|
49
|
-
"cad": ["cad-US"],
|
|
50
|
-
"cch": ["cch-NG"],
|
|
51
35
|
"ccp": ["ccp-BD"],
|
|
52
36
|
"ce": ["ce-RU"],
|
|
53
37
|
"ceb": ["ceb-PH"],
|
|
54
38
|
"cgg": ["cgg-UG"],
|
|
55
|
-
"cho": ["cho-US"],
|
|
56
39
|
"chr": ["chr-US"],
|
|
57
|
-
"cic": ["cic-US"],
|
|
58
40
|
"ckb": ["ckb-IQ"],
|
|
59
|
-
"co": ["co-FR"],
|
|
60
41
|
"cop": ["cop-EG"],
|
|
61
42
|
"cs": ["cs-CZ"],
|
|
62
43
|
"csw": ["csw-CA"],
|
|
63
|
-
"cu": ["cu-RU"],
|
|
64
44
|
"cv": ["cv-RU"],
|
|
65
45
|
"cy": ["cy-GB"],
|
|
66
46
|
"da": ["da-DK"],
|
|
@@ -70,14 +50,11 @@ const defaultContent = {
|
|
|
70
50
|
"doi": ["doi-IN"],
|
|
71
51
|
"dsb": ["dsb-DE"],
|
|
72
52
|
"dua": ["dua-CM"],
|
|
73
|
-
"dv": ["dv-MV"],
|
|
74
53
|
"dyo": ["dyo-SN"],
|
|
75
54
|
"dz": ["dz-BT"],
|
|
76
55
|
"ebu": ["ebu-KE"],
|
|
77
56
|
"ee": ["ee-GH"],
|
|
78
57
|
"el": ["el-GR"],
|
|
79
|
-
"en-Dsrt": ["en-Dsrt-US"],
|
|
80
|
-
"en-Shaw": ["en-Shaw-GB"],
|
|
81
58
|
"en": ["en-US"],
|
|
82
59
|
"eo": ["eo-001"],
|
|
83
60
|
"es": ["es-ES"],
|
|
@@ -91,29 +68,23 @@ const defaultContent = {
|
|
|
91
68
|
"fil": ["fil-PH"],
|
|
92
69
|
"fo": ["fo-FO"],
|
|
93
70
|
"fr": ["fr-FR"],
|
|
94
|
-
"frr": ["frr-DE"],
|
|
95
71
|
"fur": ["fur-IT"],
|
|
96
72
|
"fy": ["fy-NL"],
|
|
97
73
|
"ga": ["ga-IE"],
|
|
98
74
|
"gaa": ["gaa-GH"],
|
|
99
75
|
"gd": ["gd-GB"],
|
|
100
|
-
"gez": ["gez-ET"],
|
|
101
76
|
"gl": ["gl-ES"],
|
|
102
|
-
"gn": ["gn-PY"],
|
|
103
77
|
"gsw": ["gsw-CH"],
|
|
104
78
|
"gu": ["gu-IN"],
|
|
105
79
|
"guz": ["guz-KE"],
|
|
106
80
|
"gv": ["gv-IM"],
|
|
107
|
-
"ha-Arab": ["ha-Arab-NG"],
|
|
108
81
|
"ha": ["ha-NG"],
|
|
109
82
|
"haw": ["haw-US"],
|
|
110
83
|
"he": ["he-IL"],
|
|
111
84
|
"hi": ["hi-IN"],
|
|
112
85
|
"hi-Latn": ["hi-Latn-IN"],
|
|
113
|
-
"hnj-Hmnp": ["hnj-Hmnp-US"],
|
|
114
86
|
"hr": ["hr-HR"],
|
|
115
87
|
"hsb": ["hsb-DE"],
|
|
116
|
-
"ht": ["ht-HT"],
|
|
117
88
|
"hu": ["hu-HU"],
|
|
118
89
|
"hy": ["hy-AM"],
|
|
119
90
|
"ia": ["ia-001"],
|
|
@@ -121,27 +92,19 @@ const defaultContent = {
|
|
|
121
92
|
"ie": ["ie-EE"],
|
|
122
93
|
"ig": ["ig-NG"],
|
|
123
94
|
"ii": ["ii-CN"],
|
|
124
|
-
"io": ["io-001"],
|
|
125
95
|
"is": ["is-IS"],
|
|
126
96
|
"it": ["it-IT"],
|
|
127
|
-
"iu": ["iu-CA"],
|
|
128
|
-
"iu-Latn": ["iu-Latn-CA"],
|
|
129
97
|
"ja": ["ja-JP"],
|
|
130
|
-
"jbo": ["jbo-001"],
|
|
131
98
|
"jgo": ["jgo-CM"],
|
|
132
99
|
"jmc": ["jmc-TZ"],
|
|
133
100
|
"jv": ["jv-ID"],
|
|
134
101
|
"ka": ["ka-GE"],
|
|
135
|
-
"kaa-Cyrl": ["kaa-Cyrl-UZ"],
|
|
136
|
-
"kaa-Latn": ["kaa-Latn-UZ"],
|
|
137
102
|
"kab": ["kab-DZ"],
|
|
138
|
-
"kaj": ["kaj-NG"],
|
|
139
103
|
"kam": ["kam-KE"],
|
|
140
|
-
"
|
|
104
|
+
"kbd": ["kbd-RU"],
|
|
141
105
|
"kde": ["kde-TZ"],
|
|
142
106
|
"kea": ["kea-CV"],
|
|
143
107
|
"kek": ["kek-GT"],
|
|
144
|
-
"ken": ["ken-CM"],
|
|
145
108
|
"kgp": ["kgp-BR"],
|
|
146
109
|
"khq": ["khq-ML"],
|
|
147
110
|
"ki": ["ki-KE"],
|
|
@@ -155,13 +118,11 @@ const defaultContent = {
|
|
|
155
118
|
"ko": ["ko-KR"],
|
|
156
119
|
"kok-Deva": ["kok-Deva-IN"],
|
|
157
120
|
"kok-Latn": ["kok-Latn-IN"],
|
|
158
|
-
"kpe": ["kpe-LR"],
|
|
159
121
|
"ks-Arab": ["ks-Arab-IN"],
|
|
160
122
|
"ks-Deva": ["ks-Deva-IN"],
|
|
161
123
|
"ksb": ["ksb-TZ"],
|
|
162
124
|
"ksf": ["ksf-CM"],
|
|
163
125
|
"ksh": ["ksh-DE"],
|
|
164
|
-
"ku-Arab": ["ku-Arab-IQ"],
|
|
165
126
|
"ku-Latn": ["ku-Latn-TR"],
|
|
166
127
|
"kw": ["kw-GB"],
|
|
167
128
|
"kxv-Deva": ["kxv-Deva-IN"],
|
|
@@ -169,7 +130,6 @@ const defaultContent = {
|
|
|
169
130
|
"kxv-Orya": ["kxv-Orya-IN"],
|
|
170
131
|
"kxv-Telu": ["kxv-Telu-IN"],
|
|
171
132
|
"ky": ["ky-KG"],
|
|
172
|
-
"la": ["la-VA"],
|
|
173
133
|
"lag": ["lag-TZ"],
|
|
174
134
|
"lb": ["lb-LU"],
|
|
175
135
|
"lg": ["lg-UG"],
|
|
@@ -181,39 +141,27 @@ const defaultContent = {
|
|
|
181
141
|
"lo": ["lo-LA"],
|
|
182
142
|
"lrc": ["lrc-IR"],
|
|
183
143
|
"lt": ["lt-LT"],
|
|
184
|
-
"ltg": ["ltg-LV"],
|
|
185
144
|
"lu": ["lu-CD"],
|
|
186
145
|
"luo": ["luo-KE"],
|
|
187
146
|
"luy": ["luy-KE"],
|
|
188
147
|
"lv": ["lv-LV"],
|
|
189
|
-
"lzz": ["lzz-TR"],
|
|
190
148
|
"mai": ["mai-IN"],
|
|
191
149
|
"mas": ["mas-KE"],
|
|
192
|
-
"mdf": ["mdf-RU"],
|
|
193
150
|
"mer": ["mer-KE"],
|
|
194
151
|
"mfe": ["mfe-MU"],
|
|
195
152
|
"mg": ["mg-MG"],
|
|
196
153
|
"mgh": ["mgh-MZ"],
|
|
197
154
|
"mgo": ["mgo-CM"],
|
|
198
|
-
"mhn": ["mhn-IT"],
|
|
199
155
|
"mi": ["mi-NZ"],
|
|
200
|
-
"mic": ["mic-CA"],
|
|
201
156
|
"mk": ["mk-MK"],
|
|
202
157
|
"ml": ["ml-IN"],
|
|
203
158
|
"mn": ["mn-MN"],
|
|
204
|
-
"mn-Mong": ["mn-Mong-CN"],
|
|
205
159
|
"mni-Beng": ["mni-Beng-IN"],
|
|
206
|
-
"mni-Mtei": ["mni-Mtei-IN"],
|
|
207
|
-
"moh": ["moh-CA"],
|
|
208
160
|
"mr": ["mr-IN"],
|
|
209
|
-
"ms-Arab": ["ms-Arab-MY"],
|
|
210
161
|
"ms": ["ms-MY"],
|
|
211
162
|
"mt": ["mt-MT"],
|
|
212
163
|
"mua": ["mua-CM"],
|
|
213
|
-
"mus": ["mus-US"],
|
|
214
|
-
"mww-Hmnp": ["mww-Hmnp-US"],
|
|
215
164
|
"my": ["my-MM"],
|
|
216
|
-
"myv": ["myv-RU"],
|
|
217
165
|
"mzn": ["mzn-IR"],
|
|
218
166
|
"naq": ["naq-NA"],
|
|
219
167
|
"nb": ["nb-NO"],
|
|
@@ -225,24 +173,16 @@ const defaultContent = {
|
|
|
225
173
|
"nn": ["nn-NO"],
|
|
226
174
|
"nnh": ["nnh-CM"],
|
|
227
175
|
"nqo": ["nqo-GN"],
|
|
228
|
-
"nr": ["nr-ZA"],
|
|
229
176
|
"nso": ["nso-ZA"],
|
|
230
177
|
"nus": ["nus-SS"],
|
|
231
|
-
"nv": ["nv-US"],
|
|
232
|
-
"ny": ["ny-MW"],
|
|
233
178
|
"nyn": ["nyn-UG"],
|
|
234
179
|
"oc": ["oc-FR"],
|
|
235
|
-
"oka": ["oka-CA"],
|
|
236
180
|
"om": ["om-ET"],
|
|
237
181
|
"or": ["or-IN"],
|
|
238
182
|
"os": ["os-GE"],
|
|
239
|
-
"osa": ["osa-US"],
|
|
240
183
|
"pa-Arab": ["pa-Arab-PK"],
|
|
241
184
|
"pa-Guru": ["pa-Guru-IN"],
|
|
242
|
-
"pap": ["pap-CW"],
|
|
243
185
|
"pcm": ["pcm-NG"],
|
|
244
|
-
"pi-Latn": ["pi-Latn-GB"],
|
|
245
|
-
"pis": ["pis-SB"],
|
|
246
186
|
"pl": ["pl-PL"],
|
|
247
187
|
"pms": ["pms-IT"],
|
|
248
188
|
"prg": ["prg-PL"],
|
|
@@ -251,8 +191,6 @@ const defaultContent = {
|
|
|
251
191
|
"qu": ["qu-PE"],
|
|
252
192
|
"quc": ["quc-GT"],
|
|
253
193
|
"raj": ["raj-IN"],
|
|
254
|
-
"rhg-Rohg": ["rhg-Rohg-MM"],
|
|
255
|
-
"rif": ["rif-MA"],
|
|
256
194
|
"rm": ["rm-CH"],
|
|
257
195
|
"rn": ["rn-BI"],
|
|
258
196
|
"ro": ["ro-RO"],
|
|
@@ -263,41 +201,30 @@ const defaultContent = {
|
|
|
263
201
|
"sa": ["sa-IN"],
|
|
264
202
|
"sah": ["sah-RU"],
|
|
265
203
|
"saq": ["saq-KE"],
|
|
266
|
-
"sat-Deva": ["sat-Deva-IN"],
|
|
267
204
|
"sat-Olck": ["sat-Olck-IN"],
|
|
268
205
|
"sbp": ["sbp-TZ"],
|
|
269
206
|
"sc": ["sc-IT"],
|
|
270
207
|
"scn": ["scn-IT"],
|
|
271
208
|
"sd-Arab": ["sd-Arab-PK"],
|
|
272
209
|
"sd-Deva": ["sd-Deva-IN"],
|
|
273
|
-
"sdh": ["sdh-IR"],
|
|
274
210
|
"se": ["se-NO"],
|
|
275
211
|
"seh": ["seh-MZ"],
|
|
276
212
|
"ses": ["ses-ML"],
|
|
277
213
|
"sg": ["sg-CF"],
|
|
278
|
-
"sgs": ["sgs-LT"],
|
|
279
214
|
"shi-Latn": ["shi-Latn-MA"],
|
|
280
215
|
"shi-Tfng": ["shi-Tfng-MA"],
|
|
281
216
|
"shn": ["shn-MM"],
|
|
282
217
|
"si": ["si-LK"],
|
|
283
|
-
"sid": ["sid-ET"],
|
|
284
218
|
"sk": ["sk-SK"],
|
|
285
|
-
"skr": ["skr-PK"],
|
|
286
219
|
"sl": ["sl-SI"],
|
|
287
|
-
"sma": ["sma-SE"],
|
|
288
|
-
"smj": ["smj-SE"],
|
|
289
220
|
"smn": ["smn-FI"],
|
|
290
|
-
"sms": ["sms-FI"],
|
|
291
221
|
"sn": ["sn-ZW"],
|
|
292
222
|
"so": ["so-SO"],
|
|
293
223
|
"sq": ["sq-AL"],
|
|
294
224
|
"sr-Cyrl": ["sr-Cyrl-RS"],
|
|
295
225
|
"sr-Latn": ["sr-Latn-RS"],
|
|
296
|
-
"ss": ["ss-ZA"],
|
|
297
|
-
"ssy": ["ssy-ER"],
|
|
298
226
|
"st": ["st-ZA"],
|
|
299
227
|
"su-Latn": ["su-Latn-ID"],
|
|
300
|
-
"suz-Deva": ["suz-Deva-NP"],
|
|
301
228
|
"suz-Sunu": ["suz-Sunu-NP"],
|
|
302
229
|
"sv": ["sv-SE"],
|
|
303
230
|
"sw": ["sw-TZ"],
|
|
@@ -309,16 +236,11 @@ const defaultContent = {
|
|
|
309
236
|
"tg": ["tg-TJ"],
|
|
310
237
|
"th": ["th-TH"],
|
|
311
238
|
"ti": ["ti-ET"],
|
|
312
|
-
"tig": ["tig-ER"],
|
|
313
239
|
"tk": ["tk-TM"],
|
|
314
240
|
"tn": ["tn-ZA"],
|
|
315
241
|
"to": ["to-TO"],
|
|
316
242
|
"tok": ["tok-001"],
|
|
317
|
-
"tpi": ["tpi-PG"],
|
|
318
243
|
"tr": ["tr-TR"],
|
|
319
|
-
"trv": ["trv-TW"],
|
|
320
|
-
"trw": ["trw-PK"],
|
|
321
|
-
"ts": ["ts-ZA"],
|
|
322
244
|
"tt": ["tt-RU"],
|
|
323
245
|
"twq": ["twq-NE"],
|
|
324
246
|
"tyv": ["tyv-RU"],
|
|
@@ -331,16 +253,11 @@ const defaultContent = {
|
|
|
331
253
|
"uz-Latn": ["uz-Latn-UZ"],
|
|
332
254
|
"vai-Latn": ["vai-Latn-LR"],
|
|
333
255
|
"vai-Vaii": ["vai-Vaii-LR"],
|
|
334
|
-
"ve": ["ve-ZA"],
|
|
335
256
|
"vec": ["vec-IT"],
|
|
336
257
|
"vi": ["vi-VN"],
|
|
337
258
|
"vmw": ["vmw-MZ"],
|
|
338
|
-
"vo": ["vo-001"],
|
|
339
259
|
"vun": ["vun-TZ"],
|
|
340
|
-
"wa": ["wa-BE"],
|
|
341
260
|
"wae": ["wae-CH"],
|
|
342
|
-
"wal": ["wal-ET"],
|
|
343
|
-
"wbp": ["wbp-AU"],
|
|
344
261
|
"wo": ["wo-SN"],
|
|
345
262
|
"xh": ["xh-ZA"],
|
|
346
263
|
"xnr": ["xnr-IN"],
|
|
@@ -355,11 +272,9 @@ const defaultContent = {
|
|
|
355
272
|
"zgh": ["zgh-MA"],
|
|
356
273
|
"zh-Hans": ["zh-Hans-CN"],
|
|
357
274
|
"zh-Hant": ["zh-Hant-TW"],
|
|
358
|
-
"zh-Latn": ["zh-Latn-CN"],
|
|
359
275
|
"zu": ["zu-ZA"]
|
|
360
276
|
};
|
|
361
|
-
|
|
362
|
-
//#region packages/ecma402-abstract/registerLocaleData.js
|
|
277
|
+
// packages/ecma402-abstract/registerLocaleData.js
|
|
363
278
|
const explicitLocales = /* @__PURE__ */ new WeakMap();
|
|
364
279
|
function registerLocaleData(locale, data, localeData, availableLocales) {
|
|
365
280
|
let loaded = explicitLocales.get(localeData);
|
|
@@ -387,8 +302,7 @@ function registerLocaleData(locale, data, localeData, availableLocales) {
|
|
|
387
302
|
}
|
|
388
303
|
}
|
|
389
304
|
}
|
|
390
|
-
|
|
391
|
-
//#region packages/ecma402-abstract/CanonicalizeLocaleList.js
|
|
305
|
+
// packages/ecma402-abstract/CanonicalizeLocaleList.js
|
|
392
306
|
/**
|
|
393
307
|
* http://ecma-international.org/ecma-402/7.0/index.html#sec-canonicalizelocalelist
|
|
394
308
|
* @param locales
|
|
@@ -396,8 +310,7 @@ function registerLocaleData(locale, data, localeData, availableLocales) {
|
|
|
396
310
|
function CanonicalizeLocaleList(locales) {
|
|
397
311
|
return Intl.getCanonicalLocales(locales);
|
|
398
312
|
}
|
|
399
|
-
|
|
400
|
-
//#region packages/ecma262-abstract/ToObject.js
|
|
313
|
+
// packages/ecma262-abstract/ToObject.js
|
|
401
314
|
/**
|
|
402
315
|
* https://tc39.es/ecma262/#sec-toobject
|
|
403
316
|
*/
|
|
@@ -405,8 +318,7 @@ function ToObject(arg) {
|
|
|
405
318
|
if (arg == null) throw new TypeError("undefined/null cannot be converted to object");
|
|
406
319
|
return Object(arg);
|
|
407
320
|
}
|
|
408
|
-
|
|
409
|
-
//#region packages/ecma262-abstract/ToString.js
|
|
321
|
+
// packages/ecma262-abstract/ToString.js
|
|
410
322
|
/**
|
|
411
323
|
* https://tc39.es/ecma262/#sec-tostring
|
|
412
324
|
*/
|
|
@@ -414,8 +326,7 @@ function ToString(o) {
|
|
|
414
326
|
if (typeof o === "symbol") throw TypeError("Cannot convert a Symbol value to a string");
|
|
415
327
|
return String(o);
|
|
416
328
|
}
|
|
417
|
-
|
|
418
|
-
//#region packages/ecma402-abstract/GetOption.js
|
|
329
|
+
// packages/ecma402-abstract/GetOption.js
|
|
419
330
|
/**
|
|
420
331
|
* https://tc39.es/ecma402/#sec-getoption
|
|
421
332
|
* @param opts
|
|
@@ -436,8 +347,7 @@ function GetOption(opts, prop, type, values, fallback) {
|
|
|
436
347
|
}
|
|
437
348
|
return fallback;
|
|
438
349
|
}
|
|
439
|
-
|
|
440
|
-
//#region packages/ecma402-abstract/SupportedLocales.js
|
|
350
|
+
// packages/ecma402-abstract/SupportedLocales.js
|
|
441
351
|
/**
|
|
442
352
|
* https://tc39.es/ecma402/#sec-supportedlocales
|
|
443
353
|
* @param availableLocales
|
|
@@ -453,8 +363,7 @@ function SupportedLocales(availableLocales, requestedLocales, options) {
|
|
|
453
363
|
if (matcher === "best fit") return LookupSupportedLocales(Array.from(availableLocales), requestedLocales);
|
|
454
364
|
return LookupSupportedLocales(Array.from(availableLocales), requestedLocales);
|
|
455
365
|
}
|
|
456
|
-
|
|
457
|
-
//#region packages/ecma262-abstract/ToPrimitive.js
|
|
366
|
+
// packages/ecma262-abstract/ToPrimitive.js
|
|
458
367
|
function invariant$1(condition, message, Err = Error) {
|
|
459
368
|
if (!condition) throw new Err(message);
|
|
460
369
|
}
|
|
@@ -497,8 +406,7 @@ function ToPrimitive(input, preferredType) {
|
|
|
497
406
|
}
|
|
498
407
|
return input;
|
|
499
408
|
}
|
|
500
|
-
|
|
501
|
-
//#region packages/ecma402-abstract/ToIntlMathematicalValue.js
|
|
409
|
+
// packages/ecma402-abstract/ToIntlMathematicalValue.js
|
|
502
410
|
/**
|
|
503
411
|
* https://tc39.es/ecma402/#sec-tointlmathematicalvalue
|
|
504
412
|
* Converts input to a mathematical value, supporting BigInt
|
|
@@ -507,6 +415,13 @@ function ToIntlMathematicalValue(input) {
|
|
|
507
415
|
if (typeof input === "bigint") return new Decimal(input.toString());
|
|
508
416
|
let primValue = ToPrimitive(input, "number");
|
|
509
417
|
if (typeof primValue === "symbol") throw new TypeError("Cannot convert a Symbol value to a number");
|
|
418
|
+
if (typeof primValue === "string") {
|
|
419
|
+
const rounded = +primValue;
|
|
420
|
+
if (rounded !== rounded || rounded === Infinity || rounded === -Infinity || rounded === 0) return new Decimal(rounded);
|
|
421
|
+
const text = primValue.trim();
|
|
422
|
+
if (/^0[xob]/i.test(text)) return new Decimal(BigInt(text));
|
|
423
|
+
primValue = text;
|
|
424
|
+
}
|
|
510
425
|
if (primValue === void 0) return new Decimal(NaN);
|
|
511
426
|
if (primValue === true) return new Decimal(1);
|
|
512
427
|
if (primValue === false) return new Decimal(0);
|
|
@@ -517,8 +432,7 @@ function ToIntlMathematicalValue(input) {
|
|
|
517
432
|
return new Decimal(NaN);
|
|
518
433
|
}
|
|
519
434
|
}
|
|
520
|
-
|
|
521
|
-
//#region packages/ecma402-abstract/CoerceOptionsToObject.js
|
|
435
|
+
// packages/ecma402-abstract/CoerceOptionsToObject.js
|
|
522
436
|
/**
|
|
523
437
|
* https://tc39.es/ecma402/#sec-coerceoptionstoobject
|
|
524
438
|
* @param options
|
|
@@ -528,8 +442,7 @@ function CoerceOptionsToObject(options) {
|
|
|
528
442
|
if (typeof options === "undefined") return Object.create(null);
|
|
529
443
|
return ToObject(options);
|
|
530
444
|
}
|
|
531
|
-
|
|
532
|
-
//#region packages/ecma402-abstract/DefaultNumberOption.js
|
|
445
|
+
// packages/ecma402-abstract/DefaultNumberOption.js
|
|
533
446
|
/**
|
|
534
447
|
* ECMA-402 §9.2.13 DefaultNumberOption, step 2.
|
|
535
448
|
* https://tc39.es/ecma402/#sec-defaultnumberoption
|
|
@@ -545,8 +458,7 @@ function DefaultNumberOption(inputVal, min, max, fallback) {
|
|
|
545
458
|
if (isNaN(val) || val < min || val > max) throw new RangeError(`${val} is outside of range [${min}, ${max}]`);
|
|
546
459
|
return Math.floor(val);
|
|
547
460
|
}
|
|
548
|
-
|
|
549
|
-
//#region packages/ecma402-abstract/GetNumberOption.js
|
|
461
|
+
// packages/ecma402-abstract/GetNumberOption.js
|
|
550
462
|
/**
|
|
551
463
|
* https://tc39.es/ecma402/#sec-getnumberoption
|
|
552
464
|
* @param options
|
|
@@ -559,8 +471,7 @@ function GetNumberOption(options, property, minimum, maximum, fallback) {
|
|
|
559
471
|
const val = options[property];
|
|
560
472
|
return DefaultNumberOption(val, minimum, maximum, fallback);
|
|
561
473
|
}
|
|
562
|
-
|
|
563
|
-
//#region node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/index.js
|
|
474
|
+
// node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/index.js
|
|
564
475
|
function memoize(fn, options) {
|
|
565
476
|
const cache = options && options.cache ? options.cache : cacheDefault;
|
|
566
477
|
const serializer = options && options.serializer ? options.serializer : serializerDefault;
|
|
@@ -625,8 +536,7 @@ const strategies = {
|
|
|
625
536
|
variadic: strategyVariadic,
|
|
626
537
|
monadic: strategyMonadic
|
|
627
538
|
};
|
|
628
|
-
|
|
629
|
-
//#region packages/ecma402-abstract/utils.js
|
|
539
|
+
// packages/ecma402-abstract/utils.js
|
|
630
540
|
function repeat(s, times) {
|
|
631
541
|
if (typeof s.repeat === "function") return s.repeat(times);
|
|
632
542
|
const arr = Array.from({ length: times });
|
|
@@ -656,8 +566,7 @@ function invariant(condition, message, Err = Error) {
|
|
|
656
566
|
memoize((...args) => new Intl.NumberFormat(...args), { strategy: strategies.variadic });
|
|
657
567
|
memoize((...args) => new Intl.PluralRules(...args), { strategy: strategies.variadic });
|
|
658
568
|
memoize((...args) => new Intl.ListFormat(...args), { strategy: strategies.variadic });
|
|
659
|
-
|
|
660
|
-
//#region packages/ecma402-abstract/NumberFormat/SetNumberFormatDigitOptions.js
|
|
569
|
+
// packages/ecma402-abstract/NumberFormat/SetNumberFormatDigitOptions.js
|
|
661
570
|
const VALID_ROUNDING_INCREMENTS = /* @__PURE__ */ new Set([
|
|
662
571
|
1,
|
|
663
572
|
2,
|
|
@@ -767,8 +676,7 @@ Valid values are ${Array.from(VALID_ROUNDING_INCREMENTS).join(", ")}.`, RangeErr
|
|
|
767
676
|
invariant(internalSlots.maximumFractionDigits === internalSlots.minimumFractionDigits, "With roundingIncrement > 1, maximumFractionDigits and minimumFractionDigits must be equal.", RangeError);
|
|
768
677
|
}
|
|
769
678
|
}
|
|
770
|
-
|
|
771
|
-
//#region packages/ecma402-abstract/PluralRules/InitializePluralRules.js
|
|
679
|
+
// packages/ecma402-abstract/PluralRules/InitializePluralRules.js
|
|
772
680
|
function InitializePluralRules(pl, locales, options, { availableLocales, relevantExtensionKeys, localeData, getDefaultLocale, getInternalSlots }) {
|
|
773
681
|
const requestedLocales = CanonicalizeLocaleList(locales);
|
|
774
682
|
const opt = Object.create(null);
|
|
@@ -794,8 +702,7 @@ function InitializePluralRules(pl, locales, options, { availableLocales, relevan
|
|
|
794
702
|
SetNumberFormatDigitOptions(internalSlots, opts, 0, 3, notation);
|
|
795
703
|
return pl;
|
|
796
704
|
}
|
|
797
|
-
|
|
798
|
-
//#region packages/ecma262-abstract/Type.js
|
|
705
|
+
// packages/ecma262-abstract/Type.js
|
|
799
706
|
/**
|
|
800
707
|
* https://www.ecma-international.org/ecma-262/11.0/index.html#sec-type
|
|
801
708
|
*/
|
|
@@ -809,12 +716,10 @@ function Type(x) {
|
|
|
809
716
|
if (typeof x === "symbol") return "Symbol";
|
|
810
717
|
if (typeof x === "bigint") return "BigInt";
|
|
811
718
|
}
|
|
812
|
-
|
|
813
|
-
//#region packages/ecma402-abstract/constants.js
|
|
719
|
+
// packages/ecma402-abstract/constants.js
|
|
814
720
|
const ZERO = new Decimal(0);
|
|
815
721
|
const NEGATIVE_ZERO = new Decimal(-0);
|
|
816
|
-
|
|
817
|
-
//#region packages/ecma402-abstract/NumberFormat/GetUnsignedRoundingMode.js
|
|
722
|
+
// packages/ecma402-abstract/NumberFormat/GetUnsignedRoundingMode.js
|
|
818
723
|
const negativeMapping = {
|
|
819
724
|
ceil: "zero",
|
|
820
725
|
floor: "infinity",
|
|
@@ -841,8 +746,7 @@ function GetUnsignedRoundingMode(roundingMode, isNegative) {
|
|
|
841
746
|
if (isNegative) return negativeMapping[roundingMode];
|
|
842
747
|
return positiveMapping[roundingMode];
|
|
843
748
|
}
|
|
844
|
-
|
|
845
|
-
//#region packages/ecma402-abstract/NumberFormat/ApplyUnsignedRoundingMode.js
|
|
749
|
+
// packages/ecma402-abstract/NumberFormat/ApplyUnsignedRoundingMode.js
|
|
846
750
|
function ApplyUnsignedRoundingMode(x, r1, r2, unsignedRoundingMode) {
|
|
847
751
|
if (x.eq(r1) || r1.eq(r2)) return r1;
|
|
848
752
|
if (x.eq(r2)) return r2;
|
|
@@ -860,8 +764,7 @@ function ApplyUnsignedRoundingMode(x, r1, r2, unsignedRoundingMode) {
|
|
|
860
764
|
if (r1.div(r2.minus(r1)).mod(2).isZero()) return r1;
|
|
861
765
|
return r2;
|
|
862
766
|
}
|
|
863
|
-
|
|
864
|
-
//#region packages/ecma402-abstract/NumberFormat/decimal-cache.js
|
|
767
|
+
// packages/ecma402-abstract/NumberFormat/decimal-cache.js
|
|
865
768
|
/**
|
|
866
769
|
* Cached function to compute powers of 10 for Decimal.js operations.
|
|
867
770
|
* This cache significantly reduces overhead in ComputeExponent and ToRawFixed
|
|
@@ -875,8 +778,7 @@ function ApplyUnsignedRoundingMode(x, r1, r2, unsignedRoundingMode) {
|
|
|
875
778
|
const getPowerOf10 = memoize((exponent) => {
|
|
876
779
|
return Decimal.pow(10, exponent);
|
|
877
780
|
});
|
|
878
|
-
|
|
879
|
-
//#region packages/ecma402-abstract/NumberFormat/ToRawFixed.js
|
|
781
|
+
// packages/ecma402-abstract/NumberFormat/ToRawFixed.js
|
|
880
782
|
function ToRawFixedFn(n, f) {
|
|
881
783
|
return n.times(getPowerOf10(-f));
|
|
882
784
|
}
|
|
@@ -941,8 +843,7 @@ function ToRawFixed(x, minFraction, maxFraction, roundingIncrement, unsignedRoun
|
|
|
941
843
|
roundingMagnitude: -f
|
|
942
844
|
};
|
|
943
845
|
}
|
|
944
|
-
|
|
945
|
-
//#region packages/ecma402-abstract/NumberFormat/ToRawPrecision.js
|
|
846
|
+
// packages/ecma402-abstract/NumberFormat/ToRawPrecision.js
|
|
946
847
|
function findN1E1R1(x, p) {
|
|
947
848
|
const maxN1 = getPowerOf10(p);
|
|
948
849
|
const minN1 = getPowerOf10(p - 1);
|
|
@@ -1077,8 +978,7 @@ function ToRawPrecision(x, minPrecision, maxPrecision, unsignedRoundingMode) {
|
|
|
1077
978
|
roundingMagnitude: e - p + 1
|
|
1078
979
|
};
|
|
1079
980
|
}
|
|
1080
|
-
|
|
1081
|
-
//#region packages/ecma402-abstract/NumberFormat/FormatNumericToString.js
|
|
981
|
+
// packages/ecma402-abstract/NumberFormat/FormatNumericToString.js
|
|
1082
982
|
/**
|
|
1083
983
|
* https://tc39.es/ecma402/#sec-formatnumberstring
|
|
1084
984
|
*/
|
|
@@ -1134,8 +1034,7 @@ function FormatNumericToString(intlObject, _x) {
|
|
|
1134
1034
|
formattedString: string
|
|
1135
1035
|
};
|
|
1136
1036
|
}
|
|
1137
|
-
|
|
1138
|
-
//#region packages/ecma402-abstract/PluralRules/ResolvePlural.js
|
|
1037
|
+
// packages/ecma402-abstract/PluralRules/ResolvePlural.js
|
|
1139
1038
|
/**
|
|
1140
1039
|
* ResolvePluralInternal ( pluralRules, n )
|
|
1141
1040
|
*
|
|
@@ -1194,8 +1093,7 @@ function ResolvePlural(pl, n, { getInternalSlots, PluralRuleSelect }) {
|
|
|
1194
1093
|
PluralRuleSelect
|
|
1195
1094
|
}).pluralCategory;
|
|
1196
1095
|
}
|
|
1197
|
-
|
|
1198
|
-
//#region packages/ecma402-abstract/PluralRules/ResolvePluralRange.js
|
|
1096
|
+
// packages/ecma402-abstract/PluralRules/ResolvePluralRange.js
|
|
1199
1097
|
/**
|
|
1200
1098
|
* ResolvePluralRange ( pluralRules, x, y )
|
|
1201
1099
|
*
|
|
@@ -1230,8 +1128,7 @@ function ResolvePluralRange(pluralRules, x, y, { getInternalSlots, PluralRuleSel
|
|
|
1230
1128
|
const { locale, type } = internalSlots;
|
|
1231
1129
|
return PluralRuleSelectRange(locale, type, xp.pluralCategory, yp.pluralCategory);
|
|
1232
1130
|
}
|
|
1233
|
-
|
|
1234
|
-
//#region packages/intl-pluralrules/get_internal_slots.ts
|
|
1131
|
+
// packages/intl-pluralrules/get_internal_slots.ts
|
|
1235
1132
|
const internalSlotMap = /* @__PURE__ */ new WeakMap();
|
|
1236
1133
|
function getInternalSlots(x) {
|
|
1237
1134
|
let internalSlots = internalSlotMap.get(x);
|
|
@@ -1241,8 +1138,7 @@ function getInternalSlots(x) {
|
|
|
1241
1138
|
}
|
|
1242
1139
|
return internalSlots;
|
|
1243
1140
|
}
|
|
1244
|
-
|
|
1245
|
-
//#region packages/intl-pluralrules/index.ts
|
|
1141
|
+
// packages/intl-pluralrules/index.ts
|
|
1246
1142
|
function validateInstance(instance, method) {
|
|
1247
1143
|
if (!(instance instanceof PluralRules)) throw new TypeError(`Method Intl.PluralRules.prototype.${method} called on incompatible receiver ${String(instance)}`);
|
|
1248
1144
|
}
|
|
@@ -1385,7 +1281,8 @@ var PluralRules = class PluralRules {
|
|
|
1385
1281
|
return SupportedLocales(PluralRules.availableLocales, CanonicalizeLocaleList(locales), options);
|
|
1386
1282
|
}
|
|
1387
1283
|
static __addLocaleData(...data) {
|
|
1388
|
-
for (const { data: d, locale } of data) {
|
|
1284
|
+
for (const { data: d, locale: tag } of data) {
|
|
1285
|
+
const [locale] = CanonicalizeLocaleList(tag);
|
|
1389
1286
|
registerLocaleData(locale, d, PluralRules.localeData, PluralRules.availableLocales);
|
|
1390
1287
|
if (!PluralRules.__defaultLocale) PluralRules.__defaultLocale = locale;
|
|
1391
1288
|
}
|
|
@@ -1449,6 +1346,5 @@ if (buf) {
|
|
|
1449
1346
|
for (const d of buf) PluralRules.__addLocaleData(d);
|
|
1450
1347
|
delete globalThis.__FORMATJS_PLURALRULES_DATA__;
|
|
1451
1348
|
}
|
|
1452
|
-
//#endregion
|
|
1453
1349
|
|
|
1454
1350
|
//# sourceMappingURL=polyfill-force.js.map
|