@okam/stack-ui 1.26.0 → 1.27.2

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 (586) hide show
  1. package/components/Alerts/interface.d.ts +3 -28
  2. package/components/Button/index.d.ts +2 -2
  3. package/components/Button/interface.d.ts +2 -2
  4. package/components/Carousel/components/CarouselNavigationButton.d.ts +8 -0
  5. package/components/Carousel/components/CarouselSlide.d.ts +3 -0
  6. package/components/Carousel/components/CarouselSwiper.d.ts +3 -0
  7. package/components/Carousel/components/pagination/CarouselPagination.d.ts +3 -0
  8. package/components/Carousel/components/pagination/CarouselPaginationBullet.d.ts +3 -0
  9. package/components/Carousel/interface.d.ts +34 -17
  10. package/index.d.ts +4 -2
  11. package/index.js +1 -1
  12. package/index.mjs +167 -159
  13. package/index10.js +1 -1
  14. package/index10.mjs +2 -2
  15. package/index100.js +1 -1
  16. package/index100.mjs +17 -65
  17. package/index101.js +2 -1
  18. package/index101.mjs +20 -140
  19. package/index102.js +1 -1
  20. package/index102.mjs +62 -119
  21. package/index103.js +1 -1
  22. package/index103.mjs +28 -217
  23. package/index104.js +1 -1
  24. package/index104.mjs +4 -175
  25. package/index105.js +1 -1
  26. package/index105.mjs +11 -127
  27. package/index106.js +1 -1
  28. package/index106.mjs +13 -240
  29. package/index107.js +1 -1
  30. package/index107.mjs +23 -4
  31. package/index108.js +1 -1
  32. package/index108.mjs +23 -11
  33. package/index109.js +1 -1
  34. package/index109.mjs +39 -14
  35. package/index11.js +1 -1
  36. package/index11.mjs +67 -60
  37. package/index110.js +2 -1
  38. package/index110.mjs +11 -21
  39. package/index111.js +1 -1
  40. package/index111.mjs +8 -23
  41. package/index112.js +1 -1
  42. package/index112.mjs +20 -37
  43. package/index113.js +1 -2
  44. package/index113.mjs +38 -12
  45. package/index114.js +1 -1
  46. package/index114.mjs +49 -7
  47. package/index115.js +1 -1
  48. package/index115.mjs +40 -21
  49. package/index116.js +1 -1
  50. package/index116.mjs +13 -38
  51. package/index117.js +1 -1
  52. package/index117.mjs +26 -50
  53. package/index118.js +1 -1
  54. package/index118.mjs +20 -41
  55. package/index119.js +1 -1
  56. package/index119.mjs +9 -14
  57. package/index12.js +1 -1
  58. package/index12.mjs +44 -15
  59. package/index120.js +1 -1
  60. package/index120.mjs +30 -26
  61. package/index121.js +1 -1
  62. package/index121.mjs +13 -18
  63. package/index122.js +1 -1
  64. package/index122.mjs +16 -8
  65. package/index123.js +1 -1
  66. package/index123.mjs +5 -30
  67. package/index124.js +1 -1
  68. package/index124.mjs +21 -15
  69. package/index125.js +1 -1
  70. package/index125.mjs +11 -17
  71. package/index126.js +1 -1
  72. package/index126.mjs +42 -5
  73. package/index127.js +2 -1
  74. package/index127.mjs +21 -20
  75. package/index128.js +1 -1
  76. package/index128.mjs +12 -11
  77. package/index129.js +1 -1
  78. package/index129.mjs +46 -104
  79. package/index13.js +1 -2
  80. package/index13.mjs +17 -20
  81. package/index130.js +1 -1
  82. package/index130.mjs +237 -38
  83. package/index131.js +1 -1
  84. package/index131.mjs +12 -21
  85. package/index132.js +1 -1
  86. package/index132.mjs +29 -11
  87. package/index133.js +1 -1
  88. package/index133.mjs +1 -1
  89. package/index134.js +1 -1
  90. package/index134.mjs +2 -2
  91. package/index135.js +1 -1
  92. package/index135.mjs +1 -1
  93. package/index136.js +1 -1
  94. package/index136.mjs +4 -25
  95. package/index137.js +4 -1
  96. package/index137.mjs +247 -46
  97. package/index138.js +1 -2
  98. package/index138.mjs +61 -11
  99. package/index139.js +1 -0
  100. package/index139.mjs +97 -0
  101. package/index14.js +1 -1
  102. package/index14.mjs +18 -17
  103. package/index140.js +1 -0
  104. package/index140.mjs +34 -0
  105. package/index141.js +1 -1
  106. package/index141.mjs +119 -39
  107. package/index142.js +1 -1
  108. package/index142.mjs +28 -29
  109. package/index143.js +1 -1
  110. package/index143.mjs +122 -197
  111. package/index144.js +1 -1
  112. package/index144.mjs +131 -187
  113. package/index145.js +1 -1
  114. package/index145.mjs +14 -69
  115. package/index146.js +1 -1
  116. package/index146.mjs +85 -248
  117. package/index147.js +1 -1
  118. package/index147.mjs +102 -93
  119. package/index148.js +1 -1
  120. package/index148.mjs +5 -84
  121. package/index149.js +1 -1
  122. package/index149.mjs +3 -58
  123. package/index15.js +1 -1
  124. package/index15.mjs +16 -83
  125. package/index150.js +1 -1
  126. package/index150.mjs +121 -112
  127. package/index151.js +1 -1
  128. package/index151.mjs +26 -119
  129. package/index152.js +1 -1
  130. package/index152.mjs +51 -72
  131. package/index153.js +1 -1
  132. package/index153.mjs +41 -107
  133. package/index154.js +1 -1
  134. package/index154.mjs +36 -51
  135. package/index155.js +1 -1
  136. package/index155.mjs +111 -91
  137. package/index156.js +1 -1
  138. package/index156.mjs +77 -70
  139. package/index157.js +1 -1
  140. package/index157.mjs +101 -56
  141. package/index158.js +1 -1
  142. package/index158.mjs +98 -100
  143. package/index159.js +11 -5
  144. package/index159.mjs +114 -79
  145. package/index16.js +1 -1
  146. package/index16.mjs +81 -28
  147. package/index160.js +1 -1
  148. package/index160.mjs +2 -2012
  149. package/index161.js +1 -1
  150. package/index161.mjs +5 -59
  151. package/index162.js +1 -1
  152. package/index162.mjs +63 -187
  153. package/index163.js +1 -1
  154. package/index163.mjs +26 -5
  155. package/index164.js +1 -4
  156. package/index164.mjs +48 -240
  157. package/index165.js +1 -1
  158. package/index165.mjs +156 -31
  159. package/index166.js +1 -1
  160. package/index166.mjs +21 -60
  161. package/index167.js +1 -1
  162. package/index167.mjs +18 -93
  163. package/index168.js +1 -1
  164. package/index168.mjs +39 -31
  165. package/index169.js +1 -1
  166. package/index169.mjs +80 -128
  167. package/index17.js +1 -1
  168. package/index17.mjs +30 -32
  169. package/index170.js +1 -1
  170. package/index170.mjs +27 -176
  171. package/index171.js +1 -1
  172. package/index171.mjs +20 -8
  173. package/index172.js +1 -1
  174. package/index172.mjs +53 -3
  175. package/index173.js +1 -1
  176. package/index173.mjs +2 -37
  177. package/index174.js +1 -1
  178. package/index174.mjs +199 -5
  179. package/index175.js +1 -1
  180. package/index175.mjs +61 -26
  181. package/index176.js +1 -1
  182. package/index176.mjs +141 -6
  183. package/index177.js +1 -1
  184. package/index177.mjs +114 -116
  185. package/index178.js +1 -1
  186. package/index178.mjs +217 -27
  187. package/index179.js +1 -1
  188. package/index179.mjs +188 -122
  189. package/index18.js +1 -1
  190. package/index18.mjs +33 -31
  191. package/index180.js +1 -1
  192. package/index180.mjs +67 -132
  193. package/index181.js +1 -1
  194. package/index181.mjs +258 -14
  195. package/index182.js +1 -1
  196. package/index182.mjs +92 -90
  197. package/index183.js +1 -1
  198. package/index183.mjs +172 -104
  199. package/index184.js +1 -1
  200. package/index184.mjs +84 -5
  201. package/index185.js +1 -1
  202. package/index185.mjs +58 -3
  203. package/index186.js +1 -1
  204. package/index186.mjs +123 -122
  205. package/index187.js +1 -1
  206. package/index187.mjs +113 -26
  207. package/index188.js +1 -1
  208. package/index188.mjs +119 -48
  209. package/index189.js +1 -1
  210. package/index189.mjs +72 -44
  211. package/index19.js +1 -1
  212. package/index19.mjs +30 -33
  213. package/index190.js +1 -1
  214. package/index190.mjs +107 -34
  215. package/index191.js +1 -1
  216. package/index191.mjs +50 -111
  217. package/index192.js +1 -1
  218. package/index192.mjs +93 -77
  219. package/index193.js +1 -1
  220. package/index193.mjs +70 -101
  221. package/index194.js +1 -1
  222. package/index194.mjs +57 -98
  223. package/index195.js +1 -1
  224. package/index195.mjs +100 -2
  225. package/index196.js +5 -1
  226. package/index196.mjs +80 -5
  227. package/index197.js +1 -1
  228. package/index197.mjs +2005 -58
  229. package/index198.js +1 -1
  230. package/index198.mjs +59 -26
  231. package/index199.js +1 -1
  232. package/index199.mjs +187 -53
  233. package/index2.js +1 -1
  234. package/index2.mjs +20 -20
  235. package/index20.js +1 -1
  236. package/index20.mjs +32 -67
  237. package/index200.js +1 -1
  238. package/index200.mjs +5 -155
  239. package/index201.js +1 -1
  240. package/index201.mjs +2 -23
  241. package/index202.js +1 -1
  242. package/index202.mjs +47 -14
  243. package/index203.js +1 -1
  244. package/index203.mjs +17 -36
  245. package/index204.js +1 -1
  246. package/index204.mjs +18 -77
  247. package/index205.js +1 -1
  248. package/index205.mjs +23 -27
  249. package/index206.js +1 -1
  250. package/index206.mjs +40 -15
  251. package/index207.js +1 -1
  252. package/index207.mjs +2 -61
  253. package/index208.js +1 -1
  254. package/index208.mjs +21 -2
  255. package/index209.js +1 -11
  256. package/index209.mjs +2 -116
  257. package/index21.js +1 -1
  258. package/index21.mjs +61 -58
  259. package/index210.js +1 -1
  260. package/index210.mjs +29 -2
  261. package/index211.js +1 -1
  262. package/index211.mjs +2 -6
  263. package/index212.mjs +2 -2
  264. package/index213.js +1 -1
  265. package/index213.mjs +18 -48
  266. package/index214.js +1 -1
  267. package/index214.mjs +2 -21
  268. package/index215.js +1 -1
  269. package/index215.mjs +2 -24
  270. package/index216.js +1 -1
  271. package/index216.mjs +2 -27
  272. package/index217.js +1 -1
  273. package/index217.mjs +34 -43
  274. package/index218.js +1 -1
  275. package/index218.mjs +2 -2
  276. package/index219.js +1 -1
  277. package/index219.mjs +12 -12
  278. package/index22.js +1 -1
  279. package/index22.mjs +66 -52
  280. package/index220.js +1 -1
  281. package/index220.mjs +23 -2
  282. package/index221.js +1 -1
  283. package/index221.mjs +2 -29
  284. package/index222.js +1 -1
  285. package/index222.mjs +23 -2
  286. package/index223.mjs +2 -2
  287. package/index224.js +1 -1
  288. package/index224.mjs +128 -20
  289. package/index225.js +1 -1
  290. package/index225.mjs +180 -2
  291. package/index226.js +1 -1
  292. package/index226.mjs +10 -2
  293. package/index227.js +1 -1
  294. package/index227.mjs +4 -2
  295. package/index228.js +1 -1
  296. package/index228.mjs +35 -36
  297. package/index229.js +1 -1
  298. package/index229.mjs +6 -2
  299. package/index23.js +1 -1
  300. package/index23.mjs +38 -42
  301. package/index230.js +1 -1
  302. package/index230.mjs +28 -19
  303. package/index231.js +1 -1
  304. package/index231.mjs +6 -22
  305. package/index232.js +1 -1
  306. package/index232.mjs +314 -2
  307. package/index233.js +1 -1
  308. package/index233.mjs +190 -20
  309. package/index234.js +1 -1
  310. package/index234.mjs +9 -2
  311. package/index235.js +1 -1
  312. package/index235.mjs +22 -309
  313. package/index236.js +1 -1
  314. package/index236.mjs +54 -191
  315. package/index237.js +1 -1
  316. package/index237.mjs +46 -8
  317. package/index238.js +1 -1
  318. package/index238.mjs +123 -25
  319. package/index239.js +1 -1
  320. package/index239.mjs +2 -56
  321. package/index24.js +1 -1
  322. package/index24.mjs +57 -20
  323. package/index240.js +1 -1
  324. package/index240.mjs +2 -47
  325. package/index241.js +1 -1
  326. package/index241.mjs +2 -125
  327. package/index242.js +1 -1
  328. package/index242.mjs +17 -5
  329. package/index243.js +1 -1
  330. package/index243.mjs +27 -2
  331. package/index244.mjs +2 -2
  332. package/index245.js +1 -1
  333. package/index245.mjs +89 -2
  334. package/index246.js +1 -1
  335. package/index246.mjs +11 -9
  336. package/index247.js +1 -1
  337. package/index247.mjs +2 -27
  338. package/index248.js +1 -1
  339. package/index248.mjs +38 -2
  340. package/index249.js +1 -1
  341. package/index249.mjs +131 -83
  342. package/index25.js +1 -1
  343. package/index25.mjs +20 -50
  344. package/index250.js +1 -1
  345. package/index250.mjs +2 -20
  346. package/index251.js +1 -1
  347. package/index251.mjs +23 -2
  348. package/index252.js +1 -1
  349. package/index252.mjs +2 -38
  350. package/index253.js +1 -1
  351. package/index253.mjs +2 -137
  352. package/index254.mjs +2 -2
  353. package/index255.js +1 -1
  354. package/index255.mjs +2 -23
  355. package/index256.js +1 -1
  356. package/index256.mjs +23 -2
  357. package/index257.js +1 -1
  358. package/index257.mjs +2 -2
  359. package/index258.js +1 -1
  360. package/index258.mjs +26 -2
  361. package/index259.js +1 -1
  362. package/index259.mjs +2 -2
  363. package/index26.js +1 -1
  364. package/index26.mjs +50 -17
  365. package/index260.js +1 -1
  366. package/index260.mjs +5 -22
  367. package/index261.js +1 -1
  368. package/index261.mjs +2 -2
  369. package/index262.js +1 -1
  370. package/index262.mjs +2 -26
  371. package/index263.mjs +2 -2
  372. package/index264.mjs +2 -2
  373. package/index265.js +1 -1
  374. package/index265.mjs +72 -2
  375. package/index266.mjs +2 -2
  376. package/index267.mjs +2 -2
  377. package/index268.js +1 -1
  378. package/index268.mjs +14 -67
  379. package/index269.mjs +2 -2
  380. package/index27.js +1 -1
  381. package/index27.mjs +16 -32
  382. package/index270.mjs +2 -2
  383. package/index271.js +1 -1
  384. package/index271.mjs +2 -19
  385. package/index272.js +1 -1
  386. package/index272.mjs +29 -2
  387. package/index273.js +1 -1
  388. package/index273.mjs +7 -2
  389. package/index274.js +1 -1
  390. package/index274.mjs +8 -2
  391. package/index275.js +1 -1
  392. package/index275.mjs +7 -28
  393. package/index276.js +1 -1
  394. package/index276.mjs +2 -7
  395. package/index277.js +1 -1
  396. package/index277.mjs +36 -7
  397. package/index278.js +1 -1
  398. package/index278.mjs +2 -8
  399. package/index279.js +1 -1
  400. package/index279.mjs +5 -2
  401. package/index28.js +1 -1
  402. package/index28.mjs +32 -23
  403. package/index280.js +1 -1
  404. package/index280.mjs +5 -36
  405. package/index281.js +1 -1
  406. package/index281.mjs +10 -2
  407. package/index282.js +1 -1
  408. package/index282.mjs +2 -5
  409. package/index283.js +1 -1
  410. package/index283.mjs +17 -5
  411. package/index284.js +1 -1
  412. package/index284.mjs +30 -9
  413. package/index285.mjs +2 -2
  414. package/index286.js +1 -1
  415. package/index286.mjs +2 -18
  416. package/index29.js +1 -1
  417. package/index29.mjs +24 -8
  418. package/index3.js +1 -1
  419. package/index3.mjs +1 -1
  420. package/index30.js +1 -1
  421. package/index30.mjs +8 -32
  422. package/index31.js +1 -1
  423. package/index31.mjs +29 -30
  424. package/index32.js +1 -1
  425. package/index32.mjs +28 -98
  426. package/index33.js +1 -1
  427. package/index33.mjs +102 -8
  428. package/index34.js +1 -1
  429. package/index34.mjs +8 -45
  430. package/index35.js +1 -1
  431. package/index35.mjs +46 -17
  432. package/index36.js +2 -1
  433. package/index36.mjs +19 -6
  434. package/index37.js +1 -1
  435. package/index37.mjs +6 -46
  436. package/index38.js +1 -1
  437. package/index38.mjs +45 -23
  438. package/index39.js +2 -1
  439. package/index39.mjs +26 -5
  440. package/index4.js +1 -1
  441. package/index4.mjs +5 -5
  442. package/index40.js +1 -1
  443. package/index40.mjs +4 -7
  444. package/index41.js +1 -1
  445. package/index41.mjs +5 -5
  446. package/index42.js +1 -1
  447. package/index42.mjs +8 -5
  448. package/index43.js +1 -1
  449. package/index43.mjs +2 -2
  450. package/index44.js +1 -1
  451. package/index44.mjs +1 -1
  452. package/index45.js +1 -1
  453. package/index45.mjs +4 -4
  454. package/index46.js +1 -1
  455. package/index46.mjs +3 -9
  456. package/index47.js +1 -1
  457. package/index47.mjs +7 -9
  458. package/index48.js +1 -1
  459. package/index48.mjs +9 -9
  460. package/index49.js +1 -1
  461. package/index49.mjs +13 -46
  462. package/index50.js +1 -1
  463. package/index50.mjs +46 -8
  464. package/index51.js +1 -1
  465. package/index51.mjs +6 -69
  466. package/index52.js +1 -1
  467. package/index52.mjs +71 -8
  468. package/index53.js +1 -1
  469. package/index53.mjs +7 -12
  470. package/index54.js +1 -1
  471. package/index54.mjs +12 -9
  472. package/index55.js +1 -1
  473. package/index55.mjs +10 -17
  474. package/index56.js +1 -1
  475. package/index56.mjs +17 -13
  476. package/index57.js +1 -1
  477. package/index57.mjs +5 -5
  478. package/index58.js +1 -1
  479. package/index58.mjs +6 -6
  480. package/index59.js +1 -1
  481. package/index59.mjs +10 -8
  482. package/index6.js +1 -1
  483. package/index6.mjs +1 -1
  484. package/index60.js +1 -1
  485. package/index60.mjs +5 -5
  486. package/index61.js +1 -1
  487. package/index61.mjs +6 -8
  488. package/index62.js +1 -1
  489. package/index62.mjs +13 -14
  490. package/index63.js +1 -2
  491. package/index63.mjs +14 -23
  492. package/index64.js +1 -1
  493. package/index64.mjs +21 -15
  494. package/index65.js +1 -1
  495. package/index65.mjs +16 -14
  496. package/index66.js +1 -1
  497. package/index66.mjs +13 -40
  498. package/index67.js +1 -1
  499. package/index67.mjs +39 -36
  500. package/index68.js +1 -1
  501. package/index68.mjs +37 -11
  502. package/index69.js +1 -1
  503. package/index69.mjs +11 -10
  504. package/index7.js +1 -1
  505. package/index7.mjs +2 -2
  506. package/index70.js +1 -1
  507. package/index70.mjs +10 -13
  508. package/index71.js +2 -1
  509. package/index71.mjs +15 -2
  510. package/index72.js +1 -1
  511. package/index72.mjs +11 -8
  512. package/index73.js +1 -2
  513. package/index73.mjs +1 -7
  514. package/index74.js +1 -1
  515. package/index74.mjs +7 -6
  516. package/index75.js +1 -1
  517. package/index75.mjs +6 -6
  518. package/index76.js +2 -1
  519. package/index76.mjs +8 -25
  520. package/index77.js +2 -1
  521. package/index77.mjs +8 -2
  522. package/index78.js +1 -6
  523. package/index78.mjs +25 -94
  524. package/index79.js +1 -1
  525. package/index79.mjs +2 -69
  526. package/index8.js +1 -1
  527. package/index8.mjs +5 -5
  528. package/index80.js +6 -1
  529. package/index80.mjs +82 -29
  530. package/index81.js +1 -42
  531. package/index81.mjs +64 -65
  532. package/index82.js +1 -1
  533. package/index82.mjs +32 -150
  534. package/index83.js +42 -1
  535. package/index83.mjs +68 -20
  536. package/index84.js +1 -1
  537. package/index84.mjs +145 -31
  538. package/index85.js +9 -1
  539. package/index85.mjs +54 -10
  540. package/index86.js +1 -1
  541. package/index86.mjs +38 -28
  542. package/index87.js +1 -1
  543. package/index87.mjs +12 -5
  544. package/index88.js +1 -12
  545. package/index88.mjs +31 -36
  546. package/index89.js +1 -1
  547. package/index89.mjs +6 -29
  548. package/index9.js +1 -1
  549. package/index9.mjs +4 -4
  550. package/index90.js +12 -1
  551. package/index90.mjs +39 -12
  552. package/index91.js +1 -7
  553. package/index91.mjs +23 -13
  554. package/index92.js +1 -15
  555. package/index92.mjs +9 -67
  556. package/index93.js +7 -1
  557. package/index93.mjs +17 -5
  558. package/index94.js +13 -14
  559. package/index94.mjs +63 -17
  560. package/index95.js +1 -1
  561. package/index95.mjs +7 -42
  562. package/index96.js +16 -1
  563. package/index96.mjs +24 -44
  564. package/index97.js +1 -1
  565. package/index97.mjs +42 -48
  566. package/index98.js +1 -1
  567. package/index98.mjs +45 -17
  568. package/index99.js +1 -2
  569. package/index99.mjs +47 -21
  570. package/package.json +1 -1
  571. package/providers/Swiper/index.d.ts +4 -0
  572. package/providers/{Alerts → Swiper}/interface.d.ts +2 -2
  573. package/theme/Alerts/index.d.ts +1 -1
  574. package/theme/Carousel/index.d.ts +216 -8
  575. package/components/Alerts/components/AlertsNavigationButton.d.ts +0 -8
  576. package/components/Alerts/components/AlertsSwiper.d.ts +0 -3
  577. package/components/Alerts/components/pagination/AlertsPagination.d.ts +0 -3
  578. package/components/Alerts/components/pagination/AlertsPaginationBullet.d.ts +0 -3
  579. package/index287.js +0 -1
  580. package/index287.mjs +0 -33
  581. package/index288.js +0 -1
  582. package/index288.mjs +0 -4
  583. package/index289.js +0 -1
  584. package/index289.mjs +0 -4
  585. package/providers/Alerts/index.d.ts +0 -4
  586. package/style.css +0 -1
