karsten-design-system 1.1.58 → 1.1.59

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 (72) hide show
  1. package/dist/node_modules/react/jsx-runtime.js +2 -4
  2. package/dist/node_modules/react/jsx-runtime.js.map +1 -1
  3. package/dist/stories/components/notificationItem.js +1 -1
  4. package/package.json +2 -1
  5. package/dist/_virtual/react-jsx-runtime.development.js +0 -4
  6. package/dist/_virtual/react-jsx-runtime.development.js.map +0 -1
  7. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +0 -8
  8. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js.map +0 -1
  9. package/dist/node_modules/date-fns/_lib/defaultOptions.js +0 -8
  10. package/dist/node_modules/date-fns/_lib/defaultOptions.js.map +0 -1
  11. package/dist/node_modules/date-fns/_lib/format/formatters.js +0 -776
  12. package/dist/node_modules/date-fns/_lib/format/formatters.js.map +0 -1
  13. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -95
  14. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js.map +0 -1
  15. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -67
  16. package/dist/node_modules/date-fns/_lib/format/longFormatters.js.map +0 -1
  17. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -32
  18. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +0 -1
  19. package/dist/node_modules/date-fns/_lib/normalizeDates.js +0 -12
  20. package/dist/node_modules/date-fns/_lib/normalizeDates.js.map +0 -1
  21. package/dist/node_modules/date-fns/_lib/protectedTokens.js +0 -26
  22. package/dist/node_modules/date-fns/_lib/protectedTokens.js.map +0 -1
  23. package/dist/node_modules/date-fns/constants.js +0 -47
  24. package/dist/node_modules/date-fns/constants.js.map +0 -1
  25. package/dist/node_modules/date-fns/constructFrom.js +0 -50
  26. package/dist/node_modules/date-fns/constructFrom.js.map +0 -1
  27. package/dist/node_modules/date-fns/differenceInCalendarDays.js +0 -63
  28. package/dist/node_modules/date-fns/differenceInCalendarDays.js.map +0 -1
  29. package/dist/node_modules/date-fns/format.js +0 -424
  30. package/dist/node_modules/date-fns/format.js.map +0 -1
  31. package/dist/node_modules/date-fns/getDayOfYear.js +0 -35
  32. package/dist/node_modules/date-fns/getDayOfYear.js.map +0 -1
  33. package/dist/node_modules/date-fns/getISOWeek.js +0 -41
  34. package/dist/node_modules/date-fns/getISOWeek.js.map +0 -1
  35. package/dist/node_modules/date-fns/getISOWeekYear.js +0 -53
  36. package/dist/node_modules/date-fns/getISOWeekYear.js.map +0 -1
  37. package/dist/node_modules/date-fns/getWeek.js +0 -55
  38. package/dist/node_modules/date-fns/getWeek.js.map +0 -1
  39. package/dist/node_modules/date-fns/getWeekYear.js +0 -76
  40. package/dist/node_modules/date-fns/getWeekYear.js.map +0 -1
  41. package/dist/node_modules/date-fns/isDate.js +0 -42
  42. package/dist/node_modules/date-fns/isDate.js.map +0 -1
  43. package/dist/node_modules/date-fns/isValid.js +0 -40
  44. package/dist/node_modules/date-fns/isValid.js.map +0 -1
  45. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -104
  46. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +0 -1
  47. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -42
  48. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +0 -1
  49. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -14
  50. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +0 -1
  51. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -190
  52. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js.map +0 -1
  53. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -135
  54. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js.map +0 -1
  55. package/dist/node_modules/date-fns/locale/en-US.js +0 -29
  56. package/dist/node_modules/date-fns/locale/en-US.js.map +0 -1
  57. package/dist/node_modules/date-fns/startOfDay.js +0 -36
  58. package/dist/node_modules/date-fns/startOfDay.js.map +0 -1
  59. package/dist/node_modules/date-fns/startOfISOWeek.js +0 -36
  60. package/dist/node_modules/date-fns/startOfISOWeek.js.map +0 -1
  61. package/dist/node_modules/date-fns/startOfISOWeekYear.js +0 -43
  62. package/dist/node_modules/date-fns/startOfISOWeekYear.js.map +0 -1
  63. package/dist/node_modules/date-fns/startOfWeek.js +0 -54
  64. package/dist/node_modules/date-fns/startOfWeek.js.map +0 -1
  65. package/dist/node_modules/date-fns/startOfWeekYear.js +0 -65
  66. package/dist/node_modules/date-fns/startOfWeekYear.js.map +0 -1
  67. package/dist/node_modules/date-fns/startOfYear.js +0 -37
  68. package/dist/node_modules/date-fns/startOfYear.js.map +0 -1
  69. package/dist/node_modules/date-fns/toDate.js +0 -47
  70. package/dist/node_modules/date-fns/toDate.js.map +0 -1
  71. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -369
  72. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +0 -1
