@okam/stack-ui 1.44.0 → 1.44.1

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 (349) hide show
  1. package/CHANGELOG.md +26 -4
  2. package/components/Popover/interface.d.ts +3 -3
  3. package/components/TagGroup/interface.d.ts +2 -2
  4. package/index.d.ts +2 -0
  5. package/index145.js +1 -1
  6. package/index145.mjs +1 -1
  7. package/index149.mjs +1 -1
  8. package/index155.js +1 -1
  9. package/index155.mjs +4 -4
  10. package/index157.js +1 -1
  11. package/index157.mjs +4 -4
  12. package/index158.js +1 -1
  13. package/index158.mjs +2 -2
  14. package/index159.js +1 -1
  15. package/index159.mjs +1 -1
  16. package/index160.js +1 -1
  17. package/index160.mjs +1 -1
  18. package/index161.js +1 -2
  19. package/index161.mjs +39 -12
  20. package/index162.js +1 -1
  21. package/index162.mjs +12 -38
  22. package/index163.js +2 -1
  23. package/index163.mjs +26 -11
  24. package/index164.js +2 -1
  25. package/index164.mjs +38 -13
  26. package/index165.js +1 -1
  27. package/index165.mjs +21 -38
  28. package/index166.js +1 -2
  29. package/index166.mjs +44 -24
  30. package/index167.js +1 -1
  31. package/index167.mjs +25 -22
  32. package/index168.js +1 -1
  33. package/index168.mjs +40 -45
  34. package/index169.js +2 -1
  35. package/index169.mjs +57 -25
  36. package/index170.js +1 -1
  37. package/index170.mjs +39 -41
  38. package/index171.js +1 -2
  39. package/index171.mjs +30 -57
  40. package/index172.js +2 -1
  41. package/index172.mjs +8 -38
  42. package/index173.js +2 -1
  43. package/index173.mjs +9 -30
  44. package/index174.js +1 -2
  45. package/index174.mjs +32 -9
  46. package/index175.js +1 -2
  47. package/index175.mjs +14 -9
  48. package/index176.js +1 -1
  49. package/index176.mjs +16 -31
  50. package/index177.js +1 -1
  51. package/index177.mjs +11 -15
  52. package/index178.js +2 -1
  53. package/index178.mjs +47 -16
  54. package/index179.js +1 -2
  55. package/index179.mjs +36 -46
  56. package/index180.js +1 -1
  57. package/index180.mjs +31 -36
  58. package/index181.js +1 -1
  59. package/index181.mjs +20 -31
  60. package/index182.js +1 -1
  61. package/index182.mjs +32 -18
  62. package/index183.js +1 -1
  63. package/index183.mjs +14 -36
  64. package/index185.js +1 -1
  65. package/index185.mjs +3 -3
  66. package/index186.js +1 -1
  67. package/index186.mjs +23 -23
  68. package/index187.js +1 -1
  69. package/index187.mjs +12 -12
  70. package/index188.js +1 -1
  71. package/index188.mjs +104 -105
  72. package/index191.js +1 -1
  73. package/index191.mjs +203 -5
  74. package/index192.js +1 -2
  75. package/index192.mjs +62 -47
  76. package/index193.js +1 -1
  77. package/index193.mjs +141 -9
  78. package/index194.js +1 -1
  79. package/index194.mjs +110 -189
  80. package/index195.js +1 -1
  81. package/index195.mjs +213 -53
  82. package/index196.js +1 -1
  83. package/index196.mjs +176 -129
  84. package/index197.js +1 -1
  85. package/index197.mjs +61 -116
  86. package/index198.js +1 -1
  87. package/index198.mjs +265 -210
  88. package/index199.js +1 -1
  89. package/index199.mjs +88 -180
  90. package/index2.mjs +35 -35
  91. package/index200.js +1 -1
  92. package/index200.mjs +179 -60
  93. package/index201.js +1 -1
  94. package/index201.mjs +71 -266
  95. package/index202.js +1 -1
  96. package/index202.mjs +52 -92
  97. package/index203.js +1 -1
  98. package/index203.mjs +120 -182
  99. package/index204.js +1 -1
  100. package/index204.mjs +108 -76
  101. package/index205.js +1 -1
  102. package/index205.mjs +114 -50
  103. package/index206.js +1 -1
  104. package/index206.mjs +64 -118
  105. package/index207.js +1 -1
  106. package/index207.mjs +105 -111
  107. package/index208.js +1 -1
  108. package/index208.mjs +47 -117
  109. package/index209.js +1 -1
  110. package/index209.mjs +88 -67
  111. package/index210.js +1 -1
  112. package/index210.mjs +68 -108
  113. package/index211.js +1 -1
  114. package/index211.mjs +45 -41
  115. package/index212.js +1 -1
  116. package/index212.mjs +83 -77
  117. package/index213.js +5 -1
  118. package/index213.mjs +59 -49
  119. package/index214.js +1 -1
  120. package/index214.mjs +12 -57
  121. package/index215.js +1 -1
  122. package/index215.mjs +5 -99
  123. package/index216.js +2 -5
  124. package/index216.mjs +48 -79
  125. package/index217.js +1 -1
  126. package/index217.mjs +9 -130
  127. package/index218.js +1 -1
  128. package/index218.mjs +52 -184
  129. package/index219.js +1 -1
  130. package/index219.mjs +130 -121
  131. package/index220.js +1 -1
  132. package/index220.mjs +14 -134
  133. package/index221.js +1 -1
  134. package/index221.mjs +41 -73
  135. package/index222.js +1 -1
  136. package/index222.mjs +231 -14
  137. package/index223.js +1 -1
  138. package/index223.mjs +120 -90
  139. package/index224.js +1 -1
  140. package/index224.mjs +66 -100
  141. package/index225.js +7 -1
  142. package/index225.mjs +439 -4
  143. package/index226.js +1 -1
  144. package/index226.mjs +58 -3
  145. package/index227.js +1 -1
  146. package/index227.mjs +52 -123
  147. package/index228.js +1 -1
  148. package/index228.mjs +4 -30
  149. package/index229.js +1 -1
  150. package/index229.mjs +24 -50
  151. package/index230.js +1 -1
  152. package/index230.mjs +46 -43
  153. package/index231.js +1 -1
  154. package/index231.mjs +5 -37
  155. package/index232.js +1 -1
  156. package/index232.mjs +24 -113
  157. package/index233.js +1 -1
  158. package/index233.mjs +11 -76
  159. package/index234.js +1 -1
  160. package/index234.mjs +4 -101
  161. package/index235.js +1 -1
  162. package/index235.mjs +15 -98
  163. package/index236.js +1 -1
  164. package/index236.mjs +36 -119
  165. package/index237.js +1 -1
  166. package/index237.mjs +41 -70
  167. package/index238.js +1 -7
  168. package/index238.mjs +27 -434
  169. package/index239.js +1 -1
  170. package/index239.mjs +30 -57
  171. package/index240.js +1 -1
  172. package/index240.mjs +11 -4
  173. package/index241.js +1 -1
  174. package/index241.mjs +27 -23
  175. package/index242.js +1 -1
  176. package/index242.mjs +15 -47
  177. package/index243.js +1 -1
  178. package/index243.mjs +9 -5
  179. package/index244.js +1 -1
  180. package/index244.mjs +6 -24
  181. package/index245.js +1 -1
  182. package/index245.mjs +5 -12
  183. package/index246.js +1 -1
  184. package/index246.mjs +7 -4
  185. package/index247.js +1 -1
  186. package/index247.mjs +29 -14
  187. package/index248.js +1 -1
  188. package/index248.mjs +17 -42
  189. package/index249.js +1 -1
  190. package/index249.mjs +41 -55
  191. package/index250.js +1 -1
  192. package/index250.mjs +7 -42
  193. package/index251.js +1 -1
  194. package/index251.mjs +15 -31
  195. package/index252.js +1 -1
  196. package/index252.mjs +3 -32
  197. package/index253.js +1 -1
  198. package/index253.mjs +19 -14
  199. package/index254.js +1 -1
  200. package/index254.mjs +34 -10
  201. package/index255.js +1 -1
  202. package/index255.mjs +21 -28
  203. package/index256.js +1 -1
  204. package/index256.mjs +26 -14
  205. package/index257.js +1 -1
  206. package/index257.mjs +129 -8
  207. package/index258.js +1 -1
  208. package/index258.mjs +190 -6
  209. package/index259.js +1 -1
  210. package/index259.mjs +9 -5
  211. package/index260.js +1 -1
  212. package/index260.mjs +3 -7
  213. package/index261.js +1 -1
  214. package/index261.mjs +35 -28
  215. package/index262.js +1 -1
  216. package/index262.mjs +5 -17
  217. package/index263.js +1 -1
  218. package/index263.mjs +27 -42
  219. package/index264.js +1 -1
  220. package/index264.mjs +6 -8
  221. package/index265.js +1 -1
  222. package/index265.mjs +124 -16
  223. package/index266.js +1 -1
  224. package/index266.mjs +135 -3
  225. package/index267.js +1 -1
  226. package/index267.mjs +75 -19
  227. package/index268.js +1 -1
  228. package/index268.mjs +12 -32
  229. package/index269.js +1 -1
  230. package/index269.mjs +93 -20
  231. package/index270.js +1 -1
  232. package/index270.mjs +105 -53
  233. package/index271.js +1 -1
  234. package/index271.mjs +4 -27
  235. package/index272.js +1 -1
  236. package/index272.mjs +3 -144
  237. package/index273.js +1 -1
  238. package/index273.mjs +119 -207
  239. package/index274.js +1 -1
  240. package/index274.mjs +29 -22
  241. package/index275.js +1 -1
  242. package/index275.mjs +51 -49
  243. package/index276.js +1 -1
  244. package/index276.mjs +43 -45
  245. package/index277.js +1 -6
  246. package/index277.mjs +35 -111
  247. package/index278.js +1 -1
  248. package/index278.mjs +114 -72
  249. package/index279.js +1 -1
  250. package/index279.mjs +76 -73
  251. package/index28.js +1 -1
  252. package/index28.mjs +38 -94
  253. package/index280.js +1 -1
  254. package/index280.mjs +101 -7
  255. package/index281.js +1 -1
  256. package/index281.mjs +98 -12
  257. package/index282.js +1 -1
  258. package/index282.mjs +144 -9
  259. package/index283.js +1 -1
  260. package/index283.mjs +207 -127
  261. package/index284.js +1 -1
  262. package/index284.mjs +22 -43
  263. package/index285.js +1 -1
  264. package/index285.mjs +44 -226
  265. package/index286.js +1 -1
  266. package/index286.mjs +45 -30
  267. package/index287.js +6 -1
  268. package/index287.mjs +112 -8
  269. package/index288.js +1 -1
  270. package/index288.mjs +72 -4
  271. package/index289.js +1 -1
  272. package/index289.mjs +71 -33
  273. package/index29.js +1 -1
  274. package/index29.mjs +2 -2
  275. package/index290.js +1 -1
  276. package/index290.mjs +7 -5
  277. package/index291.js +1 -1
  278. package/index291.mjs +11 -29
  279. package/index292.js +1 -1
  280. package/index292.mjs +31 -6
  281. package/index293.js +1 -1
  282. package/index293.mjs +3 -4
  283. package/index294.js +1 -1
  284. package/index294.mjs +4 -3
  285. package/index30.js +1 -1
  286. package/index30.mjs +1 -1
  287. package/index329.js +1 -1
  288. package/index329.mjs +17 -59
  289. package/index33.js +1 -1
  290. package/index33.mjs +2 -2
  291. package/index330.js +1 -1
  292. package/index330.mjs +30 -7
  293. package/index331.js +1 -1
  294. package/index331.mjs +63 -27
  295. package/index332.js +1 -1
  296. package/index332.mjs +15 -87
  297. package/index333.js +1 -1
  298. package/index333.mjs +48 -7
  299. package/index334.js +1 -1
  300. package/index334.mjs +7 -26
  301. package/index335.js +1 -1
  302. package/index335.mjs +26 -32
  303. package/index336.js +1 -1
  304. package/index336.mjs +87 -6
  305. package/index337.js +1 -1
  306. package/index337.mjs +9 -6
  307. package/index338.js +1 -1
  308. package/index338.mjs +23 -48
  309. package/index339.js +1 -1
  310. package/index339.mjs +32 -28
  311. package/index34.js +1 -1
  312. package/index34.mjs +3 -3
  313. package/index340.js +1 -1
  314. package/index340.mjs +6 -15
  315. package/index341.js +1 -1
  316. package/index341.mjs +6 -21
  317. package/index342.js +1 -1
  318. package/index342.mjs +28 -28
  319. package/index345.js +1 -1
  320. package/index345.mjs +1 -1
  321. package/index35.js +1 -1
  322. package/index35.mjs +1 -1
  323. package/index36.js +1 -1
  324. package/index36.mjs +2 -2
  325. package/index38.js +1 -1
  326. package/index38.mjs +3 -3
  327. package/index39.js +1 -1
  328. package/index39.mjs +3 -3
  329. package/index40.js +1 -1
  330. package/index40.mjs +3 -3
  331. package/index42.js +1 -1
  332. package/index42.mjs +1 -1
  333. package/index44.js +1 -1
  334. package/index44.mjs +2 -2
  335. package/index45.js +1 -1
  336. package/index45.mjs +1 -1
  337. package/index48.js +1 -1
  338. package/index48.mjs +2 -2
  339. package/index52.js +1 -1
  340. package/index52.mjs +1 -1
  341. package/index54.js +1 -1
  342. package/index54.mjs +3 -3
  343. package/index56.js +1 -1
  344. package/index56.mjs +2 -2
  345. package/index57.js +1 -1
  346. package/index57.mjs +1 -1
  347. package/index59.js +1 -1
  348. package/index59.mjs +2 -2
  349. package/package.json +1 -1
