@jnrs/shared 1.1.2 → 1.1.3

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 (216) hide show
  1. package/README.md +13 -1
  2. package/dist/index.cjs +7 -0
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.ts +3 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +2 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/locales/en.cjs +62 -0
  9. package/dist/locales/en.cjs.map +1 -0
  10. package/dist/locales/en.d.ts +57 -0
  11. package/dist/locales/en.d.ts.map +1 -0
  12. package/dist/locales/en.js +58 -0
  13. package/dist/locales/en.js.map +1 -0
  14. package/dist/locales/index.cjs +26 -0
  15. package/dist/locales/index.cjs.map +1 -0
  16. package/dist/locales/index.d.ts +6 -0
  17. package/dist/locales/index.d.ts.map +1 -0
  18. package/dist/locales/index.js +21 -0
  19. package/dist/locales/index.js.map +1 -0
  20. package/dist/locales/zhCn.cjs +62 -0
  21. package/dist/locales/zhCn.cjs.map +1 -0
  22. package/dist/locales/zhCn.d.ts +57 -0
  23. package/dist/locales/zhCn.d.ts.map +1 -0
  24. package/dist/locales/zhCn.js +58 -0
  25. package/dist/locales/zhCn.js.map +1 -0
  26. package/dist/mitt.cjs +10 -0
  27. package/dist/mitt.cjs.map +1 -0
  28. package/dist/mitt.d.ts +3 -0
  29. package/dist/mitt.d.ts.map +1 -0
  30. package/dist/mitt.js +6 -0
  31. package/dist/mitt.js.map +1 -0
  32. package/dist/styles/theme.scss +52 -0
  33. package/dist/types/base.d.ts +39 -0
  34. package/dist/types/base.d.ts.map +1 -0
  35. package/dist/utils/date.cjs +6 -17
  36. package/dist/utils/date.cjs.map +1 -1
  37. package/dist/utils/date.d.ts +3 -9
  38. package/dist/utils/date.d.ts.map +1 -1
  39. package/dist/utils/date.js +6 -17
  40. package/dist/utils/date.js.map +1 -1
  41. package/dist/utils/dict.cjs +66 -0
  42. package/dist/utils/dict.cjs.map +1 -0
  43. package/dist/utils/dict.d.ts +40 -0
  44. package/dist/utils/dict.d.ts.map +1 -0
  45. package/dist/utils/dict.js +61 -0
  46. package/dist/utils/dict.js.map +1 -0
  47. package/dist/utils/fullscreen.cjs +4 -2
  48. package/dist/utils/fullscreen.cjs.map +1 -1
  49. package/dist/utils/fullscreen.d.ts.map +1 -1
  50. package/dist/utils/fullscreen.js +4 -2
  51. package/dist/utils/fullscreen.js.map +1 -1
  52. package/dist/utils/validate.cjs.map +1 -0
  53. package/dist/utils/validate.d.ts.map +1 -0
  54. package/dist/utils/validate.js.map +1 -0
  55. package/dist/utils/validator.cjs +174 -0
  56. package/dist/utils/validator.cjs.map +1 -0
  57. package/dist/{validator.d.ts → utils/validator.d.ts} +2 -2
  58. package/dist/utils/validator.d.ts.map +1 -0
  59. package/dist/utils/validator.js +129 -0
  60. package/dist/utils/validator.js.map +1 -0
  61. package/package.json +20 -10
  62. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatDistance.cjs +0 -201
  63. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatDistance.cjs.map +0 -1
  64. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatDistance.js +0 -199
  65. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatDistance.js.map +0 -1
  66. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatLong.cjs +0 -45
  67. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatLong.cjs.map +0 -1
  68. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatLong.js +0 -43
  69. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatLong.js.map +0 -1
  70. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatRelative.cjs +0 -16
  71. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatRelative.cjs.map +0 -1
  72. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatRelative.js +0 -14
  73. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatRelative.js.map +0 -1
  74. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/localize.cjs +0 -196
  75. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/localize.cjs.map +0 -1
  76. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/localize.js +0 -194
  77. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/localize.js.map +0 -1
  78. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/match.cjs +0 -139
  79. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/match.cjs.map +0 -1
  80. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/match.js +0 -137
  81. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/match.js.map +0 -1
  82. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de.cjs +0 -37
  83. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de.cjs.map +0 -1
  84. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de.js +0 -32
  85. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de.js.map +0 -1
  86. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatDistance.cjs +0 -106
  87. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatDistance.cjs.map +0 -1
  88. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatDistance.js +0 -104
  89. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatDistance.js.map +0 -1
  90. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatLong.cjs +0 -44
  91. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatLong.cjs.map +0 -1
  92. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatLong.js +0 -42
  93. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatLong.js.map +0 -1
  94. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatRelative.cjs +0 -30
  95. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatRelative.cjs.map +0 -1
  96. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatRelative.js +0 -28
  97. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatRelative.js.map +0 -1
  98. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/localize.cjs +0 -169
  99. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/localize.cjs.map +0 -1
  100. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/localize.js +0 -167
  101. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/localize.js.map +0 -1
  102. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/match.cjs +0 -143
  103. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/match.cjs.map +0 -1
  104. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/match.js +0 -141
  105. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/match.js.map +0 -1
  106. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es.cjs +0 -37
  107. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es.cjs.map +0 -1
  108. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es.js +0 -32
  109. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es.js.map +0 -1
  110. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatDistance.cjs +0 -105
  111. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatDistance.cjs.map +0 -1
  112. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatDistance.js +0 -103
  113. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatDistance.js.map +0 -1
  114. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatLong.cjs +0 -44
  115. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatLong.cjs.map +0 -1
  116. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatLong.js +0 -42
  117. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatLong.js.map +0 -1
  118. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatRelative.cjs +0 -16
  119. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatRelative.cjs.map +0 -1
  120. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatRelative.js +0 -14
  121. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatRelative.js.map +0 -1
  122. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.cjs +0 -170
  123. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.cjs.map +0 -1
  124. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.js +0 -168
  125. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.js.map +0 -1
  126. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/match.cjs +0 -138
  127. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/match.cjs.map +0 -1
  128. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/match.js +0 -136
  129. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/match.js.map +0 -1
  130. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.cjs +0 -34
  131. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.cjs.map +0 -1
  132. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.js +0 -29
  133. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.js.map +0 -1
  134. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatDistance.cjs +0 -120
  135. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatDistance.cjs.map +0 -1
  136. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatDistance.js +0 -118
  137. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatDistance.js.map +0 -1
  138. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatLong.cjs +0 -44
  139. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatLong.cjs.map +0 -1
  140. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatLong.js +0 -42
  141. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatLong.js.map +0 -1
  142. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatRelative.cjs +0 -17
  143. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatRelative.cjs.map +0 -1
  144. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatRelative.js +0 -15
  145. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatRelative.js.map +0 -1
  146. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/localize.cjs +0 -182
  147. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/localize.cjs.map +0 -1
  148. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/localize.js +0 -180
  149. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/localize.js.map +0 -1
  150. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/match.cjs +0 -123
  151. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/match.cjs.map +0 -1
  152. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/match.js +0 -121
  153. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/match.js.map +0 -1
  154. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja.cjs +0 -37
  155. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja.cjs.map +0 -1
  156. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja.js +0 -32
  157. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja.js.map +0 -1
  158. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatDistance.cjs +0 -106
  159. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatDistance.cjs.map +0 -1
  160. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatDistance.js +0 -104
  161. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatDistance.js.map +0 -1
  162. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatLong.cjs +0 -44
  163. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatLong.cjs.map +0 -1
  164. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatLong.js +0 -42
  165. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatLong.js.map +0 -1
  166. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatRelative.cjs +0 -16
  167. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatRelative.cjs.map +0 -1
  168. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatRelative.js +0 -14
  169. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatRelative.js.map +0 -1
  170. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/localize.cjs +0 -172
  171. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/localize.cjs.map +0 -1
  172. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/localize.js +0 -170
  173. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/localize.js.map +0 -1
  174. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/match.cjs +0 -120
  175. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/match.cjs.map +0 -1
  176. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/match.js +0 -118
  177. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/match.js.map +0 -1
  178. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko.cjs +0 -35
  179. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko.cjs.map +0 -1
  180. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko.js +0 -30
  181. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko.js.map +0 -1
  182. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatDistance.cjs +0 -251
  183. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatDistance.cjs.map +0 -1
  184. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatDistance.js +0 -249
  185. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatDistance.js.map +0 -1
  186. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatLong.cjs +0 -41
  187. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatLong.cjs.map +0 -1
  188. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatLong.js +0 -39
  189. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatLong.js.map +0 -1
  190. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatRelative.cjs +0 -93
  191. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatRelative.cjs.map +0 -1
  192. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatRelative.js +0 -91
  193. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatRelative.js.map +0 -1
  194. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/localize.cjs +0 -215
  195. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/localize.cjs.map +0 -1
  196. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/localize.js +0 -213
  197. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/localize.js.map +0 -1
  198. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/match.cjs +0 -143
  199. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/match.cjs.map +0 -1
  200. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/match.js +0 -141
  201. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/match.js.map +0 -1
  202. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru.cjs +0 -34
  203. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru.cjs.map +0 -1
  204. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru.js +0 -29
  205. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru.js.map +0 -1
  206. package/dist/validate.cjs.map +0 -1
  207. package/dist/validate.d.ts.map +0 -1
  208. package/dist/validate.js.map +0 -1
  209. package/dist/validator.cjs +0 -173
  210. package/dist/validator.cjs.map +0 -1
  211. package/dist/validator.d.ts.map +0 -1
  212. package/dist/validator.js +0 -128
  213. package/dist/validator.js.map +0 -1
  214. /package/dist/{validate.cjs → utils/validate.cjs} +0 -0
  215. /package/dist/{validate.d.ts → utils/validate.d.ts} +0 -0
  216. /package/dist/{validate.js → utils/validate.js} +0 -0
