@ozdao/prometheus-framework 0.2.197 → 0.2.198
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/node_modules/@googlemaps/js-api-loader/dist/index.cjs +1 -1
- package/dist/node_modules/@googlemaps/js-api-loader/dist/index.js +21 -20
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -1
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +629 -622
- package/dist/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs +1 -1
- package/dist/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js +19 -17
- package/dist/node_modules/qrcode/lib/core/byte-data.cjs +1 -1
- package/dist/node_modules/qrcode/lib/core/byte-data.js +6 -7
- package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.cjs +1 -1
- package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.js +3 -3
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +3356 -3363
- package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +17 -17
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +12 -12
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +32 -32
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
- package/dist/prometheus-framework.cjs.js +27 -27
- package/dist/prometheus-framework.es.js +2528 -2518
- package/dist/style.css +1 -1
- package/package.json +25 -25
@@ -1,94 +1,94 @@
|
|
1
|
-
function
|
1
|
+
function Et(t) {
|
2
2
|
return typeof t == "number";
|
3
3
|
}
|
4
|
-
function
|
4
|
+
function bt(t) {
|
5
5
|
return typeof t == "string";
|
6
6
|
}
|
7
|
-
function
|
7
|
+
function It(t) {
|
8
8
|
return typeof t == "boolean";
|
9
9
|
}
|
10
|
-
function
|
10
|
+
function Nt(t) {
|
11
11
|
return Object.prototype.toString.call(t) === "[object Object]";
|
12
12
|
}
|
13
|
-
function
|
13
|
+
function P(t) {
|
14
14
|
return Math.abs(t);
|
15
15
|
}
|
16
|
-
function
|
16
|
+
function Tt(t) {
|
17
17
|
return Math.sign(t);
|
18
18
|
}
|
19
|
-
function
|
20
|
-
return
|
19
|
+
function ut(t, n) {
|
20
|
+
return P(t - n);
|
21
21
|
}
|
22
|
-
function
|
23
|
-
if (t === 0 || n === 0 ||
|
24
|
-
const r =
|
25
|
-
return
|
22
|
+
function Xt(t, n) {
|
23
|
+
if (t === 0 || n === 0 || P(t) <= P(n)) return 0;
|
24
|
+
const r = ut(P(t), P(n));
|
25
|
+
return P(r / t);
|
26
26
|
}
|
27
|
-
function
|
28
|
-
return
|
27
|
+
function ft(t) {
|
28
|
+
return at(t).map(Number);
|
29
29
|
}
|
30
|
-
function
|
31
|
-
return t[
|
30
|
+
function H(t) {
|
31
|
+
return t[dt(t)];
|
32
32
|
}
|
33
|
-
function
|
33
|
+
function dt(t) {
|
34
34
|
return Math.max(0, t.length - 1);
|
35
35
|
}
|
36
|
-
function
|
37
|
-
return n ===
|
36
|
+
function vt(t, n) {
|
37
|
+
return n === dt(t);
|
38
38
|
}
|
39
|
-
function
|
39
|
+
function Vt(t, n = 0) {
|
40
40
|
return Array.from(Array(t), (r, s) => n + s);
|
41
41
|
}
|
42
|
-
function
|
42
|
+
function at(t) {
|
43
43
|
return Object.keys(t);
|
44
44
|
}
|
45
|
-
function
|
46
|
-
return [t, n].reduce((r, s) => (
|
47
|
-
const
|
48
|
-
r[
|
45
|
+
function zt(t, n) {
|
46
|
+
return [t, n].reduce((r, s) => (at(s).forEach((c) => {
|
47
|
+
const o = r[c], e = s[c], f = Nt(o) && Nt(e);
|
48
|
+
r[c] = f ? zt(o, e) : e;
|
49
49
|
}), r), {});
|
50
50
|
}
|
51
|
-
function
|
51
|
+
function Lt(t, n) {
|
52
52
|
return typeof n.MouseEvent < "u" && t instanceof n.MouseEvent;
|
53
53
|
}
|
54
|
-
function
|
54
|
+
function Yt(t, n) {
|
55
55
|
const r = {
|
56
56
|
start: s,
|
57
|
-
center:
|
58
|
-
end:
|
57
|
+
center: c,
|
58
|
+
end: o
|
59
59
|
};
|
60
60
|
function s() {
|
61
61
|
return 0;
|
62
62
|
}
|
63
|
-
function i
|
64
|
-
return
|
63
|
+
function c(i) {
|
64
|
+
return o(i) / 2;
|
65
65
|
}
|
66
|
-
function
|
67
|
-
return n -
|
66
|
+
function o(i) {
|
67
|
+
return n - i;
|
68
68
|
}
|
69
|
-
function
|
70
|
-
return
|
69
|
+
function e(i, u) {
|
70
|
+
return bt(t) ? r[t](i) : t(n, i, u);
|
71
71
|
}
|
72
72
|
return {
|
73
|
-
measure:
|
73
|
+
measure: e
|
74
74
|
};
|
75
75
|
}
|
76
|
-
function
|
76
|
+
function lt() {
|
77
77
|
let t = [];
|
78
|
-
function n(
|
78
|
+
function n(c, o, e, f = {
|
79
79
|
passive: !0
|
80
80
|
}) {
|
81
|
-
let
|
82
|
-
if ("addEventListener" in
|
83
|
-
|
81
|
+
let i;
|
82
|
+
if ("addEventListener" in c)
|
83
|
+
c.addEventListener(o, e, f), i = () => c.removeEventListener(o, e, f);
|
84
84
|
else {
|
85
|
-
const u =
|
86
|
-
u.addListener(
|
85
|
+
const u = c;
|
86
|
+
u.addListener(e), i = () => u.removeListener(e);
|
87
87
|
}
|
88
|
-
return t.push(
|
88
|
+
return t.push(i), s;
|
89
89
|
}
|
90
90
|
function r() {
|
91
|
-
t = t.filter((
|
91
|
+
t = t.filter((c) => c());
|
92
92
|
}
|
93
93
|
const s = {
|
94
94
|
add: n,
|
@@ -96,52 +96,52 @@ function ft() {
|
|
96
96
|
};
|
97
97
|
return s;
|
98
98
|
}
|
99
|
-
function
|
100
|
-
const
|
101
|
-
let
|
99
|
+
function _t(t, n, r, s) {
|
100
|
+
const c = lt(), o = 1e3 / 60;
|
101
|
+
let e = null, f = 0, i = 0;
|
102
102
|
function u() {
|
103
|
-
|
103
|
+
c.add(t, "visibilitychange", () => {
|
104
104
|
t.hidden && d();
|
105
105
|
});
|
106
106
|
}
|
107
107
|
function h() {
|
108
|
-
|
108
|
+
b(), c.clear();
|
109
109
|
}
|
110
|
-
function l(
|
111
|
-
if (!
|
112
|
-
|
113
|
-
const a =
|
114
|
-
for (
|
115
|
-
r(), f -=
|
116
|
-
const
|
117
|
-
s(
|
110
|
+
function l(g) {
|
111
|
+
if (!i) return;
|
112
|
+
e || (e = g);
|
113
|
+
const a = g - e;
|
114
|
+
for (e = g, f += a; f >= o; )
|
115
|
+
r(o), f -= o;
|
116
|
+
const S = f / o;
|
117
|
+
s(S), i && n.requestAnimationFrame(l);
|
118
118
|
}
|
119
|
-
function
|
120
|
-
|
119
|
+
function p() {
|
120
|
+
i || (i = n.requestAnimationFrame(l));
|
121
121
|
}
|
122
|
-
function
|
123
|
-
n.cancelAnimationFrame(
|
122
|
+
function b() {
|
123
|
+
n.cancelAnimationFrame(i), e = null, f = 0, i = 0;
|
124
124
|
}
|
125
125
|
function d() {
|
126
|
-
|
126
|
+
e = null, f = 0;
|
127
127
|
}
|
128
128
|
return {
|
129
129
|
init: u,
|
130
130
|
destroy: h,
|
131
|
-
start:
|
132
|
-
stop:
|
133
|
-
update: r,
|
131
|
+
start: p,
|
132
|
+
stop: b,
|
133
|
+
update: () => r(o),
|
134
134
|
render: s
|
135
135
|
};
|
136
136
|
}
|
137
|
-
function
|
138
|
-
const r = n === "rtl", s = t === "y",
|
137
|
+
function Jt(t, n) {
|
138
|
+
const r = n === "rtl", s = t === "y", c = s ? "y" : "x", o = s ? "x" : "y", e = !s && r ? -1 : 1, f = h(), i = l();
|
139
139
|
function u(d) {
|
140
140
|
const {
|
141
|
-
height:
|
142
|
-
width:
|
141
|
+
height: m,
|
142
|
+
width: g
|
143
143
|
} = d;
|
144
|
-
return s ?
|
144
|
+
return s ? m : g;
|
145
145
|
}
|
146
146
|
function h() {
|
147
147
|
return s ? "top" : r ? "right" : "left";
|
@@ -149,31 +149,31 @@ function Kt(t, n) {
|
|
149
149
|
function l() {
|
150
150
|
return s ? "bottom" : r ? "left" : "right";
|
151
151
|
}
|
152
|
-
function
|
153
|
-
return d *
|
152
|
+
function p(d) {
|
153
|
+
return d * e;
|
154
154
|
}
|
155
155
|
return {
|
156
|
-
scroll:
|
157
|
-
cross:
|
156
|
+
scroll: c,
|
157
|
+
cross: o,
|
158
158
|
startEdge: f,
|
159
|
-
endEdge:
|
159
|
+
endEdge: i,
|
160
160
|
measureSize: u,
|
161
|
-
direction:
|
161
|
+
direction: p
|
162
162
|
};
|
163
163
|
}
|
164
164
|
function nt(t = 0, n = 0) {
|
165
|
-
const r =
|
165
|
+
const r = P(t - n);
|
166
166
|
function s(u) {
|
167
167
|
return u < t;
|
168
168
|
}
|
169
|
-
function
|
169
|
+
function c(u) {
|
170
170
|
return u > n;
|
171
171
|
}
|
172
|
-
function e(u) {
|
173
|
-
return s(u) || i(u);
|
174
|
-
}
|
175
172
|
function o(u) {
|
176
|
-
return
|
173
|
+
return s(u) || c(u);
|
174
|
+
}
|
175
|
+
function e(u) {
|
176
|
+
return o(u) ? s(u) ? t : n : u;
|
177
177
|
}
|
178
178
|
function f(u) {
|
179
179
|
return r ? u - r * Math.ceil((u - n) / r) : u;
|
@@ -182,161 +182,161 @@ function nt(t = 0, n = 0) {
|
|
182
182
|
length: r,
|
183
183
|
max: n,
|
184
184
|
min: t,
|
185
|
-
constrain:
|
186
|
-
reachedAny:
|
187
|
-
reachedMax:
|
185
|
+
constrain: e,
|
186
|
+
reachedAny: o,
|
187
|
+
reachedMax: c,
|
188
188
|
reachedMin: s,
|
189
189
|
removeOffset: f
|
190
190
|
};
|
191
191
|
}
|
192
|
-
function
|
192
|
+
function Bt(t, n, r) {
|
193
193
|
const {
|
194
194
|
constrain: s
|
195
|
-
} = nt(0, t),
|
196
|
-
let
|
197
|
-
function
|
198
|
-
return r ?
|
195
|
+
} = nt(0, t), c = t + 1;
|
196
|
+
let o = e(n);
|
197
|
+
function e(p) {
|
198
|
+
return r ? P((c + p) % c) : s(p);
|
199
199
|
}
|
200
200
|
function f() {
|
201
|
-
return
|
201
|
+
return o;
|
202
202
|
}
|
203
|
-
function
|
204
|
-
return
|
203
|
+
function i(p) {
|
204
|
+
return o = e(p), l;
|
205
205
|
}
|
206
|
-
function u(
|
207
|
-
return h().set(f() +
|
206
|
+
function u(p) {
|
207
|
+
return h().set(f() + p);
|
208
208
|
}
|
209
209
|
function h() {
|
210
|
-
return
|
210
|
+
return Bt(t, f(), r);
|
211
211
|
}
|
212
212
|
const l = {
|
213
213
|
get: f,
|
214
|
-
set:
|
214
|
+
set: i,
|
215
215
|
add: u,
|
216
216
|
clone: h
|
217
217
|
};
|
218
218
|
return l;
|
219
219
|
}
|
220
|
-
function
|
220
|
+
function Zt(t, n, r, s, c, o, e, f, i, u, h, l, p, b, d, m, g, a, S) {
|
221
221
|
const {
|
222
|
-
cross:
|
223
|
-
direction:
|
224
|
-
} = t,
|
222
|
+
cross: x,
|
223
|
+
direction: T
|
224
|
+
} = t, M = ["INPUT", "SELECT", "TEXTAREA"], v = {
|
225
225
|
passive: !1
|
226
|
-
},
|
226
|
+
}, L = lt(), E = lt(), I = nt(50, 225).constrain(b.measure(20)), D = {
|
227
227
|
mouse: 300,
|
228
228
|
touch: 400
|
229
|
-
},
|
229
|
+
}, F = {
|
230
230
|
mouse: 500,
|
231
231
|
touch: 600
|
232
232
|
}, V = d ? 43 : 25;
|
233
|
-
let
|
234
|
-
function
|
235
|
-
if (!
|
236
|
-
function
|
237
|
-
(
|
233
|
+
let _ = !1, B = 0, q = 0, W = !1, U = !1, J = !1, $ = !1;
|
234
|
+
function tt(y) {
|
235
|
+
if (!S) return;
|
236
|
+
function A(w) {
|
237
|
+
(It(S) || S(y, w)) && z(w);
|
238
238
|
}
|
239
239
|
const C = n;
|
240
|
-
|
241
|
-
},
|
242
|
-
}).add(C, "touchstart",
|
240
|
+
L.add(C, "dragstart", (w) => w.preventDefault(), v).add(C, "touchmove", () => {
|
241
|
+
}, v).add(C, "touchend", () => {
|
242
|
+
}).add(C, "touchstart", A).add(C, "mousedown", A).add(C, "touchcancel", N).add(C, "contextmenu", N).add(C, "click", ot, !0);
|
243
243
|
}
|
244
|
-
function
|
245
|
-
|
244
|
+
function Q() {
|
245
|
+
L.clear(), E.clear();
|
246
246
|
}
|
247
247
|
function et() {
|
248
|
-
const y =
|
249
|
-
|
248
|
+
const y = $ ? r : n;
|
249
|
+
E.add(y, "touchmove", G, v).add(y, "touchend", N).add(y, "mousemove", G, v).add(y, "mouseup", N);
|
250
250
|
}
|
251
|
-
function
|
252
|
-
const
|
253
|
-
return
|
251
|
+
function K(y) {
|
252
|
+
const A = y.nodeName || "";
|
253
|
+
return M.includes(A);
|
254
254
|
}
|
255
|
-
function
|
256
|
-
return (d ?
|
255
|
+
function st() {
|
256
|
+
return (d ? F : D)[$ ? "mouse" : "touch"];
|
257
257
|
}
|
258
|
-
function
|
259
|
-
const C = l.add(
|
260
|
-
return d ||
|
258
|
+
function rt(y, A) {
|
259
|
+
const C = l.add(Tt(y) * -1), w = h.byDistance(y, !d).distance;
|
260
|
+
return d || P(y) < I ? w : g && A ? w * 0.5 : h.byIndex(C.get(), 0).distance;
|
261
261
|
}
|
262
262
|
function z(y) {
|
263
|
-
const
|
264
|
-
|
263
|
+
const A = Lt(y, s);
|
264
|
+
$ = A, J = d && A && !y.buttons && _, _ = ut(c.get(), e.get()) >= 2, !(A && y.button !== 0) && (K(y.target) || (W = !0, o.pointerDown(y), u.useFriction(0).useDuration(0), c.set(e), et(), B = o.readPoint(y), q = o.readPoint(y, x), p.emit("pointerDown")));
|
265
265
|
}
|
266
|
-
function
|
267
|
-
if (!
|
268
|
-
const C =
|
269
|
-
if (
|
266
|
+
function G(y) {
|
267
|
+
if (!Lt(y, s) && y.touches.length >= 2) return N(y);
|
268
|
+
const C = o.readPoint(y), w = o.readPoint(y, x), j = ut(C, B), X = ut(w, q);
|
269
|
+
if (!U && !$ && (!y.cancelable || (U = j > X, !U)))
|
270
270
|
return N(y);
|
271
|
-
const
|
272
|
-
|
271
|
+
const R = o.pointerMove(y);
|
272
|
+
j > m && (J = !0), u.useFriction(0.3).useDuration(0.75), f.start(), c.add(T(R)), y.preventDefault();
|
273
273
|
}
|
274
274
|
function N(y) {
|
275
|
-
const C = h.byDistance(0, !1).index !== l.get(), w =
|
276
|
-
|
275
|
+
const C = h.byDistance(0, !1).index !== l.get(), w = o.pointerUp(y) * st(), j = rt(T(w), C), X = Xt(w, j), R = V - 10 * X, Y = a + X / 50;
|
276
|
+
U = !1, W = !1, E.clear(), u.useDuration(R).useFriction(Y), i.distance(j, !d), $ = !1, p.emit("pointerUp");
|
277
277
|
}
|
278
278
|
function ot(y) {
|
279
|
-
|
279
|
+
J && (y.stopPropagation(), y.preventDefault(), J = !1);
|
280
280
|
}
|
281
281
|
function k() {
|
282
|
-
return
|
282
|
+
return W;
|
283
283
|
}
|
284
284
|
return {
|
285
|
-
init:
|
286
|
-
destroy:
|
285
|
+
init: tt,
|
286
|
+
destroy: Q,
|
287
287
|
pointerDown: k
|
288
288
|
};
|
289
289
|
}
|
290
|
-
function
|
291
|
-
let s,
|
292
|
-
function
|
290
|
+
function Wt(t, n) {
|
291
|
+
let s, c;
|
292
|
+
function o(l) {
|
293
293
|
return l.timeStamp;
|
294
294
|
}
|
295
|
-
function
|
296
|
-
const d = `client${(
|
297
|
-
return (
|
295
|
+
function e(l, p) {
|
296
|
+
const d = `client${(p || t.scroll) === "x" ? "X" : "Y"}`;
|
297
|
+
return (Lt(l, n) ? l : l.touches[0])[d];
|
298
298
|
}
|
299
299
|
function f(l) {
|
300
|
-
return s = l,
|
300
|
+
return s = l, c = l, e(l);
|
301
301
|
}
|
302
|
-
function
|
303
|
-
const
|
304
|
-
return
|
302
|
+
function i(l) {
|
303
|
+
const p = e(l) - e(c), b = o(l) - o(s) > 170;
|
304
|
+
return c = l, b && (s = l), p;
|
305
305
|
}
|
306
306
|
function u(l) {
|
307
|
-
if (!s || !
|
308
|
-
const
|
309
|
-
return
|
307
|
+
if (!s || !c) return 0;
|
308
|
+
const p = e(c) - e(s), b = o(l) - o(s), d = o(l) - o(c) > 170, m = p / b;
|
309
|
+
return b && !d && P(m) > 0.1 ? m : 0;
|
310
310
|
}
|
311
311
|
return {
|
312
312
|
pointerDown: f,
|
313
|
-
pointerMove:
|
313
|
+
pointerMove: i,
|
314
314
|
pointerUp: u,
|
315
|
-
readPoint:
|
315
|
+
readPoint: e
|
316
316
|
};
|
317
317
|
}
|
318
|
-
function
|
318
|
+
function tn() {
|
319
319
|
function t(r) {
|
320
320
|
const {
|
321
321
|
offsetTop: s,
|
322
|
-
offsetLeft:
|
323
|
-
offsetWidth:
|
324
|
-
offsetHeight:
|
322
|
+
offsetLeft: c,
|
323
|
+
offsetWidth: o,
|
324
|
+
offsetHeight: e
|
325
325
|
} = r;
|
326
326
|
return {
|
327
327
|
top: s,
|
328
|
-
right:
|
329
|
-
bottom: s +
|
330
|
-
left:
|
331
|
-
width:
|
332
|
-
height:
|
328
|
+
right: c + o,
|
329
|
+
bottom: s + e,
|
330
|
+
left: c,
|
331
|
+
width: o,
|
332
|
+
height: e
|
333
333
|
};
|
334
334
|
}
|
335
335
|
return {
|
336
336
|
measure: t
|
337
337
|
};
|
338
338
|
}
|
339
|
-
function
|
339
|
+
function nn(t) {
|
340
340
|
function n(s) {
|
341
341
|
return t * (s / 100);
|
342
342
|
}
|
@@ -344,208 +344,211 @@ function Jt(t) {
|
|
344
344
|
measure: n
|
345
345
|
};
|
346
346
|
}
|
347
|
-
function
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
if (
|
359
|
-
|
360
|
-
|
361
|
-
|
347
|
+
function en(t, n, r, s, c, o, e) {
|
348
|
+
const f = [t].concat(s);
|
349
|
+
let i, u, h = [], l = !1;
|
350
|
+
function p(g) {
|
351
|
+
return c.measureSize(e.measure(g));
|
352
|
+
}
|
353
|
+
function b(g) {
|
354
|
+
if (!o) return;
|
355
|
+
u = p(t), h = s.map(p);
|
356
|
+
function a(S) {
|
357
|
+
for (const x of S) {
|
358
|
+
if (l) return;
|
359
|
+
const T = x.target === t, M = s.indexOf(x.target), v = T ? u : h[M], L = p(T ? t : s[M]);
|
360
|
+
if (P(L - v) >= 0.5) {
|
361
|
+
g.reInit(), n.emit("resize");
|
362
362
|
break;
|
363
363
|
}
|
364
364
|
}
|
365
365
|
}
|
366
|
-
|
367
|
-
|
368
|
-
}),
|
366
|
+
i = new ResizeObserver((S) => {
|
367
|
+
(It(o) || o(g, S)) && a(S);
|
368
|
+
}), r.requestAnimationFrame(() => {
|
369
|
+
f.forEach((S) => i.observe(S));
|
370
|
+
});
|
369
371
|
}
|
370
|
-
function
|
371
|
-
|
372
|
+
function d() {
|
373
|
+
l = !0, i && i.disconnect();
|
372
374
|
}
|
373
375
|
return {
|
374
|
-
init:
|
375
|
-
destroy:
|
376
|
+
init: b,
|
377
|
+
destroy: d
|
376
378
|
};
|
377
379
|
}
|
378
|
-
function
|
379
|
-
let e = 0,
|
380
|
-
function
|
381
|
-
const v =
|
382
|
-
let
|
383
|
-
return
|
380
|
+
function on(t, n, r, s, c, o) {
|
381
|
+
let e = 0, f = 0, i = c, u = o, h = t.get(), l = 0;
|
382
|
+
function p(v) {
|
383
|
+
const L = v / 1e3, E = i * L, I = s.get() - t.get(), D = !i;
|
384
|
+
let F = 0;
|
385
|
+
return D ? (e = 0, r.set(s), t.set(s), F = I) : (r.set(t), e += I / E, e *= u, h += e, t.add(e * L), F = h - l), f = Tt(F), l = h, M;
|
384
386
|
}
|
385
|
-
function
|
386
|
-
const v =
|
387
|
-
return
|
388
|
-
}
|
389
|
-
function x() {
|
390
|
-
return f;
|
387
|
+
function b() {
|
388
|
+
const v = s.get() - n.get();
|
389
|
+
return P(v) < 1e-3;
|
391
390
|
}
|
392
391
|
function d() {
|
393
|
-
return
|
392
|
+
return i;
|
394
393
|
}
|
395
|
-
function
|
396
|
-
return
|
394
|
+
function m() {
|
395
|
+
return f;
|
397
396
|
}
|
398
|
-
function
|
399
|
-
return
|
397
|
+
function g() {
|
398
|
+
return e;
|
400
399
|
}
|
401
400
|
function a() {
|
402
|
-
return
|
403
|
-
}
|
404
|
-
function
|
405
|
-
return
|
406
|
-
}
|
407
|
-
function
|
408
|
-
return
|
409
|
-
}
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
401
|
+
return x(c);
|
402
|
+
}
|
403
|
+
function S() {
|
404
|
+
return T(o);
|
405
|
+
}
|
406
|
+
function x(v) {
|
407
|
+
return i = v, M;
|
408
|
+
}
|
409
|
+
function T(v) {
|
410
|
+
return u = v, M;
|
411
|
+
}
|
412
|
+
const M = {
|
413
|
+
direction: m,
|
414
|
+
duration: d,
|
415
|
+
velocity: g,
|
416
|
+
seek: p,
|
417
|
+
settled: b,
|
418
|
+
useBaseFriction: S,
|
419
|
+
useBaseDuration: a,
|
420
|
+
useFriction: T,
|
421
|
+
useDuration: x
|
420
422
|
};
|
421
|
-
return
|
423
|
+
return M;
|
422
424
|
}
|
423
|
-
function
|
424
|
-
const
|
425
|
-
let
|
425
|
+
function sn(t, n, r, s, c) {
|
426
|
+
const o = c.measure(10), e = c.measure(50), f = nt(0.1, 0.99);
|
427
|
+
let i = !1;
|
426
428
|
function u() {
|
427
|
-
return !(
|
429
|
+
return !(i || !t.reachedAny(r.get()) || !t.reachedAny(n.get()));
|
428
430
|
}
|
429
|
-
function h(
|
431
|
+
function h(b) {
|
430
432
|
if (!u()) return;
|
431
|
-
const d = t.reachedMin(n.get()) ? "min" : "max",
|
432
|
-
r.subtract(
|
433
|
+
const d = t.reachedMin(n.get()) ? "min" : "max", m = P(t[d] - n.get()), g = r.get() - n.get(), a = f.constrain(m / e);
|
434
|
+
r.subtract(g * a), !b && P(g) < o && (r.set(t.constrain(r.get())), s.useDuration(25).useBaseFriction());
|
433
435
|
}
|
434
|
-
function l(
|
435
|
-
|
436
|
+
function l(b) {
|
437
|
+
i = !b;
|
436
438
|
}
|
437
439
|
return {
|
440
|
+
shouldConstrain: u,
|
438
441
|
constrain: h,
|
439
442
|
toggleActive: l
|
440
443
|
};
|
441
444
|
}
|
442
|
-
function
|
443
|
-
const
|
444
|
-
function u(d,
|
445
|
-
return
|
445
|
+
function rn(t, n, r, s, c) {
|
446
|
+
const o = nt(-n + t, 0), e = l(), f = h(), i = p();
|
447
|
+
function u(d, m) {
|
448
|
+
return ut(d, m) < 1;
|
446
449
|
}
|
447
450
|
function h() {
|
448
|
-
const d =
|
449
|
-
return nt(
|
451
|
+
const d = e[0], m = H(e), g = e.lastIndexOf(d), a = e.indexOf(m) + 1;
|
452
|
+
return nt(g, a);
|
450
453
|
}
|
451
454
|
function l() {
|
452
|
-
return r.map((d,
|
455
|
+
return r.map((d, m) => {
|
453
456
|
const {
|
454
|
-
min:
|
457
|
+
min: g,
|
455
458
|
max: a
|
456
|
-
} =
|
457
|
-
return
|
459
|
+
} = o, S = o.constrain(d), x = !m, T = vt(r, m);
|
460
|
+
return x ? a : T || u(g, S) ? g : u(a, S) ? a : S;
|
458
461
|
}).map((d) => parseFloat(d.toFixed(3)));
|
459
462
|
}
|
460
|
-
function
|
461
|
-
if (n <= t +
|
462
|
-
if (s === "keepSnaps") return
|
463
|
+
function p() {
|
464
|
+
if (n <= t + c) return [o.max];
|
465
|
+
if (s === "keepSnaps") return e;
|
463
466
|
const {
|
464
467
|
min: d,
|
465
|
-
max:
|
468
|
+
max: m
|
466
469
|
} = f;
|
467
|
-
return
|
470
|
+
return e.slice(d, m);
|
468
471
|
}
|
469
472
|
return {
|
470
|
-
snapsContained:
|
473
|
+
snapsContained: i,
|
471
474
|
scrollContainLimit: f
|
472
475
|
};
|
473
476
|
}
|
474
|
-
function
|
475
|
-
const s = n[0],
|
477
|
+
function cn(t, n, r) {
|
478
|
+
const s = n[0], c = r ? s - t : H(n);
|
476
479
|
return {
|
477
|
-
limit: nt(
|
480
|
+
limit: nt(c, s)
|
478
481
|
};
|
479
482
|
}
|
480
|
-
function
|
481
|
-
const
|
483
|
+
function un(t, n, r, s) {
|
484
|
+
const o = n.min + 0.1, e = n.max + 0.1, {
|
482
485
|
reachedMin: f,
|
483
|
-
reachedMax:
|
484
|
-
} = nt(
|
485
|
-
function u(
|
486
|
-
return
|
486
|
+
reachedMax: i
|
487
|
+
} = nt(o, e);
|
488
|
+
function u(p) {
|
489
|
+
return p === 1 ? i(r.get()) : p === -1 ? f(r.get()) : !1;
|
487
490
|
}
|
488
|
-
function h(
|
489
|
-
if (!u(
|
490
|
-
const
|
491
|
-
s.forEach((d) => d.add(
|
491
|
+
function h(p) {
|
492
|
+
if (!u(p)) return;
|
493
|
+
const b = t * (p * -1);
|
494
|
+
s.forEach((d) => d.add(b));
|
492
495
|
}
|
493
496
|
return {
|
494
497
|
loop: h
|
495
498
|
};
|
496
499
|
}
|
497
|
-
function
|
500
|
+
function fn(t) {
|
498
501
|
const {
|
499
502
|
max: n,
|
500
503
|
length: r
|
501
504
|
} = t;
|
502
|
-
function s(
|
503
|
-
const
|
504
|
-
return r ?
|
505
|
+
function s(o) {
|
506
|
+
const e = o - n;
|
507
|
+
return r ? e / -r : 0;
|
505
508
|
}
|
506
509
|
return {
|
507
510
|
get: s
|
508
511
|
};
|
509
512
|
}
|
510
|
-
function
|
513
|
+
function an(t, n, r, s, c) {
|
511
514
|
const {
|
512
|
-
startEdge:
|
513
|
-
endEdge:
|
515
|
+
startEdge: o,
|
516
|
+
endEdge: e
|
514
517
|
} = t, {
|
515
518
|
groupSlides: f
|
516
|
-
} =
|
519
|
+
} = c, i = l().map(n.measure), u = p(), h = b();
|
517
520
|
function l() {
|
518
|
-
return f(s).map((
|
521
|
+
return f(s).map((m) => H(m)[e] - m[0][o]).map(P);
|
519
522
|
}
|
520
|
-
function
|
521
|
-
return s.map((
|
523
|
+
function p() {
|
524
|
+
return s.map((m) => r[o] - m[o]).map((m) => -P(m));
|
522
525
|
}
|
523
|
-
function
|
524
|
-
return f(u).map((
|
526
|
+
function b() {
|
527
|
+
return f(u).map((m) => m[0]).map((m, g) => m + i[g]);
|
525
528
|
}
|
526
529
|
return {
|
527
530
|
snaps: u,
|
528
531
|
snapsAligned: h
|
529
532
|
};
|
530
533
|
}
|
531
|
-
function
|
534
|
+
function ln(t, n, r, s, c, o) {
|
532
535
|
const {
|
533
|
-
groupSlides:
|
534
|
-
} =
|
536
|
+
groupSlides: e
|
537
|
+
} = c, {
|
535
538
|
min: f,
|
536
|
-
max:
|
539
|
+
max: i
|
537
540
|
} = s, u = h();
|
538
541
|
function h() {
|
539
|
-
const
|
540
|
-
return r.length === 1 ? [
|
541
|
-
const a = !
|
542
|
+
const p = e(o), b = !t || n === "keepSnaps";
|
543
|
+
return r.length === 1 ? [o] : b ? p : p.slice(f, i).map((d, m, g) => {
|
544
|
+
const a = !m, S = vt(g, m);
|
542
545
|
if (a) {
|
543
|
-
const
|
544
|
-
return
|
546
|
+
const x = H(g[0]) + 1;
|
547
|
+
return Vt(x);
|
545
548
|
}
|
546
|
-
if (
|
547
|
-
const
|
548
|
-
return
|
549
|
+
if (S) {
|
550
|
+
const x = dt(o) - H(g)[0] + 1;
|
551
|
+
return Vt(x, H(g)[0]);
|
549
552
|
}
|
550
553
|
return d;
|
551
554
|
});
|
@@ -554,427 +557,431 @@ function cn(t, n, r, s, i, e) {
|
|
554
557
|
slideRegistry: u
|
555
558
|
};
|
556
559
|
}
|
557
|
-
function
|
560
|
+
function dn(t, n, r, s, c) {
|
558
561
|
const {
|
559
|
-
reachedAny:
|
560
|
-
removeOffset:
|
562
|
+
reachedAny: o,
|
563
|
+
removeOffset: e,
|
561
564
|
constrain: f
|
562
565
|
} = s;
|
563
|
-
function
|
564
|
-
return d.concat().sort((
|
566
|
+
function i(d) {
|
567
|
+
return d.concat().sort((m, g) => P(m) - P(g))[0];
|
565
568
|
}
|
566
569
|
function u(d) {
|
567
|
-
const
|
568
|
-
diff: h(
|
569
|
-
index:
|
570
|
-
})).sort((
|
570
|
+
const m = t ? e(d) : f(d), g = n.map((S, x) => ({
|
571
|
+
diff: h(S - m, 0),
|
572
|
+
index: x
|
573
|
+
})).sort((S, x) => P(S.diff) - P(x.diff)), {
|
571
574
|
index: a
|
572
|
-
} =
|
575
|
+
} = g[0];
|
573
576
|
return {
|
574
577
|
index: a,
|
575
|
-
distance:
|
578
|
+
distance: m
|
576
579
|
};
|
577
580
|
}
|
578
|
-
function h(d,
|
579
|
-
const
|
581
|
+
function h(d, m) {
|
582
|
+
const g = [d, d + r, d - r];
|
580
583
|
if (!t) return d;
|
581
|
-
if (!
|
582
|
-
const a =
|
583
|
-
return a.length ?
|
584
|
+
if (!m) return i(g);
|
585
|
+
const a = g.filter((S) => Tt(S) === m);
|
586
|
+
return a.length ? i(a) : H(g) - r;
|
584
587
|
}
|
585
|
-
function l(d,
|
586
|
-
const
|
588
|
+
function l(d, m) {
|
589
|
+
const g = n[d] - c.get(), a = h(g, m);
|
587
590
|
return {
|
588
591
|
index: d,
|
589
592
|
distance: a
|
590
593
|
};
|
591
594
|
}
|
592
|
-
function
|
593
|
-
const
|
595
|
+
function p(d, m) {
|
596
|
+
const g = c.get() + d, {
|
594
597
|
index: a,
|
595
|
-
distance:
|
596
|
-
} = u(
|
597
|
-
if (!
|
598
|
+
distance: S
|
599
|
+
} = u(g), x = !t && o(g);
|
600
|
+
if (!m || x) return {
|
598
601
|
index: a,
|
599
602
|
distance: d
|
600
603
|
};
|
601
|
-
const
|
604
|
+
const T = n[a] - S, M = d + h(T, 0);
|
602
605
|
return {
|
603
606
|
index: a,
|
604
|
-
distance:
|
607
|
+
distance: M
|
605
608
|
};
|
606
609
|
}
|
607
610
|
return {
|
608
|
-
byDistance:
|
611
|
+
byDistance: p,
|
609
612
|
byIndex: l,
|
610
613
|
shortcut: h
|
611
614
|
};
|
612
615
|
}
|
613
|
-
function
|
616
|
+
function pn(t, n, r, s, c, o, e) {
|
614
617
|
function f(l) {
|
615
|
-
const
|
616
|
-
|
618
|
+
const p = l.distance, b = l.index !== n.get();
|
619
|
+
o.add(p), p && (s.duration() ? t.start() : (t.update(), t.render(1), t.update())), b && (r.set(n.get()), n.set(l.index), e.emit("select"));
|
617
620
|
}
|
618
|
-
function
|
619
|
-
const
|
620
|
-
f(
|
621
|
+
function i(l, p) {
|
622
|
+
const b = c.byDistance(l, p);
|
623
|
+
f(b);
|
621
624
|
}
|
622
|
-
function u(l,
|
623
|
-
const
|
625
|
+
function u(l, p) {
|
626
|
+
const b = n.clone().set(l), d = c.byIndex(b.get(), p);
|
624
627
|
f(d);
|
625
628
|
}
|
626
629
|
return {
|
627
|
-
distance:
|
630
|
+
distance: i,
|
628
631
|
index: u
|
629
632
|
};
|
630
633
|
}
|
631
|
-
function
|
634
|
+
function mn(t, n, r, s, c, o, e) {
|
632
635
|
let f = 0;
|
633
|
-
function
|
634
|
-
|
636
|
+
function i() {
|
637
|
+
o.add(document, "keydown", u, !1), n.forEach(h);
|
635
638
|
}
|
636
|
-
function u(
|
637
|
-
|
639
|
+
function u(p) {
|
640
|
+
p.code === "Tab" && (f = (/* @__PURE__ */ new Date()).getTime());
|
638
641
|
}
|
639
|
-
function h(
|
640
|
-
const
|
642
|
+
function h(p) {
|
643
|
+
const b = () => {
|
641
644
|
if ((/* @__PURE__ */ new Date()).getTime() - f > 10) return;
|
642
645
|
t.scrollLeft = 0;
|
643
|
-
const
|
644
|
-
|
646
|
+
const g = n.indexOf(p), a = r.findIndex((S) => S.includes(g));
|
647
|
+
Et(a) && (c.useDuration(0), s.index(a, 0), e.emit("slideFocus"));
|
645
648
|
};
|
646
|
-
|
649
|
+
o.add(p, "focus", b, {
|
647
650
|
passive: !0,
|
648
651
|
capture: !0
|
649
652
|
});
|
650
653
|
}
|
651
654
|
return {
|
652
|
-
init:
|
655
|
+
init: i
|
653
656
|
};
|
654
657
|
}
|
655
|
-
function
|
658
|
+
function ct(t) {
|
656
659
|
let n = t;
|
657
660
|
function r() {
|
658
661
|
return n;
|
659
662
|
}
|
660
|
-
function s(
|
661
|
-
n =
|
663
|
+
function s(i) {
|
664
|
+
n = e(i);
|
662
665
|
}
|
663
|
-
function i
|
664
|
-
n +=
|
666
|
+
function c(i) {
|
667
|
+
n += e(i);
|
665
668
|
}
|
666
|
-
function
|
667
|
-
n -=
|
669
|
+
function o(i) {
|
670
|
+
n -= e(i);
|
668
671
|
}
|
669
|
-
function
|
670
|
-
return
|
672
|
+
function e(i) {
|
673
|
+
return Et(i) ? i : i.get();
|
671
674
|
}
|
672
675
|
return {
|
673
676
|
get: r,
|
674
677
|
set: s,
|
675
|
-
add:
|
676
|
-
subtract:
|
678
|
+
add: c,
|
679
|
+
subtract: o
|
677
680
|
};
|
678
681
|
}
|
679
|
-
function
|
680
|
-
const r = t.scroll === "x" ?
|
681
|
-
let
|
682
|
-
function
|
682
|
+
function kt(t, n) {
|
683
|
+
const r = t.scroll === "x" ? o : e, s = n.style;
|
684
|
+
let c = !1;
|
685
|
+
function o(l) {
|
683
686
|
return `translate3d(${l}px,0px,0px)`;
|
684
687
|
}
|
685
|
-
function
|
688
|
+
function e(l) {
|
686
689
|
return `translate3d(0px,${l}px,0px)`;
|
687
690
|
}
|
688
691
|
function f(l) {
|
689
|
-
|
692
|
+
c || (s.transform = r(t.direction(l)));
|
690
693
|
}
|
691
|
-
function
|
692
|
-
|
694
|
+
function i(l) {
|
695
|
+
c = !l;
|
693
696
|
}
|
694
697
|
function u() {
|
695
|
-
|
698
|
+
c || (s.transform = "", n.getAttribute("style") || n.removeAttribute("style"));
|
696
699
|
}
|
697
700
|
return {
|
698
701
|
clear: u,
|
699
702
|
to: f,
|
700
|
-
toggleActive:
|
703
|
+
toggleActive: i
|
701
704
|
};
|
702
705
|
}
|
703
|
-
function
|
704
|
-
const h =
|
705
|
-
function
|
706
|
-
return
|
707
|
-
}
|
708
|
-
function d(
|
709
|
-
return
|
710
|
-
}
|
711
|
-
function
|
712
|
-
return
|
713
|
-
start:
|
714
|
-
end:
|
706
|
+
function gn(t, n, r, s, c, o, e, f, i) {
|
707
|
+
const h = ft(c), l = ft(c).reverse(), p = a().concat(S());
|
708
|
+
function b(L, E) {
|
709
|
+
return L.reduce((I, D) => I - c[D], E);
|
710
|
+
}
|
711
|
+
function d(L, E) {
|
712
|
+
return L.reduce((I, D) => b(I, E) > 0 ? I.concat([D]) : I, []);
|
713
|
+
}
|
714
|
+
function m(L) {
|
715
|
+
return o.map((E, I) => ({
|
716
|
+
start: E - s[I] + 0.5 + L,
|
717
|
+
end: E + n - 0.5 + L
|
715
718
|
}));
|
716
719
|
}
|
717
|
-
function
|
718
|
-
const
|
719
|
-
return
|
720
|
-
const V =
|
720
|
+
function g(L, E, I) {
|
721
|
+
const D = m(E);
|
722
|
+
return L.map((F) => {
|
723
|
+
const V = I ? 0 : -r, _ = I ? r : 0, B = I ? "end" : "start", q = D[F][B];
|
721
724
|
return {
|
722
|
-
index:
|
723
|
-
loopPoint:
|
724
|
-
slideLocation:
|
725
|
-
translate:
|
726
|
-
target: () => f.get() >
|
725
|
+
index: F,
|
726
|
+
loopPoint: q,
|
727
|
+
slideLocation: ct(-1),
|
728
|
+
translate: kt(t, i[F]),
|
729
|
+
target: () => f.get() > q ? V : _
|
727
730
|
};
|
728
731
|
});
|
729
732
|
}
|
730
733
|
function a() {
|
731
|
-
const
|
732
|
-
return
|
734
|
+
const L = e[0], E = d(l, L);
|
735
|
+
return g(E, r, !1);
|
733
736
|
}
|
734
|
-
function
|
735
|
-
const
|
736
|
-
return
|
737
|
+
function S() {
|
738
|
+
const L = n - e[0] - 1, E = d(h, L);
|
739
|
+
return g(E, -r, !0);
|
737
740
|
}
|
738
|
-
function
|
739
|
-
return
|
740
|
-
index:
|
741
|
+
function x() {
|
742
|
+
return p.every(({
|
743
|
+
index: L
|
741
744
|
}) => {
|
742
|
-
const
|
743
|
-
return
|
745
|
+
const E = h.filter((I) => I !== L);
|
746
|
+
return b(E, n) <= 0.1;
|
744
747
|
});
|
745
748
|
}
|
746
|
-
function
|
747
|
-
|
749
|
+
function T() {
|
750
|
+
p.forEach((L) => {
|
748
751
|
const {
|
749
|
-
target:
|
750
|
-
translate:
|
751
|
-
slideLocation:
|
752
|
-
} =
|
753
|
-
|
752
|
+
target: E,
|
753
|
+
translate: I,
|
754
|
+
slideLocation: D
|
755
|
+
} = L, F = E();
|
756
|
+
F !== D.get() && (I.to(F), D.set(F));
|
754
757
|
});
|
755
758
|
}
|
756
|
-
function
|
757
|
-
|
759
|
+
function M() {
|
760
|
+
p.forEach((L) => L.translate.clear());
|
758
761
|
}
|
759
762
|
return {
|
760
|
-
canLoop:
|
761
|
-
clear:
|
762
|
-
loop:
|
763
|
-
loopPoints:
|
763
|
+
canLoop: x,
|
764
|
+
clear: M,
|
765
|
+
loop: T,
|
766
|
+
loopPoints: p
|
764
767
|
};
|
765
768
|
}
|
766
|
-
function
|
767
|
-
let s,
|
768
|
-
function
|
769
|
+
function hn(t, n, r) {
|
770
|
+
let s, c = !1;
|
771
|
+
function o(i) {
|
769
772
|
if (!r) return;
|
770
773
|
function u(h) {
|
771
774
|
for (const l of h)
|
772
775
|
if (l.type === "childList") {
|
773
|
-
|
776
|
+
i.reInit(), n.emit("slidesChanged");
|
774
777
|
break;
|
775
778
|
}
|
776
779
|
}
|
777
780
|
s = new MutationObserver((h) => {
|
778
|
-
|
781
|
+
c || (It(r) || r(i, h)) && u(h);
|
779
782
|
}), s.observe(t, {
|
780
783
|
childList: !0
|
781
784
|
});
|
782
785
|
}
|
783
|
-
function
|
784
|
-
s && s.disconnect(),
|
786
|
+
function e() {
|
787
|
+
s && s.disconnect(), c = !0;
|
785
788
|
}
|
786
789
|
return {
|
787
|
-
init:
|
788
|
-
destroy:
|
790
|
+
init: o,
|
791
|
+
destroy: e
|
789
792
|
};
|
790
793
|
}
|
791
|
-
function
|
792
|
-
const
|
793
|
-
let
|
794
|
+
function Sn(t, n, r, s) {
|
795
|
+
const c = {};
|
796
|
+
let o = null, e = null, f, i = !1;
|
794
797
|
function u() {
|
795
798
|
f = new IntersectionObserver((d) => {
|
796
|
-
|
797
|
-
const
|
798
|
-
|
799
|
-
}),
|
799
|
+
i || (d.forEach((m) => {
|
800
|
+
const g = n.indexOf(m.target);
|
801
|
+
c[g] = m;
|
802
|
+
}), o = null, e = null, r.emit("slidesInView"));
|
800
803
|
}, {
|
801
804
|
root: t.parentElement,
|
802
805
|
threshold: s
|
803
806
|
}), n.forEach((d) => f.observe(d));
|
804
807
|
}
|
805
808
|
function h() {
|
806
|
-
f && f.disconnect(),
|
809
|
+
f && f.disconnect(), i = !0;
|
807
810
|
}
|
808
811
|
function l(d) {
|
809
|
-
return
|
810
|
-
const a = parseInt(
|
811
|
-
isIntersecting:
|
812
|
-
} =
|
813
|
-
return (d &&
|
812
|
+
return at(c).reduce((m, g) => {
|
813
|
+
const a = parseInt(g), {
|
814
|
+
isIntersecting: S
|
815
|
+
} = c[a];
|
816
|
+
return (d && S || !d && !S) && m.push(a), m;
|
814
817
|
}, []);
|
815
818
|
}
|
816
|
-
function
|
817
|
-
if (d &&
|
818
|
-
if (!d &&
|
819
|
-
const
|
820
|
-
return d && (
|
819
|
+
function p(d = !0) {
|
820
|
+
if (d && o) return o;
|
821
|
+
if (!d && e) return e;
|
822
|
+
const m = l(d);
|
823
|
+
return d && (o = m), d || (e = m), m;
|
821
824
|
}
|
822
825
|
return {
|
823
826
|
init: u,
|
824
827
|
destroy: h,
|
825
|
-
get:
|
828
|
+
get: p
|
826
829
|
};
|
827
830
|
}
|
828
|
-
function
|
831
|
+
function yn(t, n, r, s, c, o) {
|
829
832
|
const {
|
830
|
-
measureSize:
|
833
|
+
measureSize: e,
|
831
834
|
startEdge: f,
|
832
|
-
endEdge:
|
833
|
-
} = t, u = r[0] &&
|
835
|
+
endEdge: i
|
836
|
+
} = t, u = r[0] && c, h = d(), l = m(), p = r.map(e), b = g();
|
834
837
|
function d() {
|
835
838
|
if (!u) return 0;
|
836
|
-
const
|
837
|
-
return
|
839
|
+
const S = r[0];
|
840
|
+
return P(n[f] - S[f]);
|
838
841
|
}
|
839
|
-
function
|
842
|
+
function m() {
|
840
843
|
if (!u) return 0;
|
841
|
-
const
|
842
|
-
return parseFloat(
|
844
|
+
const S = o.getComputedStyle(H(s));
|
845
|
+
return parseFloat(S.getPropertyValue(`margin-${i}`));
|
843
846
|
}
|
844
|
-
function
|
845
|
-
return r.map((
|
846
|
-
const
|
847
|
-
return
|
848
|
-
}).map(
|
847
|
+
function g() {
|
848
|
+
return r.map((S, x, T) => {
|
849
|
+
const M = !x, v = vt(T, x);
|
850
|
+
return M ? p[x] + h : v ? p[x] + l : T[x + 1][f] - S[f];
|
851
|
+
}).map(P);
|
849
852
|
}
|
850
853
|
return {
|
851
|
-
slideSizes:
|
852
|
-
slideSizesWithGaps:
|
854
|
+
slideSizes: p,
|
855
|
+
slideSizesWithGaps: b,
|
853
856
|
startGap: h,
|
854
857
|
endGap: l
|
855
858
|
};
|
856
859
|
}
|
857
|
-
function
|
860
|
+
function xn(t, n, r, s, c, o, e, f, i) {
|
858
861
|
const {
|
859
862
|
startEdge: u,
|
860
863
|
endEdge: h,
|
861
864
|
direction: l
|
862
|
-
} = t,
|
863
|
-
function
|
864
|
-
return
|
865
|
+
} = t, p = Et(r);
|
866
|
+
function b(a, S) {
|
867
|
+
return ft(a).filter((x) => x % S === 0).map((x) => a.slice(x, x + S));
|
865
868
|
}
|
866
869
|
function d(a) {
|
867
|
-
return a.length ?
|
868
|
-
const
|
869
|
-
return
|
870
|
-
}, []).map((
|
871
|
-
const
|
872
|
-
return a.slice(
|
870
|
+
return a.length ? ft(a).reduce((S, x, T) => {
|
871
|
+
const M = H(S) || 0, v = M === 0, L = x === dt(a), E = c[u] - o[M][u], I = c[u] - o[x][h], D = !s && v ? l(e) : 0, F = !s && L ? l(f) : 0, V = P(I - F - (E + D));
|
872
|
+
return T && V > n + i && S.push(x), L && S.push(a.length), S;
|
873
|
+
}, []).map((S, x, T) => {
|
874
|
+
const M = Math.max(T[x - 1] || 0);
|
875
|
+
return a.slice(M, S);
|
873
876
|
}) : [];
|
874
877
|
}
|
875
|
-
function
|
876
|
-
return
|
878
|
+
function m(a) {
|
879
|
+
return p ? b(a, r) : d(a);
|
877
880
|
}
|
878
881
|
return {
|
879
|
-
groupSlides:
|
882
|
+
groupSlides: m
|
880
883
|
};
|
881
884
|
}
|
882
|
-
function
|
885
|
+
function bn(t, n, r, s, c, o, e) {
|
883
886
|
const {
|
884
887
|
align: f,
|
885
|
-
axis:
|
888
|
+
axis: i,
|
886
889
|
direction: u,
|
887
890
|
startIndex: h,
|
888
891
|
loop: l,
|
889
|
-
duration:
|
890
|
-
dragFree:
|
892
|
+
duration: p,
|
893
|
+
dragFree: b,
|
891
894
|
dragThreshold: d,
|
892
|
-
inViewThreshold:
|
893
|
-
slidesToScroll:
|
895
|
+
inViewThreshold: m,
|
896
|
+
slidesToScroll: g,
|
894
897
|
skipSnaps: a,
|
895
|
-
containScroll:
|
896
|
-
watchResize:
|
897
|
-
watchSlides:
|
898
|
-
watchDrag:
|
899
|
-
} =
|
900
|
-
slideSizes:
|
901
|
-
slideSizesWithGaps:
|
902
|
-
startGap:
|
903
|
-
endGap:
|
904
|
-
} =
|
905
|
-
snaps:
|
898
|
+
containScroll: S,
|
899
|
+
watchResize: x,
|
900
|
+
watchSlides: T,
|
901
|
+
watchDrag: M
|
902
|
+
} = o, v = 2, L = tn(), E = L.measure(n), I = r.map(L.measure), D = Jt(i, u), F = D.measureSize(E), V = nn(F), _ = Yt(f, F), B = !l && !!S, q = l || !!S, {
|
903
|
+
slideSizes: W,
|
904
|
+
slideSizesWithGaps: U,
|
905
|
+
startGap: J,
|
906
|
+
endGap: $
|
907
|
+
} = yn(D, E, I, r, q, c), tt = xn(D, F, g, l, E, I, J, $, v), {
|
908
|
+
snaps: Q,
|
906
909
|
snapsAligned: et
|
907
|
-
} =
|
908
|
-
snapsContained:
|
909
|
-
scrollContainLimit:
|
910
|
-
} =
|
911
|
-
limit:
|
912
|
-
} =
|
913
|
-
dragHandler:
|
914
|
-
scrollBody:
|
915
|
-
scrollBounds:
|
910
|
+
} = an(D, _, E, I, tt), K = -H(Q) + H(U), {
|
911
|
+
snapsContained: st,
|
912
|
+
scrollContainLimit: rt
|
913
|
+
} = rn(F, K, et, S, v), z = B ? st : et, {
|
914
|
+
limit: G
|
915
|
+
} = cn(K, z, l), N = Bt(dt(z), h, l), ot = N.clone(), k = ft(r), O = ({
|
916
|
+
dragHandler: Z,
|
917
|
+
scrollBody: St,
|
918
|
+
scrollBounds: yt,
|
916
919
|
options: {
|
917
|
-
loop:
|
920
|
+
loop: pt
|
918
921
|
}
|
919
|
-
}) => {
|
920
|
-
|
922
|
+
}, xt) => {
|
923
|
+
pt || yt.constrain(Z.pointerDown()), St.seek(xt);
|
921
924
|
}, y = ({
|
922
|
-
scrollBody:
|
923
|
-
translate:
|
924
|
-
location:
|
925
|
-
offsetLocation:
|
926
|
-
scrollLooper:
|
927
|
-
slideLooper:
|
928
|
-
dragHandler:
|
929
|
-
animation:
|
930
|
-
eventHandler:
|
925
|
+
scrollBody: Z,
|
926
|
+
translate: St,
|
927
|
+
location: yt,
|
928
|
+
offsetLocation: pt,
|
929
|
+
scrollLooper: xt,
|
930
|
+
slideLooper: Rt,
|
931
|
+
dragHandler: qt,
|
932
|
+
animation: Ut,
|
933
|
+
eventHandler: Ft,
|
934
|
+
scrollBounds: $t,
|
931
935
|
options: {
|
932
|
-
loop:
|
936
|
+
loop: Pt
|
933
937
|
}
|
934
|
-
},
|
935
|
-
const
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
} =
|
938
|
+
}, Ot) => {
|
939
|
+
const Ct = Z.settled(), Qt = !$t.shouldConstrain(), wt = Pt ? Ct : Ct && Qt;
|
940
|
+
wt && !qt.pointerDown() && (Ut.stop(), Ft.emit("settle")), wt || Ft.emit("scroll");
|
941
|
+
const Kt = yt.get() * Ot + X.get() * (1 - Ot);
|
942
|
+
pt.set(Kt), Pt && (xt.loop(Z.direction()), Rt.loop()), St.to(pt.get());
|
943
|
+
}, A = _t(s, c, (Z) => O(ht, Z), (Z) => y(ht, Z)), C = 0.68, w = z[N.get()], j = ct(w), X = ct(w), R = ct(w), Y = ct(w), it = on(j, R, X, Y, p, C), mt = dn(l, z, K, G, Y), gt = pn(A, N, ot, it, mt, Y, e), Dt = fn(G), At = lt(), Gt = Sn(n, r, e, m), {
|
944
|
+
slideRegistry: Mt
|
945
|
+
} = ln(B, S, z, rt, tt, k), jt = mn(t, r, Mt, gt, it, At, e), ht = {
|
940
946
|
ownerDocument: s,
|
941
|
-
ownerWindow:
|
942
|
-
eventHandler:
|
943
|
-
containerRect:
|
944
|
-
slideRects:
|
945
|
-
animation:
|
946
|
-
axis:
|
947
|
-
dragHandler:
|
948
|
-
eventStore:
|
947
|
+
ownerWindow: c,
|
948
|
+
eventHandler: e,
|
949
|
+
containerRect: E,
|
950
|
+
slideRects: I,
|
951
|
+
animation: A,
|
952
|
+
axis: D,
|
953
|
+
dragHandler: Zt(D, t, s, c, Y, Wt(D, c), j, A, gt, it, mt, N, e, V, b, d, a, C, M),
|
954
|
+
eventStore: At,
|
949
955
|
percentOfView: V,
|
950
956
|
index: N,
|
951
957
|
indexPrevious: ot,
|
952
|
-
limit:
|
953
|
-
location:
|
954
|
-
offsetLocation:
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
958
|
+
limit: G,
|
959
|
+
location: j,
|
960
|
+
offsetLocation: R,
|
961
|
+
previousLocation: X,
|
962
|
+
options: o,
|
963
|
+
resizeHandler: en(n, e, c, r, D, x, L),
|
964
|
+
scrollBody: it,
|
965
|
+
scrollBounds: sn(G, R, Y, it, V),
|
966
|
+
scrollLooper: un(K, G, R, [j, R, X, Y]),
|
967
|
+
scrollProgress: Dt,
|
968
|
+
scrollSnapList: z.map(Dt.get),
|
962
969
|
scrollSnaps: z,
|
963
|
-
scrollTarget:
|
964
|
-
scrollTo:
|
965
|
-
slideLooper:
|
966
|
-
slideFocus:
|
967
|
-
slidesHandler:
|
968
|
-
slidesInView:
|
970
|
+
scrollTarget: mt,
|
971
|
+
scrollTo: gt,
|
972
|
+
slideLooper: gn(D, F, K, W, U, Q, z, R, r),
|
973
|
+
slideFocus: jt,
|
974
|
+
slidesHandler: hn(n, e, T),
|
975
|
+
slidesInView: Gt,
|
969
976
|
slideIndexes: k,
|
970
|
-
slideRegistry:
|
971
|
-
slidesToScroll:
|
972
|
-
target:
|
973
|
-
translate:
|
977
|
+
slideRegistry: Mt,
|
978
|
+
slidesToScroll: tt,
|
979
|
+
target: Y,
|
980
|
+
translate: kt(D, n)
|
974
981
|
};
|
975
|
-
return
|
982
|
+
return ht;
|
976
983
|
}
|
977
|
-
function
|
984
|
+
function Ln() {
|
978
985
|
let t = {}, n;
|
979
986
|
function r(u) {
|
980
987
|
n = u;
|
@@ -982,28 +989,28 @@ function Sn() {
|
|
982
989
|
function s(u) {
|
983
990
|
return t[u] || [];
|
984
991
|
}
|
985
|
-
function
|
986
|
-
return s(u).forEach((h) => h(n, u)),
|
987
|
-
}
|
988
|
-
function e(u, h) {
|
989
|
-
return t[u] = s(u).concat([h]), c;
|
992
|
+
function c(u) {
|
993
|
+
return s(u).forEach((h) => h(n, u)), i;
|
990
994
|
}
|
991
995
|
function o(u, h) {
|
992
|
-
return t[u] = s(u).
|
996
|
+
return t[u] = s(u).concat([h]), i;
|
997
|
+
}
|
998
|
+
function e(u, h) {
|
999
|
+
return t[u] = s(u).filter((l) => l !== h), i;
|
993
1000
|
}
|
994
1001
|
function f() {
|
995
1002
|
t = {};
|
996
1003
|
}
|
997
|
-
const
|
1004
|
+
const i = {
|
998
1005
|
init: r,
|
999
|
-
emit:
|
1000
|
-
off:
|
1001
|
-
on:
|
1006
|
+
emit: c,
|
1007
|
+
off: e,
|
1008
|
+
on: o,
|
1002
1009
|
clear: f
|
1003
1010
|
};
|
1004
|
-
return
|
1011
|
+
return i;
|
1005
1012
|
}
|
1006
|
-
const
|
1013
|
+
const En = {
|
1007
1014
|
align: "center",
|
1008
1015
|
axis: "x",
|
1009
1016
|
container: null,
|
@@ -1024,16 +1031,16 @@ const yn = {
|
|
1024
1031
|
watchResize: !0,
|
1025
1032
|
watchSlides: !0
|
1026
1033
|
};
|
1027
|
-
function
|
1028
|
-
function n(
|
1029
|
-
return
|
1034
|
+
function In(t) {
|
1035
|
+
function n(o, e) {
|
1036
|
+
return zt(o, e || {});
|
1030
1037
|
}
|
1031
|
-
function r(
|
1032
|
-
const
|
1033
|
-
return n(
|
1038
|
+
function r(o) {
|
1039
|
+
const e = o.breakpoints || {}, f = at(e).filter((i) => t.matchMedia(i).matches).map((i) => e[i]).reduce((i, u) => n(i, u), {});
|
1040
|
+
return n(o, f);
|
1034
1041
|
}
|
1035
|
-
function s(
|
1036
|
-
return
|
1042
|
+
function s(o) {
|
1043
|
+
return o.map((e) => at(e.breakpoints || {})).reduce((e, f) => e.concat(f), []).map(t.matchMedia);
|
1037
1044
|
}
|
1038
1045
|
return {
|
1039
1046
|
mergeOptions: n,
|
@@ -1041,146 +1048,146 @@ function bn(t) {
|
|
1041
1048
|
optionsMediaQueries: s
|
1042
1049
|
};
|
1043
1050
|
}
|
1044
|
-
function
|
1051
|
+
function Tn(t) {
|
1045
1052
|
let n = [];
|
1046
|
-
function r(
|
1047
|
-
return n =
|
1053
|
+
function r(o, e) {
|
1054
|
+
return n = e.filter(({
|
1048
1055
|
options: f
|
1049
|
-
}) => t.optionsAtMedia(f).active !== !1), n.forEach((f) => f.init(
|
1050
|
-
[
|
1056
|
+
}) => t.optionsAtMedia(f).active !== !1), n.forEach((f) => f.init(o, t)), e.reduce((f, i) => Object.assign(f, {
|
1057
|
+
[i.name]: i
|
1051
1058
|
}), {});
|
1052
1059
|
}
|
1053
1060
|
function s() {
|
1054
|
-
n = n.filter((
|
1061
|
+
n = n.filter((o) => o.destroy());
|
1055
1062
|
}
|
1056
1063
|
return {
|
1057
1064
|
init: r,
|
1058
1065
|
destroy: s
|
1059
1066
|
};
|
1060
1067
|
}
|
1061
|
-
function
|
1062
|
-
const s = t.ownerDocument,
|
1068
|
+
function Ht(t, n, r) {
|
1069
|
+
const s = t.ownerDocument, c = s.defaultView, o = In(c), e = Tn(o), f = lt(), i = Ln(), {
|
1063
1070
|
mergeOptions: u,
|
1064
1071
|
optionsAtMedia: h,
|
1065
1072
|
optionsMediaQueries: l
|
1066
|
-
} =
|
1067
|
-
on:
|
1068
|
-
off:
|
1073
|
+
} = o, {
|
1074
|
+
on: p,
|
1075
|
+
off: b,
|
1069
1076
|
emit: d
|
1070
|
-
} =
|
1071
|
-
let
|
1072
|
-
function
|
1077
|
+
} = i, m = F;
|
1078
|
+
let g = !1, a, S = u(En, Ht.globalOptions), x = u(S), T = [], M, v, L;
|
1079
|
+
function E() {
|
1073
1080
|
const {
|
1074
|
-
container:
|
1081
|
+
container: O,
|
1075
1082
|
slides: y
|
1076
|
-
} =
|
1077
|
-
|
1078
|
-
const C =
|
1079
|
-
|
1080
|
-
}
|
1081
|
-
function
|
1082
|
-
const y =
|
1083
|
-
if (
|
1084
|
-
const
|
1083
|
+
} = x;
|
1084
|
+
v = (bt(O) ? t.querySelector(O) : O) || t.children[0];
|
1085
|
+
const C = bt(y) ? v.querySelectorAll(y) : y;
|
1086
|
+
L = [].slice.call(C || v.children);
|
1087
|
+
}
|
1088
|
+
function I(O) {
|
1089
|
+
const y = bn(t, v, L, s, c, O, i);
|
1090
|
+
if (O.loop && !y.slideLooper.canLoop()) {
|
1091
|
+
const A = Object.assign({}, O, {
|
1085
1092
|
loop: !1
|
1086
1093
|
});
|
1087
|
-
return
|
1094
|
+
return I(A);
|
1088
1095
|
}
|
1089
1096
|
return y;
|
1090
1097
|
}
|
1091
|
-
function
|
1092
|
-
|
1093
|
-
options:
|
1094
|
-
}) =>
|
1098
|
+
function D(O, y) {
|
1099
|
+
g || (S = u(S, O), x = h(S), T = y || T, E(), a = I(x), l([S, ...T.map(({
|
1100
|
+
options: A
|
1101
|
+
}) => A)]).forEach((A) => f.add(A, "change", F)), x.active && (a.translate.to(a.location.get()), a.animation.init(), a.slidesInView.init(), a.slideFocus.init(), a.eventHandler.init(k), a.resizeHandler.init(k), a.slidesHandler.init(k), a.options.loop && a.slideLooper.loop(), v.offsetParent && L.length && a.dragHandler.init(k), M = e.init(k, T)));
|
1095
1102
|
}
|
1096
|
-
function O
|
1097
|
-
const
|
1098
|
-
V(),
|
1099
|
-
startIndex:
|
1100
|
-
},
|
1103
|
+
function F(O, y) {
|
1104
|
+
const A = Q();
|
1105
|
+
V(), D(u({
|
1106
|
+
startIndex: A
|
1107
|
+
}, O), y), i.emit("reInit");
|
1101
1108
|
}
|
1102
1109
|
function V() {
|
1103
|
-
a.dragHandler.destroy(), a.eventStore.clear(), a.translate.clear(), a.slideLooper.clear(), a.resizeHandler.destroy(), a.slidesHandler.destroy(), a.slidesInView.destroy(), a.animation.destroy(),
|
1110
|
+
a.dragHandler.destroy(), a.eventStore.clear(), a.translate.clear(), a.slideLooper.clear(), a.resizeHandler.destroy(), a.slidesHandler.destroy(), a.slidesInView.destroy(), a.animation.destroy(), e.destroy(), f.clear();
|
1104
1111
|
}
|
1105
|
-
function
|
1106
|
-
|
1112
|
+
function _() {
|
1113
|
+
g || (g = !0, f.clear(), V(), i.emit("destroy"), i.clear());
|
1107
1114
|
}
|
1108
|
-
function B(
|
1109
|
-
!
|
1115
|
+
function B(O, y, A) {
|
1116
|
+
!x.active || g || (a.scrollBody.useBaseFriction().useDuration(y === !0 ? 0 : x.duration), a.scrollTo.index(O, A || 0));
|
1110
1117
|
}
|
1111
|
-
function
|
1118
|
+
function q(O) {
|
1112
1119
|
const y = a.index.add(1).get();
|
1113
|
-
B(y,
|
1120
|
+
B(y, O, -1);
|
1114
1121
|
}
|
1115
|
-
function
|
1122
|
+
function W(O) {
|
1116
1123
|
const y = a.index.add(-1).get();
|
1117
|
-
B(y,
|
1124
|
+
B(y, O, 1);
|
1118
1125
|
}
|
1119
|
-
function
|
1120
|
-
return a.index.add(1).get() !==
|
1126
|
+
function U() {
|
1127
|
+
return a.index.add(1).get() !== Q();
|
1121
1128
|
}
|
1122
|
-
function
|
1123
|
-
return a.index.add(-1).get() !==
|
1129
|
+
function J() {
|
1130
|
+
return a.index.add(-1).get() !== Q();
|
1124
1131
|
}
|
1125
|
-
function
|
1132
|
+
function $() {
|
1126
1133
|
return a.scrollSnapList;
|
1127
1134
|
}
|
1128
|
-
function
|
1135
|
+
function tt() {
|
1129
1136
|
return a.scrollProgress.get(a.location.get());
|
1130
1137
|
}
|
1131
|
-
function
|
1138
|
+
function Q() {
|
1132
1139
|
return a.index.get();
|
1133
1140
|
}
|
1134
1141
|
function et() {
|
1135
1142
|
return a.indexPrevious.get();
|
1136
1143
|
}
|
1137
|
-
function
|
1144
|
+
function K() {
|
1138
1145
|
return a.slidesInView.get();
|
1139
1146
|
}
|
1140
|
-
function
|
1147
|
+
function st() {
|
1141
1148
|
return a.slidesInView.get(!1);
|
1142
1149
|
}
|
1143
|
-
function
|
1144
|
-
return
|
1150
|
+
function rt() {
|
1151
|
+
return M;
|
1145
1152
|
}
|
1146
1153
|
function z() {
|
1147
1154
|
return a;
|
1148
1155
|
}
|
1149
|
-
function
|
1156
|
+
function G() {
|
1150
1157
|
return t;
|
1151
1158
|
}
|
1152
1159
|
function N() {
|
1153
|
-
return
|
1160
|
+
return v;
|
1154
1161
|
}
|
1155
1162
|
function ot() {
|
1156
|
-
return
|
1163
|
+
return L;
|
1157
1164
|
}
|
1158
1165
|
const k = {
|
1159
|
-
canScrollNext:
|
1160
|
-
canScrollPrev:
|
1166
|
+
canScrollNext: U,
|
1167
|
+
canScrollPrev: J,
|
1161
1168
|
containerNode: N,
|
1162
1169
|
internalEngine: z,
|
1163
|
-
destroy:
|
1164
|
-
off:
|
1165
|
-
on:
|
1170
|
+
destroy: _,
|
1171
|
+
off: b,
|
1172
|
+
on: p,
|
1166
1173
|
emit: d,
|
1167
|
-
plugins:
|
1174
|
+
plugins: rt,
|
1168
1175
|
previousScrollSnap: et,
|
1169
|
-
reInit:
|
1170
|
-
rootNode:
|
1171
|
-
scrollNext:
|
1172
|
-
scrollPrev:
|
1173
|
-
scrollProgress:
|
1174
|
-
scrollSnapList:
|
1176
|
+
reInit: m,
|
1177
|
+
rootNode: G,
|
1178
|
+
scrollNext: q,
|
1179
|
+
scrollPrev: W,
|
1180
|
+
scrollProgress: tt,
|
1181
|
+
scrollSnapList: $,
|
1175
1182
|
scrollTo: B,
|
1176
|
-
selectedScrollSnap:
|
1183
|
+
selectedScrollSnap: Q,
|
1177
1184
|
slideNodes: ot,
|
1178
|
-
slidesInView:
|
1179
|
-
slidesNotInView:
|
1185
|
+
slidesInView: K,
|
1186
|
+
slidesNotInView: st
|
1180
1187
|
};
|
1181
|
-
return
|
1188
|
+
return D(n, r), setTimeout(() => i.emit("init"), 0), k;
|
1182
1189
|
}
|
1183
|
-
|
1190
|
+
Ht.globalOptions = void 0;
|
1184
1191
|
export {
|
1185
|
-
|
1192
|
+
Ht as default
|
1186
1193
|
};
|