esday 0.6.3 → 1.0.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 (214) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/chunks/{xt8C2lbv.js → CNIy0PdR.js} +3 -5
  3. package/chunks/{BkjWOpMU.js → CeKusvtV.js} +10 -19
  4. package/chunks/{CXWzCl3n.js → D2Xh96oz.js} +10 -21
  5. package/chunks/{AyQQ6US-.js → DMdr1ZL1.js} +3 -5
  6. package/chunks/{CdvTtmWL.js → DXFoLbHM.js} +1 -2
  7. package/chunks/{C5qDMHT5.d.ts → Dc43cziu.d.ts} +1 -1
  8. package/chunks/{CODi8AFH.d.ts → DuP2qVZn.d.ts} +6 -1
  9. package/chunks/{Shk32pTP.js → i3oEJgL3.js} +1 -2
  10. package/index.d.ts +3 -3
  11. package/index.js +2 -3
  12. package/locales/af.js +1 -2
  13. package/locales/am.js +1 -2
  14. package/locales/ar-dz.js +1 -3
  15. package/locales/ar-iq.js +1 -3
  16. package/locales/ar-kw.js +1 -3
  17. package/locales/ar-ly.js +1 -3
  18. package/locales/ar-ma.js +1 -3
  19. package/locales/ar-sa.js +1 -3
  20. package/locales/ar-tn.js +1 -3
  21. package/locales/ar.js +1 -2
  22. package/locales/az.js +1 -2
  23. package/locales/be.js +1 -2
  24. package/locales/bg.js +1 -2
  25. package/locales/bi.js +1 -2
  26. package/locales/bm.js +1 -2
  27. package/locales/bn-bd.js +1 -3
  28. package/locales/bn.js +1 -2
  29. package/locales/bo.js +1 -2
  30. package/locales/br.js +1 -2
  31. package/locales/bs.js +1 -2
  32. package/locales/ca.js +1 -2
  33. package/locales/cs.js +1 -2
  34. package/locales/cv.js +1 -2
  35. package/locales/cy.js +1 -2
  36. package/locales/da.js +1 -2
  37. package/locales/de-at.js +1 -3
  38. package/locales/de-ch.js +1 -3
  39. package/locales/de.js +1 -2
  40. package/locales/dv.js +1 -2
  41. package/locales/el.js +1 -2
  42. package/locales/en-au.js +1 -3
  43. package/locales/en-ca.js +1 -3
  44. package/locales/en-gb.js +1 -3
  45. package/locales/en-ie.js +1 -3
  46. package/locales/en-il.js +1 -3
  47. package/locales/en-in.js +1 -3
  48. package/locales/en-nz.js +1 -3
  49. package/locales/en-sg.js +1 -3
  50. package/locales/en-tt.js +1 -3
  51. package/locales/en-us.js +1 -3
  52. package/locales/en.js +1 -2
  53. package/locales/eo.js +1 -2
  54. package/locales/es-do.js +1 -3
  55. package/locales/es-mx.js +1 -3
  56. package/locales/es-pr.js +1 -3
  57. package/locales/es-us.js +1 -3
  58. package/locales/es.js +1 -2
  59. package/locales/et.js +1 -2
  60. package/locales/eu.js +1 -2
  61. package/locales/fa.js +1 -2
  62. package/locales/fi.js +1 -2
  63. package/locales/fil.js +1 -2
  64. package/locales/fo.js +1 -2
  65. package/locales/fr-ca.js +1 -3
  66. package/locales/fr-ch.js +1 -3
  67. package/locales/fr.js +1 -2
  68. package/locales/fy.js +1 -2
  69. package/locales/ga.js +1 -2
  70. package/locales/gd.js +1 -2
  71. package/locales/gl.js +1 -2
  72. package/locales/gom-deva.js +1 -2
  73. package/locales/gom-latn.js +1 -2
  74. package/locales/gu.js +1 -2
  75. package/locales/he.js +1 -2
  76. package/locales/hi.js +1 -2
  77. package/locales/hr.js +1 -2
  78. package/locales/ht.js +1 -2
  79. package/locales/hu.js +1 -2
  80. package/locales/hy-am.js +1 -2
  81. package/locales/id.js +1 -2
  82. package/locales/is.js +1 -2
  83. package/locales/it-ch.js +1 -3
  84. package/locales/it.js +1 -2
  85. package/locales/ja.js +1 -2
  86. package/locales/jv.js +1 -2
  87. package/locales/ka.js +1 -2
  88. package/locales/kk.js +1 -2
  89. package/locales/km.js +1 -2
  90. package/locales/kn.js +1 -2
  91. package/locales/ko.js +1 -2
  92. package/locales/ku.js +1 -2
  93. package/locales/ky.js +1 -2
  94. package/locales/lb.js +1 -2
  95. package/locales/lo.js +1 -2
  96. package/locales/lt.js +1 -2
  97. package/locales/lv.js +1 -2
  98. package/locales/me.js +1 -2
  99. package/locales/mi.js +1 -2
  100. package/locales/mk.js +1 -2
  101. package/locales/ml.js +1 -2
  102. package/locales/mn.js +1 -2
  103. package/locales/mr.js +1 -2
  104. package/locales/ms-my.js +1 -3
  105. package/locales/ms.js +1 -2
  106. package/locales/mt.js +1 -2
  107. package/locales/my.js +1 -2
  108. package/locales/nb.js +1 -2
  109. package/locales/ne.js +1 -2
  110. package/locales/nl-be.js +1 -3
  111. package/locales/nl.js +1 -2
  112. package/locales/nn.js +1 -2
  113. package/locales/oc-lnc.js +1 -2
  114. package/locales/pa-in.js +1 -2
  115. package/locales/pl.js +1 -2
  116. package/locales/pt-br.js +1 -3
  117. package/locales/pt.js +1 -2
  118. package/locales/rn.js +1 -2
  119. package/locales/ro.js +1 -2
  120. package/locales/ru.js +1 -2
  121. package/locales/rw.js +1 -2
  122. package/locales/sd.js +1 -2
  123. package/locales/se.js +1 -2
  124. package/locales/si.js +1 -2
  125. package/locales/sk.js +1 -2
  126. package/locales/sl.js +1 -2
  127. package/locales/sq.js +1 -2
  128. package/locales/sr-cyrl.js +1 -3
  129. package/locales/sr.js +1 -2
  130. package/locales/ss.js +1 -2
  131. package/locales/sv-fi.js +1 -3
  132. package/locales/sv.js +1 -2
  133. package/locales/sw.js +1 -2
  134. package/locales/ta.js +1 -2
  135. package/locales/te.js +1 -2
  136. package/locales/tet.js +1 -2
  137. package/locales/tg.js +1 -2
  138. package/locales/th.js +1 -2
  139. package/locales/tk.js +1 -2
  140. package/locales/tl-ph.js +1 -2
  141. package/locales/tlh.js +1 -2
  142. package/locales/tr.js +1 -2
  143. package/locales/tzl.js +1 -2
  144. package/locales/tzm-latn.js +1 -3
  145. package/locales/tzm.js +1 -2
  146. package/locales/ug-cn.js +1 -2
  147. package/locales/uk.js +1 -2
  148. package/locales/ur.js +1 -2
  149. package/locales/uz-latn.js +1 -3
  150. package/locales/uz.js +1 -2
  151. package/locales/vi.js +1 -2
  152. package/locales/x-pseudo.js +1 -2
  153. package/locales/yo.js +1 -2
  154. package/locales/zh-cn.js +1 -3
  155. package/locales/zh-hk.js +1 -3
  156. package/locales/zh-mo.js +1 -3
  157. package/locales/zh-tw.js +1 -3
  158. package/locales/zh.js +1 -2
  159. package/package.json +20 -20
  160. package/plugins/advancedFormat/index.d.ts +1 -1
  161. package/plugins/advancedFormat/index.js +2 -4
  162. package/plugins/advancedParse/index.d.ts +1 -1
  163. package/plugins/advancedParse/index.js +3 -5
  164. package/plugins/calendar/index.d.ts +1 -1
  165. package/plugins/calendar/index.js +1 -2
  166. package/plugins/dayOfYear/index.d.ts +1 -1
  167. package/plugins/dayOfYear/index.js +1 -2
  168. package/plugins/duration/index.d.ts +1 -1
  169. package/plugins/duration/index.js +9 -14
  170. package/plugins/isBetween/index.d.ts +1 -1
  171. package/plugins/isBetween/index.js +2 -4
  172. package/plugins/isLeapYear/index.d.ts +1 -1
  173. package/plugins/isLeapYear/index.js +1 -2
  174. package/plugins/isSameOrAfter/index.d.ts +1 -1
  175. package/plugins/isSameOrAfter/index.js +1 -2
  176. package/plugins/isSameOrBefore/index.d.ts +1 -1
  177. package/plugins/isSameOrBefore/index.js +1 -2
  178. package/plugins/isToday/index.d.ts +1 -1
  179. package/plugins/isToday/index.js +2 -4
  180. package/plugins/isTomorrow/index.d.ts +1 -1
  181. package/plugins/isTomorrow/index.js +2 -4
  182. package/plugins/isYesterday/index.d.ts +1 -1
  183. package/plugins/isYesterday/index.js +2 -4
  184. package/plugins/isoWeek/index.d.ts +1 -1
  185. package/plugins/isoWeek/index.js +5 -7
  186. package/plugins/locale/index.d.ts +4 -1
  187. package/plugins/locale/index.js +6 -8
  188. package/plugins/localeData/index.d.ts +1 -1
  189. package/plugins/localeData/index.js +2 -4
  190. package/plugins/localizedFormat/index.d.ts +1 -1
  191. package/plugins/localizedFormat/index.js +3 -5
  192. package/plugins/localizedParse/index.d.ts +1 -1
  193. package/plugins/localizedParse/index.js +2 -4
  194. package/plugins/minMax/index.d.ts +1 -1
  195. package/plugins/minMax/index.js +2 -4
  196. package/plugins/objectSupport/index.d.ts +1 -1
  197. package/plugins/objectSupport/index.js +5 -7
  198. package/plugins/pluralGetSet/index.d.ts +1 -1
  199. package/plugins/pluralGetSet/index.js +1 -2
  200. package/plugins/quarterOfYear/index.d.ts +1 -1
  201. package/plugins/quarterOfYear/index.js +4 -6
  202. package/plugins/relativeTime/index.d.ts +1 -1
  203. package/plugins/relativeTime/index.js +3 -5
  204. package/plugins/timezone/index.d.ts +1 -1
  205. package/plugins/timezone/index.js +13 -15
  206. package/plugins/toArray/index.d.ts +1 -1
  207. package/plugins/toArray/index.js +1 -2
  208. package/plugins/toObject/index.d.ts +1 -1
  209. package/plugins/toObject/index.js +1 -2
  210. package/plugins/utc/index.d.ts +6 -1
  211. package/plugins/utc/index.js +10 -12
  212. package/plugins/week/index.d.ts +1 -1
  213. package/plugins/week/index.js +6 -8
  214. package/chunks/{v_QBn7Xm.js → DuRKUq5K.js} +1 -2