@@ -1,249 +0,0 @@
1
- function declension(scheme, count) {
2
- // scheme for count=1 exists
3
- if (scheme.one !== undefined && count === 1) {
4
- return scheme.one;
5
- }
6
-
7
- const rem10 = count % 10;
8
- const rem100 = count % 100;
9
-
10
- // 1, 21, 31, ...
11
- if (rem10 === 1 && rem100 !== 11) {
12
- return scheme.singularNominative.replace("{{count}}", String(count));
13
-
14
- // 2, 3, 4, 22, 23, 24, 32 ...
15
- } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) {
16
- return scheme.singularGenitive.replace("{{count}}", String(count));
17
-
18
- // 5, 6, 7, 8, 9, 10, 11, ...
19
- } else {
20
- return scheme.pluralGenitive.replace("{{count}}", String(count));
21
- }
22
- }
23
-
24
- function buildLocalizeTokenFn(scheme) {
25
- return (count, options) => {
26
- if (options?.addSuffix) {
27
- if (options.comparison && options.comparison > 0) {
28
- if (scheme.future) {
29
- return declension(scheme.future, count);
30
- } else {
31
- return "через " + declension(scheme.regular, count);
32
- }
33
- } else {
34
- if (scheme.past) {
35
- return declension(scheme.past, count);
36
- } else {
37
- return declension(scheme.regular, count) + " назад";
38
- }
39
- }
40
- } else {
41
- return declension(scheme.regular, count);
42
- }
43
- };
44
- }
45
-
46
- const formatDistanceLocale = {
47
- lessThanXSeconds: buildLocalizeTokenFn({
48
- regular: {
49
- one: "меньше секунды",
50
- singularNominative: "меньше {{count}} секунды",
51
- singularGenitive: "меньше {{count}} секунд",
52
- pluralGenitive: "меньше {{count}} секунд",
53
- },
54
- future: {
55
- one: "меньше, чем через секунду",
56
- singularNominative: "меньше, чем через {{count}} секунду",
57
- singularGenitive: "меньше, чем через {{count}} секунды",
58
- pluralGenitive: "меньше, чем через {{count}} секунд",
59
- },
60
- }),
61
-
62
- xSeconds: buildLocalizeTokenFn({
63
- regular: {
64
- singularNominative: "{{count}} секунда",
65
- singularGenitive: "{{count}} секунды",
66
- pluralGenitive: "{{count}} секунд",
67
- },
68
- past: {
69
- singularNominative: "{{count}} секунду назад",
70
- singularGenitive: "{{count}} секунды назад",
71
- pluralGenitive: "{{count}} секунд назад",
72
- },
73
- future: {
74
- singularNominative: "через {{count}} секунду",
75
- singularGenitive: "через {{count}} секунды",
76
- pluralGenitive: "через {{count}} секунд",
77
- },
78
- }),
79
-
80
- halfAMinute: (_count, options) => {
81
- if (options?.addSuffix) {
82
- if (options.comparison && options.comparison > 0) {
83
- return "через полминуты";
84
- } else {
85
- return "полминуты назад";
86
- }
87
- }
88
-
89
- return "полминуты";
90
- },
91
-
92
- lessThanXMinutes: buildLocalizeTokenFn({
93
- regular: {
94
- one: "меньше минуты",
95
- singularNominative: "меньше {{count}} минуты",
96
- singularGenitive: "меньше {{count}} минут",
97
- pluralGenitive: "меньше {{count}} минут",
98
- },
99
- future: {
100
- one: "меньше, чем через минуту",
101
- singularNominative: "меньше, чем через {{count}} минуту",
102
- singularGenitive: "меньше, чем через {{count}} минуты",
103
- pluralGenitive: "меньше, чем через {{count}} минут",
104
- },
105
- }),
106
-
107
- xMinutes: buildLocalizeTokenFn({
108
- regular: {
109
- singularNominative: "{{count}} минута",
110
- singularGenitive: "{{count}} минуты",
111
- pluralGenitive: "{{count}} минут",
112
- },
113
- past: {
114
- singularNominative: "{{count}} минуту назад",
115
- singularGenitive: "{{count}} минуты назад",
116
- pluralGenitive: "{{count}} минут назад",
117
- },
118
- future: {
119
- singularNominative: "через {{count}} минуту",
120
- singularGenitive: "через {{count}} минуты",
121
- pluralGenitive: "через {{count}} минут",
122
- },
123
- }),
124
-
125
- aboutXHours: buildLocalizeTokenFn({
126
- regular: {
127
- singularNominative: "около {{count}} часа",
128
- singularGenitive: "около {{count}} часов",
129
- pluralGenitive: "около {{count}} часов",
130
- },
131
- future: {
132
- singularNominative: "приблизительно через {{count}} час",
133
- singularGenitive: "приблизительно через {{count}} часа",
134
- pluralGenitive: "приблизительно через {{count}} часов",
135
- },
136
- }),
137
-
138
- xHours: buildLocalizeTokenFn({
139
- regular: {
140
- singularNominative: "{{count}} час",
141
- singularGenitive: "{{count}} часа",
142
- pluralGenitive: "{{count}} часов",
143
- },
144
- }),
145
-
146
- xDays: buildLocalizeTokenFn({
147
- regular: {
148
- singularNominative: "{{count}} день",
149
- singularGenitive: "{{count}} дня",
150
- pluralGenitive: "{{count}} дней",
151
- },
152
- }),
153
-
154
- aboutXWeeks: buildLocalizeTokenFn({
155
- regular: {
156
- singularNominative: "около {{count}} недели",
157
- singularGenitive: "около {{count}} недель",
158
- pluralGenitive: "около {{count}} недель",
159
- },
160
- future: {
161
- singularNominative: "приблизительно через {{count}} неделю",
162
- singularGenitive: "приблизительно через {{count}} недели",
163
- pluralGenitive: "приблизительно через {{count}} недель",
164
- },
165
- }),
166
-
167
- xWeeks: buildLocalizeTokenFn({
168
- regular: {
169
- singularNominative: "{{count}} неделя",
170
- singularGenitive: "{{count}} недели",
171
- pluralGenitive: "{{count}} недель",
172
- },
173
- }),
174
-
175
- aboutXMonths: buildLocalizeTokenFn({
176
- regular: {
177
- singularNominative: "около {{count}} месяца",
178
- singularGenitive: "около {{count}} месяцев",
179
- pluralGenitive: "около {{count}} месяцев",
180
- },
181
- future: {
182
- singularNominative: "приблизительно через {{count}} месяц",
183
- singularGenitive: "приблизительно через {{count}} месяца",
184
- pluralGenitive: "приблизительно через {{count}} месяцев",
185
- },
186
- }),
187
-
188
- xMonths: buildLocalizeTokenFn({
189
- regular: {
190
- singularNominative: "{{count}} месяц",
191
- singularGenitive: "{{count}} месяца",
192
- pluralGenitive: "{{count}} месяцев",
193
- },
194
- }),
195
-
196
- aboutXYears: buildLocalizeTokenFn({
197
- regular: {
198
- singularNominative: "около {{count}} года",
199
- singularGenitive: "около {{count}} лет",
200
- pluralGenitive: "около {{count}} лет",
201
- },
202
- future: {
203
- singularNominative: "приблизительно через {{count}} год",
204
- singularGenitive: "приблизительно через {{count}} года",
205
- pluralGenitive: "приблизительно через {{count}} лет",
206
- },
207
- }),
208
-
209
- xYears: buildLocalizeTokenFn({
210
- regular: {
211
- singularNominative: "{{count}} год",
212
- singularGenitive: "{{count}} года",
213
- pluralGenitive: "{{count}} лет",
214
- },
215
- }),
216
-
217
- overXYears: buildLocalizeTokenFn({
218
- regular: {
219
- singularNominative: "больше {{count}} года",
220
- singularGenitive: "больше {{count}} лет",
221
- pluralGenitive: "больше {{count}} лет",
222
- },
223
- future: {
224
- singularNominative: "больше, чем через {{count}} год",
225
- singularGenitive: "больше, чем через {{count}} года",
226
- pluralGenitive: "больше, чем через {{count}} лет",
227
- },
228
- }),
229
-
230
- almostXYears: buildLocalizeTokenFn({
231
- regular: {
232
- singularNominative: "почти {{count}} год",
233
- singularGenitive: "почти {{count}} года",
234
- pluralGenitive: "почти {{count}} лет",
235
- },
236
- future: {
237
- singularNominative: "почти через {{count}} год",
238
- singularGenitive: "почти через {{count}} года",
239
- pluralGenitive: "почти через {{count}} лет",
240
- },
241
- }),
242
- };
243
-
244
- const formatDistance = (token, count, options) => {
245
- return formatDistanceLocale[token](count, options);
246
- };
247
-
248
- export { formatDistance };
249
- //# sourceMappingURL=formatDistance.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatDistance.js","sources":["../../../../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatDistance.js"],"sourcesContent":["function declension(scheme, count) {\n // scheme for count=1 exists\n if (scheme.one !== undefined && count === 1) {\n return scheme.one;\n }\n\n const rem10 = count % 10;\n const rem100 = count % 100;\n\n // 1, 21, 31, ...\n if (rem10 === 1 && rem100 !== 11) {\n return scheme.singularNominative.replace(\"{{count}}\", String(count));\n\n // 2, 3, 4, 22, 23, 24, 32 ...\n } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) {\n return scheme.singularGenitive.replace(\"{{count}}\", String(count));\n\n // 5, 6, 7, 8, 9, 10, 11, ...\n } else {\n return scheme.pluralGenitive.replace(\"{{count}}\", String(count));\n }\n}\n\nfunction buildLocalizeTokenFn(scheme) {\n return (count, options) => {\n if (options?.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n if (scheme.future) {\n return declension(scheme.future, count);\n } else {\n return \"через \" + declension(scheme.regular, count);\n }\n } else {\n if (scheme.past) {\n return declension(scheme.past, count);\n } else {\n return declension(scheme.regular, count) + \" назад\";\n }\n }\n } else {\n return declension(scheme.regular, count);\n }\n };\n}\n\nconst formatDistanceLocale = {\n lessThanXSeconds: buildLocalizeTokenFn({\n regular: {\n one: \"меньше секунды\",\n singularNominative: \"меньше {{count}} секунды\",\n singularGenitive: \"меньше {{count}} секунд\",\n pluralGenitive: \"меньше {{count}} секунд\",\n },\n future: {\n one: \"меньше, чем через секунду\",\n singularNominative: \"меньше, чем через {{count}} секунду\",\n singularGenitive: \"меньше, чем через {{count}} секунды\",\n pluralGenitive: \"меньше, чем через {{count}} секунд\",\n },\n }),\n\n xSeconds: buildLocalizeTokenFn({\n regular: {\n singularNominative: \"{{count}} секунда\",\n singularGenitive: \"{{count}} секунды\",\n pluralGenitive: \"{{count}} секунд\",\n },\n past: {\n singularNominative: \"{{count}} секунду назад\",\n singularGenitive: \"{{count}} секунды назад\",\n pluralGenitive: \"{{count}} секунд назад\",\n },\n future: {\n singularNominative: \"через {{count}} секунду\",\n singularGenitive: \"через {{count}} секунды\",\n pluralGenitive: \"через {{count}} секунд\",\n },\n }),\n\n halfAMinute: (_count, options) => {\n if (options?.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n return \"через полминуты\";\n } else {\n return \"полминуты назад\";\n }\n }\n\n return \"полминуты\";\n },\n\n lessThanXMinutes: buildLocalizeTokenFn({\n regular: {\n one: \"меньше минуты\",\n singularNominative: \"меньше {{count}} минуты\",\n singularGenitive: \"меньше {{count}} минут\",\n pluralGenitive: \"меньше {{count}} минут\",\n },\n future: {\n one: \"меньше, чем через минуту\",\n singularNominative: \"меньше, чем через {{count}} минуту\",\n singularGenitive: \"меньше, чем через {{count}} минуты\",\n pluralGenitive: \"меньше, чем через {{count}} минут\",\n },\n }),\n\n xMinutes: buildLocalizeTokenFn({\n regular: {\n singularNominative: \"{{count}} минута\",\n singularGenitive: \"{{count}} минуты\",\n pluralGenitive: \"{{count}} минут\",\n },\n past: {\n singularNominative: \"{{count}} минуту назад\",\n singularGenitive: \"{{count}} минуты назад\",\n pluralGenitive: \"{{count}} минут назад\",\n },\n future: {\n singularNominative: \"через {{count}} минуту\",\n singularGenitive: \"через {{count}} минуты\",\n pluralGenitive: \"через {{count}} минут\",\n },\n }),\n\n aboutXHours: buildLocalizeTokenFn({\n regular: {\n singularNominative: \"около {{count}} часа\",\n singularGenitive: \"около {{count}} часов\",\n pluralGenitive: \"около {{count}} часов\",\n },\n future: {\n singularNominative: \"приблизительно через {{count}} час\",\n singularGenitive: \"приблизительно через {{count}} часа\",\n pluralGenitive: \"приблизительно через {{count}} часов\",\n },\n }),\n\n xHours: buildLocalizeTokenFn({\n regular: {\n singularNominative: \"{{count}} час\",\n singularGenitive: \"{{count}} часа\",\n pluralGenitive: \"{{count}} часов\",\n },\n }),\n\n xDays: buildLocalizeTokenFn({\n regular: {\n singularNominative: \"{{count}} день\",\n singularGenitive: \"{{count}} дня\",\n pluralGenitive: \"{{count}} дней\",\n },\n }),\n\n aboutXWeeks: buildLocalizeTokenFn({\n regular: {\n singularNominative: \"около {{count}} недели\",\n singularGenitive: \"около {{count}} недель\",\n pluralGenitive: \"около {{count}} недель\",\n },\n future: {\n singularNominative: \"приблизительно через {{count}} неделю\",\n singularGenitive: \"приблизительно через {{count}} недели\",\n pluralGenitive: \"приблизительно через {{count}} недель\",\n },\n }),\n\n xWeeks: buildLocalizeTokenFn({\n regular: {\n singularNominative: \"{{count}} неделя\",\n singularGenitive: \"{{count}} недели\",\n pluralGenitive: \"{{count}} недель\",\n },\n }),\n\n aboutXMonths: buildLocalizeTokenFn({\n regular: {\n singularNominative: \"около {{count}} месяца\",\n singularGenitive: \"около {{count}} месяцев\",\n pluralGenitive: \"около {{count}} месяцев\",\n },\n future: {\n singularNominative: \"приблизительно через {{count}} месяц\",\n singularGenitive: \"приблизительно через {{count}} месяца\",\n pluralGenitive: \"приблизительно через {{count}} месяцев\",\n },\n }),\n\n xMonths: buildLocalizeTokenFn({\n regular: {\n singularNominative: \"{{count}} месяц\",\n singularGenitive: \"{{count}} месяца\",\n pluralGenitive: \"{{count}} месяцев\",\n },\n }),\n\n aboutXYears: buildLocalizeTokenFn({\n regular: {\n singularNominative: \"около {{count}} года\",\n singularGenitive: \"около {{count}} лет\",\n pluralGenitive: \"около {{count}} лет\",\n },\n future: {\n singularNominative: \"приблизительно через {{count}} год\",\n singularGenitive: \"приблизительно через {{count}} года\",\n pluralGenitive: \"приблизительно через {{count}} лет\",\n },\n }),\n\n xYears: buildLocalizeTokenFn({\n regular: {\n singularNominative: \"{{count}} год\",\n singularGenitive: \"{{count}} года\",\n pluralGenitive: \"{{count}} лет\",\n },\n }),\n\n overXYears: buildLocalizeTokenFn({\n regular: {\n singularNominative: \"больше {{count}} года\",\n singularGenitive: \"больше {{count}} лет\",\n pluralGenitive: \"больше {{count}} лет\",\n },\n future: {\n singularNominative: \"больше, чем через {{count}} год\",\n singularGenitive: \"больше, чем через {{count}} года\",\n pluralGenitive: \"больше, чем через {{count}} лет\",\n },\n }),\n\n almostXYears: buildLocalizeTokenFn({\n regular: {\n singularNominative: \"почти {{count}} год\",\n singularGenitive: \"почти {{count}} года\",\n pluralGenitive: \"почти {{count}} лет\",\n },\n future: {\n singularNominative: \"почти через {{count}} год\",\n singularGenitive: \"почти через {{count}} года\",\n pluralGenitive: \"почти через {{count}} лет\",\n },\n }),\n};\n\nexport const formatDistance = (token, count, options) => {\n return formatDistanceLocale[token](count, options);\n};\n"],"names":[],"mappings":"AAAA,SAAS,UAAU,CAAC,MAAM,EAAE,KAAK,EAAE;AACnC;AACA,EAAE,IAAI,MAAM,CAAC,GAAG,KAAK,SAAS,IAAI,KAAK,KAAK,CAAC,EAAE;AAC/C,IAAI,OAAO,MAAM,CAAC,GAAG;AACrB,EAAE;;AAEF,EAAE,MAAM,KAAK,GAAG,KAAK,GAAG,EAAE;AAC1B,EAAE,MAAM,MAAM,GAAG,KAAK,GAAG,GAAG;;AAE5B;AACA,EAAE,IAAI,KAAK,KAAK,CAAC,IAAI,MAAM,KAAK,EAAE,EAAE;AACpC,IAAI,OAAO,MAAM,CAAC,kBAAkB,CAAC,OAAO,CAAC,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;;AAExE;AACA,EAAE,CAAC,MAAM,IAAI,KAAK,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,KAAK,MAAM,GAAG,EAAE,IAAI,MAAM,GAAG,EAAE,CAAC,EAAE;AACvE,IAAI,OAAO,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;;AAEtE;AACA,EAAE,CAAC,MAAM;AACT,IAAI,OAAO,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;AACpE,EAAE;AACF;;AAEA,SAAS,oBAAoB,CAAC,MAAM,EAAE;AACtC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,KAAK;AAC7B,IAAI,I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AAC1D,KAAK;AACL,GAAG,CAAC;;AAEJ,EAAE,MAAM,EAAE,oBAAoB,CAAC;AAC/B,IAAI,OAAO,EAAE;AACb,MAAM,kBAAkB,EAAE,eAAe;AACzC,MAAM,gBAAgB,EAAE,gBAAgB;AACxC,MAAM,cAAc,EAAE,eAAe;AACrC,KAAK;AACL,GAAG,CAAC;;AAEJ,EAAE,UAAU,EAAE,oBAAoB,CAAC;AACnC,IAAI,OAAO,EAAE;AACb,MAAM,kBAAkB,EAAE,uBAAuB;AACjD,MAAM,gBAAgB,EAAE,sBAAsB;AAC9C,MAAM,cAAc,EAAE,sBAAsB;AAC5C,KAAK;AACL,IAAI,MAAM,EAAE;AACZ,MAAM,kBAAkB,EAAE,iCAAiC;AAC3D,MAAM,gBAAgB,EAAE,kCAAkC;AAC1D,MAAM,cAAc,EAAE,iCAAiC;AACvD,KAAK;AACL,GAAG,CAAC;;AAEJ,EAAE,YAAY,EAAE,oBAAoB,CAAC;AACrC,IAAI,OAAO,EAAE;AACb,MAAM,kBAAkB,EAAE,qBAAqB;AAC/C,MAAM,gBAAgB,EAAE,sBAAsB;AAC9C,MAAM,cAAc,EAAE,qBAAqB;AAC3C,KAAK;AACL,IAAI,MAAM,EAAE;AACZ,MAAM,kBAAkB,EAAE,2BAA2B;AACrD,MAAM,gBAAgB,EAAE,4BAA4B;AACpD,MAAM,cAAc,EAAE,2BAA2B;AACjD,KAAK;AACL,GAAG,CAAC;AACJ,CAAC;;AAEW,MAAC,cAAc,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,KAAK;AACzD,EAAE,OAAO,oBAAoB,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,OAAO,CAAC;AACpD;;;;","x_google_ignoreList":[0]}
@@ -1,41 +0,0 @@
1
- 'use strict';
2
-
3
- var buildFormatLongFn = require('../../_lib/buildFormatLongFn.cjs');
4
-
5
- const dateFormats = {
6
- full: "EEEE, d MMMM y 'г.'",
7
- long: "d MMMM y 'г.'",
8
- medium: "d MMM y 'г.'",
9
- short: "dd.MM.y",
10
- };
11
-
12
- const timeFormats = {
13
- full: "H:mm:ss zzzz",
14
- long: "H:mm:ss z",
15
- medium: "H:mm:ss",
16
- short: "H:mm",
17
- };
18
-
19
- const dateTimeFormats = {
20
- any: "{{date}}, {{time}}",
21
- };
22
-
23
- const formatLong = {
24
- date: buildFormatLongFn.buildFormatLongFn({
25
- formats: dateFormats,
26
- defaultWidth: "full",
27
- }),
28
-
29
- time: buildFormatLongFn.buildFormatLongFn({
30
- formats: timeFormats,
31
- defaultWidth: "full",
32
- }),
33
-
34
- dateTime: buildFormatLongFn.buildFormatLongFn({
35
- formats: dateTimeFormats,
36
- defaultWidth: "any",
37
- }),
38
- };
39
-
40
- exports.formatLong = formatLong;
41
- //# sourceMappingURL=formatLong.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatLong.cjs","sources":["../../../../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatLong.js"],"sourcesContent":["import { buildFormatLongFn } from \"../../_lib/buildFormatLongFn.js\";\n\nconst dateFormats = {\n full: \"EEEE, d MMMM y 'г.'\",\n long: \"d MMMM y 'г.'\",\n medium: \"d MMM y 'г.'\",\n short: \"dd.MM.y\",\n};\n\nconst timeFormats = {\n full: \"H:mm:ss zzzz\",\n long: \"H:mm:ss z\",\n medium: \"H:mm:ss\",\n short: \"H:mm\",\n};\n\nconst dateTimeFormats = {\n any: \"{{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: \"any\",\n }),\n};\n"],"names":["buildFormatLongFn"],"mappings":";;;;AAEA,MAAM,WAAW,GAAG;AACpB,EAAE,IAAI,EAAE,qBAAqB;AAC7B,EAAE,IAAI,EAAE,eAAe;AACvB,EAAE,MAAM,EAAE,cAAc;AACxB,EAAE,KAAK,EAAE,SAAS;AAClB,CAAC;;AAED,MAAM,WAAW,GAAG;AACpB,EAAE,IAAI,EAAE,cAAc;AACtB,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,MAAM,EAAE,SAAS;AACnB,EAAE,KAAK,EAAE,MAAM;AACf,CAAC;;AAED,MAAM,eAAe,GAAG;AACxB,EAAE,GAAG,EAAE,oBAAoB;AAC3B,CAAC;;AAEW,MAAC,UAAU,GAAG;AAC1B,EAAE,IAAI,EAAEA,mCAAiB,CAAC;AAC1B,IAAI,OAAO,EAAE,WAAW;AACxB,IAAI,YAAY,EAAE,MAAM;AACxB,GAAG,CAAC;;AAEJ,EAAE,IAAI,EAAEA,mCAAiB,CAAC;AAC1B,IAAI,OAAO,EAAE,WAAW;AACxB,IAAI,YAAY,EAAE,MAAM;AACxB,GAAG,CAAC;;AAEJ,EAAE,QAAQ,EAAEA,mCAAiB,CAAC;AAC9B,IAAI,OAAO,EAAE,eAAe;AAC5B,IAAI,YAAY,EAAE,KAAK;AACvB,GAAG,CAAC;AACJ;;;;","x_google_ignoreList":[0]}
@@ -1,39 +0,0 @@
1
- import { buildFormatLongFn } from '../../_lib/buildFormatLongFn.js';
2
-
3
- const dateFormats = {
4
- full: "EEEE, d MMMM y 'г.'",
5
- long: "d MMMM y 'г.'",
6
- medium: "d MMM y 'г.'",
7
- short: "dd.MM.y",
8
- };
9
-
10
- const timeFormats = {
11
- full: "H:mm:ss zzzz",
12
- long: "H:mm:ss z",
13
- medium: "H:mm:ss",
14
- short: "H:mm",
15
- };
16
-
17
- const dateTimeFormats = {
18
- any: "{{date}}, {{time}}",
19
- };
20
-
21
- const formatLong = {
22
- date: buildFormatLongFn({
23
- formats: dateFormats,
24
- defaultWidth: "full",
25
- }),
26
-
27
- time: buildFormatLongFn({
28
- formats: timeFormats,
29
- defaultWidth: "full",
30
- }),
31
-
32
- dateTime: buildFormatLongFn({
33
- formats: dateTimeFormats,
34
- defaultWidth: "any",
35
- }),
36
- };
37
-
38
- export { formatLong };
39
- //# sourceMappingURL=formatLong.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatLong.js","sources":["../../../../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatLong.js"],"sourcesContent":["import { buildFormatLongFn } from \"../../_lib/buildFormatLongFn.js\";\n\nconst dateFormats = {\n full: \"EEEE, d MMMM y 'г.'\",\n long: \"d MMMM y 'г.'\",\n medium: \"d MMM y 'г.'\",\n short: \"dd.MM.y\",\n};\n\nconst timeFormats = {\n full: \"H:mm:ss zzzz\",\n long: \"H:mm:ss z\",\n medium: \"H:mm:ss\",\n short: \"H:mm\",\n};\n\nconst dateTimeFormats = {\n any: \"{{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: \"any\",\n }),\n};\n"],"names":[],"mappings":";;AAEA,MAAM,WAAW,GAAG;AACpB,EAAE,IAAI,EAAE,qBAAqB;AAC7B,EAAE,IAAI,EAAE,eAAe;AACvB,EAAE,MAAM,EAAE,cAAc;AACxB,EAAE,KAAK,EAAE,SAAS;AAClB,CAAC;;AAED,MAAM,WAAW,GAAG;AACpB,EAAE,IAAI,EAAE,cAAc;AACtB,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,MAAM,EAAE,SAAS;AACnB,EAAE,KAAK,EAAE,MAAM;AACf,CAAC;;AAED,MAAM,eAAe,GAAG;AACxB,EAAE,GAAG,EAAE,oBAAoB;AAC3B,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,KAAK;AACvB,GAAG,CAAC;AACJ;;;;","x_google_ignoreList":[0]}
@@ -1,93 +0,0 @@
1
- 'use strict';
2
-
3
- var isSameWeek = require('../../../isSameWeek.cjs');
4
-
5
- const accusativeWeekdays = [
6
- "воскресенье",
7
- "понедельник",
8
- "вторник",
9
- "среду",
10
- "четверг",
11
- "пятницу",
12
- "субботу",
13
- ];
14
-
15
- function lastWeek(day) {
16
- const weekday = accusativeWeekdays[day];
17
-
18
- switch (day) {
19
- case 0:
20
- return "'в прошлое " + weekday + " в' p";
21
- case 1:
22
- case 2:
23
- case 4:
24
- return "'в прошлый " + weekday + " в' p";
25
- case 3:
26
- case 5:
27
- case 6:
28
- return "'в прошлую " + weekday + " в' p";
29
- }
30
- }
31
-
32
- function thisWeek(day) {
33
- const weekday = accusativeWeekdays[day];
34
-
35
- if (day === 2 /* Tue */) {
36
- return "'во " + weekday + " в' p";
37
- } else {
38
- return "'в " + weekday + " в' p";
39
- }
40
- }
41
-
42
- function nextWeek(day) {
43
- const weekday = accusativeWeekdays[day];
44
-
45
- switch (day) {
46
- case 0:
47
- return "'в следующее " + weekday + " в' p";
48
- case 1:
49
- case 2:
50
- case 4:
51
- return "'в следующий " + weekday + " в' p";
52
- case 3:
53
- case 5:
54
- case 6:
55
- return "'в следующую " + weekday + " в' p";
56
- }
57
- }
58
-
59
- const formatRelativeLocale = {
60
- lastWeek: (date, baseDate, options) => {
61
- const day = date.getDay();
62
- if (isSameWeek.isSameWeek(date, baseDate, options)) {
63
- return thisWeek(day);
64
- } else {
65
- return lastWeek(day);
66
- }
67
- },
68
- yesterday: "'вчера в' p",
69
- today: "'сегодня в' p",
70
- tomorrow: "'завтра в' p",
71
- nextWeek: (date, baseDate, options) => {
72
- const day = date.getDay();
73
- if (isSameWeek.isSameWeek(date, baseDate, options)) {
74
- return thisWeek(day);
75
- } else {
76
- return nextWeek(day);
77
- }
78
- },
79
- other: "P",
80
- };
81
-
82
- const formatRelative = (token, date, baseDate, options) => {
83
- const format = formatRelativeLocale[token];
84
-
85
- if (typeof format === "function") {
86
- return format(date, baseDate, options);
87
- }
88
-
89
- return format;
90
- };
91
-
92
- exports.formatRelative = formatRelative;
93
- //# sourceMappingURL=formatRelative.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatRelative.cjs","sources":["../../../../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatRelative.js"],"sourcesContent":["import { isSameWeek } from \"../../../isSameWeek.js\";\n\nconst accusativeWeekdays = [\n \"воскресенье\",\n \"понедельник\",\n \"вторник\",\n \"среду\",\n \"четверг\",\n \"пятницу\",\n \"субботу\",\n];\n\nfunction lastWeek(day) {\n const weekday = accusativeWeekdays[day];\n\n switch (day) {\n case 0:\n return \"'в прошлое \" + weekday + \" в' p\";\n case 1:\n case 2:\n case 4:\n return \"'в прошлый \" + weekday + \" в' p\";\n case 3:\n case 5:\n case 6:\n return \"'в прошлую \" + weekday + \" в' p\";\n }\n}\n\nfunction thisWeek(day) {\n const weekday = accusativeWeekdays[day];\n\n if (day === 2 /* Tue */) {\n return \"'во \" + weekday + \" в' p\";\n } else {\n return \"'в \" + weekday + \" в' p\";\n }\n}\n\nfunction nextWeek(day) {\n const weekday = accusativeWeekdays[day];\n\n switch (day) {\n case 0:\n return \"'в следующее \" + weekday + \" в' p\";\n case 1:\n case 2:\n case 4:\n return \"'в следующий \" + weekday + \" в' p\";\n case 3:\n case 5:\n case 6:\n return \"'в следующую \" + weekday + \" в' p\";\n }\n}\n\nconst formatRelativeLocale = {\n lastWeek: (date, baseDate, options) => {\n const day = date.getDay();\n if (isSameWeek(date, baseDate, options)) {\n return thisWeek(day);\n } else {\n return lastWeek(day);\n }\n },\n yesterday: \"'вчера в' p\",\n today: \"'сегодня в' p\",\n tomorrow: \"'завтра в' p\",\n nextWeek: (date, baseDate, options) => {\n const day = date.getDay();\n if (isSameWeek(date, baseDate, options)) {\n return thisWeek(day);\n } else {\n return nextWeek(day);\n }\n },\n other: \"P\",\n};\n\nexport const formatRelative = (token, date, baseDate, options) => {\n const format = formatRelativeLocale[token];\n\n if (typeof format === \"function\") {\n return format(date, baseDate, options);\n }\n\n return format;\n};\n"],"names":["isSameWeek"],"mappings":";;;;AAEA,MAAM,kBAAkB,GAAG;AAC3B,EAAE,aAAa;AACf,EAAE,aAAa;AACf,EAAE,SAAS;AACX,EAAE,OAAO;AACT,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,SAAS;AACX,CAAC;;AAED,SAAS,QAAQ,CAAC,GAAG,EAAE;AACvB,EAAE,MAAM,OAAO,GAAG,kBAAkB,CAAC,GAAG,CAAC;;AAEzC,EAAE,QAAQ,GAAG;AACb,IAAI,KAAK,CAAC;AACV,MAAM,OAAO,aAAa,GAAG,OAAO,GAAG,OAAO;AAC9C,IAAI,KAAK,CAAC;AACV,IAAI,KAAK,CAAC;AACV,IAAI,KAAK,CAAC;AACV,MAAM,OAAO,aAAa,GAAG,OAAO,GAAG,OAAO;AAC9C,IAAI,KAAK,CAAC;AACV,IAAI,KAAK,CAAC;AACV,IAAI,KAAK,CAAC;AACV,MAAM,OAAO,aAAa,GAAG,OAAO,GAAG,OAAO;AAC9C;AACA;;AAEA,SAAS,QAAQ,CAAC,GAAG,EAAE;AACvB,EAAE,MAAM,OAAO,GAAG,kBAAkB,CAAC,GAAG,CAAC;;AAEzC,EAAE,IAAI,GAAG,KAAK,CAAC,YAAY;AAC3B,IAAI,OAAO,MAAM,GAAG,OAAO,GAAG,OAAO;AACrC,EAAE,CAAC,MAAM;AACT,IAAI,OAAO,KAAK,GAAG,OAAO,GAA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CAAC;AAC1B,IAAI;AACJ,EAAE,CAAC;AACH,EAAE,KAAK,EAAE,GAAG;AACZ,CAAC;;AAEW,MAAC,cAAc,GAAG,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,KAAK;AAClE,EAAE,MAAM,MAAM,GAAG,oBAAoB,CAAC,KAAK,CAAC;;AAE5C,EAAE,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE;AACpC,IAAI,OAAO,MAAM,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC;AAC1C,EAAE;;AAEF,EAAE,OAAO,MAAM;AACf;;;;","x_google_ignoreList":[0]}
@@ -1,91 +0,0 @@
1
- import { isSameWeek } from '../../../isSameWeek.js';
2
-
3
- const accusativeWeekdays = [
4
- "воскресенье",
5
- "понедельник",
6
- "вторник",
7
- "среду",
8
- "четверг",
9
- "пятницу",
10
- "субботу",
11
- ];
12
-
13
- function lastWeek(day) {
14
- const weekday = accusativeWeekdays[day];
15
-
16
- switch (day) {
17
- case 0:
18
- return "'в прошлое " + weekday + " в' p";
19
- case 1:
20
- case 2:
21
- case 4:
22
- return "'в прошлый " + weekday + " в' p";
23
- case 3:
24
- case 5:
25
- case 6:
26
- return "'в прошлую " + weekday + " в' p";
27
- }
28
- }
29
-
30
- function thisWeek(day) {
31
- const weekday = accusativeWeekdays[day];
32
-
33
- if (day === 2 /* Tue */) {
34
- return "'во " + weekday + " в' p";
35
- } else {
36
- return "'в " + weekday + " в' p";
37
- }
38
- }
39
-
40
- function nextWeek(day) {
41
- const weekday = accusativeWeekdays[day];
42
-
43
- switch (day) {
44
- case 0:
45
- return "'в следующее " + weekday + " в' p";
46
- case 1:
47
- case 2:
48
- case 4:
49
- return "'в следующий " + weekday + " в' p";
50
- case 3:
51
- case 5:
52
- case 6:
53
- return "'в следующую " + weekday + " в' p";
54
- }
55
- }
56
-
57
- const formatRelativeLocale = {
58
- lastWeek: (date, baseDate, options) => {
59
- const day = date.getDay();
60
- if (isSameWeek(date, baseDate, options)) {
61
- return thisWeek(day);
62
- } else {
63
- return lastWeek(day);
64
- }
65
- },
66
- yesterday: "'вчера в' p",
67
- today: "'сегодня в' p",
68
- tomorrow: "'завтра в' p",
69
- nextWeek: (date, baseDate, options) => {
70
- const day = date.getDay();
71
- if (isSameWeek(date, baseDate, options)) {
72
- return thisWeek(day);
73
- } else {
74
- return nextWeek(day);
75
- }
76
- },
77
- other: "P",
78
- };
79
-
80
- const formatRelative = (token, date, baseDate, options) => {
81
- const format = formatRelativeLocale[token];
82
-
83
- if (typeof format === "function") {
84
- return format(date, baseDate, options);
85
- }
86
-
87
- return format;
88
- };
89
-
90
- export { formatRelative };
91
- //# sourceMappingURL=formatRelative.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatRelative.js","sources":["../../../../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatRelative.js"],"sourcesContent":["import { isSameWeek } from \"../../../isSameWeek.js\";\n\nconst accusativeWeekdays = [\n \"воскресенье\",\n \"понедельник\",\n \"вторник\",\n \"среду\",\n \"четверг\",\n \"пятницу\",\n \"субботу\",\n];\n\nfunction lastWeek(day) {\n const weekday = accusativeWeekdays[day];\n\n switch (day) {\n case 0:\n return \"'в прошлое \" + weekday + \" в' p\";\n case 1:\n case 2:\n case 4:\n return \"'в прошлый \" + weekday + \" в' p\";\n case 3:\n case 5:\n case 6:\n return \"'в прошлую \" + weekday + \" в' p\";\n }\n}\n\nfunction thisWeek(day) {\n const weekday = accusativeWeekdays[day];\n\n if (day === 2 /* Tue */) {\n return \"'во \" + weekday + \" в' p\";\n } else {\n return \"'в \" + weekday + \" в' p\";\n }\n}\n\nfunction nextWeek(day) {\n const weekday = accusativeWeekdays[day];\n\n switch (day) {\n case 0:\n return \"'в следующее \" + weekday + \" в' p\";\n case 1:\n case 2:\n case 4:\n return \"'в следующий \" + weekday + \" в' p\";\n case 3:\n case 5:\n case 6:\n return \"'в следующую \" + weekday + \" в' p\";\n }\n}\n\nconst formatRelativeLocale = {\n lastWeek: (date, baseDate, options) => {\n const day = date.getDay();\n if (isSameWeek(date, baseDate, options)) {\n return thisWeek(day);\n } else {\n return lastWeek(day);\n }\n },\n yesterday: \"'вчера в' p\",\n today: \"'сегодня в' p\",\n tomorrow: \"'завтра в' p\",\n nextWeek: (date, baseDate, options) => {\n const day = date.getDay();\n if (isSameWeek(date, baseDate, options)) {\n return thisWeek(day);\n } else {\n return nextWeek(day);\n }\n },\n other: \"P\",\n};\n\nexport const formatRelative = (token, date, baseDate, options) => {\n const format = formatRelativeLocale[token];\n\n if (typeof format === \"function\") {\n return format(date, baseDate, options);\n }\n\n return format;\n};\n"],"names":[],"mappings":";;AAEA,MAAM,kBAAkB,GAAG;AAC3B,EAAE,aAAa;AACf,EAAE,aAAa;AACf,EAAE,SAAS;AACX,EAAE,OAAO;AACT,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,SAAS;AACX,CAAC;;AAED,SAAS,QAAQ,CAAC,GAAG,EAAE;AACvB,EAAE,MAAM,OAAO,GAAG,kBAAkB,CAAC,GAAG,CAAC;;AAEzC,EAAE,QAAQ,GAAG;AACb,IAAI,KAAK,CAAC;AACV,MAAM,OAAO,aAAa,GAAG,OAAO,GAAG,OAAO;AAC9C,IAAI,KAAK,CAAC;AACV,IAAI,KAAK,CAAC;AACV,IAAI,KAAK,CAAC;AACV,MAAM,OAAO,aAAa,GAAG,OAAO,GAAG,OAAO;AAC9C,IAAI,KAAK,CAAC;AACV,IAAI,KAAK,CAAC;AACV,IAAI,KAAK,CAAC;AACV,MAAM,OAAO,aAAa,GAAG,OAAO,GAAG,OAAO;AAC9C;AACA;;AAEA,SAAS,QAAQ,CAAC,GAAG,EAAE;AACvB,EAAE,MAAM,OAAO,GAAG,kBAAkB,CAAC,GAAG,CAAC;;AAEzC,EAAE,IAAI,GAAG,KAAK,CAAC,YAAY;AAC3B,IAAI,OAAO,MAAM,GAAG,OAAO,GAAG,OAAO;AACrC,EAA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