boottent-design 0.1.113 → 0.1.115
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/components.cjs.js +3 -3
- package/dist/components.es.js +676 -674
- package/dist/types/components.d.ts +1 -0
- package/package.json +1 -1
package/dist/components.es.js
CHANGED
|
@@ -71,19 +71,19 @@ var Sr = "CollapsibleContent", Tn = O.forwardRef(
|
|
|
71
71
|
);
|
|
72
72
|
Tn.displayName = Sr;
|
|
73
73
|
var ns = O.forwardRef((r, e) => {
|
|
74
|
-
const { __scopeCollapsible: t, present: n, children: i, ...a } = r, l = xr(Sr, t), [o, s] = O.useState(n), d = O.useRef(null), c = _t(e, d), h = O.useRef(0),
|
|
74
|
+
const { __scopeCollapsible: t, present: n, children: i, ...a } = r, l = xr(Sr, t), [o, s] = O.useState(n), d = O.useRef(null), c = _t(e, d), h = O.useRef(0), u = h.current, p = O.useRef(0), f = p.current, m = l.open || o, w = O.useRef(m), x = O.useRef();
|
|
75
75
|
return O.useEffect(() => {
|
|
76
|
-
const
|
|
77
|
-
return () => cancelAnimationFrame(
|
|
76
|
+
const v = requestAnimationFrame(() => w.current = !1);
|
|
77
|
+
return () => cancelAnimationFrame(v);
|
|
78
78
|
}, []), Da(() => {
|
|
79
|
-
const
|
|
80
|
-
if (
|
|
81
|
-
|
|
82
|
-
transitionDuration:
|
|
83
|
-
animationName:
|
|
84
|
-
},
|
|
85
|
-
const
|
|
86
|
-
h.current =
|
|
79
|
+
const v = d.current;
|
|
80
|
+
if (v) {
|
|
81
|
+
x.current = x.current || {
|
|
82
|
+
transitionDuration: v.style.transitionDuration,
|
|
83
|
+
animationName: v.style.animationName
|
|
84
|
+
}, v.style.transitionDuration = "0s", v.style.animationName = "none";
|
|
85
|
+
const g = v.getBoundingClientRect();
|
|
86
|
+
h.current = g.height, p.current = g.width, w.current || (v.style.transitionDuration = x.current.transitionDuration, v.style.animationName = x.current.animationName), s(n);
|
|
87
87
|
}
|
|
88
88
|
}, [l.open, n]), /* @__PURE__ */ b(
|
|
89
89
|
Pe.div,
|
|
@@ -95,8 +95,8 @@ var ns = O.forwardRef((r, e) => {
|
|
|
95
95
|
...a,
|
|
96
96
|
ref: c,
|
|
97
97
|
style: {
|
|
98
|
-
"--radix-collapsible-content-height":
|
|
99
|
-
"--radix-collapsible-content-width":
|
|
98
|
+
"--radix-collapsible-content-height": u ? `${u}px` : void 0,
|
|
99
|
+
"--radix-collapsible-content-width": f ? `${f}px` : void 0,
|
|
100
100
|
...r.style
|
|
101
101
|
},
|
|
102
102
|
children: m && i
|
|
@@ -159,7 +159,7 @@ var [En, ds] = Ft(Oe), [Pn, us] = Ft(
|
|
|
159
159
|
(c) => o((h = []) => [...h, c]),
|
|
160
160
|
[o]
|
|
161
161
|
), d = V.useCallback(
|
|
162
|
-
(c) => o((h = []) => h.filter((
|
|
162
|
+
(c) => o((h = []) => h.filter((u) => u !== c)),
|
|
163
163
|
[o]
|
|
164
164
|
);
|
|
165
165
|
return /* @__PURE__ */ b(
|
|
@@ -174,43 +174,43 @@ var [En, ds] = Ft(Oe), [Pn, us] = Ft(
|
|
|
174
174
|
);
|
|
175
175
|
}), [ms, zt] = Ft(Oe), Mn = V.forwardRef(
|
|
176
176
|
(r, e) => {
|
|
177
|
-
const { __scopeAccordion: t, disabled: n, dir: i, orientation: a = "vertical", ...l } = r, o = V.useRef(null), s = _t(o, e), d = ls(t), h = fn(i) === "ltr",
|
|
177
|
+
const { __scopeAccordion: t, disabled: n, dir: i, orientation: a = "vertical", ...l } = r, o = V.useRef(null), s = _t(o, e), d = ls(t), h = fn(i) === "ltr", u = Ce(r.onKeyDown, (p) => {
|
|
178
178
|
var N;
|
|
179
179
|
if (!os.includes(p.key)) return;
|
|
180
|
-
const
|
|
180
|
+
const f = p.target, m = d().filter((C) => {
|
|
181
181
|
var T;
|
|
182
|
-
return !((T =
|
|
183
|
-
}), w = m.findIndex((
|
|
182
|
+
return !((T = C.ref.current) != null && T.disabled);
|
|
183
|
+
}), w = m.findIndex((C) => C.ref.current === f), x = m.length;
|
|
184
184
|
if (w === -1) return;
|
|
185
185
|
p.preventDefault();
|
|
186
|
-
let
|
|
187
|
-
const
|
|
188
|
-
|
|
189
|
-
},
|
|
190
|
-
|
|
186
|
+
let v = w;
|
|
187
|
+
const g = 0, y = x - 1, S = () => {
|
|
188
|
+
v = w + 1, v > y && (v = g);
|
|
189
|
+
}, E = () => {
|
|
190
|
+
v = w - 1, v < g && (v = y);
|
|
191
191
|
};
|
|
192
192
|
switch (p.key) {
|
|
193
193
|
case "Home":
|
|
194
|
-
|
|
194
|
+
v = g;
|
|
195
195
|
break;
|
|
196
196
|
case "End":
|
|
197
|
-
|
|
197
|
+
v = y;
|
|
198
198
|
break;
|
|
199
199
|
case "ArrowRight":
|
|
200
|
-
a === "horizontal" && (h ? S() :
|
|
200
|
+
a === "horizontal" && (h ? S() : E());
|
|
201
201
|
break;
|
|
202
202
|
case "ArrowDown":
|
|
203
203
|
a === "vertical" && S();
|
|
204
204
|
break;
|
|
205
205
|
case "ArrowLeft":
|
|
206
|
-
a === "horizontal" && (h ?
|
|
206
|
+
a === "horizontal" && (h ? E() : S());
|
|
207
207
|
break;
|
|
208
208
|
case "ArrowUp":
|
|
209
|
-
a === "vertical" &&
|
|
209
|
+
a === "vertical" && E();
|
|
210
210
|
break;
|
|
211
211
|
}
|
|
212
|
-
const
|
|
213
|
-
(N = m[
|
|
212
|
+
const L = v % x;
|
|
213
|
+
(N = m[L].ref.current) == null || N.focus();
|
|
214
214
|
});
|
|
215
215
|
return /* @__PURE__ */ b(
|
|
216
216
|
ms,
|
|
@@ -225,7 +225,7 @@ var [En, ds] = Ft(Oe), [Pn, us] = Ft(
|
|
|
225
225
|
...l,
|
|
226
226
|
"data-orientation": a,
|
|
227
227
|
ref: s,
|
|
228
|
-
onKeyDown: n ? void 0 :
|
|
228
|
+
onKeyDown: n ? void 0 : u
|
|
229
229
|
}
|
|
230
230
|
) })
|
|
231
231
|
}
|
|
@@ -917,8 +917,8 @@ function oo(r, e) {
|
|
|
917
917
|
return Math.round(n / Bn) + 1;
|
|
918
918
|
}
|
|
919
919
|
function Yn(r, e) {
|
|
920
|
-
var c, h,
|
|
921
|
-
const t = ae(r, e == null ? void 0 : e.in), n = t.getFullYear(), i = Vt(), a = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((h = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : h.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((p = (
|
|
920
|
+
var c, h, u, p;
|
|
921
|
+
const t = ae(r, e == null ? void 0 : e.in), n = t.getFullYear(), i = Vt(), a = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((h = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : h.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((p = (u = i.locale) == null ? void 0 : u.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, l = Me((e == null ? void 0 : e.in) || r, 0);
|
|
922
922
|
l.setFullYear(n + 1, 0, a), l.setHours(0, 0, 0, 0);
|
|
923
923
|
const o = ct(l, e), s = Me((e == null ? void 0 : e.in) || r, 0);
|
|
924
924
|
s.setFullYear(n, 0, a), s.setHours(0, 0, 0, 0);
|
|
@@ -1564,30 +1564,30 @@ function bo(r, e, t) {
|
|
|
1564
1564
|
}
|
|
1565
1565
|
const yo = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, xo = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, So = /^'([^]*?)'?$/, To = /''/g, Co = /[a-zA-Z]/;
|
|
1566
1566
|
function Qt(r, e, t) {
|
|
1567
|
-
var c, h,
|
|
1568
|
-
const n = Vt(), i = n.locale ?? ao, a = n.firstWeekContainsDate ?? ((h = (c = n.locale) == null ? void 0 : c.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, l = n.weekStartsOn ?? ((p = (
|
|
1567
|
+
var c, h, u, p;
|
|
1568
|
+
const n = Vt(), i = n.locale ?? ao, a = n.firstWeekContainsDate ?? ((h = (c = n.locale) == null ? void 0 : c.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, l = n.weekStartsOn ?? ((p = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : p.weekStartsOn) ?? 0, o = ae(r, t == null ? void 0 : t.in);
|
|
1569
1569
|
if (!Cs(o))
|
|
1570
1570
|
throw new RangeError("Invalid time value");
|
|
1571
|
-
let s = e.match(xo).map((
|
|
1572
|
-
const m =
|
|
1571
|
+
let s = e.match(xo).map((f) => {
|
|
1572
|
+
const m = f[0];
|
|
1573
1573
|
if (m === "p" || m === "P") {
|
|
1574
1574
|
const w = fo[m];
|
|
1575
|
-
return w(
|
|
1575
|
+
return w(f, i.formatLong);
|
|
1576
1576
|
}
|
|
1577
|
-
return
|
|
1578
|
-
}).join("").match(yo).map((
|
|
1579
|
-
if (
|
|
1577
|
+
return f;
|
|
1578
|
+
}).join("").match(yo).map((f) => {
|
|
1579
|
+
if (f === "''")
|
|
1580
1580
|
return { isToken: !1, value: "'" };
|
|
1581
|
-
const m =
|
|
1581
|
+
const m = f[0];
|
|
1582
1582
|
if (m === "'")
|
|
1583
|
-
return { isToken: !1, value: Eo(
|
|
1583
|
+
return { isToken: !1, value: Eo(f) };
|
|
1584
1584
|
if (Xr[m])
|
|
1585
|
-
return { isToken: !0, value:
|
|
1585
|
+
return { isToken: !0, value: f };
|
|
1586
1586
|
if (m.match(Co))
|
|
1587
1587
|
throw new RangeError(
|
|
1588
1588
|
"Format string contains an unescaped latin alphabet character `" + m + "`"
|
|
1589
1589
|
);
|
|
1590
|
-
return { isToken: !1, value:
|
|
1590
|
+
return { isToken: !1, value: f };
|
|
1591
1591
|
});
|
|
1592
1592
|
i.localize.preprocessor && (s = i.localize.preprocessor(o, s));
|
|
1593
1593
|
const d = {
|
|
@@ -1595,9 +1595,9 @@ function Qt(r, e, t) {
|
|
|
1595
1595
|
weekStartsOn: l,
|
|
1596
1596
|
locale: i
|
|
1597
1597
|
};
|
|
1598
|
-
return s.map((
|
|
1599
|
-
if (!
|
|
1600
|
-
const m =
|
|
1598
|
+
return s.map((f) => {
|
|
1599
|
+
if (!f.isToken) return f.value;
|
|
1600
|
+
const m = f.value;
|
|
1601
1601
|
(vo(m) || go(m)) && wo(m, e, String(r));
|
|
1602
1602
|
const w = Xr[m[0]];
|
|
1603
1603
|
return w(o, m, i.localize, d);
|
|
@@ -1842,7 +1842,7 @@ const $o = (r) => {
|
|
|
1842
1842
|
var Uo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, I = {}, sr = { exports: {} };
|
|
1843
1843
|
(function(r, e) {
|
|
1844
1844
|
(function(t, n) {
|
|
1845
|
-
var i = "1.0.39", a = "", l = "?", o = "function", s = "undefined", d = "object", c = "string", h = "major",
|
|
1845
|
+
var i = "1.0.39", a = "", l = "?", o = "function", s = "undefined", d = "object", c = "string", h = "major", u = "model", p = "name", f = "type", m = "vendor", w = "version", x = "architecture", v = "console", g = "mobile", y = "tablet", S = "smarttv", E = "wearable", L = "embedded", N = 500, C = "Amazon", T = "Apple", M = "ASUS", A = "BlackBerry", P = "Browser", k = "Chrome", R = "Edge", X = "Firefox", fe = "Google", B = "Huawei", G = "LG", Y = "Microsoft", pe = "Motorola", me = "Opera", et = "Samsung", Fr = "Sharp", pt = "Sony", jt = "Xiaomi", Ht = "Zebra", zr = "Facebook", Vr = "Chromium OS", Rr = "Mac OS", Br = " Browser", Aa = function(W, $) {
|
|
1846
1846
|
var z = {};
|
|
1847
1847
|
for (var q in W)
|
|
1848
1848
|
$[q] && $[q].length % 2 === 0 ? z[q] = $[q].concat(W[q]) : z[q] = W[q];
|
|
@@ -1878,7 +1878,7 @@ var Uo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1878
1878
|
} else if (Wr($[z], W))
|
|
1879
1879
|
return z === l ? n : z;
|
|
1880
1880
|
return $.hasOwnProperty("*") ? $["*"] : W;
|
|
1881
|
-
}, La = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, Gr = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, $r = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [w, [p, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [w, [p, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [p, w], [/opios[\/ ]+([\w\.]+)/i], [w, [p, me + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [w, [p, me + " GX"]], [/\bopr\/([\w\.]+)/i], [w, [p, me]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [w, [p, "Baidu"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [p, w], [/quark(?:pc)?\/([-\w\.]+)/i], [w, [p, "Quark"]], [/\bddg\/([\w\.]+)/i], [w, [p, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [w, [p, "UC" + P]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [w, [p, "WeChat"]], [/konqueror\/([\w\.]+)/i], [w, [p, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [w, [p, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [w, [p, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [w, [p, "Smart Lenovo " + P]], [/(avast|avg)\/([\w\.]+)/i], [[p, /(.+)/, "$1 Secure " + P], w], [/\bfocus\/([\w\.]+)/i], [w, [p, X + " Focus"]], [/\bopt\/([\w\.]+)/i], [w, [p, me + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [w, [p, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [w, [p, "Dolphin"]], [/coast\/([\w\.]+)/i], [w, [p, me + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [w, [p, "MIUI " + P]], [/fxios\/([-\w\.]+)/i], [w, [p, X]], [/\bqihu|(qi?ho?o?|360)browser/i], [[p, "360" + Br]], [/\b(qq)\/([\w\.]+)/i], [[p, /(.+)/, "$1Browser"], w], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[p, /(.+)/, "$1" + Br], w], [/samsungbrowser\/([\w\.]+)/i], [w, [p, et + " Internet"]], [/(comodo_dragon)\/([\w\.]+)/i], [[p, /_/g, " "], w], [/metasr[\/ ]?([\d\.]+)/i], [w, [p, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[p, "Sogou Mobile"], w], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i], [p, w], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [p], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[p, zr], w], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [p, w], [/\bgsa\/([\w\.]+) .*safari\//i], [w, [p, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [w, [p, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [w, [p, L + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[p, L + " WebView"], w], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [w, [p, "Android " + P]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [p, w], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [w, [p, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [w, p], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [p, [w, ht, La]], [/(webkit|khtml)\/([\w\.]+)/i], [p, w], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[p, "Netscape"], w], [/(wolvic)\/([\w\.]+)/i], [p, w], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [w, [p, X + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i], [p, [w, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [p, [w, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[y, "amd64"]], [/(ia32(?=;))/i], [[y, $e]], [/((?:i[346]|x)86)[;\)]/i], [[y, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[y, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[y, "armhf"]], [/windows (ce|mobile); ppc;/i], [[y, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[y, /ower/, a, $e]], [/(sun4\w)[;\)]/i], [[y, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[y, $e]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [f, [m, et], [u, x]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [f, [m, et], [u, v]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [f, [m, T], [u, v]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [f, [m, T], [u, x]], [/(macintosh);/i], [f, [m, T]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [f, [m, Fr], [u, v]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [f, [m, B], [u, x]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [f, [m, B], [u, v]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i], [[f, /_/g, " "], [m, jt], [u, v]], [/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i, /\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[f, /_/g, " "], [m, jt], [u, x]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [f, [m, "OPPO"], [u, v]], [/\b(opd2\d{3}a?) bui/i], [f, [m, "OPPO"], [u, x]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [f, [m, "Vivo"], [u, v]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [f, [m, "Realme"], [u, v]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [f, [m, pe], [u, v]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [f, [m, pe], [u, x]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [f, [m, G], [u, x]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [f, [m, G], [u, v]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [f, [m, "Lenovo"], [u, x]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[f, /_/g, " "], [m, "Nokia"], [u, v]], [/(pixel c)\b/i], [f, [m, fe], [u, x]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [f, [m, fe], [u, v]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [f, [m, pt], [u, v]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[f, "Xperia Tablet"], [m, pt], [u, x]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [f, [m, "OnePlus"], [u, v]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [f, [m, E], [u, x]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[f, /(.+)/g, "Fire Phone $1"], [m, E], [u, v]], [/(playbook);[-\w\),; ]+(rim)/i], [f, m, [u, x]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [f, [m, A], [u, v]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [f, [m, M], [u, x]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [f, [m, M], [u, v]], [/(nexus 9)/i], [f, [m, "HTC"], [u, x]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [m, [f, /_/g, " "], [u, v]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [f, [m, "TCL"], [u, x]], [/(itel) ((\w+))/i], [[m, $e], f, [u, ht, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [f, [m, "Acer"], [u, x]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [f, [m, "Meizu"], [u, v]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [f, [m, "Ulefone"], [u, v]], [/droid.+; (a(?:015|06[35]|142p?))/i], [f, [m, "Nothing"], [u, v]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [m, f, [u, v]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [m, f, [u, x]], [/(surface duo)/i], [f, [m, Y], [u, x]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [f, [m, "Fairphone"], [u, v]], [/(u304aa)/i], [f, [m, "AT&T"], [u, v]], [/\bsie-(\w*)/i], [f, [m, "Siemens"], [u, v]], [/\b(rct\w+) b/i], [f, [m, "RCA"], [u, x]], [/\b(venue[\d ]{2,7}) b/i], [f, [m, "Dell"], [u, x]], [/\b(q(?:mv|ta)\w+) b/i], [f, [m, "Verizon"], [u, x]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [f, [m, "Barnes & Noble"], [u, x]], [/\b(tm\d{3}\w+) b/i], [f, [m, "NuVision"], [u, x]], [/\b(k88) b/i], [f, [m, "ZTE"], [u, x]], [/\b(nx\d{3}j) b/i], [f, [m, "ZTE"], [u, v]], [/\b(gen\d{3}) b.+49h/i], [f, [m, "Swiss"], [u, v]], [/\b(zur\d{3}) b/i], [f, [m, "Swiss"], [u, x]], [/\b((zeki)?tb.*\b) b/i], [f, [m, "Zeki"], [u, x]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[m, "Dragon Touch"], f, [u, x]], [/\b(ns-?\w{0,9}) b/i], [f, [m, "Insignia"], [u, x]], [/\b((nxa|next)-?\w{0,9}) b/i], [f, [m, "NextBook"], [u, x]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[m, "Voice"], f, [u, v]], [/\b(lvtel\-)?(v1[12]) b/i], [[m, "LvTel"], f, [u, v]], [/\b(ph-1) /i], [f, [m, "Essential"], [u, v]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [f, [m, "Envizen"], [u, x]], [/\b(trio[-\w\. ]+) b/i], [f, [m, "MachSpeed"], [u, x]], [/\btu_(1491) b/i], [f, [m, "Rotor"], [u, x]], [/(shield[\w ]+) b/i], [f, [m, "Nvidia"], [u, x]], [/(sprint) (\w+)/i], [m, f, [u, v]], [/(kin\.[onetw]{3})/i], [[f, /\./g, " "], [m, Y], [u, v]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [f, [m, Ht], [u, x]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [f, [m, Ht], [u, v]], [/smart-tv.+(samsung)/i], [m, [u, S]], [/hbbtv.+maple;(\d+)/i], [[f, /^/, "SmartTV"], [m, et], [u, S]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[m, G], [u, S]], [/(apple) ?tv/i], [m, [f, T + " TV"], [u, S]], [/crkey/i], [[f, L + "cast"], [m, fe], [u, S]], [/droid.+aft(\w+)( bui|\))/i], [f, [m, E], [u, S]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [f, [m, Fr], [u, S]], [/(bravia[\w ]+)( bui|\))/i], [f, [m, pt], [u, S]], [/(mitv-\w{5}) bui/i], [f, [m, jt], [u, S]], [/Hbbtv.*(technisat) (.*);/i], [m, f, [u, S]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[m, Yt], [f, Yt], [u, S]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[u, S]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [m, f, [u, g]], [/droid.+; (shield) bui/i], [f, [m, "Nvidia"], [u, g]], [/(playstation [345portablevi]+)/i], [f, [m, pt], [u, g]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [f, [m, Y], [u, g]], [/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i], [f, [m, et], [u, C]], [/((pebble))app/i], [m, f, [u, C]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [f, [m, T], [u, C]], [/droid.+; (glass) \d/i], [f, [m, fe], [u, C]], [/droid.+; (wt63?0{2,3})\)/i], [f, [m, Ht], [u, C]], [/(quest( \d| pro)?)/i], [f, [m, zr], [u, C]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [m, [u, k]], [/(aeobc)\b/i], [f, [m, E], [u, k]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [f, [u, v]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [f, [u, x]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[u, x]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[u, v]], [/(android[-\w\. ]{0,9});.+buil/i], [f, [m, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [w, [p, R + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [w, [p, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [p, w], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [w, p]], os: [[/microsoft (windows) (vista|xp)/i], [p, w], [/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i], [p, [w, ht, Gr]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[w, ht, Gr], [p, "Windows"]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[w, /_/g, "."], [p, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[p, Rr], [w, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [w, p], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [p, w], [/\(bb(10);/i], [w, [p, A]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [w, [p, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [w, [p, X + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [w, [p, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [w, [p, "watchOS"]], [/crkey\/([\d\.]+)/i], [w, [p, L + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[p, Vr], w], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [p, w], [/(sunos) ?([\w\.\d]*)/i], [[p, "Solaris"], w], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [p, w]] }, ce = function(W, $) {
|
|
1881
|
+
}, La = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, Gr = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, $r = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [w, [p, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [w, [p, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [p, w], [/opios[\/ ]+([\w\.]+)/i], [w, [p, me + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [w, [p, me + " GX"]], [/\bopr\/([\w\.]+)/i], [w, [p, me]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [w, [p, "Baidu"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [p, w], [/quark(?:pc)?\/([-\w\.]+)/i], [w, [p, "Quark"]], [/\bddg\/([\w\.]+)/i], [w, [p, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [w, [p, "UC" + P]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [w, [p, "WeChat"]], [/konqueror\/([\w\.]+)/i], [w, [p, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [w, [p, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [w, [p, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [w, [p, "Smart Lenovo " + P]], [/(avast|avg)\/([\w\.]+)/i], [[p, /(.+)/, "$1 Secure " + P], w], [/\bfocus\/([\w\.]+)/i], [w, [p, X + " Focus"]], [/\bopt\/([\w\.]+)/i], [w, [p, me + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [w, [p, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [w, [p, "Dolphin"]], [/coast\/([\w\.]+)/i], [w, [p, me + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [w, [p, "MIUI " + P]], [/fxios\/([-\w\.]+)/i], [w, [p, X]], [/\bqihu|(qi?ho?o?|360)browser/i], [[p, "360" + Br]], [/\b(qq)\/([\w\.]+)/i], [[p, /(.+)/, "$1Browser"], w], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[p, /(.+)/, "$1" + Br], w], [/samsungbrowser\/([\w\.]+)/i], [w, [p, et + " Internet"]], [/(comodo_dragon)\/([\w\.]+)/i], [[p, /_/g, " "], w], [/metasr[\/ ]?([\d\.]+)/i], [w, [p, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[p, "Sogou Mobile"], w], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i], [p, w], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [p], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[p, zr], w], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [p, w], [/\bgsa\/([\w\.]+) .*safari\//i], [w, [p, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [w, [p, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [w, [p, k + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[p, k + " WebView"], w], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [w, [p, "Android " + P]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [p, w], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [w, [p, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [w, p], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [p, [w, ht, La]], [/(webkit|khtml)\/([\w\.]+)/i], [p, w], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[p, "Netscape"], w], [/(wolvic)\/([\w\.]+)/i], [p, w], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [w, [p, X + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i], [p, [w, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [p, [w, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[x, "amd64"]], [/(ia32(?=;))/i], [[x, $e]], [/((?:i[346]|x)86)[;\)]/i], [[x, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[x, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[x, "armhf"]], [/windows (ce|mobile); ppc;/i], [[x, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[x, /ower/, a, $e]], [/(sun4\w)[;\)]/i], [[x, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[x, $e]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [u, [m, et], [f, y]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [u, [m, et], [f, g]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [u, [m, T], [f, g]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [u, [m, T], [f, y]], [/(macintosh);/i], [u, [m, T]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [u, [m, Fr], [f, g]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [u, [m, B], [f, y]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [u, [m, B], [f, g]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i], [[u, /_/g, " "], [m, jt], [f, g]], [/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i, /\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[u, /_/g, " "], [m, jt], [f, y]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [u, [m, "OPPO"], [f, g]], [/\b(opd2\d{3}a?) bui/i], [u, [m, "OPPO"], [f, y]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [u, [m, "Vivo"], [f, g]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [u, [m, "Realme"], [f, g]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [u, [m, pe], [f, g]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [u, [m, pe], [f, y]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [u, [m, G], [f, y]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [u, [m, G], [f, g]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [u, [m, "Lenovo"], [f, y]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[u, /_/g, " "], [m, "Nokia"], [f, g]], [/(pixel c)\b/i], [u, [m, fe], [f, y]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [u, [m, fe], [f, g]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [u, [m, pt], [f, g]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[u, "Xperia Tablet"], [m, pt], [f, y]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [u, [m, "OnePlus"], [f, g]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [u, [m, C], [f, y]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[u, /(.+)/g, "Fire Phone $1"], [m, C], [f, g]], [/(playbook);[-\w\),; ]+(rim)/i], [u, m, [f, y]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [u, [m, A], [f, g]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [u, [m, M], [f, y]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [u, [m, M], [f, g]], [/(nexus 9)/i], [u, [m, "HTC"], [f, y]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [m, [u, /_/g, " "], [f, g]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [u, [m, "TCL"], [f, y]], [/(itel) ((\w+))/i], [[m, $e], u, [f, ht, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [u, [m, "Acer"], [f, y]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [u, [m, "Meizu"], [f, g]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [u, [m, "Ulefone"], [f, g]], [/droid.+; (a(?:015|06[35]|142p?))/i], [u, [m, "Nothing"], [f, g]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [m, u, [f, g]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [m, u, [f, y]], [/(surface duo)/i], [u, [m, Y], [f, y]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [u, [m, "Fairphone"], [f, g]], [/(u304aa)/i], [u, [m, "AT&T"], [f, g]], [/\bsie-(\w*)/i], [u, [m, "Siemens"], [f, g]], [/\b(rct\w+) b/i], [u, [m, "RCA"], [f, y]], [/\b(venue[\d ]{2,7}) b/i], [u, [m, "Dell"], [f, y]], [/\b(q(?:mv|ta)\w+) b/i], [u, [m, "Verizon"], [f, y]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [u, [m, "Barnes & Noble"], [f, y]], [/\b(tm\d{3}\w+) b/i], [u, [m, "NuVision"], [f, y]], [/\b(k88) b/i], [u, [m, "ZTE"], [f, y]], [/\b(nx\d{3}j) b/i], [u, [m, "ZTE"], [f, g]], [/\b(gen\d{3}) b.+49h/i], [u, [m, "Swiss"], [f, g]], [/\b(zur\d{3}) b/i], [u, [m, "Swiss"], [f, y]], [/\b((zeki)?tb.*\b) b/i], [u, [m, "Zeki"], [f, y]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[m, "Dragon Touch"], u, [f, y]], [/\b(ns-?\w{0,9}) b/i], [u, [m, "Insignia"], [f, y]], [/\b((nxa|next)-?\w{0,9}) b/i], [u, [m, "NextBook"], [f, y]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[m, "Voice"], u, [f, g]], [/\b(lvtel\-)?(v1[12]) b/i], [[m, "LvTel"], u, [f, g]], [/\b(ph-1) /i], [u, [m, "Essential"], [f, g]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [u, [m, "Envizen"], [f, y]], [/\b(trio[-\w\. ]+) b/i], [u, [m, "MachSpeed"], [f, y]], [/\btu_(1491) b/i], [u, [m, "Rotor"], [f, y]], [/(shield[\w ]+) b/i], [u, [m, "Nvidia"], [f, y]], [/(sprint) (\w+)/i], [m, u, [f, g]], [/(kin\.[onetw]{3})/i], [[u, /\./g, " "], [m, Y], [f, g]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [u, [m, Ht], [f, y]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [u, [m, Ht], [f, g]], [/smart-tv.+(samsung)/i], [m, [f, S]], [/hbbtv.+maple;(\d+)/i], [[u, /^/, "SmartTV"], [m, et], [f, S]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[m, G], [f, S]], [/(apple) ?tv/i], [m, [u, T + " TV"], [f, S]], [/crkey/i], [[u, k + "cast"], [m, fe], [f, S]], [/droid.+aft(\w+)( bui|\))/i], [u, [m, C], [f, S]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [u, [m, Fr], [f, S]], [/(bravia[\w ]+)( bui|\))/i], [u, [m, pt], [f, S]], [/(mitv-\w{5}) bui/i], [u, [m, jt], [f, S]], [/Hbbtv.*(technisat) (.*);/i], [m, u, [f, S]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[m, Yt], [u, Yt], [f, S]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[f, S]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [m, u, [f, v]], [/droid.+; (shield) bui/i], [u, [m, "Nvidia"], [f, v]], [/(playstation [345portablevi]+)/i], [u, [m, pt], [f, v]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [u, [m, Y], [f, v]], [/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i], [u, [m, et], [f, E]], [/((pebble))app/i], [m, u, [f, E]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [u, [m, T], [f, E]], [/droid.+; (glass) \d/i], [u, [m, fe], [f, E]], [/droid.+; (wt63?0{2,3})\)/i], [u, [m, Ht], [f, E]], [/(quest( \d| pro)?)/i], [u, [m, zr], [f, E]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [m, [f, L]], [/(aeobc)\b/i], [u, [m, C], [f, L]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [u, [f, g]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [u, [f, y]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[f, y]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[f, g]], [/(android[-\w\. ]{0,9});.+buil/i], [u, [m, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [w, [p, R + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [w, [p, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [p, w], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [w, p]], os: [[/microsoft (windows) (vista|xp)/i], [p, w], [/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i], [p, [w, ht, Gr]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[w, ht, Gr], [p, "Windows"]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[w, /_/g, "."], [p, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[p, Rr], [w, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [w, p], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [p, w], [/\(bb(10);/i], [w, [p, A]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [w, [p, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [w, [p, X + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [w, [p, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [w, [p, "watchOS"]], [/crkey\/([\d\.]+)/i], [w, [p, k + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[p, Vr], w], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [p, w], [/(sunos) ?([\w\.\d]*)/i], [[p, "Solaris"], w], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [p, w]] }, ce = function(W, $) {
|
|
1882
1882
|
if (typeof W === d && ($ = W, W = n), !(this instanceof ce))
|
|
1883
1883
|
return new ce(W, $).getResult();
|
|
1884
1884
|
var z = typeof t !== s && t.navigator ? t.navigator : n, q = W || (z && z.userAgent ? z.userAgent : a), Se = z && z.userAgentData ? z.userAgentData : n, he = $ ? Aa($r, $) : $r, j = z && z.userAgent == q;
|
|
@@ -1887,10 +1887,10 @@ var Uo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1887
1887
|
return F[p] = n, F[w] = n, tt.call(F, q, he.browser), F[h] = ka(F[w]), j && z && z.brave && typeof z.brave.isBrave == o && (F[p] = "Brave"), F;
|
|
1888
1888
|
}, this.getCPU = function() {
|
|
1889
1889
|
var F = {};
|
|
1890
|
-
return F[
|
|
1890
|
+
return F[x] = n, tt.call(F, q, he.cpu), F;
|
|
1891
1891
|
}, this.getDevice = function() {
|
|
1892
1892
|
var F = {};
|
|
1893
|
-
return F[m] = n, F[
|
|
1893
|
+
return F[m] = n, F[u] = n, F[f] = n, tt.call(F, q, he.device), j && !F[f] && Se && Se.mobile && (F[f] = g), j && F[u] == "Macintosh" && z && typeof z.standalone !== s && z.maxTouchPoints && z.maxTouchPoints > 2 && (F[u] = "iPad", F[f] = y), F;
|
|
1894
1894
|
}, this.getEngine = function() {
|
|
1895
1895
|
var F = {};
|
|
1896
1896
|
return F[p] = n, F[w] = n, tt.call(F, q, he.engine), F;
|
|
@@ -1905,7 +1905,7 @@ var Uo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1905
1905
|
return q = typeof F === c && F.length > N ? Yt(F, N) : F, this;
|
|
1906
1906
|
}, this.setUA(q), this;
|
|
1907
1907
|
};
|
|
1908
|
-
ce.VERSION = i, ce.BROWSER = mt([p, w, h]), ce.CPU = mt([
|
|
1908
|
+
ce.VERSION = i, ce.BROWSER = mt([p, w, h]), ce.CPU = mt([x]), ce.DEVICE = mt([u, m, f, v, g, S, y, E, L]), ce.ENGINE = ce.OS = mt([p, w]), r.exports && (e = r.exports = ce), e.UAParser = ce;
|
|
1909
1909
|
var je = typeof t !== s && (t.jQuery || t.Zepto);
|
|
1910
1910
|
if (je && !je.ua) {
|
|
1911
1911
|
var gt = new ce();
|
|
@@ -2246,19 +2246,19 @@ var J = {
|
|
|
2246
2246
|
};
|
|
2247
2247
|
};
|
|
2248
2248
|
function bl(r) {
|
|
2249
|
-
var e = r ? ft(r) : Zn, t = e.device, n = e.browser, i = e.engine, a = e.os, l = e.ua, o = fl(t.type), s = o.isBrowser, d = o.isMobile, c = o.isTablet, h = o.isSmartTV,
|
|
2249
|
+
var e = r ? ft(r) : Zn, t = e.device, n = e.browser, i = e.engine, a = e.os, l = e.ua, o = fl(t.type), s = o.isBrowser, d = o.isMobile, c = o.isTablet, h = o.isSmartTV, u = o.isConsole, p = o.isWearable, f = o.isEmbedded;
|
|
2250
2250
|
if (s)
|
|
2251
2251
|
return ml(s, n, i, a, l);
|
|
2252
2252
|
if (h)
|
|
2253
2253
|
return hl(h, i, a, l);
|
|
2254
|
-
if (
|
|
2255
|
-
return gl(
|
|
2254
|
+
if (u)
|
|
2255
|
+
return gl(u, i, a, l);
|
|
2256
2256
|
if (d || c)
|
|
2257
2257
|
return tn(o, t, a, l);
|
|
2258
2258
|
if (p)
|
|
2259
2259
|
return vl(p, i, a, l);
|
|
2260
|
-
if (
|
|
2261
|
-
return wl(
|
|
2260
|
+
if (f)
|
|
2261
|
+
return wl(f, t, i, a, l);
|
|
2262
2262
|
}
|
|
2263
2263
|
var Jn = function(e) {
|
|
2264
2264
|
var t = e.type;
|
|
@@ -2682,7 +2682,7 @@ function Hu({
|
|
|
2682
2682
|
);
|
|
2683
2683
|
}
|
|
2684
2684
|
function hc() {
|
|
2685
|
-
return /* @__PURE__ */ _(ee.Col, { className: "mx-auto flex h-full w-full max-w-screen-xl items-start gap-5 px-4 pt-4 md:px-6 md:pt-
|
|
2685
|
+
return /* @__PURE__ */ _(ee.Col, { className: "relative mx-auto flex h-full w-full max-w-screen-xl items-start gap-5 px-4 pt-4 md:px-6 md:pt-10 lg:px-10", children: [
|
|
2686
2686
|
/* @__PURE__ */ b(K, { type: "text", className: "h-6 w-4/5 rounded-xl md:h-10" }),
|
|
2687
2687
|
/* @__PURE__ */ b(K, { type: "text", className: "h-10 w-1/2 rounded-xl md:h-16 lg:w-3/5" }),
|
|
2688
2688
|
/* @__PURE__ */ b(
|
|
@@ -2859,18 +2859,18 @@ const Yu = ({
|
|
|
2859
2859
|
] }),
|
|
2860
2860
|
r && /* @__PURE__ */ b("ul", { className: "flex w-full max-w-full flex-wrap gap-1", children: r.map((c, h) => {
|
|
2861
2861
|
var p;
|
|
2862
|
-
const
|
|
2863
|
-
(
|
|
2862
|
+
const u = Object.values(Ja).find(
|
|
2863
|
+
(f) => f.tags.some((m) => m.value === c)
|
|
2864
2864
|
);
|
|
2865
|
-
return
|
|
2865
|
+
return u && /* @__PURE__ */ b("li", { children: /* @__PURE__ */ b(
|
|
2866
2866
|
ze,
|
|
2867
2867
|
{
|
|
2868
2868
|
size: "sm",
|
|
2869
2869
|
style: {
|
|
2870
|
-
background:
|
|
2871
|
-
color:
|
|
2870
|
+
background: u.background,
|
|
2871
|
+
color: u.color
|
|
2872
2872
|
},
|
|
2873
|
-
children: (p =
|
|
2873
|
+
children: (p = u.tags.find((f) => f.value === c)) == null ? void 0 : p.text
|
|
2874
2874
|
}
|
|
2875
2875
|
) }, h);
|
|
2876
2876
|
}) })
|
|
@@ -3124,16 +3124,16 @@ function Xi(r) {
|
|
|
3124
3124
|
let l = null, o;
|
|
3125
3125
|
const s = e.params.speed;
|
|
3126
3126
|
e.wrapperEl.style.scrollSnapType = "none", i.cancelAnimationFrame(e.cssModeFrameID);
|
|
3127
|
-
const d = t > a ? "next" : "prev", c = (
|
|
3127
|
+
const d = t > a ? "next" : "prev", c = (u, p) => d === "next" && u >= p || d === "prev" && u <= p, h = () => {
|
|
3128
3128
|
o = (/* @__PURE__ */ new Date()).getTime(), l === null && (l = o);
|
|
3129
|
-
const
|
|
3130
|
-
let
|
|
3131
|
-
if (c(
|
|
3132
|
-
[n]:
|
|
3133
|
-
}), c(
|
|
3129
|
+
const u = Math.max(Math.min((o - l) / s, 1), 0), p = 0.5 - Math.cos(u * Math.PI) / 2;
|
|
3130
|
+
let f = a + p * (t - a);
|
|
3131
|
+
if (c(f, t) && (f = t), e.wrapperEl.scrollTo({
|
|
3132
|
+
[n]: f
|
|
3133
|
+
}), c(f, t)) {
|
|
3134
3134
|
e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
|
|
3135
3135
|
e.wrapperEl.style.overflow = "", e.wrapperEl.scrollTo({
|
|
3136
|
-
[n]:
|
|
3136
|
+
[n]: f
|
|
3137
3137
|
});
|
|
3138
3138
|
}), i.cancelAnimationFrame(e.cssModeFrameID);
|
|
3139
3139
|
return;
|
|
@@ -3242,59 +3242,59 @@ function Ic(r) {
|
|
|
3242
3242
|
nextEl: null,
|
|
3243
3243
|
prevEl: null
|
|
3244
3244
|
};
|
|
3245
|
-
function a(
|
|
3245
|
+
function a(f) {
|
|
3246
3246
|
let m;
|
|
3247
|
-
return
|
|
3247
|
+
return f && typeof f == "string" && e.isElement && (m = e.el.querySelector(f) || e.hostEl.querySelector(f), m) ? m : (f && (typeof f == "string" && (m = [...document.querySelectorAll(f)]), e.params.uniqueNavElements && typeof f == "string" && m && m.length > 1 && e.el.querySelectorAll(f).length === 1 ? m = e.el.querySelector(f) : m && m.length === 1 && (m = m[0])), f && !m ? f : m);
|
|
3248
3248
|
}
|
|
3249
|
-
function l(
|
|
3249
|
+
function l(f, m) {
|
|
3250
3250
|
const w = e.params.navigation;
|
|
3251
|
-
|
|
3252
|
-
|
|
3251
|
+
f = Z(f), f.forEach((x) => {
|
|
3252
|
+
x && (x.classList[m ? "add" : "remove"](...w.disabledClass.split(" ")), x.tagName === "BUTTON" && (x.disabled = m), e.params.watchOverflow && e.enabled && x.classList[e.isLocked ? "add" : "remove"](w.lockClass));
|
|
3253
3253
|
});
|
|
3254
3254
|
}
|
|
3255
3255
|
function o() {
|
|
3256
3256
|
const {
|
|
3257
|
-
nextEl:
|
|
3257
|
+
nextEl: f,
|
|
3258
3258
|
prevEl: m
|
|
3259
3259
|
} = e.navigation;
|
|
3260
3260
|
if (e.params.loop) {
|
|
3261
|
-
l(m, !1), l(
|
|
3261
|
+
l(m, !1), l(f, !1);
|
|
3262
3262
|
return;
|
|
3263
3263
|
}
|
|
3264
|
-
l(m, e.isBeginning && !e.params.rewind), l(
|
|
3264
|
+
l(m, e.isBeginning && !e.params.rewind), l(f, e.isEnd && !e.params.rewind);
|
|
3265
3265
|
}
|
|
3266
|
-
function s(
|
|
3267
|
-
|
|
3266
|
+
function s(f) {
|
|
3267
|
+
f.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), i("navigationPrev"));
|
|
3268
3268
|
}
|
|
3269
|
-
function d(
|
|
3270
|
-
|
|
3269
|
+
function d(f) {
|
|
3270
|
+
f.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), i("navigationNext"));
|
|
3271
3271
|
}
|
|
3272
3272
|
function c() {
|
|
3273
|
-
const
|
|
3273
|
+
const f = e.params.navigation;
|
|
3274
3274
|
if (e.params.navigation = Zi(e, e.originalParams.navigation, e.params.navigation, {
|
|
3275
3275
|
nextEl: "swiper-button-next",
|
|
3276
3276
|
prevEl: "swiper-button-prev"
|
|
3277
|
-
}), !(
|
|
3278
|
-
let m = a(
|
|
3277
|
+
}), !(f.nextEl || f.prevEl)) return;
|
|
3278
|
+
let m = a(f.nextEl), w = a(f.prevEl);
|
|
3279
3279
|
Object.assign(e.navigation, {
|
|
3280
3280
|
nextEl: m,
|
|
3281
3281
|
prevEl: w
|
|
3282
3282
|
}), m = Z(m), w = Z(w);
|
|
3283
|
-
const
|
|
3284
|
-
|
|
3283
|
+
const x = (v, g) => {
|
|
3284
|
+
v && v.addEventListener("click", g === "next" ? d : s), !e.enabled && v && v.classList.add(...f.lockClass.split(" "));
|
|
3285
3285
|
};
|
|
3286
|
-
m.forEach((
|
|
3286
|
+
m.forEach((v) => x(v, "next")), w.forEach((v) => x(v, "prev"));
|
|
3287
3287
|
}
|
|
3288
3288
|
function h() {
|
|
3289
3289
|
let {
|
|
3290
|
-
nextEl:
|
|
3290
|
+
nextEl: f,
|
|
3291
3291
|
prevEl: m
|
|
3292
3292
|
} = e.navigation;
|
|
3293
|
-
|
|
3294
|
-
const w = (
|
|
3295
|
-
|
|
3293
|
+
f = Z(f), m = Z(m);
|
|
3294
|
+
const w = (x, v) => {
|
|
3295
|
+
x.removeEventListener("click", v === "next" ? d : s), x.classList.remove(...e.params.navigation.disabledClass.split(" "));
|
|
3296
3296
|
};
|
|
3297
|
-
|
|
3297
|
+
f.forEach((x) => w(x, "next")), m.forEach((x) => w(x, "prev"));
|
|
3298
3298
|
}
|
|
3299
3299
|
n("init", () => {
|
|
3300
3300
|
e.params.navigation.enabled === !1 ? p() : (c(), o());
|
|
@@ -3304,39 +3304,39 @@ function Ic(r) {
|
|
|
3304
3304
|
h();
|
|
3305
3305
|
}), n("enable disable", () => {
|
|
3306
3306
|
let {
|
|
3307
|
-
nextEl:
|
|
3307
|
+
nextEl: f,
|
|
3308
3308
|
prevEl: m
|
|
3309
3309
|
} = e.navigation;
|
|
3310
|
-
if (
|
|
3310
|
+
if (f = Z(f), m = Z(m), e.enabled) {
|
|
3311
3311
|
o();
|
|
3312
3312
|
return;
|
|
3313
3313
|
}
|
|
3314
|
-
[...
|
|
3315
|
-
}), n("click", (
|
|
3314
|
+
[...f, ...m].filter((w) => !!w).forEach((w) => w.classList.add(e.params.navigation.lockClass));
|
|
3315
|
+
}), n("click", (f, m) => {
|
|
3316
3316
|
let {
|
|
3317
3317
|
nextEl: w,
|
|
3318
|
-
prevEl:
|
|
3318
|
+
prevEl: x
|
|
3319
3319
|
} = e.navigation;
|
|
3320
|
-
w = Z(w),
|
|
3321
|
-
const
|
|
3322
|
-
let
|
|
3323
|
-
if (e.isElement && !
|
|
3324
|
-
const
|
|
3325
|
-
|
|
3320
|
+
w = Z(w), x = Z(x);
|
|
3321
|
+
const v = m.target;
|
|
3322
|
+
let g = x.includes(v) || w.includes(v);
|
|
3323
|
+
if (e.isElement && !g) {
|
|
3324
|
+
const y = m.path || m.composedPath && m.composedPath();
|
|
3325
|
+
y && (g = y.find((S) => w.includes(S) || x.includes(S)));
|
|
3326
3326
|
}
|
|
3327
|
-
if (e.params.navigation.hideOnClick && !
|
|
3328
|
-
if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el ===
|
|
3329
|
-
let
|
|
3330
|
-
w.length ?
|
|
3327
|
+
if (e.params.navigation.hideOnClick && !g) {
|
|
3328
|
+
if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === v || e.pagination.el.contains(v))) return;
|
|
3329
|
+
let y;
|
|
3330
|
+
w.length ? y = w[0].classList.contains(e.params.navigation.hiddenClass) : x.length && (y = x[0].classList.contains(e.params.navigation.hiddenClass)), i(y === !0 ? "navigationShow" : "navigationHide"), [...w, ...x].filter((S) => !!S).forEach((S) => S.classList.toggle(e.params.navigation.hiddenClass));
|
|
3331
3331
|
}
|
|
3332
3332
|
});
|
|
3333
|
-
const
|
|
3333
|
+
const u = () => {
|
|
3334
3334
|
e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), c(), o();
|
|
3335
3335
|
}, p = () => {
|
|
3336
3336
|
e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")), h();
|
|
3337
3337
|
};
|
|
3338
3338
|
Object.assign(e.navigation, {
|
|
3339
|
-
enable:
|
|
3339
|
+
enable: u,
|
|
3340
3340
|
disable: p,
|
|
3341
3341
|
update: o,
|
|
3342
3342
|
init: c,
|
|
@@ -3369,8 +3369,8 @@ function Nc(r) {
|
|
|
3369
3369
|
// 'bullets' or 'progressbar' or 'fraction' or 'custom'
|
|
3370
3370
|
dynamicBullets: !1,
|
|
3371
3371
|
dynamicMainBullets: 1,
|
|
3372
|
-
formatFractionCurrent: (
|
|
3373
|
-
formatFractionTotal: (
|
|
3372
|
+
formatFractionCurrent: (v) => v,
|
|
3373
|
+
formatFractionTotal: (v) => v,
|
|
3374
3374
|
bulletClass: `${a}-bullet`,
|
|
3375
3375
|
bulletActiveClass: `${a}-bullet-active`,
|
|
3376
3376
|
modifierClass: `${a}-`,
|
|
@@ -3393,177 +3393,177 @@ function Nc(r) {
|
|
|
3393
3393
|
function s() {
|
|
3394
3394
|
return !e.params.pagination.el || !e.pagination.el || Array.isArray(e.pagination.el) && e.pagination.el.length === 0;
|
|
3395
3395
|
}
|
|
3396
|
-
function d(
|
|
3396
|
+
function d(v, g) {
|
|
3397
3397
|
const {
|
|
3398
|
-
bulletActiveClass:
|
|
3398
|
+
bulletActiveClass: y
|
|
3399
3399
|
} = e.params.pagination;
|
|
3400
|
-
|
|
3400
|
+
v && (v = v[`${g === "prev" ? "previous" : "next"}ElementSibling`], v && (v.classList.add(`${y}-${g}`), v = v[`${g === "prev" ? "previous" : "next"}ElementSibling`], v && v.classList.add(`${y}-${g}-${g}`)));
|
|
3401
3401
|
}
|
|
3402
|
-
function c(
|
|
3403
|
-
if (
|
|
3402
|
+
function c(v, g, y) {
|
|
3403
|
+
if (v = v % y, g = g % y, g === v + 1)
|
|
3404
3404
|
return "next";
|
|
3405
|
-
if (
|
|
3405
|
+
if (g === v - 1)
|
|
3406
3406
|
return "previous";
|
|
3407
3407
|
}
|
|
3408
|
-
function h(
|
|
3409
|
-
const
|
|
3410
|
-
if (!
|
|
3408
|
+
function h(v) {
|
|
3409
|
+
const g = v.target.closest(at(e.params.pagination.bulletClass));
|
|
3410
|
+
if (!g)
|
|
3411
3411
|
return;
|
|
3412
|
-
|
|
3413
|
-
const
|
|
3412
|
+
v.preventDefault();
|
|
3413
|
+
const y = At(g) * e.params.slidesPerGroup;
|
|
3414
3414
|
if (e.params.loop) {
|
|
3415
|
-
if (e.realIndex ===
|
|
3416
|
-
const S = c(e.realIndex,
|
|
3417
|
-
S === "next" ? e.slideNext() : S === "previous" ? e.slidePrev() : e.slideToLoop(
|
|
3415
|
+
if (e.realIndex === y) return;
|
|
3416
|
+
const S = c(e.realIndex, y, e.slides.length);
|
|
3417
|
+
S === "next" ? e.slideNext() : S === "previous" ? e.slidePrev() : e.slideToLoop(y);
|
|
3418
3418
|
} else
|
|
3419
|
-
e.slideTo(
|
|
3419
|
+
e.slideTo(y);
|
|
3420
3420
|
}
|
|
3421
|
-
function
|
|
3422
|
-
const
|
|
3421
|
+
function u() {
|
|
3422
|
+
const v = e.rtl, g = e.params.pagination;
|
|
3423
3423
|
if (s()) return;
|
|
3424
|
-
let
|
|
3425
|
-
|
|
3426
|
-
let S,
|
|
3427
|
-
const
|
|
3428
|
-
if (e.params.loop ? (
|
|
3429
|
-
const
|
|
3424
|
+
let y = e.pagination.el;
|
|
3425
|
+
y = Z(y);
|
|
3426
|
+
let S, E;
|
|
3427
|
+
const L = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, N = e.params.loop ? Math.ceil(L / e.params.slidesPerGroup) : e.snapGrid.length;
|
|
3428
|
+
if (e.params.loop ? (E = e.previousRealIndex || 0, S = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (S = e.snapIndex, E = e.previousSnapIndex) : (E = e.previousIndex || 0, S = e.activeIndex || 0), g.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
|
|
3429
|
+
const C = e.pagination.bullets;
|
|
3430
3430
|
let T, M, A;
|
|
3431
|
-
if (
|
|
3432
|
-
P.style[e.isHorizontal() ? "width" : "height"] = `${l * (
|
|
3433
|
-
}),
|
|
3434
|
-
const
|
|
3435
|
-
P.classList.remove(...
|
|
3436
|
-
}),
|
|
3437
|
-
|
|
3438
|
-
const
|
|
3439
|
-
|
|
3431
|
+
if (g.dynamicBullets && (l = ur(C[0], e.isHorizontal() ? "width" : "height"), y.forEach((P) => {
|
|
3432
|
+
P.style[e.isHorizontal() ? "width" : "height"] = `${l * (g.dynamicMainBullets + 4)}px`;
|
|
3433
|
+
}), g.dynamicMainBullets > 1 && E !== void 0 && (o += S - (E || 0), o > g.dynamicMainBullets - 1 ? o = g.dynamicMainBullets - 1 : o < 0 && (o = 0)), T = Math.max(S - o, 0), M = T + (Math.min(C.length, g.dynamicMainBullets) - 1), A = (M + T) / 2), C.forEach((P) => {
|
|
3434
|
+
const k = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((R) => `${g.bulletActiveClass}${R}`)].map((R) => typeof R == "string" && R.includes(" ") ? R.split(" ") : R).flat();
|
|
3435
|
+
P.classList.remove(...k);
|
|
3436
|
+
}), y.length > 1)
|
|
3437
|
+
C.forEach((P) => {
|
|
3438
|
+
const k = At(P);
|
|
3439
|
+
k === S ? P.classList.add(...g.bulletActiveClass.split(" ")) : e.isElement && P.setAttribute("part", "bullet"), g.dynamicBullets && (k >= T && k <= M && P.classList.add(...`${g.bulletActiveClass}-main`.split(" ")), k === T && d(P, "prev"), k === M && d(P, "next"));
|
|
3440
3440
|
});
|
|
3441
3441
|
else {
|
|
3442
|
-
const P =
|
|
3443
|
-
if (P && P.classList.add(...
|
|
3444
|
-
|
|
3445
|
-
}),
|
|
3446
|
-
const
|
|
3442
|
+
const P = C[S];
|
|
3443
|
+
if (P && P.classList.add(...g.bulletActiveClass.split(" ")), e.isElement && C.forEach((k, R) => {
|
|
3444
|
+
k.setAttribute("part", R === S ? "bullet-active" : "bullet");
|
|
3445
|
+
}), g.dynamicBullets) {
|
|
3446
|
+
const k = C[T], R = C[M];
|
|
3447
3447
|
for (let X = T; X <= M; X += 1)
|
|
3448
|
-
|
|
3449
|
-
d(
|
|
3448
|
+
C[X] && C[X].classList.add(...`${g.bulletActiveClass}-main`.split(" "));
|
|
3449
|
+
d(k, "prev"), d(R, "next");
|
|
3450
3450
|
}
|
|
3451
3451
|
}
|
|
3452
|
-
if (
|
|
3453
|
-
const P = Math.min(
|
|
3454
|
-
|
|
3455
|
-
X.style[e.isHorizontal() ? R : "top"] = `${
|
|
3452
|
+
if (g.dynamicBullets) {
|
|
3453
|
+
const P = Math.min(C.length, g.dynamicMainBullets + 4), k = (l * P - l) / 2 - A * l, R = v ? "right" : "left";
|
|
3454
|
+
C.forEach((X) => {
|
|
3455
|
+
X.style[e.isHorizontal() ? R : "top"] = `${k}px`;
|
|
3456
3456
|
});
|
|
3457
3457
|
}
|
|
3458
3458
|
}
|
|
3459
|
-
|
|
3460
|
-
if (
|
|
3461
|
-
M.textContent =
|
|
3462
|
-
}),
|
|
3463
|
-
M.textContent =
|
|
3464
|
-
})),
|
|
3459
|
+
y.forEach((C, T) => {
|
|
3460
|
+
if (g.type === "fraction" && (C.querySelectorAll(at(g.currentClass)).forEach((M) => {
|
|
3461
|
+
M.textContent = g.formatFractionCurrent(S + 1);
|
|
3462
|
+
}), C.querySelectorAll(at(g.totalClass)).forEach((M) => {
|
|
3463
|
+
M.textContent = g.formatFractionTotal(N);
|
|
3464
|
+
})), g.type === "progressbar") {
|
|
3465
3465
|
let M;
|
|
3466
|
-
|
|
3466
|
+
g.progressbarOpposite ? M = e.isHorizontal() ? "vertical" : "horizontal" : M = e.isHorizontal() ? "horizontal" : "vertical";
|
|
3467
3467
|
const A = (S + 1) / N;
|
|
3468
|
-
let P = 1,
|
|
3469
|
-
M === "horizontal" ? P = A :
|
|
3470
|
-
R.style.transform = `translate3d(0,0,0) scaleX(${P}) scaleY(${
|
|
3468
|
+
let P = 1, k = 1;
|
|
3469
|
+
M === "horizontal" ? P = A : k = A, C.querySelectorAll(at(g.progressbarFillClass)).forEach((R) => {
|
|
3470
|
+
R.style.transform = `translate3d(0,0,0) scaleX(${P}) scaleY(${k})`, R.style.transitionDuration = `${e.params.speed}ms`;
|
|
3471
3471
|
});
|
|
3472
3472
|
}
|
|
3473
|
-
|
|
3473
|
+
g.type === "custom" && g.renderCustom ? (C.innerHTML = g.renderCustom(e, S + 1, N), T === 0 && i("paginationRender", C)) : (T === 0 && i("paginationRender", C), i("paginationUpdate", C)), e.params.watchOverflow && e.enabled && C.classList[e.isLocked ? "add" : "remove"](g.lockClass);
|
|
3474
3474
|
});
|
|
3475
3475
|
}
|
|
3476
3476
|
function p() {
|
|
3477
|
-
const
|
|
3477
|
+
const v = e.params.pagination;
|
|
3478
3478
|
if (s()) return;
|
|
3479
|
-
const
|
|
3480
|
-
let
|
|
3481
|
-
|
|
3479
|
+
const g = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.grid && e.params.grid.rows > 1 ? e.slides.length / Math.ceil(e.params.grid.rows) : e.slides.length;
|
|
3480
|
+
let y = e.pagination.el;
|
|
3481
|
+
y = Z(y);
|
|
3482
3482
|
let S = "";
|
|
3483
|
-
if (
|
|
3484
|
-
let
|
|
3485
|
-
e.params.freeMode && e.params.freeMode.enabled &&
|
|
3486
|
-
for (let
|
|
3487
|
-
|
|
3483
|
+
if (v.type === "bullets") {
|
|
3484
|
+
let E = e.params.loop ? Math.ceil(g / e.params.slidesPerGroup) : e.snapGrid.length;
|
|
3485
|
+
e.params.freeMode && e.params.freeMode.enabled && E > g && (E = g);
|
|
3486
|
+
for (let L = 0; L < E; L += 1)
|
|
3487
|
+
v.renderBullet ? S += v.renderBullet.call(e, L, v.bulletClass) : S += `<${v.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${v.bulletClass}"></${v.bulletElement}>`;
|
|
3488
3488
|
}
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
}),
|
|
3489
|
+
v.type === "fraction" && (v.renderFraction ? S = v.renderFraction.call(e, v.currentClass, v.totalClass) : S = `<span class="${v.currentClass}"></span> / <span class="${v.totalClass}"></span>`), v.type === "progressbar" && (v.renderProgressbar ? S = v.renderProgressbar.call(e, v.progressbarFillClass) : S = `<span class="${v.progressbarFillClass}"></span>`), e.pagination.bullets = [], y.forEach((E) => {
|
|
3490
|
+
v.type !== "custom" && (E.innerHTML = S || ""), v.type === "bullets" && e.pagination.bullets.push(...E.querySelectorAll(at(v.bulletClass)));
|
|
3491
|
+
}), v.type !== "custom" && i("paginationRender", y[0]);
|
|
3492
3492
|
}
|
|
3493
|
-
function
|
|
3493
|
+
function f() {
|
|
3494
3494
|
e.params.pagination = Zi(e, e.originalParams.pagination, e.params.pagination, {
|
|
3495
3495
|
el: "swiper-pagination"
|
|
3496
3496
|
});
|
|
3497
|
-
const
|
|
3498
|
-
if (!
|
|
3499
|
-
let
|
|
3500
|
-
typeof
|
|
3501
|
-
el:
|
|
3502
|
-
}),
|
|
3503
|
-
|
|
3497
|
+
const v = e.params.pagination;
|
|
3498
|
+
if (!v.el) return;
|
|
3499
|
+
let g;
|
|
3500
|
+
typeof v.el == "string" && e.isElement && (g = e.el.querySelector(v.el)), !g && typeof v.el == "string" && (g = [...document.querySelectorAll(v.el)]), g || (g = v.el), !(!g || g.length === 0) && (e.params.uniqueNavElements && typeof v.el == "string" && Array.isArray(g) && g.length > 1 && (g = [...e.el.querySelectorAll(v.el)], g.length > 1 && (g = g.filter((y) => Ki(y, ".swiper")[0] === e.el)[0])), Array.isArray(g) && g.length === 1 && (g = g[0]), Object.assign(e.pagination, {
|
|
3501
|
+
el: g
|
|
3502
|
+
}), g = Z(g), g.forEach((y) => {
|
|
3503
|
+
v.type === "bullets" && v.clickable && y.classList.add(...(v.clickableClass || "").split(" ")), y.classList.add(v.modifierClass + v.type), y.classList.add(e.isHorizontal() ? v.horizontalClass : v.verticalClass), v.type === "bullets" && v.dynamicBullets && (y.classList.add(`${v.modifierClass}${v.type}-dynamic`), o = 0, v.dynamicMainBullets < 1 && (v.dynamicMainBullets = 1)), v.type === "progressbar" && v.progressbarOpposite && y.classList.add(v.progressbarOppositeClass), v.clickable && y.addEventListener("click", h), e.enabled || y.classList.add(v.lockClass);
|
|
3504
3504
|
}));
|
|
3505
3505
|
}
|
|
3506
3506
|
function m() {
|
|
3507
|
-
const
|
|
3507
|
+
const v = e.params.pagination;
|
|
3508
3508
|
if (s()) return;
|
|
3509
|
-
let
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
})), e.pagination.bullets && e.pagination.bullets.forEach((
|
|
3509
|
+
let g = e.pagination.el;
|
|
3510
|
+
g && (g = Z(g), g.forEach((y) => {
|
|
3511
|
+
y.classList.remove(v.hiddenClass), y.classList.remove(v.modifierClass + v.type), y.classList.remove(e.isHorizontal() ? v.horizontalClass : v.verticalClass), v.clickable && (y.classList.remove(...(v.clickableClass || "").split(" ")), y.removeEventListener("click", h));
|
|
3512
|
+
})), e.pagination.bullets && e.pagination.bullets.forEach((y) => y.classList.remove(...v.bulletActiveClass.split(" ")));
|
|
3513
3513
|
}
|
|
3514
3514
|
n("changeDirection", () => {
|
|
3515
3515
|
if (!e.pagination || !e.pagination.el) return;
|
|
3516
|
-
const
|
|
3516
|
+
const v = e.params.pagination;
|
|
3517
3517
|
let {
|
|
3518
|
-
el:
|
|
3518
|
+
el: g
|
|
3519
3519
|
} = e.pagination;
|
|
3520
|
-
|
|
3521
|
-
|
|
3520
|
+
g = Z(g), g.forEach((y) => {
|
|
3521
|
+
y.classList.remove(v.horizontalClass, v.verticalClass), y.classList.add(e.isHorizontal() ? v.horizontalClass : v.verticalClass);
|
|
3522
3522
|
});
|
|
3523
3523
|
}), n("init", () => {
|
|
3524
|
-
e.params.pagination.enabled === !1 ?
|
|
3524
|
+
e.params.pagination.enabled === !1 ? x() : (f(), p(), u());
|
|
3525
3525
|
}), n("activeIndexChange", () => {
|
|
3526
|
-
typeof e.snapIndex > "u" &&
|
|
3526
|
+
typeof e.snapIndex > "u" && u();
|
|
3527
3527
|
}), n("snapIndexChange", () => {
|
|
3528
|
-
|
|
3528
|
+
u();
|
|
3529
3529
|
}), n("snapGridLengthChange", () => {
|
|
3530
|
-
p(),
|
|
3530
|
+
p(), u();
|
|
3531
3531
|
}), n("destroy", () => {
|
|
3532
3532
|
m();
|
|
3533
3533
|
}), n("enable disable", () => {
|
|
3534
3534
|
let {
|
|
3535
|
-
el:
|
|
3535
|
+
el: v
|
|
3536
3536
|
} = e.pagination;
|
|
3537
|
-
|
|
3537
|
+
v && (v = Z(v), v.forEach((g) => g.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
|
|
3538
3538
|
}), n("lock unlock", () => {
|
|
3539
|
-
|
|
3540
|
-
}), n("click", (
|
|
3541
|
-
const
|
|
3542
|
-
if (e.params.pagination.el && e.params.pagination.hideOnClick && S && S.length > 0 && !
|
|
3543
|
-
if (e.navigation && (e.navigation.nextEl &&
|
|
3544
|
-
const
|
|
3545
|
-
i(
|
|
3539
|
+
u();
|
|
3540
|
+
}), n("click", (v, g) => {
|
|
3541
|
+
const y = g.target, S = Z(e.pagination.el);
|
|
3542
|
+
if (e.params.pagination.el && e.params.pagination.hideOnClick && S && S.length > 0 && !y.classList.contains(e.params.pagination.bulletClass)) {
|
|
3543
|
+
if (e.navigation && (e.navigation.nextEl && y === e.navigation.nextEl || e.navigation.prevEl && y === e.navigation.prevEl)) return;
|
|
3544
|
+
const E = S[0].classList.contains(e.params.pagination.hiddenClass);
|
|
3545
|
+
i(E === !0 ? "paginationShow" : "paginationHide"), S.forEach((L) => L.classList.toggle(e.params.pagination.hiddenClass));
|
|
3546
3546
|
}
|
|
3547
3547
|
});
|
|
3548
3548
|
const w = () => {
|
|
3549
3549
|
e.el.classList.remove(e.params.pagination.paginationDisabledClass);
|
|
3550
3550
|
let {
|
|
3551
|
-
el:
|
|
3551
|
+
el: v
|
|
3552
3552
|
} = e.pagination;
|
|
3553
|
-
|
|
3554
|
-
},
|
|
3553
|
+
v && (v = Z(v), v.forEach((g) => g.classList.remove(e.params.pagination.paginationDisabledClass))), f(), p(), u();
|
|
3554
|
+
}, x = () => {
|
|
3555
3555
|
e.el.classList.add(e.params.pagination.paginationDisabledClass);
|
|
3556
3556
|
let {
|
|
3557
|
-
el:
|
|
3557
|
+
el: v
|
|
3558
3558
|
} = e.pagination;
|
|
3559
|
-
|
|
3559
|
+
v && (v = Z(v), v.forEach((g) => g.classList.add(e.params.pagination.paginationDisabledClass))), m();
|
|
3560
3560
|
};
|
|
3561
3561
|
Object.assign(e.pagination, {
|
|
3562
3562
|
enable: w,
|
|
3563
|
-
disable:
|
|
3563
|
+
disable: x,
|
|
3564
3564
|
render: p,
|
|
3565
|
-
update:
|
|
3566
|
-
init:
|
|
3565
|
+
update: u,
|
|
3566
|
+
init: f,
|
|
3567
3567
|
destroy: m
|
|
3568
3568
|
});
|
|
3569
3569
|
}
|
|
@@ -3590,30 +3590,30 @@ function Ac(r) {
|
|
|
3590
3590
|
pauseOnMouseEnter: !1
|
|
3591
3591
|
}
|
|
3592
3592
|
});
|
|
3593
|
-
let l, o, s = a && a.autoplay ? a.autoplay.delay : 3e3, d = a && a.autoplay ? a.autoplay.delay : 3e3, c, h = (/* @__PURE__ */ new Date()).getTime(),
|
|
3594
|
-
function
|
|
3595
|
-
!e || e.destroyed || !e.wrapperEl || B.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend",
|
|
3593
|
+
let l, o, s = a && a.autoplay ? a.autoplay.delay : 3e3, d = a && a.autoplay ? a.autoplay.delay : 3e3, c, h = (/* @__PURE__ */ new Date()).getTime(), u, p, f, m, w, x, v;
|
|
3594
|
+
function g(B) {
|
|
3595
|
+
!e || e.destroyed || !e.wrapperEl || B.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", g), !(v || B.detail && B.detail.bySwiperTouchMove) && T());
|
|
3596
3596
|
}
|
|
3597
|
-
const
|
|
3597
|
+
const y = () => {
|
|
3598
3598
|
if (e.destroyed || !e.autoplay.running) return;
|
|
3599
|
-
e.autoplay.paused ?
|
|
3599
|
+
e.autoplay.paused ? u = !0 : u && (d = c, u = !1);
|
|
3600
3600
|
const B = e.autoplay.paused ? c : h + d - (/* @__PURE__ */ new Date()).getTime();
|
|
3601
3601
|
e.autoplay.timeLeft = B, i("autoplayTimeLeft", B, B / s), o = requestAnimationFrame(() => {
|
|
3602
|
-
|
|
3602
|
+
y();
|
|
3603
3603
|
});
|
|
3604
3604
|
}, S = () => {
|
|
3605
3605
|
let B;
|
|
3606
3606
|
return e.virtual && e.params.virtual.enabled ? B = e.slides.filter((Y) => Y.classList.contains("swiper-slide-active"))[0] : B = e.slides[e.activeIndex], B ? parseInt(B.getAttribute("data-swiper-autoplay"), 10) : void 0;
|
|
3607
|
-
},
|
|
3607
|
+
}, E = (B) => {
|
|
3608
3608
|
if (e.destroyed || !e.autoplay.running) return;
|
|
3609
|
-
cancelAnimationFrame(o),
|
|
3609
|
+
cancelAnimationFrame(o), y();
|
|
3610
3610
|
let G = typeof B > "u" ? e.params.autoplay.delay : B;
|
|
3611
3611
|
s = e.params.autoplay.delay, d = e.params.autoplay.delay;
|
|
3612
3612
|
const Y = S();
|
|
3613
3613
|
!Number.isNaN(Y) && Y > 0 && typeof B > "u" && (G = Y, s = Y, d = Y), c = G;
|
|
3614
3614
|
const pe = e.params.speed, me = () => {
|
|
3615
3615
|
!e || e.destroyed || (e.params.autoplay.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev(pe, !0, !0), i("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(e.slides.length - 1, pe, !0, !0), i("autoplay")) : !e.isEnd || e.params.loop || e.params.rewind ? (e.slideNext(pe, !0, !0), i("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(0, pe, !0, !0), i("autoplay")), e.params.cssMode && (h = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => {
|
|
3616
|
-
|
|
3616
|
+
E();
|
|
3617
3617
|
})));
|
|
3618
3618
|
};
|
|
3619
3619
|
return G > 0 ? (clearTimeout(l), l = setTimeout(() => {
|
|
@@ -3621,15 +3621,15 @@ function Ac(r) {
|
|
|
3621
3621
|
}, G)) : requestAnimationFrame(() => {
|
|
3622
3622
|
me();
|
|
3623
3623
|
}), G;
|
|
3624
|
-
},
|
|
3625
|
-
h = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0,
|
|
3624
|
+
}, L = () => {
|
|
3625
|
+
h = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0, E(), i("autoplayStart");
|
|
3626
3626
|
}, N = () => {
|
|
3627
3627
|
e.autoplay.running = !1, clearTimeout(l), cancelAnimationFrame(o), i("autoplayStop");
|
|
3628
|
-
},
|
|
3628
|
+
}, C = (B, G) => {
|
|
3629
3629
|
if (e.destroyed || !e.autoplay.running) return;
|
|
3630
|
-
clearTimeout(l), B || (
|
|
3630
|
+
clearTimeout(l), B || (x = !0);
|
|
3631
3631
|
const Y = () => {
|
|
3632
|
-
i("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend",
|
|
3632
|
+
i("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", g) : T();
|
|
3633
3633
|
};
|
|
3634
3634
|
if (e.autoplay.paused = !0, G) {
|
|
3635
3635
|
w && (c = e.params.autoplay.delay), w = !1, Y();
|
|
@@ -3637,16 +3637,16 @@ function Ac(r) {
|
|
|
3637
3637
|
}
|
|
3638
3638
|
c = (c || e.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - h), !(e.isEnd && c < 0 && !e.params.loop) && (c < 0 && (c = 0), Y());
|
|
3639
3639
|
}, T = () => {
|
|
3640
|
-
e.isEnd && c < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (h = (/* @__PURE__ */ new Date()).getTime(),
|
|
3640
|
+
e.isEnd && c < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (h = (/* @__PURE__ */ new Date()).getTime(), x ? (x = !1, E(c)) : E(), e.autoplay.paused = !1, i("autoplayResume"));
|
|
3641
3641
|
}, M = () => {
|
|
3642
3642
|
if (e.destroyed || !e.autoplay.running) return;
|
|
3643
3643
|
const B = Ee();
|
|
3644
|
-
B.visibilityState === "hidden" && (
|
|
3644
|
+
B.visibilityState === "hidden" && (x = !0, C(!0)), B.visibilityState === "visible" && T();
|
|
3645
3645
|
}, A = (B) => {
|
|
3646
|
-
B.pointerType === "mouse" && (
|
|
3646
|
+
B.pointerType === "mouse" && (x = !0, v = !0, !(e.animating || e.autoplay.paused) && C(!0));
|
|
3647
3647
|
}, P = (B) => {
|
|
3648
|
-
B.pointerType === "mouse" && (
|
|
3649
|
-
},
|
|
3648
|
+
B.pointerType === "mouse" && (v = !1, e.autoplay.paused && T());
|
|
3649
|
+
}, k = () => {
|
|
3650
3650
|
e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter", A), e.el.addEventListener("pointerleave", P));
|
|
3651
3651
|
}, R = () => {
|
|
3652
3652
|
e.el && typeof e.el != "string" && (e.el.removeEventListener("pointerenter", A), e.el.removeEventListener("pointerleave", P));
|
|
@@ -3656,39 +3656,39 @@ function Ac(r) {
|
|
|
3656
3656
|
Ee().removeEventListener("visibilitychange", M);
|
|
3657
3657
|
};
|
|
3658
3658
|
n("init", () => {
|
|
3659
|
-
e.params.autoplay.enabled && (
|
|
3659
|
+
e.params.autoplay.enabled && (k(), X(), L());
|
|
3660
3660
|
}), n("destroy", () => {
|
|
3661
3661
|
R(), fe(), e.autoplay.running && N();
|
|
3662
3662
|
}), n("_freeModeStaticRelease", () => {
|
|
3663
|
-
(
|
|
3663
|
+
(f || x) && T();
|
|
3664
3664
|
}), n("_freeModeNoMomentumRelease", () => {
|
|
3665
|
-
e.params.autoplay.disableOnInteraction ? N() :
|
|
3665
|
+
e.params.autoplay.disableOnInteraction ? N() : C(!0, !0);
|
|
3666
3666
|
}), n("beforeTransitionStart", (B, G, Y) => {
|
|
3667
|
-
e.destroyed || !e.autoplay.running || (Y || !e.params.autoplay.disableOnInteraction ?
|
|
3667
|
+
e.destroyed || !e.autoplay.running || (Y || !e.params.autoplay.disableOnInteraction ? C(!0, !0) : N());
|
|
3668
3668
|
}), n("sliderFirstMove", () => {
|
|
3669
3669
|
if (!(e.destroyed || !e.autoplay.running)) {
|
|
3670
3670
|
if (e.params.autoplay.disableOnInteraction) {
|
|
3671
3671
|
N();
|
|
3672
3672
|
return;
|
|
3673
3673
|
}
|
|
3674
|
-
p = !0,
|
|
3675
|
-
|
|
3674
|
+
p = !0, f = !1, x = !1, m = setTimeout(() => {
|
|
3675
|
+
x = !0, f = !0, C(!0);
|
|
3676
3676
|
}, 200);
|
|
3677
3677
|
}
|
|
3678
3678
|
}), n("touchEnd", () => {
|
|
3679
3679
|
if (!(e.destroyed || !e.autoplay.running || !p)) {
|
|
3680
3680
|
if (clearTimeout(m), clearTimeout(l), e.params.autoplay.disableOnInteraction) {
|
|
3681
|
-
|
|
3681
|
+
f = !1, p = !1;
|
|
3682
3682
|
return;
|
|
3683
3683
|
}
|
|
3684
|
-
|
|
3684
|
+
f && e.params.cssMode && T(), f = !1, p = !1;
|
|
3685
3685
|
}
|
|
3686
3686
|
}), n("slideChange", () => {
|
|
3687
3687
|
e.destroyed || !e.autoplay.running || (w = !0);
|
|
3688
3688
|
}), Object.assign(e.autoplay, {
|
|
3689
|
-
start:
|
|
3689
|
+
start: L,
|
|
3690
3690
|
stop: N,
|
|
3691
|
-
pause:
|
|
3691
|
+
pause: C,
|
|
3692
3692
|
resume: T
|
|
3693
3693
|
});
|
|
3694
3694
|
}
|
|
@@ -3711,13 +3711,13 @@ function kc(r) {
|
|
|
3711
3711
|
Object.assign(t.params, h), Object.assign(t.originalParams, h);
|
|
3712
3712
|
}), n("setTranslate", () => {
|
|
3713
3713
|
t.params.effect === e && i();
|
|
3714
|
-
}), n("setTransition", (h,
|
|
3715
|
-
t.params.effect === e && a(
|
|
3714
|
+
}), n("setTransition", (h, u) => {
|
|
3715
|
+
t.params.effect === e && a(u);
|
|
3716
3716
|
}), n("transitionEnd", () => {
|
|
3717
3717
|
if (t.params.effect === e && s) {
|
|
3718
3718
|
if (!d || !d().slideShadows) return;
|
|
3719
3719
|
t.slides.forEach((h) => {
|
|
3720
|
-
h.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((
|
|
3720
|
+
h.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((u) => u.remove());
|
|
3721
3721
|
}), s();
|
|
3722
3722
|
}
|
|
3723
3723
|
});
|
|
@@ -3782,10 +3782,10 @@ function _c(r) {
|
|
|
3782
3782
|
const d = e.slides[s];
|
|
3783
3783
|
let h = -d.swiperSlideOffset;
|
|
3784
3784
|
e.params.virtualTranslate || (h -= e.translate);
|
|
3785
|
-
let
|
|
3786
|
-
e.isHorizontal() || (
|
|
3787
|
-
const p = e.params.fadeEffect.crossFade ? Math.max(1 - Math.abs(d.progress), 0) : 1 + Math.min(Math.max(d.progress, -1), 0),
|
|
3788
|
-
|
|
3785
|
+
let u = 0;
|
|
3786
|
+
e.isHorizontal() || (u = h, h = 0);
|
|
3787
|
+
const p = e.params.fadeEffect.crossFade ? Math.max(1 - Math.abs(d.progress), 0) : 1 + Math.min(Math.max(d.progress, -1), 0), f = Lc(o, d);
|
|
3788
|
+
f.style.opacity = p, f.style.transform = `translate3d(${h}px, ${u}px, 0px)`;
|
|
3789
3789
|
}
|
|
3790
3790
|
},
|
|
3791
3791
|
setTransition: (l) => {
|
|
@@ -3829,10 +3829,10 @@ function zc(r) {
|
|
|
3829
3829
|
android: !1
|
|
3830
3830
|
}, o = n.screen.width, s = n.screen.height, d = a.match(/(Android);?[\s\/]+([\d.]+)?/);
|
|
3831
3831
|
let c = a.match(/(iPad).*OS\s([\d_]+)/);
|
|
3832
|
-
const h = a.match(/(iPod)(.*OS\s([\d_]+))?/),
|
|
3833
|
-
let
|
|
3832
|
+
const h = a.match(/(iPod)(.*OS\s([\d_]+))?/), u = !c && a.match(/(iPhone\sOS|iOS)\s([\d_]+)/), p = i === "Win32";
|
|
3833
|
+
let f = i === "MacIntel";
|
|
3834
3834
|
const m = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
|
|
3835
|
-
return !c &&
|
|
3835
|
+
return !c && f && t.touch && m.indexOf(`${o}x${s}`) >= 0 && (c = a.match(/(Version)\/([\d.]+)/), c || (c = [0, 1, "13_0_0"]), f = !1), d && !p && (l.os = "android", l.android = !0), (c || u || h) && (l.os = "ios", l.ios = !0), l;
|
|
3836
3836
|
}
|
|
3837
3837
|
function ea(r) {
|
|
3838
3838
|
return r === void 0 && (r = {}), Jt || (Jt = zc(r)), Jt;
|
|
@@ -3877,18 +3877,18 @@ function Bc(r) {
|
|
|
3877
3877
|
!e || e.destroyed || !e.initialized || (a = new ResizeObserver((h) => {
|
|
3878
3878
|
l = i.requestAnimationFrame(() => {
|
|
3879
3879
|
const {
|
|
3880
|
-
width:
|
|
3880
|
+
width: u,
|
|
3881
3881
|
height: p
|
|
3882
3882
|
} = e;
|
|
3883
|
-
let
|
|
3883
|
+
let f = u, m = p;
|
|
3884
3884
|
h.forEach((w) => {
|
|
3885
3885
|
let {
|
|
3886
|
-
contentBoxSize:
|
|
3887
|
-
contentRect:
|
|
3888
|
-
target:
|
|
3886
|
+
contentBoxSize: x,
|
|
3887
|
+
contentRect: v,
|
|
3888
|
+
target: g
|
|
3889
3889
|
} = w;
|
|
3890
|
-
|
|
3891
|
-
}), (
|
|
3890
|
+
g && g !== e.el || (f = v ? v.width : (x[0] || x).inlineSize, m = v ? v.height : (x[0] || x).blockSize);
|
|
3891
|
+
}), (f !== u || m !== p) && o();
|
|
3892
3892
|
});
|
|
3893
3893
|
}), a.observe(e.el));
|
|
3894
3894
|
}, d = () => {
|
|
@@ -3915,14 +3915,14 @@ function Wc(r) {
|
|
|
3915
3915
|
} = r;
|
|
3916
3916
|
const a = [], l = oe(), o = function(c, h) {
|
|
3917
3917
|
h === void 0 && (h = {});
|
|
3918
|
-
const
|
|
3918
|
+
const u = l.MutationObserver || l.WebkitMutationObserver, p = new u((f) => {
|
|
3919
3919
|
if (e.__preventObserver__) return;
|
|
3920
|
-
if (
|
|
3921
|
-
i("observerUpdate",
|
|
3920
|
+
if (f.length === 1) {
|
|
3921
|
+
i("observerUpdate", f[0]);
|
|
3922
3922
|
return;
|
|
3923
3923
|
}
|
|
3924
3924
|
const m = function() {
|
|
3925
|
-
i("observerUpdate",
|
|
3925
|
+
i("observerUpdate", f[0]);
|
|
3926
3926
|
};
|
|
3927
3927
|
l.requestAnimationFrame ? l.requestAnimationFrame(m) : l.setTimeout(m, 0);
|
|
3928
3928
|
});
|
|
@@ -4032,31 +4032,31 @@ function jc() {
|
|
|
4032
4032
|
rtlTranslate: l,
|
|
4033
4033
|
wrongRTL: o
|
|
4034
4034
|
} = r, s = r.virtual && t.virtual.enabled, d = s ? r.virtual.slides.length : r.slides.length, c = we(i, `.${r.params.slideClass}, swiper-slide`), h = s ? r.virtual.slides.length : c.length;
|
|
4035
|
-
let
|
|
4036
|
-
const p = [],
|
|
4035
|
+
let u = [];
|
|
4036
|
+
const p = [], f = [];
|
|
4037
4037
|
let m = t.slidesOffsetBefore;
|
|
4038
4038
|
typeof m == "function" && (m = t.slidesOffsetBefore.call(r));
|
|
4039
4039
|
let w = t.slidesOffsetAfter;
|
|
4040
4040
|
typeof w == "function" && (w = t.slidesOffsetAfter.call(r));
|
|
4041
|
-
const
|
|
4042
|
-
let
|
|
4041
|
+
const x = r.snapGrid.length, v = r.slidesGrid.length;
|
|
4042
|
+
let g = t.spaceBetween, y = -m, S = 0, E = 0;
|
|
4043
4043
|
if (typeof a > "u")
|
|
4044
4044
|
return;
|
|
4045
|
-
typeof
|
|
4045
|
+
typeof g == "string" && g.indexOf("%") >= 0 ? g = parseFloat(g.replace("%", "")) / 100 * a : typeof g == "string" && (g = parseFloat(g)), r.virtualSize = -g, c.forEach((T) => {
|
|
4046
4046
|
l ? T.style.marginLeft = "" : T.style.marginRight = "", T.style.marginBottom = "", T.style.marginTop = "";
|
|
4047
4047
|
}), t.centeredSlides && t.cssMode && (bt(n, "--swiper-centered-offset-before", ""), bt(n, "--swiper-centered-offset-after", ""));
|
|
4048
|
-
const
|
|
4049
|
-
|
|
4048
|
+
const L = t.grid && t.grid.rows > 1 && r.grid;
|
|
4049
|
+
L ? r.grid.initSlides(c) : r.grid && r.grid.unsetSlides();
|
|
4050
4050
|
let N;
|
|
4051
|
-
const
|
|
4051
|
+
const C = t.slidesPerView === "auto" && t.breakpoints && Object.keys(t.breakpoints).filter((T) => typeof t.breakpoints[T].slidesPerView < "u").length > 0;
|
|
4052
4052
|
for (let T = 0; T < h; T += 1) {
|
|
4053
4053
|
N = 0;
|
|
4054
4054
|
let M;
|
|
4055
|
-
if (c[T] && (M = c[T]),
|
|
4055
|
+
if (c[T] && (M = c[T]), L && r.grid.updateSlide(T, M, c), !(c[T] && Ne(M, "display") === "none")) {
|
|
4056
4056
|
if (t.slidesPerView === "auto") {
|
|
4057
|
-
|
|
4058
|
-
const A = getComputedStyle(M), P = M.style.transform,
|
|
4059
|
-
if (P && (M.style.transform = "none"),
|
|
4057
|
+
C && (c[T].style[r.getDirectionLabel("width")] = "");
|
|
4058
|
+
const A = getComputedStyle(M), P = M.style.transform, k = M.style.webkitTransform;
|
|
4059
|
+
if (P && (M.style.transform = "none"), k && (M.style.webkitTransform = "none"), t.roundLengths)
|
|
4060
4060
|
N = r.isHorizontal() ? ur(M, "width") : ur(M, "height");
|
|
4061
4061
|
else {
|
|
4062
4062
|
const R = e(A, "width"), X = e(A, "padding-left"), fe = e(A, "padding-right"), B = e(A, "margin-left"), G = e(A, "margin-right"), Y = A.getPropertyValue("box-sizing");
|
|
@@ -4070,70 +4070,70 @@ function jc() {
|
|
|
4070
4070
|
N = R + X + fe + B + G + (me - pe);
|
|
4071
4071
|
}
|
|
4072
4072
|
}
|
|
4073
|
-
P && (M.style.transform = P),
|
|
4073
|
+
P && (M.style.transform = P), k && (M.style.webkitTransform = k), t.roundLengths && (N = Math.floor(N));
|
|
4074
4074
|
} else
|
|
4075
|
-
N = (a - (t.slidesPerView - 1) *
|
|
4076
|
-
c[T] && (c[T].swiperSlideSize = N),
|
|
4075
|
+
N = (a - (t.slidesPerView - 1) * g) / t.slidesPerView, t.roundLengths && (N = Math.floor(N)), c[T] && (c[T].style[r.getDirectionLabel("width")] = `${N}px`);
|
|
4076
|
+
c[T] && (c[T].swiperSlideSize = N), f.push(N), t.centeredSlides ? (y = y + N / 2 + S / 2 + g, S === 0 && T !== 0 && (y = y - a / 2 - g), T === 0 && (y = y - a / 2 - g), Math.abs(y) < 1 / 1e3 && (y = 0), t.roundLengths && (y = Math.floor(y)), E % t.slidesPerGroup === 0 && u.push(y), p.push(y)) : (t.roundLengths && (y = Math.floor(y)), (E - Math.min(r.params.slidesPerGroupSkip, E)) % r.params.slidesPerGroup === 0 && u.push(y), p.push(y), y = y + N + g), r.virtualSize += N + g, S = N, E += 1;
|
|
4077
4077
|
}
|
|
4078
4078
|
}
|
|
4079
|
-
if (r.virtualSize = Math.max(r.virtualSize, a) + w, l && o && (t.effect === "slide" || t.effect === "coverflow") && (n.style.width = `${r.virtualSize +
|
|
4079
|
+
if (r.virtualSize = Math.max(r.virtualSize, a) + w, l && o && (t.effect === "slide" || t.effect === "coverflow") && (n.style.width = `${r.virtualSize + g}px`), t.setWrapperSize && (n.style[r.getDirectionLabel("width")] = `${r.virtualSize + g}px`), L && r.grid.updateWrapperSize(N, u), !t.centeredSlides) {
|
|
4080
4080
|
const T = [];
|
|
4081
|
-
for (let M = 0; M <
|
|
4082
|
-
let A =
|
|
4083
|
-
t.roundLengths && (A = Math.floor(A)),
|
|
4081
|
+
for (let M = 0; M < u.length; M += 1) {
|
|
4082
|
+
let A = u[M];
|
|
4083
|
+
t.roundLengths && (A = Math.floor(A)), u[M] <= r.virtualSize - a && T.push(A);
|
|
4084
4084
|
}
|
|
4085
|
-
|
|
4085
|
+
u = T, Math.floor(r.virtualSize - a) - Math.floor(u[u.length - 1]) > 1 && u.push(r.virtualSize - a);
|
|
4086
4086
|
}
|
|
4087
4087
|
if (s && t.loop) {
|
|
4088
|
-
const T =
|
|
4088
|
+
const T = f[0] + g;
|
|
4089
4089
|
if (t.slidesPerGroup > 1) {
|
|
4090
4090
|
const M = Math.ceil((r.virtual.slidesBefore + r.virtual.slidesAfter) / t.slidesPerGroup), A = T * t.slidesPerGroup;
|
|
4091
4091
|
for (let P = 0; P < M; P += 1)
|
|
4092
|
-
|
|
4092
|
+
u.push(u[u.length - 1] + A);
|
|
4093
4093
|
}
|
|
4094
4094
|
for (let M = 0; M < r.virtual.slidesBefore + r.virtual.slidesAfter; M += 1)
|
|
4095
|
-
t.slidesPerGroup === 1 &&
|
|
4095
|
+
t.slidesPerGroup === 1 && u.push(u[u.length - 1] + T), p.push(p[p.length - 1] + T), r.virtualSize += T;
|
|
4096
4096
|
}
|
|
4097
|
-
if (
|
|
4097
|
+
if (u.length === 0 && (u = [0]), g !== 0) {
|
|
4098
4098
|
const T = r.isHorizontal() && l ? "marginLeft" : r.getDirectionLabel("marginRight");
|
|
4099
4099
|
c.filter((M, A) => !t.cssMode || t.loop ? !0 : A !== c.length - 1).forEach((M) => {
|
|
4100
|
-
M.style[T] = `${
|
|
4100
|
+
M.style[T] = `${g}px`;
|
|
4101
4101
|
});
|
|
4102
4102
|
}
|
|
4103
4103
|
if (t.centeredSlides && t.centeredSlidesBounds) {
|
|
4104
4104
|
let T = 0;
|
|
4105
|
-
|
|
4106
|
-
T += A + (
|
|
4107
|
-
}), T -=
|
|
4105
|
+
f.forEach((A) => {
|
|
4106
|
+
T += A + (g || 0);
|
|
4107
|
+
}), T -= g;
|
|
4108
4108
|
const M = T > a ? T - a : 0;
|
|
4109
|
-
|
|
4109
|
+
u = u.map((A) => A <= 0 ? -m : A > M ? M + w : A);
|
|
4110
4110
|
}
|
|
4111
4111
|
if (t.centerInsufficientSlides) {
|
|
4112
4112
|
let T = 0;
|
|
4113
|
-
|
|
4114
|
-
T += A + (
|
|
4115
|
-
}), T -=
|
|
4113
|
+
f.forEach((A) => {
|
|
4114
|
+
T += A + (g || 0);
|
|
4115
|
+
}), T -= g;
|
|
4116
4116
|
const M = (t.slidesOffsetBefore || 0) + (t.slidesOffsetAfter || 0);
|
|
4117
4117
|
if (T + M < a) {
|
|
4118
4118
|
const A = (a - T - M) / 2;
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
}), p.forEach((P,
|
|
4122
|
-
p[
|
|
4119
|
+
u.forEach((P, k) => {
|
|
4120
|
+
u[k] = P - A;
|
|
4121
|
+
}), p.forEach((P, k) => {
|
|
4122
|
+
p[k] = P + A;
|
|
4123
4123
|
});
|
|
4124
4124
|
}
|
|
4125
4125
|
}
|
|
4126
4126
|
if (Object.assign(r, {
|
|
4127
4127
|
slides: c,
|
|
4128
|
-
snapGrid:
|
|
4128
|
+
snapGrid: u,
|
|
4129
4129
|
slidesGrid: p,
|
|
4130
|
-
slidesSizesGrid:
|
|
4130
|
+
slidesSizesGrid: f
|
|
4131
4131
|
}), t.centeredSlides && t.cssMode && !t.centeredSlidesBounds) {
|
|
4132
|
-
bt(n, "--swiper-centered-offset-before", `${-
|
|
4132
|
+
bt(n, "--swiper-centered-offset-before", `${-u[0]}px`), bt(n, "--swiper-centered-offset-after", `${r.size / 2 - f[f.length - 1] / 2}px`);
|
|
4133
4133
|
const T = -r.snapGrid[0], M = -r.slidesGrid[0];
|
|
4134
4134
|
r.snapGrid = r.snapGrid.map((A) => A + T), r.slidesGrid = r.slidesGrid.map((A) => A + M);
|
|
4135
4135
|
}
|
|
4136
|
-
if (h !== d && r.emit("slidesLengthChange"),
|
|
4136
|
+
if (h !== d && r.emit("slidesLengthChange"), u.length !== x && (r.params.watchOverflow && r.checkOverflow(), r.emit("snapGridLengthChange")), p.length !== v && r.emit("slidesGridLengthChange"), t.watchSlidesProgress && r.updateSlidesOffset(), r.emit("slidesUpdated"), !s && !t.cssMode && (t.effect === "slide" || t.effect === "fade")) {
|
|
4137
4137
|
const T = `${t.containerModifierClass}backface-hidden`, M = r.el.classList.contains(T);
|
|
4138
4138
|
h <= t.maxBackfaceHiddenSlides ? M || r.el.classList.add(T) : M && r.el.classList.remove(T);
|
|
4139
4139
|
}
|
|
@@ -4188,8 +4188,8 @@ function qc(r) {
|
|
|
4188
4188
|
const d = n[s];
|
|
4189
4189
|
let c = d.swiperSlideOffset;
|
|
4190
4190
|
t.cssMode && t.centeredSlides && (c -= n[0].swiperSlideOffset);
|
|
4191
|
-
const h = (l + (t.centeredSlides ? e.minTranslate() : 0) - c) / (d.swiperSlideSize + o),
|
|
4192
|
-
w && (e.visibleSlides.push(d), e.visibleSlidesIndexes.push(s)), nn(d, w, t.slideVisibleClass), nn(d, m, t.slideFullyVisibleClass), d.progress = i ? -h : h, d.originalProgress = i ? -
|
|
4191
|
+
const h = (l + (t.centeredSlides ? e.minTranslate() : 0) - c) / (d.swiperSlideSize + o), u = (l - a[0] + (t.centeredSlides ? e.minTranslate() : 0) - c) / (d.swiperSlideSize + o), p = -(l - c), f = p + e.slidesSizesGrid[s], m = p >= 0 && p <= e.size - e.slidesSizesGrid[s], w = p >= 0 && p < e.size - 1 || f > 1 && f <= e.size || p <= 0 && f >= e.size;
|
|
4192
|
+
w && (e.visibleSlides.push(d), e.visibleSlidesIndexes.push(s)), nn(d, w, t.slideVisibleClass), nn(d, m, t.slideFullyVisibleClass), d.progress = i ? -h : h, d.originalProgress = i ? -u : u;
|
|
4193
4193
|
}
|
|
4194
4194
|
}
|
|
4195
4195
|
function Uc(r) {
|
|
@@ -4214,8 +4214,8 @@ function Uc(r) {
|
|
|
4214
4214
|
a = c || i <= 0, l = h || i >= 1, c && (i = 0), h && (i = 1);
|
|
4215
4215
|
}
|
|
4216
4216
|
if (t.loop) {
|
|
4217
|
-
const c = e.getSlideIndexByData(0), h = e.getSlideIndexByData(e.slides.length - 1),
|
|
4218
|
-
m >=
|
|
4217
|
+
const c = e.getSlideIndexByData(0), h = e.getSlideIndexByData(e.slides.length - 1), u = e.slidesGrid[c], p = e.slidesGrid[h], f = e.slidesGrid[e.slidesGrid.length - 1], m = Math.abs(r);
|
|
4218
|
+
m >= u ? o = (m - u) / f : o = (m + f - p) / f, o > 1 && (o -= 1);
|
|
4219
4219
|
}
|
|
4220
4220
|
Object.assign(e, {
|
|
4221
4221
|
progress: i,
|
|
@@ -4306,8 +4306,8 @@ function Kc(r) {
|
|
|
4306
4306
|
} = e;
|
|
4307
4307
|
let s = r, d;
|
|
4308
4308
|
const c = (p) => {
|
|
4309
|
-
let
|
|
4310
|
-
return
|
|
4309
|
+
let f = p - e.virtual.slidesBefore;
|
|
4310
|
+
return f < 0 && (f = e.virtual.slides.length + f), f >= e.virtual.slides.length && (f -= e.virtual.slides.length), f;
|
|
4311
4311
|
};
|
|
4312
4312
|
if (typeof s > "u" && (s = Qc(e)), n.indexOf(t) >= 0)
|
|
4313
4313
|
d = n.indexOf(t);
|
|
@@ -4324,26 +4324,26 @@ function Kc(r) {
|
|
|
4324
4324
|
return;
|
|
4325
4325
|
}
|
|
4326
4326
|
const h = e.grid && i.grid && i.grid.rows > 1;
|
|
4327
|
-
let
|
|
4327
|
+
let u;
|
|
4328
4328
|
if (e.virtual && i.virtual.enabled && i.loop)
|
|
4329
|
-
|
|
4329
|
+
u = c(s);
|
|
4330
4330
|
else if (h) {
|
|
4331
4331
|
const p = e.slides.filter((m) => m.column === s)[0];
|
|
4332
|
-
let
|
|
4333
|
-
Number.isNaN(
|
|
4332
|
+
let f = parseInt(p.getAttribute("data-swiper-slide-index"), 10);
|
|
4333
|
+
Number.isNaN(f) && (f = Math.max(e.slides.indexOf(p), 0)), u = Math.floor(f / i.grid.rows);
|
|
4334
4334
|
} else if (e.slides[s]) {
|
|
4335
4335
|
const p = e.slides[s].getAttribute("data-swiper-slide-index");
|
|
4336
|
-
p ?
|
|
4336
|
+
p ? u = parseInt(p, 10) : u = s;
|
|
4337
4337
|
} else
|
|
4338
|
-
|
|
4338
|
+
u = s;
|
|
4339
4339
|
Object.assign(e, {
|
|
4340
4340
|
previousSnapIndex: o,
|
|
4341
4341
|
snapIndex: d,
|
|
4342
4342
|
previousRealIndex: l,
|
|
4343
|
-
realIndex:
|
|
4343
|
+
realIndex: u,
|
|
4344
4344
|
previousIndex: a,
|
|
4345
4345
|
activeIndex: s
|
|
4346
|
-
}), e.initialized && fr(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (l !==
|
|
4346
|
+
}), e.initialized && fr(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (l !== u && e.emit("realIndexChange"), e.emit("slideChange"));
|
|
4347
4347
|
}
|
|
4348
4348
|
function Zc(r, e) {
|
|
4349
4349
|
const t = this, n = t.params;
|
|
@@ -4441,8 +4441,8 @@ function id(r, e, t, n, i) {
|
|
|
4441
4441
|
}
|
|
4442
4442
|
return !0;
|
|
4443
4443
|
}
|
|
4444
|
-
return e === 0 ? (a.setTransition(0), a.setTranslate(c), t && (a.emit("beforeTransitionStart", e, i), a.emit("transitionEnd"))) : (a.setTransition(e), a.setTranslate(c), t && (a.emit("beforeTransitionStart", e, i), a.emit("transitionStart")), a.animating || (a.animating = !0, a.onTranslateToWrapperTransitionEnd || (a.onTranslateToWrapperTransitionEnd = function(
|
|
4445
|
-
!a || a.destroyed ||
|
|
4444
|
+
return e === 0 ? (a.setTransition(0), a.setTranslate(c), t && (a.emit("beforeTransitionStart", e, i), a.emit("transitionEnd"))) : (a.setTransition(e), a.setTranslate(c), t && (a.emit("beforeTransitionStart", e, i), a.emit("transitionStart")), a.animating || (a.animating = !0, a.onTranslateToWrapperTransitionEnd || (a.onTranslateToWrapperTransitionEnd = function(u) {
|
|
4445
|
+
!a || a.destroyed || u.target === this && (a.wrapperEl.removeEventListener("transitionend", a.onTranslateToWrapperTransitionEnd), a.onTranslateToWrapperTransitionEnd = null, delete a.onTranslateToWrapperTransitionEnd, a.animating = !1, t && a.emit("transitionEnd"));
|
|
4446
4446
|
}), a.wrapperEl.addEventListener("transitionend", a.onTranslateToWrapperTransitionEnd))), !0;
|
|
4447
4447
|
}
|
|
4448
4448
|
var ad = {
|
|
@@ -4516,54 +4516,54 @@ function dd(r, e, t, n, i) {
|
|
|
4516
4516
|
slidesGrid: d,
|
|
4517
4517
|
previousIndex: c,
|
|
4518
4518
|
activeIndex: h,
|
|
4519
|
-
rtlTranslate:
|
|
4519
|
+
rtlTranslate: u,
|
|
4520
4520
|
wrapperEl: p,
|
|
4521
|
-
enabled:
|
|
4521
|
+
enabled: f
|
|
4522
4522
|
} = a;
|
|
4523
|
-
if (!
|
|
4523
|
+
if (!f && !n && !i || a.destroyed || a.animating && o.preventInteractionOnTransition)
|
|
4524
4524
|
return !1;
|
|
4525
4525
|
typeof e > "u" && (e = a.params.speed);
|
|
4526
4526
|
const m = Math.min(a.params.slidesPerGroupSkip, l);
|
|
4527
4527
|
let w = m + Math.floor((l - m) / a.params.slidesPerGroup);
|
|
4528
4528
|
w >= s.length && (w = s.length - 1);
|
|
4529
|
-
const
|
|
4529
|
+
const x = -s[w];
|
|
4530
4530
|
if (o.normalizeSlideIndex)
|
|
4531
4531
|
for (let S = 0; S < d.length; S += 1) {
|
|
4532
|
-
const
|
|
4533
|
-
typeof d[S + 1] < "u" ?
|
|
4532
|
+
const E = -Math.floor(x * 100), L = Math.floor(d[S] * 100), N = Math.floor(d[S + 1] * 100);
|
|
4533
|
+
typeof d[S + 1] < "u" ? E >= L && E < N - (N - L) / 2 ? l = S : E >= L && E < N && (l = S + 1) : E >= L && (l = S);
|
|
4534
4534
|
}
|
|
4535
|
-
if (a.initialized && l !== h && (!a.allowSlideNext && (
|
|
4535
|
+
if (a.initialized && l !== h && (!a.allowSlideNext && (u ? x > a.translate && x > a.minTranslate() : x < a.translate && x < a.minTranslate()) || !a.allowSlidePrev && x > a.translate && x > a.maxTranslate() && (h || 0) !== l))
|
|
4536
4536
|
return !1;
|
|
4537
|
-
l !== (c || 0) && t && a.emit("beforeSlideChangeStart"), a.updateProgress(
|
|
4538
|
-
let
|
|
4539
|
-
l > h ?
|
|
4540
|
-
const
|
|
4541
|
-
if (!(
|
|
4542
|
-
return a.updateActiveIndex(l), o.autoHeight && a.updateAutoHeight(), a.updateSlidesClasses(), o.effect !== "slide" && a.setTranslate(
|
|
4537
|
+
l !== (c || 0) && t && a.emit("beforeSlideChangeStart"), a.updateProgress(x);
|
|
4538
|
+
let v;
|
|
4539
|
+
l > h ? v = "next" : l < h ? v = "prev" : v = "reset";
|
|
4540
|
+
const g = a.virtual && a.params.virtual.enabled;
|
|
4541
|
+
if (!(g && i) && (u && -x === a.translate || !u && x === a.translate))
|
|
4542
|
+
return a.updateActiveIndex(l), o.autoHeight && a.updateAutoHeight(), a.updateSlidesClasses(), o.effect !== "slide" && a.setTranslate(x), v !== "reset" && (a.transitionStart(t, v), a.transitionEnd(t, v)), !1;
|
|
4543
4543
|
if (o.cssMode) {
|
|
4544
|
-
const S = a.isHorizontal(),
|
|
4544
|
+
const S = a.isHorizontal(), E = u ? x : -x;
|
|
4545
4545
|
if (e === 0)
|
|
4546
|
-
|
|
4547
|
-
p[S ? "scrollLeft" : "scrollTop"] =
|
|
4548
|
-
})) : p[S ? "scrollLeft" : "scrollTop"] =
|
|
4546
|
+
g && (a.wrapperEl.style.scrollSnapType = "none", a._immediateVirtual = !0), g && !a._cssModeVirtualInitialSet && a.params.initialSlide > 0 ? (a._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
|
|
4547
|
+
p[S ? "scrollLeft" : "scrollTop"] = E;
|
|
4548
|
+
})) : p[S ? "scrollLeft" : "scrollTop"] = E, g && requestAnimationFrame(() => {
|
|
4549
4549
|
a.wrapperEl.style.scrollSnapType = "", a._immediateVirtual = !1;
|
|
4550
4550
|
});
|
|
4551
4551
|
else {
|
|
4552
4552
|
if (!a.support.smoothScroll)
|
|
4553
4553
|
return Xi({
|
|
4554
4554
|
swiper: a,
|
|
4555
|
-
targetPosition:
|
|
4555
|
+
targetPosition: E,
|
|
4556
4556
|
side: S ? "left" : "top"
|
|
4557
4557
|
}), !0;
|
|
4558
4558
|
p.scrollTo({
|
|
4559
|
-
[S ? "left" : "top"]:
|
|
4559
|
+
[S ? "left" : "top"]: E,
|
|
4560
4560
|
behavior: "smooth"
|
|
4561
4561
|
});
|
|
4562
4562
|
}
|
|
4563
4563
|
return !0;
|
|
4564
4564
|
}
|
|
4565
|
-
return a.setTransition(e), a.setTranslate(
|
|
4566
|
-
!a || a.destroyed ||
|
|
4565
|
+
return a.setTransition(e), a.setTranslate(x), a.updateActiveIndex(l), a.updateSlidesClasses(), a.emit("beforeTransitionStart", e, n), a.transitionStart(t, v), e === 0 ? a.transitionEnd(t, v) : a.animating || (a.animating = !0, a.onSlideToWrapperTransitionEnd || (a.onSlideToWrapperTransitionEnd = function(E) {
|
|
4566
|
+
!a || a.destroyed || E.target === this && (a.wrapperEl.removeEventListener("transitionend", a.onSlideToWrapperTransitionEnd), a.onSlideToWrapperTransitionEnd = null, delete a.onSlideToWrapperTransitionEnd, a.transitionEnd(t, v));
|
|
4567
4567
|
}), a.wrapperEl.addEventListener("transitionend", a.onSlideToWrapperTransitionEnd)), !0;
|
|
4568
4568
|
}
|
|
4569
4569
|
function ud(r, e, t, n) {
|
|
@@ -4579,8 +4579,8 @@ function ud(r, e, t, n) {
|
|
|
4579
4579
|
else {
|
|
4580
4580
|
let o;
|
|
4581
4581
|
if (a) {
|
|
4582
|
-
const
|
|
4583
|
-
o = i.slides.filter((p) => p.getAttribute("data-swiper-slide-index") * 1 ===
|
|
4582
|
+
const u = l * i.params.grid.rows;
|
|
4583
|
+
o = i.slides.filter((p) => p.getAttribute("data-swiper-slide-index") * 1 === u)[0].column;
|
|
4584
4584
|
} else
|
|
4585
4585
|
o = i.getSlideIndexByData(l);
|
|
4586
4586
|
const s = a ? Math.ceil(i.slides.length / i.params.grid.rows) : i.slides.length, {
|
|
@@ -4590,17 +4590,17 @@ function ud(r, e, t, n) {
|
|
|
4590
4590
|
c === "auto" ? c = i.slidesPerViewDynamic() : (c = Math.ceil(parseFloat(i.params.slidesPerView, 10)), d && c % 2 === 0 && (c = c + 1));
|
|
4591
4591
|
let h = s - o < c;
|
|
4592
4592
|
if (d && (h = h || o < Math.ceil(c / 2)), n && d && i.params.slidesPerView !== "auto" && !a && (h = !1), h) {
|
|
4593
|
-
const
|
|
4593
|
+
const u = d ? o < i.activeIndex ? "prev" : "next" : o - i.activeIndex - 1 < i.params.slidesPerView ? "next" : "prev";
|
|
4594
4594
|
i.loopFix({
|
|
4595
|
-
direction:
|
|
4595
|
+
direction: u,
|
|
4596
4596
|
slideTo: !0,
|
|
4597
|
-
activeSlideIndex:
|
|
4598
|
-
slideRealIndex:
|
|
4597
|
+
activeSlideIndex: u === "next" ? o + 1 : o - s + 1,
|
|
4598
|
+
slideRealIndex: u === "next" ? i.realIndex : void 0
|
|
4599
4599
|
});
|
|
4600
4600
|
}
|
|
4601
4601
|
if (a) {
|
|
4602
|
-
const
|
|
4603
|
-
l = i.slides.filter((p) => p.getAttribute("data-swiper-slide-index") * 1 ===
|
|
4602
|
+
const u = l * i.params.grid.rows;
|
|
4603
|
+
l = i.slides.filter((p) => p.getAttribute("data-swiper-slide-index") * 1 === u)[0].column;
|
|
4604
4604
|
} else
|
|
4605
4605
|
l = i.getSlideIndexByData(l);
|
|
4606
4606
|
}
|
|
@@ -4651,21 +4651,21 @@ function pd(r, e, t) {
|
|
|
4651
4651
|
}), n._clientLeft = n.wrapperEl.clientLeft;
|
|
4652
4652
|
}
|
|
4653
4653
|
const h = o ? n.translate : -n.translate;
|
|
4654
|
-
function
|
|
4655
|
-
return
|
|
4654
|
+
function u(x) {
|
|
4655
|
+
return x < 0 ? -Math.floor(Math.abs(x)) : Math.floor(x);
|
|
4656
4656
|
}
|
|
4657
|
-
const p =
|
|
4658
|
-
let m = a[
|
|
4657
|
+
const p = u(h), f = a.map((x) => u(x));
|
|
4658
|
+
let m = a[f.indexOf(p) - 1];
|
|
4659
4659
|
if (typeof m > "u" && i.cssMode) {
|
|
4660
|
-
let
|
|
4661
|
-
a.forEach((
|
|
4662
|
-
p >=
|
|
4663
|
-
}), typeof
|
|
4660
|
+
let x;
|
|
4661
|
+
a.forEach((v, g) => {
|
|
4662
|
+
p >= v && (x = g);
|
|
4663
|
+
}), typeof x < "u" && (m = a[x > 0 ? x - 1 : x]);
|
|
4664
4664
|
}
|
|
4665
4665
|
let w = 0;
|
|
4666
4666
|
if (typeof m < "u" && (w = l.indexOf(m), w < 0 && (w = n.activeIndex - 1), i.slidesPerView === "auto" && i.slidesPerGroup === 1 && i.slidesPerGroupAuto && (w = w - n.slidesPerViewDynamic("previous", !0) + 1, w = Math.max(w, 0))), i.rewind && n.isBeginning) {
|
|
4667
|
-
const
|
|
4668
|
-
return n.slideTo(
|
|
4667
|
+
const x = n.params.virtual && n.params.virtual.enabled && n.virtual ? n.virtual.slides.length - 1 : n.slides.length - 1;
|
|
4668
|
+
return n.slideTo(x, r, e, t);
|
|
4669
4669
|
} else if (i.loop && n.activeIndex === 0 && i.cssMode)
|
|
4670
4670
|
return requestAnimationFrame(() => {
|
|
4671
4671
|
n.slideTo(w, r, e, t);
|
|
@@ -4729,13 +4729,13 @@ function wd(r) {
|
|
|
4729
4729
|
} = e;
|
|
4730
4730
|
if (!t.loop || e.virtual && e.params.virtual.enabled) return;
|
|
4731
4731
|
const i = () => {
|
|
4732
|
-
we(n, `.${t.slideClass}, swiper-slide`).forEach((h,
|
|
4733
|
-
h.setAttribute("data-swiper-slide-index",
|
|
4732
|
+
we(n, `.${t.slideClass}, swiper-slide`).forEach((h, u) => {
|
|
4733
|
+
h.setAttribute("data-swiper-slide-index", u);
|
|
4734
4734
|
});
|
|
4735
4735
|
}, a = e.grid && t.grid && t.grid.rows > 1, l = t.slidesPerGroup * (a ? t.grid.rows : 1), o = e.slides.length % l !== 0, s = a && e.slides.length % t.grid.rows !== 0, d = (c) => {
|
|
4736
4736
|
for (let h = 0; h < c; h += 1) {
|
|
4737
|
-
const
|
|
4738
|
-
e.slidesEl.append(
|
|
4737
|
+
const u = e.isElement ? Nt("swiper-slide", [t.slideBlankClass]) : Nt("div", [t.slideClass, t.slideBlankClass]);
|
|
4738
|
+
e.slidesEl.append(u);
|
|
4739
4739
|
}
|
|
4740
4740
|
};
|
|
4741
4741
|
if (o) {
|
|
@@ -4776,71 +4776,71 @@ function bd(r) {
|
|
|
4776
4776
|
slides: d,
|
|
4777
4777
|
allowSlidePrev: c,
|
|
4778
4778
|
allowSlideNext: h,
|
|
4779
|
-
slidesEl:
|
|
4779
|
+
slidesEl: u,
|
|
4780
4780
|
params: p
|
|
4781
4781
|
} = s, {
|
|
4782
|
-
centeredSlides:
|
|
4782
|
+
centeredSlides: f
|
|
4783
4783
|
} = p;
|
|
4784
4784
|
if (s.allowSlidePrev = !0, s.allowSlideNext = !0, s.virtual && p.virtual.enabled) {
|
|
4785
4785
|
t && (!p.centeredSlides && s.snapIndex === 0 ? s.slideTo(s.virtual.slides.length, 0, !1, !0) : p.centeredSlides && s.snapIndex < p.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 = c, s.allowSlideNext = h, s.emit("loopFix");
|
|
4786
4786
|
return;
|
|
4787
4787
|
}
|
|
4788
4788
|
let m = p.slidesPerView;
|
|
4789
|
-
m === "auto" ? m = s.slidesPerViewDynamic() : (m = Math.ceil(parseFloat(p.slidesPerView, 10)),
|
|
4789
|
+
m === "auto" ? m = s.slidesPerViewDynamic() : (m = Math.ceil(parseFloat(p.slidesPerView, 10)), f && m % 2 === 0 && (m = m + 1));
|
|
4790
4790
|
const w = p.slidesPerGroupAuto ? m : p.slidesPerGroup;
|
|
4791
|
-
let
|
|
4792
|
-
|
|
4793
|
-
const
|
|
4794
|
-
d.length < m +
|
|
4795
|
-
const
|
|
4791
|
+
let x = w;
|
|
4792
|
+
x % w !== 0 && (x += w - x % w), x += p.loopAdditionalSlides, s.loopedSlides = x;
|
|
4793
|
+
const v = s.grid && p.grid && p.grid.rows > 1;
|
|
4794
|
+
d.length < m + x ? It("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : v && p.grid.fill === "row" && It("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
4795
|
+
const g = [], y = [];
|
|
4796
4796
|
let S = s.activeIndex;
|
|
4797
4797
|
typeof a > "u" ? a = s.getSlideIndex(d.filter((P) => P.classList.contains(p.slideActiveClass))[0]) : S = a;
|
|
4798
|
-
const
|
|
4799
|
-
let N = 0,
|
|
4800
|
-
const T =
|
|
4801
|
-
if (A <
|
|
4802
|
-
N = Math.max(
|
|
4803
|
-
for (let P = 0; P <
|
|
4804
|
-
const
|
|
4805
|
-
if (
|
|
4806
|
-
const R = T -
|
|
4798
|
+
const E = n === "next" || !n, L = n === "prev" || !n;
|
|
4799
|
+
let N = 0, C = 0;
|
|
4800
|
+
const T = v ? Math.ceil(d.length / p.grid.rows) : d.length, A = (v ? d[a].column : a) + (f && typeof i > "u" ? -m / 2 + 0.5 : 0);
|
|
4801
|
+
if (A < x) {
|
|
4802
|
+
N = Math.max(x - A, w);
|
|
4803
|
+
for (let P = 0; P < x - A; P += 1) {
|
|
4804
|
+
const k = P - Math.floor(P / T) * T;
|
|
4805
|
+
if (v) {
|
|
4806
|
+
const R = T - k - 1;
|
|
4807
4807
|
for (let X = d.length - 1; X >= 0; X -= 1)
|
|
4808
|
-
d[X].column === R &&
|
|
4808
|
+
d[X].column === R && g.push(X);
|
|
4809
4809
|
} else
|
|
4810
|
-
|
|
4810
|
+
g.push(T - k - 1);
|
|
4811
4811
|
}
|
|
4812
|
-
} else if (A + m > T -
|
|
4813
|
-
|
|
4814
|
-
for (let P = 0; P <
|
|
4815
|
-
const
|
|
4816
|
-
|
|
4817
|
-
R.column ===
|
|
4818
|
-
}) :
|
|
4812
|
+
} else if (A + m > T - x) {
|
|
4813
|
+
C = Math.max(A - (T - x * 2), w);
|
|
4814
|
+
for (let P = 0; P < C; P += 1) {
|
|
4815
|
+
const k = P - Math.floor(P / T) * T;
|
|
4816
|
+
v ? d.forEach((R, X) => {
|
|
4817
|
+
R.column === k && y.push(X);
|
|
4818
|
+
}) : y.push(k);
|
|
4819
4819
|
}
|
|
4820
4820
|
}
|
|
4821
4821
|
if (s.__preventObserver__ = !0, requestAnimationFrame(() => {
|
|
4822
4822
|
s.__preventObserver__ = !1;
|
|
4823
|
-
}),
|
|
4824
|
-
d[P].swiperLoopMoveDOM = !0,
|
|
4825
|
-
}),
|
|
4826
|
-
d[P].swiperLoopMoveDOM = !0,
|
|
4827
|
-
}), s.recalcSlides(), p.slidesPerView === "auto" ? s.updateSlides() :
|
|
4828
|
-
s.grid.updateSlide(
|
|
4823
|
+
}), L && g.forEach((P) => {
|
|
4824
|
+
d[P].swiperLoopMoveDOM = !0, u.prepend(d[P]), d[P].swiperLoopMoveDOM = !1;
|
|
4825
|
+
}), E && y.forEach((P) => {
|
|
4826
|
+
d[P].swiperLoopMoveDOM = !0, u.append(d[P]), d[P].swiperLoopMoveDOM = !1;
|
|
4827
|
+
}), s.recalcSlides(), p.slidesPerView === "auto" ? s.updateSlides() : v && (g.length > 0 && L || y.length > 0 && E) && s.slides.forEach((P, k) => {
|
|
4828
|
+
s.grid.updateSlide(k, P, s.slides);
|
|
4829
4829
|
}), p.watchSlidesProgress && s.updateSlidesOffset(), t) {
|
|
4830
|
-
if (
|
|
4830
|
+
if (g.length > 0 && L) {
|
|
4831
4831
|
if (typeof e > "u") {
|
|
4832
4832
|
const P = s.slidesGrid[S], R = s.slidesGrid[S + N] - P;
|
|
4833
4833
|
o ? s.setTranslate(s.translate - R) : (s.slideTo(S + Math.ceil(N), 0, !1, !0), i && (s.touchEventsData.startTranslate = s.touchEventsData.startTranslate - R, s.touchEventsData.currentTranslate = s.touchEventsData.currentTranslate - R));
|
|
4834
4834
|
} else if (i) {
|
|
4835
|
-
const P =
|
|
4835
|
+
const P = v ? g.length / p.grid.rows : g.length;
|
|
4836
4836
|
s.slideTo(s.activeIndex + P, 0, !1, !0), s.touchEventsData.currentTranslate = s.translate;
|
|
4837
4837
|
}
|
|
4838
|
-
} else if (
|
|
4838
|
+
} else if (y.length > 0 && E)
|
|
4839
4839
|
if (typeof e > "u") {
|
|
4840
|
-
const P = s.slidesGrid[S], R = s.slidesGrid[S -
|
|
4841
|
-
o ? s.setTranslate(s.translate - R) : (s.slideTo(S -
|
|
4840
|
+
const P = s.slidesGrid[S], R = s.slidesGrid[S - C] - P;
|
|
4841
|
+
o ? s.setTranslate(s.translate - R) : (s.slideTo(S - C, 0, !1, !0), i && (s.touchEventsData.startTranslate = s.touchEventsData.startTranslate - R, s.touchEventsData.currentTranslate = s.touchEventsData.currentTranslate - R));
|
|
4842
4842
|
} else {
|
|
4843
|
-
const P =
|
|
4843
|
+
const P = v ? y.length / p.grid.rows : y.length;
|
|
4844
4844
|
s.slideTo(s.activeIndex - P, 0, !1, !0);
|
|
4845
4845
|
}
|
|
4846
4846
|
}
|
|
@@ -4852,10 +4852,10 @@ function bd(r) {
|
|
|
4852
4852
|
activeSlideIndex: a,
|
|
4853
4853
|
byController: !0
|
|
4854
4854
|
};
|
|
4855
|
-
Array.isArray(s.controller.control) ? s.controller.control.forEach((
|
|
4856
|
-
!
|
|
4855
|
+
Array.isArray(s.controller.control) ? s.controller.control.forEach((k) => {
|
|
4856
|
+
!k.destroyed && k.params.loop && k.loopFix({
|
|
4857
4857
|
...P,
|
|
4858
|
-
slideTo:
|
|
4858
|
+
slideTo: k.params.slidesPerView === p.slidesPerView ? t : !1
|
|
4859
4859
|
});
|
|
4860
4860
|
}) : s.controller.control instanceof s.constructor && s.controller.control.params.loop && s.controller.control.loopFix({
|
|
4861
4861
|
...P,
|
|
@@ -4946,15 +4946,15 @@ function Pd(r) {
|
|
|
4946
4946
|
if (a.touchEventsTarget === "wrapper" && !Ec(s, e.wrapperEl) || "which" in n && n.which === 3 || "button" in n && n.button > 0 || i.isTouched && i.isMoved) return;
|
|
4947
4947
|
const d = !!a.noSwipingClass && a.noSwipingClass !== "", c = n.composedPath ? n.composedPath() : n.path;
|
|
4948
4948
|
d && n.target && n.target.shadowRoot && c && (s = c[0]);
|
|
4949
|
-
const h = a.noSwipingSelector ? a.noSwipingSelector : `.${a.noSwipingClass}`,
|
|
4950
|
-
if (a.noSwiping && (
|
|
4949
|
+
const h = a.noSwipingSelector ? a.noSwipingSelector : `.${a.noSwipingClass}`, u = !!(n.target && n.target.shadowRoot);
|
|
4950
|
+
if (a.noSwiping && (u ? Ed(h, s) : s.closest(h))) {
|
|
4951
4951
|
e.allowClick = !0;
|
|
4952
4952
|
return;
|
|
4953
4953
|
}
|
|
4954
4954
|
if (a.swipeHandler && !s.closest(a.swipeHandler))
|
|
4955
4955
|
return;
|
|
4956
4956
|
l.currentX = n.pageX, l.currentY = n.pageY;
|
|
4957
|
-
const p = l.currentX,
|
|
4957
|
+
const p = l.currentX, f = l.currentY;
|
|
4958
4958
|
if (!an(e, n, p))
|
|
4959
4959
|
return;
|
|
4960
4960
|
Object.assign(i, {
|
|
@@ -4963,7 +4963,7 @@ function Pd(r) {
|
|
|
4963
4963
|
allowTouchCallbacks: !0,
|
|
4964
4964
|
isScrolling: void 0,
|
|
4965
4965
|
startMoving: void 0
|
|
4966
|
-
}), l.startX = p, l.startY =
|
|
4966
|
+
}), l.startX = p, l.startY = f, i.touchStartTime = Ot(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, a.threshold > 0 && (i.allowThresholdMove = !1);
|
|
4967
4967
|
let m = !0;
|
|
4968
4968
|
s.matches(i.focusableElements) && (m = !1, s.nodeName === "SELECT" && (i.isTouched = !1)), t.activeElement && t.activeElement.matches(i.focusableElements) && t.activeElement !== s && (n.pointerType === "mouse" || n.pointerType !== "mouse" && !s.matches(i.focusableElements)) && t.activeElement.blur();
|
|
4969
4969
|
const w = m && e.allowTouchMove && a.touchStartPreventDefault;
|
|
@@ -4982,7 +4982,7 @@ function Md(r) {
|
|
|
4982
4982
|
return;
|
|
4983
4983
|
let d;
|
|
4984
4984
|
if (s.type === "touchmove") {
|
|
4985
|
-
if (d = [...s.changedTouches].filter((
|
|
4985
|
+
if (d = [...s.changedTouches].filter((E) => E.identifier === n.touchId)[0], !d || d.identifier !== n.touchId) return;
|
|
4986
4986
|
} else
|
|
4987
4987
|
d = s;
|
|
4988
4988
|
if (!n.isTouched) {
|
|
@@ -5017,11 +5017,11 @@ function Md(r) {
|
|
|
5017
5017
|
return;
|
|
5018
5018
|
}
|
|
5019
5019
|
n.allowTouchCallbacks && t.emit("touchMove", s), a.previousX = a.currentX, a.previousY = a.currentY, a.currentX = c, a.currentY = h;
|
|
5020
|
-
const
|
|
5021
|
-
if (t.params.threshold && Math.sqrt(
|
|
5020
|
+
const u = a.currentX - a.startX, p = a.currentY - a.startY;
|
|
5021
|
+
if (t.params.threshold && Math.sqrt(u ** 2 + p ** 2) < t.params.threshold) return;
|
|
5022
5022
|
if (typeof n.isScrolling > "u") {
|
|
5023
|
-
let
|
|
5024
|
-
t.isHorizontal() && a.currentY === a.startY || t.isVertical() && a.currentX === a.startX ? n.isScrolling = !1 :
|
|
5023
|
+
let E;
|
|
5024
|
+
t.isHorizontal() && a.currentY === a.startY || t.isVertical() && a.currentX === a.startX ? n.isScrolling = !1 : u * u + p * p >= 25 && (E = Math.atan2(Math.abs(p), Math.abs(u)) * 180 / Math.PI, n.isScrolling = t.isHorizontal() ? E > i.touchAngle : 90 - E > i.touchAngle);
|
|
5025
5025
|
}
|
|
5026
5026
|
if (n.isScrolling && t.emit("touchMoveOpposite", s), typeof n.startMoving > "u" && (a.currentX !== a.startX || a.currentY !== a.startY) && (n.startMoving = !0), n.isScrolling || s.type === "touchmove" && n.preventTouchMoveFromPointerMove) {
|
|
5027
5027
|
n.isTouched = !1;
|
|
@@ -5030,28 +5030,28 @@ function Md(r) {
|
|
|
5030
5030
|
if (!n.startMoving)
|
|
5031
5031
|
return;
|
|
5032
5032
|
t.allowClick = !1, !i.cssMode && s.cancelable && s.preventDefault(), i.touchMoveStopPropagation && !i.nested && s.stopPropagation();
|
|
5033
|
-
let
|
|
5034
|
-
i.oneWayMovement && (
|
|
5033
|
+
let f = t.isHorizontal() ? u : p, m = t.isHorizontal() ? a.currentX - a.previousX : a.currentY - a.previousY;
|
|
5034
|
+
i.oneWayMovement && (f = Math.abs(f) * (l ? 1 : -1), m = Math.abs(m) * (l ? 1 : -1)), a.diff = f, f *= i.touchRatio, l && (f = -f, m = -m);
|
|
5035
5035
|
const w = t.touchesDirection;
|
|
5036
|
-
t.swipeDirection =
|
|
5037
|
-
const
|
|
5036
|
+
t.swipeDirection = f > 0 ? "prev" : "next", t.touchesDirection = m > 0 ? "prev" : "next";
|
|
5037
|
+
const x = t.params.loop && !i.cssMode, v = t.touchesDirection === "next" && t.allowSlideNext || t.touchesDirection === "prev" && t.allowSlidePrev;
|
|
5038
5038
|
if (!n.isMoved) {
|
|
5039
|
-
if (
|
|
5039
|
+
if (x && v && t.loopFix({
|
|
5040
5040
|
direction: t.swipeDirection
|
|
5041
5041
|
}), n.startTranslate = t.getTranslate(), t.setTransition(0), t.animating) {
|
|
5042
|
-
const
|
|
5042
|
+
const E = new window.CustomEvent("transitionend", {
|
|
5043
5043
|
bubbles: !0,
|
|
5044
5044
|
cancelable: !0,
|
|
5045
5045
|
detail: {
|
|
5046
5046
|
bySwiperTouchMove: !0
|
|
5047
5047
|
}
|
|
5048
5048
|
});
|
|
5049
|
-
t.wrapperEl.dispatchEvent(
|
|
5049
|
+
t.wrapperEl.dispatchEvent(E);
|
|
5050
5050
|
}
|
|
5051
5051
|
n.allowMomentumBounce = !1, i.grabCursor && (t.allowSlideNext === !0 || t.allowSlidePrev === !0) && t.setGrabCursor(!0), t.emit("sliderFirstMove", s);
|
|
5052
5052
|
}
|
|
5053
|
-
let
|
|
5054
|
-
if ((/* @__PURE__ */ new Date()).getTime(), n.isMoved && n.allowThresholdMove && w !== t.touchesDirection &&
|
|
5053
|
+
let g;
|
|
5054
|
+
if ((/* @__PURE__ */ new Date()).getTime(), n.isMoved && n.allowThresholdMove && w !== t.touchesDirection && x && v && Math.abs(f) >= 1) {
|
|
5055
5055
|
Object.assign(a, {
|
|
5056
5056
|
startX: c,
|
|
5057
5057
|
startY: h,
|
|
@@ -5061,18 +5061,18 @@ function Md(r) {
|
|
|
5061
5061
|
}), n.loopSwapReset = !0, n.startTranslate = n.currentTranslate;
|
|
5062
5062
|
return;
|
|
5063
5063
|
}
|
|
5064
|
-
t.emit("sliderMove", s), n.isMoved = !0, n.currentTranslate =
|
|
5065
|
-
let
|
|
5066
|
-
if (i.touchReleaseOnEdges && (S = 0),
|
|
5064
|
+
t.emit("sliderMove", s), n.isMoved = !0, n.currentTranslate = f + n.startTranslate;
|
|
5065
|
+
let y = !0, S = i.resistanceRatio;
|
|
5066
|
+
if (i.touchReleaseOnEdges && (S = 0), f > 0 ? (x && v && !g && n.allowThresholdMove && n.currentTranslate > (i.centeredSlides ? t.minTranslate() - t.slidesSizesGrid[t.activeIndex + 1] - (i.slidesPerView !== "auto" && t.slides.length - i.slidesPerView >= 2 ? t.slidesSizesGrid[t.activeIndex + 1] + t.params.spaceBetween : 0) - t.params.spaceBetween : t.minTranslate()) && t.loopFix({
|
|
5067
5067
|
direction: "prev",
|
|
5068
5068
|
setTranslate: !0,
|
|
5069
5069
|
activeSlideIndex: 0
|
|
5070
|
-
}), n.currentTranslate > t.minTranslate() && (
|
|
5070
|
+
}), n.currentTranslate > t.minTranslate() && (y = !1, i.resistance && (n.currentTranslate = t.minTranslate() - 1 + (-t.minTranslate() + n.startTranslate + f) ** S))) : f < 0 && (x && v && !g && n.allowThresholdMove && n.currentTranslate < (i.centeredSlides ? t.maxTranslate() + t.slidesSizesGrid[t.slidesSizesGrid.length - 1] + t.params.spaceBetween + (i.slidesPerView !== "auto" && t.slides.length - i.slidesPerView >= 2 ? t.slidesSizesGrid[t.slidesSizesGrid.length - 1] + t.params.spaceBetween : 0) : t.maxTranslate()) && t.loopFix({
|
|
5071
5071
|
direction: "next",
|
|
5072
5072
|
setTranslate: !0,
|
|
5073
5073
|
activeSlideIndex: t.slides.length - (i.slidesPerView === "auto" ? t.slidesPerViewDynamic() : Math.ceil(parseFloat(i.slidesPerView, 10)))
|
|
5074
|
-
}), n.currentTranslate < t.maxTranslate() && (
|
|
5075
|
-
if (Math.abs(
|
|
5074
|
+
}), n.currentTranslate < t.maxTranslate() && (y = !1, i.resistance && (n.currentTranslate = t.maxTranslate() + 1 - (t.maxTranslate() - n.startTranslate - f) ** S))), y && (s.preventedByNestedSwiper = !0), !t.allowSlideNext && t.swipeDirection === "next" && n.currentTranslate < n.startTranslate && (n.currentTranslate = n.startTranslate), !t.allowSlidePrev && t.swipeDirection === "prev" && n.currentTranslate > n.startTranslate && (n.currentTranslate = n.startTranslate), !t.allowSlidePrev && !t.allowSlideNext && (n.currentTranslate = n.startTranslate), i.threshold > 0)
|
|
5075
|
+
if (Math.abs(f) > i.threshold || n.allowThresholdMove) {
|
|
5076
5076
|
if (!n.allowThresholdMove) {
|
|
5077
5077
|
n.allowThresholdMove = !0, a.startX = a.currentX, a.startY = a.currentY, n.currentTranslate = n.startTranslate, a.diff = t.isHorizontal() ? a.currentX - a.startX : a.currentY - a.startY;
|
|
5078
5078
|
return;
|
|
@@ -5110,10 +5110,10 @@ function Od(r) {
|
|
|
5110
5110
|
return;
|
|
5111
5111
|
}
|
|
5112
5112
|
l.grabCursor && t.isMoved && t.isTouched && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!1);
|
|
5113
|
-
const h = Ot(),
|
|
5113
|
+
const h = Ot(), u = h - t.touchStartTime;
|
|
5114
5114
|
if (e.allowClick) {
|
|
5115
5115
|
const S = n.path || n.composedPath && n.composedPath();
|
|
5116
|
-
e.updateClickedSlide(S && S[0] || n.target, S), e.emit("tap click", n),
|
|
5116
|
+
e.updateClickedSlide(S && S[0] || n.target, S), e.emit("tap click", n), u < 300 && h - t.lastClickTime < 300 && e.emit("doubleTap doubleClick", n);
|
|
5117
5117
|
}
|
|
5118
5118
|
if (t.lastClickTime = Ot(), dr(() => {
|
|
5119
5119
|
e.destroyed || (e.allowClick = !0);
|
|
@@ -5131,27 +5131,27 @@ function Od(r) {
|
|
|
5131
5131
|
});
|
|
5132
5132
|
return;
|
|
5133
5133
|
}
|
|
5134
|
-
const
|
|
5134
|
+
const f = p >= -e.maxTranslate() && !e.params.loop;
|
|
5135
5135
|
let m = 0, w = e.slidesSizesGrid[0];
|
|
5136
5136
|
for (let S = 0; S < d.length; S += S < l.slidesPerGroupSkip ? 1 : l.slidesPerGroup) {
|
|
5137
|
-
const
|
|
5138
|
-
typeof d[S +
|
|
5137
|
+
const E = S < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
|
|
5138
|
+
typeof d[S + E] < "u" ? (f || p >= d[S] && p < d[S + E]) && (m = S, w = d[S + E] - d[S]) : (f || p >= d[S]) && (m = S, w = d[d.length - 1] - d[d.length - 2]);
|
|
5139
5139
|
}
|
|
5140
|
-
let
|
|
5141
|
-
l.rewind && (e.isBeginning ?
|
|
5142
|
-
const
|
|
5143
|
-
if (
|
|
5140
|
+
let x = null, v = null;
|
|
5141
|
+
l.rewind && (e.isBeginning ? v = l.virtual && l.virtual.enabled && e.virtual ? e.virtual.slides.length - 1 : e.slides.length - 1 : e.isEnd && (x = 0));
|
|
5142
|
+
const g = (p - d[m]) / w, y = m < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
|
|
5143
|
+
if (u > l.longSwipesMs) {
|
|
5144
5144
|
if (!l.longSwipes) {
|
|
5145
5145
|
e.slideTo(e.activeIndex);
|
|
5146
5146
|
return;
|
|
5147
5147
|
}
|
|
5148
|
-
e.swipeDirection === "next" && (
|
|
5148
|
+
e.swipeDirection === "next" && (g >= l.longSwipesRatio ? e.slideTo(l.rewind && e.isEnd ? x : m + y) : e.slideTo(m)), e.swipeDirection === "prev" && (g > 1 - l.longSwipesRatio ? e.slideTo(m + y) : v !== null && g < 0 && Math.abs(g) > l.longSwipesRatio ? e.slideTo(v) : e.slideTo(m));
|
|
5149
5149
|
} else {
|
|
5150
5150
|
if (!l.shortSwipes) {
|
|
5151
5151
|
e.slideTo(e.activeIndex);
|
|
5152
5152
|
return;
|
|
5153
5153
|
}
|
|
5154
|
-
e.navigation && (n.target === e.navigation.nextEl || n.target === e.navigation.prevEl) ? n.target === e.navigation.nextEl ? e.slideTo(m +
|
|
5154
|
+
e.navigation && (n.target === e.navigation.nextEl || n.target === e.navigation.prevEl) ? n.target === e.navigation.nextEl ? e.slideTo(m + y) : e.slideTo(m) : (e.swipeDirection === "next" && e.slideTo(x !== null ? x : m + y), e.swipeDirection === "prev" && e.slideTo(v !== null ? v : m));
|
|
5155
5155
|
}
|
|
5156
5156
|
}
|
|
5157
5157
|
function sn() {
|
|
@@ -5258,20 +5258,20 @@ function Fd() {
|
|
|
5258
5258
|
if (!a || a && Object.keys(a).length === 0) return;
|
|
5259
5259
|
const l = r.getBreakpoint(a, r.params.breakpointsBase, r.el);
|
|
5260
5260
|
if (!l || r.currentBreakpoint === l) return;
|
|
5261
|
-
const s = (l in a ? a[l] : void 0) || r.originalParams, d = on(r, n), c = on(r, s), h = r.params.grabCursor,
|
|
5262
|
-
d && !c ? (i.classList.remove(`${n.containerModifierClass}grid`, `${n.containerModifierClass}grid-column`), r.emitContainerClasses()) : !d && c && (i.classList.add(`${n.containerModifierClass}grid`), (s.grid.fill && s.grid.fill === "column" || !s.grid.fill && n.grid.fill === "column") && i.classList.add(`${n.containerModifierClass}grid-column`), r.emitContainerClasses()), h && !
|
|
5263
|
-
if (typeof s[
|
|
5264
|
-
const
|
|
5265
|
-
|
|
5261
|
+
const s = (l in a ? a[l] : void 0) || r.originalParams, d = on(r, n), c = on(r, s), h = r.params.grabCursor, u = s.grabCursor, p = n.enabled;
|
|
5262
|
+
d && !c ? (i.classList.remove(`${n.containerModifierClass}grid`, `${n.containerModifierClass}grid-column`), r.emitContainerClasses()) : !d && c && (i.classList.add(`${n.containerModifierClass}grid`), (s.grid.fill && s.grid.fill === "column" || !s.grid.fill && n.grid.fill === "column") && i.classList.add(`${n.containerModifierClass}grid-column`), r.emitContainerClasses()), h && !u ? r.unsetGrabCursor() : !h && u && r.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((g) => {
|
|
5263
|
+
if (typeof s[g] > "u") return;
|
|
5264
|
+
const y = n[g] && n[g].enabled, S = s[g] && s[g].enabled;
|
|
5265
|
+
y && !S && r[g].disable(), !y && S && r[g].enable();
|
|
5266
5266
|
});
|
|
5267
|
-
const
|
|
5268
|
-
|
|
5269
|
-
const
|
|
5267
|
+
const f = s.direction && s.direction !== n.direction, m = n.loop && (s.slidesPerView !== n.slidesPerView || f), w = n.loop;
|
|
5268
|
+
f && t && r.changeDirection(), ie(r.params, s);
|
|
5269
|
+
const x = r.params.enabled, v = r.params.loop;
|
|
5270
5270
|
Object.assign(r, {
|
|
5271
5271
|
allowTouchMove: r.params.allowTouchMove,
|
|
5272
5272
|
allowSlideNext: r.params.allowSlideNext,
|
|
5273
5273
|
allowSlidePrev: r.params.allowSlidePrev
|
|
5274
|
-
}), p && !
|
|
5274
|
+
}), p && !x ? r.disable() : !p && x && r.enable(), r.currentBreakpoint = l, r.emit("_beforeBreakpoint", s), t && (m ? (r.loopDestroy(), r.loopCreate(e), r.updateSlides()) : !w && v ? (r.loopCreate(e), r.updateSlides()) : w && !v && r.loopDestroy()), r.emit("breakpoint", s);
|
|
5275
5275
|
}
|
|
5276
5276
|
function zd(r, e, t) {
|
|
5277
5277
|
if (e === void 0 && (e = "window"), !r || e === "container" && !t) return;
|
|
@@ -5531,10 +5531,10 @@ let Ar = class Te {
|
|
|
5531
5531
|
if (t.el && typeof t.el == "string" && l.querySelectorAll(t.el).length > 1) {
|
|
5532
5532
|
const c = [];
|
|
5533
5533
|
return l.querySelectorAll(t.el).forEach((h) => {
|
|
5534
|
-
const
|
|
5534
|
+
const u = ie({}, t, {
|
|
5535
5535
|
el: h
|
|
5536
5536
|
});
|
|
5537
|
-
c.push(new Te(
|
|
5537
|
+
c.push(new Te(u));
|
|
5538
5538
|
}), c;
|
|
5539
5539
|
}
|
|
5540
5540
|
const o = this;
|
|
@@ -5707,11 +5707,11 @@ let Ar = class Te {
|
|
|
5707
5707
|
let c = 1;
|
|
5708
5708
|
if (typeof i.slidesPerView == "number") return i.slidesPerView;
|
|
5709
5709
|
if (i.centeredSlides) {
|
|
5710
|
-
let h = a[d] ? Math.ceil(a[d].swiperSlideSize) : 0,
|
|
5710
|
+
let h = a[d] ? Math.ceil(a[d].swiperSlideSize) : 0, u;
|
|
5711
5711
|
for (let p = d + 1; p < a.length; p += 1)
|
|
5712
|
-
a[p] && !
|
|
5712
|
+
a[p] && !u && (h += Math.ceil(a[p].swiperSlideSize), c += 1, h > s && (u = !0));
|
|
5713
5713
|
for (let p = d - 1; p >= 0; p -= 1)
|
|
5714
|
-
a[p] && !
|
|
5714
|
+
a[p] && !u && (h += a[p].swiperSlideSize, c += 1, h > s && (u = !0));
|
|
5715
5715
|
} else if (e === "current")
|
|
5716
5716
|
for (let h = d + 1; h < a.length; h += 1)
|
|
5717
5717
|
(t ? l[h] + o[h] - l[d] < s : l[h] - l[d] < s) && (c += 1);
|
|
@@ -5988,27 +5988,27 @@ function qd(r) {
|
|
|
5988
5988
|
scrollbarEl: o,
|
|
5989
5989
|
paginationEl: s
|
|
5990
5990
|
} = r;
|
|
5991
|
-
const d = i.filter((
|
|
5991
|
+
const d = i.filter((C) => C !== "children" && C !== "direction" && C !== "wrapperClass"), {
|
|
5992
5992
|
params: c,
|
|
5993
5993
|
pagination: h,
|
|
5994
|
-
navigation:
|
|
5994
|
+
navigation: u,
|
|
5995
5995
|
scrollbar: p,
|
|
5996
|
-
virtual:
|
|
5996
|
+
virtual: f,
|
|
5997
5997
|
thumbs: m
|
|
5998
5998
|
} = e;
|
|
5999
|
-
let w,
|
|
6000
|
-
i.includes("thumbs") && n.thumbs && n.thumbs.swiper && !n.thumbs.swiper.destroyed && c.thumbs && (!c.thumbs.swiper || c.thumbs.swiper.destroyed) && (w = !0), i.includes("controller") && n.controller && n.controller.control && c.controller && !c.controller.control && (
|
|
6001
|
-
const N = (
|
|
6002
|
-
e[
|
|
5999
|
+
let w, x, v, g, y, S, E, L;
|
|
6000
|
+
i.includes("thumbs") && n.thumbs && n.thumbs.swiper && !n.thumbs.swiper.destroyed && c.thumbs && (!c.thumbs.swiper || c.thumbs.swiper.destroyed) && (w = !0), i.includes("controller") && n.controller && n.controller.control && c.controller && !c.controller.control && (x = !0), i.includes("pagination") && n.pagination && (n.pagination.el || s) && (c.pagination || c.pagination === !1) && h && !h.el && (v = !0), i.includes("scrollbar") && n.scrollbar && (n.scrollbar.el || o) && (c.scrollbar || c.scrollbar === !1) && p && !p.el && (g = !0), i.includes("navigation") && n.navigation && (n.navigation.prevEl || l) && (n.navigation.nextEl || a) && (c.navigation || c.navigation === !1) && u && !u.prevEl && !u.nextEl && (y = !0);
|
|
6001
|
+
const N = (C) => {
|
|
6002
|
+
e[C] && (e[C].destroy(), C === "navigation" ? (e.isElement && (e[C].prevEl.remove(), e[C].nextEl.remove()), c[C].prevEl = void 0, c[C].nextEl = void 0, e[C].prevEl = void 0, e[C].nextEl = void 0) : (e.isElement && e[C].el.remove(), c[C].el = void 0, e[C].el = void 0));
|
|
6003
6003
|
};
|
|
6004
|
-
i.includes("loop") && e.isElement && (c.loop && !n.loop ? S = !0 : !c.loop && n.loop ?
|
|
6005
|
-
if (Ve(c[
|
|
6006
|
-
Object.assign(c[
|
|
6004
|
+
i.includes("loop") && e.isElement && (c.loop && !n.loop ? S = !0 : !c.loop && n.loop ? E = !0 : L = !0), d.forEach((C) => {
|
|
6005
|
+
if (Ve(c[C]) && Ve(n[C]))
|
|
6006
|
+
Object.assign(c[C], n[C]), (C === "navigation" || C === "pagination" || C === "scrollbar") && "enabled" in n[C] && !n[C].enabled && N(C);
|
|
6007
6007
|
else {
|
|
6008
|
-
const T = n[
|
|
6009
|
-
(T === !0 || T === !1) && (
|
|
6008
|
+
const T = n[C];
|
|
6009
|
+
(T === !0 || T === !1) && (C === "navigation" || C === "pagination" || C === "scrollbar") ? T === !1 && N(C) : c[C] = n[C];
|
|
6010
6010
|
}
|
|
6011
|
-
}), d.includes("controller") && !
|
|
6011
|
+
}), d.includes("controller") && !x && e.controller && e.controller.control && c.controller && c.controller.control && (e.controller.control = c.controller.control), i.includes("children") && t && f && c.virtual.enabled ? (f.slides = t, f.update(!0)) : i.includes("virtual") && f && c.virtual.enabled && (t && (f.slides = t), f.update(!0)), i.includes("children") && t && c.loop && (L = !0), w && m.init() && m.update(!0), x && (e.controller.control = c.controller.control), v && (e.isElement && (!s || typeof s == "string") && (s = document.createElement("div"), s.classList.add("swiper-pagination"), s.part.add("pagination"), e.el.appendChild(s)), s && (c.pagination.el = s), h.init(), h.render(), h.update()), g && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-scrollbar"), o.part.add("scrollbar"), e.el.appendChild(o)), o && (c.scrollbar.el = o), p.init(), p.updateSize(), p.setTranslate()), y && (e.isElement && ((!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-button-next"), a.innerHTML = e.hostEl.constructor.nextButtonSvg, a.part.add("button-next"), e.el.appendChild(a)), (!l || typeof l == "string") && (l = document.createElement("div"), l.classList.add("swiper-button-prev"), l.innerHTML = e.hostEl.constructor.prevButtonSvg, l.part.add("button-prev"), e.el.appendChild(l))), a && (c.navigation.nextEl = a), l && (c.navigation.prevEl = l), u.init(), u.update()), i.includes("allowSlideNext") && (e.allowSlideNext = n.allowSlideNext), i.includes("allowSlidePrev") && (e.allowSlidePrev = n.allowSlidePrev), i.includes("direction") && e.changeDirection(n.direction, !1), (S || L) && e.loopDestroy(), (E || L) && e.loopCreate(), e.update();
|
|
6012
6012
|
}
|
|
6013
6013
|
function Ud(r, e) {
|
|
6014
6014
|
r === void 0 && (r = {}), e === void 0 && (e = !0);
|
|
@@ -6138,16 +6138,16 @@ const ln = /* @__PURE__ */ wn(null), eu = /* @__PURE__ */ wn(null), da = /* @__P
|
|
|
6138
6138
|
onSwiper: l,
|
|
6139
6139
|
...o
|
|
6140
6140
|
} = r === void 0 ? {} : r, s = !1;
|
|
6141
|
-
const [d, c] = Fe("swiper"), [h,
|
|
6141
|
+
const [d, c] = Fe("swiper"), [h, u] = Fe(null), [p, f] = Fe(!1), m = de(!1), w = de(null), x = de(null), v = de(null), g = de(null), y = de(null), S = de(null), E = de(null), L = de(null), {
|
|
6142
6142
|
params: N,
|
|
6143
|
-
passedParams:
|
|
6143
|
+
passedParams: C,
|
|
6144
6144
|
rest: T,
|
|
6145
6145
|
events: M
|
|
6146
6146
|
} = Ud(o), {
|
|
6147
6147
|
slides: A,
|
|
6148
6148
|
slots: P
|
|
6149
|
-
} = Zd(a),
|
|
6150
|
-
|
|
6149
|
+
} = Zd(a), k = () => {
|
|
6150
|
+
f(!p);
|
|
6151
6151
|
};
|
|
6152
6152
|
Object.assign(N.on, {
|
|
6153
6153
|
_containerClasses(G, Y) {
|
|
@@ -6159,64 +6159,64 @@ const ln = /* @__PURE__ */ wn(null), eu = /* @__PURE__ */ wn(null), da = /* @__P
|
|
|
6159
6159
|
const G = {
|
|
6160
6160
|
...N
|
|
6161
6161
|
};
|
|
6162
|
-
if (delete G.wrapperClass,
|
|
6163
|
-
|
|
6162
|
+
if (delete G.wrapperClass, x.current = new Ar(G), x.current.virtual && x.current.params.virtual.enabled) {
|
|
6163
|
+
x.current.virtual.slides = A;
|
|
6164
6164
|
const Y = {
|
|
6165
6165
|
cache: !1,
|
|
6166
6166
|
slides: A,
|
|
6167
|
-
renderExternal:
|
|
6167
|
+
renderExternal: u,
|
|
6168
6168
|
renderExternalUpdate: !1
|
|
6169
6169
|
};
|
|
6170
|
-
qe(
|
|
6170
|
+
qe(x.current.params.virtual, Y), qe(x.current.originalParams.virtual, Y);
|
|
6171
6171
|
}
|
|
6172
6172
|
};
|
|
6173
|
-
w.current || R(),
|
|
6173
|
+
w.current || R(), x.current && x.current.on("_beforeBreakpoint", k);
|
|
6174
6174
|
const X = () => {
|
|
6175
|
-
s || !M || !
|
|
6176
|
-
|
|
6175
|
+
s || !M || !x.current || Object.keys(M).forEach((G) => {
|
|
6176
|
+
x.current.on(G, M[G]);
|
|
6177
6177
|
});
|
|
6178
6178
|
}, fe = () => {
|
|
6179
|
-
!M || !
|
|
6180
|
-
|
|
6179
|
+
!M || !x.current || Object.keys(M).forEach((G) => {
|
|
6180
|
+
x.current.off(G, M[G]);
|
|
6181
6181
|
});
|
|
6182
6182
|
};
|
|
6183
6183
|
Xe(() => () => {
|
|
6184
|
-
|
|
6184
|
+
x.current && x.current.off("_beforeBreakpoint", k);
|
|
6185
6185
|
}), Xe(() => {
|
|
6186
|
-
!m.current &&
|
|
6186
|
+
!m.current && x.current && (x.current.emitSlidesClasses(), m.current = !0);
|
|
6187
6187
|
}), lt(() => {
|
|
6188
6188
|
if (e && (e.current = w.current), !!w.current)
|
|
6189
|
-
return
|
|
6189
|
+
return x.current.destroyed && R(), Xd({
|
|
6190
6190
|
el: w.current,
|
|
6191
|
-
nextEl:
|
|
6191
|
+
nextEl: y.current,
|
|
6192
6192
|
prevEl: S.current,
|
|
6193
|
-
paginationEl:
|
|
6194
|
-
scrollbarEl:
|
|
6195
|
-
swiper:
|
|
6196
|
-
}, N), l && !
|
|
6197
|
-
|
|
6193
|
+
paginationEl: E.current,
|
|
6194
|
+
scrollbarEl: L.current,
|
|
6195
|
+
swiper: x.current
|
|
6196
|
+
}, N), l && !x.current.destroyed && l(x.current), () => {
|
|
6197
|
+
x.current && !x.current.destroyed && x.current.destroy(!0, !1);
|
|
6198
6198
|
};
|
|
6199
6199
|
}, []), lt(() => {
|
|
6200
6200
|
X();
|
|
6201
|
-
const G = Qd(
|
|
6202
|
-
return
|
|
6203
|
-
swiper:
|
|
6201
|
+
const G = Qd(C, v.current, A, g.current, (Y) => Y.key);
|
|
6202
|
+
return v.current = C, g.current = A, G.length && x.current && !x.current.destroyed && qd({
|
|
6203
|
+
swiper: x.current,
|
|
6204
6204
|
slides: A,
|
|
6205
|
-
passedParams:
|
|
6205
|
+
passedParams: C,
|
|
6206
6206
|
changedParams: G,
|
|
6207
|
-
nextEl:
|
|
6207
|
+
nextEl: y.current,
|
|
6208
6208
|
prevEl: S.current,
|
|
6209
|
-
scrollbarEl:
|
|
6210
|
-
paginationEl:
|
|
6209
|
+
scrollbarEl: L.current,
|
|
6210
|
+
paginationEl: E.current
|
|
6211
6211
|
}), () => {
|
|
6212
6212
|
fe();
|
|
6213
6213
|
};
|
|
6214
6214
|
}), lt(() => {
|
|
6215
|
-
Kd(
|
|
6215
|
+
Kd(x.current);
|
|
6216
6216
|
}, [h]);
|
|
6217
6217
|
function B() {
|
|
6218
|
-
return N.virtual ? Jd(
|
|
6219
|
-
swiper:
|
|
6218
|
+
return N.virtual ? Jd(x.current, A, h) : A.map((G, Y) => /* @__PURE__ */ V.cloneElement(G, {
|
|
6219
|
+
swiper: x.current,
|
|
6220
6220
|
swiperSlideIndex: Y
|
|
6221
6221
|
}));
|
|
6222
6222
|
}
|
|
@@ -6224,20 +6224,20 @@ const ln = /* @__PURE__ */ wn(null), eu = /* @__PURE__ */ wn(null), da = /* @__P
|
|
|
6224
6224
|
ref: w,
|
|
6225
6225
|
className: oa(`${d}${t ? ` ${t}` : ""}`)
|
|
6226
6226
|
}, T), /* @__PURE__ */ V.createElement(eu.Provider, {
|
|
6227
|
-
value:
|
|
6227
|
+
value: x.current
|
|
6228
6228
|
}, P["container-start"], /* @__PURE__ */ V.createElement(i, {
|
|
6229
6229
|
className: Yd(N.wrapperClass)
|
|
6230
6230
|
}, P["wrapper-start"], B(), P["wrapper-end"]), ia(N) && /* @__PURE__ */ V.createElement(V.Fragment, null, /* @__PURE__ */ V.createElement("div", {
|
|
6231
6231
|
ref: S,
|
|
6232
6232
|
className: "swiper-button-prev"
|
|
6233
6233
|
}), /* @__PURE__ */ V.createElement("div", {
|
|
6234
|
-
ref:
|
|
6234
|
+
ref: y,
|
|
6235
6235
|
className: "swiper-button-next"
|
|
6236
6236
|
})), sa(N) && /* @__PURE__ */ V.createElement("div", {
|
|
6237
|
-
ref:
|
|
6237
|
+
ref: L,
|
|
6238
6238
|
className: "swiper-scrollbar"
|
|
6239
6239
|
}), aa(N) && /* @__PURE__ */ V.createElement("div", {
|
|
6240
|
-
ref:
|
|
6240
|
+
ref: E,
|
|
6241
6241
|
className: "swiper-pagination"
|
|
6242
6242
|
}), P["container-end"]));
|
|
6243
6243
|
});
|
|
@@ -6254,14 +6254,14 @@ const ua = /* @__PURE__ */ vn(function(r, e) {
|
|
|
6254
6254
|
swiperSlideIndex: d,
|
|
6255
6255
|
...c
|
|
6256
6256
|
} = r === void 0 ? {} : r;
|
|
6257
|
-
const h = de(null), [
|
|
6258
|
-
function w(
|
|
6259
|
-
S === h.current && p(
|
|
6257
|
+
const h = de(null), [u, p] = Fe("swiper-slide"), [f, m] = Fe(!1);
|
|
6258
|
+
function w(y, S, E) {
|
|
6259
|
+
S === h.current && p(E);
|
|
6260
6260
|
}
|
|
6261
6261
|
lt(() => {
|
|
6262
6262
|
if (typeof d < "u" && (h.current.swiperSlideIndex = d), e && (e.current = h.current), !(!h.current || !a)) {
|
|
6263
6263
|
if (a.destroyed) {
|
|
6264
|
-
|
|
6264
|
+
u !== "swiper-slide" && p("swiper-slide");
|
|
6265
6265
|
return;
|
|
6266
6266
|
}
|
|
6267
6267
|
return a.on("_slideClass", w), () => {
|
|
@@ -6271,29 +6271,29 @@ const ua = /* @__PURE__ */ vn(function(r, e) {
|
|
|
6271
6271
|
}), lt(() => {
|
|
6272
6272
|
a && h.current && !a.destroyed && p(a.getSlideClasses(h.current));
|
|
6273
6273
|
}, [a]);
|
|
6274
|
-
const
|
|
6275
|
-
isActive:
|
|
6276
|
-
isVisible:
|
|
6277
|
-
isPrev:
|
|
6278
|
-
isNext:
|
|
6279
|
-
},
|
|
6274
|
+
const x = {
|
|
6275
|
+
isActive: u.indexOf("swiper-slide-active") >= 0,
|
|
6276
|
+
isVisible: u.indexOf("swiper-slide-visible") >= 0,
|
|
6277
|
+
isPrev: u.indexOf("swiper-slide-prev") >= 0,
|
|
6278
|
+
isNext: u.indexOf("swiper-slide-next") >= 0
|
|
6279
|
+
}, v = () => typeof n == "function" ? n(x) : n, g = () => {
|
|
6280
6280
|
m(!0);
|
|
6281
6281
|
};
|
|
6282
6282
|
return /* @__PURE__ */ V.createElement(t, kt({
|
|
6283
6283
|
ref: h,
|
|
6284
|
-
className: oa(`${
|
|
6284
|
+
className: oa(`${u}${i ? ` ${i}` : ""}`),
|
|
6285
6285
|
"data-swiper-slide-index": s,
|
|
6286
|
-
onLoad:
|
|
6286
|
+
onLoad: g
|
|
6287
6287
|
}, c), l && /* @__PURE__ */ V.createElement(ln.Provider, {
|
|
6288
|
-
value:
|
|
6288
|
+
value: x
|
|
6289
6289
|
}, /* @__PURE__ */ V.createElement("div", {
|
|
6290
6290
|
className: "swiper-zoom-container",
|
|
6291
6291
|
"data-swiper-zoom": typeof l == "number" ? l : void 0
|
|
6292
|
-
},
|
|
6292
|
+
}, v(), o && !f && /* @__PURE__ */ V.createElement("div", {
|
|
6293
6293
|
className: "swiper-lazy-preloader"
|
|
6294
6294
|
}))), !l && /* @__PURE__ */ V.createElement(ln.Provider, {
|
|
6295
|
-
value:
|
|
6296
|
-
},
|
|
6295
|
+
value: x
|
|
6296
|
+
}, v(), o && !f && /* @__PURE__ */ V.createElement("div", {
|
|
6297
6297
|
className: "swiper-lazy-preloader"
|
|
6298
6298
|
})));
|
|
6299
6299
|
});
|
|
@@ -6308,57 +6308,59 @@ const Uu = ({
|
|
|
6308
6308
|
pagination: l = !1,
|
|
6309
6309
|
navigation: o = !1,
|
|
6310
6310
|
className: s = "",
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6311
|
+
id: d,
|
|
6312
|
+
slideClassName: c = "",
|
|
6313
|
+
effect: h = "slide",
|
|
6314
|
+
style: u,
|
|
6315
|
+
onChange: p,
|
|
6316
|
+
currentIndex: f
|
|
6316
6317
|
}) => {
|
|
6317
|
-
const
|
|
6318
|
+
const m = de(null);
|
|
6318
6319
|
Xe(() => {
|
|
6319
6320
|
function g() {
|
|
6320
|
-
|
|
6321
|
+
m.current && m.current.slideTo(0);
|
|
6321
6322
|
}
|
|
6322
6323
|
return window.addEventListener("resize", g), () => {
|
|
6323
6324
|
window.removeEventListener("resize", g);
|
|
6324
6325
|
};
|
|
6325
6326
|
}, []);
|
|
6326
|
-
const
|
|
6327
|
+
const w = Za(() => {
|
|
6327
6328
|
if (!a || a <= 1) return r;
|
|
6328
6329
|
const g = Math.floor(a);
|
|
6329
|
-
function
|
|
6330
|
-
for (;
|
|
6331
|
-
[
|
|
6332
|
-
return
|
|
6330
|
+
function y(N, C) {
|
|
6331
|
+
for (; C; )
|
|
6332
|
+
[N, C] = [C, N % C];
|
|
6333
|
+
return N;
|
|
6333
6334
|
}
|
|
6334
|
-
const
|
|
6335
|
-
for (let
|
|
6336
|
-
|
|
6337
|
-
return [...r, ...
|
|
6338
|
-
}, [r, a]),
|
|
6339
|
-
|
|
6340
|
-
},
|
|
6335
|
+
const E = Math.floor(r.length * g / y(r.length, g)) - r.length, L = [];
|
|
6336
|
+
for (let N = 0; N < E; N++)
|
|
6337
|
+
L.push(r[N % r.length]);
|
|
6338
|
+
return [...r, ...L];
|
|
6339
|
+
}, [r, a]), x = (g) => {
|
|
6340
|
+
p && p(g);
|
|
6341
|
+
}, v = (g) => typeof g == "object";
|
|
6341
6342
|
return Xe(() => {
|
|
6342
|
-
|
|
6343
|
-
}, [
|
|
6343
|
+
m.current && typeof f == "number" && m.current.slideTo(f);
|
|
6344
|
+
}, [f]), /* @__PURE__ */ _(
|
|
6344
6345
|
da,
|
|
6345
6346
|
{
|
|
6346
6347
|
modules: [Ic, Nc, Ac, _c],
|
|
6347
6348
|
onSwiper: (g) => {
|
|
6348
|
-
|
|
6349
|
+
m.current = g;
|
|
6349
6350
|
},
|
|
6351
|
+
id: d,
|
|
6350
6352
|
loop: e,
|
|
6351
|
-
effect:
|
|
6353
|
+
effect: h,
|
|
6352
6354
|
autoplay: t === !0 ? { delay: 3e3 } : t,
|
|
6353
6355
|
spaceBetween: n,
|
|
6354
6356
|
slidesPerView: i,
|
|
6355
6357
|
slidesPerGroup: a ? Math.floor(a) : void 0,
|
|
6356
6358
|
pagination: l,
|
|
6357
6359
|
className: Q("relative", s),
|
|
6358
|
-
style:
|
|
6359
|
-
onSlideChange:
|
|
6360
|
+
style: u,
|
|
6361
|
+
onSlideChange: x,
|
|
6360
6362
|
children: [
|
|
6361
|
-
|
|
6363
|
+
w.map((g, y) => /* @__PURE__ */ b(ua, { style: { height: "auto" }, className: Q(c), children: g }, y)),
|
|
6362
6364
|
o && mc && /* @__PURE__ */ _(Dt, { children: [
|
|
6363
6365
|
/* @__PURE__ */ b(
|
|
6364
6366
|
Ue,
|
|
@@ -6367,9 +6369,9 @@ const Uu = ({
|
|
|
6367
6369
|
variant: "text",
|
|
6368
6370
|
onClick: () => {
|
|
6369
6371
|
var g;
|
|
6370
|
-
return (g =
|
|
6372
|
+
return (g = m.current) == null ? void 0 : g.slidePrev();
|
|
6371
6373
|
},
|
|
6372
|
-
children: o === !0 ? /* @__PURE__ */ b(St.ArrowLeft, { size: "32", fill: _e.white }) :
|
|
6374
|
+
children: o === !0 ? /* @__PURE__ */ b(St.ArrowLeft, { size: "32", fill: _e.white }) : v(o) && o.prevEl
|
|
6373
6375
|
}
|
|
6374
6376
|
),
|
|
6375
6377
|
/* @__PURE__ */ b(
|
|
@@ -6379,9 +6381,9 @@ const Uu = ({
|
|
|
6379
6381
|
className: "absolute right-0 top-1/2 z-20 -translate-y-1/2 cursor-pointer",
|
|
6380
6382
|
onClick: () => {
|
|
6381
6383
|
var g;
|
|
6382
|
-
return (g =
|
|
6384
|
+
return (g = m.current) == null ? void 0 : g.slideNext();
|
|
6383
6385
|
},
|
|
6384
|
-
children: o === !0 ? /* @__PURE__ */ b(St.ArrowRight, { size: "32", fill: _e.white }) :
|
|
6386
|
+
children: o === !0 ? /* @__PURE__ */ b(St.ArrowRight, { size: "32", fill: _e.white }) : v(o) && o.nextEl
|
|
6385
6387
|
}
|
|
6386
6388
|
)
|
|
6387
6389
|
] })
|
|
@@ -6426,7 +6428,7 @@ const Xu = tu({
|
|
|
6426
6428
|
}) => {
|
|
6427
6429
|
const {
|
|
6428
6430
|
field: h,
|
|
6429
|
-
fieldState: { error:
|
|
6431
|
+
fieldState: { error: u }
|
|
6430
6432
|
} = Ke({
|
|
6431
6433
|
name: r,
|
|
6432
6434
|
control: e,
|
|
@@ -6446,14 +6448,14 @@ const Xu = tu({
|
|
|
6446
6448
|
...h,
|
|
6447
6449
|
id: r,
|
|
6448
6450
|
checked: o === "boolean" ? h.value : h.value === l,
|
|
6449
|
-
onCheckedChange: (
|
|
6450
|
-
h.onChange(o === "boolean" ?
|
|
6451
|
+
onCheckedChange: (f) => {
|
|
6452
|
+
h.onChange(o === "boolean" ? f : f ? l : ""), d && d();
|
|
6451
6453
|
}
|
|
6452
6454
|
}
|
|
6453
6455
|
),
|
|
6454
6456
|
/* @__PURE__ */ b(wr, { className: "cursor-pointer", htmlFor: r, children: l })
|
|
6455
6457
|
] }) }),
|
|
6456
|
-
s && /* @__PURE__ */ b(Ge, { children:
|
|
6458
|
+
s && /* @__PURE__ */ b(Ge, { children: u == null ? void 0 : u.message })
|
|
6457
6459
|
] })
|
|
6458
6460
|
}
|
|
6459
6461
|
);
|
|
@@ -6472,41 +6474,41 @@ const Xu = tu({
|
|
|
6472
6474
|
}) => {
|
|
6473
6475
|
const {
|
|
6474
6476
|
field: h,
|
|
6475
|
-
fieldState: { error:
|
|
6477
|
+
fieldState: { error: u }
|
|
6476
6478
|
} = Ke({
|
|
6477
6479
|
name: r,
|
|
6478
6480
|
control: e,
|
|
6479
6481
|
rules: c
|
|
6480
|
-
}), p = (w,
|
|
6481
|
-
var
|
|
6482
|
-
h.onChange(
|
|
6483
|
-
},
|
|
6484
|
-
var
|
|
6482
|
+
}), p = (w, x) => {
|
|
6483
|
+
var v;
|
|
6484
|
+
h.onChange(x ? [...h.value || [], w] : (v = h.value) == null ? void 0 : v.filter((g) => g !== w)), d == null || d();
|
|
6485
|
+
}, f = () => a.map((w) => {
|
|
6486
|
+
var x;
|
|
6485
6487
|
return /* @__PURE__ */ _(ye, { className: "flex flex-row items-center", children: [
|
|
6486
6488
|
/* @__PURE__ */ b(xe, { children: /* @__PURE__ */ b(
|
|
6487
6489
|
pn,
|
|
6488
6490
|
{
|
|
6489
6491
|
id: w.value + r,
|
|
6490
|
-
checked: (
|
|
6491
|
-
onCheckedChange: (
|
|
6492
|
+
checked: (x = h.value) == null ? void 0 : x.includes(w.value),
|
|
6493
|
+
onCheckedChange: (v) => p(w.value, v)
|
|
6492
6494
|
}
|
|
6493
6495
|
) }),
|
|
6494
6496
|
/* @__PURE__ */ b(wr, { htmlFor: w.value + r, className: "cursor-pointer", children: w.text })
|
|
6495
6497
|
] }, w.value);
|
|
6496
|
-
}), m = () => a.map(({ value: w, text:
|
|
6497
|
-
var
|
|
6498
|
-
const
|
|
6498
|
+
}), m = () => a.map(({ value: w, text: x }) => {
|
|
6499
|
+
var g;
|
|
6500
|
+
const v = (g = h.value) == null ? void 0 : g.includes(w);
|
|
6499
6501
|
return /* @__PURE__ */ b(ye, { className: "flex flex-row items-start gap-2", children: /* @__PURE__ */ b(xe, { children: /* @__PURE__ */ b(
|
|
6500
6502
|
Ue,
|
|
6501
6503
|
{
|
|
6502
6504
|
shape: "rounded",
|
|
6503
6505
|
size: "xs",
|
|
6504
|
-
theme:
|
|
6505
|
-
variant:
|
|
6506
|
-
onClick: (
|
|
6507
|
-
|
|
6506
|
+
theme: v ? "primary" : "secondary",
|
|
6507
|
+
variant: v ? "solid" : "outline",
|
|
6508
|
+
onClick: (y) => {
|
|
6509
|
+
y.preventDefault(), p(w, !v);
|
|
6508
6510
|
},
|
|
6509
|
-
children:
|
|
6511
|
+
children: x
|
|
6510
6512
|
}
|
|
6511
6513
|
) }) }, w);
|
|
6512
6514
|
});
|
|
@@ -6517,9 +6519,9 @@ const Xu = tu({
|
|
|
6517
6519
|
name: r,
|
|
6518
6520
|
render: () => /* @__PURE__ */ _(ye, { children: [
|
|
6519
6521
|
(n || t || i) && /* @__PURE__ */ b(We, { required: l, heading: t, label: n, description: i }),
|
|
6520
|
-
/* @__PURE__ */ b(xe, { children: s === "checkbox" ? /* @__PURE__ */ b("div", { className: "space-y-4", children:
|
|
6522
|
+
/* @__PURE__ */ b(xe, { children: s === "checkbox" ? /* @__PURE__ */ b("div", { className: "space-y-4", children: f() }) : /* @__PURE__ */ b("ul", { className: "flex w-full flex-wrap gap-2 text-sm font-normal", children: m() }) }),
|
|
6521
6523
|
o,
|
|
6522
|
-
/* @__PURE__ */ b(Ge, { children:
|
|
6524
|
+
/* @__PURE__ */ b(Ge, { children: u == null ? void 0 : u.message })
|
|
6523
6525
|
] })
|
|
6524
6526
|
}
|
|
6525
6527
|
);
|
|
@@ -6561,35 +6563,35 @@ const Xu = tu({
|
|
|
6561
6563
|
rules: h
|
|
6562
6564
|
}) => {
|
|
6563
6565
|
const {
|
|
6564
|
-
field:
|
|
6566
|
+
field: u,
|
|
6565
6567
|
fieldState: { error: p }
|
|
6566
6568
|
} = Ke({
|
|
6567
6569
|
name: r,
|
|
6568
6570
|
control: e,
|
|
6569
6571
|
rules: h
|
|
6570
|
-
}),
|
|
6572
|
+
}), f = n || t || i;
|
|
6571
6573
|
return /* @__PURE__ */ b(
|
|
6572
6574
|
Be,
|
|
6573
6575
|
{
|
|
6574
6576
|
control: e,
|
|
6575
6577
|
name: r,
|
|
6576
6578
|
render: () => /* @__PURE__ */ _(ye, { className: "relative", children: [
|
|
6577
|
-
|
|
6579
|
+
f && /* @__PURE__ */ b(We, { required: l, heading: t, label: n, description: i }),
|
|
6578
6580
|
/* @__PURE__ */ b(xe, { children: /* @__PURE__ */ _("div", { className: Q("flex max-w-screen-sm items-center gap-2", o), children: [
|
|
6579
6581
|
/* @__PURE__ */ b(
|
|
6580
6582
|
Va,
|
|
6581
6583
|
{
|
|
6582
6584
|
onValueChange: (m) => {
|
|
6583
|
-
|
|
6585
|
+
u.onChange(m), c && c();
|
|
6584
6586
|
},
|
|
6585
|
-
value:
|
|
6587
|
+
value: u.value,
|
|
6586
6588
|
className: Q(
|
|
6587
6589
|
d === "vertical" && "flex flex-col gap-4",
|
|
6588
6590
|
d === "horizontal" && "flex flex-wrap gap-8",
|
|
6589
6591
|
d === "grid" && "grid w-full grid-cols-2 gap-x-8 gap-y-4"
|
|
6590
6592
|
),
|
|
6591
6593
|
children: a.map((m) => /* @__PURE__ */ _(ye, { className: "flex flex-row items-center", children: [
|
|
6592
|
-
/* @__PURE__ */ b(xe, { children: /* @__PURE__ */ b(Ra, { value: m.value, id: m.text, checked: m.value ===
|
|
6594
|
+
/* @__PURE__ */ b(xe, { children: /* @__PURE__ */ b(Ra, { value: m.value, id: m.text, checked: m.value === u.value }) }),
|
|
6593
6595
|
/* @__PURE__ */ b(wr, { className: "cursor-pointer font-normal", htmlFor: m.text, children: m.text })
|
|
6594
6596
|
] }, m.key))
|
|
6595
6597
|
}
|
|
@@ -6613,49 +6615,49 @@ const Xu = tu({
|
|
|
6613
6615
|
rules: d
|
|
6614
6616
|
}) => {
|
|
6615
6617
|
const { setValue: c, getValues: h } = mn(), {
|
|
6616
|
-
field:
|
|
6618
|
+
field: u,
|
|
6617
6619
|
fieldState: { error: p }
|
|
6618
6620
|
} = Ke({
|
|
6619
6621
|
name: t,
|
|
6620
6622
|
control: l,
|
|
6621
6623
|
defaultValue: [],
|
|
6622
6624
|
rules: d
|
|
6623
|
-
}), [
|
|
6624
|
-
if (
|
|
6625
|
-
const
|
|
6626
|
-
c(t, [...
|
|
6625
|
+
}), [f, m] = Fe(""), w = () => {
|
|
6626
|
+
if (f.trim() !== "") {
|
|
6627
|
+
const y = h(t) || [];
|
|
6628
|
+
c(t, [...y, f.trim()]), m("");
|
|
6627
6629
|
}
|
|
6628
|
-
},
|
|
6629
|
-
|
|
6630
|
-
},
|
|
6630
|
+
}, x = (y) => {
|
|
6631
|
+
y.key === "Enter" && !y.nativeEvent.isComposing && (y.preventDefault(), w());
|
|
6632
|
+
}, v = (y) => {
|
|
6631
6633
|
const S = h(t) || [];
|
|
6632
|
-
S.splice(
|
|
6633
|
-
},
|
|
6634
|
+
S.splice(y, 1), c(t, S);
|
|
6635
|
+
}, g = n || e || i;
|
|
6634
6636
|
return /* @__PURE__ */ b(
|
|
6635
6637
|
Be,
|
|
6636
6638
|
{
|
|
6637
6639
|
control: l,
|
|
6638
6640
|
name: t,
|
|
6639
6641
|
render: () => /* @__PURE__ */ _(ye, { children: [
|
|
6640
|
-
|
|
6642
|
+
g && /* @__PURE__ */ b(We, { required: r, heading: e, label: n, description: i }),
|
|
6641
6643
|
/* @__PURE__ */ b(xe, { children: /* @__PURE__ */ _("div", { className: "flex flex-col gap-2", children: [
|
|
6642
|
-
|
|
6644
|
+
u.value && u.value.length > 0 && /* @__PURE__ */ b("ul", { className: Q("flex flex-col flex-wrap gap-1", o), children: u.value.map((y, S) => /* @__PURE__ */ b("li", { children: /* @__PURE__ */ b(
|
|
6643
6645
|
ze,
|
|
6644
6646
|
{
|
|
6645
6647
|
size: s,
|
|
6646
6648
|
variant: "solid-secondary-100",
|
|
6647
|
-
onClick: () =>
|
|
6649
|
+
onClick: () => v(S),
|
|
6648
6650
|
icRight: /* @__PURE__ */ b(St.Cancel, { size: "10", className: "text-grey-600" }),
|
|
6649
|
-
children: /* @__PURE__ */ b("span", { children:
|
|
6651
|
+
children: /* @__PURE__ */ b("span", { children: y })
|
|
6650
6652
|
}
|
|
6651
6653
|
) }, S)) }),
|
|
6652
6654
|
/* @__PURE__ */ _("div", { className: "flex items-center gap-2", children: [
|
|
6653
6655
|
/* @__PURE__ */ b(
|
|
6654
6656
|
br,
|
|
6655
6657
|
{
|
|
6656
|
-
value:
|
|
6657
|
-
onChange: (
|
|
6658
|
-
onKeyDown:
|
|
6658
|
+
value: f,
|
|
6659
|
+
onChange: (y) => m(y.target.value),
|
|
6660
|
+
onKeyDown: x,
|
|
6659
6661
|
className: "max-w-screen-sm",
|
|
6660
6662
|
placeholder: a,
|
|
6661
6663
|
error: !!p
|
|
@@ -6666,7 +6668,7 @@ const Xu = tu({
|
|
|
6666
6668
|
{
|
|
6667
6669
|
size: "md",
|
|
6668
6670
|
variant: "outline",
|
|
6669
|
-
disabled: !
|
|
6671
|
+
disabled: !f.trim(),
|
|
6670
6672
|
theme: "secondary",
|
|
6671
6673
|
onClick: w,
|
|
6672
6674
|
className: "whitespace-nowrap",
|
|
@@ -6692,23 +6694,23 @@ const Xu = tu({
|
|
|
6692
6694
|
unitLabelBefore: d,
|
|
6693
6695
|
inputType: c = "text",
|
|
6694
6696
|
className: h,
|
|
6695
|
-
onChange:
|
|
6697
|
+
onChange: u,
|
|
6696
6698
|
onBlur: p,
|
|
6697
|
-
icon:
|
|
6699
|
+
icon: f,
|
|
6698
6700
|
disabled: m,
|
|
6699
6701
|
errorMsg: w = !0,
|
|
6700
|
-
rules:
|
|
6702
|
+
rules: x
|
|
6701
6703
|
}) => {
|
|
6702
6704
|
const {
|
|
6703
|
-
field:
|
|
6704
|
-
formState: { errors:
|
|
6705
|
+
field: v,
|
|
6706
|
+
formState: { errors: g }
|
|
6705
6707
|
} = Ke({
|
|
6706
6708
|
name: r,
|
|
6707
6709
|
control: e,
|
|
6708
|
-
rules:
|
|
6709
|
-
}),
|
|
6710
|
-
const
|
|
6711
|
-
|
|
6710
|
+
rules: x
|
|
6711
|
+
}), y = (E) => {
|
|
6712
|
+
const L = c === "number" ? Number(E.target.value) : E.target.value;
|
|
6713
|
+
v.onChange(L), u == null || u(L);
|
|
6712
6714
|
}, S = n || t || i;
|
|
6713
6715
|
return /* @__PURE__ */ b(
|
|
6714
6716
|
Be,
|
|
@@ -6722,24 +6724,24 @@ const Xu = tu({
|
|
|
6722
6724
|
o ? /* @__PURE__ */ b(
|
|
6723
6725
|
Ba,
|
|
6724
6726
|
{
|
|
6725
|
-
...
|
|
6727
|
+
...v,
|
|
6726
6728
|
placeholder: a,
|
|
6727
6729
|
className: "h-32",
|
|
6728
6730
|
disabled: m,
|
|
6729
|
-
error: !!
|
|
6730
|
-
onChange:
|
|
6731
|
+
error: !!g[r],
|
|
6732
|
+
onChange: y
|
|
6731
6733
|
}
|
|
6732
6734
|
) : /* @__PURE__ */ b(
|
|
6733
6735
|
br,
|
|
6734
6736
|
{
|
|
6735
|
-
...
|
|
6737
|
+
...v,
|
|
6736
6738
|
type: c,
|
|
6737
6739
|
placeholder: a,
|
|
6738
6740
|
disabled: m,
|
|
6739
|
-
error: !!
|
|
6740
|
-
onChange:
|
|
6741
|
+
error: !!g[r],
|
|
6742
|
+
onChange: y,
|
|
6741
6743
|
onBlur: p,
|
|
6742
|
-
icon:
|
|
6744
|
+
icon: f,
|
|
6743
6745
|
iconPosition: "right"
|
|
6744
6746
|
}
|
|
6745
6747
|
),
|
|
@@ -6762,9 +6764,9 @@ const Xu = tu({
|
|
|
6762
6764
|
disabled: d = !1,
|
|
6763
6765
|
children: c,
|
|
6764
6766
|
urlTitle: h,
|
|
6765
|
-
rules:
|
|
6767
|
+
rules: u
|
|
6766
6768
|
}) => {
|
|
6767
|
-
const { trigger: p, setValue:
|
|
6769
|
+
const { trigger: p, setValue: f } = mn(), {
|
|
6768
6770
|
field: m,
|
|
6769
6771
|
fieldState: { error: w }
|
|
6770
6772
|
} = Ke({
|
|
@@ -6776,25 +6778,25 @@ const Xu = tu({
|
|
|
6776
6778
|
value: /^(https?:\/\/)?([\w-]+\.)+[\w-]{2,4}(\/.*)?$/,
|
|
6777
6779
|
message: "올바른 URL을 입력해주세요."
|
|
6778
6780
|
},
|
|
6779
|
-
...
|
|
6781
|
+
...u
|
|
6780
6782
|
}
|
|
6781
|
-
}),
|
|
6782
|
-
m.onChange(
|
|
6783
|
-
},
|
|
6784
|
-
if (
|
|
6785
|
-
s(
|
|
6783
|
+
}), x = (y) => {
|
|
6784
|
+
m.onChange(y), f(r, y.target.value);
|
|
6785
|
+
}, v = (y) => {
|
|
6786
|
+
if (y.preventDefault(), s)
|
|
6787
|
+
s(y);
|
|
6786
6788
|
else if (m.value && !w) {
|
|
6787
6789
|
const S = m.value.startsWith("http") ? m.value : `https://${m.value}`;
|
|
6788
6790
|
window.open(S, "_blank");
|
|
6789
6791
|
}
|
|
6790
|
-
},
|
|
6792
|
+
}, g = n || t || i;
|
|
6791
6793
|
return /* @__PURE__ */ b(
|
|
6792
6794
|
Be,
|
|
6793
6795
|
{
|
|
6794
6796
|
control: e,
|
|
6795
6797
|
name: r,
|
|
6796
6798
|
render: () => /* @__PURE__ */ _(ye, { children: [
|
|
6797
|
-
|
|
6799
|
+
g && /* @__PURE__ */ b(We, { required: o, heading: t, label: n, description: i }),
|
|
6798
6800
|
c,
|
|
6799
6801
|
/* @__PURE__ */ _("div", { className: "flex items-center gap-2", children: [
|
|
6800
6802
|
h && /* @__PURE__ */ b(Wa, { size: "sm", className: "flex w-32 justify-center truncate shadow-none", children: h }),
|
|
@@ -6803,7 +6805,7 @@ const Xu = tu({
|
|
|
6803
6805
|
{
|
|
6804
6806
|
...m,
|
|
6805
6807
|
onBlur: () => p(r),
|
|
6806
|
-
onChange:
|
|
6808
|
+
onChange: x,
|
|
6807
6809
|
placeholder: a,
|
|
6808
6810
|
className: "w-auto grow",
|
|
6809
6811
|
error: !!w
|
|
@@ -6816,7 +6818,7 @@ const Xu = tu({
|
|
|
6816
6818
|
theme: "secondary",
|
|
6817
6819
|
size: "md",
|
|
6818
6820
|
disabled: d || !!w || !m.value,
|
|
6819
|
-
onClick:
|
|
6821
|
+
onClick: v,
|
|
6820
6822
|
children: l
|
|
6821
6823
|
}
|
|
6822
6824
|
)
|
|
@@ -6829,7 +6831,7 @@ const Xu = tu({
|
|
|
6829
6831
|
const [r, e] = Fe([]);
|
|
6830
6832
|
return Xe(() => {
|
|
6831
6833
|
const o = (d, c) => {
|
|
6832
|
-
e(c ? (h) => h.includes(d.id) ? h : [...h, d.id] : (h) => h.filter((
|
|
6834
|
+
e(c ? (h) => h.includes(d.id) ? h : [...h, d.id] : (h) => h.filter((u) => u !== d.id));
|
|
6833
6835
|
}, s = Le.subscribe(o);
|
|
6834
6836
|
return e(Le.getOpenPortals()), () => {
|
|
6835
6837
|
s();
|
|
@@ -6899,41 +6901,41 @@ var Gt = "Tooltip", [iu, $t] = Bt(Gt), ma = (r) => {
|
|
|
6899
6901
|
onOpenChange: a,
|
|
6900
6902
|
disableHoverableContent: l,
|
|
6901
6903
|
delayDuration: o
|
|
6902
|
-
} = r, s = kr(Gt, r.__scopeTooltip), d = Wt(e), [c, h] = O.useState(null),
|
|
6904
|
+
} = r, s = kr(Gt, r.__scopeTooltip), d = Wt(e), [c, h] = O.useState(null), u = vr(), p = O.useRef(0), f = l ?? s.disableHoverableContent, m = o ?? s.delayDuration, w = O.useRef(!1), [x = !1, v] = Re({
|
|
6903
6905
|
prop: n,
|
|
6904
6906
|
defaultProp: i,
|
|
6905
|
-
onChange: (
|
|
6906
|
-
|
|
6907
|
+
onChange: (L) => {
|
|
6908
|
+
L ? (s.onOpen(), document.dispatchEvent(new CustomEvent(mr))) : s.onClose(), a == null || a(L);
|
|
6907
6909
|
}
|
|
6908
|
-
}),
|
|
6909
|
-
window.clearTimeout(p.current), p.current = 0, w.current = !1,
|
|
6910
|
-
}, [
|
|
6911
|
-
window.clearTimeout(p.current), p.current = 0,
|
|
6912
|
-
}, [
|
|
6910
|
+
}), g = O.useMemo(() => x ? w.current ? "delayed-open" : "instant-open" : "closed", [x]), y = O.useCallback(() => {
|
|
6911
|
+
window.clearTimeout(p.current), p.current = 0, w.current = !1, v(!0);
|
|
6912
|
+
}, [v]), S = O.useCallback(() => {
|
|
6913
|
+
window.clearTimeout(p.current), p.current = 0, v(!1);
|
|
6914
|
+
}, [v]), E = O.useCallback(() => {
|
|
6913
6915
|
window.clearTimeout(p.current), p.current = window.setTimeout(() => {
|
|
6914
|
-
w.current = !0,
|
|
6916
|
+
w.current = !0, v(!0), p.current = 0;
|
|
6915
6917
|
}, m);
|
|
6916
|
-
}, [m,
|
|
6918
|
+
}, [m, v]);
|
|
6917
6919
|
return O.useEffect(() => () => {
|
|
6918
6920
|
p.current && (window.clearTimeout(p.current), p.current = 0);
|
|
6919
6921
|
}, []), /* @__PURE__ */ b(qa, { ...d, children: /* @__PURE__ */ b(
|
|
6920
6922
|
iu,
|
|
6921
6923
|
{
|
|
6922
6924
|
scope: e,
|
|
6923
|
-
contentId:
|
|
6924
|
-
open:
|
|
6925
|
-
stateAttribute:
|
|
6925
|
+
contentId: u,
|
|
6926
|
+
open: x,
|
|
6927
|
+
stateAttribute: g,
|
|
6926
6928
|
trigger: c,
|
|
6927
6929
|
onTriggerChange: h,
|
|
6928
6930
|
onTriggerEnter: O.useCallback(() => {
|
|
6929
|
-
s.isOpenDelayed ?
|
|
6930
|
-
}, [s.isOpenDelayed,
|
|
6931
|
+
s.isOpenDelayed ? E() : y();
|
|
6932
|
+
}, [s.isOpenDelayed, E, y]),
|
|
6931
6933
|
onTriggerLeave: O.useCallback(() => {
|
|
6932
|
-
|
|
6933
|
-
}, [S,
|
|
6934
|
-
onOpen:
|
|
6934
|
+
f ? S() : (window.clearTimeout(p.current), p.current = 0);
|
|
6935
|
+
}, [S, f]),
|
|
6936
|
+
onOpen: y,
|
|
6935
6937
|
onClose: S,
|
|
6936
|
-
disableHoverableContent:
|
|
6938
|
+
disableHoverableContent: f,
|
|
6937
6939
|
children: t
|
|
6938
6940
|
}
|
|
6939
6941
|
) });
|
|
@@ -6949,8 +6951,8 @@ var hr = "TooltipTrigger", ha = O.forwardRef(
|
|
|
6949
6951
|
"data-state": i.stateAttribute,
|
|
6950
6952
|
...n,
|
|
6951
6953
|
ref: s,
|
|
6952
|
-
onPointerMove: Ce(r.onPointerMove, (
|
|
6953
|
-
|
|
6954
|
+
onPointerMove: Ce(r.onPointerMove, (u) => {
|
|
6955
|
+
u.pointerType !== "touch" && !c.current && !a.isPointerInTransitRef.current && (i.onTriggerEnter(), c.current = !0);
|
|
6954
6956
|
}),
|
|
6955
6957
|
onPointerLeave: Ce(r.onPointerLeave, () => {
|
|
6956
6958
|
i.onTriggerLeave(), c.current = !1;
|
|
@@ -6976,31 +6978,31 @@ var au = "TooltipPortal", [sf, su] = Bt(au, {
|
|
|
6976
6978
|
return /* @__PURE__ */ b(un, { present: n || l.open, children: l.disableHoverableContent ? /* @__PURE__ */ b(va, { side: i, ...a, ref: e }) : /* @__PURE__ */ b(ou, { side: i, ...a, ref: e }) });
|
|
6977
6979
|
}
|
|
6978
6980
|
), ou = O.forwardRef((r, e) => {
|
|
6979
|
-
const t = $t(Qe, r.__scopeTooltip), n = kr(Qe, r.__scopeTooltip), i = O.useRef(null), a = _t(e, i), [l, o] = O.useState(null), { trigger: s, onClose: d } = t, c = i.current, { onPointerInTransitChange: h } = n,
|
|
6981
|
+
const t = $t(Qe, r.__scopeTooltip), n = kr(Qe, r.__scopeTooltip), i = O.useRef(null), a = _t(e, i), [l, o] = O.useState(null), { trigger: s, onClose: d } = t, c = i.current, { onPointerInTransitChange: h } = n, u = O.useCallback(() => {
|
|
6980
6982
|
o(null), h(!1);
|
|
6981
6983
|
}, [h]), p = O.useCallback(
|
|
6982
|
-
(
|
|
6983
|
-
const w =
|
|
6984
|
+
(f, m) => {
|
|
6985
|
+
const w = f.currentTarget, x = { x: f.clientX, y: f.clientY }, v = uu(x, w.getBoundingClientRect()), g = fu(x, v), y = pu(m.getBoundingClientRect()), S = hu([...g, ...y]);
|
|
6984
6986
|
o(S), h(!0);
|
|
6985
6987
|
},
|
|
6986
6988
|
[h]
|
|
6987
6989
|
);
|
|
6988
|
-
return O.useEffect(() => () =>
|
|
6990
|
+
return O.useEffect(() => () => u(), [u]), O.useEffect(() => {
|
|
6989
6991
|
if (s && c) {
|
|
6990
|
-
const
|
|
6991
|
-
return s.addEventListener("pointerleave",
|
|
6992
|
-
s.removeEventListener("pointerleave",
|
|
6992
|
+
const f = (w) => p(w, c), m = (w) => p(w, s);
|
|
6993
|
+
return s.addEventListener("pointerleave", f), c.addEventListener("pointerleave", m), () => {
|
|
6994
|
+
s.removeEventListener("pointerleave", f), c.removeEventListener("pointerleave", m);
|
|
6993
6995
|
};
|
|
6994
6996
|
}
|
|
6995
|
-
}, [s, c, p,
|
|
6997
|
+
}, [s, c, p, u]), O.useEffect(() => {
|
|
6996
6998
|
if (l) {
|
|
6997
|
-
const
|
|
6998
|
-
const w = m.target,
|
|
6999
|
-
|
|
6999
|
+
const f = (m) => {
|
|
7000
|
+
const w = m.target, x = { x: m.clientX, y: m.clientY }, v = (s == null ? void 0 : s.contains(w)) || (c == null ? void 0 : c.contains(w)), g = !mu(x, l);
|
|
7001
|
+
v ? u() : g && (u(), d());
|
|
7000
7002
|
};
|
|
7001
|
-
return document.addEventListener("pointermove",
|
|
7003
|
+
return document.addEventListener("pointermove", f), () => document.removeEventListener("pointermove", f);
|
|
7002
7004
|
}
|
|
7003
|
-
}, [s, c, l, d,
|
|
7005
|
+
}, [s, c, l, d, u]), /* @__PURE__ */ b(va, { ...r, ref: a });
|
|
7004
7006
|
}), [lu, cu] = Bt(Gt, { isInside: !1 }), va = O.forwardRef(
|
|
7005
7007
|
(r, e) => {
|
|
7006
7008
|
const {
|
|
@@ -7013,8 +7015,8 @@ var au = "TooltipPortal", [sf, su] = Bt(au, {
|
|
|
7013
7015
|
} = r, s = $t(Qe, t), d = Wt(t), { onClose: c } = s;
|
|
7014
7016
|
return O.useEffect(() => (document.addEventListener(mr, c), () => document.removeEventListener(mr, c)), [c]), O.useEffect(() => {
|
|
7015
7017
|
if (s.trigger) {
|
|
7016
|
-
const h = (
|
|
7017
|
-
const p =
|
|
7018
|
+
const h = (u) => {
|
|
7019
|
+
const p = u.target;
|
|
7018
7020
|
p != null && p.contains(s.trigger) && c();
|
|
7019
7021
|
};
|
|
7020
7022
|
return window.addEventListener("scroll", h, { capture: !0 }), () => window.removeEventListener("scroll", h, { capture: !0 });
|
|
@@ -7231,7 +7233,7 @@ const cn = {
|
|
|
7231
7233
|
bubbleTip: s = !0,
|
|
7232
7234
|
...d
|
|
7233
7235
|
}, c) => {
|
|
7234
|
-
const h = Cu(n, e),
|
|
7236
|
+
const h = Cu(n, e), u = n.startsWith("top"), p = n === "right" || n === "left" ? n : u ? "top" : "bottom", f = n === "right" || n === "left" ? "center" : n.includes("left") ? "start" : n.includes("right") ? "end" : "center";
|
|
7235
7237
|
return /* @__PURE__ */ b(
|
|
7236
7238
|
ba,
|
|
7237
7239
|
{
|
|
@@ -7239,7 +7241,7 @@ const cn = {
|
|
|
7239
7241
|
avoidCollisions: !1,
|
|
7240
7242
|
sideOffset: s ? i : 4,
|
|
7241
7243
|
side: p,
|
|
7242
|
-
align:
|
|
7244
|
+
align: f,
|
|
7243
7245
|
style: { zIndex: 50 },
|
|
7244
7246
|
...d,
|
|
7245
7247
|
children: /* @__PURE__ */ _(
|
|
@@ -7291,11 +7293,11 @@ const xa = ({
|
|
|
7291
7293
|
forceMount: s,
|
|
7292
7294
|
isMobile: d = st
|
|
7293
7295
|
}) => {
|
|
7294
|
-
const [c, h] = O.useState(!1),
|
|
7295
|
-
c ? h(!1) : (h(!0),
|
|
7296
|
+
const [c, h] = O.useState(!1), u = O.useRef(null), p = typeof d == "number" ? d : 3e3, f = () => {
|
|
7297
|
+
c ? h(!1) : (h(!0), u.current && clearTimeout(u.current), u.current = setTimeout(() => h(!1), p));
|
|
7296
7298
|
};
|
|
7297
7299
|
return O.useEffect(() => () => {
|
|
7298
|
-
|
|
7300
|
+
u.current && clearTimeout(u.current);
|
|
7299
7301
|
}, []), /* @__PURE__ */ b(xu, { delayDuration: 200, children: /* @__PURE__ */ _(Su, { delayDuration: 200, children: [
|
|
7300
7302
|
/* @__PURE__ */ b(
|
|
7301
7303
|
Tu,
|
|
@@ -7304,7 +7306,7 @@ const xa = ({
|
|
|
7304
7306
|
"data-state": c ? "delayed-open" : "closed",
|
|
7305
7307
|
onMouseLeave: st ? void 0 : () => h(!1),
|
|
7306
7308
|
onMouseEnter: st ? void 0 : () => h(!0),
|
|
7307
|
-
onClick: st ?
|
|
7309
|
+
onClick: st ? f : void 0,
|
|
7308
7310
|
children: n
|
|
7309
7311
|
}
|
|
7310
7312
|
),
|
|
@@ -7329,12 +7331,12 @@ function Eu(r, e = []) {
|
|
|
7329
7331
|
const o = O.createContext(l), s = t.length;
|
|
7330
7332
|
t = [...t, l];
|
|
7331
7333
|
function d(h) {
|
|
7332
|
-
const { scope:
|
|
7334
|
+
const { scope: u, children: p, ...f } = h, m = (u == null ? void 0 : u[r][s]) || o, w = O.useMemo(() => f, Object.values(f));
|
|
7333
7335
|
return /* @__PURE__ */ b(m.Provider, { value: w, children: p });
|
|
7334
7336
|
}
|
|
7335
|
-
function c(h,
|
|
7336
|
-
const p = (
|
|
7337
|
-
if (
|
|
7337
|
+
function c(h, u) {
|
|
7338
|
+
const p = (u == null ? void 0 : u[r][s]) || o, f = O.useContext(p);
|
|
7339
|
+
if (f) return f;
|
|
7338
7340
|
if (l !== void 0) return l;
|
|
7339
7341
|
throw new Error(`\`${h}\` must be used within \`${a}\``);
|
|
7340
7342
|
}
|
|
@@ -7441,7 +7443,7 @@ var [Ea, Pa] = Ta(Je), Ou = V.forwardRef((r, e) => {
|
|
|
7441
7443
|
(c) => o((h = []) => [...h, c]),
|
|
7442
7444
|
[o]
|
|
7443
7445
|
), d = V.useCallback(
|
|
7444
|
-
(c) => o((h = []) => h.filter((
|
|
7446
|
+
(c) => o((h = []) => h.filter((u) => u !== c)),
|
|
7445
7447
|
[o]
|
|
7446
7448
|
);
|
|
7447
7449
|
return /* @__PURE__ */ b(
|