@@ -1,5 +1,4 @@
1
- import { n as padStart, r as padZoneStr } from "../../chunks/CdvTtmWL.js";
2
-
1
+ import { n as padStart, r as padZoneStr } from "../../chunks/DXFoLbHM.js";
3
2
  //#region src/plugins/advancedFormat/index.ts
4
3
  const advancedFormatPlugin = (_, _dayClass, dayFactory) => {
5
4
  dayFactory.addFormatTokenDefinitions({
@@ -13,6 +12,5 @@ const advancedFormatPlugin = (_, _dayClass, dayFactory) => {
13
12
  kk: (sourceDate) => padStart(sourceDate.hour() !== 0 ? sourceDate.hour() : 24, 2, "0")
14
13
  });
15
14
  };
16
-
17
15
  //#endregion
18
- export { advancedFormatPlugin as default };
16
+ export { advancedFormatPlugin as default };
@@ -1,4 +1,4 @@
1
- import { o as EsDayPlugin } from "../../chunks/CODi8AFH.js";
1
+ import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
2
 
3
3
  //#region src/plugins/advancedParse/index.d.ts
4
4
  declare const advancedParsePlugin: EsDayPlugin<{}>;
@@ -1,6 +1,5 @@
1
- import { p as constants_default } from "../../chunks/BkjWOpMU.js";
2
- import { a as isUndefined, i as isString, o as isValidDate, t as isArray } from "../../chunks/v_QBn7Xm.js";
3
-
1
+ import { f as constants_default } from "../../chunks/CeKusvtV.js";
2
+ import { a as isUndefined, i as isString, o as isValidDate, t as isArray } from "../../chunks/DuRKUq5K.js";
4
3
  //#region src/plugins/advancedParse/index.ts
5
4
  /**
6
5
  * Function to create a Date object from its date components
@@ -402,6 +401,5 @@ const advancedParsePlugin = (_, dayClass, dayFactory) => {
402
401
  };
403
402
  dateFromDateComponents = proto["dateFromDateComponents"];
404
403
  };
405
-
406
404
  //#endregion
407
- export { advancedParsePlugin as default };
405
+ export { advancedParsePlugin as default };
@@ -1,4 +1,4 @@
1
- import { o as EsDayPlugin } from "../../chunks/CODi8AFH.js";
1
+ import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
2
  import { CalendarPartial } from "../locale/index.js";
3
3
 
4
4
  //#region src/plugins/calendar/index.d.ts
@@ -27,6 +27,5 @@ const calendarPlugin = (_, dayClass, dayFactory) => {
27
27
  return this.format(currentFormat);
28
28
  };
29
29
  };
30
-
31
30
  //#endregion
32
- export { calendarPlugin as default };
31
+ export { calendarPlugin as default };
@@ -1,4 +1,4 @@
1
- import { o as EsDayPlugin } from "../../chunks/CODi8AFH.js";
1
+ import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
2
 
3
3
  //#region src/plugins/dayOfYear/index.d.ts
4
4
  declare module 'esday' {
@@ -6,6 +6,5 @@ const dayOfYearPlugin = (_, dayClass, dayFactory) => {
6
6
  return input === void 0 ? dayOfYear : this.add(input - dayOfYear, "day");
7
7
  };
8
8
  };
9
-
10
9
  //#endregion
11
- export { dayOfYearPlugin as default };
10
+ export { dayOfYearPlugin as default };
@@ -1,4 +1,4 @@
1
- import { E as UnitIsoWeeks, I as UnitTypePlurals, S as UnitDates, o as EsDayPlugin } from "../../chunks/CODi8AFH.js";
1
+ import { C as UnitDates, D as UnitIsoWeeks, L as UnitTypePlurals, s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
2
  import { Locale } from "../locale/index.js";
3
3
  import { ThresholdRelativeTime } from "../relativeTime/index.js";
4
4
 
@@ -1,26 +1,22 @@
1
- import { i as INVALID_DATE_STRING } from "../../chunks/BkjWOpMU.js";
2
- import { a as isUndefined, r as isObject } from "../../chunks/v_QBn7Xm.js";
3
- import { n as normalizeUnitWithPlurals, r as normalizeUnitWithPluralsToPlural } from "../../chunks/AyQQ6US-.js";
4
- import { n as padStart } from "../../chunks/CdvTtmWL.js";
5
- import { i as _checkPrivateRedeclaration, r as _assertClassBrand, t as esday } from "../../chunks/CXWzCl3n.js";
6
-
7
- //#region \0@oxc-project+runtime@0.112.0/helpers/classPrivateFieldInitSpec.js
1
+ import { r as INVALID_DATE_STRING } from "../../chunks/CeKusvtV.js";
2
+ import { a as isUndefined, r as isObject } from "../../chunks/DuRKUq5K.js";
3
+ import { n as normalizeUnitWithPlurals, r as normalizeUnitWithPluralsToPlural } from "../../chunks/DMdr1ZL1.js";
4
+ import { n as padStart } from "../../chunks/DXFoLbHM.js";
5
+ import { i as _checkPrivateRedeclaration, r as _assertClassBrand, t as esday } from "../../chunks/D2Xh96oz.js";
6
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/classPrivateFieldInitSpec.js
8
7
  function _classPrivateFieldInitSpec(e, t, a) {
9
8
  _checkPrivateRedeclaration(e, t), t.set(e, a);
10
9
  }
11
-
12
10
  //#endregion
13
- //#region \0@oxc-project+runtime@0.112.0/helpers/classPrivateFieldSet2.js
11
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/classPrivateFieldSet2.js
14
12
  function _classPrivateFieldSet2(s, a, r) {
15
13
  return s.set(_assertClassBrand(s, a), r), r;
16
14
  }
17
-
18
15
  //#endregion
19
- //#region \0@oxc-project+runtime@0.112.0/helpers/classPrivateFieldGet2.js
16
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/classPrivateFieldGet2.js
20
17
  function _classPrivateFieldGet2(s, a) {
21
18
  return s.get(_assertClassBrand(s, a));
22
19
  }
23
-
24
20
  //#endregion
25
21
  //#region src/plugins/duration/index.ts
26
22
  /** = 0:
@@ -472,6 +468,5 @@ const durationPlugin = (_, _dayClass, dayFactory) => {
472
468
  return d instanceof DurationImpl;
473
469
  };
474
470
  };
475
-
476
471
  //#endregion
477
- export { durationPlugin as default };
472
+ export { durationPlugin as default };
@@ -1,4 +1,4 @@
1
- import { M as UnitType, o as EsDayPlugin, r as DateType } from "../../chunks/CODi8AFH.js";
1
+ import { N as UnitType, i as DateType, s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
2
 
3
3
  //#region src/plugins/isBetween/index.d.ts
4
4
  declare module 'esday' {
@@ -1,5 +1,4 @@
1
- import { p as constants_default } from "../../chunks/BkjWOpMU.js";
2
-
1
+ import { f as constants_default } from "../../chunks/CeKusvtV.js";
3
2
  //#region src/plugins/isBetween/index.ts
4
3
  const isBetweenPlugin = (_, dayClass) => {
5
4
  dayClass.prototype.isBetween = function(from, to, unit = constants_default.MS, inclusivity = "()") {
@@ -10,6 +9,5 @@ const isBetweenPlugin = (_, dayClass) => {
10
9
  return isAfterFrom && isBeforeTo;
11
10
  };
12
11
  };
13
-
14
12
  //#endregion
15
- export { isBetweenPlugin as default };
13
+ export { isBetweenPlugin as default };
@@ -1,4 +1,4 @@
1
- import { o as EsDayPlugin } from "../../chunks/CODi8AFH.js";
1
+ import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
2
 
3
3
  //#region src/plugins/isLeapYear/index.d.ts
4
4
  declare module 'esday' {
@@ -5,6 +5,5 @@ const isLeapYearPlugin = (_, dayClass) => {
5
5
  return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
6
6
  };
7
7
  };
8
-
9
8
  //#endregion
10
- export { isLeapYearPlugin as default };
9
+ export { isLeapYearPlugin as default };
@@ -1,4 +1,4 @@
1
- import { M as UnitType, o as EsDayPlugin, r as DateType } from "../../chunks/CODi8AFH.js";
1
+ import { N as UnitType, i as DateType, s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
2
 
3
3
  //#region src/plugins/isSameOrAfter/index.d.ts
4
4
  declare module 'esday' {
@@ -4,6 +4,5 @@ const isSameOrAfterPlugin = (_, dayClass) => {
4
4
  return this.isSame(that, unit) || this.isAfter(that, unit);
5
5
  };
6
6
  };
7
-
8
7
  //#endregion
9
- export { isSameOrAfterPlugin as default };
8
+ export { isSameOrAfterPlugin as default };
@@ -1,4 +1,4 @@
1
- import { M as UnitType, o as EsDayPlugin, r as DateType } from "../../chunks/CODi8AFH.js";
1
+ import { N as UnitType, i as DateType, s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
2
 
3
3
  //#region src/plugins/isSameOrBefore/index.d.ts
4
4
  declare module 'esday' {
@@ -4,6 +4,5 @@ const isSameOrBeforePlugin = (_, dayClass) => {
4
4
  return this.isSame(that, unit) || this.isBefore(that, unit);
5
5
  };
6
6
  };
7
-
8
7
  //#endregion
9
- export { isSameOrBeforePlugin as default };
8
+ export { isSameOrBeforePlugin as default };
@@ -1,4 +1,4 @@
1
- import { o as EsDayPlugin } from "../../chunks/CODi8AFH.js";
1
+ import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
2
 
3
3
  //#region src/plugins/isToday/index.d.ts
4
4
  declare module 'esday' {
@@ -1,11 +1,9 @@
1
- import { p as constants_default } from "../../chunks/BkjWOpMU.js";
2
-
1
+ import { f as constants_default } from "../../chunks/CeKusvtV.js";
3
2
  //#region src/plugins/isToday/index.ts
4
3
  const isTodayPlugin = (_, dayClass) => {
5
4
  dayClass.prototype.isToday = function() {
6
5
  return this.isSame(/* @__PURE__ */ new Date(), constants_default.DAY);