package/index188.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { a as D, g as F } from "./index217.mjs";
2
- import { w as A, e as G, h as ie, c as K, p as V, x as ve, a as we, s as N, f as se, q as Se, r as Te, j as xe, t as de, n as J, u as R, v as be, d as $ } from "./index218.mjs";
1
+ import { a as D, g as F } from "./index257.mjs";
2
+ import { w as A, u as R, e as G, n as K, t as de, j as ve, q as we, r as Se, s as N, p as V, f as ie, h as se, c as J, x as Te, v as xe, d as $, a as be } from "./index258.mjs";
3
3
  let H;
4
4
  function ye() {
5
5
  const i = D(), t = F();
@@ -77,9 +77,9 @@ function Ie(i) {
77
77
  let {
78
78
  contentBoxSize: g,
79
79
  contentRect: b,
80
- target: v
80
+ target: w
81
81
  } = x;
82
- v && v !== t.el || (h = b ? b.width : (g[0] || g).inlineSize, m = b ? b.height : (g[0] || g).blockSize);
82
+ w && w !== t.el || (h = b ? b.width : (g[0] || g).inlineSize, m = b ? b.height : (g[0] || g).blockSize);
83
83
  }), (h !== p || m !== u) && o();
84
84
  });
85
85
  }), r.observe(t.el));
