@wikicasa-dev/components 1.9.1 → 1.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/AccessibleSelect.js +1 -1
  2. package/dist/BaseShimmerLoader.js +20 -11
  3. package/dist/BaseTabView.js +1 -1
  4. package/dist/BaseToggle.js +17 -17
  5. package/dist/SwiperCarousel.js +1 -1
  6. package/dist/UIKit/AccessibleSelect.vue.d.ts +5 -5
  7. package/dist/UIKit/Accordion/BaseAccordion.vue.d.ts +4 -4
  8. package/dist/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +5 -5
  9. package/dist/UIKit/Accordion/BaseAccordionContent.vue.d.ts +3 -3
  10. package/dist/UIKit/Accordion/BaseAccordionItem.vue.d.ts +5 -5
  11. package/dist/UIKit/BaseAlert.vue.d.ts +4 -4
  12. package/dist/UIKit/BaseAutocomplete.vue.d.ts +7 -7
  13. package/dist/UIKit/BaseBadge.vue.d.ts +4 -4
  14. package/dist/UIKit/BaseButton.vue.d.ts +5 -5
  15. package/dist/UIKit/BaseCard.vue.d.ts +5 -5
  16. package/dist/UIKit/BaseComplexToggle.vue.d.ts +4 -4
  17. package/dist/UIKit/BaseDropDown.vue.d.ts +5 -5
  18. package/dist/UIKit/BaseFloatingLabel.vue.d.ts +5 -5
  19. package/dist/UIKit/BaseIcon.vue.d.ts +4 -4
  20. package/dist/UIKit/BaseInput.vue.d.ts +7 -7
  21. package/dist/UIKit/BaseModal.vue.d.ts +5 -5
  22. package/dist/UIKit/BaseNavItem.vue.d.ts +55 -5
  23. package/dist/UIKit/BasePagination.vue.d.ts +4 -4
  24. package/dist/UIKit/BasePaper.vue.d.ts +1 -1
  25. package/dist/UIKit/BaseSelect/SelectItem.vue.d.ts +5 -5
  26. package/dist/UIKit/BaseSlider.vue.d.ts +182 -5
  27. package/dist/UIKit/BaseSnackbar.vue.d.ts +5 -5
  28. package/dist/UIKit/BaseTextarea.vue.d.ts +7 -7
  29. package/dist/UIKit/BaseToggle.vue.d.ts +4 -4
  30. package/dist/UIKit/BaseTooltip.vue.d.ts +4 -4
  31. package/dist/UIKit/BaseUploadFile.vue.d.ts +5 -5
  32. package/dist/UIKit/Checkbox/CheckboxBtn.vue.d.ts +6 -6
  33. package/dist/UIKit/Checkbox/CheckboxGroup.vue.d.ts +5 -5
  34. package/dist/UIKit/Radio/RadioButton.vue.d.ts +5 -5
  35. package/dist/UIKit/Radio/RadioGroup.vue.d.ts +5 -5
  36. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.d.ts +16 -1
  37. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.d.ts +4 -4
  38. package/dist/UIKit/StaticSpinner.vue.d.ts +4 -4
  39. package/dist/UIKit/Tab/BaseTab.vue.d.ts +3 -3
  40. package/dist/UIKit/Tab/BaseTabList.vue.d.ts +5 -5
  41. package/dist/UIKit/Tab/BaseTabPanel.vue.d.ts +4 -4
  42. package/dist/UIKit/Tab/BaseTabView.vue.d.ts +4 -8
  43. package/dist/assets/BaseShimmerLoader.css +1 -1
  44. package/dist/assets/SwiperCarousel.css +1 -1
  45. package/dist/chart/DoughnutChart.vue.d.ts +3 -3
  46. package/dist/chart/LineChart.vue.d.ts +3 -3
  47. package/dist/chart/composables/useChartjsModules.d.ts +1 -1
  48. package/dist/chunks/{AccessibleSelect.vue_vue_type_script_setup_true_lang.CM86-jVN.js → AccessibleSelect.vue_vue_type_script_setup_true_lang.B6xZ5URR.js} +46 -41
  49. package/dist/chunks/{BaseTabView.vue_vue_type_script_setup_true_lang.Cs-5T5J3.js → BaseTabView.vue_vue_type_script_setup_true_lang.DSlvTOkB.js} +21 -21
  50. package/dist/chunks/{SwiperCarousel.vue_vue_type_style_index_0_lang.BiS3BhWj.js → SwiperCarousel.vue_vue_type_style_index_0_lang.PH6iC0qV.js} +8 -8
  51. package/dist/chunks/index.BbdLcPJo.js +885 -0
  52. package/dist/components/IntersectionObserver/IntersectionObservable.vue.d.ts +4 -4
  53. package/dist/components/IntersectionObserver/IntersectionObserver.vue.d.ts +5 -5
  54. package/dist/components/carousel/SwiperCarousel.vue.d.ts +7 -7
  55. package/dist/components/carousel/SwiperSlide.vue.d.ts +1 -1
  56. package/dist/index.js +3 -3
  57. package/package.json +19 -19
  58. package/dist/chunks/index.C70510OV.js +0 -878