7
6
  };
8
7
  };
9
-
10
8
  //#endregion
11
- export { isTodayPlugin as default };
9
+ export { isTodayPlugin as default };
@@ -1,4 +1,4 @@
1
- import { o as EsDayPlugin } from "../../chunks/CODi8AFH.js";
1
+ import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
2
 
3
3
  //#region src/plugins/isTomorrow/index.d.ts
4
4
  declare module 'esday' {
@@ -1,5 +1,4 @@
1
- import { p as constants_default } from "../../chunks/BkjWOpMU.js";
2
-
1
+ import { f as constants_default } from "../../chunks/CeKusvtV.js";
3
2
  //#region src/plugins/isTomorrow/index.ts
4
3
  const isTomorrowPlugin = (_, dayClass, d) => {
5
4
  dayClass.prototype.isTomorrow = function() {
@@ -8,6 +7,5 @@ const isTomorrowPlugin = (_, dayClass, d) => {
8
7
  return this.format(comparisonTemplate) === tomorrow.format(comparisonTemplate);
9
8
  };
10
9
  };
11
-
12
10
  //#endregion
13
- export { isTomorrowPlugin as default };
11
+ export { isTomorrowPlugin as default };
@@ -1,4 +1,4 @@
1
- import { o as EsDayPlugin } from "../../chunks/CODi8AFH.js";
1
+ import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
2
 
3
3
  //#region src/plugins/isYesterday/index.d.ts
4
4
  declare module 'esday' {
@@ -1,5 +1,4 @@
1
- import { p as constants_default } from "../../chunks/BkjWOpMU.js";
2
-
1
+ import { f as constants_default } from "../../chunks/CeKusvtV.js";
3
2
  //#region src/plugins/isYesterday/index.ts
4
3
  const isYesterdayPlugin = (_, dayClass, d) => {
5
4
  dayClass.prototype.isYesterday = function() {
@@ -8,6 +7,5 @@ const isYesterdayPlugin = (_, dayClass, d) => {
8
7
  return this.format(comparisonTemplate) === yesterday.format(comparisonTemplate);
9
8
  };
10
9
  };
11
-
12
10
  //#endregion
13
- export { isYesterdayPlugin as default };
11
+ export { isYesterdayPlugin as default };
@@ -1,4 +1,4 @@
1
- import { o as EsDayPlugin } from "../../chunks/CODi8AFH.js";
1
+ import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
2
 
3
3
  //#region src/plugins/isoWeek/index.d.ts
4
4
  declare module 'esday' {
@@ -1,8 +1,7 @@
1
- import { p as constants_default } from "../../chunks/BkjWOpMU.js";
2
- import { a as isUndefined } from "../../chunks/v_QBn7Xm.js";
3
- import { t as createInstanceFromExist } from "../../chunks/Shk32pTP.js";
4
- import { n as padStart } from "../../chunks/CdvTtmWL.js";
5
-
1
+ import { f as constants_default } from "../../chunks/CeKusvtV.js";
2
+ import { a as isUndefined } from "../../chunks/DuRKUq5K.js";
3
+ import { t as createInstanceFromExist } from "../../chunks/i3oEJgL3.js";
4
+ import { n as padStart } from "../../chunks/DXFoLbHM.js";
6
5
  //#region src/plugins/isoWeek/index.ts
7
6
  const weekStart = constants_default.INDEX_MONDAY;
8
7
  const yearStart = 4;
@@ -223,6 +222,5 @@ const isoWeekPlugin = (_, dayClass, dayFactory) => {
223
222
  };
224
223
  dayFactory.addParseTokenDefinitions?.(parseTokensDefinitions);
225
224
  };
226
-
227
225
  //#endregion
228
- export { isoWeekPlugin as default };
226
+ export { isoWeekPlugin as default };
@@ -1,4 +1,4 @@
1
- import { o as EsDayPlugin, t as EsDay } from "../../chunks/CODi8AFH.js";
1
+ import { s as EsDayPlugin, t as EsDay } from "../../chunks/DuP2qVZn.js";
2
2
 
3
3
  //#region src/plugins/locale/types.d.ts
4
4
  type ReadonlyTuple<T, N extends number, R extends readonly T[] = []> = R['length'] extends N ? R : ReadonlyTuple<T, N, readonly [T, ...R]>;
@@ -16,6 +16,9 @@ declare module 'esday' {
16
16
  getLocale: (localeName: string) => Locale;
17
17
  updateLocale: (localeName: string, newLocale: Partial<Locale>) => EsDayFactory;
18
18
  }
19
+ interface ConfigurationObject {
20
+ localeName?: string;
21
+ }
19
22
  }
20
23
  type DayNames<T = string> = ReadonlyTuple<T, 7>;
21
24
  interface DayNamesStandaloneFormat<T = DayNames<string>> {
@@ -1,8 +1,7 @@
1
- import { p as constants_default } from "../../chunks/BkjWOpMU.js";
2
- import { s as undefinedOr } from "../../chunks/v_QBn7Xm.js";
3
- import { t as normalizeUnit } from "../../chunks/AyQQ6US-.js";
1
+ import { f as constants_default } from "../../chunks/CeKusvtV.js";
2
+ import { s as undefinedOr } from "../../chunks/DuRKUq5K.js";
3
+ import { t as normalizeUnit } from "../../chunks/DMdr1ZL1.js";
4
4
  import localeEn from "../../locales/en.js";
5
-
6
5
  //#region src/plugins/locale/index.ts
7
6
  const LocaleStore = /* @__PURE__ */ new Map();
8
7
  let $localeGlobal = "en";
@@ -72,8 +71,8 @@ function cloneLocale(source) {
72
71
  return cloneObject(source);
73
72
  }
74
73
  function getSetPrivateLocaleName(inst, newLocaleName) {
75
- if (newLocaleName) inst["$conf"]["localeName"] = newLocaleName;
76
- return inst["$conf"]["localeName"] || "";
74
+ if (newLocaleName) inst["$conf"].localeName = newLocaleName;
75
+ return inst["$conf"].localeName || "";
77
76
  }
78
77
  const localePlugin = (_, dayClass, dayFactory) => {
79
78
  dayClass.prototype.localeObject = function() {
@@ -136,6 +135,5 @@ const localePlugin = (_, dayClass, dayFactory) => {
136
135
  return dayFactory;
137
136
  };
138
137
  };
139
-
140
138
  //#endregion
141
- export { cloneLocale, localePlugin as default, setLocaleProperty };
139
+ export { cloneLocale, localePlugin as default, setLocaleProperty };
@@ -1,4 +1,4 @@
1
- import { o as EsDayPlugin } from "../../chunks/CODi8AFH.js";
1
+ import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
2
 
3
3
  //#region src/plugins/localeData/index.d.ts
4
4
  declare const localeDataPlugin: EsDayPlugin<{}>;
@@ -1,5 +1,4 @@
1
- import { t as esday } from "../../chunks/CXWzCl3n.js";
2
-
1
+ import { t as esday } from "../../chunks/D2Xh96oz.js";
3
2
  //#region src/plugins/localeData/index.ts
4
3
  /**
5
4
  * LocaleData plugin
@@ -150,6 +149,5 @@ const localeDataPlugin = (_, dayClass, dayFactory) => {
150
149
  dayFactory.weekdaysShort = () => getWeekdays(dayFactory.getLocale(dayFactory.locale()), "weekdaysShort");
151
150
  dayFactory.weekdaysMin = () => getWeekdays(dayFactory.getLocale(dayFactory.locale()), "weekdaysMin");
152
151
  };
153
-
154
152
  //#endregion
155
- export { localeDataPlugin as default };
153
+ export { localeDataPlugin as default };
@@ -1,4 +1,4 @@
1
- import { o as EsDayPlugin } from "../../chunks/CODi8AFH.js";
1
+ import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
2
 
3
3
  //#region src/plugins/localizedFormat/index.d.ts
4
4
  declare const localizedFormatPlugin: EsDayPlugin<{}>;
@@ -1,6 +1,5 @@
1
- import { i as isString, t as isArray } from "../../chunks/v_QBn7Xm.js";
2
- import { t as padNumberWithLeadingZeros } from "../../chunks/CdvTtmWL.js";
3
-
1
+ import { i as isString, t as isArray } from "../../chunks/DuRKUq5K.js";
2
+ import { t as padNumberWithLeadingZeros } from "../../chunks/DXFoLbHM.js";
4
3
  //#region src/plugins/localizedFormat/index.ts
5
4
  /**
6
5
  * Create a function that will format the day of week value from the sourceDate
@@ -78,6 +77,5 @@ const localizedFormatPlugin = (_, dayClass, dayFactory) => {
78
77
  return this.localeObject?.().postFormat?.(formattedValue) ?? formattedValue;
79
78
  };
80
79
  };
81
-
82
80
  //#endregion
83
- export { localizedFormatPlugin as default };
81
+ export { localizedFormatPlugin as default };
@@ -1,4 +1,4 @@
1
- import { o as EsDayPlugin } from "../../chunks/CODi8AFH.js";
1
+ import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
2
 
3
3
  //#region src/plugins/localizedParse/index.d.ts
4
4
  declare const localizedParsePlugin: EsDayPlugin<{}>;
@@ -1,5 +1,4 @@
1
- import { a as isUndefined, i as isString, t as isArray } from "../../chunks/v_QBn7Xm.js";
2
-
1
+ import { a as isUndefined, i as isString, t as isArray } from "../../chunks/DuRKUq5K.js";
3
2
  //#region src/plugins/localizedParse/index.ts
4
3
  const match2 = /\d{2}/;
5
4
  const match1to2 = /\d\d?/;
@@ -212,6 +211,5 @@ const localizedParsePlugin = (_, dayClass, dayFactory) => {
212
211
  }
213
212
  };
214
213
  };
215
-
216
214
  //#endregion
217
- export { localizedParsePlugin as default };
215
+ export { localizedParsePlugin as default };
@@ -1,4 +1,4 @@
1
- import { o as EsDayPlugin, r as DateType } from "../../chunks/CODi8AFH.js";
1
+ import { i as DateType, s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
2
 
3
3
  //#region src/plugins/minMax/index.d.ts
4
4
  declare module 'esday' {
@@ -1,5 +1,4 @@
1
- import { t as isArray } from "../../chunks/v_QBn7Xm.js";
2
-
1
+ import { t as isArray } from "../../chunks/DuRKUq5K.js";
3
2
  //#region src/plugins/minMax/index.ts
4
3
  const minMaxPlugin = (_, _dayClass, dayFactory) => {
5
4
  const sortBy = (method, dates) => {
@@ -16,6 +15,5 @@ const minMaxPlugin = (_, _dayClass, dayFactory) => {
16
15
  dayFactory.max = (...dates) => sortBy("isAfter", dates);
17
16
  dayFactory.min = (...dates) => sortBy("isBefore", dates);
18
17
  };
19
-
20
18
  //#endregion
21
- export { minMaxPlugin as default };
19
+ export { minMaxPlugin as default };
@@ -1,4 +1,4 @@
1
- import { o as EsDayPlugin } from "../../chunks/CODi8AFH.js";
1
+ import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
2
 
3
3
  //#region src/plugins/objectSupport/index.d.ts
4
4
  declare const objectSupportPlugin: EsDayPlugin<{}>;
@@ -1,8 +1,7 @@
1
- import { p as constants_default } from "../../chunks/BkjWOpMU.js";
2
- import { n as isEmptyObject, r as isObject } from "../../chunks/v_QBn7Xm.js";
3
- import { n as normalizeUnitWithPlurals } from "../../chunks/AyQQ6US-.js";
4
- import { t as createInstanceFromExist } from "../../chunks/Shk32pTP.js";
5
-
1
+ import { f as constants_default } from "../../chunks/CeKusvtV.js";
2
+ import { n as isEmptyObject, r as isObject } from "../../chunks/DuRKUq5K.js";
3
+ import { n as normalizeUnitWithPlurals } from "../../chunks/DMdr1ZL1.js";
4
+ import { t as createInstanceFromExist } from "../../chunks/i3oEJgL3.js";
6
5
  //#region src/plugins/objectSupport/index.ts
7
6
  const objectSupportPlugin = (_, dayClass, _dayFactory) => {
8
7
  const proto = dayClass.prototype;
@@ -94,6 +93,5 @@ const objectSupportPlugin = (_, dayClass, _dayFactory) => {
94
93
  return oldSubtract.call(this, value, unit);
95
94
  };
96
95
  };
97
-
98
96
  //#endregion
99
- export { objectSupportPlugin as default };
97
+ export { objectSupportPlugin as default };
@@ -1,4 +1,4 @@
1
- import { o as EsDayPlugin } from "../../chunks/CODi8AFH.js";
1
+ import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
2
 
3
3
  //#region src/plugins/pluralGetSet/index.d.ts
4
4
  declare module 'esday' {
@@ -10,6 +10,5 @@ const pluralGetSetPlugin = (_, dayClass, _dayFactory) => {
10
10
  proto.seconds = proto.second;
11
11
  proto.milliseconds = proto.millisecond;
12
12
  };
13
-
14
13
  //#endregion
15
- export { pluralGetSetPlugin as default };
14
+ export { pluralGetSetPlugin as default };
@@ -1,4 +1,4 @@
1
- import { o as EsDayPlugin } from "../../chunks/CODi8AFH.js";
1
+ import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
2
 
3
3
  //#region src/plugins/quarterOfYear/index.d.ts
4
4
  declare module 'esday' {
@@ -1,7 +1,6 @@
1
- import { p as constants_default } from "../../chunks/BkjWOpMU.js";
2
- import { r as isObject } from "../../chunks/v_QBn7Xm.js";
3
- import { n as normalizeUnitWithPlurals } from "../../chunks/AyQQ6US-.js";
4
-
1
+ import { f as constants_default } from "../../chunks/CeKusvtV.js";
2
+ import { r as isObject } from "../../chunks/DuRKUq5K.js";
3
+ import { n as normalizeUnitWithPlurals } from "../../chunks/DMdr1ZL1.js";
5
4
  //#region src/plugins/quarterOfYear/index.ts
6
5
  const quarterOfYearPlugin = (_, dayClass, dayFactory) => {
7
6
  const proto = dayClass.prototype;
@@ -46,6 +45,5 @@ const quarterOfYearPlugin = (_, dayClass, dayFactory) => {
46
45
  };
47
46
  dayFactory.addFormatTokenDefinitions({ Q: (sourceDate) => sourceDate.quarter().toString() });
48
47
  };
49
-
50
48
  //#endregion
51
- export { quarterOfYearPlugin as default };
49
+ export { quarterOfYearPlugin as default };
@@ -1,4 +1,4 @@
1
- import { o as EsDayPlugin, r as DateType } from "../../chunks/CODi8AFH.js";
1
+ import { i as DateType, s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
2
  import { Locale } from "../locale/index.js";
3
3
 
4
4
  //#region src/plugins/relativeTime/index.d.ts
@@ -1,6 +1,5 @@
1
- import { p as constants_default } from "../../chunks/BkjWOpMU.js";
2
- import { t as createInstanceFromExist } from "../../chunks/Shk32pTP.js";
3
-
1
+ import { f as constants_default } from "../../chunks/CeKusvtV.js";
2
+ import { t as createInstanceFromExist } from "../../chunks/i3oEJgL3.js";
4
3
  //#region src/plugins/relativeTime/index.ts
5
4
  const relativeTimePlugin = (options, dayClass, dayFactory) => {
6
5
  const defaultRelativeTimeDef = {
@@ -182,6 +181,5 @@ const relativeTimePlugin = (options, dayClass, dayFactory) => {
182
181
  return this.from(now, withoutSuffix);
183
182
  };
184
183
  };
185
-
186
184
  //#endregion
187
- export { relativeTimePlugin as default };
185
+ export { relativeTimePlugin as default };
@@ -1,4 +1,4 @@
1
- import { o as EsDayPlugin } from "../../chunks/CODi8AFH.js";
1
+ import { s as EsDayPlugin } from "../../chunks/DuP2qVZn.js";
2
2
 
3
3
  //#region src/plugins/timezone/index.d.ts
4
4
  declare const timezonePLugin: EsDayPlugin<{}>;