@formatjs/intl-displaynames 7.3.2 → 7.3.3
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/package.json +4 -4
- package/polyfill.iife.js +6 -579
- package/polyfill.js +1 -1
- package/polyfill.js.map +1 -1
- package/should-polyfill.js +1 -1
- package/should-polyfill.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formatjs/intl-displaynames",
|
|
3
3
|
"description": "Polyfill for: https://tc39.es/proposal-intl-displaynames",
|
|
4
|
-
"version": "7.3.
|
|
4
|
+
"version": "7.3.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Linjie Ding <pyrocat101@users.noreply.github.com>",
|
|
7
7
|
"type": "module",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"./locale-data": "./locale-data"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@formatjs/intl-localematcher": "0.8.
|
|
18
|
+
"@formatjs/intl-localematcher": "0.8.4"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@formatjs/intl-getcanonicallocales": "3.2.
|
|
22
|
-
"@formatjs/intl-locale": "5.3.
|
|
21
|
+
"@formatjs/intl-getcanonicallocales": "3.2.4",
|
|
22
|
+
"@formatjs/intl-locale": "5.3.3"
|
|
23
23
|
},
|
|
24
24
|
"bugs": "https://github.com/formatjs/formatjs/issues",
|
|
25
25
|
"homepage": "https://github.com/formatjs/formatjs",
|
package/polyfill.iife.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { supportedLocales } from "@formatjs_generated/cldr.supported-locales/intl-displaynames.js";
|
|
1
2
|
//#region packages/ecma262-abstract/ToString.js
|
|
2
3
|
/**
|
|
3
4
|
* https://tc39.es/ecma262/#sec-tostring
|
|
@@ -3065,7 +3066,7 @@ const regions = {
|
|
|
3065
3066
|
"VG",
|
|
3066
3067
|
"VI"
|
|
3067
3068
|
],
|
|
3068
|
-
EU: [
|
|
3069
|
+
"EU": [
|
|
3069
3070
|
"AT",
|
|
3070
3071
|
"BE",
|
|
3071
3072
|
"BG",
|
|
@@ -3095,7 +3096,7 @@ const regions = {
|
|
|
3095
3096
|
"SI",
|
|
3096
3097
|
"SK"
|
|
3097
3098
|
],
|
|
3098
|
-
EZ: [
|
|
3099
|
+
"EZ": [
|
|
3099
3100
|
"AT",
|
|
3100
3101
|
"BE",
|
|
3101
3102
|
"CY",
|
|
@@ -3117,7 +3118,7 @@ const regions = {
|
|
|
3117
3118
|
"SI",
|
|
3118
3119
|
"SK"
|
|
3119
3120
|
],
|
|
3120
|
-
QO: [
|
|
3121
|
+
"QO": [
|
|
3121
3122
|
"AC",
|
|
3122
3123
|
"AQ",
|
|
3123
3124
|
"CP",
|
|
@@ -3125,7 +3126,7 @@ const regions = {
|
|
|
3125
3126
|
"QO",
|
|
3126
3127
|
"TA"
|
|
3127
3128
|
],
|
|
3128
|
-
UN: [
|
|
3129
|
+
"UN": [
|
|
3129
3130
|
"AD",
|
|
3130
3131
|
"AE",
|
|
3131
3132
|
"AF",
|
|
@@ -3591,6 +3592,7 @@ function findBestMatch(requestedLocales, supportedLocales, threshold = DEFAULT_M
|
|
|
3591
3592
|
} catch {}
|
|
3592
3593
|
}
|
|
3593
3594
|
if (result.matchedSupportedLocale && lowestDistance === 0) return result;
|
|
3595
|
+
lowestDistance = Infinity;
|
|
3594
3596
|
requestedLocales.forEach((desired, i) => {
|
|
3595
3597
|
if (!result.distances[desired]) result.distances[desired] = {};
|
|
3596
3598
|
canonicalizedSupportedLocales.forEach((canonicalLocale, supportedIndex) => {
|
|
@@ -4083,581 +4085,6 @@ function getNameForTypeLanguage(languageDisplay, localeData, style, canonicalCod
|
|
|
4083
4085
|
} else return name;
|
|
4084
4086
|
}
|
|
4085
4087
|
//#endregion
|
|
4086
|
-
//#region packages/intl-displaynames/supported-locales.generated.ts
|
|
4087
|
-
const supportedLocales = [
|
|
4088
|
-
"af",
|
|
4089
|
-
"af-NA",
|
|
4090
|
-
"agq",
|
|
4091
|
-
"ak",
|
|
4092
|
-
"am",
|
|
4093
|
-
"ar",
|
|
4094
|
-
"ar-AE",
|
|
4095
|
-
"ar-BH",
|
|
4096
|
-
"ar-DJ",
|
|
4097
|
-
"ar-DZ",
|
|
4098
|
-
"ar-EG",
|
|
4099
|
-
"ar-EH",
|
|
4100
|
-
"ar-ER",
|
|
4101
|
-
"ar-IL",
|
|
4102
|
-
"ar-IQ",
|
|
4103
|
-
"ar-JO",
|
|
4104
|
-
"ar-KM",
|
|
4105
|
-
"ar-KW",
|
|
4106
|
-
"ar-LB",
|
|
4107
|
-
"ar-LY",
|
|
4108
|
-
"ar-MA",
|
|
4109
|
-
"ar-MR",
|
|
4110
|
-
"ar-OM",
|
|
4111
|
-
"ar-PS",
|
|
4112
|
-
"ar-QA",
|
|
4113
|
-
"ar-SA",
|
|
4114
|
-
"ar-SD",
|
|
4115
|
-
"ar-SO",
|
|
4116
|
-
"ar-SS",
|
|
4117
|
-
"ar-SY",
|
|
4118
|
-
"ar-TD",
|
|
4119
|
-
"ar-TN",
|
|
4120
|
-
"ar-YE",
|
|
4121
|
-
"as",
|
|
4122
|
-
"asa",
|
|
4123
|
-
"ast",
|
|
4124
|
-
"az",
|
|
4125
|
-
"az-Cyrl",
|
|
4126
|
-
"az-Latn",
|
|
4127
|
-
"bas",
|
|
4128
|
-
"be",
|
|
4129
|
-
"be-tarask",
|
|
4130
|
-
"bem",
|
|
4131
|
-
"bez",
|
|
4132
|
-
"bg",
|
|
4133
|
-
"bm",
|
|
4134
|
-
"bn",
|
|
4135
|
-
"bn-IN",
|
|
4136
|
-
"bo",
|
|
4137
|
-
"bo-IN",
|
|
4138
|
-
"br",
|
|
4139
|
-
"brx",
|
|
4140
|
-
"bs",
|
|
4141
|
-
"bs-Cyrl",
|
|
4142
|
-
"bs-Latn",
|
|
4143
|
-
"ca",
|
|
4144
|
-
"ca-AD",
|
|
4145
|
-
"ca-ES-valencia",
|
|
4146
|
-
"ca-FR",
|
|
4147
|
-
"ca-IT",
|
|
4148
|
-
"ccp",
|
|
4149
|
-
"ccp-IN",
|
|
4150
|
-
"ce",
|
|
4151
|
-
"ceb",
|
|
4152
|
-
"cgg",
|
|
4153
|
-
"chr",
|
|
4154
|
-
"ckb",
|
|
4155
|
-
"ckb-IR",
|
|
4156
|
-
"cs",
|
|
4157
|
-
"cy",
|
|
4158
|
-
"da",
|
|
4159
|
-
"da-GL",
|
|
4160
|
-
"dav",
|
|
4161
|
-
"de",
|
|
4162
|
-
"de-AT",
|
|
4163
|
-
"de-BE",
|
|
4164
|
-
"de-CH",
|
|
4165
|
-
"de-IT",
|
|
4166
|
-
"de-LI",
|
|
4167
|
-
"de-LU",
|
|
4168
|
-
"dje",
|
|
4169
|
-
"doi",
|
|
4170
|
-
"dsb",
|
|
4171
|
-
"dua",
|
|
4172
|
-
"dyo",
|
|
4173
|
-
"dz",
|
|
4174
|
-
"ebu",
|
|
4175
|
-
"ee",
|
|
4176
|
-
"ee-TG",
|
|
4177
|
-
"el",
|
|
4178
|
-
"el-CY",
|
|
4179
|
-
"en",
|
|
4180
|
-
"en-001",
|
|
4181
|
-
"en-150",
|
|
4182
|
-
"en-AE",
|
|
4183
|
-
"en-AG",
|
|
4184
|
-
"en-AI",
|
|
4185
|
-
"en-AS",
|
|
4186
|
-
"en-AT",
|
|
4187
|
-
"en-AU",
|
|
4188
|
-
"en-BB",
|
|
4189
|
-
"en-BE",
|
|
4190
|
-
"en-BI",
|
|
4191
|
-
"en-BM",
|
|
4192
|
-
"en-BS",
|
|
4193
|
-
"en-BW",
|
|
4194
|
-
"en-BZ",
|
|
4195
|
-
"en-CA",
|
|
4196
|
-
"en-CC",
|
|
4197
|
-
"en-CH",
|
|
4198
|
-
"en-CK",
|
|
4199
|
-
"en-CM",
|
|
4200
|
-
"en-CX",
|
|
4201
|
-
"en-CY",
|
|
4202
|
-
"en-DE",
|
|
4203
|
-
"en-DG",
|
|
4204
|
-
"en-DK",
|
|
4205
|
-
"en-DM",
|
|
4206
|
-
"en-ER",
|
|
4207
|
-
"en-FI",
|
|
4208
|
-
"en-FJ",
|
|
4209
|
-
"en-FK",
|
|
4210
|
-
"en-FM",
|
|
4211
|
-
"en-GB",
|
|
4212
|
-
"en-GD",
|
|
4213
|
-
"en-GG",
|
|
4214
|
-
"en-GH",
|
|
4215
|
-
"en-GI",
|
|
4216
|
-
"en-GM",
|
|
4217
|
-
"en-GU",
|
|
4218
|
-
"en-GY",
|
|
4219
|
-
"en-HK",
|
|
4220
|
-
"en-IE",
|
|
4221
|
-
"en-IL",
|
|
4222
|
-
"en-IM",
|
|
4223
|
-
"en-IN",
|
|
4224
|
-
"en-IO",
|
|
4225
|
-
"en-JE",
|
|
4226
|
-
"en-JM",
|
|
4227
|
-
"en-KE",
|
|
4228
|
-
"en-KI",
|
|
4229
|
-
"en-KN",
|
|
4230
|
-
"en-KY",
|
|
4231
|
-
"en-LC",
|
|
4232
|
-
"en-LR",
|
|
4233
|
-
"en-LS",
|
|
4234
|
-
"en-MG",
|
|
4235
|
-
"en-MH",
|
|
4236
|
-
"en-MO",
|
|
4237
|
-
"en-MP",
|
|
4238
|
-
"en-MS",
|
|
4239
|
-
"en-MT",
|
|
4240
|
-
"en-MU",
|
|
4241
|
-
"en-MW",
|
|
4242
|
-
"en-MY",
|
|
4243
|
-
"en-NA",
|
|
4244
|
-
"en-NF",
|
|
4245
|
-
"en-NG",
|
|
4246
|
-
"en-NL",
|
|
4247
|
-
"en-NR",
|
|
4248
|
-
"en-NU",
|
|
4249
|
-
"en-NZ",
|
|
4250
|
-
"en-PG",
|
|
4251
|
-
"en-PH",
|
|
4252
|
-
"en-PK",
|
|
4253
|
-
"en-PN",
|
|
4254
|
-
"en-PR",
|
|
4255
|
-
"en-PW",
|
|
4256
|
-
"en-RW",
|
|
4257
|
-
"en-SB",
|
|
4258
|
-
"en-SC",
|
|
4259
|
-
"en-SD",
|
|
4260
|
-
"en-SE",
|
|
4261
|
-
"en-SG",
|
|
4262
|
-
"en-SH",
|
|
4263
|
-
"en-SI",
|
|
4264
|
-
"en-SL",
|
|
4265
|
-
"en-SS",
|
|
4266
|
-
"en-SX",
|
|
4267
|
-
"en-SZ",
|
|
4268
|
-
"en-TC",
|
|
4269
|
-
"en-TK",
|
|
4270
|
-
"en-TO",
|
|
4271
|
-
"en-TT",
|
|
4272
|
-
"en-TV",
|
|
4273
|
-
"en-TZ",
|
|
4274
|
-
"en-UG",
|
|
4275
|
-
"en-UM",
|
|
4276
|
-
"en-VC",
|
|
4277
|
-
"en-VG",
|
|
4278
|
-
"en-VI",
|
|
4279
|
-
"en-VU",
|
|
4280
|
-
"en-WS",
|
|
4281
|
-
"en-ZA",
|
|
4282
|
-
"en-ZM",
|
|
4283
|
-
"en-ZW",
|
|
4284
|
-
"eo",
|
|
4285
|
-
"es",
|
|
4286
|
-
"es-419",
|
|
4287
|
-
"es-AR",
|
|
4288
|
-
"es-BO",
|
|
4289
|
-
"es-BR",
|
|
4290
|
-
"es-BZ",
|
|
4291
|
-
"es-CL",
|
|
4292
|
-
"es-CO",
|
|
4293
|
-
"es-CR",
|
|
4294
|
-
"es-CU",
|
|
4295
|
-
"es-DO",
|
|
4296
|
-
"es-EA",
|
|
4297
|
-
"es-EC",
|
|
4298
|
-
"es-GQ",
|
|
4299
|
-
"es-GT",
|
|
4300
|
-
"es-HN",
|
|
4301
|
-
"es-IC",
|
|
4302
|
-
"es-MX",
|
|
4303
|
-
"es-NI",
|
|
4304
|
-
"es-PA",
|
|
4305
|
-
"es-PE",
|
|
4306
|
-
"es-PH",
|
|
4307
|
-
"es-PR",
|
|
4308
|
-
"es-PY",
|
|
4309
|
-
"es-SV",
|
|
4310
|
-
"es-US",
|
|
4311
|
-
"es-UY",
|
|
4312
|
-
"es-VE",
|
|
4313
|
-
"et",
|
|
4314
|
-
"eu",
|
|
4315
|
-
"ewo",
|
|
4316
|
-
"fa",
|
|
4317
|
-
"fa-AF",
|
|
4318
|
-
"ff",
|
|
4319
|
-
"ff-Adlm",
|
|
4320
|
-
"ff-Adlm-BF",
|
|
4321
|
-
"ff-Adlm-CM",
|
|
4322
|
-
"ff-Adlm-GH",
|
|
4323
|
-
"ff-Adlm-GM",
|
|
4324
|
-
"ff-Adlm-GW",
|
|
4325
|
-
"ff-Adlm-LR",
|
|
4326
|
-
"ff-Adlm-MR",
|
|
4327
|
-
"ff-Adlm-NE",
|
|
4328
|
-
"ff-Adlm-NG",
|
|
4329
|
-
"ff-Adlm-SL",
|
|
4330
|
-
"ff-Adlm-SN",
|
|
4331
|
-
"ff-Latn",
|
|
4332
|
-
"ff-Latn-BF",
|
|
4333
|
-
"ff-Latn-CM",
|
|
4334
|
-
"ff-Latn-GH",
|
|
4335
|
-
"ff-Latn-GM",
|
|
4336
|
-
"ff-Latn-GN",
|
|
4337
|
-
"ff-Latn-GW",
|
|
4338
|
-
"ff-Latn-LR",
|
|
4339
|
-
"ff-Latn-MR",
|
|
4340
|
-
"ff-Latn-NE",
|
|
4341
|
-
"ff-Latn-NG",
|
|
4342
|
-
"ff-Latn-SL",
|
|
4343
|
-
"fi",
|
|
4344
|
-
"fil",
|
|
4345
|
-
"fo",
|
|
4346
|
-
"fo-DK",
|
|
4347
|
-
"fr",
|
|
4348
|
-
"fr-BE",
|
|
4349
|
-
"fr-BF",
|
|
4350
|
-
"fr-BI",
|
|
4351
|
-
"fr-BJ",
|
|
4352
|
-
"fr-BL",
|
|
4353
|
-
"fr-CA",
|
|
4354
|
-
"fr-CD",
|
|
4355
|
-
"fr-CF",
|
|
4356
|
-
"fr-CG",
|
|
4357
|
-
"fr-CH",
|
|
4358
|
-
"fr-CI",
|
|
4359
|
-
"fr-CM",
|
|
4360
|
-
"fr-DJ",
|
|
4361
|
-
"fr-DZ",
|
|
4362
|
-
"fr-GA",
|
|
4363
|
-
"fr-GF",
|
|
4364
|
-
"fr-GN",
|
|
4365
|
-
"fr-GP",
|
|
4366
|
-
"fr-GQ",
|
|
4367
|
-
"fr-HT",
|
|
4368
|
-
"fr-KM",
|
|
4369
|
-
"fr-LU",
|
|
4370
|
-
"fr-MA",
|
|
4371
|
-
"fr-MC",
|
|
4372
|
-
"fr-MF",
|
|
4373
|
-
"fr-MG",
|
|
4374
|
-
"fr-ML",
|
|
4375
|
-
"fr-MQ",
|
|
4376
|
-
"fr-MR",
|
|
4377
|
-
"fr-MU",
|
|
4378
|
-
"fr-NC",
|
|
4379
|
-
"fr-NE",
|
|
4380
|
-
"fr-PF",
|
|
4381
|
-
"fr-PM",
|
|
4382
|
-
"fr-RE",
|
|
4383
|
-
"fr-RW",
|
|
4384
|
-
"fr-SC",
|
|
4385
|
-
"fr-SN",
|
|
4386
|
-
"fr-SY",
|
|
4387
|
-
"fr-TD",
|
|
4388
|
-
"fr-TG",
|
|
4389
|
-
"fr-TN",
|
|
4390
|
-
"fr-VU",
|
|
4391
|
-
"fr-WF",
|
|
4392
|
-
"fr-YT",
|
|
4393
|
-
"fur",
|
|
4394
|
-
"fy",
|
|
4395
|
-
"ga",
|
|
4396
|
-
"ga-GB",
|
|
4397
|
-
"gd",
|
|
4398
|
-
"gl",
|
|
4399
|
-
"gsw",
|
|
4400
|
-
"gsw-FR",
|
|
4401
|
-
"gsw-LI",
|
|
4402
|
-
"gu",
|
|
4403
|
-
"guz",
|
|
4404
|
-
"gv",
|
|
4405
|
-
"ha",
|
|
4406
|
-
"ha-GH",
|
|
4407
|
-
"ha-NE",
|
|
4408
|
-
"haw",
|
|
4409
|
-
"he",
|
|
4410
|
-
"hi",
|
|
4411
|
-
"hr",
|
|
4412
|
-
"hr-BA",
|
|
4413
|
-
"hsb",
|
|
4414
|
-
"hu",
|
|
4415
|
-
"hy",
|
|
4416
|
-
"ia",
|
|
4417
|
-
"id",
|
|
4418
|
-
"ig",
|
|
4419
|
-
"ii",
|
|
4420
|
-
"is",
|
|
4421
|
-
"it",
|
|
4422
|
-
"it-CH",
|
|
4423
|
-
"it-SM",
|
|
4424
|
-
"it-VA",
|
|
4425
|
-
"ja",
|
|
4426
|
-
"jgo",
|
|
4427
|
-
"jmc",
|
|
4428
|
-
"jv",
|
|
4429
|
-
"ka",
|
|
4430
|
-
"kab",
|
|
4431
|
-
"kam",
|
|
4432
|
-
"kde",
|
|
4433
|
-
"kea",
|
|
4434
|
-
"kgp",
|
|
4435
|
-
"khq",
|
|
4436
|
-
"ki",
|
|
4437
|
-
"kk",
|
|
4438
|
-
"kkj",
|
|
4439
|
-
"kl",
|
|
4440
|
-
"kln",
|
|
4441
|
-
"km",
|
|
4442
|
-
"kn",
|
|
4443
|
-
"ko",
|
|
4444
|
-
"ko-KP",
|
|
4445
|
-
"kok",
|
|
4446
|
-
"ks",
|
|
4447
|
-
"ks-Arab",
|
|
4448
|
-
"ksb",
|
|
4449
|
-
"ksf",
|
|
4450
|
-
"ksh",
|
|
4451
|
-
"ku",
|
|
4452
|
-
"kw",
|
|
4453
|
-
"ky",
|
|
4454
|
-
"lag",
|
|
4455
|
-
"lb",
|
|
4456
|
-
"lg",
|
|
4457
|
-
"lkt",
|
|
4458
|
-
"ln",
|
|
4459
|
-
"ln-AO",
|
|
4460
|
-
"ln-CF",
|
|
4461
|
-
"ln-CG",
|
|
4462
|
-
"lo",
|
|
4463
|
-
"lrc",
|
|
4464
|
-
"lrc-IQ",
|
|
4465
|
-
"lt",
|
|
4466
|
-
"lu",
|
|
4467
|
-
"luo",
|
|
4468
|
-
"luy",
|
|
4469
|
-
"lv",
|
|
4470
|
-
"mai",
|
|
4471
|
-
"mas",
|
|
4472
|
-
"mas-TZ",
|
|
4473
|
-
"mer",
|
|
4474
|
-
"mfe",
|
|
4475
|
-
"mg",
|
|
4476
|
-
"mgh",
|
|
4477
|
-
"mgo",
|
|
4478
|
-
"mi",
|
|
4479
|
-
"mk",
|
|
4480
|
-
"ml",
|
|
4481
|
-
"mn",
|
|
4482
|
-
"mni",
|
|
4483
|
-
"mni-Beng",
|
|
4484
|
-
"mr",
|
|
4485
|
-
"ms",
|
|
4486
|
-
"ms-BN",
|
|
4487
|
-
"ms-ID",
|
|
4488
|
-
"ms-SG",
|
|
4489
|
-
"mt",
|
|
4490
|
-
"mua",
|
|
4491
|
-
"my",
|
|
4492
|
-
"mzn",
|
|
4493
|
-
"naq",
|
|
4494
|
-
"nb",
|
|
4495
|
-
"nb-SJ",
|
|
4496
|
-
"nd",
|
|
4497
|
-
"nds",
|
|
4498
|
-
"nds-NL",
|
|
4499
|
-
"ne",
|
|
4500
|
-
"ne-IN",
|
|
4501
|
-
"nl",
|
|
4502
|
-
"nl-AW",
|
|
4503
|
-
"nl-BE",
|
|
4504
|
-
"nl-BQ",
|
|
4505
|
-
"nl-CW",
|
|
4506
|
-
"nl-SR",
|
|
4507
|
-
"nl-SX",
|
|
4508
|
-
"nmg",
|
|
4509
|
-
"nn",
|
|
4510
|
-
"nnh",
|
|
4511
|
-
"no",
|
|
4512
|
-
"nus",
|
|
4513
|
-
"nyn",
|
|
4514
|
-
"om",
|
|
4515
|
-
"om-KE",
|
|
4516
|
-
"or",
|
|
4517
|
-
"os",
|
|
4518
|
-
"os-RU",
|
|
4519
|
-
"pa",
|
|
4520
|
-
"pa-Arab",
|
|
4521
|
-
"pa-Guru",
|
|
4522
|
-
"pcm",
|
|
4523
|
-
"pl",
|
|
4524
|
-
"ps",
|
|
4525
|
-
"ps-PK",
|
|
4526
|
-
"pt",
|
|
4527
|
-
"pt-AO",
|
|
4528
|
-
"pt-CH",
|
|
4529
|
-
"pt-CV",
|
|
4530
|
-
"pt-GQ",
|
|
4531
|
-
"pt-GW",
|
|
4532
|
-
"pt-LU",
|
|
4533
|
-
"pt-MO",
|
|
4534
|
-
"pt-MZ",
|
|
4535
|
-
"pt-PT",
|
|
4536
|
-
"pt-ST",
|
|
4537
|
-
"pt-TL",
|
|
4538
|
-
"qu",
|
|
4539
|
-
"qu-BO",
|
|
4540
|
-
"qu-EC",
|
|
4541
|
-
"rm",
|
|
4542
|
-
"rn",
|
|
4543
|
-
"ro",
|
|
4544
|
-
"ro-MD",
|
|
4545
|
-
"rof",
|
|
4546
|
-
"ru",
|
|
4547
|
-
"ru-BY",
|
|
4548
|
-
"ru-KG",
|
|
4549
|
-
"ru-KZ",
|
|
4550
|
-
"ru-MD",
|
|
4551
|
-
"ru-UA",
|
|
4552
|
-
"rw",
|
|
4553
|
-
"rwk",
|
|
4554
|
-
"sa",
|
|
4555
|
-
"sah",
|
|
4556
|
-
"saq",
|
|
4557
|
-
"sat",
|
|
4558
|
-
"sat-Olck",
|
|
4559
|
-
"sbp",
|
|
4560
|
-
"sc",
|
|
4561
|
-
"sd",
|
|
4562
|
-
"sd-Arab",
|
|
4563
|
-
"sd-Deva",
|
|
4564
|
-
"se",
|
|
4565
|
-
"se-FI",
|
|
4566
|
-
"se-SE",
|
|
4567
|
-
"seh",
|
|
4568
|
-
"ses",
|
|
4569
|
-
"sg",
|
|
4570
|
-
"shi",
|
|
4571
|
-
"shi-Latn",
|
|
4572
|
-
"shi-Tfng",
|
|
4573
|
-
"si",
|
|
4574
|
-
"sk",
|
|
4575
|
-
"sl",
|
|
4576
|
-
"smn",
|
|
4577
|
-
"sn",
|
|
4578
|
-
"so",
|
|
4579
|
-
"so-DJ",
|
|
4580
|
-
"so-ET",
|
|
4581
|
-
"so-KE",
|
|
4582
|
-
"sq",
|
|
4583
|
-
"sq-MK",
|
|
4584
|
-
"sq-XK",
|
|
4585
|
-
"sr",
|
|
4586
|
-
"sr-Cyrl",
|
|
4587
|
-
"sr-Cyrl-BA",
|
|
4588
|
-
"sr-Cyrl-ME",
|
|
4589
|
-
"sr-Cyrl-XK",
|
|
4590
|
-
"sr-Latn",
|
|
4591
|
-
"sr-Latn-BA",
|
|
4592
|
-
"sr-Latn-ME",
|
|
4593
|
-
"sr-Latn-XK",
|
|
4594
|
-
"su",
|
|
4595
|
-
"su-Latn",
|
|
4596
|
-
"sv",
|
|
4597
|
-
"sv-AX",
|
|
4598
|
-
"sv-FI",
|
|
4599
|
-
"sw",
|
|
4600
|
-
"sw-CD",
|
|
4601
|
-
"sw-KE",
|
|
4602
|
-
"sw-UG",
|
|
4603
|
-
"ta",
|
|
4604
|
-
"ta-LK",
|
|
4605
|
-
"ta-MY",
|
|
4606
|
-
"ta-SG",
|
|
4607
|
-
"te",
|
|
4608
|
-
"teo",
|
|
4609
|
-
"teo-KE",
|
|
4610
|
-
"tg",
|
|
4611
|
-
"th",
|
|
4612
|
-
"ti",
|
|
4613
|
-
"ti-ER",
|
|
4614
|
-
"tk",
|
|
4615
|
-
"to",
|
|
4616
|
-
"tr",
|
|
4617
|
-
"tr-CY",
|
|
4618
|
-
"tt",
|
|
4619
|
-
"twq",
|
|
4620
|
-
"tzm",
|
|
4621
|
-
"ug",
|
|
4622
|
-
"uk",
|
|
4623
|
-
"und",
|
|
4624
|
-
"ur",
|
|
4625
|
-
"ur-IN",
|
|
4626
|
-
"uz",
|
|
4627
|
-
"uz-Arab",
|
|
4628
|
-
"uz-Cyrl",
|
|
4629
|
-
"uz-Latn",
|
|
4630
|
-
"vai",
|
|
4631
|
-
"vai-Latn",
|
|
4632
|
-
"vai-Vaii",
|
|
4633
|
-
"vi",
|
|
4634
|
-
"vun",
|
|
4635
|
-
"wae",
|
|
4636
|
-
"wo",
|
|
4637
|
-
"xh",
|
|
4638
|
-
"xog",
|
|
4639
|
-
"yav",
|
|
4640
|
-
"yi",
|
|
4641
|
-
"yo",
|
|
4642
|
-
"yo-BJ",
|
|
4643
|
-
"yrl",
|
|
4644
|
-
"yrl-CO",
|
|
4645
|
-
"yrl-VE",
|
|
4646
|
-
"yue",
|
|
4647
|
-
"yue-Hans",
|
|
4648
|
-
"yue-Hant",
|
|
4649
|
-
"zgh",
|
|
4650
|
-
"zh",
|
|
4651
|
-
"zh-Hans",
|
|
4652
|
-
"zh-Hans-HK",
|
|
4653
|
-
"zh-Hans-MO",
|
|
4654
|
-
"zh-Hans-SG",
|
|
4655
|
-
"zh-Hant",
|
|
4656
|
-
"zh-Hant-HK",
|
|
4657
|
-
"zh-Hant-MO",
|
|
4658
|
-
"zu"
|
|
4659
|
-
];
|
|
4660
|
-
//#endregion
|
|
4661
4088
|
//#region packages/intl-displaynames/should-polyfill.ts
|
|
4662
4089
|
/**
|
|
4663
4090
|
* https://bugs.chromium.org/p/chromium/issues/detail?id=1097432
|
package/polyfill.js
CHANGED
|
@@ -390,7 +390,7 @@ function getNameForTypeLanguage(languageDisplay, localeData, style, canonicalCod
|
|
|
390
390
|
} else return name;
|
|
391
391
|
}
|
|
392
392
|
//#endregion
|
|
393
|
-
//#region
|
|
393
|
+
//#region node_modules/.aspect_rules_js/@formatjs_generated+cldr.supported-locales@0.0.0/node_modules/@formatjs_generated/cldr.supported-locales/intl-displaynames.js
|
|
394
394
|
const supportedLocales = [
|
|
395
395
|
"af",
|
|
396
396
|
"af-NA",
|
package/polyfill.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"polyfill.js","names":[],"sources":["../../ecma262-abstract/ToString.js","../../ecma402-abstract/CanonicalizeLocaleList.js","../../ecma402-abstract/GetOption.js","../../ecma402-abstract/GetOptionsObject.js","../../ecma402-abstract/IsWellFormedCurrencyCode.js","../../ecma262-abstract/ToObject.js","../../ecma402-abstract/SupportedLocales.js","../../../node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/index.js","../../ecma402-abstract/utils.js","../../ecma402-abstract/DisplayNames/IsValidDateTimeFieldCode.js","../../ecma402-abstract/DisplayNames/CanonicalCodeForDisplayNames.js","../index.ts","../supported-locales.generated.ts","../should-polyfill.ts","../polyfill.ts"],"sourcesContent":["/**\n* https://tc39.es/ecma262/#sec-tostring\n*/\nexport function ToString(o) {\n\tif (typeof o === \"symbol\") {\n\t\tthrow TypeError(\"Cannot convert a Symbol value to a string\");\n\t}\n\treturn String(o);\n}\n","/**\n* http://ecma-international.org/ecma-402/7.0/index.html#sec-canonicalizelocalelist\n* @param locales\n*/\nexport function CanonicalizeLocaleList(locales) {\n\t// TODO\n\treturn Intl.getCanonicalLocales(locales);\n}\n","import { ToString } from \"#packages/ecma262-abstract/ToString.js\";\n/**\n* https://tc39.es/ecma402/#sec-getoption\n* @param opts\n* @param prop\n* @param type\n* @param values\n* @param fallback\n*/\nexport function GetOption(opts, prop, type, values, fallback) {\n\tif (typeof opts !== \"object\") {\n\t\tthrow new TypeError(\"Options must be an object\");\n\t}\n\tlet value = opts[prop];\n\tif (value !== undefined) {\n\t\tif (type !== \"boolean\" && type !== \"string\") {\n\t\t\tthrow new TypeError(\"invalid type\");\n\t\t}\n\t\tif (type === \"boolean\") {\n\t\t\tvalue = Boolean(value);\n\t\t}\n\t\tif (type === \"string\") {\n\t\t\tvalue = ToString(value);\n\t\t}\n\t\tif (values !== undefined && !values.filter((val) => val == value).length) {\n\t\t\tthrow new RangeError(`${value} is not within ${values.join(\", \")}`);\n\t\t}\n\t\treturn value;\n\t}\n\treturn fallback;\n}\n","/**\n* https://tc39.es/ecma402/#sec-getoptionsobject\n* @param options\n* @returns\n*/\nexport function GetOptionsObject(options) {\n\tif (typeof options === \"undefined\") {\n\t\treturn Object.create(null);\n\t}\n\tif (typeof options === \"object\") {\n\t\treturn options;\n\t}\n\tthrow new TypeError(\"Options must be an object\");\n}\n","/**\n* This follows https://tc39.es/ecma402/#sec-case-sensitivity-and-case-mapping\n* @param str string to convert\n*/\nfunction toUpperCase(str) {\n\treturn str.replace(/([a-z])/g, (_, c) => c.toUpperCase());\n}\nconst NOT_A_Z_REGEX = /[^A-Z]/;\n/**\n* https://tc39.es/ecma402/#sec-iswellformedcurrencycode\n*/\nexport function IsWellFormedCurrencyCode(currency) {\n\tcurrency = toUpperCase(currency);\n\tif (currency.length !== 3) {\n\t\treturn false;\n\t}\n\tif (NOT_A_Z_REGEX.test(currency)) {\n\t\treturn false;\n\t}\n\treturn true;\n}\n","/**\n* https://tc39.es/ecma262/#sec-toobject\n*/\nexport function ToObject(arg) {\n\tif (arg == null) {\n\t\tthrow new TypeError(\"undefined/null cannot be converted to object\");\n\t}\n\treturn Object(arg);\n}\n","import { LookupSupportedLocales } from \"@formatjs/intl-localematcher\";\nimport { ToObject } from \"#packages/ecma262-abstract/ToObject.js\";\nimport { GetOption } from \"#packages/ecma402-abstract/GetOption.js\";\n/**\n* https://tc39.es/ecma402/#sec-supportedlocales\n* @param availableLocales\n* @param requestedLocales\n* @param options\n*/\nexport function SupportedLocales(availableLocales, requestedLocales, options) {\n\tlet matcher = \"best fit\";\n\tif (options !== undefined) {\n\t\toptions = ToObject(options);\n\t\tmatcher = GetOption(options, \"localeMatcher\", \"string\", [\"lookup\", \"best fit\"], \"best fit\");\n\t}\n\tif (matcher === \"best fit\") {\n\t\treturn LookupSupportedLocales(Array.from(availableLocales), requestedLocales);\n\t}\n\treturn LookupSupportedLocales(Array.from(availableLocales), requestedLocales);\n}\n","//#region packages/fast-memoize/index.ts\nfunction memoize(fn, options) {\n\tconst cache = options && options.cache ? options.cache : cacheDefault;\n\tconst serializer = options && options.serializer ? options.serializer : serializerDefault;\n\treturn (options && options.strategy ? options.strategy : strategyDefault)(fn, {\n\t\tcache,\n\t\tserializer\n\t});\n}\nfunction isPrimitive(value) {\n\treturn value == null || typeof value === \"number\" || typeof value === \"boolean\";\n}\nfunction monadic(fn, cache, serializer, arg) {\n\tconst cacheKey = isPrimitive(arg) ? arg : serializer(arg);\n\tlet computedValue = cache.get(cacheKey);\n\tif (typeof computedValue === \"undefined\") {\n\t\tcomputedValue = fn.call(this, arg);\n\t\tcache.set(cacheKey, computedValue);\n\t}\n\treturn computedValue;\n}\nfunction variadic(fn, cache, serializer) {\n\tconst args = Array.prototype.slice.call(arguments, 3);\n\tconst cacheKey = serializer(args);\n\tlet computedValue = cache.get(cacheKey);\n\tif (typeof computedValue === \"undefined\") {\n\t\tcomputedValue = fn.apply(this, args);\n\t\tcache.set(cacheKey, computedValue);\n\t}\n\treturn computedValue;\n}\nfunction assemble(fn, context, strategy, cache, serialize) {\n\treturn strategy.bind(context, fn, cache, serialize);\n}\nfunction strategyDefault(fn, options) {\n\tconst strategy = fn.length === 1 ? monadic : variadic;\n\treturn assemble(fn, this, strategy, options.cache.create(), options.serializer);\n}\nfunction strategyVariadic(fn, options) {\n\treturn assemble(fn, this, variadic, options.cache.create(), options.serializer);\n}\nfunction strategyMonadic(fn, options) {\n\treturn assemble(fn, this, monadic, options.cache.create(), options.serializer);\n}\nconst serializerDefault = function() {\n\treturn JSON.stringify(arguments);\n};\nvar ObjectWithoutPrototypeCache = class {\n\tconstructor() {\n\t\tthis.cache = Object.create(null);\n\t}\n\tget(key) {\n\t\treturn this.cache[key];\n\t}\n\tset(key, value) {\n\t\tthis.cache[key] = value;\n\t}\n};\nconst cacheDefault = { create: function create() {\n\treturn new ObjectWithoutPrototypeCache();\n} };\nconst strategies = {\n\tvariadic: strategyVariadic,\n\tmonadic: strategyMonadic\n};\n//#endregion\nexport { memoize, strategies };\n\n//# sourceMappingURL=index.js.map","import { memoize, strategies } from \"@formatjs/fast-memoize\";\nexport function repeat(s, times) {\n\tif (typeof s.repeat === \"function\") {\n\t\treturn s.repeat(times);\n\t}\n\tconst arr = Array.from({ length: times });\n\tfor (let i = 0; i < arr.length; i++) {\n\t\tarr[i] = s;\n\t}\n\treturn arr.join(\"\");\n}\nexport function setInternalSlot(map, pl, field, value) {\n\tif (!map.get(pl)) {\n\t\tmap.set(pl, Object.create(null));\n\t}\n\tconst slots = map.get(pl);\n\tslots[field] = value;\n}\nexport function setMultiInternalSlots(map, pl, props) {\n\tfor (const k of Object.keys(props)) {\n\t\tsetInternalSlot(map, pl, k, props[k]);\n\t}\n}\nexport function getInternalSlot(map, pl, field) {\n\treturn getMultiInternalSlots(map, pl, field)[field];\n}\nexport function getMultiInternalSlots(map, pl, ...fields) {\n\tconst slots = map.get(pl);\n\tif (!slots) {\n\t\tthrow new TypeError(`${pl} InternalSlot has not been initialized`);\n\t}\n\treturn fields.reduce((all, f) => {\n\t\tall[f] = slots[f];\n\t\treturn all;\n\t}, Object.create(null));\n}\nexport function isLiteralPart(patternPart) {\n\treturn patternPart.type === \"literal\";\n}\n/*\n17 ECMAScript Standard Built-in Objects:\nEvery built-in Function object, including constructors, that is not\nidentified as an anonymous function has a name property whose value\nis a String.\n\nUnless otherwise specified, the name property of a built-in Function\nobject, if it exists, has the attributes { [[Writable]]: false,\n[[Enumerable]]: false, [[Configurable]]: true }.\n*/\nexport function defineProperty(target, name, { value }) {\n\tObject.defineProperty(target, name, {\n\t\tconfigurable: true,\n\t\tenumerable: false,\n\t\twritable: true,\n\t\tvalue\n\t});\n}\n/**\n* 7.3.5 CreateDataProperty\n* @param target\n* @param name\n* @param value\n*/\nexport function createDataProperty(target, name, value) {\n\tObject.defineProperty(target, name, {\n\t\tconfigurable: true,\n\t\tenumerable: true,\n\t\twritable: true,\n\t\tvalue\n\t});\n}\nexport const UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;\nexport function invariant(condition, message, Err = Error) {\n\tif (!condition) {\n\t\tthrow new Err(message);\n\t}\n}\nexport const createMemoizedNumberFormat = memoize((...args) => new Intl.NumberFormat(...args), { strategy: strategies.variadic });\nexport const createMemoizedPluralRules = memoize((...args) => new Intl.PluralRules(...args), { strategy: strategies.variadic });\nexport const createMemoizedLocale = memoize((...args) => new Intl.Locale(...args), { strategy: strategies.variadic });\nexport const createMemoizedListFormat = memoize((...args) => new Intl.ListFormat(...args), { strategy: strategies.variadic });\n","const CODES_FOR_DATE_TIME_FIELD = [\n\t\"era\",\n\t\"year\",\n\t\"quarter\",\n\t\"month\",\n\t\"weekOfYear\",\n\t\"weekday\",\n\t\"day\",\n\t\"dayPeriod\",\n\t\"hour\",\n\t\"minute\",\n\t\"second\",\n\t\"timeZoneName\"\n];\nexport function IsValidDateTimeFieldCode(field) {\n\treturn CODES_FOR_DATE_TIME_FIELD.indexOf(field) >= 0;\n}\n","import { CanonicalizeLocaleList } from \"#packages/ecma402-abstract/CanonicalizeLocaleList.js\";\nimport { IsWellFormedCurrencyCode } from \"#packages/ecma402-abstract/IsWellFormedCurrencyCode.js\";\nimport { invariant } from \"#packages/ecma402-abstract/utils.js\";\nimport { IsValidDateTimeFieldCode } from \"#packages/ecma402-abstract/DisplayNames/IsValidDateTimeFieldCode.js\";\nconst UNICODE_REGION_SUBTAG_REGEX = /^([a-z]{2}|[0-9]{3})$/i;\nconst ALPHA_4 = /^[a-z]{4}$/i;\nconst UNICODE_TYPE_REGEX = /^[a-z0-9]{3,8}([-_][a-z0-9]{3,8})*$/i;\nfunction isUnicodeRegionSubtag(region) {\n\treturn UNICODE_REGION_SUBTAG_REGEX.test(region);\n}\nfunction isUnicodeScriptSubtag(script) {\n\treturn ALPHA_4.test(script);\n}\nfunction isUnicodeLocaleIdentifierType(code) {\n\treturn UNICODE_TYPE_REGEX.test(code);\n}\nexport function CanonicalCodeForDisplayNames(type, code) {\n\tif (type === \"language\") {\n\t\treturn CanonicalizeLocaleList([code])[0];\n\t}\n\tif (type === \"region\") {\n\t\tif (!isUnicodeRegionSubtag(code)) {\n\t\t\tthrow RangeError(\"invalid region\");\n\t\t}\n\t\treturn code.toUpperCase();\n\t}\n\tif (type === \"script\") {\n\t\tif (!isUnicodeScriptSubtag(code)) {\n\t\t\tthrow RangeError(\"invalid script\");\n\t\t}\n\t\treturn `${code[0].toUpperCase()}${code.slice(1).toLowerCase()}`;\n\t}\n\tif (type === \"calendar\") {\n\t\tif (!isUnicodeLocaleIdentifierType(code)) {\n\t\t\tthrow RangeError(\"invalid calendar\");\n\t\t}\n\t\treturn code.toLowerCase();\n\t}\n\tif (type === \"dateTimeField\") {\n\t\tif (!IsValidDateTimeFieldCode(code)) {\n\t\t\tthrow RangeError(\"invalid dateTimeField\");\n\t\t}\n\t\treturn code;\n\t}\n\tinvariant(type === \"currency\", \"invalid type\");\n\tif (!IsWellFormedCurrencyCode(code)) {\n\t\tthrow RangeError(\"invalid currency\");\n\t}\n\treturn code.toUpperCase();\n}\n","import {ToString} from '#packages/ecma262-abstract/ToString.js'\nimport {CanonicalizeLocaleList} from '#packages/ecma402-abstract/CanonicalizeLocaleList.js'\nimport {GetOption} from '#packages/ecma402-abstract/GetOption.js'\nimport {GetOptionsObject} from '#packages/ecma402-abstract/GetOptionsObject.js'\nimport {IsWellFormedCurrencyCode} from '#packages/ecma402-abstract/IsWellFormedCurrencyCode.js'\nimport {SupportedLocales} from '#packages/ecma402-abstract/SupportedLocales.js'\nimport {\n type DisplayNamesData,\n type DisplayNamesLocaleData,\n} from '#packages/ecma402-abstract/types/displaynames.js'\nimport {\n getInternalSlot,\n getMultiInternalSlots,\n invariant,\n setInternalSlot,\n} from '#packages/ecma402-abstract/utils.js'\nimport {CanonicalCodeForDisplayNames} from '#packages/ecma402-abstract/DisplayNames/CanonicalCodeForDisplayNames.js'\nimport {IsValidDateTimeFieldCode} from '#packages/ecma402-abstract/DisplayNames/IsValidDateTimeFieldCode.js'\n\nimport {ResolveLocale} from '@formatjs/intl-localematcher'\n\nexport interface DisplayNamesOptions {\n localeMatcher?: 'lookup' | 'best fit'\n style?: 'narrow' | 'short' | 'long'\n type:\n | 'language'\n | 'region'\n | 'script'\n | 'currency'\n | 'calendar'\n | 'dateTimeField'\n fallback?: 'code' | 'none'\n languageDisplay?: 'dialect' | 'standard'\n}\n\nexport interface DisplayNamesResolvedOptions {\n locale: string\n style: NonNullable<DisplayNamesOptions['style']>\n type: NonNullable<DisplayNamesOptions['type']>\n fallback: NonNullable<DisplayNamesOptions['fallback']>\n languageDisplay: NonNullable<DisplayNamesOptions['languageDisplay']>\n}\n\nexport class DisplayNames {\n constructor(\n locales: string | string[] | undefined,\n options: DisplayNamesOptions\n ) {\n if (new.target === undefined) {\n throw TypeError(`Constructor Intl.DisplayNames requires 'new'`)\n }\n const requestedLocales = CanonicalizeLocaleList(locales)\n options = GetOptionsObject(options)\n\n const opt = Object.create(null)\n const {localeData} = DisplayNames\n const matcher = GetOption(\n options,\n 'localeMatcher',\n 'string',\n ['lookup', 'best fit'],\n 'best fit'\n )\n opt.localeMatcher = matcher\n\n const r = ResolveLocale(\n Array.from(DisplayNames.availableLocales),\n requestedLocales,\n opt,\n [], // there is no relevantExtensionKeys\n DisplayNames.localeData,\n DisplayNames.getDefaultLocale\n )\n\n const style = GetOption(\n options,\n 'style',\n 'string',\n ['narrow', 'short', 'long'],\n 'long'\n )\n setSlot(this, 'style', style)\n\n const type = GetOption(\n options,\n 'type',\n 'string',\n ['language', 'region', 'script', 'currency', 'calendar', 'dateTimeField'],\n undefined\n )\n if (type === undefined) {\n throw TypeError(`Intl.DisplayNames constructor requires \"type\" option`)\n }\n\n setSlot(this, 'type', type)\n\n const fallback = GetOption(\n options,\n 'fallback',\n 'string',\n ['code', 'none'],\n 'code'\n )\n setSlot(this, 'fallback', fallback)\n setSlot(this, 'locale', r.locale)\n\n const {dataLocale} = r\n const dataLocaleData = localeData[dataLocale]\n invariant(!!dataLocaleData, `Missing locale data for ${dataLocale}`)\n setSlot(this, 'localeData', dataLocaleData)\n invariant(\n dataLocaleData !== undefined,\n `locale data for ${r.locale} does not exist.`\n )\n const {types} = dataLocaleData\n invariant(typeof types === 'object' && types != null, 'invalid types data')\n const typeFields = types[type]\n invariant(\n typeof typeFields === 'object' && typeFields != null,\n 'invalid typeFields data'\n )\n const languageDisplay = GetOption(\n options,\n 'languageDisplay',\n 'string',\n ['dialect', 'standard'],\n 'dialect'\n )\n if (type === 'language') {\n setSlot(this, 'languageDisplay', languageDisplay)\n // Using types[type] instead of typeFields because TypeScript cannot infer the correct type\n const typeFields = types[type][languageDisplay]\n invariant(\n typeof typeFields === 'object' && typeFields != null,\n 'invalid language typeFields data'\n )\n }\n\n // Using types[type] instead of typeFields because TypeScript cannot infer the correct type\n const styleFields =\n type === 'language'\n ? types[type][languageDisplay][style]\n : types[type][style]\n invariant(\n typeof styleFields === 'object' && styleFields != null,\n 'invalid styleFields data'\n )\n setSlot(this, 'fields', styleFields)\n }\n\n static supportedLocalesOf(\n locales?: string | string[],\n options?: Pick<DisplayNamesOptions, 'localeMatcher'>\n ): string[] {\n return SupportedLocales(\n DisplayNames.availableLocales,\n CanonicalizeLocaleList(locales),\n options\n )\n }\n\n static __addLocaleData(...data: DisplayNamesLocaleData[]): void {\n for (const {data: d, locale} of data) {\n const minimizedLocale = new (Intl as any).Locale(locale)\n .minimize()\n .toString()\n DisplayNames.localeData[locale] = DisplayNames.localeData[\n minimizedLocale\n ] = d\n DisplayNames.availableLocales.add(minimizedLocale)\n DisplayNames.availableLocales.add(locale)\n if (!DisplayNames.__defaultLocale) {\n DisplayNames.__defaultLocale = minimizedLocale\n }\n }\n }\n\n of(code: string | number | Record<string, unknown>): string | undefined {\n checkReceiver(this, 'of')\n const type = getSlot(this, 'type')\n const codeAsString = ToString(code)\n if (!isValidCodeForDisplayNames(type, codeAsString)) {\n throw RangeError('invalid code for Intl.DisplayNames.prototype.of')\n }\n const {localeData, style, fallback} = getMultiInternalSlots(\n __INTERNAL_SLOT_MAP__,\n this,\n 'localeData',\n 'style',\n 'fallback'\n )\n\n // Canonicalize the case.\n let canonicalCode = CanonicalCodeForDisplayNames(type, codeAsString)\n\n let name: string | undefined\n if (type === 'language') {\n const languageDisplay = getSlot(this, 'languageDisplay')\n name = getNameForTypeLanguage(\n languageDisplay,\n localeData,\n style,\n canonicalCode,\n fallback\n )\n } else {\n // All the other types\n const typesData = localeData.types[type]\n name = typesData[style][canonicalCode] || typesData.long[canonicalCode]\n }\n\n if (name !== undefined) {\n return name\n }\n\n if (fallback === 'code') {\n return codeAsString\n }\n }\n\n resolvedOptions(): DisplayNamesResolvedOptions {\n checkReceiver(this, 'resolvedOptions')\n return {\n ...getMultiInternalSlots(\n __INTERNAL_SLOT_MAP__,\n this,\n 'locale',\n 'style',\n 'type',\n 'fallback',\n 'languageDisplay'\n ),\n }\n }\n\n static localeData: Record<string, DisplayNamesData | undefined> = {}\n private static availableLocales = new Set<string>()\n private static __defaultLocale = ''\n private static getDefaultLocale() {\n return DisplayNames.__defaultLocale\n }\n public static readonly polyfilled = true\n}\n\n// https://tc39.es/proposal-intl-displaynames/#sec-isvalidcodefordisplaynames\nfunction isValidCodeForDisplayNames(\n type: NonNullable<DisplayNamesOptions['type']>,\n code: string\n): boolean {\n switch (type) {\n case 'language':\n // subset of unicode_language_id\n // languageCode [\"-\" scriptCode] [\"-\" regionCode] *(\"-\" variant)\n // where:\n // - languageCode is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code.\n // - scriptCode is should be an ISO-15924 four letters script code\n // - regionCode is either an ISO-3166 two letters region code, or a three digits UN M49 Geographic Regions.\n return /^[a-z]{2,3}(-[a-z]{4})?(-([a-z]{2}|\\d{3}))?(-([a-z\\d]{5,8}|\\d[a-z\\d]{3}))*$/i.test(\n code\n )\n case 'region':\n // unicode_region_subtag\n return /^([a-z]{2}|\\d{3})$/i.test(code)\n case 'script':\n // unicode_script_subtag\n return /^[a-z]{4}$/i.test(code)\n case 'currency':\n return IsWellFormedCurrencyCode(code)\n case 'calendar':\n // unicode locale identifier type\n return /^[a-z0-9]{3,8}([-_][a-z0-9]{3,8})*$/i.test(code)\n case 'dateTimeField':\n return IsValidDateTimeFieldCode(code)\n }\n}\n\ntry {\n // IE11 does not have Symbol\n if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n Object.defineProperty(DisplayNames.prototype, Symbol.toStringTag, {\n value: 'Intl.DisplayNames',\n configurable: true,\n enumerable: false,\n writable: false,\n })\n }\n Object.defineProperty(DisplayNames, 'length', {\n value: 2,\n writable: false,\n enumerable: false,\n configurable: true,\n })\n} catch {\n // Make test 262 compliant\n}\n\ninterface DisplayNamesInternalSlots {\n locale: string\n style: NonNullable<DisplayNamesOptions['style']>\n type: NonNullable<DisplayNamesOptions['type']>\n fallback: NonNullable<DisplayNamesOptions['fallback']>\n languageDisplay: NonNullable<DisplayNamesOptions['languageDisplay']>\n // Note that this differs from `fields` slot in the spec.\n localeData: DisplayNamesData\n fields: Record<string, string>\n}\n\nconst __INTERNAL_SLOT_MAP__ = new WeakMap<\n DisplayNames,\n DisplayNamesInternalSlots\n>()\n\nfunction getSlot<K extends keyof DisplayNamesInternalSlots>(\n instance: DisplayNames,\n key: K\n): DisplayNamesInternalSlots[K] {\n return getInternalSlot(__INTERNAL_SLOT_MAP__, instance, key)\n}\n\nfunction setSlot<K extends keyof DisplayNamesInternalSlots>(\n instance: DisplayNames,\n key: K,\n value: DisplayNamesInternalSlots[K]\n): void {\n setInternalSlot(__INTERNAL_SLOT_MAP__, instance, key, value)\n}\n\nfunction checkReceiver(receiver: unknown, methodName: string) {\n if (!(receiver instanceof DisplayNames)) {\n throw TypeError(\n `Method Intl.DisplayNames.prototype.${methodName} called on incompatible receiver`\n )\n }\n}\n\nfunction getNameForTypeLanguage(\n languageDisplay: DisplayNamesInternalSlots['languageDisplay'],\n localeData: DisplayNamesData,\n style: DisplayNamesInternalSlots['style'],\n canonicalCode: string,\n fallback: DisplayNamesInternalSlots['fallback']\n): string | undefined {\n // First, try to get the name using the canonicalCode\n const typesData = localeData.types.language[languageDisplay]\n const name = typesData[style][canonicalCode] || typesData.long[canonicalCode]\n\n if (name === undefined) {\n // If no name has been found using the canonicalCode,\n // check if the latter contains a region sub tag\n const regionMatch = /-([a-z]{2}|\\d{3})\\b/i.exec(canonicalCode)\n if (regionMatch) {\n // Extract the language and region sub tags\n const languageSubTag =\n canonicalCode.substring(0, regionMatch.index) +\n canonicalCode.substring(regionMatch.index + regionMatch[0].length)\n const regionSubTag = regionMatch[1]\n\n // Let's try again using languageSubTag this time\n const name =\n typesData[style][languageSubTag] || typesData.long[languageSubTag]\n\n // If a name has been found and a region sub tag exists,\n // compose them together or use the code fallback\n if (name !== undefined && regionSubTag) {\n // Retrieve region display names\n const regionsData = localeData.types.region\n const regionDisplayName: string | undefined =\n regionsData[style][regionSubTag] || regionsData.long[regionSubTag]\n\n if (regionDisplayName || fallback === 'code') {\n // Interpolate into locale-specific pattern.\n const pattern = localeData.patterns.locale\n return pattern\n .replace('{0}', name)\n .replace('{1}', regionDisplayName || regionSubTag)\n }\n } else {\n return name\n }\n }\n } else {\n return name\n }\n}\n","export const supportedLocales: string[] = [\n 'af',\n 'af-NA',\n 'agq',\n 'ak',\n 'am',\n 'ar',\n 'ar-AE',\n 'ar-BH',\n 'ar-DJ',\n 'ar-DZ',\n 'ar-EG',\n 'ar-EH',\n 'ar-ER',\n 'ar-IL',\n 'ar-IQ',\n 'ar-JO',\n 'ar-KM',\n 'ar-KW',\n 'ar-LB',\n 'ar-LY',\n 'ar-MA',\n 'ar-MR',\n 'ar-OM',\n 'ar-PS',\n 'ar-QA',\n 'ar-SA',\n 'ar-SD',\n 'ar-SO',\n 'ar-SS',\n 'ar-SY',\n 'ar-TD',\n 'ar-TN',\n 'ar-YE',\n 'as',\n 'asa',\n 'ast',\n 'az',\n 'az-Cyrl',\n 'az-Latn',\n 'bas',\n 'be',\n 'be-tarask',\n 'bem',\n 'bez',\n 'bg',\n 'bm',\n 'bn',\n 'bn-IN',\n 'bo',\n 'bo-IN',\n 'br',\n 'brx',\n 'bs',\n 'bs-Cyrl',\n 'bs-Latn',\n 'ca',\n 'ca-AD',\n 'ca-ES-valencia',\n 'ca-FR',\n 'ca-IT',\n 'ccp',\n 'ccp-IN',\n 'ce',\n 'ceb',\n 'cgg',\n 'chr',\n 'ckb',\n 'ckb-IR',\n 'cs',\n 'cy',\n 'da',\n 'da-GL',\n 'dav',\n 'de',\n 'de-AT',\n 'de-BE',\n 'de-CH',\n 'de-IT',\n 'de-LI',\n 'de-LU',\n 'dje',\n 'doi',\n 'dsb',\n 'dua',\n 'dyo',\n 'dz',\n 'ebu',\n 'ee',\n 'ee-TG',\n 'el',\n 'el-CY',\n 'en',\n 'en-001',\n 'en-150',\n 'en-AE',\n 'en-AG',\n 'en-AI',\n 'en-AS',\n 'en-AT',\n 'en-AU',\n 'en-BB',\n 'en-BE',\n 'en-BI',\n 'en-BM',\n 'en-BS',\n 'en-BW',\n 'en-BZ',\n 'en-CA',\n 'en-CC',\n 'en-CH',\n 'en-CK',\n 'en-CM',\n 'en-CX',\n 'en-CY',\n 'en-DE',\n 'en-DG',\n 'en-DK',\n 'en-DM',\n 'en-ER',\n 'en-FI',\n 'en-FJ',\n 'en-FK',\n 'en-FM',\n 'en-GB',\n 'en-GD',\n 'en-GG',\n 'en-GH',\n 'en-GI',\n 'en-GM',\n 'en-GU',\n 'en-GY',\n 'en-HK',\n 'en-IE',\n 'en-IL',\n 'en-IM',\n 'en-IN',\n 'en-IO',\n 'en-JE',\n 'en-JM',\n 'en-KE',\n 'en-KI',\n 'en-KN',\n 'en-KY',\n 'en-LC',\n 'en-LR',\n 'en-LS',\n 'en-MG',\n 'en-MH',\n 'en-MO',\n 'en-MP',\n 'en-MS',\n 'en-MT',\n 'en-MU',\n 'en-MW',\n 'en-MY',\n 'en-NA',\n 'en-NF',\n 'en-NG',\n 'en-NL',\n 'en-NR',\n 'en-NU',\n 'en-NZ',\n 'en-PG',\n 'en-PH',\n 'en-PK',\n 'en-PN',\n 'en-PR',\n 'en-PW',\n 'en-RW',\n 'en-SB',\n 'en-SC',\n 'en-SD',\n 'en-SE',\n 'en-SG',\n 'en-SH',\n 'en-SI',\n 'en-SL',\n 'en-SS',\n 'en-SX',\n 'en-SZ',\n 'en-TC',\n 'en-TK',\n 'en-TO',\n 'en-TT',\n 'en-TV',\n 'en-TZ',\n 'en-UG',\n 'en-UM',\n 'en-VC',\n 'en-VG',\n 'en-VI',\n 'en-VU',\n 'en-WS',\n 'en-ZA',\n 'en-ZM',\n 'en-ZW',\n 'eo',\n 'es',\n 'es-419',\n 'es-AR',\n 'es-BO',\n 'es-BR',\n 'es-BZ',\n 'es-CL',\n 'es-CO',\n 'es-CR',\n 'es-CU',\n 'es-DO',\n 'es-EA',\n 'es-EC',\n 'es-GQ',\n 'es-GT',\n 'es-HN',\n 'es-IC',\n 'es-MX',\n 'es-NI',\n 'es-PA',\n 'es-PE',\n 'es-PH',\n 'es-PR',\n 'es-PY',\n 'es-SV',\n 'es-US',\n 'es-UY',\n 'es-VE',\n 'et',\n 'eu',\n 'ewo',\n 'fa',\n 'fa-AF',\n 'ff',\n 'ff-Adlm',\n 'ff-Adlm-BF',\n 'ff-Adlm-CM',\n 'ff-Adlm-GH',\n 'ff-Adlm-GM',\n 'ff-Adlm-GW',\n 'ff-Adlm-LR',\n 'ff-Adlm-MR',\n 'ff-Adlm-NE',\n 'ff-Adlm-NG',\n 'ff-Adlm-SL',\n 'ff-Adlm-SN',\n 'ff-Latn',\n 'ff-Latn-BF',\n 'ff-Latn-CM',\n 'ff-Latn-GH',\n 'ff-Latn-GM',\n 'ff-Latn-GN',\n 'ff-Latn-GW',\n 'ff-Latn-LR',\n 'ff-Latn-MR',\n 'ff-Latn-NE',\n 'ff-Latn-NG',\n 'ff-Latn-SL',\n 'fi',\n 'fil',\n 'fo',\n 'fo-DK',\n 'fr',\n 'fr-BE',\n 'fr-BF',\n 'fr-BI',\n 'fr-BJ',\n 'fr-BL',\n 'fr-CA',\n 'fr-CD',\n 'fr-CF',\n 'fr-CG',\n 'fr-CH',\n 'fr-CI',\n 'fr-CM',\n 'fr-DJ',\n 'fr-DZ',\n 'fr-GA',\n 'fr-GF',\n 'fr-GN',\n 'fr-GP',\n 'fr-GQ',\n 'fr-HT',\n 'fr-KM',\n 'fr-LU',\n 'fr-MA',\n 'fr-MC',\n 'fr-MF',\n 'fr-MG',\n 'fr-ML',\n 'fr-MQ',\n 'fr-MR',\n 'fr-MU',\n 'fr-NC',\n 'fr-NE',\n 'fr-PF',\n 'fr-PM',\n 'fr-RE',\n 'fr-RW',\n 'fr-SC',\n 'fr-SN',\n 'fr-SY',\n 'fr-TD',\n 'fr-TG',\n 'fr-TN',\n 'fr-VU',\n 'fr-WF',\n 'fr-YT',\n 'fur',\n 'fy',\n 'ga',\n 'ga-GB',\n 'gd',\n 'gl',\n 'gsw',\n 'gsw-FR',\n 'gsw-LI',\n 'gu',\n 'guz',\n 'gv',\n 'ha',\n 'ha-GH',\n 'ha-NE',\n 'haw',\n 'he',\n 'hi',\n 'hr',\n 'hr-BA',\n 'hsb',\n 'hu',\n 'hy',\n 'ia',\n 'id',\n 'ig',\n 'ii',\n 'is',\n 'it',\n 'it-CH',\n 'it-SM',\n 'it-VA',\n 'ja',\n 'jgo',\n 'jmc',\n 'jv',\n 'ka',\n 'kab',\n 'kam',\n 'kde',\n 'kea',\n 'kgp',\n 'khq',\n 'ki',\n 'kk',\n 'kkj',\n 'kl',\n 'kln',\n 'km',\n 'kn',\n 'ko',\n 'ko-KP',\n 'kok',\n 'ks',\n 'ks-Arab',\n 'ksb',\n 'ksf',\n 'ksh',\n 'ku',\n 'kw',\n 'ky',\n 'lag',\n 'lb',\n 'lg',\n 'lkt',\n 'ln',\n 'ln-AO',\n 'ln-CF',\n 'ln-CG',\n 'lo',\n 'lrc',\n 'lrc-IQ',\n 'lt',\n 'lu',\n 'luo',\n 'luy',\n 'lv',\n 'mai',\n 'mas',\n 'mas-TZ',\n 'mer',\n 'mfe',\n 'mg',\n 'mgh',\n 'mgo',\n 'mi',\n 'mk',\n 'ml',\n 'mn',\n 'mni',\n 'mni-Beng',\n 'mr',\n 'ms',\n 'ms-BN',\n 'ms-ID',\n 'ms-SG',\n 'mt',\n 'mua',\n 'my',\n 'mzn',\n 'naq',\n 'nb',\n 'nb-SJ',\n 'nd',\n 'nds',\n 'nds-NL',\n 'ne',\n 'ne-IN',\n 'nl',\n 'nl-AW',\n 'nl-BE',\n 'nl-BQ',\n 'nl-CW',\n 'nl-SR',\n 'nl-SX',\n 'nmg',\n 'nn',\n 'nnh',\n 'no',\n 'nus',\n 'nyn',\n 'om',\n 'om-KE',\n 'or',\n 'os',\n 'os-RU',\n 'pa',\n 'pa-Arab',\n 'pa-Guru',\n 'pcm',\n 'pl',\n 'ps',\n 'ps-PK',\n 'pt',\n 'pt-AO',\n 'pt-CH',\n 'pt-CV',\n 'pt-GQ',\n 'pt-GW',\n 'pt-LU',\n 'pt-MO',\n 'pt-MZ',\n 'pt-PT',\n 'pt-ST',\n 'pt-TL',\n 'qu',\n 'qu-BO',\n 'qu-EC',\n 'rm',\n 'rn',\n 'ro',\n 'ro-MD',\n 'rof',\n 'ru',\n 'ru-BY',\n 'ru-KG',\n 'ru-KZ',\n 'ru-MD',\n 'ru-UA',\n 'rw',\n 'rwk',\n 'sa',\n 'sah',\n 'saq',\n 'sat',\n 'sat-Olck',\n 'sbp',\n 'sc',\n 'sd',\n 'sd-Arab',\n 'sd-Deva',\n 'se',\n 'se-FI',\n 'se-SE',\n 'seh',\n 'ses',\n 'sg',\n 'shi',\n 'shi-Latn',\n 'shi-Tfng',\n 'si',\n 'sk',\n 'sl',\n 'smn',\n 'sn',\n 'so',\n 'so-DJ',\n 'so-ET',\n 'so-KE',\n 'sq',\n 'sq-MK',\n 'sq-XK',\n 'sr',\n 'sr-Cyrl',\n 'sr-Cyrl-BA',\n 'sr-Cyrl-ME',\n 'sr-Cyrl-XK',\n 'sr-Latn',\n 'sr-Latn-BA',\n 'sr-Latn-ME',\n 'sr-Latn-XK',\n 'su',\n 'su-Latn',\n 'sv',\n 'sv-AX',\n 'sv-FI',\n 'sw',\n 'sw-CD',\n 'sw-KE',\n 'sw-UG',\n 'ta',\n 'ta-LK',\n 'ta-MY',\n 'ta-SG',\n 'te',\n 'teo',\n 'teo-KE',\n 'tg',\n 'th',\n 'ti',\n 'ti-ER',\n 'tk',\n 'to',\n 'tr',\n 'tr-CY',\n 'tt',\n 'twq',\n 'tzm',\n 'ug',\n 'uk',\n 'und',\n 'ur',\n 'ur-IN',\n 'uz',\n 'uz-Arab',\n 'uz-Cyrl',\n 'uz-Latn',\n 'vai',\n 'vai-Latn',\n 'vai-Vaii',\n 'vi',\n 'vun',\n 'wae',\n 'wo',\n 'xh',\n 'xog',\n 'yav',\n 'yi',\n 'yo',\n 'yo-BJ',\n 'yrl',\n 'yrl-CO',\n 'yrl-VE',\n 'yue',\n 'yue-Hans',\n 'yue-Hant',\n 'zgh',\n 'zh',\n 'zh-Hans',\n 'zh-Hans-HK',\n 'zh-Hans-MO',\n 'zh-Hans-SG',\n 'zh-Hant',\n 'zh-Hant-HK',\n 'zh-Hant-MO',\n 'zu',\n]\n","import {match} from '@formatjs/intl-localematcher'\nimport {supportedLocales} from '#packages/intl-displaynames/supported-locales.generated.js'\n\n/**\n * https://bugs.chromium.org/p/chromium/issues/detail?id=1097432\n */\nfunction hasMissingICUBug() {\n const DisplayNames = (Intl as any).DisplayNames\n if (DisplayNames && !DisplayNames.polyfilled) {\n return (\n new DisplayNames(['en'], {\n type: 'region',\n }).of('CA') === 'CA'\n )\n }\n return false\n}\n\n/**\n * https://bugs.chromium.org/p/chromium/issues/detail?id=1176979\n * https://github.com/formatjs/formatjs/issues/5889\n *\n * Tests if the implementation properly canonicalizes script codes per ECMA-402 spec.\n * The spec requires CanonicalCodeForDisplayNames to convert lowercase 'arab' to title-case 'Arab'\n * before lookup. This test uses lowercase input to verify canonicalization happens.\n *\n * - Correct implementations: canonicalize 'arab' → 'Arab', look up → return 'Arabic'\n * - Buggy implementations (old Node.js): don't canonicalize, look up 'arab' literally → return 'arab'\n *\n * See ECMA-402 section 12.5.1: CanonicalCodeForDisplayNames\n */\nfunction hasScriptBug() {\n const DisplayNames = (Intl as any).DisplayNames\n if (DisplayNames && !DisplayNames.polyfilled) {\n return (\n new DisplayNames(['en'], {\n type: 'script',\n }).of('arab') !== 'Arabic'\n )\n }\n return false\n}\n\nfunction supportedLocalesOf(locale?: string | string[]) {\n if (!locale) {\n return true\n }\n const locales = Array.isArray(locale) ? locale : [locale]\n return (\n (Intl as any).DisplayNames.supportedLocalesOf(locales).length ===\n locales.length\n )\n}\n\nexport function _shouldPolyfillWithoutLocale(): boolean {\n return !(Intl as any).DisplayNames || hasMissingICUBug() || hasScriptBug()\n}\n\nexport function shouldPolyfill(locale = 'en'): string | true | undefined {\n try {\n if (_shouldPolyfillWithoutLocale() || !supportedLocalesOf(locale)) {\n return match([locale], supportedLocales, 'en')\n }\n } catch {\n return true\n }\n}\n","import {DisplayNames} from '#packages/intl-displaynames/index.js'\nimport {shouldPolyfill} from '#packages/intl-displaynames/should-polyfill.js'\n\nif (shouldPolyfill()) {\n Object.defineProperty(Intl, 'DisplayNames', {\n value: DisplayNames,\n enumerable: false,\n writable: true,\n configurable: true,\n })\n\n // Drain any locale data that was buffered before polyfill loaded\n const buf = (globalThis as Record<string, unknown>)\n .__FORMATJS_DISPLAYNAMES_DATA__ as\n | Parameters<(typeof DisplayNames)['__addLocaleData']>[0][]\n | undefined\n if (buf) {\n for (const d of buf) DisplayNames.__addLocaleData(d)\n delete (globalThis as Record<string, unknown>)\n .__FORMATJS_DISPLAYNAMES_DATA__\n }\n}\n"],"x_google_ignoreList":[7],"mappings":";;;;;AAGA,SAAgB,SAAS,GAAG;AAC3B,KAAI,OAAO,MAAM,SAChB,OAAM,UAAU,4CAA4C;AAE7D,QAAO,OAAO,EAAE;;;;;;;;ACHjB,SAAgB,uBAAuB,SAAS;AAE/C,QAAO,KAAK,oBAAoB,QAAQ;;;;;;;;;;;;ACGzC,SAAgB,UAAU,MAAM,MAAM,MAAM,QAAQ,UAAU;AAC7D,KAAI,OAAO,SAAS,SACnB,OAAM,IAAI,UAAU,4BAA4B;CAEjD,IAAI,QAAQ,KAAK;AACjB,KAAI,UAAU,KAAA,GAAW;AACxB,MAAI,SAAS,aAAa,SAAS,SAClC,OAAM,IAAI,UAAU,eAAe;AAEpC,MAAI,SAAS,UACZ,SAAQ,QAAQ,MAAM;AAEvB,MAAI,SAAS,SACZ,SAAQ,SAAS,MAAM;AAExB,MAAI,WAAW,KAAA,KAAa,CAAC,OAAO,QAAQ,QAAQ,OAAO,MAAM,CAAC,OACjE,OAAM,IAAI,WAAW,GAAG,MAAM,iBAAiB,OAAO,KAAK,KAAK,GAAG;AAEpE,SAAO;;AAER,QAAO;;;;;;;;;ACxBR,SAAgB,iBAAiB,SAAS;AACzC,KAAI,OAAO,YAAY,YACtB,QAAO,OAAO,OAAO,KAAK;AAE3B,KAAI,OA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,aAAa;SAGtD,QAAO;;OAIX,QAAO;;;;AC7XX,MAAa,mBAA6B;CACxC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAC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AAY;EACZ,UAAU;EACV,cAAc;EACf,CAAC;CAGF,MAAM,MAAO,WACV;AAGH,KAAI,KAAK;AACP,OAAK,MAAM,KAAK,IAAK,cAAa,gBAAgB,EAAE;AACpD,SAAQ,WACL"}
|
|
1
|
+
{"version":3,"file":"polyfill.js","names":[],"sources":["../../ecma262-abstract/ToString.js","../../ecma402-abstract/CanonicalizeLocaleList.js","../../ecma402-abstract/GetOption.js","../../ecma402-abstract/GetOptionsObject.js","../../ecma402-abstract/IsWellFormedCurrencyCode.js","../../ecma262-abstract/ToObject.js","../../ecma402-abstract/SupportedLocales.js","../../../node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/index.js","../../ecma402-abstract/utils.js","../../ecma402-abstract/DisplayNames/IsValidDateTimeFieldCode.js","../../ecma402-abstract/DisplayNames/CanonicalCodeForDisplayNames.js","../index.ts","../../../node_modules/.aspect_rules_js/@formatjs_generated+cldr.supported-locales@0.0.0/node_modules/@formatjs_generated/cldr.supported-locales/intl-displaynames.js","../should-polyfill.ts","../polyfill.ts"],"sourcesContent":["/**\n* https://tc39.es/ecma262/#sec-tostring\n*/\nexport function ToString(o) {\n\tif (typeof o === \"symbol\") {\n\t\tthrow TypeError(\"Cannot convert a Symbol value to a string\");\n\t}\n\treturn String(o);\n}\n","/**\n* http://ecma-international.org/ecma-402/7.0/index.html#sec-canonicalizelocalelist\n* @param locales\n*/\nexport function CanonicalizeLocaleList(locales) {\n\t// TODO\n\treturn Intl.getCanonicalLocales(locales);\n}\n","import { ToString } from \"#packages/ecma262-abstract/ToString.js\";\n/**\n* https://tc39.es/ecma402/#sec-getoption\n* @param opts\n* @param prop\n* @param type\n* @param values\n* @param fallback\n*/\nexport function GetOption(opts, prop, type, values, fallback) {\n\tif (typeof opts !== \"object\") {\n\t\tthrow new TypeError(\"Options must be an object\");\n\t}\n\tlet value = opts[prop];\n\tif (value !== undefined) {\n\t\tif (type !== \"boolean\" && type !== \"string\") {\n\t\t\tthrow new TypeError(\"invalid type\");\n\t\t}\n\t\tif (type === \"boolean\") {\n\t\t\tvalue = Boolean(value);\n\t\t}\n\t\tif (type === \"string\") {\n\t\t\tvalue = ToString(value);\n\t\t}\n\t\tif (values !== undefined && !values.filter((val) => val == value).length) {\n\t\t\tthrow new RangeError(`${value} is not within ${values.join(\", \")}`);\n\t\t}\n\t\treturn value;\n\t}\n\treturn fallback;\n}\n","/**\n* https://tc39.es/ecma402/#sec-getoptionsobject\n* @param options\n* @returns\n*/\nexport function GetOptionsObject(options) {\n\tif (typeof options === \"undefined\") {\n\t\treturn Object.create(null);\n\t}\n\tif (typeof options === \"object\") {\n\t\treturn options;\n\t}\n\tthrow new TypeError(\"Options must be an object\");\n}\n","/**\n* This follows https://tc39.es/ecma402/#sec-case-sensitivity-and-case-mapping\n* @param str string to convert\n*/\nfunction toUpperCase(str) {\n\treturn str.replace(/([a-z])/g, (_, c) => c.toUpperCase());\n}\nconst NOT_A_Z_REGEX = /[^A-Z]/;\n/**\n* https://tc39.es/ecma402/#sec-iswellformedcurrencycode\n*/\nexport function IsWellFormedCurrencyCode(currency) {\n\tcurrency = toUpperCase(currency);\n\tif (currency.length !== 3) {\n\t\treturn false;\n\t}\n\tif (NOT_A_Z_REGEX.test(currency)) {\n\t\treturn false;\n\t}\n\treturn true;\n}\n","/**\n* https://tc39.es/ecma262/#sec-toobject\n*/\nexport function ToObject(arg) {\n\tif (arg == null) {\n\t\tthrow new TypeError(\"undefined/null cannot be converted to object\");\n\t}\n\treturn Object(arg);\n}\n","import { LookupSupportedLocales } from \"@formatjs/intl-localematcher\";\nimport { ToObject } from \"#packages/ecma262-abstract/ToObject.js\";\nimport { GetOption } from \"#packages/ecma402-abstract/GetOption.js\";\n/**\n* https://tc39.es/ecma402/#sec-supportedlocales\n* @param availableLocales\n* @param requestedLocales\n* @param options\n*/\nexport function SupportedLocales(availableLocales, requestedLocales, options) {\n\tlet matcher = \"best fit\";\n\tif (options !== undefined) {\n\t\toptions = ToObject(options);\n\t\tmatcher = GetOption(options, \"localeMatcher\", \"string\", [\"lookup\", \"best fit\"], \"best fit\");\n\t}\n\tif (matcher === \"best fit\") {\n\t\treturn LookupSupportedLocales(Array.from(availableLocales), requestedLocales);\n\t}\n\treturn LookupSupportedLocales(Array.from(availableLocales), requestedLocales);\n}\n","//#region packages/fast-memoize/index.ts\nfunction memoize(fn, options) {\n\tconst cache = options && options.cache ? options.cache : cacheDefault;\n\tconst serializer = options && options.serializer ? options.serializer : serializerDefault;\n\treturn (options && options.strategy ? options.strategy : strategyDefault)(fn, {\n\t\tcache,\n\t\tserializer\n\t});\n}\nfunction isPrimitive(value) {\n\treturn value == null || typeof value === \"number\" || typeof value === \"boolean\";\n}\nfunction monadic(fn, cache, serializer, arg) {\n\tconst cacheKey = isPrimitive(arg) ? arg : serializer(arg);\n\tlet computedValue = cache.get(cacheKey);\n\tif (typeof computedValue === \"undefined\") {\n\t\tcomputedValue = fn.call(this, arg);\n\t\tcache.set(cacheKey, computedValue);\n\t}\n\treturn computedValue;\n}\nfunction variadic(fn, cache, serializer) {\n\tconst args = Array.prototype.slice.call(arguments, 3);\n\tconst cacheKey = serializer(args);\n\tlet computedValue = cache.get(cacheKey);\n\tif (typeof computedValue === \"undefined\") {\n\t\tcomputedValue = fn.apply(this, args);\n\t\tcache.set(cacheKey, computedValue);\n\t}\n\treturn computedValue;\n}\nfunction assemble(fn, context, strategy, cache, serialize) {\n\treturn strategy.bind(context, fn, cache, serialize);\n}\nfunction strategyDefault(fn, options) {\n\tconst strategy = fn.length === 1 ? monadic : variadic;\n\treturn assemble(fn, this, strategy, options.cache.create(), options.serializer);\n}\nfunction strategyVariadic(fn, options) {\n\treturn assemble(fn, this, variadic, options.cache.create(), options.serializer);\n}\nfunction strategyMonadic(fn, options) {\n\treturn assemble(fn, this, monadic, options.cache.create(), options.serializer);\n}\nconst serializerDefault = function() {\n\treturn JSON.stringify(arguments);\n};\nvar ObjectWithoutPrototypeCache = class {\n\tconstructor() {\n\t\tthis.cache = Object.create(null);\n\t}\n\tget(key) {\n\t\treturn this.cache[key];\n\t}\n\tset(key, value) {\n\t\tthis.cache[key] = value;\n\t}\n};\nconst cacheDefault = { create: function create() {\n\treturn new ObjectWithoutPrototypeCache();\n} };\nconst strategies = {\n\tvariadic: strategyVariadic,\n\tmonadic: strategyMonadic\n};\n//#endregion\nexport { memoize, strategies };\n\n//# sourceMappingURL=index.js.map","import { memoize, strategies } from \"@formatjs/fast-memoize\";\nexport function repeat(s, times) {\n\tif (typeof s.repeat === \"function\") {\n\t\treturn s.repeat(times);\n\t}\n\tconst arr = Array.from({ length: times });\n\tfor (let i = 0; i < arr.length; i++) {\n\t\tarr[i] = s;\n\t}\n\treturn arr.join(\"\");\n}\nexport function setInternalSlot(map, pl, field, value) {\n\tif (!map.get(pl)) {\n\t\tmap.set(pl, Object.create(null));\n\t}\n\tconst slots = map.get(pl);\n\tslots[field] = value;\n}\nexport function setMultiInternalSlots(map, pl, props) {\n\tfor (const k of Object.keys(props)) {\n\t\tsetInternalSlot(map, pl, k, props[k]);\n\t}\n}\nexport function getInternalSlot(map, pl, field) {\n\treturn getMultiInternalSlots(map, pl, field)[field];\n}\nexport function getMultiInternalSlots(map, pl, ...fields) {\n\tconst slots = map.get(pl);\n\tif (!slots) {\n\t\tthrow new TypeError(`${pl} InternalSlot has not been initialized`);\n\t}\n\treturn fields.reduce((all, f) => {\n\t\tall[f] = slots[f];\n\t\treturn all;\n\t}, Object.create(null));\n}\nexport function isLiteralPart(patternPart) {\n\treturn patternPart.type === \"literal\";\n}\n/*\n17 ECMAScript Standard Built-in Objects:\nEvery built-in Function object, including constructors, that is not\nidentified as an anonymous function has a name property whose value\nis a String.\n\nUnless otherwise specified, the name property of a built-in Function\nobject, if it exists, has the attributes { [[Writable]]: false,\n[[Enumerable]]: false, [[Configurable]]: true }.\n*/\nexport function defineProperty(target, name, { value }) {\n\tObject.defineProperty(target, name, {\n\t\tconfigurable: true,\n\t\tenumerable: false,\n\t\twritable: true,\n\t\tvalue\n\t});\n}\n/**\n* 7.3.5 CreateDataProperty\n* @param target\n* @param name\n* @param value\n*/\nexport function createDataProperty(target, name, value) {\n\tObject.defineProperty(target, name, {\n\t\tconfigurable: true,\n\t\tenumerable: true,\n\t\twritable: true,\n\t\tvalue\n\t});\n}\nexport const UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;\nexport function invariant(condition, message, Err = Error) {\n\tif (!condition) {\n\t\tthrow new Err(message);\n\t}\n}\nexport const createMemoizedNumberFormat = memoize((...args) => new Intl.NumberFormat(...args), { strategy: strategies.variadic });\nexport const createMemoizedPluralRules = memoize((...args) => new Intl.PluralRules(...args), { strategy: strategies.variadic });\nexport const createMemoizedLocale = memoize((...args) => new Intl.Locale(...args), { strategy: strategies.variadic });\nexport const createMemoizedListFormat = memoize((...args) => new Intl.ListFormat(...args), { strategy: strategies.variadic });\n","const CODES_FOR_DATE_TIME_FIELD = [\n\t\"era\",\n\t\"year\",\n\t\"quarter\",\n\t\"month\",\n\t\"weekOfYear\",\n\t\"weekday\",\n\t\"day\",\n\t\"dayPeriod\",\n\t\"hour\",\n\t\"minute\",\n\t\"second\",\n\t\"timeZoneName\"\n];\nexport function IsValidDateTimeFieldCode(field) {\n\treturn CODES_FOR_DATE_TIME_FIELD.indexOf(field) >= 0;\n}\n","import { CanonicalizeLocaleList } from \"#packages/ecma402-abstract/CanonicalizeLocaleList.js\";\nimport { IsWellFormedCurrencyCode } from \"#packages/ecma402-abstract/IsWellFormedCurrencyCode.js\";\nimport { invariant } from \"#packages/ecma402-abstract/utils.js\";\nimport { IsValidDateTimeFieldCode } from \"#packages/ecma402-abstract/DisplayNames/IsValidDateTimeFieldCode.js\";\nconst UNICODE_REGION_SUBTAG_REGEX = /^([a-z]{2}|[0-9]{3})$/i;\nconst ALPHA_4 = /^[a-z]{4}$/i;\nconst UNICODE_TYPE_REGEX = /^[a-z0-9]{3,8}([-_][a-z0-9]{3,8})*$/i;\nfunction isUnicodeRegionSubtag(region) {\n\treturn UNICODE_REGION_SUBTAG_REGEX.test(region);\n}\nfunction isUnicodeScriptSubtag(script) {\n\treturn ALPHA_4.test(script);\n}\nfunction isUnicodeLocaleIdentifierType(code) {\n\treturn UNICODE_TYPE_REGEX.test(code);\n}\nexport function CanonicalCodeForDisplayNames(type, code) {\n\tif (type === \"language\") {\n\t\treturn CanonicalizeLocaleList([code])[0];\n\t}\n\tif (type === \"region\") {\n\t\tif (!isUnicodeRegionSubtag(code)) {\n\t\t\tthrow RangeError(\"invalid region\");\n\t\t}\n\t\treturn code.toUpperCase();\n\t}\n\tif (type === \"script\") {\n\t\tif (!isUnicodeScriptSubtag(code)) {\n\t\t\tthrow RangeError(\"invalid script\");\n\t\t}\n\t\treturn `${code[0].toUpperCase()}${code.slice(1).toLowerCase()}`;\n\t}\n\tif (type === \"calendar\") {\n\t\tif (!isUnicodeLocaleIdentifierType(code)) {\n\t\t\tthrow RangeError(\"invalid calendar\");\n\t\t}\n\t\treturn code.toLowerCase();\n\t}\n\tif (type === \"dateTimeField\") {\n\t\tif (!IsValidDateTimeFieldCode(code)) {\n\t\t\tthrow RangeError(\"invalid dateTimeField\");\n\t\t}\n\t\treturn code;\n\t}\n\tinvariant(type === \"currency\", \"invalid type\");\n\tif (!IsWellFormedCurrencyCode(code)) {\n\t\tthrow RangeError(\"invalid currency\");\n\t}\n\treturn code.toUpperCase();\n}\n","import {ToString} from '#packages/ecma262-abstract/ToString.js'\nimport {CanonicalizeLocaleList} from '#packages/ecma402-abstract/CanonicalizeLocaleList.js'\nimport {GetOption} from '#packages/ecma402-abstract/GetOption.js'\nimport {GetOptionsObject} from '#packages/ecma402-abstract/GetOptionsObject.js'\nimport {IsWellFormedCurrencyCode} from '#packages/ecma402-abstract/IsWellFormedCurrencyCode.js'\nimport {SupportedLocales} from '#packages/ecma402-abstract/SupportedLocales.js'\nimport {\n type DisplayNamesData,\n type DisplayNamesLocaleData,\n} from '#packages/ecma402-abstract/types/displaynames.js'\nimport {\n getInternalSlot,\n getMultiInternalSlots,\n invariant,\n setInternalSlot,\n} from '#packages/ecma402-abstract/utils.js'\nimport {CanonicalCodeForDisplayNames} from '#packages/ecma402-abstract/DisplayNames/CanonicalCodeForDisplayNames.js'\nimport {IsValidDateTimeFieldCode} from '#packages/ecma402-abstract/DisplayNames/IsValidDateTimeFieldCode.js'\n\nimport {ResolveLocale} from '@formatjs/intl-localematcher'\n\nexport interface DisplayNamesOptions {\n localeMatcher?: 'lookup' | 'best fit'\n style?: 'narrow' | 'short' | 'long'\n type:\n | 'language'\n | 'region'\n | 'script'\n | 'currency'\n | 'calendar'\n | 'dateTimeField'\n fallback?: 'code' | 'none'\n languageDisplay?: 'dialect' | 'standard'\n}\n\nexport interface DisplayNamesResolvedOptions {\n locale: string\n style: NonNullable<DisplayNamesOptions['style']>\n type: NonNullable<DisplayNamesOptions['type']>\n fallback: NonNullable<DisplayNamesOptions['fallback']>\n languageDisplay: NonNullable<DisplayNamesOptions['languageDisplay']>\n}\n\nexport class DisplayNames {\n constructor(\n locales: string | string[] | undefined,\n options: DisplayNamesOptions\n ) {\n if (new.target === undefined) {\n throw TypeError(`Constructor Intl.DisplayNames requires 'new'`)\n }\n const requestedLocales = CanonicalizeLocaleList(locales)\n options = GetOptionsObject(options)\n\n const opt = Object.create(null)\n const {localeData} = DisplayNames\n const matcher = GetOption(\n options,\n 'localeMatcher',\n 'string',\n ['lookup', 'best fit'],\n 'best fit'\n )\n opt.localeMatcher = matcher\n\n const r = ResolveLocale(\n Array.from(DisplayNames.availableLocales),\n requestedLocales,\n opt,\n [], // there is no relevantExtensionKeys\n DisplayNames.localeData,\n DisplayNames.getDefaultLocale\n )\n\n const style = GetOption(\n options,\n 'style',\n 'string',\n ['narrow', 'short', 'long'],\n 'long'\n )\n setSlot(this, 'style', style)\n\n const type = GetOption(\n options,\n 'type',\n 'string',\n ['language', 'region', 'script', 'currency', 'calendar', 'dateTimeField'],\n undefined\n )\n if (type === undefined) {\n throw TypeError(`Intl.DisplayNames constructor requires \"type\" option`)\n }\n\n setSlot(this, 'type', type)\n\n const fallback = GetOption(\n options,\n 'fallback',\n 'string',\n ['code', 'none'],\n 'code'\n )\n setSlot(this, 'fallback', fallback)\n setSlot(this, 'locale', r.locale)\n\n const {dataLocale} = r\n const dataLocaleData = localeData[dataLocale]\n invariant(!!dataLocaleData, `Missing locale data for ${dataLocale}`)\n setSlot(this, 'localeData', dataLocaleData)\n invariant(\n dataLocaleData !== undefined,\n `locale data for ${r.locale} does not exist.`\n )\n const {types} = dataLocaleData\n invariant(typeof types === 'object' && types != null, 'invalid types data')\n const typeFields = types[type]\n invariant(\n typeof typeFields === 'object' && typeFields != null,\n 'invalid typeFields data'\n )\n const languageDisplay = GetOption(\n options,\n 'languageDisplay',\n 'string',\n ['dialect', 'standard'],\n 'dialect'\n )\n if (type === 'language') {\n setSlot(this, 'languageDisplay', languageDisplay)\n // Using types[type] instead of typeFields because TypeScript cannot infer the correct type\n const typeFields = types[type][languageDisplay]\n invariant(\n typeof typeFields === 'object' && typeFields != null,\n 'invalid language typeFields data'\n )\n }\n\n // Using types[type] instead of typeFields because TypeScript cannot infer the correct type\n const styleFields =\n type === 'language'\n ? types[type][languageDisplay][style]\n : types[type][style]\n invariant(\n typeof styleFields === 'object' && styleFields != null,\n 'invalid styleFields data'\n )\n setSlot(this, 'fields', styleFields)\n }\n\n static supportedLocalesOf(\n locales?: string | string[],\n options?: Pick<DisplayNamesOptions, 'localeMatcher'>\n ): string[] {\n return SupportedLocales(\n DisplayNames.availableLocales,\n CanonicalizeLocaleList(locales),\n options\n )\n }\n\n static __addLocaleData(...data: DisplayNamesLocaleData[]): void {\n for (const {data: d, locale} of data) {\n const minimizedLocale = new (Intl as any).Locale(locale)\n .minimize()\n .toString()\n DisplayNames.localeData[locale] = DisplayNames.localeData[\n minimizedLocale\n ] = d\n DisplayNames.availableLocales.add(minimizedLocale)\n DisplayNames.availableLocales.add(locale)\n if (!DisplayNames.__defaultLocale) {\n DisplayNames.__defaultLocale = minimizedLocale\n }\n }\n }\n\n of(code: string | number | Record<string, unknown>): string | undefined {\n checkReceiver(this, 'of')\n const type = getSlot(this, 'type')\n const codeAsString = ToString(code)\n if (!isValidCodeForDisplayNames(type, codeAsString)) {\n throw RangeError('invalid code for Intl.DisplayNames.prototype.of')\n }\n const {localeData, style, fallback} = getMultiInternalSlots(\n __INTERNAL_SLOT_MAP__,\n this,\n 'localeData',\n 'style',\n 'fallback'\n )\n\n // Canonicalize the case.\n let canonicalCode = CanonicalCodeForDisplayNames(type, codeAsString)\n\n let name: string | undefined\n if (type === 'language') {\n const languageDisplay = getSlot(this, 'languageDisplay')\n name = getNameForTypeLanguage(\n languageDisplay,\n localeData,\n style,\n canonicalCode,\n fallback\n )\n } else {\n // All the other types\n const typesData = localeData.types[type]\n name = typesData[style][canonicalCode] || typesData.long[canonicalCode]\n }\n\n if (name !== undefined) {\n return name\n }\n\n if (fallback === 'code') {\n return codeAsString\n }\n }\n\n resolvedOptions(): DisplayNamesResolvedOptions {\n checkReceiver(this, 'resolvedOptions')\n return {\n ...getMultiInternalSlots(\n __INTERNAL_SLOT_MAP__,\n this,\n 'locale',\n 'style',\n 'type',\n 'fallback',\n 'languageDisplay'\n ),\n }\n }\n\n static localeData: Record<string, DisplayNamesData | undefined> = {}\n private static availableLocales = new Set<string>()\n private static __defaultLocale = ''\n private static getDefaultLocale() {\n return DisplayNames.__defaultLocale\n }\n public static readonly polyfilled = true\n}\n\n// https://tc39.es/proposal-intl-displaynames/#sec-isvalidcodefordisplaynames\nfunction isValidCodeForDisplayNames(\n type: NonNullable<DisplayNamesOptions['type']>,\n code: string\n): boolean {\n switch (type) {\n case 'language':\n // subset of unicode_language_id\n // languageCode [\"-\" scriptCode] [\"-\" regionCode] *(\"-\" variant)\n // where:\n // - languageCode is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code.\n // - scriptCode is should be an ISO-15924 four letters script code\n // - regionCode is either an ISO-3166 two letters region code, or a three digits UN M49 Geographic Regions.\n return /^[a-z]{2,3}(-[a-z]{4})?(-([a-z]{2}|\\d{3}))?(-([a-z\\d]{5,8}|\\d[a-z\\d]{3}))*$/i.test(\n code\n )\n case 'region':\n // unicode_region_subtag\n return /^([a-z]{2}|\\d{3})$/i.test(code)\n case 'script':\n // unicode_script_subtag\n return /^[a-z]{4}$/i.test(code)\n case 'currency':\n return IsWellFormedCurrencyCode(code)\n case 'calendar':\n // unicode locale identifier type\n return /^[a-z0-9]{3,8}([-_][a-z0-9]{3,8})*$/i.test(code)\n case 'dateTimeField':\n return IsValidDateTimeFieldCode(code)\n }\n}\n\ntry {\n // IE11 does not have Symbol\n if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n Object.defineProperty(DisplayNames.prototype, Symbol.toStringTag, {\n value: 'Intl.DisplayNames',\n configurable: true,\n enumerable: false,\n writable: false,\n })\n }\n Object.defineProperty(DisplayNames, 'length', {\n value: 2,\n writable: false,\n enumerable: false,\n configurable: true,\n })\n} catch {\n // Make test 262 compliant\n}\n\ninterface DisplayNamesInternalSlots {\n locale: string\n style: NonNullable<DisplayNamesOptions['style']>\n type: NonNullable<DisplayNamesOptions['type']>\n fallback: NonNullable<DisplayNamesOptions['fallback']>\n languageDisplay: NonNullable<DisplayNamesOptions['languageDisplay']>\n // Note that this differs from `fields` slot in the spec.\n localeData: DisplayNamesData\n fields: Record<string, string>\n}\n\nconst __INTERNAL_SLOT_MAP__ = new WeakMap<\n DisplayNames,\n DisplayNamesInternalSlots\n>()\n\nfunction getSlot<K extends keyof DisplayNamesInternalSlots>(\n instance: DisplayNames,\n key: K\n): DisplayNamesInternalSlots[K] {\n return getInternalSlot(__INTERNAL_SLOT_MAP__, instance, key)\n}\n\nfunction setSlot<K extends keyof DisplayNamesInternalSlots>(\n instance: DisplayNames,\n key: K,\n value: DisplayNamesInternalSlots[K]\n): void {\n setInternalSlot(__INTERNAL_SLOT_MAP__, instance, key, value)\n}\n\nfunction checkReceiver(receiver: unknown, methodName: string) {\n if (!(receiver instanceof DisplayNames)) {\n throw TypeError(\n `Method Intl.DisplayNames.prototype.${methodName} called on incompatible receiver`\n )\n }\n}\n\nfunction getNameForTypeLanguage(\n languageDisplay: DisplayNamesInternalSlots['languageDisplay'],\n localeData: DisplayNamesData,\n style: DisplayNamesInternalSlots['style'],\n canonicalCode: string,\n fallback: DisplayNamesInternalSlots['fallback']\n): string | undefined {\n // First, try to get the name using the canonicalCode\n const typesData = localeData.types.language[languageDisplay]\n const name = typesData[style][canonicalCode] || typesData.long[canonicalCode]\n\n if (name === undefined) {\n // If no name has been found using the canonicalCode,\n // check if the latter contains a region sub tag\n const regionMatch = /-([a-z]{2}|\\d{3})\\b/i.exec(canonicalCode)\n if (regionMatch) {\n // Extract the language and region sub tags\n const languageSubTag =\n canonicalCode.substring(0, regionMatch.index) +\n canonicalCode.substring(regionMatch.index + regionMatch[0].length)\n const regionSubTag = regionMatch[1]\n\n // Let's try again using languageSubTag this time\n const name =\n typesData[style][languageSubTag] || typesData.long[languageSubTag]\n\n // If a name has been found and a region sub tag exists,\n // compose them together or use the code fallback\n if (name !== undefined && regionSubTag) {\n // Retrieve region display names\n const regionsData = localeData.types.region\n const regionDisplayName: string | undefined =\n regionsData[style][regionSubTag] || regionsData.long[regionSubTag]\n\n if (regionDisplayName || fallback === 'code') {\n // Interpolate into locale-specific pattern.\n const pattern = localeData.patterns.locale\n return pattern\n .replace('{0}', name)\n .replace('{1}', regionDisplayName || regionSubTag)\n }\n } else {\n return name\n }\n }\n } else {\n return name\n }\n}\n","export const supportedLocales = [\n\t\"af\",\n\t\"af-NA\",\n\t\"agq\",\n\t\"ak\",\n\t\"am\",\n\t\"ar\",\n\t\"ar-AE\",\n\t\"ar-BH\",\n\t\"ar-DJ\",\n\t\"ar-DZ\",\n\t\"ar-EG\",\n\t\"ar-EH\",\n\t\"ar-ER\",\n\t\"ar-IL\",\n\t\"ar-IQ\",\n\t\"ar-JO\",\n\t\"ar-KM\",\n\t\"ar-KW\",\n\t\"ar-LB\",\n\t\"ar-LY\",\n\t\"ar-MA\",\n\t\"ar-MR\",\n\t\"ar-OM\",\n\t\"ar-PS\",\n\t\"ar-QA\",\n\t\"ar-SA\",\n\t\"ar-SD\",\n\t\"ar-SO\",\n\t\"ar-SS\",\n\t\"ar-SY\",\n\t\"ar-TD\",\n\t\"ar-TN\",\n\t\"ar-YE\",\n\t\"as\",\n\t\"asa\",\n\t\"ast\",\n\t\"az\",\n\t\"az-Cyrl\",\n\t\"az-Latn\",\n\t\"bas\",\n\t\"be\",\n\t\"be-tarask\",\n\t\"bem\",\n\t\"bez\",\n\t\"bg\",\n\t\"bm\",\n\t\"bn\",\n\t\"bn-IN\",\n\t\"bo\",\n\t\"bo-IN\",\n\t\"br\",\n\t\"brx\",\n\t\"bs\",\n\t\"bs-Cyrl\",\n\t\"bs-Latn\",\n\t\"ca\",\n\t\"ca-AD\",\n\t\"ca-ES-valencia\",\n\t\"ca-FR\",\n\t\"ca-IT\",\n\t\"ccp\",\n\t\"ccp-IN\",\n\t\"ce\",\n\t\"ceb\",\n\t\"cgg\",\n\t\"chr\",\n\t\"ckb\",\n\t\"ckb-IR\",\n\t\"cs\",\n\t\"cy\",\n\t\"da\",\n\t\"da-GL\",\n\t\"dav\",\n\t\"de\",\n\t\"de-AT\",\n\t\"de-BE\",\n\t\"de-CH\",\n\t\"de-IT\",\n\t\"de-LI\",\n\t\"de-LU\",\n\t\"dje\",\n\t\"doi\",\n\t\"dsb\",\n\t\"dua\",\n\t\"dyo\",\n\t\"dz\",\n\t\"ebu\",\n\t\"ee\",\n\t\"ee-TG\",\n\t\"el\",\n\t\"el-CY\",\n\t\"en\",\n\t\"en-001\",\n\t\"en-150\",\n\t\"en-AE\",\n\t\"en-AG\",\n\t\"en-AI\",\n\t\"en-AS\",\n\t\"en-AT\",\n\t\"en-AU\",\n\t\"en-BB\",\n\t\"en-BE\",\n\t\"en-BI\",\n\t\"en-BM\",\n\t\"en-BS\",\n\t\"en-BW\",\n\t\"en-BZ\",\n\t\"en-CA\",\n\t\"en-CC\",\n\t\"en-CH\",\n\t\"en-CK\",\n\t\"en-CM\",\n\t\"en-CX\",\n\t\"en-CY\",\n\t\"en-DE\",\n\t\"en-DG\",\n\t\"en-DK\",\n\t\"en-DM\",\n\t\"en-ER\",\n\t\"en-FI\",\n\t\"en-FJ\",\n\t\"en-FK\",\n\t\"en-FM\",\n\t\"en-GB\",\n\t\"en-GD\",\n\t\"en-GG\",\n\t\"en-GH\",\n\t\"en-GI\",\n\t\"en-GM\",\n\t\"en-GU\",\n\t\"en-GY\",\n\t\"en-HK\",\n\t\"en-IE\",\n\t\"en-IL\",\n\t\"en-IM\",\n\t\"en-IN\",\n\t\"en-IO\",\n\t\"en-JE\",\n\t\"en-JM\",\n\t\"en-KE\",\n\t\"en-KI\",\n\t\"en-KN\",\n\t\"en-KY\",\n\t\"en-LC\",\n\t\"en-LR\",\n\t\"en-LS\",\n\t\"en-MG\",\n\t\"en-MH\",\n\t\"en-MO\",\n\t\"en-MP\",\n\t\"en-MS\",\n\t\"en-MT\",\n\t\"en-MU\",\n\t\"en-MW\",\n\t\"en-MY\",\n\t\"en-NA\",\n\t\"en-NF\",\n\t\"en-NG\",\n\t\"en-NL\",\n\t\"en-NR\",\n\t\"en-NU\",\n\t\"en-NZ\",\n\t\"en-PG\",\n\t\"en-PH\",\n\t\"en-PK\",\n\t\"en-PN\",\n\t\"en-PR\",\n\t\"en-PW\",\n\t\"en-RW\",\n\t\"en-SB\",\n\t\"en-SC\",\n\t\"en-SD\",\n\t\"en-SE\",\n\t\"en-SG\",\n\t\"en-SH\",\n\t\"en-SI\",\n\t\"en-SL\",\n\t\"en-SS\",\n\t\"en-SX\",\n\t\"en-SZ\",\n\t\"en-TC\",\n\t\"en-TK\",\n\t\"en-TO\",\n\t\"en-TT\",\n\t\"en-TV\",\n\t\"en-TZ\",\n\t\"en-UG\",\n\t\"en-UM\",\n\t\"en-VC\",\n\t\"en-VG\",\n\t\"en-VI\",\n\t\"en-VU\",\n\t\"en-WS\",\n\t\"en-ZA\",\n\t\"en-ZM\",\n\t\"en-ZW\",\n\t\"eo\",\n\t\"es\",\n\t\"es-419\",\n\t\"es-AR\",\n\t\"es-BO\",\n\t\"es-BR\",\n\t\"es-BZ\",\n\t\"es-CL\",\n\t\"es-CO\",\n\t\"es-CR\",\n\t\"es-CU\",\n\t\"es-DO\",\n\t\"es-EA\",\n\t\"es-EC\",\n\t\"es-GQ\",\n\t\"es-GT\",\n\t\"es-HN\",\n\t\"es-IC\",\n\t\"es-MX\",\n\t\"es-NI\",\n\t\"es-PA\",\n\t\"es-PE\",\n\t\"es-PH\",\n\t\"es-PR\",\n\t\"es-PY\",\n\t\"es-SV\",\n\t\"es-US\",\n\t\"es-UY\",\n\t\"es-VE\",\n\t\"et\",\n\t\"eu\",\n\t\"ewo\",\n\t\"fa\",\n\t\"fa-AF\",\n\t\"ff\",\n\t\"ff-Adlm\",\n\t\"ff-Adlm-BF\",\n\t\"ff-Adlm-CM\",\n\t\"ff-Adlm-GH\",\n\t\"ff-Adlm-GM\",\n\t\"ff-Adlm-GW\",\n\t\"ff-Adlm-LR\",\n\t\"ff-Adlm-MR\",\n\t\"ff-Adlm-NE\",\n\t\"ff-Adlm-NG\",\n\t\"ff-Adlm-SL\",\n\t\"ff-Adlm-SN\",\n\t\"ff-Latn\",\n\t\"ff-Latn-BF\",\n\t\"ff-Latn-CM\",\n\t\"ff-Latn-GH\",\n\t\"ff-Latn-GM\",\n\t\"ff-Latn-GN\",\n\t\"ff-Latn-GW\",\n\t\"ff-Latn-LR\",\n\t\"ff-Latn-MR\",\n\t\"ff-Latn-NE\",\n\t\"ff-Latn-NG\",\n\t\"ff-Latn-SL\",\n\t\"fi\",\n\t\"fil\",\n\t\"fo\",\n\t\"fo-DK\",\n\t\"fr\",\n\t\"fr-BE\",\n\t\"fr-BF\",\n\t\"fr-BI\",\n\t\"fr-BJ\",\n\t\"fr-BL\",\n\t\"fr-CA\",\n\t\"fr-C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kn\",\n\t\"ko\",\n\t\"ko-KP\",\n\t\"kok\",\n\t\"ks\",\n\t\"ks-Arab\",\n\t\"ksb\",\n\t\"ksf\",\n\t\"ksh\",\n\t\"ku\",\n\t\"kw\",\n\t\"ky\",\n\t\"lag\",\n\t\"lb\",\n\t\"lg\",\n\t\"lkt\",\n\t\"ln\",\n\t\"ln-AO\",\n\t\"ln-CF\",\n\t\"ln-CG\",\n\t\"lo\",\n\t\"lrc\",\n\t\"lrc-IQ\",\n\t\"lt\",\n\t\"lu\",\n\t\"luo\",\n\t\"luy\",\n\t\"lv\",\n\t\"mai\",\n\t\"mas\",\n\t\"mas-TZ\",\n\t\"mer\",\n\t\"mfe\",\n\t\"mg\",\n\t\"mgh\",\n\t\"mgo\",\n\t\"mi\",\n\t\"mk\",\n\t\"ml\",\n\t\"mn\",\n\t\"mni\",\n\t\"mni-Beng\",\n\t\"mr\",\n\t\"ms\",\n\t\"ms-BN\",\n\t\"ms-ID\",\n\t\"ms-SG\",\n\t\"mt\",\n\t\"mua\",\n\t\"my\",\n\t\"mzn\",\n\t\"naq\",\n\t\"nb\",\n\t\"nb-SJ\",\n\t\"nd\",\n\t\"nds\",\n\t\"nds-NL\",\n\t\"ne\",\n\t\"ne-IN\",\n\t\"nl\",\n\t\"nl-AW\",\n\t\"nl-BE\",\n\t\"nl-BQ\",\n\t\"nl-CW\",\n\t\"nl-SR\",\n\t\"nl-SX\",\n\t\"nmg\",\n\t\"nn\",\n\t\"nnh\",\n\t\"no\",\n\t\"nus\",\n\t\"nyn\",\n\t\"om\",\n\t\"om-KE\",\n\t\"or\",\n\t\"os\",\n\t\"os-RU\",\n\t\"pa\",\n\t\"pa-Arab\",\n\t\"pa-Guru\",\n\t\"pcm\",\n\t\"pl\",\n\t\"ps\",\n\t\"ps-PK\",\n\t\"pt\",\n\t\"pt-AO\",\n\t\"pt-CH\",\n\t\"pt-CV\",\n\t\"pt-GQ\",\n\t\"pt-GW\",\n\t\"pt-LU\",\n\t\"pt-MO\",\n\t\"pt-MZ\",\n\t\"pt-PT\",\n\t\"pt-ST\",\n\t\"pt-TL\",\n\t\"qu\",\n\t\"qu-BO\",\n\t\"qu-EC\",\n\t\"rm\",\n\t\"rn\",\n\t\"ro\",\n\t\"ro-MD\",\n\t\"rof\",\n\t\"ru\",\n\t\"ru-BY\",\n\t\"ru-KG\",\n\t\"ru-KZ\",\n\t\"ru-MD\",\n\t\"ru-UA\",\n\t\"rw\",\n\t\"rwk\",\n\t\"sa\",\n\t\"sah\",\n\t\"saq\",\n\t\"sat\",\n\t\"sat-Olck\",\n\t\"sbp\",\n\t\"sc\",\n\t\"sd\",\n\t\"sd-Arab\",\n\t\"sd-Deva\",\n\t\"se\",\n\t\"se-FI\",\n\t\"se-SE\",\n\t\"seh\",\n\t\"ses\",\n\t\"sg\",\n\t\"shi\",\n\t\"shi-Latn\",\n\t\"shi-Tfng\",\n\t\"si\",\n\t\"sk\",\n\t\"sl\",\n\t\"smn\",\n\t\"sn\",\n\t\"so\",\n\t\"so-DJ\",\n\t\"so-ET\",\n\t\"so-KE\",\n\t\"sq\",\n\t\"sq-MK\",\n\t\"sq-XK\",\n\t\"sr\",\n\t\"sr-Cyrl\",\n\t\"sr-Cyrl-BA\",\n\t\"sr-Cyrl-ME\",\n\t\"sr-Cyrl-XK\",\n\t\"sr-Latn\",\n\t\"sr-Latn-BA\",\n\t\"sr-Latn-ME\",\n\t\"sr-Latn-XK\",\n\t\"su\",\n\t\"su-Latn\",\n\t\"sv\",\n\t\"sv-AX\",\n\t\"sv-FI\",\n\t\"sw\",\n\t\"sw-CD\",\n\t\"sw-KE\",\n\t\"sw-UG\",\n\t\"ta\",\n\t\"ta-LK\",\n\t\"ta-MY\",\n\t\"ta-SG\",\n\t\"te\",\n\t\"teo\",\n\t\"teo-KE\",\n\t\"tg\",\n\t\"th\",\n\t\"ti\",\n\t\"ti-ER\",\n\t\"tk\",\n\t\"to\",\n\t\"tr\",\n\t\"tr-CY\",\n\t\"tt\",\n\t\"twq\",\n\t\"tzm\",\n\t\"ug\",\n\t\"uk\",\n\t\"und\",\n\t\"ur\",\n\t\"ur-IN\",\n\t\"uz\",\n\t\"uz-Arab\",\n\t\"uz-Cyrl\",\n\t\"uz-Latn\",\n\t\"vai\",\n\t\"vai-Latn\",\n\t\"vai-Vaii\",\n\t\"vi\",\n\t\"vun\",\n\t\"wae\",\n\t\"wo\",\n\t\"xh\",\n\t\"xog\",\n\t\"yav\",\n\t\"yi\",\n\t\"yo\",\n\t\"yo-BJ\",\n\t\"yrl\",\n\t\"yrl-CO\",\n\t\"yrl-VE\",\n\t\"yue\",\n\t\"yue-Hans\",\n\t\"yue-Hant\",\n\t\"zgh\",\n\t\"zh\",\n\t\"zh-Hans\",\n\t\"zh-Hans-HK\",\n\t\"zh-Hans-MO\",\n\t\"zh-Hans-SG\",\n\t\"zh-Hant\",\n\t\"zh-Hant-HK\",\n\t\"zh-Hant-MO\",\n\t\"zu\"\n];\n","import {match} from '@formatjs/intl-localematcher'\nimport {supportedLocales} from '@formatjs_generated/cldr.supported-locales/intl-displaynames.js'\n\n/**\n * https://bugs.chromium.org/p/chromium/issues/detail?id=1097432\n */\nfunction hasMissingICUBug() {\n const DisplayNames = (Intl as any).DisplayNames\n if (DisplayNames && !DisplayNames.polyfilled) {\n return (\n new DisplayNames(['en'], {\n type: 'region',\n }).of('CA') === 'CA'\n )\n }\n return false\n}\n\n/**\n * https://bugs.chromium.org/p/chromium/issues/detail?id=1176979\n * https://github.com/formatjs/formatjs/issues/5889\n *\n * Tests if the implementation properly canonicalizes script codes per ECMA-402 spec.\n * The spec requires CanonicalCodeForDisplayNames to convert lowercase 'arab' to title-case 'Arab'\n * before lookup. This test uses lowercase input to verify canonicalization happens.\n *\n * - Correct implementations: canonicalize 'arab' → 'Arab', look up → return 'Arabic'\n * - Buggy implementations (old Node.js): don't canonicalize, look up 'arab' literally → return 'arab'\n *\n * See ECMA-402 section 12.5.1: CanonicalCodeForDisplayNames\n */\nfunction hasScriptBug() {\n const DisplayNames = (Intl as any).DisplayNames\n if (DisplayNames && !DisplayNames.polyfilled) {\n return (\n new DisplayNames(['en'], {\n type: 'script',\n }).of('arab') !== 'Arabic'\n )\n }\n return false\n}\n\nfunction supportedLocalesOf(locale?: string | string[]) {\n if (!locale) {\n return true\n }\n const locales = Array.isArray(locale) ? locale : [locale]\n return (\n (Intl as any).DisplayNames.supportedLocalesOf(locales).length ===\n locales.length\n )\n}\n\nexport function _shouldPolyfillWithoutLocale(): boolean {\n return !(Intl as any).DisplayNames || hasMissingICUBug() || hasScriptBug()\n}\n\nexport function shouldPolyfill(locale = 'en'): string | true | undefined {\n try {\n if (_shouldPolyfillWithoutLocale() || !supportedLocalesOf(locale)) {\n return match([locale], supportedLocales, 'en')\n }\n } catch {\n return true\n }\n}\n","import {DisplayNames} from '#packages/intl-displaynames/index.js'\nimport {shouldPolyfill} from '#packages/intl-displaynames/should-polyfill.js'\n\nif (shouldPolyfill()) {\n Object.defineProperty(Intl, 'DisplayNames', {\n value: DisplayNames,\n enumerable: false,\n writable: true,\n configurable: true,\n })\n\n // Drain any locale data that was buffered before polyfill loaded\n const buf = (globalThis as Record<string, unknown>)\n .__FORMATJS_DISPLAYNAMES_DATA__ as\n | Parameters<(typeof DisplayNames)['__addLocaleData']>[0][]\n | undefined\n if (buf) {\n for (const d of buf) DisplayNames.__addLocaleData(d)\n delete (globalThis as Record<string, unknown>)\n .__FORMATJS_DISPLAYNAMES_DATA__\n }\n}\n"],"x_google_ignoreList":[7,12],"mappings":";;;;;AAGA,SAAgB,SAAS,GAAG;AAC3B,KAAI,OAAO,MAAM,SAChB,OAAM,UAAU,4CAA4C;AAE7D,QAAO,OAAO,EAAE;;;;;;;;ACHjB,SAAgB,uBAAuB,SAAS;AAE/C,QAAO,KAAK,oBAAoB,QAAQ;;;;;;;;;;;;ACGzC,SAAgB,UAAU,MAAM,MAAM,MAAM,QAAQ,UAAU;AAC7D,KAAI,OAAO,SAAS,SACnB,OAAM,IAAI,UAAU,4B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E/D,KAAI,SAAS,KAAA,GAAW;EAGtB,MAAM,cAAc,uBAAuB,KAAK,cAAc;AAC9D,MAAI,aAAa;GAEf,MAAM,iBACJ,cAAc,UAAU,GAAG,YAAY,MAAM,GAC7C,cAAc,UAAU,YAAY,QAAQ,YAAY,GAAG,OAAO;GACpE,MAAM,eAAe,YAAY;GAGjC,MAAM,OACJ,UAAU,OAAO,mBAAmB,UAAU,KAAK;AAIrD,OAAI,SAAS,KAAA,KAAa,cAAc;IAEtC,MAAM,cAAc,WAAW,MAAM;IACrC,MAAM,oBACJ,YAAY,OAAO,iBAAiB,YAAY,KAAK;AAEvD,QAAI,qBAAqB,aAAa,OAGpC,QADgB,WAAW,SAAS,OAEjC,QAAQ,OAAO,KAAK,CACpB,QAAQ,OAAO,qBAAqB,aAAa;SAGtD,QAAO;;OAIX,QAAO;;;;AC7XX,MAAa,mBAAmB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;;;;;;ACtjBD,SAAS,mBAAmB;CAC1B,MAAM,eAAgB,KAAa;AACnC,KAAI,gBAAgB,CAAC,aAAa,WAChC,QACE,IAAI,aAAa,CAAC,KAAK,EAAE,EACvB,MAAM,UACP,CAAC,CAAC,GAAG,KAAK,KAAK;AAGpB,QAAO;;;;;;;;;;;;;;;AAgBT,SAAS,eAAe;CACtB,MAAM,eAAgB,KAAa;AACnC,KAAI,gBAAgB,CAAC,aAAa,WAChC,QACE,IAAI,aAAa,CAAC,KAAK,EAAE,EACvB,MAAM,UACP,CAAC,CAAC,GAAG,OAAO,KAAK;AAGtB,QAAO;;AAGT,SAAS,mBAAmB,QAA4B;AACtD,KAAI,CAAC,OACH,QAAO;CAET,MAAM,UAAU,MAAM,QAAQ,OAAO,GAAG,SAAS,CAAC,OAAO;AACzD,QACG,KAAa,aAAa,mBAAmB,QAAQ,CAAC,WACvD,QAAQ;;AAIZ,SAAgB,+BAAwC;AACtD,QAAO,CAAE,KAAa,gBAAgB,kBAAkB,IAAI,cAAc;;AAG5E,SAAgB,eAAe,SAAS,MAAiC;AACvE,KAAI;AACF,MAAI,8BAA8B,IAAI,CAAC,mBAAmB,OAAO,CAC/D,QAAO,MAAM,CAAC,OAAO,EAAE,kBAAkB,KAAK;SAE1C;AACN,SAAO;;;;;AC7DX,IAAI,gBAAgB,EAAE;AACpB,QAAO,eAAe,MAAM,gBAAgB;EAC1C,OAAO;EACP,YAAY;EACZ,UAAU;EACV,cAAc;EACf,CAAC;CAGF,MAAM,MAAO,WACV;AAGH,KAAI,KAAK;AACP,OAAK,MAAM,KAAK,IAAK,cAAa,gBAAgB,EAAE;AACpD,SAAQ,WACL"}
|
package/should-polyfill.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { match } from "@formatjs/intl-localematcher";
|
|
2
|
-
//#region
|
|
2
|
+
//#region node_modules/.aspect_rules_js/@formatjs_generated+cldr.supported-locales@0.0.0/node_modules/@formatjs_generated/cldr.supported-locales/intl-displaynames.js
|
|
3
3
|
const supportedLocales = [
|
|
4
4
|
"af",
|
|
5
5
|
"af-NA",
|
package/should-polyfill.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"should-polyfill.js","names":[],"sources":["../supported-locales.generated.ts","../should-polyfill.ts"],"sourcesContent":["export const supportedLocales: string[] = [\n 'af',\n 'af-NA',\n 'agq',\n 'ak',\n 'am',\n 'ar',\n 'ar-AE',\n 'ar-BH',\n 'ar-DJ',\n 'ar-DZ',\n 'ar-EG',\n 'ar-EH',\n 'ar-ER',\n 'ar-IL',\n 'ar-IQ',\n 'ar-JO',\n 'ar-KM',\n 'ar-KW',\n 'ar-LB',\n 'ar-LY',\n 'ar-MA',\n 'ar-MR',\n 'ar-OM',\n 'ar-PS',\n 'ar-QA',\n 'ar-SA',\n 'ar-SD',\n 'ar-SO',\n 'ar-SS',\n 'ar-SY',\n 'ar-TD',\n 'ar-TN',\n 'ar-YE',\n 'as',\n 'asa',\n 'ast',\n 'az',\n 'az-Cyrl',\n 'az-Latn',\n 'bas',\n 'be',\n 'be-tarask',\n 'bem',\n 'bez',\n 'bg',\n 'bm',\n 'bn',\n 'bn-IN',\n 'bo',\n 'bo-IN',\n 'br',\n 'brx',\n 'bs',\n 'bs-Cyrl',\n 'bs-Latn',\n 'ca',\n 'ca-AD',\n 'ca-ES-valencia',\n 'ca-FR',\n 'ca-IT',\n 'ccp',\n 'ccp-IN',\n 'ce',\n 'ceb',\n 'cgg',\n 'chr',\n 'ckb',\n 'ckb-IR',\n 'cs',\n 'cy',\n 'da',\n 'da-GL',\n 'dav',\n 'de',\n 'de-AT',\n 'de-BE',\n 'de-CH',\n 'de-IT',\n 'de-LI',\n 'de-LU',\n 'dje',\n 'doi',\n 'dsb',\n 'dua',\n 'dyo',\n 'dz',\n 'ebu',\n 'ee',\n 'ee-TG',\n 'el',\n 'el-CY',\n 'en',\n 'en-001',\n 'en-150',\n 'en-AE',\n 'en-AG',\n 'en-AI',\n 'en-AS',\n 'en-AT',\n 'en-AU',\n 'en-BB',\n 'en-BE',\n 'en-BI',\n 'en-BM',\n 'en-BS',\n 'en-BW',\n 'en-BZ',\n 'en-CA',\n 'en-CC',\n 'en-CH',\n 'en-CK',\n 'en-CM',\n 'en-CX',\n 'en-CY',\n 'en-DE',\n 'en-DG',\n 'en-DK',\n 'en-DM',\n 'en-ER',\n 'en-FI',\n 'en-FJ',\n 'en-FK',\n 'en-FM',\n 'en-GB',\n 'en-GD',\n 'en-GG',\n 'en-GH',\n 'en-GI',\n 'en-GM',\n 'en-GU',\n 'en-GY',\n 'en-HK',\n 'en-IE',\n 'en-IL',\n 'en-IM',\n 'en-IN',\n 'en-IO',\n 'en-JE',\n 'en-JM',\n 'en-KE',\n 'en-KI',\n 'en-KN',\n 'en-KY',\n 'en-LC',\n 'en-LR',\n 'en-LS',\n 'en-MG',\n 'en-MH',\n 'en-MO',\n 'en-MP',\n 'en-MS',\n 'en-MT',\n 'en-MU',\n 'en-MW',\n 'en-MY',\n 'en-NA',\n 'en-NF',\n 'en-NG',\n 'en-NL',\n 'en-NR',\n 'en-NU',\n 'en-NZ',\n 'en-PG',\n 'en-PH',\n 'en-PK',\n 'en-PN',\n 'en-PR',\n 'en-PW',\n 'en-RW',\n 'en-SB',\n 'en-SC',\n 'en-SD',\n 'en-SE',\n 'en-SG',\n 'en-SH',\n 'en-SI',\n 'en-SL',\n 'en-SS',\n 'en-SX',\n 'en-SZ',\n 'en-TC',\n 'en-TK',\n 'en-TO',\n 'en-TT',\n 'en-TV',\n 'en-TZ',\n 'en-UG',\n 'en-UM',\n 'en-VC',\n 'en-VG',\n 'en-VI',\n 'en-VU',\n 'en-WS',\n 'en-ZA',\n 'en-ZM',\n 'en-ZW',\n 'eo',\n 'es',\n 'es-419',\n 'es-AR',\n 'es-BO',\n 'es-BR',\n 'es-BZ',\n 'es-CL',\n 'es-CO',\n 'es-CR',\n 'es-CU',\n 'es-DO',\n 'es-EA',\n 'es-EC',\n 'es-GQ',\n 'es-GT',\n 'es-HN',\n 'es-IC',\n 'es-MX',\n 'es-NI',\n 'es-PA',\n 'es-PE',\n 'es-PH',\n 'es-PR',\n 'es-PY',\n 'es-SV',\n 'es-US',\n 'es-UY',\n 'es-VE',\n 'et',\n 'eu',\n 'ewo',\n 'fa',\n 'fa-AF',\n 'ff',\n 'ff-Adlm',\n 'ff-Adlm-BF',\n 'ff-Adlm-CM',\n 'ff-Adlm-GH',\n 'ff-Adlm-GM',\n 'ff-Adlm-GW',\n 'ff-Adlm-LR',\n 'ff-Adlm-MR',\n 'ff-Adlm-NE',\n 'ff-Adlm-NG',\n 'ff-Adlm-SL',\n 'ff-Adlm-SN',\n 'ff-Latn',\n 'ff-Latn-BF',\n 'ff-Latn-CM',\n 'ff-Latn-GH',\n 'ff-Latn-GM',\n 'ff-Latn-GN',\n 'ff-Latn-GW',\n 'ff-Latn-LR',\n 'ff-Latn-MR',\n 'ff-Latn-NE',\n 'ff-Latn-NG',\n 'ff-Latn-SL',\n 'fi',\n 'fil',\n 'fo',\n 'fo-DK',\n 'fr',\n 'fr-BE',\n 'fr-BF',\n 'fr-BI',\n 'fr-BJ',\n 'fr-BL',\n 'fr-CA',\n 'fr-CD',\n 'fr-CF',\n 'fr-CG',\n 'fr-CH',\n 'fr-CI',\n 'fr-CM',\n 'fr-DJ',\n 'fr-DZ',\n 'fr-GA',\n 'fr-GF',\n 'fr-GN',\n 'fr-GP',\n 'fr-GQ',\n 'fr-HT',\n 'fr-KM',\n 'fr-LU',\n 'fr-MA',\n 'fr-MC',\n 'fr-MF',\n 'fr-MG',\n 'fr-ML',\n 'fr-MQ',\n 'fr-MR',\n 'fr-MU',\n 'fr-NC',\n 'fr-NE',\n 'fr-PF',\n 'fr-PM',\n 'fr-RE',\n 'fr-RW',\n 'fr-SC',\n 'fr-SN',\n 'fr-SY',\n 'fr-TD',\n 'fr-TG',\n 'fr-TN',\n 'fr-VU',\n 'fr-WF',\n 'fr-YT',\n 'fur',\n 'fy',\n 'ga',\n 'ga-GB',\n 'gd',\n 'gl',\n 'gsw',\n 'gsw-FR',\n 'gsw-LI',\n 'gu',\n 'guz',\n 'gv',\n 'ha',\n 'ha-GH',\n 'ha-NE',\n 'haw',\n 'he',\n 'hi',\n 'hr',\n 'hr-BA',\n 'hsb',\n 'hu',\n 'hy',\n 'ia',\n 'id',\n 'ig',\n 'ii',\n 'is',\n 'it',\n 'it-CH',\n 'it-SM',\n 'it-VA',\n 'ja',\n 'jgo',\n 'jmc',\n 'jv',\n 'ka',\n 'kab',\n 'kam',\n 'kde',\n 'kea',\n 'kgp',\n 'khq',\n 'ki',\n 'kk',\n 'kkj',\n 'kl',\n 'kln',\n 'km',\n 'kn',\n 'ko',\n 'ko-KP',\n 'kok',\n 'ks',\n 'ks-Arab',\n 'ksb',\n 'ksf',\n 'ksh',\n 'ku',\n 'kw',\n 'ky',\n 'lag',\n 'lb',\n 'lg',\n 'lkt',\n 'ln',\n 'ln-AO',\n 'ln-CF',\n 'ln-CG',\n 'lo',\n 'lrc',\n 'lrc-IQ',\n 'lt',\n 'lu',\n 'luo',\n 'luy',\n 'lv',\n 'mai',\n 'mas',\n 'mas-TZ',\n 'mer',\n 'mfe',\n 'mg',\n 'mgh',\n 'mgo',\n 'mi',\n 'mk',\n 'ml',\n 'mn',\n 'mni',\n 'mni-Beng',\n 'mr',\n 'ms',\n 'ms-BN',\n 'ms-ID',\n 'ms-SG',\n 'mt',\n 'mua',\n 'my',\n 'mzn',\n 'naq',\n 'nb',\n 'nb-SJ',\n 'nd',\n 'nds',\n 'nds-NL',\n 'ne',\n 'ne-IN',\n 'nl',\n 'nl-AW',\n 'nl-BE',\n 'nl-BQ',\n 'nl-CW',\n 'nl-SR',\n 'nl-SX',\n 'nmg',\n 'nn',\n 'nnh',\n 'no',\n 'nus',\n 'nyn',\n 'om',\n 'om-KE',\n 'or',\n 'os',\n 'os-RU',\n 'pa',\n 'pa-Arab',\n 'pa-Guru',\n 'pcm',\n 'pl',\n 'ps',\n 'ps-PK',\n 'pt',\n 'pt-AO',\n 'pt-CH',\n 'pt-CV',\n 'pt-GQ',\n 'pt-GW',\n 'pt-LU',\n 'pt-MO',\n 'pt-MZ',\n 'pt-PT',\n 'pt-ST',\n 'pt-TL',\n 'qu',\n 'qu-BO',\n 'qu-EC',\n 'rm',\n 'rn',\n 'ro',\n 'ro-MD',\n 'rof',\n 'ru',\n 'ru-BY',\n 'ru-KG',\n 'ru-KZ',\n 'ru-MD',\n 'ru-UA',\n 'rw',\n 'rwk',\n 'sa',\n 'sah',\n 'saq',\n 'sat',\n 'sat-Olck',\n 'sbp',\n 'sc',\n 'sd',\n 'sd-Arab',\n 'sd-Deva',\n 'se',\n 'se-FI',\n 'se-SE',\n 'seh',\n 'ses',\n 'sg',\n 'shi',\n 'shi-Latn',\n 'shi-Tfng',\n 'si',\n 'sk',\n 'sl',\n 'smn',\n 'sn',\n 'so',\n 'so-DJ',\n 'so-ET',\n 'so-KE',\n 'sq',\n 'sq-MK',\n 'sq-XK',\n 'sr',\n 'sr-Cyrl',\n 'sr-Cyrl-BA',\n 'sr-Cyrl-ME',\n 'sr-Cyrl-XK',\n 'sr-Latn',\n 'sr-Latn-BA',\n 'sr-Latn-ME',\n 'sr-Latn-XK',\n 'su',\n 'su-Latn',\n 'sv',\n 'sv-AX',\n 'sv-FI',\n 'sw',\n 'sw-CD',\n 'sw-KE',\n 'sw-UG',\n 'ta',\n 'ta-LK',\n 'ta-MY',\n 'ta-SG',\n 'te',\n 'teo',\n 'teo-KE',\n 'tg',\n 'th',\n 'ti',\n 'ti-ER',\n 'tk',\n 'to',\n 'tr',\n 'tr-CY',\n 'tt',\n 'twq',\n 'tzm',\n 'ug',\n 'uk',\n 'und',\n 'ur',\n 'ur-IN',\n 'uz',\n 'uz-Arab',\n 'uz-Cyrl',\n 'uz-Latn',\n 'vai',\n 'vai-Latn',\n 'vai-Vaii',\n 'vi',\n 'vun',\n 'wae',\n 'wo',\n 'xh',\n 'xog',\n 'yav',\n 'yi',\n 'yo',\n 'yo-BJ',\n 'yrl',\n 'yrl-CO',\n 'yrl-VE',\n 'yue',\n 'yue-Hans',\n 'yue-Hant',\n 'zgh',\n 'zh',\n 'zh-Hans',\n 'zh-Hans-HK',\n 'zh-Hans-MO',\n 'zh-Hans-SG',\n 'zh-Hant',\n 'zh-Hant-HK',\n 'zh-Hant-MO',\n 'zu',\n]\n","import {match} from '@formatjs/intl-localematcher'\nimport {supportedLocales} from '#packages/intl-displaynames/supported-locales.generated.js'\n\n/**\n * https://bugs.chromium.org/p/chromium/issues/detail?id=1097432\n */\nfunction hasMissingICUBug() {\n const DisplayNames = (Intl as any).DisplayNames\n if (DisplayNames && !DisplayNames.polyfilled) {\n return (\n new DisplayNames(['en'], {\n type: 'region',\n }).of('CA') === 'CA'\n )\n }\n return false\n}\n\n/**\n * https://bugs.chromium.org/p/chromium/issues/detail?id=1176979\n * https://github.com/formatjs/formatjs/issues/5889\n *\n * Tests if the implementation properly canonicalizes script codes per ECMA-402 spec.\n * The spec requires CanonicalCodeForDisplayNames to convert lowercase 'arab' to title-case 'Arab'\n * before lookup. This test uses lowercase input to verify canonicalization happens.\n *\n * - Correct implementations: canonicalize 'arab' → 'Arab', look up → return 'Arabic'\n * - Buggy implementations (old Node.js): don't canonicalize, look up 'arab' literally → return 'arab'\n *\n * See ECMA-402 section 12.5.1: CanonicalCodeForDisplayNames\n */\nfunction hasScriptBug() {\n const DisplayNames = (Intl as any).DisplayNames\n if (DisplayNames && !DisplayNames.polyfilled) {\n return (\n new DisplayNames(['en'], {\n type: 'script',\n }).of('arab') !== 'Arabic'\n )\n }\n return false\n}\n\nfunction supportedLocalesOf(locale?: string | string[]) {\n if (!locale) {\n return true\n }\n const locales = Array.isArray(locale) ? locale : [locale]\n return (\n (Intl as any).DisplayNames.supportedLocalesOf(locales).length ===\n locales.length\n )\n}\n\nexport function _shouldPolyfillWithoutLocale(): boolean {\n return !(Intl as any).DisplayNames || hasMissingICUBug() || hasScriptBug()\n}\n\nexport function shouldPolyfill(locale = 'en'): string | true | undefined {\n try {\n if (_shouldPolyfillWithoutLocale() || !supportedLocalesOf(locale)) {\n return match([locale], supportedLocales, 'en')\n }\n } catch {\n return true\n }\n}\n"],"mappings":";;AAAA,MAAa,mBAA6B;CACxC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;;;;;;ACtjBD,SAAS,mBAAmB;CAC1B,MAAM,eAAgB,KAAa;AACnC,KAAI,gBAAgB,CAAC,aAAa,WAChC,QACE,IAAI,aAAa,CAAC,KAAK,EAAE,EACvB,MAAM,UACP,CAAC,CAAC,GAAG,KAAK,KAAK;AAGpB,QAAO;;;;;;;;;;;;;;;AAgBT,SAAS,eAAe;CACtB,MAAM,eAAgB,KAAa;AACnC,KAAI,gBAAgB,CAAC,aAAa,WAChC,QACE,IAAI,aAAa,CAAC,KAAK,EAAE,EACvB,MAAM,UACP,CAAC,CAAC,GAAG,OAAO,KAAK;AAGtB,QAAO;;AAGT,SAAS,mBAAmB,QAA4B;AACtD,KAAI,CAAC,OACH,QAAO;CAET,MAAM,UAAU,MAAM,QAAQ,OAAO,GAAG,SAAS,CAAC,OAAO;AACzD,QACG,KAAa,aAAa,mBAAmB,QAAQ,CAAC,WACvD,QAAQ;;AAIZ,SAAgB,+BAAwC;AACtD,QAAO,CAAE,KAAa,gBAAgB,kBAAkB,IAAI,cAAc;;AAG5E,SAAgB,eAAe,SAAS,MAAiC;AACvE,KAAI;AACF,MAAI,8BAA8B,IAAI,CAAC,mBAAmB,OAAO,CAC/D,QAAO,MAAM,CAAC,OAAO,EAAE,kBAAkB,KAAK;SAE1C;AACN,SAAO"}
|
|
1
|
+
{"version":3,"file":"should-polyfill.js","names":[],"sources":["../../../node_modules/.aspect_rules_js/@formatjs_generated+cldr.supported-locales@0.0.0/node_modules/@formatjs_generated/cldr.supported-locales/intl-displaynames.js","../should-polyfill.ts"],"sourcesContent":["export const supportedLocales = [\n\t\"af\",\n\t\"af-NA\",\n\t\"agq\",\n\t\"ak\",\n\t\"am\",\n\t\"ar\",\n\t\"ar-AE\",\n\t\"ar-BH\",\n\t\"ar-DJ\",\n\t\"ar-DZ\",\n\t\"ar-EG\",\n\t\"ar-EH\",\n\t\"ar-ER\",\n\t\"ar-IL\",\n\t\"ar-IQ\",\n\t\"ar-JO\",\n\t\"ar-KM\",\n\t\"ar-KW\",\n\t\"ar-LB\",\n\t\"ar-LY\",\n\t\"ar-MA\",\n\t\"ar-MR\",\n\t\"ar-OM\",\n\t\"ar-PS\",\n\t\"ar-QA\",\n\t\"ar-SA\",\n\t\"ar-SD\",\n\t\"ar-SO\",\n\t\"ar-SS\",\n\t\"ar-SY\",\n\t\"ar-TD\",\n\t\"ar-TN\",\n\t\"ar-YE\",\n\t\"as\",\n\t\"asa\",\n\t\"ast\",\n\t\"az\",\n\t\"az-Cyrl\",\n\t\"az-Latn\",\n\t\"bas\",\n\t\"be\",\n\t\"be-tarask\",\n\t\"bem\",\n\t\"bez\",\n\t\"bg\",\n\t\"bm\",\n\t\"bn\",\n\t\"bn-IN\",\n\t\"bo\",\n\t\"bo-IN\",\n\t\"br\",\n\t\"brx\",\n\t\"bs\",\n\t\"bs-Cyrl\",\n\t\"bs-Latn\",\n\t\"ca\",\n\t\"ca-AD\",\n\t\"ca-ES-valencia\",\n\t\"ca-FR\",\n\t\"ca-IT\",\n\t\"ccp\",\n\t\"ccp-IN\",\n\t\"ce\",\n\t\"ceb\",\n\t\"cgg\",\n\t\"chr\",\n\t\"ckb\",\n\t\"ckb-IR\",\n\t\"cs\",\n\t\"cy\",\n\t\"da\",\n\t\"da-GL\",\n\t\"dav\",\n\t\"de\",\n\t\"de-AT\",\n\t\"de-BE\",\n\t\"de-CH\",\n\t\"de-IT\",\n\t\"de-LI\",\n\t\"de-LU\",\n\t\"dje\",\n\t\"doi\",\n\t\"dsb\",\n\t\"dua\",\n\t\"dyo\",\n\t\"dz\",\n\t\"ebu\",\n\t\"ee\",\n\t\"ee-TG\",\n\t\"el\",\n\t\"el-CY\",\n\t\"en\",\n\t\"en-001\",\n\t\"en-150\",\n\t\"en-AE\",\n\t\"en-AG\",\n\t\"en-AI\",\n\t\"en-AS\",\n\t\"en-AT\",\n\t\"en-AU\",\n\t\"en-BB\",\n\t\"en-BE\",\n\t\"en-BI\",\n\t\"en-BM\",\n\t\"en-BS\",\n\t\"en-BW\",\n\t\"en-BZ\",\n\t\"en-CA\",\n\t\"en-CC\",\n\t\"en-CH\",\n\t\"en-CK\",\n\t\"en-CM\",\n\t\"en-CX\",\n\t\"en-CY\",\n\t\"en-DE\",\n\t\"en-DG\",\n\t\"en-DK\",\n\t\"en-DM\",\n\t\"en-ER\",\n\t\"en-FI\",\n\t\"en-FJ\",\n\t\"en-FK\",\n\t\"en-FM\",\n\t\"en-GB\",\n\t\"en-GD\",\n\t\"en-GG\",\n\t\"en-GH\",\n\t\"en-GI\",\n\t\"en-GM\",\n\t\"en-GU\",\n\t\"en-GY\",\n\t\"en-HK\",\n\t\"en-IE\",\n\t\"en-IL\",\n\t\"en-IM\",\n\t\"en-IN\",\n\t\"en-IO\",\n\t\"en-JE\",\n\t\"en-JM\",\n\t\"en-KE\",\n\t\"en-KI\",\n\t\"en-KN\",\n\t\"en-KY\",\n\t\"en-LC\",\n\t\"en-LR\",\n\t\"en-LS\",\n\t\"en-MG\",\n\t\"en-MH\",\n\t\"en-MO\",\n\t\"en-MP\",\n\t\"en-MS\",\n\t\"en-MT\",\n\t\"en-MU\",\n\t\"en-MW\",\n\t\"en-MY\",\n\t\"en-NA\",\n\t\"en-NF\",\n\t\"en-NG\",\n\t\"en-NL\",\n\t\"en-NR\",\n\t\"en-NU\",\n\t\"en-NZ\",\n\t\"en-PG\",\n\t\"en-PH\",\n\t\"en-PK\",\n\t\"en-PN\",\n\t\"en-PR\",\n\t\"en-PW\",\n\t\"en-RW\",\n\t\"en-SB\",\n\t\"en-SC\",\n\t\"en-SD\",\n\t\"en-SE\",\n\t\"en-SG\",\n\t\"en-SH\",\n\t\"en-SI\",\n\t\"en-SL\",\n\t\"en-SS\",\n\t\"en-SX\",\n\t\"en-SZ\",\n\t\"en-TC\",\n\t\"en-TK\",\n\t\"en-TO\",\n\t\"en-TT\",\n\t\"en-TV\",\n\t\"en-TZ\",\n\t\"en-UG\",\n\t\"en-UM\",\n\t\"en-VC\",\n\t\"en-VG\",\n\t\"en-VI\",\n\t\"en-VU\",\n\t\"en-WS\",\n\t\"en-ZA\",\n\t\"en-ZM\",\n\t\"en-ZW\",\n\t\"eo\",\n\t\"es\",\n\t\"es-419\",\n\t\"es-AR\",\n\t\"es-BO\",\n\t\"es-BR\",\n\t\"es-BZ\",\n\t\"es-CL\",\n\t\"es-CO\",\n\t\"es-CR\",\n\t\"es-CU\",\n\t\"es-DO\",\n\t\"es-EA\",\n\t\"es-EC\",\n\t\"es-GQ\",\n\t\"es-GT\",\n\t\"es-HN\",\n\t\"es-IC\",\n\t\"es-MX\",\n\t\"es-NI\",\n\t\"es-PA\",\n\t\"es-PE\",\n\t\"es-PH\",\n\t\"es-PR\",\n\t\"es-PY\",\n\t\"es-SV\",\n\t\"es-US\",\n\t\"es-UY\",\n\t\"es-VE\",\n\t\"et\",\n\t\"eu\",\n\t\"ewo\",\n\t\"fa\",\n\t\"fa-AF\",\n\t\"ff\",\n\t\"ff-Adlm\",\n\t\"ff-Adlm-BF\",\n\t\"ff-Adlm-CM\",\n\t\"ff-Adlm-GH\",\n\t\"ff-Adlm-GM\",\n\t\"ff-Adlm-GW\",\n\t\"ff-Adlm-LR\",\n\t\"ff-Adlm-MR\",\n\t\"ff-Adlm-NE\",\n\t\"ff-Adlm-NG\",\n\t\"ff-Adlm-SL\",\n\t\"ff-Adlm-SN\",\n\t\"ff-Latn\",\n\t\"ff-Latn-BF\",\n\t\"ff-Latn-CM\",\n\t\"ff-Latn-GH\",\n\t\"ff-Latn-GM\",\n\t\"ff-Latn-GN\",\n\t\"ff-Latn-GW\",\n\t\"ff-Latn-LR\",\n\t\"ff-Latn-MR\",\n\t\"ff-Latn-NE\",\n\t\"ff-Latn-NG\",\n\t\"ff-Latn-SL\",\n\t\"fi\",\n\t\"fil\",\n\t\"fo\",\n\t\"fo-DK\",\n\t\"fr\",\n\t\"fr-BE\",\n\t\"fr-BF\",\n\t\"fr-B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t\"kk\",\n\t\"kkj\",\n\t\"kl\",\n\t\"kln\",\n\t\"km\",\n\t\"kn\",\n\t\"ko\",\n\t\"ko-KP\",\n\t\"kok\",\n\t\"ks\",\n\t\"ks-Arab\",\n\t\"ksb\",\n\t\"ksf\",\n\t\"ksh\",\n\t\"ku\",\n\t\"kw\",\n\t\"ky\",\n\t\"lag\",\n\t\"lb\",\n\t\"lg\",\n\t\"lkt\",\n\t\"ln\",\n\t\"ln-AO\",\n\t\"ln-CF\",\n\t\"ln-CG\",\n\t\"lo\",\n\t\"lrc\",\n\t\"lrc-IQ\",\n\t\"lt\",\n\t\"lu\",\n\t\"luo\",\n\t\"luy\",\n\t\"lv\",\n\t\"mai\",\n\t\"mas\",\n\t\"mas-TZ\",\n\t\"mer\",\n\t\"mfe\",\n\t\"mg\",\n\t\"mgh\",\n\t\"mgo\",\n\t\"mi\",\n\t\"mk\",\n\t\"ml\",\n\t\"mn\",\n\t\"mni\",\n\t\"mni-Beng\",\n\t\"mr\",\n\t\"ms\",\n\t\"ms-BN\",\n\t\"ms-ID\",\n\t\"ms-SG\",\n\t\"mt\",\n\t\"mua\",\n\t\"my\",\n\t\"mzn\",\n\t\"naq\",\n\t\"nb\",\n\t\"nb-SJ\",\n\t\"nd\",\n\t\"nds\",\n\t\"nds-NL\",\n\t\"ne\",\n\t\"ne-IN\",\n\t\"nl\",\n\t\"nl-AW\",\n\t\"nl-BE\",\n\t\"nl-BQ\",\n\t\"nl-CW\",\n\t\"nl-SR\",\n\t\"nl-SX\",\n\t\"nmg\",\n\t\"nn\",\n\t\"nnh\",\n\t\"no\",\n\t\"nus\",\n\t\"nyn\",\n\t\"om\",\n\t\"om-KE\",\n\t\"or\",\n\t\"os\",\n\t\"os-RU\",\n\t\"pa\",\n\t\"pa-Arab\",\n\t\"pa-Guru\",\n\t\"pcm\",\n\t\"pl\",\n\t\"ps\",\n\t\"ps-PK\",\n\t\"pt\",\n\t\"pt-AO\",\n\t\"pt-CH\",\n\t\"pt-CV\",\n\t\"pt-GQ\",\n\t\"pt-GW\",\n\t\"pt-LU\",\n\t\"pt-MO\",\n\t\"pt-MZ\",\n\t\"pt-PT\",\n\t\"pt-ST\",\n\t\"pt-TL\",\n\t\"qu\",\n\t\"qu-BO\",\n\t\"qu-EC\",\n\t\"rm\",\n\t\"rn\",\n\t\"ro\",\n\t\"ro-MD\",\n\t\"rof\",\n\t\"ru\",\n\t\"ru-BY\",\n\t\"ru-KG\",\n\t\"ru-KZ\",\n\t\"ru-MD\",\n\t\"ru-UA\",\n\t\"rw\",\n\t\"rwk\",\n\t\"sa\",\n\t\"sah\",\n\t\"saq\",\n\t\"sat\",\n\t\"sat-Olck\",\n\t\"sbp\",\n\t\"sc\",\n\t\"sd\",\n\t\"sd-Arab\",\n\t\"sd-Deva\",\n\t\"se\",\n\t\"se-FI\",\n\t\"se-SE\",\n\t\"seh\",\n\t\"ses\",\n\t\"sg\",\n\t\"shi\",\n\t\"shi-Latn\",\n\t\"shi-Tfng\",\n\t\"si\",\n\t\"sk\",\n\t\"sl\",\n\t\"smn\",\n\t\"sn\",\n\t\"so\",\n\t\"so-DJ\",\n\t\"so-ET\",\n\t\"so-KE\",\n\t\"sq\",\n\t\"sq-MK\",\n\t\"sq-XK\",\n\t\"sr\",\n\t\"sr-Cyrl\",\n\t\"sr-Cyrl-BA\",\n\t\"sr-Cyrl-ME\",\n\t\"sr-Cyrl-XK\",\n\t\"sr-Latn\",\n\t\"sr-Latn-BA\",\n\t\"sr-Latn-ME\",\n\t\"sr-Latn-XK\",\n\t\"su\",\n\t\"su-Latn\",\n\t\"sv\",\n\t\"sv-AX\",\n\t\"sv-FI\",\n\t\"sw\",\n\t\"sw-CD\",\n\t\"sw-KE\",\n\t\"sw-UG\",\n\t\"ta\",\n\t\"ta-LK\",\n\t\"ta-MY\",\n\t\"ta-SG\",\n\t\"te\",\n\t\"teo\",\n\t\"teo-KE\",\n\t\"tg\",\n\t\"th\",\n\t\"ti\",\n\t\"ti-ER\",\n\t\"tk\",\n\t\"to\",\n\t\"tr\",\n\t\"tr-CY\",\n\t\"tt\",\n\t\"twq\",\n\t\"tzm\",\n\t\"ug\",\n\t\"uk\",\n\t\"und\",\n\t\"ur\",\n\t\"ur-IN\",\n\t\"uz\",\n\t\"uz-Arab\",\n\t\"uz-Cyrl\",\n\t\"uz-Latn\",\n\t\"vai\",\n\t\"vai-Latn\",\n\t\"vai-Vaii\",\n\t\"vi\",\n\t\"vun\",\n\t\"wae\",\n\t\"wo\",\n\t\"xh\",\n\t\"xog\",\n\t\"yav\",\n\t\"yi\",\n\t\"yo\",\n\t\"yo-BJ\",\n\t\"yrl\",\n\t\"yrl-CO\",\n\t\"yrl-VE\",\n\t\"yue\",\n\t\"yue-Hans\",\n\t\"yue-Hant\",\n\t\"zgh\",\n\t\"zh\",\n\t\"zh-Hans\",\n\t\"zh-Hans-HK\",\n\t\"zh-Hans-MO\",\n\t\"zh-Hans-SG\",\n\t\"zh-Hant\",\n\t\"zh-Hant-HK\",\n\t\"zh-Hant-MO\",\n\t\"zu\"\n];\n","import {match} from '@formatjs/intl-localematcher'\nimport {supportedLocales} from '@formatjs_generated/cldr.supported-locales/intl-displaynames.js'\n\n/**\n * https://bugs.chromium.org/p/chromium/issues/detail?id=1097432\n */\nfunction hasMissingICUBug() {\n const DisplayNames = (Intl as any).DisplayNames\n if (DisplayNames && !DisplayNames.polyfilled) {\n return (\n new DisplayNames(['en'], {\n type: 'region',\n }).of('CA') === 'CA'\n )\n }\n return false\n}\n\n/**\n * https://bugs.chromium.org/p/chromium/issues/detail?id=1176979\n * https://github.com/formatjs/formatjs/issues/5889\n *\n * Tests if the implementation properly canonicalizes script codes per ECMA-402 spec.\n * The spec requires CanonicalCodeForDisplayNames to convert lowercase 'arab' to title-case 'Arab'\n * before lookup. This test uses lowercase input to verify canonicalization happens.\n *\n * - Correct implementations: canonicalize 'arab' → 'Arab', look up → return 'Arabic'\n * - Buggy implementations (old Node.js): don't canonicalize, look up 'arab' literally → return 'arab'\n *\n * See ECMA-402 section 12.5.1: CanonicalCodeForDisplayNames\n */\nfunction hasScriptBug() {\n const DisplayNames = (Intl as any).DisplayNames\n if (DisplayNames && !DisplayNames.polyfilled) {\n return (\n new DisplayNames(['en'], {\n type: 'script',\n }).of('arab') !== 'Arabic'\n )\n }\n return false\n}\n\nfunction supportedLocalesOf(locale?: string | string[]) {\n if (!locale) {\n return true\n }\n const locales = Array.isArray(locale) ? locale : [locale]\n return (\n (Intl as any).DisplayNames.supportedLocalesOf(locales).length ===\n locales.length\n )\n}\n\nexport function _shouldPolyfillWithoutLocale(): boolean {\n return !(Intl as any).DisplayNames || hasMissingICUBug() || hasScriptBug()\n}\n\nexport function shouldPolyfill(locale = 'en'): string | true | undefined {\n try {\n if (_shouldPolyfillWithoutLocale() || !supportedLocalesOf(locale)) {\n return match([locale], supportedLocales, 'en')\n }\n } catch {\n return true\n }\n}\n"],"x_google_ignoreList":[0],"mappings":";;AAAA,MAAa,mBAAmB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;;;;;;ACtjBD,SAAS,mBAAmB;CAC1B,MAAM,eAAgB,KAAa;AACnC,KAAI,gBAAgB,CAAC,aAAa,WAChC,QACE,IAAI,aAAa,CAAC,KAAK,EAAE,EACvB,MAAM,UACP,CAAC,CAAC,GAAG,KAAK,KAAK;AAGpB,QAAO;;;;;;;;;;;;;;;AAgBT,SAAS,eAAe;CACtB,MAAM,eAAgB,KAAa;AACnC,KAAI,gBAAgB,CAAC,aAAa,WAChC,QACE,IAAI,aAAa,CAAC,KAAK,EAAE,EACvB,MAAM,UACP,CAAC,CAAC,GAAG,OAAO,KAAK;AAGtB,QAAO;;AAGT,SAAS,mBAAmB,QAA4B;AACtD,KAAI,CAAC,OACH,QAAO;CAET,MAAM,UAAU,MAAM,QAAQ,OAAO,GAAG,SAAS,CAAC,OAAO;AACzD,QACG,KAAa,aAAa,mBAAmB,QAAQ,CAAC,WACvD,QAAQ;;AAIZ,SAAgB,+BAAwC;AACtD,QAAO,CAAE,KAAa,gBAAgB,kBAAkB,IAAI,cAAc;;AAG5E,SAAgB,eAAe,SAAS,MAAiC;AACvE,KAAI;AACF,MAAI,8BAA8B,IAAI,CAAC,mBAAmB,OAAO,CAC/D,QAAO,MAAM,CAAC,OAAO,EAAE,kBAAkB,KAAK;SAE1C;AACN,SAAO"}
|