@@ -126,7 +126,7 @@ function Ce(i) {
126
126
  }, a = () => {
127
127
  if (t.params.observer) {
128
128
  if (t.params.observeParents) {
129
- const c = we(t.hostEl);
129
+ const c = be(t.hostEl);
130
130
  for (let f = 0; f < c.length; f += 1)
131
131
  o(c[f]);
132
132
  }
@@ -214,8 +214,8 @@ function ze() {
214
214
  }
215
215
  function Oe() {
216
216
  const i = this;
217
- function t(w, y) {
218
- return parseFloat(w.getPropertyValue(i.getDirectionLabel(y)) || 0);
217
+ function t(S, y) {
218
+ return parseFloat(S.getPropertyValue(i.getDirectionLabel(y)) || 0);
219
219
  }
220
220
  const e = i.params, {
221
221
  wrapperEl: s,
@@ -231,25 +231,25 @@ function Oe() {
231
231
  let x = e.slidesOffsetAfter;
232
232
  typeof x == "function" && (x = e.slidesOffsetAfter.call(i));
233
233
  const g = i.snapGrid.length, b = i.slidesGrid.length;
234
- let v = e.spaceBetween, E = -m, S = 0, M = 0;
234
+ let w = e.spaceBetween, E = -m, v = 0, M = 0;
235
235
  if (typeof r > "u")
236
236
  return;
237
- typeof v == "string" && v.indexOf("%") >= 0 ? v = parseFloat(v.replace("%", "")) / 100 * r : typeof v == "string" && (v = parseFloat(v)), i.virtualSize = -v, c.forEach((w) => {
238
- l ? w.style.marginLeft = "" : w.style.marginRight = "", w.style.marginBottom = "", w.style.marginTop = "";
237
+ typeof w == "string" && w.indexOf("%") >= 0 ? w = parseFloat(w.replace("%", "")) / 100 * r : typeof w == "string" && (w = parseFloat(w)), i.virtualSize = -w, c.forEach((S) => {
238
+ l ? S.style.marginLeft = "" : S.style.marginRight = "", S.style.marginBottom = "", S.style.marginTop = "";
239
239
  }), e.centeredSlides && e.cssMode && (N(s, "--swiper-centered-offset-before", ""), N(s, "--swiper-centered-offset-after", ""));
240
240
  const z = e.grid && e.grid.rows > 1 && i.grid;
241
241
  z ? i.grid.initSlides(c) : i.grid && i.grid.unsetSlides();
242
242
  let I;
243
- const B = e.slidesPerView === "auto" && e.breakpoints && Object.keys(e.breakpoints).filter((w) => typeof e.breakpoints[w].slidesPerView < "u").length > 0;
244
- for (let w = 0; w < f; w += 1) {
243
+ const B = e.slidesPerView === "auto" && e.breakpoints && Object.keys(e.breakpoints).filter((S) => typeof e.breakpoints[S].slidesPerView < "u").length > 0;
244
+ for (let S = 0; S < f; S += 1) {
245
245
  I = 0;
246
246
  let y;
247
- if (c[w] && (y = c[w]), z && i.grid.updateSlide(w, y, c), !(c[w] && V(y, "display") === "none")) {
247
+ if (c[S] && (y = c[S]), z && i.grid.updateSlide(S, y, c), !(c[S] && V(y, "display") === "none")) {
248
248
  if (e.slidesPerView === "auto") {
249
- B && (c[w].style[i.getDirectionLabel("width")] = "");
249
+ B && (c[S].style[i.getDirectionLabel("width")] = "");
250
250
  const P = getComputedStyle(y), T = y.style.transform, C = y.style.webkitTransform;
251
251
  if (T && (y.style.transform = "none"), C && (y.style.webkitTransform = "none"), e.roundLengths)
252
- I = i.isHorizontal() ? se(y, "width") : se(y, "height");
252
+ I = i.isHorizontal() ? ie(y, "width") : ie(y, "height");
253
253
  else {
254
254
  const L = t(P, "width"), k = t(P, "padding-left"), he = t(P, "padding-right"), Z = t(P, "margin-left"), ee = t(P, "margin-right"), te = P.getPropertyValue("box-sizing");
255
255
  if (te && te === "border-box")
@@ -264,50 +264,50 @@ function Oe() {
264
264
  }
265
265
  T && (y.style.transform = T), C && (y.style.webkitTransform = C), e.roundLengths && (I = Math.floor(I));
266
266
  } else
267
- I = (r - (e.slidesPerView - 1) * v) / e.slidesPerView, e.roundLengths && (I = Math.floor(I)), c[w] && (c[w].style[i.getDirectionLabel("width")] = `${I}px`);
268
- c[w] && (c[w].swiperSlideSize = I), h.push(I), e.centeredSlides ? (E = E + I / 2 + S / 2 + v, S === 0 && w !== 0 && (E = E - r / 2 - v), w === 0 && (E = E - r / 2 - v), Math.abs(E) < 1 / 1e3 && (E = 0), e.roundLengths && (E = Math.floor(E)), M % e.slidesPerGroup === 0 && p.push(E), u.push(E)) : (e.roundLengths && (E = Math.floor(E)), (M - Math.min(i.params.slidesPerGroupSkip, M)) % i.params.slidesPerGroup === 0 && p.push(E), u.push(E), E = E + I + v), i.virtualSize += I + v, S = I, M += 1;
267
+ I = (r - (e.slidesPerView - 1) * w) / e.slidesPerView, e.roundLengths && (I = Math.floor(I)), c[S] && (c[S].style[i.getDirectionLabel("width")] = `${I}px`);
268
+ c[S] && (c[S].swiperSlideSize = I), h.push(I), e.centeredSlides ? (E = E + I / 2 + v / 2 + w, v === 0 && S !== 0 && (E = E - r / 2 - w), S === 0 && (E = E - r / 2 - w), Math.abs(E) < 1 / 1e3 && (E = 0), e.roundLengths && (E = Math.floor(E)), M % e.slidesPerGroup === 0 && p.push(E), u.push(E)) : (e.roundLengths && (E = Math.floor(E)), (M - Math.min(i.params.slidesPerGroupSkip, M)) % i.params.slidesPerGroup === 0 && p.push(E), u.push(E), E = E + I + w), i.virtualSize += I + w, v = I, M += 1;
269
269
  }
270
270
  }
271
- if (i.virtualSize = Math.max(i.virtualSize, r) + x, l && o && (e.effect === "slide" || e.effect === "coverflow") && (s.style.width = `${i.virtualSize + v}px`), e.setWrapperSize && (s.style[i.getDirectionLabel("width")] = `${i.virtualSize + v}px`), z && i.grid.updateWrapperSize(I, p), !e.centeredSlides) {
272
- const w = [];
271
+ if (i.virtualSize = Math.max(i.virtualSize, r) + x, l && o && (e.effect === "slide" || e.effect === "coverflow") && (s.style.width = `${i.virtualSize + w}px`), e.setWrapperSize && (s.style[i.getDirectionLabel("width")] = `${i.virtualSize + w}px`), z && i.grid.updateWrapperSize(I, p), !e.centeredSlides) {
272
+ const S = [];
273
273
  for (let y = 0; y < p.length; y += 1) {
274
274
  let P = p[y];
275
- e.roundLengths && (P = Math.floor(P)), p[y] <= i.virtualSize - r && w.push(P);
275
+ e.roundLengths && (P = Math.floor(P)), p[y] <= i.virtualSize - r && S.push(P);
276
276
  }
277
- p = w, Math.floor(i.virtualSize - r) - Math.floor(p[p.length - 1]) > 1 && p.push(i.virtualSize - r);
277
+ p = S, Math.floor(i.virtualSize - r) - Math.floor(p[p.length - 1]) > 1 && p.push(i.virtualSize - r);
278
278
  }
279
279
  if (a && e.loop) {
280
- const w = h[0] + v;
280
+ const S = h[0] + w;
281
281
  if (e.slidesPerGroup > 1) {
282
- const y = Math.ceil((i.virtual.slidesBefore + i.virtual.slidesAfter) / e.slidesPerGroup), P = w * e.slidesPerGroup;
282
+ const y = Math.ceil((i.virtual.slidesBefore + i.virtual.slidesAfter) / e.slidesPerGroup), P = S * e.slidesPerGroup;
283
283
  for (let T = 0; T < y; T += 1)
284
284
  p.push(p[p.length - 1] + P);
285
285
  }
286
286
  for (let y = 0; y < i.virtual.slidesBefore + i.virtual.slidesAfter; y += 1)
287
- e.slidesPerGroup === 1 && p.push(p[p.length - 1] + w), u.push(u[u.length - 1] + w), i.virtualSize += w;
287
+ e.slidesPerGroup === 1 && p.push(p[p.length - 1] + S), u.push(u[u.length - 1] + S), i.virtualSize += S;
288
288
  }
289
- if (p.length === 0 && (p = [0]), v !== 0) {
290
- const w = i.isHorizontal() && l ? "marginLeft" : i.getDirectionLabel("marginRight");
289
+ if (p.length === 0 && (p = [0]), w !== 0) {
290
+ const S = i.isHorizontal() && l ? "marginLeft" : i.getDirectionLabel("marginRight");
291
291
  c.filter((y, P) => !e.cssMode || e.loop ? !0 : P !== c.length - 1).forEach((y) => {
292
- y.style[w] = `${v}px`;
292
+ y.style[S] = `${w}px`;
293
293
  });
294
294
  }
295
295
  if (e.centeredSlides && e.centeredSlidesBounds) {
296
- let w = 0;
296
+ let S = 0;
297
297
  h.forEach((P) => {
298
- w += P + (v || 0);
299
- }), w -= v;
300
- const y = w > r ? w - r : 0;
298
+ S += P + (w || 0);
299
+ }), S -= w;
300
+ const y = S > r ? S - r : 0;
301
301
  p = p.map((P) => P <= 0 ? -m : P > y ? y + x : P);
302
302
  }
303
303
  if (e.centerInsufficientSlides) {
304
- let w = 0;
304
+ let S = 0;
305
305
  h.forEach((P) => {
306
- w += P + (v || 0);
307
- }), w -= v;
306
+ S += P + (w || 0);
307
+ }), S -= w;
308
308
  const y = (e.slidesOffsetBefore || 0) + (e.slidesOffsetAfter || 0);
309
- if (w + y < r) {
310
- const P = (r - w - y) / 2;
309
+ if (S + y < r) {
310
+ const P = (r - S - y) / 2;
311
311
  p.forEach((T, C) => {
312
312
  p[C] = T - P;
313
313
  }), u.forEach((T, C) => {
@@ -322,12 +322,12 @@ function Oe() {
322
322
  slidesSizesGrid: h
323
323
  }), e.centeredSlides && e.cssMode && !e.centeredSlidesBounds) {
324
324
  N(s, "--swiper-centered-offset-before", `${-p[0]}px`), N(s, "--swiper-centered-offset-after", `${i.size / 2 - h[h.length - 1] / 2}px`);
325
- const w = -i.snapGrid[0], y = -i.slidesGrid[0];
326
- i.snapGrid = i.snapGrid.map((P) => P + w), i.slidesGrid = i.slidesGrid.map((P) => P + y);
325
+ const S = -i.snapGrid[0], y = -i.slidesGrid[0];
326
+ i.snapGrid = i.snapGrid.map((P) => P + S), i.slidesGrid = i.slidesGrid.map((P) => P + y);
327
327
  }
328
328
  if (f !== d && i.emit("slidesLengthChange"), p.length !== g && (i.params.watchOverflow && i.checkOverflow(), i.emit("snapGridLengthChange")), u.length !== b && i.emit("slidesGridLengthChange"), e.watchSlidesProgress && i.updateSlidesOffset(), i.emit("slidesUpdated"), !a && !e.cssMode && (e.effect === "slide" || e.effect === "fade")) {
329
- const w = `${e.containerModifierClass}backface-hidden`, y = i.el.classList.contains(w);
330
- f <= e.maxBackfaceHiddenSlides ? y || i.el.classList.add(w) : y && i.el.classList.remove(w);
329
+ const S = `${e.containerModifierClass}backface-hidden`, y = i.el.classList.contains(S);
330
+ f <= e.maxBackfaceHiddenSlides ? y || i.el.classList.add(S) : y && i.el.classList.remove(S);
331
331
  }
332
332
  }
333
333
  function Ae(i) {
@@ -435,7 +435,7 @@ function De() {
435
435
  a = o(`[data-swiper-slide-index="${n}"]`);
436
436
  else
437
437
  l ? (a = t.filter((f) => f.column === n)[0], c = t.filter((f) => f.column === n + 1)[0], d = t.filter((f) => f.column === n - 1)[0]) : a = t[n];
438
- a && (l || (c = Se(a, `.${e.slideClass}, swiper-slide`)[0], e.loop && !c && (c = t[0]), d = Te(a, `.${e.slideClass}, swiper-slide`)[0], e.loop && !d === 0 && (d = t[t.length - 1]))), t.forEach((f) => {
438
+ a && (l || (c = we(a, `.${e.slideClass}, swiper-slide`)[0], e.loop && !c && (c = t[0]), d = Se(a, `.${e.slideClass}, swiper-slide`)[0], e.loop && !d === 0 && (d = t[t.length - 1]))), t.forEach((f) => {
439
439
  X(f, f === a, e.slideActiveClass), X(f, f === c, e.slideNextClass), X(f, f === d, e.slidePrevClass);
440
440
  }), i.emitSlidesClasses();
441
441
  }
@@ -582,7 +582,7 @@ function Re(i) {
582
582
  return s ? -n : n;
583
583
  if (e.cssMode)
584
584
  return n;
585
- let l = xe(r, i);
585
+ let l = ve(r, i);
586
586
  return l += t.cssOverflowAdjustment(), s && (l = -l), l || 0;
587
587
  }
588
588
  function $e(i, t) {
@@ -720,24 +720,24 @@ function Je(i, t, e, s, n) {
720
720
  x >= a.length && (x = a.length - 1);
721
721
  const g = -a[x];
722
722
  if (o.normalizeSlideIndex)
723
- for (let S = 0; S < d.length; S += 1) {
724
- const M = -Math.floor(g * 100), z = Math.floor(d[S] * 100), I = Math.floor(d[S + 1] * 100);
725
- typeof d[S + 1] < "u" ? M >= z && M < I - (I - z) / 2 ? l = S : M >= z && M < I && (l = S + 1) : M >= z && (l = S);
723
+ for (let v = 0; v < d.length; v += 1) {
724
+ const M = -Math.floor(g * 100), z = Math.floor(d[v] * 100), I = Math.floor(d[v + 1] * 100);
725
+ typeof d[v + 1] < "u" ? M >= z && M < I - (I - z) / 2 ? l = v : M >= z && M < I && (l = v + 1) : M >= z && (l = v);
726
726
  }
727
727
  if (r.initialized && l !== f && (!r.allowSlideNext && (p ? g > r.translate && g > r.minTranslate() : g < r.translate && g < r.minTranslate()) || !r.allowSlidePrev && g > r.translate && g > r.maxTranslate() && (f || 0) !== l))
728
728
  return !1;
729
729
  l !== (c || 0) && e && r.emit("beforeSlideChangeStart"), r.updateProgress(g);
730
730
  let b;
731
731
  l > f ? b = "next" : l < f ? b = "prev" : b = "reset";
732
- const v = r.virtual && r.params.virtual.enabled;
733
- if (!(v && n) && (p && -g === r.translate || !p && g === r.translate))
732
+ const w = r.virtual && r.params.virtual.enabled;
733
+ if (!(w && n) && (p && -g === r.translate || !p && g === r.translate))
734
734
  return r.updateActiveIndex(l), o.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), o.effect !== "slide" && r.setTranslate(g), b !== "reset" && (r.transitionStart(e, b), r.transitionEnd(e, b)), !1;
735
735
  if (o.cssMode) {
736
- const S = r.isHorizontal(), M = p ? g : -g;
736
+ const v = r.isHorizontal(), M = p ? g : -g;
737
737
  if (t === 0)
738
- v && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = !0), v && !r._cssModeVirtualInitialSet && r.params.initialSlide > 0 ? (r._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
739
- u[S ? "scrollLeft" : "scrollTop"] = M;
740
- })) : u[S ? "scrollLeft" : "scrollTop"] = M, v && requestAnimationFrame(() => {
738
+ w && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = !0), w && !r._cssModeVirtualInitialSet && r.params.initialSlide > 0 ? (r._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
739
+ u[v ? "scrollLeft" : "scrollTop"] = M;
740
+ })) : u[v ? "scrollLeft" : "scrollTop"] = M, w && requestAnimationFrame(() => {
741
741
  r.wrapperEl.style.scrollSnapType = "", r._immediateVirtual = !1;
742
742
  });
743
743
  else {
@@ -745,10 +745,10 @@ function Je(i, t, e, s, n) {
745
745
  return de({
746
746
  swiper: r,
747
747
  targetPosition: M,
748
- side: S ? "left" : "top"
748
+ side: v ? "left" : "top"
749
749
  }), !0;
750
750
  u.scrollTo({
751
- [S ? "left" : "top"]: M,
751
+ [v ? "left" : "top"]: M,
752
752
  behavior: "smooth"
753
753
  });
754
754
  }
@@ -850,8 +850,8 @@ function et(i, t, e) {
850
850
  let m = r[h.indexOf(u) - 1];
851
851
  if (typeof m > "u" && n.cssMode) {
852
852
  let g;
853
- r.forEach((b, v) => {
854
- u >= b && (g = v);
853
+ r.forEach((b, w) => {
854
+ u >= b && (g = w);
855
855
  }), typeof g < "u" && (m = r[g > 0 ? g - 1 : g]);
856
856
  }
857
857
  let x = 0;
@@ -897,9 +897,9 @@ function st() {
897
897
  const l = i.isElement ? "swiper-slide" : `.${t.slideClass}`;
898
898
  if (t.loop) {
899
899
  if (i.animating) return;
900
- r = parseInt(i.clickedSlide.getAttribute("data-swiper-slide-index"), 10), t.centeredSlides ? n < i.loopedSlides - s / 2 || n > i.slides.length - i.loopedSlides + s / 2 ? (i.loopFix(), n = i.getSlideIndex(G(e, `${l}[data-swiper-slide-index="${r}"]`)[0]), J(() => {
900
+ r = parseInt(i.clickedSlide.getAttribute("data-swiper-slide-index"), 10), t.centeredSlides ? n < i.loopedSlides - s / 2 || n > i.slides.length - i.loopedSlides + s / 2 ? (i.loopFix(), n = i.getSlideIndex(G(e, `${l}[data-swiper-slide-index="${r}"]`)[0]), K(() => {
901
901
  i.slideTo(n);
902
- })) : i.slideTo(n) : n > i.slides.length - s ? (i.loopFix(), n = i.getSlideIndex(G(e, `${l}[data-swiper-slide-index="${r}"]`)[0]), J(() => {
902
+ })) : i.slideTo(n) : n > i.slides.length - s ? (i.loopFix(), n = i.getSlideIndex(G(e, `${l}[data-swiper-slide-index="${r}"]`)[0]), K(() => {
903
903
  i.slideTo(n);
904
904
  })) : i.slideTo(n);
905
905
  } else
@@ -926,7 +926,7 @@ function nt(i) {
926
926
  });
927
927
  }, r = t.grid && e.grid && e.grid.rows > 1, l = e.slidesPerGroup * (r ? e.grid.rows : 1), o = t.slides.length % l !== 0, a = r && t.slides.length % e.grid.rows !== 0, d = (c) => {
928
928
  for (let f = 0; f < c; f += 1) {
929
- const p = t.isElement ? K("swiper-slide", [e.slideBlankClass]) : K("div", [e.slideClass, e.slideBlankClass]);
929
+ const p = t.isElement ? J("swiper-slide", [e.slideBlankClass]) : J("div", [e.slideClass, e.slideBlankClass]);
930
930
  t.slidesEl.append(p);
931
931
  }
932
932
  };
@@ -984,27 +984,27 @@ function at(i) {
984
984
  g % x !== 0 && (g += x - g % x), g += u.loopAdditionalSlides, a.loopedSlides = g;
985
985
  const b = a.grid && u.grid && u.grid.rows > 1;
986
986
  d.length < m + g ? R("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : b && u.grid.fill === "row" && R("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
987
- const v = [], E = [];
988
- let S = a.activeIndex;
989
- typeof r > "u" ? r = a.getSlideIndex(d.filter((T) => T.classList.contains(u.slideActiveClass))[0]) : S = r;
987
+ const w = [], E = [];
988
+ let v = a.activeIndex;
989
+ typeof r > "u" ? r = a.getSlideIndex(d.filter((T) => T.classList.contains(u.slideActiveClass))[0]) : v = r;
990
990
  const M = s === "next" || !s, z = s === "prev" || !s;
991
991
  let I = 0, B = 0;
992
- const w = b ? Math.ceil(d.length / u.grid.rows) : d.length, P = (b ? d[r].column : r) + (h && typeof n > "u" ? -m / 2 + 0.5 : 0);
992
+ const S = b ? Math.ceil(d.length / u.grid.rows) : d.length, P = (b ? d[r].column : r) + (h && typeof n > "u" ? -m / 2 + 0.5 : 0);
993
993
  if (P < g) {
994
994
  I = Math.max(g - P, x);
995
995
  for (let T = 0; T < g - P; T += 1) {
996
- const C = T - Math.floor(T / w) * w;
996
+ const C = T - Math.floor(T / S) * S;
997
997
  if (b) {
998
- const L = w - C - 1;
998
+ const L = S - C - 1;
999
999
  for (let k = d.length - 1; k >= 0; k -= 1)
1000
- d[k].column === L && v.push(k);
1000
+ d[k].column === L && w.push(k);
1001
1001
  } else
1002
- v.push(w - C - 1);
1002
+ w.push(S - C - 1);
1003
1003
  }
1004
- } else if (P + m > w - g) {
1005
- B = Math.max(P - (w - g * 2), x);
1004
+ } else if (P + m > S - g) {
1005
+ B = Math.max(P - (S - g * 2), x);
1006
1006
  for (let T = 0; T < B; T += 1) {
1007
- const C = T - Math.floor(T / w) * w;
1007
+ const C = T - Math.floor(T / S) * S;
1008
1008
  b ? d.forEach((L, k) => {
1009
1009
  L.column === C && E.push(k);
1010
1010
  }) : E.push(C);
@@ -1012,25 +1012,25 @@ function at(i) {
1012
1012
  }
1013
1013
  if (a.__preventObserver__ = !0, requestAnimationFrame(() => {
1014
1014
  a.__preventObserver__ = !1;
1015
- }), z && v.forEach((T) => {
1015
+ }), z && w.forEach((T) => {
1016
1016
  d[T].swiperLoopMoveDOM = !0, p.prepend(d[T]), d[T].swiperLoopMoveDOM = !1;
1017
1017
  }), M && E.forEach((T) => {
1018
1018
  d[T].swiperLoopMoveDOM = !0, p.append(d[T]), d[T].swiperLoopMoveDOM = !1;
1019
- }), a.recalcSlides(), u.slidesPerView === "auto" ? a.updateSlides() : b && (v.length > 0 && z || E.length > 0 && M) && a.slides.forEach((T, C) => {
1019
+ }), a.recalcSlides(), u.slidesPerView === "auto" ? a.updateSlides() : b && (w.length > 0 && z || E.length > 0 && M) && a.slides.forEach((T, C) => {
1020
1020
  a.grid.updateSlide(C, T, a.slides);
1021
1021
  }), u.watchSlidesProgress && a.updateSlidesOffset(), e) {
1022
- if (v.length > 0 && z) {
1022
+ if (w.length > 0 && z) {
1023
1023
  if (typeof t > "u") {
1024
- const T = a.slidesGrid[S], L = a.slidesGrid[S + I] - T;
1025
- o ? a.setTranslate(a.translate - L) : (a.slideTo(S + Math.ceil(I), 0, !1, !0), n && (a.touchEventsData.startTranslate = a.touchEventsData.startTranslate - L, a.touchEventsData.currentTranslate = a.touchEventsData.currentTranslate - L));
1024
+ const T = a.slidesGrid[v], L = a.slidesGrid[v + I] - T;
1025
+ o ? a.setTranslate(a.translate - L) : (a.slideTo(v + Math.ceil(I), 0, !1, !0), n && (a.touchEventsData.startTranslate = a.touchEventsData.startTranslate - L, a.touchEventsData.currentTranslate = a.touchEventsData.currentTranslate - L));
1026
1026
  } else if (n) {
1027
- const T = b ? v.length / u.grid.rows : v.length;
1027
+ const T = b ? w.length / u.grid.rows : w.length;
1028
1028
  a.slideTo(a.activeIndex + T, 0, !1, !0), a.touchEventsData.currentTranslate = a.translate;
1029
1029
  }
1030
1030
  } else if (E.length > 0 && M)
1031
1031
  if (typeof t > "u") {
1032
- const T = a.slidesGrid[S], L = a.slidesGrid[S - B] - T;
1033
- o ? a.setTranslate(a.translate - L) : (a.slideTo(S - B, 0, !1, !0), n && (a.touchEventsData.startTranslate = a.touchEventsData.startTranslate - L, a.touchEventsData.currentTranslate = a.touchEventsData.currentTranslate - L));
1032
+ const T = a.slidesGrid[v], L = a.slidesGrid[v - B] - T;
1033
+ o ? a.setTranslate(a.translate - L) : (a.slideTo(v - B, 0, !1, !0), n && (a.touchEventsData.startTranslate = a.touchEventsData.startTranslate - L, a.touchEventsData.currentTranslate = a.touchEventsData.currentTranslate - L));
1034
1034
  } else {
1035
1035
  const T = b ? E.length / u.grid.rows : E.length;
1036
1036
  a.slideTo(a.activeIndex - T, 0, !1, !0);
@@ -1135,7 +1135,7 @@ function pt(i) {
1135
1135
  return;
1136
1136
  !t.animating && r.cssMode && r.loop && t.loopFix();
1137
1137
  let a = s.target;
1138
- if (r.touchEventsTarget === "wrapper" && !be(a, t.wrapperEl) || "which" in s && s.which === 3 || "button" in s && s.button > 0 || n.isTouched && n.isMoved) return;
1138
+ if (r.touchEventsTarget === "wrapper" && !xe(a, t.wrapperEl) || "which" in s && s.which === 3 || "button" in s && s.button > 0 || n.isTouched && n.isMoved) return;
1139
1139
  const d = !!r.noSwipingClass && r.noSwipingClass !== "", c = s.composedPath ? s.composedPath() : s.path;
1140
1140
  d && s.target && s.target.shadowRoot && c && (a = c[0]);
1141
1141
  const f = r.noSwipingSelector ? r.noSwipingSelector : `.${r.noSwipingClass}`, p = !!(s.target && s.target.shadowRoot);
@@ -1174,7 +1174,7 @@ function ht(i) {
1174
1174
  return;
1175
1175
  let d;
1176
1176
  if (a.type === "touchmove") {
1177
- if (d = [...a.changedTouches].filter((M) => M.identifier === s.touchId)[0], !d || d.identifier !== s.touchId) return;
1177
+ if (d = [...a.changedTouches].filter((v) => v.identifier === s.touchId)[0], !d || d.identifier !== s.touchId) return;
1178
1178
  } else
1179
1179
  d = a;
1180
1180
  if (!s.isTouched) {
@@ -1212,8 +1212,8 @@ function ht(i) {
1212
1212
  const p = r.currentX - r.startX, u = r.currentY - r.startY;
1213
1213
  if (e.params.threshold && Math.sqrt(p ** 2 + u ** 2) < e.params.threshold) return;
1214
1214
  if (typeof s.isScrolling > "u") {
1215
- let M;
1216
- e.isHorizontal() && r.currentY === r.startY || e.isVertical() && r.currentX === r.startX ? s.isScrolling = !1 : p * p + u * u >= 25 && (M = Math.atan2(Math.abs(u), Math.abs(p)) * 180 / Math.PI, s.isScrolling = e.isHorizontal() ? M > n.touchAngle : 90 - M > n.touchAngle);
1215
+ let v;
1216
+ e.isHorizontal() && r.currentY === r.startY || e.isVertical() && r.currentX === r.startX ? s.isScrolling = !1 : p * p + u * u >= 25 && (v = Math.atan2(Math.abs(u), Math.abs(p)) * 180 / Math.PI, s.isScrolling = e.isHorizontal() ? v > n.touchAngle : 90 - v > n.touchAngle);
1217
1217
  }
1218
1218
  if (s.isScrolling && e.emit("touchMoveOpposite", a), typeof s.startMoving > "u" && (r.currentX !== r.startX || r.currentY !== r.startY) && (s.startMoving = !0), s.isScrolling || a.type === "touchmove" && s.preventTouchMoveFromPointerMove) {
1219
1219
  s.isTouched = !1;
@@ -1231,18 +1231,17 @@ function ht(i) {
1231
1231
  if (g && b && e.loopFix({
1232
1232
  direction: e.swipeDirection
1233
1233
  }), s.startTranslate = e.getTranslate(), e.setTransition(0), e.animating) {
1234
- const M = new window.CustomEvent("transitionend", {
1234
+ const v = new window.CustomEvent("transitionend", {
1235
1235
  bubbles: !0,
1236
1236
  cancelable: !0,
1237
1237
  detail: {
1238
1238
  bySwiperTouchMove: !0
1239
1239
  }
1240
1240
  });
1241
- e.wrapperEl.dispatchEvent(M);
1241
+ e.wrapperEl.dispatchEvent(v);
1242
1242
  }
1243
1243
  s.allowMomentumBounce = !1, n.grabCursor && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!0), e.emit("sliderFirstMove", a);
1244
1244
  }
1245
- let v;
1246
1245
  if ((/* @__PURE__ */ new Date()).getTime(), s.isMoved && s.allowThresholdMove && x !== e.touchesDirection && g && b && Math.abs(h) >= 1) {
1247
1246
  Object.assign(r, {
1248
1247
  startX: c,
@@ -1254,16 +1253,16 @@ function ht(i) {
1254
1253
  return;
1255
1254
  }
1256
1255
  e.emit("sliderMove", a), s.isMoved = !0, s.currentTranslate = h + s.startTranslate;
1257
- let E = !0, S = n.resistanceRatio;
1258
- if (n.touchReleaseOnEdges && (S = 0), h > 0 ? (g && b && !v && s.allowThresholdMove && s.currentTranslate > (n.centeredSlides ? e.minTranslate() - e.slidesSizesGrid[e.activeIndex + 1] - (n.slidesPerView !== "auto" && e.slides.length - n.slidesPerView >= 2 ? e.slidesSizesGrid[e.activeIndex + 1] + e.params.spaceBetween : 0) - e.params.spaceBetween : e.minTranslate()) && e.loopFix({
1256
+ let w = !0, E = n.resistanceRatio;
1257
+ if (n.touchReleaseOnEdges && (E = 0), h > 0 ? (g && b && s.allowThresholdMove && s.currentTranslate > (n.centeredSlides ? e.minTranslate() - e.slidesSizesGrid[e.activeIndex + 1] - (n.slidesPerView !== "auto" && e.slides.length - n.slidesPerView >= 2 ? e.slidesSizesGrid[e.activeIndex + 1] + e.params.spaceBetween : 0) - e.params.spaceBetween : e.minTranslate()) && e.loopFix({
1259
1258
  direction: "prev",
1260
1259
  setTranslate: !0,
1261
1260
  activeSlideIndex: 0
1262
- }), s.currentTranslate > e.minTranslate() && (E = !1, n.resistance && (s.currentTranslate = e.minTranslate() - 1 + (-e.minTranslate() + s.startTranslate + h) ** S))) : h < 0 && (g && b && !v && s.allowThresholdMove && s.currentTranslate < (n.centeredSlides ? e.maxTranslate() + e.slidesSizesGrid[e.slidesSizesGrid.length - 1] + e.params.spaceBetween + (n.slidesPerView !== "auto" && e.slides.length - n.slidesPerView >= 2 ? e.slidesSizesGrid[e.slidesSizesGrid.length - 1] + e.params.spaceBetween : 0) : e.maxTranslate()) && e.loopFix({
1261
+ }), s.currentTranslate > e.minTranslate() && (w = !1, n.resistance && (s.currentTranslate = e.minTranslate() - 1 + (-e.minTranslate() + s.startTranslate + h) ** E))) : h < 0 && (g && b && s.allowThresholdMove && s.currentTranslate < (n.centeredSlides ? e.maxTranslate() + e.slidesSizesGrid[e.slidesSizesGrid.length - 1] + e.params.spaceBetween + (n.slidesPerView !== "auto" && e.slides.length - n.slidesPerView >= 2 ? e.slidesSizesGrid[e.slidesSizesGrid.length - 1] + e.params.spaceBetween : 0) : e.maxTranslate()) && e.loopFix({
1263
1262
  direction: "next",
1264
1263
  setTranslate: !0,
1265
1264
  activeSlideIndex: e.slides.length - (n.slidesPerView === "auto" ? e.slidesPerViewDynamic() : Math.ceil(parseFloat(n.slidesPerView, 10)))
1266
- }), s.currentTranslate < e.maxTranslate() && (E = !1, n.resistance && (s.currentTranslate = e.maxTranslate() + 1 - (e.maxTranslate() - s.startTranslate - h) ** S))), E && (a.preventedByNestedSwiper = !0), !e.allowSlideNext && e.swipeDirection === "next" && s.currentTranslate < s.startTranslate && (s.currentTranslate = s.startTranslate), !e.allowSlidePrev && e.swipeDirection === "prev" && s.currentTranslate > s.startTranslate && (s.currentTranslate = s.startTranslate), !e.allowSlidePrev && !e.allowSlideNext && (s.currentTranslate = s.startTranslate), n.threshold > 0)
1265
+ }), s.currentTranslate < e.maxTranslate() && (w = !1, n.resistance && (s.currentTranslate = e.maxTranslate() + 1 - (e.maxTranslate() - s.startTranslate - h) ** E))), w && (a.preventedByNestedSwiper = !0), !e.allowSlideNext && e.swipeDirection === "next" && s.currentTranslate < s.startTranslate && (s.currentTranslate = s.startTranslate), !e.allowSlidePrev && e.swipeDirection === "prev" && s.currentTranslate > s.startTranslate && (s.currentTranslate = s.startTranslate), !e.allowSlidePrev && !e.allowSlideNext && (s.currentTranslate = s.startTranslate), n.threshold > 0)
1267
1266
  if (Math.abs(h) > n.threshold || s.allowThresholdMove) {
1268
1267
  if (!s.allowThresholdMove) {
1269
1268
  s.allowThresholdMove = !0, r.startX = r.currentX, r.startY = r.currentY, s.currentTranslate = s.startTranslate, r.diff = e.isHorizontal() ? r.currentX - r.startX : r.currentY - r.startY;
@@ -1281,7 +1280,7 @@ function mt(i) {
1281
1280
  s.originalEvent && (s = s.originalEvent);
1282
1281
  let n;
1283
1282
  if (s.type === "touchend" || s.type === "touchcancel") {
1284
- if (n = [...s.changedTouches].filter((S) => S.identifier === e.touchId)[0], !n || n.identifier !== e.touchId) return;
1283
+ if (n = [...s.changedTouches].filter((v) => v.identifier === e.touchId)[0], !n || n.identifier !== e.touchId) return;
1285
1284
  } else {
1286
1285
  if (e.touchId !== null || s.pointerId !== e.pointerId) return;
1287
1286
  n = s;
@@ -1304,10 +1303,10 @@ function mt(i) {
1304
1303
  l.grabCursor && e.isMoved && e.isTouched && (t.allowSlideNext === !0 || t.allowSlidePrev === !0) && t.setGrabCursor(!1);
1305
1304
  const f = $(), p = f - e.touchStartTime;
1306
1305
  if (t.allowClick) {
1307
- const S = s.path || s.composedPath && s.composedPath();
1308
- t.updateClickedSlide(S && S[0] || s.target, S), t.emit("tap click", s), p < 300 && f - e.lastClickTime < 300 && t.emit("doubleTap doubleClick", s);
1306
+ const v = s.path || s.composedPath && s.composedPath();
1307
+ t.updateClickedSlide(v && v[0] || s.target, v), t.emit("tap click", s), p < 300 && f - e.lastClickTime < 300 && t.emit("doubleTap doubleClick", s);
1309
1308
  }
1310
- if (e.lastClickTime = $(), J(() => {
1309
+ if (e.lastClickTime = $(), K(() => {
1311
1310
  t.destroyed || (t.allowClick = !0);
1312
1311
  }), !e.isTouched || !e.isMoved || !t.swipeDirection || o.diff === 0 && !e.loopSwapReset || e.currentTranslate === e.startTranslate && !e.loopSwapReset) {
1313
1312
  e.isTouched = !1, e.isMoved = !1, e.startMoving = !1;
@@ -1325,19 +1324,19 @@ function mt(i) {
1325
1324
  }
1326
1325
  const h = u >= -t.maxTranslate() && !t.params.loop;
1327
1326
  let m = 0, x = t.slidesSizesGrid[0];
1328
- for (let S = 0; S < d.length; S += S < l.slidesPerGroupSkip ? 1 : l.slidesPerGroup) {
1329
- const M = S < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
1330
- typeof d[S + M] < "u" ? (h || u >= d[S] && u < d[S + M]) && (m = S, x = d[S + M] - d[S]) : (h || u >= d[S]) && (m = S, x = d[d.length - 1] - d[d.length - 2]);
1327
+ for (let v = 0; v < d.length; v += v < l.slidesPerGroupSkip ? 1 : l.slidesPerGroup) {
1328
+ const M = v < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
1329
+ typeof d[v + M] < "u" ? (h || u >= d[v] && u < d[v + M]) && (m = v, x = d[v + M] - d[v]) : (h || u >= d[v]) && (m = v, x = d[d.length - 1] - d[d.length - 2]);
1331
1330
  }
1332
1331
  let g = null, b = null;
1333
1332
  l.rewind && (t.isBeginning ? b = l.virtual && l.virtual.enabled && t.virtual ? t.virtual.slides.length - 1 : t.slides.length - 1 : t.isEnd && (g = 0));
1334
- const v = (u - d[m]) / x, E = m < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
1333
+ const w = (u - d[m]) / x, E = m < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
1335
1334
  if (p > l.longSwipesMs) {
1336
1335
  if (!l.longSwipes) {
1337
1336
  t.slideTo(t.activeIndex);
1338
1337
  return;
1339
1338
  }
1340
- t.swipeDirection === "next" && (v >= l.longSwipesRatio ? t.slideTo(l.rewind && t.isEnd ? g : m + E) : t.slideTo(m)), t.swipeDirection === "prev" && (v > 1 - l.longSwipesRatio ? t.slideTo(m + E) : b !== null && v < 0 && Math.abs(v) > l.longSwipesRatio ? t.slideTo(b) : t.slideTo(m));
1339
+ t.swipeDirection === "next" && (w >= l.longSwipesRatio ? t.slideTo(l.rewind && t.isEnd ? g : m + E) : t.slideTo(m)), t.swipeDirection === "prev" && (w > 1 - l.longSwipesRatio ? t.slideTo(m + E) : b !== null && w < 0 && Math.abs(w) > l.longSwipesRatio ? t.slideTo(b) : t.slideTo(m));
1341
1340
  } else {
1342
1341
  if (!l.shortSwipes) {
1343
1342
  t.slideTo(t.activeIndex);
@@ -1451,10 +1450,10 @@ function yt() {
1451
1450
  const l = i.getBreakpoint(r, i.params.breakpointsBase, i.el);
1452
1451
  if (!l || i.currentBreakpoint === l) return;
1453
1452
  const a = (l in r ? r[l] : void 0) || i.originalParams, d = le(i, s), c = le(i, a), f = i.params.grabCursor, p = a.grabCursor, u = s.enabled;
1454
- d && !c ? (n.classList.remove(`${s.containerModifierClass}grid`, `${s.containerModifierClass}grid-column`), i.emitContainerClasses()) : !d && c && (n.classList.add(`${s.containerModifierClass}grid`), (a.grid.fill && a.grid.fill === "column" || !a.grid.fill && s.grid.fill === "column") && n.classList.add(`${s.containerModifierClass}grid-column`), i.emitContainerClasses()), f && !p ? i.unsetGrabCursor() : !f && p && i.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((v) => {
1455
- if (typeof a[v] > "u") return;
1456
- const E = s[v] && s[v].enabled, S = a[v] && a[v].enabled;
1457
- E && !S && i[v].disable(), !E && S && i[v].enable();
1453
+ d && !c ? (n.classList.remove(`${s.containerModifierClass}grid`, `${s.containerModifierClass}grid-column`), i.emitContainerClasses()) : !d && c && (n.classList.add(`${s.containerModifierClass}grid`), (a.grid.fill && a.grid.fill === "column" || !a.grid.fill && s.grid.fill === "column") && n.classList.add(`${s.containerModifierClass}grid-column`), i.emitContainerClasses()), f && !p ? i.unsetGrabCursor() : !f && p && i.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((w) => {
1454
+ if (typeof a[w] > "u") return;
1455
+ const E = s[w] && s[w].enabled, v = a[w] && a[w].enabled;
1456
+ E && !v && i[w].disable(), !E && v && i[w].enable();
1458
1457
  });
1459
1458
  const h = a.direction && a.direction !== s.direction, m = s.loop && (a.slidesPerView !== s.slidesPerView || h), x = s.loop;
1460
1459
  h && e && i.changeDirection(), A(i.params, a);
@@ -1837,8 +1836,8 @@ class O {
1837
1836
  const {
1838
1837
  slidesEl: e,
1839
1838
  params: s
1840
- } = this, n = G(e, `.${s.slideClass}, swiper-slide`), r = ie(n[0]);
1841
- return ie(t) - r;
1839
+ } = this, n = G(e, `.${s.slideClass}, swiper-slide`), r = se(n[0]);
1840
+ return se(t) - r;
1842
1841
  }
1843
1842
  getSlideIndexByData(t) {
1844
1843
  return this.getSlideIndex(this.slides.filter((e) => e.getAttribute("data-swiper-slide-index") * 1 === t)[0]);
@@ -1959,7 +1958,7 @@ class O {
1959
1958
  s.swiper = e, s.parentNode && s.parentNode.host && s.parentNode.host.nodeName === e.params.swiperElementNodeName.toUpperCase() && (e.isElement = !0);
1960
1959
  const n = () => `.${(e.params.wrapperClass || "").trim().split(" ").join(".")}`;
1961
1960
  let l = s && s.shadowRoot && s.shadowRoot.querySelector ? s.shadowRoot.querySelector(n()) : G(s, n())[0];
1962
- return !l && e.params.createElements && (l = K("div", e.params.wrapperClass), s.append(l), G(s, `.${e.params.slideClass}`).forEach((o) => {
1961
+ return !l && e.params.createElements && (l = J("div", e.params.wrapperClass), s.append(l), G(s, `.${e.params.slideClass}`).forEach((o) => {
1963
1962
  l.append(o);
1964
1963
  })), Object.assign(e, {
1965
1964
  el: s,
@@ -1996,7 +1995,7 @@ class O {
1996
1995
  a.classList.remove(n.slideVisibleClass, n.slideFullyVisibleClass, n.slideActiveClass, n.slideNextClass, n.slidePrevClass), a.removeAttribute("style"), a.removeAttribute("data-swiper-slide-index");
1997
1996
  })), s.emit("destroy"), Object.keys(s.eventsListeners).forEach((a) => {
1998
1997
  s.off(a);
1999
- }), t !== !1 && (s.el && typeof s.el != "string" && (s.el.swiper = null), ve(s)), s.destroyed = !0), null;
1998
+ }), t !== !1 && (s.el && typeof s.el != "string" && (s.el.swiper = null), Te(s)), s.destroyed = !0), null;
2000
1999
  }
2001
2000
  static extendDefaults(t) {
2002
2001
  A(U, t);
package/index191.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(e,n){if(!e)return!1;const{minValue:t,maxValue:a}=n;return!!(t&&e.compare(t)<0||a&&e.compare(a)>0)}exports.getIsDateOutsideRange=r;
1
+ "use strict";const D=require("./index257.js"),M=require("./index258.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;