@formatjs/intl-supportedvaluesof 3.1.0 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/polyfill.js CHANGED
@@ -1,26 +1,157 @@
1
1
  import { memoize, strategies } from "@formatjs/fast-memoize";
2
2
  // packages/intl-supportedvaluesof/should-polyfill.ts
3
3
  function shouldPolyfill() {
4
- return typeof Intl === "undefined" || !("supportedValuesOf" in Intl);
4
+ return typeof Intl === "undefined" || typeof Intl.supportedValuesOf !== "function";
5
5
  }
6
6
  // packages/ecma262-abstract/ToString.js
7
+ const StringConstructor = String;
8
+ const TypeErrorConstructor = TypeError;
7
9
  /**
8
10
  * https://tc39.es/ecma262/#sec-tostring
9
11
  */
10
12
  function ToString(o) {
11
- if (typeof o === "symbol") throw TypeError("Cannot convert a Symbol value to a string");
12
- return String(o);
13
+ if (typeof o === "symbol") throw TypeErrorConstructor("Cannot convert a Symbol value to a string");
14
+ return StringConstructor(o);
15
+ }
16
+ Number.isInteger;
17
+ Number.isFinite;
18
+ Number.isSafeInteger;
19
+ const RangeErrorConstructor = RangeError;
20
+ const arrayApply = Reflect.apply;
21
+ Array.prototype.every;
22
+ const some = Array.prototype.some;
23
+ function arraySome(values, predicate) {
24
+ return arrayApply(some, values, [predicate]);
25
+ }
26
+ Array.prototype.includes;
27
+ const indexOf = Array.prototype.indexOf;
28
+ function arrayIndexOf(values, search) {
29
+ return arrayApply(indexOf, values, [search]);
30
+ }
31
+ const defineProperty$1 = Object.defineProperty;
32
+ function setDataProperty(target, key, value) {
33
+ defineProperty$1(target, key, {
34
+ __proto__: null,
35
+ value,
36
+ writable: true,
37
+ enumerable: true,
38
+ configurable: true
39
+ });
40
+ }
41
+ // packages/intl-supportedvaluesof/supported-entries.ts
42
+ const apply$2 = Reflect.apply;
43
+ const sort = Array.prototype.sort;
44
+ function supportedEntries(candidates, supported) {
45
+ const result = [];
46
+ for (let index = 0; index < candidates.length; index++) {
47
+ const entry = candidates[index];
48
+ if (supported(entry)) setDataProperty(result, `${result.length}`, entry);
49
+ }
50
+ apply$2(sort, result, []);
51
+ return result;
13
52
  }
14
53
  // packages/intl-supportedvaluesof/memoize.ts
15
- /**
16
- * Implementation: Memoized factory for Intl.DateTimeFormat instances
17
- *
18
- * Creates and caches DateTimeFormat instances to avoid repeated instantiation overhead.
19
- * This is critical for performance since we test many candidate values against formatters.
20
- *
21
- * Uses variadic memoization strategy to handle varying numbers of constructor arguments.
22
- */
23
- const createMemoizedDateTimeFormat = memoize((...args) => new Intl.DateTimeFormat(...args), { strategy: strategies.variadic });
54
+ const descriptor = Object.getOwnPropertyDescriptor;
55
+ const getPrototypeOf = Object.getPrototypeOf;
56
+ const objectPrototype = Object.prototype;
57
+ const apply$1 = Reflect.apply;
58
+ const memoizeOptions = {
59
+ __proto__: null,
60
+ strategy: strategies.variadic
61
+ };
62
+ const availableCalendarsKey = Symbol.for("@formatjs/intl-datetimeformat/availableCalendars");
63
+ const hasTimeZoneKey = Symbol.for("@formatjs/intl-datetimeformat/hasTimeZone");
64
+ function ownValue(object, key) {
65
+ const property = descriptor(object, key);
66
+ return property && descriptor(property, "value")?.value;
67
+ }
68
+ function findProperty(owner, key) {
69
+ while (owner !== null && (typeof owner === "object" || typeof owner === "function") && owner !== objectPrototype) {
70
+ const property = descriptor(owner, key);
71
+ if (property) return property;
72
+ owner = getPrototypeOf(owner);
73
+ }
74
+ }
75
+ function resolvedOptions(Constructor) {
76
+ const property = findProperty(ownValue(Constructor, "prototype"), "resolvedOptions");
77
+ const method = property && ownValue(property, "value");
78
+ if (typeof method === "function") return (formatter) => apply$1(method, formatter, []);
79
+ }
80
+ let intl$1 = ownValue(globalThis, "Intl");
81
+ function retainProbe(name, createProbe) {
82
+ const probes = /* @__PURE__ */ new WeakMap();
83
+ const readProbe = probes.get.bind(probes);
84
+ const writeProbe = probes.set.bind(probes);
85
+ let currentProbe;
86
+ const getProbe = () => {
87
+ intl$1 ??= ownValue(globalThis, "Intl");
88
+ const property = intl$1 && descriptor(intl$1, name);
89
+ const data = property && descriptor(property, "value");
90
+ if (!data) return currentProbe;
91
+ const candidate = data.value;
92
+ if (typeof candidate !== "function") return void 0;
93
+ const Constructor = candidate;
94
+ let probe = readProbe(Constructor);
95
+ if (probe === void 0) {
96
+ probe = createProbe(Constructor);
97
+ writeProbe(Constructor, probe);
98
+ }
99
+ currentProbe = probe;
100
+ return probe;
101
+ };
102
+ getProbe();
103
+ return getProbe;
104
+ }
105
+ function memoizeHost(Constructor, construct) {
106
+ const marker = findProperty(Constructor, "polyfilled");
107
+ return marker && ownValue(marker, "value") ? construct : memoize(construct, memoizeOptions);
108
+ }
109
+ const getDateTimeFormatProbe = retainProbe("DateTimeFormat", (Constructor) => {
110
+ const availableCalendars = ownValue(Constructor, availableCalendarsKey);
111
+ const hasTimeZone = ownValue(Constructor, hasTimeZoneKey);
112
+ return {
113
+ create: memoizeHost(Constructor, (locales, options) => new Constructor(locales, options)),
114
+ resolve: resolvedOptions(Constructor),
115
+ availableCalendars: typeof availableCalendars === "function" ? () => apply$1(availableCalendars, Constructor, []) : void 0,
116
+ hasTimeZone: typeof hasTimeZone === "function" ? (name) => apply$1(hasTimeZone, Constructor, [name]) : void 0
117
+ };
118
+ });
119
+ const getNumberFormatProbe = retainProbe("NumberFormat", (Constructor) => {
120
+ const property = findProperty(ownValue(Constructor, "prototype"), "format");
121
+ const getter = property && ownValue(property, "get");
122
+ const method = property && ownValue(property, "value");
123
+ const partsProperty = findProperty(ownValue(Constructor, "prototype"), "formatToParts");
124
+ const parts = partsProperty && ownValue(partsProperty, "value");
125
+ let format;
126
+ if (typeof getter === "function") format = (formatter, value) => apply$1(apply$1(getter, formatter, []), void 0, [value]);
127
+ else if (typeof method === "function") format = (formatter, value) => apply$1(method, formatter, [value]);
128
+ return {
129
+ create: memoizeHost(Constructor, (locales, options) => new Constructor(locales, options)),
130
+ resolve: resolvedOptions(Constructor),
131
+ format,
132
+ formatToParts: typeof parts === "function" ? (formatter, value) => apply$1(parts, formatter, [value]) : void 0
133
+ };
134
+ });
135
+ const getCollatorProbe = retainProbe("Collator", (Constructor) => ({
136
+ create: (locale) => new Constructor(locale),
137
+ resolve: resolvedOptions(Constructor)
138
+ }));
139
+ const getRelativeTimeFormatProbe = retainProbe("RelativeTimeFormat", (Constructor) => ({
140
+ create: (locale) => new Constructor(locale),
141
+ resolve: resolvedOptions(Constructor)
142
+ }));
143
+ const getCurrencyDisplayNamesProbe = retainProbe("DisplayNames", (Constructor) => {
144
+ const property = findProperty(ownValue(Constructor, "prototype"), "of");
145
+ const of = property && ownValue(property, "value");
146
+ return {
147
+ create: (locale) => new Constructor(locale, {
148
+ __proto__: null,
149
+ type: "currency",
150
+ fallback: "none"
151
+ }),
152
+ hasName: typeof of === "function" ? (formatter, code) => apply$1(of, formatter, [code]) !== void 0 : void 0
153
+ };
154
+ });
24
155
  // node_modules/.aspect_rules_js/@formatjs_generated+cldr.supported-values@0.0.0/node_modules/@formatjs_generated/cldr.supported-values/calendars.js