@@ -1,55 +0,0 @@
1
- import { millisecondsInWeek } from './constants.js';
2
- import { startOfWeek } from './startOfWeek.js';
3
- import { startOfWeekYear } from './startOfWeekYear.js';
4
- import { toDate } from './toDate.js';
5
-
6
- /**
7
- * The {@link getWeek} function options.
8
- */
9
-
10
- /**
11
- * @name getWeek
12
- * @category Week Helpers
13
- * @summary Get the local week index of the given date.
14
- *
15
- * @description
16
- * Get the local week index of the given date.
17
- * The exact calculation depends on the values of
18
- * `options.weekStartsOn` (which is the index of the first day of the week)
19
- * and `options.firstWeekContainsDate` (which is the day of January, which is always in
20
- * the first week of the week-numbering year)
21
- *
22
- * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
23
- *
24
- * @param date - The given date
25
- * @param options - An object with options
26
- *
27
- * @returns The week
28
- *
29
- * @example
30
- * // Which week of the local week numbering year is 2 January 2005 with default options?
31
- * const result = getWeek(new Date(2005, 0, 2))
32
- * //=> 2
33
- *
34
- * @example
35
- * // Which week of the local week numbering year is 2 January 2005,
36
- * // if Monday is the first day of the week,
37
- * // and the first week of the year always contains 4 January?
38
- * const result = getWeek(new Date(2005, 0, 2), {
39
- * weekStartsOn: 1,
40
- * firstWeekContainsDate: 4
41
- * })
42
- * //=> 53
43
- */
44
- function getWeek(date, options) {
45
- const _date = toDate(date, options?.in);
46
- const diff = +startOfWeek(_date, options) - +startOfWeekYear(_date, options);
47
-
48
- // Round the number of weeks to the nearest integer because the number of
49
- // milliseconds in a week is not constant (e.g. it's different in the week of
50
- // the daylight saving time clock shift).
51
- return Math.round(diff / millisecondsInWeek) + 1;
52
- }
53
-
54
- export { getWeek as default, getWeek };
55
- //# sourceMappingURL=getWeek.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getWeek.js","sources":["../../../node_modules/date-fns/getWeek.js"],"sourcesContent":["import { millisecondsInWeek } from \"./constants.js\";\nimport { startOfWeek } from \"./startOfWeek.js\";\nimport { startOfWeekYear } from \"./startOfWeekYear.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getWeek} function options.\n */\n\n/**\n * @name getWeek\n * @category Week Helpers\n * @summary Get the local week index of the given date.\n *\n * @description\n * Get the local week index of the given date.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @param date - The given date\n * @param options - An object with options\n *\n * @returns The week\n *\n * @example\n * // Which week of the local week numbering year is 2 January 2005 with default options?\n * const result = getWeek(new Date(2005, 0, 2))\n * //=> 2\n *\n * @example\n * // Which week of the local week numbering year is 2 January 2005,\n * // if Monday is the first day of the week,\n * // and the first week of the year always contains 4 January?\n * const result = getWeek(new Date(2005, 0, 2), {\n * weekStartsOn: 1,\n * firstWeekContainsDate: 4\n * })\n * //=> 53\n */\nexport function getWeek(date, options) {\n const _date = toDate(date, options?.in);\n const diff = +startOfWeek(_date, options) - +startOfWeekYear(_date, options);\n\n // Round the number of weeks to the nearest integer because the number of\n // milliseconds in a week is not constant (e.g. it's different in the week of\n // the daylight saving time clock shift).\n return Math.round(diff / millisecondsInWeek) + 1;\n}\n\n// Fallback for modularized imports:\nexport default getWeek;\n"],"names":[],"mappings":";;;;;AAKA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE;AACvC,EAAE,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC;AACzC,EAAE,MAAM,IAAI,GAAG,CAAC,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC;;AAE9E;AACA;AACA;AACA,EAAE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,kBAAkB,CAAC,GAAG,CAAC;AAClD;;;;","x_google_ignoreList":[0]}
@@ -1,76 +0,0 @@
1
- import { getDefaultOptions } from './_lib/defaultOptions.js';
2
- import { constructFrom } from './constructFrom.js';
3
- import { startOfWeek } from './startOfWeek.js';
4
- import { toDate } from './toDate.js';
5
-
6
- /**
7
- * The {@link getWeekYear} function options.
8
- */
9
-
10
- /**
11
- * @name getWeekYear
12
- * @category Week-Numbering Year Helpers
13
- * @summary Get the local week-numbering year of the given date.
14
- *
15
- * @description
16
- * Get the local week-numbering year of the given date.
17
- * The exact calculation depends on the values of
18
- * `options.weekStartsOn` (which is the index of the first day of the week)
19
- * and `options.firstWeekContainsDate` (which is the day of January, which is always in
20
- * the first week of the week-numbering year)
21
- *
22
- * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
23
- *
24
- * @param date - The given date
25
- * @param options - An object with options.
26
- *
27
- * @returns The local week-numbering year
28
- *
29
- * @example
30
- * // Which week numbering year is 26 December 2004 with the default settings?
31
- * const result = getWeekYear(new Date(2004, 11, 26))
32
- * //=> 2005
33
- *
34
- * @example
35
- * // Which week numbering year is 26 December 2004 if week starts on Saturday?
36
- * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })
37
- * //=> 2004
38
- *
39
- * @example
40
- * // Which week numbering year is 26 December 2004 if the first week contains 4 January?
41
- * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })
42
- * //=> 2004
43
- */
44
- function getWeekYear(date, options) {
45
- const _date = toDate(date, options?.in);
46
- const year = _date.getFullYear();
47
-
48
- const defaultOptions = getDefaultOptions();
49
- const firstWeekContainsDate =
50
- options?.firstWeekContainsDate ??
51
- options?.locale?.options?.firstWeekContainsDate ??
52
- defaultOptions.firstWeekContainsDate ??
53
- defaultOptions.locale?.options?.firstWeekContainsDate ??
54
- 1;
55
-
56
- const firstWeekOfNextYear = constructFrom(options?.in || date, 0);
57
- firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
58
- firstWeekOfNextYear.setHours(0, 0, 0, 0);
59
- const startOfNextYear = startOfWeek(firstWeekOfNextYear, options);
60
-
61
- const firstWeekOfThisYear = constructFrom(options?.in || date, 0);
62
- firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);
63
- firstWeekOfThisYear.setHours(0, 0, 0, 0);
64
- const startOfThisYear = startOfWeek(firstWeekOfThisYear, options);
65
-
66
- if (+_date >= +startOfNextYear) {
67
- return year + 1;
68
- } else if (+_date >= +startOfThisYear) {
69
- return year;
70
- } else {
71
- return year - 1;
72
- }
73
- }
74
-
75
- export { getWeekYear as default, getWeekYear };
76
- //# sourceMappingURL=getWeekYear.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getWeekYear.js","sources":["../../../node_modules/date-fns/getWeekYear.js"],"sourcesContent":["import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { constructFrom } from \"./constructFrom.js\";\nimport { startOfWeek } from \"./startOfWeek.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getWeekYear} function options.\n */\n\n/**\n * @name getWeekYear\n * @category Week-Numbering Year Helpers\n * @summary Get the local week-numbering year of the given date.\n *\n * @description\n * Get the local week-numbering year of the given date.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @param date - The given date\n * @param options - An object with options.\n *\n * @returns The local week-numbering year\n *\n * @example\n * // Which week numbering year is 26 December 2004 with the default settings?\n * const result = getWeekYear(new Date(2004, 11, 26))\n * //=> 2005\n *\n * @example\n * // Which week numbering year is 26 December 2004 if week starts on Saturday?\n * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })\n * //=> 2004\n *\n * @example\n * // Which week numbering year is 26 December 2004 if the first week contains 4 January?\n * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })\n * //=> 2004\n */\nexport function getWeekYear(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n\n const defaultOptions = getDefaultOptions();\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const firstWeekOfNextYear = constructFrom(options?.in || date, 0);\n firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);\n firstWeekOfNextYear.setHours(0, 0, 0, 0);\n const startOfNextYear = startOfWeek(firstWeekOfNextYear, options);\n\n const firstWeekOfThisYear = constructFrom(options?.in || date, 0);\n firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);\n firstWeekOfThisYear.setHours(0, 0, 0, 0);\n const startOfThisYear = startOfWeek(firstWeekOfThisYear, options);\n\n if (+_date >= +startOfNextYear) {\n return year + 1;\n } else if (+_date >= +startOfThisYear) {\n return year;\n } else {\n return year - 1;\n }\n}\n\n// Fallback for modularized imports:\nexport default getWeekYear;\n"],"names":[],"mappings":";;;;;AAKA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE;AAC3C,EAAE,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC;AACzC,EAAE,MAAM,IAAI,GAAG,KAAK,CAAC,WAAW,EAAE;;AAElC,EAAE,MAAM,cAAc,GAAG,iBAAiB,EAAE;AAC5C,EAAE,MAAM,qBAAqB;AAC7B,IAAI,OAAO,EAAE,qBAAqB;AAClC,IAAI,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB;AACnD,IAAI,cAAc,CAAC,qBAAqB;AACxC,IAAI,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,qBAAqB;AACzD,IAAI,CAAC;;AAEL,EAAE,MAAM,mBAAmB,GAAG,aAAa,CAAC,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;AACnE,EAAE,mBAAmB,CAAC,WAAW,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC,EAAE,qBAAqB,CAAC;AACrE,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAC1C,EAAE,MAAM,eAAe,GAAG,WAAW,CAAC,mBAAmB,EAAE,OAAO,CAAC;;AAEnE,EAAE,MAAM,mBAAmB,GAAG,aAAa,CAAC,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;AACnE,EAAE,mBAAmB,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,EAAE,qBAAqB,CAAC;AACjE,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAC1C,EAAE,MAAM,eAAe,GAAG,WAAW,CAAC,mBAAmB,EAAE,OAAO,CAAC;;AAEnE,EAAE,IAAI,CAAC,KAAK,IAAI,CAAC,eAAe,EAAE;AAClC,IAAI,OAAO,IAAI,GAAG,CAAC;AACnB,GAAG,MAAM,IAAI,CAAC,KAAK,IAAI,CAAC,eAAe,EAAE;AACzC,IAAI,OAAO,IAAI;AACf,GAAG,MAAM;AACT,IAAI,OAAO,IAAI,GAAG,CAAC;AACnB;AACA;;;;","x_google_ignoreList":[0]}
@@ -1,42 +0,0 @@
1
- /**
2
- * @name isDate
3
- * @category Common Helpers
4
- * @summary Is the given value a date?
5
- *
6
- * @description
7
- * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
8
- *
9
- * @param value - The value to check
10
- *
11
- * @returns True if the given value is a date
12
- *
13
- * @example
14
- * // For a valid date:
15
- * const result = isDate(new Date())
16
- * //=> true
17
- *
18
- * @example
19
- * // For an invalid date:
20
- * const result = isDate(new Date(NaN))
21
- * //=> true
22
- *
23
- * @example
24
- * // For some value:
25
- * const result = isDate('2014-02-31')
26
- * //=> false
27
- *
28
- * @example
29
- * // For an object:
30
- * const result = isDate({})
31
- * //=> false
32
- */
33
- function isDate(value) {
34
- return (
35
- value instanceof Date ||
36
- (typeof value === "object" &&
37
- Object.prototype.toString.call(value) === "[object Date]")
38
- );
39
- }
40
-
41
- export { isDate as default, isDate };
42
- //# sourceMappingURL=isDate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isDate.js","sources":["../../../node_modules/date-fns/isDate.js"],"sourcesContent":["/**\n * @name isDate\n * @category Common Helpers\n * @summary Is the given value a date?\n *\n * @description\n * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.\n *\n * @param value - The value to check\n *\n * @returns True if the given value is a date\n *\n * @example\n * // For a valid date:\n * const result = isDate(new Date())\n * //=> true\n *\n * @example\n * // For an invalid date:\n * const result = isDate(new Date(NaN))\n * //=> true\n *\n * @example\n * // For some value:\n * const result = isDate('2014-02-31')\n * //=> false\n *\n * @example\n * // For an object:\n * const result = isDate({})\n * //=> false\n */\nexport function isDate(value) {\n return (\n value instanceof Date ||\n (typeof value === \"object\" &&\n Object.prototype.toString.call(value) === \"[object Date]\")\n );\n}\n\n// Fallback for modularized imports:\nexport default isDate;\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,MAAM,CAAC,KAAK,EAAE;AAC9B,EAAE;AACF,IAAI,KAAK,YAAY,IAAI;AACzB,KAAK,OAAO,KAAK,KAAK,QAAQ;AAC9B,MAAM,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,eAAe;AAC/D;AACA;;;;","x_google_ignoreList":[0]}
@@ -1,40 +0,0 @@
1
- import { isDate } from './isDate.js';
2
- import { toDate } from './toDate.js';
3
-
4
- /**
5
- * @name isValid
6
- * @category Common Helpers
7
- * @summary Is the given date valid?
8
- *
9
- * @description
10
- * Returns false if argument is Invalid Date and true otherwise.
11
- * Argument is converted to Date using `toDate`. See [toDate](https://date-fns.org/docs/toDate)
12
- * Invalid Date is a Date, whose time value is NaN.
13
- *
14
- * Time value of Date: http://es5.github.io/#x15.9.1.1
15
- *
16
- * @param date - The date to check
17
- *
18
- * @returns The date is valid
19
- *
20
- * @example
21
- * // For the valid date:
22
- * const result = isValid(new Date(2014, 1, 31))
23
- * //=> true
24
- *
25
- * @example
26
- * // For the value, convertible into a date:
27
- * const result = isValid(1393804800000)
28
- * //=> true
29
- *
30
- * @example
31
- * // For the invalid date:
32
- * const result = isValid(new Date(''))
33
- * //=> false
34
- */
35
- function isValid(date) {
36
- return !((!isDate(date) && typeof date !== "number") || isNaN(+toDate(date)));
37
- }
38
-
39
- export { isValid as default, isValid };
40
- //# sourceMappingURL=isValid.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isValid.js","sources":["../../../node_modules/date-fns/isValid.js"],"sourcesContent":["import { isDate } from \"./isDate.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * @name isValid\n * @category Common Helpers\n * @summary Is the given date valid?\n *\n * @description\n * Returns false if argument is Invalid Date and true otherwise.\n * Argument is converted to Date using `toDate`. See [toDate](https://date-fns.org/docs/toDate)\n * Invalid Date is a Date, whose time value is NaN.\n *\n * Time value of Date: http://es5.github.io/#x15.9.1.1\n *\n * @param date - The date to check\n *\n * @returns The date is valid\n *\n * @example\n * // For the valid date:\n * const result = isValid(new Date(2014, 1, 31))\n * //=> true\n *\n * @example\n * // For the value, convertible into a date:\n * const result = isValid(1393804800000)\n * //=> true\n *\n * @example\n * // For the invalid date:\n * const result = isValid(new Date(''))\n * //=> false\n */\nexport function isValid(date) {\n return !((!isDate(date) && typeof date !== \"number\") || isNaN(+toDate(date)));\n}\n\n// Fallback for modularized imports:\nexport default isValid;\n"],"names":[],"mappings":";;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,OAAO,CAAC,IAAI,EAAE;AAC9B,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,OAAO,IAAI,KAAK,QAAQ,KAAK,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AAC/E;;;;","x_google_ignoreList":[0]}
@@ -1,104 +0,0 @@
1
- const formatDistanceLocale = {
2
- lessThanXSeconds: {
3
- one: "less than a second",
4
- other: "less than {{count}} seconds",
5
- },
6
-
7
- xSeconds: {
8
- one: "1 second",
9
- other: "{{count}} seconds",
10
- },
11
-
12
- halfAMinute: "half a minute",
13
-
14
- lessThanXMinutes: {
15
- one: "less than a minute",
16
- other: "less than {{count}} minutes",
17
- },
18
-
19
- xMinutes: {
20
- one: "1 minute",
21
- other: "{{count}} minutes",
22
- },
23
-
24
- aboutXHours: {
25
- one: "about 1 hour",
26
- other: "about {{count}} hours",
27
- },
28
-
29
- xHours: {
30
- one: "1 hour",
31
- other: "{{count}} hours",
32
- },
33
-
34
- xDays: {
35
- one: "1 day",
36
- other: "{{count}} days",
37
- },
38
-
39
- aboutXWeeks: {
40
- one: "about 1 week",
41
- other: "about {{count}} weeks",
42
- },
43
-
44
- xWeeks: {
45
- one: "1 week",
46
- other: "{{count}} weeks",
47
- },
48
-
49
- aboutXMonths: {
50
- one: "about 1 month",
51
- other: "about {{count}} months",
52
- },
53
-
54
- xMonths: {
55
- one: "1 month",
56
- other: "{{count}} months",
57
- },
58
-
59
- aboutXYears: {
60
- one: "about 1 year",
61
- other: "about {{count}} years",
62
- },
63
-
64
- xYears: {
65
- one: "1 year",
66
- other: "{{count}} years",
67
- },
68
-
69
- overXYears: {
70
- one: "over 1 year",
71
- other: "over {{count}} years",
72
- },
73
-
74
- almostXYears: {
75
- one: "almost 1 year",
76
- other: "almost {{count}} years",
77
- },
78
- };
79
-
80
- const formatDistance = (token, count, options) => {
81
- let result;
82
-
83
- const tokenValue = formatDistanceLocale[token];
84
- if (typeof tokenValue === "string") {
85
- result = tokenValue;
86
- } else if (count === 1) {
87
- result = tokenValue.one;
88
- } else {
89
- result = tokenValue.other.replace("{{count}}", count.toString());
90
- }
91
-
92
- if (options?.addSuffix) {
93
- if (options.comparison && options.comparison > 0) {
94
- return "in " + result;
95
- } else {
96
- return result + " ago";
97
- }
98
- }
99
-
100
- return result;
101
- };
102
-
103
- export { formatDistance };
104
- //# sourceMappingURL=formatDistance.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatDistance.js","sources":["../../../../../../node_modules/date-fns/locale/en-US/_lib/formatDistance.js"],"sourcesContent":["const formatDistanceLocale = {\n lessThanXSeconds: {\n one: \"less than a second\",\n other: \"less than {{count}} seconds\",\n },\n\n xSeconds: {\n one: \"1 second\",\n other: \"{{count}} seconds\",\n },\n\n halfAMinute: \"half a minute\",\n\n lessThanXMinutes: {\n one: \"less than a minute\",\n other: \"less than {{count}} minutes\",\n },\n\n xMinutes: {\n one: \"1 minute\",\n other: \"{{count}} minutes\",\n },\n\n aboutXHours: {\n one: \"about 1 hour\",\n other: \"about {{count}} hours\",\n },\n\n xHours: {\n one: \"1 hour\",\n other: \"{{count}} hours\",\n },\n\n xDays: {\n one: \"1 day\",\n other: \"{{count}} days\",\n },\n\n aboutXWeeks: {\n one: \"about 1 week\",\n other: \"about {{count}} weeks\",\n },\n\n xWeeks: {\n one: \"1 week\",\n other: \"{{count}} weeks\",\n },\n\n aboutXMonths: {\n one: \"about 1 month\",\n other: \"about {{count}} months\",\n },\n\n xMonths: {\n one: \"1 month\",\n other: \"{{count}} months\",\n },\n\n aboutXYears: {\n one: \"about 1 year\",\n other: \"about {{count}} years\",\n },\n\n xYears: {\n one: \"1 year\",\n other: \"{{count}} years\",\n },\n\n overXYears: {\n one: \"over 1 year\",\n other: \"over {{count}} years\",\n },\n\n almostXYears: {\n one: \"almost 1 year\",\n other: \"almost {{count}} years\",\n },\n};\n\nexport const formatDistance = (token, count, options) => {\n let result;\n\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}}\", count.toString());\n }\n\n if (options?.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n return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"EEEE, MMMM do, y",
5
- long: "MMMM do, y",
6
- medium: "MMM d, y",
7
- short: "MM/dd/yyyy",
8
- };
9
-
10
- const timeFormats = {
11
- full: "h:mm:ss a zzzz",
12
- long: "h:mm:ss a z",
13
- medium: "h:mm:ss a",
14
- short: "h:mm a",
15
- };
16
-
17
- const dateTimeFormats = {
18
- full: "{{date}} 'at' {{time}}",
19
- long: "{{date}} 'at' {{time}}",
20
- medium: "{{date}}, {{time}}",
21
- short: "{{date}}, {{time}}",
22
- };
23
-
24
- const formatLong = {
25
- date: buildFormatLongFn({
26
- formats: dateFormats,
27
- defaultWidth: "full",
28
- }),
29
-
30
- time: buildFormatLongFn({
31
- formats: timeFormats,
32
- defaultWidth: "full",
33
- }),
34
-
35
- dateTime: buildFormatLongFn({
36
- formats: dateTimeFormats,
37
- defaultWidth: "full",
38
- }),
39
- };
40
-
41
- export { formatLong };
42
- //# sourceMappingURL=formatLong.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatLong.js","sources":["../../../../../../node_modules/date-fns/locale/en-US/_lib/formatLong.js"],"sourcesContent":["import { buildFormatLongFn } from \"../../_lib/buildFormatLongFn.js\";\n\nconst dateFormats = {\n full: \"EEEE, MMMM do, y\",\n long: \"MMMM do, y\",\n medium: \"MMM d, y\",\n short: \"MM/dd/yyyy\",\n};\n\nconst timeFormats = {\n full: \"h:mm:ss a zzzz\",\n long: \"h:mm:ss a z\",\n medium: \"h:mm:ss a\",\n short: \"h:mm a\",\n};\n\nconst dateTimeFormats = {\n full: \"{{date}} 'at' {{time}}\",\n long: \"{{date}} 'at' {{time}}\",\n medium: \"{{date}}, {{time}}\",\n short: \"{{date}}, {{time}}\",\n};\n\nexport const formatLong = {\n date: buildFormatLongFn({\n formats: dateFormats,\n defaultWidth: \"full\",\n }),\n\n time: buildFormatLongFn({\n formats: timeFormats,\n defaultWidth: \"full\",\n }),\n\n dateTime: buildFormatLongFn({\n formats: dateTimeFormats,\n defaultWidth: \"full\",\n }),\n};\n"],"names":[],"mappings":";;AAEA,MAAM,WAAW,GAAG;AACpB,EAAE,IAAI,EAAE,kBAAkB;AAC1B,EAAE,IAAI,EAAE,YAAY;AACpB,EAAE,MAAM,EAAE,UAAU;AACpB,EAAE,KAAK,EAAE,YAAY;AACrB,CAAC;;AAED,MAAM,WAAW,GAAG;AACpB,EAAE,IAAI,EAAE,gBAAgB;AACxB,EAAE,IAAI,EAAE,aAAa;AACrB,EAAE,MAAM,EAAE,WAAW;AACrB,EAAE,KAAK,EAAE,QAAQ;AACjB,CAAC;;AAED,MAAM,eAAe,GAAG;AACxB,EAAE,IAAI,EAAE,wBAAwB;AAChC,EAAE,IAAI,EAAE,wBAAwB;AAChC,EAAE,MAAM,EAAE,oBAAoB;AAC9B,EAAE,KAAK,EAAE,oBAAoB;AAC7B,CAAC;;AAEW,MAAC,UAAU,GAAG;AAC1B,EAAE,IAAI,EAAE,iBAAiB,CAAC;AAC1B,IAAI,OAAO,EAAE,WAAW;AACxB,IAAI,YAAY,EAAE,MAAM;AACxB,GAAG,CAAC;;AAEJ,EAAE,IAAI,EAAE,iBAAiB,CAAC;AAC1B,IAAI,OAAO,EAAE,WAAW;AACxB,IAAI,YAAY,EAAE,MAAM;AACxB,GAAG,CAAC;;AAEJ,EAAE,QAAQ,EAAE,iBAAiB,CAAC;AAC9B,IAAI,OAAO,EAAE,eAAe;AAC5B,IAAI,YAAY,EAAE,MAAM;AACxB,GAAG,CAAC;AACJ;;;;","x_google_ignoreList":[0]}
@@ -1,14 +0,0 @@
1
- const formatRelativeLocale = {
2
- lastWeek: "'last' eeee 'at' p",
3
- yesterday: "'yesterday at' p",
4
- today: "'today at' p",
5
- tomorrow: "'tomorrow at' p",
6
- nextWeek: "eeee 'at' p",
7
- other: "P",
8
- };
9
-
10
- const formatRelative = (token, _date, _baseDate, _options) =>
11
- formatRelativeLocale[token];
12
-
13
- export { formatRelative };
14
- //# sourceMappingURL=formatRelative.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatRelative.js","sources":["../../../../../../node_modules/date-fns/locale/en-US/_lib/formatRelative.js"],"sourcesContent":["const formatRelativeLocale = {\n lastWeek: \"'last' eeee 'at' p\",\n yesterday: \"'yesterday at' p\",\n today: \"'today at' p\",\n tomorrow: \"'tomorrow at' p\",\n nextWeek: \"eeee 'at' p\",\n other: \"P\",\n};\n\nexport const formatRelative = (token, _date, _baseDate, _options) =>\n formatRelativeLocale[token];\n"],"names":[],"mappings":"AAAA,MAAM,oBAAoB,GAAG;AAC7B,EAAE,QAAQ,EAAE,oBAAoB;AAChC,EAAE,SAAS,EAAE,kBAAkB;AAC/B,EAAE,KAAK,EAAE,cAAc;AACvB,EAAE,QAAQ,EAAE,iBAAiB;AAC7B,EAAE,QAAQ,EAAE,aAAa;AACzB,EAAE,KAAK,EAAE,GAAG;AACZ,CAAC;;AAEW,MAAC,cAAc,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ;AAChE,EAAE,oBAAoB,CAAC,KAAK;;;;","x_google_ignoreList":[0]}
@@ -1,190 +0,0 @@
1
- import { buildLocalizeFn } from '../../_lib/buildLocalizeFn.js';
2
-
3
- const eraValues = {
4
- narrow: ["B", "A"],
5
- abbreviated: ["BC", "AD"],
6
- wide: ["Before Christ", "Anno Domini"],
7
- };
8
-
9
- const quarterValues = {
10
- narrow: ["1", "2", "3", "4"],
11
- abbreviated: ["Q1", "Q2", "Q3", "Q4"],
12
- wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"],
13
- };
14
-
15
- // Note: in English, the names of days of the week and months are capitalized.
16
- // If you are making a new locale based on this one, check if the same is true for the language you're working on.
17
- // Generally, formatted dates should look like they are in the middle of a sentence,
18
- // e.g. in Spanish language the weekdays and months should be in the lowercase.
19
- const monthValues = {
20
- narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
21
- abbreviated: [
22
- "Jan",
23
- "Feb",
24
- "Mar",
25
- "Apr",
26
- "May",
27
- "Jun",
28
- "Jul",
29
- "Aug",
30
- "Sep",
31
- "Oct",
32
- "Nov",
33
- "Dec",
34
- ],
35
-
36
- wide: [
37
- "January",
38
- "February",
39
- "March",
40
- "April",
41
- "May",
42
- "June",
43
- "July",
44
- "August",
45
- "September",
46
- "October",
47
- "November",
48
- "December",
49
- ],
50
- };
51
-
52
- const dayValues = {
53
- narrow: ["S", "M", "T", "W", "T", "F", "S"],
54
- short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
55
- abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
56
- wide: [
57
- "Sunday",
58
- "Monday",
59
- "Tuesday",
60
- "Wednesday",
61
- "Thursday",
62
- "Friday",
63
- "Saturday",
64
- ],
65
- };
66
-
67
- const dayPeriodValues = {
68
- narrow: {
69
- am: "a",
70
- pm: "p",
71
- midnight: "mi",
72
- noon: "n",
73
- morning: "morning",
74
- afternoon: "afternoon",
75
- evening: "evening",
76
- night: "night",
77
- },
78
- abbreviated: {
79
- am: "AM",
80
- pm: "PM",
81
- midnight: "midnight",
82
- noon: "noon",
83
- morning: "morning",
84
- afternoon: "afternoon",
85
- evening: "evening",
86
- night: "night",
87
- },
88
- wide: {
89
- am: "a.m.",
90
- pm: "p.m.",
91
- midnight: "midnight",
92
- noon: "noon",
93
- morning: "morning",
94
- afternoon: "afternoon",
95
- evening: "evening",
96
- night: "night",
97
- },
98
- };
99
-
100
- const formattingDayPeriodValues = {
101
- narrow: {
102
- am: "a",
103
- pm: "p",
104
- midnight: "mi",
105
- noon: "n",
106
- morning: "in the morning",
107
- afternoon: "in the afternoon",
108
- evening: "in the evening",
109
- night: "at night",
110
- },
111
- abbreviated: {
112
- am: "AM",
113
- pm: "PM",
114
- midnight: "midnight",
115
- noon: "noon",
116
- morning: "in the morning",
117
- afternoon: "in the afternoon",
118
- evening: "in the evening",
119
- night: "at night",
120
- },
121
- wide: {
122
- am: "a.m.",
123
- pm: "p.m.",
124
- midnight: "midnight",
125
- noon: "noon",
126
- morning: "in the morning",
127
- afternoon: "in the afternoon",
128
- evening: "in the evening",
129
- night: "at night",
130
- },
131
- };
132
-
133
- const ordinalNumber = (dirtyNumber, _options) => {
134
- const number = Number(dirtyNumber);
135
-
136
- // If ordinal numbers depend on context, for example,
137
- // if they are different for different grammatical genders,
138
- // use `options.unit`.
139
- //
140
- // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
141
- // 'day', 'hour', 'minute', 'second'.
142
-
143
- const rem100 = number % 100;
144
- if (rem100 > 20 || rem100 < 10) {
145
- switch (rem100 % 10) {
146
- case 1:
147
- return number + "st";
148
- case 2:
149
- return number + "nd";
150
- case 3:
151
- return number + "rd";
152
- }
153
- }
154
- return number + "th";
155
- };
156
-
157
- const localize = {
158
- ordinalNumber,
159
-
160
- era: buildLocalizeFn({
161
- values: eraValues,
162
- defaultWidth: "wide",
163
- }),
164
-
165
- quarter: buildLocalizeFn({
166
- values: quarterValues,
167
- defaultWidth: "wide",
168
- argumentCallback: (quarter) => quarter - 1,
169
- }),
170
-
171
- month: buildLocalizeFn({
172
- values: monthValues,
173
- defaultWidth: "wide",
174
- }),
175
-
176
- day: buildLocalizeFn({
177
- values: dayValues,
178
- defaultWidth: "wide",
179
- }),
180
-
181
- dayPeriod: buildLocalizeFn({
182
- values: dayPeriodValues,
183
- defaultWidth: "wide",
184
- formattingValues: formattingDayPeriodValues,
185
- defaultFormattingWidth: "wide",
186
- }),
187
- };
188
-
189
- export { localize };
190
- //# sourceMappingURL=localize.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"localize.js","sources":["../../../../../../node_modules/date-fns/locale/en-US/_lib/localize.js"],"sourcesContent":["import { buildLocalizeFn } from \"../../_lib/buildLocalizeFn.js\";\n\nconst eraValues = {\n narrow: [\"B\", \"A\"],\n abbreviated: [\"BC\", \"AD\"],\n wide: [\"Before Christ\", \"Anno Domini\"],\n};\n\nconst quarterValues = {\n narrow: [\"1\", \"2\", \"3\", \"4\"],\n abbreviated: [\"Q1\", \"Q2\", \"Q3\", \"Q4\"],\n wide: [\"1st quarter\", \"2nd quarter\", \"3rd quarter\", \"4th quarter\"],\n};\n\n// Note: in English, the names of days of the week and months are capitalized.\n// If you are making a new locale based on this one, check if the same is true for the language you're working on.\n// Generally, formatted dates should look like they are in the middle of a sentence,\n// e.g. in Spanish language the weekdays and months should be in the lowercase.\nconst monthValues = {\n narrow: [\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"],\n abbreviated: [\n \"Jan\",\n \"Feb\",\n \"Mar\",\n \"Apr\",\n \"May\",\n \"Jun\",\n \"Jul\",\n \"Aug\",\n \"Sep\",\n \"Oct\",\n \"Nov\",\n \"Dec\",\n ],\n\n wide: [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n ],\n};\n\nconst dayValues = {\n narrow: [\"S\", \"M\", \"T\", \"W\", \"T\", \"F\", \"S\"],\n short: [\"Su\", \"Mo\", \"Tu\", \"We\", \"Th\", \"Fr\", \"Sa\"],\n abbreviated: [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"],\n wide: [\n \"Sunday\",\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\",\n \"Thursday\",\n \"Friday\",\n \"Saturday\",\n ],\n};\n\nconst dayPeriodValues = {\n narrow: {\n am: \"a\",\n pm: \"p\",\n midnight: \"mi\",\n noon: \"n\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n },\n abbreviated: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n },\n wide: {\n am: \"a.m.\",\n pm: \"p.m.\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n },\n};\n\nconst formattingDayPeriodValues = {\n narrow: {\n am: \"a\",\n pm: \"p\",\n midnight: \"mi\",\n noon: \"n\",\n morning: \"in the morning\",\n afternoon: \"in the afternoon\",\n evening: \"in the evening\",\n night: \"at night\",\n },\n abbreviated: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"in the morning\",\n afternoon: \"in the afternoon\",\n evening: \"in the evening\",\n night: \"at night\",\n },\n wide: {\n am: \"a.m.\",\n pm: \"p.m.\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"in the morning\",\n afternoon: \"in the afternoon\",\n evening: \"in the evening\",\n night: \"at night\",\n },\n};\n\nconst ordinalNumber = (dirtyNumber, _options) => {\n const number = Number(dirtyNumber);\n\n // If ordinal numbers depend on context, for example,\n // if they are different for different grammatical genders,\n // use `options.unit`.\n //\n // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',\n // 'day', 'hour', 'minute', 'second'.\n\n const rem100 = number % 100;\n if (rem100 > 20 || rem100 < 10) {\n switch (rem100 % 10) {\n case 1:\n return number + \"st\";\n case 2:\n return number + \"nd\";\n case 3:\n return number + \"rd\";\n }\n }\n return number + \"th\";\n};\n\nexport const localize = {\n ordinalNumber,\n\n era: buildLocalizeFn({\n values: eraValues,\n defaultWidth: \"wide\",\n }),\n\n quarter: buildLocalizeFn({\n values: quarterValues,\n defaultWidth: \"wide\",\n argumentCallback: (quarter) => quarter - 1,\n }),\n\n month: buildLocalizeFn({\n values: monthValues,\n defaultWidth: \"wide\",\n }),\n\n day: buildLocalizeFn({\n values: dayValues,\n defaultWidth: \"wide\",\n }),\n\n dayPeriod: buildLocalizeFn({\n values: dayPeriodValues,\n defaultWidth: \"wide\",\n formattingValues: formattingDayPeriodValues,\n defaultFormattingWidth: \"wide\",\n }),\n};\n"],"names":[],"mappings":";;AAEA,MAAM,SAAS,GAAG;AAClB,EAAE,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