@formatjs/intl-listformat 8.3.1 → 8.3.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/index.d.ts +103 -68
- package/index.js +264 -84
- package/index.js.map +1 -0
- package/package.json +4 -5
- package/polyfill-force.d.ts +1 -1
- package/polyfill-force.js +398 -2
- package/polyfill-force.js.map +1 -0
- package/polyfill.d.ts +1 -1
- package/polyfill.iife.js +4688 -5452
- package/polyfill.js +983 -3
- package/polyfill.js.map +1 -0
- package/should-polyfill.d.ts +5 -1
- package/should-polyfill.js +583 -8
- package/should-polyfill.js.map +1 -0
- package/supported-locales.generated.d.ts +0 -1
- package/supported-locales.generated.js +0 -573
package/polyfill.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polyfill.js","names":[],"sources":["../../ecma402-abstract/CanonicalizeLocaleList.js","../../ecma262-abstract/ToString.js","../../ecma402-abstract/GetOption.js","../../ecma402-abstract/GetOptionsObject.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/PartitionPattern.js","../../ecma262-abstract/ToObject.js","../../ecma402-abstract/SupportedLocales.js","../index.ts","../supported-locales.generated.ts","../should-polyfill.ts","../polyfill.ts"],"sourcesContent":["/**\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","/**\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","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","//#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","import { invariant } from \"#packages/ecma402-abstract/utils.js\";\n/**\n* Partition a pattern into a list of literals and placeholders\n* https://tc39.es/ecma402/#sec-partitionpattern\n* @param pattern\n*/\nexport function PartitionPattern(pattern) {\n\tconst result = [];\n\tlet beginIndex = pattern.indexOf(\"{\");\n\tlet endIndex = 0;\n\tlet nextIndex = 0;\n\tconst length = pattern.length;\n\twhile (beginIndex < pattern.length && beginIndex > -1) {\n\t\tendIndex = pattern.indexOf(\"}\", beginIndex);\n\t\tinvariant(endIndex > beginIndex, `Invalid pattern ${pattern}`);\n\t\tif (beginIndex > nextIndex) {\n\t\t\tresult.push({\n\t\t\t\ttype: \"literal\",\n\t\t\t\tvalue: pattern.substring(nextIndex, beginIndex)\n\t\t\t});\n\t\t}\n\t\tresult.push({\n\t\t\ttype: pattern.substring(beginIndex + 1, endIndex),\n\t\t\tvalue: undefined\n\t\t});\n\t\tnextIndex = endIndex + 1;\n\t\tbeginIndex = pattern.indexOf(\"{\", nextIndex);\n\t}\n\tif (nextIndex < length) {\n\t\tresult.push({\n\t\t\ttype: \"literal\",\n\t\t\tvalue: pattern.substring(nextIndex, length)\n\t\t});\n\t}\n\treturn result;\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","import {CanonicalizeLocaleList} from '#packages/ecma402-abstract/CanonicalizeLocaleList.js'\nimport {GetOption} from '#packages/ecma402-abstract/GetOption.js'\nimport {GetOptionsObject} from '#packages/ecma402-abstract/GetOptionsObject.js'\nimport {PartitionPattern} from '#packages/ecma402-abstract/PartitionPattern.js'\nimport {SupportedLocales} from '#packages/ecma402-abstract/SupportedLocales.js'\nimport {\n type ListPatternData,\n type ListPatternFieldsData,\n type ListPatternLocaleData,\n} from '#packages/ecma402-abstract/types/list.js'\nimport {\n type LiteralPart,\n getInternalSlot,\n invariant,\n isLiteralPart,\n setInternalSlot,\n} from '#packages/ecma402-abstract/utils.js'\nimport {ResolveLocale} from '@formatjs/intl-localematcher'\n\nexport interface IntlListFormatOptions {\n /**\n * The locale matching algorithm to use.\n * Possible values are \"lookup\" and \"best fit\"; the default is \"best fit\".\n * For information about this option, see\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation.\n */\n localeMatcher?: 'best fit' | 'lookup'\n /**\n * The format of output message.\n * Possible values are :\n * - \"conjunction\" that stands for \"and\"-based lists (default, e.g., \"A, B, and C\")\n * - \"disjunction\" that stands for \"or\"-based lists (e.g., \"A, B, or C\").\n * - \"unit\" stands for lists of values with units (e.g., \"5 pounds, 12 ounces\").\n */\n type?: 'conjunction' | 'disjunction' | 'unit'\n /**\n * The length of the formatted message.\n * Possible values are:\n * - \"long\" (default, e.g., \"A, B, and C\");\n * - \"short\" (e.g., \"A, B, C\"), or\n * - \"narrow\" (e.g., \"A B C\").\n * When style is \"short\" or \"narrow\", \"unit\" is the only allowed value for the type option.\n */\n style?: 'long' | 'short' | 'narrow'\n}\n\nexport interface ResolvedIntlListFormatOptions {\n /**\n * A string with a BCP 47 language tag, or an array of such strings.\n * For the general form and interpretation of the locales argument,\n * see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) page.\n */\n locale: string\n /**\n * The format of output message.\n * Possible values are :\n * - \"conjunction\" that stands for \"and\"-based lists (default, e.g., \"A, B, and C\")\n * - \"disjunction\" that stands for \"or\"-based lists (e.g., \"A, B, or C\").\n * - \"unit\" stands for lists of values with units (e.g., \"5 pounds, 12 ounces\").\n */\n type: 'conjunction' | 'disjunction' | 'unit'\n /**\n * The length of the formatted message.\n * Possible values are:\n * - \"long\" (default, e.g., \"A, B, and C\");\n * - \"short\" (e.g., \"A, B, C\"), or\n * - \"narrow\" (e.g., \"A B C\").\n * When style is \"short\" or \"narrow\", \"unit\" is the only allowed value for the type option.\n */\n style: 'long' | 'short' | 'narrow'\n}\n\nexport type Part<T = string> = LiteralPart | ElementPart | ElementPart<T>\n\nexport interface ElementPart<T = string> {\n type: 'element'\n value: T\n}\n\ninterface Placeable {\n type: string\n value: string\n}\n\ninterface ListFormatInternal {\n style: IntlListFormatOptions['style']\n type: IntlListFormatOptions['type']\n locale: string\n templatePair: string\n templateStart: string\n templateEnd: string\n templateMiddle: string\n initializedListFormat: boolean\n}\n\nfunction validateInstance(instance: any, method: string) {\n if (!(instance instanceof ListFormat)) {\n throw new TypeError(\n `Method Intl.ListFormat.prototype.${method} called on incompatible receiver ${String(\n instance\n )}`\n )\n }\n}\n\n/**\n * https://tc39.es/proposal-intl-list-format/#sec-createstringlistfromiterable\n * @param iterable list\n */\nfunction stringListFromIterable(iterable: Iterable<unknown>): string[] {\n if (typeof iterable !== 'object') return []\n const elements: string[] = []\n const iterator = iterable[Symbol.iterator]()\n let result: IteratorResult<unknown>\n while (true) {\n result = iterator.next()\n if (result.done) break\n if (typeof result.value !== 'string') {\n const nextValue = result.value\n throw new TypeError(`Iterable yielded ${nextValue} which is not a string`)\n }\n elements.push(result.value)\n }\n return elements\n}\n\nfunction createPartsFromList(\n internalSlotMap: WeakMap<ListFormat, ListFormatInternal>,\n lf: ListFormat,\n list: string[]\n) {\n const size = list.length\n if (size === 0) {\n return []\n }\n if (size === 2) {\n const pattern = getInternalSlot(internalSlotMap, lf, 'templatePair')\n const first = {type: 'element', value: list[0]}\n const second = {type: 'element', value: list[1]}\n return deconstructPattern(pattern, {'0': first, '1': second})\n }\n const last = {\n type: 'element',\n value: list[size - 1],\n }\n let parts: Placeable[] | Placeable = last\n let i = size - 2\n while (i >= 0) {\n let pattern\n if (i === 0) {\n pattern = getInternalSlot(internalSlotMap, lf, 'templateStart')\n } else if (i < size - 2) {\n pattern = getInternalSlot(internalSlotMap, lf, 'templateMiddle')\n } else {\n pattern = getInternalSlot(internalSlotMap, lf, 'templateEnd')\n }\n const head = {type: 'element', value: list[i]}\n parts = deconstructPattern(pattern, {'0': head, '1': parts})\n i--\n }\n return parts\n}\n\nfunction deconstructPattern(\n pattern: string,\n placeables: Record<string, Placeable | Placeable[]>\n) {\n const patternParts = PartitionPattern(pattern)\n const result: Placeable[] = []\n for (const patternPart of patternParts) {\n const {type: part} = patternPart\n if (isLiteralPart(patternPart)) {\n result.push({\n type: 'literal',\n value: patternPart.value,\n })\n } else {\n invariant(part in placeables, `${part} is missing from placables`)\n const subst = placeables[part]\n if (Array.isArray(subst)) {\n result.push(...subst)\n } else {\n result.push(subst)\n }\n }\n }\n return result\n}\n\nexport default class ListFormat {\n constructor(locales?: string | string[], options?: IntlListFormatOptions) {\n // test262/test/intl402/ListFormat/constructor/constructor/newtarget-undefined.js\n // Cannot use `new.target` bc of IE11 & TS transpiles it to something else\n const newTarget =\n this && this instanceof ListFormat ? this.constructor : void 0\n if (!newTarget) {\n throw new TypeError(\"Intl.ListFormat must be called with 'new'\")\n }\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'initializedListFormat',\n true\n )\n const requestedLocales = CanonicalizeLocaleList(locales)\n const opt: any = Object.create(null)\n const opts = GetOptionsObject(options)\n const matcher = GetOption(\n opts,\n 'localeMatcher',\n 'string',\n ['best fit', 'lookup'],\n 'best fit'\n )\n opt.localeMatcher = matcher\n const {localeData} = ListFormat\n const r = ResolveLocale(\n ListFormat.availableLocales,\n requestedLocales,\n opt,\n ListFormat.relevantExtensionKeys,\n localeData,\n ListFormat.getDefaultLocale\n )\n setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'locale', r.locale)\n const type: keyof ListPatternFieldsData = GetOption(\n opts,\n 'type',\n 'string',\n ['conjunction', 'disjunction', 'unit'],\n 'conjunction'\n )\n setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'type', type)\n const style: keyof ListPatternData = GetOption(\n opts,\n 'style',\n 'string',\n ['long', 'short', 'narrow'],\n 'long'\n )\n setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'style', style)\n const {dataLocale} = r\n const dataLocaleData = localeData[dataLocale]\n invariant(!!dataLocaleData, `Missing locale data for ${dataLocale}`)\n const dataLocaleTypes = dataLocaleData[type]\n const templates = dataLocaleTypes![style]!\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templatePair',\n templates.pair\n )\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templateStart',\n templates.start\n )\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templateMiddle',\n templates.middle\n )\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templateEnd',\n templates.end\n )\n }\n format(elements: Iterable<string>): string {\n validateInstance(this, 'format')\n let result = ''\n const parts = createPartsFromList(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n stringListFromIterable(elements)\n )\n if (!Array.isArray(parts)) {\n return parts.value\n }\n for (const p of parts) {\n result += p.value\n }\n return result\n }\n formatToParts(elements: Iterable<string>): Part[] {\n validateInstance(this, 'format')\n const parts = createPartsFromList(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n stringListFromIterable(elements)\n )\n if (!Array.isArray(parts)) {\n return [parts as Part]\n }\n const result: Part[] = []\n for (const part of parts) {\n result.push({...part} as Part)\n }\n return result\n }\n\n resolvedOptions(): ResolvedIntlListFormatOptions {\n validateInstance(this, 'resolvedOptions')\n return {\n locale: getInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'locale'),\n type: getInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'type')!,\n style: getInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'style')!,\n }\n }\n\n public static supportedLocalesOf(\n locales: string | string[],\n options?: Pick<IntlListFormatOptions, 'localeMatcher'>\n ): string[] {\n // test262/test/intl402/ListFormat/constructor/supportedLocalesOf/result-type.js\n return SupportedLocales(\n ListFormat.availableLocales,\n CanonicalizeLocaleList(locales),\n options\n )\n }\n\n public static __addLocaleData(...data: ListPatternLocaleData[]): void {\n for (const {data: d, locale} of data) {\n const minimizedLocale = new (Intl as any).Locale(locale)\n .minimize()\n .toString()\n ListFormat.localeData[locale] = ListFormat.localeData[minimizedLocale] = d\n ListFormat.availableLocales.add(minimizedLocale)\n ListFormat.availableLocales.add(locale)\n if (!ListFormat.__defaultLocale) {\n ListFormat.__defaultLocale = minimizedLocale\n }\n }\n }\n static localeData: Record<string, ListPatternFieldsData | undefined> = {}\n private static availableLocales = new Set<string>()\n private static __defaultLocale = ''\n private static getDefaultLocale() {\n return ListFormat.__defaultLocale\n }\n private static relevantExtensionKeys = []\n public static polyfilled = true\n private static readonly __INTERNAL_SLOT_MAP__ = new WeakMap<\n ListFormat,\n ListFormatInternal\n >()\n}\n\ntry {\n // IE11 does not have Symbol\n if (typeof Symbol !== 'undefined') {\n Object.defineProperty(ListFormat.prototype, Symbol.toStringTag, {\n value: 'Intl.ListFormat',\n writable: false,\n enumerable: false,\n configurable: true,\n })\n }\n\n // https://github.com/tc39/test262/blob/master/test/intl402/ListFormat/constructor/length.js\n Object.defineProperty(ListFormat.prototype.constructor, 'length', {\n value: 0,\n writable: false,\n enumerable: false,\n configurable: true,\n })\n // https://github.com/tc39/test262/blob/master/test/intl402/ListFormat/constructor/supportedLocalesOf/length.js\n Object.defineProperty(ListFormat.supportedLocalesOf, 'length', {\n value: 1,\n writable: false,\n enumerable: false,\n configurable: true,\n })\n} catch {\n // Meta fix so we're test262-compliant, not important\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-listformat/supported-locales.generated.js'\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).ListFormat.supportedLocalesOf(locales).length ===\n locales.length\n )\n}\n\nexport function shouldPolyfill(locale = 'en'): string | undefined {\n if (!('ListFormat' in Intl) || !supportedLocalesOf(locale)) {\n return locale ? match([locale], supportedLocales, 'en') : undefined\n }\n}\n","import ListFormat from '#packages/intl-listformat/index.js'\nimport {shouldPolyfill} from '#packages/intl-listformat/should-polyfill.js'\nif (shouldPolyfill()) {\n Object.defineProperty(Intl, 'ListFormat', {\n value: ListFormat,\n writable: true,\n enumerable: false,\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_LISTFORMAT_DATA__ as\n | Parameters<(typeof ListFormat)['__addLocaleData']>[0][]\n | undefined\n if (buf) {\n for (const d of buf) ListFormat.__addLocaleData(d)\n delete (globalThis as Record<string, unknown>).__FORMATJS_LISTFORMAT_DATA__\n }\n}\n"],"x_google_ignoreList":[4],"mappings":";;;;;;AAIA,SAAgB,uBAAuB,SAAS;AAE/C,QAAO,KAAK,oBAAoB,QAAQ;;;;;;;ACHzC,SAAgB,SAAS,GAAG;AAC3B,KAAI,OAAO,MAAM,SAChB,OAAM,UAAU,4CAA4C;AAE7D,QAAO,OAAO,EAAE;;;;;;;;;;;;ACEjB,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,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;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;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;;;ACzjBD,SAAS,mBAAmB,QAA4B;AACtD,KAAI,CAAC,OACH,QAAO;CAET,MAAM,UAAU,MAAM,QAAQ,OAAO,GAAG,SAAS,CAAC,OAAO;AACzD,QACG,KAAa,WAAW,mBAAmB,QAAQ,CAAC,WACrD,QAAQ;;AAIZ,SAAgB,eAAe,SAAS,MAA0B;AAChE,KAAI,EAAE,gBAAgB,SAAS,CAAC,mBAAmB,OAAO,CACxD,QAAO,SAAS,MAAM,CAAC,OAAO,EAAE,kBAAkB,KAAK,GAAG,KAAA;;;;ACd9D,IAAI,gBAAgB,EAAE;AACpB,QAAO,eAAe,MAAM,cAAc;EACxC,OAAO;EACP,UAAU;EACV,YAAY;EACZ,cAAc;EACf,CAAC;CAGF,MAAM,MAAO,WACV;AAGH,KAAI,KAAK;AACP,OAAK,MAAM,KAAK,IAAK,YAAW,gBAAgB,EAAE;AAClD,SAAQ,WAAuC"}
|
package/should-polyfill.d.ts
CHANGED
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
//#region packages/intl-listformat/should-polyfill.d.ts
|
|
2
|
+
declare function shouldPolyfill(locale?: string): string | undefined;
|
|
3
|
+
//#endregion
|
|
4
|
+
export { shouldPolyfill };
|
|
5
|
+
//# sourceMappingURL=should-polyfill.d.ts.map
|