@okam/stack-ui 1.32.5 → 1.32.6

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 (447) hide show
  1. package/index115.js +1 -1
  2. package/index115.mjs +6 -6
  3. package/index116.js +1 -1
  4. package/index116.mjs +4 -4
  5. package/index118.js +1 -1
  6. package/index118.mjs +3 -3
  7. package/index119.js +1 -1
  8. package/index119.mjs +3 -3
  9. package/index120.js +1 -1
  10. package/index120.mjs +6 -6
  11. package/index121.js +1 -1
  12. package/index121.mjs +4 -4
  13. package/index122.js +1 -1
  14. package/index122.mjs +2 -2
  15. package/index123.js +1 -1
  16. package/index123.mjs +1 -1
  17. package/index124.js +1 -1
  18. package/index124.mjs +1 -1
  19. package/index125.js +1 -1
  20. package/index125.mjs +4 -4
  21. package/index139.js +1 -1
  22. package/index139.mjs +1 -1
  23. package/index140.js +1 -1
  24. package/index140.mjs +23 -23
  25. package/index141.js +1 -1
  26. package/index141.mjs +3 -3
  27. package/index144.js +1 -1
  28. package/index144.mjs +23 -21
  29. package/index145.js +1 -1
  30. package/index145.mjs +113 -38
  31. package/index146.js +1 -1
  32. package/index146.mjs +22 -25
  33. package/index147.js +1 -1
  34. package/index147.mjs +35 -251
  35. package/index148.js +1 -1
  36. package/index148.mjs +25 -106
  37. package/index149.js +1 -1
  38. package/index149.mjs +242 -320
  39. package/index150.js +1 -1
  40. package/index150.mjs +105 -23
  41. package/index151.js +1 -1
  42. package/index151.mjs +323 -104
  43. package/index152.js +1 -1
  44. package/index152.mjs +1 -1
  45. package/index153.js +1 -1
  46. package/index153.mjs +2 -2
  47. package/index154.js +1 -1
  48. package/index154.mjs +1 -1
  49. package/index155.js +1 -1
  50. package/index155.mjs +2 -2
  51. package/index158.js +1 -1
  52. package/index158.mjs +2 -2
  53. package/index159.js +1 -1
  54. package/index159.mjs +2 -2
  55. package/index160.js +1 -1
  56. package/index160.mjs +2 -2
  57. package/index163.js +1 -1
  58. package/index163.mjs +136 -71
  59. package/index164.js +1 -1
  60. package/index164.mjs +132 -50
  61. package/index165.js +1 -1
  62. package/index165.mjs +96 -21
  63. package/index166.js +1 -1
  64. package/index166.mjs +24 -27
  65. package/index167.js +1 -1
  66. package/index167.mjs +381 -33
  67. package/index168.js +1 -1
  68. package/index168.mjs +90 -24
  69. package/index169.js +1 -1
  70. package/index169.mjs +72 -217
  71. package/index170.js +1 -1
  72. package/index170.mjs +50 -132
  73. package/index171.js +1 -1
  74. package/index171.mjs +21 -14
  75. package/index172.js +1 -1
  76. package/index172.mjs +30 -4
  77. package/index173.js +1 -1
  78. package/index173.mjs +33 -6
  79. package/index174.js +1 -1
  80. package/index174.mjs +27 -35
  81. package/index175.js +1 -1
  82. package/index175.mjs +215 -17
  83. package/index176.js +1 -1
  84. package/index176.mjs +14 -43
  85. package/index177.js +1 -1
  86. package/index177.mjs +4 -154
  87. package/index178.js +1 -1
  88. package/index178.mjs +6 -100
  89. package/index179.js +1 -1
  90. package/index179.mjs +37 -17
  91. package/index180.js +1 -1
  92. package/index180.mjs +16 -134
  93. package/index181.js +1 -1
  94. package/index181.mjs +40 -93
  95. package/index182.js +1 -1
  96. package/index182.mjs +151 -24
  97. package/index183.js +1 -1
  98. package/index183.mjs +100 -381
  99. package/index184.js +1 -1
  100. package/index184.mjs +16 -94
  101. package/index185.js +1 -1
  102. package/index185.mjs +2 -2
  103. package/index186.js +1 -1
  104. package/index186.mjs +2 -2
  105. package/index189.js +1 -1
  106. package/index189.mjs +2 -2
  107. package/index190.js +1 -1
  108. package/index190.mjs +2 -2
  109. package/index191.js +1 -1
  110. package/index191.mjs +2 -2
  111. package/index192.js +1 -1
  112. package/index192.mjs +1 -1
  113. package/index193.js +1 -1
  114. package/index193.mjs +2 -2
  115. package/index194.js +1 -1
  116. package/index194.mjs +1 -1
  117. package/index195.js +1 -1
  118. package/index195.mjs +1 -1
  119. package/index196.js +1 -1
  120. package/index196.mjs +1 -1
  121. package/index198.js +1 -1
  122. package/index198.mjs +70 -201
  123. package/index199.js +1 -1
  124. package/index199.mjs +91 -60
  125. package/index200.js +1 -1
  126. package/index200.mjs +151 -139
  127. package/index201.js +1 -1
  128. package/index201.mjs +72 -125
  129. package/index202.js +1 -1
  130. package/index202.mjs +38 -220
  131. package/index203.js +1 -1
  132. package/index203.mjs +5 -190
  133. package/index204.js +1 -1
  134. package/index204.mjs +60 -68
  135. package/index205.js +1 -1
  136. package/index205.mjs +53 -273
  137. package/index206.js +1 -1
  138. package/index206.mjs +191 -86
  139. package/index207.js +1 -1
  140. package/index207.mjs +56 -180
  141. package/index208.js +1 -1
  142. package/index208.mjs +134 -75
  143. package/index209.js +1 -1
  144. package/index209.mjs +118 -52
  145. package/index21.js +1 -1
  146. package/index21.mjs +96 -92
  147. package/index210.js +1 -1
  148. package/index210.mjs +214 -116
  149. package/index211.js +1 -1
  150. package/index211.mjs +181 -107
  151. package/index212.js +1 -1
  152. package/index212.mjs +61 -114
  153. package/index213.js +1 -1
  154. package/index213.mjs +272 -65
  155. package/index214.js +1 -1
  156. package/index214.mjs +93 -105
  157. package/index215.js +1 -1
  158. package/index215.mjs +183 -47
  159. package/index216.js +1 -1
  160. package/index216.mjs +77 -86
  161. package/index217.js +1 -1
  162. package/index217.mjs +53 -65
  163. package/index218.js +1 -1
  164. package/index218.mjs +122 -52
  165. package/index219.js +1 -1
  166. package/index219.mjs +111 -94
  167. package/index220.js +1 -5
  168. package/index220.mjs +117 -75
  169. package/index221.js +1 -1
  170. package/index221.mjs +63 -2016
  171. package/index222.js +1 -1
  172. package/index222.mjs +105 -54
  173. package/index223.js +1 -1
  174. package/index223.mjs +50 -186
  175. package/index224.js +1 -1
  176. package/index224.mjs +89 -68
  177. package/index225.js +1 -1
  178. package/index225.mjs +68 -93
  179. package/index226.js +1 -1
  180. package/index226.mjs +52 -151
  181. package/index227.js +1 -1
  182. package/index227.mjs +100 -72
  183. package/index228.js +5 -1
  184. package/index228.mjs +78 -40
  185. package/index229.js +1 -1
  186. package/index229.mjs +2025 -5
  187. package/index230.js +1 -1
  188. package/index230.mjs +59 -61
  189. package/index231.js +1 -1
  190. package/index231.mjs +187 -58
  191. package/index232.js +1 -1
  192. package/index232.mjs +71 -19
  193. package/index233.js +1 -1
  194. package/index233.mjs +45 -20
  195. package/index234.js +1 -1
  196. package/index234.mjs +30 -20
  197. package/index235.js +1 -1
  198. package/index235.mjs +19 -19
  199. package/index236.js +1 -1
  200. package/index236.mjs +19 -19
  201. package/index237.js +1 -1
  202. package/index237.mjs +19 -19
  203. package/index238.js +1 -1
  204. package/index238.mjs +15 -15
  205. package/index239.js +1 -1
  206. package/index239.mjs +19 -19
  207. package/index240.js +1 -1
  208. package/index240.mjs +19 -19
  209. package/index241.js +1 -1
  210. package/index241.mjs +19 -19
  211. package/index242.js +1 -1
  212. package/index242.mjs +16 -16
  213. package/index243.js +1 -1
  214. package/index243.mjs +19 -19
  215. package/index244.js +1 -1
  216. package/index244.mjs +16 -16
  217. package/index245.js +1 -1
  218. package/index245.mjs +16 -16
  219. package/index246.js +1 -1
  220. package/index246.mjs +19 -19
  221. package/index247.js +1 -1
  222. package/index247.mjs +19 -19
  223. package/index248.js +1 -1
  224. package/index248.mjs +19 -19
  225. package/index249.js +1 -1
  226. package/index249.mjs +18 -18
  227. package/index250.js +1 -1
  228. package/index250.mjs +19 -19
  229. package/index251.js +1 -1
  230. package/index251.mjs +19 -19
  231. package/index252.js +1 -1
  232. package/index252.mjs +19 -19
  233. package/index253.js +1 -1
  234. package/index253.mjs +16 -16
  235. package/index254.js +1 -1
  236. package/index254.mjs +19 -19
  237. package/index255.js +1 -1
  238. package/index255.mjs +19 -19
  239. package/index256.js +1 -1
  240. package/index256.mjs +16 -16
  241. package/index257.js +1 -1
  242. package/index257.mjs +18 -18
  243. package/index258.js +1 -1
  244. package/index258.mjs +16 -16
  245. package/index259.js +1 -1
  246. package/index259.mjs +16 -16
  247. package/index260.js +1 -1
  248. package/index260.mjs +16 -16
  249. package/index261.js +1 -1
  250. package/index261.mjs +19 -19
  251. package/index262.js +1 -1
  252. package/index262.mjs +16 -16
  253. package/index263.js +1 -1
  254. package/index263.mjs +15 -15
  255. package/index264.js +1 -1
  256. package/index264.mjs +19 -19
  257. package/index265.js +1 -1
  258. package/index265.mjs +19 -19
  259. package/index266.js +1 -1
  260. package/index266.mjs +19 -71
  261. package/index267.js +1 -1
  262. package/index267.mjs +20 -45
  263. package/index268.js +1 -1
  264. package/index268.mjs +20 -30
  265. package/index270.js +1 -1
  266. package/index270.mjs +1 -1
  267. package/index275.js +1 -1
  268. package/index275.mjs +2 -2
  269. package/index280.js +1 -1
  270. package/index280.mjs +1 -1
  271. package/index283.js +1 -1
  272. package/index283.mjs +1 -1
  273. package/index284.js +1 -1
  274. package/index284.mjs +1 -1
  275. package/index285.js +1 -1
  276. package/index285.mjs +44 -126
  277. package/index286.js +1 -1
  278. package/index286.mjs +16 -191
  279. package/index287.js +1 -1
  280. package/index287.mjs +16 -10
  281. package/index288.js +1 -1
  282. package/index288.mjs +16 -4
  283. package/index289.js +1 -1
  284. package/index289.mjs +16 -37
  285. package/index290.js +1 -1
  286. package/index290.mjs +16 -6
  287. package/index291.js +1 -1
  288. package/index291.mjs +16 -30
  289. package/index292.js +1 -1
  290. package/index292.mjs +16 -7
  291. package/index293.js +1 -1
  292. package/index293.mjs +16 -49
  293. package/index294.js +1 -1
  294. package/index294.mjs +15 -15
  295. package/index295.js +1 -1
  296. package/index295.mjs +15 -15
  297. package/index296.js +1 -1
  298. package/index296.mjs +12 -12
  299. package/index297.js +1 -1
  300. package/index297.mjs +15 -15
  301. package/index298.js +1 -1
  302. package/index298.mjs +15 -15
  303. package/index299.js +1 -1
  304. package/index299.mjs +15 -15
  305. package/index300.js +1 -1
  306. package/index300.mjs +15 -15
  307. package/index301.js +1 -1
  308. package/index301.mjs +15 -15
  309. package/index302.js +1 -1
  310. package/index302.mjs +15 -15
  311. package/index303.js +1 -1
  312. package/index303.mjs +15 -15
  313. package/index304.js +1 -1
  314. package/index304.mjs +12 -12
  315. package/index305.js +1 -1
  316. package/index305.mjs +15 -15
  317. package/index306.js +1 -1
  318. package/index306.mjs +15 -15
  319. package/index307.js +1 -1
  320. package/index307.mjs +15 -15
  321. package/index308.js +1 -1
  322. package/index308.mjs +12 -12
  323. package/index309.js +1 -1
  324. package/index309.mjs +15 -15
  325. package/index310.js +1 -1
  326. package/index310.mjs +15 -15
  327. package/index311.js +1 -1
  328. package/index311.mjs +15 -15
  329. package/index312.js +1 -1
  330. package/index312.mjs +12 -12
  331. package/index313.js +1 -1
  332. package/index313.mjs +15 -15
  333. package/index314.js +1 -1
  334. package/index314.mjs +15 -15
  335. package/index315.js +1 -1
  336. package/index315.mjs +15 -15
  337. package/index316.js +1 -1
  338. package/index316.mjs +12 -12
  339. package/index317.js +1 -1
  340. package/index317.mjs +15 -15
  341. package/index318.js +1 -1
  342. package/index318.mjs +15 -15
  343. package/index319.js +1 -1
  344. package/index319.mjs +12 -12
  345. package/index320.js +1 -1
  346. package/index320.mjs +130 -15
  347. package/index321.js +1 -1
  348. package/index321.mjs +191 -16
  349. package/index322.js +1 -1
  350. package/index322.mjs +10 -16
  351. package/index323.js +1 -1
  352. package/index323.mjs +4 -16
  353. package/index324.js +1 -1
  354. package/index324.mjs +37 -16
  355. package/index325.js +1 -1
  356. package/index325.mjs +6 -16
  357. package/index326.js +1 -1
  358. package/index326.mjs +30 -16
  359. package/index327.js +1 -1
  360. package/index327.mjs +7 -16
  361. package/index328.js +1 -1
  362. package/index328.mjs +1 -1
  363. package/index329.js +1 -1
  364. package/index329.mjs +1 -1
  365. package/index333.js +1 -1
  366. package/index333.mjs +3 -3
  367. package/index339.js +1 -1
  368. package/index339.mjs +1 -1
  369. package/index340.js +1 -1
  370. package/index340.mjs +1 -1
  371. package/index343.js +1 -1
  372. package/index343.mjs +1 -1
  373. package/index345.js +1 -1
  374. package/index345.mjs +8 -6
  375. package/index346.js +1 -1
  376. package/index346.mjs +7 -117
  377. package/index347.js +1 -1
  378. package/index347.mjs +7 -71
  379. package/index348.js +1 -1
  380. package/index348.mjs +7 -7
  381. package/index349.js +1 -1
  382. package/index349.mjs +7 -7
  383. package/index350.js +1 -1
  384. package/index350.mjs +7 -7
  385. package/index351.js +1 -1
  386. package/index351.mjs +4 -4
  387. package/index352.js +1 -1
  388. package/index352.mjs +4 -4
  389. package/index353.js +1 -1
  390. package/index353.mjs +7 -7
  391. package/index354.js +1 -1
  392. package/index354.mjs +4 -4
  393. package/index355.js +1 -1
  394. package/index355.mjs +4 -4
  395. package/index356.js +1 -1
  396. package/index356.mjs +7 -7
  397. package/index357.js +1 -1
  398. package/index357.mjs +7 -7
  399. package/index358.js +1 -1
  400. package/index358.mjs +4 -4
  401. package/index359.js +1 -1
  402. package/index359.mjs +7 -7
  403. package/index360.js +1 -1
  404. package/index360.mjs +4 -4
  405. package/index361.js +1 -1
  406. package/index361.mjs +7 -7
  407. package/index362.js +1 -1
  408. package/index362.mjs +7 -7
  409. package/index363.js +1 -1
  410. package/index363.mjs +7 -7
  411. package/index364.js +1 -1
  412. package/index364.mjs +7 -7
  413. package/index365.js +1 -1
  414. package/index365.mjs +7 -7
  415. package/index366.js +1 -1
  416. package/index366.mjs +4 -4
  417. package/index367.js +1 -1
  418. package/index367.mjs +4 -4
  419. package/index368.js +1 -1
  420. package/index368.mjs +4 -4
  421. package/index369.js +1 -1
  422. package/index369.mjs +7 -7
  423. package/index370.js +1 -1
  424. package/index370.mjs +7 -7
  425. package/index371.js +1 -1
  426. package/index371.mjs +4 -4
  427. package/index372.js +1 -1
  428. package/index372.mjs +7 -7
  429. package/index373.js +1 -1
  430. package/index373.mjs +7 -7
  431. package/index374.js +1 -1
  432. package/index374.mjs +4 -4
  433. package/index375.js +1 -1
  434. package/index375.mjs +7 -7
  435. package/index376.js +1 -1
  436. package/index376.mjs +7 -7
  437. package/index377.js +1 -1
  438. package/index377.mjs +7 -7
  439. package/index378.js +1 -1
  440. package/index378.mjs +7 -7
  441. package/index379.js +1 -1
  442. package/index379.mjs +117 -7
  443. package/index380.js +1 -1
  444. package/index380.mjs +71 -7
  445. package/index381.js +1 -1
  446. package/index381.mjs +6 -8
  447. package/package.json +1 -1
