@useupup/core 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE +8 -0
  3. package/README.md +75 -0
  4. package/dist/browser-SXR426OQ.cjs +10 -0
  5. package/dist/browser-WD6T5ABJ.js +1 -0
  6. package/dist/chunk-2H5ICKFT.cjs +122 -0
  7. package/dist/chunk-6HF3I2JS.cjs +39 -0
  8. package/dist/chunk-6S5DQDQH.js +212 -0
  9. package/dist/chunk-BMQC27OE.cjs +92 -0
  10. package/dist/chunk-BSGQGINR.cjs +219 -0
  11. package/dist/chunk-CPKZ2CXD.cjs +179 -0
  12. package/dist/chunk-DTKDIMKT.cjs +573 -0
  13. package/dist/chunk-DYE5XJ6Z.cjs +2134 -0
  14. package/dist/chunk-E3ZCNOXG.cjs +74 -0
  15. package/dist/chunk-FEQY2WYY.cjs +2377 -0
  16. package/dist/chunk-FMURBCZ7.js +120 -0
  17. package/dist/chunk-FYQQRULL.js +37 -0
  18. package/dist/chunk-GE4LIVXP.js +133 -0
  19. package/dist/chunk-HFR5HZJZ.js +56 -0
  20. package/dist/chunk-I7ULPCA2.js +72 -0
  21. package/dist/chunk-MHYXDLZR.js +569 -0
  22. package/dist/chunk-N2SLHVAW.cjs +61 -0
  23. package/dist/chunk-OOPDEOTM.js +169 -0
  24. package/dist/chunk-PMBR3OUW.js +2359 -0
  25. package/dist/chunk-QK7HZIVY.cjs +144 -0
  26. package/dist/chunk-T2AQHY7V.cjs +59 -0
  27. package/dist/chunk-TRCP5FUR.js +90 -0
  28. package/dist/chunk-U7KL5M2H.cjs +374 -0
  29. package/dist/chunk-UXNPM54W.js +2108 -0
  30. package/dist/chunk-VV6QCQLL.js +365 -0
  31. package/dist/chunk-ZMS2HXLB.js +56 -0
  32. package/dist/context-shapes-123dd3b6.d.cts +207 -0
  33. package/dist/context-shapes-27b24c8f.d.ts +207 -0
  34. package/dist/contracts-pipeline-cf177270.d.cts +78 -0
  35. package/dist/contracts-pipeline-cf177270.d.ts +78 -0
  36. package/dist/contracts-strategies-378a16b7.d.cts +168 -0
  37. package/dist/contracts-strategies-378a16b7.d.ts +168 -0
  38. package/dist/contracts.cjs +181 -0
  39. package/dist/contracts.d.cts +11 -0
  40. package/dist/contracts.d.ts +11 -0
  41. package/dist/contracts.js +4 -0
  42. package/dist/core-141335ac.d.ts +651 -0
  43. package/dist/core-bea2ceca.d.cts +651 -0
  44. package/dist/create-worker-provider-AA5SRII6.js +58 -0
  45. package/dist/create-worker-provider-KJNUSSTW.cjs +60 -0
  46. package/dist/eligibility-ONLNJ6FB.cjs +10 -0
  47. package/dist/eligibility-ULFC3E4G.js +8 -0
  48. package/dist/error-code-map-9c44a425.d.ts +62 -0
  49. package/dist/error-code-map-dd5becfa.d.cts +62 -0
  50. package/dist/i18n/index.cjs +90 -0
  51. package/dist/i18n/index.d.cts +3 -0
  52. package/dist/i18n/index.d.ts +3 -0
  53. package/dist/i18n/index.js +1 -0
  54. package/dist/index.cjs +1770 -0
  55. package/dist/index.d.cts +280 -0
  56. package/dist/index.d.ts +280 -0
  57. package/dist/index.js +1589 -0
  58. package/dist/internal.cjs +2407 -0
  59. package/dist/internal.d.cts +595 -0
  60. package/dist/internal.d.ts +595 -0
  61. package/dist/internal.js +2275 -0
  62. package/dist/pipeline/index.cjs +10 -0
  63. package/dist/pipeline/index.d.cts +11 -0
  64. package/dist/pipeline/index.d.ts +11 -0
  65. package/dist/pipeline/index.js +1 -0
  66. package/dist/pipeline-worker.cjs +199 -0
  67. package/dist/pipeline-worker.d.cts +2 -0
  68. package/dist/pipeline-worker.d.ts +2 -0
  69. package/dist/pipeline-worker.js +197 -0
  70. package/dist/resolve-locale-81feef21.d.ts +20 -0
  71. package/dist/resolve-locale-9cb63600.d.cts +20 -0
  72. package/dist/resolve-theme-01758105.d.ts +53 -0
  73. package/dist/resolve-theme-66cf8d98.d.cts +53 -0
  74. package/dist/server-mode-drive-controller-b5f8ee12.d.cts +180 -0
  75. package/dist/server-mode-drive-controller-b5f8ee12.d.ts +180 -0
  76. package/dist/steps/compress.cjs +66 -0
  77. package/dist/steps/compress.d.cts +10 -0
  78. package/dist/steps/compress.d.ts +10 -0
  79. package/dist/steps/compress.js +64 -0
  80. package/dist/steps/exif.cjs +44 -0
  81. package/dist/steps/exif.d.cts +5 -0
  82. package/dist/steps/exif.d.ts +5 -0
  83. package/dist/steps/exif.js +42 -0
  84. package/dist/steps/hash.cjs +44 -0
  85. package/dist/steps/hash.d.cts +5 -0
  86. package/dist/steps/hash.d.ts +5 -0
  87. package/dist/steps/hash.js +42 -0
  88. package/dist/steps/heic.cjs +59 -0
  89. package/dist/steps/heic.d.cts +5 -0
  90. package/dist/steps/heic.d.ts +5 -0
  91. package/dist/steps/heic.js +57 -0
  92. package/dist/steps/thumbnail.cjs +54 -0
  93. package/dist/steps/thumbnail.d.cts +10 -0
  94. package/dist/steps/thumbnail.d.ts +10 -0
  95. package/dist/steps/thumbnail.js +52 -0
  96. package/dist/strategies/index.cjs +82 -0
  97. package/dist/strategies/index.d.cts +187 -0
  98. package/dist/strategies/index.d.ts +187 -0
  99. package/dist/strategies/index.js +60 -0
  100. package/dist/strategies/tus-upload.cjs +14 -0
  101. package/dist/strategies/tus-upload.d.cts +15 -0
  102. package/dist/strategies/tus-upload.d.ts +15 -0
  103. package/dist/strategies/tus-upload.js +5 -0
  104. package/dist/theme/index.cjs +38 -0
  105. package/dist/theme/index.d.cts +3 -0
  106. package/dist/theme/index.d.ts +3 -0
  107. package/dist/theme/index.js +1 -0
  108. package/dist/theme-store-2e56a674.d.cts +39 -0
  109. package/dist/theme-store-f13e0315.d.ts +39 -0
  110. package/dist/token-endpoint-5fdb4a35.d.ts +20 -0
  111. package/dist/token-endpoint-a7d15ab6.d.cts +20 -0
  112. package/dist/ui-translations-c5d00392.d.cts +455 -0
  113. package/dist/ui-translations-c5d00392.d.ts +455 -0
  114. package/dist/uploader-props-72242002.d.ts +340 -0
  115. package/dist/uploader-props-7f956e60.d.cts +340 -0
  116. package/dist/vars-d3421f6c.d.cts +240 -0
  117. package/dist/vars-d3421f6c.d.ts +240 -0
  118. package/package.json +182 -0
