@fluenti/vue-i18n-compat 0.6.1 → 0.6.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/dist/index.cjs +1 -2
- package/dist/index.js +0 -2
- package/dist/packages/vue-i18n-compat/src/bridge.d.ts +0 -1
- package/dist/packages/vue-i18n-compat/src/composable.d.ts +0 -1
- package/dist/packages/vue-i18n-compat/src/index.d.ts +0 -1
- package/dist/packages/vue-i18n-compat/src/types.d.ts +0 -1
- package/package.json +3 -3
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/packages/vue-i18n-compat/src/bridge.d.ts.map +0 -1
- package/dist/packages/vue-i18n-compat/src/composable.d.ts.map +0 -1
- package/dist/packages/vue-i18n-compat/src/index.d.ts.map +0 -1
- package/dist/packages/vue-i18n-compat/src/types.d.ts.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require(`vue`);var t=Symbol(`fluenti-bridge`);function n(n){let{vueI18n:r,fluenti:i,priority:a=`fluenti-first`}=n,o=i.global,s=r.global,c=!1;function l(e,t){if(!c){c=!0;try{e===`fluenti`?s.locale.value!==t&&(s.locale.value=t):o.locale.value!==t&&o.setLocale(t)}finally{c=!1}}}function u(e,t){let n=typeof e==`string`?e:e.id;return a===`fluenti-first`?o.te(n)?o.t(e,t):s.t(n,t??{}):s.te(n)?s.t(n,t??{}):o.t(e,t)}function d(e,t,n){return a===`fluenti-first`?o.te(e)?o.t(e,{count:t,...n}):s.tc?s.tc(e,t,n??{}):s.t(e,{count:t,...n}):s.te(e)?s.tc?s.tc(e,t,n??{}):s.t(e,{count:t,...n}):o.t(e,{count:t,...n})}function f(e,t){return o.te(e,t)||s.te(e,t)}function p(e){if(a===`fluenti-first`){let t=o.tm(e);if(t!==void 0)return t}return s.tm(e)}let m=(0,e.computed)(()=>[...new Set([...o.getLocales(),...s.availableLocales])].sort()),h={t:u,tc:d,te:f,tm:p,d:o.d,n:o.n,format:o.format,locale:o.locale,setLocale:async e=>{await o.setLocale(e),l(`fluenti`,e)},availableLocales:m,isLoading:o.isLoading,fluenti:o,vueI18n:s};return{install(n){n.use(r),n.use(i);let a=(0,e.watch)(o.locale,e=>{l(`fluenti`,e)}),c=(0,e.watch)(s.locale,e=>{l(`vue-i18n`,e)});n.onUnmount(()=>{a(),c()}),n.config.globalProperties.$t=u,n.config.globalProperties.$te=f,n.config.globalProperties.$tc=d,n.provide(t,h)},global:h}}function r(){let n=(0,e.inject)(t);if(!n)throw Error(`[@fluenti/vue-i18n-compat] useI18n() requires the bridge plugin to be installed. Call app.use(bridge) where bridge = createFluentBridge({ vueI18n, fluenti }).`);return n}exports.BRIDGE_KEY=t,exports.createFluentBridge=n,exports.useI18n=r;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require(`vue`);var t=Symbol(`fluenti-bridge`);function n(n){let{vueI18n:r,fluenti:i,priority:a=`fluenti-first`}=n,o=i.global,s=r.global,c=!1;function l(e,t){if(!c){c=!0;try{e===`fluenti`?s.locale.value!==t&&(s.locale.value=t):o.locale.value!==t&&o.setLocale(t)}finally{c=!1}}}function u(e,t){let n=typeof e==`string`?e:e.id;return a===`fluenti-first`?o.te(n)?o.t(e,t):s.t(n,t??{}):s.te(n)?s.t(n,t??{}):o.t(e,t)}function d(e,t,n){return a===`fluenti-first`?o.te(e)?o.t(e,{count:t,...n}):s.tc?s.tc(e,t,n??{}):s.t(e,{count:t,...n}):s.te(e)?s.tc?s.tc(e,t,n??{}):s.t(e,{count:t,...n}):o.t(e,{count:t,...n})}function f(e,t){return o.te(e,t)||s.te(e,t)}function p(e){if(a===`fluenti-first`){let t=o.tm(e);if(t!==void 0)return t}return s.tm(e)}let m=(0,e.computed)(()=>[...new Set([...o.getLocales(),...s.availableLocales])].sort()),h={t:u,tc:d,te:f,tm:p,d:o.d,n:o.n,format:o.format,locale:o.locale,setLocale:async e=>{await o.setLocale(e),l(`fluenti`,e)},availableLocales:m,isLoading:o.isLoading,fluenti:o,vueI18n:s};return{install(n){n.use(r),n.use(i);let a=(0,e.watch)(o.locale,e=>{l(`fluenti`,e)}),c=(0,e.watch)(s.locale,e=>{l(`vue-i18n`,e)});n.onUnmount(()=>{a(),c()}),n.config.globalProperties.$t=u,n.config.globalProperties.$te=f,n.config.globalProperties.$tc=d,n.provide(t,h)},global:h}}function r(){let n=(0,e.inject)(t);if(!n)throw Error(`[@fluenti/vue-i18n-compat] useI18n() requires the bridge plugin to be installed. Call app.use(bridge) where bridge = createFluentBridge({ vueI18n, fluenti }).`);return n}exports.BRIDGE_KEY=t,exports.createFluentBridge=n,exports.useI18n=r;
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluenti/vue-i18n-compat",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Progressive migration bridge between vue-i18n and Fluenti — share locale, translate across both libraries",
|
|
6
6
|
"homepage": "https://fluenti.dev",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"vue-i18n": "^9 || ^10"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@fluenti/core": "0.6.
|
|
53
|
-
"@fluenti/vue": "0.6.
|
|
52
|
+
"@fluenti/core": "0.6.2",
|
|
53
|
+
"@fluenti/vue": "0.6.2"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@vitest/coverage-v8": "^4",
|
package/dist/index.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":[],"sources":["../src/bridge.ts","../src/composable.ts"],"sourcesContent":["import { type App, type InjectionKey, computed, watch } from 'vue'\nimport type { BridgeOptions, BridgeContext, BridgePlugin } from './types'\n\n/** Injection key for the bridge context */\nexport const BRIDGE_KEY: InjectionKey<BridgeContext> = Symbol('fluenti-bridge')\n\n/**\n * Create a bridge plugin that connects vue-i18n and fluenti.\n *\n * Both libraries are installed, locale is synced bidirectionally,\n * and translation lookups fall through from one library to the other.\n *\n * @example\n * ```ts\n * const bridge = createFluentBridge({\n * vueI18n: i18n,\n * fluenti: fluent,\n * priority: 'fluenti-first',\n * })\n * app.use(bridge)\n * ```\n */\nexport function createFluentBridge(options: BridgeOptions): BridgePlugin {\n const { vueI18n, fluenti, priority = 'fluenti-first' } = options\n const fluentCtx = fluenti.global\n const vueI18nGlobal = vueI18n.global\n\n // --- Locale sync (bidirectional, with guard to prevent loops) ---\n let syncing = false\n\n function syncLocale(source: 'fluenti' | 'vue-i18n', newLocale: string) {\n if (syncing) return\n syncing = true\n try {\n if (source === 'fluenti') {\n if (vueI18nGlobal.locale.value !== newLocale) {\n vueI18nGlobal.locale.value = newLocale\n }\n } else {\n if (fluentCtx.locale.value !== newLocale) {\n fluentCtx.setLocale(newLocale)\n }\n }\n } finally {\n syncing = false\n }\n }\n\n // --- Bridged translation functions ---\n\n function bridgedT(key: string | { id: string; message?: string }, values?: Record<string, unknown>): string {\n const stringKey = typeof key === 'string' ? key : key.id\n\n if (priority === 'fluenti-first') {\n if (fluentCtx.te(stringKey)) {\n return fluentCtx.t(key, values)\n }\n return vueI18nGlobal.t(stringKey, values ?? {})\n } else {\n if (vueI18nGlobal.te(stringKey)) {\n return vueI18nGlobal.t(stringKey, values ?? {})\n }\n return fluentCtx.t(key, values)\n }\n }\n\n function bridgedTc(key: string, count: number, values?: Record<string, unknown>): string {\n if (priority === 'fluenti-first') {\n // If fluenti has the key, use ICU plural resolution via t()\n if (fluentCtx.te(key)) {\n return fluentCtx.t(key, { count, ...values })\n }\n // Fall back to vue-i18n's tc (which handles pipe-separated plurals)\n if (vueI18nGlobal.tc) {\n return vueI18nGlobal.tc(key, count, values ?? {})\n }\n // vue-i18n v10+ removed tc, use t with count\n return vueI18nGlobal.t(key, { count, ...values } as any)\n } else {\n // vue-i18n-first: try vue-i18n first, fall back to fluenti if key is absent\n if (vueI18nGlobal.te(key)) {\n if (vueI18nGlobal.tc) {\n return vueI18nGlobal.tc(key, count, values ?? {})\n }\n return vueI18nGlobal.t(key, { count, ...values } as any)\n }\n return fluentCtx.t(key, { count, ...values })\n }\n }\n\n function bridgedTe(key: string, locale?: string): boolean {\n return fluentCtx.te(key, locale) || vueI18nGlobal.te(key, locale)\n }\n\n function bridgedTm(key: string): unknown {\n // Prefer fluenti raw message if available\n if (priority === 'fluenti-first') {\n const raw = fluentCtx.tm(key)\n if (raw !== undefined) return raw\n }\n return vueI18nGlobal.tm(key)\n }\n\n const availableLocales = computed(() => {\n const locales = new Set<string>([\n ...fluentCtx.getLocales(),\n ...vueI18nGlobal.availableLocales,\n ])\n return [...locales].sort()\n })\n\n const context: BridgeContext = {\n t: bridgedT,\n tc: bridgedTc,\n te: bridgedTe,\n tm: bridgedTm,\n d: fluentCtx.d,\n n: fluentCtx.n,\n format: fluentCtx.format,\n locale: fluentCtx.locale,\n setLocale: async (locale: string) => {\n await fluentCtx.setLocale(locale)\n // setLocale already triggers the watcher, but ensure sync for non-reactive paths\n syncLocale('fluenti', locale)\n },\n availableLocales,\n isLoading: fluentCtx.isLoading,\n fluenti: fluentCtx,\n vueI18n: vueI18nGlobal,\n }\n\n return {\n install(app: App) {\n // Install both plugins\n app.use(vueI18n)\n app.use(fluenti)\n\n // Set up locale watchers (must be done after install since refs may be set up during install)\n const unwatchFluenti = watch(fluentCtx.locale, (newLocale) => {\n syncLocale('fluenti', newLocale)\n })\n const unwatchVueI18n = watch(vueI18nGlobal.locale, (newLocale) => {\n syncLocale('vue-i18n', newLocale)\n })\n\n // Clean up watchers when the app is unmounted (prevents SSR memory leaks)\n app.onUnmount(() => {\n unwatchFluenti()\n unwatchVueI18n()\n })\n\n // Override global properties with bridged versions\n app.config.globalProperties['$t'] = bridgedT\n app.config.globalProperties['$te'] = bridgedTe\n app.config.globalProperties['$tc'] = bridgedTc\n\n // Provide bridge context\n app.provide(BRIDGE_KEY, context)\n },\n global: context,\n }\n}\n","import { inject } from 'vue'\nimport { BRIDGE_KEY } from './bridge'\nimport type { BridgeContext } from './types'\n\n/**\n * Unified composable that provides access to the bridge context.\n *\n * Returns a `BridgeContext` with translation methods that check both\n * vue-i18n and fluenti catalogs, locale management that syncs across\n * both libraries, and direct access to each underlying instance.\n *\n * @example\n * ```ts\n * const { t, tc, te, locale, setLocale, fluenti, vueI18n } = useI18n()\n * ```\n */\nexport function useI18n(): BridgeContext {\n const ctx = inject(BRIDGE_KEY)\n if (!ctx) {\n throw new Error(\n '[@fluenti/vue-i18n-compat] useI18n() requires the bridge plugin to be installed. ' +\n 'Call app.use(bridge) where bridge = createFluentBridge({ vueI18n, fluenti }).',\n )\n }\n return ctx\n}\n"],"mappings":"wFAIA,IAAa,EAA0C,OAAO,iBAAiB,CAkB/E,SAAgB,EAAmB,EAAsC,CACvE,GAAM,CAAE,UAAS,UAAS,WAAW,iBAAoB,EACnD,EAAY,EAAQ,OACpB,EAAgB,EAAQ,OAG1B,EAAU,GAEd,SAAS,EAAW,EAAgC,EAAmB,CACjE,MACJ,GAAU,GACV,GAAI,CACE,IAAW,UACT,EAAc,OAAO,QAAU,IACjC,EAAc,OAAO,MAAQ,GAG3B,EAAU,OAAO,QAAU,GAC7B,EAAU,UAAU,EAAU,QAG1B,CACR,EAAU,KAMd,SAAS,EAAS,EAAgD,EAA0C,CAC1G,IAAM,EAAY,OAAO,GAAQ,SAAW,EAAM,EAAI,GAWpD,OATE,IAAa,gBACX,EAAU,GAAG,EAAU,CAClB,EAAU,EAAE,EAAK,EAAO,CAE1B,EAAc,EAAE,EAAW,GAAU,EAAE,CAAC,CAE3C,EAAc,GAAG,EAAU,CACtB,EAAc,EAAE,EAAW,GAAU,EAAE,CAAC,CAE1C,EAAU,EAAE,EAAK,EAAO,CA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AA,OAAuB,EAAU,OAAS,GAAc,CAC5D,EAAW,UAAW,EAAU,EAChC,CACI,GAAA,EAAA,EAAA,OAAuB,EAAc,OAAS,GAAc,CAChE,EAAW,WAAY,EAAU,EACjC,CAGF,EAAI,cAAgB,CAClB,GAAgB,CAChB,GAAgB,EAChB,CAGF,EAAI,OAAO,iBAAiB,GAAQ,EACpC,EAAI,OAAO,iBAAiB,IAAS,EACrC,EAAI,OAAO,iBAAiB,IAAS,EAGrC,EAAI,QAAQ,EAAY,EAAQ,EAElC,OAAQ,EACT,CChJH,SAAgB,GAAyB,CACvC,IAAM,GAAA,EAAA,EAAA,QAAa,EAAW,CAC9B,GAAI,CAAC,EACH,MAAU,MACR,iKAED,CAEH,OAAO"}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/bridge.ts","../src/composable.ts"],"sourcesContent":["import { type App, type InjectionKey, computed, watch } from 'vue'\nimport type { BridgeOptions, BridgeContext, BridgePlugin } from './types'\n\n/** Injection key for the bridge context */\nexport const BRIDGE_KEY: InjectionKey<BridgeContext> = Symbol('fluenti-bridge')\n\n/**\n * Create a bridge plugin that connects vue-i18n and fluenti.\n *\n * Both libraries are installed, locale is synced bidirectionally,\n * and translation lookups fall through from one library to the other.\n *\n * @example\n * ```ts\n * const bridge = createFluentBridge({\n * vueI18n: i18n,\n * fluenti: fluent,\n * priority: 'fluenti-first',\n * })\n * app.use(bridge)\n * ```\n */\nexport function createFluentBridge(options: BridgeOptions): BridgePlugin {\n const { vueI18n, fluenti, priority = 'fluenti-first' } = options\n const fluentCtx = fluenti.global\n const vueI18nGlobal = vueI18n.global\n\n // --- Locale sync (bidirectional, with guard to prevent loops) ---\n let syncing = false\n\n function syncLocale(source: 'fluenti' | 'vue-i18n', newLocale: string) {\n if (syncing) return\n syncing = true\n try {\n if (source === 'fluenti') {\n if (vueI18nGlobal.locale.value !== newLocale) {\n vueI18nGlobal.locale.value = newLocale\n }\n } else {\n if (fluentCtx.locale.value !== newLocale) {\n fluentCtx.setLocale(newLocale)\n }\n }\n } finally {\n syncing = false\n }\n }\n\n // --- Bridged translation functions ---\n\n function bridgedT(key: string | { id: string; message?: string }, values?: Record<string, unknown>): string {\n const stringKey = typeof key === 'string' ? key : key.id\n\n if (priority === 'fluenti-first') {\n if (fluentCtx.te(stringKey)) {\n return fluentCtx.t(key, values)\n }\n return vueI18nGlobal.t(stringKey, values ?? {})\n } else {\n if (vueI18nGlobal.te(stringKey)) {\n return vueI18nGlobal.t(stringKey, values ?? {})\n }\n return fluentCtx.t(key, values)\n }\n }\n\n function bridgedTc(key: string, count: number, values?: Record<string, unknown>): string {\n if (priority === 'fluenti-first') {\n // If fluenti has the key, use ICU plural resolution via t()\n if (fluentCtx.te(key)) {\n return fluentCtx.t(key, { count, ...values })\n }\n // Fall back to vue-i18n's tc (which handles pipe-separated plurals)\n if (vueI18nGlobal.tc) {\n return vueI18nGlobal.tc(key, count, values ?? {})\n }\n // vue-i18n v10+ removed tc, use t with count\n return vueI18nGlobal.t(key, { count, ...values } as any)\n } else {\n // vue-i18n-first: try vue-i18n first, fall back to fluenti if key is absent\n if (vueI18nGlobal.te(key)) {\n if (vueI18nGlobal.tc) {\n return vueI18nGlobal.tc(key, count, values ?? {})\n }\n return vueI18nGlobal.t(key, { count, ...values } as any)\n }\n return fluentCtx.t(key, { count, ...values })\n }\n }\n\n function bridgedTe(key: string, locale?: string): boolean {\n return fluentCtx.te(key, locale) || vueI18nGlobal.te(key, locale)\n }\n\n function bridgedTm(key: string): unknown {\n // Prefer fluenti raw message if available\n if (priority === 'fluenti-first') {\n const raw = fluentCtx.tm(key)\n if (raw !== undefined) return raw\n }\n return vueI18nGlobal.tm(key)\n }\n\n const availableLocales = computed(() => {\n const locales = new Set<string>([\n ...fluentCtx.getLocales(),\n ...vueI18nGlobal.availableLocales,\n ])\n return [...locales].sort()\n })\n\n const context: BridgeContext = {\n t: bridgedT,\n tc: bridgedTc,\n te: bridgedTe,\n tm: bridgedTm,\n d: fluentCtx.d,\n n: fluentCtx.n,\n format: fluentCtx.format,\n locale: fluentCtx.locale,\n setLocale: async (locale: string) => {\n await fluentCtx.setLocale(locale)\n // setLocale already triggers the watcher, but ensure sync for non-reactive paths\n syncLocale('fluenti', locale)\n },\n availableLocales,\n isLoading: fluentCtx.isLoading,\n fluenti: fluentCtx,\n vueI18n: vueI18nGlobal,\n }\n\n return {\n install(app: App) {\n // Install both plugins\n app.use(vueI18n)\n app.use(fluenti)\n\n // Set up locale watchers (must be done after install since refs may be set up during install)\n const unwatchFluenti = watch(fluentCtx.locale, (newLocale) => {\n syncLocale('fluenti', newLocale)\n })\n const unwatchVueI18n = watch(vueI18nGlobal.locale, (newLocale) => {\n syncLocale('vue-i18n', newLocale)\n })\n\n // Clean up watchers when the app is unmounted (prevents SSR memory leaks)\n app.onUnmount(() => {\n unwatchFluenti()\n unwatchVueI18n()\n })\n\n // Override global properties with bridged versions\n app.config.globalProperties['$t'] = bridgedT\n app.config.globalProperties['$te'] = bridgedTe\n app.config.globalProperties['$tc'] = bridgedTc\n\n // Provide bridge context\n app.provide(BRIDGE_KEY, context)\n },\n global: context,\n }\n}\n","import { inject } from 'vue'\nimport { BRIDGE_KEY } from './bridge'\nimport type { BridgeContext } from './types'\n\n/**\n * Unified composable that provides access to the bridge context.\n *\n * Returns a `BridgeContext` with translation methods that check both\n * vue-i18n and fluenti catalogs, locale management that syncs across\n * both libraries, and direct access to each underlying instance.\n *\n * @example\n * ```ts\n * const { t, tc, te, locale, setLocale, fluenti, vueI18n } = useI18n()\n * ```\n */\nexport function useI18n(): BridgeContext {\n const ctx = inject(BRIDGE_KEY)\n if (!ctx) {\n throw new Error(\n '[@fluenti/vue-i18n-compat] useI18n() requires the bridge plugin to be installed. ' +\n 'Call app.use(bridge) where bridge = createFluentBridge({ vueI18n, fluenti }).',\n )\n }\n return ctx\n}\n"],"mappings":";;AAIA,IAAa,IAA0C,OAAO,iBAAiB;A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AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEzE,2CAA2C;AAC3C,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,aAAa,CAA4B,CAAA;AAE/E;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,aAAa,GAAG,YAAY,CA2IvE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"composable.d.ts","sourceRoot":"","sources":["../../../../src/composable.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C;;;;;;;;;;;GAWG;AACH,wBAAgB,OAAO,IAAI,aAAa,CASvC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,YAAY,EACV,aAAa,EACb,aAAa,EACb,YAAY,EACZ,cAAc,EACd,eAAe,EACf,aAAa,GACd,MAAM,SAAS,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAEjE,wEAAwE;AACxE,MAAM,MAAM,cAAc,GAAG,eAAe,GAAG,gBAAgB,CAAA;AAE/D,6CAA6C;AAC7C,MAAM,WAAW,aAAa;IAC5B,gDAAgD;IAChD,OAAO,EAAE,eAAe,CAAA;IACxB,oDAAoD;IACpD,OAAO,EAAE,aAAa,CAAA;IACtB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