@expofp/floorplan 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/CookieConsent-CXdWbmhr.js +7810 -0
- package/dist/browser/Debug-DoJ9mct3.js +51 -0
- package/dist/browser/Demo-BEQponkS.js +65 -0
- package/dist/browser/Free-UAsV9h8C.js +65 -0
- package/dist/browser/Gallery-BgXxqVXz.js +3257 -0
- package/dist/browser/GpsLoader-CgbTy8Hz.js +152 -0
- package/dist/browser/KioskStore-YLbphfOD.js +212 -0
- package/dist/browser/Mapbox-DpLJ3tpl.js +120 -0
- package/dist/browser/SetKioskMode-CN5fJClI.js +49 -0
- package/dist/browser/ShowKiosk-vj5-CuR5.js +25 -0
- package/dist/browser/ThreeComponent-jLYP_yNl.js +1493 -0
- package/dist/browser/TouchHand-BbwYQQhu.js +66 -0
- package/dist/browser/ViewerMenuPanel-4kghKIxV.js +106 -0
- package/dist/browser/add-debug-secret-listener-DM6KcZ0J.js +26 -0
- package/dist/browser/boolean-editor-BrtABJXb.js +206 -0
- package/dist/browser/bundle.json +70 -40
- package/dist/browser/chunk-CG6jx9YN.js +28 -0
- package/dist/browser/classnames-DeFT1CBt.js +39 -0
- package/dist/browser/client-B6hKytWh.js +7601 -0
- package/dist/browser/data-BsqGAaoU.js +27969 -0
- package/dist/browser/debug-overlay-Cb6jZH1M.js +3995 -0
- package/dist/browser/debug-ui-XBqahA1W.js +86 -0
- package/dist/browser/dist-BcuX1Cs2.js +2581 -0
- package/dist/browser/favicon-Caa4UHOv.js +12 -0
- package/dist/browser/fetch-retry.umd-D6o13_3S.js +78 -0
- package/dist/browser/flex-glIwYu7S.js +1045 -0
- package/dist/browser/floorplan.ready-Dkfm7Nqq.js +1310 -0
- package/dist/browser/fuse-CrFUY0W8.js +887 -0
- package/dist/browser/index.js +10628 -12440
- package/dist/browser/jsx-runtime-P5gPgaNY.js +30 -0
- package/dist/browser/lib-BGCrbI0c.js +1859 -0
- package/dist/browser/main-B7nu_ayH.js +289 -0
- package/dist/browser/mobx-BwL1_Ioa.js +23 -0
- package/dist/browser/particles.min-r4ucWEQe.js +133 -0
- package/dist/browser/prop-types-_4KGi_BP.js +57 -0
- package/dist/browser/react-dom-BeKu02fc.js +139 -0
- package/dist/browser/reset-all-settings-CH3gzkuQ.js +17 -0
- package/dist/browser/settings-D1gM4Wtx.js +69 -0
- package/dist/browser/src--OC9EQnB.js +19 -0
- package/dist/browser/store-BpwlrbtP.js +36100 -0
- package/dist/browser/ui-Cy6VKwPB.js +33 -0
- package/dist/esm/components/Map/traffic/useBuildRoute.js +2 -2
- package/dist/esm/components/Map/traffic/useManageTraffic.js +1 -1
- package/dist/esm/store/RootStore.js +1 -1
- package/package.json +4 -4
- package/dist/browser/Debug-b2YI2Uxo.js +0 -40
- package/dist/browser/Demo-aEKqZbJJ.js +0 -47
- package/dist/browser/Free-BGr4o53R.js +0 -51
- package/dist/browser/Gallery-C9n64fhu.js +0 -71
- package/dist/browser/GpsLoader-ChxBR2EI.js +0 -140
- package/dist/browser/KioskStore-DkCSeq5I.js +0 -225
- package/dist/browser/Mapbox-Cl0Wxz2h.js +0 -118
- package/dist/browser/SetKioskMode-D3EJeF9c.js +0 -249
- package/dist/browser/ShowKiosk-Bs5q-1RZ.js +0 -35
- package/dist/browser/ThreeComponent-CSsqNYDu.js +0 -1595
- package/dist/browser/ViewerMenuPanel-BMmB1p03.js +0 -77
- package/dist/browser/boolean-editor-DpnmndKH.js +0 -157
- package/dist/browser/client-CN_I7kK8.js +0 -10011
- package/dist/browser/data-CIAMSGsv.js +0 -22125
- package/dist/browser/debug-overlay-DjmA0D2r.js +0 -3675
- package/dist/browser/debug-ui-D1QGTN8V.js +0 -67
- package/dist/browser/favicon-BpTKNfwa.js +0 -13
- package/dist/browser/fetch-retry.umd-B8hV1FNr.js +0 -123
- package/dist/browser/flex-09atkOGP.js +0 -400
- package/dist/browser/floorplan.ready-BQetaqdP.js +0 -57653
- package/dist/browser/index-Bw6xZlSd.js +0 -161
- package/dist/browser/index-C71k7nSe.js +0 -3244
- package/dist/browser/index-CWLY6XdC.js +0 -92
- package/dist/browser/index-D9pdVw-U.js +0 -882
- package/dist/browser/index-DPSQIIUy.js +0 -57
- package/dist/browser/index-jp-Zhdyp.js +0 -54
- package/dist/browser/jsx-runtime-CoKhM3tL.js +0 -40
- package/dist/browser/main-DxaHLbma.js +0 -359
- package/dist/browser/particles.min-CsHbc6cO.js +0 -143
|
@@ -0,0 +1,3257 @@
|
|
|
1
|
+
function __vite_inject_css__(css, id){ if (typeof document==='undefined') return; var parent=(typeof window!=='undefined'&&window.__efpShadowDOMStyleParent)||document.head; var s=document.createElement('style'); s.setAttribute('data-chunk-style', id); s.appendChild(document.createTextNode(css)); parent.appendChild(s);}
|
|
2
|
+
(function() {
|
|
3
|
+
try {
|
|
4
|
+
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
5
|
+
e.SENTRY_RELEASE = { id: "3.0.2" };
|
|
6
|
+
var t = new e.Error().stack;
|
|
7
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "dad92f03-82da-4360-ba25-23b779105862", e._sentryDebugIdIdentifier = "sentry-dbid-dad92f03-82da-4360-ba25-23b779105862");
|
|
8
|
+
} catch {}
|
|
9
|
+
})();
|
|
10
|
+
import { n as e, r as t } from "./chunk-CG6jx9YN.js";
|
|
11
|
+
import { n, x as r } from "./index.js";
|
|
12
|
+
import { t as i } from "./react-dom-BeKu02fc.js";
|
|
13
|
+
import { t as a } from "./jsx-runtime-P5gPgaNY.js";
|
|
14
|
+
import { t as o } from "./classnames-DeFT1CBt.js";
|
|
15
|
+
import { Un as s, o as c } from "./store-BpwlrbtP.js";
|
|
16
|
+
//#region src/utils/getRenderTargetFromRoot.ts
|
|
17
|
+
var l = /* @__PURE__ */ t(n(), 1), u = /* @__PURE__ */ t(i(), 1), d = a(), f = /* @__PURE__ */ t(o(), 1);
|
|
18
|
+
function p(e) {
|
|
19
|
+
var t;
|
|
20
|
+
if (!e) return console.error("[getRenderTargetFromRoot] rootElement is null"), null;
|
|
21
|
+
let n = e.firstElementChild;
|
|
22
|
+
if (n && n.shadowRoot) {
|
|
23
|
+
let e = n.shadowRoot.querySelector("#efp-layout");
|
|
24
|
+
if (e) return e;
|
|
25
|
+
}
|
|
26
|
+
return ((t = e.querySelector) == null ? void 0 : t.call(e, "#efp-layout")) || (console.error("[getRenderTargetFromRoot] rootElement is null"), null);
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/utils/useRenderTarget.ts
|
|
30
|
+
var m = () => {
|
|
31
|
+
let [e, t] = (0, l.useState)(() => p(c.rootElement));
|
|
32
|
+
return (0, l.useEffect)(() => {
|
|
33
|
+
var e, n;
|
|
34
|
+
if (typeof window > "u" || !c.rootElement) return;
|
|
35
|
+
let r = !1, i = null, a = () => {
|
|
36
|
+
let e = p(c.rootElement);
|
|
37
|
+
return e && !r ? (t((t) => t === e ? t : e), !0) : !1;
|
|
38
|
+
};
|
|
39
|
+
if (a()) return;
|
|
40
|
+
let o = (e = (n = c.rootElement.firstElementChild) == null ? void 0 : n.shadowRoot) == null ? c.rootElement : e;
|
|
41
|
+
return i = new MutationObserver(() => {
|
|
42
|
+
a() && i && i.disconnect();
|
|
43
|
+
}), i.observe(o, {
|
|
44
|
+
childList: !0,
|
|
45
|
+
subtree: !0
|
|
46
|
+
}), () => {
|
|
47
|
+
r = !0, i && i.disconnect();
|
|
48
|
+
};
|
|
49
|
+
}, [c.rootElement]), e;
|
|
50
|
+
}, h = ({ count: e, onFullscreen: t }) => /* @__PURE__ */ (0, d.jsxs)(d.Fragment, { children: [/* @__PURE__ */ (0, d.jsxs)("div", {
|
|
51
|
+
className: "gallery__badge gallery__badge-count",
|
|
52
|
+
children: [/* @__PURE__ */ (0, d.jsx)("i", { className: "icon-image" }), /* @__PURE__ */ (0, d.jsx)("span", { children: e })]
|
|
53
|
+
}), /* @__PURE__ */ (0, d.jsx)("div", {
|
|
54
|
+
className: "gallery__badge gallery__badge-fullscreen",
|
|
55
|
+
onClick: t,
|
|
56
|
+
children: /* @__PURE__ */ (0, d.jsx)("i", { className: "icon-maximize" })
|
|
57
|
+
})] }), g = new class {
|
|
58
|
+
constructor() {
|
|
59
|
+
this.cache = [], this.load = (e) => new Promise((t, n) => {
|
|
60
|
+
e || t(null);
|
|
61
|
+
var r = this.cache.filter((t) => t.src === e)[0];
|
|
62
|
+
r ? t(r) : (r = new Image(), r.crossOrigin = "anonymous", r.src = e, r.onload = () => {
|
|
63
|
+
this.cache.length > 10 && this.cache.shift(), this.cache.push(r), t(r);
|
|
64
|
+
}, r.onerror = (e) => {
|
|
65
|
+
n(e);
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}(), _ = ({ url: e, setHeight: t = !1, position: n = "center", isFullscreen: r = !1, leading: i = !1, fillMode: a = "contain", onImageLoadHeightUpdate: o }) => {
|
|
70
|
+
let s = (0, l.useRef)(null), c = (0, l.useRef)(null);
|
|
71
|
+
(0, l.useEffect)(() => {
|
|
72
|
+
!s.current || !c.current || !i || u(e);
|
|
73
|
+
}, [e]);
|
|
74
|
+
let u = async (e) => {
|
|
75
|
+
if (t) try {
|
|
76
|
+
let t = await g.load(e);
|
|
77
|
+
c.current.style.height = t.height * c.current.clientWidth / t.width + "px", o && o();
|
|
78
|
+
} catch {}
|
|
79
|
+
}, f = {
|
|
80
|
+
backgroundImage: `url("${e}")`,
|
|
81
|
+
backgroundSize: a,
|
|
82
|
+
backgroundRepeat: "no-repeat",
|
|
83
|
+
transition: i ? "all 0.5s ease 0s" : "none",
|
|
84
|
+
backgroundPosition: n
|
|
85
|
+
};
|
|
86
|
+
return /* @__PURE__ */ (0, d.jsx)("div", {
|
|
87
|
+
ref: c,
|
|
88
|
+
style: {
|
|
89
|
+
width: "100%",
|
|
90
|
+
height: i && !r ? "250px" : "100%"
|
|
91
|
+
},
|
|
92
|
+
children: /* @__PURE__ */ (0, d.jsx)("div", {
|
|
93
|
+
ref: s,
|
|
94
|
+
className: "gallery__img",
|
|
95
|
+
style: f
|
|
96
|
+
})
|
|
97
|
+
});
|
|
98
|
+
}, v = ({ url: e, position: t = "center", leading: n = !1, setHeight: r = !1, fillMode: i, onClick: a, onImageLoadHeightUpdate: o }) => /* @__PURE__ */ (0, d.jsx)("div", {
|
|
99
|
+
className: "gallery__item",
|
|
100
|
+
onClick: a,
|
|
101
|
+
children: /* @__PURE__ */ (0, d.jsx)(_, {
|
|
102
|
+
position: t,
|
|
103
|
+
fillMode: i,
|
|
104
|
+
url: e,
|
|
105
|
+
leading: n,
|
|
106
|
+
setHeight: r,
|
|
107
|
+
onImageLoadHeightUpdate: o
|
|
108
|
+
})
|
|
109
|
+
});
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region ../../node_modules/.pnpm/ssr-window@4.0.2/node_modules/ssr-window/ssr-window.esm.js
|
|
112
|
+
function y(e) {
|
|
113
|
+
return typeof e == "object" && !!e && "constructor" in e && e.constructor === Object;
|
|
114
|
+
}
|
|
115
|
+
function b(e = {}, t = {}) {
|
|
116
|
+
Object.keys(t).forEach((n) => {
|
|
117
|
+
e[n] === void 0 ? e[n] = t[n] : y(t[n]) && y(e[n]) && Object.keys(t[n]).length > 0 && b(e[n], t[n]);
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
var x = {
|
|
121
|
+
body: {},
|
|
122
|
+
addEventListener() {},
|
|
123
|
+
removeEventListener() {},
|
|
124
|
+
activeElement: {
|
|
125
|
+
blur() {},
|
|
126
|
+
nodeName: ""
|
|
127
|
+
},
|
|
128
|
+
querySelector() {
|
|
129
|
+
return null;
|
|
130
|
+
},
|
|
131
|
+
querySelectorAll() {
|
|
132
|
+
return [];
|
|
133
|
+
},
|
|
134
|
+
getElementById() {
|
|
135
|
+
return null;
|
|
136
|
+
},
|
|
137
|
+
createEvent() {
|
|
138
|
+
return { initEvent() {} };
|
|
139
|
+
},
|
|
140
|
+
createElement() {
|
|
141
|
+
return {
|
|
142
|
+
children: [],
|
|
143
|
+
childNodes: [],
|
|
144
|
+
style: {},
|
|
145
|
+
setAttribute() {},
|
|
146
|
+
getElementsByTagName() {
|
|
147
|
+
return [];
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
},
|
|
151
|
+
createElementNS() {
|
|
152
|
+
return {};
|
|
153
|
+
},
|
|
154
|
+
importNode() {
|
|
155
|
+
return null;
|
|
156
|
+
},
|
|
157
|
+
location: {
|
|
158
|
+
hash: "",
|
|
159
|
+
host: "",
|
|
160
|
+
hostname: "",
|
|
161
|
+
href: "",
|
|
162
|
+
origin: "",
|
|
163
|
+
pathname: "",
|
|
164
|
+
protocol: "",
|
|
165
|
+
search: ""
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
function S() {
|
|
169
|
+
let e = typeof document < "u" ? document : {};
|
|
170
|
+
return b(e, x), e;
|
|
171
|
+
}
|
|
172
|
+
var C = {
|
|
173
|
+
document: x,
|
|
174
|
+
navigator: { userAgent: "" },
|
|
175
|
+
location: {
|
|
176
|
+
hash: "",
|
|
177
|
+
host: "",
|
|
178
|
+
hostname: "",
|
|
179
|
+
href: "",
|
|
180
|
+
origin: "",
|
|
181
|
+
pathname: "",
|
|
182
|
+
protocol: "",
|
|
183
|
+
search: ""
|
|
184
|
+
},
|
|
185
|
+
history: {
|
|
186
|
+
replaceState() {},
|
|
187
|
+
pushState() {},
|
|
188
|
+
go() {},
|
|
189
|
+
back() {}
|
|
190
|
+
},
|
|
191
|
+
CustomEvent: function() {
|
|
192
|
+
return this;
|
|
193
|
+
},
|
|
194
|
+
addEventListener() {},
|
|
195
|
+
removeEventListener() {},
|
|
196
|
+
getComputedStyle() {
|
|
197
|
+
return { getPropertyValue() {
|
|
198
|
+
return "";
|
|
199
|
+
} };
|
|
200
|
+
},
|
|
201
|
+
Image() {},
|
|
202
|
+
Date() {},
|
|
203
|
+
screen: {},
|
|
204
|
+
setTimeout() {},
|
|
205
|
+
clearTimeout() {},
|
|
206
|
+
matchMedia() {
|
|
207
|
+
return {};
|
|
208
|
+
},
|
|
209
|
+
requestAnimationFrame(e) {
|
|
210
|
+
return typeof setTimeout > "u" ? (e(), null) : setTimeout(e, 0);
|
|
211
|
+
},
|
|
212
|
+
cancelAnimationFrame(e) {
|
|
213
|
+
typeof setTimeout > "u" || clearTimeout(e);
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
function w() {
|
|
217
|
+
let e = typeof window < "u" ? window : {};
|
|
218
|
+
return b(e, C), e;
|
|
219
|
+
}
|
|
220
|
+
//#endregion
|
|
221
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/shared/utils.js
|
|
222
|
+
function T(e) {
|
|
223
|
+
let t = e;
|
|
224
|
+
Object.keys(t).forEach((e) => {
|
|
225
|
+
try {
|
|
226
|
+
t[e] = null;
|
|
227
|
+
} catch {}
|
|
228
|
+
try {
|
|
229
|
+
delete t[e];
|
|
230
|
+
} catch {}
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
function E(e, t = 0) {
|
|
234
|
+
return setTimeout(e, t);
|
|
235
|
+
}
|
|
236
|
+
function D() {
|
|
237
|
+
return Date.now();
|
|
238
|
+
}
|
|
239
|
+
function O(e) {
|
|
240
|
+
let t = w(), n;
|
|
241
|
+
return t.getComputedStyle && (n = t.getComputedStyle(e, null)), !n && e.currentStyle && (n = e.currentStyle), n || (n = e.style), n;
|
|
242
|
+
}
|
|
243
|
+
function k(e, t = "x") {
|
|
244
|
+
let n = w(), r, i, a, o = O(e, null);
|
|
245
|
+
return n.WebKitCSSMatrix ? (i = o.transform || o.webkitTransform, i.split(",").length > 6 && (i = i.split(", ").map((e) => e.replace(",", ".")).join(", ")), a = new n.WebKitCSSMatrix(i === "none" ? "" : i)) : (a = o.MozTransform || o.OTransform || o.MsTransform || o.msTransform || o.transform || o.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), r = a.toString().split(",")), t === "x" && (i = n.WebKitCSSMatrix ? a.m41 : r.length === 16 ? parseFloat(r[12]) : parseFloat(r[4])), t === "y" && (i = n.WebKitCSSMatrix ? a.m42 : r.length === 16 ? parseFloat(r[13]) : parseFloat(r[5])), i || 0;
|
|
246
|
+
}
|
|
247
|
+
function A(e) {
|
|
248
|
+
return typeof e == "object" && !!e && e.constructor && Object.prototype.toString.call(e).slice(8, -1) === "Object";
|
|
249
|
+
}
|
|
250
|
+
function j(e) {
|
|
251
|
+
return typeof window < "u" && window.HTMLElement !== void 0 ? e instanceof HTMLElement : e && (e.nodeType === 1 || e.nodeType === 11);
|
|
252
|
+
}
|
|
253
|
+
function M(...e) {
|
|
254
|
+
let t = Object(e[0]), n = [
|
|
255
|
+
"__proto__",
|
|
256
|
+
"constructor",
|
|
257
|
+
"prototype"
|
|
258
|
+
];
|
|
259
|
+
for (let r = 1; r < e.length; r += 1) {
|
|
260
|
+
let i = e[r];
|
|
261
|
+
if (i != null && !j(i)) {
|
|
262
|
+
let e = Object.keys(Object(i)).filter((e) => n.indexOf(e) < 0);
|
|
263
|
+
for (let n = 0, r = e.length; n < r; n += 1) {
|
|
264
|
+
let r = e[n], a = Object.getOwnPropertyDescriptor(i, r);
|
|
265
|
+
a !== void 0 && a.enumerable && (A(t[r]) && A(i[r]) ? i[r].__swiper__ ? t[r] = i[r] : M(t[r], i[r]) : !A(t[r]) && A(i[r]) ? (t[r] = {}, i[r].__swiper__ ? t[r] = i[r] : M(t[r], i[r])) : t[r] = i[r]);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
return t;
|
|
270
|
+
}
|
|
271
|
+
function N(e, t, n) {
|
|
272
|
+
e.style.setProperty(t, n);
|
|
273
|
+
}
|
|
274
|
+
function ee({ swiper: e, targetPosition: t, side: n }) {
|
|
275
|
+
let r = w(), i = -e.translate, a = null, o, s = e.params.speed;
|
|
276
|
+
e.wrapperEl.style.scrollSnapType = "none", r.cancelAnimationFrame(e.cssModeFrameID);
|
|
277
|
+
let c = t > i ? "next" : "prev", l = (e, t) => c === "next" && e >= t || c === "prev" && e <= t, u = () => {
|
|
278
|
+
o = (/* @__PURE__ */ new Date()).getTime(), a === null && (a = o);
|
|
279
|
+
let c = Math.max(Math.min((o - a) / s, 1), 0), d = i + (.5 - Math.cos(c * Math.PI) / 2) * (t - i);
|
|
280
|
+
if (l(d, t) && (d = t), e.wrapperEl.scrollTo({ [n]: d }), l(d, t)) {
|
|
281
|
+
e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
|
|
282
|
+
e.wrapperEl.style.overflow = "", e.wrapperEl.scrollTo({ [n]: d });
|
|
283
|
+
}), r.cancelAnimationFrame(e.cssModeFrameID);
|
|
284
|
+
return;
|
|
285
|
+
}
|
|
286
|
+
e.cssModeFrameID = r.requestAnimationFrame(u);
|
|
287
|
+
};
|
|
288
|
+
u();
|
|
289
|
+
}
|
|
290
|
+
function P(e, t = "") {
|
|
291
|
+
return [...e.children].filter((e) => e.matches(t));
|
|
292
|
+
}
|
|
293
|
+
function te(e, t = []) {
|
|
294
|
+
let n = document.createElement(e);
|
|
295
|
+
return n.classList.add(...Array.isArray(t) ? t : [t]), n;
|
|
296
|
+
}
|
|
297
|
+
function ne(e, t) {
|
|
298
|
+
let n = [];
|
|
299
|
+
for (; e.previousElementSibling;) {
|
|
300
|
+
let r = e.previousElementSibling;
|
|
301
|
+
t ? r.matches(t) && n.push(r) : n.push(r), e = r;
|
|
302
|
+
}
|
|
303
|
+
return n;
|
|
304
|
+
}
|
|
305
|
+
function re(e, t) {
|
|
306
|
+
let n = [];
|
|
307
|
+
for (; e.nextElementSibling;) {
|
|
308
|
+
let r = e.nextElementSibling;
|
|
309
|
+
t ? r.matches(t) && n.push(r) : n.push(r), e = r;
|
|
310
|
+
}
|
|
311
|
+
return n;
|
|
312
|
+
}
|
|
313
|
+
function F(e, t) {
|
|
314
|
+
return w().getComputedStyle(e, null).getPropertyValue(t);
|
|
315
|
+
}
|
|
316
|
+
function ie(e) {
|
|
317
|
+
let t = e, n;
|
|
318
|
+
if (t) {
|
|
319
|
+
for (n = 0; (t = t.previousSibling) !== null;) t.nodeType === 1 && (n += 1);
|
|
320
|
+
return n;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
function ae(e, t) {
|
|
324
|
+
let n = [], r = e.parentElement;
|
|
325
|
+
for (; r;) t ? r.matches(t) && n.push(r) : n.push(r), r = r.parentElement;
|
|
326
|
+
return n;
|
|
327
|
+
}
|
|
328
|
+
function oe(e, t, n) {
|
|
329
|
+
let r = w();
|
|
330
|
+
return n ? e[t === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(r.getComputedStyle(e, null).getPropertyValue(t === "width" ? "margin-right" : "margin-top")) + parseFloat(r.getComputedStyle(e, null).getPropertyValue(t === "width" ? "margin-left" : "margin-bottom")) : e.offsetWidth;
|
|
331
|
+
}
|
|
332
|
+
//#endregion
|
|
333
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/shared/get-support.js
|
|
334
|
+
var se;
|
|
335
|
+
function ce() {
|
|
336
|
+
let e = w(), t = S();
|
|
337
|
+
return {
|
|
338
|
+
smoothScroll: t.documentElement && t.documentElement.style && "scrollBehavior" in t.documentElement.style,
|
|
339
|
+
touch: !!("ontouchstart" in e || e.DocumentTouch && t instanceof e.DocumentTouch)
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
function le() {
|
|
343
|
+
return se || (se = ce()), se;
|
|
344
|
+
}
|
|
345
|
+
//#endregion
|
|
346
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/shared/get-device.js
|
|
347
|
+
var ue;
|
|
348
|
+
function de({ userAgent: e } = {}) {
|
|
349
|
+
let t = le(), n = w(), r = n.navigator.platform, i = e || n.navigator.userAgent, a = {
|
|
350
|
+
ios: !1,
|
|
351
|
+
android: !1
|
|
352
|
+
}, o = n.screen.width, s = n.screen.height, c = i.match(/(Android);?[\s\/]+([\d.]+)?/), l = i.match(/(iPad).*OS\s([\d_]+)/), u = i.match(/(iPod)(.*OS\s([\d_]+))?/), d = !l && i.match(/(iPhone\sOS|iOS)\s([\d_]+)/), f = r === "Win32", p = r === "MacIntel";
|
|
353
|
+
return !l && p && t.touch && [
|
|
354
|
+
"1024x1366",
|
|
355
|
+
"1366x1024",
|
|
356
|
+
"834x1194",
|
|
357
|
+
"1194x834",
|
|
358
|
+
"834x1112",
|
|
359
|
+
"1112x834",
|
|
360
|
+
"768x1024",
|
|
361
|
+
"1024x768",
|
|
362
|
+
"820x1180",
|
|
363
|
+
"1180x820",
|
|
364
|
+
"810x1080",
|
|
365
|
+
"1080x810"
|
|
366
|
+
].indexOf(`${o}x${s}`) >= 0 && (l = i.match(/(Version)\/([\d.]+)/), l || (l = [
|
|
367
|
+
0,
|
|
368
|
+
1,
|
|
369
|
+
"13_0_0"
|
|
370
|
+
]), p = !1), c && !f && (a.os = "android", a.android = !0), (l || d || u) && (a.os = "ios", a.ios = !0), a;
|
|
371
|
+
}
|
|
372
|
+
function fe(e = {}) {
|
|
373
|
+
return ue || (ue = de(e)), ue;
|
|
374
|
+
}
|
|
375
|
+
//#endregion
|
|
376
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/shared/get-browser.js
|
|
377
|
+
var pe;
|
|
378
|
+
function me() {
|
|
379
|
+
let e = w(), t = !1;
|
|
380
|
+
function n() {
|
|
381
|
+
let t = e.navigator.userAgent.toLowerCase();
|
|
382
|
+
return t.indexOf("safari") >= 0 && t.indexOf("chrome") < 0 && t.indexOf("android") < 0;
|
|
383
|
+
}
|
|
384
|
+
if (n()) {
|
|
385
|
+
let n = String(e.navigator.userAgent);
|
|
386
|
+
if (n.includes("Version/")) {
|
|
387
|
+
let [e, r] = n.split("Version/")[1].split(" ")[0].split(".").map((e) => Number(e));
|
|
388
|
+
t = e < 16 || e === 16 && r < 2;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
return {
|
|
392
|
+
isSafari: t || n(),
|
|
393
|
+
needPerspectiveFix: t,
|
|
394
|
+
isWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
function he() {
|
|
398
|
+
return pe || (pe = me()), pe;
|
|
399
|
+
}
|
|
400
|
+
//#endregion
|
|
401
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/modules/resize/resize.js
|
|
402
|
+
function ge({ swiper: e, on: t, emit: n }) {
|
|
403
|
+
let r = w(), i = null, a = null, o = () => {
|
|
404
|
+
!e || e.destroyed || !e.initialized || (n("beforeResize"), n("resize"));
|
|
405
|
+
}, s = () => {
|
|
406
|
+
!e || e.destroyed || !e.initialized || (i = new ResizeObserver((t) => {
|
|
407
|
+
a = r.requestAnimationFrame(() => {
|
|
408
|
+
let { width: n, height: r } = e, i = n, a = r;
|
|
409
|
+
t.forEach(({ contentBoxSize: t, contentRect: n, target: r }) => {
|
|
410
|
+
r && r !== e.el || (i = n ? n.width : (t[0] || t).inlineSize, a = n ? n.height : (t[0] || t).blockSize);
|
|
411
|
+
}), (i !== n || a !== r) && o();
|
|
412
|
+
});
|
|
413
|
+
}), i.observe(e.el));
|
|
414
|
+
}, c = () => {
|
|
415
|
+
a && r.cancelAnimationFrame(a), i && i.unobserve && e.el && (i.unobserve(e.el), i = null);
|
|
416
|
+
}, l = () => {
|
|
417
|
+
!e || e.destroyed || !e.initialized || n("orientationchange");
|
|
418
|
+
};
|
|
419
|
+
t("init", () => {
|
|
420
|
+
if (e.params.resizeObserver && r.ResizeObserver !== void 0) {
|
|
421
|
+
s();
|
|
422
|
+
return;
|
|
423
|
+
}
|
|
424
|
+
r.addEventListener("resize", o), r.addEventListener("orientationchange", l);
|
|
425
|
+
}), t("destroy", () => {
|
|
426
|
+
c(), r.removeEventListener("resize", o), r.removeEventListener("orientationchange", l);
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
//#endregion
|
|
430
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/modules/observer/observer.js
|
|
431
|
+
function _e({ swiper: e, extendParams: t, on: n, emit: r }) {
|
|
432
|
+
let i = [], a = w(), o = (t, n = {}) => {
|
|
433
|
+
let o = new (a.MutationObserver || a.WebkitMutationObserver)((t) => {
|
|
434
|
+
if (e.__preventObserver__) return;
|
|
435
|
+
if (t.length === 1) {
|
|
436
|
+
r("observerUpdate", t[0]);
|
|
437
|
+
return;
|
|
438
|
+
}
|
|
439
|
+
let n = function() {
|
|
440
|
+
r("observerUpdate", t[0]);
|
|
441
|
+
};
|
|
442
|
+
a.requestAnimationFrame ? a.requestAnimationFrame(n) : a.setTimeout(n, 0);
|
|
443
|
+
});
|
|
444
|
+
o.observe(t, {
|
|
445
|
+
attributes: n.attributes === void 0 ? !0 : n.attributes,
|
|
446
|
+
childList: n.childList === void 0 ? !0 : n.childList,
|
|
447
|
+
characterData: n.characterData === void 0 ? !0 : n.characterData
|
|
448
|
+
}), i.push(o);
|
|
449
|
+
};
|
|
450
|
+
t({
|
|
451
|
+
observer: !1,
|
|
452
|
+
observeParents: !1,
|
|
453
|
+
observeSlideChildren: !1
|
|
454
|
+
}), n("init", () => {
|
|
455
|
+
if (e.params.observer) {
|
|
456
|
+
if (e.params.observeParents) {
|
|
457
|
+
let t = ae(e.el);
|
|
458
|
+
for (let e = 0; e < t.length; e += 1) o(t[e]);
|
|
459
|
+
}
|
|
460
|
+
o(e.el, { childList: e.params.observeSlideChildren }), o(e.wrapperEl, { attributes: !1 });
|
|
461
|
+
}
|
|
462
|
+
}), n("destroy", () => {
|
|
463
|
+
i.forEach((e) => {
|
|
464
|
+
e.disconnect();
|
|
465
|
+
}), i.splice(0, i.length);
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
//#endregion
|
|
469
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/events-emitter.js
|
|
470
|
+
var ve = {
|
|
471
|
+
on(e, t, n) {
|
|
472
|
+
let r = this;
|
|
473
|
+
if (!r.eventsListeners || r.destroyed || typeof t != "function") return r;
|
|
474
|
+
let i = n ? "unshift" : "push";
|
|
475
|
+
return e.split(" ").forEach((e) => {
|
|
476
|
+
r.eventsListeners[e] || (r.eventsListeners[e] = []), r.eventsListeners[e][i](t);
|
|
477
|
+
}), r;
|
|
478
|
+
},
|
|
479
|
+
once(e, t, n) {
|
|
480
|
+
let r = this;
|
|
481
|
+
if (!r.eventsListeners || r.destroyed || typeof t != "function") return r;
|
|
482
|
+
function i(...n) {
|
|
483
|
+
r.off(e, i), i.__emitterProxy && delete i.__emitterProxy, t.apply(r, n);
|
|
484
|
+
}
|
|
485
|
+
return i.__emitterProxy = t, r.on(e, i, n);
|
|
486
|
+
},
|
|
487
|
+
onAny(e, t) {
|
|
488
|
+
let n = this;
|
|
489
|
+
if (!n.eventsListeners || n.destroyed || typeof e != "function") return n;
|
|
490
|
+
let r = t ? "unshift" : "push";
|
|
491
|
+
return n.eventsAnyListeners.indexOf(e) < 0 && n.eventsAnyListeners[r](e), n;
|
|
492
|
+
},
|
|
493
|
+
offAny(e) {
|
|
494
|
+
let t = this;
|
|
495
|
+
if (!t.eventsListeners || t.destroyed || !t.eventsAnyListeners) return t;
|
|
496
|
+
let n = t.eventsAnyListeners.indexOf(e);
|
|
497
|
+
return n >= 0 && t.eventsAnyListeners.splice(n, 1), t;
|
|
498
|
+
},
|
|
499
|
+
off(e, t) {
|
|
500
|
+
let n = this;
|
|
501
|
+
return !n.eventsListeners || n.destroyed || !n.eventsListeners || e.split(" ").forEach((e) => {
|
|
502
|
+
t === void 0 ? n.eventsListeners[e] = [] : n.eventsListeners[e] && n.eventsListeners[e].forEach((r, i) => {
|
|
503
|
+
(r === t || r.__emitterProxy && r.__emitterProxy === t) && n.eventsListeners[e].splice(i, 1);
|
|
504
|
+
});
|
|
505
|
+
}), n;
|
|
506
|
+
},
|
|
507
|
+
emit(...e) {
|
|
508
|
+
let t = this;
|
|
509
|
+
if (!t.eventsListeners || t.destroyed || !t.eventsListeners) return t;
|
|
510
|
+
let n, r, i;
|
|
511
|
+
return typeof e[0] == "string" || Array.isArray(e[0]) ? (n = e[0], r = e.slice(1, e.length), i = t) : (n = e[0].events, r = e[0].data, i = e[0].context || t), r.unshift(i), (Array.isArray(n) ? n : n.split(" ")).forEach((e) => {
|
|
512
|
+
t.eventsAnyListeners && t.eventsAnyListeners.length && t.eventsAnyListeners.forEach((t) => {
|
|
513
|
+
t.apply(i, [e, ...r]);
|
|
514
|
+
}), t.eventsListeners && t.eventsListeners[e] && t.eventsListeners[e].forEach((e) => {
|
|
515
|
+
e.apply(i, r);
|
|
516
|
+
});
|
|
517
|
+
}), t;
|
|
518
|
+
}
|
|
519
|
+
};
|
|
520
|
+
//#endregion
|
|
521
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/update/updateSize.js
|
|
522
|
+
function ye() {
|
|
523
|
+
let e = this, t, n, r = e.el;
|
|
524
|
+
t = e.params.width !== void 0 && e.params.width !== null ? e.params.width : r.clientWidth, n = e.params.height !== void 0 && e.params.height !== null ? e.params.height : r.clientHeight, !(t === 0 && e.isHorizontal() || n === 0 && e.isVertical()) && (t = t - parseInt(F(r, "padding-left") || 0, 10) - parseInt(F(r, "padding-right") || 0, 10), n = n - parseInt(F(r, "padding-top") || 0, 10) - parseInt(F(r, "padding-bottom") || 0, 10), Number.isNaN(t) && (t = 0), Number.isNaN(n) && (n = 0), Object.assign(e, {
|
|
525
|
+
width: t,
|
|
526
|
+
height: n,
|
|
527
|
+
size: e.isHorizontal() ? t : n
|
|
528
|
+
}));
|
|
529
|
+
}
|
|
530
|
+
//#endregion
|
|
531
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/update/updateSlides.js
|
|
532
|
+
function be() {
|
|
533
|
+
let e = this;
|
|
534
|
+
function t(t) {
|
|
535
|
+
return e.isHorizontal() ? t : {
|
|
536
|
+
width: "height",
|
|
537
|
+
"margin-top": "margin-left",
|
|
538
|
+
"margin-bottom ": "margin-right",
|
|
539
|
+
"margin-left": "margin-top",
|
|
540
|
+
"margin-right": "margin-bottom",
|
|
541
|
+
"padding-left": "padding-top",
|
|
542
|
+
"padding-right": "padding-bottom",
|
|
543
|
+
marginRight: "marginBottom"
|
|
544
|
+
}[t];
|
|
545
|
+
}
|
|
546
|
+
function n(e, n) {
|
|
547
|
+
return parseFloat(e.getPropertyValue(t(n)) || 0);
|
|
548
|
+
}
|
|
549
|
+
let r = e.params, { wrapperEl: i, slidesEl: a, size: o, rtlTranslate: s, wrongRTL: c } = e, l = e.virtual && r.virtual.enabled, u = l ? e.virtual.slides.length : e.slides.length, d = P(a, `.${e.params.slideClass}, swiper-slide`), f = l ? e.virtual.slides.length : d.length, p = [], m = [], h = [], g = r.slidesOffsetBefore;
|
|
550
|
+
typeof g == "function" && (g = r.slidesOffsetBefore.call(e));
|
|
551
|
+
let _ = r.slidesOffsetAfter;
|
|
552
|
+
typeof _ == "function" && (_ = r.slidesOffsetAfter.call(e));
|
|
553
|
+
let v = e.snapGrid.length, y = e.slidesGrid.length, b = r.spaceBetween, x = -g, S = 0, C = 0;
|
|
554
|
+
if (o === void 0) return;
|
|
555
|
+
typeof b == "string" && b.indexOf("%") >= 0 ? b = parseFloat(b.replace("%", "")) / 100 * o : typeof b == "string" && (b = parseFloat(b)), e.virtualSize = -b, d.forEach((e) => {
|
|
556
|
+
s ? e.style.marginLeft = "" : e.style.marginRight = "", e.style.marginBottom = "", e.style.marginTop = "";
|
|
557
|
+
}), r.centeredSlides && r.cssMode && (N(i, "--swiper-centered-offset-before", ""), N(i, "--swiper-centered-offset-after", ""));
|
|
558
|
+
let w = r.grid && r.grid.rows > 1 && e.grid;
|
|
559
|
+
w && e.grid.initSlides(f);
|
|
560
|
+
let T, E = r.slidesPerView === "auto" && r.breakpoints && Object.keys(r.breakpoints).filter((e) => r.breakpoints[e].slidesPerView !== void 0).length > 0;
|
|
561
|
+
for (let i = 0; i < f; i += 1) {
|
|
562
|
+
T = 0;
|
|
563
|
+
let a;
|
|
564
|
+
if (d[i] && (a = d[i]), w && e.grid.updateSlide(i, a, f, t), !(d[i] && F(a, "display") === "none")) {
|
|
565
|
+
if (r.slidesPerView === "auto") {
|
|
566
|
+
E && (d[i].style[t("width")] = "");
|
|
567
|
+
let o = getComputedStyle(a), s = a.style.transform, c = a.style.webkitTransform;
|
|
568
|
+
if (s && (a.style.transform = "none"), c && (a.style.webkitTransform = "none"), r.roundLengths) T = e.isHorizontal() ? oe(a, "width", !0) : oe(a, "height", !0);
|
|
569
|
+
else {
|
|
570
|
+
let e = n(o, "width"), t = n(o, "padding-left"), r = n(o, "padding-right"), i = n(o, "margin-left"), s = n(o, "margin-right"), c = o.getPropertyValue("box-sizing");
|
|
571
|
+
if (c && c === "border-box") T = e + i + s;
|
|
572
|
+
else {
|
|
573
|
+
let { clientWidth: n, offsetWidth: o } = a;
|
|
574
|
+
T = e + t + r + i + s + (o - n);
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
s && (a.style.transform = s), c && (a.style.webkitTransform = c), r.roundLengths && (T = Math.floor(T));
|
|
578
|
+
} else T = (o - (r.slidesPerView - 1) * b) / r.slidesPerView, r.roundLengths && (T = Math.floor(T)), d[i] && (d[i].style[t("width")] = `${T}px`);
|
|
579
|
+
d[i] && (d[i].swiperSlideSize = T), h.push(T), r.centeredSlides ? (x = x + T / 2 + S / 2 + b, S === 0 && i !== 0 && (x = x - o / 2 - b), i === 0 && (x = x - o / 2 - b), Math.abs(x) < 1 / 1e3 && (x = 0), r.roundLengths && (x = Math.floor(x)), C % r.slidesPerGroup === 0 && p.push(x), m.push(x)) : (r.roundLengths && (x = Math.floor(x)), (C - Math.min(e.params.slidesPerGroupSkip, C)) % e.params.slidesPerGroup === 0 && p.push(x), m.push(x), x = x + T + b), e.virtualSize += T + b, S = T, C += 1;
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
if (e.virtualSize = Math.max(e.virtualSize, o) + _, s && c && (r.effect === "slide" || r.effect === "coverflow") && (i.style.width = `${e.virtualSize + b}px`), r.setWrapperSize && (i.style[t("width")] = `${e.virtualSize + b}px`), w && e.grid.updateWrapperSize(T, p, t), !r.centeredSlides) {
|
|
583
|
+
let t = [];
|
|
584
|
+
for (let n = 0; n < p.length; n += 1) {
|
|
585
|
+
let i = p[n];
|
|
586
|
+
r.roundLengths && (i = Math.floor(i)), p[n] <= e.virtualSize - o && t.push(i);
|
|
587
|
+
}
|
|
588
|
+
p = t, Math.floor(e.virtualSize - o) - Math.floor(p[p.length - 1]) > 1 && p.push(e.virtualSize - o);
|
|
589
|
+
}
|
|
590
|
+
if (l && r.loop) {
|
|
591
|
+
let t = h[0] + b;
|
|
592
|
+
if (r.slidesPerGroup > 1) {
|
|
593
|
+
let n = Math.ceil((e.virtual.slidesBefore + e.virtual.slidesAfter) / r.slidesPerGroup), i = t * r.slidesPerGroup;
|
|
594
|
+
for (let e = 0; e < n; e += 1) p.push(p[p.length - 1] + i);
|
|
595
|
+
}
|
|
596
|
+
for (let n = 0; n < e.virtual.slidesBefore + e.virtual.slidesAfter; n += 1) r.slidesPerGroup === 1 && p.push(p[p.length - 1] + t), m.push(m[m.length - 1] + t), e.virtualSize += t;
|
|
597
|
+
}
|
|
598
|
+
if (p.length === 0 && (p = [0]), b !== 0) {
|
|
599
|
+
let n = e.isHorizontal() && s ? "marginLeft" : t("marginRight");
|
|
600
|
+
d.filter((e, t) => !r.cssMode || r.loop ? !0 : t !== d.length - 1).forEach((e) => {
|
|
601
|
+
e.style[n] = `${b}px`;
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
if (r.centeredSlides && r.centeredSlidesBounds) {
|
|
605
|
+
let e = 0;
|
|
606
|
+
h.forEach((t) => {
|
|
607
|
+
e += t + (b || 0);
|
|
608
|
+
}), e -= b;
|
|
609
|
+
let t = e - o;
|
|
610
|
+
p = p.map((e) => e <= 0 ? -g : e > t ? t + _ : e);
|
|
611
|
+
}
|
|
612
|
+
if (r.centerInsufficientSlides) {
|
|
613
|
+
let e = 0;
|
|
614
|
+
if (h.forEach((t) => {
|
|
615
|
+
e += t + (b || 0);
|
|
616
|
+
}), e -= b, e < o) {
|
|
617
|
+
let t = (o - e) / 2;
|
|
618
|
+
p.forEach((e, n) => {
|
|
619
|
+
p[n] = e - t;
|
|
620
|
+
}), m.forEach((e, n) => {
|
|
621
|
+
m[n] = e + t;
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
if (Object.assign(e, {
|
|
626
|
+
slides: d,
|
|
627
|
+
snapGrid: p,
|
|
628
|
+
slidesGrid: m,
|
|
629
|
+
slidesSizesGrid: h
|
|
630
|
+
}), r.centeredSlides && r.cssMode && !r.centeredSlidesBounds) {
|
|
631
|
+
N(i, "--swiper-centered-offset-before", `${-p[0]}px`), N(i, "--swiper-centered-offset-after", `${e.size / 2 - h[h.length - 1] / 2}px`);
|
|
632
|
+
let t = -e.snapGrid[0], n = -e.slidesGrid[0];
|
|
633
|
+
e.snapGrid = e.snapGrid.map((e) => e + t), e.slidesGrid = e.slidesGrid.map((e) => e + n);
|
|
634
|
+
}
|
|
635
|
+
if (f !== u && e.emit("slidesLengthChange"), p.length !== v && (e.params.watchOverflow && e.checkOverflow(), e.emit("snapGridLengthChange")), m.length !== y && e.emit("slidesGridLengthChange"), r.watchSlidesProgress && e.updateSlidesOffset(), !l && !r.cssMode && (r.effect === "slide" || r.effect === "fade")) {
|
|
636
|
+
let t = `${r.containerModifierClass}backface-hidden`, n = e.el.classList.contains(t);
|
|
637
|
+
f <= r.maxBackfaceHiddenSlides ? n || e.el.classList.add(t) : n && e.el.classList.remove(t);
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
//#endregion
|
|
641
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/update/updateAutoHeight.js
|
|
642
|
+
function xe(e) {
|
|
643
|
+
let t = this, n = [], r = t.virtual && t.params.virtual.enabled, i = 0, a;
|
|
644
|
+
typeof e == "number" ? t.setTransition(e) : e === !0 && t.setTransition(t.params.speed);
|
|
645
|
+
let o = (e) => r ? t.slides[t.getSlideIndexByData(e)] : t.slides[e];
|
|
646
|
+
if (t.params.slidesPerView !== "auto" && t.params.slidesPerView > 1) if (t.params.centeredSlides) (t.visibleSlides || []).forEach((e) => {
|
|
647
|
+
n.push(e);
|
|
648
|
+
});
|
|
649
|
+
else for (a = 0; a < Math.ceil(t.params.slidesPerView); a += 1) {
|
|
650
|
+
let e = t.activeIndex + a;
|
|
651
|
+
if (e > t.slides.length && !r) break;
|
|
652
|
+
n.push(o(e));
|
|
653
|
+
}
|
|
654
|
+
else n.push(o(t.activeIndex));
|
|
655
|
+
for (a = 0; a < n.length; a += 1) if (n[a] !== void 0) {
|
|
656
|
+
let e = n[a].offsetHeight;
|
|
657
|
+
i = e > i ? e : i;
|
|
658
|
+
}
|
|
659
|
+
(i || i === 0) && (t.wrapperEl.style.height = `${i}px`);
|
|
660
|
+
}
|
|
661
|
+
//#endregion
|
|
662
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/update/updateSlidesOffset.js
|
|
663
|
+
function Se() {
|
|
664
|
+
let e = this, t = e.slides, n = e.isElement ? e.isHorizontal() ? e.wrapperEl.offsetLeft : e.wrapperEl.offsetTop : 0;
|
|
665
|
+
for (let r = 0; r < t.length; r += 1) t[r].swiperSlideOffset = (e.isHorizontal() ? t[r].offsetLeft : t[r].offsetTop) - n - e.cssOverflowAdjustment();
|
|
666
|
+
}
|
|
667
|
+
//#endregion
|
|
668
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/update/updateSlidesProgress.js
|
|
669
|
+
function Ce(e = this && this.translate || 0) {
|
|
670
|
+
let t = this, n = t.params, { slides: r, rtlTranslate: i, snapGrid: a } = t;
|
|
671
|
+
if (r.length === 0) return;
|
|
672
|
+
r[0].swiperSlideOffset === void 0 && t.updateSlidesOffset();
|
|
673
|
+
let o = -e;
|
|
674
|
+
i && (o = e), r.forEach((e) => {
|
|
675
|
+
e.classList.remove(n.slideVisibleClass);
|
|
676
|
+
}), t.visibleSlidesIndexes = [], t.visibleSlides = [];
|
|
677
|
+
let s = n.spaceBetween;
|
|
678
|
+
typeof s == "string" && s.indexOf("%") >= 0 ? s = parseFloat(s.replace("%", "")) / 100 * t.size : typeof s == "string" && (s = parseFloat(s));
|
|
679
|
+
for (let e = 0; e < r.length; e += 1) {
|
|
680
|
+
let c = r[e], l = c.swiperSlideOffset;
|
|
681
|
+
n.cssMode && n.centeredSlides && (l -= r[0].swiperSlideOffset);
|
|
682
|
+
let u = (o + (n.centeredSlides ? t.minTranslate() : 0) - l) / (c.swiperSlideSize + s), d = (o - a[0] + (n.centeredSlides ? t.minTranslate() : 0) - l) / (c.swiperSlideSize + s), f = -(o - l), p = f + t.slidesSizesGrid[e];
|
|
683
|
+
(f >= 0 && f < t.size - 1 || p > 1 && p <= t.size || f <= 0 && p >= t.size) && (t.visibleSlides.push(c), t.visibleSlidesIndexes.push(e), r[e].classList.add(n.slideVisibleClass)), c.progress = i ? -u : u, c.originalProgress = i ? -d : d;
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
//#endregion
|
|
687
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/update/updateProgress.js
|
|
688
|
+
function we(e) {
|
|
689
|
+
let t = this;
|
|
690
|
+
if (e === void 0) {
|
|
691
|
+
let n = t.rtlTranslate ? -1 : 1;
|
|
692
|
+
e = t && t.translate && t.translate * n || 0;
|
|
693
|
+
}
|
|
694
|
+
let n = t.params, r = t.maxTranslate() - t.minTranslate(), { progress: i, isBeginning: a, isEnd: o, progressLoop: s } = t, c = a, l = o;
|
|
695
|
+
if (r === 0) i = 0, a = !0, o = !0;
|
|
696
|
+
else {
|
|
697
|
+
i = (e - t.minTranslate()) / r;
|
|
698
|
+
let n = Math.abs(e - t.minTranslate()) < 1, s = Math.abs(e - t.maxTranslate()) < 1;
|
|
699
|
+
a = n || i <= 0, o = s || i >= 1, n && (i = 0), s && (i = 1);
|
|
700
|
+
}
|
|
701
|
+
if (n.loop) {
|
|
702
|
+
let n = t.getSlideIndexByData(0), r = t.getSlideIndexByData(t.slides.length - 1), i = t.slidesGrid[n], a = t.slidesGrid[r], o = t.slidesGrid[t.slidesGrid.length - 1], c = Math.abs(e);
|
|
703
|
+
s = c >= i ? (c - i) / o : (c + o - a) / o, s > 1 && --s;
|
|
704
|
+
}
|
|
705
|
+
Object.assign(t, {
|
|
706
|
+
progress: i,
|
|
707
|
+
progressLoop: s,
|
|
708
|
+
isBeginning: a,
|
|
709
|
+
isEnd: o
|
|
710
|
+
}), (n.watchSlidesProgress || n.centeredSlides && n.autoHeight) && t.updateSlidesProgress(e), a && !c && t.emit("reachBeginning toEdge"), o && !l && t.emit("reachEnd toEdge"), (c && !a || l && !o) && t.emit("fromEdge"), t.emit("progress", i);
|
|
711
|
+
}
|
|
712
|
+
//#endregion
|
|
713
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/update/updateSlidesClasses.js
|
|
714
|
+
function Te() {
|
|
715
|
+
let e = this, { slides: t, params: n, slidesEl: r, activeIndex: i } = e, a = e.virtual && n.virtual.enabled, o = (e) => P(r, `.${n.slideClass}${e}, swiper-slide${e}`)[0];
|
|
716
|
+
t.forEach((e) => {
|
|
717
|
+
e.classList.remove(n.slideActiveClass, n.slideNextClass, n.slidePrevClass);
|
|
718
|
+
});
|
|
719
|
+
let s;
|
|
720
|
+
if (a) if (n.loop) {
|
|
721
|
+
let t = i - e.virtual.slidesBefore;
|
|
722
|
+
t < 0 && (t = e.virtual.slides.length + t), t >= e.virtual.slides.length && (t -= e.virtual.slides.length), s = o(`[data-swiper-slide-index="${t}"]`);
|
|
723
|
+
} else s = o(`[data-swiper-slide-index="${i}"]`);
|
|
724
|
+
else s = t[i];
|
|
725
|
+
if (s) {
|
|
726
|
+
s.classList.add(n.slideActiveClass);
|
|
727
|
+
let e = re(s, `.${n.slideClass}, swiper-slide`)[0];
|
|
728
|
+
n.loop && !e && (e = t[0]), e && e.classList.add(n.slideNextClass);
|
|
729
|
+
let r = ne(s, `.${n.slideClass}, swiper-slide`)[0];
|
|
730
|
+
n.loop, r && r.classList.add(n.slidePrevClass);
|
|
731
|
+
}
|
|
732
|
+
e.emitSlidesClasses();
|
|
733
|
+
}
|
|
734
|
+
//#endregion
|
|
735
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/shared/process-lazy-preloader.js
|
|
736
|
+
var I = (e, t) => {
|
|
737
|
+
if (!e || e.destroyed || !e.params) return;
|
|
738
|
+
let n = t.closest(e.isElement ? "swiper-slide" : `.${e.params.slideClass}`);
|
|
739
|
+
if (n) {
|
|
740
|
+
let t = n.querySelector(`.${e.params.lazyPreloaderClass}`);
|
|
741
|
+
t && t.remove();
|
|
742
|
+
}
|
|
743
|
+
}, Ee = (e, t) => {
|
|
744
|
+
if (!e.slides[t]) return;
|
|
745
|
+
let n = e.slides[t].querySelector("[loading=\"lazy\"]");
|
|
746
|
+
n && n.removeAttribute("loading");
|
|
747
|
+
}, De = (e) => {
|
|
748
|
+
if (!e || e.destroyed || !e.params) return;
|
|
749
|
+
let t = e.params.lazyPreloadPrevNext, n = e.slides.length;
|
|
750
|
+
if (!n || !t || t < 0) return;
|
|
751
|
+
t = Math.min(t, n);
|
|
752
|
+
let r = e.params.slidesPerView === "auto" ? e.slidesPerViewDynamic() : Math.ceil(e.params.slidesPerView), i = e.activeIndex;
|
|
753
|
+
if (e.params.grid && e.params.grid.rows > 1) {
|
|
754
|
+
let n = i, a = [n - t];
|
|
755
|
+
a.push(...Array.from({ length: t }).map((e, t) => n + r + t)), e.slides.forEach((t, n) => {
|
|
756
|
+
a.includes(t.column) && Ee(e, n);
|
|
757
|
+
});
|
|
758
|
+
return;
|
|
759
|
+
}
|
|
760
|
+
let a = i + r - 1;
|
|
761
|
+
if (e.params.rewind || e.params.loop) for (let r = i - t; r <= a + t; r += 1) {
|
|
762
|
+
let t = (r % n + n) % n;
|
|
763
|
+
(t < i || t > a) && Ee(e, t);
|
|
764
|
+
}
|
|
765
|
+
else for (let r = Math.max(i - t, 0); r <= Math.min(a + t, n - 1); r += 1) r !== i && (r > a || r < i) && Ee(e, r);
|
|
766
|
+
};
|
|
767
|
+
//#endregion
|
|
768
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/update/updateActiveIndex.js
|
|
769
|
+
function Oe(e) {
|
|
770
|
+
let { slidesGrid: t, params: n } = e, r = e.rtlTranslate ? e.translate : -e.translate, i;
|
|
771
|
+
for (let e = 0; e < t.length; e += 1) t[e + 1] === void 0 ? r >= t[e] && (i = e) : r >= t[e] && r < t[e + 1] - (t[e + 1] - t[e]) / 2 ? i = e : r >= t[e] && r < t[e + 1] && (i = e + 1);
|
|
772
|
+
return n.normalizeSlideIndex && (i < 0 || i === void 0) && (i = 0), i;
|
|
773
|
+
}
|
|
774
|
+
function ke(e) {
|
|
775
|
+
let t = this, n = t.rtlTranslate ? t.translate : -t.translate, { snapGrid: r, params: i, activeIndex: a, realIndex: o, snapIndex: s } = t, c = e, l, u = (e) => {
|
|
776
|
+
let n = e - t.virtual.slidesBefore;
|
|
777
|
+
return n < 0 && (n = t.virtual.slides.length + n), n >= t.virtual.slides.length && (n -= t.virtual.slides.length), n;
|
|
778
|
+
};
|
|
779
|
+
if (c === void 0 && (c = Oe(t)), r.indexOf(n) >= 0) l = r.indexOf(n);
|
|
780
|
+
else {
|
|
781
|
+
let e = Math.min(i.slidesPerGroupSkip, c);
|
|
782
|
+
l = e + Math.floor((c - e) / i.slidesPerGroup);
|
|
783
|
+
}
|
|
784
|
+
if (l >= r.length && (l = r.length - 1), c === a) {
|
|
785
|
+
l !== s && (t.snapIndex = l, t.emit("snapIndexChange")), t.params.loop && t.virtual && t.params.virtual.enabled && (t.realIndex = u(c));
|
|
786
|
+
return;
|
|
787
|
+
}
|
|
788
|
+
let d;
|
|
789
|
+
d = t.virtual && i.virtual.enabled && i.loop ? u(c) : t.slides[c] ? parseInt(t.slides[c].getAttribute("data-swiper-slide-index") || c, 10) : c, Object.assign(t, {
|
|
790
|
+
previousSnapIndex: s,
|
|
791
|
+
snapIndex: l,
|
|
792
|
+
previousRealIndex: o,
|
|
793
|
+
realIndex: d,
|
|
794
|
+
previousIndex: a,
|
|
795
|
+
activeIndex: c
|
|
796
|
+
}), t.initialized && De(t), t.emit("activeIndexChange"), t.emit("snapIndexChange"), o !== d && t.emit("realIndexChange"), (t.initialized || t.params.runCallbacksOnInit) && t.emit("slideChange");
|
|
797
|
+
}
|
|
798
|
+
//#endregion
|
|
799
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/update/updateClickedSlide.js
|
|
800
|
+
function Ae(e) {
|
|
801
|
+
let t = this, n = t.params, r = e.closest(`.${n.slideClass}, swiper-slide`), i = !1, a;
|
|
802
|
+
if (r) {
|
|
803
|
+
for (let e = 0; e < t.slides.length; e += 1) if (t.slides[e] === r) {
|
|
804
|
+
i = !0, a = e;
|
|
805
|
+
break;
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
if (r && i) t.clickedSlide = r, t.virtual && t.params.virtual.enabled ? t.clickedIndex = parseInt(r.getAttribute("data-swiper-slide-index"), 10) : t.clickedIndex = a;
|
|
809
|
+
else {
|
|
810
|
+
t.clickedSlide = void 0, t.clickedIndex = void 0;
|
|
811
|
+
return;
|
|
812
|
+
}
|
|
813
|
+
n.slideToClickedSlide && t.clickedIndex !== void 0 && t.clickedIndex !== t.activeIndex && t.slideToClickedSlide();
|
|
814
|
+
}
|
|
815
|
+
//#endregion
|
|
816
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/update/index.js
|
|
817
|
+
var je = {
|
|
818
|
+
updateSize: ye,
|
|
819
|
+
updateSlides: be,
|
|
820
|
+
updateAutoHeight: xe,
|
|
821
|
+
updateSlidesOffset: Se,
|
|
822
|
+
updateSlidesProgress: Ce,
|
|
823
|
+
updateProgress: we,
|
|
824
|
+
updateSlidesClasses: Te,
|
|
825
|
+
updateActiveIndex: ke,
|
|
826
|
+
updateClickedSlide: Ae
|
|
827
|
+
};
|
|
828
|
+
//#endregion
|
|
829
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/translate/getTranslate.js
|
|
830
|
+
function Me(e = this.isHorizontal() ? "x" : "y") {
|
|
831
|
+
let t = this, { params: n, rtlTranslate: r, translate: i, wrapperEl: a } = t;
|
|
832
|
+
if (n.virtualTranslate) return r ? -i : i;
|
|
833
|
+
if (n.cssMode) return i;
|
|
834
|
+
let o = k(a, e);
|
|
835
|
+
return o += t.cssOverflowAdjustment(), r && (o = -o), o || 0;
|
|
836
|
+
}
|
|
837
|
+
//#endregion
|
|
838
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/translate/setTranslate.js
|
|
839
|
+
function Ne(e, t) {
|
|
840
|
+
let n = this, { rtlTranslate: r, params: i, wrapperEl: a, progress: o } = n, s = 0, c = 0;
|
|
841
|
+
n.isHorizontal() ? s = r ? -e : e : c = e, i.roundLengths && (s = Math.floor(s), c = Math.floor(c)), n.previousTranslate = n.translate, n.translate = n.isHorizontal() ? s : c, i.cssMode ? a[n.isHorizontal() ? "scrollLeft" : "scrollTop"] = n.isHorizontal() ? -s : -c : i.virtualTranslate || (n.isHorizontal() ? s -= n.cssOverflowAdjustment() : c -= n.cssOverflowAdjustment(), a.style.transform = `translate3d(${s}px, ${c}px, 0px)`);
|
|
842
|
+
let l, u = n.maxTranslate() - n.minTranslate();
|
|
843
|
+
l = u === 0 ? 0 : (e - n.minTranslate()) / u, l !== o && n.updateProgress(e), n.emit("setTranslate", n.translate, t);
|
|
844
|
+
}
|
|
845
|
+
//#endregion
|
|
846
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/translate/minTranslate.js
|
|
847
|
+
function Pe() {
|
|
848
|
+
return -this.snapGrid[0];
|
|
849
|
+
}
|
|
850
|
+
//#endregion
|
|
851
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/translate/maxTranslate.js
|
|
852
|
+
function Fe() {
|
|
853
|
+
return -this.snapGrid[this.snapGrid.length - 1];
|
|
854
|
+
}
|
|
855
|
+
//#endregion
|
|
856
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/translate/translateTo.js
|
|
857
|
+
function Ie(e = 0, t = this.params.speed, n = !0, r = !0, i) {
|
|
858
|
+
let a = this, { params: o, wrapperEl: s } = a;
|
|
859
|
+
if (a.animating && o.preventInteractionOnTransition) return !1;
|
|
860
|
+
let c = a.minTranslate(), l = a.maxTranslate(), u;
|
|
861
|
+
if (u = r && e > c ? c : r && e < l ? l : e, a.updateProgress(u), o.cssMode) {
|
|
862
|
+
let e = a.isHorizontal();
|
|
863
|
+
if (t === 0) s[e ? "scrollLeft" : "scrollTop"] = -u;
|
|
864
|
+
else {
|
|
865
|
+
if (!a.support.smoothScroll) return ee({
|
|
866
|
+
swiper: a,
|
|
867
|
+
targetPosition: -u,
|
|
868
|
+
side: e ? "left" : "top"
|
|
869
|
+
}), !0;
|
|
870
|
+
s.scrollTo({
|
|
871
|
+
[e ? "left" : "top"]: -u,
|
|
872
|
+
behavior: "smooth"
|
|
873
|
+
});
|
|
874
|
+
}
|
|
875
|
+
return !0;
|
|
876
|
+
}
|
|
877
|
+
return t === 0 ? (a.setTransition(0), a.setTranslate(u), n && (a.emit("beforeTransitionStart", t, i), a.emit("transitionEnd"))) : (a.setTransition(t), a.setTranslate(u), n && (a.emit("beforeTransitionStart", t, i), a.emit("transitionStart")), a.animating || (a.animating = !0, a.onTranslateToWrapperTransitionEnd || (a.onTranslateToWrapperTransitionEnd = function(e) {
|
|
878
|
+
!a || a.destroyed || e.target === this && (a.wrapperEl.removeEventListener("transitionend", a.onTranslateToWrapperTransitionEnd), a.onTranslateToWrapperTransitionEnd = null, delete a.onTranslateToWrapperTransitionEnd, n && a.emit("transitionEnd"));
|
|
879
|
+
}), a.wrapperEl.addEventListener("transitionend", a.onTranslateToWrapperTransitionEnd))), !0;
|
|
880
|
+
}
|
|
881
|
+
//#endregion
|
|
882
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/translate/index.js
|
|
883
|
+
var Le = {
|
|
884
|
+
getTranslate: Me,
|
|
885
|
+
setTranslate: Ne,
|
|
886
|
+
minTranslate: Pe,
|
|
887
|
+
maxTranslate: Fe,
|
|
888
|
+
translateTo: Ie
|
|
889
|
+
};
|
|
890
|
+
//#endregion
|
|
891
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/transition/setTransition.js
|
|
892
|
+
function Re(e, t) {
|
|
893
|
+
let n = this;
|
|
894
|
+
n.params.cssMode || (n.wrapperEl.style.transitionDuration = `${e}ms`), n.emit("setTransition", e, t);
|
|
895
|
+
}
|
|
896
|
+
//#endregion
|
|
897
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/transition/transitionEmit.js
|
|
898
|
+
function ze({ swiper: e, runCallbacks: t, direction: n, step: r }) {
|
|
899
|
+
let { activeIndex: i, previousIndex: a } = e, o = n;
|
|
900
|
+
if (o || (o = i > a ? "next" : i < a ? "prev" : "reset"), e.emit(`transition${r}`), t && i !== a) {
|
|
901
|
+
if (o === "reset") {
|
|
902
|
+
e.emit(`slideResetTransition${r}`);
|
|
903
|
+
return;
|
|
904
|
+
}
|
|
905
|
+
e.emit(`slideChangeTransition${r}`), o === "next" ? e.emit(`slideNextTransition${r}`) : e.emit(`slidePrevTransition${r}`);
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
//#endregion
|
|
909
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/transition/transitionStart.js
|
|
910
|
+
function Be(e = !0, t) {
|
|
911
|
+
let n = this, { params: r } = n;
|
|
912
|
+
r.cssMode || (r.autoHeight && n.updateAutoHeight(), ze({
|
|
913
|
+
swiper: n,
|
|
914
|
+
runCallbacks: e,
|
|
915
|
+
direction: t,
|
|
916
|
+
step: "Start"
|
|
917
|
+
}));
|
|
918
|
+
}
|
|
919
|
+
//#endregion
|
|
920
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/transition/transitionEnd.js
|
|
921
|
+
function Ve(e = !0, t) {
|
|
922
|
+
let n = this, { params: r } = n;
|
|
923
|
+
n.animating = !1, !r.cssMode && (n.setTransition(0), ze({
|
|
924
|
+
swiper: n,
|
|
925
|
+
runCallbacks: e,
|
|
926
|
+
direction: t,
|
|
927
|
+
step: "End"
|
|
928
|
+
}));
|
|
929
|
+
}
|
|
930
|
+
//#endregion
|
|
931
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/transition/index.js
|
|
932
|
+
var He = {
|
|
933
|
+
setTransition: Re,
|
|
934
|
+
transitionStart: Be,
|
|
935
|
+
transitionEnd: Ve
|
|
936
|
+
};
|
|
937
|
+
//#endregion
|
|
938
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/slide/slideTo.js
|
|
939
|
+
function Ue(e = 0, t = this.params.speed, n = !0, r, i) {
|
|
940
|
+
typeof e == "string" && (e = parseInt(e, 10));
|
|
941
|
+
let a = this, o = e;
|
|
942
|
+
o < 0 && (o = 0);
|
|
943
|
+
let { params: s, snapGrid: c, slidesGrid: l, previousIndex: u, activeIndex: d, rtlTranslate: f, wrapperEl: p, enabled: m } = a;
|
|
944
|
+
if (a.animating && s.preventInteractionOnTransition || !m && !r && !i) return !1;
|
|
945
|
+
let h = Math.min(a.params.slidesPerGroupSkip, o), g = h + Math.floor((o - h) / a.params.slidesPerGroup);
|
|
946
|
+
g >= c.length && (g = c.length - 1);
|
|
947
|
+
let _ = -c[g];
|
|
948
|
+
if (s.normalizeSlideIndex) for (let e = 0; e < l.length; e += 1) {
|
|
949
|
+
let t = -Math.floor(_ * 100), n = Math.floor(l[e] * 100), r = Math.floor(l[e + 1] * 100);
|
|
950
|
+
l[e + 1] === void 0 ? t >= n && (o = e) : t >= n && t < r - (r - n) / 2 ? o = e : t >= n && t < r && (o = e + 1);
|
|
951
|
+
}
|
|
952
|
+
if (a.initialized && o !== d && (!a.allowSlideNext && (f ? _ > a.translate && _ > a.minTranslate() : _ < a.translate && _ < a.minTranslate()) || !a.allowSlidePrev && _ > a.translate && _ > a.maxTranslate() && (d || 0) !== o)) return !1;
|
|
953
|
+
o !== (u || 0) && n && a.emit("beforeSlideChangeStart"), a.updateProgress(_);
|
|
954
|
+
let v;
|
|
955
|
+
if (v = o > d ? "next" : o < d ? "prev" : "reset", f && -_ === a.translate || !f && _ === a.translate) return a.updateActiveIndex(o), s.autoHeight && a.updateAutoHeight(), a.updateSlidesClasses(), s.effect !== "slide" && a.setTranslate(_), v !== "reset" && (a.transitionStart(n, v), a.transitionEnd(n, v)), !1;
|
|
956
|
+
if (s.cssMode) {
|
|
957
|
+
let e = a.isHorizontal(), n = f ? _ : -_;
|
|
958
|
+
if (t === 0) {
|
|
959
|
+
let t = a.virtual && a.params.virtual.enabled;
|
|
960
|
+
t && (a.wrapperEl.style.scrollSnapType = "none", a._immediateVirtual = !0), t && !a._cssModeVirtualInitialSet && a.params.initialSlide > 0 ? (a._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
|
|
961
|
+
p[e ? "scrollLeft" : "scrollTop"] = n;
|
|
962
|
+
})) : p[e ? "scrollLeft" : "scrollTop"] = n, t && requestAnimationFrame(() => {
|
|
963
|
+
a.wrapperEl.style.scrollSnapType = "", a._immediateVirtual = !1;
|
|
964
|
+
});
|
|
965
|
+
} else {
|
|
966
|
+
if (!a.support.smoothScroll) return ee({
|
|
967
|
+
swiper: a,
|
|
968
|
+
targetPosition: n,
|
|
969
|
+
side: e ? "left" : "top"
|
|
970
|
+
}), !0;
|
|
971
|
+
p.scrollTo({
|
|
972
|
+
[e ? "left" : "top"]: n,
|
|
973
|
+
behavior: "smooth"
|
|
974
|
+
});
|
|
975
|
+
}
|
|
976
|
+
return !0;
|
|
977
|
+
}
|
|
978
|
+
return a.setTransition(t), a.setTranslate(_), a.updateActiveIndex(o), a.updateSlidesClasses(), a.emit("beforeTransitionStart", t, r), a.transitionStart(n, v), t === 0 ? a.transitionEnd(n, v) : a.animating || (a.animating = !0, a.onSlideToWrapperTransitionEnd || (a.onSlideToWrapperTransitionEnd = function(e) {
|
|
979
|
+
!a || a.destroyed || e.target === this && (a.wrapperEl.removeEventListener("transitionend", a.onSlideToWrapperTransitionEnd), a.onSlideToWrapperTransitionEnd = null, delete a.onSlideToWrapperTransitionEnd, a.transitionEnd(n, v));
|
|
980
|
+
}), a.wrapperEl.addEventListener("transitionend", a.onSlideToWrapperTransitionEnd)), !0;
|
|
981
|
+
}
|
|
982
|
+
//#endregion
|
|
983
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/slide/slideToLoop.js
|
|
984
|
+
function We(e = 0, t = this.params.speed, n = !0, r) {
|
|
985
|
+
typeof e == "string" && (e = parseInt(e, 10));
|
|
986
|
+
let i = this, a = e;
|
|
987
|
+
return i.params.loop && (i.virtual && i.params.virtual.enabled ? a += i.virtual.slidesBefore : a = i.getSlideIndexByData(a)), i.slideTo(a, t, n, r);
|
|
988
|
+
}
|
|
989
|
+
//#endregion
|
|
990
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/slide/slideNext.js
|
|
991
|
+
function Ge(e = this.params.speed, t = !0, n) {
|
|
992
|
+
let r = this, { enabled: i, params: a, animating: o } = r;
|
|
993
|
+
if (!i) return r;
|
|
994
|
+
let s = a.slidesPerGroup;
|
|
995
|
+
a.slidesPerView === "auto" && a.slidesPerGroup === 1 && a.slidesPerGroupAuto && (s = Math.max(r.slidesPerViewDynamic("current", !0), 1));
|
|
996
|
+
let c = r.activeIndex < a.slidesPerGroupSkip ? 1 : s, l = r.virtual && a.virtual.enabled;
|
|
997
|
+
if (a.loop) {
|
|
998
|
+
if (o && !l && a.loopPreventsSliding) return !1;
|
|
999
|
+
r.loopFix({ direction: "next" }), r._clientLeft = r.wrapperEl.clientLeft;
|
|
1000
|
+
}
|
|
1001
|
+
return a.rewind && r.isEnd ? r.slideTo(0, e, t, n) : r.slideTo(r.activeIndex + c, e, t, n);
|
|
1002
|
+
}
|
|
1003
|
+
//#endregion
|
|
1004
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/slide/slidePrev.js
|
|
1005
|
+
function Ke(e = this.params.speed, t = !0, n) {
|
|
1006
|
+
let r = this, { params: i, snapGrid: a, slidesGrid: o, rtlTranslate: s, enabled: c, animating: l } = r;
|
|
1007
|
+
if (!c) return r;
|
|
1008
|
+
let u = r.virtual && i.virtual.enabled;
|
|
1009
|
+
if (i.loop) {
|
|
1010
|
+
if (l && !u && i.loopPreventsSliding) return !1;
|
|
1011
|
+
r.loopFix({ direction: "prev" }), r._clientLeft = r.wrapperEl.clientLeft;
|
|
1012
|
+
}
|
|
1013
|
+
let d = s ? r.translate : -r.translate;
|
|
1014
|
+
function f(e) {
|
|
1015
|
+
return e < 0 ? -Math.floor(Math.abs(e)) : Math.floor(e);
|
|
1016
|
+
}
|
|
1017
|
+
let p = f(d), m = a[a.map((e) => f(e)).indexOf(p) - 1];
|
|
1018
|
+
if (m === void 0 && i.cssMode) {
|
|
1019
|
+
let e;
|
|
1020
|
+
a.forEach((t, n) => {
|
|
1021
|
+
p >= t && (e = n);
|
|
1022
|
+
}), e !== void 0 && (m = a[e > 0 ? e - 1 : e]);
|
|
1023
|
+
}
|
|
1024
|
+
let h = 0;
|
|
1025
|
+
if (m !== void 0 && (h = o.indexOf(m), h < 0 && (h = r.activeIndex - 1), i.slidesPerView === "auto" && i.slidesPerGroup === 1 && i.slidesPerGroupAuto && (h = h - r.slidesPerViewDynamic("previous", !0) + 1, h = Math.max(h, 0))), i.rewind && r.isBeginning) {
|
|
1026
|
+
let i = r.params.virtual && r.params.virtual.enabled && r.virtual ? r.virtual.slides.length - 1 : r.slides.length - 1;
|
|
1027
|
+
return r.slideTo(i, e, t, n);
|
|
1028
|
+
}
|
|
1029
|
+
return r.slideTo(h, e, t, n);
|
|
1030
|
+
}
|
|
1031
|
+
//#endregion
|
|
1032
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/slide/slideReset.js
|
|
1033
|
+
function qe(e = this.params.speed, t = !0, n) {
|
|
1034
|
+
let r = this;
|
|
1035
|
+
return r.slideTo(r.activeIndex, e, t, n);
|
|
1036
|
+
}
|
|
1037
|
+
//#endregion
|
|
1038
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/slide/slideToClosest.js
|
|
1039
|
+
function Je(e = this.params.speed, t = !0, n, r = .5) {
|
|
1040
|
+
let i = this, a = i.activeIndex, o = Math.min(i.params.slidesPerGroupSkip, a), s = o + Math.floor((a - o) / i.params.slidesPerGroup), c = i.rtlTranslate ? i.translate : -i.translate;
|
|
1041
|
+
if (c >= i.snapGrid[s]) {
|
|
1042
|
+
let e = i.snapGrid[s], t = i.snapGrid[s + 1];
|
|
1043
|
+
c - e > (t - e) * r && (a += i.params.slidesPerGroup);
|
|
1044
|
+
} else {
|
|
1045
|
+
let e = i.snapGrid[s - 1], t = i.snapGrid[s];
|
|
1046
|
+
c - e <= (t - e) * r && (a -= i.params.slidesPerGroup);
|
|
1047
|
+
}
|
|
1048
|
+
return a = Math.max(a, 0), a = Math.min(a, i.slidesGrid.length - 1), i.slideTo(a, e, t, n);
|
|
1049
|
+
}
|
|
1050
|
+
//#endregion
|
|
1051
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/slide/slideToClickedSlide.js
|
|
1052
|
+
function Ye() {
|
|
1053
|
+
let e = this, { params: t, slidesEl: n } = e, r = t.slidesPerView === "auto" ? e.slidesPerViewDynamic() : t.slidesPerView, i = e.clickedIndex, a, o = e.isElement ? "swiper-slide" : `.${t.slideClass}`;
|
|
1054
|
+
if (t.loop) {
|
|
1055
|
+
if (e.animating) return;
|
|
1056
|
+
a = parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"), 10), t.centeredSlides ? i < e.loopedSlides - r / 2 || i > e.slides.length - e.loopedSlides + r / 2 ? (e.loopFix(), i = e.getSlideIndex(P(n, `${o}[data-swiper-slide-index="${a}"]`)[0]), E(() => {
|
|
1057
|
+
e.slideTo(i);
|
|
1058
|
+
})) : e.slideTo(i) : i > e.slides.length - r ? (e.loopFix(), i = e.getSlideIndex(P(n, `${o}[data-swiper-slide-index="${a}"]`)[0]), E(() => {
|
|
1059
|
+
e.slideTo(i);
|
|
1060
|
+
})) : e.slideTo(i);
|
|
1061
|
+
} else e.slideTo(i);
|
|
1062
|
+
}
|
|
1063
|
+
//#endregion
|
|
1064
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/slide/index.js
|
|
1065
|
+
var Xe = {
|
|
1066
|
+
slideTo: Ue,
|
|
1067
|
+
slideToLoop: We,
|
|
1068
|
+
slideNext: Ge,
|
|
1069
|
+
slidePrev: Ke,
|
|
1070
|
+
slideReset: qe,
|
|
1071
|
+
slideToClosest: Je,
|
|
1072
|
+
slideToClickedSlide: Ye
|
|
1073
|
+
};
|
|
1074
|
+
//#endregion
|
|
1075
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/loop/loopCreate.js
|
|
1076
|
+
function Ze(e) {
|
|
1077
|
+
let t = this, { params: n, slidesEl: r } = t;
|
|
1078
|
+
!n.loop || t.virtual && t.params.virtual.enabled || (P(r, `.${n.slideClass}, swiper-slide`).forEach((e, t) => {
|
|
1079
|
+
e.setAttribute("data-swiper-slide-index", t);
|
|
1080
|
+
}), t.loopFix({
|
|
1081
|
+
slideRealIndex: e,
|
|
1082
|
+
direction: n.centeredSlides ? void 0 : "next"
|
|
1083
|
+
}));
|
|
1084
|
+
}
|
|
1085
|
+
//#endregion
|
|
1086
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/loop/loopFix.js
|
|
1087
|
+
function Qe({ slideRealIndex: e, slideTo: t = !0, direction: n, setTranslate: r, activeSlideIndex: i, byController: a, byMousewheel: o } = {}) {
|
|
1088
|
+
let s = this;
|
|
1089
|
+
if (!s.params.loop) return;
|
|
1090
|
+
s.emit("beforeLoopFix");
|
|
1091
|
+
let { slides: c, allowSlidePrev: l, allowSlideNext: u, slidesEl: d, params: f } = s;
|
|
1092
|
+
if (s.allowSlidePrev = !0, s.allowSlideNext = !0, s.virtual && f.virtual.enabled) {
|
|
1093
|
+
t && (!f.centeredSlides && s.snapIndex === 0 ? s.slideTo(s.virtual.slides.length, 0, !1, !0) : f.centeredSlides && s.snapIndex < f.slidesPerView ? s.slideTo(s.virtual.slides.length + s.snapIndex, 0, !1, !0) : s.snapIndex === s.snapGrid.length - 1 && s.slideTo(s.virtual.slidesBefore, 0, !1, !0)), s.allowSlidePrev = l, s.allowSlideNext = u, s.emit("loopFix");
|
|
1094
|
+
return;
|
|
1095
|
+
}
|
|
1096
|
+
let p = f.slidesPerView === "auto" ? s.slidesPerViewDynamic() : Math.ceil(parseFloat(f.slidesPerView, 10)), m = f.loopedSlides || p;
|
|
1097
|
+
m % f.slidesPerGroup !== 0 && (m += f.slidesPerGroup - m % f.slidesPerGroup), s.loopedSlides = m;
|
|
1098
|
+
let h = [], g = [], _ = s.activeIndex;
|
|
1099
|
+
i === void 0 ? i = s.getSlideIndex(s.slides.filter((e) => e.classList.contains(f.slideActiveClass))[0]) : _ = i;
|
|
1100
|
+
let v = n === "next" || !n, y = n === "prev" || !n, b = 0, x = 0;
|
|
1101
|
+
if (i < m) {
|
|
1102
|
+
b = Math.max(m - i, f.slidesPerGroup);
|
|
1103
|
+
for (let e = 0; e < m - i; e += 1) {
|
|
1104
|
+
let t = e - Math.floor(e / c.length) * c.length;
|
|
1105
|
+
h.push(c.length - t - 1);
|
|
1106
|
+
}
|
|
1107
|
+
} else if (i > s.slides.length - m * 2) {
|
|
1108
|
+
x = Math.max(i - (s.slides.length - m * 2), f.slidesPerGroup);
|
|
1109
|
+
for (let e = 0; e < x; e += 1) {
|
|
1110
|
+
let t = e - Math.floor(e / c.length) * c.length;
|
|
1111
|
+
g.push(t);
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
if (y && h.forEach((e) => {
|
|
1115
|
+
s.slides[e].swiperLoopMoveDOM = !0, d.prepend(s.slides[e]), s.slides[e].swiperLoopMoveDOM = !1;
|
|
1116
|
+
}), v && g.forEach((e) => {
|
|
1117
|
+
s.slides[e].swiperLoopMoveDOM = !0, d.append(s.slides[e]), s.slides[e].swiperLoopMoveDOM = !1;
|
|
1118
|
+
}), s.recalcSlides(), f.slidesPerView === "auto" && s.updateSlides(), f.watchSlidesProgress && s.updateSlidesOffset(), t) {
|
|
1119
|
+
if (h.length > 0 && y) if (e === void 0) {
|
|
1120
|
+
let e = s.slidesGrid[_], t = s.slidesGrid[_ + b] - e;
|
|
1121
|
+
o ? s.setTranslate(s.translate - t) : (s.slideTo(_ + b, 0, !1, !0), r && (s.touches[s.isHorizontal() ? "startX" : "startY"] += t));
|
|
1122
|
+
} else r && s.slideToLoop(e, 0, !1, !0);
|
|
1123
|
+
else if (g.length > 0 && v) if (e === void 0) {
|
|
1124
|
+
let e = s.slidesGrid[_], t = s.slidesGrid[_ - x] - e;
|
|
1125
|
+
o ? s.setTranslate(s.translate - t) : (s.slideTo(_ - x, 0, !1, !0), r && (s.touches[s.isHorizontal() ? "startX" : "startY"] += t));
|
|
1126
|
+
} else s.slideToLoop(e, 0, !1, !0);
|
|
1127
|
+
}
|
|
1128
|
+
if (s.allowSlidePrev = l, s.allowSlideNext = u, s.controller && s.controller.control && !a) {
|
|
1129
|
+
let t = {
|
|
1130
|
+
slideRealIndex: e,
|
|
1131
|
+
slideTo: !1,
|
|
1132
|
+
direction: n,
|
|
1133
|
+
setTranslate: r,
|
|
1134
|
+
activeSlideIndex: i,
|
|
1135
|
+
byController: !0
|
|
1136
|
+
};
|
|
1137
|
+
Array.isArray(s.controller.control) ? s.controller.control.forEach((e) => {
|
|
1138
|
+
!e.destroyed && e.params.loop && e.loopFix(t);
|
|
1139
|
+
}) : s.controller.control instanceof s.constructor && s.controller.control.params.loop && s.controller.control.loopFix(t);
|
|
1140
|
+
}
|
|
1141
|
+
s.emit("loopFix");
|
|
1142
|
+
}
|
|
1143
|
+
//#endregion
|
|
1144
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/loop/loopDestroy.js
|
|
1145
|
+
function $e() {
|
|
1146
|
+
let e = this, { params: t, slidesEl: n } = e;
|
|
1147
|
+
if (!t.loop || e.virtual && e.params.virtual.enabled) return;
|
|
1148
|
+
e.recalcSlides();
|
|
1149
|
+
let r = [];
|
|
1150
|
+
e.slides.forEach((e) => {
|
|
1151
|
+
let t = e.swiperSlideIndex === void 0 ? e.getAttribute("data-swiper-slide-index") * 1 : e.swiperSlideIndex;
|
|
1152
|
+
r[t] = e;
|
|
1153
|
+
}), e.slides.forEach((e) => {
|
|
1154
|
+
e.removeAttribute("data-swiper-slide-index");
|
|
1155
|
+
}), r.forEach((e) => {
|
|
1156
|
+
n.append(e);
|
|
1157
|
+
}), e.recalcSlides(), e.slideTo(e.realIndex, 0);
|
|
1158
|
+
}
|
|
1159
|
+
//#endregion
|
|
1160
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/loop/index.js
|
|
1161
|
+
var et = {
|
|
1162
|
+
loopCreate: Ze,
|
|
1163
|
+
loopFix: Qe,
|
|
1164
|
+
loopDestroy: $e
|
|
1165
|
+
};
|
|
1166
|
+
//#endregion
|
|
1167
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/grab-cursor/setGrabCursor.js
|
|
1168
|
+
function tt(e) {
|
|
1169
|
+
let t = this;
|
|
1170
|
+
if (!t.params.simulateTouch || t.params.watchOverflow && t.isLocked || t.params.cssMode) return;
|
|
1171
|
+
let n = t.params.touchEventsTarget === "container" ? t.el : t.wrapperEl;
|
|
1172
|
+
t.isElement && (t.__preventObserver__ = !0), n.style.cursor = "move", n.style.cursor = e ? "grabbing" : "grab", t.isElement && requestAnimationFrame(() => {
|
|
1173
|
+
t.__preventObserver__ = !1;
|
|
1174
|
+
});
|
|
1175
|
+
}
|
|
1176
|
+
//#endregion
|
|
1177
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/grab-cursor/unsetGrabCursor.js
|
|
1178
|
+
function nt() {
|
|
1179
|
+
let e = this;
|
|
1180
|
+
e.params.watchOverflow && e.isLocked || e.params.cssMode || (e.isElement && (e.__preventObserver__ = !0), e[e.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "", e.isElement && requestAnimationFrame(() => {
|
|
1181
|
+
e.__preventObserver__ = !1;
|
|
1182
|
+
}));
|
|
1183
|
+
}
|
|
1184
|
+
//#endregion
|
|
1185
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/grab-cursor/index.js
|
|
1186
|
+
var rt = {
|
|
1187
|
+
setGrabCursor: tt,
|
|
1188
|
+
unsetGrabCursor: nt
|
|
1189
|
+
};
|
|
1190
|
+
//#endregion
|
|
1191
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/events/onTouchStart.js
|
|
1192
|
+
function it(e, t = this) {
|
|
1193
|
+
function n(t) {
|
|
1194
|
+
if (!t || t === S() || t === w()) return null;
|
|
1195
|
+
t.assignedSlot && (t = t.assignedSlot);
|
|
1196
|
+
let r = t.closest(e);
|
|
1197
|
+
return !r && !t.getRootNode ? null : r || n(t.getRootNode().host);
|
|
1198
|
+
}
|
|
1199
|
+
return n(t);
|
|
1200
|
+
}
|
|
1201
|
+
function at(e) {
|
|
1202
|
+
let t = this, n = S(), r = w(), i = t.touchEventsData;
|
|
1203
|
+
i.evCache.push(e);
|
|
1204
|
+
let { params: a, touches: o, enabled: s } = t;
|
|
1205
|
+
if (!s || !a.simulateTouch && e.pointerType === "mouse" || t.animating && a.preventInteractionOnTransition) return;
|
|
1206
|
+
!t.animating && a.cssMode && a.loop && t.loopFix();
|
|
1207
|
+
let c = e;
|
|
1208
|
+
c.originalEvent && (c = c.originalEvent);
|
|
1209
|
+
let l = c.target;
|
|
1210
|
+
if (a.touchEventsTarget === "wrapper" && !t.wrapperEl.contains(l) || "which" in c && c.which === 3 || "button" in c && c.button > 0 || i.isTouched && i.isMoved) return;
|
|
1211
|
+
let u = !!a.noSwipingClass && a.noSwipingClass !== "", d = e.composedPath ? e.composedPath() : e.path;
|
|
1212
|
+
u && c.target && c.target.shadowRoot && d && (l = d[0]);
|
|
1213
|
+
let f = a.noSwipingSelector ? a.noSwipingSelector : `.${a.noSwipingClass}`, p = !!(c.target && c.target.shadowRoot);
|
|
1214
|
+
if (a.noSwiping && (p ? it(f, l) : l.closest(f))) {
|
|
1215
|
+
t.allowClick = !0;
|
|
1216
|
+
return;
|
|
1217
|
+
}
|
|
1218
|
+
if (a.swipeHandler && !l.closest(a.swipeHandler)) return;
|
|
1219
|
+
o.currentX = c.pageX, o.currentY = c.pageY;
|
|
1220
|
+
let m = o.currentX, h = o.currentY, g = a.edgeSwipeDetection || a.iOSEdgeSwipeDetection, _ = a.edgeSwipeThreshold || a.iOSEdgeSwipeThreshold;
|
|
1221
|
+
if (g && (m <= _ || m >= r.innerWidth - _)) if (g === "prevent") e.preventDefault();
|
|
1222
|
+
else return;
|
|
1223
|
+
Object.assign(i, {
|
|
1224
|
+
isTouched: !0,
|
|
1225
|
+
isMoved: !1,
|
|
1226
|
+
allowTouchCallbacks: !0,
|
|
1227
|
+
isScrolling: void 0,
|
|
1228
|
+
startMoving: void 0
|
|
1229
|
+
}), o.startX = m, o.startY = h, i.touchStartTime = D(), t.allowClick = !0, t.updateSize(), t.swipeDirection = void 0, a.threshold > 0 && (i.allowThresholdMove = !1);
|
|
1230
|
+
let v = !0;
|
|
1231
|
+
l.matches(i.focusableElements) && (v = !1, l.nodeName === "SELECT" && (i.isTouched = !1)), n.activeElement && n.activeElement.matches(i.focusableElements) && n.activeElement !== l && n.activeElement.blur();
|
|
1232
|
+
let y = v && t.allowTouchMove && a.touchStartPreventDefault;
|
|
1233
|
+
(a.touchStartForcePreventDefault || y) && !l.isContentEditable && c.preventDefault(), a.freeMode && a.freeMode.enabled && t.freeMode && t.animating && !a.cssMode && t.freeMode.onTouchStart(), t.emit("touchStart", c);
|
|
1234
|
+
}
|
|
1235
|
+
//#endregion
|
|
1236
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/events/onTouchMove.js
|
|
1237
|
+
function ot(e) {
|
|
1238
|
+
let t = S(), n = this, r = n.touchEventsData, { params: i, touches: a, rtlTranslate: o, enabled: s } = n;
|
|
1239
|
+
if (!s || !i.simulateTouch && e.pointerType === "mouse") return;
|
|
1240
|
+
let c = e;
|
|
1241
|
+
if (c.originalEvent && (c = c.originalEvent), !r.isTouched) {
|
|
1242
|
+
r.startMoving && r.isScrolling && n.emit("touchMoveOpposite", c);
|
|
1243
|
+
return;
|
|
1244
|
+
}
|
|
1245
|
+
let l = r.evCache.findIndex((e) => e.pointerId === c.pointerId);
|
|
1246
|
+
l >= 0 && (r.evCache[l] = c);
|
|
1247
|
+
let u = r.evCache.length > 1 ? r.evCache[0] : c, d = u.pageX, f = u.pageY;
|
|
1248
|
+
if (c.preventedByNestedSwiper) {
|
|
1249
|
+
a.startX = d, a.startY = f;
|
|
1250
|
+
return;
|
|
1251
|
+
}
|
|
1252
|
+
if (!n.allowTouchMove) {
|
|
1253
|
+
c.target.matches(r.focusableElements) || (n.allowClick = !1), r.isTouched && (Object.assign(a, {
|
|
1254
|
+
startX: d,
|
|
1255
|
+
startY: f,
|
|
1256
|
+
prevX: n.touches.currentX,
|
|
1257
|
+
prevY: n.touches.currentY,
|
|
1258
|
+
currentX: d,
|
|
1259
|
+
currentY: f
|
|
1260
|
+
}), r.touchStartTime = D());
|
|
1261
|
+
return;
|
|
1262
|
+
}
|
|
1263
|
+
if (i.touchReleaseOnEdges && !i.loop) {
|
|
1264
|
+
if (n.isVertical()) {
|
|
1265
|
+
if (f < a.startY && n.translate <= n.maxTranslate() || f > a.startY && n.translate >= n.minTranslate()) {
|
|
1266
|
+
r.isTouched = !1, r.isMoved = !1;
|
|
1267
|
+
return;
|
|
1268
|
+
}
|
|
1269
|
+
} else if (d < a.startX && n.translate <= n.maxTranslate() || d > a.startX && n.translate >= n.minTranslate()) return;
|
|
1270
|
+
}
|
|
1271
|
+
if (t.activeElement && c.target === t.activeElement && c.target.matches(r.focusableElements)) {
|
|
1272
|
+
r.isMoved = !0, n.allowClick = !1;
|
|
1273
|
+
return;
|
|
1274
|
+
}
|
|
1275
|
+
if (r.allowTouchCallbacks && n.emit("touchMove", c), c.targetTouches && c.targetTouches.length > 1) return;
|
|
1276
|
+
a.currentX = d, a.currentY = f;
|
|
1277
|
+
let p = a.currentX - a.startX, m = a.currentY - a.startY;
|
|
1278
|
+
if (n.params.threshold && Math.sqrt(p ** 2 + m ** 2) < n.params.threshold) return;
|
|
1279
|
+
if (r.isScrolling === void 0) {
|
|
1280
|
+
let e;
|
|
1281
|
+
n.isHorizontal() && a.currentY === a.startY || n.isVertical() && a.currentX === a.startX ? r.isScrolling = !1 : p * p + m * m >= 25 && (e = Math.atan2(Math.abs(m), Math.abs(p)) * 180 / Math.PI, r.isScrolling = n.isHorizontal() ? e > i.touchAngle : 90 - e > i.touchAngle);
|
|
1282
|
+
}
|
|
1283
|
+
if (r.isScrolling && n.emit("touchMoveOpposite", c), r.startMoving === void 0 && (a.currentX !== a.startX || a.currentY !== a.startY) && (r.startMoving = !0), r.isScrolling || n.zoom && n.params.zoom && n.params.zoom.enabled && r.evCache.length > 1) {
|
|
1284
|
+
r.isTouched = !1;
|
|
1285
|
+
return;
|
|
1286
|
+
}
|
|
1287
|
+
if (!r.startMoving) return;
|
|
1288
|
+
n.allowClick = !1, !i.cssMode && c.cancelable && c.preventDefault(), i.touchMoveStopPropagation && !i.nested && c.stopPropagation();
|
|
1289
|
+
let h = n.isHorizontal() ? p : m, g = n.isHorizontal() ? a.currentX - a.previousX : a.currentY - a.previousY;
|
|
1290
|
+
i.oneWayMovement && (h = Math.abs(h) * (o ? 1 : -1), g = Math.abs(g) * (o ? 1 : -1)), a.diff = h, h *= i.touchRatio, o && (h = -h, g = -g);
|
|
1291
|
+
let _ = n.touchesDirection;
|
|
1292
|
+
n.swipeDirection = h > 0 ? "prev" : "next", n.touchesDirection = g > 0 ? "prev" : "next";
|
|
1293
|
+
let v = n.params.loop && !i.cssMode;
|
|
1294
|
+
if (!r.isMoved) {
|
|
1295
|
+
if (v && n.loopFix({ direction: n.swipeDirection }), r.startTranslate = n.getTranslate(), n.setTransition(0), n.animating) {
|
|
1296
|
+
let e = new window.CustomEvent("transitionend", {
|
|
1297
|
+
bubbles: !0,
|
|
1298
|
+
cancelable: !0
|
|
1299
|
+
});
|
|
1300
|
+
n.wrapperEl.dispatchEvent(e);
|
|
1301
|
+
}
|
|
1302
|
+
r.allowMomentumBounce = !1, i.grabCursor && (n.allowSlideNext === !0 || n.allowSlidePrev === !0) && n.setGrabCursor(!0), n.emit("sliderFirstMove", c);
|
|
1303
|
+
}
|
|
1304
|
+
let y;
|
|
1305
|
+
r.isMoved && _ !== n.touchesDirection && v && Math.abs(h) >= 1 && (n.loopFix({
|
|
1306
|
+
direction: n.swipeDirection,
|
|
1307
|
+
setTranslate: !0
|
|
1308
|
+
}), y = !0), n.emit("sliderMove", c), r.isMoved = !0, r.currentTranslate = h + r.startTranslate;
|
|
1309
|
+
let b = !0, x = i.resistanceRatio;
|
|
1310
|
+
if (i.touchReleaseOnEdges && (x = 0), h > 0 ? (v && !y && r.currentTranslate > (i.centeredSlides ? n.minTranslate() - n.size / 2 : n.minTranslate()) && n.loopFix({
|
|
1311
|
+
direction: "prev",
|
|
1312
|
+
setTranslate: !0,
|
|
1313
|
+
activeSlideIndex: 0
|
|
1314
|
+
}), r.currentTranslate > n.minTranslate() && (b = !1, i.resistance && (r.currentTranslate = n.minTranslate() - 1 + (-n.minTranslate() + r.startTranslate + h) ** x))) : h < 0 && (v && !y && r.currentTranslate < (i.centeredSlides ? n.maxTranslate() + n.size / 2 : n.maxTranslate()) && n.loopFix({
|
|
1315
|
+
direction: "next",
|
|
1316
|
+
setTranslate: !0,
|
|
1317
|
+
activeSlideIndex: n.slides.length - (i.slidesPerView === "auto" ? n.slidesPerViewDynamic() : Math.ceil(parseFloat(i.slidesPerView, 10)))
|
|
1318
|
+
}), r.currentTranslate < n.maxTranslate() && (b = !1, i.resistance && (r.currentTranslate = n.maxTranslate() + 1 - (n.maxTranslate() - r.startTranslate - h) ** x))), b && (c.preventedByNestedSwiper = !0), !n.allowSlideNext && n.swipeDirection === "next" && r.currentTranslate < r.startTranslate && (r.currentTranslate = r.startTranslate), !n.allowSlidePrev && n.swipeDirection === "prev" && r.currentTranslate > r.startTranslate && (r.currentTranslate = r.startTranslate), !n.allowSlidePrev && !n.allowSlideNext && (r.currentTranslate = r.startTranslate), i.threshold > 0) if (Math.abs(h) > i.threshold || r.allowThresholdMove) {
|
|
1319
|
+
if (!r.allowThresholdMove) {
|
|
1320
|
+
r.allowThresholdMove = !0, a.startX = a.currentX, a.startY = a.currentY, r.currentTranslate = r.startTranslate, a.diff = n.isHorizontal() ? a.currentX - a.startX : a.currentY - a.startY;
|
|
1321
|
+
return;
|
|
1322
|
+
}
|
|
1323
|
+
} else {
|
|
1324
|
+
r.currentTranslate = r.startTranslate;
|
|
1325
|
+
return;
|
|
1326
|
+
}
|
|
1327
|
+
!i.followFinger || i.cssMode || ((i.freeMode && i.freeMode.enabled && n.freeMode || i.watchSlidesProgress) && (n.updateActiveIndex(), n.updateSlidesClasses()), i.freeMode && i.freeMode.enabled && n.freeMode && n.freeMode.onTouchMove(), n.updateProgress(r.currentTranslate), n.setTranslate(r.currentTranslate));
|
|
1328
|
+
}
|
|
1329
|
+
//#endregion
|
|
1330
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/events/onTouchEnd.js
|
|
1331
|
+
function st(e) {
|
|
1332
|
+
let t = this, n = t.touchEventsData, r = n.evCache.findIndex((t) => t.pointerId === e.pointerId);
|
|
1333
|
+
if (r >= 0 && n.evCache.splice(r, 1), [
|
|
1334
|
+
"pointercancel",
|
|
1335
|
+
"pointerout",
|
|
1336
|
+
"pointerleave"
|
|
1337
|
+
].includes(e.type) && !(e.type === "pointercancel" && (t.browser.isSafari || t.browser.isWebView))) return;
|
|
1338
|
+
let { params: i, touches: a, rtlTranslate: o, slidesGrid: s, enabled: c } = t;
|
|
1339
|
+
if (!c || !i.simulateTouch && e.pointerType === "mouse") return;
|
|
1340
|
+
let l = e;
|
|
1341
|
+
if (l.originalEvent && (l = l.originalEvent), n.allowTouchCallbacks && t.emit("touchEnd", l), n.allowTouchCallbacks = !1, !n.isTouched) {
|
|
1342
|
+
n.isMoved && i.grabCursor && t.setGrabCursor(!1), n.isMoved = !1, n.startMoving = !1;
|
|
1343
|
+
return;
|
|
1344
|
+
}
|
|
1345
|
+
i.grabCursor && n.isMoved && n.isTouched && (t.allowSlideNext === !0 || t.allowSlidePrev === !0) && t.setGrabCursor(!1);
|
|
1346
|
+
let u = D(), d = u - n.touchStartTime;
|
|
1347
|
+
if (t.allowClick) {
|
|
1348
|
+
let e = l.path || l.composedPath && l.composedPath();
|
|
1349
|
+
t.updateClickedSlide(e && e[0] || l.target), t.emit("tap click", l), d < 300 && u - n.lastClickTime < 300 && t.emit("doubleTap doubleClick", l);
|
|
1350
|
+
}
|
|
1351
|
+
if (n.lastClickTime = D(), E(() => {
|
|
1352
|
+
t.destroyed || (t.allowClick = !0);
|
|
1353
|
+
}), !n.isTouched || !n.isMoved || !t.swipeDirection || a.diff === 0 || n.currentTranslate === n.startTranslate) {
|
|
1354
|
+
n.isTouched = !1, n.isMoved = !1, n.startMoving = !1;
|
|
1355
|
+
return;
|
|
1356
|
+
}
|
|
1357
|
+
n.isTouched = !1, n.isMoved = !1, n.startMoving = !1;
|
|
1358
|
+
let f;
|
|
1359
|
+
if (f = i.followFinger ? o ? t.translate : -t.translate : -n.currentTranslate, i.cssMode) return;
|
|
1360
|
+
if (i.freeMode && i.freeMode.enabled) {
|
|
1361
|
+
t.freeMode.onTouchEnd({ currentPos: f });
|
|
1362
|
+
return;
|
|
1363
|
+
}
|
|
1364
|
+
let p = 0, m = t.slidesSizesGrid[0];
|
|
1365
|
+
for (let e = 0; e < s.length; e += e < i.slidesPerGroupSkip ? 1 : i.slidesPerGroup) {
|
|
1366
|
+
let t = e < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
|
|
1367
|
+
s[e + t] === void 0 ? f >= s[e] && (p = e, m = s[s.length - 1] - s[s.length - 2]) : f >= s[e] && f < s[e + t] && (p = e, m = s[e + t] - s[e]);
|
|
1368
|
+
}
|
|
1369
|
+
let h = null, g = null;
|
|
1370
|
+
i.rewind && (t.isBeginning ? g = i.virtual && i.virtual.enabled && t.virtual ? t.virtual.slides.length - 1 : t.slides.length - 1 : t.isEnd && (h = 0));
|
|
1371
|
+
let _ = (f - s[p]) / m, v = p < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
|
|
1372
|
+
if (d > i.longSwipesMs) {
|
|
1373
|
+
if (!i.longSwipes) {
|
|
1374
|
+
t.slideTo(t.activeIndex);
|
|
1375
|
+
return;
|
|
1376
|
+
}
|
|
1377
|
+
t.swipeDirection === "next" && (_ >= i.longSwipesRatio ? t.slideTo(i.rewind && t.isEnd ? h : p + v) : t.slideTo(p)), t.swipeDirection === "prev" && (_ > 1 - i.longSwipesRatio ? t.slideTo(p + v) : g !== null && _ < 0 && Math.abs(_) > i.longSwipesRatio ? t.slideTo(g) : t.slideTo(p));
|
|
1378
|
+
} else {
|
|
1379
|
+
if (!i.shortSwipes) {
|
|
1380
|
+
t.slideTo(t.activeIndex);
|
|
1381
|
+
return;
|
|
1382
|
+
}
|
|
1383
|
+
t.navigation && (l.target === t.navigation.nextEl || l.target === t.navigation.prevEl) ? l.target === t.navigation.nextEl ? t.slideTo(p + v) : t.slideTo(p) : (t.swipeDirection === "next" && t.slideTo(h === null ? p + v : h), t.swipeDirection === "prev" && t.slideTo(g === null ? p : g));
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
//#endregion
|
|
1387
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/events/onResize.js
|
|
1388
|
+
function ct() {
|
|
1389
|
+
let e = this, { params: t, el: n } = e;
|
|
1390
|
+
if (n && n.offsetWidth === 0) return;
|
|
1391
|
+
t.breakpoints && e.setBreakpoint();
|
|
1392
|
+
let { allowSlideNext: r, allowSlidePrev: i, snapGrid: a } = e, o = e.virtual && e.params.virtual.enabled;
|
|
1393
|
+
e.allowSlideNext = !0, e.allowSlidePrev = !0, e.updateSize(), e.updateSlides(), e.updateSlidesClasses();
|
|
1394
|
+
let s = o && t.loop;
|
|
1395
|
+
(t.slidesPerView === "auto" || t.slidesPerView > 1) && e.isEnd && !e.isBeginning && !e.params.centeredSlides && !s ? e.slideTo(e.slides.length - 1, 0, !1, !0) : e.params.loop && !o ? e.slideToLoop(e.realIndex, 0, !1, !0) : e.slideTo(e.activeIndex, 0, !1, !0), e.autoplay && e.autoplay.running && e.autoplay.paused && (clearTimeout(e.autoplay.resizeTimeout), e.autoplay.resizeTimeout = setTimeout(() => {
|
|
1396
|
+
e.autoplay && e.autoplay.running && e.autoplay.paused && e.autoplay.resume();
|
|
1397
|
+
}, 500)), e.allowSlidePrev = i, e.allowSlideNext = r, e.params.watchOverflow && a !== e.snapGrid && e.checkOverflow();
|
|
1398
|
+
}
|
|
1399
|
+
//#endregion
|
|
1400
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/events/onClick.js
|
|
1401
|
+
function lt(e) {
|
|
1402
|
+
let t = this;
|
|
1403
|
+
t.enabled && (t.allowClick || (t.params.preventClicks && e.preventDefault(), t.params.preventClicksPropagation && t.animating && (e.stopPropagation(), e.stopImmediatePropagation())));
|
|
1404
|
+
}
|
|
1405
|
+
//#endregion
|
|
1406
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/events/onScroll.js
|
|
1407
|
+
function ut() {
|
|
1408
|
+
let e = this, { wrapperEl: t, rtlTranslate: n, enabled: r } = e;
|
|
1409
|
+
if (!r) return;
|
|
1410
|
+
e.previousTranslate = e.translate, e.isHorizontal() ? e.translate = -t.scrollLeft : e.translate = -t.scrollTop, e.translate === 0 && (e.translate = 0), e.updateActiveIndex(), e.updateSlidesClasses();
|
|
1411
|
+
let i, a = e.maxTranslate() - e.minTranslate();
|
|
1412
|
+
i = a === 0 ? 0 : (e.translate - e.minTranslate()) / a, i !== e.progress && e.updateProgress(n ? -e.translate : e.translate), e.emit("setTranslate", e.translate, !1);
|
|
1413
|
+
}
|
|
1414
|
+
//#endregion
|
|
1415
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/events/onLoad.js
|
|
1416
|
+
function dt(e) {
|
|
1417
|
+
let t = this;
|
|
1418
|
+
I(t, e.target), !(t.params.cssMode || t.params.slidesPerView !== "auto" && !t.params.autoHeight) && t.update();
|
|
1419
|
+
}
|
|
1420
|
+
//#endregion
|
|
1421
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/events/index.js
|
|
1422
|
+
var ft = !1;
|
|
1423
|
+
function pt() {}
|
|
1424
|
+
var mt = (e, t) => {
|
|
1425
|
+
let n = S(), { params: r, el: i, wrapperEl: a, device: o } = e, s = !!r.nested, c = t === "on" ? "addEventListener" : "removeEventListener", l = t;
|
|
1426
|
+
i[c]("pointerdown", e.onTouchStart, { passive: !1 }), n[c]("pointermove", e.onTouchMove, {
|
|
1427
|
+
passive: !1,
|
|
1428
|
+
capture: s
|
|
1429
|
+
}), n[c]("pointerup", e.onTouchEnd, { passive: !0 }), n[c]("pointercancel", e.onTouchEnd, { passive: !0 }), n[c]("pointerout", e.onTouchEnd, { passive: !0 }), n[c]("pointerleave", e.onTouchEnd, { passive: !0 }), (r.preventClicks || r.preventClicksPropagation) && i[c]("click", e.onClick, !0), r.cssMode && a[c]("scroll", e.onScroll), r.updateOnWindowResize ? e[l](o.ios || o.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", ct, !0) : e[l]("observerUpdate", ct, !0), i[c]("load", e.onLoad, { capture: !0 });
|
|
1430
|
+
};
|
|
1431
|
+
function ht() {
|
|
1432
|
+
let e = this, t = S(), { params: n } = e;
|
|
1433
|
+
e.onTouchStart = at.bind(e), e.onTouchMove = ot.bind(e), e.onTouchEnd = st.bind(e), n.cssMode && (e.onScroll = ut.bind(e)), e.onClick = lt.bind(e), e.onLoad = dt.bind(e), ft || (t.addEventListener("touchstart", pt), ft = !0), mt(e, "on");
|
|
1434
|
+
}
|
|
1435
|
+
function gt() {
|
|
1436
|
+
mt(this, "off");
|
|
1437
|
+
}
|
|
1438
|
+
var _t = {
|
|
1439
|
+
attachEvents: ht,
|
|
1440
|
+
detachEvents: gt
|
|
1441
|
+
}, vt = (e, t) => e.grid && t.grid && t.grid.rows > 1;
|
|
1442
|
+
function yt() {
|
|
1443
|
+
let e = this, { realIndex: t, initialized: n, params: r, el: i } = e, a = r.breakpoints;
|
|
1444
|
+
if (!a || a && Object.keys(a).length === 0) return;
|
|
1445
|
+
let o = e.getBreakpoint(a, e.params.breakpointsBase, e.el);
|
|
1446
|
+
if (!o || e.currentBreakpoint === o) return;
|
|
1447
|
+
let s = (o in a ? a[o] : void 0) || e.originalParams, c = vt(e, r), l = vt(e, s), u = r.enabled;
|
|
1448
|
+
c && !l ? (i.classList.remove(`${r.containerModifierClass}grid`, `${r.containerModifierClass}grid-column`), e.emitContainerClasses()) : !c && l && (i.classList.add(`${r.containerModifierClass}grid`), (s.grid.fill && s.grid.fill === "column" || !s.grid.fill && r.grid.fill === "column") && i.classList.add(`${r.containerModifierClass}grid-column`), e.emitContainerClasses()), [
|
|
1449
|
+
"navigation",
|
|
1450
|
+
"pagination",
|
|
1451
|
+
"scrollbar"
|
|
1452
|
+
].forEach((t) => {
|
|
1453
|
+
if (s[t] === void 0) return;
|
|
1454
|
+
let n = r[t] && r[t].enabled, i = s[t] && s[t].enabled;
|
|
1455
|
+
n && !i && e[t].disable(), !n && i && e[t].enable();
|
|
1456
|
+
});
|
|
1457
|
+
let d = s.direction && s.direction !== r.direction, f = r.loop && (s.slidesPerView !== r.slidesPerView || d);
|
|
1458
|
+
d && n && e.changeDirection(), M(e.params, s);
|
|
1459
|
+
let p = e.params.enabled;
|
|
1460
|
+
Object.assign(e, {
|
|
1461
|
+
allowTouchMove: e.params.allowTouchMove,
|
|
1462
|
+
allowSlideNext: e.params.allowSlideNext,
|
|
1463
|
+
allowSlidePrev: e.params.allowSlidePrev
|
|
1464
|
+
}), u && !p ? e.disable() : !u && p && e.enable(), e.currentBreakpoint = o, e.emit("_beforeBreakpoint", s), f && n && (e.loopDestroy(), e.loopCreate(t), e.updateSlides()), e.emit("breakpoint", s);
|
|
1465
|
+
}
|
|
1466
|
+
//#endregion
|
|
1467
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/breakpoints/getBreakpoint.js
|
|
1468
|
+
function bt(e, t = "window", n) {
|
|
1469
|
+
if (!e || t === "container" && !n) return;
|
|
1470
|
+
let r = !1, i = w(), a = t === "window" ? i.innerHeight : n.clientHeight, o = Object.keys(e).map((e) => typeof e == "string" && e.indexOf("@") === 0 ? {
|
|
1471
|
+
value: a * parseFloat(e.substr(1)),
|
|
1472
|
+
point: e
|
|
1473
|
+
} : {
|
|
1474
|
+
value: e,
|
|
1475
|
+
point: e
|
|
1476
|
+
});
|
|
1477
|
+
o.sort((e, t) => parseInt(e.value, 10) - parseInt(t.value, 10));
|
|
1478
|
+
for (let e = 0; e < o.length; e += 1) {
|
|
1479
|
+
let { point: a, value: s } = o[e];
|
|
1480
|
+
t === "window" ? i.matchMedia(`(min-width: ${s}px)`).matches && (r = a) : s <= n.clientWidth && (r = a);
|
|
1481
|
+
}
|
|
1482
|
+
return r || "max";
|
|
1483
|
+
}
|
|
1484
|
+
//#endregion
|
|
1485
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/breakpoints/index.js
|
|
1486
|
+
var xt = {
|
|
1487
|
+
setBreakpoint: yt,
|
|
1488
|
+
getBreakpoint: bt
|
|
1489
|
+
};
|
|
1490
|
+
//#endregion
|
|
1491
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/classes/addClasses.js
|
|
1492
|
+
function St(e, t) {
|
|
1493
|
+
let n = [];
|
|
1494
|
+
return e.forEach((e) => {
|
|
1495
|
+
typeof e == "object" ? Object.keys(e).forEach((r) => {
|
|
1496
|
+
e[r] && n.push(t + r);
|
|
1497
|
+
}) : typeof e == "string" && n.push(t + e);
|
|
1498
|
+
}), n;
|
|
1499
|
+
}
|
|
1500
|
+
function Ct() {
|
|
1501
|
+
let e = this, { classNames: t, params: n, rtl: r, el: i, device: a } = e, o = St([
|
|
1502
|
+
"initialized",
|
|
1503
|
+
n.direction,
|
|
1504
|
+
{ "free-mode": e.params.freeMode && n.freeMode.enabled },
|
|
1505
|
+
{ autoheight: n.autoHeight },
|
|
1506
|
+
{ rtl: r },
|
|
1507
|
+
{ grid: n.grid && n.grid.rows > 1 },
|
|
1508
|
+
{ "grid-column": n.grid && n.grid.rows > 1 && n.grid.fill === "column" },
|
|
1509
|
+
{ android: a.android },
|
|
1510
|
+
{ ios: a.ios },
|
|
1511
|
+
{ "css-mode": n.cssMode },
|
|
1512
|
+
{ centered: n.cssMode && n.centeredSlides },
|
|
1513
|
+
{ "watch-progress": n.watchSlidesProgress }
|
|
1514
|
+
], n.containerModifierClass);
|
|
1515
|
+
t.push(...o), i.classList.add(...t), e.emitContainerClasses();
|
|
1516
|
+
}
|
|
1517
|
+
//#endregion
|
|
1518
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/classes/removeClasses.js
|
|
1519
|
+
function wt() {
|
|
1520
|
+
let e = this, { el: t, classNames: n } = e;
|
|
1521
|
+
t.classList.remove(...n), e.emitContainerClasses();
|
|
1522
|
+
}
|
|
1523
|
+
//#endregion
|
|
1524
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/classes/index.js
|
|
1525
|
+
var Tt = {
|
|
1526
|
+
addClasses: Ct,
|
|
1527
|
+
removeClasses: wt
|
|
1528
|
+
};
|
|
1529
|
+
//#endregion
|
|
1530
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/check-overflow/index.js
|
|
1531
|
+
function Et() {
|
|
1532
|
+
let e = this, { isLocked: t, params: n } = e, { slidesOffsetBefore: r } = n;
|
|
1533
|
+
if (r) {
|
|
1534
|
+
let t = e.slides.length - 1, n = e.slidesGrid[t] + e.slidesSizesGrid[t] + r * 2;
|
|
1535
|
+
e.isLocked = e.size > n;
|
|
1536
|
+
} else e.isLocked = e.snapGrid.length === 1;
|
|
1537
|
+
n.allowSlideNext === !0 && (e.allowSlideNext = !e.isLocked), n.allowSlidePrev === !0 && (e.allowSlidePrev = !e.isLocked), t && t !== e.isLocked && (e.isEnd = !1), t !== e.isLocked && e.emit(e.isLocked ? "lock" : "unlock");
|
|
1538
|
+
}
|
|
1539
|
+
var Dt = { checkOverflow: Et }, Ot = {
|
|
1540
|
+
init: !0,
|
|
1541
|
+
direction: "horizontal",
|
|
1542
|
+
oneWayMovement: !1,
|
|
1543
|
+
touchEventsTarget: "wrapper",
|
|
1544
|
+
initialSlide: 0,
|
|
1545
|
+
speed: 300,
|
|
1546
|
+
cssMode: !1,
|
|
1547
|
+
updateOnWindowResize: !0,
|
|
1548
|
+
resizeObserver: !0,
|
|
1549
|
+
nested: !1,
|
|
1550
|
+
createElements: !1,
|
|
1551
|
+
enabled: !0,
|
|
1552
|
+
focusableElements: "input, select, option, textarea, button, video, label",
|
|
1553
|
+
width: null,
|
|
1554
|
+
height: null,
|
|
1555
|
+
preventInteractionOnTransition: !1,
|
|
1556
|
+
userAgent: null,
|
|
1557
|
+
url: null,
|
|
1558
|
+
edgeSwipeDetection: !1,
|
|
1559
|
+
edgeSwipeThreshold: 20,
|
|
1560
|
+
autoHeight: !1,
|
|
1561
|
+
setWrapperSize: !1,
|
|
1562
|
+
virtualTranslate: !1,
|
|
1563
|
+
effect: "slide",
|
|
1564
|
+
breakpoints: void 0,
|
|
1565
|
+
breakpointsBase: "window",
|
|
1566
|
+
spaceBetween: 0,
|
|
1567
|
+
slidesPerView: 1,
|
|
1568
|
+
slidesPerGroup: 1,
|
|
1569
|
+
slidesPerGroupSkip: 0,
|
|
1570
|
+
slidesPerGroupAuto: !1,
|
|
1571
|
+
centeredSlides: !1,
|
|
1572
|
+
centeredSlidesBounds: !1,
|
|
1573
|
+
slidesOffsetBefore: 0,
|
|
1574
|
+
slidesOffsetAfter: 0,
|
|
1575
|
+
normalizeSlideIndex: !0,
|
|
1576
|
+
centerInsufficientSlides: !1,
|
|
1577
|
+
watchOverflow: !0,
|
|
1578
|
+
roundLengths: !1,
|
|
1579
|
+
touchRatio: 1,
|
|
1580
|
+
touchAngle: 45,
|
|
1581
|
+
simulateTouch: !0,
|
|
1582
|
+
shortSwipes: !0,
|
|
1583
|
+
longSwipes: !0,
|
|
1584
|
+
longSwipesRatio: .5,
|
|
1585
|
+
longSwipesMs: 300,
|
|
1586
|
+
followFinger: !0,
|
|
1587
|
+
allowTouchMove: !0,
|
|
1588
|
+
threshold: 5,
|
|
1589
|
+
touchMoveStopPropagation: !1,
|
|
1590
|
+
touchStartPreventDefault: !0,
|
|
1591
|
+
touchStartForcePreventDefault: !1,
|
|
1592
|
+
touchReleaseOnEdges: !1,
|
|
1593
|
+
uniqueNavElements: !0,
|
|
1594
|
+
resistance: !0,
|
|
1595
|
+
resistanceRatio: .85,
|
|
1596
|
+
watchSlidesProgress: !1,
|
|
1597
|
+
grabCursor: !1,
|
|
1598
|
+
preventClicks: !0,
|
|
1599
|
+
preventClicksPropagation: !0,
|
|
1600
|
+
slideToClickedSlide: !1,
|
|
1601
|
+
loop: !1,
|
|
1602
|
+
loopedSlides: null,
|
|
1603
|
+
loopPreventsSliding: !0,
|
|
1604
|
+
rewind: !1,
|
|
1605
|
+
allowSlidePrev: !0,
|
|
1606
|
+
allowSlideNext: !0,
|
|
1607
|
+
swipeHandler: null,
|
|
1608
|
+
noSwiping: !0,
|
|
1609
|
+
noSwipingClass: "swiper-no-swiping",
|
|
1610
|
+
noSwipingSelector: null,
|
|
1611
|
+
passiveListeners: !0,
|
|
1612
|
+
maxBackfaceHiddenSlides: 10,
|
|
1613
|
+
containerModifierClass: "swiper-",
|
|
1614
|
+
slideClass: "swiper-slide",
|
|
1615
|
+
slideActiveClass: "swiper-slide-active",
|
|
1616
|
+
slideVisibleClass: "swiper-slide-visible",
|
|
1617
|
+
slideNextClass: "swiper-slide-next",
|
|
1618
|
+
slidePrevClass: "swiper-slide-prev",
|
|
1619
|
+
wrapperClass: "swiper-wrapper",
|
|
1620
|
+
lazyPreloaderClass: "swiper-lazy-preloader",
|
|
1621
|
+
lazyPreloadPrevNext: 0,
|
|
1622
|
+
runCallbacksOnInit: !0,
|
|
1623
|
+
_emitClasses: !1
|
|
1624
|
+
};
|
|
1625
|
+
//#endregion
|
|
1626
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/moduleExtendParams.js
|
|
1627
|
+
function kt(e, t) {
|
|
1628
|
+
return function(n = {}) {
|
|
1629
|
+
let r = Object.keys(n)[0], i = n[r];
|
|
1630
|
+
if (typeof i != "object" || !i) {
|
|
1631
|
+
M(t, n);
|
|
1632
|
+
return;
|
|
1633
|
+
}
|
|
1634
|
+
if ([
|
|
1635
|
+
"navigation",
|
|
1636
|
+
"pagination",
|
|
1637
|
+
"scrollbar"
|
|
1638
|
+
].indexOf(r) >= 0 && e[r] === !0 && (e[r] = { auto: !0 }), !(r in e && "enabled" in i)) {
|
|
1639
|
+
M(t, n);
|
|
1640
|
+
return;
|
|
1641
|
+
}
|
|
1642
|
+
e[r] === !0 && (e[r] = { enabled: !0 }), typeof e[r] == "object" && !("enabled" in e[r]) && (e[r].enabled = !0), e[r] || (e[r] = { enabled: !1 }), M(t, n);
|
|
1643
|
+
};
|
|
1644
|
+
}
|
|
1645
|
+
//#endregion
|
|
1646
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/core.js
|
|
1647
|
+
var At = {
|
|
1648
|
+
eventsEmitter: ve,
|
|
1649
|
+
update: je,
|
|
1650
|
+
translate: Le,
|
|
1651
|
+
transition: He,
|
|
1652
|
+
slide: Xe,
|
|
1653
|
+
loop: et,
|
|
1654
|
+
grabCursor: rt,
|
|
1655
|
+
events: _t,
|
|
1656
|
+
breakpoints: xt,
|
|
1657
|
+
checkOverflow: Dt,
|
|
1658
|
+
classes: Tt
|
|
1659
|
+
}, jt = {}, L = class e {
|
|
1660
|
+
constructor(...t) {
|
|
1661
|
+
let n, r;
|
|
1662
|
+
t.length === 1 && t[0].constructor && Object.prototype.toString.call(t[0]).slice(8, -1) === "Object" ? r = t[0] : [n, r] = t, r || (r = {}), r = M({}, r), n && !r.el && (r.el = n);
|
|
1663
|
+
let i = S();
|
|
1664
|
+
if (r.el && typeof r.el == "string" && i.querySelectorAll(r.el).length > 1) {
|
|
1665
|
+
let t = [];
|
|
1666
|
+
return i.querySelectorAll(r.el).forEach((n) => {
|
|
1667
|
+
let i = M({}, r, { el: n });
|
|
1668
|
+
t.push(new e(i));
|
|
1669
|
+
}), t;
|
|
1670
|
+
}
|
|
1671
|
+
let a = this;
|
|
1672
|
+
a.__swiper__ = !0, a.support = le(), a.device = fe({ userAgent: r.userAgent }), a.browser = he(), a.eventsListeners = {}, a.eventsAnyListeners = [], a.modules = [...a.__modules__], r.modules && Array.isArray(r.modules) && a.modules.push(...r.modules);
|
|
1673
|
+
let o = {};
|
|
1674
|
+
return a.modules.forEach((e) => {
|
|
1675
|
+
e({
|
|
1676
|
+
params: r,
|
|
1677
|
+
swiper: a,
|
|
1678
|
+
extendParams: kt(r, o),
|
|
1679
|
+
on: a.on.bind(a),
|
|
1680
|
+
once: a.once.bind(a),
|
|
1681
|
+
off: a.off.bind(a),
|
|
1682
|
+
emit: a.emit.bind(a)
|
|
1683
|
+
});
|
|
1684
|
+
}), a.params = M({}, M({}, Ot, o), jt, r), a.originalParams = M({}, a.params), a.passedParams = M({}, r), a.params && a.params.on && Object.keys(a.params.on).forEach((e) => {
|
|
1685
|
+
a.on(e, a.params.on[e]);
|
|
1686
|
+
}), a.params && a.params.onAny && a.onAny(a.params.onAny), Object.assign(a, {
|
|
1687
|
+
enabled: a.params.enabled,
|
|
1688
|
+
el: n,
|
|
1689
|
+
classNames: [],
|
|
1690
|
+
slides: [],
|
|
1691
|
+
slidesGrid: [],
|
|
1692
|
+
snapGrid: [],
|
|
1693
|
+
slidesSizesGrid: [],
|
|
1694
|
+
isHorizontal() {
|
|
1695
|
+
return a.params.direction === "horizontal";
|
|
1696
|
+
},
|
|
1697
|
+
isVertical() {
|
|
1698
|
+
return a.params.direction === "vertical";
|
|
1699
|
+
},
|
|
1700
|
+
activeIndex: 0,
|
|
1701
|
+
realIndex: 0,
|
|
1702
|
+
isBeginning: !0,
|
|
1703
|
+
isEnd: !1,
|
|
1704
|
+
translate: 0,
|
|
1705
|
+
previousTranslate: 0,
|
|
1706
|
+
progress: 0,
|
|
1707
|
+
velocity: 0,
|
|
1708
|
+
animating: !1,
|
|
1709
|
+
cssOverflowAdjustment() {
|
|
1710
|
+
return Math.trunc(this.translate / 2 ** 23) * 2 ** 23;
|
|
1711
|
+
},
|
|
1712
|
+
allowSlideNext: a.params.allowSlideNext,
|
|
1713
|
+
allowSlidePrev: a.params.allowSlidePrev,
|
|
1714
|
+
touchEventsData: {
|
|
1715
|
+
isTouched: void 0,
|
|
1716
|
+
isMoved: void 0,
|
|
1717
|
+
allowTouchCallbacks: void 0,
|
|
1718
|
+
touchStartTime: void 0,
|
|
1719
|
+
isScrolling: void 0,
|
|
1720
|
+
currentTranslate: void 0,
|
|
1721
|
+
startTranslate: void 0,
|
|
1722
|
+
allowThresholdMove: void 0,
|
|
1723
|
+
focusableElements: a.params.focusableElements,
|
|
1724
|
+
lastClickTime: 0,
|
|
1725
|
+
clickTimeout: void 0,
|
|
1726
|
+
velocities: [],
|
|
1727
|
+
allowMomentumBounce: void 0,
|
|
1728
|
+
startMoving: void 0,
|
|
1729
|
+
evCache: []
|
|
1730
|
+
},
|
|
1731
|
+
allowClick: !0,
|
|
1732
|
+
allowTouchMove: a.params.allowTouchMove,
|
|
1733
|
+
touches: {
|
|
1734
|
+
startX: 0,
|
|
1735
|
+
startY: 0,
|
|
1736
|
+
currentX: 0,
|
|
1737
|
+
currentY: 0,
|
|
1738
|
+
diff: 0
|
|
1739
|
+
},
|
|
1740
|
+
imagesToLoad: [],
|
|
1741
|
+
imagesLoaded: 0
|
|
1742
|
+
}), a.emit("_swiper"), a.params.init && a.init(), a;
|
|
1743
|
+
}
|
|
1744
|
+
getSlideIndex(e) {
|
|
1745
|
+
let { slidesEl: t, params: n } = this, r = ie(P(t, `.${n.slideClass}, swiper-slide`)[0]);
|
|
1746
|
+
return ie(e) - r;
|
|
1747
|
+
}
|
|
1748
|
+
getSlideIndexByData(e) {
|
|
1749
|
+
return this.getSlideIndex(this.slides.filter((t) => t.getAttribute("data-swiper-slide-index") * 1 === e)[0]);
|
|
1750
|
+
}
|
|
1751
|
+
recalcSlides() {
|
|
1752
|
+
let e = this, { slidesEl: t, params: n } = e;
|
|
1753
|
+
e.slides = P(t, `.${n.slideClass}, swiper-slide`);
|
|
1754
|
+
}
|
|
1755
|
+
enable() {
|
|
1756
|
+
let e = this;
|
|
1757
|
+
e.enabled || (e.enabled = !0, e.params.grabCursor && e.setGrabCursor(), e.emit("enable"));
|
|
1758
|
+
}
|
|
1759
|
+
disable() {
|
|
1760
|
+
let e = this;
|
|
1761
|
+
e.enabled && (e.enabled = !1, e.params.grabCursor && e.unsetGrabCursor(), e.emit("disable"));
|
|
1762
|
+
}
|
|
1763
|
+
setProgress(e, t) {
|
|
1764
|
+
let n = this;
|
|
1765
|
+
e = Math.min(Math.max(e, 0), 1);
|
|
1766
|
+
let r = n.minTranslate(), i = (n.maxTranslate() - r) * e + r;
|
|
1767
|
+
n.translateTo(i, t === void 0 ? 0 : t), n.updateActiveIndex(), n.updateSlidesClasses();
|
|
1768
|
+
}
|
|
1769
|
+
emitContainerClasses() {
|
|
1770
|
+
let e = this;
|
|
1771
|
+
if (!e.params._emitClasses || !e.el) return;
|
|
1772
|
+
let t = e.el.className.split(" ").filter((t) => t.indexOf("swiper") === 0 || t.indexOf(e.params.containerModifierClass) === 0);
|
|
1773
|
+
e.emit("_containerClasses", t.join(" "));
|
|
1774
|
+
}
|
|
1775
|
+
getSlideClasses(e) {
|
|
1776
|
+
let t = this;
|
|
1777
|
+
return t.destroyed ? "" : e.className.split(" ").filter((e) => e.indexOf("swiper-slide") === 0 || e.indexOf(t.params.slideClass) === 0).join(" ");
|
|
1778
|
+
}
|
|
1779
|
+
emitSlidesClasses() {
|
|
1780
|
+
let e = this;
|
|
1781
|
+
if (!e.params._emitClasses || !e.el) return;
|
|
1782
|
+
let t = [];
|
|
1783
|
+
e.slides.forEach((n) => {
|
|
1784
|
+
let r = e.getSlideClasses(n);
|
|
1785
|
+
t.push({
|
|
1786
|
+
slideEl: n,
|
|
1787
|
+
classNames: r
|
|
1788
|
+
}), e.emit("_slideClass", n, r);
|
|
1789
|
+
}), e.emit("_slideClasses", t);
|
|
1790
|
+
}
|
|
1791
|
+
slidesPerViewDynamic(e = "current", t = !1) {
|
|
1792
|
+
let { params: n, slides: r, slidesGrid: i, slidesSizesGrid: a, size: o, activeIndex: s } = this, c = 1;
|
|
1793
|
+
if (n.centeredSlides) {
|
|
1794
|
+
let e = r[s] ? r[s].swiperSlideSize : 0, t;
|
|
1795
|
+
for (let n = s + 1; n < r.length; n += 1) r[n] && !t && (e += r[n].swiperSlideSize, c += 1, e > o && (t = !0));
|
|
1796
|
+
for (let n = s - 1; n >= 0; --n) r[n] && !t && (e += r[n].swiperSlideSize, c += 1, e > o && (t = !0));
|
|
1797
|
+
} else if (e === "current") for (let e = s + 1; e < r.length; e += 1) (t ? i[e] + a[e] - i[s] < o : i[e] - i[s] < o) && (c += 1);
|
|
1798
|
+
else for (let e = s - 1; e >= 0; --e) i[s] - i[e] < o && (c += 1);
|
|
1799
|
+
return c;
|
|
1800
|
+
}
|
|
1801
|
+
update() {
|
|
1802
|
+
let e = this;
|
|
1803
|
+
if (!e || e.destroyed) return;
|
|
1804
|
+
let { snapGrid: t, params: n } = e;
|
|
1805
|
+
n.breakpoints && e.setBreakpoint(), [...e.el.querySelectorAll("[loading=\"lazy\"]")].forEach((t) => {
|
|
1806
|
+
t.complete && I(e, t);
|
|
1807
|
+
}), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses();
|
|
1808
|
+
function r() {
|
|
1809
|
+
let t = e.rtlTranslate ? e.translate * -1 : e.translate, n = Math.min(Math.max(t, e.maxTranslate()), e.minTranslate());
|
|
1810
|
+
e.setTranslate(n), e.updateActiveIndex(), e.updateSlidesClasses();
|
|
1811
|
+
}
|
|
1812
|
+
let i;
|
|
1813
|
+
if (n.freeMode && n.freeMode.enabled && !n.cssMode) r(), n.autoHeight && e.updateAutoHeight();
|
|
1814
|
+
else {
|
|
1815
|
+
if ((n.slidesPerView === "auto" || n.slidesPerView > 1) && e.isEnd && !n.centeredSlides) {
|
|
1816
|
+
let t = e.virtual && n.virtual.enabled ? e.virtual.slides : e.slides;
|
|
1817
|
+
i = e.slideTo(t.length - 1, 0, !1, !0);
|
|
1818
|
+
} else i = e.slideTo(e.activeIndex, 0, !1, !0);
|
|
1819
|
+
i || r();
|
|
1820
|
+
}
|
|
1821
|
+
n.watchOverflow && t !== e.snapGrid && e.checkOverflow(), e.emit("update");
|
|
1822
|
+
}
|
|
1823
|
+
changeDirection(e, t = !0) {
|
|
1824
|
+
let n = this, r = n.params.direction;
|
|
1825
|
+
return e || (e = r === "horizontal" ? "vertical" : "horizontal"), e === r || e !== "horizontal" && e !== "vertical" ? n : (n.el.classList.remove(`${n.params.containerModifierClass}${r}`), n.el.classList.add(`${n.params.containerModifierClass}${e}`), n.emitContainerClasses(), n.params.direction = e, n.slides.forEach((t) => {
|
|
1826
|
+
e === "vertical" ? t.style.width = "" : t.style.height = "";
|
|
1827
|
+
}), n.emit("changeDirection"), t && n.update(), n);
|
|
1828
|
+
}
|
|
1829
|
+
changeLanguageDirection(e) {
|
|
1830
|
+
let t = this;
|
|
1831
|
+
t.rtl && e === "rtl" || !t.rtl && e === "ltr" || (t.rtl = e === "rtl", t.rtlTranslate = t.params.direction === "horizontal" && t.rtl, t.rtl ? (t.el.classList.add(`${t.params.containerModifierClass}rtl`), t.el.dir = "rtl") : (t.el.classList.remove(`${t.params.containerModifierClass}rtl`), t.el.dir = "ltr"), t.update());
|
|
1832
|
+
}
|
|
1833
|
+
mount(e) {
|
|
1834
|
+
let t = this;
|
|
1835
|
+
if (t.mounted) return !0;
|
|
1836
|
+
let n = e || t.params.el;
|
|
1837
|
+
if (typeof n == "string" && (n = document.querySelector(n)), !n) return !1;
|
|
1838
|
+
n.swiper = t, n.shadowEl && (t.isElement = !0);
|
|
1839
|
+
let r = () => `.${(t.params.wrapperClass || "").trim().split(" ").join(".")}`, i = n && n.shadowRoot && n.shadowRoot.querySelector ? n.shadowRoot.querySelector(r()) : P(n, r())[0];
|
|
1840
|
+
return !i && t.params.createElements && (i = te("div", t.params.wrapperClass), n.append(i), P(n, `.${t.params.slideClass}`).forEach((e) => {
|
|
1841
|
+
i.append(e);
|
|
1842
|
+
})), Object.assign(t, {
|
|
1843
|
+
el: n,
|
|
1844
|
+
wrapperEl: i,
|
|
1845
|
+
slidesEl: t.isElement ? n : i,
|
|
1846
|
+
mounted: !0,
|
|
1847
|
+
rtl: n.dir.toLowerCase() === "rtl" || F(n, "direction") === "rtl",
|
|
1848
|
+
rtlTranslate: t.params.direction === "horizontal" && (n.dir.toLowerCase() === "rtl" || F(n, "direction") === "rtl"),
|
|
1849
|
+
wrongRTL: F(i, "display") === "-webkit-box"
|
|
1850
|
+
}), !0;
|
|
1851
|
+
}
|
|
1852
|
+
init(e) {
|
|
1853
|
+
let t = this;
|
|
1854
|
+
return t.initialized || t.mount(e) === !1 ? t : (t.emit("beforeInit"), t.params.breakpoints && t.setBreakpoint(), t.addClasses(), t.updateSize(), t.updateSlides(), t.params.watchOverflow && t.checkOverflow(), t.params.grabCursor && t.enabled && t.setGrabCursor(), t.params.loop && t.virtual && t.params.virtual.enabled ? t.slideTo(t.params.initialSlide + t.virtual.slidesBefore, 0, t.params.runCallbacksOnInit, !1, !0) : t.slideTo(t.params.initialSlide, 0, t.params.runCallbacksOnInit, !1, !0), t.params.loop && t.loopCreate(), t.attachEvents(), [...t.el.querySelectorAll("[loading=\"lazy\"]")].forEach((e) => {
|
|
1855
|
+
e.complete ? I(t, e) : e.addEventListener("load", (e) => {
|
|
1856
|
+
I(t, e.target);
|
|
1857
|
+
});
|
|
1858
|
+
}), De(t), t.initialized = !0, De(t), t.emit("init"), t.emit("afterInit"), t);
|
|
1859
|
+
}
|
|
1860
|
+
destroy(e = !0, t = !0) {
|
|
1861
|
+
let n = this, { params: r, el: i, wrapperEl: a, slides: o } = n;
|
|
1862
|
+
return n.params === void 0 || n.destroyed ? null : (n.emit("beforeDestroy"), n.initialized = !1, n.detachEvents(), r.loop && n.loopDestroy(), t && (n.removeClasses(), i.removeAttribute("style"), a.removeAttribute("style"), o && o.length && o.forEach((e) => {
|
|
1863
|
+
e.classList.remove(r.slideVisibleClass, r.slideActiveClass, r.slideNextClass, r.slidePrevClass), e.removeAttribute("style"), e.removeAttribute("data-swiper-slide-index");
|
|
1864
|
+
})), n.emit("destroy"), Object.keys(n.eventsListeners).forEach((e) => {
|
|
1865
|
+
n.off(e);
|
|
1866
|
+
}), e !== !1 && (n.el.swiper = null, T(n)), n.destroyed = !0, null);
|
|
1867
|
+
}
|
|
1868
|
+
static extendDefaults(e) {
|
|
1869
|
+
M(jt, e);
|
|
1870
|
+
}
|
|
1871
|
+
static get extendedDefaults() {
|
|
1872
|
+
return jt;
|
|
1873
|
+
}
|
|
1874
|
+
static get defaults() {
|
|
1875
|
+
return Ot;
|
|
1876
|
+
}
|
|
1877
|
+
static installModule(t) {
|
|
1878
|
+
e.prototype.__modules__ || (e.prototype.__modules__ = []);
|
|
1879
|
+
let n = e.prototype.__modules__;
|
|
1880
|
+
typeof t == "function" && n.indexOf(t) < 0 && n.push(t);
|
|
1881
|
+
}
|
|
1882
|
+
static use(t) {
|
|
1883
|
+
return Array.isArray(t) ? (t.forEach((t) => e.installModule(t)), e) : (e.installModule(t), e);
|
|
1884
|
+
}
|
|
1885
|
+
};
|
|
1886
|
+
Object.keys(At).forEach((e) => {
|
|
1887
|
+
Object.keys(At[e]).forEach((t) => {
|
|
1888
|
+
L.prototype[t] = At[e][t];
|
|
1889
|
+
});
|
|
1890
|
+
}), L.use([ge, _e]);
|
|
1891
|
+
//#endregion
|
|
1892
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/shared/create-element-if-not-defined.js
|
|
1893
|
+
function Mt(e, t, n, r) {
|
|
1894
|
+
return e.params.createElements && Object.keys(r).forEach((i) => {
|
|
1895
|
+
if (!n[i] && n.auto === !0) {
|
|
1896
|
+
let a = P(e.el, `.${r[i]}`)[0];
|
|
1897
|
+
a || (a = te("div", r[i]), a.className = r[i], e.el.append(a)), n[i] = a, t[i] = a;
|
|
1898
|
+
}
|
|
1899
|
+
}), n;
|
|
1900
|
+
}
|
|
1901
|
+
//#endregion
|
|
1902
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/modules/navigation/navigation.js
|
|
1903
|
+
function Nt({ swiper: e, extendParams: t, on: n, emit: r }) {
|
|
1904
|
+
t({ navigation: {
|
|
1905
|
+
nextEl: null,
|
|
1906
|
+
prevEl: null,
|
|
1907
|
+
hideOnClick: !1,
|
|
1908
|
+
disabledClass: "swiper-button-disabled",
|
|
1909
|
+
hiddenClass: "swiper-button-hidden",
|
|
1910
|
+
lockClass: "swiper-button-lock",
|
|
1911
|
+
navigationDisabledClass: "swiper-navigation-disabled"
|
|
1912
|
+
} }), e.navigation = {
|
|
1913
|
+
nextEl: null,
|
|
1914
|
+
prevEl: null
|
|
1915
|
+
};
|
|
1916
|
+
let i = (e) => (Array.isArray(e) || (e = [e].filter((e) => !!e)), e);
|
|
1917
|
+
function a(t) {
|
|
1918
|
+
let n;
|
|
1919
|
+
return t && typeof t == "string" && e.isElement && (n = e.el.shadowRoot.querySelector(t), n) ? n : (t && (typeof t == "string" && (n = [...document.querySelectorAll(t)]), e.params.uniqueNavElements && typeof t == "string" && n.length > 1 && e.el.querySelectorAll(t).length === 1 && (n = e.el.querySelector(t))), t && !n ? t : n);
|
|
1920
|
+
}
|
|
1921
|
+
function o(t, n) {
|
|
1922
|
+
let r = e.params.navigation;
|
|
1923
|
+
t = i(t), t.forEach((t) => {
|
|
1924
|
+
t && (t.classList[n ? "add" : "remove"](...r.disabledClass.split(" ")), t.tagName === "BUTTON" && (t.disabled = n), e.params.watchOverflow && e.enabled && t.classList[e.isLocked ? "add" : "remove"](r.lockClass));
|
|
1925
|
+
});
|
|
1926
|
+
}
|
|
1927
|
+
function s() {
|
|
1928
|
+
let { nextEl: t, prevEl: n } = e.navigation;
|
|
1929
|
+
if (e.params.loop) {
|
|
1930
|
+
o(n, !1), o(t, !1);
|
|
1931
|
+
return;
|
|
1932
|
+
}
|
|
1933
|
+
o(n, e.isBeginning && !e.params.rewind), o(t, e.isEnd && !e.params.rewind);
|
|
1934
|
+
}
|
|
1935
|
+
function c(t) {
|
|
1936
|
+
t.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), r("navigationPrev"));
|
|
1937
|
+
}
|
|
1938
|
+
function l(t) {
|
|
1939
|
+
t.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), r("navigationNext"));
|
|
1940
|
+
}
|
|
1941
|
+
function u() {
|
|
1942
|
+
let t = e.params.navigation;
|
|
1943
|
+
if (e.params.navigation = Mt(e, e.originalParams.navigation, e.params.navigation, {
|
|
1944
|
+
nextEl: "swiper-button-next",
|
|
1945
|
+
prevEl: "swiper-button-prev"
|
|
1946
|
+
}), !(t.nextEl || t.prevEl)) return;
|
|
1947
|
+
let n = a(t.nextEl), r = a(t.prevEl);
|
|
1948
|
+
Object.assign(e.navigation, {
|
|
1949
|
+
nextEl: n,
|
|
1950
|
+
prevEl: r
|
|
1951
|
+
}), n = i(n), r = i(r);
|
|
1952
|
+
let o = (n, r) => {
|
|
1953
|
+
n && n.addEventListener("click", r === "next" ? l : c), !e.enabled && n && n.classList.add(...t.lockClass.split(" "));
|
|
1954
|
+
};
|
|
1955
|
+
n.forEach((e) => o(e, "next")), r.forEach((e) => o(e, "prev"));
|
|
1956
|
+
}
|
|
1957
|
+
function d() {
|
|
1958
|
+
let { nextEl: t, prevEl: n } = e.navigation;
|
|
1959
|
+
t = i(t), n = i(n);
|
|
1960
|
+
let r = (t, n) => {
|
|
1961
|
+
t.removeEventListener("click", n === "next" ? l : c), t.classList.remove(...e.params.navigation.disabledClass.split(" "));
|
|
1962
|
+
};
|
|
1963
|
+
t.forEach((e) => r(e, "next")), n.forEach((e) => r(e, "prev"));
|
|
1964
|
+
}
|
|
1965
|
+
n("init", () => {
|
|
1966
|
+
e.params.navigation.enabled === !1 ? p() : (u(), s());
|
|
1967
|
+
}), n("toEdge fromEdge lock unlock", () => {
|
|
1968
|
+
s();
|
|
1969
|
+
}), n("destroy", () => {
|
|
1970
|
+
d();
|
|
1971
|
+
}), n("enable disable", () => {
|
|
1972
|
+
let { nextEl: t, prevEl: n } = e.navigation;
|
|
1973
|
+
t = i(t), n = i(n), [...t, ...n].filter((e) => !!e).forEach((t) => t.classList[e.enabled ? "remove" : "add"](e.params.navigation.lockClass));
|
|
1974
|
+
}), n("click", (t, n) => {
|
|
1975
|
+
let { nextEl: a, prevEl: o } = e.navigation;
|
|
1976
|
+
a = i(a), o = i(o);
|
|
1977
|
+
let s = n.target;
|
|
1978
|
+
if (e.params.navigation.hideOnClick && !o.includes(s) && !a.includes(s)) {
|
|
1979
|
+
if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === s || e.pagination.el.contains(s))) return;
|
|
1980
|
+
let t;
|
|
1981
|
+
a.length ? t = a[0].classList.contains(e.params.navigation.hiddenClass) : o.length && (t = o[0].classList.contains(e.params.navigation.hiddenClass)), r(t === !0 ? "navigationShow" : "navigationHide"), [...a, ...o].filter((e) => !!e).forEach((t) => t.classList.toggle(e.params.navigation.hiddenClass));
|
|
1982
|
+
}
|
|
1983
|
+
});
|
|
1984
|
+
let f = () => {
|
|
1985
|
+
e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), u(), s();
|
|
1986
|
+
}, p = () => {
|
|
1987
|
+
e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")), d();
|
|
1988
|
+
};
|
|
1989
|
+
Object.assign(e.navigation, {
|
|
1990
|
+
enable: f,
|
|
1991
|
+
disable: p,
|
|
1992
|
+
update: s,
|
|
1993
|
+
init: u,
|
|
1994
|
+
destroy: d
|
|
1995
|
+
});
|
|
1996
|
+
}
|
|
1997
|
+
//#endregion
|
|
1998
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/components-shared/utils.js
|
|
1999
|
+
function R(e) {
|
|
2000
|
+
return typeof e == "object" && !!e && e.constructor && Object.prototype.toString.call(e).slice(8, -1) === "Object";
|
|
2001
|
+
}
|
|
2002
|
+
function z(e, t) {
|
|
2003
|
+
let n = [
|
|
2004
|
+
"__proto__",
|
|
2005
|
+
"constructor",
|
|
2006
|
+
"prototype"
|
|
2007
|
+
];
|
|
2008
|
+
Object.keys(t).filter((e) => n.indexOf(e) < 0).forEach((n) => {
|
|
2009
|
+
e[n] === void 0 ? e[n] = t[n] : R(t[n]) && R(e[n]) && Object.keys(t[n]).length > 0 ? t[n].__swiper__ ? e[n] = t[n] : z(e[n], t[n]) : e[n] = t[n];
|
|
2010
|
+
});
|
|
2011
|
+
}
|
|
2012
|
+
function Pt(e = {}) {
|
|
2013
|
+
return e.navigation && e.navigation.nextEl === void 0 && e.navigation.prevEl === void 0;
|
|
2014
|
+
}
|
|
2015
|
+
function Ft(e = {}) {
|
|
2016
|
+
return e.pagination && e.pagination.el === void 0;
|
|
2017
|
+
}
|
|
2018
|
+
function It(e = {}) {
|
|
2019
|
+
return e.scrollbar && e.scrollbar.el === void 0;
|
|
2020
|
+
}
|
|
2021
|
+
function Lt(e = "") {
|
|
2022
|
+
let t = e.split(" ").map((e) => e.trim()).filter((e) => !!e), n = [];
|
|
2023
|
+
return t.forEach((e) => {
|
|
2024
|
+
n.indexOf(e) < 0 && n.push(e);
|
|
2025
|
+
}), n.join(" ");
|
|
2026
|
+
}
|
|
2027
|
+
function Rt(e = "") {
|
|
2028
|
+
return e ? e.includes("swiper-wrapper") ? e : `swiper-wrapper ${e}` : "swiper-wrapper";
|
|
2029
|
+
}
|
|
2030
|
+
//#endregion
|
|
2031
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/components-shared/params-list.js
|
|
2032
|
+
var zt = /* @__PURE__ */ "eventsPrefix.injectStyles.injectStylesUrls.modules.init._direction.oneWayMovement.touchEventsTarget.initialSlide._speed.cssMode.updateOnWindowResize.resizeObserver.nested.focusableElements._enabled._width._height.preventInteractionOnTransition.userAgent.url._edgeSwipeDetection._edgeSwipeThreshold._freeMode._autoHeight.setWrapperSize.virtualTranslate._effect.breakpoints._spaceBetween._slidesPerView.maxBackfaceHiddenSlides._grid._slidesPerGroup._slidesPerGroupSkip._slidesPerGroupAuto._centeredSlides._centeredSlidesBounds._slidesOffsetBefore._slidesOffsetAfter.normalizeSlideIndex._centerInsufficientSlides._watchOverflow.roundLengths.touchRatio.touchAngle.simulateTouch._shortSwipes._longSwipes.longSwipesRatio.longSwipesMs._followFinger.allowTouchMove._threshold.touchMoveStopPropagation.touchStartPreventDefault.touchStartForcePreventDefault.touchReleaseOnEdges.uniqueNavElements._resistance._resistanceRatio._watchSlidesProgress._grabCursor.preventClicks.preventClicksPropagation._slideToClickedSlide._loop.loopedSlides.loopPreventsSliding._rewind._allowSlidePrev._allowSlideNext._swipeHandler._noSwiping.noSwipingClass.noSwipingSelector.passiveListeners.containerModifierClass.slideClass.slideActiveClass.slideVisibleClass.slideNextClass.slidePrevClass.wrapperClass.lazyPreloaderClass.lazyPreloadPrevNext.runCallbacksOnInit.observer.observeParents.observeSlideChildren.a11y._autoplay._controller.coverflowEffect.cubeEffect.fadeEffect.flipEffect.creativeEffect.cardsEffect.hashNavigation.history.keyboard.mousewheel._navigation._pagination.parallax._scrollbar._thumbs.virtual.zoom.control".split(".");
|
|
2033
|
+
//#endregion
|
|
2034
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/components-shared/get-params.js
|
|
2035
|
+
function Bt(e = {}, t = !0) {
|
|
2036
|
+
let n = { on: {} }, r = {}, i = {};
|
|
2037
|
+
z(n, L.defaults), z(n, L.extendedDefaults), n._emitClasses = !0, n.init = !1;
|
|
2038
|
+
let a = {}, o = zt.map((e) => e.replace(/_/, "")), s = Object.assign({}, e);
|
|
2039
|
+
return Object.keys(s).forEach((s) => {
|
|
2040
|
+
e[s] !== void 0 && (o.indexOf(s) >= 0 ? R(e[s]) ? (n[s] = {}, i[s] = {}, z(n[s], e[s]), z(i[s], e[s])) : (n[s] = e[s], i[s] = e[s]) : s.search(/on[A-Z]/) === 0 && typeof e[s] == "function" ? t ? r[`${s[2].toLowerCase()}${s.substr(3)}`] = e[s] : n.on[`${s[2].toLowerCase()}${s.substr(3)}`] = e[s] : a[s] = e[s]);
|
|
2041
|
+
}), [
|
|
2042
|
+
"navigation",
|
|
2043
|
+
"pagination",
|
|
2044
|
+
"scrollbar"
|
|
2045
|
+
].forEach((e) => {
|
|
2046
|
+
n[e] === !0 && (n[e] = {}), n[e] === !1 && delete n[e];
|
|
2047
|
+
}), {
|
|
2048
|
+
params: n,
|
|
2049
|
+
passedParams: i,
|
|
2050
|
+
rest: a,
|
|
2051
|
+
events: r
|
|
2052
|
+
};
|
|
2053
|
+
}
|
|
2054
|
+
//#endregion
|
|
2055
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/components-shared/mount-swiper.js
|
|
2056
|
+
function Vt({ el: e, nextEl: t, prevEl: n, paginationEl: r, scrollbarEl: i, swiper: a }, o) {
|
|
2057
|
+
Pt(o) && t && n && (a.params.navigation.nextEl = t, a.originalParams.navigation.nextEl = t, a.params.navigation.prevEl = n, a.originalParams.navigation.prevEl = n), Ft(o) && r && (a.params.pagination.el = r, a.originalParams.pagination.el = r), It(o) && i && (a.params.scrollbar.el = i, a.originalParams.scrollbar.el = i), a.init(e);
|
|
2058
|
+
}
|
|
2059
|
+
//#endregion
|
|
2060
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/components-shared/get-changed-params.js
|
|
2061
|
+
function Ht(e, t, n, r, i) {
|
|
2062
|
+
let a = [];
|
|
2063
|
+
if (!t) return a;
|
|
2064
|
+
let o = (e) => {
|
|
2065
|
+
a.indexOf(e) < 0 && a.push(e);
|
|
2066
|
+
};
|
|
2067
|
+
if (n && r) {
|
|
2068
|
+
let e = r.map(i), t = n.map(i);
|
|
2069
|
+
e.join("") !== t.join("") && o("children"), r.length !== n.length && o("children");
|
|
2070
|
+
}
|
|
2071
|
+
return zt.filter((e) => e[0] === "_").map((e) => e.replace(/_/, "")).forEach((n) => {
|
|
2072
|
+
if (n in e && n in t) if (R(e[n]) && R(t[n])) {
|
|
2073
|
+
let r = Object.keys(e[n]), i = Object.keys(t[n]);
|
|
2074
|
+
r.length === i.length ? (r.forEach((r) => {
|
|
2075
|
+
e[n][r] !== t[n][r] && o(n);
|
|
2076
|
+
}), i.forEach((r) => {
|
|
2077
|
+
e[n][r] !== t[n][r] && o(n);
|
|
2078
|
+
})) : o(n);
|
|
2079
|
+
} else e[n] !== t[n] && o(n);
|
|
2080
|
+
}), a;
|
|
2081
|
+
}
|
|
2082
|
+
//#endregion
|
|
2083
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/react/get-children.js
|
|
2084
|
+
function Ut(e) {
|
|
2085
|
+
return e.type && e.type.displayName && e.type.displayName.includes("SwiperSlide");
|
|
2086
|
+
}
|
|
2087
|
+
function Wt(e) {
|
|
2088
|
+
let t = [];
|
|
2089
|
+
return l.Children.toArray(e).forEach((e) => {
|
|
2090
|
+
Ut(e) ? t.push(e) : e.props && e.props.children && Wt(e.props.children).forEach((e) => t.push(e));
|
|
2091
|
+
}), t;
|
|
2092
|
+
}
|
|
2093
|
+
function Gt(e) {
|
|
2094
|
+
let t = [], n = {
|
|
2095
|
+
"container-start": [],
|
|
2096
|
+
"container-end": [],
|
|
2097
|
+
"wrapper-start": [],
|
|
2098
|
+
"wrapper-end": []
|
|
2099
|
+
};
|
|
2100
|
+
return l.Children.toArray(e).forEach((e) => {
|
|
2101
|
+
if (Ut(e)) t.push(e);
|
|
2102
|
+
else if (e.props && e.props.slot && n[e.props.slot]) n[e.props.slot].push(e);
|
|
2103
|
+
else if (e.props && e.props.children) {
|
|
2104
|
+
let r = Wt(e.props.children);
|
|
2105
|
+
r.length > 0 ? r.forEach((e) => t.push(e)) : n["container-end"].push(e);
|
|
2106
|
+
} else n["container-end"].push(e);
|
|
2107
|
+
}), {
|
|
2108
|
+
slides: t,
|
|
2109
|
+
slots: n
|
|
2110
|
+
};
|
|
2111
|
+
}
|
|
2112
|
+
//#endregion
|
|
2113
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/components-shared/update-swiper.js
|
|
2114
|
+
function Kt({ swiper: e, slides: t, passedParams: n, changedParams: r, nextEl: i, prevEl: a, scrollbarEl: o, paginationEl: s }) {
|
|
2115
|
+
let c = r.filter((e) => e !== "children" && e !== "direction" && e !== "wrapperClass"), { params: l, pagination: u, navigation: d, scrollbar: f, virtual: p, thumbs: m } = e, h, g, _, v, y, b, x, S;
|
|
2116
|
+
r.includes("thumbs") && n.thumbs && n.thumbs.swiper && l.thumbs && !l.thumbs.swiper && (h = !0), r.includes("controller") && n.controller && n.controller.control && l.controller && !l.controller.control && (g = !0), r.includes("pagination") && n.pagination && (n.pagination.el || s) && (l.pagination || l.pagination === !1) && u && !u.el && (_ = !0), r.includes("scrollbar") && n.scrollbar && (n.scrollbar.el || o) && (l.scrollbar || l.scrollbar === !1) && f && !f.el && (v = !0), r.includes("navigation") && n.navigation && (n.navigation.prevEl || a) && (n.navigation.nextEl || i) && (l.navigation || l.navigation === !1) && d && !d.prevEl && !d.nextEl && (y = !0);
|
|
2117
|
+
let C = (t) => {
|
|
2118
|
+
e[t] && (e[t].destroy(), t === "navigation" ? (e.isElement && (e[t].prevEl.remove(), e[t].nextEl.remove()), l[t].prevEl = void 0, l[t].nextEl = void 0, e[t].prevEl = void 0, e[t].nextEl = void 0) : (e.isElement && e[t].el.remove(), l[t].el = void 0, e[t].el = void 0));
|
|
2119
|
+
};
|
|
2120
|
+
r.includes("loop") && e.isElement && (l.loop && !n.loop ? b = !0 : !l.loop && n.loop ? x = !0 : S = !0), c.forEach((e) => {
|
|
2121
|
+
if (R(l[e]) && R(n[e])) z(l[e], n[e]), (e === "navigation" || e === "pagination" || e === "scrollbar") && "enabled" in n[e] && !n[e].enabled && C(e);
|
|
2122
|
+
else {
|
|
2123
|
+
let t = n[e];
|
|
2124
|
+
(t === !0 || t === !1) && (e === "navigation" || e === "pagination" || e === "scrollbar") ? t === !1 && C(e) : l[e] = n[e];
|
|
2125
|
+
}
|
|
2126
|
+
}), c.includes("controller") && !g && e.controller && e.controller.control && l.controller && l.controller.control && (e.controller.control = l.controller.control), r.includes("children") && t && p && l.virtual.enabled && (p.slides = t, p.update(!0)), r.includes("children") && t && l.loop && (S = !0), h && m.init() && m.update(!0), g && (e.controller.control = l.controller.control), _ && (e.isElement && (!s || typeof s == "string") && (s = document.createElement("div"), s.classList.add("swiper-pagination"), e.el.shadowEl.appendChild(s)), s && (l.pagination.el = s), u.init(), u.render(), u.update()), v && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-scrollbar"), e.el.shadowEl.appendChild(o)), o && (l.scrollbar.el = o), f.init(), f.updateSize(), f.setTranslate()), y && (e.isElement && ((!i || typeof i == "string") && (i = document.createElement("div"), i.classList.add("swiper-button-next"), e.el.shadowEl.appendChild(i)), (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-button-prev"), e.el.shadowEl.appendChild(a))), i && (l.navigation.nextEl = i), a && (l.navigation.prevEl = a), d.init(), d.update()), r.includes("allowSlideNext") && (e.allowSlideNext = n.allowSlideNext), r.includes("allowSlidePrev") && (e.allowSlidePrev = n.allowSlidePrev), r.includes("direction") && e.changeDirection(n.direction, !1), (b || S) && e.loopDestroy(), (x || S) && e.loopCreate(), e.update();
|
|
2127
|
+
}
|
|
2128
|
+
//#endregion
|
|
2129
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/react/virtual.js
|
|
2130
|
+
function qt(e, t, n) {
|
|
2131
|
+
if (!n) return null;
|
|
2132
|
+
let r = (e) => {
|
|
2133
|
+
let n = e;
|
|
2134
|
+
return e < 0 ? n = t.length + e : n >= t.length && (n -= t.length), n;
|
|
2135
|
+
}, i = e.isHorizontal() ? { [e.rtlTranslate ? "right" : "left"]: `${n.offset}px` } : { top: `${n.offset}px` }, { from: a, to: o } = n, s = e.params.loop ? -t.length : 0, c = e.params.loop ? t.length * 2 : t.length, u = [];
|
|
2136
|
+
for (let e = s; e < c; e += 1) e >= a && e <= o && u.push(t[r(e)]);
|
|
2137
|
+
return u.map((t, n) => /* @__PURE__ */ l.cloneElement(t, {
|
|
2138
|
+
swiper: e,
|
|
2139
|
+
style: i,
|
|
2140
|
+
key: `slide-${n}`
|
|
2141
|
+
}));
|
|
2142
|
+
}
|
|
2143
|
+
//#endregion
|
|
2144
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/components-shared/update-on-virtual-data.js
|
|
2145
|
+
var Jt = (e) => {
|
|
2146
|
+
!e || e.destroyed || !e.params.virtual || e.params.virtual && !e.params.virtual.enabled || (e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(), e.parallax && e.params.parallax && e.params.parallax.enabled && e.parallax.setTranslate());
|
|
2147
|
+
};
|
|
2148
|
+
//#endregion
|
|
2149
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/react/use-isomorphic-layout-effect.js
|
|
2150
|
+
function B(e, t) {
|
|
2151
|
+
return typeof window > "u" ? (0, l.useEffect)(e, t) : (0, l.useLayoutEffect)(e, t);
|
|
2152
|
+
}
|
|
2153
|
+
//#endregion
|
|
2154
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/react/context.js
|
|
2155
|
+
var Yt = /* @__PURE__ */ (0, l.createContext)(null), Xt = /* @__PURE__ */ (0, l.createContext)(null);
|
|
2156
|
+
//#endregion
|
|
2157
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/react/swiper.js
|
|
2158
|
+
function Zt() {
|
|
2159
|
+
return Zt = Object.assign ? Object.assign.bind() : function(e) {
|
|
2160
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
2161
|
+
var n = arguments[t];
|
|
2162
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
2163
|
+
}
|
|
2164
|
+
return e;
|
|
2165
|
+
}, Zt.apply(this, arguments);
|
|
2166
|
+
}
|
|
2167
|
+
var Qt = /* @__PURE__ */ (0, l.forwardRef)(function(e, t) {
|
|
2168
|
+
let { className: n, tag: r = "div", wrapperTag: i = "div", children: a, onSwiper: o, ...s } = e === void 0 ? {} : e, c = !1, [u, d] = (0, l.useState)("swiper"), [f, p] = (0, l.useState)(null), [m, h] = (0, l.useState)(!1), g = (0, l.useRef)(!1), _ = (0, l.useRef)(null), v = (0, l.useRef)(null), y = (0, l.useRef)(null), b = (0, l.useRef)(null), x = (0, l.useRef)(null), S = (0, l.useRef)(null), C = (0, l.useRef)(null), w = (0, l.useRef)(null), { params: T, passedParams: E, rest: D, events: O } = Bt(s), { slides: k, slots: A } = Gt(a), j = () => {
|
|
2169
|
+
h(!m);
|
|
2170
|
+
};
|
|
2171
|
+
Object.assign(T.on, { _containerClasses(e, t) {
|
|
2172
|
+
d(t);
|
|
2173
|
+
} });
|
|
2174
|
+
let M = () => {
|
|
2175
|
+
Object.assign(T.on, O), c = !0;
|
|
2176
|
+
let e = { ...T };
|
|
2177
|
+
if (delete e.wrapperClass, v.current = new L(e), v.current.virtual && v.current.params.virtual.enabled) {
|
|
2178
|
+
v.current.virtual.slides = k;
|
|
2179
|
+
let e = {
|
|
2180
|
+
cache: !1,
|
|
2181
|
+
slides: k,
|
|
2182
|
+
renderExternal: p,
|
|
2183
|
+
renderExternalUpdate: !1
|
|
2184
|
+
};
|
|
2185
|
+
z(v.current.params.virtual, e), z(v.current.originalParams.virtual, e);
|
|
2186
|
+
}
|
|
2187
|
+
};
|
|
2188
|
+
_.current || M(), v.current && v.current.on("_beforeBreakpoint", j);
|
|
2189
|
+
let N = () => {
|
|
2190
|
+
c || !O || !v.current || Object.keys(O).forEach((e) => {
|
|
2191
|
+
v.current.on(e, O[e]);
|
|
2192
|
+
});
|
|
2193
|
+
}, ee = () => {
|
|
2194
|
+
!O || !v.current || Object.keys(O).forEach((e) => {
|
|
2195
|
+
v.current.off(e, O[e]);
|
|
2196
|
+
});
|
|
2197
|
+
};
|
|
2198
|
+
(0, l.useEffect)(() => () => {
|
|
2199
|
+
v.current && v.current.off("_beforeBreakpoint", j);
|
|
2200
|
+
}), (0, l.useEffect)(() => {
|
|
2201
|
+
!g.current && v.current && (v.current.emitSlidesClasses(), g.current = !0);
|
|
2202
|
+
}), B(() => {
|
|
2203
|
+
if (t && (t.current = _.current), _.current) return v.current.destroyed && M(), Vt({
|
|
2204
|
+
el: _.current,
|
|
2205
|
+
nextEl: x.current,
|
|
2206
|
+
prevEl: S.current,
|
|
2207
|
+
paginationEl: C.current,
|
|
2208
|
+
scrollbarEl: w.current,
|
|
2209
|
+
swiper: v.current
|
|
2210
|
+
}, T), o && o(v.current), () => {
|
|
2211
|
+
v.current && !v.current.destroyed && v.current.destroy(!0, !1);
|
|
2212
|
+
};
|
|
2213
|
+
}, []), B(() => {
|
|
2214
|
+
N();
|
|
2215
|
+
let e = Ht(E, y.current, k, b.current, (e) => e.key);
|
|
2216
|
+
return y.current = E, b.current = k, e.length && v.current && !v.current.destroyed && Kt({
|
|
2217
|
+
swiper: v.current,
|
|
2218
|
+
slides: k,
|
|
2219
|
+
passedParams: E,
|
|
2220
|
+
changedParams: e,
|
|
2221
|
+
nextEl: x.current,
|
|
2222
|
+
prevEl: S.current,
|
|
2223
|
+
scrollbarEl: w.current,
|
|
2224
|
+
paginationEl: C.current
|
|
2225
|
+
}), () => {
|
|
2226
|
+
ee();
|
|
2227
|
+
};
|
|
2228
|
+
}), B(() => {
|
|
2229
|
+
Jt(v.current);
|
|
2230
|
+
}, [f]);
|
|
2231
|
+
function P() {
|
|
2232
|
+
return T.virtual ? qt(v.current, k, f) : k.map((e, t) => /* @__PURE__ */ l.cloneElement(e, {
|
|
2233
|
+
swiper: v.current,
|
|
2234
|
+
swiperSlideIndex: t
|
|
2235
|
+
}));
|
|
2236
|
+
}
|
|
2237
|
+
return /* @__PURE__ */ l.createElement(r, Zt({
|
|
2238
|
+
ref: _,
|
|
2239
|
+
className: Lt(`${u}${n ? ` ${n}` : ""}`)
|
|
2240
|
+
}, D), /* @__PURE__ */ l.createElement(Xt.Provider, { value: v.current }, A["container-start"], /* @__PURE__ */ l.createElement(i, { className: Rt(T.wrapperClass) }, A["wrapper-start"], P(), A["wrapper-end"]), Pt(T) && /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement("div", {
|
|
2241
|
+
ref: S,
|
|
2242
|
+
className: "swiper-button-prev"
|
|
2243
|
+
}), /* @__PURE__ */ l.createElement("div", {
|
|
2244
|
+
ref: x,
|
|
2245
|
+
className: "swiper-button-next"
|
|
2246
|
+
})), It(T) && /* @__PURE__ */ l.createElement("div", {
|
|
2247
|
+
ref: w,
|
|
2248
|
+
className: "swiper-scrollbar"
|
|
2249
|
+
}), Ft(T) && /* @__PURE__ */ l.createElement("div", {
|
|
2250
|
+
ref: C,
|
|
2251
|
+
className: "swiper-pagination"
|
|
2252
|
+
}), A["container-end"]));
|
|
2253
|
+
});
|
|
2254
|
+
Qt.displayName = "Swiper";
|
|
2255
|
+
//#endregion
|
|
2256
|
+
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/react/swiper-slide.js
|
|
2257
|
+
function $t() {
|
|
2258
|
+
return $t = Object.assign ? Object.assign.bind() : function(e) {
|
|
2259
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
2260
|
+
var n = arguments[t];
|
|
2261
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
2262
|
+
}
|
|
2263
|
+
return e;
|
|
2264
|
+
}, $t.apply(this, arguments);
|
|
2265
|
+
}
|
|
2266
|
+
var en = /* @__PURE__ */ (0, l.forwardRef)(function(e, t) {
|
|
2267
|
+
let { tag: n = "div", children: r, className: i = "", swiper: a, zoom: o, lazy: s, virtualIndex: c, swiperSlideIndex: u, ...d } = e === void 0 ? {} : e, f = (0, l.useRef)(null), [p, m] = (0, l.useState)("swiper-slide"), [h, g] = (0, l.useState)(!1);
|
|
2268
|
+
function _(e, t, n) {
|
|
2269
|
+
t === f.current && m(n);
|
|
2270
|
+
}
|
|
2271
|
+
B(() => {
|
|
2272
|
+
if (u !== void 0 && (f.current.swiperSlideIndex = u), t && (t.current = f.current), !(!f.current || !a)) {
|
|
2273
|
+
if (a.destroyed) {
|
|
2274
|
+
p !== "swiper-slide" && m("swiper-slide");
|
|
2275
|
+
return;
|
|
2276
|
+
}
|
|
2277
|
+
return a.on("_slideClass", _), () => {
|
|
2278
|
+
a && a.off("_slideClass", _);
|
|
2279
|
+
};
|
|
2280
|
+
}
|
|
2281
|
+
}), B(() => {
|
|
2282
|
+
a && f.current && !a.destroyed && m(a.getSlideClasses(f.current));
|
|
2283
|
+
}, [a]);
|
|
2284
|
+
let v = {
|
|
2285
|
+
isActive: p.indexOf("swiper-slide-active") >= 0,
|
|
2286
|
+
isVisible: p.indexOf("swiper-slide-visible") >= 0,
|
|
2287
|
+
isPrev: p.indexOf("swiper-slide-prev") >= 0,
|
|
2288
|
+
isNext: p.indexOf("swiper-slide-next") >= 0
|
|
2289
|
+
}, y = () => typeof r == "function" ? r(v) : r;
|
|
2290
|
+
return /* @__PURE__ */ l.createElement(n, $t({
|
|
2291
|
+
ref: f,
|
|
2292
|
+
className: Lt(`${p}${i ? ` ${i}` : ""}`),
|
|
2293
|
+
"data-swiper-slide-index": c,
|
|
2294
|
+
onLoad: () => {
|
|
2295
|
+
g(!0);
|
|
2296
|
+
}
|
|
2297
|
+
}, d), o && /* @__PURE__ */ l.createElement(Yt.Provider, { value: v }, /* @__PURE__ */ l.createElement("div", {
|
|
2298
|
+
className: "swiper-zoom-container",
|
|
2299
|
+
"data-swiper-zoom": typeof o == "number" ? o : void 0
|
|
2300
|
+
}, y(), s && !h && /* @__PURE__ */ l.createElement("div", { className: "swiper-lazy-preloader" }))), !o && /* @__PURE__ */ l.createElement(Yt.Provider, { value: v }, y(), s && !h && /* @__PURE__ */ l.createElement("div", { className: "swiper-lazy-preloader" })));
|
|
2301
|
+
});
|
|
2302
|
+
en.displayName = "SwiperSlide";
|
|
2303
|
+
//#endregion
|
|
2304
|
+
//#region ../../node_modules/.pnpm/react-zoom-pan-pinch-sr@0.2.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-zoom-pan-pinch-sr/dist/index.esm.js
|
|
2305
|
+
var V = function(e, t) {
|
|
2306
|
+
return Number(e.toFixed(t));
|
|
2307
|
+
}, tn = function(e, t) {
|
|
2308
|
+
return typeof e == "number" ? e : t;
|
|
2309
|
+
}, H = function(e, t, n) {
|
|
2310
|
+
n && typeof n == "function" && n(e, t);
|
|
2311
|
+
}, nn = {
|
|
2312
|
+
easeOut: function(e) {
|
|
2313
|
+
return -Math.cos(e * Math.PI) / 2 + .5;
|
|
2314
|
+
},
|
|
2315
|
+
linear: function(e) {
|
|
2316
|
+
return e;
|
|
2317
|
+
},
|
|
2318
|
+
easeInQuad: function(e) {
|
|
2319
|
+
return e * e;
|
|
2320
|
+
},
|
|
2321
|
+
easeOutQuad: function(e) {
|
|
2322
|
+
return e * (2 - e);
|
|
2323
|
+
},
|
|
2324
|
+
easeInOutQuad: function(e) {
|
|
2325
|
+
return e < .5 ? 2 * e * e : -1 + (4 - 2 * e) * e;
|
|
2326
|
+
},
|
|
2327
|
+
easeInCubic: function(e) {
|
|
2328
|
+
return e * e * e;
|
|
2329
|
+
},
|
|
2330
|
+
easeOutCubic: function(e) {
|
|
2331
|
+
return --e * e * e + 1;
|
|
2332
|
+
},
|
|
2333
|
+
easeInOutCubic: function(e) {
|
|
2334
|
+
return e < .5 ? 4 * e * e * e : (e - 1) * (2 * e - 2) * (2 * e - 2) + 1;
|
|
2335
|
+
},
|
|
2336
|
+
easeInQuart: function(e) {
|
|
2337
|
+
return e * e * e * e;
|
|
2338
|
+
},
|
|
2339
|
+
easeOutQuart: function(e) {
|
|
2340
|
+
return 1 - --e * e * e * e;
|
|
2341
|
+
},
|
|
2342
|
+
easeInOutQuart: function(e) {
|
|
2343
|
+
return e < .5 ? 8 * e * e * e * e : 1 - 8 * --e * e * e * e;
|
|
2344
|
+
},
|
|
2345
|
+
easeInQuint: function(e) {
|
|
2346
|
+
return e * e * e * e * e;
|
|
2347
|
+
},
|
|
2348
|
+
easeOutQuint: function(e) {
|
|
2349
|
+
return 1 + --e * e * e * e * e;
|
|
2350
|
+
},
|
|
2351
|
+
easeInOutQuint: function(e) {
|
|
2352
|
+
return e < .5 ? 16 * e * e * e * e * e : 1 + 16 * --e * e * e * e * e;
|
|
2353
|
+
}
|
|
2354
|
+
}, rn = function(e) {
|
|
2355
|
+
typeof e == "number" && cancelAnimationFrame(e);
|
|
2356
|
+
}, U = function(e) {
|
|
2357
|
+
e.mounted && (rn(e.animation), e.animate = !1, e.animation = null, e.velocity = null);
|
|
2358
|
+
};
|
|
2359
|
+
function an(e, t, n, r) {
|
|
2360
|
+
if (e.mounted) {
|
|
2361
|
+
var i = (/* @__PURE__ */ new Date()).getTime(), a = 1;
|
|
2362
|
+
U(e), e.animation = function() {
|
|
2363
|
+
if (!e.mounted) return rn(e.animation);
|
|
2364
|
+
var o = (/* @__PURE__ */ new Date()).getTime() - i, s = o / n, c = nn[t], l = c(s);
|
|
2365
|
+
o >= n ? (r(a), e.animation = null) : e.animation && (r(l), requestAnimationFrame(e.animation));
|
|
2366
|
+
}, requestAnimationFrame(e.animation);
|
|
2367
|
+
}
|
|
2368
|
+
}
|
|
2369
|
+
function on(e) {
|
|
2370
|
+
var t = e.scale, n = e.positionX, r = e.positionY;
|
|
2371
|
+
return !(Number.isNaN(t) || Number.isNaN(n) || Number.isNaN(r));
|
|
2372
|
+
}
|
|
2373
|
+
function W(e, t, n, r) {
|
|
2374
|
+
var i = on(t);
|
|
2375
|
+
if (!(!e.mounted || !i)) {
|
|
2376
|
+
var a = e.setTransformState, o = e.transformState, s = o.scale, c = o.positionX, l = o.positionY, u = t.scale - s, d = t.positionX - c, f = t.positionY - l;
|
|
2377
|
+
n === 0 ? a(t.scale, t.positionX, t.positionY) : an(e, r, n, function(e) {
|
|
2378
|
+
a(s + u * e, c + d * e, l + f * e);
|
|
2379
|
+
});
|
|
2380
|
+
}
|
|
2381
|
+
}
|
|
2382
|
+
function sn(e, t, n) {
|
|
2383
|
+
var r = e.offsetWidth, i = e.offsetHeight, a = t.offsetWidth, o = t.offsetHeight, s = a * n, c = o * n;
|
|
2384
|
+
return {
|
|
2385
|
+
wrapperWidth: r,
|
|
2386
|
+
wrapperHeight: i,
|
|
2387
|
+
newContentWidth: s,
|
|
2388
|
+
newDiffWidth: r - s,
|
|
2389
|
+
newContentHeight: c,
|
|
2390
|
+
newDiffHeight: i - c
|
|
2391
|
+
};
|
|
2392
|
+
}
|
|
2393
|
+
var cn = function(e, t, n, r, i, a, o) {
|
|
2394
|
+
var s = e > t ? n * (o ? 1 : .5) : 0, c = r > i ? a * (o ? 1 : .5) : 0;
|
|
2395
|
+
return {
|
|
2396
|
+
minPositionX: e - t - s,
|
|
2397
|
+
maxPositionX: s,
|
|
2398
|
+
minPositionY: r - i - c,
|
|
2399
|
+
maxPositionY: c
|
|
2400
|
+
};
|
|
2401
|
+
}, ln = function(e, t) {
|
|
2402
|
+
var n = e.wrapperComponent, r = e.contentComponent, i = e.setup.centerZoomedOut;
|
|
2403
|
+
if (!n || !r) throw Error("Components are not mounted");
|
|
2404
|
+
var a = sn(n, r, t), o = a.wrapperWidth, s = a.wrapperHeight, c = a.newContentWidth, l = a.newDiffWidth, u = a.newContentHeight, d = a.newDiffHeight;
|
|
2405
|
+
return cn(o, c, l, s, u, d, !!i);
|
|
2406
|
+
}, un = function(e, t, n, r) {
|
|
2407
|
+
return V(r ? e < t ? t : e > n ? n : e : e, 2);
|
|
2408
|
+
}, G = function(e, t) {
|
|
2409
|
+
var n = ln(e, t);
|
|
2410
|
+
return e.bounds = n, n;
|
|
2411
|
+
};
|
|
2412
|
+
function K(e, t, n, r, i, a, o) {
|
|
2413
|
+
var s = n.minPositionX, c = n.minPositionY, l = n.maxPositionX, u = n.maxPositionY, d = 0, f = 0;
|
|
2414
|
+
return o && (d = i, f = a), {
|
|
2415
|
+
x: un(e, s - d, l + d, r),
|
|
2416
|
+
y: un(t, c - f, u + f, r)
|
|
2417
|
+
};
|
|
2418
|
+
}
|
|
2419
|
+
function dn(e, t, n, r, i, a) {
|
|
2420
|
+
var o = e.transformState, s = o.scale, c = o.positionX, l = o.positionY, u = r - s;
|
|
2421
|
+
return typeof t != "number" || typeof n != "number" ? (console.error("Mouse X and Y position were not provided!"), {
|
|
2422
|
+
x: c,
|
|
2423
|
+
y: l
|
|
2424
|
+
}) : K(c - t * u, l - n * u, i, a, 0, 0, null);
|
|
2425
|
+
}
|
|
2426
|
+
function q(e, t, n, r, i) {
|
|
2427
|
+
var a = t - (i ? r : 0);
|
|
2428
|
+
return !Number.isNaN(n) && e >= n ? n : !Number.isNaN(t) && e <= a ? a : e;
|
|
2429
|
+
}
|
|
2430
|
+
var fn = function(e, t) {
|
|
2431
|
+
var n = e.setup.panning.excluded, r = e.isInitialized, i = e.wrapperComponent, a = t.composedPath()[0] || t.target, o = i == null ? void 0 : i.contains(a);
|
|
2432
|
+
return !(!(r && a && o) || $(a, n));
|
|
2433
|
+
}, pn = function(e) {
|
|
2434
|
+
var t = e.isInitialized, n = e.isPanning, r = e.setup.panning.disabled;
|
|
2435
|
+
return !!(t && n && !r);
|
|
2436
|
+
}, mn = function(e, t) {
|
|
2437
|
+
var n = e.transformState, r = n.positionX, i = n.positionY;
|
|
2438
|
+
e.isPanning = !0;
|
|
2439
|
+
var a = t.clientX, o = t.clientY;
|
|
2440
|
+
e.startCoords = {
|
|
2441
|
+
x: a - r,
|
|
2442
|
+
y: o - i
|
|
2443
|
+
};
|
|
2444
|
+
}, hn = function(e, t) {
|
|
2445
|
+
var n = t.touches, r = e.transformState, i = r.positionX, a = r.positionY;
|
|
2446
|
+
if (e.isPanning = !0, n.length === 1) {
|
|
2447
|
+
var o = n[0].clientX, s = n[0].clientY;
|
|
2448
|
+
e.startCoords = {
|
|
2449
|
+
x: o - i,
|
|
2450
|
+
y: s - a
|
|
2451
|
+
};
|
|
2452
|
+
}
|
|
2453
|
+
};
|
|
2454
|
+
function gn(e) {
|
|
2455
|
+
var t = e.transformState, n = t.positionX, r = t.positionY, i = t.scale, a = e.setup, o = a.disabled, s = a.limitToBounds, c = a.centerZoomedOut, l = e.wrapperComponent;
|
|
2456
|
+
if (!(o || !l || !e.bounds)) {
|
|
2457
|
+
var u = e.bounds, d = u.maxPositionX, f = u.minPositionX, p = u.maxPositionY, m = u.minPositionY, h = n > d || n < f, g = r > p || r < m, _ = dn(e, n > d ? l.offsetWidth : e.setup.minPositionX || 0, r > p ? l.offsetHeight : e.setup.minPositionY || 0, i, e.bounds, s || c), v = _.x, y = _.y;
|
|
2458
|
+
return {
|
|
2459
|
+
scale: i,
|
|
2460
|
+
positionX: h ? v : n,
|
|
2461
|
+
positionY: g ? y : r
|
|
2462
|
+
};
|
|
2463
|
+
}
|
|
2464
|
+
}
|
|
2465
|
+
function _n(e, t, n, r, i) {
|
|
2466
|
+
var a = e.setup.limitToBounds, o = e.wrapperComponent, s = e.bounds, c = e.transformState, l = c.scale, u = c.positionX, d = c.positionY;
|
|
2467
|
+
if (!(o === null || s === null || t === u && n === d)) {
|
|
2468
|
+
var f = K(t, n, s, a, r, i, o), p = f.x, m = f.y;
|
|
2469
|
+
e.setTransformState(l, p, m);
|
|
2470
|
+
}
|
|
2471
|
+
}
|
|
2472
|
+
var vn = function(e, t, n) {
|
|
2473
|
+
var r = e.startCoords, i = e.transformState, a = e.setup.panning, o = a.lockAxisX, s = a.lockAxisY, c = i.positionX, l = i.positionY;
|
|
2474
|
+
if (!r) return {
|
|
2475
|
+
x: c,
|
|
2476
|
+
y: l
|
|
2477
|
+
};
|
|
2478
|
+
var u = t - r.x, d = n - r.y;
|
|
2479
|
+
return {
|
|
2480
|
+
x: o ? c : u,
|
|
2481
|
+
y: s ? l : d
|
|
2482
|
+
};
|
|
2483
|
+
}, J = function(e, t) {
|
|
2484
|
+
var n = e.setup, r = e.transformState.scale, i = n.minScale, a = n.disablePadding;
|
|
2485
|
+
return t > 0 && r >= i && !a ? t : 0;
|
|
2486
|
+
}, yn = function(e) {
|
|
2487
|
+
var t = e.mounted, n = e.setup, r = n.disabled, i = n.velocityAnimation, a = e.transformState.scale;
|
|
2488
|
+
return !!(!i.disabled || a > 1 || !r || t);
|
|
2489
|
+
}, bn = function(e) {
|
|
2490
|
+
var t = e.mounted, n = e.velocity, r = e.bounds, i = e.setup, a = i.disabled, o = i.velocityAnimation, s = e.transformState.scale;
|
|
2491
|
+
return !(!(!o.disabled || s > 1 || !a || t) || !n || !r);
|
|
2492
|
+
};
|
|
2493
|
+
function xn(e, t) {
|
|
2494
|
+
var n = e.setup.velocityAnimation, r = n.equalToMove, i = n.animationTime, a = n.sensitivity;
|
|
2495
|
+
return r ? i * t * a : i;
|
|
2496
|
+
}
|
|
2497
|
+
function Sn(e, t, n, r, i, a, o, s, c, l) {
|
|
2498
|
+
if (i) {
|
|
2499
|
+
if (t > o && n > o) {
|
|
2500
|
+
var u = o + (e - o) * l;
|
|
2501
|
+
return u > c ? c : u < o ? o : u;
|
|
2502
|
+
}
|
|
2503
|
+
if (t < a && n < a) {
|
|
2504
|
+
var u = a + (e - a) * l;
|
|
2505
|
+
return u < s ? s : u > a ? a : u;
|
|
2506
|
+
}
|
|
2507
|
+
}
|
|
2508
|
+
return r ? t : un(e, a, o, i);
|
|
2509
|
+
}
|
|
2510
|
+
function Cn(e, t) {
|
|
2511
|
+
var n = 1;
|
|
2512
|
+
return t ? Math.min(n, e.offsetWidth / window.innerWidth) : n;
|
|
2513
|
+
}
|
|
2514
|
+
function wn(e, t) {
|
|
2515
|
+
if (yn(e)) {
|
|
2516
|
+
var n = e.lastMousePosition, r = e.velocityTime, i = e.setup, a = e.wrapperComponent, o = i.velocityAnimation.equalToMove, s = Date.now();
|
|
2517
|
+
if (n && r && a) {
|
|
2518
|
+
var c = Cn(a, o), l = t.x - n.x, u = t.y - n.y, d = l / c, f = u / c, p = s - r, m = l * l + u * u;
|
|
2519
|
+
e.velocity = {
|
|
2520
|
+
velocityX: d,
|
|
2521
|
+
velocityY: f,
|
|
2522
|
+
total: Math.sqrt(m) / p
|
|
2523
|
+
};
|
|
2524
|
+
}
|
|
2525
|
+
e.lastMousePosition = t, e.velocityTime = s;
|
|
2526
|
+
}
|
|
2527
|
+
}
|
|
2528
|
+
function Tn(e) {
|
|
2529
|
+
var t = e.velocity, n = e.bounds, r = e.setup, i = e.wrapperComponent;
|
|
2530
|
+
if (!(!bn(e) || !t || !n || !i)) {
|
|
2531
|
+
var a = t.velocityX, o = t.velocityY, s = t.total, c = n.maxPositionX, l = n.minPositionX, u = n.maxPositionY, d = n.minPositionY, f = r.limitToBounds, p = r.alignmentAnimation, m = r.zoomAnimation, h = r.panning, g = h.lockAxisY, _ = h.lockAxisX, v = m.animationType, y = p.sizeX, b = p.sizeY, x = p.velocityAlignmentTime, S = xn(e, s), C = Math.max(S, x), w = J(e, y), T = J(e, b), E = w * i.offsetWidth / 100, D = T * i.offsetHeight / 100, O = c + E, k = l - E, A = u + D, j = d - D, M = e.transformState, N = (/* @__PURE__ */ new Date()).getTime();
|
|
2532
|
+
an(e, v, C, function(t) {
|
|
2533
|
+
var n = e.transformState, r = n.scale, i = n.positionX, s = n.positionY, m = ((/* @__PURE__ */ new Date()).getTime() - N) / x, h = nn[p.animationType], v = 1 - h(Math.min(1, m)), y = 1 - t, b = i + a * y, S = s + o * y, C = Sn(b, M.positionX, i, _, f, l, c, k, O, v), w = Sn(S, M.positionY, s, g, f, d, u, j, A, v);
|
|
2534
|
+
(i !== b || s !== S) && e.setTransformState(r, C, w);
|
|
2535
|
+
});
|
|
2536
|
+
}
|
|
2537
|
+
}
|
|
2538
|
+
function En(e, t) {
|
|
2539
|
+
var n = e.transformState.scale;
|
|
2540
|
+
U(e), G(e, n), window.TouchEvent !== void 0 && t instanceof TouchEvent ? hn(e, t) : mn(e, t);
|
|
2541
|
+
}
|
|
2542
|
+
function Dn(e) {
|
|
2543
|
+
var t = e.transformState.scale, n = e.setup, r = n.minScale, i = n.alignmentAnimation, a = i.disabled, o = i.sizeX, s = i.sizeY, c = i.animationTime, l = i.animationType;
|
|
2544
|
+
if (!(a || t < r || !o && !s)) {
|
|
2545
|
+
var u = gn(e);
|
|
2546
|
+
u && W(e, u, c, l);
|
|
2547
|
+
}
|
|
2548
|
+
}
|
|
2549
|
+
function On(e, t, n) {
|
|
2550
|
+
var r = e.startCoords, i = e.setup.alignmentAnimation, a = i.sizeX, o = i.sizeY;
|
|
2551
|
+
if (r) {
|
|
2552
|
+
var s = vn(e, t, n), c = s.x, l = s.y, u = J(e, a), d = J(e, o);
|
|
2553
|
+
wn(e, {
|
|
2554
|
+
x: c,
|
|
2555
|
+
y: l
|
|
2556
|
+
}), _n(e, c, l, u, d);
|
|
2557
|
+
}
|
|
2558
|
+
}
|
|
2559
|
+
function kn(e) {
|
|
2560
|
+
if (e.isPanning) {
|
|
2561
|
+
var t = e.setup.panning.velocityDisabled, n = e.velocity, r = e.wrapperComponent, i = e.contentComponent;
|
|
2562
|
+
e.isPanning = !1, e.animate = !1, e.animation = null;
|
|
2563
|
+
var a = r == null ? void 0 : r.getBoundingClientRect(), o = i == null ? void 0 : i.getBoundingClientRect(), s = (a == null ? void 0 : a.width) || 0, c = (a == null ? void 0 : a.height) || 0, l = (o == null ? void 0 : o.width) || 0, u = (o == null ? void 0 : o.height) || 0, d = s < l || c < u;
|
|
2564
|
+
!t && n && (n == null ? void 0 : n.total) > .1 && d ? Tn(e) : Dn(e);
|
|
2565
|
+
}
|
|
2566
|
+
}
|
|
2567
|
+
function An(e, t, n, r) {
|
|
2568
|
+
var i = e.setup, a = i.minScale, o = i.maxScale, s = i.limitToBounds, c = q(V(t, 2), a, o, 0, !1), l = dn(e, n, r, c, G(e, c), s);
|
|
2569
|
+
return {
|
|
2570
|
+
scale: c,
|
|
2571
|
+
positionX: l.x,
|
|
2572
|
+
positionY: l.y
|
|
2573
|
+
};
|
|
2574
|
+
}
|
|
2575
|
+
function jn(e, t, n) {
|
|
2576
|
+
var r = e.transformState.scale, i = e.wrapperComponent, a = e.setup, o = a.minScale, s = a.limitToBounds, c = a.zoomAnimation, l = c.disabled, u = c.animationTime, d = c.animationType, f = l || r >= o;
|
|
2577
|
+
if ((r >= 1 || s) && Dn(e), !(f || !i || !e.mounted)) {
|
|
2578
|
+
var p = An(e, o, t || i.offsetWidth / 2, n || i.offsetHeight / 2);
|
|
2579
|
+
p && W(e, p, u, d);
|
|
2580
|
+
}
|
|
2581
|
+
}
|
|
2582
|
+
var Y = function() {
|
|
2583
|
+
return Y = Object.assign || function(e) {
|
|
2584
|
+
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
2585
|
+
return e;
|
|
2586
|
+
}, Y.apply(this, arguments);
|
|
2587
|
+
};
|
|
2588
|
+
function Mn(e, t, n) {
|
|
2589
|
+
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
2590
|
+
return e.concat(a || Array.prototype.slice.call(t));
|
|
2591
|
+
}
|
|
2592
|
+
var X = {
|
|
2593
|
+
previousScale: 1,
|
|
2594
|
+
scale: 1,
|
|
2595
|
+
positionX: 0,
|
|
2596
|
+
positionY: 0
|
|
2597
|
+
}, Z = {
|
|
2598
|
+
disabled: !1,
|
|
2599
|
+
minPositionX: null,
|
|
2600
|
+
maxPositionX: null,
|
|
2601
|
+
minPositionY: null,
|
|
2602
|
+
maxPositionY: null,
|
|
2603
|
+
minScale: 1,
|
|
2604
|
+
maxScale: 8,
|
|
2605
|
+
limitToBounds: !0,
|
|
2606
|
+
centerZoomedOut: !1,
|
|
2607
|
+
centerOnInit: !1,
|
|
2608
|
+
disablePadding: !1,
|
|
2609
|
+
wheel: {
|
|
2610
|
+
step: .2,
|
|
2611
|
+
disabled: !1,
|
|
2612
|
+
wheelDisabled: !1,
|
|
2613
|
+
touchPadDisabled: !1,
|
|
2614
|
+
activationKeys: [],
|
|
2615
|
+
excluded: []
|
|
2616
|
+
},
|
|
2617
|
+
panning: {
|
|
2618
|
+
disabled: !1,
|
|
2619
|
+
velocityDisabled: !1,
|
|
2620
|
+
lockAxisX: !1,
|
|
2621
|
+
lockAxisY: !1,
|
|
2622
|
+
activationKeys: [],
|
|
2623
|
+
excluded: []
|
|
2624
|
+
},
|
|
2625
|
+
pinch: {
|
|
2626
|
+
step: 5,
|
|
2627
|
+
disabled: !1,
|
|
2628
|
+
excluded: []
|
|
2629
|
+
},
|
|
2630
|
+
doubleClick: {
|
|
2631
|
+
disabled: !1,
|
|
2632
|
+
step: .7,
|
|
2633
|
+
mode: "zoomIn",
|
|
2634
|
+
animationType: "easeOut",
|
|
2635
|
+
animationTime: 200,
|
|
2636
|
+
excluded: []
|
|
2637
|
+
},
|
|
2638
|
+
zoomAnimation: {
|
|
2639
|
+
disabled: !1,
|
|
2640
|
+
size: .4,
|
|
2641
|
+
animationTime: 200,
|
|
2642
|
+
animationType: "easeOut"
|
|
2643
|
+
},
|
|
2644
|
+
alignmentAnimation: {
|
|
2645
|
+
disabled: !1,
|
|
2646
|
+
sizeX: 100,
|
|
2647
|
+
sizeY: 100,
|
|
2648
|
+
animationTime: 200,
|
|
2649
|
+
velocityAlignmentTime: 400,
|
|
2650
|
+
animationType: "easeOut"
|
|
2651
|
+
},
|
|
2652
|
+
velocityAnimation: {
|
|
2653
|
+
disabled: !1,
|
|
2654
|
+
sensitivity: 1,
|
|
2655
|
+
animationTime: 400,
|
|
2656
|
+
animationType: "easeOut",
|
|
2657
|
+
equalToMove: !0
|
|
2658
|
+
}
|
|
2659
|
+
}, Nn = function(e) {
|
|
2660
|
+
var t, n, r, i;
|
|
2661
|
+
return {
|
|
2662
|
+
previousScale: (t = e.initialScale) == null ? X.scale : t,
|
|
2663
|
+
scale: (n = e.initialScale) == null ? X.scale : n,
|
|
2664
|
+
positionX: (r = e.initialPositionX) == null ? X.positionX : r,
|
|
2665
|
+
positionY: (i = e.initialPositionY) == null ? X.positionY : i
|
|
2666
|
+
};
|
|
2667
|
+
}, Pn = function(e) {
|
|
2668
|
+
var t = Y({}, Z);
|
|
2669
|
+
return Object.keys(e).forEach(function(n) {
|
|
2670
|
+
var r = e[n] !== void 0;
|
|
2671
|
+
if (Z[n] !== void 0 && r) {
|
|
2672
|
+
var i = Object.prototype.toString.call(Z[n]);
|
|
2673
|
+
i === "[object Object]" ? t[n] = Y(Y({}, Z[n]), e[n]) : i === "[object Array]" ? t[n] = Mn(Mn([], Z[n], !0), e[n], !0) : t[n] = e[n];
|
|
2674
|
+
}
|
|
2675
|
+
}), t;
|
|
2676
|
+
}, Fn = function(e, t, n) {
|
|
2677
|
+
var r = e.transformState.scale, i = e.wrapperComponent, a = e.setup, o = a.maxScale, s = a.minScale, c = a.zoomAnimation.size;
|
|
2678
|
+
if (!i) throw Error("Wrapper is not mounted");
|
|
2679
|
+
return q(V(r * Math.exp(t * n), 3), s, o, c, !1);
|
|
2680
|
+
};
|
|
2681
|
+
function In(e, t, n, r, i) {
|
|
2682
|
+
var a = e.wrapperComponent, o = e.transformState, s = o.scale, c = o.positionX, l = o.positionY;
|
|
2683
|
+
if (!a) return console.error("No WrapperComponent found");
|
|
2684
|
+
var u = a.offsetWidth, d = a.offsetHeight, f = (u / 2 - c) / s, p = (d / 2 - l) / s, m = An(e, Fn(e, t, n), f, p);
|
|
2685
|
+
if (!m) return console.error("Error during zoom event. New transformation state was not calculated.");
|
|
2686
|
+
W(e, m, r, i);
|
|
2687
|
+
}
|
|
2688
|
+
function Ln(e, t, n, r) {
|
|
2689
|
+
var i = e.setup, a = e.wrapperComponent, o = i.limitToBounds, s = Nn(e.props), c = e.transformState, l = c.scale, u = c.positionX, d = c.positionY;
|
|
2690
|
+
if (a) {
|
|
2691
|
+
var f = ln(e, s.scale), p = K(s.positionX, s.positionY, f, o, 0, 0, a), m = {
|
|
2692
|
+
scale: s.scale,
|
|
2693
|
+
positionX: p.x,
|
|
2694
|
+
positionY: p.y
|
|
2695
|
+
};
|
|
2696
|
+
l === s.scale && u === s.positionX && d === s.positionY || (r == null || r(), W(e, m, t, n));
|
|
2697
|
+
}
|
|
2698
|
+
}
|
|
2699
|
+
function Rn(e, t, n, r) {
|
|
2700
|
+
var i = e.getBoundingClientRect(), a = t.getBoundingClientRect(), o = n.getBoundingClientRect(), s = a.x * r.scale, c = a.y * r.scale;
|
|
2701
|
+
return {
|
|
2702
|
+
x: (i.x - o.x + s) / r.scale,
|
|
2703
|
+
y: (i.y - o.y + c) / r.scale
|
|
2704
|
+
};
|
|
2705
|
+
}
|
|
2706
|
+
function zn(e, t, n) {
|
|
2707
|
+
var r = e.wrapperComponent, i = e.contentComponent, a = e.transformState, o = e.setup, s = o.limitToBounds, c = o.minScale, l = o.maxScale;
|
|
2708
|
+
if (!r || !i) return a;
|
|
2709
|
+
var u = r.getBoundingClientRect(), d = t.getBoundingClientRect(), f = Rn(t, r, i, a), p = f.x, m = f.y, h = d.width / a.scale, g = d.height / a.scale, _ = r.offsetWidth / h, v = r.offsetHeight / g, y = q(n || Math.min(_, v), c, l, 0, !1), b = (u.width - h * y) / 2, x = (u.height - g * y) / 2, S = K((u.left - p) * y + b, (u.top - m) * y + x, ln(e, y), s, 0, 0, r);
|
|
2710
|
+
return {
|
|
2711
|
+
positionX: S.x,
|
|
2712
|
+
positionY: S.y,
|
|
2713
|
+
scale: y
|
|
2714
|
+
};
|
|
2715
|
+
}
|
|
2716
|
+
var Bn = function(e) {
|
|
2717
|
+
return function(t, n, r) {
|
|
2718
|
+
t === void 0 && (t = .5), n === void 0 && (n = 300), r === void 0 && (r = "easeOut"), In(e, 1, t, n, r);
|
|
2719
|
+
};
|
|
2720
|
+
}, Vn = function(e) {
|
|
2721
|
+
return function(t, n, r) {
|
|
2722
|
+
t === void 0 && (t = .5), n === void 0 && (n = 300), r === void 0 && (r = "easeOut"), In(e, -1, t, n, r);
|
|
2723
|
+
};
|
|
2724
|
+
}, Hn = function(e) {
|
|
2725
|
+
return function(t, n, r, i, a) {
|
|
2726
|
+
i === void 0 && (i = 300), a === void 0 && (a = "easeOut");
|
|
2727
|
+
var o = e.transformState, s = o.positionX, c = o.positionY, l = o.scale, u = e.wrapperComponent, d = e.contentComponent;
|
|
2728
|
+
e.setup.disabled || !u || !d || W(e, {
|
|
2729
|
+
positionX: Number.isNaN(t) ? s : t,
|
|
2730
|
+
positionY: Number.isNaN(n) ? c : n,
|
|
2731
|
+
scale: Number.isNaN(r) ? l : r
|
|
2732
|
+
}, i, a);
|
|
2733
|
+
};
|
|
2734
|
+
}, Un = function(e) {
|
|
2735
|
+
return function(t, n) {
|
|
2736
|
+
t === void 0 && (t = 200), n === void 0 && (n = "easeOut"), Ln(e, t, n);
|
|
2737
|
+
};
|
|
2738
|
+
}, Wn = function(e) {
|
|
2739
|
+
return function(t, n, r) {
|
|
2740
|
+
n === void 0 && (n = 200), r === void 0 && (r = "easeOut");
|
|
2741
|
+
var i = e.transformState, a = e.wrapperComponent, o = e.contentComponent;
|
|
2742
|
+
a && o && W(e, Qn(t || i.scale, a, o), n, r);
|
|
2743
|
+
};
|
|
2744
|
+
}, Gn = function(e) {
|
|
2745
|
+
return function(t, n, r, i) {
|
|
2746
|
+
r === void 0 && (r = 600), i === void 0 && (i = "easeOut"), U(e);
|
|
2747
|
+
var a = e.wrapperComponent, o = typeof t == "string" ? document.getElementById(t) : t;
|
|
2748
|
+
a && o && a.contains(o) && W(e, zn(e, o, n), r, i);
|
|
2749
|
+
};
|
|
2750
|
+
}, Kn = function(e) {
|
|
2751
|
+
return {
|
|
2752
|
+
instance: e,
|
|
2753
|
+
zoomIn: Bn(e),
|
|
2754
|
+
zoomOut: Vn(e),
|
|
2755
|
+
setTransform: Hn(e),
|
|
2756
|
+
resetTransform: Un(e),
|
|
2757
|
+
centerView: Wn(e),
|
|
2758
|
+
zoomToElement: Gn(e)
|
|
2759
|
+
};
|
|
2760
|
+
}, qn = function(e) {
|
|
2761
|
+
return {
|
|
2762
|
+
instance: e,
|
|
2763
|
+
state: e.transformState
|
|
2764
|
+
};
|
|
2765
|
+
}, Q = function(e) {
|
|
2766
|
+
var t = {};
|
|
2767
|
+
return Object.assign(t, qn(e)), Object.assign(t, Kn(e)), t;
|
|
2768
|
+
}, Jn = !1;
|
|
2769
|
+
function Yn() {
|
|
2770
|
+
try {
|
|
2771
|
+
return { get passive() {
|
|
2772
|
+
return Jn = !0, !1;
|
|
2773
|
+
} };
|
|
2774
|
+
} catch {
|
|
2775
|
+
return Jn = !1, Jn;
|
|
2776
|
+
}
|
|
2777
|
+
}
|
|
2778
|
+
var $ = function(e, t) {
|
|
2779
|
+
var n = e.tagName.toUpperCase();
|
|
2780
|
+
return !!(t.find(function(e) {
|
|
2781
|
+
return e.toUpperCase() === n;
|
|
2782
|
+
}) || t.find(function(t) {
|
|
2783
|
+
return e.classList.contains(t);
|
|
2784
|
+
}));
|
|
2785
|
+
}, Xn = function(e) {
|
|
2786
|
+
e && clearTimeout(e);
|
|
2787
|
+
}, Zn = function(e, t, n) {
|
|
2788
|
+
return `translate(${e}px, ${t}px) scale(${n})`;
|
|
2789
|
+
}, Qn = function(e, t, n) {
|
|
2790
|
+
var r = n.offsetWidth * e, i = n.offsetHeight * e;
|
|
2791
|
+
return {
|
|
2792
|
+
scale: e,
|
|
2793
|
+
positionX: (t.offsetWidth - r) / 2,
|
|
2794
|
+
positionY: (t.offsetHeight - i) / 2
|
|
2795
|
+
};
|
|
2796
|
+
};
|
|
2797
|
+
function $n(e) {
|
|
2798
|
+
return function(t) {
|
|
2799
|
+
e.forEach(function(e) {
|
|
2800
|
+
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
2801
|
+
});
|
|
2802
|
+
};
|
|
2803
|
+
}
|
|
2804
|
+
var er = function(e, t) {
|
|
2805
|
+
var n = e.setup.wheel, r = n.disabled, i = n.wheelDisabled, a = n.touchPadDisabled, o = n.excluded, s = e.isInitialized, c = e.isPanning, l = t.target;
|
|
2806
|
+
return !(!(s && !c && !r && l) || i && !t.ctrlKey || a && t.ctrlKey || $(l, o));
|
|
2807
|
+
}, tr = function(e) {
|
|
2808
|
+
return e ? e.deltaY < 0 ? 1 : -1 : 0;
|
|
2809
|
+
};
|
|
2810
|
+
function nr(e, t) {
|
|
2811
|
+
return tn(t, tr(e));
|
|
2812
|
+
}
|
|
2813
|
+
function rr(e, t, n) {
|
|
2814
|
+
var r = t.getBoundingClientRect(), i = 0, a = 0;
|
|
2815
|
+
if ("clientX" in e) i = (e.clientX - r.left) / n, a = (e.clientY - r.top) / n;
|
|
2816
|
+
else {
|
|
2817
|
+
var o = e.touches[0];
|
|
2818
|
+
i = (o.clientX - r.left) / n, a = (o.clientY - r.top) / n;
|
|
2819
|
+
}
|
|
2820
|
+
return (Number.isNaN(i) || Number.isNaN(a)) && console.error("No mouse or touch offset found"), {
|
|
2821
|
+
x: i,
|
|
2822
|
+
y: a
|
|
2823
|
+
};
|
|
2824
|
+
}
|
|
2825
|
+
var ir = function(e, t, n, r, i) {
|
|
2826
|
+
var a = e.transformState.scale, o = e.wrapperComponent, s = e.setup, c = s.maxScale, l = s.minScale, u = s.zoomAnimation, d = s.disablePadding, f = u.size, p = u.disabled;
|
|
2827
|
+
if (!o) throw Error("Wrapper is not mounted");
|
|
2828
|
+
var m = a + t * (a - a * n) * n;
|
|
2829
|
+
if (i) return m;
|
|
2830
|
+
var h = r ? !1 : !p;
|
|
2831
|
+
return q(V(m, 3), l, c, f, h && !d);
|
|
2832
|
+
}, ar = function(e, t) {
|
|
2833
|
+
var n = e.previousWheelEvent, r = e.transformState.scale, i = e.setup, a = i.maxScale, o = i.minScale;
|
|
2834
|
+
return n ? r < a || r > o || Math.sign(n.deltaY) !== Math.sign(t.deltaY) || n.deltaY > 0 && n.deltaY < t.deltaY || n.deltaY < 0 && n.deltaY > t.deltaY || Math.sign(n.deltaY) !== Math.sign(t.deltaY) : !1;
|
|
2835
|
+
}, or = function(e, t) {
|
|
2836
|
+
var n = e.setup.pinch, r = n.disabled, i = n.excluded, a = e.isInitialized, o = t.target;
|
|
2837
|
+
return !(!(a && !r && o) || $(o, i));
|
|
2838
|
+
}, sr = function(e) {
|
|
2839
|
+
var t = e.setup.pinch.disabled, n = e.isInitialized, r = e.pinchStartDistance;
|
|
2840
|
+
return !!(n && !t && r);
|
|
2841
|
+
}, cr = function(e, t, n) {
|
|
2842
|
+
var r = n.getBoundingClientRect(), i = e.touches, a = V(i[0].clientX - r.left, 5), o = V(i[0].clientY - r.top, 5), s = V(i[1].clientX - r.left, 5), c = V(i[1].clientY - r.top, 5);
|
|
2843
|
+
return {
|
|
2844
|
+
x: (a + s) / 2 / t,
|
|
2845
|
+
y: (o + c) / 2 / t
|
|
2846
|
+
};
|
|
2847
|
+
}, lr = function(e) {
|
|
2848
|
+
return Math.sqrt((e.touches[0].pageX - e.touches[1].pageX) ** 2 + (e.touches[0].pageY - e.touches[1].pageY) ** 2);
|
|
2849
|
+
}, ur = function(e, t) {
|
|
2850
|
+
var n = e.pinchStartScale, r = e.pinchStartDistance, i = e.setup, a = i.maxScale, o = i.minScale, s = i.zoomAnimation, c = i.disablePadding, l = s.size, u = s.disabled;
|
|
2851
|
+
if (!n || r === null || !t) throw Error("Pinch touches distance was not provided");
|
|
2852
|
+
return t < 0 ? e.transformState.scale : q(V(t / r * n, 2), o, a, l, !u && !c);
|
|
2853
|
+
}, dr = 160, fr = 100, pr = function(e, t) {
|
|
2854
|
+
var n = e.props, r = n.onWheelStart, i = n.onZoomStart;
|
|
2855
|
+
e.wheelStopEventTimer || (U(e), H(Q(e), t, r), H(Q(e), t, i));
|
|
2856
|
+
}, mr = function(e, t) {
|
|
2857
|
+
var n = e.props, r = n.onWheel, i = n.onZoom, a = e.contentComponent, o = e.setup, s = e.transformState.scale, c = o.limitToBounds, l = o.centerZoomedOut, u = o.zoomAnimation, d = o.wheel, f = o.disablePadding, p = u.size, m = u.disabled, h = d.step;
|
|
2858
|
+
if (!a) throw Error("Component not mounted");
|
|
2859
|
+
t.preventDefault(), t.stopPropagation();
|
|
2860
|
+
var g = ir(e, nr(t, null), h, !t.ctrlKey);
|
|
2861
|
+
if (s !== g) {
|
|
2862
|
+
var _ = G(e, g), v = rr(t, a, s), y = c && (m || p === 0 || l || f), b = dn(e, v.x, v.y, g, _, y), x = b.x, S = b.y;
|
|
2863
|
+
e.previousWheelEvent = t, e.setTransformState(g, x, S), H(Q(e), t, r), H(Q(e), t, i);
|
|
2864
|
+
}
|
|
2865
|
+
}, hr = function(e, t) {
|
|
2866
|
+
var n = e.props, r = n.onWheelStop, i = n.onZoomStop;
|
|
2867
|
+
Xn(e.wheelAnimationTimer), e.wheelAnimationTimer = setTimeout(function() {
|
|
2868
|
+
e.mounted && (jn(e, t.x, t.y), e.wheelAnimationTimer = null);
|
|
2869
|
+
}, fr), ar(e, t) && (Xn(e.wheelStopEventTimer), e.wheelStopEventTimer = setTimeout(function() {
|
|
2870
|
+
e.mounted && (e.wheelStopEventTimer = null, H(Q(e), t, r), H(Q(e), t, i));
|
|
2871
|
+
}, dr));
|
|
2872
|
+
}, gr = function(e, t) {
|
|
2873
|
+
var n = lr(t);
|
|
2874
|
+
e.pinchStartDistance = n, e.lastDistance = n, e.pinchStartScale = e.transformState.scale, e.isPanning = !1, U(e);
|
|
2875
|
+
}, _r = function(e, t) {
|
|
2876
|
+
var n = e.contentComponent, r = e.pinchStartDistance, i = e.transformState.scale, a = e.setup, o = a.limitToBounds, s = a.centerZoomedOut, c = a.zoomAnimation, l = c.disabled, u = c.size;
|
|
2877
|
+
if (!(r === null || !n)) {
|
|
2878
|
+
var d = cr(t, i, n);
|
|
2879
|
+
if (!(!Number.isFinite(d.x) || !Number.isFinite(d.y))) {
|
|
2880
|
+
var f = lr(t), p = ur(e, f);
|
|
2881
|
+
if (p !== i) {
|
|
2882
|
+
var m = G(e, p), h = o && (l || u === 0 || s), g = dn(e, d.x, d.y, p, m, h), _ = g.x, v = g.y;
|
|
2883
|
+
e.pinchMidpoint = d, e.lastDistance = f, e.setTransformState(p, _, v);
|
|
2884
|
+
}
|
|
2885
|
+
}
|
|
2886
|
+
}
|
|
2887
|
+
}, vr = function(e) {
|
|
2888
|
+
var t = e.pinchMidpoint;
|
|
2889
|
+
e.velocity = null, e.lastDistance = null, e.pinchMidpoint = null, e.pinchStartScale = null, e.pinchStartDistance = null, jn(e, t == null ? void 0 : t.x, t == null ? void 0 : t.y);
|
|
2890
|
+
}, yr = function(e, t) {
|
|
2891
|
+
var n = e.props.onZoomStop, r = e.setup.doubleClick.animationTime;
|
|
2892
|
+
Xn(e.doubleClickStopEventTimer), e.doubleClickStopEventTimer = setTimeout(function() {
|
|
2893
|
+
e.doubleClickStopEventTimer = null, H(Q(e), t, n);
|
|
2894
|
+
}, r);
|
|
2895
|
+
}, br = function(e, t) {
|
|
2896
|
+
var n = e.props, r = n.onZoomStart, i = n.onZoom, a = e.setup.doubleClick, o = a.animationTime, s = a.animationType;
|
|
2897
|
+
H(Q(e), t, r), Ln(e, o, s, function() {
|
|
2898
|
+
return H(Q(e), t, i);
|
|
2899
|
+
}), yr(e, t);
|
|
2900
|
+
};
|
|
2901
|
+
function xr(e, t) {
|
|
2902
|
+
var n = e.setup, r = e.doubleClickStopEventTimer, i = e.transformState, a = e.contentComponent, o = i.scale, s = e.props, c = s.onZoomStart, l = s.onZoom, u = n.doubleClick, d = u.disabled, f = u.mode, p = u.step, m = u.animationTime, h = u.animationType;
|
|
2903
|
+
if (!d && !r) {
|
|
2904
|
+
if (f === "reset") return br(e, t);
|
|
2905
|
+
if (!a) return console.error("No ContentComponent found");
|
|
2906
|
+
var g = Fn(e, f === "zoomOut" ? -1 : 1, p);
|
|
2907
|
+
if (o !== g) {
|
|
2908
|
+
H(Q(e), t, c);
|
|
2909
|
+
var _ = rr(t, a, o), v = An(e, g, _.x, _.y);
|
|
2910
|
+
if (!v) return console.error("Error during zoom event. New transformation state was not calculated.");
|
|
2911
|
+
H(Q(e), t, l), W(e, v, m, h), yr(e, t);
|
|
2912
|
+
}
|
|
2913
|
+
}
|
|
2914
|
+
}
|
|
2915
|
+
var Sr = function(e, t) {
|
|
2916
|
+
var n = e.isInitialized, r = e.setup, i = e.wrapperComponent, a = r.doubleClick, o = a.disabled, s = a.excluded, c = t.target, l = i == null ? void 0 : i.contains(c);
|
|
2917
|
+
return !(!(n && c && l && !o) || $(c, s));
|
|
2918
|
+
}, Cr = function() {
|
|
2919
|
+
function e(e) {
|
|
2920
|
+
var t = this;
|
|
2921
|
+
this.mounted = !0, this.onChangeCallbacks = /* @__PURE__ */ new Set(), this.onInitCallbacks = /* @__PURE__ */ new Set(), this.wrapperComponent = null, this.contentComponent = null, this.isInitialized = !1, this.bounds = null, this.previousWheelEvent = null, this.wheelStopEventTimer = null, this.wheelAnimationTimer = null, this.isPanning = !1, this.startCoords = null, this.lastTouch = null, this.distance = null, this.lastDistance = null, this.pinchStartDistance = null, this.pinchStartScale = null, this.pinchMidpoint = null, this.doubleClickStopEventTimer = null, this.velocity = null, this.velocityTime = null, this.lastMousePosition = null, this.animate = !1, this.animation = null, this.maxBounds = null, this.pressedKeys = {}, this.mount = function() {
|
|
2922
|
+
t.initializeWindowEvents();
|
|
2923
|
+
}, this.unmount = function() {
|
|
2924
|
+
t.cleanupWindowEvents();
|
|
2925
|
+
}, this.update = function(e) {
|
|
2926
|
+
G(t, t.transformState.scale), t.setup = Pn(e);
|
|
2927
|
+
}, this.initializeWindowEvents = function() {
|
|
2928
|
+
var e, n = Yn(), r = (e = t.wrapperComponent) == null ? void 0 : e.ownerDocument, i = r == null ? void 0 : r.defaultView;
|
|
2929
|
+
i == null || i.addEventListener("mousedown", t.onPanningStart, n), i == null || i.addEventListener("mousemove", t.onPanning, n), i == null || i.addEventListener("mouseup", t.onPanningStop, n), r == null || r.addEventListener("mouseleave", t.clearPanning, n), i == null || i.addEventListener("keyup", t.setKeyUnPressed, n), i == null || i.addEventListener("keydown", t.setKeyPressed, n);
|
|
2930
|
+
}, this.cleanupWindowEvents = function() {
|
|
2931
|
+
var e, n, r = Yn(), i = (e = t.wrapperComponent) == null ? void 0 : e.ownerDocument, a = i == null ? void 0 : i.defaultView;
|
|
2932
|
+
a == null || a.removeEventListener("mousedown", t.onPanningStart, r), a == null || a.removeEventListener("mousemove", t.onPanning, r), a == null || a.removeEventListener("mouseup", t.onPanningStop, r), i == null || i.removeEventListener("mouseleave", t.clearPanning, r), a == null || a.removeEventListener("keyup", t.setKeyUnPressed, r), a == null || a.removeEventListener("keydown", t.setKeyPressed, r), document.removeEventListener("mouseleave", t.clearPanning, r), U(t), (n = t.observer) == null || n.disconnect();
|
|
2933
|
+
}, this.handleInitializeWrapperEvents = function(e) {
|
|
2934
|
+
var n = Yn();
|
|
2935
|
+
e.addEventListener("wheel", t.onWheelZoom, n), e.addEventListener("dblclick", t.onDoubleClick, n), e.addEventListener("touchstart", t.onTouchPanningStart, n), e.addEventListener("touchmove", t.onTouchPanning, n), e.addEventListener("touchend", t.onTouchPanningStop, n);
|
|
2936
|
+
}, this.handleInitialize = function(e) {
|
|
2937
|
+
var n = t.setup.centerOnInit;
|
|
2938
|
+
t.applyTransformation(), t.onInitCallbacks.forEach(function(e) {
|
|
2939
|
+
return e(Q(t));
|
|
2940
|
+
}), n && (t.setCenter(), t.observer = new ResizeObserver(function() {
|
|
2941
|
+
var e;
|
|
2942
|
+
t.onInitCallbacks.forEach(function(e) {
|
|
2943
|
+
return e(Q(t));
|
|
2944
|
+
}), t.setCenter(), (e = t.observer) == null || e.disconnect();
|
|
2945
|
+
}), t.observer.observe(e));
|
|
2946
|
+
}, this.onWheelZoom = function(e) {
|
|
2947
|
+
t.setup.disabled || er(t, e) && t.isPressingKeys(t.setup.wheel.activationKeys) && (pr(t, e), mr(t, e), hr(t, e));
|
|
2948
|
+
}, this.onPanningStart = function(e) {
|
|
2949
|
+
var n = t.setup.disabled, r = t.props.onPanningStart;
|
|
2950
|
+
n || fn(t, e) && t.isPressingKeys(t.setup.panning.activationKeys) && (e.preventDefault(), e.stopPropagation(), U(t), En(t, e), H(Q(t), e, r));
|
|
2951
|
+
}, this.onPanning = function(e) {
|
|
2952
|
+
var n = t.setup.disabled, r = t.props.onPanning;
|
|
2953
|
+
n || pn(t) && t.isPressingKeys(t.setup.panning.activationKeys) && (e.preventDefault(), e.stopPropagation(), On(t, e.clientX, e.clientY), H(Q(t), e, r));
|
|
2954
|
+
}, this.onPanningStop = function(e) {
|
|
2955
|
+
var n = t.props.onPanningStop;
|
|
2956
|
+
t.isPanning && (kn(t), H(Q(t), e, n));
|
|
2957
|
+
}, this.onPinchStart = function(e) {
|
|
2958
|
+
var n = t.setup.disabled, r = t.props, i = r.onPinchingStart, a = r.onZoomStart;
|
|
2959
|
+
n || or(t, e) && (gr(t, e), U(t), H(Q(t), e, i), H(Q(t), e, a));
|
|
2960
|
+
}, this.onPinch = function(e) {
|
|
2961
|
+
var n = t.setup.disabled, r = t.props, i = r.onPinching, a = r.onZoom;
|
|
2962
|
+
n || sr(t) && (e.preventDefault(), e.stopPropagation(), _r(t, e), H(Q(t), e, i), H(Q(t), e, a));
|
|
2963
|
+
}, this.onPinchStop = function(e) {
|
|
2964
|
+
var n = t.props, r = n.onPinchingStop, i = n.onZoomStop;
|
|
2965
|
+
t.pinchStartScale && (vr(t), H(Q(t), e, r), H(Q(t), e, i));
|
|
2966
|
+
}, this.onTouchPanningStart = function(e) {
|
|
2967
|
+
var n = t.setup.disabled, r = t.props.onPanningStart;
|
|
2968
|
+
if (!n && fn(t, e)) if (t.lastTouch && +/* @__PURE__ */ new Date() - t.lastTouch < 200 && e.touches.length === 1) t.onDoubleClick(e);
|
|
2969
|
+
else {
|
|
2970
|
+
t.lastTouch = +/* @__PURE__ */ new Date(), U(t);
|
|
2971
|
+
var i = e.touches, a = i.length === 1, o = i.length === 2;
|
|
2972
|
+
a && (U(t), En(t, e), H(Q(t), e, r)), o && t.onPinchStart(e);
|
|
2973
|
+
}
|
|
2974
|
+
}, this.onTouchPanning = function(e) {
|
|
2975
|
+
var n = t.setup.disabled, r = t.props.onPanning;
|
|
2976
|
+
if (t.isPanning && e.touches.length === 1) {
|
|
2977
|
+
if (n || !pn(t)) return;
|
|
2978
|
+
e.preventDefault(), e.stopPropagation();
|
|
2979
|
+
var i = e.touches[0];
|
|
2980
|
+
On(t, i.clientX, i.clientY), H(Q(t), e, r);
|
|
2981
|
+
} else e.touches.length > 1 && t.onPinch(e);
|
|
2982
|
+
}, this.onTouchPanningStop = function(e) {
|
|
2983
|
+
t.onPanningStop(e), t.onPinchStop(e);
|
|
2984
|
+
}, this.onDoubleClick = function(e) {
|
|
2985
|
+
t.setup.disabled || Sr(t, e) && xr(t, e);
|
|
2986
|
+
}, this.clearPanning = function(e) {
|
|
2987
|
+
t.isPanning && t.onPanningStop(e);
|
|
2988
|
+
}, this.setKeyPressed = function(e) {
|
|
2989
|
+
t.pressedKeys[e.key] = !0;
|
|
2990
|
+
}, this.setKeyUnPressed = function(e) {
|
|
2991
|
+
t.pressedKeys[e.key] = !1;
|
|
2992
|
+
}, this.isPressingKeys = function(e) {
|
|
2993
|
+
return e.length ? !!e.find(function(e) {
|
|
2994
|
+
return t.pressedKeys[e];
|
|
2995
|
+
}) : !0;
|
|
2996
|
+
}, this.setTransformState = function(e, n, r) {
|
|
2997
|
+
var i = t.props.onTransformed;
|
|
2998
|
+
if (!Number.isNaN(e) && !Number.isNaN(n) && !Number.isNaN(r)) {
|
|
2999
|
+
e !== t.transformState.scale && (t.transformState.previousScale = t.transformState.scale, t.transformState.scale = e), t.transformState.positionX = n, t.transformState.positionY = r, t.applyTransformation();
|
|
3000
|
+
var a = Q(t);
|
|
3001
|
+
t.onChangeCallbacks.forEach(function(e) {
|
|
3002
|
+
return e(a);
|
|
3003
|
+
}), H(a, {
|
|
3004
|
+
scale: e,
|
|
3005
|
+
positionX: n,
|
|
3006
|
+
positionY: r
|
|
3007
|
+
}, i);
|
|
3008
|
+
} else console.error("Detected NaN set state values");
|
|
3009
|
+
}, this.setCenter = function() {
|
|
3010
|
+
if (t.wrapperComponent && t.contentComponent) {
|
|
3011
|
+
var e = Qn(t.transformState.scale, t.wrapperComponent, t.contentComponent);
|
|
3012
|
+
t.setTransformState(e.scale, e.positionX, e.positionY);
|
|
3013
|
+
}
|
|
3014
|
+
}, this.handleTransformStyles = function(e, n, r) {
|
|
3015
|
+
return t.props.customTransform ? t.props.customTransform(e, n, r) : Zn(e, n, r);
|
|
3016
|
+
}, this.applyTransformation = function() {
|
|
3017
|
+
if (!(!t.mounted || !t.contentComponent)) {
|
|
3018
|
+
var e = t.transformState, n = e.scale, r = e.positionX, i = e.positionY, a = t.handleTransformStyles(r, i, n);
|
|
3019
|
+
t.contentComponent.style.transform = a;
|
|
3020
|
+
}
|
|
3021
|
+
}, this.getContext = function() {
|
|
3022
|
+
return Q(t);
|
|
3023
|
+
}, this.onChange = function(e) {
|
|
3024
|
+
return t.onChangeCallbacks.has(e) || t.onChangeCallbacks.add(e), function() {
|
|
3025
|
+
t.onChangeCallbacks.delete(e);
|
|
3026
|
+
};
|
|
3027
|
+
}, this.onInit = function(e) {
|
|
3028
|
+
return t.onInitCallbacks.has(e) || t.onInitCallbacks.add(e), function() {
|
|
3029
|
+
t.onInitCallbacks.delete(e);
|
|
3030
|
+
};
|
|
3031
|
+
}, this.init = function(e, n) {
|
|
3032
|
+
t.cleanupWindowEvents(), t.wrapperComponent = e, t.contentComponent = n, G(t, t.transformState.scale), t.handleInitializeWrapperEvents(e), t.handleInitialize(n), t.initializeWindowEvents(), t.isInitialized = !0, H(Q(t), void 0, t.props.onInit);
|
|
3033
|
+
}, this.props = e, this.setup = Pn(this.props), this.transformState = Nn(this.props);
|
|
3034
|
+
}
|
|
3035
|
+
return e;
|
|
3036
|
+
}(), wr = l.createContext(null), Tr = function(e, t) {
|
|
3037
|
+
return typeof e == "function" ? e(t) : e;
|
|
3038
|
+
}, Er = l.forwardRef(function(e, t) {
|
|
3039
|
+
var n = (0, l.useRef)(new Cr(e)).current, r = Tr(e.children, Kn(n));
|
|
3040
|
+
return (0, l.useImperativeHandle)(t, function() {
|
|
3041
|
+
return Kn(n);
|
|
3042
|
+
}, [n]), (0, l.useEffect)(function() {
|
|
3043
|
+
n.update(e);
|
|
3044
|
+
}, [n, e]), l.createElement(wr.Provider, { value: n }, r);
|
|
3045
|
+
});
|
|
3046
|
+
l.forwardRef(function(e, t) {
|
|
3047
|
+
var n = (0, l.useRef)(null), r = (0, l.useContext)(wr);
|
|
3048
|
+
return (0, l.useEffect)(function() {
|
|
3049
|
+
return r.onChange(function(e) {
|
|
3050
|
+
if (n.current) {
|
|
3051
|
+
var t = 0, i = 0;
|
|
3052
|
+
n.current.style.transform = r.handleTransformStyles(t, i, 1 / e.instance.transformState.scale);
|
|
3053
|
+
}
|
|
3054
|
+
});
|
|
3055
|
+
}, [r]), l.createElement("div", Y({}, e, { ref: $n([n, t]) }));
|
|
3056
|
+
});
|
|
3057
|
+
function Dr(e, t) {
|
|
3058
|
+
t === void 0 && (t = {});
|
|
3059
|
+
var n = t.insertAt;
|
|
3060
|
+
if (!(!e || typeof document > "u")) {
|
|
3061
|
+
var r = document.head || document.getElementsByTagName("head")[0], i = document.createElement("style");
|
|
3062
|
+
i.type = "text/css", n === "top" && r.firstChild ? r.insertBefore(i, r.firstChild) : r.appendChild(i), i.styleSheet ? i.styleSheet.cssText = e : i.appendChild(document.createTextNode(e));
|
|
3063
|
+
}
|
|
3064
|
+
}
|
|
3065
|
+
var Or = ".transform-component-module_wrapper__SPB86 {\r\n position: relative;\r\n width: -moz-fit-content;\r\n width: fit-content;\r\n height: -moz-fit-content;\r\n height: fit-content;\r\n overflow: hidden;\r\n -webkit-touch-callout: none; /* iOS Safari */\r\n -webkit-user-select: none; /* Safari */\r\n -khtml-user-select: none; /* Konqueror HTML */\r\n -moz-user-select: none; /* Firefox */\r\n -ms-user-select: none; /* Internet Explorer/Edge */\r\n user-select: none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n.transform-component-module_content__FBWxo {\r\n display: flex;\r\n flex-wrap: wrap;\r\n width: -moz-fit-content;\r\n width: fit-content;\r\n height: -moz-fit-content;\r\n height: fit-content;\r\n margin: 0;\r\n padding: 0;\r\n transform-origin: 0% 0%;\r\n}\r\n.transform-component-module_content__FBWxo img {\r\n pointer-events: none;\r\n}\r\n", kr = {
|
|
3066
|
+
wrapper: "transform-component-module_wrapper__SPB86",
|
|
3067
|
+
content: "transform-component-module_content__FBWxo"
|
|
3068
|
+
};
|
|
3069
|
+
Dr(Or);
|
|
3070
|
+
var Ar = function(e) {
|
|
3071
|
+
var t = e.children, n = e.wrapperClass, r = n === void 0 ? "" : n, i = e.contentClass, a = i === void 0 ? "" : i, o = e.wrapperStyle, s = e.contentStyle, c = e.wrapperProps, u = c === void 0 ? {} : c, d = e.contentProps, f = d === void 0 ? {} : d, p = (0, l.useContext)(wr).init, m = (0, l.useRef)(null), h = (0, l.useRef)(null);
|
|
3072
|
+
return (0, l.useEffect)(function() {
|
|
3073
|
+
var e = m.current, t = h.current;
|
|
3074
|
+
e !== null && t !== null && p && p(e, t);
|
|
3075
|
+
}, []), l.createElement("div", Y({}, u, {
|
|
3076
|
+
ref: m,
|
|
3077
|
+
className: `react-transform-wrapper ${kr.wrapper} ${r}`,
|
|
3078
|
+
style: o
|
|
3079
|
+
}), l.createElement("div", Y({}, f, {
|
|
3080
|
+
ref: h,
|
|
3081
|
+
className: `react-transform-component ${kr.content} ${a}`,
|
|
3082
|
+
style: s
|
|
3083
|
+
}), t));
|
|
3084
|
+
}, jr = function() {
|
|
3085
|
+
var e = (0, l.useContext)(wr);
|
|
3086
|
+
if (!e) throw Error("Transform context mus be placed inside TransformWrapper");
|
|
3087
|
+
return e;
|
|
3088
|
+
}, Mr = function(e) {
|
|
3089
|
+
var t = jr();
|
|
3090
|
+
(0, l.useEffect)(function() {
|
|
3091
|
+
var n, r = t.onChange(function(t) {
|
|
3092
|
+
n = e(qn(t.instance));
|
|
3093
|
+
});
|
|
3094
|
+
return function() {
|
|
3095
|
+
r(), n == null || n();
|
|
3096
|
+
};
|
|
3097
|
+
}, [e, t]);
|
|
3098
|
+
}, Nr = s(({ zoomIn: e, zoomOut: t, onClose: n }) => /* @__PURE__ */ (0, d.jsxs)("div", {
|
|
3099
|
+
className: "gallery-slider__controls",
|
|
3100
|
+
children: [
|
|
3101
|
+
/* @__PURE__ */ (0, d.jsx)("button", {
|
|
3102
|
+
className: "gallery-slider__btn close",
|
|
3103
|
+
title: r("Close"),
|
|
3104
|
+
"aria-label": r("Close"),
|
|
3105
|
+
onClick: n,
|
|
3106
|
+
children: /* @__PURE__ */ (0, d.jsx)("i", {
|
|
3107
|
+
className: "icon-close",
|
|
3108
|
+
"aria-hidden": "true"
|
|
3109
|
+
})
|
|
3110
|
+
}),
|
|
3111
|
+
/* @__PURE__ */ (0, d.jsx)("button", {
|
|
3112
|
+
className: "gallery-slider__btn zoom-in",
|
|
3113
|
+
title: r("Zoom In"),
|
|
3114
|
+
"aria-label": r("Zoom In"),
|
|
3115
|
+
onClick: () => e(),
|
|
3116
|
+
children: /* @__PURE__ */ (0, d.jsx)("i", {
|
|
3117
|
+
className: "icon-zoom-in",
|
|
3118
|
+
"aria-hidden": "true"
|
|
3119
|
+
})
|
|
3120
|
+
}),
|
|
3121
|
+
/* @__PURE__ */ (0, d.jsx)("button", {
|
|
3122
|
+
className: "gallery-slider__btn zoom-out",
|
|
3123
|
+
title: r("Zoom Out"),
|
|
3124
|
+
"aria-label": r("Zoom Out"),
|
|
3125
|
+
onClick: () => t(),
|
|
3126
|
+
children: /* @__PURE__ */ (0, d.jsx)("i", {
|
|
3127
|
+
className: "icon-zoom-out",
|
|
3128
|
+
"aria-hidden": "true"
|
|
3129
|
+
})
|
|
3130
|
+
})
|
|
3131
|
+
]
|
|
3132
|
+
})), Pr = ({ swiperRef: e, leading: t, url: n }) => (Mr(({ state: t, instance: n }) => {
|
|
3133
|
+
e.current && (e.current.allowTouchMove = t.scale === 1, t.scale === 1 && t.positionX !== 0 && t.positionY !== 0 && n.setCenter());
|
|
3134
|
+
}), /* @__PURE__ */ (0, d.jsx)(Ar, {
|
|
3135
|
+
wrapperClass: "gallery-slider__zoom",
|
|
3136
|
+
contentClass: "gallery-slider__zoom-content",
|
|
3137
|
+
children: /* @__PURE__ */ (0, d.jsx)(_, {
|
|
3138
|
+
isFullscreen: !0,
|
|
3139
|
+
leading: t,
|
|
3140
|
+
url: n
|
|
3141
|
+
})
|
|
3142
|
+
})), Fr = s((e) => {
|
|
3143
|
+
let { images: t, leading: n, initialSlideIndex: i, onClose: a, className: o } = e, s = m(), [c, p] = (0, l.useState)(i), [h, g] = (0, l.useState)([]), _ = (0, l.useRef)(null), v = (0, l.useRef)(null), y = (0, l.useRef)(null), b = {
|
|
3144
|
+
initialSlide: i,
|
|
3145
|
+
draggable: !1,
|
|
3146
|
+
modules: [Nt],
|
|
3147
|
+
spaceBetween: 50,
|
|
3148
|
+
slidesPerView: 1,
|
|
3149
|
+
navigation: {
|
|
3150
|
+
prevEl: v.current,
|
|
3151
|
+
nextEl: y.current
|
|
3152
|
+
},
|
|
3153
|
+
grabCursor: !0
|
|
3154
|
+
}, x = /* @__PURE__ */ (0, d.jsx)("div", {
|
|
3155
|
+
className: (0, f.default)("gallery-modal", o),
|
|
3156
|
+
children: /* @__PURE__ */ (0, d.jsxs)(Qt, {
|
|
3157
|
+
onSwiper: (e) => _.current = e,
|
|
3158
|
+
className: "gallery-slider",
|
|
3159
|
+
onSlideChange: (e) => {
|
|
3160
|
+
var t;
|
|
3161
|
+
p(e.activeIndex), (t = h[e.previousIndex]) == null || t.resetTransform();
|
|
3162
|
+
},
|
|
3163
|
+
...b,
|
|
3164
|
+
children: [
|
|
3165
|
+
h.length ? /* @__PURE__ */ (0, d.jsx)(Nr, {
|
|
3166
|
+
onClose: a,
|
|
3167
|
+
zoomIn: h[c].zoomIn,
|
|
3168
|
+
zoomOut: h[c].zoomOut
|
|
3169
|
+
}) : null,
|
|
3170
|
+
t.length > 1 && /* @__PURE__ */ (0, d.jsx)("button", {
|
|
3171
|
+
ref: y,
|
|
3172
|
+
title: r("Next slide"),
|
|
3173
|
+
"aria-label": "˃",
|
|
3174
|
+
className: "gallery-slider__btn next",
|
|
3175
|
+
children: /* @__PURE__ */ (0, d.jsx)("i", { className: "icon-chevron-right" })
|
|
3176
|
+
}),
|
|
3177
|
+
t.length > 1 && /* @__PURE__ */ (0, d.jsx)("button", {
|
|
3178
|
+
ref: v,
|
|
3179
|
+
title: r("Prev slide"),
|
|
3180
|
+
"aria-label": "˂",
|
|
3181
|
+
className: "gallery-slider__btn prev",
|
|
3182
|
+
children: /* @__PURE__ */ (0, d.jsx)("i", { className: "icon-chevron-left" })
|
|
3183
|
+
}),
|
|
3184
|
+
t.map((e, t) => /* @__PURE__ */ (0, d.jsx)(en, { children: /* @__PURE__ */ (0, d.jsx)(Er, {
|
|
3185
|
+
initialScale: 1,
|
|
3186
|
+
alignmentAnimation: {
|
|
3187
|
+
sizeX: 0,
|
|
3188
|
+
sizeY: 0
|
|
3189
|
+
},
|
|
3190
|
+
onInit: (e) => {
|
|
3191
|
+
g((t) => [...t, e]);
|
|
3192
|
+
},
|
|
3193
|
+
children: /* @__PURE__ */ (0, d.jsx)(Pr, {
|
|
3194
|
+
leading: n,
|
|
3195
|
+
swiperRef: _,
|
|
3196
|
+
url: e
|
|
3197
|
+
})
|
|
3198
|
+
}) }, e + t))
|
|
3199
|
+
]
|
|
3200
|
+
})
|
|
3201
|
+
});
|
|
3202
|
+
return s ? (0, u.createPortal)(x, s) : null;
|
|
3203
|
+
}), Ir = /* @__PURE__ */ e({ default: () => Lr }), Lr = (e) => {
|
|
3204
|
+
let { images: t, leading: n = !1, onImageLoadHeightUpdate: r, onOpenGallery: i, onCloseGallery: a, className: o } = e, [s, c] = (0, l.useState)(!1), [u, p] = (0, l.useState)(0), [m, _] = (0, l.useState)(!1), y = (e) => {
|
|
3205
|
+
p(e), c(!0), i && i();
|
|
3206
|
+
}, b = () => {
|
|
3207
|
+
c(!1), a && a();
|
|
3208
|
+
}, x = (e) => {
|
|
3209
|
+
let t = e.split("/"), n = t[t.length - 1];
|
|
3210
|
+
return n.indexOf("original-") === -1 && (t[t.length - 1] = "original-" + n), t.join("/");
|
|
3211
|
+
}, S = (e, t) => t ? x(e) : e;
|
|
3212
|
+
return (0, l.useEffect)(() => {
|
|
3213
|
+
(async () => {
|
|
3214
|
+
if (t.length > 0) {
|
|
3215
|
+
let e = S(t[0], !0);
|
|
3216
|
+
try {
|
|
3217
|
+
await g.load(e), _(!0);
|
|
3218
|
+
} catch {
|
|
3219
|
+
_(!1);
|
|
3220
|
+
}
|
|
3221
|
+
}
|
|
3222
|
+
})();
|
|
3223
|
+
}, [t]), /* @__PURE__ */ (0, d.jsxs)(l.Fragment, { children: [/* @__PURE__ */ (0, d.jsxs)("div", {
|
|
3224
|
+
className: (0, f.default)("gallery", { "gallery-leading": n }, o),
|
|
3225
|
+
children: [/* @__PURE__ */ (0, d.jsx)("div", {
|
|
3226
|
+
className: "gallery__wrapper",
|
|
3227
|
+
children: n ? /* @__PURE__ */ (0, d.jsx)(v, {
|
|
3228
|
+
url: t[0],
|
|
3229
|
+
leading: n,
|
|
3230
|
+
setHeight: !0,
|
|
3231
|
+
fillMode: "contain",
|
|
3232
|
+
onClick: () => y(0),
|
|
3233
|
+
onImageLoadHeightUpdate: r
|
|
3234
|
+
}) : t.map((e, t) => /* @__PURE__ */ (0, d.jsx)(v, {
|
|
3235
|
+
url: e,
|
|
3236
|
+
position: "top",
|
|
3237
|
+
fillMode: "cover",
|
|
3238
|
+
onClick: () => y(t),
|
|
3239
|
+
onImageLoadHeightUpdate: r
|
|
3240
|
+
}, e + t))
|
|
3241
|
+
}), !n && /* @__PURE__ */ (0, d.jsx)(h, {
|
|
3242
|
+
onFullscreen: () => y(0),
|
|
3243
|
+
count: t.length
|
|
3244
|
+
})]
|
|
3245
|
+
}), s && /* @__PURE__ */ (0, d.jsx)(Fr, {
|
|
3246
|
+
className: o,
|
|
3247
|
+
images: t.map((e) => S(e, m)),
|
|
3248
|
+
leading: n,
|
|
3249
|
+
initialSlideIndex: u,
|
|
3250
|
+
onClose: b
|
|
3251
|
+
})] });
|
|
3252
|
+
};
|
|
3253
|
+
//#endregion
|
|
3254
|
+
export { m as n, Ir as t };
|
|
3255
|
+
|
|
3256
|
+
;/* vite-per-chunk-css */
|
|
3257
|
+
__vite_inject_css__(".gallery-modal{z-index:999;background:#16171a;width:100%;height:100%;position:fixed;top:0;bottom:0;left:0;right:0}.gallery-modal .icon{fill:none}.gallery-slider{width:100%;height:100%}.gallery-slider .swiper-slide{align-items:center;display:flex;overflow:hidden}.gallery-slider .gallery__img{background-position:50%}.gallery-slider__controls{top:calc(1.875rem * var(--ui-scale));z-index:10;gap:calc(.5rem * var(--ui-scale));flex-direction:column;display:flex;position:absolute}.gallery-slider__controls:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:calc(1.875rem * var(--ui-scale))}.gallery-slider__controls:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:calc(1.875rem * var(--ui-scale))}.gallery-slider__controls:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:calc(1.875rem * var(--ui-scale))}.gallery-slider__controls:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:calc(1.875rem * var(--ui-scale))}.gallery-slider__btn{width:calc(3.125rem * var(--ui-scale));height:calc(3.125rem * var(--ui-scale));-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);border-radius:calc(3.125rem * var(--ui-scale));cursor:pointer;background:#3030308f;border:none;justify-content:center;align-items:center;padding:0;transition:background .2s;display:flex}.gallery-slider__btn>i{font-size:calc(1.5rem * var(--ui-scale));color:#fff}.gallery-slider__btn:hover{background:#30303066}.gallery-slider__btn.next,.gallery-slider__btn.prev{z-index:11;position:absolute;top:50%;transform:translateY(-50%)}.gallery-slider__btn.next:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:calc(1.875rem * var(--ui-scale))}.gallery-slider__btn.next:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:calc(1.875rem * var(--ui-scale))}.gallery-slider__btn.next:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:calc(1.875rem * var(--ui-scale))}.gallery-slider__btn.next:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:calc(1.875rem * var(--ui-scale))}.gallery-slider__btn.prev:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:calc(1.875rem * var(--ui-scale))}.gallery-slider__btn.prev:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:calc(1.875rem * var(--ui-scale))}.gallery-slider__btn.prev:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:calc(1.875rem * var(--ui-scale))}.gallery-slider__btn.prev:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:calc(1.875rem * var(--ui-scale))}.gallery-slider__btn:disabled{display:none}.gallery-slider__zoom{width:100%;height:100%;overflow:visible}.gallery-slider__zoom-content{width:100%;height:100%;padding:calc(2.5rem * var(--ui-scale));transform-origin:0 0;justify-content:center;align-items:center;display:flex}.gallery-modal.xs .gallery-slider__controls,.gallery-modal.sm .gallery-slider__controls,.gallery-modal.md .gallery-slider__controls{top:calc(1.25rem * var(--ui-scale))}.gallery-modal.xs .gallery-slider__controls:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:calc(1.25rem * var(--ui-scale))}.gallery-modal.xs .gallery-slider__controls:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:calc(1.25rem * var(--ui-scale))}.gallery-modal.sm .gallery-slider__controls:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:calc(1.25rem * var(--ui-scale))}.gallery-modal.sm .gallery-slider__controls:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:calc(1.25rem * var(--ui-scale))}.gallery-modal.md .gallery-slider__controls:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:calc(1.25rem * var(--ui-scale))}.gallery-modal.md .gallery-slider__controls:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:calc(1.25rem * var(--ui-scale))}.gallery-modal.xs .gallery-slider__controls:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:calc(1.25rem * var(--ui-scale))}.gallery-modal.xs .gallery-slider__controls:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:calc(1.25rem * var(--ui-scale))}.gallery-modal.sm .gallery-slider__controls:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:calc(1.25rem * var(--ui-scale))}.gallery-modal.sm .gallery-slider__controls:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:calc(1.25rem * var(--ui-scale))}.gallery-modal.md .gallery-slider__controls:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:calc(1.25rem * var(--ui-scale))}.gallery-modal.md .gallery-slider__controls:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:calc(1.25rem * var(--ui-scale))}.gallery-modal.xs .gallery-slider__btn,.gallery-modal.sm .gallery-slider__btn,.gallery-modal.md .gallery-slider__btn{width:calc(3.125rem * var(--ui-scale));height:calc(3.125rem * var(--ui-scale))}.gallery-modal.xs .gallery-slider__btn.zoom-in,.gallery-modal.xs .gallery-slider__btn.zoom-out,.gallery-modal.xs .gallery-slider__btn.next,.gallery-modal.xs .gallery-slider__btn.prev,.gallery-modal.sm .gallery-slider__btn.zoom-in,.gallery-modal.sm .gallery-slider__btn.zoom-out,.gallery-modal.sm .gallery-slider__btn.next,.gallery-modal.sm .gallery-slider__btn.prev,.gallery-modal.md .gallery-slider__btn.zoom-in,.gallery-modal.md .gallery-slider__btn.zoom-out,.gallery-modal.md .gallery-slider__btn.next,.gallery-modal.md .gallery-slider__btn.prev{display:none}.gallery-modal.xs .gallery-slider__zoom-content,.gallery-modal.sm .gallery-slider__zoom-content,.gallery-modal.md .gallery-slider__zoom-content{padding:20px}.layout[dir=rtl] .gallery-slider__btn.next,.layout[dir=rtl] .gallery-slider__btn.prev{transform:scaleX(-1)}@font-face{font-family:swiper-icons;src:url(\"data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA\");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff}.swiper,swiper-container{z-index:1;margin-left:auto;margin-right:auto;padding:0;list-style:none;display:block;position:relative;overflow:hidden}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{z-index:1;width:100%;height:100%;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box;display:flex;position:relative}.swiper-android .swiper-slide,.swiper-wrapper{transform:translate(0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide,swiper-slide{flex-shrink:0;width:100%;height:100%;transition-property:transform;display:block;position:relative}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0)}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{pointer-events:none;z-index:10;width:100%;height:100%;position:absolute;top:0;left:0}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(270deg,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(90deg,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(#0000,#00000080)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(#00000080,#0000)}.swiper-css-mode>.swiper-wrapper{scrollbar-width:none;-ms-overflow-style:none;overflow:auto}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper:before{content:\"\";flex-shrink:0;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){margin-left:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){margin-left:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){margin-right:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){margin-right:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-top:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-top-color:#0000;border-radius:50%;width:42px;height:42px;margin-top:-21px;margin-left:-21px;position:absolute;top:50%;left:50%}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader{animation:1s linear infinite swiper-preloader-spin}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.gallery{height:calc(15rem * var(--ui-scale));cursor:pointer;position:relative}.gallery .icon{fill:none}.gallery__img{width:100%;height:100%}.gallery__wrapper{height:100%;display:flex;overflow:hidden}.gallery__item{background:var(--color-black);flex-shrink:0;gap:10px;width:100%}.gallery__badge{z-index:2;height:calc(2rem * var(--ui-scale));-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);font-size:var(--font-size-lg);color:var(--color-white);background:#1f1f1f99;border-radius:6px;justify-content:center;align-items:center;display:flex;position:absolute}.gallery__badge:hover{background:#303030cc}.gallery__badge-count{top:calc(.9375rem * var(--ui-scale));padding:0 calc(.625rem * var(--ui-scale));pointer-events:none}.gallery__badge-count:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:calc(.9375rem * var(--ui-scale))}.gallery__badge-count:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:calc(.9375rem * var(--ui-scale))}.gallery__badge-count:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:calc(.9375rem * var(--ui-scale))}.gallery__badge-count:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:calc(.9375rem * var(--ui-scale))}.gallery__badge-fullscreen{top:calc(.9375rem * var(--ui-scale));width:calc(2rem * var(--ui-scale))}.gallery__badge-fullscreen:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:calc(.9375rem * var(--ui-scale))}.gallery__badge-fullscreen:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:calc(.9375rem * var(--ui-scale))}.gallery__badge-fullscreen:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:calc(.9375rem * var(--ui-scale))}.gallery__badge-fullscreen:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:calc(.9375rem * var(--ui-scale))}@media (max-width:998px){.gallery__badge-fullscreen{display:none}}.gallery__badge span:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){margin-left:calc(.5rem * var(--ui-scale))}.gallery__badge span:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){margin-left:calc(.5rem * var(--ui-scale))}.gallery__badge span:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){margin-right:calc(.5rem * var(--ui-scale))}.gallery__badge span:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){margin-right:calc(.5rem * var(--ui-scale))}.gallery__badge>i{font-size:var(--icon-size-md)}.gallery-leading{height:auto}.gallery-leading .gallery__img{background-size:contain}.gallery-leading .gallery__item{height:auto!important}.gallery.xs .gallery__wrapper,.gallery.sm .gallery__wrapper,.gallery.md .gallery__wrapper{grid-gap:calc(1rem * var(--ui-scale));-ms-overflow-style:none;scrollbar-width:none;-webkit-overflow-scrolling:touch;grid-template-rows:50%;grid-template-columns:repeat(auto-fill,minmax(75%,1fr));grid-auto-columns:minmax(75%,1fr);grid-auto-flow:column;display:grid;overflow-x:visible}.gallery.xs .gallery__wrapper::-webkit-scrollbar{display:none}.gallery.sm .gallery__wrapper::-webkit-scrollbar{display:none}.gallery.md .gallery__wrapper::-webkit-scrollbar{display:none}.gallery.xs .gallery__item,.gallery.sm .gallery__item,.gallery.md .gallery__item{height:240px}.gallery.xs .gallery__item:nth-child(3n+2),.gallery.sm .gallery__item:nth-child(3n+2),.gallery.md .gallery__item:nth-child(3n+2){grid-row:1/-1;height:120px}.gallery.xs .gallery__item:nth-child(3n),.gallery.sm .gallery__item:nth-child(3n),.gallery.md .gallery__item:nth-child(3n){grid-row:2/-1;height:120px}.gallery.xs .gallery__item:nth-child(3n-2),.gallery.sm .gallery__item:nth-child(3n-2),.gallery.md .gallery__item:nth-child(3n-2){grid-row:1/-1}.gallery.xs .gallery__item:nth-child(3n+2):last-child:not(:nth-child(3)),.gallery.sm .gallery__item:nth-child(3n+2):last-child:not(:nth-child(3)),.gallery.md .gallery__item:nth-child(3n+2):last-child:not(:nth-child(3)){grid-row:span 2;height:240px}\n/*$vite$:1*/", "Gallery.css");
|