@@ -0,0 +1,58 @@
1
+ // src/worker/create-worker-provider.ts
2
+ var DEFAULT_TIMEOUT_MS = 3e4;
3
+ function createWorkerProvider(runtime, options = {}) {
4
+ const worker = runtime.createWorker?.() ?? null;
5
+ if (!worker) return null;
6
+ const timeoutMs = options.timeoutMs ?? DEFAULT_TIMEOUT_MS;
7
+ const pending = /* @__PURE__ */ new Map();
8
+ let nextId = 1;
9
+ const settle = (id) => {
10
+ const p = pending.get(id);
11
+ if (p) {
12
+ clearTimeout(p.timer);
13
+ pending.delete(id);
14
+ }
15
+ return p;
16
+ };
17
+ worker.onmessage = (event) => {
18
+ const res = event.data;
19
+ const p = settle(res.id);
20
+ if (!p) return;
21
+ if (res.ok) p.resolve(res.result);
22
+ else p.reject(new Error(res.error));
23
+ };
24
+ worker.onerror = () => {
25
+ for (const [id] of [...pending])
26
+ settle(id)?.reject(new Error("worker error"));
27
+ };
28
+ return {
29
+ execute(task) {
30
+ return new Promise((resolve, reject) => {
31
+ const id = nextId++;
32
+ const timer = setTimeout(() => {
33
+ if (pending.delete(id))
34
+ reject(new Error(`worker timeout after ${timeoutMs}ms`));
35
+ }, timeoutMs);
36
+ pending.set(id, {
37
+ resolve,
38
+ reject,
39
+ timer
40
+ });
41
+ const req = {
42
+ id,
43
+ type: task.type,
44
+ data: task.data,
45
+ params: task.params
46
+ };
47
+ worker.postMessage(req, [task.data]);
48
+ });
49
+ },
50
+ terminate() {
51
+ for (const [id] of [...pending])
52
+ settle(id)?.reject(new Error("worker terminated"));
53
+ worker.terminate();
54
+ }
55
+ };
56
+ }
57
+
58
+ export { createWorkerProvider };
@@ -0,0 +1,60 @@
1
+ 'use strict';
2
+
3
+ // src/worker/create-worker-provider.ts
4
+ var DEFAULT_TIMEOUT_MS = 3e4;
5
+ function createWorkerProvider(runtime, options = {}) {
6
+ const worker = runtime.createWorker?.() ?? null;
7
+ if (!worker) return null;
8
+ const timeoutMs = options.timeoutMs ?? DEFAULT_TIMEOUT_MS;
9
+ const pending = /* @__PURE__ */ new Map();
10
+ let nextId = 1;
11
+ const settle = (id) => {
12
+ const p = pending.get(id);
13
+ if (p) {
14
+ clearTimeout(p.timer);
15
+ pending.delete(id);
16
+ }
17
+ return p;
18
+ };
19
+ worker.onmessage = (event) => {
20
+ const res = event.data;
21
+ const p = settle(res.id);
22
+ if (!p) return;
23
+ if (res.ok) p.resolve(res.result);
24
+ else p.reject(new Error(res.error));
25
+ };
26
+ worker.onerror = () => {
27
+ for (const [id] of [...pending])
28
+ settle(id)?.reject(new Error("worker error"));
29
+ };
30
+ return {
31
+ execute(task) {
32
+ return new Promise((resolve, reject) => {
33
+ const id = nextId++;
34
+ const timer = setTimeout(() => {
35
+ if (pending.delete(id))
36
+ reject(new Error(`worker timeout after ${timeoutMs}ms`));
37
+ }, timeoutMs);
38
+ pending.set(id, {
39
+ resolve,
40
+ reject,
41
+ timer
42
+ });
43
+ const req = {
44
+ id,
45
+ type: task.type,
46
+ data: task.data,
47
+ params: task.params
48
+ };
49
+ worker.postMessage(req, [task.data]);
50
+ });
51
+ },
52
+ terminate() {
53
+ for (const [id] of [...pending])
54
+ settle(id)?.reject(new Error("worker terminated"));
55
+ worker.terminate();
56
+ }
57
+ };
58
+ }
59
+
60
+ exports.createWorkerProvider = createWorkerProvider;
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ // src/worker/eligibility.ts
4
+ function isWorkerEligible(opts, hasWorker, stepCount) {
5
+ if (opts.webWorker === false) return false;
6
+ if (!hasWorker) return false;
7
+ return stepCount > 0;
8
+ }
9
+
10
+ exports.isWorkerEligible = isWorkerEligible;
@@ -0,0 +1,8 @@
1
+ // src/worker/eligibility.ts
2
+ function isWorkerEligible(opts, hasWorker, stepCount) {
3
+ if (opts.webWorker === false) return false;
4
+ if (!hasWorker) return false;
5
+ return stepCount > 0;
6
+ }
7
+
8
+ export { isWorkerEligible };
@@ -0,0 +1,62 @@
1
+ import { L as LocaleBundle, P as PartialMessages, T as Translator, a as UpupLocaleCode, E as ErrorMessages } from './ui-translations-c5d00392.js';
2
+
3
+ declare const enUS: LocaleBundle;
4
+
5
+ declare const arSA: LocaleBundle;
6
+
7
+ declare const deDE: LocaleBundle;
8
+
9
+ declare const esES: LocaleBundle;
10
+
11
+ declare const frFR: LocaleBundle;
12
+
13
+ declare const jaJP: LocaleBundle;
14
+
15
+ declare const koKR: LocaleBundle;
16
+
17
+ declare const zhCN: LocaleBundle;
18
+
19
+ declare const zhTW: LocaleBundle;
20
+
21
+ interface TranslatorOptions {
22
+ /** Primary locale bundle */
23
+ bundle: LocaleBundle;
24
+ /** Fallback bundle (typically en-US) */
25
+ fallback?: LocaleBundle;
26
+ /** Partial message overrides merged on top */
27
+ overrides?: PartialMessages | undefined;
28
+ /** Called when a key is missing from all sources */
29
+ onMissingKey?: (key: string) => void;
30
+ /** Async loader for switching locale at runtime */
31
+ loadLocale?: (code: string) => Promise<LocaleBundle>;
32
+ }
33
+ /**
34
+ * Create a translator function with ICU MessageFormat support,
35
+ * formatter caching, and a fallback chain.
36
+ */
37
+ declare function createTranslator(options: TranslatorOptions): Translator;
38
+
39
+ interface LocaleMeta {
40
+ code: UpupLocaleCode;
41
+ language: string;
42
+ dir: 'ltr' | 'rtl';
43
+ }
44
+ /**
45
+ * Derived from LOCALE_REGISTRY \u2014 every bundle already carries `code`/
46
+ * `language`/`dir`, so this projection can never drift from the registry.
47
+ */
48
+ declare const LOCALE_META: Record<string, LocaleMeta>;
49
+ /**
50
+ * Normalize legacy underscore codes to BCP 47 hyphenated format.
51
+ * e.g. "en_US" -> "en-US", "fr_FR" -> "fr-FR"
52
+ */
53
+ declare function normalizeBcp47(code: string): UpupLocaleCode;
54
+
55
+ /**
56
+ * Map an upload/server/token error `code` to a key of ErrorMessages.
57
+ * Unknown or absent codes fall back to a generic message so the UI never
58
+ * shows a raw, unlocalized machine code to the end user.
59
+ */
60
+ declare function errorCodeToMessageKey(code: string | undefined): keyof ErrorMessages;
61
+
62
+ export { LOCALE_META as L, type TranslatorOptions as T, type LocaleMeta as a, enUS as b, createTranslator as c, arSA as d, errorCodeToMessageKey as e, deDE as f, esES as g, frFR as h, zhTW as i, jaJP as j, koKR as k, normalizeBcp47 as n, zhCN as z };
@@ -0,0 +1,62 @@
1
+ import { L as LocaleBundle, P as PartialMessages, T as Translator, a as UpupLocaleCode, E as ErrorMessages } from './ui-translations-c5d00392.cjs';
2
+
3
+ declare const enUS: LocaleBundle;
4
+
5
+ declare const arSA: LocaleBundle;
6
+
7
+ declare const deDE: LocaleBundle;
8
+
9
+ declare const esES: LocaleBundle;
10
+
11
+ declare const frFR: LocaleBundle;
12
+
13
+ declare const jaJP: LocaleBundle;
14
+
15
+ declare const koKR: LocaleBundle;
16
+
17
+ declare const zhCN: LocaleBundle;
18
+
19
+ declare const zhTW: LocaleBundle;
20
+
21
+ interface TranslatorOptions {
22
+ /** Primary locale bundle */
23
+ bundle: LocaleBundle;
24
+ /** Fallback bundle (typically en-US) */
25
+ fallback?: LocaleBundle;
26
+ /** Partial message overrides merged on top */
27
+ overrides?: PartialMessages | undefined;
28
+ /** Called when a key is missing from all sources */
29
+ onMissingKey?: (key: string) => void;
30
+ /** Async loader for switching locale at runtime */
31
+ loadLocale?: (code: string) => Promise<LocaleBundle>;
32
+ }
33
+ /**
34
+ * Create a translator function with ICU MessageFormat support,
35
+ * formatter caching, and a fallback chain.
36
+ */
37
+ declare function createTranslator(options: TranslatorOptions): Translator;
38
+
39
+ interface LocaleMeta {
40
+ code: UpupLocaleCode;
41
+ language: string;
42
+ dir: 'ltr' | 'rtl';
43
+ }
44
+ /**
45
+ * Derived from LOCALE_REGISTRY \u2014 every bundle already carries `code`/
46
+ * `language`/`dir`, so this projection can never drift from the registry.
47
+ */
48
+ declare const LOCALE_META: Record<string, LocaleMeta>;
49
+ /**
50
+ * Normalize legacy underscore codes to BCP 47 hyphenated format.
51
+ * e.g. "en_US" -> "en-US", "fr_FR" -> "fr-FR"
52
+ */
53
+ declare function normalizeBcp47(code: string): UpupLocaleCode;
54
+
55
+ /**
56
+ * Map an upload/server/token error `code` to a key of ErrorMessages.
57
+ * Unknown or absent codes fall back to a generic message so the UI never
58
+ * shows a raw, unlocalized machine code to the end user.
59
+ */
60
+ declare function errorCodeToMessageKey(code: string | undefined): keyof ErrorMessages;
61
+
62
+ export { LOCALE_META as L, type TranslatorOptions as T, type LocaleMeta as a, enUS as b, createTranslator as c, arSA as d, errorCodeToMessageKey as e, deDE as f, esES as g, frFR as h, zhTW as i, jaJP as j, koKR as k, normalizeBcp47 as n, zhCN as z };
@@ -0,0 +1,90 @@
1
+ 'use strict';
2
+
3
+ var chunkDYE5XJ6Z_cjs = require('../chunk-DYE5XJ6Z.cjs');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, 'LOCALE_CODES', {
8
+ enumerable: true,
9
+ get: function () { return chunkDYE5XJ6Z_cjs.LOCALE_CODES; }
10
+ });
11
+ Object.defineProperty(exports, 'LOCALE_META', {
12
+ enumerable: true,
13
+ get: function () { return chunkDYE5XJ6Z_cjs.LOCALE_META; }
14
+ });
15
+ Object.defineProperty(exports, 'LOCALE_REGISTRY', {
16
+ enumerable: true,
17
+ get: function () { return chunkDYE5XJ6Z_cjs.LOCALE_REGISTRY; }
18
+ });
19
+ Object.defineProperty(exports, 'arSA', {
20
+ enumerable: true,
21
+ get: function () { return chunkDYE5XJ6Z_cjs.arSA; }
22
+ });
23
+ Object.defineProperty(exports, 'buildFallbackChain', {
24
+ enumerable: true,
25
+ get: function () { return chunkDYE5XJ6Z_cjs.buildFallbackChain; }
26
+ });
27
+ Object.defineProperty(exports, 'createTranslator', {
28
+ enumerable: true,
29
+ get: function () { return chunkDYE5XJ6Z_cjs.createTranslator; }
30
+ });
31
+ Object.defineProperty(exports, 'deDE', {
32
+ enumerable: true,
33
+ get: function () { return chunkDYE5XJ6Z_cjs.deDE; }
34
+ });
35
+ Object.defineProperty(exports, 'enUS', {
36
+ enumerable: true,
37
+ get: function () { return chunkDYE5XJ6Z_cjs.enUS; }
38
+ });
39
+ Object.defineProperty(exports, 'errorCodeToMessageKey', {
40
+ enumerable: true,
41
+ get: function () { return chunkDYE5XJ6Z_cjs.errorCodeToMessageKey; }
42
+ });
43
+ Object.defineProperty(exports, 'esES', {
44
+ enumerable: true,
45
+ get: function () { return chunkDYE5XJ6Z_cjs.esES; }
46
+ });
47
+ Object.defineProperty(exports, 'flattenTranslatorToUiTranslations', {
48
+ enumerable: true,
49
+ get: function () { return chunkDYE5XJ6Z_cjs.flattenTranslatorToUiTranslations; }
50
+ });
51
+ Object.defineProperty(exports, 'formatUiMessage', {
52
+ enumerable: true,
53
+ get: function () { return chunkDYE5XJ6Z_cjs.formatUiMessage; }
54
+ });
55
+ Object.defineProperty(exports, 'frFR', {
56
+ enumerable: true,
57
+ get: function () { return chunkDYE5XJ6Z_cjs.frFR; }
58
+ });
59
+ Object.defineProperty(exports, 'jaJP', {
60
+ enumerable: true,
61
+ get: function () { return chunkDYE5XJ6Z_cjs.jaJP; }
62
+ });
63
+ Object.defineProperty(exports, 'koKR', {
64
+ enumerable: true,
65
+ get: function () { return chunkDYE5XJ6Z_cjs.koKR; }
66
+ });
67
+ Object.defineProperty(exports, 'normalizeBcp47', {
68
+ enumerable: true,
69
+ get: function () { return chunkDYE5XJ6Z_cjs.normalizeBcp47; }
70
+ });
71
+ Object.defineProperty(exports, 'pluralUiMessage', {
72
+ enumerable: true,
73
+ get: function () { return chunkDYE5XJ6Z_cjs.pluralUiMessage; }
74
+ });
75
+ Object.defineProperty(exports, 'resolveLocaleBundle', {
76
+ enumerable: true,
77
+ get: function () { return chunkDYE5XJ6Z_cjs.resolveLocaleBundle; }
78
+ });
79
+ Object.defineProperty(exports, 'resolveMessage', {
80
+ enumerable: true,
81
+ get: function () { return chunkDYE5XJ6Z_cjs.resolveMessage; }
82
+ });
83
+ Object.defineProperty(exports, 'zhCN', {
84
+ enumerable: true,
85
+ get: function () { return chunkDYE5XJ6Z_cjs.zhCN; }
86
+ });
87
+ Object.defineProperty(exports, 'zhTW', {
88
+ enumerable: true,
89
+ get: function () { return chunkDYE5XJ6Z_cjs.zhTW; }
90
+ });
@@ -0,0 +1,3 @@
1
+ export { F as FlatMessageKey, e as LOCALE_CODES, g as LOCALE_REGISTRY, L as LocaleBundle, M as MessageNamespace, P as PartialMessages, R as RegisteredLocaleCode, c as Translations, T as Translator, d as UiTranslations, a as UpupLocaleCode, U as UpupMessages, f as flattenTranslatorToUiTranslations, b as formatUiMessage, p as pluralUiMessage } from '../ui-translations-c5d00392.cjs';
2
+ export { L as LOCALE_META, a as LocaleMeta, T as TranslatorOptions, d as arSA, c as createTranslator, f as deDE, b as enUS, e as errorCodeToMessageKey, g as esES, h as frFR, j as jaJP, k as koKR, n as normalizeBcp47, z as zhCN, i as zhTW } from '../error-code-map-dd5becfa.cjs';
3
+ export { b as buildFallbackChain, a as resolveLocaleBundle, r as resolveMessage } from '../resolve-locale-9cb63600.cjs';
@@ -0,0 +1,3 @@
1
+ export { F as FlatMessageKey, e as LOCALE_CODES, g as LOCALE_REGISTRY, L as LocaleBundle, M as MessageNamespace, P as PartialMessages, R as RegisteredLocaleCode, c as Translations, T as Translator, d as UiTranslations, a as UpupLocaleCode, U as UpupMessages, f as flattenTranslatorToUiTranslations, b as formatUiMessage, p as pluralUiMessage } from '../ui-translations-c5d00392.js';
2
+ export { L as LOCALE_META, a as LocaleMeta, T as TranslatorOptions, d as arSA, c as createTranslator, f as deDE, b as enUS, e as errorCodeToMessageKey, g as esES, h as frFR, j as jaJP, k as koKR, n as normalizeBcp47, z as zhCN, i as zhTW } from '../error-code-map-9c44a425.js';
3
+ export { b as buildFallbackChain, a as resolveLocaleBundle, r as resolveMessage } from '../resolve-locale-81feef21.js';
@@ -0,0 +1 @@
1
+ export { LOCALE_CODES, LOCALE_META, LOCALE_REGISTRY, arSA, buildFallbackChain, createTranslator, deDE, enUS, errorCodeToMessageKey, esES, flattenTranslatorToUiTranslations, formatUiMessage, frFR, jaJP, koKR, normalizeBcp47, pluralUiMessage, resolveLocaleBundle, resolveMessage, zhCN, zhTW } from '../chunk-UXNPM54W.js';