@okam/stack-ui 1.32.6 → 1.32.7
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.
- package/index101.js +1 -1
- package/index101.mjs +1 -1
- package/index102.js +1 -1
- package/index102.mjs +3 -3
- package/index103.js +1 -1
- package/index103.mjs +1 -1
- package/index110.js +1 -1
- package/index110.mjs +5 -5
- package/index111.js +1 -1
- package/index111.mjs +2 -2
- package/index112.js +1 -1
- package/index112.mjs +1 -1
- package/index113.js +1 -1
- package/index113.mjs +2 -2
- package/index115.js +1 -1
- package/index115.mjs +10 -10
- package/index116.js +1 -1
- package/index116.mjs +6 -6
- package/index118.js +1 -1
- package/index118.mjs +3 -3
- package/index119.js +1 -1
- package/index119.mjs +3 -3
- package/index120.js +1 -1
- package/index120.mjs +10 -10
- package/index121.js +1 -1
- package/index121.mjs +6 -6
- package/index122.js +1 -1
- package/index122.mjs +2 -2
- package/index123.js +1 -1
- package/index123.mjs +9 -9
- package/index124.js +1 -1
- package/index124.mjs +1 -1
- package/index125.js +1 -1
- package/index125.mjs +6 -6
- package/index126.js +1 -1
- package/index126.mjs +3 -3
- package/index130.js +1 -1
- package/index130.mjs +2 -2
- package/index138.js +1 -1
- package/index138.mjs +52 -12
- package/index139.js +1 -1
- package/index139.mjs +46 -52
- package/index140.js +1 -1
- package/index140.mjs +241 -46
- package/index141.js +2 -1
- package/index141.mjs +13 -241
- package/index142.js +1 -2
- package/index142.mjs +29 -12
- package/index143.js +1 -1
- package/index143.mjs +11 -29
- package/index144.js +1 -1
- package/index144.mjs +21 -23
- package/index145.js +1 -1
- package/index145.mjs +38 -113
- package/index146.js +1 -1
- package/index146.mjs +25 -22
- package/index147.js +1 -1
- package/index147.mjs +251 -35
- package/index148.js +1 -1
- package/index148.mjs +106 -25
- package/index149.js +1 -1
- package/index149.mjs +320 -242
- package/index150.js +1 -1
- package/index150.mjs +105 -104
- package/index151.js +1 -1
- package/index151.mjs +77 -327
- package/index152.js +1 -1
- package/index152.mjs +25 -106
- package/index153.js +1 -1
- package/index153.mjs +23 -82
- package/index154.js +1 -1
- package/index154.mjs +113 -25
- package/index155.js +1 -1
- package/index155.mjs +2 -2
- package/index156.js +1 -1
- package/index156.mjs +123 -17
- package/index157.js +1 -1
- package/index157.mjs +24 -122
- package/index158.js +1 -1
- package/index158.mjs +17 -71
- package/index159.js +1 -1
- package/index159.mjs +62 -338
- package/index160.js +1 -1
- package/index160.mjs +346 -42
- package/index161.js +1 -1
- package/index161.mjs +43 -29
- package/index162.js +1 -1
- package/index162.mjs +28 -24
- package/index163.js +1 -1
- package/index163.mjs +71 -136
- package/index164.js +1 -1
- package/index164.mjs +50 -132
- package/index165.js +1 -1
- package/index165.mjs +21 -96
- package/index166.js +1 -1
- package/index166.mjs +27 -24
- package/index167.js +1 -1
- package/index167.mjs +33 -381
- package/index168.js +1 -1
- package/index168.mjs +24 -90
- package/index169.js +1 -1
- package/index169.mjs +217 -72
- package/index17.js +1 -1
- package/index17.mjs +15 -15
- package/index170.js +1 -1
- package/index170.mjs +132 -50
- package/index171.js +1 -1
- package/index171.mjs +14 -21
- package/index172.js +1 -1
- package/index172.mjs +4 -30
- package/index173.js +1 -1
- package/index173.mjs +6 -33
- package/index174.js +1 -1
- package/index174.mjs +35 -27
- package/index175.js +1 -1
- package/index175.mjs +17 -215
- package/index176.js +1 -1
- package/index176.mjs +43 -14
- package/index177.js +1 -1
- package/index177.mjs +154 -4
- package/index178.js +1 -1
- package/index178.mjs +100 -6
- package/index179.js +1 -1
- package/index179.mjs +17 -37
- package/index180.js +1 -1
- package/index180.mjs +134 -16
- package/index181.js +1 -1
- package/index181.mjs +93 -40
- package/index182.js +1 -1
- package/index182.mjs +24 -151
- package/index183.js +1 -1
- package/index183.mjs +381 -100
- package/index184.js +1 -1
- package/index184.mjs +94 -16
- package/index185.js +1 -1
- package/index185.mjs +197 -205
- package/index186.js +1 -1
- package/index186.mjs +64 -24
- package/index187.js +1 -1
- package/index187.mjs +143 -4
- package/index188.js +1 -1
- package/index188.mjs +124 -3
- package/index189.js +1 -1
- package/index189.mjs +215 -116
- package/index190.js +1 -1
- package/index190.mjs +184 -23
- package/index191.js +1 -1
- package/index191.mjs +69 -51
- package/index192.js +1 -1
- package/index192.mjs +278 -43
- package/index193.js +1 -1
- package/index193.mjs +92 -31
- package/index194.js +1 -1
- package/index194.mjs +184 -109
- package/index195.js +1 -1
- package/index195.mjs +84 -77
- package/index196.js +1 -1
- package/index196.mjs +58 -101
- package/index197.js +1 -1
- package/index197.mjs +127 -98
- package/index198.js +1 -1
- package/index198.mjs +114 -70
- package/index199.js +1 -1
- package/index199.mjs +118 -91
- package/index200.js +1 -1
- package/index200.mjs +69 -152
- package/index201.js +1 -1
- package/index201.mjs +111 -72
- package/index202.js +1 -1
- package/index202.mjs +51 -41
- package/index203.js +1 -1
- package/index203.mjs +93 -5
- package/index204.js +1 -1
- package/index204.mjs +69 -60
- package/index205.js +1 -1
- package/index205.mjs +55 -58
- package/index206.js +1 -1
- package/index206.mjs +92 -196
- package/index207.js +5 -1
- package/index207.mjs +75 -59
- package/index208.js +1 -1
- package/index208.mjs +2008 -126
- package/index209.js +1 -1
- package/index209.mjs +56 -121
- package/index210.js +1 -1
- package/index210.mjs +185 -221
- package/index211.js +1 -1
- package/index211.mjs +206 -185
- package/index212.js +1 -1
- package/index212.mjs +24 -69
- package/index213.js +1 -1
- package/index213.mjs +4 -279
- package/index214.js +1 -1
- package/index214.mjs +3 -98
- package/index215.js +1 -1
- package/index215.mjs +116 -179
- package/index216.js +1 -1
- package/index216.mjs +29 -84
- package/index217.js +1 -1
- package/index217.mjs +51 -58
- package/index218.js +1 -1
- package/index218.mjs +43 -125
- package/index219.js +1 -1
- package/index219.mjs +33 -112
- package/index220.js +1 -1
- package/index220.mjs +110 -119
- package/index221.js +1 -1
- package/index221.mjs +77 -72
- package/index222.js +1 -1
- package/index222.mjs +96 -105
- package/index223.js +1 -1
- package/index223.mjs +98 -53
- package/index224.js +1 -1
- package/index224.mjs +68 -89
- package/index225.js +1 -1
- package/index225.mjs +93 -68
- package/index226.js +1 -1
- package/index226.mjs +151 -52
- package/index227.js +1 -1
- package/index227.mjs +72 -100
- package/index228.js +1 -5
- package/index228.mjs +40 -78
- package/index229.js +1 -1
- package/index229.mjs +5 -2025
- package/index230.js +1 -1
- package/index230.mjs +61 -59
- package/index231.js +1 -1
- package/index231.mjs +58 -187
- package/index232.js +1 -1
- package/index232.mjs +19 -71
- package/index233.js +1 -1
- package/index233.mjs +20 -45
- package/index234.js +1 -1
- package/index234.mjs +20 -30
- package/index235.js +1 -1
- package/index235.mjs +19 -19
- package/index236.js +1 -1
- package/index236.mjs +19 -19
- package/index237.js +1 -1
- package/index237.mjs +19 -19
- package/index238.js +1 -1
- package/index238.mjs +15 -15
- package/index239.js +1 -1
- package/index239.mjs +19 -19
- package/index240.js +1 -1
- package/index240.mjs +19 -19
- package/index241.js +1 -1
- package/index241.mjs +19 -19
- package/index242.js +1 -1
- package/index242.mjs +16 -16
- package/index243.js +1 -1
- package/index243.mjs +19 -19
- package/index244.js +1 -1
- package/index244.mjs +16 -16
- package/index245.js +1 -1
- package/index245.mjs +16 -16
- package/index246.js +1 -1
- package/index246.mjs +19 -19
- package/index247.js +1 -1
- package/index247.mjs +19 -19
- package/index248.js +1 -1
- package/index248.mjs +19 -19
- package/index249.js +1 -1
- package/index249.mjs +18 -18
- package/index250.js +1 -1
- package/index250.mjs +19 -19
- package/index251.js +1 -1
- package/index251.mjs +19 -19
- package/index252.js +1 -1
- package/index252.mjs +19 -19
- package/index253.js +1 -1
- package/index253.mjs +16 -16
- package/index254.js +1 -1
- package/index254.mjs +19 -19
- package/index255.js +1 -1
- package/index255.mjs +19 -19
- package/index256.js +1 -1
- package/index256.mjs +16 -16
- package/index257.js +1 -1
- package/index257.mjs +18 -18
- package/index258.js +1 -1
- package/index258.mjs +16 -16
- package/index259.js +1 -1
- package/index259.mjs +16 -16
- package/index260.js +1 -1
- package/index260.mjs +16 -16
- package/index261.js +1 -1
- package/index261.mjs +19 -19
- package/index262.js +1 -1
- package/index262.mjs +16 -16
- package/index263.js +1 -1
- package/index263.mjs +15 -15
- package/index264.js +1 -1
- package/index264.mjs +19 -19
- package/index265.js +1 -1
- package/index265.mjs +19 -19
- package/index266.js +1 -1
- package/index266.mjs +71 -19
- package/index267.js +1 -1
- package/index267.mjs +45 -20
- package/index268.js +1 -1
- package/index268.mjs +30 -20
- package/index269.js +1 -1
- package/index269.mjs +130 -4
- package/index270.js +1 -1
- package/index270.mjs +188 -22
- package/index271.js +1 -1
- package/index271.mjs +8 -46
- package/index272.js +1 -1
- package/index272.mjs +3 -5
- package/index273.js +1 -1
- package/index273.mjs +37 -6
- package/index274.js +1 -1
- package/index274.mjs +5 -14
- package/index275.js +1 -1
- package/index275.mjs +29 -24
- package/index276.js +1 -1
- package/index276.mjs +6 -28
- package/index277.js +1 -1
- package/index277.mjs +4 -31
- package/index278.js +1 -1
- package/index278.mjs +48 -9
- package/index279.js +1 -1
- package/index279.mjs +9 -28
- package/index280.js +1 -1
- package/index280.mjs +16 -10
- package/index281.js +1 -1
- package/index281.mjs +16 -6
- package/index282.js +1 -1
- package/index282.mjs +16 -8
- package/index283.js +1 -1
- package/index283.mjs +16 -14
- package/index284.js +1 -1
- package/index284.mjs +16 -9
- package/index285.js +1 -1
- package/index285.mjs +16 -49
- package/index286.js +1 -1
- package/index286.mjs +15 -15
- package/index287.js +1 -1
- package/index287.mjs +15 -15
- package/index288.js +1 -1
- package/index288.mjs +15 -15
- package/index289.js +1 -1
- package/index289.mjs +15 -15
- package/index290.js +1 -1
- package/index290.mjs +12 -12
- package/index291.js +1 -1
- package/index291.mjs +15 -15
- package/index292.js +1 -1
- package/index292.mjs +15 -15
- package/index293.js +1 -1
- package/index293.mjs +15 -15
- package/index294.js +1 -1
- package/index294.mjs +12 -12
- package/index295.js +1 -1
- package/index295.mjs +15 -15
- package/index296.js +1 -1
- package/index296.mjs +15 -15
- package/index297.js +1 -1
- package/index297.mjs +15 -15
- package/index298.js +1 -1
- package/index298.mjs +15 -15
- package/index299.js +1 -1
- package/index299.mjs +12 -12
- package/index300.js +1 -1
- package/index300.mjs +15 -15
- package/index301.js +1 -1
- package/index301.mjs +12 -12
- package/index302.js +1 -1
- package/index302.mjs +15 -15
- package/index303.js +1 -1
- package/index303.mjs +15 -15
- package/index304.js +1 -1
- package/index304.mjs +12 -12
- package/index305.js +1 -1
- package/index305.mjs +15 -15
- package/index306.js +1 -1
- package/index306.mjs +12 -12
- package/index307.js +1 -1
- package/index307.mjs +15 -15
- package/index308.js +1 -1
- package/index308.mjs +15 -15
- package/index309.js +1 -1
- package/index309.mjs +12 -12
- package/index310.js +1 -1
- package/index310.mjs +15 -15
- package/index311.js +1 -1
- package/index311.mjs +12 -12
- package/index312.js +1 -1
- package/index312.mjs +15 -15
- package/index313.js +1 -1
- package/index313.mjs +15 -15
- package/index314.js +1 -1
- package/index314.mjs +25 -16
- package/index315.js +1 -1
- package/index315.mjs +48 -16
- package/index316.js +1 -1
- package/index316.mjs +6 -16
- package/index317.js +1 -1
- package/index317.mjs +6 -16
- package/index318.js +1 -1
- package/index318.mjs +15 -16
- package/index319.js +1 -1
- package/index319.mjs +25 -16
- package/index320.js +1 -1
- package/index320.mjs +26 -128
- package/index321.js +1 -1
- package/index321.mjs +30 -189
- package/index322.js +1 -1
- package/index322.mjs +28 -9
- package/index323.js +1 -1
- package/index323.mjs +9 -3
- package/index324.js +1 -1
- package/index324.mjs +5 -36
- package/index325.js +1 -1
- package/index325.mjs +7 -5
- package/index326.js +1 -1
- package/index326.mjs +13 -29
- package/index327.js +1 -1
- package/index327.mjs +8 -6
- package/index328.js +1 -1
- package/index328.mjs +2 -2
- package/index329.js +1 -1
- package/index329.mjs +2 -2
- package/index331.js +1 -1
- package/index331.mjs +1 -1
- package/index332.js +1 -1
- package/index332.mjs +2 -2
- package/index333.js +1 -1
- package/index333.mjs +4 -4
- package/index337.js +1 -1
- package/index337.mjs +1 -1
- package/index338.js +1 -1
- package/index338.mjs +4 -7
- package/index339.js +1 -1
- package/index339.mjs +6 -68
- package/index340.js +1 -1
- package/index340.mjs +65 -27
- package/index341.js +1 -1
- package/index341.mjs +30 -6
- package/index342.js +1 -1
- package/index342.mjs +6 -6
- package/index343.js +1 -1
- package/index343.mjs +6 -20
- package/index344.js +1 -1
- package/index344.mjs +20 -3
- package/index345.js +1 -1
- package/index345.mjs +117 -7
- package/index346.js +1 -1
- package/index346.mjs +71 -7
- package/index347.js +1 -1
- package/index347.mjs +7 -7
- package/index348.js +1 -1
- package/index348.mjs +7 -7
- package/index349.js +1 -1
- package/index349.mjs +7 -7
- package/index350.js +1 -1
- package/index350.mjs +7 -7
- package/index351.js +1 -1
- package/index351.mjs +4 -4
- package/index352.js +1 -1
- package/index352.mjs +7 -7
- package/index353.js +1 -1
- package/index353.mjs +4 -4
- package/index354.js +1 -1
- package/index354.mjs +4 -4
- package/index355.js +1 -1
- package/index355.mjs +4 -4
- package/index356.js +1 -1
- package/index356.mjs +7 -7
- package/index357.js +1 -1
- package/index357.mjs +7 -7
- package/index358.js +1 -1
- package/index358.mjs +7 -7
- package/index359.js +1 -1
- package/index359.mjs +7 -7
- package/index360.js +1 -1
- package/index360.mjs +7 -7
- package/index361.js +1 -1
- package/index361.mjs +7 -7
- package/index362.js +1 -1
- package/index362.mjs +4 -4
- package/index363.js +1 -1
- package/index363.mjs +7 -7
- package/index364.js +1 -1
- package/index364.mjs +7 -7
- package/index365.js +1 -1
- package/index365.mjs +7 -7
- package/index366.js +1 -1
- package/index366.mjs +7 -7
- package/index367.js +1 -1
- package/index367.mjs +4 -4
- package/index368.js +1 -1
- package/index368.mjs +7 -7
- package/index369.js +1 -1
- package/index369.mjs +4 -4
- package/index370.js +1 -1
- package/index370.mjs +7 -7
- package/index371.js +1 -1
- package/index371.mjs +4 -4
- package/index372.js +1 -1
- package/index372.mjs +7 -7
- package/index373.js +1 -1
- package/index373.mjs +7 -7
- package/index374.js +1 -1
- package/index374.mjs +7 -7
- package/index375.js +1 -1
- package/index375.mjs +7 -7
- package/index376.js +1 -1
- package/index376.mjs +4 -4
- package/index377.js +1 -1
- package/index377.mjs +7 -7
- package/index378.js +1 -1
- package/index378.mjs +7 -7
- package/index379.js +1 -1
- package/index379.mjs +7 -117
- package/index380.js +1 -1
- package/index380.mjs +7 -71
- package/index99.js +1 -1
- package/index99.mjs +1 -1
- package/package.json +1 -1
package/index218.mjs
CHANGED
|
@@ -1,129 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
import { CalendarDate as i } from "./index169.mjs";
|
|
2
|
+
import { mod as c } from "./index214.mjs";
|
|
3
|
+
const n = 1948320, f = [
|
|
4
|
+
0,
|
|
5
|
+
31,
|
|
6
|
+
62,
|
|
7
|
+
93,
|
|
8
|
+
124,
|
|
9
|
+
155,
|
|
10
|
+
186,
|
|
11
|
+
216,
|
|
12
|
+
246,
|
|
13
|
+
276,
|
|
14
|
+
306,
|
|
15
|
+
336
|
|
16
|
+
// Esfand
|
|
17
|
+
];
|
|
18
|
+
class u {
|
|
19
|
+
fromJulianDay(e) {
|
|
20
|
+
let r = e - n, t = 1 + Math.floor((33 * r + 3) / 12053), s = 365 * (t - 1) + Math.floor((8 * t + 21) / 33), a = r - s, o = a < 216 ? Math.floor(a / 31) : Math.floor((a - 6) / 30), l = a - f[o] + 1;
|
|
21
|
+
return new i(this, t, o + 1, l);
|
|
22
|
+
}
|
|
23
|
+
toJulianDay(e) {
|
|
24
|
+
let r = n - 1 + 365 * (e.year - 1) + Math.floor((8 * e.year + 21) / 33);
|
|
25
|
+
return r += f[e.month - 1], r += e.day, r;
|
|
26
|
+
}
|
|
27
|
+
getMonthsInYear() {
|
|
28
|
+
return 12;
|
|
29
|
+
}
|
|
30
|
+
getDaysInMonth(e) {
|
|
31
|
+
return e.month <= 6 ? 31 : e.month <= 11 || c(25 * e.year + 11, 33) < 8 ? 30 : 29;
|
|
32
|
+
}
|
|
33
|
+
getEras() {
|
|
34
|
+
return [
|
|
35
|
+
"AP"
|
|
36
|
+
];
|
|
37
|
+
}
|
|
38
|
+
getYearsInEra() {
|
|
39
|
+
return 9377;
|
|
40
|
+
}
|
|
41
|
+
constructor() {
|
|
42
|
+
this.identifier = "persian";
|
|
28
43
|
}
|
|
29
|
-
const O = () => {
|
|
30
|
-
if (e.destroyed || !e.autoplay.running) return;
|
|
31
|
-
e.autoplay.paused ? w = !0 : w && (g = n, w = !1);
|
|
32
|
-
const t = e.autoplay.paused ? n : f + g - (/* @__PURE__ */ new Date()).getTime();
|
|
33
|
-
e.autoplay.timeLeft = t, r("autoplayTimeLeft", t, t / b), E = requestAnimationFrame(() => {
|
|
34
|
-
O();
|
|
35
|
-
});
|
|
36
|
-
}, C = () => {
|
|
37
|
-
let t;
|
|
38
|
-
return e.virtual && e.params.virtual.enabled ? t = e.slides.filter((a) => a.classList.contains("swiper-slide-active"))[0] : t = e.slides[e.activeIndex], t ? parseInt(t.getAttribute("data-swiper-autoplay"), 10) : void 0;
|
|
39
|
-
}, T = (t) => {
|
|
40
|
-
if (e.destroyed || !e.autoplay.running) return;
|
|
41
|
-
cancelAnimationFrame(E), O();
|
|
42
|
-
let i = typeof t > "u" ? e.params.autoplay.delay : t;
|
|
43
|
-
b = e.params.autoplay.delay, g = e.params.autoplay.delay;
|
|
44
|
-
const a = C();
|
|
45
|
-
!Number.isNaN(a) && a > 0 && typeof t > "u" && (i = a, b = a, g = a), n = i;
|
|
46
|
-
const c = e.params.speed, N = () => {
|
|
47
|
-
!e || e.destroyed || (e.params.autoplay.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev(c, !0, !0), r("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(e.slides.length - 1, c, !0, !0), r("autoplay")) : !e.isEnd || e.params.loop || e.params.rewind ? (e.slideNext(c, !0, !0), r("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(0, c, !0, !0), r("autoplay")), e.params.cssMode && (f = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => {
|
|
48
|
-
T();
|
|
49
|
-
})));
|
|
50
|
-
};
|
|
51
|
-
return i > 0 ? (clearTimeout(y), y = setTimeout(() => {
|
|
52
|
-
N();
|
|
53
|
-
}, i)) : requestAnimationFrame(() => {
|
|
54
|
-
N();
|
|
55
|
-
}), i;
|
|
56
|
-
}, I = () => {
|
|
57
|
-
f = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0, T(), r("autoplayStart");
|
|
58
|
-
}, m = () => {
|
|
59
|
-
e.autoplay.running = !1, clearTimeout(y), cancelAnimationFrame(E), r("autoplayStop");
|
|
60
|
-
}, d = (t, i) => {
|
|
61
|
-
if (e.destroyed || !e.autoplay.running) return;
|
|
62
|
-
clearTimeout(y), t || (o = !0);
|
|
63
|
-
const a = () => {
|
|
64
|
-
r("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", M) : l();
|
|
65
|
-
};
|
|
66
|
-
if (e.autoplay.paused = !0, i) {
|
|
67
|
-
L && (n = e.params.autoplay.delay), L = !1, a();
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
n = (n || e.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - f), !(e.isEnd && n < 0 && !e.params.loop) && (n < 0 && (n = 0), a());
|
|
71
|
-
}, l = () => {
|
|
72
|
-
e.isEnd && n < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (f = (/* @__PURE__ */ new Date()).getTime(), o ? (o = !1, T(n)) : T(), e.autoplay.paused = !1, r("autoplayResume"));
|
|
73
|
-
}, A = () => {
|
|
74
|
-
if (e.destroyed || !e.autoplay.running) return;
|
|
75
|
-
const t = S();
|
|
76
|
-
t.visibilityState === "hidden" && (o = !0, d(!0)), t.visibilityState === "visible" && l();
|
|
77
|
-
}, P = (t) => {
|
|
78
|
-
t.pointerType === "mouse" && (o = !0, D = !0, !(e.animating || e.autoplay.paused) && d(!0));
|
|
79
|
-
}, F = (t) => {
|
|
80
|
-
t.pointerType === "mouse" && (D = !1, e.autoplay.paused && l());
|
|
81
|
-
}, q = () => {
|
|
82
|
-
e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter", P), e.el.addEventListener("pointerleave", F));
|
|
83
|
-
}, R = () => {
|
|
84
|
-
e.el && typeof e.el != "string" && (e.el.removeEventListener("pointerenter", P), e.el.removeEventListener("pointerleave", F));
|
|
85
|
-
}, _ = () => {
|
|
86
|
-
S().addEventListener("visibilitychange", A);
|
|
87
|
-
}, j = () => {
|
|
88
|
-
S().removeEventListener("visibilitychange", A);
|
|
89
|
-
};
|
|
90
|
-
s("init", () => {
|
|
91
|
-
e.params.autoplay.enabled && (q(), _(), I());
|
|
92
|
-
}), s("destroy", () => {
|
|
93
|
-
R(), j(), e.autoplay.running && m();
|
|
94
|
-
}), s("_freeModeStaticRelease", () => {
|
|
95
|
-
(p || o) && l();
|
|
96
|
-
}), s("_freeModeNoMomentumRelease", () => {
|
|
97
|
-
e.params.autoplay.disableOnInteraction ? m() : d(!0, !0);
|
|
98
|
-
}), s("beforeTransitionStart", (t, i, a) => {
|
|
99
|
-
e.destroyed || !e.autoplay.running || (a || !e.params.autoplay.disableOnInteraction ? d(!0, !0) : m());
|
|
100
|
-
}), s("sliderFirstMove", () => {
|
|
101
|
-
if (!(e.destroyed || !e.autoplay.running)) {
|
|
102
|
-
if (e.params.autoplay.disableOnInteraction) {
|
|
103
|
-
m();
|
|
104
|
-
return;
|
|
105
|
-
}
|
|
106
|
-
v = !0, p = !1, o = !1, h = setTimeout(() => {
|
|
107
|
-
o = !0, p = !0, d(!0);
|
|
108
|
-
}, 200);
|
|
109
|
-
}
|
|
110
|
-
}), s("touchEnd", () => {
|
|
111
|
-
if (!(e.destroyed || !e.autoplay.running || !v)) {
|
|
112
|
-
if (clearTimeout(h), clearTimeout(y), e.params.autoplay.disableOnInteraction) {
|
|
113
|
-
p = !1, v = !1;
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
p && e.params.cssMode && l(), p = !1, v = !1;
|
|
117
|
-
}
|
|
118
|
-
}), s("slideChange", () => {
|
|
119
|
-
e.destroyed || !e.autoplay.running || (L = !0);
|
|
120
|
-
}), Object.assign(e.autoplay, {
|
|
121
|
-
start: I,
|
|
122
|
-
stop: m,
|
|
123
|
-
pause: d,
|
|
124
|
-
resume: l
|
|
125
|
-
});
|
|
126
44
|
}
|
|
127
45
|
export {
|
|
128
|
-
|
|
46
|
+
u as PersianCalendar
|
|
129
47
|
};
|
package/index219.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
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;
|
package/index219.mjs
CHANGED
|
@@ -1,119 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
slideThumbActiveClass: "swiper-slide-thumb-active",
|
|
15
|
-
thumbsContainerClass: "swiper-thumbs"
|
|
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";
|
|
3
|
+
const $ = 78, b = 80;
|
|
4
|
+
class p extends y {
|
|
5
|
+
fromJulianDay(e) {
|
|
6
|
+
let t = super.fromJulianDay(e), i = t.year - $, r = e - f(t.era, t.year, 1, 1), n;
|
|
7
|
+
r < b ? (i--, n = s(t.year - 1) ? 31 : 30, r += n + 155 + 90 + 10) : (n = s(t.year) ? 31 : 30, r -= b);
|
|
8
|
+
let a, l;
|
|
9
|
+
if (r < n)
|
|
10
|
+
a = 1, l = r + 1;
|
|
11
|
+
else {
|
|
12
|
+
let o = r - n;
|
|
13
|
+
o < 155 ? (a = Math.floor(o / 31) + 2, l = o % 31 + 1) : (o -= 155, a = Math.floor(o / 30) + 7, l = o % 30 + 1);
|
|
16
14
|
}
|
|
17
|
-
|
|
18
|
-
let f = !1, b = !1;
|
|
19
|
-
e.thumbs = {
|
|
20
|
-
swiper: null
|
|
21
|
-
};
|
|
22
|
-
function x() {
|
|
23
|
-
const t = e.thumbs.swiper;
|
|
24
|
-
if (!t || t.destroyed) return;
|
|
25
|
-
const s = t.clickedIndex, r = t.clickedSlide;
|
|
26
|
-
if (r && r.classList.contains(e.params.thumbs.slideThumbActiveClass) || typeof s > "u" || s === null) return;
|
|
27
|
-
let a;
|
|
28
|
-
t.params.loop ? a = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10) : a = s, e.params.loop ? e.slideToLoop(a) : e.slideTo(a);
|
|
15
|
+
return new c(this, i, a, l);
|
|
29
16
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
} = e.params;
|
|
34
|
-
if (f) return !1;
|
|
35
|
-
f = !0;
|
|
36
|
-
const s = e.constructor;
|
|
37
|
-
if (t.swiper instanceof s)
|
|
38
|
-
e.thumbs.swiper = t.swiper, Object.assign(e.thumbs.swiper.originalParams, {
|
|
39
|
-
watchSlidesProgress: !0,
|
|
40
|
-
slideToClickedSlide: !1
|
|
41
|
-
}), Object.assign(e.thumbs.swiper.params, {
|
|
42
|
-
watchSlidesProgress: !0,
|
|
43
|
-
slideToClickedSlide: !1
|
|
44
|
-
}), e.thumbs.swiper.update();
|
|
45
|
-
else if (I(t.swiper)) {
|
|
46
|
-
const r = Object.assign({}, t.swiper);
|
|
47
|
-
Object.assign(r, {
|
|
48
|
-
watchSlidesProgress: !0,
|
|
49
|
-
slideToClickedSlide: !1
|
|
50
|
-
}), e.thumbs.swiper = new s(r), b = !0;
|
|
51
|
-
}
|
|
52
|
-
return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass), e.thumbs.swiper.on("tap", x), !0;
|
|
17
|
+
toJulianDay(e) {
|
|
18
|
+
let t = e.year + $, [i, r] = d(t), n, a;
|
|
19
|
+
return s(r) ? (n = 31, a = f(i, r, 3, 21)) : (n = 30, a = f(i, 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);
|
|
53
20
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
if (e.realIndex !== s.realIndex || u) {
|
|
70
|
-
const i = s.activeIndex;
|
|
71
|
-
let l, c;
|
|
72
|
-
if (s.params.loop) {
|
|
73
|
-
const v = s.slides.filter((S) => S.getAttribute("data-swiper-slide-index") === `${e.realIndex}`)[0];
|
|
74
|
-
l = s.slides.indexOf(v), c = e.activeIndex > e.previousIndex ? "next" : "prev";
|
|
75
|
-
} else
|
|
76
|
-
l = e.realIndex, c = l > e.previousIndex ? "next" : "prev";
|
|
77
|
-
u && (l += c === "next" ? d : -1 * d), s.visibleSlidesIndexes && s.visibleSlidesIndexes.indexOf(l) < 0 && (s.params.centeredSlides ? l > i ? l = l - Math.floor(r / 2) + 1 : l = l + Math.floor(r / 2) - 1 : l > i && s.params.slidesPerGroup, s.slideTo(l, t ? 0 : void 0));
|
|
78
|
-
}
|
|
21
|
+
getDaysInMonth(e) {
|
|
22
|
+
return e.month === 1 && s(e.year + $) || e.month >= 2 && e.month <= 6 ? 31 : 30;
|
|
23
|
+
}
|
|
24
|
+
getYearsInEra() {
|
|
25
|
+
return 9919;
|
|
26
|
+
}
|
|
27
|
+
getEras() {
|
|
28
|
+
return [
|
|
29
|
+
"saka"
|
|
30
|
+
];
|
|
31
|
+
}
|
|
32
|
+
balanceDate() {
|
|
33
|
+
}
|
|
34
|
+
constructor(...e) {
|
|
35
|
+
super(...e), this.identifier = "indian";
|
|
79
36
|
}
|
|
80
|
-
m("beforeInit", () => {
|
|
81
|
-
const {
|
|
82
|
-
thumbs: t
|
|
83
|
-
} = e.params;
|
|
84
|
-
if (!(!t || !t.swiper))
|
|
85
|
-
if (typeof t.swiper == "string" || t.swiper instanceof HTMLElement) {
|
|
86
|
-
const s = T(), r = () => {
|
|
87
|
-
const n = typeof t.swiper == "string" ? s.querySelector(t.swiper) : t.swiper;
|
|
88
|
-
if (n && n.swiper)
|
|
89
|
-
t.swiper = n.swiper, p(), o(!0);
|
|
90
|
-
else if (n) {
|
|
91
|
-
const d = `${e.params.eventsPrefix}init`, u = (i) => {
|
|
92
|
-
t.swiper = i.detail[0], n.removeEventListener(d, u), p(), o(!0), t.swiper.update(), e.update();
|
|
93
|
-
};
|
|
94
|
-
n.addEventListener(d, u);
|
|
95
|
-
}
|
|
96
|
-
return n;
|
|
97
|
-
}, a = () => {
|
|
98
|
-
if (e.destroyed) return;
|
|
99
|
-
r() || requestAnimationFrame(a);
|
|
100
|
-
};
|
|
101
|
-
requestAnimationFrame(a);
|
|
102
|
-
} else
|
|
103
|
-
p(), o(!0);
|
|
104
|
-
}), m("slideChange update resize observerUpdate", () => {
|
|
105
|
-
o();
|
|
106
|
-
}), m("setTransition", (t, s) => {
|
|
107
|
-
const r = e.thumbs.swiper;
|
|
108
|
-
!r || r.destroyed || r.setTransition(s);
|
|
109
|
-
}), m("beforeDestroy", () => {
|
|
110
|
-
const t = e.thumbs.swiper;
|
|
111
|
-
!t || t.destroyed || b && t.destroy();
|
|
112
|
-
}), Object.assign(e.thumbs, {
|
|
113
|
-
init: p,
|
|
114
|
-
update: o
|
|
115
|
-
});
|
|
116
37
|
}
|
|
117
38
|
export {
|
|
118
|
-
|
|
39
|
+
p as IndianCalendar
|
|
119
40
|
};
|
package/index220.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
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;
|
package/index220.mjs
CHANGED
|
@@ -1,125 +1,116 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
let
|
|
76
|
-
|
|
77
|
-
o
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
Math.abs(a[i] - t) < Math.abs(a[i - 1] - t) || e.swipeDirection === "next" ? t = a[i] : t = a[i - 1], t = -t;
|
|
88
|
-
}
|
|
89
|
-
if (T && S("transitionEnd", () => {
|
|
90
|
-
e.loopFix();
|
|
91
|
-
}), e.velocity !== 0) {
|
|
92
|
-
if (p ? l = Math.abs((-t - e.translate) / e.velocity) : l = Math.abs((t - e.translate) / e.velocity), o.freeMode.sticky) {
|
|
93
|
-
const i = Math.abs((p ? -t : t) - e.translate), n = e.slidesSizesGrid[e.activeIndex];
|
|
94
|
-
i < n ? l = o.speed : i < 2 * n ? l = o.speed * 1.5 : l = o.speed * 2.5;
|
|
1
|
+
import { CalendarDate as D } from "./index169.mjs";
|
|
2
|
+
const g = 1948440, y = 1948439, n = 1300, f = 1600, h = 460322;
|
|
3
|
+
function d(a, e, r, t) {
|
|
4
|
+
return t + Math.ceil(29.5 * (r - 1)) + (e - 1) * 354 + Math.floor((3 + 11 * e) / 30) + a - 1;
|
|
5
|
+
}
|
|
6
|
+
function p(a, e, r) {
|
|
7
|
+
let t = Math.floor((30 * (r - e) + 10646) / 10631), C = Math.min(12, Math.ceil((r - (29 + d(e, t, 1, 1))) / 29.5) + 1), l = r - d(e, t, C, 1) + 1;
|
|
8
|
+
return new D(a, t, C, l);
|
|
9
|
+
}
|
|
10
|
+
function U(a) {
|
|
11
|
+
return (14 + 11 * a) % 30 < 11;
|
|
12
|
+
}
|
|
13
|
+
class B {
|
|
14
|
+
fromJulianDay(e) {
|
|
15
|
+
return p(this, g, e);
|
|
16
|
+
}
|
|
17
|
+
toJulianDay(e) {
|
|
18
|
+
return d(g, e.year, e.month, e.day);
|
|
19
|
+
}
|
|
20
|
+
getDaysInMonth(e) {
|
|
21
|
+
let r = 29 + e.month % 2;
|
|
22
|
+
return e.month === 12 && U(e.year) && r++, r;
|
|
23
|
+
}
|
|
24
|
+
getMonthsInYear() {
|
|
25
|
+
return 12;
|
|
26
|
+
}
|
|
27
|
+
getDaysInYear(e) {
|
|
28
|
+
return U(e.year) ? 355 : 354;
|
|
29
|
+
}
|
|
30
|
+
getYearsInEra() {
|
|
31
|
+
return 9665;
|
|
32
|
+
}
|
|
33
|
+
getEras() {
|
|
34
|
+
return [
|
|
35
|
+
"AH"
|
|
36
|
+
];
|
|
37
|
+
}
|
|
38
|
+
constructor() {
|
|
39
|
+
this.identifier = "islamic-civil";
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
class L extends B {
|
|
43
|
+
fromJulianDay(e) {
|
|
44
|
+
return p(this, y, e);
|
|
45
|
+
}
|
|
46
|
+
toJulianDay(e) {
|
|
47
|
+
return d(y, e.year, e.month, e.day);
|
|
48
|
+
}
|
|
49
|
+
constructor(...e) {
|
|
50
|
+
super(...e), this.identifier = "islamic-tbla";
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
const w = "qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";
|
|
54
|
+
let c, s;
|
|
55
|
+
function $(a) {
|
|
56
|
+
return h + s[a - n];
|
|
57
|
+
}
|
|
58
|
+
function u(a, e) {
|
|
59
|
+
let r = a - n, t = 1 << 11 - (e - 1);
|
|
60
|
+
return c[r] & t ? 30 : 29;
|
|
61
|
+
}
|
|
62
|
+
function b(a, e) {
|
|
63
|
+
let r = $(a);
|
|
64
|
+
for (let t = 1; t < e; t++) r += u(a, t);
|
|
65
|
+
return r;
|
|
66
|
+
}
|
|
67
|
+
function m(a) {
|
|
68
|
+
return s[a + 1 - n] - s[a - n];
|
|
69
|
+
}
|
|
70
|
+
class q extends B {
|
|
71
|
+
fromJulianDay(e) {
|
|
72
|
+
let r = e - g, t = $(n), C = $(f);
|
|
73
|
+
if (r < t || r > C) return super.fromJulianDay(e);
|
|
74
|
+
{
|
|
75
|
+
let l = n - 1, i = 1, o = 1;
|
|
76
|
+
for (; o > 0; ) {
|
|
77
|
+
l++, o = r - $(l) + 1;
|
|
78
|
+
let Q = m(l);
|
|
79
|
+
if (o === Q) {
|
|
80
|
+
i = 12;
|
|
81
|
+
break;
|
|
82
|
+
} else if (o < Q) {
|
|
83
|
+
let A = u(l, i);
|
|
84
|
+
for (i = 1; o > A; )
|
|
85
|
+
o -= A, i++, A = u(l, i);
|
|
86
|
+
break;
|
|
95
87
|
}
|
|
96
|
-
} else if (o.freeMode.sticky) {
|
|
97
|
-
e.slideToClosest();
|
|
98
|
-
return;
|
|
99
88
|
}
|
|
100
|
-
|
|
101
|
-
!e || e.destroyed || !r.allowMomentumBounce || (c("momentumBounce"), e.setTransition(o.speed), setTimeout(() => {
|
|
102
|
-
e.setTranslate(u), h(f, () => {
|
|
103
|
-
!e || e.destroyed || e.transitionEnd();
|
|
104
|
-
});
|
|
105
|
-
}, 0));
|
|
106
|
-
})) : e.velocity ? (c("_freeModeNoMomentumRelease"), e.updateProgress(t), e.setTransition(l), e.setTranslate(t), e.transitionStart(!0, e.swipeDirection), e.animating || (e.animating = !0, h(f, () => {
|
|
107
|
-
!e || e.destroyed || e.transitionEnd();
|
|
108
|
-
}))) : e.updateProgress(t), e.updateActiveIndex(), e.updateSlidesClasses();
|
|
109
|
-
} else if (o.freeMode.sticky) {
|
|
110
|
-
e.slideToClosest();
|
|
111
|
-
return;
|
|
112
|
-
} else o.freeMode && c("_freeModeNoMomentumRelease");
|
|
113
|
-
(!o.freeMode.momentum || w >= o.longSwipesMs) && (c("_freeModeStaticRelease"), e.updateProgress(), e.updateActiveIndex(), e.updateSlidesClasses());
|
|
114
|
-
}
|
|
115
|
-
Object.assign(e, {
|
|
116
|
-
freeMode: {
|
|
117
|
-
onTouchStart: E,
|
|
118
|
-
onTouchMove: B,
|
|
119
|
-
onTouchEnd: b
|
|
89
|
+
return new D(this, l, i, r - b(l, i) + 1);
|
|
120
90
|
}
|
|
121
|
-
}
|
|
91
|
+
}
|
|
92
|
+
toJulianDay(e) {
|
|
93
|
+
return e.year < n || e.year > f ? super.toJulianDay(e) : g + b(e.year, e.month) + (e.day - 1);
|
|
94
|
+
}
|
|
95
|
+
getDaysInMonth(e) {
|
|
96
|
+
return e.year < n || e.year > f ? super.getDaysInMonth(e) : u(e.year, e.month);
|
|
97
|
+
}
|
|
98
|
+
getDaysInYear(e) {
|
|
99
|
+
return e.year < n || e.year > f ? super.getDaysInYear(e) : m(e.year);
|
|
100
|
+
}
|
|
101
|
+
constructor() {
|
|
102
|
+
if (super(), this.identifier = "islamic-umalqura", c || (c = new Uint16Array(Uint8Array.from(atob(w), (e) => e.charCodeAt(0)).buffer)), !s) {
|
|
103
|
+
s = new Uint32Array(f - n + 1);
|
|
104
|
+
let e = 0;
|
|
105
|
+
for (let r = n; r <= f; r++) {
|
|
106
|
+
s[r - n] = e;
|
|
107
|
+
for (let t = 1; t <= 12; t++) e += u(r, t);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
122
111
|
}
|
|
123
112
|
export {
|
|
124
|
-
|
|
113
|
+
B as IslamicCivilCalendar,
|
|
114
|
+
L as IslamicTabularCalendar,
|
|
115
|
+
q as IslamicUmalquraCalendar
|
|
125
116
|
};
|
package/index221.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./index169.js"),b=require("./index214.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;
|