{"ast":null,"code":"const formatDistanceLocale = {\n  lessThanXSeconds: {\n    one: \"mwens pase yon segond\",\n    other: \"mwens pase {{count}} segond\"\n  },\n  xSeconds: {\n    one: \"1 segond\",\n    other: \"{{count}} segond\"\n  },\n  halfAMinute: \"30 segond\",\n  lessThanXMinutes: {\n    one: \"mwens pase yon minit\",\n    other: \"mwens pase {{count}} minit\"\n  },\n  xMinutes: {\n    one: \"1 minit\",\n    other: \"{{count}} minit\"\n  },\n  aboutXHours: {\n    one: \"anviwon inè\",\n    other: \"anviwon {{count}} è\"\n  },\n  xHours: {\n    one: \"1 lè\",\n    other: \"{{count}} lè\"\n  },\n  xDays: {\n    one: \"1 jou\",\n    other: \"{{count}} jou\"\n  },\n  aboutXWeeks: {\n    one: \"anviwon 1 semèn\",\n    other: \"anviwon {{count}} semèn\"\n  },\n  xWeeks: {\n    one: \"1 semèn\",\n    other: \"{{count}} semèn\"\n  },\n  aboutXMonths: {\n    one: \"anviwon 1 mwa\",\n    other: \"anviwon {{count}} mwa\"\n  },\n  xMonths: {\n    one: \"1 mwa\",\n    other: \"{{count}} mwa\"\n  },\n  aboutXYears: {\n    one: \"anviwon 1 an\",\n    other: \"anviwon {{count}} an\"\n  },\n  xYears: {\n    one: \"1 an\",\n    other: \"{{count}} an\"\n  },\n  overXYears: {\n    one: \"plis pase 1 an\",\n    other: \"plis pase {{count}} an\"\n  },\n  almostXYears: {\n    one: \"prèske 1 an\",\n    other: \"prèske {{count}} an\"\n  }\n};\nexport const formatDistance = (token, count, options) => {\n  let result;\n  const tokenValue = formatDistanceLocale[token];\n  if (typeof tokenValue === \"string\") {\n    result = tokenValue;\n  } else if (count === 1) {\n    result = tokenValue.one;\n  } else {\n    result = tokenValue.other.replace(\"{{count}}\", String(count));\n  }\n  if (options?.addSuffix) {\n    if (options.comparison && options.comparison > 0) {\n      return \"nan \" + result;\n    } else {\n      return \"sa fè \" + result;\n    }\n  }\n  return result;\n};","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}