package/index189.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { CalendarDate as $ } from "./index169.mjs";
2
- import { GregorianCalendar as c } from "./index184.mjs";
1
+ import { CalendarDate as $ } from "./index175.mjs";
2
+ import { GregorianCalendar as c } from "./index168.mjs";
3
3
  const f = [
4
4
  [
5
5
  1868,
package/index190.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index169.js"),t=require("./index184.js"),o=-543;class i extends t.GregorianCalendar{fromJulianDay(e){let r=super.fromJulianDay(e),u=t.getExtendedYear(r.era,r.year);return new d.CalendarDate(this,u-o,r.month,r.day)}toJulianDay(e){return super.toJulianDay(n(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(n(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function n(a){let[e,r]=t.fromExtendedYear(a.year+o);return new d.CalendarDate(e,r,a.month,a.day)}exports.BuddhistCalendar=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index175.js"),t=require("./index168.js"),o=-543;class i extends t.GregorianCalendar{fromJulianDay(e){let r=super.fromJulianDay(e),u=t.getExtendedYear(r.era,r.year);return new d.CalendarDate(this,u-o,r.month,r.day)}toJulianDay(e){return super.toJulianDay(n(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(n(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function n(a){let[e,r]=t.fromExtendedYear(a.year+o);return new d.CalendarDate(e,r,a.month,a.day)}exports.BuddhistCalendar=i;
package/index190.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { CalendarDate as n } from "./index169.mjs";
2
- import { GregorianCalendar as s, getExtendedYear as $, fromExtendedYear as c } from "./index184.mjs";
1
+ import { CalendarDate as n } from "./index175.mjs";
2
+ import { GregorianCalendar as s, getExtendedYear as $, fromExtendedYear as c } from "./index168.mjs";
3
3
  const o = -543;
4
4
  class u extends s {
5
5
  fromJulianDay(e) {
package/index191.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index169.js"),o=require("./index184.js"),n=1911;function l(r){return r.era==="minguo"?r.year+n:1-r.year+n}function u(r){let e=r-n;return e>0?["minguo",e]:["before_minguo",1-e]}class c extends o.GregorianCalendar{fromJulianDay(e){let a=super.fromJulianDay(e),t=o.getExtendedYear(a.era,a.year),[s,g]=u(t);return new f.CalendarDate(this,s,g,a.month,a.day)}toJulianDay(e){return super.toJulianDay(i(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[a,t]=u(l(e));e.era=a,e.year=t}isInverseEra(e){return e.era==="before_minguo"}getDaysInMonth(e){return super.getDaysInMonth(i(e))}getYearsInEra(e){return e.era==="before_minguo"?9999:9999-n}constructor(...e){super(...e),this.identifier="roc"}}function i(r){let[e,a]=o.fromExtendedYear(l(r));return new f.CalendarDate(e,a,r.month,r.day)}exports.TaiwanCalendar=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index175.js"),o=require("./index168.js"),n=1911;function l(r){return r.era==="minguo"?r.year+n:1-r.year+n}function u(r){let e=r-n;return e>0?["minguo",e]:["before_minguo",1-e]}class c extends o.GregorianCalendar{fromJulianDay(e){let a=super.fromJulianDay(e),t=o.getExtendedYear(a.era,a.year),[s,g]=u(t);return new f.CalendarDate(this,s,g,a.month,a.day)}toJulianDay(e){return super.toJulianDay(i(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[a,t]=u(l(e));e.era=a,e.year=t}isInverseEra(e){return e.era==="before_minguo"}getDaysInMonth(e){return super.getDaysInMonth(i(e))}getYearsInEra(e){return e.era==="before_minguo"?9999:9999-n}constructor(...e){super(...e),this.identifier="roc"}}function i(r){let[e,a]=o.fromExtendedYear(l(r));return new f.CalendarDate(e,a,r.month,r.day)}exports.TaiwanCalendar=c;
package/index191.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { CalendarDate as f } from "./index169.mjs";
2
- import { GregorianCalendar as c, getExtendedYear as s, fromExtendedYear as g } from "./index184.mjs";
1
+ import { CalendarDate as f } from "./index175.mjs";
2
+ import { GregorianCalendar as c, getExtendedYear as s, fromExtendedYear as g } from "./index168.mjs";
3
3
  const n = 1911;
4
4
  function i(r) {
5
5
  return r.era === "minguo" ? r.year + n : 1 - r.year + n;
package/index192.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index169.js"),u=require("./index188.js"),o=1948320,l=[0,31,62,93,124,155,186,216,246,276,306,336];class c{fromJulianDay(e){let r=e-o,a=1+Math.floor((33*r+3)/12053),i=365*(a-1)+Math.floor((8*a+21)/33),t=r-i,n=t<216?Math.floor(t/31):Math.floor((t-6)/30),s=t-l[n]+1;return new f.CalendarDate(this,a,n+1,s)}toJulianDay(e){let r=o-1+365*(e.year-1)+Math.floor((8*e.year+21)/33);return r+=l[e.month-1],r+=e.day,r}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||u.mod(25*e.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}exports.PersianCalendar=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index175.js"),u=require("./index188.js"),o=1948320,l=[0,31,62,93,124,155,186,216,246,276,306,336];class c{fromJulianDay(e){let r=e-o,a=1+Math.floor((33*r+3)/12053),i=365*(a-1)+Math.floor((8*a+21)/33),t=r-i,n=t<216?Math.floor(t/31):Math.floor((t-6)/30),s=t-l[n]+1;return new f.CalendarDate(this,a,n+1,s)}toJulianDay(e){let r=o-1+365*(e.year-1)+Math.floor((8*e.year+21)/33);return r+=l[e.month-1],r+=e.day,r}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||u.mod(25*e.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}exports.PersianCalendar=c;
package/index192.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { CalendarDate as i } from "./index169.mjs";
1
+ import { CalendarDate as i } from "./index175.mjs";
2
2
  import { mod as c } from "./index188.mjs";
3
3
  const n = 1948320, f = [
4
4
  0,
package/index193.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index169.js"),t=require("./index184.js"),u=78,y=80;class f extends t.GregorianCalendar{fromJulianDay(e){let i=super.fromJulianDay(e),l=i.year-u,r=e-t.gregorianToJulianDay(i.era,i.year,1,1),n;r<y?(l--,n=t.isLeapYear(i.year-1)?31:30,r+=n+155+90+10):(n=t.isLeapYear(i.year)?31:30,r-=y);let a,s;if(r<n)a=1,s=r+1;else{let o=r-n;o<155?(a=Math.floor(o/31)+2,s=o%31+1):(o-=155,a=Math.floor(o/30)+7,s=o%30+1)}return new d.CalendarDate(this,l,a,s)}toJulianDay(e){let i=e.year+u,[l,r]=t.fromExtendedYear(i),n,a;return t.isLeapYear(r)?(n=31,a=t.gregorianToJulianDay(l,r,3,21)):(n=30,a=t.gregorianToJulianDay(l,r,3,22)),e.month===1?a+e.day-1:(a+=n+Math.min(e.month-2,5)*31,e.month>=8&&(a+=(e.month-7)*30),a+=e.day-1,a)}getDaysInMonth(e){return e.month===1&&t.isLeapYear(e.year+u)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}exports.IndianCalendar=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index175.js"),t=require("./index168.js"),u=78,y=80;class f extends t.GregorianCalendar{fromJulianDay(e){let i=super.fromJulianDay(e),l=i.year-u,r=e-t.gregorianToJulianDay(i.era,i.year,1,1),n;r<y?(l--,n=t.isLeapYear(i.year-1)?31:30,r+=n+155+90+10):(n=t.isLeapYear(i.year)?31:30,r-=y);let a,s;if(r<n)a=1,s=r+1;else{let o=r-n;o<155?(a=Math.floor(o/31)+2,s=o%31+1):(o-=155,a=Math.floor(o/30)+7,s=o%30+1)}return new d.CalendarDate(this,l,a,s)}toJulianDay(e){let i=e.year+u,[l,r]=t.fromExtendedYear(i),n,a;return t.isLeapYear(r)?(n=31,a=t.gregorianToJulianDay(l,r,3,21)):(n=30,a=t.gregorianToJulianDay(l,r,3,22)),e.month===1?a+e.day-1:(a+=n+Math.min(e.month-2,5)*31,e.month>=8&&(a+=(e.month-7)*30),a+=e.day-1,a)}getDaysInMonth(e){return e.month===1&&t.isLeapYear(e.year+u)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}exports.IndianCalendar=f;
package/index193.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { CalendarDate as c } from "./index169.mjs";
2
- import { GregorianCalendar as y, gregorianToJulianDay as f, isLeapYear as s, fromExtendedYear as d } from "./index184.mjs";
1
+ import { CalendarDate as c } from "./index175.mjs";
2
+ import { GregorianCalendar as y, gregorianToJulianDay as f, isLeapYear as s, fromExtendedYear as d } from "./index168.mjs";
3
3
  const $ = 78, b = 80;
4
4
  class p extends y {
5
5
  fromJulianDay(e) {
package/index194.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./index169.js"),d=1948440,U=1948439,n=1300,u=1600,h=460322;function $(a,e,r,t){return t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+a-1}function p(a,e,r){let t=Math.floor((30*(r-e)+10646)/10631),C=Math.min(12,Math.ceil((r-(29+$(e,t,1,1)))/29.5)+1),l=r-$(e,t,C,1)+1;return new B.CalendarDate(a,t,C,l)}function b(a){return(14+11*a)%30<11}class Q{fromJulianDay(e){return p(this,d,e)}toJulianDay(e){return $(d,e.year,e.month,e.day)}getDaysInMonth(e){let r=29+e.month%2;return e.month===12&&b(e.year)&&r++,r}getMonthsInYear(){return 12}getDaysInYear(e){return b(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class w extends Q{fromJulianDay(e){return p(this,U,e)}toJulianDay(e){return $(U,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}const J="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let y,s;function g(a){return h+s[a-n]}function f(a,e){let r=a-n,t=1<<11-(e-1);return y[r]&t?30:29}function m(a,e){let r=g(a);for(let t=1;t<e;t++)r+=f(a,t);return r}function D(a){return s[a+1-n]-s[a-n]}class q extends Q{fromJulianDay(e){let r=e-d,t=g(n),C=g(u);if(r<t||r>C)return super.fromJulianDay(e);{let l=n-1,i=1,o=1;for(;o>0;){l++,o=r-g(l)+1;let c=D(l);if(o===c){i=12;break}else if(o<c){let A=f(l,i);for(i=1;o>A;)o-=A,i++,A=f(l,i);break}}return new B.CalendarDate(this,l,i,r-m(l,i)+1)}}toJulianDay(e){return e.year<n||e.year>u?super.toJulianDay(e):d+m(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<n||e.year>u?super.getDaysInMonth(e):f(e.year,e.month)}getDaysInYear(e){return e.year<n||e.year>u?super.getDaysInYear(e):D(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",y||(y=new Uint16Array(Uint8Array.from(atob(J),e=>e.charCodeAt(0)).buffer)),!s){s=new Uint32Array(u-n+1);let e=0;for(let r=n;r<=u;r++){s[r-n]=e;for(let t=1;t<=12;t++)e+=f(r,t)}}}}exports.IslamicCivilCalendar=Q;exports.IslamicTabularCalendar=w;exports.IslamicUmalquraCalendar=q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./index175.js"),d=1948440,U=1948439,n=1300,u=1600,h=460322;function $(a,e,r,t){return t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+a-1}function p(a,e,r){let t=Math.floor((30*(r-e)+10646)/10631),C=Math.min(12,Math.ceil((r-(29+$(e,t,1,1)))/29.5)+1),l=r-$(e,t,C,1)+1;return new B.CalendarDate(a,t,C,l)}function b(a){return(14+11*a)%30<11}class Q{fromJulianDay(e){return p(this,d,e)}toJulianDay(e){return $(d,e.year,e.month,e.day)}getDaysInMonth(e){let r=29+e.month%2;return e.month===12&&b(e.year)&&r++,r}getMonthsInYear(){return 12}getDaysInYear(e){return b(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class w extends Q{fromJulianDay(e){return p(this,U,e)}toJulianDay(e){return $(U,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}const J="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let y,s;function g(a){return h+s[a-n]}function f(a,e){let r=a-n,t=1<<11-(e-1);return y[r]&t?30:29}function m(a,e){let r=g(a);for(let t=1;t<e;t++)r+=f(a,t);return r}function D(a){return s[a+1-n]-s[a-n]}class q extends Q{fromJulianDay(e){let r=e-d,t=g(n),C=g(u);if(r<t||r>C)return super.fromJulianDay(e);{let l=n-1,i=1,o=1;for(;o>0;){l++,o=r-g(l)+1;let c=D(l);if(o===c){i=12;break}else if(o<c){let A=f(l,i);for(i=1;o>A;)o-=A,i++,A=f(l,i);break}}return new B.CalendarDate(this,l,i,r-m(l,i)+1)}}toJulianDay(e){return e.year<n||e.year>u?super.toJulianDay(e):d+m(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<n||e.year>u?super.getDaysInMonth(e):f(e.year,e.month)}getDaysInYear(e){return e.year<n||e.year>u?super.getDaysInYear(e):D(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",y||(y=new Uint16Array(Uint8Array.from(atob(J),e=>e.charCodeAt(0)).buffer)),!s){s=new Uint32Array(u-n+1);let e=0;for(let r=n;r<=u;r++){s[r-n]=e;for(let t=1;t<=12;t++)e+=f(r,t)}}}}exports.IslamicCivilCalendar=Q;exports.IslamicTabularCalendar=w;exports.IslamicUmalquraCalendar=q;
package/index194.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { CalendarDate as D } from "./index169.mjs";
1
+ import { CalendarDate as D } from "./index175.mjs";
2
2
  const g = 1948440, y = 1948439, n = 1300, f = 1600, h = 460322;
3
3
  function d(a, e, r, t) {
4
4
  return t + Math.ceil(29.5 * (r - 1)) + (e - 1) * 354 + Math.floor((3 + 11 * e) / 30) + a - 1;
package/index195.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./index169.js"),b=require("./index188.js"),y=347997,h=1080,M=24*h,T=29,w=12*h+793,D=T*M+w;function n(e){return b.mod(e*7+1,19)<7}function i(e){let r=Math.floor((235*e-234)/19),t=12084+13753*r,f=r*29+Math.floor(t/25920);return b.mod(3*(f+1),7)<3&&(f+=1),f}function O(e){let r=i(e-1),t=i(e);return i(e+1)-t===356?2:t-r===382?1:0}function c(e){return i(e)+O(e)}function g(e){return c(e+1)-c(e)}function A(e){let r=g(e);switch(r>380&&(r-=30),r){case 353:return 0;case 354:return 1;case 355:return 2}}function u(e,r){if(r>=6&&!n(e)&&r++,r===4||r===7||r===9||r===11||r===13)return 29;let t=A(e);return r===2?t===2?30:29:r===3?t===0?29:30:r===6?n(e)?30:0:30}class H{fromJulianDay(r){let t=r-y,f=t*M/D,a=Math.floor((19*f+234)/235)+1,s=c(a),l=Math.floor(t-s);for(;l<1;)a--,s=c(a),l=Math.floor(t-s);let $=1,o=0;for(;o<l;)o+=u(a,$),$++;$--,o-=u(a,$);let Y=l-o;return new v.CalendarDate(this,a,$,Y)}toJulianDay(r){let t=c(r.year);for(let f=1;f<r.month;f++)t+=u(r.year,f);return t+r.day+y}getDaysInMonth(r){return u(r.year,r.month)}getMonthsInYear(r){return n(r.year)?13:12}getDaysInYear(r){return g(r.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(r,t){t.year!==r.year&&(n(t.year)&&!n(r.year)&&t.month>6?r.month--:!n(t.year)&&n(r.year)&&t.month>6&&r.month++)}constructor(){this.identifier="hebrew"}}exports.HebrewCalendar=H;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./index175.js"),b=require("./index188.js"),y=347997,h=1080,M=24*h,T=29,w=12*h+793,D=T*M+w;function n(e){return b.mod(e*7+1,19)<7}function i(e){let r=Math.floor((235*e-234)/19),t=12084+13753*r,f=r*29+Math.floor(t/25920);return b.mod(3*(f+1),7)<3&&(f+=1),f}function O(e){let r=i(e-1),t=i(e);return i(e+1)-t===356?2:t-r===382?1:0}function c(e){return i(e)+O(e)}function g(e){return c(e+1)-c(e)}function A(e){let r=g(e);switch(r>380&&(r-=30),r){case 353:return 0;case 354:return 1;case 355:return 2}}function u(e,r){if(r>=6&&!n(e)&&r++,r===4||r===7||r===9||r===11||r===13)return 29;let t=A(e);return r===2?t===2?30:29:r===3?t===0?29:30:r===6?n(e)?30:0:30}class H{fromJulianDay(r){let t=r-y,f=t*M/D,a=Math.floor((19*f+234)/235)+1,s=c(a),l=Math.floor(t-s);for(;l<1;)a--,s=c(a),l=Math.floor(t-s);let $=1,o=0;for(;o<l;)o+=u(a,$),$++;$--,o-=u(a,$);let Y=l-o;return new v.CalendarDate(this,a,$,Y)}toJulianDay(r){let t=c(r.year);for(let f=1;f<r.month;f++)t+=u(r.year,f);return t+r.day+y}getDaysInMonth(r){return u(r.year,r.month)}getMonthsInYear(r){return n(r.year)?13:12}getDaysInYear(r){return g(r.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(r,t){t.year!==r.year&&(n(t.year)&&!n(r.year)&&t.month>6?r.month--:!n(t.year)&&n(r.year)&&t.month>6&&r.month++)}constructor(){this.identifier="hebrew"}}exports.HebrewCalendar=H;
package/index195.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { CalendarDate as v } from "./index169.mjs";
1
+ import { CalendarDate as v } from "./index175.mjs";
2
2
  import { mod as y } from "./index188.mjs";
3
3
  const b = 347997, h = 1080, M = 24 * h, T = 29, m = 12 * h + 793, w = T * M + m;
4
4
  function a(e) {
package/index196.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index169.js"),f=1723856,y=1824665,u=5500;function i(a,r,e,t){return a+365*r+Math.floor(r/4)+30*(e-1)+t-1}function s(a,r){let e=Math.floor(4*(r-a)/1461),t=1+Math.floor((r-i(a,e,1,1))/30),n=r+1-i(a,e,t,1);return[e,t,n]}function $(a){return Math.floor(a%4/3)}function E(a,r){return r%13!==0?30:$(a)+5}class l{fromJulianDay(r){let[e,t,n]=s(f,r),o="AM";return e<=0&&(o="AA",e+=u),new c.CalendarDate(this,o,e,t,n)}toJulianDay(r){let e=r.year;return r.era==="AA"&&(e-=u),i(f,e,r.month,r.day)}getDaysInMonth(r){return E(r.year,r.month)}getMonthsInYear(){return 13}getDaysInYear(r){return 365+$(r.year)}getYearsInEra(r){return r.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class b extends l{fromJulianDay(r){let[e,t,n]=s(f,r);return e+=u,new c.CalendarDate(this,"AA",e,t,n)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...r){super(...r),this.identifier="ethioaa"}}class C extends l{fromJulianDay(r){let[e,t,n]=s(y,r),o="CE";return e<=0&&(o="BCE",e=1-e),new c.CalendarDate(this,o,e,t,n)}toJulianDay(r){let e=r.year;return r.era==="BCE"&&(e=1-e),i(y,e,r.month,r.day)}getDaysInMonth(r){let e=r.year;return r.era==="BCE"&&(e=1-e),E(e,r.month)}isInverseEra(r){return r.era==="BCE"}balanceDate(r){r.year<=0&&(r.era=r.era==="BCE"?"CE":"BCE",r.year=1-r.year)}getEras(){return["BCE","CE"]}getYearsInEra(r){return r.era==="BCE"?9999:9715}constructor(...r){super(...r),this.identifier="coptic"}}exports.CopticCalendar=C;exports.EthiopicAmeteAlemCalendar=b;exports.EthiopicCalendar=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index175.js"),f=1723856,y=1824665,u=5500;function i(a,r,e,t){return a+365*r+Math.floor(r/4)+30*(e-1)+t-1}function s(a,r){let e=Math.floor(4*(r-a)/1461),t=1+Math.floor((r-i(a,e,1,1))/30),n=r+1-i(a,e,t,1);return[e,t,n]}function $(a){return Math.floor(a%4/3)}function E(a,r){return r%13!==0?30:$(a)+5}class l{fromJulianDay(r){let[e,t,n]=s(f,r),o="AM";return e<=0&&(o="AA",e+=u),new c.CalendarDate(this,o,e,t,n)}toJulianDay(r){let e=r.year;return r.era==="AA"&&(e-=u),i(f,e,r.month,r.day)}getDaysInMonth(r){return E(r.year,r.month)}getMonthsInYear(){return 13}getDaysInYear(r){return 365+$(r.year)}getYearsInEra(r){return r.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class b extends l{fromJulianDay(r){let[e,t,n]=s(f,r);return e+=u,new c.CalendarDate(this,"AA",e,t,n)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...r){super(...r),this.identifier="ethioaa"}}class C extends l{fromJulianDay(r){let[e,t,n]=s(y,r),o="CE";return e<=0&&(o="BCE",e=1-e),new c.CalendarDate(this,o,e,t,n)}toJulianDay(r){let e=r.year;return r.era==="BCE"&&(e=1-e),i(y,e,r.month,r.day)}getDaysInMonth(r){let e=r.year;return r.era==="BCE"&&(e=1-e),E(e,r.month)}isInverseEra(r){return r.era==="BCE"}balanceDate(r){r.year<=0&&(r.era=r.era==="BCE"?"CE":"BCE",r.year=1-r.year)}getEras(){return["BCE","CE"]}getYearsInEra(r){return r.era==="BCE"?9999:9715}constructor(...r){super(...r),this.identifier="coptic"}}exports.CopticCalendar=C;exports.EthiopicAmeteAlemCalendar=b;exports.EthiopicCalendar=l;
package/index196.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { CalendarDate as s } from "./index169.mjs";
1
+ import { CalendarDate as s } from "./index175.mjs";
2
2
  const i = 1723856, $ = 1824665, c = 5500;
3
3
  function f(a, r, e, t) {
4
4
  return a + 365 * r + Math.floor(r / 4) + 30 * (e - 1) + t - 1;
package/index198.js CHANGED
@@ -1 +1 @@
1
- "use strict";const D=require("./index285.js"),M=require("./index286.js");function W(y){let{swiper:e,extendParams:z,on:T,emit:G}=y;z({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let j;const B=D.g();e.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const C=B.createElement("div");function O(i,a){const r=e.params.virtual;if(r.cache&&e.virtual.cache[a])return e.virtual.cache[a];let s;return r.renderSlide?(s=r.renderSlide.call(e,i,a),typeof s=="string"&&(C.innerHTML=s,s=C.children[0])):e.isElement?s=M.c("swiper-slide"):s=M.c("div",e.params.slideClass),s.setAttribute("data-swiper-slide-index",a),r.renderSlide||(s.innerHTML=i),r.cache&&(e.virtual.cache[a]=s),s}function o(i,a){const{slidesPerView:r,slidesPerGroup:s,centeredSlides:d,loop:n,initialSlide:S}=e.params;if(a&&!n&&S>0)return;const{addSlidesBefore:m,addSlidesAfter:g}=e.params.virtual,{from:P,to:E,slides:c,slidesGrid:F,offset:N}=e.virtual;e.params.cssMode||e.updateActiveIndex();const b=e.activeIndex||0;let A;e.rtlTranslate?A="right":A=e.isHorizontal()?"left":"top";let x,f;d?(x=Math.floor(r/2)+s+g,f=Math.floor(r/2)+s+m):(x=r+(s-1)+g,f=(n?r:s)+m);let u=b-f,p=b+x;n||(u=Math.max(u,0),p=Math.min(p,c.length-1));let h=(e.slidesGrid[u]||0)-(e.slidesGrid[0]||0);n&&b>=f?(u-=f,d||(h+=e.slidesGrid[0])):n&&b<f&&(u=-f,d&&(h+=e.slidesGrid[0])),Object.assign(e.virtual,{from:u,to:p,offset:h,slidesGrid:e.slidesGrid,slidesBefore:f,slidesAfter:x});function I(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),G("virtualUpdate")}if(P===u&&E===p&&!i){e.slidesGrid!==F&&h!==N&&e.slides.forEach(t=>{t.style[A]=`${h-Math.abs(e.cssOverflowAdjustment())}px`}),e.updateProgress(),G("virtualUpdate");return}if(e.params.virtual.renderExternal){e.params.virtual.renderExternal.call(e,{offset:h,from:u,to:p,slides:function(){const l=[];for(let v=u;v<=p;v+=1)l.push(c[v]);return l}()}),e.params.virtual.renderExternalUpdate?I():G("virtualUpdate");return}const w=[],$=[],U=t=>{let l=t;return t<0?l=c.length+t:l>=c.length&&(l=l-c.length),l};if(i)e.slides.filter(t=>t.matches(`.${e.params.slideClass}, swiper-slide`)).forEach(t=>{t.remove()});else for(let t=P;t<=E;t+=1)if(t<u||t>p){const l=U(t);e.slides.filter(v=>v.matches(`.${e.params.slideClass}[data-swiper-slide-index="${l}"], swiper-slide[data-swiper-slide-index="${l}"]`)).forEach(v=>{v.remove()})}const R=n?-c.length:0,_=n?c.length*2:c.length;for(let t=R;t<_;t+=1)if(t>=u&&t<=p){const l=U(t);typeof E>"u"||i?$.push(l):(t>E&&$.push(l),t<P&&w.push(l))}if($.forEach(t=>{e.slidesEl.append(O(c[t],t))}),n)for(let t=w.length-1;t>=0;t-=1){const l=w[t];e.slidesEl.prepend(O(c[l],l))}else w.sort((t,l)=>l-t),w.forEach(t=>{e.slidesEl.prepend(O(c[t],t))});M.e(e.slidesEl,".swiper-slide, swiper-slide").forEach(t=>{t.style[A]=`${h-Math.abs(e.cssOverflowAdjustment())}px`}),I()}function H(i){if(typeof i=="object"&&"length"in i)for(let a=0;a<i.length;a+=1)i[a]&&e.virtual.slides.push(i[a]);else e.virtual.slides.push(i);o(!0)}function L(i){const a=e.activeIndex;let r=a+1,s=1;if(Array.isArray(i)){for(let d=0;d<i.length;d+=1)i[d]&&e.virtual.slides.unshift(i[d]);r=a+i.length,s=i.length}else e.virtual.slides.unshift(i);if(e.params.virtual.cache){const d=e.virtual.cache,n={};Object.keys(d).forEach(S=>{const m=d[S],g=m.getAttribute("data-swiper-slide-index");g&&m.setAttribute("data-swiper-slide-index",parseInt(g,10)+s),n[parseInt(S,10)+s]=m}),e.virtual.cache=n}o(!0),e.slideTo(r,0)}function V(i){if(typeof i>"u"||i===null)return;let a=e.activeIndex;if(Array.isArray(i))for(let r=i.length-1;r>=0;r-=1)e.params.virtual.cache&&(delete e.virtual.cache[i[r]],Object.keys(e.virtual.cache).forEach(s=>{s>i&&(e.virtual.cache[s-1]=e.virtual.cache[s],e.virtual.cache[s-1].setAttribute("data-swiper-slide-index",s-1),delete e.virtual.cache[s])})),e.virtual.slides.splice(i[r],1),i[r]<a&&(a-=1),a=Math.max(a,0);else e.params.virtual.cache&&(delete e.virtual.cache[i],Object.keys(e.virtual.cache).forEach(r=>{r>i&&(e.virtual.cache[r-1]=e.virtual.cache[r],e.virtual.cache[r-1].setAttribute("data-swiper-slide-index",r-1),delete e.virtual.cache[r])})),e.virtual.slides.splice(i,1),i<a&&(a-=1),a=Math.max(a,0);o(!0),e.slideTo(a,0)}function q(){e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),o(!0),e.slideTo(0,0)}T("beforeInit",()=>{if(!e.params.virtual.enabled)return;let i;if(typeof e.passedParams.virtual.slides>"u"){const a=[...e.slidesEl.children].filter(r=>r.matches(`.${e.params.slideClass}, swiper-slide`));a&&a.length&&(e.virtual.slides=[...a],i=!0,a.forEach((r,s)=>{r.setAttribute("data-swiper-slide-index",s),e.virtual.cache[s]=r,r.remove()}))}i||(e.virtual.slides=e.params.virtual.slides),e.classNames.push(`${e.params.containerModifierClass}virtual`),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0,o(!1,!0)}),T("setTranslate",()=>{e.params.virtual.enabled&&(e.params.cssMode&&!e._immediateVirtual?(clearTimeout(j),j=setTimeout(()=>{o()},100)):o())}),T("init update resize",()=>{e.params.virtual.enabled&&e.params.cssMode&&M.s(e.wrapperEl,"--swiper-virtual-size",`${e.virtualSize}px`)}),Object.assign(e.virtual,{appendSlide:H,prependSlide:L,removeSlide:V,removeAllSlides:q,update:o})}module.exports=W;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index199.js"),m=require("./index201.js"),c=require("./index285.js"),q=require("./index139.js"),R=require("./index156.js"),S=require("./index171.js"),p=require("./index176.js"),b=require("./index278.js"),x=require("@react-aria/i18n"),f=require("react");function y(e){return e&&e.__esModule?e.default:e}function M(e,i){let l=x.useLocalizedStringFormatter(y(m),"@react-aria/calendar"),g=S.filterDOMProps(e),D=a.useVisibleRangeDescription(i.visibleRange.start,i.visibleRange.end,i.timeZone,!1),s=a.useVisibleRangeDescription(i.visibleRange.start,i.visibleRange.end,i.timeZone,!0);b.useUpdateEffect(()=>{i.isFocused||c.announce(s)},[s]);let r=a.useSelectedDateDescription(i);b.useUpdateEffect(()=>{r&&c.announce(r,"polite",4e3)},[r]);let t=q.useSlotId([!!e.errorMessage,e.isInvalid,e.validationState]);a.hookData.set(i,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:t,selectedDateDescription:r});let[v,n]=f.useState(!1),o=e.isDisabled||i.isNextVisibleRangeInvalid();o&&v&&(n(!1),i.setFocused(!0));let[P,u]=f.useState(!1),d=e.isDisabled||i.isPreviousVisibleRangeInvalid();d&&P&&(u(!1),i.setFocused(!0));let F=p.useLabels({id:e.id,"aria-label":[e["aria-label"],s].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:R.mergeProps(g,F,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>i.focusNextPage(),"aria-label":l.format("next"),isDisabled:o,onFocusChange:n},prevButtonProps:{onPress:()=>i.focusPreviousPage(),"aria-label":l.format("previous"),isDisabled:d,onFocusChange:u},errorMessageProps:{id:t},title:D}}exports.useCalendarBase=M;
package/index198.mjs CHANGED
@@ -1,206 +1,75 @@
1
- import { g as q } from "./index285.mjs";
2
- import { s as J, e as K, c as I } from "./index286.mjs";
3
- function X(U) {
4
- let {
5
- swiper: e,
6
- extendParams: z,
7
- on: M,
8
- emit: T
9
- } = U;
10
- z({
11
- virtual: {
12
- enabled: !1,
13
- slides: [],
14
- cache: !0,
15
- renderSlide: null,
16
- renderExternal: null,
17
- renderExternalUpdate: !0,
18
- addSlidesBefore: 0,
19
- addSlidesAfter: 0
20
- }
1
+ import { useVisibleRangeDescription as n, useSelectedDateDescription as D, hookData as v } from "./index199.mjs";
2
+ import P from "./index201.mjs";
3
+ import { announce as c } from "./index285.mjs";
4
+ import { useSlotId as F } from "./index139.mjs";
5
+ import { mergeProps as R } from "./index156.mjs";
6
+ import { filterDOMProps as y } from "./index171.mjs";
7
+ import { useLabels as B } from "./index176.mjs";
8
+ import { useUpdateEffect as f } from "./index278.mjs";
9
+ import { useLocalizedStringFormatter as I } from "@react-aria/i18n";
10
+ import { useState as u } from "react";
11
+ function M(e) {
12
+ return e && e.__esModule ? e.default : e;
13
+ }
14
+ function z(e, a) {
15
+ let o = I(M(P), "@react-aria/calendar"), $ = y(e), m = n(a.visibleRange.start, a.visibleRange.end, a.timeZone, !1), r = n(a.visibleRange.start, a.visibleRange.end, a.timeZone, !0);
16
+ f(() => {
17
+ a.isFocused || c(r);
18
+ }, [
19
+ r
20
+ ]);
21
+ let i = D(a);
22
+ f(() => {
23
+ i && c(i, "polite", 4e3);
24
+ }, [
25
+ i
26
+ ]);
27
+ let l = F([
28
+ !!e.errorMessage,
29
+ e.isInvalid,
30
+ e.validationState
31
+ ]);
32
+ v.set(a, {
33
+ ariaLabel: e["aria-label"],
34
+ ariaLabelledBy: e["aria-labelledby"],
35
+ errorMessageId: l,
36
+ selectedDateDescription: i
21
37
  });
22
- let C;
23
- const B = q();
24
- e.virtual = {
25
- cache: {},
26
- from: void 0,
27
- to: void 0,
28
- slides: [],
29
- offset: 0,
30
- slidesGrid: []
31
- };
32
- const $ = B.createElement("div");
33
- function G(i, a) {
34
- const r = e.params.virtual;
35
- if (r.cache && e.virtual.cache[a])
36
- return e.virtual.cache[a];
37
- let s;
38
- return r.renderSlide ? (s = r.renderSlide.call(e, i, a), typeof s == "string" && ($.innerHTML = s, s = $.children[0])) : e.isElement ? s = I("swiper-slide") : s = I("div", e.params.slideClass), s.setAttribute("data-swiper-slide-index", a), r.renderSlide || (s.innerHTML = i), r.cache && (e.virtual.cache[a] = s), s;
39
- }
40
- function o(i, a) {
41
- const {
42
- slidesPerView: r,
43
- slidesPerGroup: s,
44
- centeredSlides: d,
45
- loop: n,
46
- initialSlide: w
47
- } = e.params;
48
- if (a && !n && w > 0)
49
- return;
50
- const {
51
- addSlidesBefore: m,
52
- addSlidesAfter: g
53
- } = e.params.virtual, {
54
- from: P,
55
- to: E,
56
- slides: c,
57
- slidesGrid: F,
58
- offset: N
59
- } = e.virtual;
60
- e.params.cssMode || e.updateActiveIndex();
61
- const b = e.activeIndex || 0;
62
- let A;
63
- e.rtlTranslate ? A = "right" : A = e.isHorizontal() ? "left" : "top";
64
- let x, f;
65
- d ? (x = Math.floor(r / 2) + s + g, f = Math.floor(r / 2) + s + m) : (x = r + (s - 1) + g, f = (n ? r : s) + m);
66
- let u = b - f, p = b + x;
67
- n || (u = Math.max(u, 0), p = Math.min(p, c.length - 1));
68
- let h = (e.slidesGrid[u] || 0) - (e.slidesGrid[0] || 0);
69
- n && b >= f ? (u -= f, d || (h += e.slidesGrid[0])) : n && b < f && (u = -f, d && (h += e.slidesGrid[0])), Object.assign(e.virtual, {
70
- from: u,
71
- to: p,
72
- offset: h,
73
- slidesGrid: e.slidesGrid,
74
- slidesBefore: f,
75
- slidesAfter: x
76
- });
77
- function j() {
78
- e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(), T("virtualUpdate");
79
- }
80
- if (P === u && E === p && !i) {
81
- e.slidesGrid !== F && h !== N && e.slides.forEach((t) => {
82
- t.style[A] = `${h - Math.abs(e.cssOverflowAdjustment())}px`;
83
- }), e.updateProgress(), T("virtualUpdate");
84
- return;
85
- }
86
- if (e.params.virtual.renderExternal) {
87
- e.params.virtual.renderExternal.call(e, {
88
- offset: h,
89
- from: u,
90
- to: p,
91
- slides: function() {
92
- const l = [];
93
- for (let v = u; v <= p; v += 1)
94
- l.push(c[v]);
95
- return l;
96
- }()
97
- }), e.params.virtual.renderExternalUpdate ? j() : T("virtualUpdate");
98
- return;
99
- }
100
- const S = [], O = [], y = (t) => {
101
- let l = t;
102
- return t < 0 ? l = c.length + t : l >= c.length && (l = l - c.length), l;
103
- };
104
- if (i)
105
- e.slides.filter((t) => t.matches(`.${e.params.slideClass}, swiper-slide`)).forEach((t) => {
106
- t.remove();
107
- });
108
- else
109
- for (let t = P; t <= E; t += 1)
110
- if (t < u || t > p) {
111
- const l = y(t);
112
- e.slides.filter((v) => v.matches(`.${e.params.slideClass}[data-swiper-slide-index="${l}"], swiper-slide[data-swiper-slide-index="${l}"]`)).forEach((v) => {
113
- v.remove();
114
- });
115
- }
116
- const R = n ? -c.length : 0, _ = n ? c.length * 2 : c.length;
117
- for (let t = R; t < _; t += 1)
118
- if (t >= u && t <= p) {
119
- const l = y(t);
120
- typeof E > "u" || i ? O.push(l) : (t > E && O.push(l), t < P && S.push(l));
121
- }
122
- if (O.forEach((t) => {
123
- e.slidesEl.append(G(c[t], t));
124
- }), n)
125
- for (let t = S.length - 1; t >= 0; t -= 1) {
126
- const l = S[t];
127
- e.slidesEl.prepend(G(c[l], l));
128
- }
129
- else
130
- S.sort((t, l) => l - t), S.forEach((t) => {
131
- e.slidesEl.prepend(G(c[t], t));
132
- });
133
- K(e.slidesEl, ".swiper-slide, swiper-slide").forEach((t) => {
134
- t.style[A] = `${h - Math.abs(e.cssOverflowAdjustment())}px`;
135
- }), j();
136
- }
137
- function H(i) {
138
- if (typeof i == "object" && "length" in i)
139
- for (let a = 0; a < i.length; a += 1)
140
- i[a] && e.virtual.slides.push(i[a]);
141
- else
142
- e.virtual.slides.push(i);
143
- o(!0);
144
- }
145
- function L(i) {
146
- const a = e.activeIndex;
147
- let r = a + 1, s = 1;
148
- if (Array.isArray(i)) {
149
- for (let d = 0; d < i.length; d += 1)
150
- i[d] && e.virtual.slides.unshift(i[d]);
151
- r = a + i.length, s = i.length;
152
- } else
153
- e.virtual.slides.unshift(i);
154
- if (e.params.virtual.cache) {
155
- const d = e.virtual.cache, n = {};
156
- Object.keys(d).forEach((w) => {
157
- const m = d[w], g = m.getAttribute("data-swiper-slide-index");
158
- g && m.setAttribute("data-swiper-slide-index", parseInt(g, 10) + s), n[parseInt(w, 10) + s] = m;
159
- }), e.virtual.cache = n;
160
- }
161
- o(!0), e.slideTo(r, 0);
162
- }
163
- function V(i) {
164
- if (typeof i > "u" || i === null) return;
165
- let a = e.activeIndex;
166
- if (Array.isArray(i))
167
- for (let r = i.length - 1; r >= 0; r -= 1)
168
- e.params.virtual.cache && (delete e.virtual.cache[i[r]], Object.keys(e.virtual.cache).forEach((s) => {
169
- s > i && (e.virtual.cache[s - 1] = e.virtual.cache[s], e.virtual.cache[s - 1].setAttribute("data-swiper-slide-index", s - 1), delete e.virtual.cache[s]);
170
- })), e.virtual.slides.splice(i[r], 1), i[r] < a && (a -= 1), a = Math.max(a, 0);
171
- else
172
- e.params.virtual.cache && (delete e.virtual.cache[i], Object.keys(e.virtual.cache).forEach((r) => {
173
- r > i && (e.virtual.cache[r - 1] = e.virtual.cache[r], e.virtual.cache[r - 1].setAttribute("data-swiper-slide-index", r - 1), delete e.virtual.cache[r]);
174
- })), e.virtual.slides.splice(i, 1), i < a && (a -= 1), a = Math.max(a, 0);
175
- o(!0), e.slideTo(a, 0);
176
- }
177
- function D() {
178
- e.virtual.slides = [], e.params.virtual.cache && (e.virtual.cache = {}), o(!0), e.slideTo(0, 0);
179
- }
180
- M("beforeInit", () => {
181
- if (!e.params.virtual.enabled) return;
182
- let i;
183
- if (typeof e.passedParams.virtual.slides > "u") {
184
- const a = [...e.slidesEl.children].filter((r) => r.matches(`.${e.params.slideClass}, swiper-slide`));
185
- a && a.length && (e.virtual.slides = [...a], i = !0, a.forEach((r, s) => {
186
- r.setAttribute("data-swiper-slide-index", s), e.virtual.cache[s] = r, r.remove();
187
- }));
188
- }
189
- i || (e.virtual.slides = e.params.virtual.slides), e.classNames.push(`${e.params.containerModifierClass}virtual`), e.params.watchSlidesProgress = !0, e.originalParams.watchSlidesProgress = !0, o(!1, !0);
190
- }), M("setTranslate", () => {
191
- e.params.virtual.enabled && (e.params.cssMode && !e._immediateVirtual ? (clearTimeout(C), C = setTimeout(() => {
192
- o();
193
- }, 100)) : o());
194
- }), M("init update resize", () => {
195
- e.params.virtual.enabled && e.params.cssMode && J(e.wrapperEl, "--swiper-virtual-size", `${e.virtualSize}px`);
196
- }), Object.assign(e.virtual, {
197
- appendSlide: H,
198
- prependSlide: L,
199
- removeSlide: V,
200
- removeAllSlides: D,
201
- update: o
38
+ let [p, s] = u(!1), t = e.isDisabled || a.isNextVisibleRangeInvalid();
39
+ t && p && (s(!1), a.setFocused(!0));
40
+ let [g, d] = u(!1), b = e.isDisabled || a.isPreviousVisibleRangeInvalid();
41
+ b && g && (d(!1), a.setFocused(!0));
42
+ let x = B({
43
+ id: e.id,
44
+ "aria-label": [
45
+ e["aria-label"],
46
+ r
47
+ ].filter(Boolean).join(", "),
48
+ "aria-labelledby": e["aria-labelledby"]
202
49
  });
50
+ return {
51
+ calendarProps: R($, x, {
52
+ role: "application",
53
+ "aria-describedby": e["aria-describedby"] || void 0
54
+ }),
55
+ nextButtonProps: {
56
+ onPress: () => a.focusNextPage(),
57
+ "aria-label": o.format("next"),
58
+ isDisabled: t,
59
+ onFocusChange: s
60
+ },
61
+ prevButtonProps: {
62
+ onPress: () => a.focusPreviousPage(),
63
+ "aria-label": o.format("previous"),
64
+ isDisabled: b,
65
+ onFocusChange: d
66
+ },
67
+ errorMessageProps: {
68
+ id: l
69
+ },
70
+ title: m
71
+ };
203
72
  }
204
73
  export {
205
- X as default
74
+ z as useCalendarBase
206
75
  };
package/index199.js CHANGED
@@ -1 +1 @@
1
- "use strict";const P=require("./index285.js"),b=require("./index286.js");function U(V){let{swiper:e,extendParams:x,on:y,emit:L}=V;const a=P.g(),m=P.a();e.keyboard={enabled:!1},x({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function g(N){if(!e.enabled)return;const{rtlTranslate:l}=e;let t=N;t.originalEvent&&(t=t.originalEvent);const i=t.keyCode||t.charCode,h=e.params.keyboard.pageUpDown,r=h&&i===33,o=h&&i===34,d=i===37,f=i===39,c=i===38,u=i===40;if(!e.allowSlideNext&&(e.isHorizontal()&&f||e.isVertical()&&u||o)||!e.allowSlidePrev&&(e.isHorizontal()&&d||e.isVertical()&&c||r))return!1;if(!(t.shiftKey||t.altKey||t.ctrlKey||t.metaKey)&&!(a.activeElement&&a.activeElement.nodeName&&(a.activeElement.nodeName.toLowerCase()==="input"||a.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(r||o||d||f||c||u)){let D=!1;if(b.a(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&b.a(e.el,`.${e.params.slideActiveClass}`).length===0)return;const p=e.el,E=p.clientWidth,C=p.clientHeight,A=m.innerWidth,K=m.innerHeight,n=b.b(p);l&&(n.left-=p.scrollLeft);const H=[[n.left,n.top],[n.left+E,n.top],[n.left,n.top+C],[n.left+E,n.top+C]];for(let w=0;w<H.length;w+=1){const s=H[w];if(s[0]>=0&&s[0]<=A&&s[1]>=0&&s[1]<=K){if(s[0]===0&&s[1]===0)continue;D=!0}}if(!D)return}e.isHorizontal()?((r||o||d||f)&&(t.preventDefault?t.preventDefault():t.returnValue=!1),((o||f)&&!l||(r||d)&&l)&&e.slideNext(),((r||d)&&!l||(o||f)&&l)&&e.slidePrev()):((r||o||c||u)&&(t.preventDefault?t.preventDefault():t.returnValue=!1),(o||u)&&e.slideNext(),(r||c)&&e.slidePrev()),L("keyPress",i)}}function v(){e.keyboard.enabled||(a.addEventListener("keydown",g),e.keyboard.enabled=!0)}function k(){e.keyboard.enabled&&(a.removeEventListener("keydown",g),e.keyboard.enabled=!1)}y("init",()=>{e.params.keyboard.enabled&&v()}),y("destroy",()=>{e.keyboard.enabled&&k()}),Object.assign(e.keyboard,{enable:v,disable:k})}module.exports=U;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./index201.js"),f=require("./index152.js"),c=require("@react-aria/i18n"),$=require("react");function p(e){return e&&e.__esModule?e.default:e}const y=new WeakMap;function d(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function R(e){let a=c.useLocalizedStringFormatter(p(h),"@react-aria/calendar"),r,t;var l;"highlightedRange"in e?{start:r,end:t}=e.highlightedRange||{}:r=t=(l=e.value)!==null&&l!==void 0?l:void 0;let n=c.useDateFormatter({weekday:"long",month:"long",year:"numeric",day:"numeric",era:d(r)||d(t),timeZone:e.timeZone}),o="anchorDate"in e?e.anchorDate:null;return $.useMemo(()=>{if(!o&&r&&t)if(f.isSameDay(r,t)){let u=n.format(r.toDate(e.timeZone));return a.format("selectedDateDescription",{date:u})}else{let u=g(n,a,r,t,e.timeZone);return a.format("selectedRangeDescription",{dateRange:u})}return""},[r,t,o,e.timeZone,a,n])}function F(e,a,r,t){let l=c.useLocalizedStringFormatter(p(h),"@react-aria/calendar"),n=d(e)||d(a),o=c.useDateFormatter({month:"long",year:"numeric",era:n,calendar:e.calendar.identifier,timeZone:r}),u=c.useDateFormatter({month:"long",year:"numeric",day:"numeric",era:n,calendar:e.calendar.identifier,timeZone:r});return $.useMemo(()=>{if(f.isSameDay(e,f.startOfMonth(e))){if(f.isSameDay(a,f.endOfMonth(e)))return o.format(e.toDate(r));if(f.isSameDay(a,f.endOfMonth(a)))return t?g(o,l,e,a,r):o.formatRange(e.toDate(r),a.toDate(r))}return t?g(u,l,e,a,r):u.formatRange(e.toDate(r),a.toDate(r))},[e,a,o,u,l,r,t])}function g(e,a,r,t,l){let n=e.formatRangeToParts(r.toDate(l),t.toDate(l)),o=-1;for(let i=0;i<n.length;i++){let m=n[i];if(m.source==="shared"&&m.type==="literal")o=i;else if(m.source==="endRange")break}let u="",s="";for(let i=0;i<n.length;i++)i<o?u+=n[i].value:i>o&&(s+=n[i].value);return a.format("dateRange",{startDate:u,endDate:s})}exports.getEraFormat=d;exports.hookData=y;exports.useSelectedDateDescription=R;exports.useVisibleRangeDescription=F;
package/index199.mjs CHANGED
@@ -1,67 +1,98 @@
1
- import { g as K, a as U } from "./index285.mjs";
2
- import { a as C, b as W } from "./index286.mjs";
3
- function I(H) {
4
- let {
5
- swiper: e,
6
- extendParams: V,
7
- on: b,
8
- emit: x
9
- } = H;
10
- const o = K(), m = U();
11
- e.keyboard = {
12
- enabled: !1
13
- }, V({
14
- keyboard: {
15
- enabled: !1,
16
- onlyInViewport: !0,
17
- pageUpDown: !0
18
- }
19
- });
20
- function y(L) {
21
- if (!e.enabled) return;
22
- const {
23
- rtlTranslate: s
24
- } = e;
25
- let t = L;
26
- t.originalEvent && (t = t.originalEvent);
27
- const i = t.keyCode || t.charCode, k = e.params.keyboard.pageUpDown, r = k && i === 33, a = k && i === 34, d = i === 37, f = i === 39, c = i === 38, u = i === 40;
28
- if (!e.allowSlideNext && (e.isHorizontal() && f || e.isVertical() && u || a) || !e.allowSlidePrev && (e.isHorizontal() && d || e.isVertical() && c || r))
29
- return !1;
30
- if (!(t.shiftKey || t.altKey || t.ctrlKey || t.metaKey) && !(o.activeElement && o.activeElement.nodeName && (o.activeElement.nodeName.toLowerCase() === "input" || o.activeElement.nodeName.toLowerCase() === "textarea"))) {
31
- if (e.params.keyboard.onlyInViewport && (r || a || d || f || c || u)) {
32
- let h = !1;
33
- if (C(e.el, `.${e.params.slideClass}, swiper-slide`).length > 0 && C(e.el, `.${e.params.slideActiveClass}`).length === 0)
34
- return;
35
- const p = e.el, D = p.clientWidth, E = p.clientHeight, N = m.innerWidth, A = m.innerHeight, n = W(p);
36
- s && (n.left -= p.scrollLeft);
37
- const P = [[n.left, n.top], [n.left + D, n.top], [n.left, n.top + E], [n.left + D, n.top + E]];
38
- for (let w = 0; w < P.length; w += 1) {
39
- const l = P[w];
40
- if (l[0] >= 0 && l[0] <= N && l[1] >= 0 && l[1] <= A) {
41
- if (l[0] === 0 && l[1] === 0) continue;
42
- h = !0;
43
- }
44
- }
45
- if (!h) return;
1
+ import s from "./index201.mjs";
2
+ import { isSameDay as c, startOfMonth as x, endOfMonth as p } from "./index152.mjs";
3
+ import { useLocalizedStringFormatter as h, useDateFormatter as m } from "@react-aria/i18n";
4
+ import { useMemo as R } from "react";
5
+ function b(e) {
6
+ return e && e.__esModule ? e.default : e;
7
+ }
8
+ const k = /* @__PURE__ */ new WeakMap();
9
+ function d(e) {
10
+ return (e == null ? void 0 : e.calendar.identifier) === "gregory" && e.era === "BC" ? "short" : void 0;
11
+ }
12
+ function D(e) {
13
+ let a = h(b(s), "@react-aria/calendar"), r, t;
14
+ var i;
15
+ "highlightedRange" in e ? { start: r, end: t } = e.highlightedRange || {} : r = t = (i = e.value) !== null && i !== void 0 ? i : void 0;
16
+ let o = m({
17
+ weekday: "long",
18
+ month: "long",
19
+ year: "numeric",
20
+ day: "numeric",
21
+ era: d(r) || d(t),
22
+ timeZone: e.timeZone
23
+ }), n = "anchorDate" in e ? e.anchorDate : null;
24
+ return R(() => {
25
+ if (!n && r && t)
26
+ if (c(r, t)) {
27
+ let f = o.format(r.toDate(e.timeZone));
28
+ return a.format("selectedDateDescription", {
29
+ date: f
30
+ });
31
+ } else {
32
+ let f = g(o, a, r, t, e.timeZone);
33
+ return a.format("selectedRangeDescription", {
34
+ dateRange: f
35
+ });
46
36
  }
47
- e.isHorizontal() ? ((r || a || d || f) && (t.preventDefault ? t.preventDefault() : t.returnValue = !1), ((a || f) && !s || (r || d) && s) && e.slideNext(), ((r || d) && !s || (a || f) && s) && e.slidePrev()) : ((r || a || c || u) && (t.preventDefault ? t.preventDefault() : t.returnValue = !1), (a || u) && e.slideNext(), (r || c) && e.slidePrev()), x("keyPress", i);
37
+ return "";
38
+ }, [
39
+ r,
40
+ t,
41
+ n,
42
+ e.timeZone,
43
+ a,
44
+ o
45
+ ]);
46
+ }
47
+ function _(e, a, r, t) {
48
+ let i = h(b(s), "@react-aria/calendar"), o = d(e) || d(a), n = m({
49
+ month: "long",
50
+ year: "numeric",
51
+ era: o,
52
+ calendar: e.calendar.identifier,
53
+ timeZone: r
54
+ }), f = m({
55
+ month: "long",
56
+ year: "numeric",
57
+ day: "numeric",
58
+ era: o,
59
+ calendar: e.calendar.identifier,
60
+ timeZone: r
61
+ });
62
+ return R(() => {
63
+ if (c(e, x(e))) {
64
+ if (c(a, p(e))) return n.format(e.toDate(r));
65
+ if (c(a, p(a))) return t ? g(n, i, e, a, r) : n.formatRange(e.toDate(r), a.toDate(r));
48
66
  }
67
+ return t ? g(f, i, e, a, r) : f.formatRange(e.toDate(r), a.toDate(r));
68
+ }, [
69
+ e,
70
+ a,
71
+ n,
72
+ f,
73
+ i,
74
+ r,
75
+ t
76
+ ]);
77
+ }
78
+ function g(e, a, r, t, i) {
79
+ let o = e.formatRangeToParts(r.toDate(i), t.toDate(i)), n = -1;
80
+ for (let l = 0; l < o.length; l++) {
81
+ let u = o[l];
82
+ if (u.source === "shared" && u.type === "literal") n = l;
83
+ else if (u.source === "endRange") break;
49
84
  }
50
- function g() {
51
- e.keyboard.enabled || (o.addEventListener("keydown", y), e.keyboard.enabled = !0);
52
- }
53
- function v() {
54
- e.keyboard.enabled && (o.removeEventListener("keydown", y), e.keyboard.enabled = !1);
55
- }
56
- b("init", () => {
57
- e.params.keyboard.enabled && g();
58
- }), b("destroy", () => {
59
- e.keyboard.enabled && v();
60
- }), Object.assign(e.keyboard, {
61
- enable: g,
62
- disable: v
85
+ let f = "", $ = "";
86
+ for (let l = 0; l < o.length; l++)
87
+ l < n ? f += o[l].value : l > n && ($ += o[l].value);
88
+ return a.format("dateRange", {
89
+ startDate: f,
90
+ endDate: $
63
91
  });
64
92
  }
65
93
  export {
66
- I as default
94
+ d as getEraFormat,
95
+ k as hookData,
96
+ D as useSelectedDateDescription,
97
+ _ as useVisibleRangeDescription
67
98
  };