25
156
  const calendars = [
26
157
  "buddhist",
@@ -37,33 +168,548 @@ const calendars = [
37
168
  "islamic-rgsa",
38
169
  "islamic-tbla",
39
170
  "islamic-umalqura",
40
- "islamicc",
41
171
  "iso8601",
42
172
  "japanese",
43
173
  "persian",
44
174
  "roc"
45
175
  ];
176
+ const calendarCandidateLocales = {
177
+ "buddhist": [
178
+ "en",
179
+ "th",
180
+ "th-TH",
181
+ "th-Thai-TH"
182
+ ],
183
+ "chinese": [
184
+ "en",
185
+ "zh",
186
+ "zh-CN",
187
+ "zh-Hans-CN",
188
+ "zh-HK",
189
+ "zh-Hant-HK",
190
+ "zh-MO",
191
+ "zh-Hant-MO",
192
+ "zh-TW",
193
+ "zh-Hant-TW"
194
+ ],
195
+ "coptic": [
196
+ "en",
197
+ "ar",
198
+ "ar-EG",
199
+ "ar-Arab-EG"
200
+ ],
201
+ "dangi": [
202
+ "en",
203
+ "ko",
204
+ "ko-KR",
205
+ "ko-Kore-KR"
206
+ ],
207
+ "ethioaa": [
208
+ "en",
209
+ "ar",
210
+ "fa",
211
+ "sq",
212
+ "az",
213
+ "bn",
214
+ "zh",
215
+ "fr",
216
+ "ti",
217
+ "am",
218
+ "id",
219
+ "he",
220
+ "hi",
221
+ "ja",
222
+ "ko",
223
+ "dv",
224
+ "ms",
225
+ "ha",
226
+ "ur",
227
+ "th",
228
+ "tg",
229
+ "tk",
230
+ "tr",
231
+ "uz"
232
+ ],
233
+ "ethiopic": [
234
+ "en",
235
+ "am",
236
+ "am-ET",
237
+ "am-Ethi-ET"
238
+ ],
239
+ "gregory": [
240
+ "en",
241
+ "ar",
242
+ "ar-AE",
243
+ "ar-Arab-AE",
244
+ "fa",
245
+ "fa-AF",
246
+ "fa-Arab-AF",
247
+ "sq",
248
+ "sq-AL",
249
+ "sq-Latn-AL",
250
+ "az",
251
+ "az-AZ",
252
+ "az-Latn-AZ",
253
+ "bn",
254
+ "bn-BD",
255
+ "bn-Beng-BD",
256
+ "ar-BH",
257
+ "ar-Arab-BH",
258
+ "zh",
259
+ "zh-CN",
260
+ "zh-Hans-CN",
261
+ "fr",
262
+ "fr-DJ",
263
+ "fr-Latn-DJ",
264
+ "ar-DZ",
265
+ "ar-Arab-DZ",
266
+ "ar-EG",
267
+ "ar-Arab-EG",
268
+ "ar-EH",
269
+ "ar-Arab-EH",
270
+ "ti",
271
+ "ti-ER",
272
+ "ti-Ethi-ER",
273
+ "am",
274
+ "am-ET",
275
+ "am-Ethi-ET",
276
+ "zh-HK",
277
+ "zh-Hant-HK",
278
+ "id",
279
+ "id-ID",
280
+ "id-Latn-ID",
281
+ "he",
282
+ "he-IL",
283
+ "he-Hebr-IL",
284
+ "hi",
285
+ "hi-IN",
286
+ "hi-Deva-IN",
287
+ "ar-IQ",
288
+ "ar-Arab-IQ",
289
+ "fa-IR",
290
+ "fa-Arab-IR",
291
+ "ar-JO",
292
+ "ar-Arab-JO",
293
+ "ja",
294
+ "ja-JP",
295
+ "ja-Jpan-JP",
296
+ "ar-KM",
297
+ "ar-Arab-KM",
298
+ "ko",
299
+ "ko-KR",
300
+ "ko-Kore-KR",
301
+ "ar-KW",
302
+ "ar-Arab-KW",
303
+ "ar-LB",
304
+ "ar-Arab-LB",
305
+ "ar-LY",
306
+ "ar-Arab-LY",
307
+ "ar-MA",
308
+ "ar-Arab-MA",
309
+ "zh-MO",
310
+ "zh-Hant-MO",
311
+ "ar-MR",
312
+ "ar-Arab-MR",
313
+ "dv",
314
+ "dv-MV",
315
+ "dv-Thaa-MV",
316
+ "ms",
317
+ "ms-MY",
318
+ "ms-Latn-MY",
319
+ "ha",
320
+ "ha-NE",
321
+ "ha-Latn-NE",
322
+ "ar-OM",
323
+ "ar-Arab-OM",
324
+ "ur",
325
+ "ur-PK",
326
+ "ur-Arab-PK",
327
+ "ar-PS",
328
+ "ar-Arab-PS",
329
+ "ar-QA",
330
+ "ar-Arab-QA",
331
+ "ar-SA",
332
+ "ar-Arab-SA",
333
+ "ar-SD",
334
+ "ar-Arab-SD",
335
+ "ar-SY",
336
+ "ar-Arab-SY",
337
+ "ar-TD",
338
+ "ar-Arab-TD",
339
+ "th",
340
+ "th-TH",
341
+ "th-Thai-TH",
342
+ "tg",
343
+ "tg-TJ",
344
+ "tg-Cyrl-TJ",
345
+ "tk",
346
+ "tk-TM",
347
+ "tk-Latn-TM",
348
+ "ar-TN",
349
+ "ar-Arab-TN",
350
+ "tr",
351
+ "tr-TR",
352
+ "tr-Latn-TR",
353
+ "zh-TW",
354
+ "zh-Hant-TW",
355
+ "uz",
356
+ "uz-UZ",
357
+ "uz-Latn-UZ",
358
+ "sq-XK",
359
+ "sq-Latn-XK",
360
+ "ar-YE",
361
+ "ar-Arab-YE"
362
+ ],
363
+ "hebrew": [
364
+ "en",
365
+ "he",
366
+ "he-IL",
367
+ "he-Hebr-IL"
368
+ ],
369
+ "indian": [
370
+ "en",
371
+ "hi",
372
+ "hi-IN",
373
+ "hi-Deva-IN"
374
+ ],
375
+ "islamic": [
376
+ "en",
377
+ "ar",
378
+ "ar-AE",
379
+ "ar-Arab-AE",
380
+ "fa",
381
+ "fa-AF",
382
+ "fa-Arab-AF",
383
+ "bn",
384
+ "bn-BD",
385
+ "bn-Beng-BD",
386
+ "ar-BH",
387
+ "ar-Arab-BH",
388
+ "fr",
389
+ "fr-DJ",
390
+ "fr-Latn-DJ",
391
+ "ar-DZ",
392
+ "ar-Arab-DZ",
393
+ "ar-EG",
394
+ "ar-Arab-EG",
395
+ "ar-EH",
396
+ "ar-Arab-EH",
397
+ "ti",
398
+ "ti-ER",
399
+ "ti-Ethi-ER",
400
+ "id",
401
+ "id-ID",
402
+ "id-Latn-ID",
403
+ "he",
404
+ "he-IL",
405
+ "he-Hebr-IL",
406
+ "ar-IQ",
407
+ "ar-Arab-IQ",
408
+ "fa-IR",
409
+ "fa-Arab-IR",
410
+ "ar-JO",
411
+ "ar-Arab-JO",
412
+ "ar-KM",
413
+ "ar-Arab-KM",
414
+ "ar-KW",
415
+ "ar-Arab-KW",
416
+ "ar-LB",
417
+ "ar-Arab-LB",
418
+ "ar-LY",
419
+ "ar-Arab-LY",
420
+ "ar-MA",
421
+ "ar-Arab-MA",
422
+ "ar-MR",
423
+ "ar-Arab-MR",
424
+ "ms",
425
+ "ms-MY",
426
+ "ms-Latn-MY",
427
+ "ha",
428
+ "ha-NE",
429
+ "ha-Latn-NE",
430
+ "ar-OM",
431
+ "ar-Arab-OM",
432
+ "ur",
433
+ "ur-PK",
434
+ "ur-Arab-PK",
435
+ "ar-PS",
436
+ "ar-Arab-PS",
437
+ "ar-QA",
438
+ "ar-Arab-QA",
439
+ "ar-SA",
440
+ "ar-Arab-SA",
441
+ "ar-SD",
442
+ "ar-Arab-SD",
443
+ "ar-SY",
444
+ "ar-Arab-SY",
445
+ "ar-TD",
446
+ "ar-Arab-TD",
447
+ "ar-TN",
448
+ "ar-Arab-TN",
449
+ "ar-YE",
450
+ "ar-Arab-YE"
451
+ ],
452
+ "islamic-civil": [
453
+ "en",
454
+ "ar",
455
+ "ar-AE",
456
+ "ar-Arab-AE",
457
+ "fa",
458
+ "fa-AF",
459
+ "fa-Arab-AF",
460
+ "sq",
461
+ "sq-AL",
462
+ "sq-Latn-AL",
463
+ "az",
464
+ "az-AZ",
465
+ "az-Latn-AZ",
466
+ "bn",
467
+ "bn-BD",
468
+ "bn-Beng-BD",
469
+ "ar-BH",
470
+ "ar-Arab-BH",
471
+ "fr",
472
+ "fr-DJ",
473
+ "fr-Latn-DJ",
474
+ "ar-DZ",
475
+ "ar-Arab-DZ",
476
+ "ar-EG",
477
+ "ar-Arab-EG",
478
+ "ar-EH",
479
+ "ar-Arab-EH",
480
+ "ti",
481
+ "ti-ER",
482
+ "ti-Ethi-ER",
483
+ "id",
484
+ "id-ID",
485
+ "id-Latn-ID",
486
+ "he",
487
+ "he-IL",
488
+ "he-Hebr-IL",
489
+ "ar-IQ",
490
+ "ar-Arab-IQ",
491
+ "fa-IR",
492
+ "fa-Arab-IR",
493
+ "ar-JO",
494
+ "ar-Arab-JO",
495
+ "ar-KM",
496
+ "ar-Arab-KM",
497
+ "ar-KW",
498
+ "ar-Arab-KW",
499
+ "ar-LB",
500
+ "ar-Arab-LB",
501
+ "ar-LY",
502
+ "ar-Arab-LY",
503
+ "ar-MA",
504
+ "ar-Arab-MA",
505
+ "ar-MR",
506
+ "ar-Arab-MR",
507
+ "dv",
508
+ "dv-MV",
509
+ "dv-Thaa-MV",
510
+ "ms",
511
+ "ms-MY",
512
+ "ms-Latn-MY",
513
+ "ha",
514
+ "ha-NE",
515
+ "ha-Latn-NE",
516
+ "ar-OM",
517
+ "ar-Arab-OM",
518
+ "ur",
519
+ "ur-PK",
520
+ "ur-Arab-PK",
521
+ "ar-PS",
522
+ "ar-Arab-PS",
523
+ "ar-QA",
524
+ "ar-Arab-QA",
525
+ "ar-SD",
526
+ "ar-Arab-SD",
527
+ "ar-SY",
528
+ "ar-Arab-SY",
529
+ "ar-TD",
530
+ "ar-Arab-TD",
531
+ "tg",
532
+ "tg-TJ",
533
+ "tg-Cyrl-TJ",
534
+ "tk",
535
+ "tk-TM",
536
+ "tk-Latn-TM",
537
+ "ar-TN",
538
+ "ar-Arab-TN",
539
+ "tr",
540
+ "tr-TR",
541
+ "tr-Latn-TR",
542
+ "uz",
543
+ "uz-UZ",
544
+ "uz-Latn-UZ",
545
+ "sq-XK",
546
+ "sq-Latn-XK",
547
+ "ar-YE",
548
+ "ar-Arab-YE"
549
+ ],
550
+ "islamic-rgsa": [
551
+ "en",
552
+ "ar",
553
+ "ar-SA",
554
+ "ar-Arab-SA"
555
+ ],
556
+ "islamic-tbla": [
557
+ "en",
558
+ "ar",
559
+ "ar-AE",
560
+ "ar-Arab-AE",
561
+ "fa",
562
+ "fa-AF",
563
+ "fa-Arab-AF",
564
+ "sq",
565
+ "sq-AL",
566
+ "sq-Latn-AL",
567
+ "az",
568
+ "az-AZ",
569
+ "az-Latn-AZ",
570
+ "bn",
571
+ "bn-BD",
572
+ "bn-Beng-BD",
573
+ "ar-BH",
574
+ "ar-Arab-BH",
575
+ "fr",
576
+ "fr-DJ",
577
+ "fr-Latn-DJ",
578
+ "ar-DZ",
579
+ "ar-Arab-DZ",
580
+ "ar-EG",
581
+ "ar-Arab-EG",
582
+ "ar-EH",
583
+ "ar-Arab-EH",
584
+ "ti",
585
+ "ti-ER",
586
+ "ti-Ethi-ER",
587
+ "id",
588
+ "id-ID",
589
+ "id-Latn-ID",
590
+ "he",
591
+ "he-IL",
592
+ "he-Hebr-IL",
593
+ "ar-IQ",
594
+ "ar-Arab-IQ",
595
+ "fa-IR",
596
+ "fa-Arab-IR",
597
+ "ar-JO",
598
+ "ar-Arab-JO",
599
+ "ar-KM",
600
+ "ar-Arab-KM",
601
+ "ar-KW",
602
+ "ar-Arab-KW",
603
+ "ar-LB",
604
+ "ar-Arab-LB",
605
+ "ar-LY",
606
+ "ar-Arab-LY",
607
+ "ar-MA",
608
+ "ar-Arab-MA",
609
+ "ar-MR",
610
+ "ar-Arab-MR",
611
+ "dv",
612
+ "dv-MV",
613
+ "dv-Thaa-MV",
614
+ "ms",
615
+ "ms-MY",
616
+ "ms-Latn-MY",
617
+ "ha",
618
+ "ha-NE",
619
+ "ha-Latn-NE",
620
+ "ar-OM",
621
+ "ar-Arab-OM",
622
+ "ur",
623
+ "ur-PK",
624
+ "ur-Arab-PK",
625
+ "ar-PS",
626
+ "ar-Arab-PS",
627
+ "ar-QA",
628
+ "ar-Arab-QA",
629
+ "ar-SD",
630
+ "ar-Arab-SD",
631
+ "ar-SY",
632
+ "ar-Arab-SY",
633
+ "ar-TD",
634
+ "ar-Arab-TD",
635
+ "tg",
636
+ "tg-TJ",
637
+ "tg-Cyrl-TJ",
638
+ "tk",
639
+ "tk-TM",
640
+ "tk-Latn-TM",
641
+ "ar-TN",
642
+ "ar-Arab-TN",
643
+ "tr",
644
+ "tr-TR",
645
+ "tr-Latn-TR",
646
+ "uz",
647
+ "uz-UZ",
648
+ "uz-Latn-UZ",
649
+ "sq-XK",
650
+ "sq-Latn-XK",
651
+ "ar-YE",
652
+ "ar-Arab-YE"
653
+ ],
654
+ "islamic-umalqura": [
655
+ "en",
656
+ "ar",
657
+ "ar-AE",
658
+ "ar-Arab-AE",
659
+ "ar-BH",
660
+ "ar-Arab-BH",
661
+ "ar-KW",
662
+ "ar-Arab-KW",
663
+ "ar-QA",
664
+ "ar-Arab-QA",
665
+ "ar-SA",
666
+ "ar-Arab-SA"
667
+ ],
668
+ "iso8601": ["en"],
669
+ "japanese": [
670
+ "en",
671
+ "ja",
672
+ "ja-JP",
673
+ "ja-Jpan-JP"
674
+ ],
675
+ "persian": [
676
+ "en",
677
+ "fa",
678
+ "fa-AF",
679
+ "fa-Arab-AF",
680
+ "fa-IR",
681
+ "fa-Arab-IR"
682
+ ],
683
+ "roc": [
684
+ "en",
685
+ "zh",
686
+ "zh-TW",
687
+ "zh-Hant-TW"
688
+ ]
689
+ };
46
690
  // packages/intl-supportedvaluesof/get-supported-calendars.ts
47
- /**
48
- * Implementation: Tests if a calendar is supported by attempting to create
49
- * a DateTimeFormat with that calendar and verifying it was accepted.
50
- *
51
- * CLDR Data: Candidate values come from CLDR calendar types
52
- */
53
- function isSupportedCalendar(item) {
54
- try {
55
- return createMemoizedDateTimeFormat(`en-u-ca-${item}`).resolvedOptions().calendar === item;
56
- } catch {}
57
- return false;
58
- }
59
- /**
60
- * ECMA-402 Spec: Returns supported calendar identifiers
61
- * ECMA-402 Spec: Results must be sorted lexicographically
62
- *
63
- * Implementation: Filters CLDR list against actual runtime support
64
- */
65
691
  function getSupportedCalendars() {
66
- return calendars.filter(isSupportedCalendar).sort();
692
+ const probe = getDateTimeFormatProbe();
693
+ if (probe?.availableCalendars) try {
694
+ const available = probe.availableCalendars();
695
+ return supportedEntries(calendars, (calendar) => calendar === "iso8601" || arrayIndexOf(available, calendar) >= 0);
696
+ } catch {}
697
+ if (!probe?.resolve) return ["iso8601"];
698
+ const { create, resolve } = probe;
699
+ return supportedEntries(calendars, (calendar) => {
700
+ if (calendar === "iso8601") return true;
701
+ const options = {
702
+ __proto__: null,
703
+ calendar
704
+ };
705
+ return arraySome(calendarCandidateLocales[calendar], (locale) => {
706
+ try {
707
+ return resolve(create(`${locale}-u-ca-${calendar}`, options)).calendar === calendar;
708
+ } catch {
709
+ return false;
710
+ }
711
+ });
712
+ });
67
713
  }
68
714
  // node_modules/.aspect_rules_js/@formatjs_generated+cldr.supported-values@0.0.0/node_modules/@formatjs_generated/cldr.supported-values/collations.js
69
715
  const collations = [
@@ -387,37 +1033,26 @@ const collationCandidateLocales = {
387
1033
  "zhuyin": ["zh", "zh-Hant"]
388
1034
  };
389
1035
  // packages/intl-supportedvaluesof/get-supported-collations.ts
390
- function isSupportedCollation(collation) {
391
- const candidates = collationCandidateLocales[collation] || ["en"];
392
- for (const locale of candidates) try {
393
- if (new Intl.Collator(`${locale}-u-co-${collation}`).resolvedOptions().collation === collation) return true;
394
- } catch {}
395
- return false;
396
- }
397
1036
  function getSupportedCollations() {
398
- return collations.filter(isSupportedCollation).sort();
399
- }
400
- // packages/ecma402-abstract/utils.js
401
- function defineProperty(target, name, { value }) {
402
- Object.defineProperty(target, name, {
403
- configurable: true,
404
- enumerable: false,
405
- writable: true,
406
- value
1037
+ const probe = getCollatorProbe();
1038
+ if (!probe?.resolve) return [];
1039
+ const { create, resolve } = probe;
1040
+ return supportedEntries(collations, (collation) => {
1041
+ const candidates = collationCandidateLocales[collation] || ["en"];
1042
+ for (let index = 0; index < candidates.length; index++) {
1043
+ const locale = candidates[index];
1044
+ try {
1045
+ if (resolve(create(`${locale}-u-co-${collation}`)).collation === collation) return true;
1046
+ } catch {}
1047
+ }
1048
+ return false;
407
1049
  });
408
1050
  }
409
- function ensureIntl() {
410
- if (typeof Intl === "undefined") Object.defineProperty(globalThis, "Intl", {
411
- configurable: true,
412
- enumerable: false,
413
- writable: true,
414
- value: {}
415
- });
416
- return Intl;
1051
+ // packages/ecma262-abstract/HasOwnProperty.js
1052
+ const hasOwn = Function.prototype.call.bind(Object.prototype.hasOwnProperty);
1053
+ function HasOwnProperty(o, prop) {
1054
+ return hasOwn(o, prop);
417
1055
  }
418
- const createMemoizedNumberFormat = memoize((...args) => new Intl.NumberFormat(...args), { strategy: strategies.variadic });
419
- memoize((...args) => new Intl.PluralRules(...args), { strategy: strategies.variadic });
420
- memoize((...args) => new Intl.ListFormat(...args), { strategy: strategies.variadic });
421
1056
  // node_modules/.aspect_rules_js/@formatjs_generated+cldr.supported-values@0.0.0/node_modules/@formatjs_generated/cldr.supported-values/currencies.js
422
1057
  const currencies = [
423
1058
  "ADP",
@@ -486,6 +1121,7 @@ const currencies = [
486
1121
  "CLF",
487
1122
  "CLP",
488
1123
  "CNH",
1124
+ "CNX",
489
1125
  "CNY",
490
1126
  "COP",
491
1127
  "COU",
@@ -688,6 +1324,7 @@ const currencies = [
688
1324
  "VNN",
689
1325
  "VUV",
690
1326
  "WST",
1327
+ "XAD",
691
1328
  "XAF",
692
1329
  "XAG",
693
1330
  "XAU",
@@ -727,44 +1364,64 @@ const currencies = [
727
1364
  "ZWL",
728
1365
  "ZWR"
729
1366
  ];
1367
+ const currencyCandidateLocales = { "XAD": ["en", "cv"] };
730
1368
  // packages/intl-supportedvaluesof/get-supported-currencies.ts
731
- /**
732
- * Implementation: Tests if a currency is supported by attempting to create
733
- * a NumberFormat with that currency and verifying it was accepted.
734
- *
735
- * CLDR Data: Candidate values come from CLDR currency codes (ISO 4217)
736
- */
737
- function isSupportedCurrency(currency) {
738
- try {
739
- const format = createMemoizedNumberFormat("en", {
740
- style: "currency",
741
- currencyDisplay: "name",
742
- currency
743
- }).format(123);
744
- if (format.substring(0, 3) !== currency && format.substring(format.length - 3) !== currency) return true;
745
- } catch {}
746
- return false;
747
- }
748
- /**
749
- * ECMA-402 Spec: Returns supported currency identifiers
750
- * ECMA-402 Spec: Results must be sorted lexicographically
751
- *
752
- * Implementation: Filters CLDR list against actual runtime support
753
- */
1369
+ const apply = Reflect.apply;
1370
+ const createObject = Object.create;
1371
+ const stringIndexOf = String.prototype.indexOf;
1372
+ const stringSlice = String.prototype.slice;
1373
+ const english = ["en"];
754
1374
  function getSupportedCurrencies() {
1375
+ const probe = getNumberFormatProbe();
1376
+ if (!probe || !probe.formatToParts && !probe.format) return [];
1377
+ const { create, format, formatToParts } = probe;
1378
+ const namesProbe = getCurrencyDisplayNamesProbe();
1379
+ if (namesProbe && !namesProbe.hasName) return [];
1380
+ const namesByLocale = createObject(null);
755
1381
  const ATOZ = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
756
- const supportedCurrencies = [];
757
- for (const currency of currencies) if (currency.length === 3) {
758
- if (isSupportedCurrency(currency)) supportedCurrencies.push(currency);
759
- } else if (currency.length === 5 && currency[3] === "~") {
760
- const start = ATOZ.indexOf(currency[2]);
761
- const end = ATOZ.indexOf(currency[4]);
762
- for (let i = start; i <= end; i++) {
763
- const currentCurrency = currency.substring(0, 2) + ATOZ[i];
764
- if (isSupportedCurrency(currentCurrency)) supportedCurrencies.push(currentCurrency);
1382
+ const candidates = [];
1383
+ for (let index = 0; index < currencies.length; index++) {
1384
+ const currency = currencies[index];
1385
+ if (currency.length === 3) setDataProperty(candidates, `${candidates.length}`, currency);
1386
+ else if (currency.length === 5 && currency[3] === "~") {
1387
+ const start = apply(stringIndexOf, ATOZ, [currency[2]]);
1388
+ const end = apply(stringIndexOf, ATOZ, [currency[4]]);
1389
+ const prefix = currency[0] + currency[1];
1390
+ for (let i = start; i <= end; i++) setDataProperty(candidates, `${candidates.length}`, prefix + ATOZ[i]);
765
1391
  }
766
1392
  }
767
- return supportedCurrencies.sort();
1393
+ return supportedEntries(candidates, (currency) => {
1394
+ return arraySome(HasOwnProperty(currencyCandidateLocales, currency) ? currencyCandidateLocales[currency] : english, (locale) => {
1395
+ try {
1396
+ if (namesProbe) {
1397
+ let names = namesByLocale[locale];
1398
+ if (names === void 0) {
1399
+ namesByLocale[locale] = null;
1400
+ names = namesByLocale[locale] = namesProbe.create(locale);
1401
+ }
1402
+ if (!names || !namesProbe.hasName?.(names, currency)) return false;
1403
+ }
1404
+ const formatter = create(locale, {
1405
+ __proto__: null,
1406
+ style: "currency",
1407
+ currencyDisplay: "name",
1408
+ currency
1409
+ });
1410
+ if (formatToParts) {
1411
+ const parts = formatToParts(formatter, 123);
1412
+ for (let i = 0; i < parts.length; i++) {
1413
+ const part = parts[i];
1414
+ if (part.type === "currency" && part.value !== currency) return true;
1415
+ }
1416
+ return false;
1417
+ }
1418
+ const text = format(formatter, 123);
1419
+ return apply(stringSlice, text, [0, 3]) !== currency && apply(stringSlice, text, [-3]) !== currency;
1420
+ } catch {
1421
+ return false;
1422
+ }
1423
+ });
1424
+ });
768
1425
  }
769
1426
  // node_modules/.aspect_rules_js/@formatjs_generated+cldr.number@0.0.0/node_modules/@formatjs_generated/cldr.number/numbering-systems.js
770
1427
  const numberingSystemNames = [
@@ -866,28 +1523,183 @@ const numberingSystemNames = [
866
1523
  "wara",
867
1524
  "wcho"
868
1525
  ];
1526
+ const numericNumberingSystemNames = [
1527
+ "adlm",
1528
+ "ahom",
1529
+ "arab",
1530
+ "arabext",
1531
+ "bali",
1532
+ "beng",
1533
+ "bhks",
1534
+ "brah",
1535
+ "cakm",
1536
+ "cham",
1537
+ "deva",
1538
+ "diak",
1539
+ "fullwide",
1540
+ "gara",
1541
+ "gong",
1542
+ "gonm",
1543
+ "gujr",
1544
+ "gukh",
1545
+ "guru",
1546
+ "hanidec",
1547
+ "hmng",
1548
+ "hmnp",
1549
+ "java",
1550
+ "kali",
1551
+ "kawi",
1552
+ "khmr",
1553
+ "knda",
1554
+ "krai",
1555
+ "lana",
1556
+ "lanatham",
1557
+ "laoo",
1558
+ "latn",
1559
+ "lepc",
1560
+ "limb",
1561
+ "mathbold",
1562
+ "mathdbl",
1563
+ "mathmono",
1564
+ "mathsanb",
1565
+ "mathsans",
1566
+ "mlym",
1567
+ "modi",
1568
+ "mong",
1569
+ "mroo",
1570
+ "mtei",
1571
+ "mymr",
1572
+ "mymrepka",
1573
+ "mymrpao",
1574
+ "mymrshan",
1575
+ "mymrtlng",
1576
+ "nagm",
1577
+ "newa",
1578
+ "nkoo",
1579
+ "olck",
1580
+ "onao",
1581
+ "orya",
1582
+ "osma",
1583
+ "outlined",
1584
+ "rohg",
1585
+ "saur",
1586
+ "segment",
1587
+ "shrd",
1588
+ "sind",
1589
+ "sinh",
1590
+ "sora",
1591
+ "sund",
1592
+ "sunu",
1593
+ "takr",
1594
+ "talu",
1595
+ "tamldec",
1596
+ "telu",
1597
+ "thai",
1598
+ "tibt",
1599
+ "tirh",
1600
+ "tnsa",
1601
+ "tols",
1602
+ "vaii",
1603
+ "wara",
1604
+ "wcho"
1605
+ ];
1606
+ const numberingSystemCandidateLocales = {
1607
+ "armn": ["en", "hy"],
1608
+ "armnlow": ["en"],
1609
+ "cyrl": ["en"],
1610
+ "ethi": [
1611
+ "en",
1612
+ "am",
1613
+ "om",
1614
+ "om-KE",
1615
+ "ti",
1616
+ "ti-ER"
1617
+ ],
1618
+ "geor": ["en", "ka"],
1619
+ "grek": [
1620
+ "en",
1621
+ "el",
1622
+ "el-CY",
1623
+ "el-polyton"
1624
+ ],
1625
+ "greklow": ["en"],
1626
+ "hanidays": ["en", "zh"],
1627
+ "hans": [
1628
+ "en",
1629
+ "zh",
1630
+ "zh-Hans",
1631
+ "zh-Hans-HK",
1632
+ "zh-Hans-MO",
1633
+ "zh-Hans-MY",
1634
+ "zh-Hans-SG"
1635
+ ],
1636
+ "hansfin": [
1637
+ "en",
1638
+ "zh",
1639
+ "zh-Hans",
1640
+ "zh-Hans-HK",
1641
+ "zh-Hans-MO",
1642
+ "zh-Hans-MY",
1643
+ "zh-Hans-SG"
1644
+ ],
1645
+ "hant": [
1646
+ "en",
1647
+ "zh-Hant",
1648
+ "yue",
1649
+ "yue-Hans",
1650
+ "yue-Hant",
1651
+ "yue-Hant-CN",
1652
+ "yue-Hant-MO",
1653
+ "zh-Hant-HK",
1654
+ "zh-Hant-MO",
1655
+ "zh-Hant-MY"
1656
+ ],
1657
+ "hantfin": [
1658
+ "en",
1659
+ "zh-Hant",
1660
+ "yue",
1661
+ "yue-Hans",
1662
+ "yue-Hant",
1663
+ "yue-Hant-CN",
1664
+ "yue-Hant-MO",
1665
+ "zh-Hant-HK",
1666
+ "zh-Hant-MO",
1667
+ "zh-Hant-MY"
1668
+ ],
1669
+ "hebr": [
1670
+ "en",
1671
+ "he",
1672
+ "yi"
1673
+ ],
1674
+ "jpan": ["en", "ja"],
1675
+ "jpanfin": ["en", "ja"],
1676
+ "jpanyear": ["en", "ja"],
1677
+ "roman": ["en"],
1678
+ "romanlow": ["en"],
1679
+ "taml": [
1680
+ "en",
1681
+ "ta",
1682
+ "ta-LK",
1683
+ "ta-MY",
1684
+ "ta-SG"
1685
+ ]
1686
+ };
869
1687
  // packages/intl-supportedvaluesof/get-supported-numbering-systems.ts
870
- /**
871
- * Implementation: Tests if a numbering system is supported by attempting to create
872
- * a NumberFormat with that numbering system and verifying it was accepted.
873
- *
874
- * CLDR Data: Candidate values come from CLDR numbering system types
875
- */
876
- function isSupportedNumberingSystem(system) {
877
- try {
878
- const numberFormat = createMemoizedNumberFormat(`en-u-nu-${system}`);
879
- if (numberFormat.resolvedOptions().numberingSystem === system && system === "latn" || numberFormat.format(123) !== "123") return true;
880
- } catch {}
881
- return false;
882
- }
883
- /**
884
- * ECMA-402 Spec: Returns supported numbering system identifiers
885
- * ECMA-402 Spec: Results must be sorted lexicographically
886
- *
887
- * Implementation: Filters CLDR list against actual runtime support
888
- */
889
1688
  function getSupportedNumberingSystems() {
890
- return numberingSystemNames.filter(isSupportedNumberingSystem).sort();
1689
+ const number = getNumberFormatProbe();
1690
+ const date = getDateTimeFormatProbe();
1691
+ const relative = getRelativeTimeFormatProbe();
1692
+ return supportedEntries(numberingSystemNames, (system) => {
1693
+ if (arrayIndexOf(numericNumberingSystemNames, system) >= 0) return true;
1694
+ return arraySome(numberingSystemCandidateLocales[system], (candidate) => {
1695
+ const locale = `${candidate}-u-nu-${system}`;
1696
+ try {
1697
+ return number?.resolve?.(number.create(locale)).numberingSystem === system && date?.resolve?.(date.create(locale)).numberingSystem === system && relative?.resolve?.(relative.create(locale)).numberingSystem === system;
1698
+ } catch {
1699
+ return false;
1700
+ }
1701
+ });
1702
+ });
891
1703
  }
892
1704
  // node_modules/.aspect_rules_js/@formatjs_generated+cldr.supported-values@0.0.0/node_modules/@formatjs_generated/cldr.supported-values/timezones.js
893
1705
  const timezones = [
@@ -1342,27 +2154,25 @@ const timezones = [
1342
2154
  "UTC"
1343
2155
  ];
1344
2156
  // packages/intl-supportedvaluesof/get-supported-timezones.ts
1345
- /**
1346
- * Implementation: Tests if a timezone is supported by attempting to create
1347
- * a DateTimeFormat with that timezone and verifying it was accepted.
1348
- *
1349
- * CLDR Data: Candidate values come from IANA Time Zone Database
1350
- */
1351
- function isSupportedTimeZone(timeZone) {
1352
- try {
1353
- createMemoizedDateTimeFormat("en", { timeZone });
1354
- return true;
1355
- } catch {}
1356
- return false;
1357
- }
1358
- /**
1359
- * ECMA-402 Spec: Returns supported timezone identifiers
1360
- * ECMA-402 Spec: Results must be sorted lexicographically
1361
- *
1362
- * Implementation: Filters CLDR list against actual runtime support
1363
- */
1364
2157
  function getSupportedTimeZones() {
1365
- return timezones.filter(isSupportedTimeZone).sort();
2158
+ const probe = getDateTimeFormatProbe();
2159
+ if (!probe) return ["UTC"];
2160
+ return supportedEntries(timezones, (timeZone) => {
2161
+ if (timeZone === "UTC") return true;
2162
+ if (probe.hasTimeZone) try {
2163
+ return probe.hasTimeZone(timeZone);
2164
+ } catch {}
2165
+ try {
2166
+ const options = {
2167
+ __proto__: null,
2168
+ timeZone
2169
+ };
2170
+ probe.create("en", options);
2171
+ return true;
2172
+ } catch {
2173
+ return false;
2174
+ }
2175
+ });
1366
2176
  }
1367
2177
  // node_modules/.aspect_rules_js/@formatjs_generated+cldr.supported-values@0.0.0/node_modules/@formatjs_generated/cldr.supported-values/units.js
1368
2178
  const units = [
@@ -1413,43 +2223,18 @@ const units = [
1413
2223
  "milliliter"
1414
2224
  ];
1415
2225
  // packages/intl-supportedvaluesof/get-supported-units.ts
1416
- /**
1417
- * Implementation: Tests if a unit is supported by attempting to create
1418
- * a NumberFormat with that unit and verifying it was accepted.
1419
- *
1420
- * CLDR Data: Candidate values come from CLDR unit types
1421
- */
1422
- function isSupportedUnit(unit) {
1423
- try {
1424
- return createMemoizedNumberFormat("en", {
1425
- style: "unit",
1426
- unit
1427
- }).resolvedOptions().unit === unit;
1428
- } catch {}
1429
- return false;
1430
- }
1431
- /**
1432
- * ECMA-402 Spec: Returns supported unit identifiers
1433
- * ECMA-402 Spec: Results must be sorted lexicographically
1434
- *
1435
- * Implementation: Filters CLDR list against actual runtime support
1436
- */
1437
2226
  function getSupportedUnits() {
1438
- return units.filter(isSupportedUnit).sort();
2227
+ return supportedEntries(units, () => true);
1439
2228
  }
1440
2229
  // packages/intl-supportedvaluesof/index.ts
1441
2230
  /**
1442
- * ECMA-402 Spec: Intl.supportedValuesOf(key)
1443
- * ECMA-402 §8.3.2 Intl.supportedValuesOf, step 1.
2231
+ * ECMA-402 §8.3.2 Intl.supportedValuesOf.
1444
2232
  * https://tc39.es/ecma402/#sec-intl.supportedvaluesof
1445
- * https://github.com/tc39/ecma402/blob/b1c961988b9a07894b1dc3dc2b5626ea48387d61/spec/intl.html#L103
1446
2233
  *
1447
2234
  * Returns an array containing the supported calendar, collation, currency,
1448
2235
  * numbering systems, time zone, or unit values supported by the implementation.
1449
2236
  *
1450
- * Implementation: We validate candidate values from CLDR against the actual
1451
- * Intl formatters to determine runtime support rather than using static lists.
1452
- * This ensures accuracy across different JavaScript engines and runtimes.
2237
+ * Units come from the spec. Other categories probe the installed formatters.
1453
2238
  *
1454
2239
  * @param key - The category of values to return
1455
2240
  * @returns A sorted array of unique string values
@@ -1463,9 +2248,95 @@ const supportedValuesOf = { supportedValuesOf(key) {
1463
2248
  case "numberingSystem": return getSupportedNumberingSystems();
1464
2249
  case "timeZone": return getSupportedTimeZones();
1465
2250
  case "unit": return getSupportedUnits();
1466
- default: throw RangeError("Invalid key: " + key);
2251
+ default: throw new RangeErrorConstructor("Invalid key: " + key);
1467
2252
  }
1468
2253
  } }.supportedValuesOf;
2254
+ String.prototype.repeat;
2255
+ Array.from;
2256
+ Array.prototype.join;
2257
+ function defineProperty(target, name, { value }) {
2258
+ Object.defineProperty(target, name, {
2259
+ configurable: true,
2260
+ enumerable: false,
2261
+ writable: true,
2262
+ value
2263
+ });
2264
+ }
2265
+ function ensureIntl() {
2266
+ if (typeof Intl === "undefined") {
2267
+ const intl = {};
2268
+ if (typeof Symbol !== "undefined") Object.defineProperty(intl, Symbol.toStringTag, {
2269
+ value: "Intl",
2270
+ writable: false,
2271
+ enumerable: false,
2272
+ configurable: true
2273
+ });
2274
+ Object.defineProperty(globalThis, "Intl", {
2275
+ configurable: true,
2276
+ enumerable: false,
2277
+ writable: true,
2278
+ value: intl
2279
+ });
2280
+ }
2281
+ if (providerIntl === void 0) providerIntl = Intl;
2282
+ return Intl;
2283
+ }
2284
+ memoize((...args) => new Intl.NumberFormat(...args), { strategy: strategies.variadic });
2285
+ memoize((...args) => new Intl.ListFormat(...args), { strategy: strategies.variadic });
2286
+ const getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2287
+ strategies.variadic;
2288
+ let providerIntl = globalThis.Intl;
2289
+ function ownIntlProvider(name) {
2290
+ const descriptor = providerIntl && getOwnPropertyDescriptor(providerIntl, name);
2291
+ return (descriptor && getOwnPropertyDescriptor(descriptor, "value"))?.value;
2292
+ }
2293
+ let numberFormatIntrinsic = ownIntlProvider("NumberFormat");
2294
+ let listFormatIntrinsic = ownIntlProvider("ListFormat");
2295
+ let pluralRulesProvider = ownIntlProvider("PluralRules");
2296
+ const getFormatterPrototype = Object.getPrototypeOf;
2297
+ function formatterMethodLookup(name) {
2298
+ const methods = /* @__PURE__ */ new WeakMap();
2299
+ const owners = /* @__PURE__ */ new WeakMap();
2300
+ const getMethod = methods.get.bind(methods);
2301
+ const setMethod = methods.set.bind(methods);
2302
+ const getOwner = owners.get.bind(owners);
2303
+ const setOwner = owners.set.bind(owners);
2304
+ return (Constructor) => {
2305
+ const cached = getMethod(Constructor);
2306
+ if (cached) return cached;
2307
+ let prototype = getOwnPropertyDescriptor(Constructor, "prototype")?.value;
2308
+ while (prototype != null) {
2309
+ const inherited = getOwner(prototype);
2310
+ if (inherited) {
2311
+ setMethod(Constructor, inherited);
2312
+ return inherited;
2313
+ }
2314
+ const descriptor = getOwnPropertyDescriptor(prototype, name);
2315
+ const value = descriptor && getOwnPropertyDescriptor(descriptor, "value");
2316
+ if (value && typeof value.value === "function") {
2317
+ const method = value.value;
2318
+ setMethod(Constructor, method);
2319
+ setOwner(prototype, method);
2320
+ return method;
2321
+ }
2322
+ prototype = getFormatterPrototype(prototype);
2323
+ }
2324
+ };
2325
+ }
2326
+ const findFormatterPartsMethod = formatterMethodLookup("formatToParts");
2327
+ const findPluralRulesSelectMethod = formatterMethodLookup("select");
2328
+ if (typeof numberFormatIntrinsic === "function") findFormatterPartsMethod(numberFormatIntrinsic);
2329
+ if (typeof listFormatIntrinsic === "function") findFormatterPartsMethod(listFormatIntrinsic);
2330
+ if (typeof pluralRulesProvider === "function") findPluralRulesSelectMethod(pluralRulesProvider);
2331
+ const numberFormatMemoizers = /* @__PURE__ */ new WeakMap();
2332
+ numberFormatMemoizers.get.bind(numberFormatMemoizers);
2333
+ numberFormatMemoizers.set.bind(numberFormatMemoizers);
2334
+ const listFormatMemoizers = /* @__PURE__ */ new WeakMap();
2335
+ listFormatMemoizers.get.bind(listFormatMemoizers);
2336
+ listFormatMemoizers.set.bind(listFormatMemoizers);
2337
+ const pluralRulesMemoizers = /* @__PURE__ */ new WeakMap();
2338
+ pluralRulesMemoizers.get.bind(pluralRulesMemoizers);
2339
+ pluralRulesMemoizers.set.bind(pluralRulesMemoizers);
1469
2340
  // packages/intl-supportedvaluesof/polyfill.ts
1470
2341
  const intl = ensureIntl();
1471
2342
  if (shouldPolyfill()) defineProperty(intl, "supportedValuesOf", { value: supportedValuesOf });