package/index160.mjs CHANGED
@@ -1,2014 +1,4 @@
1
- import { a as V, g as N } from "./index169.mjs";
2
- import { u as A, e as O, g as te, c as U, o as k, v as me, a as ge, s as F, f as ie, p as ve, q as we, i as Se, r as le, n as K, t as R, d as $ } from "./index170.mjs";
3
- let H;
4
- function Te() {
5
- const i = V(), t = N();
6
- return {
7
- smoothScroll: t.documentElement && t.documentElement.style && "scrollBehavior" in t.documentElement.style,
8
- touch: !!("ontouchstart" in i || i.DocumentTouch && t instanceof i.DocumentTouch)
9
- };
10
- }
11
- function oe() {
12
- return H || (H = Te()), H;
13
- }
14
- let W;
15
- function xe(i) {
16
- let {
17
- userAgent: t
18
- } = i === void 0 ? {} : i;
19
- const e = oe(), s = V(), n = s.navigator.platform, r = t || s.navigator.userAgent, l = {
20
- ios: !1,
21
- android: !1
22
- }, o = s.screen.width, a = s.screen.height, d = r.match(/(Android);?[\s\/]+([\d.]+)?/);
23
- let c = r.match(/(iPad).*OS\s([\d_]+)/);
24
- const f = r.match(/(iPod)(.*OS\s([\d_]+))?/), p = !c && r.match(/(iPhone\sOS|iOS)\s([\d_]+)/), u = n === "Win32";
25
- let h = n === "MacIntel";
26
- const g = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
27
- return !c && h && e.touch && g.indexOf(`${o}x${a}`) >= 0 && (c = r.match(/(Version)\/([\d.]+)/), c || (c = [0, 1, "13_0_0"]), h = !1), d && !u && (l.os = "android", l.android = !0), (c || p || f) && (l.os = "ios", l.ios = !0), l;
28
- }
29
- function de(i) {
30
- return i === void 0 && (i = {}), W || (W = xe(i)), W;
31
- }
32
- let Y;
33
- function be() {
34
- const i = V(), t = de();
35
- let e = !1;
36
- function s() {
37
- const o = i.navigator.userAgent.toLowerCase();
38
- return o.indexOf("safari") >= 0 && o.indexOf("chrome") < 0 && o.indexOf("android") < 0;
39
- }
40
- if (s()) {
41
- const o = String(i.navigator.userAgent);
42
- if (o.includes("Version/")) {
43
- const [a, d] = o.split("Version/")[1].split(" ")[0].split(".").map((c) => Number(c));
44
- e = a < 16 || a === 16 && d < 2;
45
- }
46
- }
47
- const n = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(i.navigator.userAgent), r = s(), l = r || n && t.ios;
48
- return {
49
- isSafari: e || r,
50
- needPerspectiveFix: e,
51
- need3dFix: l,
52
- isWebView: n
53
- };
54
- }
55
- function ye() {
56
- return Y || (Y = be()), Y;
57
- }
58
- function Ee(i) {
59
- let {
60
- swiper: t,
61
- on: e,
62
- emit: s
63
- } = i;
64
- const n = V();
65
- let r = null, l = null;
66
- const o = () => {
67
- !t || t.destroyed || !t.initialized || (s("beforeResize"), s("resize"));
68
- }, a = () => {
69
- !t || t.destroyed || !t.initialized || (r = new ResizeObserver((f) => {
70
- l = n.requestAnimationFrame(() => {
71
- const {
72
- width: p,
73
- height: u
74
- } = t;
75
- let h = p, g = u;
76
- f.forEach((E) => {
77
- let {
78
- contentBoxSize: m,
79
- contentRect: y,
80
- target: v
81
- } = E;
82
- v && v !== t.el || (h = y ? y.width : (m[0] || m).inlineSize, g = y ? y.height : (m[0] || m).blockSize);
83
- }), (h !== p || g !== u) && o();
84
- });
85
- }), r.observe(t.el));
86
- }, d = () => {
87
- l && n.cancelAnimationFrame(l), r && r.unobserve && t.el && (r.unobserve(t.el), r = null);
88
- }, c = () => {
89
- !t || t.destroyed || !t.initialized || s("orientationchange");
90
- };
91
- e("init", () => {
92
- if (t.params.resizeObserver && typeof n.ResizeObserver < "u") {
93
- a();
94
- return;
95
- }
96
- n.addEventListener("resize", o), n.addEventListener("orientationchange", c);
97
- }), e("destroy", () => {
98
- d(), n.removeEventListener("resize", o), n.removeEventListener("orientationchange", c);
99
- });
100
- }
101
- function Pe(i) {
102
- let {
103
- swiper: t,
104
- extendParams: e,
105
- on: s,
106
- emit: n
107
- } = i;
108
- const r = [], l = V(), o = function(c, f) {
109
- f === void 0 && (f = {});
110
- const p = l.MutationObserver || l.WebkitMutationObserver, u = new p((h) => {
111
- if (t.__preventObserver__) return;
112
- if (h.length === 1) {
113
- n("observerUpdate", h[0]);
114
- return;
115
- }
116
- const g = function() {
117
- n("observerUpdate", h[0]);
118
- };
119
- l.requestAnimationFrame ? l.requestAnimationFrame(g) : l.setTimeout(g, 0);
120
- });
121
- u.observe(c, {
122
- attributes: typeof f.attributes > "u" ? !0 : f.attributes,
123
- childList: typeof f.childList > "u" ? !0 : f.childList,
124
- characterData: typeof f.characterData > "u" ? !0 : f.characterData
125
- }), r.push(u);
126
- }, a = () => {
127
- if (t.params.observer) {
128
- if (t.params.observeParents) {
129
- const c = ge(t.hostEl);
130
- for (let f = 0; f < c.length; f += 1)
131
- o(c[f]);
132
- }
133
- o(t.hostEl, {
134
- childList: t.params.observeSlideChildren
135
- }), o(t.wrapperEl, {
136
- attributes: !1
137
- });
138
- }
139
- }, d = () => {
140
- r.forEach((c) => {
141
- c.disconnect();
142
- }), r.splice(0, r.length);
143
- };
144
- e({
145
- observer: !1,
146
- observeParents: !1,
147
- observeSlideChildren: !1
148
- }), s("init", a), s("destroy", d);
149
- }
150
- var Me = {
151
- on(i, t, e) {
152
- const s = this;
153
- if (!s.eventsListeners || s.destroyed || typeof t != "function") return s;
154
- const n = e ? "unshift" : "push";
155
- return i.split(" ").forEach((r) => {
156
- s.eventsListeners[r] || (s.eventsListeners[r] = []), s.eventsListeners[r][n](t);
157
- }), s;
158
- },
159
- once(i, t, e) {
160
- const s = this;
161
- if (!s.eventsListeners || s.destroyed || typeof t != "function") return s;
162
- function n() {
163
- s.off(i, n), n.__emitterProxy && delete n.__emitterProxy;
164
- for (var r = arguments.length, l = new Array(r), o = 0; o < r; o++)
165
- l[o] = arguments[o];
166
- t.apply(s, l);
167
- }
168
- return n.__emitterProxy = t, s.on(i, n, e);
169
- },
170
- onAny(i, t) {
171
- const e = this;
172
- if (!e.eventsListeners || e.destroyed || typeof i != "function") return e;
173
- const s = t ? "unshift" : "push";
174
- return e.eventsAnyListeners.indexOf(i) < 0 && e.eventsAnyListeners[s](i), e;
175
- },
176
- offAny(i) {
177
- const t = this;
178
- if (!t.eventsListeners || t.destroyed || !t.eventsAnyListeners) return t;
179
- const e = t.eventsAnyListeners.indexOf(i);
180
- return e >= 0 && t.eventsAnyListeners.splice(e, 1), t;
181
- },
182
- off(i, t) {
183
- const e = this;
184
- return !e.eventsListeners || e.destroyed || !e.eventsListeners || i.split(" ").forEach((s) => {
185
- typeof t > "u" ? e.eventsListeners[s] = [] : e.eventsListeners[s] && e.eventsListeners[s].forEach((n, r) => {
186
- (n === t || n.__emitterProxy && n.__emitterProxy === t) && e.eventsListeners[s].splice(r, 1);
187
- });
188
- }), e;
189
- },
190
- emit() {
191
- const i = this;
192
- if (!i.eventsListeners || i.destroyed || !i.eventsListeners) return i;
193
- let t, e, s;
194
- for (var n = arguments.length, r = new Array(n), l = 0; l < n; l++)
195
- r[l] = arguments[l];
196
- return typeof r[0] == "string" || Array.isArray(r[0]) ? (t = r[0], e = r.slice(1, r.length), s = i) : (t = r[0].events, e = r[0].data, s = r[0].context || i), e.unshift(s), (Array.isArray(t) ? t : t.split(" ")).forEach((a) => {
197
- i.eventsAnyListeners && i.eventsAnyListeners.length && i.eventsAnyListeners.forEach((d) => {
198
- d.apply(s, [a, ...e]);
199
- }), i.eventsListeners && i.eventsListeners[a] && i.eventsListeners[a].forEach((d) => {
200
- d.apply(s, e);
201
- });
202
- }), i;
203
- }
204
- };
205
- function Ie() {
206
- const i = this;
207
- let t, e;
208
- const s = i.el;
209
- typeof i.params.width < "u" && i.params.width !== null ? t = i.params.width : t = s.clientWidth, typeof i.params.height < "u" && i.params.height !== null ? e = i.params.height : e = s.clientHeight, !(t === 0 && i.isHorizontal() || e === 0 && i.isVertical()) && (t = t - parseInt(k(s, "padding-left") || 0, 10) - parseInt(k(s, "padding-right") || 0, 10), e = e - parseInt(k(s, "padding-top") || 0, 10) - parseInt(k(s, "padding-bottom") || 0, 10), Number.isNaN(t) && (t = 0), Number.isNaN(e) && (e = 0), Object.assign(i, {
210
- width: t,
211
- height: e,
212
- size: i.isHorizontal() ? t : e
213
- }));
214
- }
215
- function Ce() {
216
- const i = this;
217
- function t(w, b) {
218
- return parseFloat(w.getPropertyValue(i.getDirectionLabel(b)) || 0);
219
- }
220
- const e = i.params, {
221
- wrapperEl: s,
222
- slidesEl: n,
223
- size: r,
224
- rtlTranslate: l,
225
- wrongRTL: o
226
- } = i, a = i.virtual && e.virtual.enabled, d = a ? i.virtual.slides.length : i.slides.length, c = O(n, `.${i.params.slideClass}, swiper-slide`), f = a ? i.virtual.slides.length : c.length;
227
- let p = [];
228
- const u = [], h = [];
229
- let g = e.slidesOffsetBefore;
230
- typeof g == "function" && (g = e.slidesOffsetBefore.call(i));
231
- let E = e.slidesOffsetAfter;
232
- typeof E == "function" && (E = e.slidesOffsetAfter.call(i));
233
- const m = i.snapGrid.length, y = i.slidesGrid.length;
234
- let v = e.spaceBetween, S = -g, T = 0, M = 0;
235
- if (typeof r > "u")
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 = "";
239
- }), e.centeredSlides && e.cssMode && (F(s, "--swiper-centered-offset-before", ""), F(s, "--swiper-centered-offset-after", ""));
240
- const D = e.grid && e.grid.rows > 1 && i.grid;
241
- D ? i.grid.initSlides(c) : i.grid && i.grid.unsetSlides();
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) {
245
- I = 0;
246
- let b;
247
- if (c[w] && (b = c[w]), D && i.grid.updateSlide(w, b, c), !(c[w] && k(b, "display") === "none")) {
248
- if (e.slidesPerView === "auto") {
249
- B && (c[w].style[i.getDirectionLabel("width")] = "");
250
- const P = getComputedStyle(b), x = b.style.transform, C = b.style.webkitTransform;
251
- if (x && (b.style.transform = "none"), C && (b.style.webkitTransform = "none"), e.roundLengths)
252
- I = i.isHorizontal() ? ie(b, "width") : ie(b, "height");
253
- else {
254
- const L = t(P, "width"), G = t(P, "padding-left"), ue = t(P, "padding-right"), Q = t(P, "margin-left"), Z = t(P, "margin-right"), ee = P.getPropertyValue("box-sizing");
255
- if (ee && ee === "border-box")
256
- I = L + Q + Z;
257
- else {
258
- const {
259
- clientWidth: pe,
260
- offsetWidth: he
261
- } = b;
262
- I = L + G + ue + Q + Z + (he - pe);
263
- }
264
- }
265
- x && (b.style.transform = x), C && (b.style.webkitTransform = C), e.roundLengths && (I = Math.floor(I));
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 ? (S = S + I / 2 + T / 2 + v, T === 0 && w !== 0 && (S = S - r / 2 - v), w === 0 && (S = S - r / 2 - v), Math.abs(S) < 1 / 1e3 && (S = 0), e.roundLengths && (S = Math.floor(S)), M % e.slidesPerGroup === 0 && p.push(S), u.push(S)) : (e.roundLengths && (S = Math.floor(S)), (M - Math.min(i.params.slidesPerGroupSkip, M)) % i.params.slidesPerGroup === 0 && p.push(S), u.push(S), S = S + I + v), i.virtualSize += I + v, T = I, M += 1;
269
- }
270
- }
271
- if (i.virtualSize = Math.max(i.virtualSize, r) + E, 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`), D && i.grid.updateWrapperSize(I, p), !e.centeredSlides) {
272
- const w = [];
273
- for (let b = 0; b < p.length; b += 1) {
274
- let P = p[b];
275
- e.roundLengths && (P = Math.floor(P)), p[b] <= i.virtualSize - r && w.push(P);
276
- }
277
- p = w, Math.floor(i.virtualSize - r) - Math.floor(p[p.length - 1]) > 1 && p.push(i.virtualSize - r);
278
- }
279
- if (a && e.loop) {
280
- const w = h[0] + v;
281
- if (e.slidesPerGroup > 1) {
282
- const b = Math.ceil((i.virtual.slidesBefore + i.virtual.slidesAfter) / e.slidesPerGroup), P = w * e.slidesPerGroup;
283
- for (let x = 0; x < b; x += 1)
284
- p.push(p[p.length - 1] + P);
285
- }
286
- for (let b = 0; b < i.virtual.slidesBefore + i.virtual.slidesAfter; b += 1)
287
- e.slidesPerGroup === 1 && p.push(p[p.length - 1] + w), u.push(u[u.length - 1] + w), i.virtualSize += w;
288
- }
289
- if (p.length === 0 && (p = [0]), v !== 0) {
290
- const w = i.isHorizontal() && l ? "marginLeft" : i.getDirectionLabel("marginRight");
291
- c.filter((b, P) => !e.cssMode || e.loop ? !0 : P !== c.length - 1).forEach((b) => {
292
- b.style[w] = `${v}px`;
293
- });
294
- }
295
- if (e.centeredSlides && e.centeredSlidesBounds) {
296
- let w = 0;
297
- h.forEach((P) => {
298
- w += P + (v || 0);
299
- }), w -= v;
300
- const b = w - r;
301
- p = p.map((P) => P <= 0 ? -g : P > b ? b + E : P);
302
- }
303
- if (e.centerInsufficientSlides) {
304
- let w = 0;
305
- if (h.forEach((b) => {
306
- w += b + (v || 0);
307
- }), w -= v, w < r) {
308
- const b = (r - w) / 2;
309
- p.forEach((P, x) => {
310
- p[x] = P - b;
311
- }), u.forEach((P, x) => {
312
- u[x] = P + b;
313
- });
314
- }
315
- }
316
- if (Object.assign(i, {
317
- slides: c,
318
- snapGrid: p,
319
- slidesGrid: u,
320
- slidesSizesGrid: h
321
- }), e.centeredSlides && e.cssMode && !e.centeredSlidesBounds) {
322
- F(s, "--swiper-centered-offset-before", `${-p[0]}px`), F(s, "--swiper-centered-offset-after", `${i.size / 2 - h[h.length - 1] / 2}px`);
323
- const w = -i.snapGrid[0], b = -i.slidesGrid[0];
324
- i.snapGrid = i.snapGrid.map((P) => P + w), i.slidesGrid = i.slidesGrid.map((P) => P + b);
325
- }
326
- if (f !== d && i.emit("slidesLengthChange"), p.length !== m && (i.params.watchOverflow && i.checkOverflow(), i.emit("snapGridLengthChange")), u.length !== y && i.emit("slidesGridLengthChange"), e.watchSlidesProgress && i.updateSlidesOffset(), i.emit("slidesUpdated"), !a && !e.cssMode && (e.effect === "slide" || e.effect === "fade")) {
327
- const w = `${e.containerModifierClass}backface-hidden`, b = i.el.classList.contains(w);
328
- f <= e.maxBackfaceHiddenSlides ? b || i.el.classList.add(w) : b && i.el.classList.remove(w);
329
- }
330
- }
331
- function Le(i) {
332
- const t = this, e = [], s = t.virtual && t.params.virtual.enabled;
333
- let n = 0, r;
334
- typeof i == "number" ? t.setTransition(i) : i === !0 && t.setTransition(t.params.speed);
335
- const l = (o) => s ? t.slides[t.getSlideIndexByData(o)] : t.slides[o];
336
- if (t.params.slidesPerView !== "auto" && t.params.slidesPerView > 1)
337
- if (t.params.centeredSlides)
338
- (t.visibleSlides || []).forEach((o) => {
339
- e.push(o);
340
- });
341
- else
342
- for (r = 0; r < Math.ceil(t.params.slidesPerView); r += 1) {
343
- const o = t.activeIndex + r;
344
- if (o > t.slides.length && !s) break;
345
- e.push(l(o));
346
- }
347
- else
348
- e.push(l(t.activeIndex));
349
- for (r = 0; r < e.length; r += 1)
350
- if (typeof e[r] < "u") {
351
- const o = e[r].offsetHeight;
352
- n = o > n ? o : n;
353
- }
354
- (n || n === 0) && (t.wrapperEl.style.height = `${n}px`);
355
- }
356
- function ze() {
357
- const i = this, t = i.slides, e = i.isElement ? i.isHorizontal() ? i.wrapperEl.offsetLeft : i.wrapperEl.offsetTop : 0;
358
- for (let s = 0; s < t.length; s += 1)
359
- t[s].swiperSlideOffset = (i.isHorizontal() ? t[s].offsetLeft : t[s].offsetTop) - e - i.cssOverflowAdjustment();
360
- }
361
- function Ae(i) {
362
- i === void 0 && (i = this && this.translate || 0);
363
- const t = this, e = t.params, {
364
- slides: s,
365
- rtlTranslate: n,
366
- snapGrid: r
367
- } = t;
368
- if (s.length === 0) return;
369
- typeof s[0].swiperSlideOffset > "u" && t.updateSlidesOffset();
370
- let l = -i;
371
- n && (l = i), s.forEach((a) => {
372
- a.classList.remove(e.slideVisibleClass, e.slideFullyVisibleClass);
373
- }), t.visibleSlidesIndexes = [], t.visibleSlides = [];
374
- let o = e.spaceBetween;
375
- typeof o == "string" && o.indexOf("%") >= 0 ? o = parseFloat(o.replace("%", "")) / 100 * t.size : typeof o == "string" && (o = parseFloat(o));
376
- for (let a = 0; a < s.length; a += 1) {
377
- const d = s[a];
378
- let c = d.swiperSlideOffset;
379
- e.cssMode && e.centeredSlides && (c -= s[0].swiperSlideOffset);
380
- const f = (l + (e.centeredSlides ? t.minTranslate() : 0) - c) / (d.swiperSlideSize + o), p = (l - r[0] + (e.centeredSlides ? t.minTranslate() : 0) - c) / (d.swiperSlideSize + o), u = -(l - c), h = u + t.slidesSizesGrid[a], g = u >= 0 && u <= t.size - t.slidesSizesGrid[a];
381
- (u >= 0 && u < t.size - 1 || h > 1 && h <= t.size || u <= 0 && h >= t.size) && (t.visibleSlides.push(d), t.visibleSlidesIndexes.push(a), s[a].classList.add(e.slideVisibleClass)), g && s[a].classList.add(e.slideFullyVisibleClass), d.progress = n ? -f : f, d.originalProgress = n ? -p : p;
382
- }
383
- }
384
- function Oe(i) {
385
- const t = this;
386
- if (typeof i > "u") {
387
- const c = t.rtlTranslate ? -1 : 1;
388
- i = t && t.translate && t.translate * c || 0;
389
- }
390
- const e = t.params, s = t.maxTranslate() - t.minTranslate();
391
- let {
392
- progress: n,
393
- isBeginning: r,
394
- isEnd: l,
395
- progressLoop: o
396
- } = t;
397
- const a = r, d = l;
398
- if (s === 0)
399
- n = 0, r = !0, l = !0;
400
- else {
401
- n = (i - t.minTranslate()) / s;
402
- const c = Math.abs(i - t.minTranslate()) < 1, f = Math.abs(i - t.maxTranslate()) < 1;
403
- r = c || n <= 0, l = f || n >= 1, c && (n = 0), f && (n = 1);
404
- }
405
- if (e.loop) {
406
- const c = t.getSlideIndexByData(0), f = t.getSlideIndexByData(t.slides.length - 1), p = t.slidesGrid[c], u = t.slidesGrid[f], h = t.slidesGrid[t.slidesGrid.length - 1], g = Math.abs(i);
407
- g >= p ? o = (g - p) / h : o = (g + h - u) / h, o > 1 && (o -= 1);
408
- }
409
- Object.assign(t, {
410
- progress: n,
411
- progressLoop: o,
412
- isBeginning: r,
413
- isEnd: l
414
- }), (e.watchSlidesProgress || e.centeredSlides && e.autoHeight) && t.updateSlidesProgress(i), r && !a && t.emit("reachBeginning toEdge"), l && !d && t.emit("reachEnd toEdge"), (a && !r || d && !l) && t.emit("fromEdge"), t.emit("progress", n);
415
- }
416
- function Ge() {
417
- const i = this, {
418
- slides: t,
419
- params: e,
420
- slidesEl: s,
421
- activeIndex: n
422
- } = i, r = i.virtual && e.virtual.enabled, l = i.grid && e.grid && e.grid.rows > 1, o = (f) => O(s, `.${e.slideClass}${f}, swiper-slide${f}`)[0];
423
- t.forEach((f) => {
424
- f.classList.remove(e.slideActiveClass, e.slideNextClass, e.slidePrevClass);
425
- });
426
- let a, d, c;
427
- if (r)
428
- if (e.loop) {
429
- let f = n - i.virtual.slidesBefore;
430
- f < 0 && (f = i.virtual.slides.length + f), f >= i.virtual.slides.length && (f -= i.virtual.slides.length), a = o(`[data-swiper-slide-index="${f}"]`);
431
- } else
432
- a = o(`[data-swiper-slide-index="${n}"]`);
433
- else
434
- 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];
435
- a && (a.classList.add(e.slideActiveClass), l ? (c && c.classList.add(e.slideNextClass), d && d.classList.add(e.slidePrevClass)) : (c = ve(a, `.${e.slideClass}, swiper-slide`)[0], e.loop && !c && (c = t[0]), c && c.classList.add(e.slideNextClass), d = we(a, `.${e.slideClass}, swiper-slide`)[0], e.loop && !d === 0 && (d = t[t.length - 1]), d && d.classList.add(e.slidePrevClass))), i.emitSlidesClasses();
436
- }
437
- const _ = (i, t) => {
438
- if (!i || i.destroyed || !i.params) return;
439
- const e = () => i.isElement ? "swiper-slide" : `.${i.params.slideClass}`, s = t.closest(e());
440
- if (s) {
441
- let n = s.querySelector(`.${i.params.lazyPreloaderClass}`);
442
- !n && i.isElement && (s.shadowRoot ? n = s.shadowRoot.querySelector(`.${i.params.lazyPreloaderClass}`) : requestAnimationFrame(() => {
443
- s.shadowRoot && (n = s.shadowRoot.querySelector(`.${i.params.lazyPreloaderClass}`), n && n.remove());
444
- })), n && n.remove();
445
- }
446
- }, X = (i, t) => {
447
- if (!i.slides[t]) return;
448
- const e = i.slides[t].querySelector('[loading="lazy"]');
449
- e && e.removeAttribute("loading");
450
- }, J = (i) => {
451
- if (!i || i.destroyed || !i.params) return;
452
- let t = i.params.lazyPreloadPrevNext;
453
- const e = i.slides.length;
454
- if (!e || !t || t < 0) return;
455
- t = Math.min(t, e);
456
- const s = i.params.slidesPerView === "auto" ? i.slidesPerViewDynamic() : Math.ceil(i.params.slidesPerView), n = i.activeIndex;
457
- if (i.params.grid && i.params.grid.rows > 1) {
458
- const l = n, o = [l - t];
459
- o.push(...Array.from({
460
- length: t
461
- }).map((a, d) => l + s + d)), i.slides.forEach((a, d) => {
462
- o.includes(a.column) && X(i, d);
463
- });
464
- return;
465
- }
466
- const r = n + s - 1;
467
- if (i.params.rewind || i.params.loop)
468
- for (let l = n - t; l <= r + t; l += 1) {
469
- const o = (l % e + e) % e;
470
- (o < n || o > r) && X(i, o);
471
- }
472
- else
473
- for (let l = Math.max(n - t, 0); l <= Math.min(r + t, e - 1); l += 1)
474
- l !== n && (l > r || l < n) && X(i, l);
475
- };
476
- function ke(i) {
477
- const {
478
- slidesGrid: t,
479
- params: e
480
- } = i, s = i.rtlTranslate ? i.translate : -i.translate;
481
- let n;
482
- for (let r = 0; r < t.length; r += 1)
483
- typeof t[r + 1] < "u" ? s >= t[r] && s < t[r + 1] - (t[r + 1] - t[r]) / 2 ? n = r : s >= t[r] && s < t[r + 1] && (n = r + 1) : s >= t[r] && (n = r);
484
- return e.normalizeSlideIndex && (n < 0 || typeof n > "u") && (n = 0), n;
485
- }
486
- function Ve(i) {
487
- const t = this, e = t.rtlTranslate ? t.translate : -t.translate, {
488
- snapGrid: s,
489
- params: n,
490
- activeIndex: r,
491
- realIndex: l,
492
- snapIndex: o
493
- } = t;
494
- let a = i, d;
495
- const c = (u) => {
496
- let h = u - t.virtual.slidesBefore;
497
- return h < 0 && (h = t.virtual.slides.length + h), h >= t.virtual.slides.length && (h -= t.virtual.slides.length), h;
498
- };
499
- if (typeof a > "u" && (a = ke(t)), s.indexOf(e) >= 0)
500
- d = s.indexOf(e);
501
- else {
502
- const u = Math.min(n.slidesPerGroupSkip, a);
503
- d = u + Math.floor((a - u) / n.slidesPerGroup);
504
- }
505
- if (d >= s.length && (d = s.length - 1), a === r && !t.params.loop) {
506
- d !== o && (t.snapIndex = d, t.emit("snapIndexChange"));
507
- return;
508
- }
509
- if (a === r && t.params.loop && t.virtual && t.params.virtual.enabled) {
510
- t.realIndex = c(a);
511
- return;
512
- }
513
- const f = t.grid && n.grid && n.grid.rows > 1;
514
- let p;
515
- if (t.virtual && n.virtual.enabled && n.loop)
516
- p = c(a);
517
- else if (f) {
518
- const u = t.slides.filter((g) => g.column === a)[0];
519
- let h = parseInt(u.getAttribute("data-swiper-slide-index"), 10);
520
- Number.isNaN(h) && (h = Math.max(t.slides.indexOf(u), 0)), p = Math.floor(h / n.grid.rows);
521
- } else if (t.slides[a]) {
522
- const u = t.slides[a].getAttribute("data-swiper-slide-index");
523
- u ? p = parseInt(u, 10) : p = a;
524
- } else
525
- p = a;
526
- Object.assign(t, {
527
- previousSnapIndex: o,
528
- snapIndex: d,
529
- previousRealIndex: l,
530
- realIndex: p,
531
- previousIndex: r,
532
- activeIndex: a
533
- }), t.initialized && J(t), t.emit("activeIndexChange"), t.emit("snapIndexChange"), (t.initialized || t.params.runCallbacksOnInit) && (l !== p && t.emit("realIndexChange"), t.emit("slideChange"));
534
- }
535
- function De(i, t) {
536
- const e = this, s = e.params;
537
- let n = i.closest(`.${s.slideClass}, swiper-slide`);
538
- !n && e.isElement && t && t.length > 1 && t.includes(i) && [...t.slice(t.indexOf(i) + 1, t.length)].forEach((o) => {
539
- !n && o.matches && o.matches(`.${s.slideClass}, swiper-slide`) && (n = o);
540
- });
541
- let r = !1, l;
542
- if (n) {
543
- for (let o = 0; o < e.slides.length; o += 1)
544
- if (e.slides[o] === n) {
545
- r = !0, l = o;
546
- break;
547
- }
548
- }
549
- if (n && r)
550
- e.clickedSlide = n, e.virtual && e.params.virtual.enabled ? e.clickedIndex = parseInt(n.getAttribute("data-swiper-slide-index"), 10) : e.clickedIndex = l;
551
- else {
552
- e.clickedSlide = void 0, e.clickedIndex = void 0;
553
- return;
554
- }
555
- s.slideToClickedSlide && e.clickedIndex !== void 0 && e.clickedIndex !== e.activeIndex && e.slideToClickedSlide();
556
- }
557
- var Be = {
558
- updateSize: Ie,
559
- updateSlides: Ce,
560
- updateAutoHeight: Le,
561
- updateSlidesOffset: ze,
562
- updateSlidesProgress: Ae,
563
- updateProgress: Oe,
564
- updateSlidesClasses: Ge,
565
- updateActiveIndex: Ve,
566
- updateClickedSlide: De
567
- };
568
- function Ne(i) {
569
- i === void 0 && (i = this.isHorizontal() ? "x" : "y");
570
- const t = this, {
571
- params: e,
572
- rtlTranslate: s,
573
- translate: n,
574
- wrapperEl: r
575
- } = t;
576
- if (e.virtualTranslate)
577
- return s ? -n : n;
578
- if (e.cssMode)
579
- return n;
580
- let l = Se(r, i);
581
- return l += t.cssOverflowAdjustment(), s && (l = -l), l || 0;
582
- }
583
- function Fe(i, t) {
584
- const e = this, {
585
- rtlTranslate: s,
586
- params: n,
587
- wrapperEl: r,
588
- progress: l
589
- } = e;
590
- let o = 0, a = 0;
591
- const d = 0;
592
- e.isHorizontal() ? o = s ? -i : i : a = i, n.roundLengths && (o = Math.floor(o), a = Math.floor(a)), e.previousTranslate = e.translate, e.translate = e.isHorizontal() ? o : a, n.cssMode ? r[e.isHorizontal() ? "scrollLeft" : "scrollTop"] = e.isHorizontal() ? -o : -a : n.virtualTranslate || (e.isHorizontal() ? o -= e.cssOverflowAdjustment() : a -= e.cssOverflowAdjustment(), r.style.transform = `translate3d(${o}px, ${a}px, ${d}px)`);
593
- let c;
594
- const f = e.maxTranslate() - e.minTranslate();
595
- f === 0 ? c = 0 : c = (i - e.minTranslate()) / f, c !== l && e.updateProgress(i), e.emit("setTranslate", e.translate, t);
596
- }
597
- function _e() {
598
- return -this.snapGrid[0];
599
- }
600
- function Re() {
601
- return -this.snapGrid[this.snapGrid.length - 1];
602
- }
603
- function $e(i, t, e, s, n) {
604
- i === void 0 && (i = 0), t === void 0 && (t = this.params.speed), e === void 0 && (e = !0), s === void 0 && (s = !0);
605
- const r = this, {
606
- params: l,
607
- wrapperEl: o
608
- } = r;
609
- if (r.animating && l.preventInteractionOnTransition)
610
- return !1;
611
- const a = r.minTranslate(), d = r.maxTranslate();
612
- let c;
613
- if (s && i > a ? c = a : s && i < d ? c = d : c = i, r.updateProgress(c), l.cssMode) {
614
- const f = r.isHorizontal();
615
- if (t === 0)
616
- o[f ? "scrollLeft" : "scrollTop"] = -c;
617
- else {
618
- if (!r.support.smoothScroll)
619
- return le({
620
- swiper: r,
621
- targetPosition: -c,
622
- side: f ? "left" : "top"
623
- }), !0;
624
- o.scrollTo({
625
- [f ? "left" : "top"]: -c,
626
- behavior: "smooth"
627
- });
628
- }
629
- return !0;
630
- }
631
- return t === 0 ? (r.setTransition(0), r.setTranslate(c), e && (r.emit("beforeTransitionStart", t, n), r.emit("transitionEnd"))) : (r.setTransition(t), r.setTranslate(c), e && (r.emit("beforeTransitionStart", t, n), r.emit("transitionStart")), r.animating || (r.animating = !0, r.onTranslateToWrapperTransitionEnd || (r.onTranslateToWrapperTransitionEnd = function(p) {
632
- !r || r.destroyed || p.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onTranslateToWrapperTransitionEnd), r.onTranslateToWrapperTransitionEnd = null, delete r.onTranslateToWrapperTransitionEnd, e && r.emit("transitionEnd"));
633
- }), r.wrapperEl.addEventListener("transitionend", r.onTranslateToWrapperTransitionEnd))), !0;
634
- }
635
- var He = {
636
- getTranslate: Ne,
637
- setTranslate: Fe,
638
- minTranslate: _e,
639
- maxTranslate: Re,
640
- translateTo: $e
641
- };
642
- function We(i, t) {
643
- const e = this;
644
- e.params.cssMode || (e.wrapperEl.style.transitionDuration = `${i}ms`, e.wrapperEl.style.transitionDelay = i === 0 ? "0ms" : ""), e.emit("setTransition", i, t);
645
- }
646
- function ce(i) {
647
- let {
648
- swiper: t,
649
- runCallbacks: e,
650
- direction: s,
651
- step: n
652
- } = i;
653
- const {
654
- activeIndex: r,
655
- previousIndex: l
656
- } = t;
657
- let o = s;
658
- if (o || (r > l ? o = "next" : r < l ? o = "prev" : o = "reset"), t.emit(`transition${n}`), e && r !== l) {
659
- if (o === "reset") {
660
- t.emit(`slideResetTransition${n}`);
661
- return;
662
- }
663
- t.emit(`slideChangeTransition${n}`), o === "next" ? t.emit(`slideNextTransition${n}`) : t.emit(`slidePrevTransition${n}`);
664
- }
665
- }
666
- function Ye(i, t) {
667
- i === void 0 && (i = !0);
668
- const e = this, {
669
- params: s
670
- } = e;
671
- s.cssMode || (s.autoHeight && e.updateAutoHeight(), ce({
672
- swiper: e,
673
- runCallbacks: i,
674
- direction: t,
675
- step: "Start"
676
- }));
677
- }
678
- function Xe(i, t) {
679
- i === void 0 && (i = !0);
680
- const e = this, {
681
- params: s
682
- } = e;
683
- e.animating = !1, !s.cssMode && (e.setTransition(0), ce({
684
- swiper: e,
685
- runCallbacks: i,
686
- direction: t,
687
- step: "End"
688
- }));
689
- }
690
- var je = {
691
- setTransition: We,
692
- transitionStart: Ye,
693
- transitionEnd: Xe
694
- };
695
- function qe(i, t, e, s, n) {
696
- i === void 0 && (i = 0), t === void 0 && (t = this.params.speed), e === void 0 && (e = !0), typeof i == "string" && (i = parseInt(i, 10));
697
- const r = this;
698
- let l = i;
699
- l < 0 && (l = 0);
700
- const {
701
- params: o,
702
- snapGrid: a,
703
- slidesGrid: d,
704
- previousIndex: c,
705
- activeIndex: f,
706
- rtlTranslate: p,
707
- wrapperEl: u,
708
- enabled: h
709
- } = r;
710
- if (r.animating && o.preventInteractionOnTransition || !h && !s && !n || r.destroyed)
711
- return !1;
712
- const g = Math.min(r.params.slidesPerGroupSkip, l);
713
- let E = g + Math.floor((l - g) / r.params.slidesPerGroup);
714
- E >= a.length && (E = a.length - 1);
715
- const m = -a[E];
716
- if (o.normalizeSlideIndex)
717
- for (let v = 0; v < d.length; v += 1) {
718
- const S = -Math.floor(m * 100), T = Math.floor(d[v] * 100), M = Math.floor(d[v + 1] * 100);
719
- typeof d[v + 1] < "u" ? S >= T && S < M - (M - T) / 2 ? l = v : S >= T && S < M && (l = v + 1) : S >= T && (l = v);
720
- }
721
- if (r.initialized && l !== f && (!r.allowSlideNext && (p ? m > r.translate && m > r.minTranslate() : m < r.translate && m < r.minTranslate()) || !r.allowSlidePrev && m > r.translate && m > r.maxTranslate() && (f || 0) !== l))
722
- return !1;
723
- l !== (c || 0) && e && r.emit("beforeSlideChangeStart"), r.updateProgress(m);
724
- let y;
725
- if (l > f ? y = "next" : l < f ? y = "prev" : y = "reset", p && -m === r.translate || !p && m === r.translate)
726
- return r.updateActiveIndex(l), o.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), o.effect !== "slide" && r.setTranslate(m), y !== "reset" && (r.transitionStart(e, y), r.transitionEnd(e, y)), !1;
727
- if (o.cssMode) {
728
- const v = r.isHorizontal(), S = p ? m : -m;
729
- if (t === 0) {
730
- const T = r.virtual && r.params.virtual.enabled;
731
- T && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = !0), T && !r._cssModeVirtualInitialSet && r.params.initialSlide > 0 ? (r._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
732
- u[v ? "scrollLeft" : "scrollTop"] = S;
733
- })) : u[v ? "scrollLeft" : "scrollTop"] = S, T && requestAnimationFrame(() => {
734
- r.wrapperEl.style.scrollSnapType = "", r._immediateVirtual = !1;
735
- });
736
- } else {
737
- if (!r.support.smoothScroll)
738
- return le({
739
- swiper: r,
740
- targetPosition: S,
741
- side: v ? "left" : "top"
742
- }), !0;
743
- u.scrollTo({
744
- [v ? "left" : "top"]: S,
745
- behavior: "smooth"
746
- });
747
- }
748
- return !0;
749
- }
750
- return r.setTransition(t), r.setTranslate(m), r.updateActiveIndex(l), r.updateSlidesClasses(), r.emit("beforeTransitionStart", t, s), r.transitionStart(e, y), t === 0 ? r.transitionEnd(e, y) : r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function(S) {
751
- !r || r.destroyed || S.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(e, y));
752
- }), r.wrapperEl.addEventListener("transitionend", r.onSlideToWrapperTransitionEnd)), !0;
753
- }
754
- function Ue(i, t, e, s) {
755
- i === void 0 && (i = 0), t === void 0 && (t = this.params.speed), e === void 0 && (e = !0), typeof i == "string" && (i = parseInt(i, 10));
756
- const n = this;
757
- if (n.destroyed) return;
758
- const r = n.grid && n.params.grid && n.params.grid.rows > 1;
759
- let l = i;
760
- if (n.params.loop)
761
- if (n.virtual && n.params.virtual.enabled)
762
- l = l + n.virtual.slidesBefore;
763
- else {
764
- let o;
765
- if (r) {
766
- const p = l * n.params.grid.rows;
767
- o = n.slides.filter((u) => u.getAttribute("data-swiper-slide-index") * 1 === p)[0].column;
768
- } else
769
- o = n.getSlideIndexByData(l);
770
- const a = r ? Math.ceil(n.slides.length / n.params.grid.rows) : n.slides.length, {
771
- centeredSlides: d
772
- } = n.params;
773
- let c = n.params.slidesPerView;
774
- c === "auto" ? c = n.slidesPerViewDynamic() : (c = Math.ceil(parseFloat(n.params.slidesPerView, 10)), d && c % 2 === 0 && (c = c + 1));
775
- let f = a - o < c;
776
- if (d && (f = f || o < Math.ceil(c / 2)), f) {
777
- const p = d ? o < n.activeIndex ? "prev" : "next" : o - n.activeIndex - 1 < n.params.slidesPerView ? "next" : "prev";
778
- n.loopFix({
779
- direction: p,
780
- slideTo: !0,
781
- activeSlideIndex: p === "next" ? o + 1 : o - a + 1,
782
- slideRealIndex: p === "next" ? n.realIndex : void 0
783
- });
784
- }
785
- if (r) {
786
- const p = l * n.params.grid.rows;
787
- l = n.slides.filter((u) => u.getAttribute("data-swiper-slide-index") * 1 === p)[0].column;
788
- } else
789
- l = n.getSlideIndexByData(l);
790
- }
791
- return requestAnimationFrame(() => {
792
- n.slideTo(l, t, e, s);
793
- }), n;
794
- }
795
- function Ke(i, t, e) {
796
- i === void 0 && (i = this.params.speed), t === void 0 && (t = !0);
797
- const s = this, {
798
- enabled: n,
799
- params: r,
800
- animating: l
801
- } = s;
802
- if (!n || s.destroyed) return s;
803
- let o = r.slidesPerGroup;
804
- r.slidesPerView === "auto" && r.slidesPerGroup === 1 && r.slidesPerGroupAuto && (o = Math.max(s.slidesPerViewDynamic("current", !0), 1));
805
- const a = s.activeIndex < r.slidesPerGroupSkip ? 1 : o, d = s.virtual && r.virtual.enabled;
806
- if (r.loop) {
807
- if (l && !d && r.loopPreventsSliding) return !1;
808
- if (s.loopFix({
809
- direction: "next"
810
- }), s._clientLeft = s.wrapperEl.clientLeft, s.activeIndex === s.slides.length - 1 && r.cssMode)
811
- return requestAnimationFrame(() => {
812
- s.slideTo(s.activeIndex + a, i, t, e);
813
- }), !0;
814
- }
815
- return r.rewind && s.isEnd ? s.slideTo(0, i, t, e) : s.slideTo(s.activeIndex + a, i, t, e);
816
- }
817
- function Je(i, t, e) {
818
- i === void 0 && (i = this.params.speed), t === void 0 && (t = !0);
819
- const s = this, {
820
- params: n,
821
- snapGrid: r,
822
- slidesGrid: l,
823
- rtlTranslate: o,
824
- enabled: a,
825
- animating: d
826
- } = s;
827
- if (!a || s.destroyed) return s;
828
- const c = s.virtual && n.virtual.enabled;
829
- if (n.loop) {
830
- if (d && !c && n.loopPreventsSliding) return !1;
831
- s.loopFix({
832
- direction: "prev"
833
- }), s._clientLeft = s.wrapperEl.clientLeft;
834
- }
835
- const f = o ? s.translate : -s.translate;
836
- function p(m) {
837
- return m < 0 ? -Math.floor(Math.abs(m)) : Math.floor(m);
838
- }
839
- const u = p(f), h = r.map((m) => p(m));
840
- let g = r[h.indexOf(u) - 1];
841
- if (typeof g > "u" && n.cssMode) {
842
- let m;
843
- r.forEach((y, v) => {
844
- u >= y && (m = v);
845
- }), typeof m < "u" && (g = r[m > 0 ? m - 1 : m]);
846
- }
847
- let E = 0;
848
- if (typeof g < "u" && (E = l.indexOf(g), E < 0 && (E = s.activeIndex - 1), n.slidesPerView === "auto" && n.slidesPerGroup === 1 && n.slidesPerGroupAuto && (E = E - s.slidesPerViewDynamic("previous", !0) + 1, E = Math.max(E, 0))), n.rewind && s.isBeginning) {
849
- const m = s.params.virtual && s.params.virtual.enabled && s.virtual ? s.virtual.slides.length - 1 : s.slides.length - 1;
850
- return s.slideTo(m, i, t, e);
851
- } else if (n.loop && s.activeIndex === 0 && n.cssMode)
852
- return requestAnimationFrame(() => {
853
- s.slideTo(E, i, t, e);
854
- }), !0;
855
- return s.slideTo(E, i, t, e);
856
- }
857
- function Qe(i, t, e) {
858
- i === void 0 && (i = this.params.speed), t === void 0 && (t = !0);
859
- const s = this;
860
- if (!s.destroyed)
861
- return s.slideTo(s.activeIndex, i, t, e);
862
- }
863
- function Ze(i, t, e, s) {
864
- i === void 0 && (i = this.params.speed), t === void 0 && (t = !0), s === void 0 && (s = 0.5);
865
- const n = this;
866
- if (n.destroyed) return;
867
- let r = n.activeIndex;
868
- const l = Math.min(n.params.slidesPerGroupSkip, r), o = l + Math.floor((r - l) / n.params.slidesPerGroup), a = n.rtlTranslate ? n.translate : -n.translate;
869
- if (a >= n.snapGrid[o]) {
870
- const d = n.snapGrid[o], c = n.snapGrid[o + 1];
871
- a - d > (c - d) * s && (r += n.params.slidesPerGroup);
872
- } else {
873
- const d = n.snapGrid[o - 1], c = n.snapGrid[o];
874
- a - d <= (c - d) * s && (r -= n.params.slidesPerGroup);
875
- }
876
- return r = Math.max(r, 0), r = Math.min(r, n.slidesGrid.length - 1), n.slideTo(r, i, t, e);
877
- }
878
- function et() {
879
- const i = this;
880
- if (i.destroyed) return;
881
- const {
882
- params: t,
883
- slidesEl: e
884
- } = i, s = t.slidesPerView === "auto" ? i.slidesPerViewDynamic() : t.slidesPerView;
885
- let n = i.clickedIndex, r;
886
- const l = i.isElement ? "swiper-slide" : `.${t.slideClass}`;
887
- if (t.loop) {
888
- if (i.animating) return;
889
- 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(O(e, `${l}[data-swiper-slide-index="${r}"]`)[0]), K(() => {
890
- i.slideTo(n);
891
- })) : i.slideTo(n) : n > i.slides.length - s ? (i.loopFix(), n = i.getSlideIndex(O(e, `${l}[data-swiper-slide-index="${r}"]`)[0]), K(() => {
892
- i.slideTo(n);
893
- })) : i.slideTo(n);
894
- } else
895
- i.slideTo(n);
896
- }
897
- var tt = {
898
- slideTo: qe,
899
- slideToLoop: Ue,
900
- slideNext: Ke,
901
- slidePrev: Je,
902
- slideReset: Qe,
903
- slideToClosest: Ze,
904
- slideToClickedSlide: et
905
- };
906
- function it(i) {
907
- const t = this, {
908
- params: e,
909
- slidesEl: s
910
- } = t;
911
- if (!e.loop || t.virtual && t.params.virtual.enabled) return;
912
- const n = () => {
913
- O(s, `.${e.slideClass}, swiper-slide`).forEach((f, p) => {
914
- f.setAttribute("data-swiper-slide-index", p);
915
- });
916
- }, 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) => {
917
- for (let f = 0; f < c; f += 1) {
918
- const p = t.isElement ? U("swiper-slide", [e.slideBlankClass]) : U("div", [e.slideClass, e.slideBlankClass]);
919
- t.slidesEl.append(p);
920
- }
921
- };
922
- if (o) {
923
- if (e.loopAddBlankSlides) {
924
- const c = l - t.slides.length % l;
925
- d(c), t.recalcSlides(), t.updateSlides();
926
- } else
927
- R("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
928
- n();
929
- } else if (a) {
930
- if (e.loopAddBlankSlides) {
931
- const c = e.grid.rows - t.slides.length % e.grid.rows;
932
- d(c), t.recalcSlides(), t.updateSlides();
933
- } else
934
- R("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
935
- n();
936
- } else
937
- n();
938
- t.loopFix({
939
- slideRealIndex: i,
940
- direction: e.centeredSlides ? void 0 : "next"
941
- });
942
- }
943
- function st(i) {
944
- let {
945
- slideRealIndex: t,
946
- slideTo: e = !0,
947
- direction: s,
948
- setTranslate: n,
949
- activeSlideIndex: r,
950
- byController: l,
951
- byMousewheel: o
952
- } = i === void 0 ? {} : i;
953
- const a = this;
954
- if (!a.params.loop) return;
955
- a.emit("beforeLoopFix");
956
- const {
957
- slides: d,
958
- allowSlidePrev: c,
959
- allowSlideNext: f,
960
- slidesEl: p,
961
- params: u
962
- } = a, {
963
- centeredSlides: h
964
- } = u;
965
- if (a.allowSlidePrev = !0, a.allowSlideNext = !0, a.virtual && u.virtual.enabled) {
966
- e && (!u.centeredSlides && a.snapIndex === 0 ? a.slideTo(a.virtual.slides.length, 0, !1, !0) : u.centeredSlides && a.snapIndex < u.slidesPerView ? a.slideTo(a.virtual.slides.length + a.snapIndex, 0, !1, !0) : a.snapIndex === a.snapGrid.length - 1 && a.slideTo(a.virtual.slidesBefore, 0, !1, !0)), a.allowSlidePrev = c, a.allowSlideNext = f, a.emit("loopFix");
967
- return;
968
- }
969
- let g = u.slidesPerView;
970
- g === "auto" ? g = a.slidesPerViewDynamic() : (g = Math.ceil(parseFloat(u.slidesPerView, 10)), h && g % 2 === 0 && (g = g + 1));
971
- const E = u.slidesPerGroupAuto ? g : u.slidesPerGroup;
972
- let m = E;
973
- m % E !== 0 && (m += E - m % E), m += u.loopAdditionalSlides, a.loopedSlides = m;
974
- const y = a.grid && u.grid && u.grid.rows > 1;
975
- d.length < g + m ? 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") : y && u.grid.fill === "row" && R("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
976
- const v = [], S = [];
977
- let T = a.activeIndex;
978
- typeof r > "u" ? r = a.getSlideIndex(d.filter((x) => x.classList.contains(u.slideActiveClass))[0]) : T = r;
979
- const M = s === "next" || !s, D = s === "prev" || !s;
980
- let I = 0, B = 0;
981
- const w = y ? Math.ceil(d.length / u.grid.rows) : d.length, P = (y ? d[r].column : r) + (h && typeof n > "u" ? -g / 2 + 0.5 : 0);
982
- if (P < m) {
983
- I = Math.max(m - P, E);
984
- for (let x = 0; x < m - P; x += 1) {
985
- const C = x - Math.floor(x / w) * w;
986
- if (y) {
987
- const L = w - C - 1;
988
- for (let G = d.length - 1; G >= 0; G -= 1)
989
- d[G].column === L && v.push(G);
990
- } else
991
- v.push(w - C - 1);
992
- }
993
- } else if (P + g > w - m) {
994
- B = Math.max(P - (w - m * 2), E);
995
- for (let x = 0; x < B; x += 1) {
996
- const C = x - Math.floor(x / w) * w;
997
- y ? d.forEach((L, G) => {
998
- L.column === C && S.push(G);
999
- }) : S.push(C);
1000
- }
1001
- }
1002
- if (a.__preventObserver__ = !0, requestAnimationFrame(() => {
1003
- a.__preventObserver__ = !1;
1004
- }), D && v.forEach((x) => {
1005
- d[x].swiperLoopMoveDOM = !0, p.prepend(d[x]), d[x].swiperLoopMoveDOM = !1;
1006
- }), M && S.forEach((x) => {
1007
- d[x].swiperLoopMoveDOM = !0, p.append(d[x]), d[x].swiperLoopMoveDOM = !1;
1008
- }), a.recalcSlides(), u.slidesPerView === "auto" ? a.updateSlides() : y && (v.length > 0 && D || S.length > 0 && M) && a.slides.forEach((x, C) => {
1009
- a.grid.updateSlide(C, x, a.slides);
1010
- }), u.watchSlidesProgress && a.updateSlidesOffset(), e) {
1011
- if (v.length > 0 && D) {
1012
- if (typeof t > "u") {
1013
- const x = a.slidesGrid[T], L = a.slidesGrid[T + I] - x;
1014
- o ? a.setTranslate(a.translate - L) : (a.slideTo(T + I, 0, !1, !0), n && (a.touchEventsData.startTranslate = a.touchEventsData.startTranslate - L, a.touchEventsData.currentTranslate = a.touchEventsData.currentTranslate - L));
1015
- } else if (n) {
1016
- const x = y ? v.length / u.grid.rows : v.length;
1017
- a.slideTo(a.activeIndex + x, 0, !1, !0), a.touchEventsData.currentTranslate = a.translate;
1018
- }
1019
- } else if (S.length > 0 && M)
1020
- if (typeof t > "u") {
1021
- const x = a.slidesGrid[T], L = a.slidesGrid[T - B] - x;
1022
- o ? a.setTranslate(a.translate - L) : (a.slideTo(T - B, 0, !1, !0), n && (a.touchEventsData.startTranslate = a.touchEventsData.startTranslate - L, a.touchEventsData.currentTranslate = a.touchEventsData.currentTranslate - L));
1023
- } else {
1024
- const x = y ? S.length / u.grid.rows : S.length;
1025
- a.slideTo(a.activeIndex - x, 0, !1, !0);
1026
- }
1027
- }
1028
- if (a.allowSlidePrev = c, a.allowSlideNext = f, a.controller && a.controller.control && !l) {
1029
- const x = {
1030
- slideRealIndex: t,
1031
- direction: s,
1032
- setTranslate: n,
1033
- activeSlideIndex: r,
1034
- byController: !0
1035
- };
1036
- Array.isArray(a.controller.control) ? a.controller.control.forEach((C) => {
1037
- !C.destroyed && C.params.loop && C.loopFix({
1038
- ...x,
1039
- slideTo: C.params.slidesPerView === u.slidesPerView ? e : !1
1040
- });
1041
- }) : a.controller.control instanceof a.constructor && a.controller.control.params.loop && a.controller.control.loopFix({
1042
- ...x,
1043
- slideTo: a.controller.control.params.slidesPerView === u.slidesPerView ? e : !1
1044
- });
1045
- }
1046
- a.emit("loopFix");
1047
- }
1048
- function rt() {
1049
- const i = this, {
1050
- params: t,
1051
- slidesEl: e
1052
- } = i;
1053
- if (!t.loop || i.virtual && i.params.virtual.enabled) return;
1054
- i.recalcSlides();
1055
- const s = [];
1056
- i.slides.forEach((n) => {
1057
- const r = typeof n.swiperSlideIndex > "u" ? n.getAttribute("data-swiper-slide-index") * 1 : n.swiperSlideIndex;
1058
- s[r] = n;
1059
- }), i.slides.forEach((n) => {
1060
- n.removeAttribute("data-swiper-slide-index");
1061
- }), s.forEach((n) => {
1062
- e.append(n);
1063
- }), i.recalcSlides(), i.slideTo(i.realIndex, 0);
1064
- }
1065
- var nt = {
1066
- loopCreate: it,
1067
- loopFix: st,
1068
- loopDestroy: rt
1069
- };
1070
- function at(i) {
1071
- const t = this;
1072
- if (!t.params.simulateTouch || t.params.watchOverflow && t.isLocked || t.params.cssMode) return;
1073
- const e = t.params.touchEventsTarget === "container" ? t.el : t.wrapperEl;
1074
- t.isElement && (t.__preventObserver__ = !0), e.style.cursor = "move", e.style.cursor = i ? "grabbing" : "grab", t.isElement && requestAnimationFrame(() => {
1075
- t.__preventObserver__ = !1;
1076
- });
1077
- }
1078
- function lt() {
1079
- const i = this;
1080
- i.params.watchOverflow && i.isLocked || i.params.cssMode || (i.isElement && (i.__preventObserver__ = !0), i[i.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "", i.isElement && requestAnimationFrame(() => {
1081
- i.__preventObserver__ = !1;
1082
- }));
1083
- }
1084
- var ot = {
1085
- setGrabCursor: at,
1086
- unsetGrabCursor: lt
1087
- };
1088
- function dt(i, t) {
1089
- t === void 0 && (t = this);
1090
- function e(s) {
1091
- if (!s || s === N() || s === V()) return null;
1092
- s.assignedSlot && (s = s.assignedSlot);
1093
- const n = s.closest(i);
1094
- return !n && !s.getRootNode ? null : n || e(s.getRootNode().host);
1095
- }
1096
- return e(t);
1097
- }
1098
- function se(i, t, e) {
1099
- const s = V(), {
1100
- params: n
1101
- } = i, r = n.edgeSwipeDetection, l = n.edgeSwipeThreshold;
1102
- return r && (e <= l || e >= s.innerWidth - l) ? r === "prevent" ? (t.preventDefault(), !0) : !1 : !0;
1103
- }
1104
- function ct(i) {
1105
- const t = this, e = N();
1106
- let s = i;
1107
- s.originalEvent && (s = s.originalEvent);
1108
- const n = t.touchEventsData;
1109
- if (s.type === "pointerdown") {
1110
- if (n.pointerId !== null && n.pointerId !== s.pointerId)
1111
- return;
1112
- n.pointerId = s.pointerId;
1113
- } else s.type === "touchstart" && s.targetTouches.length === 1 && (n.touchId = s.targetTouches[0].identifier);
1114
- if (s.type === "touchstart") {
1115
- se(t, s, s.targetTouches[0].pageX);
1116
- return;
1117
- }
1118
- const {
1119
- params: r,
1120
- touches: l,
1121
- enabled: o
1122
- } = t;
1123
- if (!o || !r.simulateTouch && s.pointerType === "mouse" || t.animating && r.preventInteractionOnTransition)
1124
- return;
1125
- !t.animating && r.cssMode && r.loop && t.loopFix();
1126
- let a = s.target;
1127
- if (r.touchEventsTarget === "wrapper" && !t.wrapperEl.contains(a) || "which" in s && s.which === 3 || "button" in s && s.button > 0 || n.isTouched && n.isMoved) return;
1128
- const d = !!r.noSwipingClass && r.noSwipingClass !== "", c = s.composedPath ? s.composedPath() : s.path;
1129
- d && s.target && s.target.shadowRoot && c && (a = c[0]);
1130
- const f = r.noSwipingSelector ? r.noSwipingSelector : `.${r.noSwipingClass}`, p = !!(s.target && s.target.shadowRoot);
1131
- if (r.noSwiping && (p ? dt(f, a) : a.closest(f))) {
1132
- t.allowClick = !0;
1133
- return;
1134
- }
1135
- if (r.swipeHandler && !a.closest(r.swipeHandler))
1136
- return;
1137
- l.currentX = s.pageX, l.currentY = s.pageY;
1138
- const u = l.currentX, h = l.currentY;
1139
- if (!se(t, s, u))
1140
- return;
1141
- Object.assign(n, {
1142
- isTouched: !0,
1143
- isMoved: !1,
1144
- allowTouchCallbacks: !0,
1145
- isScrolling: void 0,
1146
- startMoving: void 0
1147
- }), l.startX = u, l.startY = h, n.touchStartTime = $(), t.allowClick = !0, t.updateSize(), t.swipeDirection = void 0, r.threshold > 0 && (n.allowThresholdMove = !1);
1148
- let g = !0;
1149
- a.matches(n.focusableElements) && (g = !1, a.nodeName === "SELECT" && (n.isTouched = !1)), e.activeElement && e.activeElement.matches(n.focusableElements) && e.activeElement !== a && e.activeElement.blur();
1150
- const E = g && t.allowTouchMove && r.touchStartPreventDefault;
1151
- (r.touchStartForcePreventDefault || E) && !a.isContentEditable && s.preventDefault(), r.freeMode && r.freeMode.enabled && t.freeMode && t.animating && !r.cssMode && t.freeMode.onTouchStart(), t.emit("touchStart", s);
1152
- }
1153
- function ft(i) {
1154
- const t = N(), e = this, s = e.touchEventsData, {
1155
- params: n,
1156
- touches: r,
1157
- rtlTranslate: l,
1158
- enabled: o
1159
- } = e;
1160
- if (!o || !n.simulateTouch && i.pointerType === "mouse") return;
1161
- let a = i;
1162
- if (a.originalEvent && (a = a.originalEvent), a.type === "pointermove" && (s.touchId !== null || a.pointerId !== s.pointerId))
1163
- return;
1164
- let d;
1165
- if (a.type === "touchmove") {
1166
- if (d = [...a.changedTouches].filter((M) => M.identifier === s.touchId)[0], !d || d.identifier !== s.touchId) return;
1167
- } else
1168
- d = a;
1169
- if (!s.isTouched) {
1170
- s.startMoving && s.isScrolling && e.emit("touchMoveOpposite", a);
1171
- return;
1172
- }
1173
- const c = d.pageX, f = d.pageY;
1174
- if (a.preventedByNestedSwiper) {
1175
- r.startX = c, r.startY = f;
1176
- return;
1177
- }
1178
- if (!e.allowTouchMove) {
1179
- a.target.matches(s.focusableElements) || (e.allowClick = !1), s.isTouched && (Object.assign(r, {
1180
- startX: c,
1181
- startY: f,
1182
- currentX: c,
1183
- currentY: f
1184
- }), s.touchStartTime = $());
1185
- return;
1186
- }
1187
- if (n.touchReleaseOnEdges && !n.loop) {
1188
- if (e.isVertical()) {
1189
- if (f < r.startY && e.translate <= e.maxTranslate() || f > r.startY && e.translate >= e.minTranslate()) {
1190
- s.isTouched = !1, s.isMoved = !1;
1191
- return;
1192
- }
1193
- } else if (c < r.startX && e.translate <= e.maxTranslate() || c > r.startX && e.translate >= e.minTranslate())
1194
- return;
1195
- }
1196
- if (t.activeElement && a.target === t.activeElement && a.target.matches(s.focusableElements)) {
1197
- s.isMoved = !0, e.allowClick = !1;
1198
- return;
1199
- }
1200
- s.allowTouchCallbacks && e.emit("touchMove", a), r.previousX = r.currentX, r.previousY = r.currentY, r.currentX = c, r.currentY = f;
1201
- const p = r.currentX - r.startX, u = r.currentY - r.startY;
1202
- if (e.params.threshold && Math.sqrt(p ** 2 + u ** 2) < e.params.threshold) return;
1203
- if (typeof s.isScrolling > "u") {
1204
- let M;
1205
- 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);
1206
- }
1207
- if (s.isScrolling && e.emit("touchMoveOpposite", a), typeof s.startMoving > "u" && (r.currentX !== r.startX || r.currentY !== r.startY) && (s.startMoving = !0), s.isScrolling) {
1208
- s.isTouched = !1;
1209
- return;
1210
- }
1211
- if (!s.startMoving)
1212
- return;
1213
- e.allowClick = !1, !n.cssMode && a.cancelable && a.preventDefault(), n.touchMoveStopPropagation && !n.nested && a.stopPropagation();
1214
- let h = e.isHorizontal() ? p : u, g = e.isHorizontal() ? r.currentX - r.previousX : r.currentY - r.previousY;
1215
- n.oneWayMovement && (h = Math.abs(h) * (l ? 1 : -1), g = Math.abs(g) * (l ? 1 : -1)), r.diff = h, h *= n.touchRatio, l && (h = -h, g = -g);
1216
- const E = e.touchesDirection;
1217
- e.swipeDirection = h > 0 ? "prev" : "next", e.touchesDirection = g > 0 ? "prev" : "next";
1218
- const m = e.params.loop && !n.cssMode, y = e.touchesDirection === "next" && e.allowSlideNext || e.touchesDirection === "prev" && e.allowSlidePrev;
1219
- if (!s.isMoved) {
1220
- if (m && y && e.loopFix({
1221
- direction: e.swipeDirection
1222
- }), s.startTranslate = e.getTranslate(), e.setTransition(0), e.animating) {
1223
- const M = new window.CustomEvent("transitionend", {
1224
- bubbles: !0,
1225
- cancelable: !0
1226
- });
1227
- e.wrapperEl.dispatchEvent(M);
1228
- }
1229
- s.allowMomentumBounce = !1, n.grabCursor && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!0), e.emit("sliderFirstMove", a);
1230
- }
1231
- let v;
1232
- if ((/* @__PURE__ */ new Date()).getTime(), s.isMoved && s.allowThresholdMove && E !== e.touchesDirection && m && y && Math.abs(h) >= 1) {
1233
- Object.assign(r, {
1234
- startX: c,
1235
- startY: f,
1236
- currentX: c,
1237
- currentY: f,
1238
- startTranslate: s.currentTranslate
1239
- }), s.loopSwapReset = !0, s.startTranslate = s.currentTranslate;
1240
- return;
1241
- }
1242
- e.emit("sliderMove", a), s.isMoved = !0, s.currentTranslate = h + s.startTranslate;
1243
- let S = !0, T = n.resistanceRatio;
1244
- if (n.touchReleaseOnEdges && (T = 0), h > 0 ? (m && y && !v && s.allowThresholdMove && s.currentTranslate > (n.centeredSlides ? e.minTranslate() - e.slidesSizesGrid[e.activeIndex + 1] : e.minTranslate()) && e.loopFix({
1245
- direction: "prev",
1246
- setTranslate: !0,
1247
- activeSlideIndex: 0
1248
- }), s.currentTranslate > e.minTranslate() && (S = !1, n.resistance && (s.currentTranslate = e.minTranslate() - 1 + (-e.minTranslate() + s.startTranslate + h) ** T))) : h < 0 && (m && y && !v && s.allowThresholdMove && s.currentTranslate < (n.centeredSlides ? e.maxTranslate() + e.slidesSizesGrid[e.slidesSizesGrid.length - 1] : e.maxTranslate()) && e.loopFix({
1249
- direction: "next",
1250
- setTranslate: !0,
1251
- activeSlideIndex: e.slides.length - (n.slidesPerView === "auto" ? e.slidesPerViewDynamic() : Math.ceil(parseFloat(n.slidesPerView, 10)))
1252
- }), s.currentTranslate < e.maxTranslate() && (S = !1, n.resistance && (s.currentTranslate = e.maxTranslate() + 1 - (e.maxTranslate() - s.startTranslate - h) ** T))), S && (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)
1253
- if (Math.abs(h) > n.threshold || s.allowThresholdMove) {
1254
- if (!s.allowThresholdMove) {
1255
- 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;
1256
- return;
1257
- }
1258
- } else {
1259
- s.currentTranslate = s.startTranslate;
1260
- return;
1261
- }
1262
- !n.followFinger || n.cssMode || ((n.freeMode && n.freeMode.enabled && e.freeMode || n.watchSlidesProgress) && (e.updateActiveIndex(), e.updateSlidesClasses()), n.freeMode && n.freeMode.enabled && e.freeMode && e.freeMode.onTouchMove(), e.updateProgress(s.currentTranslate), e.setTranslate(s.currentTranslate));
1263
- }
1264
- function ut(i) {
1265
- const t = this, e = t.touchEventsData;
1266
- let s = i;
1267
- s.originalEvent && (s = s.originalEvent);
1268
- let n;
1269
- if (s.type === "touchend" || s.type === "touchcancel") {
1270
- if (n = [...s.changedTouches].filter((T) => T.identifier === e.touchId)[0], !n || n.identifier !== e.touchId) return;
1271
- } else {
1272
- if (e.touchId !== null || s.pointerId !== e.pointerId) return;
1273
- n = s;
1274
- }
1275
- if (["pointercancel", "pointerout", "pointerleave", "contextmenu"].includes(s.type) && !(["pointercancel", "contextmenu"].includes(s.type) && (t.browser.isSafari || t.browser.isWebView)))
1276
- return;
1277
- e.pointerId = null, e.touchId = null;
1278
- const {
1279
- params: l,
1280
- touches: o,
1281
- rtlTranslate: a,
1282
- slidesGrid: d,
1283
- enabled: c
1284
- } = t;
1285
- if (!c || !l.simulateTouch && s.pointerType === "mouse") return;
1286
- if (e.allowTouchCallbacks && t.emit("touchEnd", s), e.allowTouchCallbacks = !1, !e.isTouched) {
1287
- e.isMoved && l.grabCursor && t.setGrabCursor(!1), e.isMoved = !1, e.startMoving = !1;
1288
- return;
1289
- }
1290
- l.grabCursor && e.isMoved && e.isTouched && (t.allowSlideNext === !0 || t.allowSlidePrev === !0) && t.setGrabCursor(!1);
1291
- const f = $(), p = f - e.touchStartTime;
1292
- if (t.allowClick) {
1293
- const T = s.path || s.composedPath && s.composedPath();
1294
- t.updateClickedSlide(T && T[0] || s.target, T), t.emit("tap click", s), p < 300 && f - e.lastClickTime < 300 && t.emit("doubleTap doubleClick", s);
1295
- }
1296
- if (e.lastClickTime = $(), K(() => {
1297
- t.destroyed || (t.allowClick = !0);
1298
- }), !e.isTouched || !e.isMoved || !t.swipeDirection || o.diff === 0 && !e.loopSwapReset || e.currentTranslate === e.startTranslate && !e.loopSwapReset) {
1299
- e.isTouched = !1, e.isMoved = !1, e.startMoving = !1;
1300
- return;
1301
- }
1302
- e.isTouched = !1, e.isMoved = !1, e.startMoving = !1;
1303
- let u;
1304
- if (l.followFinger ? u = a ? t.translate : -t.translate : u = -e.currentTranslate, l.cssMode)
1305
- return;
1306
- if (l.freeMode && l.freeMode.enabled) {
1307
- t.freeMode.onTouchEnd({
1308
- currentPos: u
1309
- });
1310
- return;
1311
- }
1312
- const h = u >= -t.maxTranslate() && !t.params.loop;
1313
- let g = 0, E = t.slidesSizesGrid[0];
1314
- for (let T = 0; T < d.length; T += T < l.slidesPerGroupSkip ? 1 : l.slidesPerGroup) {
1315
- const M = T < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
1316
- typeof d[T + M] < "u" ? (h || u >= d[T] && u < d[T + M]) && (g = T, E = d[T + M] - d[T]) : (h || u >= d[T]) && (g = T, E = d[d.length - 1] - d[d.length - 2]);
1317
- }
1318
- let m = null, y = null;
1319
- l.rewind && (t.isBeginning ? y = l.virtual && l.virtual.enabled && t.virtual ? t.virtual.slides.length - 1 : t.slides.length - 1 : t.isEnd && (m = 0));
1320
- const v = (u - d[g]) / E, S = g < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
1321
- if (p > l.longSwipesMs) {
1322
- if (!l.longSwipes) {
1323
- t.slideTo(t.activeIndex);
1324
- return;
1325
- }
1326
- t.swipeDirection === "next" && (v >= l.longSwipesRatio ? t.slideTo(l.rewind && t.isEnd ? m : g + S) : t.slideTo(g)), t.swipeDirection === "prev" && (v > 1 - l.longSwipesRatio ? t.slideTo(g + S) : y !== null && v < 0 && Math.abs(v) > l.longSwipesRatio ? t.slideTo(y) : t.slideTo(g));
1327
- } else {
1328
- if (!l.shortSwipes) {
1329
- t.slideTo(t.activeIndex);
1330
- return;
1331
- }
1332
- t.navigation && (s.target === t.navigation.nextEl || s.target === t.navigation.prevEl) ? s.target === t.navigation.nextEl ? t.slideTo(g + S) : t.slideTo(g) : (t.swipeDirection === "next" && t.slideTo(m !== null ? m : g + S), t.swipeDirection === "prev" && t.slideTo(y !== null ? y : g));
1333
- }
1334
- }
1335
- function re() {
1336
- const i = this, {
1337
- params: t,
1338
- el: e
1339
- } = i;
1340
- if (e && e.offsetWidth === 0) return;
1341
- t.breakpoints && i.setBreakpoint();
1342
- const {
1343
- allowSlideNext: s,
1344
- allowSlidePrev: n,
1345
- snapGrid: r
1346
- } = i, l = i.virtual && i.params.virtual.enabled;
1347
- i.allowSlideNext = !0, i.allowSlidePrev = !0, i.updateSize(), i.updateSlides(), i.updateSlidesClasses();
1348
- const o = l && t.loop;
1349
- (t.slidesPerView === "auto" || t.slidesPerView > 1) && i.isEnd && !i.isBeginning && !i.params.centeredSlides && !o ? i.slideTo(i.slides.length - 1, 0, !1, !0) : i.params.loop && !l ? i.slideToLoop(i.realIndex, 0, !1, !0) : i.slideTo(i.activeIndex, 0, !1, !0), i.autoplay && i.autoplay.running && i.autoplay.paused && (clearTimeout(i.autoplay.resizeTimeout), i.autoplay.resizeTimeout = setTimeout(() => {
1350
- i.autoplay && i.autoplay.running && i.autoplay.paused && i.autoplay.resume();
1351
- }, 500)), i.allowSlidePrev = n, i.allowSlideNext = s, i.params.watchOverflow && r !== i.snapGrid && i.checkOverflow();
1352
- }
1353
- function pt(i) {
1354
- const t = this;
1355
- t.enabled && (t.allowClick || (t.params.preventClicks && i.preventDefault(), t.params.preventClicksPropagation && t.animating && (i.stopPropagation(), i.stopImmediatePropagation())));
1356
- }
1357
- function ht() {
1358
- const i = this, {
1359
- wrapperEl: t,
1360
- rtlTranslate: e,
1361
- enabled: s
1362
- } = i;
1363
- if (!s) return;
1364
- i.previousTranslate = i.translate, i.isHorizontal() ? i.translate = -t.scrollLeft : i.translate = -t.scrollTop, i.translate === 0 && (i.translate = 0), i.updateActiveIndex(), i.updateSlidesClasses();
1365
- let n;
1366
- const r = i.maxTranslate() - i.minTranslate();
1367
- r === 0 ? n = 0 : n = (i.translate - i.minTranslate()) / r, n !== i.progress && i.updateProgress(e ? -i.translate : i.translate), i.emit("setTranslate", i.translate, !1);
1368
- }
1369
- function mt(i) {
1370
- const t = this;
1371
- _(t, i.target), !(t.params.cssMode || t.params.slidesPerView !== "auto" && !t.params.autoHeight) && t.update();
1372
- }
1373
- function gt() {
1374
- const i = this;
1375
- i.documentTouchHandlerProceeded || (i.documentTouchHandlerProceeded = !0, i.params.touchReleaseOnEdges && (i.el.style.touchAction = "auto"));
1376
- }
1377
- const fe = (i, t) => {
1378
- const e = N(), {
1379
- params: s,
1380
- el: n,
1381
- wrapperEl: r,
1382
- device: l
1383
- } = i, o = !!s.nested, a = t === "on" ? "addEventListener" : "removeEventListener", d = t;
1384
- e[a]("touchstart", i.onDocumentTouchStart, {
1385
- passive: !1,
1386
- capture: o
1387
- }), n[a]("touchstart", i.onTouchStart, {
1388
- passive: !1
1389
- }), n[a]("pointerdown", i.onTouchStart, {
1390
- passive: !1
1391
- }), e[a]("touchmove", i.onTouchMove, {
1392
- passive: !1,
1393
- capture: o
1394
- }), e[a]("pointermove", i.onTouchMove, {
1395
- passive: !1,
1396
- capture: o
1397
- }), e[a]("touchend", i.onTouchEnd, {
1398
- passive: !0
1399
- }), e[a]("pointerup", i.onTouchEnd, {
1400
- passive: !0
1401
- }), e[a]("pointercancel", i.onTouchEnd, {
1402
- passive: !0
1403
- }), e[a]("touchcancel", i.onTouchEnd, {
1404
- passive: !0
1405
- }), e[a]("pointerout", i.onTouchEnd, {
1406
- passive: !0
1407
- }), e[a]("pointerleave", i.onTouchEnd, {
1408
- passive: !0
1409
- }), e[a]("contextmenu", i.onTouchEnd, {
1410
- passive: !0
1411
- }), (s.preventClicks || s.preventClicksPropagation) && n[a]("click", i.onClick, !0), s.cssMode && r[a]("scroll", i.onScroll), s.updateOnWindowResize ? i[d](l.ios || l.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", re, !0) : i[d]("observerUpdate", re, !0), n[a]("load", i.onLoad, {
1412
- capture: !0
1413
- });
1414
- };
1415
- function vt() {
1416
- const i = this, {
1417
- params: t
1418
- } = i;
1419
- i.onTouchStart = ct.bind(i), i.onTouchMove = ft.bind(i), i.onTouchEnd = ut.bind(i), i.onDocumentTouchStart = gt.bind(i), t.cssMode && (i.onScroll = ht.bind(i)), i.onClick = pt.bind(i), i.onLoad = mt.bind(i), fe(i, "on");
1420
- }
1421
- function wt() {
1422
- fe(this, "off");
1423
- }
1424
- var St = {
1425
- attachEvents: vt,
1426
- detachEvents: wt
1427
- };
1428
- const ne = (i, t) => i.grid && t.grid && t.grid.rows > 1;
1429
- function Tt() {
1430
- const i = this, {
1431
- realIndex: t,
1432
- initialized: e,
1433
- params: s,
1434
- el: n
1435
- } = i, r = s.breakpoints;
1436
- if (!r || r && Object.keys(r).length === 0) return;
1437
- const l = i.getBreakpoint(r, i.params.breakpointsBase, i.el);
1438
- if (!l || i.currentBreakpoint === l) return;
1439
- const a = (l in r ? r[l] : void 0) || i.originalParams, d = ne(i, s), c = ne(i, a), f = s.enabled;
1440
- 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()), ["navigation", "pagination", "scrollbar"].forEach((m) => {
1441
- if (typeof a[m] > "u") return;
1442
- const y = s[m] && s[m].enabled, v = a[m] && a[m].enabled;
1443
- y && !v && i[m].disable(), !y && v && i[m].enable();
1444
- });
1445
- const p = a.direction && a.direction !== s.direction, u = s.loop && (a.slidesPerView !== s.slidesPerView || p), h = s.loop;
1446
- p && e && i.changeDirection(), A(i.params, a);
1447
- const g = i.params.enabled, E = i.params.loop;
1448
- Object.assign(i, {
1449
- allowTouchMove: i.params.allowTouchMove,
1450
- allowSlideNext: i.params.allowSlideNext,
1451
- allowSlidePrev: i.params.allowSlidePrev
1452
- }), f && !g ? i.disable() : !f && g && i.enable(), i.currentBreakpoint = l, i.emit("_beforeBreakpoint", a), e && (u ? (i.loopDestroy(), i.loopCreate(t), i.updateSlides()) : !h && E ? (i.loopCreate(t), i.updateSlides()) : h && !E && i.loopDestroy()), i.emit("breakpoint", a);
1453
- }
1454
- function xt(i, t, e) {
1455
- if (t === void 0 && (t = "window"), !i || t === "container" && !e) return;
1456
- let s = !1;
1457
- const n = V(), r = t === "window" ? n.innerHeight : e.clientHeight, l = Object.keys(i).map((o) => {
1458
- if (typeof o == "string" && o.indexOf("@") === 0) {
1459
- const a = parseFloat(o.substr(1));
1460
- return {
1461
- value: r * a,
1462
- point: o
1463
- };
1464
- }
1465
- return {
1466
- value: o,
1467
- point: o
1468
- };
1469
- });
1470
- l.sort((o, a) => parseInt(o.value, 10) - parseInt(a.value, 10));
1471
- for (let o = 0; o < l.length; o += 1) {
1472
- const {
1473
- point: a,
1474
- value: d
1475
- } = l[o];
1476
- t === "window" ? n.matchMedia(`(min-width: ${d}px)`).matches && (s = a) : d <= e.clientWidth && (s = a);
1477
- }
1478
- return s || "max";
1479
- }
1480
- var bt = {
1481
- setBreakpoint: Tt,
1482
- getBreakpoint: xt
1483
- };
1484
- function yt(i, t) {
1485
- const e = [];
1486
- return i.forEach((s) => {
1487
- typeof s == "object" ? Object.keys(s).forEach((n) => {
1488
- s[n] && e.push(t + n);
1489
- }) : typeof s == "string" && e.push(t + s);
1490
- }), e;
1491
- }
1492
- function Et() {
1493
- const i = this, {
1494
- classNames: t,
1495
- params: e,
1496
- rtl: s,
1497
- el: n,
1498
- device: r
1499
- } = i, l = yt(["initialized", e.direction, {
1500
- "free-mode": i.params.freeMode && e.freeMode.enabled
1501
- }, {
1502
- autoheight: e.autoHeight
1503
- }, {
1504
- rtl: s
1505
- }, {
1506
- grid: e.grid && e.grid.rows > 1
1507
- }, {
1508
- "grid-column": e.grid && e.grid.rows > 1 && e.grid.fill === "column"
1509
- }, {
1510
- android: r.android
1511
- }, {
1512
- ios: r.ios
1513
- }, {
1514
- "css-mode": e.cssMode
1515
- }, {
1516
- centered: e.cssMode && e.centeredSlides
1517
- }, {
1518
- "watch-progress": e.watchSlidesProgress
1519
- }], e.containerModifierClass);
1520
- t.push(...l), n.classList.add(...t), i.emitContainerClasses();
1521
- }
1522
- function Pt() {
1523
- const i = this, {
1524
- el: t,
1525
- classNames: e
1526
- } = i;
1527
- t.classList.remove(...e), i.emitContainerClasses();
1528
- }
1529
- var Mt = {
1530
- addClasses: Et,
1531
- removeClasses: Pt
1532
- };
1533
- function It() {
1534
- const i = this, {
1535
- isLocked: t,
1536
- params: e
1537
- } = i, {
1538
- slidesOffsetBefore: s
1539
- } = e;
1540
- if (s) {
1541
- const n = i.slides.length - 1, r = i.slidesGrid[n] + i.slidesSizesGrid[n] + s * 2;
1542
- i.isLocked = i.size > r;
1543
- } else
1544
- i.isLocked = i.snapGrid.length === 1;
1545
- e.allowSlideNext === !0 && (i.allowSlideNext = !i.isLocked), e.allowSlidePrev === !0 && (i.allowSlidePrev = !i.isLocked), t && t !== i.isLocked && (i.isEnd = !1), t !== i.isLocked && i.emit(i.isLocked ? "lock" : "unlock");
1546
- }
1547
- var Ct = {
1548
- checkOverflow: It
1549
- }, ae = {
1550
- init: !0,
1551
- direction: "horizontal",
1552
- oneWayMovement: !1,
1553
- swiperElementNodeName: "SWIPER-CONTAINER",
1554
- touchEventsTarget: "wrapper",
1555
- initialSlide: 0,
1556
- speed: 300,
1557
- cssMode: !1,
1558
- updateOnWindowResize: !0,
1559
- resizeObserver: !0,
1560
- nested: !1,
1561
- createElements: !1,
1562
- eventsPrefix: "swiper",
1563
- enabled: !0,
1564
- focusableElements: "input, select, option, textarea, button, video, label",
1565
- // Overrides
1566
- width: null,
1567
- height: null,
1568
- //
1569
- preventInteractionOnTransition: !1,
1570
- // ssr
1571
- userAgent: null,
1572
- url: null,
1573
- // To support iOS's swipe-to-go-back gesture (when being used in-app).
1574
- edgeSwipeDetection: !1,
1575
- edgeSwipeThreshold: 20,
1576
- // Autoheight
1577
- autoHeight: !1,
1578
- // Set wrapper width
1579
- setWrapperSize: !1,
1580
- // Virtual Translate
1581
- virtualTranslate: !1,
1582
- // Effects
1583
- effect: "slide",
1584
- // 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'
1585
- // Breakpoints
1586
- breakpoints: void 0,
1587
- breakpointsBase: "window",
1588
- // Slides grid
1589
- spaceBetween: 0,
1590
- slidesPerView: 1,
1591
- slidesPerGroup: 1,
1592
- slidesPerGroupSkip: 0,
1593
- slidesPerGroupAuto: !1,
1594
- centeredSlides: !1,
1595
- centeredSlidesBounds: !1,
1596
- slidesOffsetBefore: 0,
1597
- // in px
1598
- slidesOffsetAfter: 0,
1599
- // in px
1600
- normalizeSlideIndex: !0,
1601
- centerInsufficientSlides: !1,
1602
- // Disable swiper and hide navigation when container not overflow
1603
- watchOverflow: !0,
1604
- // Round length
1605
- roundLengths: !1,
1606
- // Touches
1607
- touchRatio: 1,
1608
- touchAngle: 45,
1609
- simulateTouch: !0,
1610
- shortSwipes: !0,
1611
- longSwipes: !0,
1612
- longSwipesRatio: 0.5,
1613
- longSwipesMs: 300,
1614
- followFinger: !0,
1615
- allowTouchMove: !0,
1616
- threshold: 5,
1617
- touchMoveStopPropagation: !1,
1618
- touchStartPreventDefault: !0,
1619
- touchStartForcePreventDefault: !1,
1620
- touchReleaseOnEdges: !1,
1621
- // Unique Navigation Elements
1622
- uniqueNavElements: !0,
1623
- // Resistance
1624
- resistance: !0,
1625
- resistanceRatio: 0.85,
1626
- // Progress
1627
- watchSlidesProgress: !1,
1628
- // Cursor
1629
- grabCursor: !1,
1630
- // Clicks
1631
- preventClicks: !0,
1632
- preventClicksPropagation: !0,
1633
- slideToClickedSlide: !1,
1634
- // loop
1635
- loop: !1,
1636
- loopAddBlankSlides: !0,
1637
- loopAdditionalSlides: 0,
1638
- loopPreventsSliding: !0,
1639
- // rewind
1640
- rewind: !1,
1641
- // Swiping/no swiping
1642
- allowSlidePrev: !0,
1643
- allowSlideNext: !0,
1644
- swipeHandler: null,
1645
- // '.swipe-handler',
1646
- noSwiping: !0,
1647
- noSwipingClass: "swiper-no-swiping",
1648
- noSwipingSelector: null,
1649
- // Passive Listeners
1650
- passiveListeners: !0,
1651
- maxBackfaceHiddenSlides: 10,
1652
- // NS
1653
- containerModifierClass: "swiper-",
1654
- // NEW
1655
- slideClass: "swiper-slide",
1656
- slideBlankClass: "swiper-slide-blank",
1657
- slideActiveClass: "swiper-slide-active",
1658
- slideVisibleClass: "swiper-slide-visible",
1659
- slideFullyVisibleClass: "swiper-slide-fully-visible",
1660
- slideNextClass: "swiper-slide-next",
1661
- slidePrevClass: "swiper-slide-prev",
1662
- wrapperClass: "swiper-wrapper",
1663
- lazyPreloaderClass: "swiper-lazy-preloader",
1664
- lazyPreloadPrevNext: 0,
1665
- // Callbacks
1666
- runCallbacksOnInit: !0,
1667
- // Internals
1668
- _emitClasses: !1
1669
- };
1670
- function Lt(i, t) {
1671
- return function(s) {
1672
- s === void 0 && (s = {});
1673
- const n = Object.keys(s)[0], r = s[n];
1674
- if (typeof r != "object" || r === null) {
1675
- A(t, s);
1676
- return;
1677
- }
1678
- if (i[n] === !0 && (i[n] = {
1679
- enabled: !0
1680
- }), n === "navigation" && i[n] && i[n].enabled && !i[n].prevEl && !i[n].nextEl && (i[n].auto = !0), ["pagination", "scrollbar"].indexOf(n) >= 0 && i[n] && i[n].enabled && !i[n].el && (i[n].auto = !0), !(n in i && "enabled" in r)) {
1681
- A(t, s);
1682
- return;
1683
- }
1684
- typeof i[n] == "object" && !("enabled" in i[n]) && (i[n].enabled = !0), i[n] || (i[n] = {
1685
- enabled: !1
1686
- }), A(t, s);
1687
- };
1688
- }
1689
- const j = {
1690
- eventsEmitter: Me,
1691
- update: Be,
1692
- translate: He,
1693
- transition: je,
1694
- slide: tt,
1695
- loop: nt,
1696
- grabCursor: ot,
1697
- events: St,
1698
- breakpoints: bt,
1699
- checkOverflow: Ct,
1700
- classes: Mt
1701
- }, q = {};
1702
- class z {
1703
- constructor() {
1704
- let t, e;
1705
- for (var s = arguments.length, n = new Array(s), r = 0; r < s; r++)
1706
- n[r] = arguments[r];
1707
- n.length === 1 && n[0].constructor && Object.prototype.toString.call(n[0]).slice(8, -1) === "Object" ? e = n[0] : [t, e] = n, e || (e = {}), e = A({}, e), t && !e.el && (e.el = t);
1708
- const l = N();
1709
- if (e.el && typeof e.el == "string" && l.querySelectorAll(e.el).length > 1) {
1710
- const c = [];
1711
- return l.querySelectorAll(e.el).forEach((f) => {
1712
- const p = A({}, e, {
1713
- el: f
1714
- });
1715
- c.push(new z(p));
1716
- }), c;
1717
- }
1718
- const o = this;
1719
- o.__swiper__ = !0, o.support = oe(), o.device = de({
1720
- userAgent: e.userAgent
1721
- }), o.browser = ye(), o.eventsListeners = {}, o.eventsAnyListeners = [], o.modules = [...o.__modules__], e.modules && Array.isArray(e.modules) && o.modules.push(...e.modules);
1722
- const a = {};
1723
- o.modules.forEach((c) => {
1724
- c({
1725
- params: e,
1726
- swiper: o,
1727
- extendParams: Lt(e, a),
1728
- on: o.on.bind(o),
1729
- once: o.once.bind(o),
1730
- off: o.off.bind(o),
1731
- emit: o.emit.bind(o)
1732
- });
1733
- });
1734
- const d = A({}, ae, a);
1735
- return o.params = A({}, d, q, e), o.originalParams = A({}, o.params), o.passedParams = A({}, e), o.params && o.params.on && Object.keys(o.params.on).forEach((c) => {
1736
- o.on(c, o.params.on[c]);
1737
- }), o.params && o.params.onAny && o.onAny(o.params.onAny), Object.assign(o, {
1738
- enabled: o.params.enabled,
1739
- el: t,
1740
- // Classes
1741
- classNames: [],
1742
- // Slides
1743
- slides: [],
1744
- slidesGrid: [],
1745
- snapGrid: [],
1746
- slidesSizesGrid: [],
1747
- // isDirection
1748
- isHorizontal() {
1749
- return o.params.direction === "horizontal";
1750
- },
1751
- isVertical() {
1752
- return o.params.direction === "vertical";
1753
- },
1754
- // Indexes
1755
- activeIndex: 0,
1756
- realIndex: 0,
1757
- //
1758
- isBeginning: !0,
1759
- isEnd: !1,
1760
- // Props
1761
- translate: 0,
1762
- previousTranslate: 0,
1763
- progress: 0,
1764
- velocity: 0,
1765
- animating: !1,
1766
- cssOverflowAdjustment() {
1767
- return Math.trunc(this.translate / 2 ** 23) * 2 ** 23;
1768
- },
1769
- // Locks
1770
- allowSlideNext: o.params.allowSlideNext,
1771
- allowSlidePrev: o.params.allowSlidePrev,
1772
- // Touch Events
1773
- touchEventsData: {
1774
- isTouched: void 0,
1775
- isMoved: void 0,
1776
- allowTouchCallbacks: void 0,
1777
- touchStartTime: void 0,
1778
- isScrolling: void 0,
1779
- currentTranslate: void 0,
1780
- startTranslate: void 0,
1781
- allowThresholdMove: void 0,
1782
- // Form elements to match
1783
- focusableElements: o.params.focusableElements,
1784
- // Last click time
1785
- lastClickTime: 0,
1786
- clickTimeout: void 0,
1787
- // Velocities
1788
- velocities: [],
1789
- allowMomentumBounce: void 0,
1790
- startMoving: void 0,
1791
- pointerId: null,
1792
- touchId: null
1793
- },
1794
- // Clicks
1795
- allowClick: !0,
1796
- // Touches
1797
- allowTouchMove: o.params.allowTouchMove,
1798
- touches: {
1799
- startX: 0,
1800
- startY: 0,
1801
- currentX: 0,
1802
- currentY: 0,
1803
- diff: 0
1804
- },
1805
- // Images
1806
- imagesToLoad: [],
1807
- imagesLoaded: 0
1808
- }), o.emit("_swiper"), o.params.init && o.init(), o;
1809
- }
1810
- getDirectionLabel(t) {
1811
- return this.isHorizontal() ? t : {
1812
- width: "height",
1813
- "margin-top": "margin-left",
1814
- "margin-bottom ": "margin-right",
1815
- "margin-left": "margin-top",
1816
- "margin-right": "margin-bottom",
1817
- "padding-left": "padding-top",
1818
- "padding-right": "padding-bottom",
1819
- marginRight: "marginBottom"
1820
- }[t];
1821
- }
1822
- getSlideIndex(t) {
1823
- const {
1824
- slidesEl: e,
1825
- params: s
1826
- } = this, n = O(e, `.${s.slideClass}, swiper-slide`), r = te(n[0]);
1827
- return te(t) - r;
1828
- }
1829
- getSlideIndexByData(t) {
1830
- return this.getSlideIndex(this.slides.filter((e) => e.getAttribute("data-swiper-slide-index") * 1 === t)[0]);
1831
- }
1832
- recalcSlides() {
1833
- const t = this, {
1834
- slidesEl: e,
1835
- params: s
1836
- } = t;
1837
- t.slides = O(e, `.${s.slideClass}, swiper-slide`);
1838
- }
1839
- enable() {
1840
- const t = this;
1841
- t.enabled || (t.enabled = !0, t.params.grabCursor && t.setGrabCursor(), t.emit("enable"));
1842
- }
1843
- disable() {
1844
- const t = this;
1845
- t.enabled && (t.enabled = !1, t.params.grabCursor && t.unsetGrabCursor(), t.emit("disable"));
1846
- }
1847
- setProgress(t, e) {
1848
- const s = this;
1849
- t = Math.min(Math.max(t, 0), 1);
1850
- const n = s.minTranslate(), l = (s.maxTranslate() - n) * t + n;
1851
- s.translateTo(l, typeof e > "u" ? 0 : e), s.updateActiveIndex(), s.updateSlidesClasses();
1852
- }
1853
- emitContainerClasses() {
1854
- const t = this;
1855
- if (!t.params._emitClasses || !t.el) return;
1856
- const e = t.el.className.split(" ").filter((s) => s.indexOf("swiper") === 0 || s.indexOf(t.params.containerModifierClass) === 0);
1857
- t.emit("_containerClasses", e.join(" "));
1858
- }
1859
- getSlideClasses(t) {
1860
- const e = this;
1861
- return e.destroyed ? "" : t.className.split(" ").filter((s) => s.indexOf("swiper-slide") === 0 || s.indexOf(e.params.slideClass) === 0).join(" ");
1862
- }
1863
- emitSlidesClasses() {
1864
- const t = this;
1865
- if (!t.params._emitClasses || !t.el) return;
1866
- const e = [];
1867
- t.slides.forEach((s) => {
1868
- const n = t.getSlideClasses(s);
1869
- e.push({
1870
- slideEl: s,
1871
- classNames: n
1872
- }), t.emit("_slideClass", s, n);
1873
- }), t.emit("_slideClasses", e);
1874
- }
1875
- slidesPerViewDynamic(t, e) {
1876
- t === void 0 && (t = "current"), e === void 0 && (e = !1);
1877
- const s = this, {
1878
- params: n,
1879
- slides: r,
1880
- slidesGrid: l,
1881
- slidesSizesGrid: o,
1882
- size: a,
1883
- activeIndex: d
1884
- } = s;
1885
- let c = 1;
1886
- if (typeof n.slidesPerView == "number") return n.slidesPerView;
1887
- if (n.centeredSlides) {
1888
- let f = r[d] ? Math.ceil(r[d].swiperSlideSize) : 0, p;
1889
- for (let u = d + 1; u < r.length; u += 1)
1890
- r[u] && !p && (f += Math.ceil(r[u].swiperSlideSize), c += 1, f > a && (p = !0));
1891
- for (let u = d - 1; u >= 0; u -= 1)
1892
- r[u] && !p && (f += r[u].swiperSlideSize, c += 1, f > a && (p = !0));
1893
- } else if (t === "current")
1894
- for (let f = d + 1; f < r.length; f += 1)
1895
- (e ? l[f] + o[f] - l[d] < a : l[f] - l[d] < a) && (c += 1);
1896
- else
1897
- for (let f = d - 1; f >= 0; f -= 1)
1898
- l[d] - l[f] < a && (c += 1);
1899
- return c;
1900
- }
1901
- update() {
1902
- const t = this;
1903
- if (!t || t.destroyed) return;
1904
- const {
1905
- snapGrid: e,
1906
- params: s
1907
- } = t;
1908
- s.breakpoints && t.setBreakpoint(), [...t.el.querySelectorAll('[loading="lazy"]')].forEach((l) => {
1909
- l.complete && _(t, l);
1910
- }), t.updateSize(), t.updateSlides(), t.updateProgress(), t.updateSlidesClasses();
1911
- function n() {
1912
- const l = t.rtlTranslate ? t.translate * -1 : t.translate, o = Math.min(Math.max(l, t.maxTranslate()), t.minTranslate());
1913
- t.setTranslate(o), t.updateActiveIndex(), t.updateSlidesClasses();
1914
- }
1915
- let r;
1916
- if (s.freeMode && s.freeMode.enabled && !s.cssMode)
1917
- n(), s.autoHeight && t.updateAutoHeight();
1918
- else {
1919
- if ((s.slidesPerView === "auto" || s.slidesPerView > 1) && t.isEnd && !s.centeredSlides) {
1920
- const l = t.virtual && s.virtual.enabled ? t.virtual.slides : t.slides;
1921
- r = t.slideTo(l.length - 1, 0, !1, !0);
1922
- } else
1923
- r = t.slideTo(t.activeIndex, 0, !1, !0);
1924
- r || n();
1925
- }
1926
- s.watchOverflow && e !== t.snapGrid && t.checkOverflow(), t.emit("update");
1927
- }
1928
- changeDirection(t, e) {
1929
- e === void 0 && (e = !0);
1930
- const s = this, n = s.params.direction;
1931
- return t || (t = n === "horizontal" ? "vertical" : "horizontal"), t === n || t !== "horizontal" && t !== "vertical" || (s.el.classList.remove(`${s.params.containerModifierClass}${n}`), s.el.classList.add(`${s.params.containerModifierClass}${t}`), s.emitContainerClasses(), s.params.direction = t, s.slides.forEach((r) => {
1932
- t === "vertical" ? r.style.width = "" : r.style.height = "";
1933
- }), s.emit("changeDirection"), e && s.update()), s;
1934
- }
1935
- changeLanguageDirection(t) {
1936
- const e = this;
1937
- e.rtl && t === "rtl" || !e.rtl && t === "ltr" || (e.rtl = t === "rtl", e.rtlTranslate = e.params.direction === "horizontal" && e.rtl, e.rtl ? (e.el.classList.add(`${e.params.containerModifierClass}rtl`), e.el.dir = "rtl") : (e.el.classList.remove(`${e.params.containerModifierClass}rtl`), e.el.dir = "ltr"), e.update());
1938
- }
1939
- mount(t) {
1940
- const e = this;
1941
- if (e.mounted) return !0;
1942
- let s = t || e.params.el;
1943
- if (typeof s == "string" && (s = document.querySelector(s)), !s)
1944
- return !1;
1945
- s.swiper = e, s.parentNode && s.parentNode.host && s.parentNode.host.nodeName === e.params.swiperElementNodeName.toUpperCase() && (e.isElement = !0);
1946
- const n = () => `.${(e.params.wrapperClass || "").trim().split(" ").join(".")}`;
1947
- let l = s && s.shadowRoot && s.shadowRoot.querySelector ? s.shadowRoot.querySelector(n()) : O(s, n())[0];
1948
- return !l && e.params.createElements && (l = U("div", e.params.wrapperClass), s.append(l), O(s, `.${e.params.slideClass}`).forEach((o) => {
1949
- l.append(o);
1950
- })), Object.assign(e, {
1951
- el: s,
1952
- wrapperEl: l,
1953
- slidesEl: e.isElement && !s.parentNode.host.slideSlots ? s.parentNode.host : l,
1954
- hostEl: e.isElement ? s.parentNode.host : s,
1955
- mounted: !0,
1956
- // RTL
1957
- rtl: s.dir.toLowerCase() === "rtl" || k(s, "direction") === "rtl",
1958
- rtlTranslate: e.params.direction === "horizontal" && (s.dir.toLowerCase() === "rtl" || k(s, "direction") === "rtl"),
1959
- wrongRTL: k(l, "display") === "-webkit-box"
1960
- }), !0;
1961
- }
1962
- init(t) {
1963
- const e = this;
1964
- if (e.initialized || e.mount(t) === !1) return e;
1965
- e.emit("beforeInit"), e.params.breakpoints && e.setBreakpoint(), e.addClasses(), e.updateSize(), e.updateSlides(), e.params.watchOverflow && e.checkOverflow(), e.params.grabCursor && e.enabled && e.setGrabCursor(), e.params.loop && e.virtual && e.params.virtual.enabled ? e.slideTo(e.params.initialSlide + e.virtual.slidesBefore, 0, e.params.runCallbacksOnInit, !1, !0) : e.slideTo(e.params.initialSlide, 0, e.params.runCallbacksOnInit, !1, !0), e.params.loop && e.loopCreate(), e.attachEvents();
1966
- const n = [...e.el.querySelectorAll('[loading="lazy"]')];
1967
- return e.isElement && n.push(...e.hostEl.querySelectorAll('[loading="lazy"]')), n.forEach((r) => {
1968
- r.complete ? _(e, r) : r.addEventListener("load", (l) => {
1969
- _(e, l.target);
1970
- });
1971
- }), J(e), e.initialized = !0, J(e), e.emit("init"), e.emit("afterInit"), e;
1972
- }
1973
- destroy(t, e) {
1974
- t === void 0 && (t = !0), e === void 0 && (e = !0);
1975
- const s = this, {
1976
- params: n,
1977
- el: r,
1978
- wrapperEl: l,
1979
- slides: o
1980
- } = s;
1981
- return typeof s.params > "u" || s.destroyed || (s.emit("beforeDestroy"), s.initialized = !1, s.detachEvents(), n.loop && s.loopDestroy(), e && (s.removeClasses(), r.removeAttribute("style"), l.removeAttribute("style"), o && o.length && o.forEach((a) => {
1982
- a.classList.remove(n.slideVisibleClass, n.slideFullyVisibleClass, n.slideActiveClass, n.slideNextClass, n.slidePrevClass), a.removeAttribute("style"), a.removeAttribute("data-swiper-slide-index");
1983
- })), s.emit("destroy"), Object.keys(s.eventsListeners).forEach((a) => {
1984
- s.off(a);
1985
- }), t !== !1 && (s.el.swiper = null, me(s)), s.destroyed = !0), null;
1986
- }
1987
- static extendDefaults(t) {
1988
- A(q, t);
1989
- }
1990
- static get extendedDefaults() {
1991
- return q;
1992
- }
1993
- static get defaults() {
1994
- return ae;
1995
- }
1996
- static installModule(t) {
1997
- z.prototype.__modules__ || (z.prototype.__modules__ = []);
1998
- const e = z.prototype.__modules__;
1999
- typeof t == "function" && e.indexOf(t) < 0 && e.push(t);
2000
- }
2001
- static use(t) {
2002
- return Array.isArray(t) ? (t.forEach((e) => z.installModule(e)), z) : (z.installModule(t), z);
2003
- }
2004
- }
2005
- Object.keys(j).forEach((i) => {
2006
- Object.keys(j[i]).forEach((t) => {
2007
- z.prototype[t] = j[i][t];
2008
- });
2009
- });
2010
- z.use([Ee, Pe]);
1
+ var e = { exports: {} };
2011
2
  export {
2012
- z as S,
2013
- ae as d
3
+ e as __module
2014
4
  };