@@ -0,0 +1,885 @@
1
+ import { g as F, a as W, e as V, b as X, c as _, d as Y, m as P, f as Z, h as G, n as J, i as q, j as Q, k as R } from "./SwiperCarousel.vue_vue_type_style_index_0_lang.PH6iC0qV.js";
2
+ import { Z as ce } from "./SwiperCarousel.vue_vue_type_style_index_0_lang.PH6iC0qV.js";
3
+ function te(k) {
4
+ let {
5
+ swiper: e,
6
+ extendParams: A,
7
+ on: f,
8
+ emit: v
9
+ } = k;
10
+ const m = F(), x = W();
11
+ e.keyboard = {
12
+ enabled: !1
13
+ }, A({
14
+ keyboard: {
15
+ enabled: !1,
16
+ onlyInViewport: !0,
17
+ pageUpDown: !0
18
+ }
19
+ });
20
+ function w(i) {
21
+ if (!e.enabled) return;
22
+ const {
23
+ rtlTranslate: p
24
+ } = e;
25
+ let l = i;
26
+ l.originalEvent && (l = l.originalEvent);
27
+ const u = l.keyCode || l.charCode, n = e.params.keyboard.pageUpDown, s = n && u === 33, r = n && u === 34, o = u === 37, t = u === 39, a = u === 38, d = u === 40;
28
+ if (!e.allowSlideNext && (e.isHorizontal() && t || e.isVertical() && d || r) || !e.allowSlidePrev && (e.isHorizontal() && o || e.isVertical() && a || s))
29
+ return !1;
30
+ if (!(l.shiftKey || l.altKey || l.ctrlKey || l.metaKey) && !(m.activeElement && m.activeElement.nodeName && (m.activeElement.nodeName.toLowerCase() === "input" || m.activeElement.nodeName.toLowerCase() === "textarea"))) {
31
+ if (e.params.keyboard.onlyInViewport && (s || r || o || t || a || d)) {
32
+ let g = !1;
33
+ if (V(e.el, `.${e.params.slideClass}, swiper-slide`).length > 0 && V(e.el, `.${e.params.slideActiveClass}`).length === 0)
34
+ return;
35
+ const T = e.el, D = T.clientWidth, E = T.clientHeight, h = x.innerWidth, M = x.innerHeight, b = X(T);
36
+ p && (b.left -= T.scrollLeft);
37
+ const B = [[b.left, b.top], [b.left + D, b.top], [b.left, b.top + E], [b.left + D, b.top + E]];
38
+ for (let L = 0; L < B.length; L += 1) {
39
+ const S = B[L];
40
+ if (S[0] >= 0 && S[0] <= h && S[1] >= 0 && S[1] <= M) {
41
+ if (S[0] === 0 && S[1] === 0) continue;
42
+ g = !0;
43
+ }
44
+ }
45
+ if (!g) return;
46
+ }
47
+ e.isHorizontal() ? ((s || r || o || t) && (l.preventDefault ? l.preventDefault() : l.returnValue = !1), ((r || t) && !p || (s || o) && p) && e.slideNext(), ((s || o) && !p || (r || t) && p) && e.slidePrev()) : ((s || r || a || d) && (l.preventDefault ? l.preventDefault() : l.returnValue = !1), (r || d) && e.slideNext(), (s || a) && e.slidePrev()), v("keyPress", u);
48
+ }
49
+ }
50
+ function y() {
51
+ e.keyboard.enabled || (m.addEventListener("keydown", w), e.keyboard.enabled = !0);
52
+ }
53
+ function c() {
54
+ e.keyboard.enabled && (m.removeEventListener("keydown", w), e.keyboard.enabled = !1);
55
+ }
56
+ f("init", () => {
57
+ e.params.keyboard.enabled && y();
58
+ }), f("destroy", () => {
59
+ e.keyboard.enabled && c();
60
+ }), Object.assign(e.keyboard, {
61
+ enable: y,
62
+ disable: c
63
+ });
64
+ }
65
+ function U(k, e, A, f) {
66
+ return k.params.createElements && Object.keys(f).forEach((v) => {
67
+ if (!A[v] && A.auto === !0) {
68
+ let m = _(k.el, `.${f[v]}`)[0];
69
+ m || (m = Y("div", f[v]), m.className = f[v], k.el.append(m)), A[v] = m, e[v] = m;
70
+ }
71
+ }), A;
72
+ }
73
+ function ae(k) {
74
+ let {
75
+ swiper: e,
76
+ extendParams: A,
77
+ on: f,
78
+ emit: v
79
+ } = k;
80
+ A({
81
+ navigation: {
82
+ nextEl: null,
83
+ prevEl: null,
84
+ hideOnClick: !1,
85
+ disabledClass: "swiper-button-disabled",
86
+ hiddenClass: "swiper-button-hidden",
87
+ lockClass: "swiper-button-lock",
88
+ navigationDisabledClass: "swiper-navigation-disabled"
89
+ }
90
+ }), e.navigation = {
91
+ nextEl: null,
92
+ prevEl: null
93
+ };
94
+ function m(n) {
95
+ let s;
96
+ return n && typeof n == "string" && e.isElement && (s = e.el.querySelector(n) || e.hostEl.querySelector(n), s) ? s : (n && (typeof n == "string" && (s = [...document.querySelectorAll(n)]), e.params.uniqueNavElements && typeof n == "string" && s && s.length > 1 && e.el.querySelectorAll(n).length === 1 ? s = e.el.querySelector(n) : s && s.length === 1 && (s = s[0])), n && !s ? n : s);
97
+ }
98
+ function x(n, s) {
99
+ const r = e.params.navigation;
100
+ n = P(n), n.forEach((o) => {
101
+ o && (o.classList[s ? "add" : "remove"](...r.disabledClass.split(" ")), o.tagName === "BUTTON" && (o.disabled = s), e.params.watchOverflow && e.enabled && o.classList[e.isLocked ? "add" : "remove"](r.lockClass));
102
+ });
103
+ }
104
+ function w() {
105
+ const {
106
+ nextEl: n,
107
+ prevEl: s
108
+ } = e.navigation;
109
+ if (e.params.loop) {
110
+ x(s, !1), x(n, !1);
111
+ return;
112
+ }
113
+ x(s, e.isBeginning && !e.params.rewind), x(n, e.isEnd && !e.params.rewind);
114
+ }
115
+ function y(n) {
116
+ n.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), v("navigationPrev"));
117
+ }
118
+ function c(n) {
119
+ n.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), v("navigationNext"));
120
+ }
121
+ function i() {
122
+ const n = e.params.navigation;
123
+ if (e.params.navigation = U(e, e.originalParams.navigation, e.params.navigation, {
124
+ nextEl: "swiper-button-next",
125
+ prevEl: "swiper-button-prev"
126
+ }), !(n.nextEl || n.prevEl)) return;
127
+ let s = m(n.nextEl), r = m(n.prevEl);
128
+ Object.assign(e.navigation, {
129
+ nextEl: s,
130
+ prevEl: r
131
+ }), s = P(s), r = P(r);
132
+ const o = (t, a) => {
133
+ t && t.addEventListener("click", a === "next" ? c : y), !e.enabled && t && t.classList.add(...n.lockClass.split(" "));
134
+ };
135
+ s.forEach((t) => o(t, "next")), r.forEach((t) => o(t, "prev"));
136
+ }
137
+ function p() {
138
+ let {
139
+ nextEl: n,
140
+ prevEl: s
141
+ } = e.navigation;
142
+ n = P(n), s = P(s);
143
+ const r = (o, t) => {
144
+ o.removeEventListener("click", t === "next" ? c : y), o.classList.remove(...e.params.navigation.disabledClass.split(" "));
145
+ };
146
+ n.forEach((o) => r(o, "next")), s.forEach((o) => r(o, "prev"));
147
+ }
148
+ f("init", () => {
149
+ e.params.navigation.enabled === !1 ? u() : (i(), w());
150
+ }), f("toEdge fromEdge lock unlock", () => {
151
+ w();
152
+ }), f("destroy", () => {
153
+ p();
154
+ }), f("enable disable", () => {
155
+ let {
156
+ nextEl: n,
157
+ prevEl: s
158
+ } = e.navigation;
159
+ if (n = P(n), s = P(s), e.enabled) {
160
+ w();
161
+ return;
162
+ }
163
+ [...n, ...s].filter((r) => !!r).forEach((r) => r.classList.add(e.params.navigation.lockClass));
164
+ }), f("click", (n, s) => {
165
+ let {
166
+ nextEl: r,
167
+ prevEl: o
168
+ } = e.navigation;
169
+ r = P(r), o = P(o);
170
+ const t = s.target;
171
+ let a = o.includes(t) || r.includes(t);
172
+ if (e.isElement && !a) {
173
+ const d = s.path || s.composedPath && s.composedPath();
174
+ d && (a = d.find((g) => r.includes(g) || o.includes(g)));
175
+ }
176
+ if (e.params.navigation.hideOnClick && !a) {
177
+ if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === t || e.pagination.el.contains(t))) return;
178
+ let d;
179
+ r.length ? d = r[0].classList.contains(e.params.navigation.hiddenClass) : o.length && (d = o[0].classList.contains(e.params.navigation.hiddenClass)), v(d === !0 ? "navigationShow" : "navigationHide"), [...r, ...o].filter((g) => !!g).forEach((g) => g.classList.toggle(e.params.navigation.hiddenClass));
180
+ }
181
+ });
182
+ const l = () => {
183
+ e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), i(), w();
184
+ }, u = () => {
185
+ e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")), p();
186
+ };
187
+ Object.assign(e.navigation, {
188
+ enable: l,
189
+ disable: u,
190
+ update: w,
191
+ init: i,
192
+ destroy: p
193
+ });
194
+ }
195
+ function H(k) {
196
+ return k === void 0 && (k = ""), `.${k.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
197
+ }
198
+ function ie(k) {
199
+ let {
200
+ swiper: e,
201
+ extendParams: A,
202
+ on: f,
203
+ emit: v
204
+ } = k;
205
+ const m = "swiper-pagination";
206
+ A({
207
+ pagination: {
208
+ el: null,
209
+ bulletElement: "span",
210
+ clickable: !1,
211
+ hideOnClick: !1,
212
+ renderBullet: null,
213
+ renderProgressbar: null,
214
+ renderFraction: null,
215
+ renderCustom: null,
216
+ progressbarOpposite: !1,
217
+ type: "bullets",
218
+ // 'bullets' or 'progressbar' or 'fraction' or 'custom'
219
+ dynamicBullets: !1,
220
+ dynamicMainBullets: 1,
221
+ formatFractionCurrent: (t) => t,
222
+ formatFractionTotal: (t) => t,
223
+ bulletClass: `${m}-bullet`,
224
+ bulletActiveClass: `${m}-bullet-active`,
225
+ modifierClass: `${m}-`,
226
+ currentClass: `${m}-current`,
227
+ totalClass: `${m}-total`,
228
+ hiddenClass: `${m}-hidden`,
229
+ progressbarFillClass: `${m}-progressbar-fill`,
230
+ progressbarOppositeClass: `${m}-progressbar-opposite`,
231
+ clickableClass: `${m}-clickable`,
232
+ lockClass: `${m}-lock`,
233
+ horizontalClass: `${m}-horizontal`,
234
+ verticalClass: `${m}-vertical`,
235
+ paginationDisabledClass: `${m}-disabled`
236
+ }
237
+ }), e.pagination = {
238
+ el: null,
239
+ bullets: []
240
+ };
241
+ let x, w = 0;
242
+ function y() {
243
+ return !e.params.pagination.el || !e.pagination.el || Array.isArray(e.pagination.el) && e.pagination.el.length === 0;
244
+ }
245
+ function c(t, a) {
246
+ const {
247
+ bulletActiveClass: d
248
+ } = e.params.pagination;
249
+ t && (t = t[`${a === "prev" ? "previous" : "next"}ElementSibling`], t && (t.classList.add(`${d}-${a}`), t = t[`${a === "prev" ? "previous" : "next"}ElementSibling`], t && t.classList.add(`${d}-${a}-${a}`)));
250
+ }
251
+ function i(t, a, d) {
252
+ if (t = t % d, a = a % d, a === t + 1)
253
+ return "next";
254
+ if (a === t - 1)
255
+ return "previous";
256
+ }
257
+ function p(t) {
258
+ const a = t.target.closest(H(e.params.pagination.bulletClass));
259
+ if (!a)
260
+ return;
261
+ t.preventDefault();
262
+ const d = G(a) * e.params.slidesPerGroup;
263
+ if (e.params.loop) {
264
+ if (e.realIndex === d) return;
265
+ const g = i(e.realIndex, d, e.slides.length);
266
+ g === "next" ? e.slideNext() : g === "previous" ? e.slidePrev() : e.slideToLoop(d);
267
+ } else
268
+ e.slideTo(d);
269
+ }
270
+ function l() {
271
+ const t = e.rtl, a = e.params.pagination;
272
+ if (y()) return;
273
+ let d = e.pagination.el;
274
+ d = P(d);
275
+ let g, T;
276
+ const D = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, E = e.params.loop ? Math.ceil(D / e.params.slidesPerGroup) : e.snapGrid.length;
277
+ if (e.params.loop ? (T = e.previousRealIndex || 0, g = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (g = e.snapIndex, T = e.previousSnapIndex) : (T = e.previousIndex || 0, g = e.activeIndex || 0), a.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
278
+ const h = e.pagination.bullets;
279
+ let M, b, B;
280
+ if (a.dynamicBullets && (x = Z(h[0], e.isHorizontal() ? "width" : "height"), d.forEach((L) => {
281
+ L.style[e.isHorizontal() ? "width" : "height"] = `${x * (a.dynamicMainBullets + 4)}px`;
282
+ }), a.dynamicMainBullets > 1 && T !== void 0 && (w += g - (T || 0), w > a.dynamicMainBullets - 1 ? w = a.dynamicMainBullets - 1 : w < 0 && (w = 0)), M = Math.max(g - w, 0), b = M + (Math.min(h.length, a.dynamicMainBullets) - 1), B = (b + M) / 2), h.forEach((L) => {
283
+ const S = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((I) => `${a.bulletActiveClass}${I}`)].map((I) => typeof I == "string" && I.includes(" ") ? I.split(" ") : I).flat();
284
+ L.classList.remove(...S);
285
+ }), d.length > 1)
286
+ h.forEach((L) => {
287
+ const S = G(L);
288
+ S === g ? L.classList.add(...a.bulletActiveClass.split(" ")) : e.isElement && L.setAttribute("part", "bullet"), a.dynamicBullets && (S >= M && S <= b && L.classList.add(...`${a.bulletActiveClass}-main`.split(" ")), S === M && c(L, "prev"), S === b && c(L, "next"));
289
+ });
290
+ else {
291
+ const L = h[g];
292
+ if (L && L.classList.add(...a.bulletActiveClass.split(" ")), e.isElement && h.forEach((S, I) => {
293
+ S.setAttribute("part", I === g ? "bullet-active" : "bullet");
294
+ }), a.dynamicBullets) {
295
+ const S = h[M], I = h[b];
296
+ for (let N = M; N <= b; N += 1)
297
+ h[N] && h[N].classList.add(...`${a.bulletActiveClass}-main`.split(" "));
298
+ c(S, "prev"), c(I, "next");
299
+ }
300
+ }
301
+ if (a.dynamicBullets) {
302
+ const L = Math.min(h.length, a.dynamicMainBullets + 4), S = (x * L - x) / 2 - B * x, I = t ? "right" : "left";
303
+ h.forEach((N) => {
304
+ N.style[e.isHorizontal() ? I : "top"] = `${S}px`;
305
+ });
306
+ }
307
+ }
308
+ d.forEach((h, M) => {
309
+ if (a.type === "fraction" && (h.querySelectorAll(H(a.currentClass)).forEach((b) => {
310
+ b.textContent = a.formatFractionCurrent(g + 1);
311
+ }), h.querySelectorAll(H(a.totalClass)).forEach((b) => {
312
+ b.textContent = a.formatFractionTotal(E);
313
+ })), a.type === "progressbar") {
314
+ let b;
315
+ a.progressbarOpposite ? b = e.isHorizontal() ? "vertical" : "horizontal" : b = e.isHorizontal() ? "horizontal" : "vertical";
316
+ const B = (g + 1) / E;
317
+ let L = 1, S = 1;
318
+ b === "horizontal" ? L = B : S = B, h.querySelectorAll(H(a.progressbarFillClass)).forEach((I) => {
319
+ I.style.transform = `translate3d(0,0,0) scaleX(${L}) scaleY(${S})`, I.style.transitionDuration = `${e.params.speed}ms`;
320
+ });
321
+ }
322
+ a.type === "custom" && a.renderCustom ? (h.innerHTML = a.renderCustom(e, g + 1, E), M === 0 && v("paginationRender", h)) : (M === 0 && v("paginationRender", h), v("paginationUpdate", h)), e.params.watchOverflow && e.enabled && h.classList[e.isLocked ? "add" : "remove"](a.lockClass);
323
+ });
324
+ }
325
+ function u() {
326
+ const t = e.params.pagination;
327
+ if (y()) return;
328
+ const a = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.grid && e.params.grid.rows > 1 ? e.slides.length / Math.ceil(e.params.grid.rows) : e.slides.length;
329
+ let d = e.pagination.el;
330
+ d = P(d);
331
+ let g = "";
332
+ if (t.type === "bullets") {
333
+ let T = e.params.loop ? Math.ceil(a / e.params.slidesPerGroup) : e.snapGrid.length;
334
+ e.params.freeMode && e.params.freeMode.enabled && T > a && (T = a);
335
+ for (let D = 0; D < T; D += 1)
336
+ t.renderBullet ? g += t.renderBullet.call(e, D, t.bulletClass) : g += `<${t.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${t.bulletClass}"></${t.bulletElement}>`;
337
+ }
338
+ t.type === "fraction" && (t.renderFraction ? g = t.renderFraction.call(e, t.currentClass, t.totalClass) : g = `<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`), t.type === "progressbar" && (t.renderProgressbar ? g = t.renderProgressbar.call(e, t.progressbarFillClass) : g = `<span class="${t.progressbarFillClass}"></span>`), e.pagination.bullets = [], d.forEach((T) => {
339
+ t.type !== "custom" && (T.innerHTML = g || ""), t.type === "bullets" && e.pagination.bullets.push(...T.querySelectorAll(H(t.bulletClass)));
340
+ }), t.type !== "custom" && v("paginationRender", d[0]);
341
+ }
342
+ function n() {
343
+ e.params.pagination = U(e, e.originalParams.pagination, e.params.pagination, {
344
+ el: "swiper-pagination"
345
+ });
346
+ const t = e.params.pagination;
347
+ if (!t.el) return;
348
+ let a;
349
+ typeof t.el == "string" && e.isElement && (a = e.el.querySelector(t.el)), !a && typeof t.el == "string" && (a = [...document.querySelectorAll(t.el)]), a || (a = t.el), !(!a || a.length === 0) && (e.params.uniqueNavElements && typeof t.el == "string" && Array.isArray(a) && a.length > 1 && (a = [...e.el.querySelectorAll(t.el)], a.length > 1 && (a = a.filter((d) => V(d, ".swiper")[0] === e.el)[0])), Array.isArray(a) && a.length === 1 && (a = a[0]), Object.assign(e.pagination, {
350
+ el: a
351
+ }), a = P(a), a.forEach((d) => {
352
+ t.type === "bullets" && t.clickable && d.classList.add(...(t.clickableClass || "").split(" ")), d.classList.add(t.modifierClass + t.type), d.classList.add(e.isHorizontal() ? t.horizontalClass : t.verticalClass), t.type === "bullets" && t.dynamicBullets && (d.classList.add(`${t.modifierClass}${t.type}-dynamic`), w = 0, t.dynamicMainBullets < 1 && (t.dynamicMainBullets = 1)), t.type === "progressbar" && t.progressbarOpposite && d.classList.add(t.progressbarOppositeClass), t.clickable && d.addEventListener("click", p), e.enabled || d.classList.add(t.lockClass);
353
+ }));
354
+ }
355
+ function s() {
356
+ const t = e.params.pagination;
357
+ if (y()) return;
358
+ let a = e.pagination.el;
359
+ a && (a = P(a), a.forEach((d) => {
360
+ d.classList.remove(t.hiddenClass), d.classList.remove(t.modifierClass + t.type), d.classList.remove(e.isHorizontal() ? t.horizontalClass : t.verticalClass), t.clickable && (d.classList.remove(...(t.clickableClass || "").split(" ")), d.removeEventListener("click", p));
361
+ })), e.pagination.bullets && e.pagination.bullets.forEach((d) => d.classList.remove(...t.bulletActiveClass.split(" ")));
362
+ }
363
+ f("changeDirection", () => {
364
+ if (!e.pagination || !e.pagination.el) return;
365
+ const t = e.params.pagination;
366
+ let {
367
+ el: a
368
+ } = e.pagination;
369
+ a = P(a), a.forEach((d) => {
370
+ d.classList.remove(t.horizontalClass, t.verticalClass), d.classList.add(e.isHorizontal() ? t.horizontalClass : t.verticalClass);
371
+ });
372
+ }), f("init", () => {
373
+ e.params.pagination.enabled === !1 ? o() : (n(), u(), l());
374
+ }), f("activeIndexChange", () => {
375
+ typeof e.snapIndex > "u" && l();
376
+ }), f("snapIndexChange", () => {
377
+ l();
378
+ }), f("snapGridLengthChange", () => {
379
+ u(), l();
380
+ }), f("destroy", () => {
381
+ s();
382
+ }), f("enable disable", () => {
383
+ let {
384
+ el: t
385
+ } = e.pagination;
386
+ t && (t = P(t), t.forEach((a) => a.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
387
+ }), f("lock unlock", () => {
388
+ l();
389
+ }), f("click", (t, a) => {
390
+ const d = a.target, g = P(e.pagination.el);
391
+ if (e.params.pagination.el && e.params.pagination.hideOnClick && g && g.length > 0 && !d.classList.contains(e.params.pagination.bulletClass)) {
392
+ if (e.navigation && (e.navigation.nextEl && d === e.navigation.nextEl || e.navigation.prevEl && d === e.navigation.prevEl)) return;
393
+ const T = g[0].classList.contains(e.params.pagination.hiddenClass);
394
+ v(T === !0 ? "paginationShow" : "paginationHide"), g.forEach((D) => D.classList.toggle(e.params.pagination.hiddenClass));
395
+ }
396
+ });
397
+ const r = () => {
398
+ e.el.classList.remove(e.params.pagination.paginationDisabledClass);
399
+ let {
400
+ el: t
401
+ } = e.pagination;
402
+ t && (t = P(t), t.forEach((a) => a.classList.remove(e.params.pagination.paginationDisabledClass))), n(), u(), l();
403
+ }, o = () => {
404
+ e.el.classList.add(e.params.pagination.paginationDisabledClass);
405
+ let {
406
+ el: t
407
+ } = e.pagination;
408
+ t && (t = P(t), t.forEach((a) => a.classList.add(e.params.pagination.paginationDisabledClass))), s();
409
+ };
410
+ Object.assign(e.pagination, {
411
+ enable: r,
412
+ disable: o,
413
+ render: u,
414
+ update: l,
415
+ init: n,
416
+ destroy: s
417
+ });
418
+ }
419
+ function se(k) {
420
+ let {
421
+ swiper: e,
422
+ extendParams: A,
423
+ on: f
424
+ } = k;
425
+ A({
426
+ controller: {
427
+ control: void 0,
428
+ inverse: !1,
429
+ by: "slide"
430
+ // or 'container'
431
+ }
432
+ }), e.controller = {
433
+ control: void 0
434
+ };
435
+ function v(c, i) {
436
+ const p = /* @__PURE__ */ function() {
437
+ let s, r, o;
438
+ return (t, a) => {
439
+ for (r = -1, s = t.length; s - r > 1; )
440
+ o = s + r >> 1, t[o] <= a ? r = o : s = o;
441
+ return s;
442
+ };
443
+ }();
444
+ this.x = c, this.y = i, this.lastIndex = c.length - 1;
445
+ let l, u;
446
+ return this.interpolate = function(s) {
447
+ return s ? (u = p(this.x, s), l = u - 1, (s - this.x[l]) * (this.y[u] - this.y[l]) / (this.x[u] - this.x[l]) + this.y[l]) : 0;
448
+ }, this;
449
+ }
450
+ function m(c) {
451
+ e.controller.spline = e.params.loop ? new v(e.slidesGrid, c.slidesGrid) : new v(e.snapGrid, c.snapGrid);
452
+ }
453
+ function x(c, i) {
454
+ const p = e.controller.control;
455
+ let l, u;
456
+ const n = e.constructor;
457
+ function s(r) {
458
+ if (r.destroyed) return;
459
+ const o = e.rtlTranslate ? -e.translate : e.translate;
460
+ e.params.controller.by === "slide" && (m(r), u = -e.controller.spline.interpolate(-o)), (!u || e.params.controller.by === "container") && (l = (r.maxTranslate() - r.minTranslate()) / (e.maxTranslate() - e.minTranslate()), (Number.isNaN(l) || !Number.isFinite(l)) && (l = 1), u = (o - e.minTranslate()) * l + r.minTranslate()), e.params.controller.inverse && (u = r.maxTranslate() - u), r.updateProgress(u), r.setTranslate(u, e), r.updateActiveIndex(), r.updateSlidesClasses();
461
+ }
462
+ if (Array.isArray(p))
463
+ for (let r = 0; r < p.length; r += 1)
464
+ p[r] !== i && p[r] instanceof n && s(p[r]);
465
+ else p instanceof n && i !== p && s(p);
466
+ }
467
+ function w(c, i) {
468
+ const p = e.constructor, l = e.controller.control;
469
+ let u;
470
+ function n(s) {
471
+ s.destroyed || (s.setTransition(c, e), c !== 0 && (s.transitionStart(), s.params.autoHeight && J(() => {
472
+ s.updateAutoHeight();
473
+ }), q(s.wrapperEl, () => {
474
+ l && s.transitionEnd();
475
+ })));
476
+ }
477
+ if (Array.isArray(l))
478
+ for (u = 0; u < l.length; u += 1)
479
+ l[u] !== i && l[u] instanceof p && n(l[u]);
480
+ else l instanceof p && i !== l && n(l);
481
+ }
482
+ function y() {
483
+ e.controller.control && e.controller.spline && (e.controller.spline = void 0, delete e.controller.spline);
484
+ }
485
+ f("beforeInit", () => {
486
+ if (typeof window < "u" && // eslint-disable-line
487
+ (typeof e.params.controller.control == "string" || e.params.controller.control instanceof HTMLElement)) {
488
+ (typeof e.params.controller.control == "string" ? [...document.querySelectorAll(e.params.controller.control)] : [e.params.controller.control]).forEach((i) => {
489
+ if (e.controller.control || (e.controller.control = []), i && i.swiper)
490
+ e.controller.control.push(i.swiper);
491
+ else if (i) {
492
+ const p = `${e.params.eventsPrefix}init`, l = (u) => {
493
+ e.controller.control.push(u.detail[0]), e.update(), i.removeEventListener(p, l);
494
+ };
495
+ i.addEventListener(p, l);
496
+ }
497
+ });
498
+ return;
499
+ }
500
+ e.controller.control = e.params.controller.control;
501
+ }), f("update", () => {
502
+ y();
503
+ }), f("resize", () => {
504
+ y();
505
+ }), f("observerUpdate", () => {
506
+ y();
507
+ }), f("setTranslate", (c, i, p) => {
508
+ !e.controller.control || e.controller.control.destroyed || e.controller.setTranslate(i, p);
509
+ }), f("setTransition", (c, i, p) => {
510
+ !e.controller.control || e.controller.control.destroyed || e.controller.setTransition(i, p);
511
+ }), Object.assign(e.controller, {
512
+ setTranslate: x,
513
+ setTransition: w
514
+ });
515
+ }
516
+ function ne(k) {
517
+ let {
518
+ swiper: e,
519
+ extendParams: A,
520
+ on: f,
521
+ emit: v,
522
+ params: m
523
+ } = k;
524
+ e.autoplay = {
525
+ running: !1,
526
+ paused: !1,
527
+ timeLeft: 0
528
+ }, A({
529
+ autoplay: {
530
+ enabled: !1,
531
+ delay: 3e3,
532
+ waitForTransition: !0,
533
+ disableOnInteraction: !1,
534
+ stopOnLastSlide: !1,
535
+ reverseDirection: !1,
536
+ pauseOnMouseEnter: !1
537
+ }
538
+ });
539
+ let x, w, y = m && m.autoplay ? m.autoplay.delay : 3e3, c = m && m.autoplay ? m.autoplay.delay : 3e3, i, p = (/* @__PURE__ */ new Date()).getTime(), l, u, n, s, r, o, t;
540
+ function a(C) {
541
+ !e || e.destroyed || !e.wrapperEl || C.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", a), !(t || C.detail && C.detail.bySwiperTouchMove) && M());
542
+ }
543
+ const d = () => {
544
+ if (e.destroyed || !e.autoplay.running) return;
545
+ e.autoplay.paused ? l = !0 : l && (c = i, l = !1);
546
+ const C = e.autoplay.paused ? i : p + c - (/* @__PURE__ */ new Date()).getTime();
547
+ e.autoplay.timeLeft = C, v("autoplayTimeLeft", C, C / y), w = requestAnimationFrame(() => {
548
+ d();
549
+ });
550
+ }, g = () => {
551
+ let C;
552
+ return e.virtual && e.params.virtual.enabled ? C = e.slides.filter((O) => O.classList.contains("swiper-slide-active"))[0] : C = e.slides[e.activeIndex], C ? parseInt(C.getAttribute("data-swiper-autoplay"), 10) : void 0;
553
+ }, T = (C) => {
554
+ if (e.destroyed || !e.autoplay.running) return;
555
+ cancelAnimationFrame(w), d();
556
+ let $ = typeof C > "u" ? e.params.autoplay.delay : C;
557
+ y = e.params.autoplay.delay, c = e.params.autoplay.delay;
558
+ const O = g();
559
+ !Number.isNaN(O) && O > 0 && typeof C > "u" && ($ = O, y = O, c = O), i = $;
560
+ const z = e.params.speed, j = () => {
561
+ !e || e.destroyed || (e.params.autoplay.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev(z, !0, !0), v("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(e.slides.length - 1, z, !0, !0), v("autoplay")) : !e.isEnd || e.params.loop || e.params.rewind ? (e.slideNext(z, !0, !0), v("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(0, z, !0, !0), v("autoplay")), e.params.cssMode && (p = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => {
562
+ T();
563
+ })));
564
+ };
565
+ return $ > 0 ? (clearTimeout(x), x = setTimeout(() => {
566
+ j();
567
+ }, $)) : requestAnimationFrame(() => {
568
+ j();
569
+ }), $;
570
+ }, D = () => {
571
+ p = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0, T(), v("autoplayStart");
572
+ }, E = () => {
573
+ e.autoplay.running = !1, clearTimeout(x), cancelAnimationFrame(w), v("autoplayStop");
574
+ }, h = (C, $) => {
575
+ if (e.destroyed || !e.autoplay.running) return;
576
+ clearTimeout(x), C || (o = !0);
577
+ const O = () => {
578
+ v("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", a) : M();
579
+ };
580
+ if (e.autoplay.paused = !0, $) {
581
+ r && (i = e.params.autoplay.delay), r = !1, O();
582
+ return;
583
+ }
584
+ i = (i || e.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - p), !(e.isEnd && i < 0 && !e.params.loop) && (i < 0 && (i = 0), O());
585
+ }, M = () => {
586
+ e.isEnd && i < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (p = (/* @__PURE__ */ new Date()).getTime(), o ? (o = !1, T(i)) : T(), e.autoplay.paused = !1, v("autoplayResume"));
587
+ }, b = () => {
588
+ if (e.destroyed || !e.autoplay.running) return;
589
+ const C = F();
590
+ C.visibilityState === "hidden" && (o = !0, h(!0)), C.visibilityState === "visible" && M();
591
+ }, B = (C) => {
592
+ C.pointerType === "mouse" && (o = !0, t = !0, !(e.animating || e.autoplay.paused) && h(!0));
593
+ }, L = (C) => {
594
+ C.pointerType === "mouse" && (t = !1, e.autoplay.paused && M());
595
+ }, S = () => {
596
+ e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter", B), e.el.addEventListener("pointerleave", L));
597
+ }, I = () => {
598
+ e.el && typeof e.el != "string" && (e.el.removeEventListener("pointerenter", B), e.el.removeEventListener("pointerleave", L));
599
+ }, N = () => {
600
+ F().addEventListener("visibilitychange", b);
601
+ }, K = () => {
602
+ F().removeEventListener("visibilitychange", b);
603
+ };
604
+ f("init", () => {
605
+ e.params.autoplay.enabled && (S(), N(), D());
606
+ }), f("destroy", () => {
607
+ I(), K(), e.autoplay.running && E();
608
+ }), f("_freeModeStaticRelease", () => {
609
+ (n || o) && M();
610
+ }), f("_freeModeNoMomentumRelease", () => {
611
+ e.params.autoplay.disableOnInteraction ? E() : h(!0, !0);
612
+ }), f("beforeTransitionStart", (C, $, O) => {
613
+ e.destroyed || !e.autoplay.running || (O || !e.params.autoplay.disableOnInteraction ? h(!0, !0) : E());
614
+ }), f("sliderFirstMove", () => {
615
+ if (!(e.destroyed || !e.autoplay.running)) {
616
+ if (e.params.autoplay.disableOnInteraction) {
617
+ E();
618
+ return;
619
+ }
620
+ u = !0, n = !1, o = !1, s = setTimeout(() => {
621
+ o = !0, n = !0, h(!0);
622
+ }, 200);
623
+ }
624
+ }), f("touchEnd", () => {
625
+ if (!(e.destroyed || !e.autoplay.running || !u)) {
626
+ if (clearTimeout(s), clearTimeout(x), e.params.autoplay.disableOnInteraction) {
627
+ n = !1, u = !1;
628
+ return;
629
+ }
630
+ n && e.params.cssMode && M(), n = !1, u = !1;
631
+ }
632
+ }), f("slideChange", () => {
633
+ e.destroyed || !e.autoplay.running || (r = !0);
634
+ }), Object.assign(e.autoplay, {
635
+ start: D,
636
+ stop: E,
637
+ pause: h,
638
+ resume: M
639
+ });
640
+ }
641
+ function re(k) {
642
+ let {
643
+ swiper: e,
644
+ extendParams: A,
645
+ on: f
646
+ } = k;
647
+ A({
648
+ thumbs: {
649
+ swiper: null,
650
+ multipleActiveThumbs: !0,
651
+ autoScrollOffset: 0,
652
+ slideThumbActiveClass: "swiper-slide-thumb-active",
653
+ thumbsContainerClass: "swiper-thumbs"
654
+ }
655
+ });
656
+ let v = !1, m = !1;
657
+ e.thumbs = {
658
+ swiper: null
659
+ };
660
+ function x() {
661
+ const c = e.thumbs.swiper;
662
+ if (!c || c.destroyed) return;
663
+ const i = c.clickedIndex, p = c.clickedSlide;
664
+ if (p && p.classList.contains(e.params.thumbs.slideThumbActiveClass) || typeof i > "u" || i === null) return;
665
+ let l;
666
+ c.params.loop ? l = parseInt(c.clickedSlide.getAttribute("data-swiper-slide-index"), 10) : l = i, e.params.loop ? e.slideToLoop(l) : e.slideTo(l);
667
+ }
668
+ function w() {
669
+ const {
670
+ thumbs: c
671
+ } = e.params;
672
+ if (v) return !1;
673
+ v = !0;
674
+ const i = e.constructor;
675
+ if (c.swiper instanceof i)
676
+ e.thumbs.swiper = c.swiper, Object.assign(e.thumbs.swiper.originalParams, {
677
+ watchSlidesProgress: !0,
678
+ slideToClickedSlide: !1
679
+ }), Object.assign(e.thumbs.swiper.params, {
680
+ watchSlidesProgress: !0,
681
+ slideToClickedSlide: !1
682
+ }), e.thumbs.swiper.update();
683
+ else if (Q(c.swiper)) {
684
+ const p = Object.assign({}, c.swiper);
685
+ Object.assign(p, {
686
+ watchSlidesProgress: !0,
687
+ slideToClickedSlide: !1
688
+ }), e.thumbs.swiper = new i(p), m = !0;
689
+ }
690
+ return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass), e.thumbs.swiper.on("tap", x), !0;
691
+ }
692
+ function y(c) {
693
+ const i = e.thumbs.swiper;
694
+ if (!i || i.destroyed) return;
695
+ const p = i.params.slidesPerView === "auto" ? i.slidesPerViewDynamic() : i.params.slidesPerView;
696
+ let l = 1;
697
+ const u = e.params.thumbs.slideThumbActiveClass;
698
+ if (e.params.slidesPerView > 1 && !e.params.centeredSlides && (l = e.params.slidesPerView), e.params.thumbs.multipleActiveThumbs || (l = 1), l = Math.floor(l), i.slides.forEach((r) => r.classList.remove(u)), i.params.loop || i.params.virtual && i.params.virtual.enabled)
699
+ for (let r = 0; r < l; r += 1)
700
+ _(i.slidesEl, `[data-swiper-slide-index="${e.realIndex + r}"]`).forEach((o) => {
701
+ o.classList.add(u);
702
+ });
703
+ else
704
+ for (let r = 0; r < l; r += 1)
705
+ i.slides[e.realIndex + r] && i.slides[e.realIndex + r].classList.add(u);
706
+ const n = e.params.thumbs.autoScrollOffset, s = n && !i.params.loop;
707
+ if (e.realIndex !== i.realIndex || s) {
708
+ const r = i.activeIndex;
709
+ let o, t;
710
+ if (i.params.loop) {
711
+ const a = i.slides.filter((d) => d.getAttribute("data-swiper-slide-index") === `${e.realIndex}`)[0];
712
+ o = i.slides.indexOf(a), t = e.activeIndex > e.previousIndex ? "next" : "prev";
713
+ } else
714
+ o = e.realIndex, t = o > e.previousIndex ? "next" : "prev";
715
+ s && (o += t === "next" ? n : -1 * n), i.visibleSlidesIndexes && i.visibleSlidesIndexes.indexOf(o) < 0 && (i.params.centeredSlides ? o > r ? o = o - Math.floor(p / 2) + 1 : o = o + Math.floor(p / 2) - 1 : o > r && i.params.slidesPerGroup, i.slideTo(o, c ? 0 : void 0));
716
+ }
717
+ }
718
+ f("beforeInit", () => {
719
+ const {
720
+ thumbs: c
721
+ } = e.params;
722
+ if (!(!c || !c.swiper))
723
+ if (typeof c.swiper == "string" || c.swiper instanceof HTMLElement) {
724
+ const i = F(), p = () => {
725
+ const u = typeof c.swiper == "string" ? i.querySelector(c.swiper) : c.swiper;
726
+ if (u && u.swiper)
727
+ c.swiper = u.swiper, w(), y(!0);
728
+ else if (u) {
729
+ const n = `${e.params.eventsPrefix}init`, s = (r) => {
730
+ c.swiper = r.detail[0], u.removeEventListener(n, s), w(), y(!0), c.swiper.update(), e.update();
731
+ };
732
+ u.addEventListener(n, s);
733
+ }
734
+ return u;
735
+ }, l = () => {
736
+ if (e.destroyed) return;
737
+ p() || requestAnimationFrame(l);
738
+ };
739
+ requestAnimationFrame(l);
740
+ } else
741
+ w(), y(!0);
742
+ }), f("slideChange update resize observerUpdate", () => {
743
+ y();
744
+ }), f("setTransition", (c, i) => {
745
+ const p = e.thumbs.swiper;
746
+ !p || p.destroyed || p.setTransition(i);
747
+ }), f("beforeDestroy", () => {
748
+ const c = e.thumbs.swiper;
749
+ !c || c.destroyed || m && c.destroy();
750
+ }), Object.assign(e.thumbs, {
751
+ init: w,
752
+ update: y
753
+ });
754
+ }
755
+ function le(k) {
756
+ let {
757
+ swiper: e,
758
+ extendParams: A,
759
+ emit: f,
760
+ once: v
761
+ } = k;
762
+ A({
763
+ freeMode: {
764
+ enabled: !1,
765
+ momentum: !0,
766
+ momentumRatio: 1,
767
+ momentumBounce: !0,
768
+ momentumBounceRatio: 1,
769
+ momentumVelocityRatio: 1,
770
+ sticky: !1,
771
+ minimumVelocity: 0.02
772
+ }
773
+ });
774
+ function m() {
775
+ if (e.params.cssMode) return;
776
+ const y = e.getTranslate();
777
+ e.setTranslate(y), e.setTransition(0), e.touchEventsData.velocities.length = 0, e.freeMode.onTouchEnd({
778
+ currentPos: e.rtl ? e.translate : -e.translate
779
+ });
780
+ }
781
+ function x() {
782
+ if (e.params.cssMode) return;
783
+ const {
784
+ touchEventsData: y,
785
+ touches: c
786
+ } = e;
787
+ y.velocities.length === 0 && y.velocities.push({
788
+ position: c[e.isHorizontal() ? "startX" : "startY"],
789
+ time: y.touchStartTime
790
+ }), y.velocities.push({
791
+ position: c[e.isHorizontal() ? "currentX" : "currentY"],
792
+ time: R()
793
+ });
794
+ }
795
+ function w(y) {
796
+ let {
797
+ currentPos: c
798
+ } = y;
799
+ if (e.params.cssMode) return;
800
+ const {
801
+ params: i,
802
+ wrapperEl: p,
803
+ rtlTranslate: l,
804
+ snapGrid: u,
805
+ touchEventsData: n
806
+ } = e, r = R() - n.touchStartTime;
807
+ if (c < -e.minTranslate()) {
808
+ e.slideTo(e.activeIndex);
809
+ return;
810
+ }
811
+ if (c > -e.maxTranslate()) {
812
+ e.slides.length < u.length ? e.slideTo(u.length - 1) : e.slideTo(e.slides.length - 1);
813
+ return;
814
+ }
815
+ if (i.freeMode.momentum) {
816
+ if (n.velocities.length > 1) {
817
+ const E = n.velocities.pop(), h = n.velocities.pop(), M = E.position - h.position, b = E.time - h.time;
818
+ e.velocity = M / b, e.velocity /= 2, Math.abs(e.velocity) < i.freeMode.minimumVelocity && (e.velocity = 0), (b > 150 || R() - E.time > 300) && (e.velocity = 0);
819
+ } else
820
+ e.velocity = 0;
821
+ e.velocity *= i.freeMode.momentumVelocityRatio, n.velocities.length = 0;
822
+ let o = 1e3 * i.freeMode.momentumRatio;
823
+ const t = e.velocity * o;
824
+ let a = e.translate + t;
825
+ l && (a = -a);
826
+ let d = !1, g;
827
+ const T = Math.abs(e.velocity) * 20 * i.freeMode.momentumBounceRatio;
828
+ let D;
829
+ if (a < e.maxTranslate())
830
+ i.freeMode.momentumBounce ? (a + e.maxTranslate() < -T && (a = e.maxTranslate() - T), g = e.maxTranslate(), d = !0, n.allowMomentumBounce = !0) : a = e.maxTranslate(), i.loop && i.centeredSlides && (D = !0);
831
+ else if (a > e.minTranslate())
832
+ i.freeMode.momentumBounce ? (a - e.minTranslate() > T && (a = e.minTranslate() + T), g = e.minTranslate(), d = !0, n.allowMomentumBounce = !0) : a = e.minTranslate(), i.loop && i.centeredSlides && (D = !0);
833
+ else if (i.freeMode.sticky) {
834
+ let E;
835
+ for (let h = 0; h < u.length; h += 1)
836
+ if (u[h] > -a) {
837
+ E = h;
838
+ break;
839
+ }
840
+ Math.abs(u[E] - a) < Math.abs(u[E - 1] - a) || e.swipeDirection === "next" ? a = u[E] : a = u[E - 1], a = -a;
841
+ }
842
+ if (D && v("transitionEnd", () => {
843
+ e.loopFix();
844
+ }), e.velocity !== 0) {
845
+ if (l ? o = Math.abs((-a - e.translate) / e.velocity) : o = Math.abs((a - e.translate) / e.velocity), i.freeMode.sticky) {
846
+ const E = Math.abs((l ? -a : a) - e.translate), h = e.slidesSizesGrid[e.activeIndex];
847
+ E < h ? o = i.speed : E < 2 * h ? o = i.speed * 1.5 : o = i.speed * 2.5;
848
+ }
849
+ } else if (i.freeMode.sticky) {
850
+ e.slideToClosest();
851
+ return;
852
+ }
853
+ i.freeMode.momentumBounce && d ? (e.updateProgress(g), e.setTransition(o), e.setTranslate(a), e.transitionStart(!0, e.swipeDirection), e.animating = !0, q(p, () => {
854
+ !e || e.destroyed || !n.allowMomentumBounce || (f("momentumBounce"), e.setTransition(i.speed), setTimeout(() => {
855
+ e.setTranslate(g), q(p, () => {
856
+ !e || e.destroyed || e.transitionEnd();
857
+ });
858
+ }, 0));
859
+ })) : e.velocity ? (f("_freeModeNoMomentumRelease"), e.updateProgress(a), e.setTransition(o), e.setTranslate(a), e.transitionStart(!0, e.swipeDirection), e.animating || (e.animating = !0, q(p, () => {
860
+ !e || e.destroyed || e.transitionEnd();
861
+ }))) : e.updateProgress(a), e.updateActiveIndex(), e.updateSlidesClasses();
862
+ } else if (i.freeMode.sticky) {
863
+ e.slideToClosest();
864
+ return;
865
+ } else i.freeMode && f("_freeModeNoMomentumRelease");
866
+ (!i.freeMode.momentum || r >= i.longSwipesMs) && (f("_freeModeStaticRelease"), e.updateProgress(), e.updateActiveIndex(), e.updateSlidesClasses());
867
+ }
868
+ Object.assign(e, {
869
+ freeMode: {
870
+ onTouchStart: m,
871
+ onTouchMove: x,
872
+ onTouchEnd: w
873
+ }
874
+ });
875
+ }
876
+ export {
877
+ ne as Autoplay,
878
+ se as Controller,
879
+ le as FreeMode,
880
+ te as Keyboard,
881
+ ae as Navigation,
882
+ ie as Pagination,
883
+ re as Thumbs,
884
+ ce as Zoom
885
+ };